vendor: 10,844 bytes, line 1
1var ZV=t=>{throw TypeError(t)};var tN=(t,e,n)=>e.has(t)||ZV("Cannot "+n);var vr=(t,e,n)=>(tN(t,e,"read from private field"),n?n.call(t):e.get(t)),Nl=(t,e,n)=>e.has(t)?ZV("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,n),Ys=(t,e,n,r)=>(tN(t,e,"write to private field"),r?r.call(t,n):e.set(t,n),n),Ol=(t,e,n)=>(tN(t,e,"access private method"),n);var JV=(t,e,n,r)=>({set _(i){Ys(t,e,i,n)},get _(){return vr(t,e,r)}});function B3e(t,e){for(var n=0;n<e.length;n++){const r=e[n];if(typeof r!="string"&&!Array.isArray(r)){for(const i in r)if(i!=="default"&&!(i in t)){const s=Object.getOwnPropertyDescriptor(r,i);s&&Object.defineProperty(t,i,s.get?s:{enumerable:!0,get:()=>r[i]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var V_=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ys(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var nN={exports:{}},ty={};var eq;function H3e(){if(eq)return ty;eq=1;var t=Symbol.for("react.transitional.element"),e=Symbol.for("react.fragment");function n(r,i,s){var a=null;if(s!==void 0&&(a=""+s),i.key!==void 0&&(a=""+i.key),"key"in i){s={};for(var o in i)o!=="key"&&(s[o]=i[o])}else s=i;return i=s.ref,{$$typeof:t,type:r,key:a,ref:i!==void 0?i:null,props:s}}return ty.Fragment=e,ty.jsx=n,ty.jsxs=n,ty}var tq;function U3e(){return tq||(tq=1,nN.exports=H3e()),nN.exports}var j=U3e(),rN={exports:{}},jt={};var nq;function j3e(){if(nq)return jt;nq=1;var t=Symbol.for("react.transitional.element"),e=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),s=Symbol.for("react.consumer"),a=Symbol.for("react.context"),o=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),u=Symbol.for("react.memo"),c=Symbol.for("react.lazy"),d=Symbol.for("react.activity"),h=Symbol.iterator;function m(Y){return Y===null||typeof Y!="object"?null:(Y=h&&Y[h]||Y["@@iterator"],typeof Y=="function"?Y:null)}var g={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},b=Object.assign,v={};function E(Y,Z,W){this.props=Y,this.context=Z,this.refs=v,this.updater=W||g}E.prototype.isReactComponent={},E.prototype.setState=function(Y,Z){if(typeof Y!="object"&&typeof Y!="function"&&Y!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,Y,Z,"setState")},E.prototype.forceUpdate=function(Y){this.updater.enqueueForceUpdate(this,Y,"forceUpdate")};function x(){}x.prototype=E.prototype;function _(Y,Z,W){this.props=Y,this.context=Z,this.refs=v,this.updater=W||g}var S=_.prototype=new x;S.constructor=_,b(S,E.prototype),S.isPureReactComponent=!0;var A=Array.isArray;function R(){}var T={H:null,A:null,T:null,S:null},O=Object.prototype.hasOwnProperty;function I(Y,Z,W){var Q=W.ref;return{$$typeof:t,type:Y,key:Z,ref:Q!==void 0?Q:null,props:W}}function D(Y,Z){return I(Y.type,Z,Y.props)}function P(Y){return typeof Y=="object"&&Y!==null&&Y.$$typeof===t}function B(Y){var Z={"=":"=0",":":"=2"};return"$"+Y.replace(/[=:]/g,function(W){return Z[W]})}var L=/\/+/g;function $(Y,Z){return typeof Y=="object"&&Y!==null&&Y.key!=null?B(""+Y.key):Z.toString(36)}function q(Y){switch(Y.status){case"fulfilled":return Y.value;case"rejected":throw Y.reason;default:switch(typeof Y.status=="string"?Y.then(R,R):(Y.status="pending",Y.then(function(Z){Y.status==="pending"&&(Y.status="fulfilled",Y.value=Z)},function(Z){Y.status==="pending"&&(Y.status="rejected",Y.reason=Z)})),Y.status){case"fulfilled":return Y.value;case"rejected":throw Y.reason}}throw Y}function F(Y,Z,W,Q,re){var se=typeof Y;(se==="undefined"||se==="boolean")&&(Y=null);var J=!1;if(Y===null)J=!0;else switch(se){case"bigint":case"string":case"number":J=!0;break;case"object":switch(Y.$$typeof){case t:case e:J=!0;break;case c:return J=Y._init,F(J(Y._payload),Z,W,Q,re)}}if(J)return re=re(Y),J=Q===""?"."+$(Y,0):Q,A(re)?(W="",J!=null&&(W=J.replace(L,"$&/")+"/"),F(re,Z,W,"",function(ve){return ve})):re!=null&&(P(re)&&(re=D(re,W+(re.key==null||Y&&Y.key===re.key?"":(""+re.key).replace(L,"$&/")+"/")+J)),Z.push(re)),1;J=0;var ae=Q===""?".":Q+":";if(A(Y))for(var ge=0;ge<Y.length;ge++)Q=Y[ge],se=ae+$(Q,ge),J+=F(Q,Z,W,se,re);else if(ge=m(Y),typeof ge=="function")for(Y=ge.call(Y),ge=0;!(Q=Y.next()).done;)Q=Q.value,se=ae+$(Q,ge++),J+=F(Q,Z,W,se,re);else if(se==="object"){if(typeof Y.then=="function")return F(q(Y),Z,W,Q,re);throw Z=String(Y),Error("Objects are not valid as a React child (found: "+(Z==="[object Object]"?"object with keys {"+Object.keys(Y).join(", ")+"}":Z)+"). If you meant to render a collection of children, use an array instead.")}return J}function G(Y,Z,W){if(Y==null)return Y;var Q=[],re=0;return F(Y,Q,"","",function(se){return Z.call(W,se,re++)}),Q}function H(Y){if(Y._status===-1){var Z=Y._result;Z=Z(),Z.then(function(W){(Y._status===0||Y._status===-1)&&(Y._status=1,Y._result=W)},function(W){(Y._status===0||Y._status===-1)&&(Y._status=2,Y._result=W)}),Y._status===-1&&(Y._status=0,Y._result=Z)}if(Y._status===1)return Y._result.default;throw Y._result}var K=typeof reportError=="function"?reportError:function(Y){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var Z=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof Y=="object"&&Y!==null&&typeof Y.message=="string"?String(Y.message):String(Y),error:Y});if(!window.dispatchEvent(Z))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",Y);return}console.error(Y)},V={map:G,forEach:function(Y,Z,W){G(Y,function(){Z.apply(this,arguments)},W)},count:function(Y){var Z=0;return G(Y,function(){Z++}),Z},toArray:function(Y){return G(Y,function(Z){return Z})||[]},only:function(Y){if(!P(Y))throw Error("React.Children.only expected to receive a single React element child.");return Y}};return jt.Activity=d,jt.Children=V,jt.Component=E,jt.Fragment=n,jt.Profiler=i,jt.PureComponent=_,jt.StrictMode=r,jt.Suspense=l,jt.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=T,jt.__COMPILER_RUNTIME={__proto__:null,c:function(Y){return T.H.useMemoCache(Y)}},jt.cache=function(Y){return function(){return Y.apply(null,arguments)}},jt.cacheSignal=function(){return null},jt.cloneElement=function(Y,Z,W){if(Y==null)throw Error("The argument must be a React element, but you passed "+Y+".");var Q=b({},Y.props),re=Y.key;if(Z!=null)for(se in Z.key!==void 0&&(re=""+Z.key),Z)!O.call(Z,se)||se==="key"||se==="__self"||se==="__source"||se==="ref"&&Z.ref===void 0||(Q[se]=Z[se]);var se=arguments.length-2;if(se===1)Q.children=W;else if(1<se){for(var J=Array(se),ae=0;ae<se;ae++)J[ae]=arguments[ae+2];Q.children=J}return I(Y.type,re,Q)},jt.createContext=function(Y){return Y={$$typeof:a,_currentValue:Y,_currentValue2:Y,_threadCount:0,Provider:null,Consumer:null},Y.Provider=Y,Y.Consumer={$$typeof:s,_context:Y},Y},jt.createElement=function(Y,Z,W){var Q,re={},se=null;if(Z!=null)for(Q in Z.key!==void 0&&(se=""+Z.key),Z)O.call(Z,Q)&&Q!=="key"&&Q!=="__self"&&Q!=="__source"&&(re[Q]=Z[Q]);var J=arguments.length-2;if(J===1)re.children=W;else if(1<J){for(var ae=Array(J),ge=0;ge<J;ge++)ae[ge]=arguments[ge+2];re.children=ae}if(Y&&Y.defaultProps)for(Q in J=Y.defaultProps,J)re[Q]===void 0&&(re[Q]=J[Q]);return I(Y,se,re)},jt.createRef=function(){return{current:null}},jt.forwardRef=function(Y){return{$$typeof:o,render:Y}},jt.isValidElement=P,jt.lazy=function(Y){return{$$typeof:c,_payload:{_status:-1,_result:Y},_init:H}},jt.memo=function(Y,Z){return{$$typeof:u,type:Y,compare:Z===void 0?null:Z}},jt.startTransition=function(Y){var Z=T.T,W={};T.T=W;try{var Q=Y(),re=T.S;re!==null&&re(W,Q),typeof Q=="object"&&Q!==null&&typeof Q.then=="function"&&Q.then(R,K)}catch(se){K(se)}finally{Z!==null&&W.types!==null&&(Z.types=W.types),T.T=Z}},jt.unstable_useCacheRefresh=function(){return T.H.useCacheRefresh()},jt.use=function(Y){return T.H.use(Y)},jt.useActionState=function(Y,Z,W){return T.H.useActionState(Y,Z,W)},jt.useCallback=function(Y,Z){return T.H.useCallback(Y,Z)},jt.useContext=function(Y){return T.H.useContext(Y)},jt.useDebugValue=function(){},jt.useDeferredValue=function(Y,Z){return T.H.useDeferredValue(Y,Z)},jt.useEffect=function(Y,Z){return T.H.useEffect(Y,Z)},jt.useEffectEvent=function(Y){return T.H.useEffectEvent(Y)},jt.useId=function(){return T.H.useId()},jt.useImperativeHandle=function(Y,Z,W){return T.H.useImperativeHandle(Y,Z,W)},jt.useInsertionEffect=function(Y,Z){return T.H.useInsertionEffect(Y,Z)},jt.useLayoutEffect=function(Y,Z){return T.H.useLayoutEffect(Y,Z)},jt.useMemo=function(Y,Z){return T.H.useMemo(Y,Z)},jt.useOptimistic=function(Y,Z){return T.H.useOptimistic(Y,Z)},jt.useReducer=function(Y,Z,W){return T.H.useReducer(Y,Z,W)},jt.useRef=function(Y){return T.H.useRef(Y)},jt.useState=function(Y){return T.H.useState(Y)},jt.useSyncExternalStore=function(Y,Z,W){return T.H.useSyncExternalStore(Y,Z,W)},jt.useTransition=function(){return T.H.useTransition()},jt.version="19.2.4",jt}var rq;function t2(){return rq||(rq=1,rN.exports=j3e()),rN.exports}var C=t2();const U=ys(C),oT=B3e({__proto__:null,default:U},[C]);var iN={exports:{}},ny={},sN={exports:{}},aN={};var iq;function z3e(){return iq||(iq=1,(function(t){function e(F,G){var H=F.length;F.push(G);e:for(;0<H;){var K=H-1>>>1,V=F[K];if(0<i(V,G))F[K]=G,F[H]=V,H=K;else break e}}function n(F){return F.length===0?null:F[0]}function r(F){if(F.length===0)return null;var G=F[0],H=F.pop();if(H!==G){F[0]=H;e:for(var K=0,V=F.length,Y=V>>>1;K<Y;){var Z=2*(K+1)-1,W=F[Z],Q=Z+1,re=F[Q];if(0>i(W,H))Q<V&&0>i(re,W)?(F[K]=re,F[Q]=H,K=Q):(F[K]=W,F[Z]=H,K=Z);else if(Q<V&&0>i(re,H))F[K]=re,F[Q]=H,K=Q;else break e}}return G}function i(F,G){var H=F.sortIndex-G.sortIndex;return H!==0?H:F.id-G.id}if(t.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var s=performance;t.unstable_now=function(){return s.now()}}else{var a=Date,o=a.now();t.unstable_now=function(){return a.now()-o}}var l=[],u=[],c=1,d=null,h=3,m=!1,g=!1,b=!1,v=!1,E=typeof setTimeout=="function"?setTimeout:null,x=typeof clearTimeout=="function"?clearTimeout:null,_=typeof setImmediate<"u"?setImmediate:null;function S(F){for(var G=n(u);G!==null;){if(G.callback===null)r(u);else if(G.startTime<=F)r(u),G.sortIndex=G.expirationTime,e(l,G);else break;G=n(u)}}function A(F){if(b=!1,S(F),!g)if(n(l)!==null)g=!0,R||(R=!0,B());else{var G=n(u);G!==null&&q(A,G.startTime-F)}}var R=!1,T=-1,O=5,I=-1;function D(){return v?!0:!(t.unstable_now()-I<O)}function P(){if(v=!1,R){var F=t.unstable_now();I=F;var G=!0;try{e:{g=!1,b&&(b=!1,x(T),T=-1),m=!0;var H=h;try{t:{for(S(F),d=n(l);d!==null&&!(d.expirationTime>F&&D());){var K=d.callback;
vendor: 5,765 bytes, line 1
1if(typeof K=="function"){d.callback=null,h=d.priorityLevel;var V=K(d.expirationTime<=F);if(F=t.unstable_now(),typeof V=="function"){d.callback=V,S(F),G=!0;break t}d===n(l)&&r(l),S(F)}else r(l);d=n(l)}if(d!==null)G=!0;else{var Y=n(u);Y!==null&&q(A,Y.startTime-F),G=!1}}break e}finally{d=null,h=H,m=!1}G=void 0}}finally{G?B():R=!1}}}var B;if(typeof _=="function")B=function(){_(P)};else if(typeof MessageChannel<"u"){var L=new MessageChannel,$=L.port2;L.port1.onmessage=P,B=function(){$.postMessage(null)}}else B=function(){E(P,0)};function q(F,G){T=E(function(){F(t.unstable_now())},G)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(F){F.callback=null},t.unstable_forceFrameRate=function(F){0>F||125<F?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):O=0<F?Math.floor(1e3/F):5},t.unstable_getCurrentPriorityLevel=function(){return h},t.unstable_next=function(F){switch(h){case 1:case 2:case 3:var G=3;break;default:G=h}var H=h;h=G;try{return F()}finally{h=H}},t.unstable_requestPaint=function(){v=!0},t.unstable_runWithPriority=function(F,G){switch(F){case 1:case 2:case 3:case 4:case 5:break;default:F=3}var H=h;h=F;try{return G()}finally{h=H}},t.unstable_scheduleCallback=function(F,G,H){var K=t.unstable_now();switch(typeof H=="object"&&H!==null?(H=H.delay,H=typeof H=="number"&&0<H?K+H:K):H=K,F){case 1:var V=-1;break;case 2:V=250;break;case 5:V=1073741823;break;case 4:V=1e4;break;default:V=5e3}return V=H+V,F={id:c++,callback:G,priorityLevel:F,startTime:H,expirationTime:V,sortIndex:-1},H>K?(F.sortIndex=H,e(u,F),n(l)===null&&F===n(u)&&(b?(x(T),T=-1):b=!0,q(A,H-K))):(F.sortIndex=V,e(l,F),g||m||(g=!0,R||(R=!0,B()))),F},t.unstable_shouldYield=D,t.unstable_wrapCallback=function(F){var G=h;return function(){var H=h;h=G;try{return F.apply(this,arguments)}finally{h=H}}}})(aN)),aN}var sq;function V3e(){return sq||(sq=1,sN.exports=z3e()),sN.exports}var oN={exports:{}},ts={};var aq;function q3e(){if(aq)return ts;aq=1;var t=t2();function e(l){var u="https://react.dev/errors/"+l;if(1<arguments.length){u+="?args[]="+encodeURIComponent(arguments[1]);for(var c=2;c<arguments.length;c++)u+="&args[]="+encodeURIComponent(arguments[c])}return"Minified React error #"+l+"; visit "+u+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function n(){}var r={d:{f:n,r:function(){throw Error(e(522))},D:n,C:n,L:n,m:n,X:n,S:n,M:n},p:0,findDOMNode:null},i=Symbol.for("react.portal");function s(l,u,c){var d=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:i,key:d==null?null:""+d,children:l,containerInfo:u,implementation:c}}var a=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function o(l,u){if(l==="font")return"";if(typeof u=="string")return u==="use-credentials"?u:""}return ts.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,ts.createPortal=function(l,u){var c=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!u||u.nodeType!==1&&u.nodeType!==9&&u.nodeType!==11)throw Error(e(299));return s(l,u,null,c)},ts.flushSync=function(l){var u=a.T,c=r.p;try{if(a.T=null,r.p=2,l)return l()}finally{a.T=u,r.p=c,r.d.f()}},ts.preconnect=function(l,u){typeof l=="string"&&(u?(u=u.crossOrigin,u=typeof u=="string"?u==="use-credentials"?u:"":void 0):u=null,r.d.C(l,u))},ts.prefetchDNS=function(l){typeof l=="string"&&r.d.D(l)},ts.preinit=function(l,u){if(typeof l=="string"&&u&&typeof u.as=="string"){var c=u.as,d=o(c,u.crossOrigin),h=typeof u.integrity=="string"?u.integrity:void 0,m=typeof u.fetchPriority=="string"?u.fetchPriority:void 0;c==="style"?r.d.S(l,typeof u.precedence=="string"?u.precedence:void 0,{crossOrigin:d,integrity:h,fetchPriority:m}):c==="script"&&r.d.X(l,{crossOrigin:d,integrity:h,fetchPriority:m,nonce:typeof u.nonce=="string"?u.nonce:void 0})}},ts.preinitModule=function(l,u){if(typeof l=="string")if(typeof u=="object"&&u!==null){if(u.as==null||u.as==="script"){var c=o(u.as,u.crossOrigin);r.d.M(l,{crossOrigin:c,integrity:typeof u.integrity=="string"?u.integrity:void 0,nonce:typeof u.nonce=="string"?u.nonce:void 0})}}else u==null&&r.d.M(l)},ts.preload=function(l,u){if(typeof l=="string"&&typeof u=="object"&&u!==null&&typeof u.as=="string"){var c=u.as,d=o(c,u.crossOrigin);r.d.L(l,c,{crossOrigin:d,integrity:typeof u.integrity=="string"?u.integrity:void 0,nonce:typeof u.nonce=="string"?u.nonce:void 0,type:typeof u.type=="string"?u.type:void 0,fetchPriority:typeof u.fetchPriority=="string"?u.fetchPriority:void 0,referrerPolicy:typeof u.referrerPolicy=="string"?u.referrerPolicy:void 0,imageSrcSet:typeof u.imageSrcSet=="string"?u.imageSrcSet:void 0,imageSizes:typeof u.imageSizes=="string"?u.imageSizes:void 0,media:typeof u.media=="string"?u.media:void 0})}},ts.preloadModule=function(l,u){if(typeof l=="string")if(u){var c=o(u.as,u.crossOrigin);r.d.m(l,{as:typeof u.as=="string"&&u.as!=="script"?u.as:void 0,crossOrigin:c,integrity:typeof u.integrity=="string"?u.integrity:void 0})}else r.d.m(l)},ts.requestFormReset=function(l){r.d.r(l)},ts.unstable_batchedUpdates=function(l,u){return l(u)},ts.useFormState=function(l,u,c){return a.H.useFormState(l,u,c)},ts.useFormStatus=function(){return a.H.useHostTransitionStatus()},ts.version="19.2.4",ts}var oq;function lle(){if(oq)return oN.exports;oq=1;function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(e){console.error(e)}}return t(),oN.exports=q3e(),oN.exports}var lq;function G3e(){if(lq)return ny;lq=1;
vendor: 13,784 bytes, lines 1-8
1var t=V3e(),e=t2(),n=lle();function r(f){var p="https://react.dev/errors/"+f;if(1<arguments.length){p+="?args[]="+encodeURIComponent(arguments[1]);for(var y=2;y<arguments.length;y++)p+="&args[]="+encodeURIComponent(arguments[y])}return"Minified React error #"+f+"; visit "+p+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function i(f){return!(!f||f.nodeType!==1&&f.nodeType!==9&&f.nodeType!==11)}function s(f){var p=f,y=f;if(f.alternate)for(;p.return;)p=p.return;else{f=p;do p=f,(p.flags&4098)!==0&&(y=p.return),f=p.return;while(f)}return p.tag===3?y:null}function a(f){if(f.tag===13){var p=f.memoizedState;if(p===null&&(f=f.alternate,f!==null&&(p=f.memoizedState)),p!==null)return p.dehydrated}return null}function o(f){if(f.tag===31){var p=f.memoizedState;if(p===null&&(f=f.alternate,f!==null&&(p=f.memoizedState)),p!==null)return p.dehydrated}return null}function l(f){if(s(f)!==f)throw Error(r(188))}function u(f){var p=f.alternate;if(!p){if(p=s(f),p===null)throw Error(r(188));return p!==f?null:f}for(var y=f,w=p;;){var N=y.return;if(N===null)break;var k=N.alternate;if(k===null){if(w=N.return,w!==null){y=w;continue}break}if(N.child===k.child){for(k=N.child;k;){if(k===y)return l(N),f;if(k===w)return l(N),p;k=k.sibling}throw Error(r(188))}if(y.return!==w.return)y=N,w=k;else{for(var z=!1,ee=N.child;ee;){if(ee===y){z=!0,y=N,w=k;break}if(ee===w){z=!0,w=N,y=k;break}ee=ee.sibling}if(!z){for(ee=k.child;ee;){if(ee===y){z=!0,y=k,w=N;break}if(ee===w){z=!0,w=k,y=N;break}ee=ee.sibling}if(!z)throw Error(r(189))}}if(y.alternate!==w)throw Error(r(190))}if(y.tag!==3)throw Error(r(188));return y.stateNode.current===y?f:p}function c(f){var p=f.tag;if(p===5||p===26||p===27||p===6)return f;for(f=f.child;f!==null;){if(p=c(f),p!==null)return p;f=f.sibling}return null}var d=Object.assign,h=Symbol.for("react.element"),m=Symbol.for("react.transitional.element"),g=Symbol.for("react.portal"),b=Symbol.for("react.fragment"),v=Symbol.for("react.strict_mode"),E=Symbol.for("react.profiler"),x=Symbol.for("react.consumer"),_=Symbol.for("react.context"),S=Symbol.for("react.forward_ref"),A=Symbol.for("react.suspense"),R=Symbol.for("react.suspense_list"),T=Symbol.for("react.memo"),O=Symbol.for("react.lazy"),I=Symbol.for("react.activity"),D=Symbol.for("react.memo_cache_sentinel"),P=Symbol.iterator;function B(f){return f===null||typeof f!="object"?null:(f=P&&f[P]||f["@@iterator"],typeof f=="function"?f:null)}var L=Symbol.for("react.client.reference");function $(f){if(f==null)return null;if(typeof f=="function")return f.$$typeof===L?null:f.displayName||f.name||null;if(typeof f=="string")return f;switch(f){case b:return"Fragment";case E:return"Profiler";case v:return"StrictMode";case A:return"Suspense";case R:return"SuspenseList";case I:return"Activity"}if(typeof f=="object")switch(f.$$typeof){case g:return"Portal";case _:return f.displayName||"Context";case x:return(f._context.displayName||"Context")+".Consumer";case S:var p=f.render;return f=f.displayName,f||(f=p.displayName||p.name||"",f=f!==""?"ForwardRef("+f+")":"ForwardRef"),f;case T:return p=f.displayName||null,p!==null?p:$(f.type)||"Memo";case O:p=f._payload,f=f._init;try{return $(f(p))}catch{}}return null}var q=Array.isArray,F=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,G=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,H={pending:!1,data:null,method:null,action:null},K=[],V=-1;function Y(f){return{current:f}}function Z(f){0>V||(f.current=K[V],K[V]=null,V--)}function W(f,p){V++,K[V]=f.current,f.current=p}var Q=Y(null),re=Y(null),se=Y(null),J=Y(null);function ae(f,p){switch(W(se,p),W(re,f),W(Q,null),p.nodeType){case 9:case 11:f=(f=p.documentElement)&&(f=f.namespaceURI)?_V(f):0;break;default:if(f=p.tagName,p=p.namespaceURI)p=_V(p),f=xV(p,f);else switch(f){case"svg":f=1;break;case"math":f=2;break;default:f=0}}Z(Q),W(Q,f)}function ge(){Z(Q),Z(re),Z(se)}function ve(f){f.memoizedState!==null&&W(J,f);var p=Q.current,y=xV(p,f.type);p!==y&&(W(re,f),W(Q,y))}function Re(f){re.current===f&&(Z(Q),Z(re)),J.current===f&&(Z(J),Q1._currentValue=H)}var xe,Ne;function Fe(f){if(xe===void 0)try{throw Error()}catch(y){var p=y.stack.trim().match(/\n( *(at )?)/);xe=p&&p[1]||"",Ne=-1<y.stack.indexOf(` 2 at`)?" (<anonymous>)":-1<y.stack.indexOf("@")?"@unknown:0:0":""}return` 3`+xe+f+Ne}var Le=!1;function ze(f,p){if(!f||Le)return"";Le=!0;var y=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var w={DetermineComponentFrameRoot:function(){try{if(p){var Be=function(){throw Error()};if(Object.defineProperty(Be.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Be,[])}catch(ke){var Ae=ke}Reflect.construct(f,[],Be)}else{try{Be.call()}catch(ke){Ae=ke}f.call(Be.prototype)}}else{try{throw Error()}catch(ke){Ae=ke}(Be=f())&&typeof Be.catch=="function"&&Be.catch(function(){})}}catch(ke){if(ke&&Ae&&typeof ke.stack=="string")return[ke.stack,Ae.stack]}return[null,null]}};w.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var N=Object.getOwnPropertyDescriptor(w.DetermineComponentFrameRoot,"name");N&&N.configurable&&Object.defineProperty(w.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var k=w.DetermineComponentFrameRoot(),z=k[0],ee=k[1];if(z&&ee){var me=z.split(` 4`),Ce=ee.split(` 5`);for(N=w=0;w<me.length&&!me[w].includes("DetermineComponentFrameRoot");)w++;for(;N<Ce.length&&!Ce[N].includes("DetermineComponentFrameRoot");)N++;if(w===me.length||N===Ce.length)for(w=me.length-1,N=Ce.length-1;1<=w&&0<=N&&me[w]!==Ce[N];)N--;for(;1<=w&&0<=N;w--,N--)if(me[w]!==Ce[N]){if(w!==1||N!==1)do if(w--,N--,0>N||me[w]!==Ce[N]){var Pe=` 6`+me[w].replace(" at new "," at ");return f.displayName&&Pe.includes("<anonymous>")&&(Pe=Pe.replace("<anonymous>",f.displayName)),Pe}while(1<=w&&0<=N);break}}}finally{Le=!1,Error.prepareStackTrace=y}return(y=f?f.displayName||f.name:"")?Fe(y):""}function qe(f,p){switch(f.tag){case 26:case 27:case 5:return Fe(f.type);case 16:return Fe("Lazy");case 13:return f.child!==p&&p!==null?Fe("Suspense Fallback"):Fe("Suspense");case 19:return Fe("SuspenseList");case 0:case 15:return ze(f.type,!1);case 11:return ze(f.type.render,!1);case 1:return ze(f.type,!0);case 31:return Fe("Activity");default:return""}}function _t(f){try{var p="",y=null;do p+=qe(f,y),y=f,f=f.return;while(f);return p}catch(w){return` 7Error generating stack: `+w.message+` 8`+w.stack}}var Ot=Object.prototype.hasOwnProperty,Lt=t.unstable_scheduleCallback,ue=t.unstable_cancelCallback,te=t.unstable_shouldYield,de=t.unstable_requestPaint,be=t.unstable_now,ce=t.unstable_getCurrentPriorityLevel,ne=t.unstable_ImmediatePriority,fe=t.unstable_UserBlockingPriority,X=t.unstable_NormalPriority,Oe=t.unstable_LowPriority,Ye=t.unstable_IdlePriority,rt=t.log,Ut=t.unstable_setDisableYieldValue,Kt=null,It=null;function Tn(f){if(typeof rt=="function"&&Ut(f),It&&typeof It.setStrictMode=="function")try{It.setStrictMode(Kt,f)}catch{}}var qt=Math.clz32?Math.clz32:xt,or=Math.log,tr=Math.LN2;function xt(f){return f>>>=0,f===0?32:31-(or(f)/tr|0)|0}var Bt=256,bt=262144,yt=4194304;function rn(f){var p=f&42;if(p!==0)return p;switch(f&-f){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return f&261888;case 262144:case 524288:case 1048576:case 2097152:return f&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return f&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return f}}function vt(f,p,y){var w=f.pendingLanes;if(w===0)return 0;var N=0,k=f.suspendedLanes,z=f.pingedLanes;f=f.warmLanes;var ee=w&134217727;return ee!==0?(w=ee&~k,w!==0?N=rn(w):(z&=ee,z!==0?N=rn(z):y||(y=ee&~f,y!==0&&(N=rn(y))))):(ee=w&~k,ee!==0?N=rn(ee):z!==0?N=rn(z):y||(y=w&~f,y!==0&&(N=rn(y)))),N===0?0:p!==0&&p!==N&&(p&k)===0&&(k=N&-N,y=p&-p,k>=y||k===32&&(y&4194048)!==0)?p:N}function ni(f,p){return(f.pendingLanes&~(f.suspendedLanes&~f.pingedLanes)&p)===0}function qr(f,p){switch(f){case 1:case 2:case 4:case 8:case 64:return p+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return p+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function lr(){var f=yt;return yt<<=1,(yt&62914560)===0&&(yt=4194304),f}function ur(f){for(var p=[],y=0;31>y;y++)p.push(f);return p}function Gr(f,p){f.pendingLanes|=p,p!==268435456&&(f.suspendedLanes=0,f.pingedLanes=0,f.warmLanes=0)}function Rr(f,p,y,w,N,k){var z=f.pendingLanes;f.pendingLanes=y,f.suspendedLanes=0,f.pingedLanes=0,f.warmLanes=0,f.expiredLanes&=y,f.entangledLanes&=y,f.errorRecoveryDisabledLanes&=y,f.shellSuspendCounter=0;var ee=f.entanglements,me=f.expirationTimes,Ce=f.hiddenUpdates;for(y=z&~y;0<y;){var Pe=31-qt(y),Be=1<<Pe;ee[Pe]=0,me[Pe]=-1;var Ae=Ce[Pe];if(Ae!==null)for(Ce[Pe]=null,Pe=0;Pe<Ae.length;Pe++){var ke=Ae[Pe];ke!==null&&(ke.lane&=-536870913)}y&=~Be}w!==0&&vs(f,w,0),k!==0&&N===0&&f.tag!==0&&(f.suspendedLanes|=k&~(z&~p))}function vs(f,p,y){f.pendingLanes|=p,f.suspendedLanes&=~p;var w=31-qt(p);f.entangledLanes|=p,f.entanglements[w]=f.entanglements[w]|1073741824|y&261930}function he(f,p){var y=f.entangledLanes|=p;for(f=f.entanglements;y;){var w=31-qt(y),N=1<<w;N&p|f[w]&p&&(f[w]|=p),y&=~N}}function Ee(f,p){var y=p&-p;return y=(y&42)!==0?1:Te(y),(y&(f.suspendedLanes|p))!==0?0:y}function Te(f){switch(f){case 2:f=1;break;case 8:f=4;break;case 32:f=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:f=128;break;case 268435456:f=134217728;break;default:f=0}return f}function Ue(f){return f&=-f,2<f?8<f?(f&134217727)!==0?32:268435456:8:2}function Ge(){var f=G.p;return f!==0?f:(f=window.event,f===void 0?32:qV(f.type))}function ot(f,p){var y=G.p;try{return G.p=f,p()}finally{G.p=y}}var Ze=Math.random().toString(36).slice(2),Je="__reactFiber$"+Ze,it="__reactProps$"+Ze,ht="__reactContainer$"+Ze,Tt="__reactEvents$"+Ze,gt="__reactListeners$"+Ze,yn="__reactHandles$"+Ze,ln="__reactResources$"+Ze,cr="__reactMarker$"+Ze;function gr(f){delete f[Je],delete f[it],delete f[Tt],delete f[gt],delete f[yn]}function yr(f){var p=f[Je];if(p)return p;for(var y=f.parentNode;y;){if(p=y[ht]||y[Je]){if(y=p.alternate,p.child!==null||y!==null&&y.child!==null)for(f=NV(f);f!==null;){if(y=f[Je])return y;f=NV(f)}return p}f=y,y=f.parentNode}return null}function un(f){if(f=f[Je]||f[ht]){var p=f.tag;if(p===5||p===6||p===13||p===31||p===26||p===27||p===3)return f}return null}function Wr(f){var p=f.tag;if(p===5||p===26||p===27||p===6)return f.stateNode;throw Error(r(33))}function es(f){var p=f[ln];return p||(p=f[ln]={hoistableStyles:new Map,hoistableScripts:new Map}),p}function nr(f){f[cr]=!0}var va=new Set,Es={};function Ea(f,p){Hs(f,p),Hs(f+"Capture",p)}function Hs(f,p){for(Es[f]=p,f=0;f<p.length;f++)va.add(p[f])}var Po=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),Sl={},Ou={};function cn(f){return Ot.call(Ou,f)?!0:Ot.call(Sl,f)?!1:Po.test(f)?Ou[f]=!0:(Sl[f]=!0,!1)}function Nr(f,p,y){if(cn(p))if(y===null)f.removeAttribute(p);else{switch(typeof y){case"undefined":case"function":case"symbol":f.removeAttribute(p);return;case"boolean":var w=p.toLowerCase().slice(0,5);if(w!=="data-"&&w!=="aria-"){f.removeAttribute(p);return}}f.setAttribute(p,""+y)}}function _a(f,p,y){if(y===null)f.removeAttribute(p);else{switch(typeof y){case"undefined":case"function":case"symbol":case"boolean":f.removeAttribute(p);return}f.setAttribute(p,""+y)}}function _i(f,p,y,w){if(w===null)f.removeAttribute(y);else{switch(typeof w){case"undefined":case"function":case"symbol":case"boolean":f.removeAttribute(y);return}f.setAttributeNS(p,y,""+w)}}function dn(f){switch(typeof f){case"bigint":case"boolean":case"number":case"string":case"undefined":return f;case"object":return f;default:return""}}function ku(f){var p=f.type;return(f=f.nodeName)&&f.toLowerCase()==="input"&&(p==="checkbox"||p==="radio")}function Xp(f,p,y){var w=Object.getOwnPropertyDescriptor(f.constructor.prototype,p);if(!f.hasOwnProperty(p)&&typeof w<"u"&&typeof w.get=="function"&&typeof w.set=="function"){var N=w.get,k=w.set;return Object.defineProperty(f,p,{configurable:!0,get:function(){return N.call(this)},set:function(z){y=""+z,k.call(this,z)}}),Object.defineProperty(f,p,{enumerable:w.enumerable}),{getValue:function(){return y},setValue:function(z){y=""+z},stopTracking:function(){f._valueTracker=null,delete f[p]}}}}function Zc(f){if(!f._valueTracker){var p=ku(f)?"checked":"value";f._valueTracker=Xp(f,p,""+f[p])}}function ME(f){if(!f)return!1;var p=f._valueTracker;if(!p)return!0;var y=p.getValue(),w="";return f&&(w=ku(f)?f.checked?"true":"false":f.value),f=w,f!==y?(p.setValue(f),!0):!1}function Mf(f){if(f=f||(typeof document<"u"?document:void 0),typeof f>"u")return null;try{return f.activeElement||f.body}catch{return f.body}}var XA=/[\n"\\]/g;function Us(f){return f.replace(XA,function(p){return"\\"+p.charCo
vendor: 4,429 bytes, line 8
8deAt(0).toString(16)+" "})}function Df(f,p,y,w,N,k,z,ee){f.name="",z!=null&&typeof z!="function"&&typeof z!="symbol"&&typeof z!="boolean"?f.type=z:f.removeAttribute("type"),p!=null?z==="number"?(p===0&&f.value===""||f.value!=p)&&(f.value=""+dn(p)):f.value!==""+dn(p)&&(f.value=""+dn(p)):z!=="submit"&&z!=="reset"||f.removeAttribute("value"),p!=null?h1(f,z,dn(p)):y!=null?h1(f,z,dn(y)):w!=null&&f.removeAttribute("value"),N==null&&k!=null&&(f.defaultChecked=!!k),N!=null&&(f.checked=N&&typeof N!="function"&&typeof N!="symbol"),ee!=null&&typeof ee!="function"&&typeof ee!="symbol"&&typeof ee!="boolean"?f.name=""+dn(ee):f.removeAttribute("name")}function DE(f,p,y,w,N,k,z,ee){if(k!=null&&typeof k!="function"&&typeof k!="symbol"&&typeof k!="boolean"&&(f.type=k),p!=null||y!=null){if(!(k!=="submit"&&k!=="reset"||p!=null)){Zc(f);return}y=y!=null?""+dn(y):"",p=p!=null?""+dn(p):y,ee||p===f.value||(f.value=p),f.defaultValue=p}w=w??N,w=typeof w!="function"&&typeof w!="symbol"&&!!w,f.checked=ee?f.checked:!!w,f.defaultChecked=!!w,z!=null&&typeof z!="function"&&typeof z!="symbol"&&typeof z!="boolean"&&(f.name=z),Zc(f)}function h1(f,p,y){p==="number"&&Mf(f.ownerDocument)===f||f.defaultValue===""+y||(f.defaultValue=""+y)}function Iu(f,p,y,w){if(f=f.options,p){p={};for(var N=0;N<y.length;N++)p["$"+y[N]]=!0;for(y=0;y<f.length;y++)N=p.hasOwnProperty("$"+f[y].value),f[y].selected!==N&&(f[y].selected=N),N&&w&&(f[y].defaultSelected=!0)}else{for(y=""+dn(y),p=null,N=0;N<f.length;N++){if(f[N].value===y){f[N].selected=!0,w&&(f[N].defaultSelected=!0);return}p!==null||f[N].disabled||(p=f[N])}p!==null&&(p.selected=!0)}}function gU(f,p,y){if(p!=null&&(p=""+dn(p),p!==f.value&&(f.value=p),y==null)){f.defaultValue!==p&&(f.defaultValue=p);return}f.defaultValue=y!=null?""+dn(y):""}function yU(f,p,y,w){if(p==null){if(w!=null){if(y!=null)throw Error(r(92));if(q(w)){if(1<w.length)throw Error(r(93));w=w[0]}y=w}y==null&&(y=""),p=y}y=dn(p),f.defaultValue=y,w=f.textContent,w===y&&w!==""&&w!==null&&(f.value=w),Zc(f)}function Qp(f,p){if(p){var y=f.firstChild;if(y&&y===f.lastChild&&y.nodeType===3){y.nodeValue=p;return}}f.textContent=p}var DCe=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function bU(f,p,y){var w=p.indexOf("--")===0;y==null||typeof y=="boolean"||y===""?w?f.setProperty(p,""):p==="float"?f.cssFloat="":f[p]="":w?f.setProperty(p,y):typeof y!="number"||y===0||DCe.has(p)?p==="float"?f.cssFloat=y:f[p]=(""+y).trim():f[p]=y+"px"}function vU(f,p,y){if(p!=null&&typeof p!="object")throw Error(r(62));if(f=f.style,y!=null){for(var w in y)!y.hasOwnProperty(w)||p!=null&&p.hasOwnProperty(w)||(w.indexOf("--")===0?f.setProperty(w,""):w==="float"?f.cssFloat="":f[w]="");for(var N in p)w=p[N],p.hasOwnProperty(N)&&y[N]!==w&&bU(f,N,w)}else for(var k in p)p.hasOwnProperty(k)&&bU(f,k,p[k])}function QA(f){if(f.indexOf("-")===-1)return!1;switch(f){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 PCe=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRen
8dering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),LCe=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function PE(f){return LCe.test(""+f)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":f}function Mu(){}var ZA=null;function JA(f){return f=f.target||f.srcElement||window,f.correspondingUseElement&&(f=f.correspondingUseElement),f.nodeType===3?f.parentNode:f}var Zp=null,Jp=null;function EU(f){var p=un(f);if(p&&(f=p.stateNode)){var y=f[it]||null;e:switch(f=p.stateNode,p.type){case"input":if(Df(f,y.value,y.defaultValue,y.defaultValue,y.checked,y.defaultChecked,y.type,y.name),p=y.name,y.type==="radio"&&p!=null){for(y=f;y.parentNode;)y=y.parentNode;for(y=y.querySelectorAll('input[name="'+Us(""+p)+'"][type="radio"]'),p=0;p<y.length;p++){var w=y[p];if(w!==f&&w.form===f.form){var N=w[it]||null;if(!N)throw Error(r(90));Df(w,N.value,N.defaultValue,N.defaultValue,N.checked,N.defaultChecked,N.type,N.name)}}for(p=0;p<y.length;p++)w=y[p],w.form===f.form&&ME(w)}break e;case"textarea":gU(f,y.value,y.defaultValue);break e;case"select":p=y.value,p!=null&&Iu(f,!!y.multiple,p,!1)}}}var e5=!1;function _U(f,p,y){if(e5)return f(p,y);e5=!0;try{var w=f(p);return w}finally{if(e5=!1,(Zp!==null||Jp!==null)&&(x_(),Zp&&(p=Zp,f=Jp,Jp=Zp=null,EU(p
vendor: 12,702 bytes, line 8
8),f)))for(p=0;p<f.length;p++)EU(f[p])}}function p1(f,p){var y=f.stateNode;if(y===null)return null;var w=y[it]||null;if(w===null)return null;y=w[p];e:switch(p){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(w=!w.disabled)||(f=f.type,w=!(f==="button"||f==="input"||f==="select"||f==="textarea")),f=!w;break e;default:f=!1}if(f)return null;if(y&&typeof y!="function")throw Error(r(231,p,typeof y));return y}var Du=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),t5=!1;if(Du)try{var m1={};Object.defineProperty(m1,"passive",{get:function(){t5=!0}}),window.addEventListener("test",m1,m1),window.removeEventListener("test",m1,m1)}catch{t5=!1}var Jc=null,n5=null,LE=null;function xU(){if(LE)return LE;var f,p=n5,y=p.length,w,N="value"in Jc?Jc.value:Jc.textContent,k=N.length;for(f=0;f<y&&p[f]===N[f];f++);var z=y-f;for(w=1;w<=z&&p[y-w]===N[k-w];w++);return LE=N.slice(f,1<w?1-w:void 0)}function $E(f){var p=f.keyCode;return"charCode"in f?(f=f.charCode,f===0&&p===13&&(f=13)):f=p,f===10&&(f=13),32<=f||f===13?f:0}function FE(){return!0}function wU(){return!1}function js(f){function p(y,w,N,k,z){this._reactName=y,this._targetInst=N,this.type=w,this.nativeEvent=k,this.target=z,this.currentTarget=null;for(var ee in f)f.hasOwnProperty(ee)&&(y=f[ee],this[ee]=y?y(k):k[ee]);return this.isDefaultPrevented=(k.defaultPrevented!=null?k.defaultPrevented:k.returnValue===!1)?FE:wU,this.isPropagationStopped=wU,this}return d(p.prototype,{preventDefault:function(){this.defaultPrevented=!0;var y=this.nativeEvent;y&&(y.preventDefault?y.preventDefault():typeof y.returnValue!="unknown"&&(y.returnValue=!1),this.isDefaultPrevented=FE)},stopPropagation:function(){var y=this.nativeEvent;y&&(y.stopPropagation?y.stopPropagation():typeof y.cancelBubble!="unknown"&&(y.cancelBubble=!0),this.isPropagationStopped=FE)},persist:function(){},isPersistent:FE}),p}var Pf={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(f){return f.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},BE=js(Pf),g1=d({},Pf,{view:0,detail:0}),$Ce=js(g1),r5,i5,y1,HE=d({},g1,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:a5,button:0,buttons:0,relatedTarget:function(f){return f.relatedTarget===void 0?f.fromElement===f.srcElement?f.toElement:f.fromElement:f.relatedTarget},movementX:function(f){return"movementX"in f?f.movementX:(f!==y1&&(y1&&f.type==="mousemove"?(r5=f.screenX-y1.screenX,i5=f.screenY-y1.screenY):i5=r5=0,y1=f),r5)},movementY:function(f){return"movementY"in f?f.movementY:i5}}),SU=js(HE),FCe=d({},HE,{dataTransfer:0}),BCe=js(FCe),HCe=d({},g1,{relatedTarget:0}),s5=js(HCe),UCe=d({},Pf,{animationName:0,elapsedTime:0,pseudoElement:0}),jCe=js(UCe),zCe=d({},Pf,{clipboardData:function(f){return"clipboardData"in f?f.clipboardData:window.clipboardData}}),VCe=js(zCe),qCe=d({},Pf,{data:0}),CU=js(qCe),GCe={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},WCe={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"},YCe={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function KCe(f){var p=this.nativeEvent;return p.getModifierState?p.getModifierState(f):(f=YCe[f])?!!p[f]:!1}function a5(){return KCe}var XCe=d({},g1,{key:function(f){if(f.key){var p=GCe[f.key]||f.key;if(p!=="Unidentified")return p}return f.type==="keypress"?(f=$E(f),f===13?"Enter":String.fromCharCode(f)):f.type==="keydown"||f.type==="keyup"?WCe[f.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:a5,charCode:function(f){return f.type==="keypress"?$E(f):0},keyCode:function(f){return f.type==="keydown"||f.type==="keyup"?f.keyCode:0},which:function(f){return f.type==="keypress"?$E(f):f.type==="keydown"||f.type==="keyup"?f.keyCode:0}}),QCe=js(XCe),ZCe=d({},HE,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),TU=js(ZCe),JCe=d({},g1,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:a5}),eTe=js(JCe),tTe=d({},Pf,{propertyName:0,elapsedTime:0,pseudoElement:0}),nTe=js(tTe),rTe=d({},HE,{deltaX:function(f){return"deltaX"in f?f.deltaX:"wheelDeltaX"in f?-f.wheelDeltaX:0},deltaY:function(f){return"deltaY"in f?f.deltaY:"wheelDeltaY"in f?-f.wheelDeltaY:"wheelDelta"in f?-f.wheelDelta:0},deltaZ:0,deltaMode:0}),iTe=js(rTe),sTe=d({},Pf,{newState:0,oldState:0}),aTe=js(sTe),oTe=[9,13,27,32],o5=Du&&"CompositionEvent"in window,b1=null;Du&&"documentMode"in document&&(b1=document.documentMode);var lTe=Du&&"TextEvent"in window&&!b1,AU=Du&&(!o5||b1&&8<b1&&11>=b1),RU=" ",NU=!1;function OU(f,p){switch(f){case"keyup":return oTe.indexOf(p.keyCode)!==-1;case"keydown":return p.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function kU(f){return f=f.detail,typeof f=="object"&&"data"in f?f.data:null}var em=!1;function uTe(f,p){switch(f){case"compositionend":return kU(p);case"keypress":return p.which!==32?null:(NU=!0,RU);case"textInput":return f=p.data,f===RU&&NU?null:f;default:return null}}function cTe(f,p){if(em)return f==="compositionend"||!o5&&OU(f,p)?(f=xU(),LE=n5=Jc=null,em=!1,f):null;switch(f){case"paste":return null;case"keypress":if(!(p.ctrlKey||p.altKey||p.metaKey)||p.ctrlKey&&p.altKey){if(p.char&&1<p.char.length)return p.char;if(p.which)return String.fromCharCode(p.which)}return null;case"compositionend":return AU&&p.locale!=="ko"?null:p.data;default:return null}}var dTe={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 IU(f){var p=f&&f.nodeName&&f.nodeName.toLowerCase();return p==="input"?!!dTe[f.type]:p==="textarea"}function MU(f,p,y,w){Zp?Jp?Jp.push(w):Jp=[w]:Zp=w,p=N_(p,"onChange"),0<p.length&&(y=new BE("onChange","change",null,y,w),f.push({event:y,listeners:p}))}var v1=null,E1=null;function fTe(f){mV(f,0)}function UE(f){var p=Wr(f);if(ME(p))return f}function DU(f,p){if(f==="change")return p}var PU=!1;if(Du){var l5;if(Du){var u5="oninput"in document;if(!u5){var LU=document.createElement("div");LU.setAttribute("oninput","return;"),u5=typeof LU.oninput=="function"}l5=u5}else l5=!1;PU=l5&&(!document.documentMode||9<document.documentMode)}function $U(){v1&&(v1.detachEvent("onpropertychange",FU),E1=v1=null)}function FU(f){if(f.propertyName==="value"&&UE(E1)){var p=[];MU(p,E1,f,JA(f)),_U(fTe,p)}}function hTe(f,p,y){f==="focusin"?($U(),v1=p,E1=y,v1.attachEvent("onpropertychange",FU)):f==="focusout"&&$U()}function pTe(f){if(f==="selectionchange"||f==="keyup"||f==="keydown")return UE(E1)}function mTe(f,p){if(f==="click")return UE(p)}function gTe(f,p){if(f==="input"||f==="change")return UE(p)}function yTe(f,p){return f===p&&(f!==0||1/f===1/p)||f!==f&&p!==p}var xa=typeof Object.is=="function"?Object.is:yTe;function _1(f,p){if(xa(f,p))return!0;if(typeof f!="object"||f===null||typeof p!="object"||p===null)return!1;var y=Object.keys(f),w=Object.keys(p);if(y.length!==w.length)return!1;for(w=0;w<y.length;w++){var N=y[w];if(!Ot.call(p,N)||!xa(f[N],p[N]))return!1}return!0}function BU(f){for(;f&&f.firstChild;)f=f.firstChild;return f}function HU(f,p){var y=BU(f);f=0;for(var w;y;){if(y.nodeType===3){if(w=f+y.textContent.length,f<=p&&w>=p)return{node:y,offset:p-f};f=w}e:{for(;y;){if(y.nextSibling){y=y.nextSibling;break e}y=y.parentNode}y=void 0}y=BU(y)}}function UU(f,p){return f&&p?f===p?!0:f&&f.nodeType===3?!1:p&&p.nodeType===3?UU(f,p.parentNode):"contains"in f?f.contains(p):f.compareDocumentPosition?!!(f.compareDocumentPosition(p)&16):!1:!1}function jU(f){f=f!=null&&f.ownerDocument!=null&&f.ownerDocument.defaultView!=null?f.ownerDocument.defaultView:window;for(var p=Mf(f.document);p instanceof f.HTMLIFrameElement;){try{var y=typeof p.contentWindow.location.href=="string"}catch{y=!1}if(y)f=p.contentWindow;else break;p=Mf(f.document)}return p}function c5(f){var p=f&&f.nodeName&&f.nodeName.toLowerCase();return p&&(p==="input"&&(f.type==="text"||f.type==="search"||f.type==="tel"||f.type==="url"||f.type==="password")||p==="textarea"||f.contentEditable==="true")}var bTe=Du&&"documentMode"in document&&11>=document.documentMode,tm=null,d5=null,x1=null,f5=!1;function zU(f,p,y){var w=y.window===y?y.document:y.nodeType===9?y:y.ownerDocument;f5||tm==null||tm!==Mf(w)||(w=tm,"selectionStart"in w&&c5(w)?w={start:w.selectionStart,end:w.selectionEnd}:(w=(w.ownerDocument&&w.ownerDocument.defaultView||window).getSelection(),w={anchorNode:w.anchorNode,anchorOffset:w.anchorOffset,focusNode:w.focusNode,focusOffset:w.focusOffset}),x1&&_1(x1,w)||(x1=w,w=N_(d5,"onSelect"),0<w.length&&(p=new BE("onSelect","select",null,p,y),f.push({event:p,listeners:w}),p.target=tm)))}function Lf(f,p){var y={};return y[f.toLowerCase()]=p.toLowerCase(),y["Webkit"+f]="webkit"+p,y["Moz"+f]="moz"+p,y}var nm={animationend:Lf("Animation","AnimationEnd"),animationiteration:Lf("Animation","AnimationIteration"),animationstart:Lf("Animation","AnimationStart"),transitionrun:Lf("Transition","TransitionRun"),transitionstart:Lf("Transition","TransitionStart"),transitioncancel:Lf("Transition","TransitionCancel"),transitionend:Lf("Transition","TransitionEnd")},h5={},VU={};Du&&(VU=document.createElement("div").style,"AnimationEvent"in window||(delete nm.animationend.animation,delete nm.animationiteration.animation,delete nm.animationstart.animation),"TransitionEvent"in window||delete nm.transitionend.transition);function $f(f){if(h5[f])return h5[f];if(!nm[f])return f;var p=nm[f],y;for(y in p)if(p.hasOwnProperty(y)&&y in VU)return h5[f]=p[y];return f}var qU=$f("animationend"),GU=$f("animationiteration"),WU=$f("animationstart"),vTe=$f("transitionrun"),ETe=$f("transitionstart"),_Te=$f("transitioncancel"),YU=$f("transitionend"),KU=new Map,p5="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");p5.push("scrollEnd");function Lo(f,p){KU.set(f,p),Ea(p,[f])}var jE=typeof reportError=="function"?reportError:function(f){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var p=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof f=="object"&&f!==null&&typeof f.message=="string"?String(f.message):String(f),error:f});if(!window.dispatchEvent(p))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",f);return}console.error(f)},Za=[],rm=0,m5=0;function zE(){for(var f=rm,p=m5=rm=0;p<f;){var y=Za[p];Za[p++]=null;var w=Za[p];Za[p++]=null;var N=Za[p];Za[p++]=null;var k=Za[p];if(Za[p++]=null,w!==null&&N!==null){var z=w.pending;z===null?N.next=N:(N.next=z.next,z.next=N),w.pending=N}k!==0&&XU(y,N,k)}}function VE(f,p,y,w){Za[rm++]=f,Za[rm++]=p,Za[rm++]=y,Za[rm++]=w,m5|=w,f.lanes|=w,f=f.alternate,f!==null&&(f.lanes|=w)}function g5(f,p,y,w){return VE(f,p,y,w),qE(f)}function Ff(f,p){return VE(f,null,null,p),qE(f)}function XU(f,p,y){f.lanes|=y;var w=f.alternate;w!==null&&(w.lanes|=y);for(var N=!1,k=f.return;k!==null;)k.childLanes|=y,w=k.alternate,w!==null&&(w.childLanes|=y),k.tag===22&&(f=k.stateNode,f===null||f._visibility&1||(N=!0)),f=k,k=k.return;return f.tag===3?(k=f.stateNode,N&&p!==null&&(N=31-qt(y),f=k.hiddenUpdates,w=f[N],w===null?f[N]=[p]:w.push(p),p.lane=y|536870912),k):null}function qE(f){if(50<V1)throw V1=0,CR=null,Error(r(185));for(var p=f.return;p!==null;)f=p,p=f.return;return f.tag===3?f.stateNode:null}var im={};function xTe(f,p,y,w){this.tag=f,this.key=y,this.sibling=this.child=this.return=this.stateNode=this.t
vendor: 13,096 bytes, line 8
8ype=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=p,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=w,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function wa(f,p,y,w){return new xTe(f,p,y,w)}function y5(f){return f=f.prototype,!(!f||!f.isReactComponent)}function Pu(f,p){var y=f.alternate;return y===null?(y=wa(f.tag,p,f.key,f.mode),y.elementType=f.elementType,y.type=f.type,y.stateNode=f.stateNode,y.alternate=f,f.alternate=y):(y.pendingProps=p,y.type=f.type,y.flags=0,y.subtreeFlags=0,y.deletions=null),y.flags=f.flags&65011712,y.childLanes=f.childLanes,y.lanes=f.lanes,y.child=f.child,y.memoizedProps=f.memoizedProps,y.memoizedState=f.memoizedState,y.updateQueue=f.updateQueue,p=f.dependencies,y.dependencies=p===null?null:{lanes:p.lanes,firstContext:p.firstContext},y.sibling=f.sibling,y.index=f.index,y.ref=f.ref,y.refCleanup=f.refCleanup,y}function QU(f,p){f.flags&=65011714;var y=f.alternate;return y===null?(f.childLanes=0,f.lanes=p,f.child=null,f.subtreeFlags=0,f.memoizedProps=null,f.memoizedState=null,f.updateQueue=null,f.dependencies=null,f.stateNode=null):(f.childLanes=y.childLanes,f.lanes=y.lanes,f.child=y.child,f.subtreeFlags=0,f.deletions=null,f.memoizedProps=y.memoizedProps,f.memoizedState=y.memoizedState,f.updateQueue=y.updateQueue,f.type=y.type,p=y.dependencies,f.dependencies=p===null?null:{lanes:p.lanes,firstContext:p.firstContext}),f}function GE(f,p,y,w,N,k){var z=0;if(w=f,typeof f=="function")y5(f)&&(z=1);else if(typeof f=="string")z=A3e(f,y,Q.current)?26:f==="html"||f==="head"||f==="body"?27:5;else e:switch(f){case I:return f=wa(31,y,p,N),f.elementType=I,f.lanes=k,f;case b:return Bf(y.children,N,k,p);case v:z=8,N|=24;break;case E:return f=wa(12,y,p,N|2),f.elementType=E,f.lanes=k,f;case A:return f=wa(13,y,p,N),f.elementType=A,f.lanes=k,f;case R:return f=wa(19,y,p,N),f.elementType=R,f.lanes=k,f;default:if(typeof f=="object"&&f!==null)switch(f.$$typeof){case _:z=10;break e;case x:z=9;break e;case S:z=11;break e;case T:z=14;break e;case O:z=16,w=null;break e}z=29,y=Error(r(130,f===null?"null":typeof f,"")),w=null}return p=wa(z,y,p,N),p.elementType=f,p.type=w,p.lanes=k,p}function Bf(f,p,y,w){return f=wa(7,f,w,p),f.lanes=y,f}function b5(f,p,y){return f=wa(6,f,null,p),f.lanes=y,f}function ZU(f){var p=wa(18,null,null,0);return p.stateNode=f,p}function v5(f,p,y){return p=wa(4,f.children!==null?f.children:[],f.key,p),p.lanes=y,p.stateNode={containerInfo:f.containerInfo,pendingChildren:null,implementation:f.implementation},p}var JU=new WeakMap;function Ja(f,p){if(typeof f=="object"&&f!==null){var y=JU.get(f);return y!==void 0?y:(p={value:f,source:p,stack:_t(p)},JU.set(f,p),p)}return{value:f,source:p,stack:_t(p)}}var sm=[],am=0,WE=null,w1=0,eo=[],to=0,ed=null,Cl=1,Tl="";function Lu(f,p){sm[am++]=w1,sm[am++]=WE,WE=f,w1=p}function ej(f,p,y){eo[to++]=Cl,eo[to++]=Tl,eo[to++]=ed,ed=f;var w=Cl;f=Tl;var N=32-qt(w)-1;w&=~(1<<N),y+=1;var k=32-qt(p)+N;if(30<k){var z=N-N%5;k=(w&(1<<z)-1).toString(32),w>>=z,N-=z,Cl=1<<32-qt(p)+N|y<<N|w,Tl=k+f}else Cl=1<<k|y<<N|w,Tl=f}function E5(f){f.return!==null&&(Lu(f,1),ej(f,1,0))}function _5(f){for(;f===WE;)WE=sm[--am],sm[am]=null,w1=sm[--am],sm[am]=null;for(;f===ed;)ed=eo[--to],eo[to]=null,Tl=eo[--to],eo[to]=null,Cl=eo[--to],eo[to]=null}function tj(f,p){eo[to++]=Cl,eo[to++]=Tl,eo[to++]=ed,Cl=p.id,Tl=p.overflow,ed=f}var qi=null,dr=null,_n=!1,td=null,no=!1,x5=Error(r(519));function nd(f){var p=Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw S1(Ja(p,f)),x5}function nj(f){var p=f.stateNode,y=f.type,w=f.memoizedProps;switch(p[Je]=f,p[it]=w,y){case"dialog":hn("cancel",p),hn("close",p);break;case"iframe":case"object":case"embed":hn("load",p);break;case"video":case"audio":for(y=0;y<G1.length;y++)hn(G1[y],p);break;case"source":hn("error",p);break;case"img":case"image":case"link":hn("error",p),hn("load",p);break;case"details":hn("toggle",p);break;case"input":hn("invalid",p),DE(p,w.value,w.defaultValue,w.checked,w.defaultChecked,w.type,w.name,!0);break;case"select":hn("invalid",p);break;case"textarea":hn("invalid",p),yU(p,w.value,w.defaultValue,w.children)}y=w.children,typeof y!="string"&&typeof y!="number"&&typeof y!="bigint"||p.textContent===""+y||w.suppressHydrationWarning===!0||vV(p.textContent,y)?(w.popover!=null&&(hn("beforetoggle",p),hn("toggle",p)),w.onScroll!=null&&hn("scroll",p),w.onScrollEnd!=null&&hn("scrollend",p),w.onClick!=null&&(p.onclick=Mu),p=!0):p=!1,p||nd(f,!0)}function rj(f){for(qi=f.return;qi;)switch(qi.tag){case 5:case 31:case 13:no=!1;return;case 27:case 3:no=!0;return;default:qi=qi.return}}function om(f){if(f!==qi)return!1;if(!_n)return rj(f),_n=!0,!1;var p=f.tag,y;if((y=p!==3&&p!==27)&&((y=p===5)&&(y=f.type,y=!(y!=="form"&&y!=="button")||HR(f.type,f.memoizedProps)),y=!y),y&&dr&&nd(f),rj(f),p===13){if(f=f.memoizedState,f=f!==null?f.dehydrated:null,!f)throw Error(r(317));dr=RV(f)}else if(p===31){if(f=f.memoizedState,f=f!==null?f.dehydrated:null,!f)throw Error(r(317));dr=RV(f)}else p===27?(p=dr,gd(f.type)?(f=qR,qR=null,dr=f):dr=p):dr=qi?io(f.stateNode.nextSibling):null;return!0}function Hf(){dr=qi=null,_n=!1}function w5(){var f=td;return f!==null&&(Gs===null?Gs=f:Gs.push.apply(Gs,f),td=null),f}function S1(f){td===null?td=[f]:td.push(f)}var S5=Y(null),Uf=null,$u=null;function rd(f,p,y){W(S5,p._currentValue),p._currentValue=y}function Fu(f){f._currentValue=S5.current,Z(S5)}function C5(f,p,y){for(;f!==null;){var w=f.alternate;if((f.childLanes&p)!==p?(f.childLanes|=p,w!==null&&(w.childLanes|=p)):w!==null&&(w.childLanes&p)!==p&&(w.childLanes|=p),f===y)break;f=f.return}}function T5(f,p,y,w){var N=f.child;for(N!==null&&(N.return=f);N!==null;){var k=N.dependencies;if(k!==null){var z=N.child;k=k.firstContext;e:for(;k!==null;){var ee=k;k=N;for(var me=0;me<p.length;me++)if(ee.context===p[me]){k.lanes|=y,ee=k.alternate,ee!==null&&(ee.lanes|=y),C5(k.return,y,f),w||(z=null);break e}k=ee.next}}else if(N.tag===18){if(z=N.return,z===null)throw Error(r(341));z.lanes|=y,k=z.alternate,k!==null&&(k.lanes|=y),C5(z,y,f),z=null}else z=N.child;if(z!==null)z.return=N;else for(z=N;z!==null;){if(z===f){z=null;break}if(N=z.sibling,N!==null){N.return=z.return,z=N;break}z=z.return}N=z}}function lm(f,p,y,w){f=null;for(var N=p,k=!1;N!==null;){if(!k){if((N.flags&524288)!==0)k=!0;else if((N.flags&262144)!==0)break}if(N.tag===10){var z=N.alternate;if(z===null)throw Error(r(387));if(z=z.memoizedProps,z!==null){var ee=N.type;xa(N.pendingProps.value,z.value)||(f!==null?f.push(ee):f=[ee])}}else if(N===J.current){if(z=N.alternate,z===null)throw Error(r(387));z.memoizedState.memoizedState!==N.memoizedState.memoizedState&&(f!==null?f.push(Q1):f=[Q1])}N=N.return}f!==null&&T5(p,f,y,w),p.flags|=262144}function YE(f){for(f=f.firstContext;f!==null;){if(!xa(f.context._currentValue,f.memoizedValue))return!0;f=f.next}return!1}function jf(f){Uf=f,$u=null,f=f.dependencies,f!==null&&(f.firstContext=null)}function Gi(f){return ij(Uf,f)}function KE(f,p){return Uf===null&&jf(f),ij(f,p)}function ij(f,p){var y=p._currentValue;if(p={context:p,memoizedValue:y,next:null},$u===null){if(f===null)throw Error(r(308));$u=p,f.dependencies={lanes:0,firstContext:p},f.flags|=524288}else $u=$u.next=p;return y}var wTe=typeof AbortController<"u"?AbortController:function(){var f=[],p=this.signal={aborted:!1,addEventListener:function(y,w){f.push(w)}};this.abort=function(){p.aborted=!0,f.forEach(function(y){return y()})}},STe=t.unstable_scheduleCallback,CTe=t.unstable_NormalPriority,ri={$$typeof:_,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function A5(){return{controller:new wTe,data:new Map,refCount:0}}function C1(f){f.refCount--,f.refCount===0&&STe(CTe,function(){f.controller.abort()})}var T1=null,R5=0,um=0,cm=null;function TTe(f,p){if(T1===null){var y=T1=[];R5=0,um=kR(),cm={status:"pending",value:void 0,then:function(w){y.push(w)}}}return R5++,p.then(sj,sj),p}function sj(){if(--R5===0&&T1!==null){cm!==null&&(cm.status="fulfilled");var f=T1;T1=null,um=0,cm=null;for(var p=0;p<f.length;p++)(0,f[p])()}}function ATe(f,p){var y=[],w={status:"pending",value:null,reason:null,then:function(N){y.push(N)}};return f.then(function(){w.status="fulfilled",w.value=p;for(var N=0;N<y.length;N++)(0,y[N])(p)},function(N){for(w.status="rejected",w.reason=N,N=0;N<y.length;N++)(0,y[N])(void 0)}),w}var aj=F.S;F.S=function(f,p){zz=be(),typeof p=="object"&&p!==null&&typeof p.then=="function"&&TTe(f,p),aj!==null&&aj(f,p)};var zf=Y(null);function N5(){var f=zf.current;return f!==null?f:Qn.pooledCache}function XE(f,p){p===null?W(zf,zf.current):W(zf,p.pool)}function oj(){var f=N5();return f===null?null:{parent:ri._currentValue,pool:f}}var dm=Error(r(460)),O5=Error(r(474)),QE=Error(r(542)),ZE={then:function(){}};function lj(f){return f=f.status,f==="fulfilled"||f==="rejected"}function uj(f,p,y){switch(y=f[y],y===void 0?f.push(p):y!==p&&(p.then(Mu,Mu),p=y),p.status){case"fulfilled":return p.value;case"rejected":throw f=p.reason,dj(f),f;default:if(typeof p.status=="string")p.then(Mu,Mu);else{if(f=Qn,f!==null&&100<f.shellSuspendCounter)throw Error(r(482));f=p,f.status="pending",f.then(function(w){if(p.status==="pending"){var N=p;N.status="fulfilled",N.value=w}},function(w){if(p.status==="pending"){var N=p;N.status="rejected",N.reason=w}})}switch(p.status){case"fulfilled":return p.value;case"rejected":throw f=p.reason,dj(f),f}throw qf=p,dm}}function Vf(f){try{var p=f._init;return p(f._payload)}catch(y){throw y!==null&&typeof y=="object"&&typeof y.then=="function"?(qf=y,dm):y}}var qf=null;function cj(){if(qf===null)throw Error(r(459));var f=qf;return qf=null,f}function dj(f){if(f===dm||f===QE)throw Error(r(483))}var fm=null,A1=0;function JE(f){var p=A1;return A1+=1,fm===null&&(fm=[]),uj(fm,f,p)}function R1(f,p){p=p.props.ref,f.ref=p!==void 0?p:null}function e_(f,p){throw p.$$typeof===h?Error(r(525)):(f=Object.prototype.toString.call(p),Error(r(31,f==="[object Object]"?"object with keys {"+Object.keys(p).join(", ")+"}":f)))}function fj(f){function p(_e,ye){if(f){var Se=_e.deletions;Se===null?(_e.deletions=[ye],_e.flags|=16):Se.push(ye)}}function y(_e,ye){if(!f)return null;for(;ye!==null;)p(_e,ye),ye=ye.sibling;return null}function w(_e){for(var ye=new Map;_e!==null;)_e.key!==null?ye.set(_e.key,_e):ye.set(_e.index,_e),_e=_e.sibling;return ye}function N(_e,ye){return _e=Pu(_e,ye),_e.index=0,_e.sibling=null,_e}function k(_e,ye,Se){return _e.index=Se,f?(Se=_e.alternate,Se!==null?(Se=Se.index,Se<ye?(_e.flags|=67108866,ye):Se):(_e.flags|=67108866,ye)):(_e.flags|=1048576,ye)}function z(_e){return f&&_e.alternate===null&&(_e.flags|=67108866),_e}function ee(_e,ye,Se,$e){return ye===null||ye.tag!==6?(ye=b5(Se,_e.mode,$e),ye.return=_e,ye):(ye=N(ye,Se),ye.return=_e,ye)}function me(_e,ye,Se,$e){var At=Se.type;return At===b?Pe(_e,ye,Se.props.children,$e,Se.key):ye!==null&&(ye.elementType===At||typeof At=="object"&&At!==null&&At.$$typeof===O&&Vf(At)===ye.type)?(ye=N(ye,Se.props),R1(ye,Se),ye.return=_e,ye):(ye=GE(Se.type,Se.key,Se.props,null,_e.mode,$e),R1(ye,Se),ye.return=_e,ye)}function Ce(_e,ye,Se,$e){return ye===null||ye.tag!==4||ye.stateNode.containerInfo!==Se.containerInfo||ye.stateNode.implementation!==Se.implementation?(ye=v5(Se,_e.mode,$e),ye.return=_e,ye):(ye=N(ye,Se.children||[]),ye.return=_e,ye)}function Pe(_e,ye,Se,$e,At){return ye===null||ye.tag!==7?(ye=Bf(Se,_e.mode,$e,At),ye.return=_e,ye):(ye=N(ye,Se),ye.return=_e,ye)}function Be(_e,ye,Se){if(typeof ye=="string"&&ye!==""||typeof ye=="number"||typeof ye=="bigint")return ye=b5(""+ye,_e.mode,Se),ye.return=_e,ye;if(typeof ye=="object"&&ye!==null){switch(ye.$$typeof){case m:return Se=GE(ye.type,ye.key,ye.props,null,_e.mode,Se),R1(Se,ye),Se.return=_e,Se;case g:return ye=v5(ye,_e.mode,Se),ye.return=_e,ye;case O:return ye=Vf(ye),Be(_e,ye,Se)}if(q(ye)||B(ye))return ye=Bf(ye,_e.mode,Se,null),ye.return=_e,ye;if(typeof ye.then=="function")return Be(_e,JE(ye),Se);if(ye.$$typeof===_)return Be(_e,KE(_e,ye),Se);e_(_e,ye)}return null}function Ae(_e,ye,Se,$e){var At=ye!==null?ye.key:null;if(typeof Se=="string"&&Se!==""||typeof Se=="number"||typeof Se=="bigint")return At!==null?null:ee(_e,ye,""+Se,$e);if(typeof Se=="object"&&Se!==null){switch(Se.$$typeof){case m:return Se.key===At?me(_e,ye,Se,$e):null;case g:return Se.key===At?Ce(_e,ye,Se,$e):null;case O:return Se=Vf(Se),Ae(_e,ye,Se,$e)}if(q(Se)||B(Se))return At!==null?null:Pe(_e,ye,Se,$e,null);if(typeof Se.then=="function")return Ae(_e,ye,JE(Se),$e);if(Se.$$typeof===_)return Ae(_e,ye,KE(_e,Se),$e);e_(_e,Se)}return null}function ke(_e,ye,Se,$e,At){if(typeof $e=="string"&&$e!==""||typeof $e=="number"||typeof $e=="bigint")return _e=_e.get(Se)||null,ee(ye,_e,""+$e,At);if(typeof $e=="object"&&$e!==null){switch($e.$$typeof){case m:return _e=_e.get($e.key===null?Se:$e.key)||null,me(ye,_e,$e,At);case g:return _e=_e.get($e.key===null?Se:$e.key)||null,Ce(ye,_e,$e,At);case O:return $e=Vf($e),ke(_e,ye,Se,$e,At)}if(q($e)||B($e))return _e=_e.get(Se)||null,Pe(ye,_e,$e,At,null);if(typeof $e.then=="function")return ke(_e,ye,Se,JE($e),At);
vendor: 5,614 bytes, line 8
8if($e.$$typeof===_)return ke(_e,ye,Se,KE(ye,$e),At);e_(ye,$e)}return null}function ct(_e,ye,Se,$e){for(var At=null,kn=null,mt=ye,Xt=ye=0,vn=null;mt!==null&&Xt<Se.length;Xt++){mt.index>Xt?(vn=mt,mt=null):vn=mt.sibling;var In=Ae(_e,mt,Se[Xt],$e);if(In===null){mt===null&&(mt=vn);break}f&&mt&&In.alternate===null&&p(_e,mt),ye=k(In,ye,Xt),kn===null?At=In:kn.sibling=In,kn=In,mt=vn}if(Xt===Se.length)return y(_e,mt),_n&&Lu(_e,Xt),At;if(mt===null){for(;Xt<Se.length;Xt++)mt=Be(_e,Se[Xt],$e),mt!==null&&(ye=k(mt,ye,Xt),kn===null?At=mt:kn.sibling=mt,kn=mt);return _n&&Lu(_e,Xt),At}for(mt=w(mt);Xt<Se.length;Xt++)vn=ke(mt,_e,Xt,Se[Xt],$e),vn!==null&&(f&&vn.alternate!==null&&mt.delete(vn.key===null?Xt:vn.key),ye=k(vn,ye,Xt),kn===null?At=vn:kn.sibling=vn,kn=vn);return f&&mt.forEach(function(_d){return p(_e,_d)}),_n&&Lu(_e,Xt),At}function Dt(_e,ye,Se,$e){if(Se==null)throw Error(r(151));for(var At=null,kn=null,mt=ye,Xt=ye=0,vn=null,In=Se.next();mt!==null&&!In.done;Xt++,In=Se.next()){mt.index>Xt?(vn=mt,mt=null):vn=mt.sibling;var _d=Ae(_e,mt,In.value,$e);if(_d===null){mt===null&&(mt=vn);break}f&&mt&&_d.alternate===null&&p(_e,mt),ye=k(_d,ye,Xt),kn===null?At=_d:kn.sibling=_d,kn=_d,mt=vn}if(In.done)return y(_e,mt),_n&&Lu(_e,Xt),At;if(mt===null){for(;!In.done;Xt++,In=Se.next())In=Be(_e,In.value,$e),In!==null&&(ye=k(In,ye,Xt),kn===null?At=In:kn.sibling=In,kn=In);return _n&&Lu(_e,Xt),At}for(mt=w(mt);!In.done;Xt++,In=Se.next())In=ke(mt,_e,Xt,In.value,$e),In!==null&&(f&&In.alternate!==null&&mt.delete(In.key===null?Xt:In.key),ye=k(In,ye,Xt),kn===null?At=In:kn.sibling=In,kn=In);return f&&mt.forEach(function(F3e){return p(_e,F3e)}),_n&&Lu(_e,Xt),At}function Gn(_e,ye,Se,$e){if(typeof Se=="object"&&Se!==null&&Se.type===b&&Se.key===null&&(Se=Se.props.children),typeof Se=="object"&&Se!==null){switch(Se.$$typeof){case m:e:{for(var At=Se.key;ye!==null;){if(ye.key===At){if(At=Se.type,At===b){if(ye.tag===7){y(_e,ye.sibling),$e=N(ye,Se.props.children),$e.return=_e,_e=$e;break e}}else if(ye.elementType===At||typeof At=="object"&&At!==null&&At.$$typeof===O&&Vf(At)===ye.type){y(_e,ye.sibling),$e=N(ye,Se.props),R1($e,Se),$e.return=_e,_e=$e;break e}y(_e,ye);break}else p(_e,ye);ye=ye.sibling}Se.type===b?($e=Bf(Se.props.children,_e.mode,$e,Se.key),$e.return=_e,_e=$e):($e=GE(Se.type,Se.key,Se.props,null,_e.mode,$e),R1($e,Se),$e.return=_e,_e=$e)}return z(_e);case g:e:{for(At=Se.key;ye!==null;){if(ye.key===At)if(ye.tag===4&&ye.stateNode.containerInfo===Se.containerInfo&&ye.stateNode.implementation===Se.implementation){y(_e,ye.sibling),$e=N(ye,Se.children||[]),$e.return=_e,_e=$e;break e}else{y(_e,ye);break}else p(_e,ye);ye=ye.sibling}$e=v5(Se,_e.mode,$e),$e.return=_e,_e=$e}return z(_e);case O:return Se=Vf(Se),Gn(_e,ye,Se,$e)}if(q(Se))return ct(_e,ye,Se,$e);if(B(Se)){if(At=B(Se),typeof At!="function")throw Error(r(150));return Se=At.call(Se),Dt(_e,ye,Se,$e)}if(typeof Se.then=="function")return Gn(_e,ye,JE(Se),$e);if(Se.$$typeof===_)return Gn(_e,ye,KE(_e,Se),$e);e_(_e,Se)}return typeof Se=="string"&&Se!==""||typeof Se=="number"||typeof Se=="bigint"?(Se=""+Se,ye!==null&&ye.tag===6?(y(_e,ye.sibling),$e=N(ye,Se),$e.return=_e,_e=$e):(y(_e,ye),$e=b5(Se,_e.mode,$e),$e.return=_e,_e=$e),z(_e)):y(_e,ye)}return function(_e,ye,Se,$e){try{A1=0;var At=Gn(_e,ye,Se,$e);return fm=null,At}catch(mt){if(mt===dm||mt===QE)throw mt;var kn=wa(29,mt,null,_e.mode);return kn.lanes=$e,kn.return=_e,kn}}}var Gf=fj(!0),hj=fj(!1),id=!1;function k5(f){f.updateQueue={baseState:f.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function I5(f,p){f=f.updateQueue,p.updateQueue===f&&(p.updateQueue={baseState:f.baseState,firstBaseUpdate:f.firstBaseUpdate,lastBaseUpdate:f.lastBaseUpdate,shared:f.shared,callbacks:null})}function sd(f){return{lane:f,tag:0,payload:null,callback:null,next:null}}function ad(f,p,y){var w=f.updateQueue;if(w===null)return null;if(w=w.shared,(Dn&2)!==0){var N=w.pending;return N===null?p.next=p:(p.next=N.next,N.next=p),w.pending=p,p=qE(f),XU(f,null,y),p}return VE(f,w,p,y),qE(f)}function N1(f,p,y){if(p=p.updateQueue,p!==null&&(p=p.shared,(y&4194048)!==0)){var w=p.lanes;w&=f.pendingLanes,y|=w,p.lanes=y,he(f,y)}}function M5(f,p){var y=f.updateQueue,w=f.alternate;if(w!==null&&(w=w.updateQueue,y===w)){var N=null,k=null;if(y=y.firstBaseUpdate,y!==null){do{var z={lane:y.lane,tag:y.tag,payload:y.payload,callback:null,next:null};k===null?N=k=z:k=k.next=z,y=y.next}while(y!==null);k===null?N=k=p:k=k.next=p}else N=k=p;y={baseState:w.baseState,firstBaseUpdate:N,lastBaseUpdate:k,shared:w.shared,callbacks:w.callbacks},f.updateQueue=y;return}f=y.lastBaseUpdate,f===null?y.firstBaseUpdate=p:f.next=p,y.lastBaseUpdate=p}var D5=!1;function O1(){if(D5){var f=cm;if(f!==null)throw f}}function k1(f,p,y,w){D5=!1;var N=f.updateQueue;id=!1;var k=N.firstBaseUpdate,z=N.lastBaseUpdate,ee=N.shared.pending;if(ee!==null){N.shared.pending=null;var me=ee,Ce=me.next;me.next=null,z===null?k=Ce:z.next=Ce,z=me;var Pe=f.alternate;Pe!==null&&(Pe=Pe.updateQueue,ee=Pe.lastBaseUpdate,ee!==z&&(ee===null?Pe.firstBaseUpdate=Ce:ee.next=Ce,Pe.lastBaseUpdate=me))}if(k!==null){var Be=N.baseState;z=0,Pe=Ce=me=null,ee=k;do{var Ae=ee.lane&-536870913,ke=Ae!==ee.lane;if(ke?(bn&Ae)===Ae:(w&Ae)===Ae){Ae!==0&&Ae===um&&(D5=!0),Pe!==null&&(Pe=Pe.next={lane:0,tag:ee.tag,payload:ee.payload,callback:null,next:null});e:{var ct=f,Dt=ee;Ae=p;var Gn=y;switch(Dt.tag){case 1:if(ct=Dt.payload,typeof ct=="function"){Be=ct.call(Gn,Be,Ae);break e}Be=ct;break e;case 3:ct.flags=ct.flags&-65537|128;case 0:if(ct=Dt.payload,Ae=typeof ct=="function"?ct.call(Gn,Be,Ae):ct,Ae==null)break e;
vendor: 7,408 bytes, line 8
8Be=d({},Be,Ae);break e;case 2:id=!0}}Ae=ee.callback,Ae!==null&&(f.flags|=64,ke&&(f.flags|=8192),ke=N.callbacks,ke===null?N.callbacks=[Ae]:ke.push(Ae))}else ke={lane:Ae,tag:ee.tag,payload:ee.payload,callback:ee.callback,next:null},Pe===null?(Ce=Pe=ke,me=Be):Pe=Pe.next=ke,z|=Ae;if(ee=ee.next,ee===null){if(ee=N.shared.pending,ee===null)break;ke=ee,ee=ke.next,ke.next=null,N.lastBaseUpdate=ke,N.shared.pending=null}}while(!0);Pe===null&&(me=Be),N.baseState=me,N.firstBaseUpdate=Ce,N.lastBaseUpdate=Pe,k===null&&(N.shared.lanes=0),dd|=z,f.lanes=z,f.memoizedState=Be}}function pj(f,p){if(typeof f!="function")throw Error(r(191,f));f.call(p)}function mj(f,p){var y=f.callbacks;if(y!==null)for(f.callbacks=null,f=0;f<y.length;f++)pj(y[f],p)}var hm=Y(null),t_=Y(0);function gj(f,p){f=Wu,W(t_,f),W(hm,p),Wu=f|p.baseLanes}function P5(){W(t_,Wu),W(hm,hm.current)}function L5(){Wu=t_.current,Z(hm),Z(t_)}var Sa=Y(null),ro=null;function od(f){var p=f.alternate;W(Yr,Yr.current&1),W(Sa,f),ro===null&&(p===null||hm.current!==null||p.memoizedState!==null)&&(ro=f)}function $5(f){W(Yr,Yr.current),W(Sa,f),ro===null&&(ro=f)}function yj(f){f.tag===22?(W(Yr,Yr.current),W(Sa,f),ro===null&&(ro=f)):ld()}function ld(){W(Yr,Yr.current),W(Sa,Sa.current)}function Ca(f){Z(Sa),ro===f&&(ro=null),Z(Yr)}var Yr=Y(0);function n_(f){for(var p=f;p!==null;){if(p.tag===13){var y=p.memoizedState;if(y!==null&&(y=y.dehydrated,y===null||zR(y)||VR(y)))return p}else if(p.tag===19&&(p.memoizedProps.revealOrder==="forwards"||p.memoizedProps.revealOrder==="backwards"||p.memoizedProps.revealOrder==="unstable_legacy-backwards"||p.memoizedProps.revealOrder==="together")){if((p.flags&128)!==0)return p}else if(p.child!==null){p.child.return=p,p=p.child;continue}if(p===f)break;for(;p.sibling===null;){if(p.return===null||p.return===f)return null;p=p.return}p.sibling.return=p.return,p=p.sibling}return null}var Bu=0,Wt=null,Vn=null,ii=null,r_=!1,pm=!1,Wf=!1,i_=0,I1=0,mm=null,RTe=0;function Lr(){throw Error(r(321))}function F5(f,p){if(p===null)return!1;for(var y=0;y<p.length&&y<f.length;y++)if(!xa(f[y],p[y]))return!1;return!0}function B5(f,p,y,w,N,k){return Bu=k,Wt=p,p.memoizedState=null,p.updateQueue=null,p.lanes=0,F.H=f===null||f.memoizedState===null?ez:eR,Wf=!1,k=y(w,N),Wf=!1,pm&&(k=vj(p,y,w,N)),bj(f),k}function bj(f){F.H=P1;var p=Vn!==null&&Vn.next!==null;if(Bu=0,ii=Vn=Wt=null,r_=!1,I1=0,mm=null,p)throw Error(r(300));f===null||si||(f=f.dependencies,f!==null&&YE(f)&&(si=!0))}function vj(f,p,y,w){Wt=f;var N=0;do{if(pm&&(mm=null),I1=0,pm=!1,25<=N)throw Error(r(301));if(N+=1,ii=Vn=null,f.updateQueue!=null){var k=f.updateQueue;k.lastEffect=null,k.events=null,k.stores=null,k.memoCache!=null&&(k.memoCache.index=0)}F.H=tz,k=p(y,w)}while(pm);return k}function NTe(){var f=F.H,p=f.useState()[0];return p=typeof p.then=="function"?M1(p):p,f=f.useState()[0],(Vn!==null?Vn.memoizedState:null)!==f&&(Wt.flags|=1024),p}function H5(){var f=i_!==0;return i_=0,f}function U5(f,p,y){p.updateQueue=f.updateQueue,p.flags&=-2053,f.lanes&=~y}function j5(f){if(r_){for(f=f.memoizedState;f!==null;){var p=f.queue;p!==null&&(p.pending=null),f=f.next}r_=!1}Bu=0,ii=Vn=Wt=null,pm=!1,I1=i_=0,mm=null}function _s(){var f={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ii===null?Wt.memoizedState=ii=f:ii=ii.next=f,ii}function Kr(){if(Vn===null){var f=Wt.alternate;f=f!==null?f.memoizedState:null}else f=Vn.next;var p=ii===null?Wt.memoizedState:ii.next;if(p!==null)ii=p,Vn=f;else{if(f===null)throw Wt.alternate===null?Error(r(467)):Error(r(310));Vn=f,f={memoizedState:Vn.memoizedState,baseState:Vn.baseState,baseQueue:Vn.baseQueue,queue:Vn.queue,next:null},ii===null?Wt.memoizedState=ii=f:ii=ii.next=f}return ii}function s_(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function M1(f){var p=I1;return I1+=1,mm===null&&(mm=[]),f=uj(mm,f,p),p=Wt,(ii===null?p.memoizedState:ii.next)===null&&(p=p.alternate,F.H=p===null||p.memoizedState===null?ez:eR),f}function a_(f){if(f!==null&&typeof f=="object"){if(typeof f.then=="function")return M1(f);if(f.$$typeof===_)return Gi(f)}throw Error(r(438,String(f)))}function z5(f){var p=null,y=Wt.updateQueue;if(y!==null&&(p=y.memoCache),p==null){var w=Wt.alternate;w!==null&&(w=w.updateQueue,w!==null&&(w=w.memoCache,w!=null&&(p={data:w.data.map(function(N){return N.slice()}),index:0})))}if(p==null&&(p={data:[],index:0}),y===null&&(y=s_(),Wt.updateQueue=y),y.memoCache=p,y=p.data[p.index],y===void 0)for(y=p.data[p.index]=Array(f),w=0;w<f;w++)y[w]=D;return p.index++,y}function Hu(f,p){return typeof p=="function"?p(f):p}function o_(f){var p=Kr();return V5(p,Vn,f)}function V5(f,p,y){var w=f.queue;if(w===null)throw Error(r(311));w.lastRenderedReducer=y;var N=f.baseQueue,k=w.pending;if(k!==null){if(N!==null){var z=N.next;N.next=k.next,k.next=z}p.baseQueue=N=k,w.pending=null}if(k=f.baseState,N===null)f.memoizedState=k;else{p=N.next;var ee=z=null,me=null,Ce=p,Pe=!1;do{var Be=Ce.lane&-536870913;if(Be!==Ce.lane?(bn&Be)===Be:(Bu&Be)===Be){var Ae=Ce.revertLane;if(Ae===0)me!==null&&(me=me.next={lane:0,revertLane:0,gesture:null,action:Ce.action,hasEagerState:Ce.hasEagerState,eagerState:Ce.eagerState,next:null}),Be===um&&(Pe=!0);else if((Bu&Ae)===Ae){Ce=Ce.next,Ae===um&&(Pe=!0);continue}else Be={lane:0,revertLane:Ce.revertLane,gesture:null,action:Ce.action,hasEagerState:Ce.hasEagerState,eagerState:Ce.eagerState,next:null},me===null?(ee=me=Be,z=k):me=me.next=Be,Wt.lanes|=Ae,dd|=Ae;Be=Ce.action,Wf&&y(k,Be),k=Ce.hasEagerState?Ce.eagerState:y(k,Be)}else Ae={lane:Be,revertLane:Ce.revertLane,gesture:Ce.gesture,action:Ce.action,hasEagerState:Ce.hasEagerState,eagerState:Ce.eagerState,next:null},me===null?(ee=me=Ae,z=k):me=me.next=Ae,Wt.lanes|=Be,dd|=Be;Ce=Ce.next}while(Ce!==null&&Ce!==p);if(me===null?z=k:me.next=ee,!xa(k,f.memoizedState)&&(si=!0,Pe&&(y=cm,y!==null)))throw y;f.memoizedState=k,f.baseState=z,f.baseQueue=me,w.lastRenderedState=k}return N===null&&(w.lanes=0),[f.memoizedState,w.dispatch]}function q5(f){var p=Kr(),y=p.queue;if(y===null)throw Error(r(311));y.lastRenderedReducer=f;var w=y.dispatch,N=y.pending,k=p.memoizedState;if(N!==null){y.pending=null;var z=N=N.next;do k=f(k,z.action),z=z.next;while(z!==N);xa(k,p.memoizedState)||(si=!0),p.memoizedState=k,p.baseQueue===null&&(p.baseState=k),y.lastRenderedState=k}return[k,w]}function Ej(f,p,y){var w=Wt,N=Kr(),k=_n;if(k){if(y===void 0)throw Error(r(407));y=y()}else y=p();var z=!xa((Vn||N).memoizedState,y);if(z&&(N.memoizedState=y,si=!0),N=N.queue,Y5(wj.bind(null,w,N,f),[f]),N.getSnapshot!==p||z||ii!==null&&ii.memoizedState.tag&1){if(w.flags|=2048,gm(9,{destroy:void 0},xj.bind(null,w,N,y,p),null),Qn===null)throw Error(r(349));k||(Bu&127)!==0||_j(w,p,y)}return y}function _j(f,p,y){f.flags|=16384,f={getSnapshot:p,value:y},p=Wt.updateQueue,p===null?(p=s_(),Wt.updateQueue=p,p.stores=[f]):(y=p.stores,y===null?p.stores=[f]:y.push(f))}function xj(f,p,y,w){p.value=y,p.getSnapshot=w,Sj(p)&&Cj(f)}function wj(f,p,y){return y(function(){Sj(p)&&Cj(f)})}function Sj(f){var p=f.getSnapshot;f=f.value;try{var y=p();return!xa(f,y)}catch{return!0}}function Cj(f){var p=Ff(f,2);p!==null&&Ws(p,f,2)}function G5(f){var p=_s();if(typeof f=="function"){var y=f;if(f=y(),Wf){Tn(!0);try{y()}finally{Tn(!1)}}}return p.memoizedState=p.baseState=f,p.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Hu,lastRenderedState:f},p}function Tj(f,p,y,w){return f.baseState=y,V5(f,Vn,typeof w=="function"?w:Hu)}
vendor: 5,617 bytes, line 8
8function OTe(f,p,y,w,N){if(c_(f))throw Error(r(485));if(f=p.action,f!==null){var k={payload:N,action:f,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(z){k.listeners.push(z)}};F.T!==null?y(!0):k.isTransition=!1,w(k),y=p.pending,y===null?(k.next=p.pending=k,Aj(p,k)):(k.next=y.next,p.pending=y.next=k)}}function Aj(f,p){var y=p.action,w=p.payload,N=f.state;if(p.isTransition){var k=F.T,z={};F.T=z;try{var ee=y(N,w),me=F.S;me!==null&&me(z,ee),Rj(f,p,ee)}catch(Ce){W5(f,p,Ce)}finally{k!==null&&z.types!==null&&(k.types=z.types),F.T=k}}else try{k=y(N,w),Rj(f,p,k)}catch(Ce){W5(f,p,Ce)}}function Rj(f,p,y){y!==null&&typeof y=="object"&&typeof y.then=="function"?y.then(function(w){Nj(f,p,w)},function(w){return W5(f,p,w)}):Nj(f,p,y)}function Nj(f,p,y){p.status="fulfilled",p.value=y,Oj(p),f.state=y,p=f.pending,p!==null&&(y=p.next,y===p?f.pending=null:(y=y.next,p.next=y,Aj(f,y)))}function W5(f,p,y){var w=f.pending;if(f.pending=null,w!==null){w=w.next;do p.status="rejected",p.reason=y,Oj(p),p=p.next;while(p!==w)}f.action=null}function Oj(f){f=f.listeners;for(var p=0;p<f.length;p++)(0,f[p])()}function kj(f,p){return p}function Ij(f,p){if(_n){var y=Qn.formState;if(y!==null){e:{var w=Wt;if(_n){if(dr){t:{for(var N=dr,k=no;N.nodeType!==8;){if(!k){N=null;break t}if(N=io(N.nextSibling),N===null){N=null;break t}}k=N.data,N=k==="F!"||k==="F"?N:null}if(N){dr=io(N.nextSibling),w=N.data==="F!";break e}}nd(w)}w=!1}w&&(p=y[0])}}return y=_s(),y.memoizedState=y.baseState=p,w={pending:null,lanes:0,dispatch:null,lastRenderedReducer:kj,lastRenderedState:p},y.queue=w,y=Qj.bind(null,Wt,w),w.dispatch=y,w=G5(!1),k=J5.bind(null,Wt,!1,w.queue),w=_s(),N={state:p,dispatch:null,action:f,pending:null},w.queue=N,y=OTe.bind(null,Wt,N,k,y),N.dispatch=y,w.memoizedState=f,[p,y,!1]}function Mj(f){var p=Kr();return Dj(p,Vn,f)}function Dj(f,p,y){if(p=V5(f,p,kj)[0],f=o_(Hu)[0],typeof p=="object"&&p!==null&&typeof p.then=="function")try{var w=M1(p)}catch(z){throw z===dm?QE:z}else w=p;p=Kr();var N=p.queue,k=N.dispatch;return y!==p.memoizedState&&(Wt.flags|=2048,gm(9,{destroy:void 0},kTe.bind(null,N,y),null)),[w,k,f]}function kTe(f,p){f.action=p}function Pj(f){var p=Kr(),y=Vn;if(y!==null)return Dj(p,y,f);Kr(),p=p.memoizedState,y=Kr();var w=y.queue.dispatch;return y.memoizedState=f,[p,w,!1]}function gm(f,p,y,w){return f={tag:f,create:y,deps:w,inst:p,next:null},p=Wt.updateQueue,p===null&&(p=s_(),Wt.updateQueue=p),y=p.lastEffect,y===null?p.lastEffect=f.next=f:(w=y.next,y.next=f,f.next=w,p.lastEffect=f),f}function Lj(){return Kr().memoizedState}function l_(f,p,y,w){var N=_s();Wt.flags|=f,N.memoizedState=gm(1|p,{destroy:void 0},y,w===void 0?null:w)}function u_(f,p,y,w){var N=Kr();w=w===void 0?null:w;var k=N.memoizedState.inst;Vn!==null&&w!==null&&F5(w,Vn.memoizedState.deps)?N.memoizedState=gm(p,k,y,w):(Wt.flags|=f,N.memoizedState=gm(1|p,k,y,w))}function $j(f,p){l_(8390656,8,f,p)}function Y5(f,p){u_(2048,8,f,p)}function ITe(f){Wt.flags|=4;var p=Wt.updateQueue;if(p===null)p=s_(),Wt.updateQueue=p,p.events=[f];else{var y=p.events;y===null?p.events=[f]:y.push(f)}}function Fj(f){var p=Kr().memoizedState;return ITe({ref:p,nextImpl:f}),function(){if((Dn&2)!==0)throw Error(r(440));return p.impl.apply(void 0,arguments)}}function Bj(f,p){return u_(4,2,f,p)}function Hj(f,p){return u_(4,4,f,p)}function Uj(f,p){if(typeof p=="function"){f=f();var y=p(f);return function(){typeof y=="function"?y():p(null)}}if(p!=null)return f=f(),p.current=f,function(){p.current=null}}function jj(f,p,y){y=y!=null?y.concat([f]):null,u_(4,4,Uj.bind(null,p,f),y)}function K5(){}function zj(f,p){var y=Kr();p=p===void 0?null:p;var w=y.memoizedState;return p!==null&&F5(p,w[1])?w[0]:(y.memoizedState=[f,p],f)}function Vj(f,p){var y=Kr();p=p===void 0?null:p;var w=y.memoizedState;if(p!==null&&F5(p,w[1]))return w[0];if(w=f(),Wf){Tn(!0);try{f()}finally{Tn(!1)}}return y.memoizedState=[w,p],w}function X5(f,p,y){return y===void 0||(Bu&1073741824)!==0&&(bn&261930)===0?f.memoizedState=p:(f.memoizedState=y,f=qz(),Wt.lanes|=f,dd|=f,y)}function qj(f,p,y,w){return xa(y,p)?y:hm.current!==null?(f=X5(f,y,w),xa(f,p)||(si=!0),f):(Bu&42)===0||(Bu&1073741824)!==0&&(bn&261930)===0?(si=!0,f.memoizedState=y):(f=qz(),Wt.lanes|=f,dd|=f,p)}function Gj(f,p,y,w,N){var k=G.p;G.p=k!==0&&8>k?k:8;var z=F.T,ee={};F.T=ee,J5(f,!1,p,y);try{var me=N(),Ce=F.S;if(Ce!==null&&Ce(ee,me),me!==null&&typeof me=="object"&&typeof me.then=="function"){var Pe=ATe(me,w);D1(f,p,Pe,Ra(f))}else D1(f,p,w,Ra(f))}catch(Be){D1(f,p,{then:function(){},status:"rejected",reason:Be},Ra())}finally{G.p=k,z!==null&&ee.types!==null&&(z.types=ee.types),F.T=z}}function MTe(){}function Q5(f,p,y,w){if(f.tag!==5)throw Error(r(476));var N=Wj(f).queue;Gj(f,N,p,H,y===null?MTe:function(){return Yj(f),y(w)})}function Wj(f){var p=f.memoizedState;if(p!==null)return p;p={memoizedState:H,baseState:H,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Hu,lastRenderedState:H},next:null};var y={};return p.next={memoizedState:y,baseState:y,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Hu,lastRenderedState:y},next:null},f.memoizedState=p,f=f.alternate,f!==null&&(f.memoizedState=p),p}function Yj(f){var p=Wj(f);p.next===null&&(p=f.alternate.memoizedState),D1(f,p.next.queue,{},Ra())}function Z5(){return Gi(Q1)}function Kj(){return Kr().memoizedState}function Xj(){return Kr().memoizedState}function DTe(f){for(var p=f.return;p!==null;){switch(p.tag){case 24:case 3:var y=Ra();f=sd(y);var w=ad(p,f,y);w!==null&&(Ws(w,p,y),N1(w,p,y)),p={cache:A5()},f.payload=p;return}p=p.return}}function PTe(f,p,y){var w=Ra();
vendor: 5,761 bytes, line 8
8y={lane:w,revertLane:0,gesture:null,action:y,hasEagerState:!1,eagerState:null,next:null},c_(f)?Zj(p,y):(y=g5(f,p,y,w),y!==null&&(Ws(y,f,w),Jj(y,p,w)))}function Qj(f,p,y){var w=Ra();D1(f,p,y,w)}function D1(f,p,y,w){var N={lane:w,revertLane:0,gesture:null,action:y,hasEagerState:!1,eagerState:null,next:null};if(c_(f))Zj(p,N);else{var k=f.alternate;if(f.lanes===0&&(k===null||k.lanes===0)&&(k=p.lastRenderedReducer,k!==null))try{var z=p.lastRenderedState,ee=k(z,y);if(N.hasEagerState=!0,N.eagerState=ee,xa(ee,z))return VE(f,p,N,0),Qn===null&&zE(),!1}catch{}if(y=g5(f,p,N,w),y!==null)return Ws(y,f,w),Jj(y,p,w),!0}return!1}function J5(f,p,y,w){if(w={lane:2,revertLane:kR(),gesture:null,action:w,hasEagerState:!1,eagerState:null,next:null},c_(f)){if(p)throw Error(r(479))}else p=g5(f,y,w,2),p!==null&&Ws(p,f,2)}function c_(f){var p=f.alternate;return f===Wt||p!==null&&p===Wt}function Zj(f,p){pm=r_=!0;var y=f.pending;y===null?p.next=p:(p.next=y.next,y.next=p),f.pending=p}function Jj(f,p,y){if((y&4194048)!==0){var w=p.lanes;w&=f.pendingLanes,y|=w,p.lanes=y,he(f,y)}}var P1={readContext:Gi,use:a_,useCallback:Lr,useContext:Lr,useEffect:Lr,useImperativeHandle:Lr,useLayoutEffect:Lr,useInsertionEffect:Lr,useMemo:Lr,useReducer:Lr,useRef:Lr,useState:Lr,useDebugValue:Lr,useDeferredValue:Lr,useTransition:Lr,useSyncExternalStore:Lr,useId:Lr,useHostTransitionStatus:Lr,useFormState:Lr,useActionState:Lr,useOptimistic:Lr,useMemoCache:Lr,useCacheRefresh:Lr};P1.useEffectEvent=Lr;var ez={readContext:Gi,use:a_,useCallback:function(f,p){return _s().memoizedState=[f,p===void 0?null:p],f},useContext:Gi,useEffect:$j,useImperativeHandle:function(f,p,y){y=y!=null?y.concat([f]):null,l_(4194308,4,Uj.bind(null,p,f),y)},useLayoutEffect:function(f,p){return l_(4194308,4,f,p)},useInsertionEffect:function(f,p){l_(4,2,f,p)},useMemo:function(f,p){var y=_s();p=p===void 0?null:p;var w=f();if(Wf){Tn(!0);try{f()}finally{Tn(!1)}}return y.memoizedState=[w,p],w},useReducer:function(f,p,y){var w=_s();if(y!==void 0){var N=y(p);if(Wf){Tn(!0);try{y(p)}finally{Tn(!1)}}}else N=p;return w.memoizedState=w.baseState=N,f={pending:null,lanes:0,dispatch:null,lastRenderedReducer:f,lastRenderedState:N},w.queue=f,f=f.dispatch=PTe.bind(null,Wt,f),[w.memoizedState,f]},useRef:function(f){var p=_s();return f={current:f},p.memoizedState=f},useState:function(f){f=G5(f);var p=f.queue,y=Qj.bind(null,Wt,p);return p.dispatch=y,[f.memoizedState,y]},useDebugValue:K5,useDeferredValue:function(f,p){var y=_s();return X5(y,f,p)},useTransition:function(){var f=G5(!1);return f=Gj.bind(null,Wt,f.queue,!0,!1),_s().memoizedState=f,[!1,f]},useSyncExternalStore:function(f,p,y){var w=Wt,N=_s();if(_n){if(y===void 0)throw Error(r(407));y=y()}else{if(y=p(),Qn===null)throw Error(r(349));(bn&127)!==0||_j(w,p,y)}N.memoizedState=y;var k={value:y,getSnapshot:p};return N.queue=k,$j(wj.bind(null,w,k,f),[f]),w.flags|=2048,gm(9,{destroy:void 0},xj.bind(null,w,k,y,p),null),y},useId:function(){var f=_s(),p=Qn.identifierPrefix;if(_n){var y=Tl,w=Cl;y=(w&~(1<<32-qt(w)-1)).toString(32)+y,p="_"+p+"R_"+y,y=i_++,0<y&&(p+="H"+y.toString(32)),p+="_"}else y=RTe++,p="_"+p+"r_"+y.toString(32)+"_";return f.memoizedState=p},useHostTransitionStatus:Z5,useFormState:Ij,useActionState:Ij,useOptimistic:function(f){var p=_s();p.memoizedState=p.baseState=f;var y={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return p.queue=y,p=J5.bind(null,Wt,!0,y),y.dispatch=p,[f,p]},useMemoCache:z5,useCacheRefresh:function(){return _s().memoizedState=DTe.bind(null,Wt)},useEffectEvent:function(f){var p=_s(),y={impl:f};return p.memoizedState=y,function(){if((Dn&2)!==0)throw Error(r(440));return y.impl.apply(void 0,arguments)}}},eR={readContext:Gi,use:a_,useCallback:zj,useContext:Gi,useEffect:Y5,useImperativeHandle:jj,useInsertionEffect:Bj,useLayoutEffect:Hj,useMemo:Vj,useReducer:o_,useRef:Lj,useState:function(){return o_(Hu)},useDebugValue:K5,useDeferredValue:function(f,p){var y=Kr();return qj(y,Vn.memoizedState,f,p)},useTransition:function(){var f=o_(Hu)[0],p=Kr().memoizedState;return[typeof f=="boolean"?f:M1(f),p]},useSyncExternalStore:Ej,useId:Kj,useHostTransitionStatus:Z5,useFormState:Mj,useActionState:Mj,useOptimistic:function(f,p){var y=Kr();return Tj(y,Vn,f,p)},useMemoCache:z5,useCacheRefresh:Xj};eR.useEffectEvent=Fj;var tz={readContext:Gi,use:a_,useCallback:zj,useContext:Gi,useEffect:Y5,useImperativeHandle:jj,useInsertionEffect:Bj,useLayoutEffect:Hj,useMemo:Vj,useReducer:q5,useRef:Lj,useState:function(){return q5(Hu)},useDebugValue:K5,useDeferredValue:function(f,p){var y=Kr();return Vn===null?X5(y,f,p):qj(y,Vn.memoizedState,f,p)},useTransition:function(){var f=q5(Hu)[0],p=Kr().memoizedState;return[typeof f=="boolean"?f:M1(f),p]},useSyncExternalStore:Ej,useId:Kj,useHostTransitionStatus:Z5,useFormState:Pj,useActionState:Pj,useOptimistic:function(f,p){var y=Kr();return Vn!==null?Tj(y,Vn,f,p):(y.baseState=f,[f,y.queue.dispatch])},useMemoCache:z5,useCacheRefresh:Xj};tz.useEffectEvent=Fj;function tR(f,p,y,w){p=f.memoizedState,y=y(w,p),y=y==null?p:d({},p,y),f.memoizedState=y,f.lanes===0&&(f.updateQueue.baseState=y)}var nR={enqueueSetState:function(f,p,y){f=f._reactInternals;var w=Ra(),N=sd(w);N.payload=p,y!=null&&(N.callback=y),p=ad(f,N,w),p!==null&&(Ws(p,f,w),N1(p,f,w))},enqueueReplaceState:function(f,p,y){f=f._reactInternals;var w=Ra(),N=sd(w);N.tag=1,N.payload=p,y!=null&&(N.callback=y),p=ad(f,N,w),p!==null&&(Ws(p,f,w),N1(p,f,w))},enqueueForceUpdate:function(f,p){f=f._reactInternals;var y=Ra(),w=sd(y);w.tag=2,p!=null&&(w.callback=p),p=ad(f,w,y),p!==null&&(Ws(p,f,y),N1(p,f,y))}};function nz(f,p,y,w,N,k,z){return f=f.stateNode,typeof f.shouldComponentUpdate=="function"?f.shouldComponentUpdate(w,k,z):p.prototype&&p.prototype.isPureReactComponent?!_1(y,w)||!_1(N,k
vendor: 15,996 bytes, line 8
8):!0}function rz(f,p,y,w){f=p.state,typeof p.componentWillReceiveProps=="function"&&p.componentWillReceiveProps(y,w),typeof p.UNSAFE_componentWillReceiveProps=="function"&&p.UNSAFE_componentWillReceiveProps(y,w),p.state!==f&&nR.enqueueReplaceState(p,p.state,null)}function Yf(f,p){var y=p;if("ref"in p){y={};for(var w in p)w!=="ref"&&(y[w]=p[w])}if(f=f.defaultProps){y===p&&(y=d({},y));for(var N in f)y[N]===void 0&&(y[N]=f[N])}return y}function iz(f){jE(f)}function sz(f){console.error(f)}function az(f){jE(f)}function d_(f,p){try{var y=f.onUncaughtError;y(p.value,{componentStack:p.stack})}catch(w){setTimeout(function(){throw w})}}function oz(f,p,y){try{var w=f.onCaughtError;w(y.value,{componentStack:y.stack,errorBoundary:p.tag===1?p.stateNode:null})}catch(N){setTimeout(function(){throw N})}}function rR(f,p,y){return y=sd(y),y.tag=3,y.payload={element:null},y.callback=function(){d_(f,p)},y}function lz(f){return f=sd(f),f.tag=3,f}function uz(f,p,y,w){var N=y.type.getDerivedStateFromError;if(typeof N=="function"){var k=w.value;f.payload=function(){return N(k)},f.callback=function(){oz(p,y,w)}}var z=y.stateNode;z!==null&&typeof z.componentDidCatch=="function"&&(f.callback=function(){oz(p,y,w),typeof N!="function"&&(fd===null?fd=new Set([this]):fd.add(this));var ee=w.stack;this.componentDidCatch(w.value,{componentStack:ee!==null?ee:""})})}function LTe(f,p,y,w,N){if(y.flags|=32768,w!==null&&typeof w=="object"&&typeof w.then=="function"){if(p=y.alternate,p!==null&&lm(p,y,N,!0),y=Sa.current,y!==null){switch(y.tag){case 31:case 13:return ro===null?w_():y.alternate===null&&$r===0&&($r=3),y.flags&=-257,y.flags|=65536,y.lanes=N,w===ZE?y.flags|=16384:(p=y.updateQueue,p===null?y.updateQueue=new Set([w]):p.add(w),RR(f,w,N)),!1;case 22:return y.flags|=65536,w===ZE?y.flags|=16384:(p=y.updateQueue,p===null?(p={transitions:null,markerInstances:null,retryQueue:new Set([w])},y.updateQueue=p):(y=p.retryQueue,y===null?p.retryQueue=new Set([w]):y.add(w)),RR(f,w,N)),!1}throw Error(r(435,y.tag))}return RR(f,w,N),w_(),!1}if(_n)return p=Sa.current,p!==null?((p.flags&65536)===0&&(p.flags|=256),p.flags|=65536,p.lanes=N,w!==x5&&(f=Error(r(422),{cause:w}),S1(Ja(f,y)))):(w!==x5&&(p=Error(r(423),{cause:w}),S1(Ja(p,y))),f=f.current.alternate,f.flags|=65536,N&=-N,f.lanes|=N,w=Ja(w,y),N=rR(f.stateNode,w,N),M5(f,N),$r!==4&&($r=2)),!1;var k=Error(r(520),{cause:w});if(k=Ja(k,y),z1===null?z1=[k]:z1.push(k),$r!==4&&($r=2),p===null)return!0;w=Ja(w,y),y=p;do{switch(y.tag){case 3:return y.flags|=65536,f=N&-N,y.lanes|=f,f=rR(y.stateNode,w,f),M5(y,f),!1;case 1:if(p=y.type,k=y.stateNode,(y.flags&128)===0&&(typeof p.getDerivedStateFromError=="function"||k!==null&&typeof k.componentDidCatch=="function"&&(fd===null||!fd.has(k))))return y.flags|=65536,N&=-N,y.lanes|=N,N=lz(N),uz(N,f,y,w),M5(y,N),!1}y=y.return}while(y!==null);return!1}var iR=Error(r(461)),si=!1;function Wi(f,p,y,w){p.child=f===null?hj(p,null,y,w):Gf(p,f.child,y,w)}function cz(f,p,y,w,N){y=y.render;var k=p.ref;if("ref"in w){var z={};for(var ee in w)ee!=="ref"&&(z[ee]=w[ee])}else z=w;return jf(p),w=B5(f,p,y,z,k,N),ee=H5(),f!==null&&!si?(U5(f,p,N),Uu(f,p,N)):(_n&&ee&&E5(p),p.flags|=1,Wi(f,p,w,N),p.child)}function dz(f,p,y,w,N){if(f===null){var k=y.type;return typeof k=="function"&&!y5(k)&&k.defaultProps===void 0&&y.compare===null?(p.tag=15,p.type=k,fz(f,p,k,w,N)):(f=GE(y.type,null,w,p,p.mode,N),f.ref=p.ref,f.return=p,p.child=f)}if(k=f.child,!fR(f,N)){var z=k.memoizedProps;if(y=y.compare,y=y!==null?y:_1,y(z,w)&&f.ref===p.ref)return Uu(f,p,N)}return p.flags|=1,f=Pu(k,w),f.ref=p.ref,f.return=p,p.child=f}function fz(f,p,y,w,N){if(f!==null){var k=f.memoizedProps;if(_1(k,w)&&f.ref===p.ref)if(si=!1,p.pendingProps=w=k,fR(f,N))(f.flags&131072)!==0&&(si=!0);else return p.lanes=f.lanes,Uu(f,p,N)}return sR(f,p,y,w,N)}function hz(f,p,y,w){var N=w.children,k=f!==null?f.memoizedState:null;if(f===null&&p.stateNode===null&&(p.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),w.mode==="hidden"){if((p.flags&128)!==0){if(k=k!==null?k.baseLanes|y:y,f!==null){for(w=p.child=f.child,N=0;w!==null;)N=N|w.lanes|w.childLanes,w=w.sibling;w=N&~k}else w=0,p.child=null;return pz(f,p,k,y,w)}if((y&536870912)!==0)p.memoizedState={baseLanes:0,cachePool:null},f!==null&&XE(p,k!==null?k.cachePool:null),k!==null?gj(p,k):P5(),yj(p);else return w=p.lanes=536870912,pz(f,p,k!==null?k.baseLanes|y:y,y,w)}else k!==null?(XE(p,k.cachePool),gj(p,k),ld(),p.memoizedState=null):(f!==null&&XE(p,null),P5(),ld());return Wi(f,p,N,y),p.child}function L1(f,p){return f!==null&&f.tag===22||p.stateNode!==null||(p.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),p.sibling}function pz(f,p,y,w,N){var k=N5();return k=k===null?null:{parent:ri._currentValue,pool:k},p.memoizedState={baseLanes:y,cachePool:k},f!==null&&XE(p,null),P5(),yj(p),f!==null&&lm(f,p,w,!0),p.childLanes=N,null}function f_(f,p){return p=p_({mode:p.mode,children:p.children},f.mode),p.ref=f.ref,f.child=p,p.return=f,p}function mz(f,p,y){return Gf(p,f.child,null,y),f=f_(p,p.pendingProps),f.flags|=2,Ca(p),p.memoizedState=null,f}function $Te(f,p,y){var w=p.pendingProps,N=(p.flags&128)!==0;if(p.flags&=-129,f===null){if(_n){if(w.mode==="hidden")return f=f_(p,w),p.lanes=536870912,L1(null,f);if($5(p),(f=dr)?(f=AV(f,no),f=f!==null&&f.data==="&"?f:null,f!==null&&(p.memoizedState={dehydrated:f,treeContext:ed!==null?{id:Cl,overflow:Tl}:null,retryLane:536870912,hydrationErrors:null},y=ZU(f),y.return=p,p.child=y,qi=p,dr=null)):f=null,f===null)throw nd(p);return p.lanes=536870912,null}return f_(p,w)}var k=f.memoizedState;if(k!==null){var z=k.dehydrated;if($5(p),N)if(p.flags&256)p.flags&=-257,p=mz(f,p,y);else if(p.memoizedState!==null)p.child=f.child,p.flags|=128,p=null;else throw Error(r(558));else if(si||lm(f,p,y,!1),N=(y&f.childLanes)!==0,si||N){if(w=Qn,w!==null&&(z=Ee(w,y),z!==0&&z!==k.retryLane))throw k.retryLane=z,Ff(f,z),Ws(w,f,z),iR;w_(),p=mz(f,p,y)}else f=k.treeContext,dr=io(z.nextSibling),qi=p,_n=!0,td=null,no=!1,f!==null&&tj(p,f),p=f_(p,w),p.flags|=4096;return p}return f=Pu(f.child,{mode:w.mode,children:w.children}),f.ref=p.ref,p.child=f,f.return=p,f}function h_(f,p){var y=p.ref;if(y===null)f!==null&&f.ref!==null&&(p.flags|=4194816);else{if(typeof y!="function"&&typeof y!="object")throw Error(r(284));(f===null||f.ref!==y)&&(p.flags|=4194816)}}function sR(f,p,y,w,N){return jf(p),y=B5(f,p,y,w,void 0,N),w=H5(),f!==null&&!si?(U5(f,p,N),Uu(f,p,N)):(_n&&w&&E5(p),p.flags|=1,Wi(f,p,y,N),p.child)}function gz(f,p,y,w,N,k){return jf(p),p.updateQueue=null,y=vj(p,w,y,N),bj(f),w=H5(),f!==null&&!si?(U5(f,p,k),Uu(f,p,k)):(_n&&w&&E5(p),p.flags|=1,Wi(f,p,y,k),p.child)}function yz(f,p,y,w,N){if(jf(p),p.stateNode===null){var k=im,z=y.contextType;typeof z=="object"&&z!==null&&(k=Gi(z)),k=new y(w,k),p.memoizedState=k.state!==null&&k.state!==void 0?k.state:null,k.updater=nR,p.stateNode=k,k._reactInternals=p,k=p.stateNode,k.props=w,k.state=p.memoizedState,k.refs={},k5(p),z=y.contextType,k.context=typeof z=="object"&&z!==null?Gi(z):im,k.state=p.memoizedState,z=y.getDerivedStateFromProps,typeof z=="function"&&(tR(p,y,z,w),k.state=p.memoizedState),typeof y.getDerivedStateFromProps=="function"||typeof k.getSnapshotBeforeUpdate=="function"||typeof k.UNSAFE_componentWillMount!="function"&&typeof k.componentWillMount!="function"||(z=k.state,typeof k.componentWillMount=="function"&&k.componentWillMount(),typeof k.UNSAFE_componentWillMount=="function"&&k.UNSAFE_componentWillMount(),z!==k.state&&nR.enqueueReplaceState(k,k.state,null),k1(p,w,k,N),O1(),k.state=p.memoizedState),typeof k.componentDidMount=="function"&&(p.flags|=4194308),w=!0}else if(f===null){k=p.stateNode;var ee=p.memoizedProps,me=Yf(y,ee);k.props=me;var Ce=k.context,Pe=y.contextType;z=im,typeof Pe=="object"&&Pe!==null&&(z=Gi(Pe));var Be=y.getDerivedStateFromProps;Pe=typeof Be=="function"||typeof k.getSnapshotBeforeUpdate=="function",ee=p.pendingProps!==ee,Pe||typeof k.UNSAFE_componentWillReceiveProps!="function"&&typeof k.componentWillReceiveProps!="function"||(ee||Ce!==z)&&rz(p,k,w,z),id=!1;var Ae=p.memoizedState;k.state=Ae,k1(p,w,k,N),O1(),Ce=p.memoizedState,ee||Ae!==Ce||id?(typeof Be=="function"&&(tR(p,y,Be,w),Ce=p.memoizedState),(me=id||nz(p,y,me,w,Ae,Ce,z))?(Pe||typeof k.UNSAFE_componentWillMount!="function"&&typeof k.componentWillMount!="function"||(typeof k.componentWillMount=="function"&&k.componentWillMount(),typeof k.UNSAFE_componentWillMount=="function"&&k.UNSAFE_componentWillMount()),typeof k.componentDidMount=="function"&&(p.flags|=4194308)):(typeof k.componentDidMount=="function"&&(p.flags|=4194308),p.memoizedProps=w,p.memoizedState=Ce),k.props=w,k.state=Ce,k.context=z,w=me):(typeof k.componentDidMount=="function"&&(p.flags|=4194308),w=!1)}else{k=p.stateNode,I5(f,p),z=p.memoizedProps,Pe=Yf(y,z),k.props=Pe,Be=p.pendingProps,Ae=k.context,Ce=y.contextType,me=im,typeof Ce=="object"&&Ce!==null&&(me=Gi(Ce)),ee=y.getDerivedStateFromProps,(Ce=typeof ee=="function"||typeof k.getSnapshotBeforeUpdate=="function")||typeof k.UNSAFE_componentWillReceiveProps!="function"&&typeof k.componentWillReceiveProps!="function"||(z!==Be||Ae!==me)&&rz(p,k,w,me),id=!1,Ae=p.memoizedState,k.state=Ae,k1(p,w,k,N),O1();var ke=p.memoizedState;z!==Be||Ae!==ke||id||f!==null&&f.dependencies!==null&&YE(f.dependencies)?(typeof ee=="function"&&(tR(p,y,ee,w),ke=p.memoizedState),(Pe=id||nz(p,y,Pe,w,Ae,ke,me)||f!==null&&f.dependencies!==null&&YE(f.dependencies))?(Ce||typeof k.UNSAFE_componentWillUpdate!="function"&&typeof k.componentWillUpdate!="function"||(typeof k.componentWillUpdate=="function"&&k.componentWillUpdate(w,ke,me),typeof k.UNSAFE_componentWillUpdate=="function"&&k.UNSAFE_componentWillUpdate(w,ke,me)),typeof k.componentDidUpdate=="function"&&(p.flags|=4),typeof k.getSnapshotBeforeUpdate=="function"&&(p.flags|=1024)):(typeof k.componentDidUpdate!="function"||z===f.memoizedProps&&Ae===f.memoizedState||(p.flags|=4),typeof k.getSnapshotBeforeUpdate!="function"||z===f.memoizedProps&&Ae===f.memoizedState||(p.flags|=1024),p.memoizedProps=w,p.memoizedState=ke),k.props=w,k.state=ke,k.context=me,w=Pe):(typeof k.componentDidUpdate!="function"||z===f.memoizedProps&&Ae===f.memoizedState||(p.flags|=4),typeof k.getSnapshotBeforeUpdate!="function"||z===f.memoizedProps&&Ae===f.memoizedState||(p.flags|=1024),w=!1)}return k=w,h_(f,p),w=(p.flags&128)!==0,k||w?(k=p.stateNode,y=w&&typeof y.getDerivedStateFromError!="function"?null:k.render(),p.flags|=1,f!==null&&w?(p.child=Gf(p,f.child,null,N),p.child=Gf(p,null,y,N)):Wi(f,p,y,N),p.memoizedState=k.state,f=p.child):f=Uu(f,p,N),f}function bz(f,p,y,w){return Hf(),p.flags|=256,Wi(f,p,y,w),p.child}var aR={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function oR(f){return{baseLanes:f,cachePool:oj()}}function lR(f,p,y){return f=f!==null?f.childLanes&~y:0,p&&(f|=Aa),f}function vz(f,p,y){var w=p.pendingProps,N=!1,k=(p.flags&128)!==0,z;if((z=k)||(z=f!==null&&f.memoizedState===null?!1:(Yr.current&2)!==0),z&&(N=!0,p.flags&=-129),z=(p.flags&32)!==0,p.flags&=-33,f===null){if(_n){if(N?od(p):ld(),(f=dr)?(f=AV(f,no),f=f!==null&&f.data!=="&"?f:null,f!==null&&(p.memoizedState={dehydrated:f,treeContext:ed!==null?{id:Cl,overflow:Tl}:null,retryLane:536870912,hydrationErrors:null},y=ZU(f),y.return=p,p.child=y,qi=p,dr=null)):f=null,f===null)throw nd(p);return VR(f)?p.lanes=32:p.lanes=536870912,null}var ee=w.children;return w=w.fallback,N?(ld(),N=p.mode,ee=p_({mode:"hidden",children:ee},N),w=Bf(w,N,y,null),ee.return=p,w.return=p,ee.sibling=w,p.child=ee,w=p.child,w.memoizedState=oR(y),w.childLanes=lR(f,z,y),p.memoizedState=aR,L1(null,w)):(od(p),uR(p,ee))}var me=f.memoizedState;if(me!==null&&(ee=me.dehydrated,ee!==null)){if(k)p.flags&256?(od(p),p.flags&=-257,p=cR(f,p,y)):p.memoizedState!==null?(ld(),p.child=f.child,p.flags|=128,p=null):(ld(),ee=w.fallback,N=p.mode,w=p_({mode:"visible",children:w.children},N),ee=Bf(ee,N,y,null),ee.flags|=2,w.return=p,ee.return=p,w.sibling=ee,p.child=w,Gf(p,f.child,null,y),w=p.child,w.memoizedState=oR(y),w.childLanes=lR(f,z,y),p.memoizedState=aR,p=L1(null,w));else if(od(p),VR(ee)){if(z=ee.nextSibling&&ee.nextSibling.dataset,z)var Ce=z.dgst;z=Ce,w=Error(r(419)),w.stack="",w.digest=z,S1({value:w,source:null,stack:null}),p=cR(f,p,y)}else if(si||lm(f,p,y,!1),z=(y&f.childLanes)!==0,si||z){if(z=Qn,z!==null&&(w=Ee(z,y),w!==0&&w!==me.retryLane))throw me.retryLane=w,Ff(f,w),Ws(z,f,w),iR;zR(ee)||w_(),p=cR(f,p,y)}else zR(ee)?(p.flags|=192,p.child=f.child,p=null):(f=me.treeContext,dr=io(ee.nextSibling),qi=p,_n=!0,td=null,no=!1,f!==null&&tj(p,f),p=uR(p,w.children),p.flags|=4096);return p}return N?(ld(),ee=w.fallback,N=p.mode,me=f.child,Ce=me.sibling,w=Pu(me,{mode:"hidden",children:w.children}),w.subtreeFlags=me.subtreeFlags&65011712,Ce!==null?ee=Pu(Ce,ee):(ee=Bf(ee,N,y,null),ee.flags|=2),ee.return=p,w.return=p,w.sibling=ee,p.child=w,L1(null,w),w=p.child,ee=f.child.memoizedState,ee===null?ee=oR(y):(N=ee.cachePool,N!==null?(me=ri._currentValue,N=N.parent!==me?{parent:me,pool:me}:N):N=oj(),ee={baseLanes:ee.baseLanes|y,cachePool:N}),w.memoizedState=ee,w.childLanes=lR(f,z,y),p.memoizedState=aR,L1(f.child,w)):(od(p),y=f.child,f=y.sibling,y=Pu(y,{mode:"visible",children:w.children}),y.return=p,y.sibling=null,f!==null&&(z=p.deletions,z===null?(p.deletions=[f],p.flags|=16):z.push(f)),p.child=y,p.memoizedState=null,y)}function uR(f,p){return p=p_({mode:"visible",children:p},f.mode),p.return=f,f.child=p}function p_(f,p){return f=wa(22,f,null,p),f.lanes=0,f}function cR(f,p,y){return Gf(p,f.child,null,y),f=uR(p,p.pendingProps.children),f.flags|=2,p.memoizedState=null,f}function Ez(f,p,y){f.lanes|=p;var w=f.alternate;w!==null&&(w.lanes|=p),C5(f.return,p,y)}function dR(f,p,y,w,N,k){var z=f.memoizedState;z===null?f.memoizedState={isBackwards:p,rendering:null,renderingStartTime:0,last:w,tail:y,tailMode:N,treeForkCount:k}:(z.isBackwards=p,z.rendering=null,z.renderingStartTime=0,z.last=w,z.tail=y,z.tailMode=N,z.treeForkCount=k)}function _z(f,p,y){var w=p.pendingProps,N=w.revealOrder,k=w.tail;w=w.children;var z=Yr.current,ee=(z&2)!==0;if(ee?(z=z&1|2,p.flags|=128):z&=1,W(Yr,z),Wi(f,p,w,y),w=_n?w1:0,!ee&&f!==null&&(f.flags&128)!==0)e:for(f=p.child;f!==null;){if(f.tag===13)f.memoizedState!==null&&Ez(f,y,p);else if(f.tag===19)Ez(f,y,p);else if(f.child!==null){f.child.return=f,f=f.child;continue}if(f===p)break e;for(;f.sibling===null;){if(f.return===null||f.return===p)break e;f=f.return}f.sibling.return=f.return,f=f.sibling}switch(N){case"forwards":for(y=p.child,N=null;y!==null;)f=y.alternate,f!==null&&n_(f)===null&&(N=y),y=y.sibling;y=N,y===null?(N=p.child,p.child=null):(N=y.sibling,y.sibling=null),dR(p,!1,N,y,k,w);break;case"backwards":case"unstable_legacy-backwards":for(y=null,N=p.child,p.child=null;N!==null;){if(f=N.alternate,f!==null&&n_(f)===null){p.child=N;break}f=N.sibling,N.sibling=y,y=N,N=f}dR(p,!0,y,null,k,w);break;case"together":dR(p,!1,null,null,void 0,w);break;default:p.memoizedState=null}return p.child}function Uu(f,p,y){if(f!==null&&(p.dependencies=f.dependencies),dd|=p.lanes,(y&p.childLanes)===0)if(f!==null){if(lm(f,p,y,!1),(y&p.childLanes)===0)return null}else return null;if(f!==null&&p.child!==f.child)throw Error(r(153));if(p.child!==null){for(f=p.child,y=Pu(f,f.pendingProps),p.child=y,y.return=p;f.sibling!==null;)f=f.sibling,y=y.sibling=Pu(f,f.pendingProps),y.return=p;y.sibling=null}return p.child}function fR(f,p){return(f.lanes&p)!==0?!0:(f=f.dependencies,!!(f!==null&&YE(f)))}function FTe(f,p,y){switch(p.tag){case 3:ae(p,p.stateNode.containerInfo),rd(p,ri,f.memoizedState.cache),Hf();break;case 27:case 5:ve(p);break;case 4:ae(p,p.stateNode.containerInfo);break;case 10:rd(p,p.type,p.memoizedProps.value);break;case 31:if(p.memoizedState!==null)return p.flags|=128,$5(p),null;break;case 13:var w=p.memoizedState;if(w!==null)return w.dehydrated!==null?(od(p),p.flags|=128,null):(y&p.child.childLanes)!==0?vz(f,p,y):(od(p),f=Uu(f,p,y),f!==null?f.sibling:null);od(p);break;case 19:var N=(f.flags&128)!==0;if(w=(y&p.childLanes)!==0,w||(lm(f,p,y,!1),w=(y&p.childLanes)!==0),N){if
vendor: 4,272 bytes, line 8
8(w)return _z(f,p,y);p.flags|=128}if(N=p.memoizedState,N!==null&&(N.rendering=null,N.tail=null,N.lastEffect=null),W(Yr,Yr.current),w)break;return null;case 22:return p.lanes=0,hz(f,p,y,p.pendingProps);case 24:rd(p,ri,f.memoizedState.cache)}return Uu(f,p,y)}function xz(f,p,y){if(f!==null)if(f.memoizedProps!==p.pendingProps)si=!0;else{if(!fR(f,y)&&(p.flags&128)===0)return si=!1,FTe(f,p,y);si=(f.flags&131072)!==0}else si=!1,_n&&(p.flags&1048576)!==0&&ej(p,w1,p.index);switch(p.lanes=0,p.tag){case 16:e:{var w=p.pendingProps;if(f=Vf(p.elementType),p.type=f,typeof f=="function")y5(f)?(w=Yf(f,w),p.tag=1,p=yz(null,p,f,w,y)):(p.tag=0,p=sR(null,p,f,w,y));else{if(f!=null){var N=f.$$typeof;if(N===S){p.tag=11,p=cz(null,p,f,w,y);break e}else if(N===T){p.tag=14,p=dz(null,p,f,w,y);break e}}throw p=$(f)||f,Error(r(306,p,""))}}return p;case 0:return sR(f,p,p.type,p.pendingProps,y);case 1:return w=p.type,N=Yf(w,p.pendingProps),yz(f,p,w,N,y);case 3:e:{if(ae(p,p.stateNode.containerInfo),f===null)throw Error(r(387));w=p.pendingProps;var k=p.memoizedState;N=k.element,I5(f,p),k1(p,w,null,y);var z=p.memoizedState;if(w=z.cache,rd(p,ri,w),w!==k.cache&&T5(p,[ri],y,!0),O1(),w=z.element,k.isDehydrated)if(k={element:w,isDehydrated:!1,cache:z.cache},p.updateQueue.baseState=k,p.memoizedState=k,p.flags&256){p=bz(f,p,w,y);break e}else if(w!==N){N=Ja(Error(r(424)),p),S1(N),p=bz(f,p,w,y);break e}else for(f=p.stateNode.containerInfo,f.nodeType===9?f=f.body:f=f.nodeName==="HTML"?f.ownerDocument.body:f,dr=io(f.firstChild),qi=p,_n=!0,td=null,no=!0,y=hj(p,null,w,y),p.child=y;y;)y.flags=y.flags&-3|4096,y=y.sibling;else{if(Hf(),w===N){p=Uu(f,p,y);break e}Wi(f,p,w,y)}p=p.child}return p;case 26:return h_(f,p),f===null?(y=MV(p.type,null,p.pendingProps,null))?p.memoizedState=y:_n||(y=p.type,f=p.pendingProps,w=O_(se.current).createElement(y),w[Je]=p,w[it]=f,Yi(w,y,f),nr(w),p.stateNode=w):p.memoizedState=MV(p.type,f.memoizedProps,p.pendingProps,f.memoizedState),null;case 27:return ve(p),f===null&&_n&&(w=p.stateNode=OV(p.type,p.pendingProps,se.current),qi=p,no=!0,N=dr,gd(p.type)?(qR=N,dr=io(w.firstChild)):dr=N),Wi(f,p,p.pendingProps.children,y),h_(f,p),f===null&&(p.flags|=4194304),p.child;case 5:return f===null&&_n&&((N=w=dr)&&(w=p3e(w,p.type,p.pendingProps,no),w!==null?(p.stateNode=w,qi=p,dr=io(w.firstChild),no=!1,N=!0):N=!1),N||nd(p)),ve(p),N=p.type,k=p.pendingProps,z=f!==null?f.memoizedProps:null,w=k.children,HR(N,k)?w=null:z!==null&&HR(N,z)&&(p.flags|=32),p.memoizedState!==null&&(N=B5(f,p,NTe,null,null,y),Q1._currentValue=N),h_(f,p),Wi(f,p,w,y),p.child;case 6:return f===null&&_n&&((f=y=dr)&&(y=m3e(y,p.pendingProps,no),y!==null?(p.stateNode=y,qi=p,dr=null,f=!0):f=!1),f||nd(p)),null;case 13:return vz(f,p,y);case 4:return ae(p,p.stateNode.containerInfo),w=p.pendingProps,f===null?p.child=Gf(p,null,w,y):Wi(f,p,w,y),p.child;case 11:return cz(f,p,p.type,p.pendingProps,y);case 7:return Wi(f,p,p.pendingProps,y),p.child;case 8:return Wi(f,p,p.pendingProps.children,y),p.child;case 12:return Wi(f,p,p.pendingProps.children,y),p.child;case 10:return w=p.pendingProps,rd(p,p.type,w.value),Wi(f,p,w.children,y),p.child;case 9:return N=p.type._context,w=p.pendingProps.children,jf(p),N=Gi(N),w=w(N),p.flags|=1,Wi(f,p,w,y),p.child;case 14:return dz(f,p,p.type,p.pendingProps,y);case 15:return fz(f,p,p.type,p.pendingProps,y);case 19:return _z(f,p,y);case 31:return $Te(f,p,y);case 22:return hz(f,p,y,p.pendingProps);case 24:return jf(p),w=Gi(ri),f===null?(N=N5(),N===null&&(N=Qn,k=A5(),N.pooledCache=k,k.refCount++,k!==null&&(N.pooledCacheLanes|=y),N=k),p.memoizedState={parent:w,cache:N},k5(p),rd(p,ri,N)):((f.lanes&y)!==0&&(I5(f,p),k1(p,null,null,y),O1()),N=f.memoizedState,k=p.memoizedState,N.parent!==w?(N={parent:w,cache:w},p.memoizedState=N,p.lanes===0&&(p.memoizedState=p.updateQueue.baseState=N),rd(p,ri,w)):(w=k.cache,rd(p,ri,w),w!==N.cache&&T5(p,[ri],y,!0))),Wi(f,p,p.pendingProps.children,y),p.child;case 29:throw p.pendingProps}throw Error(r(156,p.tag))}function ju(f){f.flags|=4}function hR(f,p,y,w,N){if((p=(f.mode&32)!==0)&&(p=!1),p){if(f.flags|=16777216,(N&335544128)===N)if(f.stateNode.complete)f.flags|=8192;else if(Kz())f.flags|=8192;else throw qf=ZE,O5}else f.flags&=-16777217}function wz(f,p){if(p.type!=="stylesheet"||(p.state.loading&4)!==0)f.flags&=-16777217;
vendor: 5,804 bytes, line 8
8else if(f.flags|=16777216,!FV(p))if(Kz())f.flags|=8192;else throw qf=ZE,O5}function m_(f,p){p!==null&&(f.flags|=4),f.flags&16384&&(p=f.tag!==22?lr():536870912,f.lanes|=p,Em|=p)}function $1(f,p){if(!_n)switch(f.tailMode){case"hidden":p=f.tail;for(var y=null;p!==null;)p.alternate!==null&&(y=p),p=p.sibling;y===null?f.tail=null:y.sibling=null;break;case"collapsed":y=f.tail;for(var w=null;y!==null;)y.alternate!==null&&(w=y),y=y.sibling;w===null?p||f.tail===null?f.tail=null:f.tail.sibling=null:w.sibling=null}}function fr(f){var p=f.alternate!==null&&f.alternate.child===f.child,y=0,w=0;if(p)for(var N=f.child;N!==null;)y|=N.lanes|N.childLanes,w|=N.subtreeFlags&65011712,w|=N.flags&65011712,N.return=f,N=N.sibling;else for(N=f.child;N!==null;)y|=N.lanes|N.childLanes,w|=N.subtreeFlags,w|=N.flags,N.return=f,N=N.sibling;return f.subtreeFlags|=w,f.childLanes=y,p}function BTe(f,p,y){var w=p.pendingProps;switch(_5(p),p.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return fr(p),null;case 1:return fr(p),null;case 3:return y=p.stateNode,w=null,f!==null&&(w=f.memoizedState.cache),p.memoizedState.cache!==w&&(p.flags|=2048),Fu(ri),ge(),y.pendingContext&&(y.context=y.pendingContext,y.pendingContext=null),(f===null||f.child===null)&&(om(p)?ju(p):f===null||f.memoizedState.isDehydrated&&(p.flags&256)===0||(p.flags|=1024,w5())),fr(p),null;case 26:var N=p.type,k=p.memoizedState;return f===null?(ju(p),k!==null?(fr(p),wz(p,k)):(fr(p),hR(p,N,null,w,y))):k?k!==f.memoizedState?(ju(p),fr(p),wz(p,k)):(fr(p),p.flags&=-16777217):(f=f.memoizedProps,f!==w&&ju(p),fr(p),hR(p,N,f,w,y)),null;case 27:if(Re(p),y=se.current,N=p.type,f!==null&&p.stateNode!=null)f.memoizedProps!==w&&ju(p);else{if(!w){if(p.stateNode===null)throw Error(r(166));return fr(p),null}f=Q.current,om(p)?nj(p):(f=OV(N,w,y),p.stateNode=f,ju(p))}return fr(p),null;case 5:if(Re(p),N=p.type,f!==null&&p.stateNode!=null)f.memoizedProps!==w&&ju(p);else{if(!w){if(p.stateNode===null)throw Error(r(166));return fr(p),null}if(k=Q.current,om(p))nj(p);else{var z=O_(se.current);switch(k){case 1:k=z.createElementNS("http://www.w3.org/2000/svg",N);break;case 2:k=z.createElementNS("http://www.w3.org/1998/Math/MathML",N);break;default:switch(N){case"svg":k=z.createElementNS("http://www.w3.org/2000/svg",N);break;case"math":k=z.createElementNS("http://www.w3.org/1998/Math/MathML",N);break;case"script":k=z.createElement("div"),k.innerHTML="<script><\/script>",k=k.removeChild(k.firstChild);break;case"select":k=typeof w.is=="string"?z.createElement("select",{is:w.is}):z.createElement("select"),w.multiple?k.multiple=!0:w.size&&(k.size=w.size);break;default:k=typeof w.is=="string"?z.createElement(N,{is:w.is}):z.createElement(N)}}k[Je]=p,k[it]=w;e:for(z=p.child;z!==null;){if(z.tag===5||z.tag===6)k.appendChild(z.stateNode);else if(z.tag!==4&&z.tag!==27&&z.child!==null){z.child.return=z,z=z.child;continue}if(z===p)break e;for(;z.sibling===null;){if(z.return===null||z.return===p)break e;z=z.return}z.sibling.return=z.return,z=z.sibling}p.stateNode=k;e:switch(Yi(k,N,w),N){case"button":case"input":case"select":case"textarea":w=!!w.autoFocus;break e;case"img":w=!0;break e;default:w=!1}w&&ju(p)}}return fr(p),hR(p,p.type,f===null?null:f.memoizedProps,p.pendingProps,y),null;case 6:if(f&&p.stateNode!=null)f.memoizedProps!==w&&ju(p);else{if(typeof w!="string"&&p.stateNode===null)throw Error(r(166));if(f=se.current,om(p)){if(f=p.stateNode,y=p.memoizedProps,w=null,N=qi,N!==null)switch(N.tag){case 27:case 5:w=N.memoizedProps}f[Je]=p,f=!!(f.nodeValue===y||w!==null&&w.suppressHydrationWarning===!0||vV(f.nodeValue,y)),f||nd(p,!0)}else f=O_(f).createTextNode(w),f[Je]=p,p.stateNode=f}return fr(p),null;case 31:if(y=p.memoizedState,f===null||f.memoizedState!==null){if(w=om(p),y!==null){if(f===null){if(!w)throw Error(r(318));if(f=p.memoizedState,f=f!==null?f.dehydrated:null,!f)throw Error(r(557));f[Je]=p}else Hf(),(p.flags&128)===0&&(p.memoizedState=null),p.flags|=4;fr(p),f=!1}else y=w5(),f!==null&&f.memoizedState!==null&&(f.memoizedState.hydrationErrors=y),f=!0;if(!f)return p.flags&256?(Ca(p),p):(Ca(p),null);if((p.flags&128)!==0)throw Error(r(558))}return fr(p),null;case 13:if(w=p.memoizedState,f===null||f.memoizedState!==null&&f.memoizedState.dehydrated!==null){if(N=om(p),w!==null&&w.dehydrated!==null){if(f===null){if(!N)throw Error(r(318));if(N=p.memoizedState,N=N!==null?N.dehydrated:null,!N)throw Error(r(317));N[Je]=p}else Hf(),(p.flags&128)===0&&(p.memoizedState=null),p.flags|=4;fr(p),N=!1}else N=w5(),f!==null&&f.memoizedState!==null&&(f.memoizedState.hydrationErrors=N),N=!0;if(!N)return p.flags&256?(Ca(p),p):(Ca(p),null)}return Ca(p),(p.flags&128)!==0?(p.lanes=y,p):(y=w!==null,f=f!==null&&f.memoizedState!==null,y&&(w=p.child,N=null,w.alternate!==null&&w.alternate.memoizedState!==null&&w.alternate.memoizedState.cachePool!==null&&(N=w.alternate.memoizedState.cachePool.pool),k=null,w.memoizedState!==null&&w.memoizedState.cachePool!==null&&(k=w.memoizedState.cachePool.pool),k!==N&&(w.flags|=2048)),y!==f&&y&&(p.child.flags|=8192),m_(p,p.updateQueue),fr(p),null);case 4:return ge(),f===null&&PR(p.stateNode.containerInfo),fr(p),null;case 10:return Fu(p.type),fr(p),null;case 19:if(Z(Yr),w=p.memoizedState,w===null)return fr(p),null;if(N=(p.flags&128)!==0,k=w.rendering,k===null)if(N)$1(w,!1);else{if($r!==0||f!==null&&(f.flags&128)!==0)for(f=p.child;f!==null;){if(k=n_(f),k!==null){for(p.flags|=128,$1(w,!1),f=k.updateQueue,p.updateQueue=f,m_(p,f),p.subtreeFlags=0,f=y,y=p.child;y!==null;)QU(y,f),y=y.sibling;return W(Yr,Yr.current&1|2),_n&&Lu(p,w.treeForkCount),p.child}f=f.sibling}w.tail!==null&&be()>E_&&(p.flags|=128,N=!0,$1(w,!1),p.lanes=4194304)}else{if(!N)if(f=n_(k),f!==null){if(p.flags|=128,N=!0,f=f.updateQueue,p.updateQueue=f,m_(p,f),$1(w,!0),w.tail===null&&w.tailMode==="hidden"&&!k.alternate&&!_n
vendor: 21,145 bytes, line 8
8)return fr(p),null}else 2*be()-w.renderingStartTime>E_&&y!==536870912&&(p.flags|=128,N=!0,$1(w,!1),p.lanes=4194304);w.isBackwards?(k.sibling=p.child,p.child=k):(f=w.last,f!==null?f.sibling=k:p.child=k,w.last=k)}return w.tail!==null?(f=w.tail,w.rendering=f,w.tail=f.sibling,w.renderingStartTime=be(),f.sibling=null,y=Yr.current,W(Yr,N?y&1|2:y&1),_n&&Lu(p,w.treeForkCount),f):(fr(p),null);case 22:case 23:return Ca(p),L5(),w=p.memoizedState!==null,f!==null?f.memoizedState!==null!==w&&(p.flags|=8192):w&&(p.flags|=8192),w?(y&536870912)!==0&&(p.flags&128)===0&&(fr(p),p.subtreeFlags&6&&(p.flags|=8192)):fr(p),y=p.updateQueue,y!==null&&m_(p,y.retryQueue),y=null,f!==null&&f.memoizedState!==null&&f.memoizedState.cachePool!==null&&(y=f.memoizedState.cachePool.pool),w=null,p.memoizedState!==null&&p.memoizedState.cachePool!==null&&(w=p.memoizedState.cachePool.pool),w!==y&&(p.flags|=2048),f!==null&&Z(zf),null;case 24:return y=null,f!==null&&(y=f.memoizedState.cache),p.memoizedState.cache!==y&&(p.flags|=2048),Fu(ri),fr(p),null;case 25:return null;case 30:return null}throw Error(r(156,p.tag))}function HTe(f,p){switch(_5(p),p.tag){case 1:return f=p.flags,f&65536?(p.flags=f&-65537|128,p):null;case 3:return Fu(ri),ge(),f=p.flags,(f&65536)!==0&&(f&128)===0?(p.flags=f&-65537|128,p):null;case 26:case 27:case 5:return Re(p),null;case 31:if(p.memoizedState!==null){if(Ca(p),p.alternate===null)throw Error(r(340));Hf()}return f=p.flags,f&65536?(p.flags=f&-65537|128,p):null;case 13:if(Ca(p),f=p.memoizedState,f!==null&&f.dehydrated!==null){if(p.alternate===null)throw Error(r(340));Hf()}return f=p.flags,f&65536?(p.flags=f&-65537|128,p):null;case 19:return Z(Yr),null;case 4:return ge(),null;case 10:return Fu(p.type),null;case 22:case 23:return Ca(p),L5(),f!==null&&Z(zf),f=p.flags,f&65536?(p.flags=f&-65537|128,p):null;case 24:return Fu(ri),null;case 25:return null;default:return null}}function Sz(f,p){switch(_5(p),p.tag){case 3:Fu(ri),ge();break;case 26:case 27:case 5:Re(p);break;case 4:ge();break;case 31:p.memoizedState!==null&&Ca(p);break;case 13:Ca(p);break;case 19:Z(Yr);break;case 10:Fu(p.type);break;case 22:case 23:Ca(p),L5(),f!==null&&Z(zf);break;case 24:Fu(ri)}}function F1(f,p){try{var y=p.updateQueue,w=y!==null?y.lastEffect:null;if(w!==null){var N=w.next;y=N;do{if((y.tag&f)===f){w=void 0;var k=y.create,z=y.inst;w=k(),z.destroy=w}y=y.next}while(y!==N)}}catch(ee){Un(p,p.return,ee)}}function ud(f,p,y){try{var w=p.updateQueue,N=w!==null?w.lastEffect:null;if(N!==null){var k=N.next;w=k;do{if((w.tag&f)===f){var z=w.inst,ee=z.destroy;if(ee!==void 0){z.destroy=void 0,N=p;var me=y,Ce=ee;try{Ce()}catch(Pe){Un(N,me,Pe)}}}w=w.next}while(w!==k)}}catch(Pe){Un(p,p.return,Pe)}}function Cz(f){var p=f.updateQueue;if(p!==null){var y=f.stateNode;try{mj(p,y)}catch(w){Un(f,f.return,w)}}}function Tz(f,p,y){y.props=Yf(f.type,f.memoizedProps),y.state=f.memoizedState;try{y.componentWillUnmount()}catch(w){Un(f,p,w)}}function B1(f,p){try{var y=f.ref;if(y!==null){switch(f.tag){case 26:case 27:case 5:var w=f.stateNode;break;case 30:w=f.stateNode;break;default:w=f.stateNode}typeof y=="function"?f.refCleanup=y(w):y.current=w}}catch(N){Un(f,p,N)}}function Al(f,p){var y=f.ref,w=f.refCleanup;if(y!==null)if(typeof w=="function")try{w()}catch(N){Un(f,p,N)}finally{f.refCleanup=null,f=f.alternate,f!=null&&(f.refCleanup=null)}else if(typeof y=="function")try{y(null)}catch(N){Un(f,p,N)}else y.current=null}function Az(f){var p=f.type,y=f.memoizedProps,w=f.stateNode;try{e:switch(p){case"button":case"input":case"select":case"textarea":y.autoFocus&&w.focus();break e;case"img":y.src?w.src=y.src:y.srcSet&&(w.srcset=y.srcSet)}}catch(N){Un(f,f.return,N)}}function pR(f,p,y){try{var w=f.stateNode;l3e(w,f.type,y,p),w[it]=p}catch(N){Un(f,f.return,N)}}function Rz(f){return f.tag===5||f.tag===3||f.tag===26||f.tag===27&&gd(f.type)||f.tag===4}function mR(f){e:for(;;){for(;f.sibling===null;){if(f.return===null||Rz(f.return))return null;f=f.return}for(f.sibling.return=f.return,f=f.sibling;f.tag!==5&&f.tag!==6&&f.tag!==18;){if(f.tag===27&&gd(f.type)||f.flags&2||f.child===null||f.tag===4)continue e;f.child.return=f,f=f.child}if(!(f.flags&2))return f.stateNode}}function gR(f,p,y){var w=f.tag;if(w===5||w===6)f=f.stateNode,p?(y.nodeType===9?y.body:y.nodeName==="HTML"?y.ownerDocument.body:y).insertBefore(f,p):(p=y.nodeType===9?y.body:y.nodeName==="HTML"?y.ownerDocument.body:y,p.appendChild(f),y=y._reactRootContainer,y!=null||p.onclick!==null||(p.onclick=Mu));else if(w!==4&&(w===27&&gd(f.type)&&(y=f.stateNode,p=null),f=f.child,f!==null))for(gR(f,p,y),f=f.sibling;f!==null;)gR(f,p,y),f=f.sibling}function g_(f,p,y){var w=f.tag;if(w===5||w===6)f=f.stateNode,p?y.insertBefore(f,p):y.appendChild(f);else if(w!==4&&(w===27&&gd(f.type)&&(y=f.stateNode),f=f.child,f!==null))for(g_(f,p,y),f=f.sibling;f!==null;)g_(f,p,y),f=f.sibling}function Nz(f){var p=f.stateNode,y=f.memoizedProps;try{for(var w=f.type,N=p.attributes;N.length;)p.removeAttributeNode(N[0]);Yi(p,w,y),p[Je]=f,p[it]=y}catch(k){Un(f,f.return,k)}}var zu=!1,ai=!1,yR=!1,Oz=typeof WeakSet=="function"?WeakSet:Set,Mi=null;function UTe(f,p){if(f=f.containerInfo,FR=$_,f=jU(f),c5(f)){if("selectionStart"in f)var y={start:f.selectionStart,end:f.selectionEnd};else e:{y=(y=f.ownerDocument)&&y.defaultView||window;var w=y.getSelection&&y.getSelection();if(w&&w.rangeCount!==0){y=w.anchorNode;var N=w.anchorOffset,k=w.focusNode;w=w.focusOffset;try{y.nodeType,k.nodeType}catch{y=null;break e}var z=0,ee=-1,me=-1,Ce=0,Pe=0,Be=f,Ae=null;t:for(;;){for(var ke;Be!==y||N!==0&&Be.nodeType!==3||(ee=z+N),Be!==k||w!==0&&Be.nodeType!==3||(me=z+w),Be.nodeType===3&&(z+=Be.nodeValue.length),(ke=Be.firstChild)!==null;)Ae=Be,Be=ke;for(;;){if(Be===f)break t;if(Ae===y&&++Ce===N&&(ee=z),Ae===k&&++Pe===w&&(me=z),(ke=Be.nextSibling)!==null)break;Be=Ae,Ae=Be.parentNode}Be=ke}y=ee===-1||me===-1?null:{start:ee,end:me}}else y=null}y=y||{start:0,end:0}}else y=null;for(BR={focusedElem:f,selectionRange:y},$_=!1,Mi=p;Mi!==null;)if(p=Mi,f=p.child,(p.subtreeFlags&1028)!==0&&f!==null)f.return=p,Mi=f;else for(;Mi!==null;){switch(p=Mi,k=p.alternate,f=p.flags,p.tag){case 0:if((f&4)!==0&&(f=p.updateQueue,f=f!==null?f.events:null,f!==null))for(y=0;y<f.length;y++)N=f[y],N.ref.impl=N.nextImpl;break;case 11:case 15:break;case 1:if((f&1024)!==0&&k!==null){f=void 0,y=p,N=k.memoizedProps,k=k.memoizedState,w=y.stateNode;try{var ct=Yf(y.type,N);f=w.getSnapshotBeforeUpdate(ct,k),w.__reactInternalSnapshotBeforeUpdate=f}catch(Dt){Un(y,y.return,Dt)}}break;case 3:if((f&1024)!==0){if(f=p.stateNode.containerInfo,y=f.nodeType,y===9)jR(f);else if(y===1)switch(f.nodeName){case"HEAD":case"HTML":case"BODY":jR(f);break;default:f.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((f&1024)!==0)throw Error(r(163))}if(f=p.sibling,f!==null){f.return=p.return,Mi=f;break}Mi=p.return}}function kz(f,p,y){var w=y.flags;switch(y.tag){case 0:case 11:case 15:qu(f,y),w&4&&F1(5,y);break;case 1:if(qu(f,y),w&4)if(f=y.stateNode,p===null)try{f.componentDidMount()}catch(z){Un(y,y.return,z)}else{var N=Yf(y.type,p.memoizedProps);p=p.memoizedState;try{f.componentDidUpdate(N,p,f.__reactInternalSnapshotBeforeUpdate)}catch(z){Un(y,y.return,z)}}w&64&&Cz(y),w&512&&B1(y,y.return);break;case 3:if(qu(f,y),w&64&&(f=y.updateQueue,f!==null)){if(p=null,y.child!==null)switch(y.child.tag){case 27:case 5:p=y.child.stateNode;break;case 1:p=y.child.stateNode}try{mj(f,p)}catch(z){Un(y,y.return,z)}}break;case 27:p===null&&w&4&&Nz(y);case 26:case 5:qu(f,y),p===null&&w&4&&Az(y),w&512&&B1(y,y.return);break;case 12:qu(f,y);break;case 31:qu(f,y),w&4&&Dz(f,y);break;case 13:qu(f,y),w&4&&Pz(f,y),w&64&&(f=y.memoizedState,f!==null&&(f=f.dehydrated,f!==null&&(y=XTe.bind(null,y),g3e(f,y))));break;case 22:if(w=y.memoizedState!==null||zu,!w){p=p!==null&&p.memoizedState!==null||ai,N=zu;var k=ai;zu=w,(ai=p)&&!k?Gu(f,y,(y.subtreeFlags&8772)!==0):qu(f,y),zu=N,ai=k}break;case 30:break;default:qu(f,y)}}function Iz(f){var p=f.alternate;p!==null&&(f.alternate=null,Iz(p)),f.child=null,f.deletions=null,f.sibling=null,f.tag===5&&(p=f.stateNode,p!==null&&gr(p)),f.stateNode=null,f.return=null,f.dependencies=null,f.memoizedProps=null,f.memoizedState=null,f.pendingProps=null,f.stateNode=null,f.updateQueue=null}var br=null,zs=!1;function Vu(f,p,y){for(y=y.child;y!==null;)Mz(f,p,y),y=y.sibling}function Mz(f,p,y){if(It&&typeof It.onCommitFiberUnmount=="function")try{It.onCommitFiberUnmount(Kt,y)}catch{}switch(y.tag){case 26:ai||Al(y,p),Vu(f,p,y),y.memoizedState?y.memoizedState.count--:y.stateNode&&(y=y.stateNode,y.parentNode.removeChild(y));break;case 27:ai||Al(y,p);var w=br,N=zs;gd(y.type)&&(br=y.stateNode,zs=!1),Vu(f,p,y),Y1(y.stateNode),br=w,zs=N;break;case 5:ai||Al(y,p);case 6:if(w=br,N=zs,br=null,Vu(f,p,y),br=w,zs=N,br!==null)if(zs)try{(br.nodeType===9?br.body:br.nodeName==="HTML"?br.ownerDocument.body:br).removeChild(y.stateNode)}catch(k){Un(y,p,k)}else try{br.removeChild(y.stateNode)}catch(k){Un(y,p,k)}break;case 18:br!==null&&(zs?(f=br,CV(f.nodeType===9?f.body:f.nodeName==="HTML"?f.ownerDocument.body:f,y.stateNode),Rm(f)):CV(br,y.stateNode));break;case 4:w=br,N=zs,br=y.stateNode.containerInfo,zs=!0,Vu(f,p,y),br=w,zs=N;break;case 0:case 11:case 14:case 15:ud(2,y,p),ai||ud(4,y,p),Vu(f,p,y);break;case 1:ai||(Al(y,p),w=y.stateNode,typeof w.componentWillUnmount=="function"&&Tz(y,p,w)),Vu(f,p,y);break;case 21:Vu(f,p,y);break;case 22:ai=(w=ai)||y.memoizedState!==null,Vu(f,p,y),ai=w;break;default:Vu(f,p,y)}}function Dz(f,p){if(p.memoizedState===null&&(f=p.alternate,f!==null&&(f=f.memoizedState,f!==null))){f=f.dehydrated;try{Rm(f)}catch(y){Un(p,p.return,y)}}}function Pz(f,p){if(p.memoizedState===null&&(f=p.alternate,f!==null&&(f=f.memoizedState,f!==null&&(f=f.dehydrated,f!==null))))try{Rm(f)}catch(y){Un(p,p.return,y)}}function jTe(f){switch(f.tag){case 31:case 13:case 19:var p=f.stateNode;return p===null&&(p=f.stateNode=new Oz),p;case 22:return f=f.stateNode,p=f._retryCache,p===null&&(p=f._retryCache=new Oz),p;default:throw Error(r(435,f.tag))}}function y_(f,p){var y=jTe(f);p.forEach(function(w){if(!y.has(w)){y.add(w);var N=QTe.bind(null,f,w);w.then(N,N)}})}function Vs(f,p){var y=p.deletions;if(y!==null)for(var w=0;w<y.length;w++){var N=y[w],k=f,z=p,ee=z;e:for(;ee!==null;){switch(ee.tag){case 27:if(gd(ee.type)){br=ee.stateNode,zs=!1;break e}break;case 5:br=ee.stateNode,zs=!1;break e;case 3:case 4:br=ee.stateNode.containerInfo,zs=!0;break e}ee=ee.return}if(br===null)throw Error(r(160));Mz(k,z,N),br=null,zs=!1,k=N.alternate,k!==null&&(k.return=null),N.return=null}if(p.subtreeFlags&13886)for(p=p.child;p!==null;)Lz(p,f),p=p.sibling}var $o=null;function Lz(f,p){var y=f.alternate,w=f.flags;switch(f.tag){case 0:case 11:case 14:case 15:Vs(p,f),qs(f),w&4&&(ud(3,f,f.return),F1(3,f),ud(5,f,f.return));break;case 1:Vs(p,f),qs(f),w&512&&(ai||y===null||Al(y,y.return)),w&64&&zu&&(f=f.updateQueue,f!==null&&(w=f.callbacks,w!==null&&(y=f.shared.hiddenCallbacks,f.shared.hiddenCallbacks=y===null?w:y.concat(w))));break;case 26:var N=$o;if(Vs(p,f),qs(f),w&512&&(ai||y===null||Al(y,y.return)),w&4){var k=y!==null?y.memoizedState:null;if(w=f.memoizedState,y===null)if(w===null)if(f.stateNode===null){e:{w=f.type,y=f.memoizedProps,N=N.ownerDocument||N;t:switch(w){case"title":k=N.getElementsByTagName("title")[0],(!k||k[cr]||k[Je]||k.namespaceURI==="http://www.w3.org/2000/svg"||k.hasAttribute("itemprop"))&&(k=N.createElement(w),N.head.insertBefore(k,N.querySelector("head > title"))),Yi(k,w,y),k[Je]=f,nr(k),w=k;break e;case"link":var z=LV("link","href",N).get(w+(y.href||""));if(z){for(var ee=0;ee<z.length;ee++)if(k=z[ee],k.getAttribute("href")===(y.href==null||y.href===""?null:y.href)&&k.getAttribute("rel")===(y.rel==null?null:y.rel)&&k.getAttribute("title")===(y.title==null?null:y.title)&&k.getAttribute("crossorigin")===(y.crossOrigin==null?null:y.crossOrigin)){z.splice(ee,1);break t}}k=N.createElement(w),Yi(k,w,y),N.head.appendChild(k);break;case"meta":if(z=LV("meta","content",N).get(w+(y.content||""))){for(ee=0;ee<z.length;ee++)if(k=z[ee],k.getAttribute("content")===(y.content==null?null:""+y.content)&&k.getAttribute("name")===(y.name==null?null:y.name)&&k.getAttribute("property")===(y.property==null?null:y.property)&&k.getAttribute("http-equiv")===(y.httpEquiv==null?null:y.httpEquiv)&&k.getAttribute("charset")===(y.charSet==null?null:y.charSet)){z.splice(ee,1);break t}}k=N.createElement(w),Yi(k,w,y),N.head.appendChild(k);break;default:throw Error(r(468,w))}k[Je]=f,nr(k),w=k}f.stateNode=w}else $V(N,f.type,f.stateNode);else f.stateNode=PV(N,w,f.memoizedProps);else k!==w?(k===null?y.stateNode!==null&&(y=y.stateNode,y.parentNode.removeChild(y)):k.count--,w===null?$V(N,f.type,f.stateNode):PV(N,w,f.memoizedProps)):w===null&&f.stateNode!==null&&pR(f,f.memoizedProps,y.memoizedProps)}break;case 27:Vs(p,f),qs(f),w&512&&(ai||y===null||Al(y,y.return)),y!==null&&w&4&&pR(f,f.memoizedProps,y.memoizedProps);break;case 5:if(Vs(p,f),qs(f),w&512&&(ai||y===null||Al(y,y.return)),f.flags&32){N=f.stateNode;try{Qp(N,"")}catch(ct){Un(f,f.return,ct)}}w&4&&f.stateNode!=null&&(N=f.memoizedProps,pR(f,N,y!==null?y.memoizedProps:N)),w&1024&&(yR=!0);break;case 6:if(Vs(p,f),qs(f),w&4){if(f.stateNode===null)throw Error(r(162));w=f.memoizedProps,y=f.stateNode;try{y.nodeValue=w}catch(ct){Un(f,f.return,ct)}}break;case 3:if(M_=null,N=$o,$o=k_(p.containerInfo),Vs(p,f),$o=N,qs(f),w&4&&y!==null&&y.memoizedState.isDehydrated)try{Rm(p.containerInfo)}catch(ct){Un(f,f.return,ct)}yR&&(yR=!1,$z(f));break;case 4:w=$o,$o=k_(f.stateNode.containerInfo),Vs(p,f),qs(f),$o=w;break;case 12:Vs(p,f),qs(f);break;case 31:Vs(p,f),qs(f),w&4&&(w=f.updateQueue,w!==null&&(f.updateQueue=null,y_(f,w)));break;case 13:Vs(p,f),qs(f),f.child.flags&8192&&f.memoizedState!==null!=(y!==null&&y.memoizedState!==null)&&(v_=be()),w&4&&(w=f.updateQueue,w!==null&&(f.updateQueue=null,y_(f,w)));break;case 22:N=f.memoizedState!==null;var me=y!==null&&y.memoizedState!==null,Ce=zu,Pe=ai;if(zu=Ce||N,ai=Pe||me,Vs(p,f),ai=Pe,zu=Ce,qs(f),w&8192)e:for(p=f.stateNode,p._visibility=N?p._visibility&-2:p._visibility|1,N&&(y===null||me||zu||ai||Kf(f)),y=null,p=f;;){if(p.tag===5||p.tag===26){if(y===null){me=y=p;try{if(k=me.stateNode,N)z=k.style,typeof z.setProperty=="function"?z.setProperty("display","none","important"):z.display="none";else{ee=me.stateNode;var Be=me.memoizedProps.style,Ae=Be!=null&&Be.hasOwnProperty("display")?Be.display:null;ee.style.display=Ae==null||typeof Ae=="boolean"?"":(""+Ae).trim()}}catch(ct){Un(me,me.return,ct)}}}else if(p.tag===6){if(y===null){me=p;try{me.stateNode.nodeValue=N?"":me.memoizedProps}catch(ct){Un(me,me.return,ct)}}}else if(p.tag===18){if(y===null){me=p;try{var ke=me.stateNode;N?TV(ke,!0):TV(me.stateNode,!1)}catch(ct){Un(me,me.return,ct)}}}else if((p.tag!==22&&p.tag!==23||p.memoizedState===null||p===f)&&p.child!==null){p.child.return=p,p=p.child;continue}if(p===f)break e;for(;p.sibling===null;){if(p.return===null||p.return===f)break e;y===p&&(y=null),p=p.return}y===p&&(y=null),p.sibling.return=p.return,p=p.sibling}w&4&&(w=f.updateQueue,w!==null&&(y=w.retryQueue,y!==null&&(w.retryQueue=null,y_(f,y))));break;case 19:Vs(p,f),qs(f),w&4&&(w=f.updateQueue,w!==null&&(f.updateQueue=null,y_(f,w)));break;case 30:break;case 21:break;default:Vs(p,f),qs(f)}}function qs(f){var p=f.flags;if(p&2){try{for(var y,w=f.return;w!==null;){if(Rz(w)){y=w;break}w=w.return}if(y==null)throw Error(r(160));switch(y.tag){case 27:var N=y.stateNode,k=mR(f);g_(f,k,N);break;case 5:var z=y.stateNode;y.flags&32&&(Qp(z,""),y.flags&=-33);var ee=mR(f);g_(f,ee,z);break;case 3:case 4:var me=y.stateNode.containerInfo,Ce=mR(f);gR(f,Ce,me);break;default:throw Error(r(161))}}catch(Pe){Un(f,f.return,Pe)}f.flags&=-3}p&4096&&(f.flags&=-4097)}function $z(f){if(f.subtreeFlags&1024)for(f=f.child;f!==null;){var p=f;$z(p),p.tag===5&&p.flags&1024&&p.stateNode.reset(),f=f.sibling}}function qu(f,p){if(p.subtreeFlags&8772)for(p=p.child;p!==null;)kz(f,p.alternate,p),p=p.sibling}function Kf(f){for(f=f.child;f!==null;){var p=f;switch(p.tag){case 0:case 11:case 14:case 15:ud(4,p,p.return),Kf(p);break;case 1:Al(p,p.return);var y=p.stateNode;typeof y.componentWillUnmount=="function"&&Tz(p,p.return,y),Kf(p);break;case 27:Y1(p.stateNode);case 26:case 5:Al(p,p.return),Kf(p);break;case 22:p.memoizedState===null&&Kf(p);break;case 30:Kf(p);break;default:Kf(p)}f=f.sibling}}function Gu(f,p,y){for(y=y&&(p.subtreeFlags&8772)!==0,p=p.child;p!==null;){var w=p.alternate,N=f,k=p,z=k.flags;switch(k.tag){case 0:case 11:case 15:Gu(N,k,y),F1(4,k);break;case 1:if(Gu(N,k,y),w=k,N=w.stateNode,typeof N.componentDidMount=="function")try{N.componentDidMount()}catch(Ce){Un(w,w.return,Ce)}if(w=k,N=w.updateQueue,N!==null){var ee=w.stateNode;try{var me=N.shared.hiddenCallbacks;if(me!==null)for(N.shared.hiddenCallbacks=null,N=0;N<me.length;N++)pj(me[N],ee)}catch(Ce){Un(w,w.return,Ce)}}y&&z&64&&Cz(k),B1(k,k.return);break;case 27:Nz(k);case 26:case 5:Gu(N,k,y),y&&w===null&&z&4&&Az(k),B1(k,k.return);break;case 12:Gu(N,k,y);break;case 31:Gu(N,k,y),y&&z&4&&Dz(N,k);break;case 13:Gu(N,k,y),y&&z&4&&Pz(N,k);break;case 22:k.memoizedState===null&&Gu(N,k,y),B1(k,k.return);break;case 30:break;default:Gu(N,k,y)}p=p.sibling}}function bR(f,p){var y=null;f!==null&&f.memoizedState!==null&&f.memoizedState.cachePool!==null&&(y=f.memoizedState.cachePool.pool),f=null,p.memoizedState!==null&&p.memoizedState.cachePool!==null&&(f=p.memoizedState.cachePool.pool),f!==y&&(f!=null&&f.refCount++,y!=null&&C1(y))}function vR(f,p){f=null,p.alternate!==null&&(f=p.alternate.memoizedState.cache),p=p.memoizedState.cache,p!==f&&(p.refCount++,f!=null&&C1(f))}function Fo(f,p,y,w){if(p.subtreeFlags&10256)for(p=p.child;p!==null;)Fz(f,p,y,w),p=p.sibling}function Fz(f,p,y,w){var N=p.flags;switch(p.tag){case 0:case 11:case 15:Fo(f,p,y,w),N&2048&&F1(9,p);break;case 1:Fo(f,p,y,w);break;case 3:Fo(f,p,y,w),N&2048&&(f=null,p.alternate!==null&&(f=p.alternate.memoizedState.cache),p=p.memoizedState.cache,p!==f&&(p.refCount++,f!=null&&C1(f)));break;case 12:if(N&2048){Fo(f,p,y,w),f=p.stateNode;try{var k=p.memoizedProps,z=k.id,ee=k.onPostCommit;typeof ee=="function"&&ee(z,p.alternate===null?"mount":"update",f.passiveEffectDuration,-0)}catch(me){Un(p,p.return,me)}}else Fo(f,p,y,w);break;case 31:Fo(f,p,y,w);break;case 13:Fo(f,p,y,w);break;case 23:break;case 22:k=p.stateNode,z=p.alternate,p.memoizedState!==null?k._visibility&2?Fo(f,p,y,w):H1(f,p):k._visibility&2?Fo(f,p,y,w):(k._visibility|=2,ym(f,p,y,w,(p.subtreeFlags&10256)!==0||!1)),N&2048&&bR(z,p);break;case 24:Fo(f,p,y,w),N&2048&&vR(p.alternate,p);break;default:Fo(f,p,y,w)}}function ym(f,p,y,w,N){for(N=N&&((p.subtreeFlags&10256)!==0||!1),p=p.child;p!==null;){var k=f,z=p,ee=y,me=w,Ce=z.flags;switch(z.tag){case 0:case 11:case 15:ym(k,z,ee,me,N),F1(8,z);break;case 23:break;case 22:var Pe=z.stateNode;z.memoizedState!==null?Pe._visibility&2?ym(k,z,ee,me,N):H1(k,z):(Pe._visibility|=2,ym(k,z,ee,me,N)),N&&Ce&2048&&bR(z.alternate,z);break;case 24:ym(k,z,ee,me,N),N&&Ce&2048&&vR(z.alternate,z);break;default:ym(k,z,ee,me,N)}p=p.sibling}}function H1(f,p){if(p.subtreeFlags&10256)for(p=p.child;p!==null;){var y=f,w=p,N=w.flags;switch(w.tag){case 22:H1(y,w),N&2048&&bR(w.alternate,w);break;case 24:H1(y,w),N&2048&&vR(w.alternate,w);break;default:H1(y,w)}p=p.sibling}}var U1=8192;function bm(f,p,y){if(f.subtreeFlags&U1)for(f=f.child;f!==null;)Bz(f,p,y),f=f.sibling}function Bz(f,p,y){switch(f.tag){case 26:bm(f,p,y),f.flags&U1&&f.memoizedState!==null&&R3e(y,$o,f.memoizedState,f.memoizedProps);break;case 5:bm(f,p,y);break;case 3:case 4:var w=$o;$o=k_(f.stateNode.containerInfo),bm(f,p,y),$o=w;break;case 22:f.memoizedState===null&&(w=f.alternate,w!==null&&w.memoizedState!==null?(w=U1,U1=16777216,bm(f,p,y),U1=w):bm(f,p,y));break;default:bm(f,p,y)}}function Hz(f){var p=f.alternate;if(p!==null&&(f=p.child,f!==null)){p.child=null;do p=f.sibling,f.sibling=null,f=p;while(f!==null)}}function j1(f){var p=f.deletions;if((f.flags&16)!==0){if(p!==null)for(var y=0;y<p.length;y++){var w=p[y];Mi=w,jz(w,f)}Hz(f)}if(f.subtreeFlags&10256)for(f=f.child;f!==null;)Uz(f),f=f.sibling}function Uz(f){switch(f.tag){case 0:case 11:case 15:j1(f),f.flags&2048&&ud(9,f,f.return);break;case 3:j1(f);break;case 12:j1(f);break;case 22:var p=f.stateNode;f.memoizedState!==null&&p._visibility&2&&(f.return===null||f.return.tag!==13)?(p._visibility&=-3,b_(f)):j1(f);break;default:j1(f)}}function b_(f){var p=f.deletions;if((f.flags&16)!==0){if(p!==null)for(var y=0;y<p.length;y++){var w=p[y];Mi=w,jz(w,f)}Hz(f)}for(f=f.child;f!==null;){switch(p=f,p.tag){case 0:case 11:case 15:ud(8,p,p.return),b_(p);break;case 22:y=p.stateNode,y._visibility&2&&(y._visibility&=-3,b_(p));break;default:b_(p)}f=f.sibling}}function jz(f,p){for(;Mi!==null;){var y=Mi;switch(y.tag){case 0:case 11:case 15:ud(8,y,p);break;case 23:case 22:if(y.memoizedState!==null&&y.memoizedState.cachePool!==null){var w=y.memoizedState.cachePool.pool;w!=null&&w.refCount++}break;case 24:C1(y.memoizedState.cache)}if(w=y.child,w!==null)w.return=y,Mi=w;else e:for(y=f;Mi!==null;){w=Mi;var N=w.sibling,k=w.return;if(Iz(w),w===y){Mi=null;break e}if(N!==null){N.return=k,Mi=N;break e}Mi=k}}}var zTe={getCacheForType:function(f){var p=Gi(ri),y=p.data.get(f);return y===void 0&&(y=f(),p.data.set(f,y)),y}
vendor: 4,161 bytes, line 8
8,cacheSignal:function(){return Gi(ri).controller.signal}},VTe=typeof WeakMap=="function"?WeakMap:Map,Dn=0,Qn=null,fn=null,bn=0,Hn=0,Ta=null,cd=!1,vm=!1,ER=!1,Wu=0,$r=0,dd=0,Xf=0,_R=0,Aa=0,Em=0,z1=null,Gs=null,xR=!1,v_=0,zz=0,E_=1/0,__=null,fd=null,xi=0,hd=null,_m=null,Yu=0,wR=0,SR=null,Vz=null,V1=0,CR=null;function Ra(){return(Dn&2)!==0&&bn!==0?bn&-bn:F.T!==null?kR():Ge()}function qz(){if(Aa===0)if((bn&536870912)===0||_n){var f=bt;bt<<=1,(bt&3932160)===0&&(bt=262144),Aa=f}else Aa=536870912;return f=Sa.current,f!==null&&(f.flags|=32),Aa}function Ws(f,p,y){(f===Qn&&(Hn===2||Hn===9)||f.cancelPendingCommit!==null)&&(xm(f,0),pd(f,bn,Aa,!1)),Gr(f,y),((Dn&2)===0||f!==Qn)&&(f===Qn&&((Dn&2)===0&&(Xf|=y),$r===4&&pd(f,bn,Aa,!1)),Rl(f))}function Gz(f,p,y){if((Dn&6)!==0)throw Error(r(327));var w=!y&&(p&127)===0&&(p&f.expiredLanes)===0||ni(f,p),N=w?WTe(f,p):AR(f,p,!0),k=w;do{if(N===0){vm&&!w&&pd(f,p,0,!1);break}else{if(y=f.current.alternate,k&&!qTe(y)){N=AR(f,p,!1),k=!1;continue}if(N===2){if(k=p,f.errorRecoveryDisabledLanes&k)var z=0;else z=f.pendingLanes&-536870913,z=z!==0?z:z&536870912?536870912:0;if(z!==0){p=z;e:{var ee=f;N=z1;var me=ee.current.memoizedState.isDehydrated;if(me&&(xm(ee,z).flags|=256),z=AR(ee,z,!1),z!==2){if(ER&&!me){ee.errorRecoveryDisabledLanes|=k,Xf|=k,N=4;break e}k=Gs,Gs=N,k!==null&&(Gs===null?Gs=k:Gs.push.apply(Gs,k))}N=z}if(k=!1,N!==2)continue}}if(N===1){xm(f,0),pd(f,p,0,!0);break}e:{switch(w=f,k=N,k){case 0:case 1:throw Error(r(345));case 4:if((p&4194048)!==p)break;case 6:pd(w,p,Aa,!cd);break e;case 2:Gs=null;break;case 3:case 5:break;default:throw Error(r(329))}if((p&62914560)===p&&(N=v_+300-be(),10<N)){if(pd(w,p,Aa,!cd),vt(w,0,!0)!==0)break e;Yu=p,w.timeoutHandle=wV(Wz.bind(null,w,y,Gs,__,xR,p,Aa,Xf,Em,cd,k,"Throttled",-0,0),N);break e}Wz(w,y,Gs,__,xR,p,Aa,Xf,Em,cd,k,null,-0,0)}}break}while(!0);Rl(f)}function Wz(f,p,y,w,N,k,z,ee,me,Ce,Pe,Be,Ae,ke){if(f.timeoutHandle=-1,Be=p.subtreeFlags,Be&8192||(Be&16785408)===16785408){Be={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Mu},Bz(p,k,Be);var ct=(k&62914560)===k?v_-be():(k&4194048)===k?zz-be():0;if(ct=N3e(Be,ct),ct!==null){Yu=k,f.cancelPendingCommit=ct(tV.bind(null,f,p,k,y,w,N,z,ee,me,Pe,Be,null,Ae,ke)),pd(f,k,z,!Ce);return}}tV(f,p,k,y,w,N,z,ee,me)}function qTe(f){for(var p=f;;){var y=p.tag;if((y===0||y===11||y===15)&&p.flags&16384&&(y=p.updateQueue,y!==null&&(y=y.stores,y!==null)))for(var w=0;w<y.length;w++){var N=y[w],k=N.getSnapshot;N=N.value;try{if(!xa(k(),N))return!1}catch{return!1}}if(y=p.child,p.subtreeFlags&16384&&y!==null)y.return=p,p=y;else{if(p===f)break;for(;p.sibling===null;){if(p.return===null||p.return===f)return!0;p=p.return}p.sibling.return=p.return,p=p.sibling}}return!0}function pd(f,p,y,w){p&=~_R,p&=~Xf,f.suspendedLanes|=p,f.pingedLanes&=~p,w&&(f.warmLanes|=p),w=f.expirationTimes;for(var N=p;0<N;){var k=31-qt(N),z=1<<k;w[k]=-1,N&=~z}y!==0&&vs(f,y,p)}function x_(){return(Dn&6)===0?(q1(0),!1):!0}function TR(){if(fn!==null){if(Hn===0)var f=fn.return;else f=fn,$u=Uf=null,j5(f),fm=null,A1=0,f=fn;for(;f!==null;)Sz(f.alternate,f),f=f.return;fn=null}}function xm(f,p){var y=f.timeoutHandle;y!==-1&&(f.timeoutHandle=-1,d3e(y)),y=f.cancelPendingCommit,y!==null&&(f.cancelPendingCommit=null,y()),Yu=0,TR(),Qn=f,fn=y=Pu(f.current,null),bn=p,Hn=0,Ta=null,cd=!1,vm=ni(f,p),ER=!1,Em=Aa=_R=Xf=dd=$r=0,Gs=z1=null,xR=!1,(p&8)!==0&&(p|=p&32);var w=f.entangledLanes;if(w!==0)for(f=f.entanglements,w&=p;0<w;){var N=31-qt(w),k=1<<N;p|=f[N],w&=~k}return Wu=p,zE(),y}function Yz(f,p){Wt=null,F.H=P1,p===dm||p===QE?(p=cj(),Hn=3):p===O5?(p=cj(),Hn=4):Hn=p===iR?8:p!==null&&typeof p=="object"&&typeof p.then=="function"?6:1,Ta=p,fn===null&&($r=1,d_(f,Ja(p,f.current)))}function Kz(){var f=Sa.current;return f===null?!0:(bn&4194048)===bn?ro===null:(bn&62914560)===bn||(bn&536870912)!==0?f===ro:!1}function Xz(){var f=F.H;return F.H=P1,f===null?P1:f}function Qz(){var f=F.A;return F.A=zTe,f}function w_(){$r=4,cd||(bn&4194048)!==bn&&Sa.current!==null||(vm=!0),(dd&134217727)===0&&(Xf&134217727)===0||Qn===null||pd(Qn,bn,Aa,!1)}function AR(f,p,y){var w=Dn;Dn|=2;var N=Xz(),k=Qz();
vendor: 4,904 bytes, line 8
8(Qn!==f||bn!==p)&&(__=null,xm(f,p)),p=!1;var z=$r;e:do try{if(Hn!==0&&fn!==null){var ee=fn,me=Ta;switch(Hn){case 8:TR(),z=6;break e;case 3:case 2:case 9:case 6:Sa.current===null&&(p=!0);var Ce=Hn;if(Hn=0,Ta=null,wm(f,ee,me,Ce),y&&vm){z=0;break e}break;default:Ce=Hn,Hn=0,Ta=null,wm(f,ee,me,Ce)}}GTe(),z=$r;break}catch(Pe){Yz(f,Pe)}while(!0);return p&&f.shellSuspendCounter++,$u=Uf=null,Dn=w,F.H=N,F.A=k,fn===null&&(Qn=null,bn=0,zE()),z}function GTe(){for(;fn!==null;)Zz(fn)}function WTe(f,p){var y=Dn;Dn|=2;var w=Xz(),N=Qz();Qn!==f||bn!==p?(__=null,E_=be()+500,xm(f,p)):vm=ni(f,p);e:do try{if(Hn!==0&&fn!==null){p=fn;var k=Ta;t:switch(Hn){case 1:Hn=0,Ta=null,wm(f,p,k,1);break;case 2:case 9:if(lj(k)){Hn=0,Ta=null,Jz(p);break}p=function(){Hn!==2&&Hn!==9||Qn!==f||(Hn=7),Rl(f)},k.then(p,p);break e;case 3:Hn=7;break e;case 4:Hn=5;break e;case 7:lj(k)?(Hn=0,Ta=null,Jz(p)):(Hn=0,Ta=null,wm(f,p,k,7));break;case 5:var z=null;switch(fn.tag){case 26:z=fn.memoizedState;case 5:case 27:var ee=fn;if(z?FV(z):ee.stateNode.complete){Hn=0,Ta=null;var me=ee.sibling;if(me!==null)fn=me;else{var Ce=ee.return;Ce!==null?(fn=Ce,S_(Ce)):fn=null}break t}}Hn=0,Ta=null,wm(f,p,k,5);break;case 6:Hn=0,Ta=null,wm(f,p,k,6);break;case 8:TR(),$r=6;break e;default:throw Error(r(462))}}YTe();break}catch(Pe){Yz(f,Pe)}while(!0);return $u=Uf=null,F.H=w,F.A=N,Dn=y,fn!==null?0:(Qn=null,bn=0,zE(),$r)}function YTe(){for(;fn!==null&&!te();)Zz(fn)}function Zz(f){var p=xz(f.alternate,f,Wu);f.memoizedProps=f.pendingProps,p===null?S_(f):fn=p}function Jz(f){var p=f,y=p.alternate;switch(p.tag){case 15:case 0:p=gz(y,p,p.pendingProps,p.type,void 0,bn);break;case 11:p=gz(y,p,p.pendingProps,p.type.render,p.ref,bn);break;case 5:j5(p);default:Sz(y,p),p=fn=QU(p,Wu),p=xz(y,p,Wu)}f.memoizedProps=f.pendingProps,p===null?S_(f):fn=p}function wm(f,p,y,w){$u=Uf=null,j5(p),fm=null,A1=0;var N=p.return;try{if(LTe(f,N,p,y,bn)){$r=1,d_(f,Ja(y,f.current)),fn=null;return}}catch(k){if(N!==null)throw fn=N,k;$r=1,d_(f,Ja(y,f.current)),fn=null;return}p.flags&32768?(_n||w===1?f=!0:vm||(bn&536870912)!==0?f=!1:(cd=f=!0,(w===2||w===9||w===3||w===6)&&(w=Sa.current,w!==null&&w.tag===13&&(w.flags|=16384))),eV(p,f)):S_(p)}function S_(f){var p=f;do{if((p.flags&32768)!==0){eV(p,cd);return}f=p.return;var y=BTe(p.alternate,p,Wu);if(y!==null){fn=y;return}if(p=p.sibling,p!==null){fn=p;return}fn=p=f}while(p!==null);$r===0&&($r=5)}function eV(f,p){do{var y=HTe(f.alternate,f);if(y!==null){y.flags&=32767,fn=y;return}if(y=f.return,y!==null&&(y.flags|=32768,y.subtreeFlags=0,y.deletions=null),!p&&(f=f.sibling,f!==null)){fn=f;return}fn=f=y}while(f!==null);$r=6,fn=null}function tV(f,p,y,w,N,k,z,ee,me){f.cancelPendingCommit=null;do C_();while(xi!==0);if((Dn&6)!==0)throw Error(r(327));if(p!==null){if(p===f.current)throw Error(r(177));if(k=p.lanes|p.childLanes,k|=m5,Rr(f,y,k,z,ee,me),f===Qn&&(fn=Qn=null,bn=0),_m=p,hd=f,Yu=y,wR=k,SR=N,Vz=w,(p.subtreeFlags&10256)!==0||(p.flags&10256)!==0?(f.callbackNode=null,f.callbackPriority=0,ZTe(X,function(){return aV(),null})):(f.callbackNode=null,f.callbackPriority=0),w=(p.flags&13878)!==0,(p.subtreeFlags&13878)!==0||w){w=F.T,F.T=null,N=G.p,G.p=2,z=Dn,Dn|=4;try{UTe(f,p,y)}finally{Dn=z,G.p=N,F.T=w}}xi=1,nV(),rV(),iV()}}function nV(){if(xi===1){xi=0;var f=hd,p=_m,y=(p.flags&13878)!==0;if((p.subtreeFlags&13878)!==0||y){y=F.T,F.T=null;var w=G.p;G.p=2;var N=Dn;Dn|=4;try{Lz(p,f);var k=BR,z=jU(f.containerInfo),ee=k.focusedElem,me=k.selectionRange;if(z!==ee&&ee&&ee.ownerDocument&&UU(ee.ownerDocument.documentElement,ee)){if(me!==null&&c5(ee)){var Ce=me.start,Pe=me.end;if(Pe===void 0&&(Pe=Ce),"selectionStart"in ee)ee.selectionStart=Ce,ee.selectionEnd=Math.min(Pe,ee.value.length);else{var Be=ee.ownerDocument||document,Ae=Be&&Be.defaultView||window;if(Ae.getSelection){var ke=Ae.getSelection(),ct=ee.textContent.length,Dt=Math.min(me.start,ct),Gn=me.end===void 0?Dt:Math.min(me.end,ct);!ke.extend&&Dt>Gn&&(z=Gn,Gn=Dt,Dt=z);var _e=HU(ee,Dt),ye=HU(ee,Gn);if(_e&&ye&&(ke.rangeCount!==1||ke.anchorNode!==_e.node||ke.anchorOffset!==_e.offset||ke.focusNode!==ye.node||ke.focusOffset!==ye.offset)){var Se=Be.createRange();Se.setStart(_e.node,_e.offset),ke.removeAllRanges(),Dt>Gn?(ke.addRange(Se),ke.extend(ye.node,ye.offset)):(Se.setEnd(ye.node,ye.offset),ke.addRange(Se))}}}}for(Be=[],ke=ee;ke=ke.parentNode;)ke.nodeType===1&&Be.push({element:ke,left:ke.scrollLeft,top:ke.scrollTop});for(typeof ee.focus=="function"&&ee.focus(),ee=0;ee<Be.length;ee++){var $e=Be[ee];$e.element.scrollLeft=$e.left,$e.element.scrollTop=$e.top}}$_=!!FR,BR=FR=null}finally{Dn=N,G.p=w,F.T=y}}f.current=p,xi=2}}function rV(){if(xi===2){xi=0;var f=hd,p=_m,y=(p.flags&8772)!==0;if((p.subtreeFlags&8772)!==0||y){y=F.T,F.T=null;var w=G.p;G.p=2;var N=Dn;Dn|=4;try{kz(f,p.alternate,p)}finally{Dn=N,G.p=w,F.T=y}}xi=3}}function iV(){if(xi===4||xi===3){xi=0,de();var f=hd,p=_m,y=Yu,w=Vz;(p.subtreeFlags&10256)!==0||(p.flags&10256)!==0?xi=5:(xi=0,_m=hd=null,
vendor: 16,353 bytes, lines 8-9
8sV(f,f.pendingLanes));var N=f.pendingLanes;if(N===0&&(fd=null),Ue(y),p=p.stateNode,It&&typeof It.onCommitFiberRoot=="function")try{It.onCommitFiberRoot(Kt,p,void 0,(p.current.flags&128)===128)}catch{}if(w!==null){p=F.T,N=G.p,G.p=2,F.T=null;try{for(var k=f.onRecoverableError,z=0;z<w.length;z++){var ee=w[z];k(ee.value,{componentStack:ee.stack})}}finally{F.T=p,G.p=N}}(Yu&3)!==0&&C_(),Rl(f),N=f.pendingLanes,(y&261930)!==0&&(N&42)!==0?f===CR?V1++:(V1=0,CR=f):V1=0,q1(0)}}function sV(f,p){(f.pooledCacheLanes&=p)===0&&(p=f.pooledCache,p!=null&&(f.pooledCache=null,C1(p)))}function C_(){return nV(),rV(),iV(),aV()}function aV(){if(xi!==5)return!1;var f=hd,p=wR;wR=0;var y=Ue(Yu),w=F.T,N=G.p;try{G.p=32>y?32:y,F.T=null,y=SR,SR=null;var k=hd,z=Yu;if(xi=0,_m=hd=null,Yu=0,(Dn&6)!==0)throw Error(r(331));var ee=Dn;if(Dn|=4,Uz(k.current),Fz(k,k.current,z,y),Dn=ee,q1(0,!1),It&&typeof It.onPostCommitFiberRoot=="function")try{It.onPostCommitFiberRoot(Kt,k)}catch{}return!0}finally{G.p=N,F.T=w,sV(f,p)}}function oV(f,p,y){p=Ja(y,p),p=rR(f.stateNode,p,2),f=ad(f,p,2),f!==null&&(Gr(f,2),Rl(f))}function Un(f,p,y){if(f.tag===3)oV(f,f,y);else for(;p!==null;){if(p.tag===3){oV(p,f,y);break}else if(p.tag===1){var w=p.stateNode;if(typeof p.type.getDerivedStateFromError=="function"||typeof w.componentDidCatch=="function"&&(fd===null||!fd.has(w))){f=Ja(y,f),y=lz(2),w=ad(p,y,2),w!==null&&(uz(y,w,p,f),Gr(w,2),Rl(w));break}}p=p.return}}function RR(f,p,y){var w=f.pingCache;if(w===null){w=f.pingCache=new VTe;var N=new Set;w.set(p,N)}else N=w.get(p),N===void 0&&(N=new Set,w.set(p,N));N.has(y)||(ER=!0,N.add(y),f=KTe.bind(null,f,p,y),p.then(f,f))}function KTe(f,p,y){var w=f.pingCache;w!==null&&w.delete(p),f.pingedLanes|=f.suspendedLanes&y,f.warmLanes&=~y,Qn===f&&(bn&y)===y&&($r===4||$r===3&&(bn&62914560)===bn&&300>be()-v_?(Dn&2)===0&&xm(f,0):_R|=y,Em===bn&&(Em=0)),Rl(f)}function lV(f,p){p===0&&(p=lr()),f=Ff(f,p),f!==null&&(Gr(f,p),Rl(f))}function XTe(f){var p=f.memoizedState,y=0;p!==null&&(y=p.retryLane),lV(f,y)}function QTe(f,p){var y=0;switch(f.tag){case 31:case 13:var w=f.stateNode,N=f.memoizedState;N!==null&&(y=N.retryLane);break;case 19:w=f.stateNode;break;case 22:w=f.stateNode._retryCache;break;default:throw Error(r(314))}w!==null&&w.delete(p),lV(f,y)}function ZTe(f,p){return Lt(f,p)}var T_=null,Sm=null,NR=!1,A_=!1,OR=!1,md=0;function Rl(f){f!==Sm&&f.next===null&&(Sm===null?T_=Sm=f:Sm=Sm.next=f),A_=!0,NR||(NR=!0,e3e())}function q1(f,p){if(!OR&&A_){OR=!0;do for(var y=!1,w=T_;w!==null;){if(f!==0){var N=w.pendingLanes;if(N===0)var k=0;else{var z=w.suspendedLanes,ee=w.pingedLanes;k=(1<<31-qt(42|f)+1)-1,k&=N&~(z&~ee),k=k&201326741?k&201326741|1:k?k|2:0}k!==0&&(y=!0,fV(w,k))}else k=bn,k=vt(w,w===Qn?k:0,w.cancelPendingCommit!==null||w.timeoutHandle!==-1),(k&3)===0||ni(w,k)||(y=!0,fV(w,k));w=w.next}while(y);OR=!1}}function JTe(){uV()}function uV(){A_=NR=!1;var f=0;md!==0&&c3e()&&(f=md);for(var p=be(),y=null,w=T_;w!==null;){var N=w.next,k=cV(w,p);k===0?(w.next=null,y===null?T_=N:y.next=N,N===null&&(Sm=y)):(y=w,(f!==0||(k&3)!==0)&&(A_=!0)),w=N}xi!==0&&xi!==5||q1(f),md!==0&&(md=0)}function cV(f,p){for(var y=f.suspendedLanes,w=f.pingedLanes,N=f.expirationTimes,k=f.pendingLanes&-62914561;0<k;){var z=31-qt(k),ee=1<<z,me=N[z];me===-1?((ee&y)===0||(ee&w)!==0)&&(N[z]=qr(ee,p)):me<=p&&(f.expiredLanes|=ee),k&=~ee}if(p=Qn,y=bn,y=vt(f,f===p?y:0,f.cancelPendingCommit!==null||f.timeoutHandle!==-1),w=f.callbackNode,y===0||f===p&&(Hn===2||Hn===9)||f.cancelPendingCommit!==null)return w!==null&&w!==null&&ue(w),f.callbackNode=null,f.callbackPriority=0;if((y&3)===0||ni(f,y)){if(p=y&-y,p===f.callbackPriority)return p;switch(w!==null&&ue(w),Ue(y)){case 2:case 8:y=fe;break;case 32:y=X;break;case 268435456:y=Ye;break;default:y=X}return w=dV.bind(null,f),y=Lt(y,w),f.callbackPriority=p,f.callbackNode=y,p}return w!==null&&w!==null&&ue(w),f.callbackPriority=2,f.callbackNode=null,2}function dV(f,p){if(xi!==0&&xi!==5)return f.callbackNode=null,f.callbackPriority=0,null;var y=f.callbackNode;if(C_()&&f.callbackNode!==y)return null;var w=bn;return w=vt(f,f===Qn?w:0,f.cancelPendingCommit!==null||f.timeoutHandle!==-1),w===0?null:(Gz(f,w,p),cV(f,be()),f.callbackNode!=null&&f.callbackNode===y?dV.bind(null,f):null)}function fV(f,p){if(C_())return null;Gz(f,p,!0)}function e3e(){f3e(function(){(Dn&6)!==0?Lt(ne,JTe):uV()})}function kR(){if(md===0){var f=um;f===0&&(f=Bt,Bt<<=1,(Bt&261888)===0&&(Bt=256)),md=f}return md}function hV(f){return f==null||typeof f=="symbol"||typeof f=="boolean"?null:typeof f=="function"?f:PE(""+f)}function pV(f,p){var y=p.ownerDocument.createElement("input");return y.name=p.name,y.value=p.value,f.id&&y.setAttribute("form",f.id),p.parentNode.insertBefore(y,p),f=new FormData(f),y.parentNode.removeChild(y),f}function t3e(f,p,y,w,N){if(p==="submit"&&y&&y.stateNode===N){var k=hV((N[it]||null).action),z=w.submitter;z&&(p=(p=z[it]||null)?hV(p.formAction):z.getAttribute("formAction"),p!==null&&(k=p,z=null));var ee=new BE("action","action",null,w,N);f.push({event:ee,listeners:[{instance:null,listener:function(){if(w.defaultPrevented){if(md!==0){var me=z?pV(N,z):new FormData(N);Q5(y,{pending:!0,data:me,method:N.method,action:k},null,me)}}else typeof k=="function"&&(ee.preventDefault(),me=z?pV(N,z):new FormData(N),Q5(y,{pending:!0,data:me,method:N.method,action:k},k,me))},currentTarget:N}]})}}for(var IR=0;IR<p5.length;IR++){var MR=p5[IR],n3e=MR.toLowerCase(),r3e=MR[0].toUpperCase()+MR.slice(1);Lo(n3e,"on"+r3e)}Lo(qU,"onAnimationEnd"),Lo(GU,"onAnimationIteration"),Lo(WU,"onAnimationStart"),Lo("dblclick","onDoubleClick"),Lo("focusin","onFocus"),Lo("focusout","onBlur"),Lo(vTe,"onTransitionRun"),Lo(ETe,"onTransitionStart"),Lo(_Te,"onTransitionCancel"),Lo(YU,"onTransitionEnd"),Hs("onMouseEnter",["mouseout","mouseover"]),Hs("onMouseLeave",["mouseout","mouseover"]),Hs("onPointerEnter",["pointerout","pointerover"]),Hs("onPointerLeave",["pointerout","pointerover"]),Ea("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Ea("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Ea("onBeforeInput",["compositionend","keypress","textInput","paste"]),Ea("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Ea("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Ea("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var G1="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(" "),i3e=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(G1));function mV(f,p){p=(p&4)!==0;for(var y=0;y<f.length;y++){var w=f[y],N=w.event;w=w.listeners;e:{var k=void 0;if(p)for(var z=w.length-1;0<=z;z--){var ee=w[z],me=ee.instance,Ce=ee.currentTarget;if(ee=ee.listener,me!==k&&N.isPropagationStopped())break e;k=ee,N.currentTarget=Ce;try{k(N)}catch(Pe){jE(Pe)}N.currentTarget=null,k=me}else for(z=0;z<w.length;z++){if(ee=w[z],me=ee.instance,Ce=ee.currentTarget,ee=ee.listener,me!==k&&N.isPropagationStopped())break e;k=ee,N.currentTarget=Ce;try{k(N)}catch(Pe){jE(Pe)}N.currentTarget=null,k=me}}}}function hn(f,p){var y=p[Tt];y===void 0&&(y=p[Tt]=new Set);var w=f+"__bubble";y.has(w)||(gV(p,f,2,!1),y.add(w))}function DR(f,p,y){var w=0;p&&(w|=4),gV(y,f,w,p)}var R_="_reactListening"+Math.random().toString(36).slice(2);function PR(f){if(!f[R_]){f[R_]=!0,va.forEach(function(y){y!=="selectionchange"&&(i3e.has(y)||DR(y,!1,f),DR(y,!0,f))});var p=f.nodeType===9?f:f.ownerDocument;p===null||p[R_]||(p[R_]=!0,DR("selectionchange",!1,p))}}function gV(f,p,y,w){switch(qV(p)){case 2:var N=I3e;break;case 8:N=M3e;break;default:N=XR}y=N.bind(null,p,y,f),N=void 0,!t5||p!=="touchstart"&&p!=="touchmove"&&p!=="wheel"||(N=!0),w?N!==void 0?f.addEventListener(p,y,{capture:!0,passive:N}):f.addEventListener(p,y,!0):N!==void 0?f.addEventListener(p,y,{passive:N}):f.addEventListener(p,y,!1)}function LR(f,p,y,w,N){var k=w;if((p&1)===0&&(p&2)===0&&w!==null)e:for(;;){if(w===null)return;var z=w.tag;if(z===3||z===4){var ee=w.stateNode.containerInfo;if(ee===N)break;if(z===4)for(z=w.return;z!==null;){var me=z.tag;if((me===3||me===4)&&z.stateNode.containerInfo===N)return;z=z.return}for(;ee!==null;){if(z=yr(ee),z===null)return;if(me=z.tag,me===5||me===6||me===26||me===27){w=k=z;continue e}ee=ee.parentNode}}w=w.return}_U(function(){var Ce=k,Pe=JA(y),Be=[];e:{var Ae=KU.get(f);if(Ae!==void 0){var ke=BE,ct=f;switch(f){case"keypress":if($E(y)===0)break e;case"keydown":case"keyup":ke=QCe;break;case"focusin":ct="focus",ke=s5;break;case"focusout":ct="blur",ke=s5;break;case"beforeblur":case"afterblur":ke=s5;break;case"click":if(y.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":ke=SU;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":ke=BCe;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":ke=eTe;break;case qU:case GU:case WU:ke=jCe;break;case YU:ke=nTe;break;case"scroll":case"scrollend":ke=$Ce;break;case"wheel":ke=iTe;break;case"copy":case"cut":case"paste":ke=VCe;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":ke=TU;break;case"toggle":case"beforetoggle":ke=aTe}var Dt=(p&4)!==0,Gn=!Dt&&(f==="scroll"||f==="scrollend"),_e=Dt?Ae!==null?Ae+"Capture":null:Ae;Dt=[];for(var ye=Ce,Se;ye!==null;){var $e=ye;if(Se=$e.stateNode,$e=$e.tag,$e!==5&&$e!==26&&$e!==27||Se===null||_e===null||($e=p1(ye,_e),$e!=null&&Dt.push(W1(ye,$e,Se))),Gn)break;ye=ye.return}0<Dt.length&&(Ae=new ke(Ae,ct,null,y,Pe),Be.push({event:Ae,listeners:Dt}))}}if((p&7)===0){e:{if(Ae=f==="mouseover"||f==="pointerover",ke=f==="mouseout"||f==="pointerout",Ae&&y!==ZA&&(ct=y.relatedTarget||y.fromElement)&&(yr(ct)||ct[ht]))break e;if((ke||Ae)&&(Ae=Pe.window===Pe?Pe:(Ae=Pe.ownerDocument)?Ae.defaultView||Ae.parentWindow:window,ke?(ct=y.relatedTarget||y.toElement,ke=Ce,ct=ct?yr(ct):null,ct!==null&&(Gn=s(ct),Dt=ct.tag,ct!==Gn||Dt!==5&&Dt!==27&&Dt!==6)&&(ct=null)):(ke=null,ct=Ce),ke!==ct)){if(Dt=SU,$e="onMouseLeave",_e="onMouseEnter",ye="mouse",(f==="pointerout"||f==="pointerover")&&(Dt=TU,$e="onPointerLeave",_e="onPointerEnter",ye="pointer"),Gn=ke==null?Ae:Wr(ke),Se=ct==null?Ae:Wr(ct),Ae=new Dt($e,ye+"leave",ke,y,Pe),Ae.target=Gn,Ae.relatedTarget=Se,$e=null,yr(Pe)===Ce&&(Dt=new Dt(_e,ye+"enter",ct,y,Pe),Dt.target=Se,Dt.relatedTarget=Gn,$e=Dt),Gn=$e,ke&&ct)t:{for(Dt=s3e,_e=ke,ye=ct,Se=0,$e=_e;$e;$e=Dt($e))Se++;$e=0;for(var At=ye;At;At=Dt(At))$e++;for(;0<Se-$e;)_e=Dt(_e),Se--;for(;0<$e-Se;)ye=Dt(ye),$e--;for(;Se--;){if(_e===ye||ye!==null&&_e===ye.alternate){Dt=_e;break t}_e=Dt(_e),ye=Dt(ye)}Dt=null}else Dt=null;ke!==null&&yV(Be,Ae,ke,Dt,!1),ct!==null&&Gn!==null&&yV(Be,Gn,ct,Dt,!0)}}e:{if(Ae=Ce?Wr(Ce):window,ke=Ae.nodeName&&Ae.nodeName.toLowerCase(),ke==="select"||ke==="input"&&Ae.type==="file")var kn=DU;else if(IU(Ae))if(PU)kn=gTe;else{kn=pTe;var mt=hTe}else ke=Ae.nodeName,!ke||ke.toLowerCase()!=="input"||Ae.type!=="checkbox"&&Ae.type!=="radio"?Ce&&QA(Ce.elementType)&&(kn=DU):kn=mTe;if(kn&&(kn=kn(f,Ce))){MU(Be,kn,y,Pe);break e}mt&&mt(f,Ae,Ce),f==="focusout"&&Ce&&Ae.type==="number"&&Ce.memoizedProps.value!=null&&h1(Ae,"number",Ae.value)}switch(mt=Ce?Wr(Ce):window,f){case"focusin":(IU(mt)||mt.contentEditable==="true")&&(tm=mt,d5=Ce,x1=null);break;case"focusout":x1=d5=tm=null;break;case"mousedown":f5=!0;break;case"contextmenu":case"mouseup":case"dragend":f5=!1,zU(Be,y,Pe);break;case"selectionchange":if(bTe)break;case"keydown":case"keyup":zU(Be,y,Pe)}var Xt;if(o5)e:{switch(f){case"compositionstart":var vn="onCompositionStart";break e;case"compositionend":vn="onCompositionEnd";break e;case"compositionupdate":vn="onCompositionUpdate";break e}vn=void 0}else em?OU(f,y)&&(vn="onCompositionEnd"):f==="keydown"&&y.keyCode===229&&(vn="onCompositionStart");vn&&(AU&&y.locale!=="ko"&&(em||vn!=="onCompositionStart"?vn==="onCompositionEnd"&&em&&(Xt=xU()):(Jc=Pe,n5="value"in Jc?Jc.value:Jc.textContent,em=!0)),mt=N_(Ce,vn),0<mt.length&&(vn=new CU(vn,f,null,y,Pe),Be.push({event:vn,listeners:mt}),Xt?vn.data=Xt:(Xt=kU(y),Xt!==null&&(vn.data=Xt)))),(Xt=lTe?uTe(f,y):cTe(f,y))&&(vn=N_(Ce,"onBeforeInput"),0<vn.length&&(mt=new CU("onBeforeInput","beforeinput",null,y,Pe),Be.push({event:mt,listeners:vn}),mt.data=Xt)),t3e(Be,f,Ce,y,Pe)}mV(Be,p)})}function W1(f,p,y){return{instance:f,listener:p,currentTarget:y}}function N_(f,p){for(var y=p+"Capture",w=[];f!==null;){var N=f,k=N.stateNode;if(N=N.tag,N!==5&&N!==26&&N!==27||k===null||(N=p1(f,y),N!=null&&w.unshift(W1(f,N,k)),N=p1(f,p),N!=null&&w.push(W1(f,N,k))),f.tag===3)return w;f=f.return}return[]}function s3e(f){if(f===null)return null;do f=f.return;while(f&&f.tag!==5&&f.tag!==27);return f||null}function yV(f,p,y,w,N){for(var k=p._reactName,z=[];y!==null&&y!==w;){var ee=y,me=ee.alternate,Ce=ee.stateNode;if(ee=ee.tag,me!==null&&me===w)break;ee!==5&&ee!==26&&ee!==27||Ce===null||(me=Ce,N?(Ce=p1(y,k),Ce!=null&&z.unshift(W1(y,Ce,me))):N||(Ce=p1(y,k),Ce!=null&&z.push(W1(y,Ce,me)))),y=y.return}z.length!==0&&f.push({event:p,listeners:z})}var a3e=/\r\n?/g,o3e=/\u0000|\uFFFD/g;function bV(f){return(typeof f=="string"?f:""+f).replace(a3e,` 9`).replace(o3e,"")}function vV(f,p){return p=bV(p),bV(f)===p}function qn(f,p,y,w,N,k){switch(y){case"children":typeof w=="string"?p==="body"||p==="textarea"&&w===""||Qp(f,w):(typeof w=="number"||typeof w=="bigint")&&p!=="body"&&Qp(f,""+w);break;case"className":_a(f,"class",w);break;case"tabIndex":_a(f,"tabindex",w);break;case"dir":case"role":case"viewBox":case"width":case"height":_a(f,y,w);break;case"style":vU(f,w,k);break;case"data":if(p!=="object"){_a(f,"data",w);break}case"src":case"href":if(w===""&&(p!=="a"||y!=="href")){f.removeAttribute(y);break}if(w==null||typeof w=="function"||typeof w=="symbol"||typeof w=="boolean"){f.removeAttribute(y);break}w=PE(""+w),f.setAttribute(y,w);break;case"action":case"formAction":if(typeof w=="function"){f.setAttribute(y,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof k=="function"&&(y==="formAction"?(p!=="input"&&qn(f,p,"name",N.name,N,null),qn(f,p,"formEncType",N.formEncType,N,null),qn(f,p,"formMethod",N.formMethod,N,null),qn(f,p,"formTarget",N.formTarget,N,null)):(qn(f,p,"encType",N.encType,N,null),qn(f,p,"method",N.method,N,null),qn(f,p,"target",N.target,N,null)));if(w==null||typeof w=="symbol"||typeof w=="boolean"){f.removeAttribute(y);break}w=PE(""+w),f.setAttribute(y,w);break;case"onClick":w!=null&&(f.onclick=Mu);break;case"onScroll":w!=null&&hn("scroll",f);break;case"onScrollEnd":w!=null&&hn("scrollend",f);break;case"dangerouslySetInnerHTML":if(w!=null){if(typeof w!="object"||!("__html"in w))throw Error(r(61));if(y=w.__html,y!=null){if(N.children!=null)throw Error(r(60));f.innerHTML=y}}break;case"multiple":f.multiple=w&&typeof w!="function"&&typeof w!="symbol";break;case"muted":f.muted=w&&typeof w!="function"&&typeof w!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(w==null||typeof w=="function"||typeof w=="boolean"||typeof w=="symbol"){f.removeAttribute("xlink:href");break}y=PE(""+w),f.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",y);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":w!=null&&typeof w!="function"&&typeof w!="symbol"?f.setAttribute(y,""+w):f.removeAttribute(y);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInl
9ine":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":w&&typeof w!="function"&&typeof w!="symbol"?f.setAttribute(y,""):f.removeAttribute(y);break;case"capture":case"download":w===!0?f.setAttribute(y,""):w!==!1&&w!=null&&typeof w!="function"&&typeof w!="symbol"?f.setAttribute(y,w):f.removeAttribute(y);break;case"cols":case"rows":case"size":case"span":w!=null&&typeof w!="function"&&typeof w!="symbol"&&!isNaN(w)&&1<=w?f.setAttribute(y,w):f.removeAttribute(y);break;case"rowSpan":case"start":w==null||typeof w=="function"||typeof w=="symbol"||isNaN(w)?f.removeAttribute(y):f.setAttribute(y,w);break;case"popover":hn("beforetoggle",f),hn("toggle",f),Nr(f,"popover",w);break;case"xlinkActuate":_i(f,"http://www.w3.org/1999/xlink","xlink:actuate",w);break;case"xlinkArcrole":_i(f,"http://www.w3.org/1999/xlink","xlink:arcrole",w);break;case"xlinkRole":_i(f,"http://www.w3.org/1999/xlink","xlink:role",w);break;case"xlinkShow":_i(f,"http://www.w3.org/1999/xlink","xlink:show",w);break;case"xlinkTitle":_i(f,"http://www.w3.org/1999/xlink","xlink:title",w);break;case"xlinkType":_i(f,"http://www.w3.org/1999/xlink","xlink:type",w);break;case"xmlBase":_i(f,"http://www.w3.org/XML/1998/namespace","xml:base",w);break;case"xmlLang":_i(f,"http://www.w3.org/XML/1998/namespace","xml:lang",w);break;case"xmlSpace":_i(f,"http://www.w3.org/XML/1998/namespace","xml:space",w);break;case"is":Nr(f,"is",w);break;case"innerText":case"textContent":break;default:(!(2<y.length)||y[0]!=="o"&&y[0]!=="O"||y[1]!=="n"&&y[1]!=="N")&&(y=PCe.get(y)||y,Nr(f,y,w))}}function $R(f,p,y,w,N,k){switch(y){case"style":vU(f,w,k);break;case"dangerouslySetInnerHTML":if(w!=null){if(typeof w!="object"||!("__html"in w))throw Error(r(61));if(y=w.__html,y!=null){if(N.children!=null)throw Error(r(60));f.innerHTML=y}}break;case"children":typeof w=="string"?Qp(f,w):(typeof w=="number"||typeof w=="bigint")&&Qp(f,""+w);break;case"onScroll":w!=null&&hn("scroll",f);break;case"onScrollEnd":w!=null&&hn("scrollend",f);break;case"onClick":w!=null&&(f.onclick=Mu);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Es.hasOwnProperty(y))e:{if(y[0]==="o"&&y[1]==="n"&&(N=y.endsWith("Capture"),p=y.slice(2,N?y.length-7:void 0),k=f[it]||null,k=k!=null?k[y]:null,typeof k=="function"&&f.removeEventListener(p,k,N),typeof w=="function")){typeof k!="function"&&k!==null&&(y in f?f[y]=null:f.hasAttribute(y)&&f.removeAttribute(y)),f.addEventListener(p,w,N);break e}y in f?f[y]=w:w===!0?f.setAttribute(y,""):Nr(f,y,w)}}}function Yi(f,p,y){switch(p){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":hn("error",f),hn("load",f);var w=!1,N=!1,k;for(k in y)if(y.hasOwnProperty(k)){var z=y[k];if(z!=null)switch(k){case"src":w=!0;break;case"srcSet":N=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,p));default:qn(f,p,k,z,y,null)}}N&&qn(f,p,"srcSet",y.srcSet,y,null),w&&qn(f,p,"src",y.src,y,null);return;case"input":hn("invalid",f);var ee=k=z=N=null,me=null,Ce=null;for(w in y)if(y.hasOwnProperty(w)){var Pe=y[w];if(Pe!=null)switch(w){case"name":N=Pe;break;case"type":z=Pe;break;case"checked":me=Pe;break;case"defaultChecked":Ce=Pe;break;case"value":k=Pe;break;case"defaultValue":ee=Pe;break;case"children":case"dangerouslySetInnerHTML":if(Pe!=null)throw Error(r(137,p));break;default:qn(f,p,w,Pe,y,null)}}DE(f,k,ee,me,Ce,z,N,!1);return;case"select":hn("invalid",f),w=z=k=null;for(N in y)if(y.hasOwnProperty(N)&&(ee=y[N],ee!=null))switch(N){case"value":k=ee;break;case"defaultValue":z=ee;break;case"multiple":w=ee;default:qn(f,p,N,ee,y,null)}p=k,y=z,f.multiple=!!w,p!=null?Iu(f,!!w,p,!1):y!=null&&Iu(f,!!w,y,!0);return;case"textarea":hn("invalid",f),k=N=w=null;for(z in y)if(y.hasOwnProperty(z)&&(ee=y[z],ee!=null))switch(z){case"value":w=ee;break;case"defaultValue":N=ee;break;case"children":k=ee;break;case"dangerouslySetInnerHTML":if(ee!=null)throw Error(r(91));break;default:qn(f,p,z,ee,y,null)}yU(f,w,N,k);return;case"option":for(me in y)y.hasOwnProperty(me)&&(w=y[me],w!=null)&&(me==="selected"?f.selected=w&&typeof w!="function"&&typeof w!="symbol":qn(f,p,me,w,y,null));return;case"dialog":hn("beforetoggle",f),hn("toggle",f),hn("cancel",f),hn("close",f);break;case"iframe":case"object":hn("load",f);break;case"video":case"audio":for(w=0;w<G1.length;w++)hn(G1[w],f);break;case"image":hn("error",f),hn("load",f);break;case"details":hn("toggle",f);break;case"embed":case"source":case"link":hn("error",f),hn("load",f);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(Ce in y)if(y.hasOwnProperty(Ce)&&(w=y[Ce],w!=null))switch(Ce){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,p));default:qn(f,p,Ce,w,y,null)}return;default:if(QA(p)){for(Pe in y)y.hasOwnProperty(Pe)&&(w=y[Pe],w!==void 0&&$R(f,p,Pe,w,y,void 0));return}}for(ee in y)y.hasOwnProperty(ee)&&(w=y[ee],w!=null&&qn(f,p,ee,w,y,null))}function l3e(f,p,y,w){switch(p){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var N=null,k=null,z=null,ee=null,me=null,Ce=null,Pe=null;for(ke in y){var Be=y[ke];if(y.hasOwnProperty(ke)&&Be!=null)switch(ke){case"checked":break;case"value":break;case"defaultValue":me=Be;default:w.hasOwnProperty(ke)||qn(f,p,ke,null,w,Be)}}for(var Ae in w){var ke=w[Ae];if(Be=y[Ae],w.hasOwnProperty(Ae)&&(ke!=null||Be!=null))switch(Ae){case"type":k=ke;break;case"name":N=ke;break;case"checked":Ce=ke;break;case"defaultChecked":Pe=ke;break;case"value":z=ke;break;case"defaultValue":ee=ke;break;case"children":case"dangerouslySetInnerHTML":if(ke!=null)throw Error(r(137,p));break;default:ke!==Be&&qn(f,p,Ae,ke,w,Be)}}
vendor: 7,292 bytes, line 9
9Df(f,z,ee,me,Ce,Pe,k,N);return;case"select":ke=z=ee=Ae=null;for(k in y)if(me=y[k],y.hasOwnProperty(k)&&me!=null)switch(k){case"value":break;case"multiple":ke=me;default:w.hasOwnProperty(k)||qn(f,p,k,null,w,me)}for(N in w)if(k=w[N],me=y[N],w.hasOwnProperty(N)&&(k!=null||me!=null))switch(N){case"value":Ae=k;break;case"defaultValue":ee=k;break;case"multiple":z=k;default:k!==me&&qn(f,p,N,k,w,me)}p=ee,y=z,w=ke,Ae!=null?Iu(f,!!y,Ae,!1):!!w!=!!y&&(p!=null?Iu(f,!!y,p,!0):Iu(f,!!y,y?[]:"",!1));return;case"textarea":ke=Ae=null;for(ee in y)if(N=y[ee],y.hasOwnProperty(ee)&&N!=null&&!w.hasOwnProperty(ee))switch(ee){case"value":break;case"children":break;default:qn(f,p,ee,null,w,N)}for(z in w)if(N=w[z],k=y[z],w.hasOwnProperty(z)&&(N!=null||k!=null))switch(z){case"value":Ae=N;break;case"defaultValue":ke=N;break;case"children":break;case"dangerouslySetInnerHTML":if(N!=null)throw Error(r(91));break;default:N!==k&&qn(f,p,z,N,w,k)}gU(f,Ae,ke);return;case"option":for(var ct in y)Ae=y[ct],y.hasOwnProperty(ct)&&Ae!=null&&!w.hasOwnProperty(ct)&&(ct==="selected"?f.selected=!1:qn(f,p,ct,null,w,Ae));for(me in w)Ae=w[me],ke=y[me],w.hasOwnProperty(me)&&Ae!==ke&&(Ae!=null||ke!=null)&&(me==="selected"?f.selected=Ae&&typeof Ae!="function"&&typeof Ae!="symbol":qn(f,p,me,Ae,w,ke));return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var Dt in y)Ae=y[Dt],y.hasOwnProperty(Dt)&&Ae!=null&&!w.hasOwnProperty(Dt)&&qn(f,p,Dt,null,w,Ae);for(Ce in w)if(Ae=w[Ce],ke=y[Ce],w.hasOwnProperty(Ce)&&Ae!==ke&&(Ae!=null||ke!=null))switch(Ce){case"children":case"dangerouslySetInnerHTML":if(Ae!=null)throw Error(r(137,p));break;default:qn(f,p,Ce,Ae,w,ke)}return;default:if(QA(p)){for(var Gn in y)Ae=y[Gn],y.hasOwnProperty(Gn)&&Ae!==void 0&&!w.hasOwnProperty(Gn)&&$R(f,p,Gn,void 0,w,Ae);for(Pe in w)Ae=w[Pe],ke=y[Pe],!w.hasOwnProperty(Pe)||Ae===ke||Ae===void 0&&ke===void 0||$R(f,p,Pe,Ae,w,ke);return}}for(var _e in y)Ae=y[_e],y.hasOwnProperty(_e)&&Ae!=null&&!w.hasOwnProperty(_e)&&qn(f,p,_e,null,w,Ae);for(Be in w)Ae=w[Be],ke=y[Be],!w.hasOwnProperty(Be)||Ae===ke||Ae==null&&ke==null||qn(f,p,Be,Ae,w,ke)}function EV(f){switch(f){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function u3e(){if(typeof performance.getEntriesByType=="function"){for(var f=0,p=0,y=performance.getEntriesByType("resource"),w=0;w<y.length;w++){var N=y[w],k=N.transferSize,z=N.initiatorType,ee=N.duration;if(k&&ee&&EV(z)){for(z=0,ee=N.responseEnd,w+=1;w<y.length;w++){var me=y[w],Ce=me.startTime;if(Ce>ee)break;var Pe=me.transferSize,Be=me.initiatorType;Pe&&EV(Be)&&(me=me.responseEnd,z+=Pe*(me<ee?1:(ee-Ce)/(me-Ce)))}if(--w,p+=8*(k+z)/(N.duration/1e3),f++,10<f)break}}if(0<f)return p/f/1e6}return navigator.connection&&(f=navigator.connection.downlink,typeof f=="number")?f:5}var FR=null,BR=null;function O_(f){return f.nodeType===9?f:f.ownerDocument}function _V(f){switch(f){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function xV(f,p){if(f===0)switch(p){case"svg":return 1;case"math":return 2;default:return 0}return f===1&&p==="foreignObject"?0:f}function HR(f,p){return f==="textarea"||f==="noscript"||typeof p.children=="string"||typeof p.children=="number"||typeof p.children=="bigint"||typeof p.dangerouslySetInnerHTML=="object"&&p.dangerouslySetInnerHTML!==null&&p.dangerouslySetInnerHTML.__html!=null}var UR=null;function c3e(){var f=window.event;return f&&f.type==="popstate"?f===UR?!1:(UR=f,!0):(UR=null,!1)}var wV=typeof setTimeout=="function"?setTimeout:void 0,d3e=typeof clearTimeout=="function"?clearTimeout:void 0,SV=typeof Promise=="function"?Promise:void 0,f3e=typeof queueMicrotask=="function"?queueMicrotask:typeof SV<"u"?function(f){return SV.resolve(null).then(f).catch(h3e)}:wV;function h3e(f){setTimeout(function(){throw f})}function gd(f){return f==="head"}function CV(f,p){var y=p,w=0;do{var N=y.nextSibling;if(f.removeChild(y),N&&N.nodeType===8)if(y=N.data,y==="/$"||y==="/&"){if(w===0){f.removeChild(N),Rm(p);return}w--}else if(y==="$"||y==="$?"||y==="$~"||y==="$!"||y==="&")w++;else if(y==="html")Y1(f.ownerDocument.documentElement);else if(y==="head"){y=f.ownerDocument.head,Y1(y);for(var k=y.firstChild;k;){var z=k.nextSibling,ee=k.nodeName;k[cr]||ee==="SCRIPT"||ee==="STYLE"||ee==="LINK"&&k.rel.toLowerCase()==="stylesheet"||y.removeChild(k),k=z}}else y==="body"&&Y1(f.ownerDocument.body);y=N}while(y);Rm(p)}function TV(f,p){var y=f;f=0;do{var w=y.nextSibling;if(y.nodeType===1?p?(y._stashedDisplay=y.style.display,y.style.display="none"):(y.style.display=y._stashedDisplay||"",y.getAttribute("style")===""&&y.removeAttribute("style")):y.nodeType===3&&(p?(y._stashedText=y.nodeValue,y.nodeValue=""):y.nodeValue=y._stashedText||""),w&&w.nodeType===8)if(y=w.data,y==="/$"){if(f===0)break;f--}else y!=="$"&&y!=="$?"&&y!=="$~"&&y!=="$!"||f++;y=w}while(y)}function jR(f){var p=f.firstChild;for(p&&p.nodeType===10&&(p=p.nextSibling);p;){var y=p;switch(p=p.nextSibling,y.nodeName){case"HTML":case"HEAD":case"BODY":jR(y),gr(y);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(y.rel.toLowerCase()==="stylesheet")continue}f.removeChild(y)}}function p3e(f,p,y,w){for(;f.nodeType===1;){var N=y;if(f.nodeName.toLowerCase()!==p.toLowerCase()){if(!w&&(f.nodeName!=="INPUT"||f.type!=="hidden"))break}else if(w){if(!f[cr])switch(p){case"meta":if(!f.hasAttribute("itemprop"))break;return f;case"link":if(k=f.getAttribute("rel"),k==="stylesheet"&&f.hasAttribute("data-precedence"))break;if(k!==N.rel||f.getAttribute("href")!==(N.href==null||N.href===""?null:N.href)||f.getAttribute("crossorigin")!==(N.crossOrigin==null?null:N.crossOrigin)||f.getAttribute("title")!==(N.title==null?null:N.title))break;return f;case"style":if(f.hasAttribute("data-precedence"))break;return f;case"script":if(k=f.getAttribute("src"),(k!==(N.src==null?null:N.src)||f.getAttribute("type")!==(N.type==null?null:N.type)||f.getAttribute("crossorigin")!==(N.crossOrigin==null?null:N.crossOrigin))&&k&&f.hasAttribute("async")&&!f.hasAttribute("itemprop"))break;return f;default:return f}}else if(p==="input"&&f.type==="hidden"){var k=N.name==null?null:""+N.name;if(N.type==="hidden"&&f.getAttribute("name")===k)return f}else return f;if(f=io(f.nextSibling),f===null)break}return null}function m3e(f,p,y){if(p==="")return null;for(;f.nodeType!==3;)if((f.nodeType!==1||f.nodeName!=="INPUT"||f.type!=="hidden")&&!y||(f=io(f.nextSibling),f===null))return null;return f}function AV(f,p){for(;f.nodeType!==8;)if((f.nodeType!==1||f.nodeName!=="INPUT"||f.type!=="hidden")&&!p||(f=io(f.nextSibling),f===null))return null;return f}function zR(f){return f.data==="$?"||f.data==="$~"}function VR(f){return f.data==="$!"||f.data==="$?"&&f.ownerDocument.readyState!=="loading"}function g3e(f,p){var y=f.ownerDocument;if(f.data==="$~")f._reactRetry=p;else if(f.data!=="$?"||y.readyState!=="loading")p();else{var w=function(){p(),y.removeEventListener("DOMContentLoaded",w)};y.addEventListener("DOMContentLoaded",w),f._reactRetry=w}}function io(f){for(;f!=null;f=f.nextSibling){var p=f.nodeType;if(p===1||p===3)break;if(p===8){if(p=f.data,p==="$"||p==="$!"||p==="$?"||p==="$~"||p==="&"||p==="F!"||p==="F")break;
vendor: 5,099 bytes, line 9
9if(p==="/$"||p==="/&")return null}}return f}var qR=null;function RV(f){f=f.nextSibling;for(var p=0;f;){if(f.nodeType===8){var y=f.data;if(y==="/$"||y==="/&"){if(p===0)return io(f.nextSibling);p--}else y!=="$"&&y!=="$!"&&y!=="$?"&&y!=="$~"&&y!=="&"||p++}f=f.nextSibling}return null}function NV(f){f=f.previousSibling;for(var p=0;f;){if(f.nodeType===8){var y=f.data;if(y==="$"||y==="$!"||y==="$?"||y==="$~"||y==="&"){if(p===0)return f;p--}else y!=="/$"&&y!=="/&"||p++}f=f.previousSibling}return null}function OV(f,p,y){switch(p=O_(y),f){case"html":if(f=p.documentElement,!f)throw Error(r(452));return f;case"head":if(f=p.head,!f)throw Error(r(453));return f;case"body":if(f=p.body,!f)throw Error(r(454));return f;default:throw Error(r(451))}}function Y1(f){for(var p=f.attributes;p.length;)f.removeAttributeNode(p[0]);gr(f)}var so=new Map,kV=new Set;function k_(f){return typeof f.getRootNode=="function"?f.getRootNode():f.nodeType===9?f:f.ownerDocument}var Ku=G.d;G.d={f:y3e,r:b3e,D:v3e,C:E3e,L:_3e,m:x3e,X:S3e,S:w3e,M:C3e};function y3e(){var f=Ku.f(),p=x_();return f||p}function b3e(f){var p=un(f);p!==null&&p.tag===5&&p.type==="form"?Yj(p):Ku.r(f)}var Cm=typeof document>"u"?null:document;function IV(f,p,y){var w=Cm;if(w&&typeof p=="string"&&p){var N=Us(p);N='link[rel="'+f+'"][href="'+N+'"]',typeof y=="string"&&(N+='[crossorigin="'+y+'"]'),kV.has(N)||(kV.add(N),f={rel:f,crossOrigin:y,href:p},w.querySelector(N)===null&&(p=w.createElement("link"),Yi(p,"link",f),nr(p),w.head.appendChild(p)))}}function v3e(f){Ku.D(f),IV("dns-prefetch",f,null)}function E3e(f,p){Ku.C(f,p),IV("preconnect",f,p)}function _3e(f,p,y){Ku.L(f,p,y);var w=Cm;if(w&&f&&p){var N='link[rel="preload"][as="'+Us(p)+'"]';p==="image"&&y&&y.imageSrcSet?(N+='[imagesrcset="'+Us(y.imageSrcSet)+'"]',typeof y.imageSizes=="string"&&(N+='[imagesizes="'+Us(y.imageSizes)+'"]')):N+='[href="'+Us(f)+'"]';var k=N;switch(p){case"style":k=Tm(f);break;case"script":k=Am(f)}so.has(k)||(f=d({rel:"preload",href:p==="image"&&y&&y.imageSrcSet?void 0:f,as:p},y),so.set(k,f),w.querySelector(N)!==null||p==="style"&&w.querySelector(K1(k))||p==="script"&&w.querySelector(X1(k))||(p=w.createElement("link"),Yi(p,"link",f),nr(p),w.head.appendChild(p)))}}function x3e(f,p){Ku.m(f,p);var y=Cm;if(y&&f){var w=p&&typeof p.as=="string"?p.as:"script",N='link[rel="modulepreload"][as="'+Us(w)+'"][href="'+Us(f)+'"]',k=N;switch(w){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":k=Am(f)}if(!so.has(k)&&(f=d({rel:"modulepreload",href:f},p),so.set(k,f),y.querySelector(N)===null)){switch(w){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(y.querySelector(X1(k)))return}w=y.createElement("link"),Yi(w,"link",f),nr(w),y.head.appendChild(w)}}}function w3e(f,p,y){Ku.S(f,p,y);var w=Cm;if(w&&f){var N=es(w).hoistableStyles,k=Tm(f);p=p||"default";var z=N.get(k);if(!z){var ee={loading:0,preload:null};if(z=w.querySelector(K1(k)))ee.loading=5;else{f=d({rel:"stylesheet",href:f,"data-precedence":p},y),(y=so.get(k))&&GR(f,y);var me=z=w.createElement("link");nr(me),Yi(me,"link",f),me._p=new Promise(function(Ce,Pe){me.onload=Ce,me.onerror=Pe}),me.addEventListener("load",function(){ee.loading|=1}),me.addEventListener("error",function(){ee.loading|=2}),ee.loading|=4,I_(z,p,w)}z={type:"stylesheet",instance:z,count:1,state:ee},N.set(k,z)}}}function S3e(f,p){Ku.X(f,p);var y=Cm;if(y&&f){var w=es(y).hoistableScripts,N=Am(f),k=w.get(N);k||(k=y.querySelector(X1(N)),k||(f=d({src:f,async:!0},p),(p=so.get(N))&&WR(f,p),k=y.createElement("script"),nr(k),Yi(k,"link",f),y.head.appendChild(k)),k={type:"script",instance:k,count:1,state:null},w.set(N,k))}}function C3e(f,p){Ku.M(f,p);var y=Cm;if(y&&f){var w=es(y).hoistableScripts,N=Am(f),k=w.get(N);k||(k=y.querySelector(X1(N)),k||(f=d({src:f,async:!0,type:"module"},p),(p=so.get(N))&&WR(f,p),k=y.createElement("script"),nr(k),Yi(k,"link",f),y.head.appendChild(k)),k={type:"script",instance:k,count:1,state:null},w.set(N,k))}}function MV(f,p,y,w){var N=(N=se.current)?k_(N):null;if(!N)throw Error(r(446));switch(f){case"meta":case"title":return null;case"style":return typeof y.precedence=="string"&&typeof y.href=="string"?(p=Tm(y.href),y=es(N).hoistableStyles,w=y.get(p),w||(w={type:"style",instance:null,count:0,state:null},y.set(p,w)),w):{type:"void",instance:null,count:0,state:null};case"link":if(y.rel==="stylesheet"&&typeof y.href=="string"&&typeof y.precedence=="string"){f=Tm(y.href);var k=es(N).hoistableStyles,z=k.get(f);if(z||(N=N.ownerDocument||N,z={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},k.set(f,z),(k=N.querySelector(K1(f)))&&!k._p&&(z.instance=k,z.state.loading=5),so.has(f)||(y={rel:"preload",as:"style",href:y.href,crossOrigin:y.crossOrigin,integrity:y.integrity,media:y.media,hrefLang:y.hrefLang,referrerPolicy:y.referrerPolicy},so.set(f,y),k||T3e(N,f,y,z.state))),p&&w===null)throw Error(r(528,""));return z}if(p&&w!==null)throw Error(r(529,""));return null;case"script":return p=y.async,y=y.src,typeof y=="string"&&p&&typeof p!="function"&&typeof p!="symbol"?
vendor: 4,862 bytes, line 9
9(p=Am(y),y=es(N).hoistableScripts,w=y.get(p),w||(w={type:"script",instance:null,count:0,state:null},y.set(p,w)),w):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,f))}}function Tm(f){return'href="'+Us(f)+'"'}function K1(f){return'link[rel="stylesheet"]['+f+"]"}function DV(f){return d({},f,{"data-precedence":f.precedence,precedence:null})}function T3e(f,p,y,w){f.querySelector('link[rel="preload"][as="style"]['+p+"]")?w.loading=1:(p=f.createElement("link"),w.preload=p,p.addEventListener("load",function(){return w.loading|=1}),p.addEventListener("error",function(){return w.loading|=2}),Yi(p,"link",y),nr(p),f.head.appendChild(p))}function Am(f){return'[src="'+Us(f)+'"]'}function X1(f){return"script[async]"+f}function PV(f,p,y){if(p.count++,p.instance===null)switch(p.type){case"style":var w=f.querySelector('style[data-href~="'+Us(y.href)+'"]');if(w)return p.instance=w,nr(w),w;var N=d({},y,{"data-href":y.href,"data-precedence":y.precedence,href:null,precedence:null});return w=(f.ownerDocument||f).createElement("style"),nr(w),Yi(w,"style",N),I_(w,y.precedence,f),p.instance=w;case"stylesheet":N=Tm(y.href);var k=f.querySelector(K1(N));if(k)return p.state.loading|=4,p.instance=k,nr(k),k;w=DV(y),(N=so.get(N))&&GR(w,N),k=(f.ownerDocument||f).createElement("link"),nr(k);var z=k;return z._p=new Promise(function(ee,me){z.onload=ee,z.onerror=me}),Yi(k,"link",w),p.state.loading|=4,I_(k,y.precedence,f),p.instance=k;case"script":return k=Am(y.src),(N=f.querySelector(X1(k)))?(p.instance=N,nr(N),N):(w=y,(N=so.get(k))&&(w=d({},y),WR(w,N)),f=f.ownerDocument||f,N=f.createElement("script"),nr(N),Yi(N,"link",w),f.head.appendChild(N),p.instance=N);case"void":return null;default:throw Error(r(443,p.type))}else p.type==="stylesheet"&&(p.state.loading&4)===0&&(w=p.instance,p.state.loading|=4,I_(w,y.precedence,f));return p.instance}function I_(f,p,y){for(var w=y.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),N=w.length?w[w.length-1]:null,k=N,z=0;z<w.length;z++){var ee=w[z];if(ee.dataset.precedence===p)k=ee;else if(k!==N)break}k?k.parentNode.insertBefore(f,k.nextSibling):(p=y.nodeType===9?y.head:y,p.insertBefore(f,p.firstChild))}function GR(f,p){f.crossOrigin==null&&(f.crossOrigin=p.crossOrigin),f.referrerPolicy==null&&(f.referrerPolicy=p.referrerPolicy),f.title==null&&(f.title=p.title)}function WR(f,p){f.crossOrigin==null&&(f.crossOrigin=p.crossOrigin),f.referrerPolicy==null&&(f.referrerPolicy=p.referrerPolicy),f.integrity==null&&(f.integrity=p.integrity)}var M_=null;function LV(f,p,y){if(M_===null){var w=new Map,N=M_=new Map;N.set(y,w)}else N=M_,w=N.get(y),w||(w=new Map,N.set(y,w));if(w.has(f))return w;for(w.set(f,null),y=y.getElementsByTagName(f),N=0;N<y.length;N++){var k=y[N];if(!(k[cr]||k[Je]||f==="link"&&k.getAttribute("rel")==="stylesheet")&&k.namespaceURI!=="http://www.w3.org/2000/svg"){var z=k.getAttribute(p)||"";z=f+z;var ee=w.get(z);ee?ee.push(k):w.set(z,[k])}}return w}function $V(f,p,y){f=f.ownerDocument||f,f.head.insertBefore(y,p==="title"?f.querySelector("head > title"):null)}function A3e(f,p,y){if(y===1||p.itemProp!=null)return!1;switch(f){case"meta":case"title":return!0;case"style":if(typeof p.precedence!="string"||typeof p.href!="string"||p.href==="")break;return!0;case"link":if(typeof p.rel!="string"||typeof p.href!="string"||p.href===""||p.onLoad||p.onError)break;return p.rel==="stylesheet"?(f=p.disabled,typeof p.precedence=="string"&&f==null):!0;case"script":if(p.async&&typeof p.async!="function"&&typeof p.async!="symbol"&&!p.onLoad&&!p.onError&&p.src&&typeof p.src=="string")return!0}return!1}function FV(f){return!(f.type==="stylesheet"&&(f.state.loading&3)===0)}function R3e(f,p,y,w){if(y.type==="stylesheet"&&(typeof w.media!="string"||matchMedia(w.media).matches!==!1)&&(y.state.loading&4)===0){if(y.instance===null){var N=Tm(w.href),k=p.querySelector(K1(N));if(k){p=k._p,p!==null&&typeof p=="object"&&typeof p.then=="function"&&(f.count++,f=D_.bind(f),p.then(f,f)),y.state.loading|=4,y.instance=k,nr(k);return}k=p.ownerDocument||p,w=DV(w),(N=so.get(N))&&GR(w,N),k=k.createElement("link"),nr(k);var z=k;z._p=new Promise(function(ee,me){z.onload=ee,z.onerror=me}),Yi(k,"link",w),y.instance=k}f.stylesheets===null&&(f.stylesheets=new Map),f.stylesheets.set(y,p),(p=y.state.preload)&&(y.state.loading&3)===0&&(f.count++,y=D_.bind(f),p.addEventListener("load",y),p.addEventListener("error",y))}}var YR=0;function N3e(f,p){return f.stylesheets&&f.count===0&&L_(f,f.stylesheets),0<f.count||0<f.imgCount?function(y){var w=setTimeout(function(){if(f.stylesheets&&L_(f,f.stylesheets),f.unsuspend){var k=f.unsuspend;f.unsuspend=null,k()}},6e4+p);0<f.imgBytes&&YR===0&&(YR=62500*u3e());var N=setTimeout(function(){if(f.waitingForImages=!1,f.count===0&&(f.stylesheets&&L_(f,f.stylesheets),f.unsuspend)){var k=f.unsuspend;f.unsuspend=null,k()}},(f.imgBytes>
vendor: 4,200 bytes, line 9
9YR?50:800)+p);return f.unsuspend=y,function(){f.unsuspend=null,clearTimeout(w),clearTimeout(N)}}:null}function D_(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)L_(this,this.stylesheets);else if(this.unsuspend){var f=this.unsuspend;this.unsuspend=null,f()}}}var P_=null;function L_(f,p){f.stylesheets=null,f.unsuspend!==null&&(f.count++,P_=new Map,p.forEach(O3e,f),P_=null,D_.call(f))}function O3e(f,p){if(!(p.state.loading&4)){var y=P_.get(f);if(y)var w=y.get(null);else{y=new Map,P_.set(f,y);for(var N=f.querySelectorAll("link[data-precedence],style[data-precedence]"),k=0;k<N.length;k++){var z=N[k];(z.nodeName==="LINK"||z.getAttribute("media")!=="not all")&&(y.set(z.dataset.precedence,z),w=z)}w&&y.set(null,w)}N=p.instance,z=N.getAttribute("data-precedence"),k=y.get(z)||w,k===w&&y.set(null,N),y.set(z,N),this.count++,w=D_.bind(this),N.addEventListener("load",w),N.addEventListener("error",w),k?k.parentNode.insertBefore(N,k.nextSibling):(f=f.nodeType===9?f.head:f,f.insertBefore(N,f.firstChild)),p.state.loading|=4}}var Q1={$$typeof:_,Provider:null,Consumer:null,_currentValue:H,_currentValue2:H,_threadCount:0};function k3e(f,p,y,w,N,k,z,ee,me){this.tag=1,this.containerInfo=f,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=ur(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ur(0),this.hiddenUpdates=ur(null),this.identifierPrefix=w,this.onUncaughtError=N,this.onCaughtError=k,this.onRecoverableError=z,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=me,this.incompleteTransitions=new Map}function BV(f,p,y,w,N,k,z,ee,me,Ce,Pe,Be){return f=new k3e(f,p,y,z,me,Ce,Pe,Be,ee),p=1,k===!0&&(p|=24),k=wa(3,null,null,p),f.current=k,k.stateNode=f,p=A5(),p.refCount++,f.pooledCache=p,p.refCount++,k.memoizedState={element:w,isDehydrated:y,cache:p},k5(k),f}function HV(f){return f?(f=im,f):im}function UV(f,p,y,w,N,k){N=HV(N),w.context===null?w.context=N:w.pendingContext=N,w=sd(p),w.payload={element:y},k=k===void 0?null:k,k!==null&&(w.callback=k),y=ad(f,w,p),y!==null&&(Ws(y,f,p),N1(y,f,p))}function jV(f,p){if(f=f.memoizedState,f!==null&&f.dehydrated!==null){var y=f.retryLane;f.retryLane=y!==0&&y<p?y:p}}function KR(f,p){jV(f,p),(f=f.alternate)&&jV(f,p)}function zV(f){if(f.tag===13||f.tag===31){var p=Ff(f,67108864);p!==null&&Ws(p,f,67108864),KR(f,67108864)}}function VV(f){if(f.tag===13||f.tag===31){var p=Ra();p=Te(p);var y=Ff(f,p);y!==null&&Ws(y,f,p),KR(f,p)}}var $_=!0;function I3e(f,p,y,w){var N=F.T;F.T=null;var k=G.p;try{G.p=2,XR(f,p,y,w)}finally{G.p=k,F.T=N}}function M3e(f,p,y,w){var N=F.T;F.T=null;var k=G.p;try{G.p=8,XR(f,p,y,w)}finally{G.p=k,F.T=N}}function XR(f,p,y,w){if($_){var N=QR(w);if(N===null)LR(f,p,w,F_,y),GV(f,w);else if(P3e(N,f,p,y,w))w.stopPropagation();else if(GV(f,w),p&4&&-1<D3e.indexOf(f)){for(;N!==null;){var k=un(N);if(k!==null)switch(k.tag){case 3:if(k=k.stateNode,k.current.memoizedState.isDehydrated){var z=rn(k.pendingLanes);if(z!==0){var ee=k;for(ee.pendingLanes|=2,ee.entangledLanes|=2;z;){var me=1<<31-qt(z);ee.entanglements[1]|=me,z&=~me}Rl(k),(Dn&6)===0&&(E_=be()+500,q1(0))}}break;case 31:case 13:ee=Ff(k,2),ee!==null&&Ws(ee,k,2),x_(),KR(k,2)}if(k=QR(w),k===null&&LR(f,p,w,F_,y),k===N)break;N=k}N!==null&&w.stopPropagation()}else LR(f,p,w,null,y)}}function QR(f){return f=JA(f),ZR(f)}var F_=null;function ZR(f){if(F_=null,f=yr(f),f!==null){var p=s(f);if(p===null)f=null;else{var y=p.tag;if(y===13){if(f=a(p),f!==null)return f;f=null}else if(y===31){if(f=o(p),f!==null)return f;f=null}else if(y===3){if(p.stateNode.current.memoizedState.isDehydrated)return p.tag===3?p.stateNode.containerInfo:null;f=null}else p!==f&&(f=null)}}return F_=f,null}function qV(f){switch(f){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invali
9d":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(ce()){case ne:return 2;case fe:return 8;case X:case Oe:return 32;case Ye:return 268435456;default:return 32}default:return 32}}var JR=!1,yd=null,bd=null,vd=null,Z1=new Map,J1=new Map,Ed=[],D3e="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function GV(f,p){switch(f){case"focusin":case"focusout":yd=null;break;case"dragenter":case"dragleave":bd=null;break;case"mouseover":case"mouseout":vd=null;break;case"pointerover":case"pointerout":Z1.delete(p.pointerId);break;case"gotpointercapture":case"lostpointercapture":J1.delete(p.pointerId)}}function ey(f,p,y,w,N,k){return f===null||f.nativeEvent!==k?(f={blockedOn:p,domEventName:y,eventSystemFlags:w,nativeEvent:k,targetContainers:[N]},p!==null&&(p=un(p),p!==null&&zV(p)),f):(f.eventSystemFlags|=w,p=f.targetContainers,N!==null&&p.indexOf(N)===-1&&p.push(N),f)}function P3e(f,p,y,w,N){switch(p){case"focusin":return yd=ey(yd,f,p,y,w,N),!0;case"dragenter":return bd=ey(bd,f,p,y,w,N),!0;case"mouseover":return vd=ey(vd,f,p,y,w,N),!0;case"pointerover":var k=N.pointerId;return Z1.set(k,ey(Z1.get(k)||null,f,p,y,w,N)),!0;case"gotpointercapture":return k=N.pointerId,J1.set(k,ey(J1.get(k)||null,f,p,y,w,N)),!0}return!1}function WV(f){var p=yr(f.target);if(p!==null){var y=s(p);if(y!==null){if(p=y.tag,p===13){if(p=a(y),p!==null){f.blockedOn=p,ot(f.priority,function(){VV(y)});return}}else if(p===31){if(p=o(y),p!==null){f.blockedOn=p,ot(f.priority,function(){VV(y)});return}}else if(p===3&&y.stateNode.current.memoizedState.isDehydrated){f.blockedOn=y.tag===3?y.stateNode.containerInfo:null;return}}}f.blockedOn=null}function B_(f){if(f.blockedOn!==null)return!1;for(var p=f.targetContainers;0<p.length;){var y=QR(f.nativeEvent);if(y===null){y=f.nativeEvent;var w=new y.constructor(y.type,y);ZA=w,y.target.dispatchEvent(w),ZA=null}else return p=un(y),p!==null&&zV(p),f.blockedOn=y,!1;p.shift()}return!0}function YV(f,p,y){B_(f)&&y.delete(p)}function L3e(){JR=!1,yd!==null&&B_(yd)&&(yd=null),bd!==null&&B_(bd)&&(bd=null),vd!==null&&B_(vd)&&(vd=null),Z1.forEach(YV),J1.forEach(YV)}function H_(f,p){f.blockedOn===p&&(f.blockedOn=null,JR||(JR=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,L3e)))}var U_=null;function KV(f){U_!==f&&(U_=f,t.unstable_scheduleCallback(t.unstable_NormalPriority,function(){U_===f&&(U_=null);for(var p=0;p<f.length;p+=3){var y=f[p],w=f[p+1],N=f[p+2];if(typeof w!="function"){if(ZR(w||y)===null)continue;break}var k=un(y);k!==null&&(f.splice(p,3),p-=3,Q5(k,{pending:!0,data:N,method:y.method,action:w},w,N))}}))}function Rm(f){function p(me){return H_(me,f)}yd!==null&&H_(yd,f),bd!==null&&H_(bd,f),vd!==null&&H_(vd,f),Z1.forEach(p),J1.forEach(p);for(var y=0;y<Ed.length;y++){var w=Ed[y];w.blockedOn===f&&(w.blockedOn=null)}for(;0<Ed.length&&(y=Ed[0],y.blockedOn===null);)WV(y),y.blockedOn===null&&Ed.shift();if(y=(f.ownerDocument||f).$$reactFormReplay,y!=null)for(w=0;w<y.length;w+=3){var N=y[w],k=y[w+1],z=N[it]||null;if(typeof k=="function")z||KV(y);else if(z){var ee=null;if(k&&k.hasAttribute("formAction")){if(N=k,z=k[it]||null)ee=z.formAction;else if(ZR(N)!==null)continue}else ee=z.action;typeof ee=="function"?y[w+1]=ee:(y.splice(w,3),w-=3),KV(y)}}}function XV(){function f(k){k.canIntercept&&k.info==="react-transition"&&k.intercept({handler:function(){return new Promise(function(z){return N=z})},focusReset:"manual",scroll:"manual"})}function p(){N!==null&&(N(),N=null),w||setTimeout(y,20)}function y(){if(!w&&!navigation.transition){var k=navigation.currentEntry;k&&k.url!=null&&navigation.navigate(k.url,{state:k.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var w=!1,N=null;return navigation.addEventListener("navigate",f),navigation.addEventListener("navigatesuccess",p),navigation.addEventListener("navigateerror",p),setTimeout(y,100),function(){w=!0,navigation.removeEventListener("navigate",f),navigation.removeEventListener("navigatesuccess",p),navigation.removeEventListener("navigateerror",p),N!==null&&(N(),N=null)}}}function eN(f){this._internalRoot=f}j_.prototype.render=eN.prototype.render=function(f){var p=this._internalRoot;if(p===null)throw Error(r(409));var y=p.current,w=Ra();
9UV(y,w,f,p,null,null)},j_.prototype.unmount=eN.prototype.unmount=function(){var f=this._internalRoot;if(f!==null){this._internalRoot=null;var p=f.containerInfo;UV(f.current,2,null,f,null,null),x_(),p[ht]=null}};function j_(f){this._internalRoot=f}j_.prototype.unstable_scheduleHydration=function(f){if(f){var p=Ge();f={blockedOn:null,target:f,priority:p};for(var y=0;y<Ed.length&&p!==0&&p<Ed[y].priority;y++);Ed.splice(y,0,f),y===0&&WV(f)}};var QV=e.version;if(QV!=="19.2.4")throw Error(r(527,QV,"19.2.4"));G.findDOMNode=function(f){var p=f._reactInternals;if(p===void 0)throw typeof f.render=="function"?Error(r(188)):(f=Object.keys(f).join(","),Error(r(268,f)));return f=u(p),f=f!==null?c(f):null,f=f===null?null:f.stateNode,f};var $3e={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:F,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var z_=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!z_.isDisabled&&z_.supportsFiber)try{Kt=z_.inject($3e),It=z_}catch{}}return ny.createRoot=function(f,p){if(!i(f))throw Error(r(299));var y=!1,w="",N=iz,k=sz,z=az;return p!=null&&(p.unstable_strictMode===!0&&(y=!0),p.identifierPrefix!==void 0&&(w=p.identifierPrefix),p.onUncaughtError!==void 0&&(N=p.onUncaughtError),p.onCaughtError!==void 0&&(k=p.onCaughtError),p.onRecoverableError!==void 0&&(z=p.onRecoverableError)),p=BV(f,1,!1,null,null,y,w,null,N,k,z,XV),f[ht]=p.current,PR(f),new eN(p)},ny.hydrateRoot=function(f,p,y){if(!i(f))throw Error(r(299));var w=!1,N="",k=iz,z=sz,ee=az,me=null;return y!=null&&(y.unstable_strictMode===!0&&(w=!0),y.identifierPrefix!==void 0&&(N=y.identifierPrefix),y.onUncaughtError!==void 0&&(k=y.onUncaughtError),y.onCaughtError!==void 0&&(z=y.onCaughtError),y.onRecoverableError!==void 0&&(ee=y.onRecoverableError),y.formState!==void 0&&(me=y.formState)),p=BV(f,1,!0,p,y??null,w,N,me,k,z,ee,XV),p.context=HV(null),y=p.current,w=Ra(),w=Te(w),N=sd(w),N.callback=null,ad(y,N,w),y=w,p.current.lanes=y,Gr(p,y),Rl(p),f[ht]=p.current,PR(f),new j_(p)},ny.version="19.2.4",ny}var uq;function W3e(){if(uq)return iN.exports;uq=1;function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(e){console.error(e)}}return t(),iN.exports=G3e(),iN.exports}var Y3e=W3e();const Dkt=ys(Y3e);var ule=t=>{throw TypeError(t)},K3e=(t,e,n)=>e.has(t)||ule("Cannot "+n),lN=(t,e,n)=>(K3e(t,e,"read from private field"),n?n.call(t):e.get(t)),X3e=(t,e,n)=>e.has(t)?ule("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,n),cq="popstate";function Q3e(t={}){function e(r,i){let{pathname:s,search:a,hash:o}=r.location;return Fb("",{pathname:s,search:a,hash:o},i.state&&i.state.usr||null,i.state&&i.state.key||"default")}function n(r,i){return typeof i=="string"?i:du(i)}return J3e(e,n,null,t)}function Jt(t,e){if(t===!1||t===null||typeof t>"u")throw new Error(e)}function mr(t,e){if(!t){typeof console<"u"&&console.warn(e);try{throw new Error(e)}catch{}}}function Z3e(){return Math.random().toString(36).substring(2,10)}function dq(t,e){return{usr:t.state,key:t.key,idx:e}}function Fb(t,e,n=null,r){return{pathname:typeof t=="string"?t:t.pathname,search:"",hash:"",...typeof e=="string"?hf(e):e,state:n,key:e&&e.key||r||Z3e()}}function du({pathname:t="/",search:e="",hash:n=""}){return e&&e!=="?"&&(t+=e.charAt(0)==="?"?e:"?"+e),n&&n!=="#"&&(t+=n.charAt(0)==="#"?n:"#"+n),t}function hf(t){let e={};if(t){let n=t.indexOf("#");n>=0&&(e.hash=t.substring(n),t=t.substring(0,n));let r=t.indexOf("?");r>=0&&(e.search=t.substring(r),t=t.substring(0,r)),t&&(e.pathname=t)}return e}function J3e(t,e,n,r={}){let{window:i=document.defaultView,v5Compat:s=!1}=r,a=i.history,o="POP",l=null,u=c();u==null&&(u=0,a.replaceState({...a.state,idx:u},""));function c(){return(a.state||{idx:null}).idx}function d(){o="POP";let v=c(),E=v==null?null:v-u;u=v,l&&l({action:o,location:b.location,delta:E})}function h(v,E){o="PUSH";let x=Fb(b.location,v,E);u=c()+1;let _=dq(x,u),S=b.createHref(x);try{a.pushState(_,"",S)}catch(A){if(A instanceof DOMException&&A.name==="DataCloneError")throw A;i.location.assign(S)}s&&l&&l({action:o,location:b.location,delta:1})}
9function m(v,E){o="REPLACE";let x=Fb(b.location,v,E);u=c();let _=dq(x,u),S=b.createHref(x);a.replaceState(_,"",S),s&&l&&l({action:o,location:b.location,delta:0})}function g(v){return cle(v)}let b={get action(){return o},get location(){return t(i,a)},listen(v){if(l)throw new Error("A history only accepts one active listener");return i.addEventListener(cq,d),l=v,()=>{i.removeEventListener(cq,d),l=null}},createHref(v){return e(i,v)},createURL:g,encodeLocation(v){let E=g(v);return{pathname:E.pathname,search:E.search,hash:E.hash}},push:h,replace:m,go(v){return a.go(v)}};return b}function cle(t,e=!1){let n="http://localhost";typeof window<"u"&&(n=window.location.origin!=="null"?window.location.origin:window.location.href),Jt(n,"No window.location.(origin|href) available to create URL");let r=typeof t=="string"?t:du(t);return r=r.replace(/ $/,"%20"),!e&&r.startsWith("//")&&(r=n+r),new URL(r,n)}var $y,fq=class{constructor(t){if(X3e(this,$y,new Map),t)for(let[e,n]of t)this.set(e,n)}get(t){if(lN(this,$y).has(t))return lN(this,$y).get(t);if(t.defaultValue!==void 0)return t.defaultValue;throw new Error("No value found for context")}set(t,e){lN(this,$y).set(t,e)}};$y=new WeakMap;var eAe=new Set(["lazy","caseSensitive","path","id","index","children"]);function tAe(t){return eAe.has(t)}var nAe=new Set(["lazy","caseSensitive","path","id","index","middleware","children"]);function rAe(t){return nAe.has(t)}function iAe(t){return t.index===!0}function Bb(t,e,n=[],r={},i=!1){return t.map((s,a)=>{let o=[...n,String(a)],l=typeof s.id=="string"?s.id:o.join("-");if(Jt(s.index!==!0||!s.children,"Cannot specify children on an index route"),Jt(i||!r[l],`Found a route id collision on i
9d "${l}". Route id's must be globally unique within Data Router usages`),iAe(s)){let u={...s,id:l};return r[l]=hq(u,e(u)),u}else{let u={...s,id:l,children:void 0};return r[l]=hq(u,e(u)),s.children&&(u.children=Bb(s.children,e,o,r,i)),u}})}function hq(t,e){return Object.assign(t,{...e,...typeof e.lazy=="object"&&e.lazy!=null?{lazy:{...t.lazy,...e.lazy}}:{}})}function Ld(t,e,n="/"){return Fy(t,e,n,!1)}function Fy(t,e,n,r){let i=typeof e=="string"?hf(e):e,s=Ga(i.pathname||"/",n);if(s==null)return null;let a=fle(t);sAe(a);let o=null;for(let l=0;o==null&&l<a.length;++l){let u=gAe(s);o=pAe(a[l],u,r)}return o}function dle(t,e){let{route:n,pathname:r,params:i}=t;return{id:n.id,pathname:r,params:i,data:e[n.id],loaderData:e[n.id],handle:n.handle}}function fle(t,e=[],n=[],r="",i=!1){let s=(a,o,l=i,u)=>{let c={relativePath:u===void 0?a.path||"":u,caseSensitive:a.caseSensitive===!0,childrenIndex:o,route:a};if(c.relativePath.startsWith("/")){if(!c.relativePath.startsWith(r)&&l)return;Jt(c.relativePath.startsWith(r),`Absolute route path "${c.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),c.relativePath=c.relativePath.slice(r.length)}let d=ru([r,c.relativePath]),h=n.concat(c);a.children&&a.children.length>0&&(Jt(a.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${d}".`),fle(a.children,e,h,d,l)),!(a.path==null&&!a.index)&&e.push({path:d,score:fAe(d,a.index),routesMeta:h})};return t.forEach((a,o)=>{if(a.path===""||!a.path?.includes("?"))s(a,o);else for(let l of hle(a.path))s(a,o,!0,l)}),e}function hle(t){let e=t.split("/");if(e.length===0)return[];let[n,...r]=e,i=n.endsWith("?"),s=n.replace(/\?$/,"");if(r.length===0)return i?[s,""]:[s];let a=hle(r.join("/")),o=[];return o.push(...a.map(l=>l===""?s:[s,l].join("/"))),i&&o.push(...a),o.map(l=>t.startsWith("/")&&l===""?"/":l)}function sAe(t){t.sort((e,n)=>e.score!==n.score?n.score-e.score:hAe(e.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}var aAe=/^:[\w-]+$/,oAe=3,lAe=2,uAe=1,cAe=10,dAe=-2,pq=t=>t==="*";function fAe(t,e){let n=t.split("/"),r=n.length;return n.some(pq)&&(r+=dAe),e&&(r+=lAe),n.filter(i=>!pq(i)).reduce((i,s)=>i+(aAe.test(s)?oAe:s===""?uAe:cAe),r)}function hAe(t,e){return t.length===e.length&&t.slice(0,-1).every((r,i)=>r===e[i])?t[t.length-1]-e[e.length-1]:0}function pAe(t,e,n=!1){let{routesMeta:r}=t,i={},s="/",a=[];for(let o=0;o<r.length;++o){let l=r[o],u=o===r.length-1,c=s==="/"?e:e.slice(s.length)||"/",d=oS({path:l.relativePath,caseSensitive:l.caseSensitive,end:u},c),h=l.route;if(!d&&u&&n&&!r[r.length-1].route.index&&(d=oS({path:l.relativePath,caseSensitive:l.caseSensitive,end:!1},c)),!d)return null;
9Object.assign(i,d.params),a.push({params:i,pathname:ru([s,d.pathname]),pathnameBase:vAe(ru([s,d.pathnameBase])),route:h}),d.pathnameBase!=="/"&&(s=ru([s,d.pathnameBase]))}return a}function Pkt(t,e={}){let n=t;n.endsWith("*")&&n!=="*"&&!n.endsWith("/*")&&(mr(!1,`Route path "${n}" will be treated as if it were "${n.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${n.replace(/\*$/,"/*")}".`),n=n.replace(/\*$/,"/*"));const r=n.startsWith("/")?"/":"",i=a=>a==null?"":typeof a=="string"?a:String(a),s=n.split(/\/+/).map((a,o,l)=>{if(o===l.length-1&&a==="*")return i(e["*"]);const c=a.match(/^:([\w-]+)(\??)(.*)/);if(c){const[,d,h,m]=c;let g=e[d];return Jt(h==="?"||g!=null,`Missing ":${d}" param`),encodeURIComponent(i(g))+m}return a.replace(/\?$/g,"")}).filter(a=>!!a);return r+s.join("/")}function oS(t,e){typeof t=="string"&&(t={path:t,caseSensitive:!1,end:!0});let[n,r]=mAe(t.path,t.caseSensitive,t.end),i=e.match(n);if(!i)return null;let s=i[0],a=s.replace(/(.)\/+$/,"$1"),o=i.slice(1);return{params:r.reduce((u,{paramName:c,isOptional:d},h)=>{if(c==="*"){let g=o[h]||"";a=s.slice(0,s.length-g.length).replace(/(.)\/+$/,"$1")}const m=o[h];return d&&!m?u[c]=void 0:u[c]=(m||"").replace(/%2F/g,"/"),u},{}),pathname:s,pathnameBase:a,pattern:t}}function mAe(t,e=!1,n=!0){mr(t==="*"||!t.endsWith("*")||t.endsWith("/*"),`Route path "${t}" will be treated as if it were "${t.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${t.replace(/\*$/,"/*")}".`);let r=[],i="^"+t.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(a,o,l)=>(r.push({paramName:o,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return t.endsWith("*")?(r.push({paramName:"*"}),i+=t==="*"||t==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":t!==""&&t!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,e?void 0:"i"),r]}function gAe(t){try{return t.split("/").map(e=>decodeURIComponent(e).replace(/\//g,"%2F")).join("/")}catch(e){return mr(!1,`The URL path "${t}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${e}).`),t}}function Ga(t,e){if(e==="/")return t;if(!t.toLowerCase().startsWith(e.toLowerCase()))return null;let n=e.endsWith("/")?e.length-1:e.length,r=t.charAt(n);return r&&r!=="/"?null:t.slice(n)||"/"}function yAe({basename:t,pathname:e}){return e==="/"?t:ru([t,e])}var ple=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,c7=t=>ple.test(t);function bAe(t,e="/"){let{pathname:n,search:r="",hash:i=""}=typeof t=="string"?hf(t):t,s;return n?(n=n.replace(/\/\/+/g,"/"),n.startsWith("/")?s=mq(n.substring(1),"/"):s=mq(n,e)):s=e,{pathname:s,search:EAe(r),hash:_Ae(i)}}function mq(t,e){let n=e.replace(/\/+$/,"").split("/");return t.split("/").forEach(i=>{i===".."?n.length>1&&n.pop():i!=="."&&n.push(i)}),n.length>1?n.join("/"):"/"}function uN(t,e,n,r){return`Cannot include a '${t}' character in a manually specified \`to.${e}\` 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 mle(t){return t.filter((e,n)=>n===0||e.route.path&&e.route.path.length>0)}function lT(t){let e=mle(t);return e.map((n,r)=>r===e.length-1?n.pathname:n.pathnameBase)}function uT(t,e,n,r=!1){let i;typeof t=="string"?i=hf(t):(i={...t},Jt(!i.pathname||!i.pathname.includes("?"),uN("?","pathname","search",i)),Jt(!i.pathname||!i.pathname.includes("#"),uN("#","pathname","hash",i)),Jt(!i.search||!i.search.includes("#"),uN("#","search","hash",i)));let s=t===""||i.pathname==="",a=s?"/":i.pathname,o;if(a==null)o=n;else{let d=e.length-1;if(!r&&a.startsWith("..")){let h=a.split("/");for(;h[0]==="..";)h.shift(),d-=1;i.pathname=h.join("/")}o=d>=0?e[d]:"/"}let l=bAe(i,o),u=a&&a!=="/"&&a.endsWith("/"),c=(s||a===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(u||c)&&(l.pathname+="/"),l}var ru=t=>
9t.join("/").replace(/\/\/+/g,"/"),vAe=t=>t.replace(/\/+$/,"").replace(/^\/*/,"/"),EAe=t=>!t||t==="?"?"":t.startsWith("?")?t:"?"+t,_Ae=t=>!t||t==="#"?"":t.startsWith("#")?t:"#"+t,Lkt=(t,e=302)=>{let n=e;typeof n=="number"?n={status:n}:typeof n.status>"u"&&(n.status=302);let r=new Headers(n.headers);return r.set("Location",t),new Response(null,{...n,headers:r})},n2=class{constructor(t,e,n,r=!1){this.status=t,this.statusText=e||"",this.internal=r,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}};function Hb(t){return t!=null&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.internal=="boolean"&&"data"in t}function r2(t){return t.map(e=>e.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var gle=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function yle(t,e){let n=t;if(typeof n!="string"||!ple.test(n))return{absoluteURL:void 0,isExternal:!1,to:n};let r=n,i=!1;if(gle)try{let s=new URL(window.location.href),a=n.startsWith("//")?new URL(s.protocol+n):new URL(n),o=Ga(a.pathname,e);a.origin===s.origin&&o!=null?n=o+a.search+a.hash:i=!0}catch{mr(!1,`<Link to="${n}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:r,isExternal:i,to:n}}var Hd=Symbol("Uninstrumented");function xAe(t,e){let n={lazy:[],"lazy.loader":[],"lazy.action":[],"lazy.middleware":[],middleware:[],loader:[],action:[]};t.forEach(i=>i({id:e.id,index:e.index,path:e.path,instrument(s){let a=Object.keys(n);for(let o of a)s[o]&&n[o].push(s[o])}}));let r={};if(typeof e.lazy=="function"&&n.lazy.length>0){let i=ng(n.lazy,e.lazy,()=>{});i&&(r.lazy=i)}if(typeof e.lazy=="object"){let i=e.lazy;["middleware","loader","action"].forEach(s=>{let a=i[s],o=n[`lazy.${s}`];if(typeof a=="function"&&o.length>0){let l=ng(o,a,()=>{});l&&(r.lazy=Object.assign(r.lazy||{},{[s]:l}))}})}return["loader","action"].forEach(i=>{let s=e[i];if(typeof s=="function"&&n[i].length>0){let a=s[Hd]??s,o=ng(n[i],a,(...l)=>gq(l[0]));o&&(i==="loader"&&a.hydrate===!0&&(o.hydrate=!0),o[Hd]=a,r[i]=o)}}),e.middleware&&e.middleware.length>0&&n.middleware.length>0&&(r.middleware=e.middleware.map(i=>{let s=i[Hd]??i,a=ng(n.middleware,s,(...o)=>gq(o[0]));return a?(a[Hd]=s,a):i})),r}function wAe(t,e){let n={navigate:[],fetch:[]};if(e.forEach(r=>r({instrument(i){let s=Object.keys(i);for(let a of s)i[a]&&n[a].push(i[a])}})),n.navigate.length>0){let r=t.navigate[Hd]??t.navigate,i=ng(n.navigate,r,(...s)=>{let[a,o]=s;return{to:typeof a=="number"||typeof a=="string"?a:a?du(a):".",...yq(t,o??{})}});i&&(i[Hd]=r,t.navigate=i)}if(n.fetch.length>0){let r=t.fetch[Hd]??t.fetch,i=ng(n.fetch,r,(...s)=>{let[a,,o,l]=s;return{href:o??".",fetcherKey:a,...yq(t,l??{})}});i&&(i[Hd]=r,t.fetch=i)}return t}function ng(t,e,n){return t.length===0?null:async(...r)=>{let i=await ble(t,n(...r),()=>e(...r),t.length-1);if(i.type==="error")throw i.value;return i.value}}async function ble(t,e,n,r){let i=t[r],s;if(i){let a,o=async()=>(a?console.error("You cannot call instrumented handlers more than once"):a=ble(t,e,n,r-1),s=await a,Jt(s,"Expected a result"),s.type==="error"&&s.value instanceof Error?{status:"error",error:s.value}:{status:"success",error:void 0});try{await i(o,e)}catch(l){console.error("An instrumentation function threw an error:",l)}a||await o(),await a}else try{s={type:"success",value:await n()}}catch(a){s={type:"error",value:a}}return s||{type:"error",value:new Error("No result assigned in instrumentation chain.")}}function gq(t){let{request:e,context:n,params:r,unstable_pattern:i}=t;return{request:SAe(e),params:{...r},unstable_pattern:i,context:CAe(n)}}function yq(t,e){return{currentUrl:du(t.state.location),..."formMethod"in e?{formMethod:e.formMethod}:{},..."formEncType"in e?{formEncType:e.formEncType}:{},..."formData"in e?{formData:e.formData}:{},..."body"in e?{body:e.body}:{}}}function SAe(t){return{method:t.method,url:t.url,headers:{get:(...e)=>t.headers.get(...e)}}}function CAe(t){if(AAe(t)){let e={...t};return Object.freeze(e),e}else return{get:e=>t.get(e)}}var TAe=Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function AAe(t){if(t===null||typeof t!="object")return!1;const e=Object.getPrototypeOf(t);return e===Object.prototype||e===null||Object.getOwnPropertyNames(e).sort().join("\0")===TAe}var vle=["POST","PUT","PATCH","DELETE"],RAe=new Set(vle),NAe=["GET",...vle],OAe=new Set(NAe),Ele=new Set([301,302,303,307,308]),kAe=new Set([307,308]),cN={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},IAe={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},ry={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},MAe=t=>({hasErrorBoundary:!!t.hasErrorBoundary}),_le="remix-router-transitions",xle=Symbol("ResetLoaderData");function DAe(t){const e=t.window?t.window:typeof window<"u"?window:void 0,n=typeof e<"u"&&typeof e.document<"u"&&typeof e.document.createElement<"u";Jt(t.routes.length>0,"You must provide a non-empty routes array to createRouter");let r=t.hydrationRouteProperties||[],i=t.mapRouteProperties||MAe,s=i;if(t.unstable_instrumentations){let he=t.unstable_instrumentations;s=Ee=>({...i(Ee),...xAe(he.map(Te=>
9Te.route).filter(Boolean),Ee)})}let a={},o=Bb(t.routes,s,void 0,a),l,u=t.basename||"/";u.startsWith("/")||(u=`/${u}`);let c=t.dataStrategy||BAe,d={...t.future},h=null,m=new Set,g=null,b=null,v=null,E=t.hydrationData!=null,x=Ld(o,t.history.location,u),_=!1,S=null,A;if(x==null&&!t.patchRoutesOnNavigation){let he=ho(404,{pathname:t.history.location.pathname}),{matches:Ee,route:Te}=q_(o);A=!0,x=Ee,S={[Te.id]:he}}else if(x&&!t.hydrationData&&lr(x,o,t.history.location.pathname).active&&(x=null),x)if(x.some(he=>he.route.lazy))A=!1;else if(!x.some(he=>d7(he.route)))A=!0;else{let he=t.hydrationData?t.hydrationData.loaderData:null,Ee=t.hydrationData?t.hydrationData.errors:null;if(Ee){let Te=x.findIndex(Ue=>Ee[Ue.route.id]!==void 0);A=x.slice(0,Te+1).every(Ue=>!dD(Ue.route,he,Ee))}else A=x.every(Te=>!dD(Te.route,he,Ee))}else{A=!1,x=[];let he=lr(null,o,t.history.location.pathname);he.active&&he.matches&&(_=!0,x=he.matches)}let R,T={historyAction:t.history.action,location:t.history.location,matches:x,initialized:A,navigation:cN,restoreScrollPosition:t.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:t.hydrationData&&t.hydrationData.loaderData||{},actionData:t.hydrationData&&t.hydrationData.actionData||null,errors:t.hydrationData&&t.hydrationData.errors||S,fetchers:new Map,blockers:new Map},O="POP",I=null,D=!1,P,B=!1,L=new Map,$=null,q=!1,F=!1,G=new Set,H=new Map,K=0,V=-1,Y=new Map,Z=new Set,W=new Map,Q=new Map,re=new Set,se=new Map,J,ae=null;function ge(){if(h=t.history.listen(({action:he,location:Ee,delta:Te})=>{if(J){J(),J=void 0;return}mr(se.size===0||Te!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let Ue=bt({currentLocation:T.location,nextLocation:Ee,historyAction:he});if(Ue&&Te!=null){let Ge=new Promise(ot=>{J=ot});t.history.go(Te*-1),Bt(Ue,{state:"blocked",location:Ee,proceed(){Bt(Ue,{state:"proceeding",proceed:void 0,reset:void 0,location:Ee}),Ge.then(()=>t.history.go(Te))},reset(){let ot=new Map(T.blockers);ot.set(Ue,ry),xe({blockers:ot})}}),I?.resolve(),I=null;return}return ze(he,Ee)}),n){r5e(e,L);let he=()=>i5e(e,L);e.addEventListener("pagehide",he),$=()=>e.removeEventListener("pagehide",he)}return T.initialized||ze("POP",T.location,{initialHydration:!0}),R}function ve(){h&&h(),$&&$(),m.clear(),P&&P.abort(),T.fetchers.forEach((he,Ee)=>Ut(Ee)),T.blockers.forEach((he,Ee)=>xt(Ee))}function Re(he){return m.add(he),()=>m.delete(he)}function xe(he,Ee={}){he.matches&&(he.matches=he.matches.map(Ge=>{let ot=a[Ge.route.id],Ze=Ge.route;return Ze.element!==ot.element||Ze.errorElement!==ot.errorElement||Ze.hydrateFallbackElement!==ot.hydrateFallbackElement?{...Ge,route:ot}:Ge})),T={...T,...he};let Te=[],Ue=[];T.fetchers.forEach((Ge,ot)=>{Ge.state==="idle"&&(re.has(ot)?Te.push(ot):Ue.push(ot))}),re.forEach(Ge=>{!T.fetchers.has(Ge)&&!H.has(Ge)&&Te.push(Ge)}),[...m].forEach(Ge=>Ge(T,{deletedFetchers:Te,newErrors:he.errors??null,viewTransitionOpts:Ee.viewTransitionOpts,flushSync:Ee.flushSync===!0})),Te.forEach(Ge=>Ut(Ge)),Ue.forEach(Ge=>T.fetchers.delete(Ge))}function Ne(he,Ee,{flushSync:Te}={}){let Ue=T.actionData!=null&&T.navigation.formMethod!=null&&as(T.navigation.formMethod)&&T.navigation.state==="loading"&&he.state?._isRedirect!==!0,Ge;Ee.actionData?Object.keys(Ee.actionData).length>0?Ge=Ee.actionData:Ge=null:Ue?Ge=T.actionData:Ge=null;let ot=Ee.loaderData?Aq(T.loaderData,Ee.loaderData,Ee.matches||[],Ee.errors):T.loaderData,Ze=T.blockers;Ze.size>0&&(Ze=new Map(Ze),Ze.forEach((Tt,gt)=>Ze.set(gt,ry)));let Je=q?!1:qr(he,Ee.matches||T.matches),it=D===!0||T.navigation.formMethod!=null&&as(T.navigation.formMethod)&&he.state?._isRedirect!==!0;l&&(o=l,l=void 0),q||O==="POP"||(O==="PUSH"?t.history.push(he,he.state):O==="REPLACE"&&t.history.replace(he,he.state));let ht;if(O==="POP"){let Tt=L.get(T.location.pathname);Tt&&Tt.has(he.pathname)?ht={currentLocation:T.location,nextLocation:he}:L.has(he.pathname)&&(ht={currentLocation:he,nextLocation:T.location})}else if(B){let Tt=L.get(T.location.pathname);Tt?Tt.add(he.pathname):(Tt=new Set([he.pathname]),L.set(T.location.pathname,Tt)),ht={currentLocation:T.location,nextLocation:he}}xe({...Ee,actionData:Ge,loaderData:ot,historyAction:O,location:he,initialized:!0,navigation:cN,revalidation:"idle",restoreScrollPosition:Je,preventScrollReset:it,blockers:Ze},{viewTransitionOpts:ht,flushSync:Te===!0}),O="POP",D=!1,B=!1,q=!1,F=!1,I?.resolve(),I=null,ae?.resolve(),ae=null}async function Fe(he,Ee){if(I?.resolve(),I=null,typeof he=="number"){I||(I=kq());let ln=I.promise;return t.history.go(he),ln}let Te=cD(T.location,T.matches,u,he,Ee?.fromRouteId,Ee?.relative),{path:Ue,submission:Ge,error:ot}=bq(!1,Te,Ee),Ze=T.location,Je=Fb(T.location,Ue,Ee&&Ee.state);Je={...Je,...t.history.encodeLocation(Je)};let it=Ee&&Ee.replace!=null?Ee.replace:void 0,ht="PUSH";it===!0?ht="REPLACE":it===!1||Ge!=null&&as(Ge.formMethod)&&Ge.formAction===T.location.pathname+T.location.search&&(ht="REPLACE");let Tt=Ee&&"preventScrollReset"in Ee?Ee.preventScrollReset===!0:void 0,gt=(Ee&&Ee.flushSync)===!0,yn=bt({currentLocation:Ze,nextLocation:Je,historyAction:ht});if(yn){Bt(yn,{state:"blocked",location:Je,proceed(){Bt(yn,{state:"proceeding",proceed:void 0,reset:void 0,location:Je}),Fe(he,Ee)},reset(){let ln=new Map(T.blockers);ln.set(yn,ry),xe({blockers:ln})}});return}
9await ze(ht,Je,{submission:Ge,pendingError:ot,preventScrollReset:Tt,replace:Ee&&Ee.replace,enableViewTransition:Ee&&Ee.viewTransition,flushSync:gt,callSiteDefaultShouldRevalidate:Ee&&Ee.unstable_defaultShouldRevalidate})}function Le(){ae||(ae=kq()),fe(),xe({revalidation:"loading"});let he=ae.promise;return T.navigation.state==="submitting"?he:T.navigation.state==="idle"?(ze(T.historyAction,T.location,{startUninterruptedRevalidation:!0}),he):(ze(O||T.historyAction,T.navigation.location,{overrideNavigation:T.navigation,enableViewTransition:B===!0}),he)}async function ze(he,Ee,Te){P&&P.abort(),P=null,O=he,q=(Te&&Te.startUninterruptedRevalidation)===!0,ni(T.location,T.matches),D=(Te&&Te.preventScrollReset)===!0,B=(Te&&Te.enableViewTransition)===!0;let Ue=l||o,Ge=Te&&Te.overrideNavigation,ot=Te?.initialHydration&&T.matches&&T.matches.length>0&&!_?T.matches:Ld(Ue,Ee,u),Ze=(Te&&Te.flushSync)===!0;if(ot&&T.initialized&&!F&&WAe(T.location,Ee)&&!(Te&&Te.submission&&as(Te.submission.formMethod))){Ne(Ee,{matches:ot},{flushSync:Ze});return}let Je=lr(ot,Ue,Ee.pathname);if(Je.active&&Je.matches&&(ot=Je.matches),!ot){let{error:gr,notFoundMatches:yr,route:un}=yt(Ee.pathname);Ne(Ee,{matches:yr,loaderData:{},errors:{[un.id]:gr}},{flushSync:Ze});return}P=new AbortController;let it=Km(t.history,Ee,P.signal,Te&&Te.submission),ht=t.getContext?await t.getContext():new fq,Tt;if(Te&&Te.pendingError)Tt=[$d(ot).route.id,{type:"error",error:Te.pendingError}];else if(Te&&Te.submission&&as(Te.submission.formMethod)){let gr=await qe(it,Ee,Te.submission,ot,ht,Je.active,Te&&Te.initialHydration===!0,{replace:Te.replace,flushSync:Ze});if(gr.shortCircuited)return;if(gr.pendingActionResult){let[yr,un]=gr.pendingActionResult;if(Da(un)&&Hb(un.error)&&un.error.status===404){P=null,Ne(Ee,{matches:gr.matches,loaderData:{},errors:{[yr]:un.error}});return}}ot=gr.matches||ot,Tt=gr.pendingActionResult,Ge=dN(Ee,Te.submission),Ze=!1,Je.active=!1,it=Km(t.history,it.url,it.signal)}let{shortCircuited:gt,matches:yn,loaderData:ln,errors:cr}=await _t(it,Ee,ot,ht,Je.active,Ge,Te&&Te.submission,Te&&Te.fetcherSubmission,Te&&Te.replace,Te&&Te.initialHydration===!0,Ze,Tt,Te&&Te.callSiteDefaultShouldRevalidate);gt||(P=null,Ne(Ee,{matches:yn||ot,...Rq(Tt),loaderData:ln,errors:cr}))}async function qe(he,Ee,Te,Ue,Ge,ot,Ze,Je={}){fe();let it=t5e(Ee,Te);if(xe({navigation:it},{flushSync:Je.flushSync===!0}),ot){let gt=await ur(Ue,Ee.pathname,he.signal);if(gt.type==="aborted")return{shortCircuited:!0};if(gt.type==="error"){if(gt.partialMatches.length===0){let{matches:ln,route:cr}=q_(o);return{matches:ln,pendingActionResult:[cr.id,{type:"error",error:gt.error}]}}let yn=$d(gt.partialMatches).route.id;return{matches:gt.partialMatches,pendingActionResult:[yn,{type:"error",error:gt.error}]}}else if(gt.matches)Ue=gt.matches;else{let{notFoundMatches:yn,error:ln,route:cr}=yt(Ee.pathname);return{matches:yn,pendingActionResult:[cr.id,{type:"error",error:ln}]}}}let ht,Tt=cw(Ue,Ee);if(!Tt.route.action&&!Tt.route.lazy)ht={type:"error",error:ho(405,{method:he.method,pathname:Ee.pathname,routeId:Tt.route.id})};else{let gt=yg(s,a,he,Ue,Tt,Ze?[]:r,Ge),yn=await ce(he,gt,Ge,null);if(ht=yn[Tt.route.id],!ht){for(let ln of Ue)if(yn[ln.route.id]){ht=yn[ln.route.id];break}}if(he.signal.aborted)return{shortCircuited:!0}}if(hh(ht)){let gt;return Je&&Je.replace!=null?gt=Je.replace:gt=Sq(ht.response.headers.get("Location"),new URL(he.url),u,t.history)===T.location.pathname+T.location.search,await be(he,ht,!0,{submission:Te,replace:gt}),{shortCircuited:!0}}if(Da(ht)){let gt=$d(Ue,Tt.route.id);return(Je&&Je.replace)!==!0&&(O="PUSH"),{matches:Ue,pendingActionResult:[gt.route.id,ht,Tt.route.id]}}return{matches:Ue,pendingActionResult:[Tt.route.id,ht]}}async function _t(he,Ee,Te,Ue,Ge,ot,Ze,Je,it,ht,Tt,gt,yn){let ln=ot||dN(Ee,Ze),cr=Ze||Je||Oq(ln),gr=!q&&!ht;if(Ge){if(gr){let Nr=Ot(gt);xe({navigation:ln,...Nr!==void 0?{actionData:Nr}:{}},{flushSync:Tt})}let cn=await ur(Te,Ee.pathname,he.signal);if(cn.type==="aborted")return{shortCircuited:!0};if(cn.type==="error"){if(cn.partialMatches.length===0){let{matches:_a,route:_i}=q_(o);return{matches:_a,loaderData:{},errors:{[_i.id]:cn.error}}}let Nr=$d(cn.partialMatches).route.id;return{matches:cn.partialMatches,loaderData:{},errors:{[Nr]:cn.error}}}else if(cn.matches)Te=cn.matches;else{let{error:Nr,notFoundMatches:_a,route:_i}=yt(Ee.pathname);return{matches:_a,loaderData:{},errors:{[_i.id]:Nr}}}}let yr=l||o,{dsMatches:un,revalidatingFetchers:Wr}=vq(he,Ue,s,a,t.history,T,Te,cr,Ee,ht?[]:r,ht===!0,F,G,re,W,Z,yr,u,t.patchRoutesOnNavigation!=null,gt,yn);if(V=++K,!t.dataStrategy&&!un.some(cn=>cn.shouldLoad)&&!un.some(cn=>cn.route.middleware&&cn.route.middleware.length>0)&&Wr.length===0){let cn=qt();return Ne(Ee,{matches:Te,loaderData:{},errors:gt&&Da(gt[1])?{[gt[0]]:gt[1].error}:null,...Rq(gt),...cn?{fetchers:new Map(T.fetchers)}:{}},{flushSync:Tt}),{shortCircuited:!0}}if(gr){let cn={};if(!Ge){cn.navigation=ln;let Nr=Ot(gt);Nr!==void 0&&(cn.actionData=Nr)}Wr.length>0&&(cn.fetchers=Lt(Wr)),xe(cn,{flushSync:Tt})}Wr.forEach(cn=>{It(cn.key),cn.controller&&H.set(cn.key,cn.controller)});let es=()=>Wr.forEach(cn=>It(cn.key));P&&P.signal.addEventListener("abort",es);let{loaderResults:nr,fetcherResults:va}=await ne(un,Wr,he,Ue);
vendor: 5,935 bytes, line 9
9if(he.signal.aborted)return{shortCircuited:!0};P&&P.signal.removeEventListener("abort",es),Wr.forEach(cn=>H.delete(cn.key));let Es=G_(nr);if(Es)return await be(he,Es.result,!0,{replace:it}),{shortCircuited:!0};if(Es=G_(va),Es)return Z.add(Es.key),await be(he,Es.result,!0,{replace:it}),{shortCircuited:!0};let{loaderData:Ea,errors:Hs}=Tq(T,Te,nr,gt,Wr,va);ht&&T.errors&&(Hs={...T.errors,...Hs});let Po=qt(),Sl=or(V),Ou=Po||Sl||Wr.length>0;return{matches:Te,loaderData:Ea,errors:Hs,...Ou?{fetchers:new Map(T.fetchers)}:{}}}function Ot(he){if(he&&!Da(he[1]))return{[he[0]]:he[1].data};if(T.actionData)return Object.keys(T.actionData).length===0?null:T.actionData}function Lt(he){return he.forEach(Ee=>{let Te=T.fetchers.get(Ee.key),Ue=iy(void 0,Te?Te.data:void 0);T.fetchers.set(Ee.key,Ue)}),new Map(T.fetchers)}async function ue(he,Ee,Te,Ue){It(he);let Ge=(Ue&&Ue.flushSync)===!0,ot=l||o,Ze=cD(T.location,T.matches,u,Te,Ee,Ue?.relative),Je=Ld(ot,Ze,u),it=lr(Je,ot,Ze);if(it.active&&it.matches&&(Je=it.matches),!Je){Oe(he,Ee,ho(404,{pathname:Ze}),{flushSync:Ge});return}let{path:ht,submission:Tt,error:gt}=bq(!0,Ze,Ue);if(gt){Oe(he,Ee,gt,{flushSync:Ge});return}let yn=t.getContext?await t.getContext():new fq,ln=(Ue&&Ue.preventScrollReset)===!0;if(Tt&&as(Tt.formMethod)){await te(he,Ee,ht,Je,yn,it.active,Ge,ln,Tt,Ue&&Ue.unstable_defaultShouldRevalidate);return}W.set(he,{routeId:Ee,path:ht}),await de(he,Ee,ht,Je,yn,it.active,Ge,ln,Tt)}async function te(he,Ee,Te,Ue,Ge,ot,Ze,Je,it,ht){fe(),W.delete(he);let Tt=T.fetchers.get(he);X(he,n5e(it,Tt),{flushSync:Ze});let gt=new AbortController,yn=Km(t.history,Te,gt.signal,it);if(ot){let dn=await ur(Ue,new URL(yn.url).pathname,yn.signal,he);if(dn.type==="aborted")return;if(dn.type==="error"){Oe(he,Ee,dn.error,{flushSync:Ze});return}else if(dn.matches)Ue=dn.matches;else{Oe(he,Ee,ho(404,{pathname:Te}),{flushSync:Ze});return}}let ln=cw(Ue,Te);if(!ln.route.action&&!ln.route.lazy){let dn=ho(405,{method:it.formMethod,pathname:Te,routeId:Ee});Oe(he,Ee,dn,{flushSync:Ze});return}H.set(he,gt);let cr=K,gr=yg(s,a,yn,Ue,ln,r,Ge),yr=await ce(yn,gr,Ge,he),un=yr[ln.route.id];if(!un){for(let dn of gr)if(yr[dn.route.id]){un=yr[dn.route.id];break}}if(yn.signal.aborted){H.get(he)===gt&&H.delete(he);return}if(re.has(he)){if(hh(un)||Da(un)){X(he,sc(void 0));return}}else{if(hh(un))if(H.delete(he),V>cr){X(he,sc(void 0));return}else return Z.add(he),X(he,iy(it)),be(yn,un,!1,{fetcherSubmission:it,preventScrollReset:Je});if(Da(un)){Oe(he,Ee,un.error);return}}let Wr=T.navigation.location||T.location,es=Km(t.history,Wr,gt.signal),nr=l||o,va=T.navigation.state!=="idle"?Ld(nr,T.navigation.location,u):T.matches;Jt(va,"Didn't find any matches after fetcher action");let Es=++K;Y.set(he,Es);let Ea=iy(it,un.data);T.fetchers.set(he,Ea);let{dsMatches:Hs,revalidatingFetchers:Po}=vq(es,Ge,s,a,t.history,T,va,it,Wr,r,!1,F,G,re,W,Z,nr,u,t.patchRoutesOnNavigation!=null,[ln.route.id,un],ht);Po.filter(dn=>dn.key!==he).forEach(dn=>{let ku=dn.key,Xp=T.fetchers.get(ku),Zc=iy(void 0,Xp?Xp.data:void 0);T.fetchers.set(ku,Zc),It(ku),dn.controller&&H.set(ku,dn.controller)}),xe({fetchers:new Map(T.fetchers)});let Sl=()=>Po.forEach(dn=>It(dn.key));gt.signal.addEventListener("abort",Sl);let{loaderResults:Ou,fetcherResults:cn}=await ne(Hs,Po,es,Ge);if(gt.signal.aborted)return;if(gt.signal.removeEventListener("abort",Sl),Y.delete(he),H.delete(he),Po.forEach(dn=>H.delete(dn.key)),T.fetchers.has(he)){let dn=sc(un.data);T.fetchers.set(he,dn)}let Nr=G_(Ou);if(Nr)return be(es,Nr.result,!1,{preventScrollReset:Je});if(Nr=G_(cn),Nr)return Z.add(Nr.key),be(es,Nr.result,!1,{preventScrollReset:Je});let{loaderData:_a,errors:_i}=Tq(T,va,Ou,void 0,Po,cn);or(Es),T.navigation.state==="loading"&&Es>V?(Jt(O,"Expected pending action"),P&&P.abort(),Ne(T.navigation.location,{matches:va,loaderData:_a,errors:_i,fetchers:new Map(T.fetchers)})):(xe({errors:_i,loaderData:Aq(T.loaderData,_a,va,_i),fetchers:new Map(T.fetchers)}),F=!1)}async function de(he,Ee,Te,Ue,Ge,ot,Ze,Je,it){let ht=T.fetchers.get(he);X(he,iy(it,ht?ht.data:void 0),{flushSync:Ze});let Tt=new AbortController,gt=Km(t.history,Te,Tt.signal);if(ot){let un=await ur(Ue,new URL(gt.url).pathname,gt.signal,he);if(un.type==="aborted")return;if(un.type==="error"){Oe(he,Ee,un.error,{flushSync:Ze});return}else if(un.matches)Ue=un.matches;else{Oe(he,Ee,ho(404,{pathname:Te}),{flushSync:Ze});return}}let yn=cw(Ue,Te);H.set(he,Tt);let ln=K,cr=yg(s,a,gt,Ue,yn,r,Ge),yr=(await ce(gt,cr,Ge,he))[yn.route.id];if(H.get(he)===Tt&&H.delete(he),!gt.signal.aborted){if(re.has(he)){X(he,sc(void 0));return}if(hh(yr))if(V>ln){X(he,sc(void 0));return}else{Z.add(he),await be(gt,yr,!1,{preventScrollReset:Je});return}if(Da(yr)){Oe(he,Ee,yr.error);return}X(he,sc(yr.data))}}async function be(he,Ee,Te,{submission:Ue,fetcherSubmission:Ge,preventScrollReset:ot,replace:Ze}={}){Te||(I?.resolve(),I=null),Ee.response.headers.has("X-Remix-Revalidate")&&(F=!0);let Je=Ee.response.headers.get("Location");Jt(Je,"Expected a Location header on the redirect Response"),Je=Sq(Je,new URL(he.url),u,t.history);let it=Fb(T.location,Je,{_isRedirect:!0});if(n){let cr=!1;if(Ee.response.headers.has("X-Remix-Reload-Document"))cr=!0;else if(c7(Je)){const gr=cle(Je,!0);cr=gr.origin!==e.location.origin||Ga(gr.pathname,u)==null}if(cr){Ze?e.location.replace(Je):e.location.assign(Je);return}}P=null;let ht=Ze===!0||Ee.response.headers.has("X-Remix-Replace")?"REPLACE":"PUSH",{formMethod:Tt,formAction:gt,formEncType:yn}=T.navigation;!Ue&&!Ge&&Tt&>&&yn&&(Ue=Oq(T.navigation));let ln=Ue||Ge;if(kAe.has(Ee.response.status)&&ln&&as(ln.formMethod))await ze(ht,it,{submission:{...ln,formAction:Je},preventScrollReset:ot||D,enableViewTransition:Te?B:void 0});else{let cr=dN(it,Ue);await ze(ht,it,{overrideNavigation:cr,fetcherSubmission:Ge,preventScrollReset:ot||D,enableViewTransition:Te?B:void 0})}}async function ce(he,Ee,Te,Ue){let Ge,ot={};try{Ge=await UAe(c,he,Ee,Ue,Te,!1)}catch(Ze){return Ee.filter(Je=>
9Je.shouldLoad).forEach(Je=>{ot[Je.route.id]={type:"error",error:Ze}}),ot}if(he.signal.aborted)return ot;if(!as(he.method))for(let Ze of Ee){if(Ge[Ze.route.id]?.type==="error")break;!Ge.hasOwnProperty(Ze.route.id)&&!T.loaderData.hasOwnProperty(Ze.route.id)&&(!T.errors||!T.errors.hasOwnProperty(Ze.route.id))&&Ze.shouldCallHandler()&&(Ge[Ze.route.id]={type:"error",result:new Error(`No result returned from dataStrategy for route ${Ze.route.id}`)})}for(let[Ze,Je]of Object.entries(Ge))if(QAe(Je)){let it=Je.result;ot[Ze]={type:"redirect",response:qAe(it,he,Ze,Ee,u)}}else ot[Ze]=await VAe(Je);return ot}async function ne(he,Ee,Te,Ue){let Ge=ce(Te,he,Ue,null),ot=Promise.all(Ee.map(async it=>{if(it.matches&&it.match&&it.request&&it.controller){let Tt=(await ce(it.request,it.matches,Ue,it.key))[it.match.route.id];return{[it.key]:Tt}}else return Promise.resolve({[it.key]:{type:"error",error:ho(404,{pathname:it.path})}})})),Ze=await Ge,Je=(await ot).reduce((it,ht)=>Object.assign(it,ht),{});return{loaderResults:Ze,fetcherResults:Je}}function fe(){F=!0,W.forEach((he,Ee)=>{H.has(Ee)&&G.add(Ee),It(Ee)})}function X(he,Ee,Te={}){T.fetchers.set(he,Ee),xe({fetchers:new Map(T.fetchers)},{flushSync:(Te&&Te.flushSync)===!0})}function Oe(he,Ee,Te,Ue={}){let Ge=$d(T.matches,Ee);Ut(he),xe({errors:{[Ge.route.id]:Te},fetchers:new Map(T.fetchers)},{flushSync:(Ue&&Ue.flushSync)===!0})}function Ye(he){return Q.set(he,(Q.get(he)||0)+1),re.has(he)&&re.delete(he),T.fetchers.get(he)||IAe}function rt(he,Ee){It(he,Ee?.reason),X(he,sc(null))}function Ut(he){let Ee=T.fetchers.get(he);H.has(he)&&!(Ee&&Ee.state==="loading"&&Y.has(he))&&It(he),W.delete(he),Y.delete(he),Z.delete(he),re.delete(he),G.delete(he),T.fetchers.delete(he)}function Kt(he){let Ee=(Q.get(he)||0)-1;Ee<=0?(Q.delete(he),re.add(he)):Q.set(he,Ee),xe({fetchers:new Map(T.fetchers)})}function It(he,Ee){let Te=H.get(he);Te&&(Te.abort(Ee),H.delete(he))}function Tn(he){for(let Ee of he){let Te=Ye(Ee),Ue=sc(Te.data);T.fetchers.set(Ee,Ue)}}function qt(){let he=[],Ee=!1;for(let Te of Z){let Ue=T.fetchers.get(Te);Jt(Ue,`Expected fetcher: ${Te}`),Ue.state==="loading"&&(Z.delete(Te),he.push(Te),Ee=!0)}return Tn(he),Ee}function or(he){let Ee=[];for(let[Te,Ue]of Y)if(Ue<he){let Ge=T.fetchers.get(Te);Jt(Ge,`Expected fetcher: ${Te}`),Ge.state==="loading"&&(It(Te),Y.delete(Te),Ee.push(Te))}return Tn(Ee),Ee.length>0}function tr(he,Ee){let Te=T.blockers.get(he)||ry;return se.get(he)!==Ee&&se.set(he,Ee),Te}function xt(he){T.blockers.delete(he),se.delete(he)}function Bt(he,Ee){let Te=T.blockers.get(he)||ry;Jt(Te.state==="unblocked"&&Ee.state==="blocked"||Te.state==="blocked"&&Ee.state==="blocked"||Te.state==="blocked"&&Ee.state==="proceeding"||Te.state==="blocked"&&Ee.state==="unblocked"||Te.state==="proceeding"&&Ee.state==="unblocked",`Invalid blocker state transition: ${Te.state} -> ${Ee.state}`);let Ue=new Map(T.blockers);Ue.set(he,Ee),xe({blockers:Ue})}function bt({currentLocation:he,nextLocation:Ee,historyAction:Te}){if(se.size===0)return;se.size>1&&mr(!1,"A router only supports one blocker at a time");let Ue=Array.from(se.entries()),[Ge,ot]=Ue[Ue.length-1],Ze=T.blockers.get(Ge);if(!(Ze&&Ze.state==="proceeding")&&ot({currentLocation:he,nextLocation:Ee,historyAction:Te}))return Ge}function yt(he){let Ee=ho(404,{pathname:he}),Te=l||o,{matches:Ue,route:Ge}=q_(Te);return{notFoundMatches:Ue,route:Ge,error:Ee}}function rn(he,Ee,Te){if(g=he,v=Ee,b=Te||null,!E&&T.navigation===cN){E=!0;let Ue=qr(T.location,T.matches);Ue!=null&&xe({restoreScrollPosition:Ue})}return()=>{g=null,v=null,b=null}}function vt(he,Ee){return b&&b(he,Ee.map(Ue=>dle(Ue,T.loaderData)))||he.key}function ni(he,Ee){if(g&&v){let Te=vt(he,Ee);g[Te]=v()}}function qr(he,Ee){if(g){let Te=vt(he,Ee),Ue=g[Te];if(typeof Ue=="number")return Ue}return null}function lr(he,Ee,Te){if(t.patchRoutesOnNavigation)if(he){if(Object.keys(he[0].params).length>0)return{active:!0,matches:Fy(Ee,Te,u,!0)}}else return{active:!0,matches:Fy(Ee,Te,u,!0)||[]};return{active:!1,matches:null}}async function ur(he,Ee,Te,Ue){if(!t.patchRoutesOnNavigation)return{type:"success",matches:he};let Ge=he;for(;;){let ot=l==null,Ze=l||o,Je=a;try{await t.patchRoutesOnNavigation({signal:Te,path:Ee,matches:Ge,fetcherKey:Ue,patch:(Tt,gt)=>{Te.aborted||Eq(Tt,gt,Ze,Je,s,!1)}})}catch(Tt){return{type:"error",error:Tt,partialMatches:Ge}}finally{ot&&!Te.aborted&&(o=[...o])}if(Te.aborted)return{type:"aborted"};let it=Ld(Ze,Ee,u),ht=null;if(it){if(Object.keys(it[0].params).length===0)return{type:"success",matches:it};if(ht=Fy(Ze,Ee,u,!0),!(ht&&Ge.length<ht.length&&Gr(Ge,ht.slice(0,Ge.length))))return{type:"success",matches:it}}if(ht||(ht=Fy(Ze,Ee,u,!0)),!ht||Gr(Ge,ht))return{type:"success",matches:null};Ge=ht}}function Gr(he,Ee){return he.length===Ee.length&&he.every((Te,Ue)=>Te.route.id===Ee[Ue].route.id)}function Rr(he){a={},l=Bb(he,s,void 0,a)}function vs(he,Ee,Te=!1){let Ue=l==null;Eq(he,Ee,l||o,a,s,Te),Ue&&(o=[...o],xe({}))}return R={get basename(){return u},get future(){return d},get state(){return T},get routes(){return o},get window(){return e},initialize:ge,subscribe:Re,enableScrollRestoration:rn,navigate:Fe,fetch:ue,revalidate:Le,createHref:he=>t.history.createHref(he),encodeLocation:he=>t.history.encodeLocation(he),getFetcher:Ye,resetFetcher:rt,deleteFetcher:Kt,dispose:ve,getBlocker:tr,deleteBlocker:xt,patchRoutes:vs,_internalFetchControllers:H,_internalSetRoutes:Rr,_internalSetStateDoNotUseOrYouWillBreakYourApp(he){xe(he)}},t.unstable_instrumentations&&(R=wAe(R,t.unstable_instrumentations.map(he=>
9he.router).filter(Boolean))),R}function PAe(t){return t!=null&&("formData"in t&&t.formData!=null||"body"in t&&t.body!==void 0)}function cD(t,e,n,r,i,s){let a,o;if(i){a=[];for(let u of e)if(a.push(u),u.route.id===i){o=u;break}}else a=e,o=e[e.length-1];let l=uT(r||".",lT(a),Ga(t.pathname,n)||t.pathname,s==="path");if(r==null&&(l.search=t.search,l.hash=t.hash),(r==null||r===""||r===".")&&o){let u=h7(l.search);if(o.route.index&&!u)l.search=l.search?l.search.replace(/^\?/,"?index&"):"?index";else if(!o.route.index&&u){let c=new URLSearchParams(l.search),d=c.getAll("index");c.delete("index"),d.filter(m=>m).forEach(m=>c.append("index",m));let h=c.toString();l.search=h?`?${h}`:""}}return n!=="/"&&(l.pathname=yAe({basename:n,pathname:l.pathname})),du(l)}function bq(t,e,n){if(!n||!PAe(n))return{path:e};if(n.formMethod&&!e5e(n.formMethod))return{path:e,error:ho(405,{method:n.formMethod})};let r=()=>({path:e,error:ho(400,{type:"invalid-body"})}),s=(n.formMethod||"get").toUpperCase(),a=Rle(e);if(n.body!==void 0){if(n.formEncType==="text/plain"){if(!as(s))return r();let d=typeof n.body=="string"?n.body:n.body instanceof FormData||n.body instanceof URLSearchParams?Array.from(n.body.entries()).reduce((h,[m,g])=>`${h}${m}=${g} 10`,""):String(n.body);return{path:e,submission:{formMethod:s,formAction:a,formEncType:n.formEncType,formData:void 0,json:void 0,text:d}}}else if(n.formEncType==="application/json"){if(!as(s))return r();try{let d=typeof n.body=="string"?JSON.parse(n.body):n.body;return{path:e,submission:{formMethod:s,formAction:a,formEncType:n.formEncType,formData:void 0,json:d,text:void 0}}}catch{return r()}}}Jt(typeof FormData=="function","FormData is not available in this environment");let o,l;if(n.formData)o=hD(n.formData),l=n.formData;else if(n.body instanceof FormData)o=hD(n.body),l=n.body;else if(n.body instanceof URLSearchParams)o=n.body,l=Cq(o);else if(n.body==null)o=new URLSearchParams,l=new FormData;else try{o=new URLSearchParams(n.body),l=Cq(o)}catch{return r()}let u={formMethod:s,formAction:a,formEncType:n&&n.formEncType||"application/x-www-form-urlencoded",formData:l,json:void 0,text:void 0};if(as(u.formMethod))return{path:e,submission:u};let c=hf(e);return t&&c.search&&h7(c.search)&&o.append("index",""),c.search=`?${o}`,{path:du(c),submission:u}}function vq(t,e,n,r,i,s,a,o,l,u,c,d,h,m,g,b,v,E,x,_,S){let A=_?Da(_[1])?_[1].error:_[1].data:void 0,R=i.createURL(s.location),T=i.createURL(l),O;if(c&&s.errors){let q=Object.keys(s.errors)[0];O=a.findIndex(F=>F.route.id===q)}else if(_&&Da(_[1])){let q=_[0];O=a.findIndex(F=>F.route.id===q)-1}let I=_?_[1].statusCode:void 0,D=I&&I>=400,P={currentUrl:R,currentParams:s.matches[0]?.params||{},nextUrl:T,nextParams:a[0].params,...o,actionResult:A,actionStatus:I},B=r2(a),L=a.map((q,F)=>{let{route:G}=q,H=null;if(O!=null&&F>O?H=!1:G.lazy?H=!0:d7(G)?c?H=dD(G,s.loaderData,s.errors):LAe(s.loaderData,s.matches[F],q)&&(H=!0):H=!1,H!==null)return fD(n,r,t,B,q,u,e,H);let K=!1;typeof S=="boolean"?K=S:D?K=!1:(d||R.pathname+R.search===T.pathname+T.search||R.search!==T.search||$Ae(s.matches[F],q))&&(K=!0);let V={...P,defaultShouldRevalidate:K},Y=ab(q,V);return fD(n,r,t,B,q,u,e,Y,V,S)}),$=[];return g.forEach((q,F)=>
10{if(c||!a.some(Q=>Q.route.id===q.routeId)||m.has(F))return;let G=s.fetchers.get(F),H=G&&G.state!=="idle"&&G.data===void 0,K=Ld(v,q.path,E);if(!K){if(x&&H)return;$.push({key:F,routeId:q.routeId,path:q.path,matches:null,match:null,request:null,controller:null});return}if(b.has(F))return;let V=cw(K,q.path),Y=new AbortController,Z=Km(i,q.path,Y.signal),W=null;if(h.has(F))h.delete(F),W=yg(n,r,Z,K,V,u,e);else if(H)d&&(W=yg(n,r,Z,K,V,u,e));else{let Q;typeof S=="boolean"?Q=S:D?Q=!1:Q=d;let re={...P,defaultShouldRevalidate:Q};ab(V,re)&&(W=yg(n,r,Z,K,V,u,e,re))}W&&$.push({key:F,routeId:q.routeId,path:q.path,matches:W,match:V,request:Z,controller:Y})}),{dsMatches:L,revalidatingFetchers:$}}function d7(t){return t.loader!=null||t.middleware!=null&&t.middleware.length>0}function dD(t,e,n){if(t.lazy)return!0;if(!d7(t))return!1;let r=e!=null&&t.id in e,i=n!=null&&n[t.id]!==void 0;return!r&&i?!1:typeof t.loader=="function"&&t.loader.hydrate===!0?!0:!r&&!i}function LAe(t,e,n){let r=!e||n.route.id!==e.route.id,i=!t.hasOwnProperty(n.route.id);return r||i}function $Ae(t,e){let n=t.route.path;return t.pathname!==e.pathname||n!=null&&n.endsWith("*")&&t.params["*"]!==e.params["*"]}function ab(t,e){if(t.route.shouldRevalidate){let n=t.route.shouldRevalidate(e);if(typeof n=="boolean")return n}return e.defaultShouldRevalidate}function Eq(t,e,n,r,i,s){let a;if(t){let u=r[t];Jt(u,`No route found to patch children into: routeId = ${t}`),u.children||(u.children=[]),a=u.children}else a=n;let o=[],l=[];if(e.forEach(u=>{let c=a.find(d=>wle(u,d));c?l.push({existingRoute:c,newRoute:u}):o.push(u)}),o.length>0){let u=Bb(o,i,[t||"_","patch",String(a?.length||"0")],r);a.push(...u)}if(s&&l.length>0)for(let u=0;u<l.length;u++){let{existingRoute:c,newRoute:d}=l[u],h=c,[m]=Bb([d],i,[],{},!0);Object.assign(h,{element:m.element?m.element:h.element,errorElement:m.errorElement?m.errorElement:h.errorElement,hydrateFallbackElement:m.hydrateFallbackElement?m.hydrateFallbackElement:h.hydrateFallbackElement})}}function wle(t,e){return"id"in t&&"id"in e&&t.id===e.id?!0:t.index===e.index&&t.path===e.path&&t.caseSensitive===e.caseSensitive?(!t.children||t.children.length===0)&&(!e.children||e.children.length===0)?!0:t.children.every((n,r)=>e.children?.some(i=>wle(n,i))):!1}var _q=new WeakMap,Sle=({key:t,route:e,manifest:n,mapRouteProperties:r})=>{let i=n[e.id];if(Jt(i,"No route found in manifest"),!i.lazy||typeof i.lazy!="object")return;let s=i.lazy[t];if(!s)return;let a=_q.get(i);a||(a={},_q.set(i,a));let o=a[t];if(o)return o;let l=(async()=>{let u=tAe(t),d=i[t]!==void 0&&t!=="hasErrorBoundary";if(u)mr(!u,"Route property "+t+" is not a supported lazy route property. This property will be ignored."),a[t]=Promise.resolve();else if(d)mr(!1,`Route "${i.id}" has a static property "${t}" defined. The lazy property will be ignored.`);else{let h=await s();h!=null&&(Object.assign(i,{[t]:h}),Object.assign(i,r(i)))}typeof i.lazy=="object"&&(i.lazy[t]=void 0,Object.values(i.lazy).every(h=>h===void 0)&&(i.lazy=void 0))})();return a[t]=l,l},xq=new WeakMap;function FAe(t,e,n,r,i){let s=n[t.id];if(Jt(s,"No route found in manifest"),!t.lazy)return{lazyRoutePromise:void 0,lazyHandlerPromise:void 0};if(typeof t.lazy=="function"){let c=xq.get(s);if(c)return{lazyRoutePromise:c,lazyHandlerPromise:c};let d=(async()=>{Jt(typeof t.lazy=="function","No lazy route function found");let h=await t.lazy(),m={};for(let g in h){let b=h[g];if(b===void 0)continue;let v=rAe(g),x=s[g]!==void 0&&g!=="hasErrorBoundary";v?mr(!v,"Route property "+g+" is not a supported property to be returned from a lazy route function. This property will be ignored."):x?mr(!x,`Route "${s.id}" has a static property "${g}" defined but its lazy function is also returning a value for this property. The lazy route property "${g}" will be ignored.`):m[g]=b}Object.assign(s,m),Object.assign(s,{...r(s),lazy:void 0})})();return xq.set(s,d),d.catch(()=>{}),{lazyRoutePromise:d,lazyHandlerPromise:d}}let a=Object.keys(t.lazy),o=[],l;for(let c of a){if(i&&i.includes(c))continue;let d=Sle({key:c,route:t,manifest:n,mapRouteProperties:r});d&&(o.push(d),c===e&&(l=d))}let u=o.length>0?Promise.all(o).then(()=>{}):void 0;return u?.catch(()=>{}),l?.catch(()=>{}),{lazyRoutePromise:u,lazyHandlerPromise:l}}async function wq(t){let e=t.matches.filter(i=>i.shouldLoad),n={};return(await Promise.all(e.map(i=>
10i.resolve()))).forEach((i,s)=>{n[e[s].route.id]=i}),n}async function BAe(t){return t.matches.some(e=>e.route.middleware)?Cle(t,()=>wq(t)):wq(t)}function Cle(t,e){return HAe(t,e,r=>{if(JAe(r))throw r;return r},KAe,n);function n(r,i,s){if(s)return Promise.resolve(Object.assign(s.value,{[i]:{type:"error",result:r}}));{let{matches:a}=t,o=Math.min(Math.max(a.findIndex(u=>u.route.id===i),0),Math.max(a.findIndex(u=>u.shouldCallHandler()),0)),l=$d(a,a[o].route.id).route.id;return Promise.resolve({[l]:{type:"error",result:r}})}}}async function HAe(t,e,n,r,i){let{matches:s,request:a,params:o,context:l,unstable_pattern:u}=t,c=s.flatMap(h=>h.route.middleware?h.route.middleware.map(m=>[h.route.id,m]):[]);return await Tle({request:a,params:o,context:l,unstable_pattern:u},c,e,n,r,i)}async function Tle(t,e,n,r,i,s,a=0){let{request:o}=t;if(o.signal.aborted)throw o.signal.reason??new Error(`Request aborted: ${o.method} ${o.url}`);let l=e[a];if(!l)return await n();let[u,c]=l,d,h=async()=>{if(d)throw new Error("You may only call `next()` once per middleware");try{return d={value:await Tle(t,e,n,r,i,s,a+1)},d.value}catch(m){return d={value:await s(m,u,d)},d.value}};try{let m=await c(t,h),g=m!=null?r(m):void 0;return i(g)?g:d?g??d.value:(d={value:await h()},d.value)}catch(m){return await s(m,u,d)}}function Ale(t,e,n,r,i){let s=Sle({key:"middleware",route:r.route,manifest:e,mapRouteProperties:t}),a=FAe(r.route,as(n.method)?"action":"loader",e,t,i);return{middleware:s,route:a.lazyRoutePromise,handler:a.lazyHandlerPromise}}function fD(t,e,n,r,i,s,a,o,l=null,u){let c=!1,d=Ale(t,e,n,i,s);return{...i,_lazyPromises:d,shouldLoad:o,shouldRevalidateArgs:l,shouldCallHandler(h){return c=!0,l?typeof u=="boolean"?ab(i,{...l,defaultShouldRevalidate:u}):typeof h=="boolean"?ab(i,{...l,defaultShouldRevalidate:h}):ab(i,l):o},resolve(h){let{lazy:m,loader:g,middleware:b}=i.route,v=c||o||h&&!as(n.method)&&(m||g),E=b&&b.length>0&&!g&&!m;return v&&(as(n.method)||!E)?jAe({request:n,unstable_pattern:r,match:i,lazyHandlerPromise:d?.handler,lazyRoutePromise:d?.route,handlerOverride:h,scopedContext:a}):Promise.resolve({type:"data",result:void 0})}}}function yg(t,e,n,r,i,s,a,o=null){return r.map(l=>l.route.id!==i.route.id?{...l,shouldLoad:!1,shouldRevalidateArgs:o,shouldCallHandler:()=>!1,_lazyPromises:Ale(t,e,n,l,s),resolve:()=>Promise.resolve({type:"data",result:void 0})}:fD(t,e,n,r2(r),l,s,a,!0,o))}async function UAe(t,e,n,r,i,s){n.some(u=>u._lazyPromises?.middleware)&&await Promise.all(n.map(u=>u._lazyPromises?.middleware));let a={request:e,unstable_pattern:r2(n),params:n[0].params,context:i,matches:n},l=await t({...a,fetcherKey:r,runClientMiddleware:u=>{let c=a;return Cle(c,()=>u({...c,fetcherKey:r,runClientMiddleware:()=>{throw new Error("Cannot call `runClientMiddleware()` from within an `runClientMiddleware` handler")}}))}});try{await Promise.all(n.flatMap(u=>[u._lazyPromises?.handler,u._lazyPromises?.route]))}catch{}return l}async function jAe({request:t,unstable_pattern:e,match:n,lazyHandlerPromise:r,lazyRoutePromise:i,handlerOverride:s,scopedContext:a}){let o,l,u=as(t.method),c=u?"action":"loader",d=h=>{let m,g=new Promise((E,x)=>m=x);l=()=>m(),t.signal.addEventListener("abort",l);let b=E=>typeof h!="function"?Promise.reject(new Error(`You cannot call the handler for a route which defines a boolean "${c}" [routeId: ${n.route.id}]`)):h({request:t,unstable_pattern:e,params:n.params,context:a},...E!==void 0?[E]:[]),v=(async()=>{try{return{type:"data",result:await(s?s(x=>b(x)):b())}}catch(E){return{type:"error",result:E}}})();return Promise.race([v,g])};try{let h=u?n.route.action:n.route.loader;if(r||i)if(h){let m,[g]=await Promise.all([d(h).catch(b=>{m=b}),r,i]);if(m!==void 0)throw m;o=g}else{await r;let m=u?n.route.action:n.route.loader;if(m)[o]=await Promise.all([d(m),i]);else if(c==="action"){let g=new URL(t.url),b=g.pathname+g.search;throw ho(405,{method:t.method,pathname:b,routeId:n.route.id})}else return{type:"data",result:void 0}}else if(h)o=await d(h);else{let m=new URL(t.url),g=m.pathname+m.search;throw ho(404,{pathname:g})}}catch(h){return{type:"error",result:h}}finally{l&&t.signal.removeEventListener("abort",l)}return o}async function zAe(t){let e=t.headers.get("Content-Type");return e&&/\bapplication\/json\b/.test(e)?t.body==null?null:t.json():t.text()}async function VAe(t){let{result:e,type:n}=t;if(f7(e)){let r;try{r=await zAe(e)}catch(i){return{type:"error",error:i}}return n==="error"?{type:"error",error:new n2(e.status,e.statusText,r),statusCode:e.status,headers:e.headers}:{type:"data",data:r,statusCode:e.status,headers:e.headers}}return n==="error"?Nq(e)?e.data instanceof Error?{type:"error",error:e.data,statusCode:e.init?.status,headers:e.init?.headers?new Headers(e.init.headers):void 0}:{type:"error",error:YAe(e),statusCode:Hb(e)?e.status:void 0,headers:e.init?.headers?new Headers(e.init.headers):void 0}:{type:"error",error:e,statusCode:Hb(e)?e.status:void 0}:Nq(e)?{type:"data",data:e.data,statusCode:e.init?.status,headers:e.init?.headers?new Headers(e.init.headers):void 0}:{type:"data",data:e}}function qAe(t,e,n,r,i){let s=t.headers.get("Location");if(Jt(s,"Redirects returned/thrown from loaders/actions must have a Location header"),!c7(s)){let a=r.slice(0,r.findIndex(o=>o.route.id===n)+1);s=cD(new URL(e.url),a,i,s),t.headers.set("Location",s)}return t}function Sq(t,e,n,r){let i=["about:","blob:","chrome:","chrome-untrusted:","content:","data:","devtools:","file:","filesystem:","javascript:"];if(c7(t)){let s=t,a=s.startsWith("//")?new URL(e.protocol+s):new URL(s);if(i.includes(a.protocol))throw new Error("Invalid redirect location");let o=Ga(a.pathname,n)!=null;if(a.origin===e.origin&&o)return a.pathname+a.search+a.hash}try{let s=r.createURL(t);
10if(i.includes(s.protocol))throw new Error("Invalid redirect location")}catch{}return t}function Km(t,e,n,r){let i=t.createURL(Rle(e)).toString(),s={signal:n};if(r&&as(r.formMethod)){let{formMethod:a,formEncType:o}=r;s.method=a.toUpperCase(),o==="application/json"?(s.headers=new Headers({"Content-Type":o}),s.body=JSON.stringify(r.json)):o==="text/plain"?s.body=r.text:o==="application/x-www-form-urlencoded"&&r.formData?s.body=hD(r.formData):s.body=r.formData}return new Request(i,s)}function hD(t){let e=new URLSearchParams;for(let[n,r]of t.entries())e.append(n,typeof r=="string"?r:r.name);return e}function Cq(t){let e=new FormData;for(let[n,r]of t.entries())e.append(n,r);return e}function GAe(t,e,n,r=!1,i=!1){let s={},a=null,o,l=!1,u={},c=n&&Da(n[1])?n[1].error:void 0;return t.forEach(d=>{if(!(d.route.id in e))return;let h=d.route.id,m=e[h];if(Jt(!hh(m),"Cannot handle redirect results in processLoaderData"),Da(m)){let g=m.error;if(c!==void 0&&(g=c,c=void 0),a=a||{},i)a[h]=g;else{let b=$d(t,h);a[b.route.id]==null&&(a[b.route.id]=g)}r||(s[h]=xle),l||(l=!0,o=Hb(m.error)?m.error.status:500),m.headers&&(u[h]=m.headers)}else s[h]=m.data,m.statusCode&&m.statusCode!==200&&!l&&(o=m.statusCode),m.headers&&(u[h]=m.headers)}),c!==void 0&&n&&(a={[n[0]]:c},n[2]&&(s[n[2]]=void 0)),{loaderData:s,errors:a,statusCode:o||200,loaderHeaders:u}}function Tq(t,e,n,r,i,s){let{loaderData:a,errors:o}=GAe(e,n,r);return i.filter(l=>!l.matches||l.matches.some(u=>u.shouldLoad)).forEach(l=>{let{key:u,match:c,controller:d}=l;if(d&&d.signal.aborted)return;let h=s[u];if(Jt(h,"Did not find corresponding fetcher result"),Da(h)){let m=$d(t.matches,c?.route.id);o&&o[m.route.id]||(o={...o,[m.route.id]:h.error}),t.fetchers.delete(u)}else if(hh(h))Jt(!1,"Unhandled fetcher revalidation redirect");else{let m=sc(h.data);t.fetchers.set(u,m)}}),{loaderData:a,errors:o}}function Aq(t,e,n,r){let i=Object.entries(e).filter(([,s])=>s!==xle).reduce((s,[a,o])=>(s[a]=o,s),{});for(let s of n){let a=s.route.id;if(!e.hasOwnProperty(a)&&t.hasOwnProperty(a)&&s.route.loader&&(i[a]=t[a]),r&&r.hasOwnProperty(a))break}return i}function Rq(t){return t?Da(t[1])?{actionData:{}}:{actionData:{[t[0]]:t[1].data}}:{}}function $d(t,e){return(e?t.slice(0,t.findIndex(r=>r.route.id===e)+1):[...t]).reverse().find(r=>r.route.hasErrorBoundary===!0)||t[0]}function q_(t){let e=t.length===1?t[0]:t.find(n=>n.index||!n.path||n.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:e}],route:e}}function ho(t,{pathname:e,routeId:n,method:r,type:i,message:s}={}){let a="Unknown Server Error",o="Unknown @remix-run/router error";return t===400?(a="Bad Request",r&&e&&n?o=`You made a ${r} request to "${e}" but did not provide a \`loader\` for route "${n}", so there is no way to handle the request.`:i==="invalid-body"&&(o="Unable to encode submission body")):t===403?(a="Forbidden",o=`Route "${n}" does not match URL "${e}"`):t===404?(a="Not Found",o=`No route matches URL "${e}"`):t===405&&(a="Method Not Allowed",r&&e&&n?o=`You made a ${r.toUpperCase()} request to "${e}" but did not provide an \`action\` for route "${n}", so there is no way to handle the request.`:r&&(o=`Invalid request method "${r.toUpperCase()}"`)),new n2(t||500,a,new Error(o),!0)}function G_(t){let e=Object.entries(t);for(let n=e.length-1;n>=0;n--){let[r,i]=e[n];if(hh(i))return{key:r,result:i}}}function Rle(t){let e=typeof t=="string"?hf(t):t;return du({...e,hash:""})}function WAe(t,e){return t.pathname!==e.pathname||t.search!==e.search?!1:t.hash===""?e.hash!=="":t.hash===e.hash?!0:e.hash!==""}function YAe(t){return new n2(t.init?.status??500,t.init?.statusText??"Internal Server Error",t.data)}function KAe(t){return t!=null&&typeof t=="object"&&Object.entries(t).every(([e,n])=>typeof e=="string"&&XAe(n))}function XAe(t){return t!=null&&typeof t=="object"&&"type"in t&&"result"in t&&(t.type==="data"||t.type==="error")}function QAe(t){return f7(t.result)&&Ele.has(t.result.status)}function Da(t){return t.type==="error"}function hh(t){return(t&&t.type)==="redirect"}function Nq(t){return typeof t=="object"&&t!=null&&"type"in t&&"data"in t&&"init"in t&&t.type==="DataWithResponseInit"}function f7(t){return t!=null&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.headers=="object"&&typeof t.body<"u"}function ZAe(t){return Ele.has(t)}function JAe(t){return f7(t)&&ZAe(t.status)&&t.headers.has("Location")}function e5e(t){return OAe.has(t.toUpperCase())}function as(t){return RAe.has(t.toUpperCase())}function h7(t){return new URLSearchParams(t).getAll("index").some(e=>e==="")}function cw(t,e){let n=typeof e=="string"?hf(e).search:e.search;if(t[t.length-1].route.index&&h7(n||""))return t[t.length-1];let r=mle(t);return r[r.length-1]}function Oq(t){let{formMethod:e,formAction:n,formEncType:r,text:i,formData:s,json:a}=t;if(!(!e||!n||!r)){if(i!=null)return{formMethod:e,formAction:n,formEncType:r,formData:void 0,json:void 0,text:i};if(s!=null)return{formMethod:e,formAction:n,formEncType:r,formData:s,json:void 0,text:void 0};if(a!==void 0)return{formMethod:e,formAction:n,formEncType:r,formData:void 0,json:a,text:void 0}}}function dN(t,e){return e?{state:"loading",location:t,formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text}:{state:"loading",location:t,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function t5e(t,e){return{state:"submitting",location:t,formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text}}function iy(t,e){return t?{state:"loading",formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text,data:e}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function n5e(t,e){return{state:"submitting",formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text,data:e?e.data:void 0}}function sc(t){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function r5e(t,e){try{let n=t.sessionStorage.getItem(_le);if(n){let r=JSON.parse(n);for(let[i,s]of Object.entries(r||{}))s&&Array.isArray(s)&&e.set(i,new Set(s||[]))}}catch{}}function i5e(t,e){if(e.size>0){let n={};for(let[r,i]of e)n[r]=[...i];try{t.sessionStorage.setItem(_le,JSON.stringify(n))}catch(r){mr(!1,`Failed to save applied view transitions in sessionStorage (${r}).`)}}}function kq(){let t,e,n=new Promise((r,i)=>{t=async s=>{r(s);try{await n}catch{}},e=async s=>{i(s);try{await n}catch{}}});return{promise:n,resolve:t,reject:e}}var wp=C.createContext(null);wp.displayName="DataRouter";var v0=C.createContext(null);v0.displayName="DataRouterState";var Nle=C.createContext(!1);function s5e(){return C.useContext(Nle)}var p7=C.createContext({isTransitioning:!1});p7.displayName="ViewTransition";var Ole=C.createContext(new Map);Ole.displayName="Fetchers";var a5e=C.createContext(null);
10a5e.displayName="Await";var Ls=C.createContext(null);Ls.displayName="Navigation";var cT=C.createContext(null);cT.displayName="Location";var Io=C.createContext({outlet:null,matches:[],isDataRoute:!1});Io.displayName="Route";var m7=C.createContext(null);m7.displayName="RouteError";var kle="REACT_ROUTER_ERROR",o5e="REDIRECT",l5e="ROUTE_ERROR_RESPONSE";function u5e(t){if(t.startsWith(`${kle}:${o5e}:{`))try{let e=JSON.parse(t.slice(28));if(typeof e=="object"&&e&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.location=="string"&&typeof e.reloadDocument=="boolean"&&typeof e.replace=="boolean")return e}catch{}}function c5e(t){if(t.startsWith(`${kle}:${l5e}:{`))try{let e=JSON.parse(t.slice(40));if(typeof e=="object"&&e&&typeof e.status=="number"&&typeof e.statusText=="string")return new n2(e.status,e.statusText,e.data)}catch{}}function d5e(t,{relative:e}={}){Jt(E0(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:r}=C.useContext(Ls),{hash:i,pathname:s,search:a}=i2(t,{relative:e}),o=s;return n!=="/"&&(o=s==="/"?n:ru([n,s])),r.createHref({pathname:o,search:a,hash:i})}function E0(){return C.useContext(cT)!=null}function gl(){return Jt(E0(),"useLocation() may be used only in the context of a <Router> component."),C.useContext(cT).location}var Ile="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Mle(t){C.useContext(Ls).static||C.useLayoutEffect(t)}function g7(){let{isDataRoute:t}=C.useContext(Io);return t?T5e():f5e()}function f5e(){Jt(E0(),"useNavigate() may be used only in the context of a <Router> component.");let t=C.useContext(wp),{basename:e,navigator:n}=C.useContext(Ls),{matches:r}=C.useContext(Io),{pathname:i}=gl(),s=JSON.stringify(lT(r)),a=C.useRef(!1);return Mle(()=>{a.current=!0}),C.useCallback((l,u={})=>{if(mr(a.current,Ile),!a.current)return;if(typeof l=="number"){n.go(l);return}let c=uT(l,JSON.parse(s),i,u.relative==="path");t==null&&e!=="/"&&(c.pathname=c.pathname==="/"?e:ru([e,c.pathname])),(u.replace?n.replace:n.push)(c,u.state,u)},[e,n,s,i,t])}var h5e=C.createContext(null);function p5e(t){let e=C.useContext(Io).outlet;return C.useMemo(()=>e&&C.createElement(h5e.Provider,{value:t},e),[e,t])}function $kt(){let{matches:t}=C.useContext(Io),e=t[t.length-1];return e?e.params:{}}function i2(t,{relative:e}={}){let{matches:n}=C.useContext(Io),{pathname:r}=gl(),i=JSON.stringify(lT(n));return C.useMemo(()=>uT(t,JSON.parse(i),r,e==="path"),[t,i,r,e])}function m5e(t,e,n,r,i){Jt(E0(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:s}=C.useContext(Ls),{matches:a}=C.useContext(Io),o=a[a.length-1],l=o?o.params:{},u=o?o.pathname:"/",c=o?o.pathnameBase:"/",d=o&&o.route;{let x=d&&d.path||"";Lle(u,!d||x.endsWith("*")||x.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${u}" (under <Route path="${x}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render. 11 12Please change the parent <Route path="${x}"> to <Route path="${x==="/"?"*":`${x}/*`}">.`)}let h=gl(),m;m=h;let g=m.pathname||"/",b=g;if(c!=="/"){let x=c.replace(/^\//,"").split("/");b="/"+g.replace(/^\//,"").split("/").slice(x.length).join("/")}let v=Ld(t,{pathname:b});return mr(d||v!=null,`No routes matched location "${m.pathname}${m.search}${m.hash}" `),mr(v==null||v[v.length-1].route.element!==void 0||v[v.length-1].route.Component!==void 0||v[v.length-1].route.lazy!==void 0,`Matched leaf route at location "${m.pathname}${m.search}${m.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`),E5e(v&&v.map(x=>Object.assign({},x,{params:Object.assign({},l,x.params),pathname:ru([c,s.encodeLocation?s.encodeLocation(x.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:x.pathname]),pathnameBase:x.pathnameBase==="/"?c:ru([c,s.encodeLocation?s.encodeLocation(x.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:x.pathnameBase])})),a,n,r,i)}function g5e(){let t=C5e(),e=Hb(t)?`${t.status} ${t.statusText}`:t instanceof Error?t.message:JSON.stringify(t),n=t instanceof Error?t.stack:null,r="rgba(200,200,200, 0.5)",i={padding:"0.5rem",backgroundColor:r},s={padding:"2px 4px",backgroundColor:r},a=null;return console.error("Error handled by React Router default ErrorBoundary:",t),a=C.createElement(C.Fragment,null,C.createElement("p",null,"ð¿ Hey developer ð"),C.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",C.createElement("code",{style:s},"ErrorBoundary")," or"," ",C.createElement("code",{style:s},"errorElement")," prop on your route.")),C.createElement(C.Fragment,null,C.createElement("h2",null,"Unexpected Application
12Error!"),C.createElement("h3",{style:{fontStyle:"italic"}},e),n?C.createElement("pre",{style:i},n):null,a)}var y5e=C.createElement(g5e,null),Dle=class extends C.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,e){return e.location!==t.location||e.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:e.error,location:e.location,revalidation:t.revalidation||e.revalidation}}componentDidCatch(t,e){this.props.onError?this.props.onError(t,e):console.error("React Router caught the following error during render",t)}render(){let t=this.state.error;if(this.context&&typeof t=="object"&&t&&"digest"in t&&typeof t.digest=="string"){const n=c5e(t.digest);n&&(t=n)}let e=t!==void 0?C.createElement(Io.Provider,{value:this.props.routeContext},C.createElement(m7.Provider,{value:t,children:this.props.component})):this.props.children;return this.context?C.createElement(b5e,{error:t},e):e}};Dle.contextType=Nle;var fN=new WeakMap;function b5e({children:t,error:e}){let{basename:n}=C.useContext(Ls);if(typeof e=="object"&&e&&"digest"in e&&typeof e.digest=="string"){let r=u5e(e.digest);if(r){let i=fN.get(e);if(i)throw i;let s=yle(r.location,n);if(gle&&!fN.get(e))if(s.isExternal||r.reloadDocument)window.location.href=s.absoluteURL||s.to;else{const a=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(s.to,{replace:r.replace}));throw fN.set(e,a),a}return C.createElement("meta",{httpEquiv:"refresh",content:`0;url=${s.absoluteURL||s.to}`})}}return t}function v5e({routeContext:t,match:e,children:n}){let r=C.useContext(wp);return r&&r.static&&r.staticContext&&(e.route.errorElement||e.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=e.route.id),C.createElement(Io.Provider,{value:t},n)}function E5e(t,e=[],n=null,r=null,i=null){if(t==null){if(!n)return null;if(n.errors)t=n.matches;else if(e.length===0&&!n.initialized&&n.matches.length>0)t=n.matches;else return null}let s=t,a=n?.errors;if(a!=null){let c=s.findIndex(d=>d.route.id&&a?.[d.route.id]!==void 0);Jt(c>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(a).join(",")}`),s=s.slice(0,Math.min(s.length,c+1))}let o=!1,l=-1;if(n)for(let c=0;c<s.length;c++){let d=s[c];if((d.route.HydrateFallback||d.route.hydrateFallbackElement)&&(l=c),d.route.id){let{loaderData:h,errors:m}=n,g=d.route.loader&&!h.hasOwnProperty(d.route.id)&&(!m||m[d.route.id]===void 0);if(d.route.lazy||g){o=!0,l>=0?s=s.slice(0,l+1):s=[s[0]];break}}}let u=n&&r?(c,d)=>{r(c,{location:n.location,params:n.matches?.[0]?.params??{},unstable_pattern:r2(n.matches),errorInfo:d})}:void 0;return s.reduceRight((c,d,h)=>{let m,g=!1,b=null,v=null;n&&(m=a&&d.route.id?a[d.route.id]:void 0,b=d.route.errorElement||y5e,o&&(l<0&&h===0?(Lle("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),g=!0,v=null):l===h&&(g=!0,v=d.route.hydrateFallbackElement||null)));let E=e.concat(s.slice(0,h+1)),x=()=>{let _;return m?_=b:g?_=v:d.route.Component?_=C.createElement(d.route.Component,null):d.route.element?_=d.route.element:_=c,C.createElement(v5e,{match:d,routeContext:{outlet:c,matches:E,isDataRoute:n!=null},children:_})};return n&&(d.route.ErrorBoundary||d.route.errorElement||h===0)?C.createElement(Dle,{location:n.location,revalidation:n.revalidation,component:b,error:m,children:x(),routeContext:{outlet:null,matches:E,isDataRoute:!0},onError:u}):x()},null)}function y7(t){return`${t} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function _5e(t){let e=C.useContext(wp);return Jt(e,y7(t)),e}function b7(t){let e=C.useContext(v0);return Jt(e,y7(t)),e}function x5e(t){let e=C.useContext(Io);return Jt(e,y7(t)),e}function v7(t){let e=x5e(t),n=e.matches[e.matches.length-1];return Jt(n.route.id,`${t} can only be used on routes that contain a unique "id"`),n.route.id}function w5e(){return v7("useRouteId")}function S5e(){return b7("useNavigation").navigation}function Ple(){let{matches:t,loaderData:e}=b7("useMatches");return C.useMemo(()=>t.map(n=>dle(n,e)),[t,e])}function C5e(){let t=C.useContext(m7),e=b7("useRouteError"),n=v7("useRouteError");return t!==void 0?t:e.errors?.[n]}function T5e(){let{router:t}=_5e("useNavigate"),e=v7("useNavigate"),n=C.useRef(!1);return Mle(()=>{n.current=!0}
12),C.useCallback(async(i,s={})=>{mr(n.current,Ile),n.current&&(typeof i=="number"?await t.navigate(i):await t.navigate(i,{fromRouteId:e,...s}))},[t,e])}var Iq={};function Lle(t,e,n){!e&&!Iq[t]&&(Iq[t]=!0,mr(!1,n))}var Mq={};function Dq(t,e){!t&&!Mq[e]&&(Mq[e]=!0,console.warn(e))}var A5e="useOptimistic",Pq=oT[A5e],R5e=()=>{};function N5e(t){return Pq?Pq(t):[t,R5e]}function O5e(t){let e={hasErrorBoundary:t.hasErrorBoundary||t.ErrorBoundary!=null||t.errorElement!=null};return t.Component&&(t.element&&mr(!1,"You should not include both `Component` and `element` on your route - `Component` will be used."),Object.assign(e,{element:C.createElement(t.Component),Component:void 0})),t.HydrateFallback&&(t.hydrateFallbackElement&&mr(!1,"You should not include both `HydrateFallback` and `hydrateFallbackElement` on your route - `HydrateFallback` will be used."),Object.assign(e,{hydrateFallbackElement:C.createElement(t.HydrateFallback),HydrateFallback:void 0})),t.ErrorBoundary&&(t.errorElement&&mr(!1,"You should not include both `ErrorBoundary` and `errorElement` on your route - `ErrorBoundary` will be used."),Object.assign(e,{errorElement:C.createElement(t.ErrorBoundary),ErrorBoundary:void 0})),e}var k5e=["HydrateFallback","hydrateFallbackElement"],I5e=class{constructor(){this.status="pending",this.promise=new Promise((t,e)=>{this.resolve=n=>{this.status==="pending"&&(this.status="resolved",t(n))},this.reject=n=>{this.status==="pending"&&(this.status="rejected",e(n))}})}};function M5e({router:t,flushSync:e,onError:n,unstable_useTransitions:r}){r=s5e()||r;let[s,a]=C.useState(t.state),[o,l]=N5e(s),[u,c]=C.useState(),[d,h]=C.useState({isTransitioning:!1}),[m,g]=C.useState(),[b,v]=C.useState(),[E,x]=C.useState(),_=C.useRef(new Map),S=C.useCallback((O,{deletedFetchers:I,newErrors:D,flushSync:P,viewTransitionOpts:B})=>{D&&n&&Object.values(D).forEach($=>n($,{location:O.location,params:O.matches[0]?.params??{},unstable_pattern:r2(O.matches)})),O.fetchers.forEach(($,q)=>{$.data!==void 0&&_.current.set(q,$.data)}),I.forEach($=>_.current.delete($)),Dq(P===!1||e!=null,'You provided the `flushSync` option to a router update, but you are not using the `<RouterProvider>` from `react-router/dom` so `ReactDOM.flushSync()` is unavailable. Please update your app to `import { RouterProvider } from "react-router/dom"` and ensure you have `react-dom` installed as a dependency to use the `flushSync` option.');let L=t.window!=null&&t.window.document!=null&&typeof t.window.document.startViewTransition=="function";if(Dq(B==null||L,"You provided the `viewTransition` option to a router update, but you do not appear to be running in a DOM environment as `window.startViewTransition` is not available."),!B||!L){e&&P?e(()=>a(O)):r===!1?a(O):C.startTransition(()=>{r===!0&&l($=>Lq($,O)),a(O)});return}if(e&&P){e(()=>{b&&(m?.resolve(),b.skipTransition()),h({isTransitioning:!0,flushSync:!0,currentLocation:B.currentLocation,nextLocation:B.nextLocation})});let $=t.window.document.startViewTransition(()=>{e(()=>a(O))});$.finished.finally(()=>{e(()=>{g(void 0),v(void 0),c(void 0),h({isTransitioning:!1})})}),e(()=>v($));return}b?(m?.resolve(),b.skipTransition(),x({state:O,currentLocation:B.currentLocation,nextLocation:B.nextLocation})):(c(O),h({isTransitioning:!0,flushSync:!1,currentLocation:B.currentLocation,nextLocation:B.nextLocation}))},[t.window,e,b,m,r,l,n]);C.useLayoutEffect(()=>t.subscribe(S),[t,S]),C.useEffect(()=>{d.isTransitioning&&!d.flushSync&&g(new I5e)},[d]),C.useEffect(()=>{if(m&&u&&t.window){let O=u,I=m.promise,D=t.window.document.startViewTransition(async()=>{r===!1?a(O):C.startTransition(()=>{r===!0&&l(P=>Lq(P,O)),a(O)}),await I});D.finished.finally(()=>{g(void 0),v(void 0),c(void 0),h({isTransitioning:!1})}),v(D)}},[u,m,t.window,r,l]),C.useEffect(()=>{m&&u&&o.location.key===u.location.key&&m.resolve()},[m,b,o.location,u]),C.useEffect(()=>{!d.isTransitioning&&E&&(c(E.state),h({isTransitioning:!0,flushSync:!1,currentLocation:E.currentLocation,nextLocation:E.nextLocation}),x(void 0))},[d.isTransitioning,E]);let A=C.useMemo(()=>({createHref:t.createHref,encodeLocation:t.encodeLocation,go:O=>t.navigate(O),push:(O,I,D)=>t.navigate(O,{state:I,preventScrollReset:D?.preventScrollReset}),replace:(O,I,D)=>t.navigate(O,{replace:!0,state:I,preventScrollReset:D?.preventScrollReset})}),[t]),R=t.basename||"/",T=C.useMemo(()=>({router:t,navigator:A,static:!1,basename:R,onError:n}),[t,A,R,n]);return C.createElement(C.Fragment,null,C.createElement(wp.Provider,{value:T},C.createElement(v0.Provider,{value:o},C.createElement(Ole.Provider,{value:_.current},C.createElement(p7.Provider,{value:d},C.createElement(L5e,{basename:R,location:o.location,navigationType:o.historyAction,navigator:A,unstable_useTransitions:r},C.createElement(D5e,{routes:t.routes,future:t.future,state:o,onError:n})))))),null)}function Lq(t,e){return{...t,navigation:e.navigation.state!=="idle"?e.navigation:t.navigation,revalidation:e.revalidation!=="idle"?e.revalidation:t.revalidation,actionData:e.navigation.state!=="submitting"?e.actionData:t.actionData,fetchers:e.fetchers}}var D5e=C.memo(P5e);function P5e({routes:t,future:e,state:n,onError:r}){return m5e(t,void 0,n,r,e)}function Fkt({to:t,replace:e,state:n,relative:r}){Jt(E0(),"<Navigate> may be used only in the context of a <Router> component.");let{static:i}=C.useContext(Ls);mr(!i,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:s}=C.useContext(Io),{pathname:a}=gl(),o=g7(),l=uT(t,lT(s),a,r==="path"),u=JSON.stringify(l);return C.useEffect(()=>{o(JSON.parse(u),{replace:e,state:n,relative:r})},[o,u,r,e,n]),null}function Bkt(t){return p5e(t.context)}function L5e({basename:t="/",children:e=null,location:n,navigationType:r="POP",navigator:i,static:s=!1,unstable_useTransitions:a}){Jt(!E0(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let o=t.replace(/^\/*/,"/"),l=C.useMemo(()=>({basename:o,navigator:i,static:s,unstable_useTransitions:a,future:{}}),[o,i,s,a]);typeof n=="string"&&(n=hf(n));
12let{pathname:u="/",search:c="",hash:d="",state:h=null,key:m="default"}=n,g=C.useMemo(()=>{let b=Ga(u,o);return b==null?null:{location:{pathname:b,search:c,hash:d,state:h,key:m},navigationType:r}},[o,u,c,d,h,m,r]);return mr(g!=null,`<Router basename="${o}"> is not able to match the URL "${u}${c}${d}" because it does not start with the basename, so the <Router> won't render anything.`),g==null?null:C.createElement(Ls.Provider,{value:l},C.createElement(cT.Provider,{children:e,value:g}))}var dw="get",fw="application/x-www-form-urlencoded";function dT(t){return typeof HTMLElement<"u"&&t instanceof HTMLElement}function $5e(t){return dT(t)&&t.tagName.toLowerCase()==="button"}function F5e(t){return dT(t)&&t.tagName.toLowerCase()==="form"}function B5e(t){return dT(t)&&t.tagName.toLowerCase()==="input"}function H5e(t){return!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)}function U5e(t,e){return t.button===0&&(!e||e==="_self")&&!H5e(t)}function pD(t=""){return new URLSearchParams(typeof t=="string"||Array.isArray(t)||t instanceof URLSearchParams?t:Object.keys(t).reduce((e,n)=>{let r=t[n];return e.concat(Array.isArray(r)?r.map(i=>[n,i]):[[n,r]])},[]))}function j5e(t,e){let n=pD(t);return e&&e.forEach((r,i)=>{n.has(i)||e.getAll(i).forEach(s=>{n.append(i,s)})}),n}var W_=null;function z5e(){if(W_===null)try{new FormData(document.createElement("form"),0),W_=!1}catch{W_=!0}return W_}var V5e=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function hN(t){return t!=null&&!V5e.has(t)?(mr(!1,`"${t}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${fw}"`),null):t}function q5e(t,e){let n,r,i,s,a;if(F5e(t)){let o=t.getAttribute("action");r=o?Ga(o,e):null,n=t.getAttribute("method")||dw,i=hN(t.getAttribute("enctype"))||fw,s=new FormData(t)}else if($5e(t)||B5e(t)&&(t.type==="submit"||t.type==="image")){let o=t.form;if(o==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let l=t.getAttribute("formaction")||o.getAttribute("action");if(r=l?Ga(l,e):null,n=t.getAttribute("formmethod")||o.getAttribute("method")||dw,i=hN(t.getAttribute("formenctype"))||hN(o.getAttribute("enctype"))||fw,s=new FormData(o,t),!z5e()){let{name:u,type:c,value:d}=t;if(c==="image"){let h=u?`${u}.`:"";s.append(`${h}x`,"0"),s.append(`${h}y`,"0")}else u&&s.append(u,d)}}else{if(dT(t))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=dw,r=null,i=fw,a=t}return s&&i==="text/plain"&&(a=s,s=void 0),{action:r,method:n.toLowerCase(),encType:i,formData:s,body:a}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var G5e={"&":"\\u0026",">":"\\u003e","<":"\\u003c","\u2028":"\\u2028","\u2029":"\\u2029"},W5e=/[&><\u2028\u2029]/g;function $q(t){return t.replace(W5e,e=>G5e[e])}function E7(t,e){if(t===!1||t===null||typeof t>"u")throw new Error(e)}function Y5e(t,e,n,r){let i=typeof t=="string"?new URL(t,typeof window>"u"?"server://singlefetch/":window.location.origin):t;return n?i.pathname.endsWith("/")?i.pathname=`${i.pathname}_.${r}`:i.pathname=`${i.pathname}.${r}`:i.pathname==="/"?i.pathname=`_root.${r}`:e&&Ga(i.pathname,e)==="/"?i.pathname=`${e.replace(/\/$/,"")}/_root.${r}`:i.pathname=`${i.pathname.replace(/\/$/,"")}.${r}`,i}async function K5e(t,e){if(t.id in e)return e[t.id];try{let n=await import(t.module);return e[t.id]=n,n}catch(n){return console.error(`Error loading route module \`${t.module}\`, reloading page...`),console.error(n),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function X5e(t){return t==null?!1:t.href==null?t.rel==="preload"&&typeof t.imageSrcSet=="string"&&typeof t.imageSizes=="string":typeof t.rel=="string"&&typeof t.href=="string"}async function Q5e(t,e,n){let r=await Promise.all(t.map(async i=>{let s=e.routes[i.route.id];if(s){let a=await K5e(s,n);return a.links?a.links():[]}return[]}));return tRe(r.flat(1).filter(X5e).filter(i=>i.rel==="stylesheet"||i.rel==="preload").map(i=>i.rel==="stylesheet"?{...i,rel:"prefetch",as:"style"}:{...i,rel:"prefetch"}))}function Fq(t,e,n,r,i,s){let a=(l,u)=>n[u]?l.route.id!==n[u].route.id:!0,o=(l,u)=>n[u].pathname!==l.pathname||n[u].route.path?.endsWith("*")&&n[u].params["*"]!==l.params["*"];return s==="assets"?e.filter((l,u)=>a(l,u)||o(l,u)):s==="data"?e.filter((l,u)=>{let c=r.routes[l.route.id];if(!c||!c.hasLoader)return!1;if(a(l,u)||o(l,u))return!0;
12if(l.route.shouldRevalidate){let d=l.route.shouldRevalidate({currentUrl:new URL(i.pathname+i.search+i.hash,window.origin),currentParams:n[0]?.params||{},nextUrl:new URL(t,window.origin),nextParams:l.params,defaultShouldRevalidate:!0});if(typeof d=="boolean")return d}return!0}):[]}function Z5e(t,e,{includeHydrateFallback:n}={}){return J5e(t.map(r=>{let i=e.routes[r.route.id];if(!i)return[];let s=[i.module];return i.clientActionModule&&(s=s.concat(i.clientActionModule)),i.clientLoaderModule&&(s=s.concat(i.clientLoaderModule)),n&&i.hydrateFallbackModule&&(s=s.concat(i.hydrateFallbackModule)),i.imports&&(s=s.concat(i.imports)),s}).flat(1))}function J5e(t){return[...new Set(t)]}function eRe(t){let e={},n=Object.keys(t).sort();for(let r of n)e[r]=t[r];return e}function tRe(t,e){let n=new Set;return new Set(e),t.reduce((r,i)=>{let s=JSON.stringify(eRe(i));return n.has(s)||(n.add(s),r.push({key:s,link:i})),r},[])}function $le(){let t=C.useContext(wp);return E7(t,"You must render this element inside a <DataRouterContext.Provider> element"),t}function nRe(){let t=C.useContext(v0);return E7(t,"You must render this element inside a <DataRouterStateContext.Provider> element"),t}var fT=C.createContext(void 0);fT.displayName="FrameworkContext";function Fle(){let t=C.useContext(fT);return E7(t,"You must render this element inside a <HydratedRouter> element"),t}function rRe(t,e){let n=C.useContext(fT),[r,i]=C.useState(!1),[s,a]=C.useState(!1),{onFocus:o,onBlur:l,onMouseEnter:u,onMouseLeave:c,onTouchStart:d}=e,h=C.useRef(null);C.useEffect(()=>{if(t==="render"&&a(!0),t==="viewport"){let b=E=>{E.forEach(x=>{a(x.isIntersecting)})},v=new IntersectionObserver(b,{threshold:.5});return h.current&&v.observe(h.current),()=>{v.disconnect()}}},[t]),C.useEffect(()=>{if(r){let b=setTimeout(()=>{a(!0)},100);return()=>{clearTimeout(b)}}},[r]);let m=()=>{i(!0)},g=()=>{i(!1),a(!1)};return n?t!=="intent"?[s,h,{}]:[s,h,{onFocus:sy(o,m),onBlur:sy(l,g),onMouseEnter:sy(u,m),onMouseLeave:sy(c,g),onTouchStart:sy(d,m)}]:[!1,h,{}]}function sy(t,e){return n=>{t&&t(n),n.defaultPrevented||e(n)}}function iRe({page:t,...e}){let{router:n}=$le(),r=C.useMemo(()=>Ld(n.routes,t,n.basename),[n.routes,t,n.basename]);return r?C.createElement(aRe,{page:t,matches:r,...e}):null}function sRe(t){let{manifest:e,routeModules:n}=Fle(),[r,i]=C.useState([]);return C.useEffect(()=>{let s=!1;return Q5e(t,e,n).then(a=>{s||i(a)}),()=>{s=!0}},[t,e,n]),r}function aRe({page:t,matches:e,...n}){let r=gl(),{future:i,manifest:s,routeModules:a}=Fle(),{basename:o}=$le(),{loaderData:l,matches:u}=nRe(),c=C.useMemo(()=>Fq(t,e,u,s,r,"data"),[t,e,u,s,r]),d=C.useMemo(()=>Fq(t,e,u,s,r,"assets"),[t,e,u,s,r]),h=C.useMemo(()=>{if(t===r.pathname+r.search+r.hash)return[];let b=new Set,v=!1;if(e.forEach(x=>{let _=s.routes[x.route.id];!_||!_.hasLoader||(!c.some(S=>S.route.id===x.route.id)&&x.route.id in l&&a[x.route.id]?.shouldRevalidate||_.hasClientLoader?v=!0:b.add(x.route.id))}),b.size===0)return[];let E=Y5e(t,o,i.unstable_trailingSlashAwareDataRequests,"data");return v&&b.size>0&&E.searchParams.set("_routes",e.filter(x=>b.has(x.route.id)).map(x=>x.route.id).join(",")),[E.pathname+E.search]},[o,i.unstable_trailingSlashAwareDataRequests,l,r,s,c,e,t,a]),m=C.useMemo(()=>Z5e(d,s),[d,s]),g=sRe(d);return C.createElement(C.Fragment,null,h.map(b=>C.createElement("link",{key:b,rel:"prefetch",as:"fetch",href:b,...n})),m.map(b=>C.createElement("link",{key:b,rel:"modulepreload",href:b,...n})),g.map(({key:b,link:v})=>C.createElement("link",{key:b,nonce:n.nonce,...v,crossOrigin:v.crossOrigin??n.crossOrigin})))}function oRe(...t){return e=>{t.forEach(n=>{typeof n=="function"?n(e):n!=null&&(n.current=e)})}}var lRe=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{lRe&&(window.__reactRouterVersion="7.13.0")}catch{}function Hkt(t,e){return DAe({basename:e?.basename,getContext:e?.getContext,future:e?.future,history:Q3e({window:e?.window}),hydrationData:uRe(),routes:t,mapRouteProperties:O5e,hydrationRouteProperties:k5e,dataStrategy:e?.dataStrategy,patchRoutesOnNavigation:e?.patchRoutesOnNavigation,window:e?.window,unstable_instrumentations:e?.unstable_instrumentations}).initialize()}function uRe(){let t=window?.__staticRouterHydrationData;return t&&t.errors&&(t={...t,errors:cRe(t.errors)}),t}function cRe(t){if(!t)return null;let e=Object.entries(t),n={};for(let[r,i]of e)if(i&&i.__type==="RouteErrorResponse")n[r]=new n2(i.status,i.statusText,i.data,i.internal===!0);else if(i&&i.__type==="Error"){if(i.__subType){let s=window[i.__subType];if(typeof s=="function")try{let a=new s(i.message);a.stack="",n[r]=a}catch{}}if(n[r]==null){let s=new Error(i.message);s.stack="",n[r]=s}}else n[r]=i;return n}var Ble=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Hle=C.forwardRef(function({onClick:e,discover:n="render",prefetch:r="none",relative:i,reloadDocument:s,replace:a,state:o,target:l,to:u,preventScrollReset:c,viewTransition:d,unstable_defaultShouldRevalidate:h,...m},g){let{basename:b,unstable_useTransitions:v}=C.useContext(Ls),E=typeof u=="string"&&Ble.test(u),x=yle(u,b);u=x.to;let _=d5e(u,{relative:i}),[S,A,R]=rRe(r,m),T=mRe(u,{replace:a,state:o,target:l,preventScrollReset:c,relative:i,viewTransition:d,unstable_defaultShouldRevalidate:h,unstable_useTransitions:v});function O(D){e&&e(D),D.defaultPrevented||T(D)}let I=C.createElement("a",{...m,...R,href:x.absoluteURL||_,onClick:x.isExternal||s?e:O,ref:oRe(g,A),target:l,"data-discover":!E&&n==="render"?"true":void 0});return S&&!E?C.createElement(C.Fragment,null,I,C.createElement(iRe,{page:_})):I});Hle.displayName="Link";var dRe=C.forwardRef(function({"aria-current":e="page",caseSensitive:n=!1,className:r="",end:i=!1,style:s,to:a,viewTransition:o,children:l,...u},c){let d=i2(a,{relative:u.relative}),h=gl(),m=C.useContext(v0),{navigator:g,basename:b}=C.useContext(Ls),v=m!=null&&xRe(d)&&o===!0,E=g.encodeLocation?g.encodeLocation(d).pathname:d.pathname,x=h.pathname,_=m&&m.navigation&&m.navigation.location?m.navigation.location.pathname:null;n||(x=x.toLowerCase(),_=_?_.toLowerCase():null,E=E.toLowerCase()),_&&b&&(_=Ga(_,b)||_);const S=E!=="/"&&E.endsWith("/")?E.length-1:E.length;
12let A=x===E||!i&&x.startsWith(E)&&x.charAt(S)==="/",R=_!=null&&(_===E||!i&&_.startsWith(E)&&_.charAt(E.length)==="/"),T={isActive:A,isPending:R,isTransitioning:v},O=A?e:void 0,I;typeof r=="function"?I=r(T):I=[r,A?"active":null,R?"pending":null,v?"transitioning":null].filter(Boolean).join(" ");let D=typeof s=="function"?s(T):s;return C.createElement(Hle,{...u,"aria-current":O,className:I,ref:c,style:D,to:a,viewTransition:o},typeof l=="function"?l(T):l)});dRe.displayName="NavLink";var fRe=C.forwardRef(({discover:t="render",fetcherKey:e,navigate:n,reloadDocument:r,replace:i,state:s,method:a=dw,action:o,onSubmit:l,relative:u,preventScrollReset:c,viewTransition:d,unstable_defaultShouldRevalidate:h,...m},g)=>{let{unstable_useTransitions:b}=C.useContext(Ls),v=bRe(),E=vRe(o,{relative:u}),x=a.toLowerCase()==="get"?"get":"post",_=typeof o=="string"&&Ble.test(o),S=A=>{if(l&&l(A),A.defaultPrevented)return;A.preventDefault();let R=A.nativeEvent.submitter,T=R?.getAttribute("formmethod")||a,O=()=>v(R||A.currentTarget,{fetcherKey:e,method:T,navigate:n,replace:i,state:s,relative:u,preventScrollReset:c,viewTransition:d,unstable_defaultShouldRevalidate:h});b&&n!==!1?C.startTransition(()=>O()):O()};return C.createElement("form",{ref:g,method:x,action:E,onSubmit:r?l:S,...m,"data-discover":!_&&t==="render"?"true":void 0})});fRe.displayName="Form";function hRe({getKey:t,storageKey:e,...n}){let r=C.useContext(fT),{basename:i}=C.useContext(Ls),s=gl(),a=Ple();ERe({getKey:t,storageKey:e});let o=C.useMemo(()=>{if(!r||!t)return null;let u=gD(s,a,i,t);return u!==s.key?u:null},[]);if(!r||r.isSpaMode)return null;let l=((u,c)=>{if(!window.history.state||!window.history.state.key){let d=Math.random().toString(32).slice(2);window.history.replaceState({key:d},"")}try{let h=JSON.parse(sessionStorage.getItem(u)||"{}")[c||window.history.state.key];typeof h=="number"&&window.scrollTo(0,h)}catch(d){console.error(d),sessionStorage.removeItem(u)}}).toString();return C.createElement("script",{...n,suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:`(${l})(${$q(JSON.stringify(e||mD))}, ${$q(JSON.stringify(o))})`}})}
12hRe.displayName="ScrollRestoration";function Ule(t){return`${t} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function _7(t){let e=C.useContext(wp);return Jt(e,Ule(t)),e}function pRe(t){let e=C.useContext(v0);return Jt(e,Ule(t)),e}function mRe(t,{target:e,replace:n,state:r,preventScrollReset:i,relative:s,viewTransition:a,unstable_defaultShouldRevalidate:o,unstable_useTransitions:l}={}){let u=g7(),c=gl(),d=i2(t,{relative:s});return C.useCallback(h=>{if(U5e(h,e)){h.preventDefault();let m=n!==void 0?n:du(c)===du(d),g=()=>u(t,{replace:m,state:r,preventScrollReset:i,relative:s,viewTransition:a,unstable_defaultShouldRevalidate:o});l?C.startTransition(()=>g()):g()}},[c,u,d,n,r,e,t,i,s,a,o,l])}function Ukt(t){mr(typeof URLSearchParams<"u","You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let e=C.useRef(pD(t)),n=C.useRef(!1),r=gl(),i=C.useMemo(()=>j5e(r.search,n.current?null:e.current),[r.search]),s=g7(),a=C.useCallback((o,l)=>{const u=pD(typeof o=="function"?o(new URLSearchParams(i)):o);n.current=!0,s("?"+u,l)},[s,i]);return[i,a]}var gRe=0,yRe=()=>`__${String(++gRe)}__`;function bRe(){let{router:t}=_7("useSubmit"),{basename:e}=C.useContext(Ls),n=w5e(),r=t.fetch,i=t.navigate;return C.useCallback(async(s,a={})=>{let{action:o,method:l,encType:u,formData:c,body:d}=q5e(s,e);if(a.navigate===!1){let h=a.fetcherKey||yRe();await r(h,n,a.action||o,{unstable_defaultShouldRevalidate:a.unstable_defaultShouldRevalidate,preventScrollReset:a.preventScrollReset,formData:c,body:d,formMethod:a.method||l,formEncType:a.encType||u,flushSync:a.flushSync})}else await i(a.action||o,{unstable_defaultShouldRevalidate:a.unstable_defaultShouldRevalidate,preventScrollReset:a.preventScrollReset,formData:c,body:d,formMethod:a.method||l,formEncType:a.encType||u,replace:a.replace,state:a.state,fromRouteId:n,flushSync:a.flushSync,viewTransition:a.viewTransition})},[r,i,e,n])}function vRe(t,{relative:e}={}){let{basename:n}=C.useContext(Ls),r=C.useContext(Io);Jt(r,"useFormAction must be used inside a RouteContext");let[i]=r.matches.slice(-1),s={...i2(t||".",{relative:e})},a=gl();if(t==null){s.search=a.search;let o=new URLSearchParams(s.search),l=o.getAll("index");if(l.some(c=>c==="")){o.delete("index"),l.filter(d=>d).forEach(d=>o.append("index",d));let c=o.toString();s.search=c?`?${c}`:""}}return(!t||t===".")&&i.route.index&&(s.search=s.search?s.search.replace(/^\?/,"?index&"):"?index"),n!=="/"&&(s.pathname=s.pathname==="/"?n:ru([n,s.pathname])),du(s)}var mD="react-router-scroll-positions",Y_={};function gD(t,e,n,r){let i=null;return r&&(n!=="/"?i=r({...t,pathname:Ga(t.pathname,n)||t.pathname},e):i=r(t,e)),i==null&&(i=t.key),i}function ERe({getKey:t,storageKey:e}={}){let{router:n}=_7("useScrollRestoration"),{restoreScrollPosition:r,preventScrollReset:i}=pRe("useScrollRestoration"),{basename:s}=C.useContext(Ls),a=gl(),o=Ple(),l=S5e();C.useEffect(()=>(window.history.scrollRestoration="manual",()=>{window.history.scrollRestoration="auto"}),[]),_Re(C.useCallback(()=>{if(l.state==="idle"){let u=gD(a,o,s,t);Y_[u]=window.scrollY}try{sessionStorage.setItem(e||mD,JSON.stringify(Y_))}catch(u){mr(!1,`Failed to save scroll positions in sessionStorage, <ScrollRestoration /> will not work properly (${u}).`)}window.history.scrollRestoration="auto"},[l.state,t,s,a,o,e])),typeof document<"u"&&(C.useLayoutEffect(()=>{try{let u=sessionStorage.getItem(e||mD);u&&(Y_=JSON.parse(u))}catch{}},[e]),C.useLayoutEffect(()=>{let u=n?.enableScrollRestoration(Y_,()=>window.scrollY,t?(c,d)=>gD(c,d,s,t):void 0);return()=>u&&u()},[n,s,t]),C.useLayoutEffect(()=>{if(r!==!1){if(typeof r=="number"){window.scrollTo(0,r);return}try{if(a.hash){let u=document.getElementById(decodeURIComponent(a.hash.slice(1)));if(u){u.scrollIntoView();return}}}catch{mr(!1,`"${a.hash.slice(1)}" is not a decodable element ID. The view will not scroll to it.`)}i!==!0&&window.scrollTo(0,0)}},[a,r,i]))}function _Re(t,e){let{capture:n}={};C.useEffect(()=>{let r=n!=null?{capture:n}:void 0;
12return window.addEventListener("pagehide",t,r),()=>{window.removeEventListener("pagehide",t,r)}},[t,n])}function xRe(t,{relative:e}={}){let n=C.useContext(p7);Jt(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=_7("useViewTransitionState"),i=i2(t,{relative:e});if(!n.isTransitioning)return!1;let s=Ga(n.currentLocation.pathname,r)||n.currentLocation.pathname,a=Ga(n.nextLocation.pathname,r)||n.nextLocation.pathname;return oS(i.pathname,a)!=null||oS(i.pathname,s)!=null}var ks=lle();const x7=ys(ks);function jkt(t){return C.createElement(M5e,{flushSync:ks.flushSync,...t})}const Et=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,Nn=globalThis,Th="10.38.0";function Sp(){return hT(Nn),Nn}function hT(t){const e=t.__SENTRY__=t.__SENTRY__||{};return e.version=e.version||Th,e[Th]=e[Th]||{}}function _0(t,e,n=Nn){const r=n.__SENTRY__=n.__SENTRY__||{},i=r[Th]=r[Th]||{};return i[t]||(i[t]=e())}const wRe=["debug","info","warn","error","log","assert","trace"],SRe="Sentry Logger ",lS={};function x0(t){if(!("console"in Nn))return t();const e=Nn.console,n={},r=Object.keys(lS);r.forEach(i=>{const s=lS[i];n[i]=e[i],e[i]=s});try{return t()}finally{r.forEach(i=>{e[i]=n[i]})}}function CRe(){S7().enabled=!0}function TRe(){S7().enabled=!1}function jle(){return S7().enabled}function ARe(...t){w7("log",...t)}function RRe(...t){w7("warn",...t)}function NRe(...t){w7("error",...t)}function w7(t,...e){Et&&jle()&&x0(()=>{Nn.console[t](`${SRe}[${t}]:`,...e)})}function S7(){return Et?_0("loggerSettings",()=>({enabled:!1})):{enabled:!1}}const et={enable:CRe,disable:TRe,isEnabled:jle,log:ARe,warn:RRe,error:NRe},zle=50,Uh="?",Bq=/\(error: (.*)\)/,Hq=/captureMessage|captureException/;function Vle(...t){const e=t.sort((n,r)=>n[0]-r[0]).map(n=>n[1]);return(n,r=0,i=0)=>{const s=[],a=n.split(` 13`);for(let o=r;o<a.length;o++){let l=a[o];l.length>1024&&(l=l.slice(0,1024));const u=Bq.test(l)?l.replace(Bq,"$1"):l;if(!u.match(/\S*Error: /)){for(const c of e){const d=c(u);if(d){s.push(d);break}}if(s.length>=zle+i)break}}return kRe(s.slice(i))}}function ORe(t){return Array.isArray(t)?Vle(...t):t}function kRe(t){if(!t.length)return[];const e=Array.from(t);return/sentryWrapped/.test(K_(e).function||"")&&e.pop(),e.reverse(),Hq.test(K_(e).function||"")&&(e.pop(),Hq.test(K_(e).function||"")&&e.pop()),e.slice(0,zle).map(n=>({...n,filename:n.filename||K_(e).filename,function:n.function||Uh}))}function K_(t){return t[t.length-1]||{}}const pN="<anonymous>";function Rc(t){try{return!t||typeof t!="function"?pN:t.name||pN}catch{return pN}}function Uq(t){const e=t.exception;if(e){const n=[];try{return e.values.forEach(r=>{r.stacktrace.frames&&n.push(...r.stacktrace.frames)}),n}catch{return}}}function qle(t){return"__v_isVNode"in t&&t.__v_isVNode?"[VueVNode]":"[VueViewModel]"}const hw={},jq={};function pf(t,e){hw[t]=hw[t]||[],hw[t].push(e)}function mf(t,e){if(!jq[t]){jq[t]=!0;try{e()}catch(n){Et&&et.error(`Error while instrumenting ${t}`,n)}}}function _o(t,e){const n=t&&hw[t];if(n)for(const r of n)try{r(e)}catch(i){Et&&et.error(`Error while triggering instrumentation handler. 14Type: ${t} 15Name: ${Rc(r)}
15 16Error:`,i)}}let mN=null;function Gle(t){const e="error";pf(e,t),mf(e,IRe)}function IRe(){mN=Nn.onerror,Nn.onerror=function(t,e,n,r,i){return _o("error",{column:r,error:i,line:n,msg:t,url:e}),mN?mN.apply(this,arguments):!1},Nn.onerror.__SENTRY_INSTRUMENTED__=!0}let gN=null;function Wle(t){const e="unhandledrejection";pf(e,t),mf(e,MRe)}function MRe(){gN=Nn.onunhandledrejection,Nn.onunhandledrejection=function(t){return _o("unhandledrejection",t),gN?gN.apply(this,arguments):!0},Nn.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}const Yle=Object.prototype.toString;function pT(t){switch(Yle.call(t)){case"[object Error]":case"[object Exception]":case"[object DOMException]":case"[object WebAssembly.Exception]":return!0;default:return Nc(t,Error)}}function w0(t,e){return Yle.call(t)===`[object ${e}]`}function Kle(t){return w0(t,"ErrorEvent")}function zq(t){return w0(t,"DOMError")}function DRe(t){return w0(t,"DOMException")}function Sc(t){return w0(t,"String")}function C7(t){return typeof t=="object"&&t!==null&&"__sentry_template_string__"in t&&"__sentry_template_values__"in t}function Hg(t){return t===null||C7(t)||typeof t!="object"&&typeof t!="function"}function Ub(t){return w0(t,"Object")}function mT(t){return typeof Event<"u"&&Nc(t,Event)}function PRe(t){return typeof Element<"u"&&Nc(t,Element)}function LRe(t){return w0(t,"RegExp")}function S0(t){return!!(t?.then&&typeof t.then=="function")}function $Re(t){return Ub(t)&&"nativeEvent"in t&&"preventDefault"in t&&"stopPropagation"in t}function Nc(t,e){try{return t instanceof e}catch{return!1}}function Xle(t){return!!(typeof t=="object"&&t!==null&&(t.__isVue||t._isVue||t.__v_isVNode))}function T7(t){return typeof Request<"u"&&Nc(t,Request)}const A7=Nn,FRe=80;function Ao(t,e={}){if(!t)return"<unknown>";try{let n=t;const r=5,i=[];let s=0,a=0;const o=" > ",l=o.length;let u;const c=Array.isArray(e)?e:e.keyAttrs,d=!Array.isArray(e)&&e.maxStringLength||FRe;for(;n&&s++<r&&(u=BRe(n,c),!(u==="html"||s>1&&a+i.length*l+u.length>=d));)i.push(u),a+=u.length,n=n.parentNode;return i.reverse().join(o)}catch{return"<unknown>"}}function BRe(t,e){const n=t,r=[];if(!n?.tagName)return"";if(A7.HTMLElement&&n instanceof HTMLElement&&n.dataset){if(n.dataset.sentryComponent)return n.dataset.sentryComponent;if(n.dataset.sentryElement)return n.dataset.sentryElement}r.push(n.tagName.toLowerCase());const i=e?.length?e.filter(a=>n.getAttribute(a)).map(a=>[a,n.getAttribute(a)]):null;if(i?.length)i.forEach(a=>{r.push(`[${a[0]}="${a[1]}"]`)});else{n.id&&r.push(`#${n.id}`);const a=n.className;if(a&&Sc(a)){const o=a.split(/\s+/);for(const l of o)r.push(`.${l}`)}}const s=["aria-label","type","name","title","alt"];for(const a of s){const o=n.getAttribute(a);o&&r.push(`[${a}="${o}"]`)}return r.join("")}function s2(){try{return A7.document.location.href}catch{return""}}function Qle(t){if(!A7.HTMLElement)return null;let e=t;const n=5;for(let r=0;r<n;r++){if(!e)return null;if(e instanceof HTMLElement){if(e.dataset.sentryComponent)return e.dataset.sentryComponent;if(e.dataset.sentryElement)return e.dataset.sentryElement}e=e.parentNode}return null}function ja(t,e,n){if(!(e in t))return;const r=t[e];if(typeof r!="function")return;const i=n(r);typeof i=="function"&&Zle(i,r);try{t[e]=i}catch{Et&&et.log(`Failed to replace method "${e}" in object`,t)}}function da(t,e,n){try{Object.defineProperty(t,e,{value:n,writable:!0,configurable:!0})}catch{Et&&et.log(`Failed to add non-enumerable property "${e}" to object`,t)}}function Zle(t,e){try{const n=e.prototype||{};t.prototype=e.prototype=n,da(t,"__sentry_original__",e)}catch{}}function R7(t){return t.__sentry_original__}function Jle(t){if(pT(t))return{message:t.message,name:t.name,stack:t.stack,...qq(t)};if(mT(t)){const e={type:t.type,target:Vq(t.target),currentTarget:Vq(t.currentTarget),...qq(t)};return typeof CustomEvent<"u"&&Nc(t,CustomEvent)&&(e.detail=t.detail),e}else return t}function Vq(t){try{return PRe(t)?Ao(t):Object.prototype.toString.call(t)}catch{return"<unknown>"}}function qq(t){if(typeof t=="object"&&t!==null){const e={};for(const n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}else return{}}function HRe(t){const e=Object.keys(Jle(t));return e.sort(),e[0]?e.join(", "):"[object has no keys]"}let Nm;function a2(t){if(Nm!==void 0)return Nm?Nm(t):t();const e=Symbol.for("__SENTRY_SAFE_RANDOM_ID_WRAPPER__"),n=Nn;return e in n&&typeof n[e]=="function"?(Nm=n[e],Nm(t)):(Nm=null,t())}function Gd(){return a2(()=>Math.random())}function o2(){return a2(()=>Date.now())}function yD(t,e=0){return typeof t!="string"||e===0||t.length<=e?t:`${t.slice(0,e)}...`}function Gq(t,e){if(!Array.isArray(t))return"";const n=[];for(let r=0;r<t.length;r++){const i=t[r];try{Xle(i)?n.push(qle(i)):n.push(String(i))}catch{n.push("[value cannot be serialized]")}}return n.join(e)}function pw(t,e,n=!1){return Sc(t)?LRe(e)?e.test(t):Sc(e)?n?t===e:t.includes(e):!1:!1}function Wd(t,e=[],n=!1){return e.some(r=>pw(t,r,n))}function URe(){const t=Nn;return t.crypto||t.msCrypto}let yN;function jRe(){return Gd()*16}function xo(t=URe()){try{if(t?.randomUUID)return a2(()=>t.randomUUID()).replace(/-/g,"")}catch{}return yN||(yN="10000000100040008000"+1e11),yN.replace(/[018]/g,e=>(e^(jRe()&15)>>e/4).toString(16))}function eue(t){return t.exception?.values?.[0]}function lh(t){const{message:e,event_id:n}=t;if(e)return e;const r=eue(t);return r?r.type&&r.value?`${r.type}: ${r.value}
16`:r.type||r.value||n||"<unknown>":n||"<unknown>"}function bD(t,e,n){const r=t.exception=t.exception||{},i=r.values=r.values||[],s=i[0]=i[0]||{};s.value||(s.value=e||""),s.type||(s.type="Error")}function Ug(t,e){const n=eue(t);if(!n)return;const r={type:"generic",handled:!0},i=n.mechanism;if(n.mechanism={...r,...i,...e},e&&"data"in e){const s={...i?.data,...e.data};n.mechanism.data=s}}function Wq(t){if(zRe(t))return!0;try{da(t,"__sentry_captured__",!0)}catch{}return!1}function zRe(t){try{return t.__sentry_captured__}catch{}}const tue=1e3;function Cp(){return o2()/tue}function VRe(){const{performance:t}=Nn;if(!t?.now||!t.timeOrigin)return Cp;const e=t.timeOrigin;return()=>(e+a2(()=>t.now()))/tue}let Yq;function ji(){return(Yq??(Yq=VRe()))()}let bN=null;function qRe(){const{performance:t}=Nn;if(!t?.now)return;const e=3e5,n=a2(()=>t.now()),r=o2(),i=t.timeOrigin;if(typeof i=="number"&&Math.abs(i+n-r)<e)return i;const s=t.timing?.navigationStart;return typeof s=="number"&&Math.abs(s+n-r)<e?s:r-n}function Xa(){return bN===null&&(bN=qRe()),bN}function GRe(t){const e=ji(),n={sid:xo(),init:!0,timestamp:e,started:e,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>YRe(n)};return t&&jg(n,t),n}function jg(t,e={}){if(e.user&&(!t.ipAddress&&e.user.ip_address&&(t.ipAddress=e.user.ip_address),!t.did&&!e.did&&(t.did=e.user.id||e.user.email||e.user.username)),t.timestamp=e.timestamp||ji(),e.abnormal_mechanism&&(t.abnormal_mechanism=e.abnormal_mechanism),e.ignoreDuration&&(t.ignoreDuration=e.ignoreDuration),e.sid&&(t.sid=e.sid.length===32?e.sid:xo()),e.init!==void 0&&(t.init=e.init),!t.did&&e.did&&(t.did=`${e.did}`),typeof e.started=="number"&&(t.started=e.started),t.ignoreDuration)t.duration=void 0;else if(typeof e.duration=="number")t.duration=e.duration;else{const n=t.timestamp-t.started;t.duration=n>=0?n:0}e.release&&(t.release=e.release),e.environment&&(t.environment=e.environment),!t.ipAddress&&e.ipAddress&&(t.ipAddress=e.ipAddress),!t.userAgent&&e.userAgent&&(t.userAgent=e.userAgent),typeof e.errors=="number"&&(t.errors=e.errors),e.status&&(t.status=e.status)}function WRe(t,e){let n={};t.status==="ok"&&(n={status:"exited"}),jg(t,n)}function YRe(t){return{sid:`${t.sid}`,init:t.init,started:new Date(t.started*1e3).toISOString(),timestamp:new Date(t.timestamp*1e3).toISOString(),status:t.status,errors:t.errors,did:typeof t.did=="number"||typeof t.did=="string"?`${t.did}`:void 0,duration:t.duration,abnormal_mechanism:t.abnormal_mechanism,attrs:{release:t.release,environment:t.environment,ip_address:t.ipAddress,user_agent:t.userAgent}}}function l2(t,e,n=2){if(!e||typeof e!="object"||n<=0)return e;if(t&&Object.keys(e).length===0)return t;const r={...t};for(const i in e)Object.prototype.hasOwnProperty.call(e,i)&&(r[i]=l2(r[i],e[i],n-1));return r}function Oc(){return xo()}function Cc(){return xo().substring(16)}const vD="_sentrySpan";function zg(t,e){e?da(t,vD,e):delete t[vD]}function uS(t){return t[vD]}const KRe=100;class fu{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._attributes={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext={traceId:Oc(),sampleRand:Gd()}}clone(){const e=new fu;return e._breadcrumbs=[...this._breadcrumbs],e._tags={...this._tags},e._attributes={...this._attributes},e._extra={...this._extra},e._contexts={...this._contexts},this._contexts.flags&&(e._contexts.flags={values:[...this._contexts.flags.values]}),e._user=this._user,e._level=this._level,e._session=this._session,e._transactionName=this._transactionName,e._fingerprint=this._fingerprint,e._eventProcessors=[...this._eventProcessors],e._attachments=[...this._attachments],e._sdkProcessingMetadata={...this._sdkProcessingMetadata},e._propagationContext={...this._propagationContext},e._client=this._client,e._lastEventId=this._lastEventId,e._conversationId=this._conversationId,zg(e,uS(this)),e}setClient(e){this._client=e}setLastEventId(e){this._lastEventId=e}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(e){this._scopeListeners.push(e)}addEventProcessor(e){return this._eventProcessors.push(e),this}setUser(e){return this._user=e||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&jg(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}setConversationId(e){return this._conversationId=e||void 0,this._notifyScopeListeners(),this}setTags(e){return this._tags={...this._tags,...e},this._notifyScopeListeners(),this}setTag(e,n){return this.setTags({[e]:n})}setAttributes(e){return this._attributes={...this._attributes,...e},this._notifyScopeListeners(),this}setAttribute(e,n){return this.setAttributes({[e]:n})}removeAttribute(e){return e in this._attributes&&(delete this._attributes[e],this._notifyScopeListeners()),this}setExtras(e){return this._extra={...this._extra,...e},this._notifyScopeListeners(),this}setExtra(e,n){return this._extra={...this._extra,[e]:n},this._notifyScopeListeners(),this}setFingerprint(e){return this._fingerprint=e,this._notifyScopeListeners(),this}setLevel(e){return this._level=e,this._notifyScopeListeners(),this}setTransactionName(e){return this._transactionName=e,this._notifyScopeListeners(),this}setContext(e,n){return n===null?delete this._contexts[e]:this._contexts[e]=n,this._notifyScopeListeners(),this}setSession(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(e){if(!e)return this;const n=typeof e=="function"?e(this):e,r=n instanceof fu?n.getScopeData():Ub(n)?e:void 0,{tags:i,attributes:s,extra:a,user:o,contexts:l,level:u,fingerprint:c=[],propagationContext:d,conversationId:h}=r||{};return this._tags={...this._tags,...i},this._attributes={...this._attributes,...s},this._extra={...this._extra,...a},this._contexts={...this._contexts,...l},o&&Object.keys(o).length&&(this._user=o),u&&(this._level=u),c.length&&(this._fingerprint=c),d&&(this._propagationContext=d),h&&(this._conversationId=h),this}clear(){return this._breadcrumbs=[],this._tags={},this._attributes={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._session=void 0,this._conversationId=void 0,zg(this,void 0),this._attachments=[],this.setPropagationContext({traceId:Oc(),sampleRand:Gd()}),this._notifyScopeListeners(),this}addBreadcrumb(e,n){const r=typeof n=="number"?n:KRe;if(r<=0)return this;const i={timestamp:Cp(),...e,message:e.message?yD(e.message,2048):e.message};return this._breadcrumbs.push(i),this._breadcrumbs.length>r&&(this._breadcrumbs=this._breadcrumbs.slice(-r),this._client?.recordDroppedEvent("buffer_overflow","log_item")),this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(e){return this._attachments.push(e),this}clearAttachments(){return this._attachments=[],this}getScopeData(){return{breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,attributes:this._attributes,extra:this._extra,user:this._user,level:this._level,fingerprint:this._fingerprint||[],eventProcessors:this._eventProcessors,propagationContext:this._propagationContext,sdkProcessingMetadata:this._sdkProcessingMetadata,transactionName:this._transactionName,span:uS(this),conversationId:this._conversationId}}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata=l2(this._sdkProcessingMetadata,e,2),this}setPropagationContext(e){return this._propagationContext=e,this}getPropagationContext(){return this._propagationContext}captureException(e,n){const r=n?.event_id||xo();if(!this._client)return Et&&et.warn("No client configured on scope - will not capture exception!"),r;const i=new Error("Sentry syntheticException");return this._client.captureException(e,{originalException:e,syntheticException:i,...n,event_id:r},this),r}captureMessage(e,n,r){const i=r?.event_id||xo();if(!this._client)return Et&&et.warn("No client configured on scope - will not capture message!"),i;const s=r?.syntheticException??new Error(e);return this._client.captureMessage(e,n,{originalException:e,syntheticException:s,...r,event_id:i},this),i}captureEvent(e,n){const r=n?.event_id||xo();return this._client?(this._client.captureEvent(e,{...n,event_id:r},this),r):(Et&&et.warn("No client configured on scope - will not capture event!"),r)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEac
16h(e=>{e(this)}),this._notifyingListeners=!1)}}function XRe(){return _0("defaultCurrentScope",()=>new fu)}function QRe(){return _0("defaultIsolationScope",()=>new fu)}class ZRe{constructor(e,n){let r;e?r=e:r=new fu;let i;n?i=n:i=new fu,this._stack=[{scope:r}],this._isolationScope=i}withScope(e){const n=this._pushScope();let r;try{r=e(n)}catch(i){throw this._popScope(),i}return S0(r)?r.then(i=>(this._popScope(),i),i=>{throw this._popScope(),i}):(this._popScope(),r)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){const e=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:e}),e}_popScope(){return this._stack.length<=1?!1:!!this._stack.pop()}}function Vg(){const t=Sp(),e=hT(t);return e.stack=e.stack||new ZRe(XRe(),QRe())}function JRe(t){return Vg().withScope(t)}function eNe(t,e){const n=Vg();return n.withScope(()=>(n.getStackTop().scope=t,e(t)))}function Kq(t){return Vg().withScope(()=>t(Vg().getIsolationScope()))}function tNe(){return{withIsolationScope:Kq,withScope:JRe,withSetScope:eNe,withSetIsolationScope:(t,e)=>Kq(e),getCurrentScope:()=>Vg().getScope(),getIsolationScope:()=>Vg().getIsolationScope()}}function C0(t){const e=hT(t);return e.acs?e.acs:tNe()}function Xn(){const t=Sp();return C0(t).getCurrentScope()}function zc(){const t=Sp();return C0(t).getIsolationScope()}function nNe(){return _0("globalScope",()=>new fu)}function gT(...t){const e=Sp(),n=C0(e);if(t.length===2){const[r,i]=t;return r?n.withSetScope(r,i):n.withScope(i)}return n.withScope(t[0])}function zn(){return Xn().getClient()}function rNe(t){const e=t.getPropagationContext(),{traceId:n,parentSpanId:r,propagationSpanId:i}=e,s={trace_id:n,span_id:i||Cc()};return r&&(s.parent_span_id=r),s}const Zl="sentry.source",N7="sentry.sample_rate",nue="sentry.previous_trace_sample_rate",kc="sentry.op",Ii="sentry.origin",jb="sentry.idle_span_finish_reason",u2="sentry.measurement_unit",c2="sentry.measurement_value",Xq="sentry.custom_span_name",O7="sentry.profile_id",T0="sentry.exclusive_time",iNe="sentry.link.type",sNe="gen_ai.conversation.id",aNe=0,k7=1,Ci=2;function oNe(t){if(t<400&&t>=100)return{code:k7};if(t>=400&&t<500)switch(t){case 401:return{code:Ci,message:"unauthenticated"};case 403:return{code:Ci,message:"permission_denied"};case 404:return{code:Ci,message:"not_found"};case 409:return{code:Ci,message:"already_exists"};case 413:return{code:Ci,message:"failed_precondition"};case 429:return{code:Ci,message:"resource_exhausted"};case 499:return{code:Ci,message:"cancelled"};default:return{code:Ci,message:"invalid_argument"}}if(t>=500&&t<600)switch(t){case 501:return{code:Ci,message:"unimplemented"};case 503:return{code:Ci,message:"unavailable"};case 504:return{code:Ci,message:"deadline_exceeded"};default:return{code:Ci,message:"internal_error"}}return{code:Ci,message:"internal_error"}}function rue(t,e){t.setAttribute("http.response.status_code",e);const n=oNe(e);n.message!=="unknown_error"&&t.setStatus(n)}const iue="_sentryScope",sue="_sentryIsolationScope";function lNe(t){try{const e=Nn.WeakRef;if(typeof e=="function")return new e(t)}catch{}return t}function uNe(t){if(t){if(typeof t=="object"&&"deref"in t&&typeof t.deref=="function")try{return t.deref()}catch{return}return t}}function cNe(t,e,n){t&&(da(t,sue,lNe(n)),da(t,iue,e))}function cS(t){const e=t;return{scope:e[iue],isolationScope:uNe(e[sue])}}const I7="sentry-",dNe=/^sentry-/,fNe=8192;function aue(t){const e=pNe(t);if(!e)return;const n=Object.entries(e).reduce((r,[i,s])=>{if(i.match(dNe)){const a=i.slice(I7.length);r[a]=s}return r},{});if(Object.keys(n).length>0)return n}function hNe(t){if(!t)return;const e=Object.entries(t).reduce((n,[r,i])=>(i&&(n[`${I7}${r}`]=i),n),{});return mNe(e)}function pNe(t){if(!(!t||!Sc(t)&&!Array.isArray(t)))return Array.isArray(t)?t.reduce((e,n)=>{const r=Qq(n);return Object.entries(r).forEach(([i,s])=>{e[i]=s}),e},{}):Qq(t)}function Qq(t){return t.split(",").map(e=>{const n=e.indexOf("=");if(n===-1)return[];const r=e.slice(0,n),i=e.slice(n+1);return[r,i].map(s=>{try{return decodeURIComponent(s.trim())}catch{return}})}).reduce((e,[n,r])=>(n&&r&&(e[n]=r),e),{})}function mNe(t){if(Object.keys(t).length!==0)return Object.entries(t).reduce((e,[n,r],i)=>{const s=`${encodeURIComponent(n)}=${encodeURIComponent(r)}`,a=i===0?s:`${e},${s}`;return a.length>fNe?(Et&&et.warn(`Not adding key: ${n} with val: ${r} to baggage header due to exceeding baggage size limits.`),e):a},"")}const gNe=/^o(\d+)\./,yNe=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)((?:\[[:.%\w]+\]|[\w.-]+))(?::(\d+))?\/(.+)/;function bNe(t){return t==="http"||t==="https"}function A0(t,e=!1){const{host:n,path:r,pass:i,port:s,projectId:a,protocol:o,publicKey:l}=t;return`${o}://${l}${e&&i?`:${i}`:""}@${n}${s?`:${s}`:""}/${r&&`${r}/`}${a}`}function vNe(t){const e=yNe.exec(t);if(!e){x0(()=>{console.error(`Invalid Sentry Dsn: ${t}`)});return}const[n,r,i="",s="",a="",o=""]=e.slice(1);let l="",u=o;const c=u.split("/");if(c.length>1&&(l=c.slice(0,-1).join("/"),u=c.pop()),u){const d=u.match(/^\d+/);
16d&&(u=d[0])}return oue({host:s,pass:i,path:l,projectId:u,port:a,protocol:n,publicKey:r})}function oue(t){return{protocol:t.protocol,publicKey:t.publicKey||"",pass:t.pass||"",host:t.host,port:t.port||"",path:t.path||"",projectId:t.projectId}}function ENe(t){if(!Et)return!0;const{port:e,projectId:n,protocol:r}=t;return["protocol","publicKey","host","projectId"].find(a=>t[a]?!1:(et.error(`Invalid Sentry Dsn: ${a} missing`),!0))?!1:n.match(/^\d+$/)?bNe(r)?e&&isNaN(parseInt(e,10))?(et.error(`Invalid Sentry Dsn: Invalid port ${e}`),!1):!0:(et.error(`Invalid Sentry Dsn: Invalid protocol ${r}`),!1):(et.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),!1)}function _Ne(t){return t.match(gNe)?.[1]}function xNe(t){const e=t.getOptions(),{host:n}=t.getDsn()||{};let r;return e.orgId?r=String(e.orgId):n&&(r=_Ne(n)),r}function wNe(t){const e=typeof t=="string"?vNe(t):oue(t);if(!(!e||!ENe(e)))return e}function zb(t){if(typeof t=="boolean")return Number(t);const e=typeof t=="string"?parseFloat(t):t;if(!(typeof e!="number"||isNaN(e)||e<0||e>1))return e}const lue=new RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function SNe(t){if(!t)return;const e=t.match(lue);if(!e)return;let n;return e[3]==="1"?n=!0:e[3]==="0"&&(n=!1),{traceId:e[1],parentSampled:n,parentSpanId:e[2]}}function CNe(t,e){const n=SNe(t),r=aue(e);if(!n?.traceId)return{traceId:Oc(),sampleRand:Gd()};const i=TNe(n,r);r&&(r.sample_rand=i.toString());const{traceId:s,parentSpanId:a,parentSampled:o}=n;return{traceId:s,parentSpanId:a,sampled:o,dsc:r||{},sampleRand:i}}function uue(t=Oc(),e=Cc(),n){let r="";return n!==void 0&&(r=n?"-1":"-0"),`${t}-${e}${r}`}function cue(t=Oc(),e=Cc(),n){return`00-${t}-${e}-${n?"01":"00"}`}function TNe(t,e){const n=zb(e?.sample_rand);if(n!==void 0)return n;const r=zb(e?.sample_rate);return r&&t?.parentSampled!==void 0?t.parentSampled?Gd()*r:r+Gd()*(1-r):Gd()}const due=0,M7=1;let Zq=!1;function ANe(t){const{spanId:e,traceId:n}=t.spanContext(),{data:r,op:i,parent_span_id:s,status:a,origin:o,links:l}=Ln(t);return{parent_span_id:s,span_id:e,trace_id:n,data:r,op:i,status:a,origin:o,links:l}}function RNe(t){const{spanId:e,traceId:n,isRemote:r}=t.spanContext(),i=r?e:Ln(t).parent_span_id,s=cS(t).scope,a=r?s?.getPropagationContext().propagationSpanId||Cc():e;return{parent_span_id:i,span_id:a,trace_id:n}}function NNe(t){const{traceId:e,spanId:n}=t.spanContext(),r=gf(t);return uue(e,n,r)}function ONe(t){const{traceId:e,spanId:n}=t.spanContext(),r=gf(t);return cue(e,n,r)}function fue(t){if(t&&t.length>0)return t.map(({context:{spanId:e,traceId:n,traceFlags:r,...i},attributes:s})=>({span_id:e,trace_id:n,sampled:r===M7,attributes:s,...i}))}function Ah(t){return typeof t=="number"?Jq(t):Array.isArray(t)?t[0]+t[1]/1e9:t instanceof Date?Jq(t.getTime()):ji()}function Jq(t){return t>9999999999?t/1e3:t}function Ln(t){if(INe(t))return t.getSpanJSON();const{spanId:e,traceId:n}=t.spanContext();if(kNe(t)){const{attributes:r,startTime:i,name:s,endTime:a,status:o,links:l}=t,u="parentSpanId"in t?t.parentSpanId:"parentSpanContext"in t?t.parentSpanContext?.spanId:void 0;return{span_id:e,trace_id:n,data:r,description:s,parent_span_id:u,start_timestamp:Ah(i),timestamp:Ah(a)||void 0,status:hue(o),op:r[kc],origin:r[Ii],links:fue(l)}}return{span_id:e,trace_id:n,start_timestamp:0,data:{}}}function kNe(t){const e=t;return!!e.attributes&&!!e.startTime&&!!e.name&&!!e.endTime&&!!e.status}function INe(t){return typeof t.getSpanJSON=="function"}function gf(t){const{traceFlags:e}=t.spanContext();return e===M7}function hue(t){if(!(!t||t.code===aNe))return t.code===k7?"ok":t.message||"internal_error"}const Rh="_sentryChildSpans",ED="_sentryRootSpan";function pue(t,e){const n=t[ED]||t;da(e,ED,n),t[Rh]?t[Rh].add(e):da(t,Rh,new Set([e]))}function MNe(t,e){t[Rh]&&t[Rh].delete(e)}function mw(t){const e=new Set;function n(r){if(!e.has(r)&&gf(r)){e.add(r);const i=r[Rh]?Array.from(r[Rh]):[];for(const s of i)n(s)}}return n(t),Array.from(e)}function Ds(t){return t[ED]||t}function Qa(){const t=Sp(),e=C0(t);return e.getActiveSpan?e.getActiveSpan():uS(Xn())}function _D(){Zq||(x0(()=>{console.warn("[Sentry] Returning null from `beforeSendSpan` is disallowed. To drop certain spans, configure the respective integrations directly or use `ignoreSpans`.")}),Zq=!0)}let eG=!1;function DNe(){if(eG)return;function t(){const e=Qa(),n=e&&Ds(e);if(n){const r="internal_error";Et&&et.log(`[Tracing] Root span: ${r} -> Global error occurred`),n.setStatus({code:Ci,message:r})}}t.tag="sentry_tracingErrorCallback",eG=!0,Gle(t),Wle(t)}function il(t){if(typeof __SENTRY_TRACING__=="boolean"&&!__SENTRY_TRACING__)return!1;const e=t||zn()?.getOptions();return!!e&&(e.tracesSampleRate!=null||!!e.tracesSampler)}function tG(t){et.log(`Ignoring span ${t.op} - ${t.description} because it matches \`ignoreSpans\`.`)}function dS(t,e){if(!e?.length||!t.description)return!1;for(const n of e){if(LNe(n)){if(pw(t.description,n))return Et&&tG(t),!0;continue}if(!n.name&&!n.op)continue;
vendor: 6,804 bytes, lines 16-18
16const r=n.name?pw(t.description,n.name):!0,i=n.op?t.op&&pw(t.op,n.op):!0;if(r&&i)return Et&&tG(t),!0}return!1}function PNe(t,e){const n=e.parent_span_id,r=e.span_id;if(n)for(const i of t)i.parent_span_id===r&&(i.parent_span_id=n)}function LNe(t){return typeof t=="string"||t instanceof RegExp}const D7="production",mue="_frozenDsc";function gw(t,e){da(t,mue,e)}function gue(t,e){const n=e.getOptions(),{publicKey:r}=e.getDsn()||{},i={environment:n.environment||D7,release:n.release,public_key:r,trace_id:t,org_id:xNe(e)};return e.emit("createDsc",i),i}function yue(t,e){const n=e.getPropagationContext();return n.dsc||gue(n.traceId,t)}function Jd(t){const e=zn();if(!e)return{};const n=Ds(t),r=Ln(n),i=r.data,s=n.spanContext().traceState,a=s?.get("sentry.sample_rate")??i[N7]??i[nue];function o(g){return(typeof a=="number"||typeof a=="string")&&(g.sample_rate=`${a}`),g}const l=n[mue];if(l)return o(l);const u=s?.get("sentry.dsc"),c=u&&aue(u);if(c)return o(c);const d=gue(t.spanContext().traceId,e),h=i[Zl],m=r.description;return h!=="url"&&m&&(d.transaction=m),il()&&(d.sampled=String(gf(n)),d.sample_rand=s?.get("sentry.sample_rand")??cS(n).scope?.getPropagationContext().sampleRand.toString()),o(d),e.emit("createDsc",d,n),d}class ef{constructor(e={}){this._traceId=e.traceId||Oc(),this._spanId=e.spanId||Cc()}spanContext(){return{spanId:this._spanId,traceId:this._traceId,traceFlags:due}}end(e){}setAttribute(e,n){return this}setAttributes(e){return this}setStatus(e){return this}updateName(e){return this}isRecording(){return!1}addEvent(e,n,r){return this}addLink(e){return this}addLinks(e){return this}recordException(e,n){}}function uc(t,e=100,n=1/0){try{return xD("",t,e,n)}catch(r){return{ERROR:`**non-serializable** (${r})`}}}function bue(t,e=3,n=100*1024){const r=uc(t,e);return HNe(r)>n?bue(t,e-1,n):r}function xD(t,e,n=1/0,r=1/0,i=UNe()){const[s,a]=i;if(e==null||["boolean","string"].includes(typeof e)||typeof e=="number"&&Number.isFinite(e))return e;const o=$Ne(t,e);if(!o.startsWith("[object "))return o;if(e.__sentry_skip_normalization__)return e;const l=typeof e.__sentry_override_normalization_depth__=="number"?e.__sentry_override_normalization_depth__:n;if(l===0)return o.replace("object ","");if(s(e))return"[Circular ~]";const u=e;if(u&&typeof u.toJSON=="function")try{const m=u.toJSON();return xD("",m,l-1,r,i)}catch{}const c=Array.isArray(e)?[]:{};let d=0;const h=Jle(e);for(const m in h){if(!Object.prototype.hasOwnProperty.call(h,m))continue;if(d>=r){c[m]="[MaxProperties ~]";break}const g=h[m];c[m]=xD(m,g,l-1,r,i),d++}return a(e),c}function $Ne(t,e){try{if(t==="domain"&&e&&typeof e=="object"&&e._events)return"[Domain]";if(t==="domainEmitter")return"[DomainEmitter]";if(typeof global<"u"&&e===global)return"[Global]";if(typeof window<"u"&&e===window)return"[Window]";if(typeof document<"u"&&e===document)return"[Document]";if(Xle(e))return qle(e);if($Re(e))return"[SyntheticEvent]";if(typeof e=="number"&&!Number.isFinite(e))return`[${e}]`;if(typeof e=="function")return`[Function: ${Rc(e)}]`;if(typeof e=="symbol")return`[${String(e)}]`;if(typeof e=="bigint")return`[BigInt: ${String(e)}]`;const n=FNe(e);return/^HTML(\w*)Element$/.test(n)?`[HTMLElement: ${n}]`:`[object ${n}]`}catch(n){return`**non-serializable** (${n})`}}function FNe(t){const e=Object.getPrototypeOf(t);return e?.constructor?e.constructor.name:"null prototype"}function BNe(t){return~-encodeURI(t).split(/%..|./).length}function HNe(t){return BNe(JSON.stringify(t))}function UNe(){const t=new WeakSet;function e(r){return t.has(r)?!0:(t.add(r),!1)}function n(r){t.delete(r)}return[e,n]}function Tp(t,e=[]){return[t,e]}function jNe(t,e){const[n,r]=t;return[n,[...r,e]]}function wD(t,e){const n=t[1];for(const r of n){const i=r[0].type;if(e(r,i))return!0}return!1}function zNe(t,e){return wD(t,(n,r)=>e.includes(r))}function SD(t){const e=hT(Nn);return e.encodePolyfill?e.encodePolyfill(t):new TextEncoder().encode(t)}function VNe(t){const[e,n]=t;let r=JSON.stringify(e);function i(s){typeof r=="string"?r=typeof s=="string"?r+s:[SD(r),s]:r.push(typeof s=="string"?SD(s):s)}for(const s of n){const[a,o]=s;if(i(` 17${JSON.stringify(a)} 18`),typeof o=="string"||o instanceof Uint8Array)i(o);else{let l;try{l=JSON.stringify(o)}catch{l=JSON.stringify(uc(o))}i(l)}}return typeof r=="string"?r:qNe(r)}function qNe(t){const e=t.reduce((i,s)=>i+s.length,0),n=new Uint8Array(e);let r=0;for(const i of t)n.set(i,r),r+=i.length;return n}function GNe(t){return[{type:"span"},t]}function WNe(t){const e=typeof t.data=="string"?SD(t.data):t.data;return[{type:"attachment",length:e.length,filename:t.filename,content_type:t.contentType,attachment_type:t.attachmentType},e]}const YNe={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",profile_chunk:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",feedback:"feedback",span:"span",raw_security:"security",log:"log_item",metric:"metric",trace_metric:"metric"};function nG(t){return YNe[t]}function vue(t){if(!t?.sdk)return;const{name:e,version:n}=t.sdk;return{name:e,version:n}}function KNe(t,e,n,r){const i=t.sdkProcessingMetadata?.dynamicSamplingContext;return{event_id:t.event_id,sent_at:new Date().toISOString(),...e&&{sdk:e},...!!n&&r&&{dsn:A0(r)},...i&&{trace:i}}}function XNe(t,e){if(!e)return t;const n=t.sdk||{};return t.sdk={...n,name:n.name||e.name,version:n.version||e.version,integrations:[...t.sdk?.integrations||[],...e.integrations||[]],packages:[...t.sdk?.packages||[],...e.packages||[]],settings:t.sdk?.settings||e.settings?{...t.sdk?.settings,...e.settings}:void 0},t}function QNe(t,e,n,r){const i=vue(n),s={sent_at:new Date().toISOString(),...i&&{sdk:i},...!!r&&e&&{dsn:A0(e)}},a="aggregates"in t?[{type:"sessions"},t]:[{type:"session"},t.toJSON()];return Tp(s,[a])}function ZNe(t,e,n,r){const i=vue(n),s=t.type&&t.type!=="replay_event"?t.type:"event";XNe(t,n?.sdk);const a=KNe(t,i,r,e);return delete t.sdkProcessingMetadata,Tp(a,[[{type:s},t]])}function JNe(t,e){function n(m){return!!m.trace_id&&!!m.public_key}const r=Jd(t[0]),i=e?.getDsn(),s=e?.getOptions().tunnel,a={sent_at:new Date().toISOString(),...n(r)&&{trace:r},...!!s&&i&&{dsn:A0(i)}},{beforeSendSpan:o,ignoreSpans:l}=e?.getOptions()||{},u=l?.length?t.filter(m=>!dS(Ln(m),l)):t,c=t.length-u.length;c&&e?.recordDroppedEvent("before_send","span",c);const d=o?m=>{const g=Ln(m),b=o(g);return b||(_D(),g)}:Ln,h=[];for(const m of u){const g=d(m);g&&h.push(GNe(g))}return Tp(a,h)}function e4e(t){if(!Et)return;const{description:e="< unknown name >",op:n="< unknown op >",parent_span_id:r}=Ln(t),{spanId:i}=t.spanContext(),s=gf(t),a=Ds(t),o=a===t,l=`[Tracing] Starting ${s?"sampled":"unsampled"} ${o?"root ":""}span`,u=[`op: ${n}`,`name: ${e}`,`ID: ${i}`];
18if(r&&u.push(`parent ID: ${r}`),!o){const{op:c,description:d}=Ln(a);u.push(`root ID: ${a.spanContext().spanId}`),c&&u.push(`root op: ${c}`),d&&u.push(`root description: ${d}`)}et.log(`${l} 19 ${u.join(` 20 `)}`)}function t4e(t){if(!Et)return;const{description:e="< unknown name >",op:n="< unknown op >"}=Ln(t),{spanId:r}=t.spanContext(),s=Ds(t)===t,a=`[Tracing] Finishing "${n}" ${s?"root ":""}span "${e}" with ID ${r}`;et.log(a)}function n4e(t,e,n,r=Qa()){const i=r&&Ds(r);i&&(Et&&et.log(`[Measurement] Setting measurement on root span: ${t} = ${e} ${n}`),i.addEvent(t,{[c2]:e,[u2]:n}))}function rG(t){if(!t||t.length===0)return;const e={};return t.forEach(n=>{const r=n.attributes||{},i=r[u2],s=r[c2];typeof i=="string"&&typeof s=="number"&&(e[n.name]={value:s,unit:i})}),e}const iG=1e3;class yT{constructor(e={}){this._traceId=e.traceId||Oc(),this._spanId=e.spanId||Cc(),this._startTime=e.startTimestamp||ji(),this._links=e.links,this._attributes={},this.setAttributes({[Ii]:"manual",[kc]:e.op,...e.attributes}),this._name=e.name,e.parentSpanId&&(this._parentSpanId=e.parentSpanId),"sampled"in e&&(this._sampled=e.sampled),e.endTimestamp&&(this._endTime=e.endTimestamp),this._events=[],this._isStandaloneSpan=e.isStandalone,this._endTime&&this._onSpanEnded()}addLink(e){return this._links?this._links.push(e):this._links=[e],this}addLinks(e){return this._links?this._links.push(...e):this._links=e,this}recordException(e,n){}spanContext(){const{_spanId:e,_traceId:n,_sampled:r}=this;return{spanId:e,traceId:n,traceFlags:r?M7:due}}setAttribute(e,n){return n===void 0?delete this._attributes[e]:this._attributes[e]=n,this}setAttributes(e){return Object.keys(e).forEach(n=>this.setAttribute(n,e[n])),this}updateStartTime(e){this._startTime=Ah(e)}setStatus(e){return this._status=e,this}updateName(e){return this._name=e,this.setAttribute(Zl,"custom"),this}end(e){this._endTime||(this._endTime=Ah(e),t4e(this),this._onSpanEnded())}getSpanJSON(){return{data:this._attributes,description:this._name,op:this._attributes[kc],parent_span_id:this._parentSpanId,span_id:this._spanId,start_timestamp:this._startTime,status:hue(this._status),timestamp:this._endTime,trace_id:this._traceId,origin:this._attributes[Ii],profile_id:this._attributes[O7],exclusive_time:this._attributes[T0],measurements:rG(this._events),is_segment:this._isStandaloneSpan&&Ds(this)===this||void 0,segment_id:this._isStandaloneSpan?Ds(this).spanContext().spanId:void 0,links:fue(this._links)}}isRecording(){return!this._endTime&&!!this._sampled}addEvent(e,n,r){Et&&et.log("[Tracing] Adding an event to span:",e);const i=sG(n)?n:r||ji(),s=sG(n)?{}:n||{},a={name:e,time:Ah(i),attributes:s};return this._events.push(a),this}isStandaloneSpan(){return!!this._isStandaloneSpan}_onSpanEnded(){const e=zn();if(e&&e.emit("spanEnd",this),!(this._isStandaloneSpan||this===Ds(this)))return;if(this._isStandaloneSpan){this._sampled?i4e(JNe([this],e)):(Et&&et.log("[Tracing] Discarding standalone span because its trace was not chosen to be sampled."),e&&e.recordDroppedEvent("sample_rate","span"));return}const r=this._convertSpanToTransaction();r&&(cS(this).scope||Xn()).captureEvent(r)}_convertSpanToTransaction(){if(!aG(Ln(this)))return;this._name||(Et&&et.warn("Transaction has no name, falling back to `<unlabeled transaction>`."),this._name="<unlabeled transaction>");const{scope:e,isolationScope:n}=cS(this),r=e?.getScopeData().sdkProcessingMetadata?.normalizedRequest;if(this._sampled!==!0)return;const s=mw(this).filter(c=>c!==this&&!r4e(c)).map(c=>Ln(c)).filter(aG),a=this._attributes[Zl];delete this._attributes[Xq],s.forEach(c=>{delete c.data[Xq]});const o={contexts:{trace:ANe(this)},spans:s.length>iG?s.sort((c,d)=>c.start_timestamp-d.start_timestamp).slice(0,iG):s,start_timestamp:this._startTime,timestamp:this._endTime,transaction:this._name,type:"transaction",sdkProcessingMetadata:{capturedSpanScope:e,capturedSpanIsolationScope:n,dynamicSamplingContext:Jd(this)},request:r,...a&&{transaction_info:{source:a}}},l=rG(this._events);return l&&Object.keys(l).length&&(Et&&et.log("[Measurements] Adding measurements to transaction event",JSON.stringify(l,void 0,2)),o.measurements=l),o}}function sG(t){return t&&typeof t=="number"||t instanceof Date||Array.isArray(t)}function aG(t){return!!t.start_timestamp&&!!t.timestamp&&!!t.span_id&&!!t.trace_id}function r4e(t){return t instanceof yT&&t.isStandaloneSpan()}function i4e(t){const e=zn();if(!e)return;const n=t[1];if(!n||n.length===0){e.recordDroppedEvent("before_send","span");return}e.sendEnvelope(t)}function s4e(t,e,n=()=>{},r=()=>{}){let i;try{i=t()}catch(s){throw e(s),n(),s}return a4e(i,e,n,r)}function a4e(t,e,n,r){return S0(t)?t.then(i=>(n(),r(i),i),i=>{throw e(i),n(),i}):(n(),r(t),t)}function o4e(t,e,n){if(!il(t))return[!1];let r,i;typeof t.tracesSampler=="function"?(i=t.tracesSampler({...e,inheritOrSampleWith:o=>typeof e.parentSampleRate=="number"?e.parentSampleRate:typeof e.parentSampled=="boolean"?Number(e.parentSampled):o}),r=!0):e.parentSampled!==void 0?i=e.parentSampled:typeof t.tracesSampleRate<"u"&&(i=t.tracesSampleRate,r=!0);const s=zb(i);if(s===void 0)return Et&&et.warn(`[Tracing] Discarding root span because of invalid sample rate. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(i)} of type ${JSON.stringify(typeof i)}.`),[!1];if(!s)return Et&&et.log(`[Tracing] Discarding transaction because ${typeof t.tracesSampler=="function"?"tracesSampler returned 0 or false":"a negative sampling decision was inherited or tracesSampleRate is set to 0"}`),[!1,s,r];const a=n<s;return a||Et&&et.log(`[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = ${Number(i)})`),[a,s,r]}const Eue="__SENTRY_SUPPRESS_TRACING__";function l4e(t,e){const n=L7();if(n.startSpan)return n.startSpan(t,e);const r=xue(t),{forceTransaction:i,parentSpan:s,scope:a}=t,o=a?.clone();return gT(o,()=>c4e(s)(()=>{const u=Xn(),c=wue(u,s),h=t.onlyIfParent&&!c?new ef:_ue({parentSpan:c,spanArguments:r,forceTransaction:i,scope:u});return zg(u,h),s4e(()=>e(h),()=>{const{status:m}=Ln(h);h.isRecording()&&(!m||m==="ok")&&h.setStatus({code:Ci,message:"internal_error"})},()=>{h.end()})}))}function R0(t){const e=L7();if(e.startInactiveSpan)return e.startInactiveSpan(t);const n=xue(t),{forceTransaction:r,parentSpan:i}=t;return(t.scope?a=>gT(t.scope,a):i!==void 0?a=>P7(i,a):a=>a())(()=>{const a=Xn(),o=wue(a,i);return t.onlyIfParent&&!o?new ef:_ue({parentSpan:o,spanArguments:n,forceTransaction:r,scope:a})})}function P7(t,e){const n=L7();return n.withActiveSpan?n.withActiveSpan(t,e):gT(r=>(zg(r,t||void 0),e(r)))}function _ue({parentSpan:t,spanArguments:e,forceTransaction:n,scope:r}){if(!il()){const a=new ef;if(n||!t){const o={sampled:"false",sample_rate:"0",transaction:e.name,...Jd(a)};gw(a,o)}return a}const i=zc();let s;if(t&&!n)s=u4e(t,r,e),pue(t,s);else if(t){const a=Jd(t),{traceId:o,spanId:l}=t.spanContext(),u=gf(t);s=oG({traceId:o,parentSpanId:l,...e},r,u),gw(s,a)}else{const{traceId:a,dsc:o,parentSpanId:l,sampled:u}={...i.getPropagationContext(),...r.getPropagationContext()};s=oG({traceId:a,parentSpanId:l,...e},r,u),o&&gw(s,o)}return e4e(s),cNe(s,r,i),s}function xue(t){const n={isStandalone:(t.experimental||{}).standalone,...t};if(t.startTime){const r={...n};return r.startTimestamp=Ah(t.startTime),delete r.startTime,r}return n}function L7(){const t=Sp();return C0(t)}function oG(t,e,n){const r=zn(),i=r?.getOptions()||{},{name:s=""}=t,a={spanAttributes:{...t.attributes},spanName:s,parentSampled:n};r?.emit("beforeSampling",a,{decision:!1});const o=a.parentSampled??n,l=a.spanAttributes,u=e.getPropagationContext(),[c,d,h]=e.getScopeData().sdkProcessingMetadata[Eue]?[!1]:o4e(i,{name:s,parentSampled:o,attributes:l,parentSampleRate:zb(u.dsc?.sample_rate)},u.sampleRand),m=new yT({...t,attributes:{[Zl]:"custom",[N7]:d!==void 0&&h?d:void 0,...l},sampled:c});return!c&&r&&(Et&&et.log("[Tracing] Discarding root span because its trace was not chosen to be sampled."),r.recordDroppedEvent("sample_rate","transaction")),r&&r.emit("spanStart",m),m}function u4e(t,e,n){const{spanId:r,traceId:i}=t.spanContext(),s=e.getScopeData().sdkProcessingMetadata[Eue]?!1:gf(t),a=s?new yT({...n,parentSpanId:r,traceId:i,sampled:s}):new ef({traceId:i});pue(t,a);const o=zn();return o&&(o.emit("spanStart",a),n.endTimestamp&&o.emit("spanEnd",a)),a}function wue(t,e){if(e)return e;if(e===null)return;const n=uS(t);if(!n)return;const r=zn();return(r?r.getOptions():{}).parentSpanIsAlwaysRootSpan?Ds(n):n}function c4e(t){return t!==void 0?e=>P7(t,e):e=>e()}const yw={idleTimeout:1e3,finalTimeout:3e4,childSpanTimeout:15e3},d4e="heartbeatFailed",f4e="idleTimeout",h4e="finalTimeout",p4e="externalFinish";function Sue(t,e={}){const n=new Map;let r=!1,i,s=p4e,a=!e.disableAutoFinish;const o=[],{idleTimeout:l=yw.idleTimeout,finalTimeout:u=yw.finalTimeout,childSpanTimeout:c=yw.childSpanTimeout,beforeSpanEnd:d,trimIdleSpanEndTimestamp:h=!0}=e,m=zn();if(!m||!il()){const T=new ef,O={sample_rate:"0",sampled:"false",...Jd(T)};return gw(T,O),T}const g=Xn(),b=Qa(),v=m4e(t);v.end=new Proxy(v.end,{apply(T,O,I){if(d&&d(v),O instanceof ef)return;const[D,...P]=I,B=D||ji(),L=Ah(B),$=mw(v).filter(V=>V!==v),q=Ln(v);if(!$.length||!h)return R(L),Reflect.apply(T,O,[L,...P]);const F=m.getOptions().ignoreSpans,G=$?.reduce((V,Y)=>{const Z=Ln(Y);return!Z.timestamp||F&&dS(Z,F)?V:V?Math.max(V,Z.timestamp):Z.timestamp},void 0),H=q.start_timestamp,K=Math.min(H?H+u/1e3:1/0,Math.max(H||-1/0,Math.min(L,G||1/0)));return R(K),Reflect.apply(T,O,[K,...P])}});
20function E(){i&&(clearTimeout(i),i=void 0)}function x(T){E(),i=setTimeout(()=>{!r&&n.size===0&&a&&(s=f4e,v.end(T))},l)}function _(T){i=setTimeout(()=>{!r&&a&&(s=d4e,v.end(T))},c)}function S(T){E(),n.set(T,!0);const O=ji();_(O+c/1e3)}function A(T){if(n.has(T)&&n.delete(T),n.size===0){const O=ji();x(O+l/1e3)}}function R(T){r=!0,n.clear(),o.forEach($=>$()),zg(g,b);const O=Ln(v),{start_timestamp:I}=O;if(!I)return;O.data[jb]||v.setAttribute(jb,s);const P=O.status;(!P||P==="unknown")&&v.setStatus({code:k7}),et.log(`[Tracing] Idle span "${O.op}" finished`);const B=mw(v).filter($=>$!==v);let L=0;B.forEach($=>{$.isRecording()&&($.setStatus({code:Ci,message:"cancelled"}),$.end(T),Et&&et.log("[Tracing] Cancelling span since span ended early",JSON.stringify($,void 0,2)));const q=Ln($),{timestamp:F=0,start_timestamp:G=0}=q,H=G<=T,K=(u+l)/1e3,V=F-G<=K;if(Et){const Y=JSON.stringify($,void 0,2);H?V||et.log("[Tracing] Discarding span since it finished after idle span final timeout",Y):et.log("[Tracing] Discarding span since it happened after idle span was finished",Y)}(!V||!H)&&(MNe(v,$),L++)}),L>0&&v.setAttribute("sentry.idle_span_discarded_spans",L)}return o.push(m.on("spanStart",T=>{if(r||T===v||Ln(T).timestamp||T instanceof yT&&T.isStandaloneSpan())return;mw(v).includes(T)&&S(T.spanContext().spanId)})),o.push(m.on("spanEnd",T=>{r||A(T.spanContext().spanId)})),o.push(m.on("idleSpanEnableAutoFinish",T=>{T===v&&(a=!0,x(),n.size&&_())})),e.disableAutoFinish||x(),setTimeout(()=>{r||(v.setStatus({code:Ci,message:"deadline_exceeded"}),s=h4e,v.end())},u),v}function m4e(t){const e=R0(t);return zg(Xn(),e),Et&&et.log("[Tracing] Started span is an idle span"),e}const vN=0,lG=1,uG=2;function bT(t){return new Vb(e=>{e(t)})}function $7(t){return new Vb((e,n)=>{n(t)})}class Vb{constructor(e){this._state=vN,this._handlers=[],this._runExecutor(e)}then(e,n){return new Vb((r,i)=>{this._handlers.push([!1,s=>{if(!e)r(s);else try{r(e(s))}catch(a){i(a)}},s=>{if(!n)i(s);else try{r(n(s))}catch(a){i(a)}}]),this._executeHandlers()})}catch(e){return this.then(n=>n,e)}finally(e){return new Vb((n,r)=>{let i,s;return this.then(a=>{s=!1,i=a,e&&e()},a=>{s=!0,i=a,e&&e()}).then(()=>{if(s){r(i);return}n(i)})})}_executeHandlers(){if(this._state===vN)return;const e=this._handlers.slice();this._handlers=[],e.forEach(n=>{n[0]||(this._state===lG&&n[1](this._value),this._state===uG&&n[2](this._value),n[0]=!0)})}_runExecutor(e){const n=(s,a)=>{if(this._state===vN){if(S0(a)){a.then(r,i);return}this._state=s,this._value=a,this._executeHandlers()}},r=s=>{n(lG,s)},i=s=>{n(uG,s)};try{e(r,i)}catch(s){i(s)}}}function g4e(t,e,n,r=0){try{const i=CD(e,n,t,r);return S0(i)?i:bT(i)}catch(i){return $7(i)}}function CD(t,e,n,r){const i=n[r];if(!t||!i)return t;const s=i({...t},e);return Et&&s===null&&et.log(`Event processor "${i.id||"?"}" dropped event`),S0(s)?s.then(a=>CD(a,e,n,r+1)):CD(s,e,n,r+1)}let Qf,cG,dG,xd;function y4e(t){const e=Nn._sentryDebugIds,n=Nn._debugIds;if(!e&&!n)return{};const r=e?Object.keys(e):[],i=n?Object.keys(n):[];if(xd&&r.length===cG&&i.length===dG)return xd;cG=r.length,dG=i.length,xd={},Qf||(Qf={});const s=(a,o)=>{for(const l of a){const u=o[l],c=Qf?.[l];if(c&&xd&&u)xd[c[0]]=u,Qf&&(Qf[l]=[c[0],u]);else if(u){const d=t(l);for(let h=d.length-1;h>=0;h--){const g=d[h]?.filename;if(g&&xd&&Qf){xd[g]=u,Qf[l]=[g,u];break}}}}};return e&&s(r,e),n&&s(i,n),xd}function b4e(t,e){const{fingerprint:n,span:r,breadcrumbs:i,sdkProcessingMetadata:s}=e;E4e(t,e),r&&w4e(t,r),S4e(t,n),_4e(t,i),x4e(t,s)}function fG(t,e){const{extra:n,tags:r,attributes:i,user:s,contexts:a,level:o,sdkProcessingMetadata:l,breadcrumbs:u,fingerprint:c,eventProcessors:d,attachments:h,propagationContext:m,transactionName:g,span:b}=e;ay(t,"extra",n),ay(t,"tags",r),ay(t,"attributes",i),ay(t,"user",s),ay(t,"contexts",a),t.sdkProcessingMetadata=l2(t.sdkProcessingMetadata,l,2),o&&(t.level=o),g&&(t.transactionName=g),b&&(t.span=b),u.length&&(t.breadcrumbs=[...t.breadcrumbs,...u]),c.length&&(t.fingerprint=[...t.fingerprint,...c]),d.length&&(t.eventProcessors=[...t.eventProcessors,...d]),h.length&&(t.attachments=[...t.attachments,...h]
vendor: 4,975 bytes, line 20
20),t.propagationContext={...t.propagationContext,...m}}function ay(t,e,n){t[e]=l2(t[e],n,1)}function v4e(t,e){const n=nNe().getScopeData();return t&&fG(n,t.getScopeData()),e&&fG(n,e.getScopeData()),n}function E4e(t,e){const{extra:n,tags:r,user:i,contexts:s,level:a,transactionName:o}=e;Object.keys(n).length&&(t.extra={...n,...t.extra}),Object.keys(r).length&&(t.tags={...r,...t.tags}),Object.keys(i).length&&(t.user={...i,...t.user}),Object.keys(s).length&&(t.contexts={...s,...t.contexts}),a&&(t.level=a),o&&t.type!=="transaction"&&(t.transaction=o)}function _4e(t,e){const n=[...t.breadcrumbs||[],...e];t.breadcrumbs=n.length?n:void 0}function x4e(t,e){t.sdkProcessingMetadata={...t.sdkProcessingMetadata,...e}}function w4e(t,e){t.contexts={trace:RNe(e),...t.contexts},t.sdkProcessingMetadata={dynamicSamplingContext:Jd(e),...t.sdkProcessingMetadata};const n=Ds(e),r=Ln(n).description;r&&!t.transaction&&t.type==="transaction"&&(t.transaction=r)}function S4e(t,e){t.fingerprint=t.fingerprint?Array.isArray(t.fingerprint)?t.fingerprint:[t.fingerprint]:[],e&&(t.fingerprint=t.fingerprint.concat(e)),t.fingerprint.length||delete t.fingerprint}function C4e(t,e,n,r,i,s){const{normalizeDepth:a=3,normalizeMaxBreadth:o=1e3}=t,l={...e,event_id:e.event_id||n.event_id||xo(),timestamp:e.timestamp||Cp()},u=n.integrations||t.integrations.map(v=>v.name);T4e(l,t),N4e(l,u),i&&i.emit("applyFrameMetadata",e),e.type===void 0&&A4e(l,t.stackParser);const c=k4e(r,n.captureContext);n.mechanism&&Ug(l,n.mechanism);const d=i?i.getEventProcessors():[],h=v4e(s,c),m=[...n.attachments||[],...h.attachments];m.length&&(n.attachments=m),b4e(l,h);const g=[...d,...h.eventProcessors];return g4e(g,l,n).then(v=>(v&&R4e(v),typeof a=="number"&&a>0?O4e(v,a,o):v))}function T4e(t,e){const{environment:n,release:r,dist:i,maxValueLength:s}=e;t.environment=t.environment||n||D7,!t.release&&r&&(t.release=r),!t.dist&&i&&(t.dist=i);const a=t.request;a?.url&&s&&(a.url=yD(a.url,s)),s&&t.exception?.values?.forEach(o=>{o.value&&(o.value=yD(o.value,s))})}function A4e(t,e){const n=y4e(e);t.exception?.values?.forEach(r=>{r.stacktrace?.frames?.forEach(i=>{i.filename&&(i.debug_id=n[i.filename])})})}function R4e(t){const e={};if(t.exception?.values?.forEach(r=>{r.stacktrace?.frames?.forEach(i=>{i.debug_id&&(i.abs_path?e[i.abs_path]=i.debug_id:i.filename&&(e[i.filename]=i.debug_id),delete i.debug_id)})}),Object.keys(e).length===0)return;t.debug_meta=t.debug_meta||{},t.debug_meta.images=t.debug_meta.images||[];const n=t.debug_meta.images;Object.entries(e).forEach(([r,i])=>{n.push({type:"sourcemap",code_file:r,debug_id:i})})}function N4e(t,e){e.length>0&&(t.sdk=t.sdk||{},t.sdk.integrations=[...t.sdk.integrations||[],...e])}function O4e(t,e,n){if(!t)return null;const r={...t,...t.breadcrumbs&&{breadcrumbs:t.breadcrumbs.map(i=>({...i,...i.data&&{data:uc(i.data,e,n)}}))},...t.user&&{user:uc(t.user,e,n)},...t.contexts&&{contexts:uc(t.contexts,e,n)},...t.extra&&{extra:uc(t.extra,e,n)}};return t.contexts?.trace&&r.contexts&&(r.contexts.trace=t.contexts.trace,t.contexts.trace.data&&(r.contexts.trace.data=uc(t.contexts.trace.data,e,n))),t.spans&&(r.spans=t.spans.map(i=>({...i,...i.data&&{data:uc(i.data,e,n)}}))),t.contexts?.flags&&r.contexts&&(r.contexts.flags=uc(t.contexts.flags,3,n)),r}function k4e(t,e){if(!e)return t;const n=t?t.clone():new fu;return n.update(e),n}function I4e(t){if(t)return M4e(t)?{captureContext:t}:P4e(t)?{captureContext:t}:t}function M4e(t){return t instanceof fu||typeof t=="function"}const D4e=["user","level","extra","contexts","tags","fingerprint","propagationContext"];function P4e(t){return Object.keys(t).some(e=>D4e.includes(e))}function L4e(t,e){return Xn().captureException(t,I4e(e))}function Cue(t,e){return Xn().captureEvent(t,e)}function $4e(t,e){zc().setContext(t,e)}function F4e(){const t=zn();return t?.getOptions().enabled!==!1&&!!t?.getTransport()}function hG(t){const e=zc(),n=Xn(),{userAgent:r}=Nn.navigator||{},i=GRe({user:n.getUser()||e.getUser(),...r&&{userAgent:r},...t}),s=e.getSession();return s?.status==="ok"&&jg(s,{status:"exited"}),Tue(),e.setSession(i),i}function Tue(){const t=zc(),n=Xn().getSession()||t.getSession();n&&WRe(n),Aue(),t.setSession()}function Aue(){const t=zc(),e=zn(),n=t.getSession();n&&e&&e.captureSession(n)}function pG(t=!1){if(t){Tue();return}Aue()}const B4e="7";function H4e(t){const e=t.protocol?`${t.protocol}:`:"",n=t.port?`:${t.port}`:"";return`${e}//${t.host}${n}${t.path?`/${t.path}`:""}/api/`}function U4e(t){return`${H4e(t)}${t.projectId}/envelope/`}function j4e(t,e){const n={sentry_version:B4e};return t.publicKey&&(n.sentry_key=t.publicKey),e&&(n.sentry_client=`${e.name}/${e.version}`),new URLSearchParams(n).toString()}function z4e(t,e,n){return e||`${U4e(t)}?${j4e(t,n)}`}const mG=[];function V4e(t){const e={};return t.forEach(n=>{const{name:r}=n,i=e[r];i&&!i.isDefaultInstance&&n.isDefaultInstance||(e[r]=n)}),Object.values(e)}function q4e(t){const e=t.defaultIntegrations||[],n=t.integrations;e.forEach(i=>
vendor: 10,107 bytes, line 20
20{i.isDefaultInstance=!0});let r;if(Array.isArray(n))r=[...e,...n];else if(typeof n=="function"){const i=n(e);r=Array.isArray(i)?i:[i]}else r=e;return V4e(r)}function G4e(t,e){const n={};return e.forEach(r=>{r&&Rue(t,r,n)}),n}function gG(t,e){for(const n of e)n?.afterAllSetup&&n.afterAllSetup(t)}function Rue(t,e,n){if(n[e.name]){Et&&et.log(`Integration skipped because it was already installed: ${e.name}`);return}if(n[e.name]=e,!mG.includes(e.name)&&typeof e.setupOnce=="function"&&(e.setupOnce(),mG.push(e.name)),e.setup&&typeof e.setup=="function"&&e.setup(t),typeof e.preprocessEvent=="function"){const r=e.preprocessEvent.bind(e);t.on("preprocessEvent",(i,s)=>r(i,s,t))}if(typeof e.processEvent=="function"){const r=e.processEvent.bind(e),i=Object.assign((s,a)=>r(s,a,t),{id:e.name});t.addEventProcessor(i)}Et&&et.log(`Integration installed: ${e.name}`)}function W4e(t){return[{type:"log",item_count:t.length,content_type:"application/vnd.sentry.items.log+json"},{items:t}]}function Y4e(t,e,n,r){const i={};return e?.sdk&&(i.sdk={name:e.sdk.name,version:e.sdk.version}),n&&r&&(i.dsn=A0(r)),Tp(i,[W4e(t)])}function Nue(t,e){const n=e??K4e(t)??[];if(n.length===0)return;const r=t.getOptions(),i=Y4e(n,r._metadata,r.tunnel,t.getDsn());Oue().set(t,[]),t.emit("flushLogs"),t.sendEnvelope(i)}function K4e(t){return Oue().get(t)}function Oue(){return _0("clientToLogBufferMap",()=>new WeakMap)}function X4e(t){return[{type:"trace_metric",item_count:t.length,content_type:"application/vnd.sentry.items.trace-metric+json"},{items:t}]}function Q4e(t,e,n,r){const i={};return e?.sdk&&(i.sdk={name:e.sdk.name,version:e.sdk.version}),n&&r&&(i.dsn=A0(r)),Tp(i,[X4e(t)])}function kue(t,e){const n=e??Z4e(t)??[];if(n.length===0)return;const r=t.getOptions(),i=Q4e(n,r._metadata,r.tunnel,t.getDsn());Iue().set(t,[]),t.emit("flushMetrics"),t.sendEnvelope(i)}function Z4e(t){return Iue().get(t)}function Iue(){return _0("clientToMetricBufferMap",()=>new WeakMap)}const F7=Symbol.for("SentryBufferFullError");function B7(t=100){const e=new Set;function n(){return e.size<t}function r(a){e.delete(a)}function i(a){if(!n())return $7(F7);const o=a();return e.add(o),o.then(()=>r(o),()=>r(o)),o}function s(a){if(!e.size)return bT(!0);const o=Promise.allSettled(Array.from(e)).then(()=>!0);if(!a)return o;const l=[o,new Promise(u=>setTimeout(()=>u(!1),a))];return Promise.race(l)}return{get $(){return Array.from(e)},add:i,drain:s}}const J4e=60*1e3;function eOe(t,e=o2()){const n=parseInt(`${t}`,10);if(!isNaN(n))return n*1e3;const r=Date.parse(`${t}`);return isNaN(r)?J4e:r-e}function tOe(t,e){return t[e]||t.all||0}function nOe(t,e,n=o2()){return tOe(t,e)>n}function rOe(t,{statusCode:e,headers:n},r=o2()){const i={...t},s=n?.["x-sentry-rate-limits"],a=n?.["retry-after"];if(s)for(const o of s.trim().split(",")){const[l,u,,,c]=o.split(":",5),d=parseInt(l,10),h=(isNaN(d)?60:d)*1e3;if(!u)i.all=r+h;else for(const m of u.split(";"))m==="metric_bucket"?(!c||c.split(";").includes("custom"))&&(i[m]=r+h):i[m]=r+h}else a?i.all=r+eOe(a,r):e===429&&(i.all=r+60*1e3);return i}const Mue=64;function iOe(t,e,n=B7(t.bufferSize||Mue)){let r={};const i=a=>n.drain(a);function s(a){const o=[];if(wD(a,(d,h)=>{const m=nG(h);nOe(r,m)?t.recordDroppedEvent("ratelimit_backoff",m):o.push(d)}),o.length===0)return Promise.resolve({});const l=Tp(a[0],o),u=d=>{if(zNe(l,["client_report"])){Et&&et.warn(`Dropping client report. Will not send outcomes (reason: ${d}).`);return}wD(l,(h,m)=>{t.recordDroppedEvent(d,nG(m))})},c=()=>e({body:VNe(l)}).then(d=>(d.statusCode!==void 0&&(d.statusCode<200||d.statusCode>=300)&&Et&&et.warn(`Sentry responded with status code ${d.statusCode} to sent event.`),r=rOe(r,d),d),d=>{throw u("network_error"),Et&&et.error("Encountered error running transport request:",d),d});return n.add(c).then(d=>d,d=>{if(d===F7)return Et&&et.error("Skipped sending event because buffer is full."),u("queue_overflow"),Promise.resolve({});throw d})}return{send:s,flush:i}}function sOe(t,e,n){const r=[{type:"client_report"},{timestamp:Cp(),discarded_events:t}];return Tp(e?{dsn:e}:{},[r])}function Due(t){const e=[];t.message&&e.push(t.message);try{const n=t.exception.values[t.exception.values.length-1];n?.value&&(e.push(n.value),n.type&&e.push(`${n.type}: ${n.value}`))}catch{}return e}function aOe(t){const{trace_id:e,parent_span_id:n,span_id:r,status:i,origin:s,data:a,op:o}=t.contexts?.trace??{};return{data:a??{},description:t.transaction,op:o,parent_span_id:n,span_id:r??"",start_timestamp:t.start_timestamp??0,status:i,timestamp:t.timestamp,trace_id:e??"",origin:s,profile_id:a?.[O7],exclusive_time:a?.[T0],measurements:t.measurements,is_segment:!0}}function oOe(t){return{type:"transaction",timestamp:t.timestamp,start_timestamp:t.start_timestamp,transaction:t.description,contexts:{trace:{trace_id:t.trace_id,span_id:t.span_id,parent_span_id:t.parent_span_id,op:t.op,status:t.status,origin:t.origin,data:{...t.data,...t.profile_id&&{[O7]:t.profile_id},...t.exclusive_time&&{[T0]:t.exclusive_time}}}},measurements:t.measurements}}const yG="Not capturing exception because it's already been captured.",bG="Discarded session because of missing or non-string release",Pue=Symbol.for("SentryInternalError"),Lue=Symbol.for("SentryDoNotSendEventError"),lOe=5e3;function bw(t){return{message:t,[Pue]:!0}}function EN(t){return{message:t,[Lue]:!0}}function vG(t){return!!t&&typeof t=="object"&&Pue in t}function EG(t){return!!t&&typeof t=="object"&&Lue in t}function _G(t,e,n,r,i){let s=0,a,o=!1;t.on(n,()=>{s=0,clearTimeout(a),o=!1}),t.on(e,l=>{s+=r(l),s>=8e5?i(t):o||(o=!0,a=setTimeout(()=>{i(t)},lOe))}),t.on("flush",()=>{i(t)})}class uOe{constructor(e){if(this._options=e,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],this._promiseBuffer=B7(e.transportOptions?.bufferSize??Mue),e.dsn?this._dsn=wNe(e.dsn):Et&&et.warn("No DSN provided, client will not send events."),this._dsn){const r=z4e(this._dsn,e.tunnel,e._metadata?e._metadata.sdk:void 0);this._transport=e.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...e.transportOptions,url:r})}this._options.enableLogs=this._options.enableLogs??this._options._experiments?.enableLogs,this._options.enableLogs&&_G(this,"afterCaptureLog","flushLogs",hOe,Nue),(this._options.enableMetrics??this._options._experiments?.enableMetrics??!0)&&_G(this,"afterCaptureMetric","flushMetrics",fOe,kue)}captureException(e,n,r){const i=xo();if(Wq(e))return Et&&et.log(yG),i;const s={event_id:i,...n};return this._process(()=>this.eventFromException(e,s).then(a=>this._captureEvent(a,s,r)).then(a=>a),"error"),s.event_id}captureMessage(e,n,r,i){const s={event_id:xo(),...r},a=C7(e)?e:String(e),o=Hg(e),l=o?this.eventFromMessage(a,n,s):this.eventFromException(e,s);return this._process(()=>l.then(u=>this._captureEvent(u,s,i)),o?"unknown":"error"),s.event_id}captureEvent(e,n,r){const i=xo();if(n?.originalException&&Wq(n.originalException))return Et&&et.log(yG),i;const s={event_id:i,...n},a=e.sdkProcessingMetadata||{},o=a.capturedSpanScope,l=a.capturedSpanIsolationScope,u=xG(e.type);return this._process(()=>this._captureEvent(e,s,o||r,l),u),s.event_id}captureSession(e){this.sendSession(e),jg(e,{init:!1})}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}async flush(e){const n=this._transport;if(!n)return!0;this.emit("flush");const r=await this._isClientDoneProcessing(e),i=await n.flush(e);return r&&i}async close(e){const n=await this.flush(e);return this.getOptions().enabled=!1,this.emit("close"),n}getEventProcessors(){return this._eventProcessors}addEventProcessor(e){this._eventProcessors.push(e)}init(){(this._isEnabled()||this._options.integrations.some(({name:e})=>e.startsWith("Spotlight")))&&this._setupIntegrations()}getIntegrationByName(e){return this._integrations[e]}addIntegration(e){const n=this._integrations[e.name];Rue(this,e,this._integrations),n||gG(this,[e])}sendEvent(e,n={}){this.emit("beforeSendEvent",e,n);let r=ZNe(e,this._dsn,this._options._metadata,this._options.tunnel);for(const i of n.attachments||[])r=jNe(r,WNe(i));this.sendEnvelope(r).then(i=>this.emit("afterSendEvent",e,i))}sendSession(e){const{release:n,environment:r=D7}=this._options;if("aggregates"in e){const s=e.attrs||{};if(!s.release&&!n){Et&&et.warn(bG);return}s.release=s.release||n,s.environment=s.environment||r,e.attrs=s}else{if(!e.release&&!n){Et&&et.warn(bG);return}e.release=e.release||n,e.environment=e.environment||r}this.emit("beforeSendSession",e);const i=QNe(e,this._dsn,this._options._metadata,this._options.tunnel);this.sendEnvelope(i)}recordDroppedEvent(e,n,r=1){if(this._options.sendClientReports){const i=`${e}:${n}`;Et&&et.log(`Recording outcome: "${i}"${r>1?` (${r} times)`:""}`),this._outcomes[i]=(this._outcomes[i]||0)+r}}on(e,n){const r=this._hooks[e]=this._hooks[e]||new Set,i=(...s)=>n(...s);return r.add(i),()=>{r.delete(i)}}emit(e,...n){const r=this._hooks[e];r&&r.forEach(i=>i(...n))}async sendEnvelope(e){if(this.emit("beforeEnvelope",e),this._isEnabled()&&this._transport)try{return await this._transport.send(e)}catch(n){return Et&&et.error("Error while sending envelope:",n),{}}return Et&&et.error("Transport disabled"),{}}_setupIntegrations(){const{integrations:e}=this._options;this._integrations=G4e(this,e),gG(this,e)}_updateSessionFromEvent(e,n){let r=n.level==="fatal",i=!1;const s=n.exception?.values;if(s){i=!0,r=!1;for(const l of s)if(l.mechanism?.handled===!1){r=!0;break}}const a=e.status==="ok";(a&&e.errors===0||a&&r)&&(jg(e,{...r&&{status:"crashed"},errors:e.errors||Number(i||r)}),this.captureSession(e))}async _isClientDoneProcessing(e){let n=0;for(;!e||n<e;){if(await new Promise(r=>setTimeout(r,1)),!this._numProcessing)return!0;n++}return!1}_isEnabled(){return this.getOptions().enabled!==!1&&this._transport!==void 0}_prepareEvent(e,n,r,i){const s=this.getOptions(),a=Object.keys(this._integrations);return!n.integrations&&a?.length&&(n.integrations=a),this.emit("preprocessEvent",e,n),e.type||i.setLastEventId(e.event_id||n.event_id),C4e(s,e,
20n,r,this,i).then(o=>{if(o===null)return o;this.emit("postprocessEvent",o,n),o.contexts={trace:rNe(r),...o.contexts};const l=yue(this,r);return o.sdkProcessingMetadata={dynamicSamplingContext:l,...o.sdkProcessingMetadata},o})}_captureEvent(e,n={},r=Xn(),i=zc()){return Et&&TD(e)&&et.log(`Captured error event \`${Due(e)[0]||"<unknown>"}\``),this._processEvent(e,n,r,i).then(s=>s.event_id,s=>{Et&&(EG(s)?et.log(s.message):vG(s)?et.warn(s.message):et.warn(s))})}_processEvent(e,n,r,i){const s=this.getOptions(),{sampleRate:a}=s,o=$ue(e),l=TD(e),c=`before send for type \`${e.type||"error"}\``,d=typeof a>"u"?void 0:zb(a);if(l&&typeof d=="number"&&Gd()>d)return this.recordDroppedEvent("sample_rate","error"),$7(EN(`Discarding event because it's not included in the random sample (sampling rate = ${a})`));const h=xG(e.type);return this._prepareEvent(e,n,r,i).then(m=>{if(m===null)throw this.recordDroppedEvent("event_processor",h),EN("An event processor returned `null`, will not send event.");if(n.data&&n.data.__sentry__===!0)return m;const b=dOe(this,s,m,n);return cOe(b,c)}).then(m=>{if(m===null){if(this.recordDroppedEvent("before_send",h),o){const E=1+(e.spans||[]).length;this.recordDroppedEvent("before_send","span",E)}throw EN(`${c} returned \`null\`, will not send event.`)}const g=r.getSession()||i.getSession();if(l&&g&&this._updateSessionFromEvent(g,m),o){const v=m.sdkProcessingMetadata?.spanCountBeforeProcessing||0,E=m.spans?m.spans.length:0,x=v-E;x>0&&this.recordDroppedEvent("before_send","span",x)}const b=m.transaction_info;if(o&&b&&m.transaction!==e.transaction){const v="custom";m.transaction_info={...b,source:v}}return this.sendEvent(m,n),m}).then(null,m=>{throw EG(m)||vG(m)?m:(this.captureException(m,{mechanism:{handled:!1,type:"internal"},data:{__sentry__:!0},originalException:m}),bw(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event. 21Reason: ${m}`))})}_process(e,n){this._numProcessing++,this._promiseBuffer.add(e).then(r=>(this._numProcessing--,r),r=>(this._numProcessing--,r===F7&&this.recordDroppedEvent("queue_overflow",n),r))}_clearOutcomes(){const e=this._outcomes;return this._outcomes={},Object.entries(e).map(([n,r])=>{const[i,s]=n.split(":");return{reason:i,category:s,quantity:r}})}_flushOutcomes(){Et&&et.log("Flushing outcomes...");const e=this._clearOutcomes();if(e.length===0){Et&&et.log("No outcomes to send");return}if(!this._dsn){Et&&et.log("No dsn provided, will not send outcomes");return}Et&&et.log("Sending outcomes:",e);const n=sOe(e,this._options.tunnel&&A0(this._dsn));this.sendEnvelope(n)}}function xG(t){return t==="replay_event"?"replay":t||"error"}function cOe(t,e){const n=`${e} must return \`null\` or a valid event.`;if(S0(t))return t.then(r=>{if(!Ub(r)&&r!==null)throw bw(n);return r},r=>{throw bw(`${e} rejected with ${r}`)});if(!Ub(t)&&t!==null)throw bw(n);return t}function dOe(t,e,n,r){const{beforeSend:i,beforeSendTransaction:s,beforeSendSpan:a,ignoreSpans:o}=e;let l=n;if(TD(l)&&i)return i(l,r);if($ue(l)){if(a||o){const u=aOe(l);if(o?.length&&dS(u,o))return null;if(a){const c=a(u);c?l=l2(n,oOe(c)):_D()}if(l.spans){const c=[],d=l.spans;for(const m of d){if(o?.length&&dS(m,o)){PNe(d,m);continue}if(a){const g=a(m);g?c.push(g):(_D(),c.push(m))}else c.push(m)}const h=l.spans.length-c.length;h&&t.recordDroppedEvent("before_send","span",h),l.spans=c}}if(s){if(l.spans){const u=l.spans.length;l.sdkProcessingMetadata={...n.sdkProcessingMetadata,spanCountBeforeProcessing:u}}return s(l,r)}}return l}function TD(t){return t.type===void 0}function $ue(t){return t.type==="transaction"}function fOe(t){let e=0;return t.name&&(e+=t.name.length*2),e+=8,e+Fue(t.attributes)}function hOe(t){let e=0;return t.message&&(e+=t.message.length*2),e+Fue(t.attributes)}function Fue(t){if(!t)return 0;let e=0;return Object.values(t).forEach(n=>{Array.isArray(n)?e+=n.length*wG(n[0]):Hg(n)?e+=wG(n):e+=100}),e}function wG(t){return typeof t=="string"?t.length*2:typeof t=="number"?8:typeof t=="boolean"?4:0}function pOe(t){return pT(t)&&"__sentry_fetch_url_host__"in t&&typeof t.__sentry_fetch_url_host__=="string"}function SG(t){return pOe(t)?`${t.message} (${t.__sentry_fetch_url_host__})`:t.message}function mOe(t,e){e.debug===!0&&(Et?et.enable():x0(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})),Xn().update(e.initialScope);const r=new t(e);return gOe(r),r.init(),r}function gOe(t){Xn().setClient(t)}const yOe="thismessage:/";function Bue(t){return"isRelative"in t}function Hue(t,e){const n=t.indexOf("://")<=0&&t.indexOf("//")!==0,r=n?yOe:void 0;try{if("canParse"in URL&&!URL.canParse(t,r))return;const i=new URL(t,r);return n?{isRelative:n,pathname:i.pathname,search:i.search,hash:i.hash}:i}catch{}}function bOe(t){if(Bue(t))return t.pathname;const e=new URL(t);return e.search="",e.hash="",["80","443"].includes(e.port)&&(e.port=""),e.password&&(e.password="%filtered%"),e.username&&(e.username="%filtered%"),e.toString()}function Nh(t){if(!t)return{};const e=t.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!e)return{};const n=e[6]||"",r=e[8]||"";return{host:e[4],path:e[5],protocol:e[2],search:n,hash:r,relative:e[5]+n+r}}function vOe(t){return t.split(/[?#]/,1)[0]}function Yd(t,e=!0){if(t.startsWith("data:")){const n=t.match(/^data:([^;,]+)/),r=n?n[1]:"text/plain",i=t.includes(";base64,"),s=t.indexOf(",");let a="";if(e&&s!==-1){const o=t.slice(s+1);a=o.length>10?`${o.slice(0,10)}... [truncated]`:o}return`data:${r}${i?",base64":""}${a?`,${a}`:""}`}return t}function EOe(t){"aggregates"in t?t.attrs?.ip_address===void 0&&(t.attrs={...t.attrs,ip_address:"{{auto}}"}):t.ipAddress===void 0&&(t.ipAddress="{{auto}}")}function Uue(t,e,n=[e],r="npm"){const i=t._metadata||{};i.sdk||(i.sdk={name:`sentry.javascript.${e}`,packages:n.map(s=>({name:`${r}:@sentry/${s}`,version:Th})),version:Th}),t._metadata=i}function jue(t={}){const e=t.client||zn();if(!F4e()||!e)return{};const n=Sp(),r=C0(n);if(r.getTraceData)return r.getTraceData(t);const i=t.scope||Xn(),s=t.span||Qa(),a=s?NNe(s):_Oe(i),o=s?Jd(s):yue(e,i),l=hNe(o);if(!lue.test(a))return et.warn("Invalid sentry-trace data. Cannot generate trace data"),{};const c={"sentry-trace":a,baggage:l};return t.propagateTraceparent&&(c.traceparent=s?ONe(s):xOe(i)),c}function _Oe(t){const{traceId:e,sampled:n,propagationSpanId:r}=t.getPropagationContext();return uue(e,r,n)}function xOe(t){const{traceId:e,sampled:n,propagationSpanId:r}=t.getPropagationContext();return cue(e,r,n)}const wOe=100;function jh(t,e){const n=zn(),r=zc();if(!n)return;const{beforeBreadcrumb:i=null,maxBreadcrumbs:s=wOe}=n.getOptions();if(s<=0)return;const o={timestamp:Cp(),...t},l=i?x0(()=>i(o,e)):o;l!==null&&(n.emit&&n.emit("beforeAddBreadcrumb",l,e),r.addBreadcrumb(l,s))}let CG;const SOe="FunctionToString",TG=new WeakMap,COe=(()=>({name:SOe,setupOnce(){CG=Function.prototype.toString;try{Function.prototype.toString=function(...t){const e=R7(this),n=TG.has(zn())&&e!==void 0?e:this;return CG.apply(n,t)}}catch{}},setup(t){TG.set(t,!0)}})),TOe=COe,AOe=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/,/^Can't find variable: gmo$/,/^undefined is not an object \(evaluating 'a\.[A-Z]'\)$/,`can't redefine non-configurable property "solana"`,"vv().getRestrictions is not a function. (In 'vv().getRestrictions(1,a)', 'vv().getRestrictions' is undefined)","Can't find variable: _AutofillCallbackHandler",/^Non-Error promise rejection captured with value: Object Not Found Matching Id:\d+, MethodName:simulateEvent, ParamCount:\d+$/,/^Java exception was raised during method invocation$/],ROe="EventFilters",NOe=(t={})=>{let e;return{name:ROe,setup(n){const r=n.getOptions();e=AG(t,r)},processEvent(n,r,i){if(!e){const s=i.getOptions();e=AG(t,s)}return kOe(n,e)?null:n}}},OOe=((t={})=>({...NOe(t),name:"InboundFilters"}));function AG(t={},e={}){return{allowUrls:[...t.allowUrls||[],...e.allowUrls||[]],denyUrls:[...t.denyUrls||[],...e.denyUrls||[]],ignoreErrors:[...t.ignoreErrors||[],...e.ignoreErrors||[],...t.disableErrorDefaults?[]:AOe],ignoreTransactions:[...t.ignoreTransactions||[],...e.ignoreTransactions||[]]}}function kOe(t,e){if(t.type){if(t.type==="transaction"&&MOe(t,e.ignoreTransactions))return Et&&et.warn(`Event dropped due to being matched by \`ignoreTransactions\` option. 22Event: ${lh(t)}`),!0}else{if(IOe(t,e.ignoreErrors))return Et&&et.warn(`Event dropped due to being matched by \`ignoreErrors\` option. 23Event: ${lh(t)}`),!0;if($Oe(t))return Et&&et.warn(`Event dropped due to not having an error message, error type or stacktrace. 24Event: ${lh(t)}`),!0;if(DOe(t,e.denyUrls))return Et&&et.warn(`Event dropped due to being matched by \`denyUrls\` option. 25Event: ${lh(t)}. 26Url: ${fS(t)}`),!0;if(!POe(t,e.allowUrls))return Et&&et.warn(`Event dropped due to not being matched by \`allowUrls\` option. 27Event: ${lh(t)}. 28Url: ${fS(t)}`),!0}return!1}function IOe(t,e){return e?.length?Due(t).some(n=>Wd(n,e)):!1}function MOe(t,e){if(!e?.length)return!1;const n=t.transaction;return n?Wd(n,e):!1}function DOe(t,e){if(!e?.length)return!1;const n=fS(t);return n?Wd(n,e):!1}function POe(t,e){if(!e?.length)return!0;const n=fS(t);return n?Wd(n,e):!0}function LOe(t=[]){for(let e=t.length-1;e>=0;e--){const n=t[e];if(n&&n.filename!=="<anonymous>"&&n.filename!=="[native code]")return n.filename||null}return null}function fS(t){try{const n=[...t.exception?.values??[]].reverse().find(r=>r.mechanism?.parent_id===void 0&&r.stacktrace?.frames?.length)?.stacktrace?.frames;return n?LOe(n):null}catch{return Et&&et.error(`Cannot extract url for event ${lh(t)}`),null}}function $Oe(t){return t.exception?.values?.length?!t.message&&!t.exception.values.some(e=>e.stacktrace||e.type&&e.type!=="Error"||e.value):!1}function FOe(t,e,n,r,i,s){if(!i.exception?.values||!s||!Nc(s.originalException,Error))return;const a=i.exception.values.length>0?i.exception.values[i.exception.values.length-1]:void 0;a&&(i.exception.values=AD(t,e,r,s.originalException,n,i.exception.values,a,0))}function AD(t,e,n,r,i,s,a,o){if(s.length>=n+1)return s;let l=[...s];if(Nc(r[i],Error)){RG(a,o,r);const u=t(e,r[i]),c=l.length;NG(u,i,c,o),l=AD(t,e,n,r[i],i,[u,...l],u,c)}
28return zue(r)&&r.errors.forEach((u,c)=>{if(Nc(u,Error)){RG(a,o,r);const d=t(e,u),h=l.length;NG(d,`errors[${c}]`,h,o),l=AD(t,e,n,u,i,[d,...l],d,h)}}),l}function zue(t){return Array.isArray(t.errors)}function RG(t,e,n){t.mechanism={handled:!0,type:"auto.core.linked_errors",...zue(n)&&{is_exception_group:!0},...t.mechanism,exception_id:e}}function NG(t,e,n,r){t.mechanism={handled:!0,...t.mechanism,type:"chained",source:e,exception_id:n,parent_id:r}}function BOe(t){const e="console";pf(e,t),mf(e,HOe)}function HOe(){"console"in Nn&&wRe.forEach(function(t){t in Nn.console&&ja(Nn.console,t,function(e){return lS[t]=e,function(...n){_o("console",{args:n,level:t}),lS[t]?.apply(Nn.console,n)}})})}function UOe(t){return t==="warn"?"warning":["fatal","error","warning","log","info","debug"].includes(t)?t:"log"}const jOe="Dedupe",zOe=(()=>{let t;return{name:jOe,processEvent(e){if(e.type)return e;try{if(qOe(e,t))return Et&&et.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{}return t=e}}}),VOe=zOe;function qOe(t,e){return e?!!(GOe(t,e)||WOe(t,e)):!1}function GOe(t,e){const n=t.message,r=e.message;return!(!n&&!r||n&&!r||!n&&r||n!==r||!que(t,e)||!Vue(t,e))}function WOe(t,e){const n=OG(e),r=OG(t);return!(!n||!r||n.type!==r.type||n.value!==r.value||!que(t,e)||!Vue(t,e))}function Vue(t,e){let n=Uq(t),r=Uq(e);if(!n&&!r)return!0;if(n&&!r||!n&&r||(n=n,r=r,r.length!==n.length))return!1;for(let i=0;i<r.length;i++){const s=r[i],a=n[i];if(s.filename!==a.filename||s.lineno!==a.lineno||s.colno!==a.colno||s.function!==a.function)return!1}return!0}function que(t,e){let n=t.fingerprint,r=e.fingerprint;if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;n=n,r=r;try{return n.join("")===r.join("")}catch{return!1}}function OG(t){return t.exception?.values?.[0]}const YOe="ConversationId",KOe=(()=>({name:YOe,setup(t){t.on("spanStart",e=>{const n=Xn().getScopeData(),r=zc().getScopeData(),i=n.conversationId||r.conversationId;i&&e.setAttribute(sNe,i)})}})),XOe=KOe;function QOe(t,e,n,r,i){if(!t.fetchData)return;const{method:s,url:a}=t.fetchData,o=il()&&e(a);if(t.endTimestamp&&o){const m=t.fetchData.__span;if(!m)return;const g=r[m];g&&(e6e(g,t),ZOe(g,t,i),delete r[m]);return}const{spanOrigin:l="auto.http.browser",propagateTraceparent:u=!1}=typeof i=="object"?i:{spanOrigin:i},c=!!Qa(),d=o&&c?R0(n6e(a,s,l)):new ef;if(t.fetchData.__span=d.spanContext().spanId,r[d.spanContext().spanId]=d,n(t.fetchData.url)){const m=t.args[0],g={...t.args[1]||{}},b=JOe(m,g,il()&&c?d:void 0,u);b&&(t.args[1]=g,g.headers=b)}const h=zn();if(h){const m={input:t.args,response:t.response,startTimestamp:t.startTimestamp,endTimestamp:t.endTimestamp};h.emit("beforeOutgoingRequestSpan",d,m)}return d}function ZOe(t,e,n){(typeof n=="object"&&n!==null?n.onRequestSpanEnd:void 0)?.(t,{headers:e.response?.headers,error:e.error})}function JOe(t,e,n,r){const i=jue({span:n,propagateTraceparent:r}),s=i["sentry-trace"],a=i.baggage,o=i.traceparent;if(!s)return;const l=e.headers||(T7(t)?t.headers:void 0);if(l)if(t6e(l)){const u=new Headers(l);if(u.get("sentry-trace")||u.set("sentry-trace",s),r&&o&&!u.get("traceparent")&&u.set("traceparent",o),a){const c=u.get("baggage");c?X_(c)||u.set("baggage",`${c},${a}`):u.set("baggage",a)}return u}else if(Array.isArray(l)){const u=[...l];l.find(d=>d[0]==="sentry-trace")||u.push(["sentry-trace",s]),r&&o&&!l.find(d=>d[0]==="traceparent")&&u.push(["traceparent",o]);const c=l.find(d=>d[0]==="baggage"&&X_(d[1]));return a&&!c&&u.push(["baggage",a]),u}else{const u="sentry-trace"in l?l["sentry-trace"]:void 0,c="traceparent"in l?l.traceparent:void 0,d="baggage"in l?l.baggage:void 0,h=d?Array.isArray(d)?[...d]:[d]:[],m=d&&(Array.isArray(d)?d.find(b=>X_(b)):X_(d));a&&!m&&h.push(a);const g={...l,"sentry-trace":u??s,baggage:h.length>0?h.join(","):void 0};return r&&o&&!c&&(g.traceparent=o),g}else return{...i}}function e6e(t,e){if(e.response){rue(t,e.response.status);const n=e.response?.headers?.get("content-length");if(n){const r=parseInt(n);r>0&&t.setAttribute("http.response_content_length",r)}}else e.error&&t.setStatus({code:Ci,message:"internal_error"});t.end()}function X_(t){return t.split(",").some(e=>e.trim().startsWith(I7))}function t6e(t){return typeof Headers<"u"&&Nc(t,Headers)}function n6e(t,e,n){if(t.startsWith("data:")){const s=Yd(t);return{name:`${e} ${s}`,attributes:kG(t,void 0,e,n)}}const r=Hue(t),i=r?bOe(r):t;return{name:`${e} ${i}`,attributes:kG(t,r,e,n)}}function kG(t,e,n,r){const i={url:Yd(t),type:"fetch","http.method":n,[Ii]:r,[kc]:"http.client"};return e&&(Bue(e)||(i["http.url"]=Yd(e.href),i["server.address"]=e.host),e.search&&(i["http.query"]=e.search),e.hash&&(i["http.fragment"]=e.hash)),i}function Gue(t){if(t!==void 0)return t>=400&&t<500?"warning":t>=500?"error":void 0}const qb=Nn;function r6e(){return"history"in qb&&!!qb.history}function i6e(){if(!("fetch"in qb))return!1;
28try{return new Headers,new Request("data:,"),new Response,!0}catch{return!1}}function RD(t){return t&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(t.toString())}function s6e(){if(typeof EdgeRuntime=="string")return!0;if(!i6e())return!1;if(RD(qb.fetch))return!0;let t=!1;const e=qb.document;if(e&&typeof e.createElement=="function")try{const n=e.createElement("iframe");n.hidden=!0,e.head.appendChild(n),n.contentWindow?.fetch&&(t=RD(n.contentWindow.fetch)),e.head.removeChild(n)}catch(n){Et&&et.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",n)}return t}function Wue(t,e){const n="fetch";pf(n,t),mf(n,()=>Yue(void 0,e))}function a6e(t){const e="fetch-body-resolved";pf(e,t),mf(e,()=>Yue(l6e))}function Yue(t,e=!1){e&&!s6e()||ja(Nn,"fetch",function(n){return function(...r){const i=new Error,{method:s,url:a}=u6e(r),o={args:r,fetchData:{method:s,url:a},startTimestamp:ji()*1e3,virtualError:i,headers:c6e(r)};return t||_o("fetch",{...o}),n.apply(Nn,r).then(async l=>(t?t(l):_o("fetch",{...o,endTimestamp:ji()*1e3,response:l}),l),l=>{_o("fetch",{...o,endTimestamp:ji()*1e3,error:l}),pT(l)&&l.stack===void 0&&(l.stack=i.stack,da(l,"framesToPop",1));const c=zn()?.getOptions().enhanceFetchErrorMessages??"always";if(c!==!1&&l instanceof TypeError&&(l.message==="Failed to fetch"||l.message==="Load failed"||l.message==="NetworkError when attempting to fetch resource."))try{const m=new URL(o.fetchData.url).host;c==="always"?l.message=`${l.message} (${m})`:da(l,"__sentry_fetch_url_host__",m)}catch{}throw l})}})}async function o6e(t,e){if(t?.body){const n=t.body,r=n.getReader(),i=setTimeout(()=>{n.cancel().then(null,()=>{})},90*1e3);let s=!0;for(;s;){let a;try{a=setTimeout(()=>{n.cancel().then(null,()=>{})},5e3);const{done:o}=await r.read();clearTimeout(a),o&&(e(),s=!1)}catch{s=!1}finally{clearTimeout(a)}}clearTimeout(i),r.releaseLock(),n.cancel().then(null,()=>{})}}function l6e(t){let e;try{e=t.clone()}catch{return}o6e(e,()=>{_o("fetch-body-resolved",{endTimestamp:ji()*1e3,response:t})})}function vw(t,e){return!!t&&typeof t=="object"&&!!t[e]}function IG(t){return typeof t=="string"?t:t?vw(t,"url")?t.url:t.toString?t.toString():"":""}function u6e(t){if(t.length===0)return{method:"GET",url:""};if(t.length===2){const[n,r]=t;return{url:IG(n),method:vw(r,"method")?String(r.method).toUpperCase():T7(n)&&vw(n,"method")?String(n.method).toUpperCase():"GET"}}const e=t[0];return{url:IG(e),method:vw(e,"method")?String(e.method).toUpperCase():"GET"}}function c6e(t){const[e,n]=t;try{if(typeof n=="object"&&n!==null&&"headers"in n&&n.headers)return new Headers(n.headers);if(T7(e))return new Headers(e.headers)}catch{}}function d6e(){return typeof __SENTRY_BROWSER_BUNDLE__<"u"&&!!__SENTRY_BROWSER_BUNDLE__}function f6e(){return"npm"}function h6e(){return!d6e()&&Object.prototype.toString.call(typeof process<"u"?process:0)==="[object process]"}function p6e(){return typeof window<"u"&&(!h6e()||m6e())}function m6e(){return Nn.process?.type==="renderer"}const On=Nn;let ND=0;function Kue(){return ND>0}function g6e(){ND++,setTimeout(()=>{ND--})}function qg(t,e={}){function n(i){return typeof i=="function"}if(!n(t))return t;try{const i=t.__sentry_wrapped__;if(i)return typeof i=="function"?i:t;if(R7(t))return t}catch{return t}const r=function(...i){try{const s=i.map(a=>qg(a,e));return t.apply(this,s)}catch(s){throw g6e(),gT(a=>{a.addEventProcessor(o=>(e.mechanism&&(bD(o,void 0),Ug(o,e.mechanism)),o.extra={...o.extra,arguments:i},o)),L4e(s)}),s}};try{for(const i in t)Object.prototype.hasOwnProperty.call(t,i)&&(r[i]=t[i])}catch{}Zle(r,t),da(t,"__sentry_wrapped__",r);try{Object.getOwnPropertyDescriptor(r,"name").configurable&&Object.defineProperty(r,"name",{get(){return t.name}})}catch{}return r}function H7(){const t=s2(),{referrer:e}=On.document||{},{userAgent:n}=On.navigator||{},r={...e&&{Referer:e},...n&&{"User-Agent":n}};return{url:t,headers:r}}function U7(t,e){const n=j7(t,e),r={type:_6e(e),value:x6e(e)};return n.length&&(r.stacktrace={frames:n}),r.type===void 0&&r.value===""&&(r.value="Unrecoverable error caught"),r}function y6e(t,e,n,r){const s=zn()?.getOptions().normalizeDepth,a=A6e(e),o={__serialized__:bue(e,s)};if(a)return{exception:{values:[U7(t,a)]},extra:o};
vendor: 1,089 bytes, line 28
28const l={exception:{values:[{type:mT(e)?e.constructor.name:r?"UnhandledRejection":"Error",value:C6e(e,{isUnhandledRejection:r})}]},extra:o};if(n){const u=j7(t,n);u.length&&(l.exception.values[0].stacktrace={frames:u})}return l}function _N(t,e){return{exception:{values:[U7(t,e)]}}}function j7(t,e){const n=e.stacktrace||e.stack||"",r=v6e(e),i=E6e(e);try{return t(n,r,i)}catch{}return[]}const b6e=/Minified React error #\d+;/i;function v6e(t){return t&&b6e.test(t.message)?1:0}function E6e(t){return typeof t.framesToPop=="number"?t.framesToPop:0}function Xue(t){return typeof WebAssembly<"u"&&typeof WebAssembly.Exception<"u"?t instanceof WebAssembly.Exception:!1}function _6e(t){const e=t?.name;return!e&&Xue(t)?t.message&&Array.isArray(t.message)&&t.message.length==2?t.message[0]:"WebAssembly.Exception":e}function x6e(t){const e=t?.message;return Xue(t)?Array.isArray(t.message)&&t.message.length==2?t.message[1]:"wasm exception":e?e.error&&typeof e.error.message=="string"?SG(e.error):SG(t):"No error message"}function w6e(t,e,n,r){const i=n?.syntheticException||void 0,s=z7(t,e,i,r);
28return Ug(s),s.level="error",n?.event_id&&(s.event_id=n.event_id),bT(s)}function S6e(t,e,n="info",r,i){const s=r?.syntheticException||void 0,a=OD(t,e,s,i);return a.level=n,r?.event_id&&(a.event_id=r.event_id),bT(a)}function z7(t,e,n,r,i){let s;if(Kle(e)&&e.error)return _N(t,e.error);if(zq(e)||DRe(e)){const a=e;if("stack"in e)s=_N(t,e);else{const o=a.name||(zq(a)?"DOMError":"DOMException"),l=a.message?`${o}: ${a.message}`:o;s=OD(t,l,n,r),bD(s,l)}return"code"in a&&(s.tags={...s.tags,"DOMException.code":`${a.code}`}),s}return pT(e)?_N(t,e):Ub(e)||mT(e)?(s=y6e(t,e,n,i),Ug(s,{synthetic:!0}),s):(s=OD(t,e,n,r),bD(s,`${e}`),Ug(s,{synthetic:!0}),s)}function OD(t,e,n,r){const i={};if(r&&n){const s=j7(t,n);s.length&&(i.exception={values:[{value:e,stacktrace:{frames:s}}]}),Ug(i,{synthetic:!0})}if(C7(e)){const{__sentry_template_string__:s,__sentry_template_values__:a}=e;return i.logentry={message:s,params:a},i}return i.message=e,i}function C6e(t,{isUnhandledRejection:e}){const n=HRe(t),r=e?"promise rejection":"exception";return Kle(t)?`Event \`ErrorEvent\` captured as ${r} with message \`${t.message}\``:mT(t)?`Event \`${T6e(t)}\` (type=${t.type}) captured as ${r}`:`Object captured as ${r} with keys: ${n}`}function T6e(t){try{const e=Object.getPrototypeOf(t);return e?e.constructor.name:void 0}catch{}}function A6e(t){for(const e in t)if(Object.prototype.hasOwnProperty.call(t,e)){const n=t[e];if(n instanceof Error)return n}}class R6e extends uOe{constructor(e){const n=N6e(e),r=On.SENTRY_SDK_SOURCE||f6e();Uue(n,"browser",["browser"],r),n._metadata?.sdk&&(n._metadata.sdk.settings={infer_ip:n.sendDefaultPii?"auto":"never",...n._metadata.sdk.settings}),super(n);const{sendDefaultPii:i,sendClientReports:s,enableLogs:a,_experiments:o,enableMetrics:l}=this._options,u=l??o?.enableMetrics??!0;On.document&&(s||a||u)&&On.document.addEventListener("visibilitychange",()=>{On.document.visibilityState==="hidden"&&(s&&this._flushOutcomes(),a&&Nue(this),u&&kue(this))}),i&&this.on("beforeSendSession",EOe)}eventFromException(e,n){return w6e(this._options.stackParser,e,n,this._options.attachStacktrace)}eventFromMessage(e,n="info",r){return S6e(this._options.stackParser,e,n,r,this._options.attachStacktrace)}_prepareEvent(e,n,r,i){return e.platform=e.platform||"javascript",super._prepareEvent(e,n,r,i)}}function N6e(t){return{release:typeof __SENTRY_RELEASE__=="string"?__SENTRY_RELEASE__:On.SENTRY_RELEASE?.id,sendClientReports:!0,parentSpanIsAlwaysRootSpan:!0,...t}}const d2=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,Gt=Nn,O6e=(t,e)=>t>e[1]?"poor":t>e[0]?"needs-improvement":"good",f2=(t,e,n,r)=>{let i,s;return a=>{e.value>=0&&(a||r)&&(s=e.value-(i??0),(s||i===void 0)&&(i=e.value,e.delta=s,e.rating=O6e(e.value,n),t(e)))}},h2=(t=!0)=>{const e=Gt.performance?.getEntriesByType?.("navigation")[0];if(!t||e&&e.responseStart>0&&e.responseStart<performance.now())return e},N0=()=>h2()?.activationStart??0;function Kd(t,e,n){Gt.document&&Gt.addEventListener(t,e,n)}function hS(t,e,n){Gt.document&&Gt.removeEventListener(t,e,n)}let bg=-1;const Que=new Set,k6e=()=>Gt.document?.visibilityState==="hidden"&&!Gt.document?.prerendering?0:1/0,Ew=t=>{if(I6e(t)&&bg>-1){if(t.type==="visibilitychange"||t.type==="pagehide")for(const e of Que)e();isFinite(bg)||(bg=t.type==="visibilitychange"?t.timeStamp:0,hS("prerenderingchange",Ew,!0))}},p2=()=>{if(Gt.document&&bg<0){const t=N0();bg=(Gt.document.prerendering?void 0:globalThis.performance.getEntriesByType("visibility-state").filter(n=>n.name==="hidden"&&n.startTime>t)[0]?.startTime)??k6e(),Kd("visibilitychange",Ew,!0),Kd("pagehide",Ew,!0),Kd("prerenderingchange",Ew,!0)}return{get firstHiddenTime(){return bg},onHidden(t){Que.add(t)}}};function I6e(t){return t.type==="pagehide"||Gt.document?.visibilityState==="hidden"}const M6e=()=>`v5-${Date.now()}-${Math.floor(Math.random()*(9e12-1))+1e12}`,m2=(t,e=-1)=>{const n=h2();let r="navigate";return n&&(Gt.document?.prerendering||N0()>0?r="prerender":Gt.document?.wasDiscarded?r="restore":n.type&&(r=n.type.replace(/_/g,"-"))),{name:t,value:e,rating:"good",delta:0,entries:[],id:M6e(),navigationType:r}},xN=new WeakMap;function V7(t,e){try{return xN.get(t)||xN.set(t,new e),xN.get(t)}catch{return new e}}class pS{constructor(){pS.prototype.__init.call(this),pS.prototype.__init2.call(this)}__init(){this._sessionValue=0}__init2(){this._sessionEntries=[]}_processEntry(e){if(e.hadRecentInput)return;const n=this._sessionEntries[0],r=this._sessionEntries[this._sessionEntries.length-1];this._sessionValue&&n&&r&&e.startTime-r.startTime<1e3&&e.startTime-n.startTime<5e3?(this._sessionValue+=e.value,this._sessionEntries.push(e)):(this._sessionValue=e.value,this._sessionEntries=[e]),this._onAfterProcessingUnexpectedShift?.(e)}}const O0=(t,e,n={})=>{try{if(PerformanceObserver.supportedEntryTypes.includes(t)){const r=new PerformanceObserver(i=>{Promise.resolve().then(()=>{e(i.getEntries())})});return r.observe({type:t,buffered:!0,...n}),r}}catch{}},q7=t=>{let e=!1;return()=>{e||(t(),e=!0)}},vT=t=>{Gt.document?.prerendering?addEventListener("prerenderingchange",()=>t(),!0):t()},D6e=[1800,3e3],P6e=(t,e={})=>{vT(()=>{const n=p2(),r=m2("FCP");let i;const a=O0("paint",o=>
28{for(const l of o)l.name==="first-contentful-paint"&&(a.disconnect(),l.startTime<n.firstHiddenTime&&(r.value=Math.max(l.startTime-N0(),0),r.entries.push(l),i(!0)))});a&&(i=f2(t,r,D6e,e.reportAllChanges))})},L6e=[.1,.25],$6e=(t,e={})=>{P6e(q7(()=>{const n=m2("CLS",0);let r;const i=p2(),s=V7(e,pS),a=l=>{for(const u of l)s._processEntry(u);s._sessionValue>n.value&&(n.value=s._sessionValue,n.entries=s._sessionEntries,r())},o=O0("layout-shift",a);o&&(r=f2(t,n,L6e,e.reportAllChanges),i.onHidden(()=>{a(o.takeRecords()),r(!0)}),Gt?.setTimeout?.(r))}))};let Zue=0,wN=1/0,Q_=0;const F6e=t=>{t.forEach(e=>{e.interactionId&&(wN=Math.min(wN,e.interactionId),Q_=Math.max(Q_,e.interactionId),Zue=Q_?(Q_-wN)/7+1:0)})};let kD;const Jue=()=>kD?Zue:performance.interactionCount||0,B6e=()=>{"interactionCount"in performance||kD||(kD=O0("event",F6e,{type:"event",buffered:!0,durationThreshold:0}))},SN=10;let ece=0;const H6e=()=>Jue()-ece;class mS{constructor(){mS.prototype.__init.call(this),mS.prototype.__init2.call(this)}__init(){this._longestInteractionList=[]}__init2(){this._longestInteractionMap=new Map}_resetInteractions(){ece=Jue(),this._longestInteractionList.length=0,this._longestInteractionMap.clear()}_estimateP98LongestInteraction(){const e=Math.min(this._longestInteractionList.length-1,Math.floor(H6e()/50));return this._longestInteractionList[e]}_processEntry(e){if(this._onBeforeProcessingEntry?.(e),!(e.interactionId||e.entryType==="first-input"))return;const n=this._longestInteractionList.at(-1);let r=this._longestInteractionMap.get(e.interactionId);if(r||this._longestInteractionList.length<SN||e.duration>n._latency){if(r?e.duration>r._latency?(r.entries=[e],r._latency=e.duration):e.duration===r._latency&&e.startTime===r.entries[0].startTime&&r.entries.push(e):(r={id:e.interactionId,entries:[e],_latency:e.duration},this._longestInteractionMap.set(r.id,r),this._longestInteractionList.push(r)),this._longestInteractionList.sort((i,s)=>s._latency-i._latency),this._longestInteractionList.length>SN){const i=this._longestInteractionList.splice(SN);for(const s of i)this._longestInteractionMap.delete(s.id)}this._onAfterProcessingINPCandidate?.(r)}}}const tce=t=>{const e=Gt.requestIdleCallback||Gt.setTimeout;Gt.document?.visibilityState==="hidden"?t():(t=q7(t),Kd("visibilitychange",t,{once:!0,capture:!0}),Kd("pagehide",t,{once:!0,capture:!0}),e(()=>{t(),hS("visibilitychange",t,{capture:!0}),hS("pagehide",t,{capture:!0})}))},U6e=[200,500],j6e=40,z6e=(t,e={})=>{if(!(globalThis.PerformanceEventTiming&&"interactionId"in PerformanceEventTiming.prototype))return;const n=p2();vT(()=>{B6e();const r=m2("INP");let i;const s=V7(e,mS),a=l=>{tce(()=>{for(const c of l)s._processEntry(c);const u=s._estimateP98LongestInteraction();u&&u._latency!==r.value&&(r.value=u._latency,r.entries=u.entries,i())})},o=O0("event",a,{durationThreshold:e.durationThreshold??j6e});i=f2(t,r,U6e,e.reportAllChanges),o&&(o.observe({type:"first-input",buffered:!0}),n.onHidden(()=>{a(o.takeRecords()),i(!0)}))})};class V6e{_processEntry(e){this._onBeforeProcessingEntry?.(e)}}const q6e=[2500,4e3],G6e=(t,e={})=>{vT(()=>{const n=p2(),r=m2("LCP");let i;const s=V7(e,V6e),a=l=>{e.reportAllChanges||(l=l.slice(-1));for(const u of l)s._processEntry(u),u.startTime<n.firstHiddenTime&&(r.value=Math.max(u.startTime-N0(),0),r.entries=[u],i())},o=O0("largest-contentful-paint",a);if(o){i=f2(t,r,q6e,e.reportAllChanges);const l=q7(()=>{a(o.takeRecords()),o.disconnect(),i(!0)}),u=c=>{c.isTrusted&&(tce(l),hS(c.type,u,{capture:!0}))};for(const c of["keydown","click","visibilitychange"])Kd(c,u,{capture:!0})}})},W6e=[800,1800],ID=t=>{Gt.document?.prerendering?vT(()=>ID(t)):Gt.document?.readyState!=="complete"?addEventListener("load",()=>ID(t),!0):setTimeout(t)},Y6e=(t,e={})=>{const n=m2("TTFB"),r=f2(t,n,W6e,e.reportAllChanges);ID(()=>{const i=h2();i&&(n.value=Math.max(i.responseStart-N0(),0),n.entries=[i],r(!0))})},ob={},gS={};let nce,rce,ice,sce;function ace(t,e=!1){return ET("cls",t,Q6e,nce,e)}function oce(t,e=!1){return ET("lcp",t,Z6e,rce,e)}function K6e(t){return ET("ttfb",t,J6e,ice)}function X6e(t){return ET("inp",t,eke,sce)}function Gg(t,e){return lce(t,e),gS[t]||(tke(t),gS[t]=!0),uce(t,e)}function g2(t,e){const n=ob[t];if(n?.length)for(const r of n)try{r(e)}catch(i){d2&&et.error(`Error while triggering instrumentation handler. 29Type: ${t} 30Name: ${Rc(r)}
30 31Error:`,i)}}function Q6e(){return $6e(t=>{g2("cls",{metric:t}),nce=t},{reportAllChanges:!0})}function Z6e(){return G6e(t=>{g2("lcp",{metric:t}),rce=t},{reportAllChanges:!0})}function J6e(){return Y6e(t=>{g2("ttfb",{metric:t}),ice=t})}function eke(){return z6e(t=>{g2("inp",{metric:t}),sce=t})}function ET(t,e,n,r,i=!1){lce(t,e);let s;return gS[t]||(s=n(),gS[t]=!0),r&&e({metric:r}),uce(t,e,i?s:void 0)}function tke(t){const e={};t==="event"&&(e.durationThreshold=0),O0(t,n=>{g2(t,{entries:n})},e)}function lce(t,e){ob[t]=ob[t]||[],ob[t].push(e)}function uce(t,e,n){return()=>{n&&n();const r=ob[t];if(!r)return;const i=r.indexOf(e);i!==-1&&r.splice(i,1)}}function nke(t){return"duration"in t}const rke=t=>{const e=n=>{(n.type==="pagehide"||Gt.document?.visibilityState==="hidden")&&t(n)};Kd("visibilitychange",e,{capture:!0,once:!0}),Kd("pagehide",e,{capture:!0,once:!0})};function CN(t){return typeof t=="number"&&isFinite(t)}function tf(t,e,n,{...r}){const i=Ln(t).start_timestamp;return i&&i>e&&typeof t.updateStartTime=="function"&&t.updateStartTime(e),P7(t,()=>{const s=R0({startTime:e,...r});return s&&s.end(n),s})}function G7(t){const e=zn();if(!e)return;const{name:n,transaction:r,attributes:i,startTime:s}=t,{release:a,environment:o,sendDefaultPii:l}=e.getOptions(),c=e.getIntegrationByName("Replay")?.getReplayId(),d=Xn(),h=d.getUser(),m=h!==void 0?h.email||h.id||h.ip_address:void 0;let g;try{g=d.getScopeData().contexts.profile.profile_id}catch{}const b={release:a,environment:o,user:m||void 0,profile_id:g||void 0,replay_id:c||void 0,transaction:r,"user_agent.original":Gt.navigator?.userAgent,"client.address":l?"{{auto}}":void 0,...i};return R0({name:n,attributes:b,startTime:s,experimental:{standalone:!0}})}function y2(){return Gt.addEventListener&&Gt.performance}function Hr(t){return t/1e3}function ike(t){let e="unknown",n="unknown",r="";for(const i of t){if(i==="/"){[e,n]=t.split("/");break}if(!isNaN(Number(i))){e=r==="h"?"http":r,n=t.split(r)[1];break}r+=i}return r===t&&(e=r),{name:e,version:n}}function cce(t){try{return PerformanceObserver.supportedEntryTypes.includes(t)}catch{return!1}}function dce(t,e){let n,r=!1;function i(o){!r&&n&&e(o,n),r=!0}rke(()=>{i("pagehide")});const s=t.on("beforeStartNavigationSpan",(o,l)=>{l?.isRedirect||(i("navigation"),s(),a())}),a=t.on("afterStartPageLoadSpan",o=>{n=o.spanContext().spanId,a()})}function ske(t){let e=0,n;if(!cce("layout-shift"))return;const r=ace(({metric:i})=>{const s=i.entries[i.entries.length-1];s&&(e=i.value,n=s)},!0);dce(t,(i,s)=>{ake(e,n,s,i),r()})}function ake(t,e,n,r){d2&&et.log(`Sending CLS span (${t})`);const i=e?Hr((Xa()||0)+e.startTime):ji(),s=Xn().getScopeData().transactionName,a=e?Ao(e.sources[0]?.node):"Layout shift",o={[Ii]:"auto.http.browser.cls",[kc]:"ui.webvital.cls",[T0]:0,"sentry.pageload.span_id":n,"sentry.report_event":r};e?.sources&&e.sources.forEach((u,c)=>{o[`cls.source.${c+1}`]=Ao(u.node)});const l=G7({name:a,transaction:s,attributes:o,startTime:i});l&&(l.addEvent("cls",{[u2]:"",[c2]:t}),l.end(i))}function oke(t){let e=0,n;if(!cce("largest-contentful-paint"))return;const r=oce(({metric:i})=>{const s=i.entries[i.entries.length-1];s&&(e=i.value,n=s)},!0);dce(t,(i,s)=>{lke(e,n,s,i),r()})}function lke(t,e,n,r){d2&&et.log(`Sending LCP span (${t})`);const i=Hr((Xa()||0)+(e?.startTime||0)),s=Xn().getScopeData().transactionName,a=e?Ao(e.element):"Largest contentful paint",o={[Ii]:"auto.http.browser.lcp",[kc]:"ui.webvital.lcp",[T0]:0,"sentry.pageload.span_id":n,"sentry.report_event":r};e&&(e.element&&(o["lcp.element"]=Ao(e.element)),e.id&&(o["lcp.id"]=e.id),e.url&&(o["lcp.url"]=e.url),e.loadTime!=null&&(o["lcp.loadTime"]=e.loadTime),e.renderTime!=null&&(o["lcp.renderTime"]=e.renderTime),e.size!=null&&(o["lcp.size"]=e.size));const l=G7({name:a,transaction:s,attributes:o,startTime:i});l&&(l.addEvent("lcp",{[u2]:"millisecond",[c2]:t}),l.end(i))}function ao(t){return t&&((Xa()||performance.timeOrigin)+t)/1e3}function fce(t){const e={};if(t.nextHopProtocol!=null){const{name:n,version:r}=ike(t.nextHopProtocol);e["network.protocol.version"]=r,e["network.protocol.name"]=n}return Xa()||y2()?.timeOrigin?uke({...e,"http.request.redirect_start":ao(t.redirectStart),"http.request.redirect_end":ao(t.redirectEnd),"http.request.worker_start":ao(t.workerStart),"http.request.fetch_start":ao(t.fetchStart),"http.request.domain_lookup_start":ao(t.domainLookupStart),"http.request.domain_lookup_end":ao(t.domainLookupEnd),"http.request.connect_start":ao(t.connectStart),"http.request.secure_connection_start":ao(t.secureConnectionStart),"http.request.connection_end":ao(t.connectEnd),"http.request.request_start":ao(t.requestStart),"http.request.response_start":ao(t.responseStart),"http.request.response_end":ao(t.responseEnd),"http.request.time_to_first_byte":t.responseStart!=null?t.responseStart/1e3:void 0}):e}function uke(t){return Object.fromEntries(Object.entries(t).filter(([,e])=>e!=null))}const cke=2147483647;let MG=0,Yo={},Zs,yS;function dke({recordClsStandaloneSpans:t,recordLcpStandaloneSpans:e,client:n}){const r=y2();if(r&&Xa()){r.mark&&Gt.performance.mark("sentry-tracing-init");const i=e?oke(n):gke(),s=yke(),a=t?ske(n):mke();return()=>{i?.(),s(),a?.()}}return()=>{}}function fke(){Gg("longtask",({entries:t})=>{const e=Qa();if(!e)return;const{op:n,start_timestamp:r}=Ln(e);for(const i of t){const s=Hr(Xa()+i.startTime),a=Hr(i.duration);n==="navigation"&&r&&s<r||tf(e,s,s+a,{name:"Main UI thread blocked",op:"ui.long-task",attributes:{[Ii]:"auto.ui.browser.metrics"}})}})}function hke(){new PerformanceObserver(e=>{const n=Qa();if(n)for(const r of e.getEntries()){if(!r.scripts[0])continue;
31const i=Hr(Xa()+r.startTime),{start_timestamp:s,op:a}=Ln(n);if(a==="navigation"&&s&&i<s)continue;const o=Hr(r.duration),l={[Ii]:"auto.ui.browser.metrics"},u=r.scripts[0],{invoker:c,invokerType:d,sourceURL:h,sourceFunctionName:m,sourceCharPosition:g}=u;l["browser.script.invoker"]=c,l["browser.script.invoker_type"]=d,h&&(l["code.filepath"]=h),m&&(l["code.function"]=m),g!==-1&&(l["browser.script.source_char_position"]=g),tf(n,i,i+o,{name:"Main UI thread blocked",op:"ui.long-animation-frame",attributes:l})}}).observe({type:"long-animation-frame",buffered:!0})}function pke(){Gg("event",({entries:t})=>{const e=Qa();if(e){for(const n of t)if(n.name==="click"){const r=Hr(Xa()+n.startTime),i=Hr(n.duration),s={name:Ao(n.target),op:`ui.interaction.${n.name}`,startTime:r,attributes:{[Ii]:"auto.ui.browser.metrics"}},a=Qle(n.target);a&&(s.attributes["ui.component_name"]=a),tf(e,r,r+i,s)}}})}function mke(){return ace(({metric:t})=>{const e=t.entries[t.entries.length-1];e&&(Yo.cls={value:t.value,unit:""},yS=e)},!0)}function gke(){return oce(({metric:t})=>{const e=t.entries[t.entries.length-1];e&&(Yo.lcp={value:t.value,unit:"millisecond"},Zs=e)},!0)}function yke(){return K6e(({metric:t})=>{t.entries[t.entries.length-1]&&(Yo.ttfb={value:t.value,unit:"millisecond"})})}function bke(t,e){const n=y2(),r=Xa();if(!n?.getEntries||!r)return;const i=Hr(r),s=n.getEntries(),{op:a,start_timestamp:o}=Ln(t);s.slice(MG).forEach(l=>{const u=Hr(l.startTime),c=Hr(Math.max(0,l.duration));if(!(a==="navigation"&&o&&i+u<o))switch(l.entryType){case"navigation":{xke(t,l,i);break}case"mark":case"paint":case"measure":{Eke(t,l,u,c,i,e.ignorePerformanceApiSpans);const d=p2(),h=l.startTime<d.firstHiddenTime;l.name==="first-paint"&&h&&(Yo.fp={value:l.startTime,unit:"millisecond"}),l.name==="first-contentful-paint"&&h&&(Yo.fcp={value:l.startTime,unit:"millisecond"});break}case"resource":{Cke(t,l,l.name,u,c,i,e.ignoreResourceSpans);break}}}),MG=Math.max(s.length-1,0),Tke(t),a==="pageload"&&(Nke(Yo),e.recordClsOnPageloadSpan||delete Yo.cls,e.recordLcpOnPageloadSpan||delete Yo.lcp,Object.entries(Yo).forEac
31h(([l,u])=>{n4e(l,u.value,u.unit)}),t.setAttribute("performance.timeOrigin",i),t.setAttribute("performance.activationStart",N0()),Ake(t,e)),Zs=void 0,yS=void 0,Yo={}}function vke(t){if(t?.entryType==="measure")try{return t.detail.devtools.track==="Components â"}catch{return}}function Eke(t,e,n,r,i,s){if(vke(e)||["mark","measure"].includes(e.entryType)&&Wd(e.name,s))return;const a=h2(!1),o=Hr(a?a.requestStart:0),l=i+Math.max(n,o),u=i+n,c=u+r,d={[Ii]:"auto.resource.browser.metrics"};l!==u&&(d["sentry.browser.measure_happened_before_request"]=!0,d["sentry.browser.measure_start_time"]=l),_ke(d,e),l<=c&&tf(t,l,c,{name:e.name,op:e.entryType,attributes:d})}function _ke(t,e){try{const n=e.detail;if(!n)return;if(typeof n=="object"){for(const[r,i]of Object.entries(n))if(i&&Hg(i))t[`sentry.browser.measure.detail.${r}`]=i;else if(i!==void 0)try{t[`sentry.browser.measure.detail.${r}`]=JSON.stringify(i)}catch{}return}if(Hg(n)){t["sentry.browser.measure.detail"]=n;return}try{t["sentry.browser.measure.detail"]=JSON.stringify(n)}catch{}}catch{}}function xke(t,e,n){["unloadEvent","redirect","domContentLoadedEvent","loadEvent","connect"].forEach(r=>{Z_(t,e,r,n)}),Z_(t,e,"secureConnection",n,"TLS/SSL"),Z_(t,e,"fetch",n,"cache"),Z_(t,e,"domainLookup",n,"DNS"),Ske(t,e,n)}function Z_(t,e,n,r,i=n){const s=wke(n),a=e[s],o=e[`${n}Start`];!o||!a||tf(t,r+Hr(o),r+Hr(a),{op:`browser.${i}`,name:e.name,attributes:{[Ii]:"auto.ui.browser.metrics",...n==="redirect"&&e.redirectCount!=null?{"http.redirect_count":e.redirectCount}:{}}})}function wke(t){return t==="secureConnection"?"connectEnd":t==="fetch"?"domainLookupStart":`${t}End`}function Ske(t,e,n){const r=n+Hr(e.requestStart),i=n+Hr(e.responseEnd),s=n+Hr(e.responseStart);e.responseEnd&&(tf(t,r,i,{op:"browser.request",name:e.name,attributes:{[Ii]:"auto.ui.browser.metrics"}}),tf(t,s,i,{op:"browser.response",name:e.name,attributes:{[Ii]:"auto.ui.browser.metrics"}}))}function Cke(t,e,n,r,i,s,a){if(e.initiatorType==="xmlhttprequest"||e.initiatorType==="fetch")return;const o=e.initiatorType?`resource.${e.initiatorType}`:"resource.other";if(a?.includes(o))return;const l={[Ii]:"auto.resource.browser.metrics"},u=Nh(n);u.protocol&&(l["url.scheme"]=u.protocol.split(":").pop()),u.host&&(l["server.address"]=u.host),l["url.same_origin"]=n.includes(Gt.location.origin),Rke(e,l,[["responseStatus","http.response.status_code"],["transferSize","http.response_transfer_size"],["encodedBodySize","http.response_content_length"],["decodedBodySize","http.decoded_response_content_length"],["renderBlockingStatus","resource.render_blocking_status"],["deliveryType","http.response_delivery_type"]]);const c={...l,...fce(e)},d=s+r,h=d+i;tf(t,d,h,{name:n.replace(Gt.location.origin,""),op:o,attributes:c})}function Tke(t){const e=Gt.navigator;if(!e)return;const n=e.connection;n&&(n.effectiveType&&t.setAttribute("effectiveConnectionType",n.effectiveType),n.type&&t.setAttribute("connectionType",n.type),CN(n.rtt)&&(Yo["connection.rtt"]={value:n.rtt,unit:"millisecond"})),CN(e.deviceMemory)&&t.setAttribute("deviceMemory",`${e.deviceMemory} GB`),CN(e.hardwareConcurrency)&&t.setAttribute("hardwareConcurrency",String(e.hardwareConcurrency))}function Ake(t,e){Zs&&e.recordLcpOnPageloadSpan&&(Zs.element&&t.setAttribute("lcp.element",Ao(Zs.element)),Zs.id&&t.setAttribute("lcp.id",Zs.id),Zs.url&&t.setAttribute("lcp.url",Zs.url.trim().slice(0,200)),Zs.loadTime!=null&&t.setAttribute("lcp.loadTime",Zs.loadTime),Zs.renderTime!=null&&t.setAttribute("lcp.renderTime",Zs.renderTime),t.setAttribute("lcp.size",Zs.size)),yS?.sources&&e.recordClsOnPageloadSpan&&yS.sources.forEach((n,r)=>t.setAttribute(`cls.source.${r+1}`,Ao(n.node)))}function Rke(t,e,n){n.forEach(([r,i])=>{const s=t[r];s!=null&&(typeof s=="number"&&s<cke||typeof s=="string")&&(e[i]=s)})}function Nke(t){const e=h2(!1);if(!e)return;const{responseStart:n,requestStart:r}=e;r<=n&&(t["ttfb.requestTime"]={value:n-r,unit:"millisecond"})}function Oke(){return y2()&&Xa()?Gg("element",kke):()=>{}}const kke=({entries:t})=>{const e=Qa(),n=e?Ds(e):void 0,r=n?Ln(n).description:Xn().getScopeData().transactionName;t.forEach(i=>
31{const s=i;if(!s.identifier)return;const a=s.name,o=s.renderTime,l=s.loadTime,[u,c]=l?[Hr(l),"load-time"]:o?[Hr(o),"render-time"]:[ji(),"entry-emission"],d=a==="image-paint"?Hr(Math.max(0,(o??0)-(l??0))):0,h={[Ii]:"auto.ui.browser.elementtiming",[kc]:"ui.elementtiming",[Zl]:"component","sentry.span_start_time_source":c,"sentry.transaction_name":r,"element.id":s.id,"element.type":s.element?.tagName?.toLowerCase()||"unknown","element.size":s.naturalWidth&&s.naturalHeight?`${s.naturalWidth}x${s.naturalHeight}`:void 0,"element.render_time":o,"element.load_time":l,"element.url":s.url||void 0,"element.identifier":s.identifier,"element.paint_type":a};l4e({name:`element[${s.identifier}]`,attributes:h,startTime:u,onlyIfParent:!0},m=>{m.end(u+d)})})},Ike=1e3;let DG,MD,DD;function Mke(t){pf("dom",t),mf("dom",Dke)}function Dke(){if(!Gt.document)return;const t=_o.bind(null,"dom"),e=PG(t,!0);Gt.document.addEventListener("click",e,!1),Gt.document.addEventListener("keypress",e,!1),["EventTarget","Node"].forEach(n=>{const i=Gt[n]?.prototype;i?.hasOwnProperty?.("addEventListener")&&(ja(i,"addEventListener",function(s){return function(a,o,l){if(a==="click"||a=="keypress")try{const u=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},c=u[a]=u[a]||{refCount:0};if(!c.handler){const d=PG(t);c.handler=d,s.call(this,a,d,l)}c.refCount++}catch{}return s.call(this,a,o,l)}}),ja(i,"removeEventListener",function(s){return function(a,o,l){if(a==="click"||a=="keypress")try{const u=this.__sentry_instrumentation_handlers__||{},c=u[a];c&&(c.refCount--,c.refCount<=0&&(s.call(this,a,c.handler,l),c.handler=void 0,delete u[a]),Object.keys(u).length===0&&delete this.__sentry_instrumentation_handlers__)}catch{}return s.call(this,a,o,l)}}))})}function Pke(t){if(t.type!==MD)return!1;try{if(!t.target||t.target._sentryId!==DD)return!1}catch{}return!0}function Lke(t,e){return t!=="keypress"?!1:e?.tagName?!(e.tagName==="INPUT"||e.tagName==="TEXTAREA"||e.isContentEditable):!0}function PG(t,e=!1){return n=>{if(!n||n._sentryCaptured)return;const r=$ke(n);if(Lke(n.type,r))return;da(n,"_sentryCaptured",!0),r&&!r._sentryId&&da(r,"_sentryId",xo());
31const i=n.type==="keypress"?"input":n.type;Pke(n)||(t({event:n,name:i,global:e}),MD=n.type,DD=r?r._sentryId:void 0),clearTimeout(DG),DG=Gt.setTimeout(()=>{DD=void 0,MD=void 0},Ike)}}function $ke(t){try{return t.target}catch{return null}}let J_;function W7(t){const e="history";pf(e,t),mf(e,Fke)}function Fke(){if(Gt.addEventListener("popstate",()=>{const e=Gt.location.href,n=J_;if(J_=e,n===e)return;_o("history",{from:n,to:e})}),!r6e())return;function t(e){return function(...n){const r=n.length>2?n[2]:void 0;if(r){const i=J_,s=Bke(String(r));if(J_=s,i===s)return e.apply(this,n);_o("history",{from:i,to:s})}return e.apply(this,n)}}ja(Gt.history,"pushState",t),ja(Gt.history,"replaceState",t)}function Bke(t){try{return new URL(t,Gt.location.origin).toString()}catch{return t}}const _w={};function Hke(t){const e=_w[t];if(e)return e;let n=Gt[t];if(RD(n))return _w[t]=n.bind(Gt);const r=Gt.document;if(r&&typeof r.createElement=="function")try{const i=r.createElement("iframe");i.hidden=!0,r.head.appendChild(i);const s=i.contentWindow;s?.[t]&&(n=s[t]),r.head.removeChild(i)}catch(i){d2&&et.warn(`Could not create sandbox iframe for ${t} check, bailing to window.${t}: `,i)}return n&&(_w[t]=n.bind(Gt))}function Uke(t){_w[t]=void 0}const rg="__sentry_xhr_v3__";function hce(t){pf("xhr",t),mf("xhr",jke)}function jke(){if(!Gt.XMLHttpRequest)return;const t=XMLHttpRequest.prototype;t.open=new Proxy(t.open,{apply(e,n,r){const i=new Error,s=ji()*1e3,a=Sc(r[0])?r[0].toUpperCase():void 0,o=zke(r[1]);if(!a||!o)return e.apply(n,r);n[rg]={method:a,url:o,request_headers:{}},a==="POST"&&o.match(/sentry_key/)&&(n.__sentry_own_request__=!0);const l=()=>{const u=n[rg];if(u&&n.readyState===4){try{u.status_code=n.status}catch{}const c={endTimestamp:ji()*1e3,startTimestamp:s,xhr:n,virtualError:i};_o("xhr",c)}};return"onreadystatechange"in n&&typeof n.onreadystatechange=="function"?n.onreadystatechange=new Proxy(n.onreadystatechange,{apply(u,c,d){return l(),u.apply(c,d)}}):n.addEventListener("readystatechange",l),n.setRequestHeader=new Proxy(n.setRequestHeader,{apply(u,c,d){const[h,m]=d,g=c[rg];return g&&Sc(h)&&Sc(m)&&(g.request_headers[h.toLowerCase()]=m),u.apply(c,d)}}),e.apply(n,r)}}),t.send=new Proxy(t.send,{apply(e,n,r){const i=n[rg];if(!i)return e.apply(n,r);r[0]!==void 0&&(i.body=r[0]);const s={startTimestamp:ji()*1e3,xhr:n};return _o("xhr",s),e.apply(n,r)}})}function zke(t){if(Sc(t))return t;try{return t.toString()}catch{}}function Vke(t){let e;try{e=t.getAllResponseHeaders()}catch(n){return d2&&et.error(n,"Failed to get xhr response headers",t),{}}return e?e.split(`\r 32`).reduce((n,r)=>{const[i,s]=r.split(": ");return s&&(n[i.toLowerCase()]=s),n},{}):{}}const TN=[],xw=new Map,Om=new Map,qke=60;function Gke(){if(y2()&&Xa()){const e=Wke();return()=>{e()}}return()=>{}}const PD={click:"click",pointerdown:"click",pointerup:"click",mousedown:"click",mouseup:"click",touchstart:"click",touchend:"click",mouseover:"hover",mouseout:"hover",mouseenter:"hover",mouseleave:"hover",pointerover:"hover",pointerout:"hover",pointerenter:"hover",pointerleave:"hover",dragstart:"drag",dragend:"drag",drag:"drag",dragenter:"drag",dragleave:"drag",dragover:"drag",drop:"drag",keydown:"press",keyup:"press",keypress:"press",input:"press"};function Wke(){return X6e(Yke)}const Yke=({metric:t})=>{if(t.value==null)return;const e=Hr(t.value);if(e>qke)return;const n=t.entries.find(g=>g.duration===t.value&&PD[g.name]);if(!n)return;const{interactionId:r}=n,i=PD[n.name],s=Hr(Xa()+n.startTime),a=Qa(),o=a?Ds(a):void 0,l=r!=null?xw.get(r):void 0,u=l?.span||o,c=u?Ln(u).description:Xn().getScopeData().transactionName,d=l?.elementName||Ao(n.target),h={[Ii]:"auto.http.browser.inp",[kc]:`ui.interaction.${i}`,[T0]:n.duration},m=G7({name:d,transaction:c,attributes:h,startTime:s});m&&(m.addEvent("inp",{[u2]:"millisecond",[c2]:t.value}),m.end(s+e))};function Kke(){const t=Object.keys(PD);p6e()&&t.forEach(i=>{Gt.addEventListener(i,e,{capture:!0,passive:!0})});function e(i){const s=i.target;if(!s)return;const a=Ao(s),o=Math.round(i.timeStamp);if(Om.set(o,a),Om.size>50){const l=Om.keys().next().value;l!==void 0&&Om.delete(l)}}function n(i){const s=Math.round(i.startTime);let a=Om.get(s);if(!a)for(let o=-5;o<=5;o++){const l=Om.get(s+o);if(l){a=l;break}}return a||"<unknown>"}const r=({entries:i})=>{const s=Qa(),a=s&&Ds(s);
vendor: 9,770 bytes, line 32
32i.forEach(o=>{if(!nke(o))return;const l=o.interactionId;if(l==null||xw.has(l))return;const u=o.target?Ao(o.target):n(o);if(TN.length>10){const c=TN.shift();xw.delete(c)}TN.push(l),xw.set(l,{span:a,elementName:u})})};Gg("event",r),Gg("first-input",r)}const Xke=40;function Qke(t,e=Hke("fetch")){let n=0,r=0;async function i(s){const a=s.body.length;n+=a,r++;const o={body:s.body,method:"POST",referrerPolicy:"strict-origin",headers:t.headers,keepalive:n<=6e4&&r<15,...t.fetchOptions};try{const l=await e(t.url,o);return{statusCode:l.status,headers:{"x-sentry-rate-limits":l.headers.get("X-Sentry-Rate-Limits"),"retry-after":l.headers.get("Retry-After")}}}catch(l){throw Uke("fetch"),l}finally{n-=a,r--}}return iOe(t,i,B7(t.bufferSize||Xke))}const Ro=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,Zke=30,Jke=50;function LD(t,e,n,r){const i={filename:t,function:e==="<anonymous>"?Uh:e,in_app:!0};return n!==void 0&&(i.lineno=n),r!==void 0&&(i.colno=r),i}const e8e=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,t8e=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,n8e=/\((\S*)(?::(\d+))(?::(\d+))\)/,r8e=/at (.+?) ?\(data:(.+?),/,i8e=t=>{const e=t.match(r8e);if(e)return{filename:`<data:${e[2]}>`,function:e[1]};const n=e8e.exec(t);if(n){const[,i,s,a]=n;return LD(i,Uh,+s,+a)}const r=t8e.exec(t);if(r){if(r[2]&&r[2].indexOf("eval")===0){const o=n8e.exec(r[2]);o&&(r[2]=o[1],r[3]=o[2],r[4]=o[3])}const[s,a]=pce(r[1]||Uh,r[2]);return LD(a,s,r[3]?+r[3]:void 0,r[4]?+r[4]:void 0)}},s8e=[Zke,i8e],a8e=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,o8e=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,l8e=t=>{const e=a8e.exec(t);if(e){if(e[3]&&e[3].indexOf(" > eval")>-1){const s=o8e.exec(e[3]);s&&(e[1]=e[1]||"eval",e[3]=s[1],e[4]=s[2],e[5]="")}let r=e[3],i=e[1]||Uh;return[i,r]=pce(i,r),LD(r,i,e[4]?+e[4]:void 0,e[5]?+e[5]:void 0)}},u8e=[Jke,l8e],c8e=[s8e,u8e],d8e=Vle(...c8e),pce=(t,e)=>{const n=t.indexOf("safari-extension")!==-1,r=t.indexOf("safari-web-extension")!==-1;return n||r?[t.indexOf("@")!==-1?t.split("@")[0]:Uh,n?`safari-extension:${e}`:`safari-web-extension:${e}`]:[t,e]},ex=1024,f8e="Breadcrumbs",h8e=((t={})=>{const e={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...t};return{name:f8e,setup(n){e.console&&BOe(y8e(n)),e.dom&&Mke(g8e(n,e.dom)),e.xhr&&hce(b8e(n)),e.fetch&&Wue(v8e(n)),e.history&&W7(E8e(n)),e.sentry&&n.on("beforeSendEvent",m8e(n))}}}),p8e=h8e;function m8e(t){return function(n){zn()===t&&jh({category:`sentry.${n.type==="transaction"?"transaction":"event"}`,event_id:n.event_id,level:n.level,message:lh(n)},{event:n})}}function g8e(t,e){return function(r){if(zn()!==t)return;let i,s,a=typeof e=="object"?e.serializeAttribute:void 0,o=typeof e=="object"&&typeof e.maxStringLength=="number"?e.maxStringLength:void 0;o&&o>ex&&(Ro&&et.warn(`\`dom.maxStringLength\` cannot exceed ${ex}, but a value of ${o} was configured. Sentry will use ${ex} instead.`),o=ex),typeof a=="string"&&(a=[a]);try{const u=r.event,c=_8e(u)?u.target:u;i=Ao(c,{keyAttrs:a,maxStringLength:o}),s=Qle(c)}catch{i="<unknown>"}if(i.length===0)return;const l={category:`ui.${r.name}`,message:i};s&&(l.data={"ui.component_name":s}),jh(l,{event:r.event,name:r.name,global:r.global})}}function y8e(t){return function(n){if(zn()!==t)return;const r={category:"console",data:{arguments:n.args,logger:"console"},level:UOe(n.level),message:Gq(n.args," ")};if(n.level==="assert")if(n.args[0]===!1)r.message=`Assertion failed: ${Gq(n.args.slice(1)," ")||"console.assert"}`,r.data.arguments=n.args.slice(1);else return;jh(r,{input:n.args,level:n.level})}}function b8e(t){return function(n){if(zn()!==t)return;const{startTimestamp:r,endTimestamp:i}=n,s=n.xhr[rg];if(!r||!i||!s)return;const{method:a,url:o,status_code:l,body:u}=s,c={method:a,url:o,status_code:l},d={xhr:n.xhr,input:u,startTimestamp:r,endTimestamp:i},h={category:"xhr",data:c,type:"http",level:Gue(l)};t.emit("beforeOutgoingRequestBreadcrumb",h,d),jh(h,d)}}function v8e(t){return function(n){if(zn()!==t)return;const{startTimestamp:r,endTimestamp:i}=n;if(i&&!(n.fetchData.url.match(/sentry_key/)&&n.fetchData.method==="POST"))if(n.fetchData.method,n.fetchData.url,n.error){const s=n.fetchData,a={data:n.error,input:n.args,startTimestamp:r,endTimestamp:i},o={category:"fetch",data:s,level:"error",type:"http"};t.emit("beforeOutgoingRequestBreadcrumb",o,a),jh(o,a)}else{const s=n.response,a={...n.fetchData,status_code:s?.status};n.fetchData.request_body_size,n.fetchData.response_body_size,s?.status;const o={input:n.args,response:s,startTimestamp:r,endTimestamp:i},l={category:"fetch",data:a,type:"http",level:Gue(a.status_code)};t.emit("beforeOutgoingRequestBreadcrumb",l,o),jh(l,o)}}}function E8e(t){return function(n){if(zn()!==t)return;let r=n.from,i=n.to;const s=Nh(On.location.href);let a=r?Nh(r):void 0;const o=Nh(i);a?.path||(a=s),s.protocol===o.protocol&&s.host===o.host&&(i=o.relative),s.protocol===a.protocol&&s.host===a.host&&(r=a.relative),jh({category:"navigation",data:{from:r,to:i}})}}function _8e(t){return!!t&&!!t.target}const x8e=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","BroadcastChannel","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","SharedWorker","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"],w8e="BrowserApiErrors",S8e=((t={})=>{const e={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,unregisterOriginalCallbacks:!1,...t};return{name:w8e,setupOnce(){e.setTimeout&&ja(On,"setTimeout",LG),e.setInterval&&ja(On,"setInterval",LG),e.requestAnimationFrame&&ja(On,"requestAnimationFrame",T8e),e.XMLHttpRequest&&"XMLHttpRequest"in On&&ja(XMLHttpRequest.prototype,"send",A8e);const n=e.eventTarget;n&&(Array.isArray(n)?n:x8e).forEach(i=>R8e(i,e))}}}),C8e=S8e;function LG(t){return function(...e){const n=e[0];return e[0]=qg(n,{mechanism:{handled:!1,type:`auto.browser.browserapierrors.${Rc(t)}`}}),t.apply(this,e)}}function T8e(t){return function(e){return t.apply(this,[qg(e,{mechanism:{data:{handler:Rc(t)},handled:!1,type:"auto.browser.browserapierrors.requestAnimationFrame"}})])}}function A8e(t){return function(...e){const n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(i=>{i in n&&typeof n[i]=="function"&&ja(n,i,function(s){const a={mechanism:{data:{handler:Rc(s)},handled:!1,type:`auto.browser.browserapierrors.xhr.${i}`}},o=R7(s);return o&&(a.mechanism.data.handler=Rc(o)),qg(s,a)})}),t.apply(this,e)}}function R8e(t,e){const r=On[t]?.prototype;r?.hasOwnProperty?.("addEventListener")&&(ja(r,"addEventListener",function(i){return function(s,a,o){try{N8e(a)&&(a.handleEvent=qg(a.handleEvent,{mechanism:{data:{handler:Rc(a),target:t},handled:!1,type:"auto.browser.browserapierrors.handleEvent"}}))}catch{}return e.unregisterOriginalCallbacks&&O8e(this,s,a),i.apply(this,[s,qg(a,{mechanism:{data:{handler:Rc(a),target:t},handled:!1,type:"auto.browser.browserapierrors.addEventListener"}}),o])}}),ja(r,"removeEventListener",function(i){return function(s,a,o){try{const l=a.__sentry_wrapped__;l&&i.call(this,s,l,o)}catch{}return i.call(this,s,a,o)}}))}function N8e(t){return typeof t.handleEvent=="function"}function O8e(t,e,n){t&&typeof t=="object"&&"removeEventListener"in t&&typeof t.removeEventListener=="function"&&t.removeEventListener(e,n)}const k8e=()=>({name:"BrowserSession",setupOnce(){if(typeof On.document>"u"){Ro&&et.warn("Using the `browserSessionIntegration` in non-browser environments is not supported.");return}hG({ignoreDuration:!0}),pG(),W7(({from:t,to:e})=>{t!==void 0&&t!==e&&(hG({ignoreDuration:!0}),pG())})}}),I8e="GlobalHandlers",M8e=((t={})=>{const e={onerror:!0,onunhandledrejection:!0,...t};return{name:I8e,setupOnce(){Error.stackTraceLimit=50},setup(n){e.onerror&&(P8e(n),$G("onerror")),e.onunhandledrejection&&(L8e(n),$G("onunhandledrejection"))}}}),D8e=M8e;function P8e(t){Gle(e=>{const{stackParser:n,attachStacktrace:r}=mce();if(zn()!==t||Kue())return;const{msg:i,url:s,line:a,column:o,error:l}=e,u=B8e(z7(n,l||i,void 0,r,!1),s,a,o);u.level="error",Cue(u,{originalException:l,mechanism:{handled:!1,type:"auto.browser.global_handlers.onerror"}})})}function L8e(t){Wle(e=>{const{stackParser:n,attachStacktrace:r}=mce();if(zn()!==t||Kue())return;const i=$8e(e),s=Hg(i)?F8e(i):z7(n,i,void 0,r,!0);s.level="error",Cue(s,{originalException:i,mechanism:{handled:!1,type:"auto.browser.global_handlers.onunhandledrejection"}})})}function $8e(t){if(Hg(t))return t;try{if("reason"in t)return t.reason;if("detail"in t&&"reason"in t.detail)return t.detail.reason}catch{}return t}function F8e(t){return{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(t)}`}]}}}function B8e(t,e,n,r){const i=t.exception=t.exception||{},s=i.values=i.values||[],a=s[0]=s[0]||{},o=a.stacktrace=a.stacktrace||{},l=o.frames=o.frames||[],u=r,c=n,d=H8e(e)??s2();return l.length===0&&l.push({colno:u,filename:d,function:Uh,in_app:!0,lineno:c}),t}function $G(t){Ro&&et.log(`Global Handler attached: ${t}`)}function mce(){return zn()?.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}function H8e(t){if(!(!Sc(t)||t.length===0))return t.startsWith("data:")?`<${Yd(t,!1)}>`:t}const U8e=()=>({name:"HttpContext",preprocessEvent(t){if(!On.navigator&&!On.location&&!On.document)return;const e=H7(),n={...e.headers,...t.request?.headers};t.request={...e,...t.request,headers:n}}}
32),j8e="cause",z8e=5,V8e="LinkedErrors",q8e=((t={})=>{const e=t.limit||z8e,n=t.key||j8e;return{name:V8e,preprocessEvent(r,i,s){const a=s.getOptions();FOe(U7,a.stackParser,n,e,r,i)}}}),G8e=q8e;function W8e(){return Y8e()?(Ro&&x0(()=>{console.error("[Sentry] You cannot use Sentry.init() in a browser extension, see: https://docs.sentry.io/platforms/javascript/best-practices/browser-extensions/")}),!0):!1}function Y8e(){if(typeof On.window>"u")return!1;const t=On;if(t.nw||!(t.chrome||t.browser)?.runtime?.id)return!1;const n=s2(),r=["chrome-extension","moz-extension","ms-browser-extension","safari-web-extension"];return!(On===On.top&&r.some(s=>n.startsWith(`${s}://`)))}function K8e(t){return[OOe(),TOe(),XOe(),C8e(),p8e(),D8e(),G8e(),VOe(),U8e(),k8e()]}function X8e(t={}){const e=!t.skipBrowserExtensionCheck&&W8e();let n=t.defaultIntegrations==null?K8e():t.defaultIntegrations;const r={...t,enabled:e?!1:t.enabled,stackParser:ORe(t.stackParser||d8e),integrations:q4e({integrations:t.integrations,defaultIntegrations:n}),transport:t.transport||Qke};return mOe(R6e,r)}function Q8e(t){return t.split(",").some(e=>e.trim().startsWith("sentry-"))}function gce(t){try{return new URL(t,On.location.origin).href}catch{return}}function Z8e(t){return t.entryType==="resource"&&"initiatorType"in t&&typeof t.nextHopProtocol=="string"&&(t.initiatorType==="fetch"||t.initiatorType==="xmlhttprequest")}function yce(t){try{return new Headers(t)}catch{return}}const FG=new WeakMap,AN=new Map,bce={traceFetch:!0,traceXHR:!0,enableHTTPTimings:!0,trackFetchStreamPerformance:!1};function J8e(t,e){const{traceFetch:n,traceXHR:r,trackFetchStreamPerformance:i,shouldCreateSpanForRequest:s,enableHTTPTimings:a,tracePropagationTargets:o,onRequestSpanStart:l,onRequestSpanEnd:u}={...bce,...e},c=typeof s=="function"?s:g=>!0,d=g=>eIe(g,o),h={},m=t.getOptions().propagateTraceparent;n&&(t.addEventProcessor(g=>(g.type==="transaction"&&g.spans&&g.spans.forEach(b=>{if(b.op==="http.client"){const v=AN.get(b.span_id);v&&(b.timestamp=v/1e3,AN.delete(b.span_id))}}),g)),i&&a6e(g=>{if(g.response){const b=FG.get(g.response);b&&g.endTimestamp&&AN.set(b,g.endTimestamp)}}),Wue(g=>{const b=QOe(g,c,d,h,{propagateTraceparent:m,onRequestSpanEnd:u});if(g.response&&g.fetchData.__span&&FG.set(g.response,g.fetchData.__span),b){const v=gce(g.fetchData.url),E=v?Nh(v).host:void 0;b.setAttributes({"http.url":v?Yd(v):void 0,"server.address":E}),a&&BG(b),l?.(b,{headers:g.headers})}})),r&&hce(g=>{const b=tIe(g,c,d,h,m,u);b&&(a&&BG(b),l?.(b,{headers:yce(g.xhr.__sentry_xhr_v3__?.request_headers)}))})}function BG(t){const{url:e}=Ln(t).data;if(!e||typeof e!="string")return;const n=Gg("resource",({entries:r})=>{r.forEach(i=>{Z8e(i)&&i.name.endsWith(e)&&(t.setAttributes(fce(i)),setTimeout(n))})})}function eIe(t,e){const n=s2();if(n){let r,i;try{r=new URL(t,n),i=new URL(n).origin}catch{return!1}const s=r.origin===i;return e?Wd(r.toString(),e)||s&&Wd(r.pathname,e):s}else{const r=!!t.match(/^\/(?!\/)/);return e?Wd(t,e):r}}function tIe(t,e,n,r,i,s){const a=t.xhr,o=a?.[rg];if(!a||a.__sentry_own_request__||!o)return;const{url:l,method:u}=o,c=il()&&e(l);if(t.endTimestamp&&c){const E=a.__sentry_xhr_span_id__;if(!E)return;const x=r[E];x&&o.status_code!==void 0&&(rue(x,o.status_code),x.end(),s?.(x,{headers:yce(Vke(a)),error:t.error}),delete r[E]);return}const d=gce(l),h=Nh(d||l),m=Yd(vOe(l)),g=!!Qa(),b=c&&g?R0({name:`${u} ${m}`,attributes:{url:Yd(l),type:"xhr","http.method":u,"http.url":d?Yd(d):void 0,"server.address":h?.host,[Ii]:"auto.http.browser",[kc]:"http.client",...h?.search&&{"http.query":h?.search},...h?.hash&&{"http.fragment":h?.hash}}}):new ef;a.__sentry_xhr_span_id__=b.spanContext().spanId,r[a.__sentry_xhr_span_id__]=b,n(l)&&nIe(a,il()&&g?b:void 0,i);const v=zn();return v&&v.emit("beforeOutgoingRequestSpan",b,t),b}function nIe(t,e,n){const{"sentry-trace":r,baggage:i,traceparent:s}=jue({span:e,propagateTraceparent:n});r&&rIe(t,r,i,s)}function rIe(t,e,n,r){const i=t.__sentry_xhr_v3__?.request_headers;if(!(i?.["sentry-trace"]||!t.setRequestHeader))try{if(t.setRequestHeader("sentry-trace",e),r&&!i?.traceparent&&t.setRequestHeader("traceparent",r),n){const s=i?.baggage;(!s||!Q8e(s))&&t.setRequestHeader("baggage",n)}}catch{}}function iIe(){On.document?On.document.addEventListener("visibilitychange",()=>{const t=Qa();if(!t)return;const e=Ds(t);if(On.document.hidden&&e){const n="cancelled",{op:r,status:i}=Ln(e);Ro&&et.log(`[Tracing] Transaction: ${n} -> since tab moved to the background, op: ${r}`),i||e.setStatus({code:Ci,message:n}),e.setAttribute("sentry.cancellation_reason","document.hidden"),e.end()}}):Ro&&et.warn("[Tracing] Could not set up background tab detection due to lack of global document")}const sIe=3600,vce="sentry_previous_trace",aIe="sentry.previous_trace";function oIe(t,{linkPreviousTrace:e,consistentTraceSampling:n}){const r=e==="session-storage";let i=r?cIe():void 0;t.on("spanStart",a=>{if(Ds(a)!==a)return;const o=Xn().getPropagationContext();i=lIe(i,a,o),r&&uIe(i)});let s=!0;n&&t.on("beforeSampling",a=>{if(!i)return;const o=Xn(),l=o.getPropagationContext();if(s&&l.parentSpanId){s=!1;return}o.setPropagationContext({...l,dsc:{...l.dsc,sample_rate:String(i.sampleRate),sampled:String($D(i.spanContext))},sampleRand:i.sampleRand}),a.parentSampled=$D(i.spanContext),a.parentSampleRate=i.sampleRate,a.spanAttributes={...a.spanAttributes,[nue]:i.sampleRate}})}function lIe(t,e,n){const r=Ln(e);function i(){try{return Number(n.dsc?.sample_rate)??Number(r.data?.[N7])}catch{return 0}}const s={spanContext:e.spanContext(),startTimestamp:r.start_timestamp,sampleRate:i(),sampleRand:n.sampleRand};if(!t)return s;const a=t.spanContext;return a.traceId===r.trace_id?t:(Date.now()/1e3-t.startTimestamp<=sIe&&(Ro&&et.log(`Adding previous_trace \`${JSON.stringify(a)}\` link to span \`${JSON.stringify({op:r.op,...e.spanContext()})}\``),e.addLink({context:a,attributes:{[iNe]:"previous_trace"}}),e.setAttribute(aIe,`${a.traceId}-${a.spanId}-${$D(a)?1:0}
32`)),s)}function uIe(t){try{On.sessionStorage.setItem(vce,JSON.stringify(t))}catch(e){Ro&&et.warn("Could not store previous trace in sessionStorage",e)}}function cIe(){try{const t=On.sessionStorage?.getItem(vce);return JSON.parse(t)}catch{return}}function $D(t){return t.traceFlags===1}const dIe="BrowserTracing",fIe={...yw,instrumentNavigation:!0,instrumentPageLoad:!0,markBackgroundSpan:!0,enableLongTask:!0,enableLongAnimationFrame:!0,enableInp:!0,enableElementTiming:!0,ignoreResourceSpans:[],ignorePerformanceApiSpans:[],detectRedirects:!0,linkPreviousTrace:"in-memory",consistentTraceSampling:!1,enableReportPageLoaded:!1,_experiments:{},...bce},zkt=((t={})=>{const e={name:void 0,source:void 0},n=On.document,{enableInp:r,enableElementTiming:i,enableLongTask:s,enableLongAnimationFrame:a,_experiments:{enableInteractions:o,enableStandaloneClsSpans:l,enableStandaloneLcpSpans:u},beforeStartSpan:c,idleTimeout:d,finalTimeout:h,childSpanTimeout:m,markBackgroundSpan:g,traceFetch:b,traceXHR:v,trackFetchStreamPerformance:E,shouldCreateSpanForRequest:x,enableHTTPTimings:_,ignoreResourceSpans:S,ignorePerformanceApiSpans:A,instrumentPageLoad:R,instrumentNavigation:T,detectRedirects:O,linkPreviousTrace:I,consistentTraceSampling:D,enableReportPageLoaded:P,onRequestSpanStart:B,onRequestSpanEnd:L}={...fIe,...t};let $,q,F;function G(H,K,V=!0){const Y=K.op==="pageload",Z=K.name,W=c?c(K):K,Q=W.attributes||{};if(Z!==W.name&&(Q[Zl]="custom",W.attributes=Q),!V){const J=Cp();R0({...W,startTime:J}).end(J);return}e.name=W.name,e.source=Q[Zl];const re=Sue(W,{idleTimeout:d,finalTimeout:h,childSpanTimeout:m,disableAutoFinish:Y,beforeSpanEnd:J=>{$?.(),bke(J,{recordClsOnPageloadSpan:!l,recordLcpOnPageloadSpan:!u,ignoreResourceSpans:S,ignorePerformanceApiSpans:A}),UG(H,void 0);const ae=Xn(),ge=ae.getPropagationContext();ae.setPropagationContext({...ge,traceId:re.spanContext().traceId,sampled:gf(re),dsc:Jd(J)}),Y&&(F=void 0)},trimIdleSpanEndTimestamp:!P});Y&&P&&(F=re),UG(H,re);function se(){n&&["interactive","complete"].includes(n.readyState)&&H.emit("idleSpanEnableAutoFinish",re)}Y&&!P&&n&&(n.addEventListener("readystatechange",()=>{se()}),se())}return{name:dIe,setup(H){if(DNe(),$=dke({recordClsStandaloneSpans:l||!1,recordLcpStandaloneSpans:u||!1,client:H}),r&&Gke(),i&&Oke(),a&&Nn.PerformanceObserver&&PerformanceObserver.supportedEntryTypes&&PerformanceObserver.supportedEntryTypes.includes("long-animation-frame")?hke():s&&fke(),o&&pke(),O&&n){const V=()=>{q=ji()};addEventListener("click",V,{capture:!0}),addEventListener("keydown",V,{capture:!0,passive:!0})}function K(){const V=Gb(H);V&&!Ln(V).timestamp&&(Ro&&et.log(`[Tracing] Finishing current active span with op: ${Ln(V).op}`),V.setAttribute(jb,"cancelled"),V.end())}H.on("startNavigationSpan",(V,Y)=>{if(zn()!==H)return;if(Y?.isRedirect){Ro&&et.warn("[Tracing] Detected redirect, navigation span will not be the root span, but a child span."),G(H,{op:"navigation.redirect",...V},!1);return}q=void 0,K(),zc().setPropagationContext({traceId:Oc(),sampleRand:Math.random(),propagationSpanId:il()?void 0:Cc()});const Z=Xn();Z.setPropagationContext({traceId:Oc(),sampleRand:Math.random(),propagationSpanId:il()?void 0:Cc()}),Z.setSDKProcessingMetadata({normalizedRequest:void 0}),G(H,{op:"navigation",...V,parentSpan:null,forceTransaction:!0})}),H.on("startPageLoadSpan",(V,Y={})=>{if(zn()!==H)return;K();const Z=Y.sentryTrace||HG("sentry-trace"),W=Y.baggage||HG("baggage"),Q=CNe(Z,W),re=Xn();re.setPropagationContext(Q),il()||(re.getPropagationContext().propagationSpanId=Cc()),re.setSDKProcessingMetadata({normalizedRequest:H7()}),G(H,{op:"pageload",...V})}),H.on("endPageloadSpan",()=>{P&&F&&(F.setAttribute(jb,"reportPageLoaded"),F.end())})},afterAllSetup(H){let K=s2();if(I!=="off"&&oIe(H,{linkPreviousTrace:I,consistentTraceSampling:D}),On.location){if(R){const V=Xa();hIe(H,{name:On.location.pathname,startTime:V?V/1e3:void 0,attributes:{[Zl]:"url",[Ii]:"auto.pageload.browser"}})}T&&W7(({to:V,from:Y})=>{if(Y===void 0&&K?.indexOf(V)!==-1){K=void 0;return}K=void 0;const Z=Hue(V),W=Gb(H),Q=W&&O&&gIe(W,q);pIe(H,{name:Z?.pathname||On.location.pathname,attributes:{[Zl]:"url",[Ii]:"auto.navigation.browser"}},{url:V,isRedirect:Q})})}g&&iIe(),o&&mIe(H,d,h,m,e),r&&Kke(),J8e(H,{traceFetch:b,traceXHR:v,trackFetchStreamPerformance:E,tracePropagationTargets:H.getOptions().tracePropagationTargets,shouldCreateSpanForRequest:x,enableHTTPTimings:_,onRequestSpanStart:B,onRequestSpanEnd:L})}}});function hIe(t,e,n){t.emit("startPageLoadSpan",e,n),Xn().setTransactionName(e.name);const r=Gb(t);return r&&t.emit("afterStartPageLoadSpan",r),r}function pIe(t,e,n){const{url:r,isRedirect:i}=n||{};t.emit("beforeStartNavigationSpan",e,{isRedirect:i}),t.emit("startNavigationSpan",e,{isRedirect:i});const s=Xn();return s.setTransactionName(e.name),r&&!i&&s.setSDKProcessingMetadata({normalizedRequest:{...H7(),url:r}}),Gb(t)}function HG(t){return On.document?.querySelector(`meta[name=${t}]`)?.getAttribute("content")||void 0}function mIe(t,e,n,r,i){const s=On.document;let a;const o=()=>{const l="ui.action.click",u=Gb(t);if(u){const c=Ln(u).op;
vendor: 7,346 bytes, line 32
32if(["navigation","pageload"].includes(c)){Ro&&et.warn(`[Tracing] Did not create ${l} span because a pageload or navigation span is in progress.`);return}}if(a&&(a.setAttribute(jb,"interactionInterrupted"),a.end(),a=void 0),!i.name){Ro&&et.warn(`[Tracing] Did not create ${l} transaction because _latestRouteName is missing.`);return}a=Sue({name:i.name,op:l,attributes:{[Zl]:i.source||"url"}},{idleTimeout:e,finalTimeout:n,childSpanTimeout:r})};s&&addEventListener("click",o,{capture:!0})}const Ece="_sentry_idleSpan";function Gb(t){return t[Ece]}function UG(t,e){da(t,Ece,e)}const jG=1.5;function gIe(t,e){const n=Ln(t),r=Cp(),i=n.start_timestamp;return!(r-i>jG||e&&r-e<=jG)}function Vkt(t){const e={...t};return Uue(e,"react"),$4e("react",{version:C.version}),X8e(e)}const Ht=t=>typeof t=="string",oy=()=>{let t,e;const n=new Promise((r,i)=>{t=r,e=i});return n.resolve=t,n.reject=e,n},zG=t=>t==null?"":""+t,yIe=(t,e,n)=>{t.forEach(r=>{e[r]&&(n[r]=e[r])})},bIe=/###/g,VG=t=>t&&t.indexOf("###")>-1?t.replace(bIe,"."):t,qG=t=>!t||Ht(t),lb=(t,e,n)=>{const r=Ht(e)?e.split("."):e;let i=0;for(;i<r.length-1;){if(qG(t))return{};const s=VG(r[i]);!t[s]&&n&&(t[s]=new n),Object.prototype.hasOwnProperty.call(t,s)?t=t[s]:t={},++i}return qG(t)?{}:{obj:t,k:VG(r[i])}},GG=(t,e,n)=>{const{obj:r,k:i}=lb(t,e,Object);if(r!==void 0||e.length===1){r[i]=n;return}let s=e[e.length-1],a=e.slice(0,e.length-1),o=lb(t,a,Object);for(;o.obj===void 0&&a.length;)s=`${a[a.length-1]}.${s}`,a=a.slice(0,a.length-1),o=lb(t,a,Object),o?.obj&&typeof o.obj[`${o.k}.${s}`]<"u"&&(o.obj=void 0);o.obj[`${o.k}.${s}`]=n},vIe=(t,e,n,r)=>{const{obj:i,k:s}=lb(t,e,Object);i[s]=i[s]||[],i[s].push(n)},bS=(t,e)=>{const{obj:n,k:r}=lb(t,e);if(n&&Object.prototype.hasOwnProperty.call(n,r))return n[r]},EIe=(t,e,n)=>{const r=bS(t,n);return r!==void 0?r:bS(e,n)},_ce=(t,e,n)=>{for(const r in e)r!=="__proto__"&&r!=="constructor"&&(r in t?Ht(t[r])||t[r]instanceof String||Ht(e[r])||e[r]instanceof String?n&&(t[r]=e[r]):_ce(t[r],e[r],n):t[r]=e[r]);return t},km=t=>t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var _Ie={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};const xIe=t=>Ht(t)?t.replace(/[&<>"'\/]/g,e=>_Ie[e]):t;class wIe{constructor(e){this.capacity=e,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(e){const n=this.regExpMap.get(e);if(n!==void 0)return n;const r=new RegExp(e);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(e,r),this.regExpQueue.push(e),r}}const SIe=[" ",",","?","!",";"],CIe=new wIe(20),TIe=(t,e,n)=>{e=e||"",n=n||"";const r=SIe.filter(a=>e.indexOf(a)<0&&n.indexOf(a)<0);if(r.length===0)return!0;const i=CIe.getRegExp(`(${r.map(a=>a==="?"?"\\?":a).join("|")})`);let s=!i.test(t);if(!s){const a=t.indexOf(n);a>0&&!i.test(t.substring(0,a))&&(s=!0)}return s},FD=(t,e,n=".")=>{if(!t)return;if(t[e])return Object.prototype.hasOwnProperty.call(t,e)?t[e]:void 0;const r=e.split(n);let i=t;for(let s=0;s<r.length;){if(!i||typeof i!="object")return;let a,o="";for(let l=s;l<r.length;++l)if(l!==s&&(o+=n),o+=r[l],a=i[o],a!==void 0){if(["string","number","boolean"].indexOf(typeof a)>-1&&l<r.length-1)continue;s+=l-s+1;break}i=a}return i},Wb=t=>t?.replace("_","-"),AIe={type:"logger",log(t){this.output("log",t)},warn(t){this.output("warn",t)},error(t){this.output("error",t)},output(t,e){console?.[t]?.apply?.(console,e)}};class vS{constructor(e,n={}){this.init(e,n)}init(e,n={}){this.prefix=n.prefix||"i18next:",this.logger=e||AIe,this.options=n,this.debug=n.debug}log(...e){return this.forward(e,"log","",!0)}warn(...e){return this.forward(e,"warn","",!0)}error(...e){return this.forward(e,"error","")}deprecate(...e){return this.forward(e,"warn","WARNING DEPRECATED: ",!0)}forward(e,n,r,i){return i&&!this.debug?null:(Ht(e[0])&&(e[0]=`${r}${this.prefix} ${e[0]}`),this.logger[n](e))}create(e){return new vS(this.logger,{prefix:`${this.prefix}:${e}:`,...this.options})}clone(e){return e=e||this.options,e.prefix=e.prefix||this.prefix,new vS(this.logger,e)}}var Jl=new vS;class _T{constructor(){this.observers={}}on(e,n){return e.split(" ").forEach(r=>{this.observers[r]||(this.observers[r]=new Map);const i=this.observers[r].get(n)||0;this.observers[r].set(n,i+1)}),this}off(e,n){if(this.observers[e]){if(!n){delete this.observers[e];return}this.observers[e].delete(n)}}emit(e,...n){this.observers[e]&&Array.from(this.observers[e].entries()).forEach(([i,s])=>{for(let a=0;a<s;a++)i(...n)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(([i,s])=>{for(let a=0;a<s;a++)i.apply(i,[e,...n])})}}class WG extends _T{constructor(e,n={ns:["translation"],defaultNS:"translation"}){super(),this.data=e||{},this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}removeNamespaces(e){const n=this.options.ns.indexOf(e);n>-1&&this.options.ns.splice(n,1)}getResource(e,n,r,i={}){const s=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator,a=i.ignoreJSONStructure!==void 0?i.ignoreJSONStructure:this.options.ignoreJSONStructure;let o;e.indexOf(".")>-1?o=e.split("."):(o=[e,n],r&&(Array.isArray(r)?o.push(...r):Ht(r)&&s?o.push(...r.split(s)):o.push(r)));const l=bS(this.data,o);return!l&&!n&&!r&&e.indexOf(".")>-1&&(e=o[0],n=o[1],r=o.slice(2).join(".")),l||!a||!Ht(r)?l:FD(this.data?.[e]?.[n],r,s)}addResource(e,n,r,i,s={silent:!1}){const a=s.keySeparator!==void 0?s.keySeparator:this.options.keySeparator;let o=[e,n];r&&(o=o.concat(a?r.split(a):r)),e.indexOf(".")>-1&&(o=e.split("."),i=n,n=o[1]),this.addNamespaces(n),GG(this.data,o,i),s.silent||this.emit("added",e,n,r,i)}addResources(e,n,r,i={silent:!1}){for(const s in r)(Ht(r[s])||Array.isArray(r[s]))&&this.addResource(e,n,s,r[s],{silent:!0});i.silent||this.emit("added",e,n,r)}addResourceBundle(e,n,r,i,s,a={silent:!1,skipCopy:!1}){let o=[e,n];e.indexOf(".")>-1&&(o=e.split("."),i=r,r=n,n=o[1]),this.addNamespaces(n);let l=bS(this.data,o)||{};a.skipCopy||(r=JSON.parse(JSON.stringify(r))),i?_ce(l,r,s):l={...l,...r},GG(this.data,o,l),a.silent||this.emit("added",e,n,r)}removeResourceBundle(e,n){this.hasResourceBundle(e,n)&&delete this.data[e][n],this.removeNamespaces(n),this.emit("removed",e,n)}hasResourceBundle(e,n){return this.getResource(e,n)!==void 0}getResourceBundle(e,n){return n||(n=this.options.defaultNS),this.getResource(e,n)}getDataByLanguage(e){return this.data[e]}hasLanguageSomeTranslations(e){const n=this.getDataByLanguage(e);return!!(n&&Object.keys(n)||[]).find(i=>n[i]&&Object.keys(n[i]).length>0)}toJSON(){return this.data}}var xce={processors:{},addPostProcessor(t){this.processors[t.name]=t},handle(t,e,n,r,i){return t.forEach(s=>{e=this.processors[s]?.process(e,n,r,i)??e}),e}};const wce=Symbol("i18next/PATH_KEY");function RIe(){const t=[],e=Object.create(null);let n;return e.get=(r,i)=>(n?.revoke?.(),i===wce?t:(t.push(i),n=Proxy.revocable(r,e),n.proxy)),Proxy.revocable(Object.create(null),e).proxy}function ES(t,e){const{[wce]:n}=t(RIe());return n.join(e?.keySeparator??".")}const YG={},RN=t=>!Ht(t)&&typeof t!="boolean"&&typeof t!="number";class _S extends _T{constructor(e,n={}){super(),yIe(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","
32i18nFormat","utils"],e,this),this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=Jl.create("translator")}changeLanguage(e){e&&(this.language=e)}exists(e,n={interpolation:{}}){const r={...n};if(e==null)return!1;const i=this.resolve(e,r);if(i?.res===void 0)return!1;const s=RN(i.res);return!(r.returnObjects===!1&&s)}extractFromKey(e,n){let r=n.nsSeparator!==void 0?n.nsSeparator:this.options.nsSeparator;r===void 0&&(r=":");const i=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator;let s=n.ns||this.options.defaultNS||[];const a=r&&e.indexOf(r)>-1,o=!this.options.userDefinedKeySeparator&&!n.keySeparator&&!this.options.userDefinedNsSeparator&&!n.nsSeparator&&!TIe(e,r,i);if(a&&!o){const l=e.match(this.interpolator.nestingRegexp);if(l&&l.length>0)return{key:e,namespaces:Ht(s)?[s]:s};const u=e.split(r);(r!==i||r===i&&this.options.ns.indexOf(u[0])>-1)&&(s=u.shift()),e=u.join(i)}return{key:e,namespaces:Ht(s)?[s]:s}}translate(e,n,r){let i=typeof n=="object"?{...n}:n;if(typeof i!="object"&&this.options.overloadTranslationOptionHandler&&(i=this.options.overloadTranslationOptionHandler(arguments)),typeof i=="object"&&(i={...i}),i||(i={}),e==null)return"";typeof e=="function"&&(e=ES(e,{...this.options,...i})),Array.isArray(e)||(e=[String(e)]);const s=i.returnDetails!==void 0?i.returnDetails:this.options.returnDetails,a=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator,{key:o,namespaces:l}=this.extractFromKey(e[e.length-1],i),u=l[l.length-1];let c=i.nsSeparator!==void 0?i.nsSeparator:this.options.nsSeparator;c===void 0&&(c=":");const d=i.lng||this.language,h=i.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(d?.toLowerCase()==="cimode")return h?s?{res:`${u}${c}${o}`,usedKey:o,exactUsedKey:o,usedLng:d,usedNS:u,usedParams:this.getUsedParamsDetails(i)}:`${u}${c}${o}`:s?{res:o,usedKey:o,exactUsedKey:o,usedLng:d,usedNS:u,usedParams:this.getUsedParamsDetails(i)}:o;const m=this.resolve(e,i);let g=m?.res;const b=m?.usedKey||o,v=m?.exactUsedKey||o,E=["[object Number]","[object Function]","[object RegExp]"],x=i.joinArrays!==void 0?i.joinArrays:this.options.joinArrays,_=!this.i18nFormat||this.i18nFormat.handleAsObject,S=i.count!==void 0&&!Ht(i.count),A=_S.hasDefaultValue(i),R=S?this.pluralResolver.getSuffix(d,i.count,i):"",T=i.ordinal&&S?this.pluralResolver.getSuffix(d,i.count,{ordinal:!1}):"",O=S&&!i.ordinal&&i.count===0,I=O&&i[`defaultValue${this.options.pluralSeparator}zero`]||i[`defaultValue${R}`]||i[`defaultValue${T}`]||i.defaultValue;let D=g;_&&!g&&A&&(D=I);const P=RN(D),B=Object.prototype.toString.apply(D);if(_&&D&&P&&E.indexOf(B)<0&&!(Ht(x)&&Array.isArray(D))){if(!i.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const L=this.options.returnedObjectHandler?this.options.returnedObjectHandler(b,D,{...i,ns:l}):`key '${o} (${this.language})' returned an object instead of string.`;return s?(m.res=L,m.usedParams=this.getUsedParamsDetails(i),m):L}if(a){const L=Array.isArray(D),$=L?[]:{},q=L?v:b;for(const F in D)if(Object.prototype.hasOwnProperty.call(D,F)){const G=`${q}${a}${F}`;A&&!g?$[F]=this.translate(G,{...i,defaultValue:RN(I)?I[F]:void 0,joinArrays:!1,ns:l}):$[F]=this.translate(G,{...i,joinArrays:!1,ns:l}),$[F]===G&&($[F]=D[F])}g=$}}else if(_&&Ht(x)&&Array.isArray(g))g=g.join(x),g&&(g=this.extendTranslation(g,e,i,r));else{let L=!1,$=!1;!this.isValidLookup(g)&&A&&(L=!0,g=I),this.isValidLookup(g)||($=!0,g=o);const F=(i.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&$?void 0:g,G=A&&I!==g&&this.options.updateMissing;if($||L||G){if(this.logger.log(G?"updateKey":"missingKey",d,u,o,G?I:g),a){const Y=this.resolve(o,{...i,keySeparator:!1});Y&&Y.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let H=[];const K=this.languageUtils.getFallbackCodes(this.options.fallbackLng,i.lng||this.language);if(this.options.saveMissingTo==="fallback"&&K&&K[0])for(let Y=0;Y<K.length;Y++)H.push(K[Y]);else this.options.saveMissingTo==="all"?H=this.languageUtils.toResolveHierarchy(i.lng||this.language):H.push(i.lng||this.language);const V=(Y,Z,W)=>{const Q=A&&W!==g?W:F;this.options.missingKeyHandler?this.options.missingKeyHandler(Y,u,Z,Q,G,i):this.backendConnector?.saveMissing&&this.backendConnector.saveMissing(Y,u,Z,Q,G,i),this.emit
vendor: 8,188 bytes, line 32
32("missingKey",Y,u,Z,g)};this.options.saveMissing&&(this.options.saveMissingPlurals&&S?H.forEach(Y=>{const Z=this.pluralResolver.getSuffixes(Y,i);O&&i[`defaultValue${this.options.pluralSeparator}zero`]&&Z.indexOf(`${this.options.pluralSeparator}zero`)<0&&Z.push(`${this.options.pluralSeparator}zero`),Z.forEach(W=>{V([Y],o+W,i[`defaultValue${W}`]||I)})}):V(H,o,I))}g=this.extendTranslation(g,e,i,m,r),$&&g===o&&this.options.appendNamespaceToMissingKey&&(g=`${u}${c}${o}`),($||L)&&this.options.parseMissingKeyHandler&&(g=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${u}${c}${o}`:o,L?g:void 0,i))}return s?(m.res=g,m.usedParams=this.getUsedParamsDetails(i),m):g}extendTranslation(e,n,r,i,s){if(this.i18nFormat?.parse)e=this.i18nFormat.parse(e,{...this.options.interpolation.defaultVariables,...r},r.lng||this.language||i.usedLng,i.usedNS,i.usedKey,{resolved:i});else if(!r.skipInterpolation){r.interpolation&&this.interpolator.init({...r,interpolation:{...this.options.interpolation,...r.interpolation}});const l=Ht(e)&&(r?.interpolation?.skipOnVariables!==void 0?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let u;if(l){const d=e.match(this.interpolator.nestingRegexp);u=d&&d.length}let c=r.replace&&!Ht(r.replace)?r.replace:r;if(this.options.interpolation.defaultVariables&&(c={...this.options.interpolation.defaultVariables,...c}),e=this.interpolator.interpolate(e,c,r.lng||this.language||i.usedLng,r),l){const d=e.match(this.interpolator.nestingRegexp),h=d&&d.length;u<h&&(r.nest=!1)}!r.lng&&i&&i.res&&(r.lng=this.language||i.usedLng),r.nest!==!1&&(e=this.interpolator.nest(e,(...d)=>s?.[0]===d[0]&&!r.context?(this.logger.warn(`It seems you are nesting recursively key: ${d[0]} in key: ${n[0]}`),null):this.translate(...d,n),r)),r.interpolation&&this.interpolator.reset()}const a=r.postProcess||this.options.postProcess,o=Ht(a)?[a]:a;return e!=null&&o?.length&&r.applyPostProcessor!==!1&&(e=xce.handle(o,e,n,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...i,usedParams:this.getUsedParamsDetails(r)},...r}:r,this)),e}resolve(e,n={}){let r,i,s,a,o;return Ht(e)&&(e=[e]),e.forEach(l=>{if(this.isValidLookup(r))return;const u=this.extractFromKey(l,n),c=u.key;i=c;let d=u.namespaces;this.options.fallbackNS&&(d=d.concat(this.options.fallbackNS));const h=n.count!==void 0&&!Ht(n.count),m=h&&!n.ordinal&&n.count===0,g=n.context!==void 0&&(Ht(n.context)||typeof n.context=="number")&&n.context!=="",b=n.lngs?n.lngs:this.languageUtils.toResolveHierarchy(n.lng||this.language,n.fallbackLng);d.forEach(v=>{this.isValidLookup(r)||(o=v,!YG[`${b[0]}-${v}`]&&this.utils?.hasLoadedNamespace&&!this.utils?.hasLoadedNamespace(o)&&(YG[`${b[0]}-${v}`]=!0,this.logger.warn(`key "${i}" for languages "${b.join(", ")}" won't get resolved as namespace "${o}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),b.forEach(E=>{if(this.isValidLookup(r))return;a=E;const x=[c];if(this.i18nFormat?.addLookupKeys)this.i18nFormat.addLookupKeys(x,c,E,v,n);else{let S;h&&(S=this.pluralResolver.getSuffix(E,n.count,n));const A=`${this.options.pluralSeparator}zero`,R=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(h&&(n.ordinal&&S.indexOf(R)===0&&x.push(c+S.replace(R,this.options.pluralSeparator)),x.push(c+S),m&&x.push(c+A)),g){const T=`${c}${this.options.contextSeparator||"_"}${n.context}`;x.push(T),h&&(n.ordinal&&S.indexOf(R)===0&&x.push(T+S.replace(R,this.options.pluralSeparator)),x.push(T+S),m&&x.push(T+A))}}let _;for(;_=x.pop();)this.isValidLookup(r)||(s=_,r=this.getResource(E,v,_,n))}))})}),{res:r,usedKey:i,exactUsedKey:s,usedLng:a,usedNS:o}}isValidLookup(e){return e!==void 0&&!(!this.options.returnNull&&e===null)&&!(!this.options.returnEmptyString&&e==="")}getResource(e,n,r,i={}){return this.i18nFormat?.getResource?this.i18nFormat.getResource(e,n,r,i):this.resourceStore.getResource(e,n,r,i)}getUsedParamsDetails(e={}){const n=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],r=e.replace&&!Ht(e.replace);let i=r?e.replace:e;if(r&&typeof e.count<"u"&&(i.count=e.count),this.options.interpolation.defaultVariables&&(i={...this.options.interpolation.defaultVariables,...i}),!r){i={...i};for(const s of n)delete i[s]}return i}static hasDefaultValue(e){const n="defaultValue";for(const r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&n===r.substring(0,n.length)&&e[r]!==void 0)return!0;return!1}}class KG{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Jl.create("languageUtils")}getScriptPartFromCode(e){if(e=Wb(e),!e||e.indexOf("-")<0)return null;const n=e.split("-");return n.length===2||(n.pop(),n[n.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(n.join("-"))}getLanguagePartFromCode(e){if(e=Wb(e),!e||e.indexOf("-")<0)return e;const n=e.split("-");return this.formatLanguageCode(n[0])}formatLanguageCode(e){if(Ht(e)&&e.indexOf("-")>-1){let n;try{n=Intl.getCanonicalLocales(e)[0]}catch{}return n&&this.options.lowerCaseLng&&(n=n.toLowerCase()),n||(this.options.lowerCaseLng?e.toLowerCase():e)}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}isSupportedCode(e){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}getBestMatchFromCodes(e){if(!e)return null;let n;return e.forEach(r=>{if(n)return;const i=this.formatLanguageCode(r);(!this.options.supportedLngs||this.isSupportedCode(i))&&(n=i)}),!n&&this.options.supportedLngs&&e.forEach(r=>{if(n)return;const i=this.getScriptPartFromCode(r);if(this.isSupportedCode(i))return n=i;const s=this.getLanguagePartFromCode(r);if(this.isSupportedCode(s))return n=s;n=this.options.supportedLngs.find(a=>{if(a===s)return a;if(!(a.indexOf("-")<0&&s.indexOf("-")<0)&&(a.indexOf("-")>0&&s.indexOf("-")<0&&a.substring(0,a.indexOf("-"))===s||a.indexOf(s)===0&&s.length>1))return a})}),n||(n=this.getFallbackCodes(this.options.fallbackLng)[0]),n}getFallbackCodes(e,n){if(!e)return[];if(typeof e=="function"&&(e=e(n)),Ht(e)&&(e=[e]),Array.isArray(e))return e;if(!n)return e.default||[];let r=e[n];return r||(r=e[this.getScriptPartFromCode(n)]),r||(r=e[this.formatLanguageCode(n)]),r||(r=e[this.getLanguagePartFromCode(n)]),r||(r=e.default),r||[]}toResolveHierarchy(e,n){const r=this.getFallbackCodes((n===!1?[]:n)||this.options.fallbackLng||[],e),i=[],s=a=>{a&&(this.isSupportedCode(a)?i.push(a):this.logger.warn(`rejecting language code not found in supportedLngs: ${a}`))};return Ht(e)&&(e.indexOf("-")>-1||e.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&s(this.formatLanguageCode(e)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&s(this.getScriptPartFromCode(e)),this.options.load!=="currentOnly"&&s(this.getLanguagePartFromCode(e))):Ht(e)&&s(this.formatLanguageCode(e)),r.forEach(a=>{i.indexOf(a)<0&&s(this.formatLanguageCode(a))}),i}}const XG={zero:0,one:1,two:2,few:3,many:4,other:5},QG={select:t=>t===1?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class NIe{constructor(e,n={}){this.languageUtils=e,this.options=n,this.logger=Jl.create("pluralResolver"),this.pluralRulesCache={}}clearCache(){this.pluralRulesCache={}}getRule(e,n={}){const r=Wb(e==="dev"?"en":e),i=n.ordinal?"ordinal":"cardinal",s=JSON.stringify({cleanedCode:r,type:i});if(s in this.pluralRulesCache)return this.pluralRulesCache[s];let a;try{a=new Intl.PluralRules(r,{type:i})}catch{if(!Intl)return this.logger.error("No Intl support, please use an Intl polyfill!"),QG;if(!e.match(/-|_/))return QG;const l=this.languageUtils.getLanguagePartFromCode(e);a=this.getRule(l,n)}return this.pluralRulesCache[s]=a,a}needsPlural(e,n={}){let r=this.getRule(e,n);return r||(r=this.getRule("dev",n)),r?.resolvedOptions().pluralCategories.length>1}getPluralFormsOfKey(e,n,r={}
vendor: 1,131 bytes, line 32
32){return this.getSuffixes(e,r).map(i=>`${n}${i}`)}getSuffixes(e,n={}){let r=this.getRule(e,n);return r||(r=this.getRule("dev",n)),r?r.resolvedOptions().pluralCategories.sort((i,s)=>XG[i]-XG[s]).map(i=>`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${i}`):[]}getSuffix(e,n,r={}){const i=this.getRule(e,r);return i?`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${i.select(n)}`:(this.logger.warn(`no plural rule found for: ${e}`),this.getSuffix("dev",n,r))}}const ZG=(t,e,n,r=".",i=!0)=>{let s=EIe(t,e,n);return!s&&i&&Ht(n)&&(s=FD(t,n,r),s===void 0&&(s=FD(e,n,r))),s},NN=t=>t.replace(/\$/g,"$$$$");class JG{constructor(e={}){this.logger=Jl.create("interpolator"),this.options=e,this.format=e?.interpolation?.format||(n=>n),this.init(e)}init(e={}){e.interpolation||(e.interpolation={escapeValue:!0});const{escape:n,escapeValue:r,useRawValueToEscape:i,prefix:s,prefixEscaped:a,suffix:o,suffixEscaped:l,formatSeparator:u,unescapeSuffix:c,unescapePrefix:d,nestingPrefix:h,nestingPrefixEscaped:m,nestingSuffix:g,nestingSuffixEscaped:b,nestingOptionsSeparator:v,maxReplaces:E,alwaysFormat:
vendor: 19,502 bytes, line 32
32x}=e.interpolation;this.escape=n!==void 0?n:xIe,this.escapeValue=r!==void 0?r:!0,this.useRawValueToEscape=i!==void 0?i:!1,this.prefix=s?km(s):a||"{{",this.suffix=o?km(o):l||"}}",this.formatSeparator=u||",",this.unescapePrefix=c?"":d||"-",this.unescapeSuffix=this.unescapePrefix?"":c||"",this.nestingPrefix=h?km(h):m||km("$t("),this.nestingSuffix=g?km(g):b||km(")"),this.nestingOptionsSeparator=v||",",this.maxReplaces=E||1e3,this.alwaysFormat=x!==void 0?x:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const e=(n,r)=>n?.source===r?(n.lastIndex=0,n):new RegExp(r,"g");this.regexp=e(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=e(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=e(this.nestingRegexp,`${this.nestingPrefix}((?:[^()"']+|"[^"]*"|'[^']*'|\\((?:[^()]|"[^"]*"|'[^']*')*\\))*?)${this.nestingSuffix}`)}interpolate(e,n,r,i){let s,a,o;const l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},u=m=>{if(m.indexOf(this.formatSeparator)<0){const E=ZG(n,l,m,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(E,void 0,r,{...i,...n,interpolationkey:m}):E}const g=m.split(this.formatSeparator),b=g.shift().trim(),v=g.join(this.formatSeparator).trim();return this.format(ZG(n,l,b,this.options.keySeparator,this.options.ignoreJSONStructure),v,r,{...i,...n,interpolationkey:b})};this.resetRegExp();const c=i?.missingInterpolationHandler||this.options.missingInterpolationHandler,d=i?.interpolation?.skipOnVariables!==void 0?i.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:m=>NN(m)},{regex:this.regexp,safeValue:m=>this.escapeValue?NN(this.escape(m)):NN(m)}].forEach(m=>{for(o=0;s=m.regex.exec(e);){const g=s[1].trim();if(a=u(g),a===void 0)if(typeof c=="function"){const v=c(e,s,i);a=Ht(v)?v:""}else if(i&&Object.prototype.hasOwnProperty.call(i,g))a="";else if(d){a=s[0];continue}else this.logger.warn(`missed to pass in variable ${g} for interpolating ${e}`),a="";else!Ht(a)&&!this.useRawValueToEscape&&(a=zG(a));const b=m.safeValue(a);if(e=e.replace(s[0],b),d?(m.regex.lastIndex+=a.length,m.regex.lastIndex-=s[0].length):m.regex.lastIndex=0,o++,o>=this.maxReplaces)break}}),e}nest(e,n,r={}){let i,s,a;const o=(l,u)=>{const c=this.nestingOptionsSeparator;if(l.indexOf(c)<0)return l;const d=l.split(new RegExp(`${c}[ ]*{`));let h=`{${d[1]}`;l=d[0],h=this.interpolate(h,a);const m=h.match(/'/g),g=h.match(/"/g);((m?.length??0)%2===0&&!g||g.length%2!==0)&&(h=h.replace(/'/g,'"'));try{a=JSON.parse(h),u&&(a={...u,...a})}catch(b){return this.logger.warn(`failed parsing options string in nesting for key ${l}`,b),`${l}${c}${h}`}return a.defaultValue&&a.defaultValue.indexOf(this.prefix)>-1&&delete a.defaultValue,l};for(;i=this.nestingRegexp.exec(e);){let l=[];a={...r},a=a.replace&&!Ht(a.replace)?a.replace:a,a.applyPostProcessor=!1,delete a.defaultValue;const u=/{.*}/.test(i[1])?i[1].lastIndexOf("}")+1:i[1].indexOf(this.formatSeparator);if(u!==-1&&(l=i[1].slice(u).split(this.formatSeparator).map(c=>c.trim()).filter(Boolean),i[1]=i[1].slice(0,u)),s=n(o.call(this,i[1].trim(),a),a),s&&i[0]===e&&!Ht(s))return s;Ht(s)||(s=zG(s)),s||(this.logger.warn(`missed to resolve ${i[1]} for nesting ${e}`),s=""),l.length&&(s=l.reduce((c,d)=>this.format(c,d,r.lng,{...r,interpolationkey:i[1].trim()}),s.trim())),e=e.replace(i[0],s),this.regexp.lastIndex=0}return e}}const OIe=t=>{let e=t.toLowerCase().trim();const n={};if(t.indexOf("(")>-1){const r=t.split("(");e=r[0].toLowerCase().trim();const i=r[1].substring(0,r[1].length-1);e==="currency"&&i.indexOf(":")<0?n.currency||(n.currency=i.trim()):e==="relativetime"&&i.indexOf(":")<0?n.range||(n.range=i.trim()):i.split(";").forEach(a=>{if(a){const[o,...l]=a.split(":"),u=l.join(":").trim().replace(/^'+|'+$/g,""),c=o.trim();n[c]||(n[c]=u),u==="false"&&(n[c]=!1),u==="true"&&(n[c]=!0),isNaN(u)||(n[c]=parseInt(u,10))}})}return{formatName:e,formatOptions:n}},eW=t=>{const e={};return(n,r,i)=>{let s=i;i&&i.interpolationkey&&i.formatParams&&i.formatParams[i.interpolationkey]&&i[i.interpolationkey]&&(s={...s,[i.interpolationkey]:void 0});const a=r+JSON.stringify(s);let o=e[a];return o||(o=t(Wb(r),i),e[a]=o),o(n)}},kIe=t=>(e,n,r)=>t(Wb(n),r)(e);class IIe{constructor(e={}){this.logger=Jl.create("formatter"),this.options=e,this.init(e)}init(e,n={interpolation:{}}){this.formatSeparator=n.interpolation.formatSeparator||",";const r=n.cacheInBuiltFormats?eW:kIe;this.formats={number:r((i,s)=>{const a=new Intl.NumberFormat(i,{...s});return o=>a.format(o)}),currency:r((i,s)=>{const a=new Intl.NumberFormat(i,{...s,style:"currency"});return o=>a.format(o)}),datetime:r((i,s)=>{const a=new Intl.DateTimeFormat(i,{...s});return o=>a.format(o)}),relativetime:r((i,s)=>{const a=new Intl.RelativeTimeFormat(i,{...s});return o=>a.format(o,s.range||"day")}),list:r((i,s)=>{const a=new Intl.ListFormat(i,{...s});return o=>a.format(o)})}}add(e,n){this.formats[e.toLowerCase().trim()]=n}addCached(e,n){this.formats[e.toLowerCase().trim()]=eW(n)}format(e,n,r,i={}){const s=n.split(this.formatSeparator);if(s.length>1&&s[0].indexOf("(")>1&&s[0].indexOf(")")<0&&s.find(o=>o.indexOf(")")>-1)){const o=s.findIndex(l=>l.indexOf(")")>-1);s[0]=[s[0],...s.splice(1,o)].join(this.formatSeparator)}return s.reduce((o,l)=>{const{formatName:u,formatOptions:c}=OIe(l);if(this.formats[u]){let d=o;try{const h=i?.formatParams?.[i.interpolationkey]||{},m=h.locale||h.lng||i.locale||i.lng||r;d=this.formats[u](o,m,{...c,...i,...h})}catch(h){this.logger.warn(h)}return d}else this.logger.warn(`there was no format function for ${u}`);return o},e)}}const MIe=(t,e)=>{t.pending[e]!==void 0&&(delete t.pending[e],t.pendingCount--)};class DIe extends _T{constructor(e,n,r,i={}){super(),this.backend=e,this.store=n,this.services=r,this.languageUtils=r.languageUtils,this.options=i,this.logger=Jl.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=i.maxParallelReads||10,this.readingCalls=0,this.maxRetries=i.maxRetries>=0?i.maxRetries:5,this.retryTimeout=i.retryTimeout>=1?i.retryTimeout:350,this.state={},this.queue=[],this.backend?.init?.(r,i.backend,i)}queueLoad(e,n,r,i){const s={},a={},o={},l={};return e.forEach(u=>{let c=!0;n.forEach(d=>{const h=`${u}|${d}`;!r.reload&&this.store.hasResourceBundle(u,d)?this.state[h]=2:this.state[h]<0||(this.state[h]===1?a[h]===void 0&&(a[h]=!0):(this.state[h]=1,c=!1,a[h]===void 0&&(a[h]=!0),s[h]===void 0&&(s[h]=!0),l[d]===void 0&&(l[d]=!0)))}),c||(o[u]=!0)}),(Object.keys(s).length||Object.keys(a).length)&&this.queue.push({pending:a,pendingCount:Object.keys(a).length,loaded:{},errors:[],callback:i}),{toLoad:Object.keys(s),pending:Object.keys(a),toLoadLanguages:Object.keys(o),toLoadNamespaces:Object.keys(l)}}loaded(e,n,r){const i=e.split("|"),s=i[0],a=i[1];n&&this.emit("failedLoading",s,a,n),!n&&r&&this.store.addResourceBundle(s,a,r,void 0,void 0,{skipCopy:!0}),this.state[e]=n?-1:2,n&&r&&(this.state[e]=0);const o={};this.queue.forEach(l=>{vIe(l.loaded,[s],a),MIe(l,e),n&&l.errors.push(n),l.pendingCount===0&&!l.done&&(Object.keys(l.loaded).forEach(u=>{o[u]||(o[u]={});const c=l.loaded[u];c.length&&c.forEach(d=>{o[u][d]===void 0&&(o[u][d]=!0)})}),l.done=!0,l.errors.length?l.callback(l.errors):l.callback())}),this.emit("loaded",o),this.queue=this.queue.filter(l=>!l.done)}read(e,n,r,i=0,s=this.retryTimeout,a){if(!e.length)return a(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:e,ns:n,fcName:r,tried:i,wait:s,callback:a});return}this.readingCalls++;const o=(u,c)=>{if(this.readingCalls--,this.waitingReads.length>0){const d=this.waitingReads.shift();this.read(d.lng,d.ns,d.fcName,d.tried,d.wait,d.callback)}if(u&&c&&i<this.maxRetries){setTimeout(()=>{this.read.call(this,e,n,r,i+1,s*2,a)},s);return}a(u,c)},l=this.backend[r].bind(this.backend);if(l.length===2){try{const u=l(e,n);u&&typeof u.then=="function"?u.then(c=>o(null,c)).catch(o):o(null,u)}catch(u){o(u)}return}return l(e,n,o)}prepareLoading(e,n,r={},i){if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),i&&i();Ht(e)&&(e=this.languageUtils.toResolveHierarchy(e)),Ht(n)&&(n=[n]);const s=this.queueLoad(e,n,r,i);if(!s.toLoad.length)return s.pending.length||i(),null;s.toLoad.forEach(a=>{this.loadOne(a)})}load(e,n,r){this.prepareLoading(e,n,{},r)}reload(e,n,r){this.prepareLoading(e,n,{reload:!0},r)}loadOne(e,n=""){const r=e.split("|"),i=r[0],s=r[1];this.read(i,s,"read",void 0,void 0,(a,o)=>{a&&this.logger.warn(`${n}loading namespace ${s} for language ${i} failed`,a),!a&&o&&this.logger.log(`${n}loaded namespace ${s} for language ${i}`,o),this.loaded(e,a,o)})}saveMissing(e,n,r,i,s,a={},o=()=>{}){if(this.services?.utils?.hasLoadedNamespace&&!this.services?.utils?.hasLoadedNamespace(n)){this.logger.warn(`did not save key "${r}" as the namespace "${n}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(r==null||r==="")){if(this.backend?.create){const l={...a,isUpdate:s},u=this.backend.create.bind(this.backend);if(u.length<6)try{let c;u.length===5?c=u(e,n,r,i,l):c=u(e,n,r,i),c&&typeof c.then=="function"?c.then(d=>o(null,d)).catch(o):o(null,c)}catch(c){o(c)}else u(e,n,r,i,o,l)}!e||!e[0]||this.store.addResource(e[0],n,r,i)}}}const ON=()=>({debug:!1,initAsync:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:t=>{let e={};if(typeof t[1]=="object"&&(e=t[1]),Ht(t[1])&&(e.defaultValue=t[1]),Ht(t[2])&&(e.tDescription=t[2]),typeof t[2]=="object"||typeof t[3]=="object"){const n=t[3]||t[2];Object.keys(n).forEach(r=>{e[r]=n[r]})}return e},interpolation:{escapeValue:!0,format:t=>t,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),tW=t=>(Ht(t.ns)&&(t.ns=[t.ns]),Ht(t.fallbackLng)&&(t.fallbackLng=[t.fallbackLng]),Ht(t.fallbackNS)&&(t.fallbackNS=[t.fallbackNS]),t.supportedLngs?.indexOf?.("cimode")<0&&(t.supportedLngs=t.supportedLngs.concat(["cimode"])),typeof t.initImmediate=="boolean"&&(t.initAsync=t.initImmediate),t),tx=()=>{},PIe=t=>{Object.getOwnPropertyNames(Object.getPrototypeOf(t)).forEach(n=>{typeof t[n]=="function"&&(t[n]=t[n].bind(t))})},LIe=t=>!!(t?.modules?.backend?.name?.indexOf("Locize")>0||t?.modules?.backend?.constructor?.name?.indexOf("Locize")>0||t?.options?.backend?.backends&&t.options.backend.backends.some(e=>e?.name.indexOf("Locize")>0||e?.constructor?.name.indexOf("Locize")>0));class ub extends _T{constructor(e={},n){if(super(),this.options=tW(e),this.services={},this.logger=Jl,this.modules={external:[]},PIe(this),n&&!this.isInitialized&&!e.isClone){if(!this.options.initAsync)return this.init(e,n),this;setTimeout(()=>{this.init(e,n)},0)}}init(e={},n){this.isInitializing=!0,typeof e=="function"&&(n=e,e={}),e.defaultNS==null&&e.ns&&(Ht(e.ns)?e.defaultNS=e.ns:e.ns.indexOf("translation")<0&&(e.defaultNS=e.ns[0]));const r=ON();this.options={...r,...this.options,...tW(e)},this.options.interpolation={...r.interpolation,...this.options.interpolation},e.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=e.keySeparator),e.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=e.nsSeparator),typeof this.options.overloadTranslationOptionHandler!="function"&&(this.options.overloadTranslationOptionHandler=r.overloadTranslationOptionHandler),this.options.showSupportNotice!==!1&&!LIe(this)&&typeof console<"u"&&typeof console.info<"u"&&console.info("ð i18next is maintained with support from locize.com â consider powering your project with managed localization (AI, CDN, integrations): https://locize.com ð");const i=u=>u?typeof u=="function"?new u:u:null;if(!this.options.isClone){this.modules.logger?Jl.init(i(this.modules.logger),this.options):Jl.init(null,this.options);let u;this.modules.formatter?u=this.modules.formatter:u=IIe;const c=new KG(this.options);this.store=new WG(this.options.resources,this.options);const d=this.services;d.logger=Jl,d.resourceStore=this.store,d.languageUtils=c,d.pluralResolver=new NIe(c,{prepend:this.options.pluralSeparator,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),this.options.interpolation.format&&this.options.interpolation.format!==r.interpolation.format&&this.logger.deprecate("init: you are still using the legacy format function, please use the new approach: https://www.i18next.com/translation-function/formatting"),u&&(!this.options.interpolation.format||this.options.interpolation.format===r.interpolation.format)&&(d.formatter=i(u),d.formatter.init&&d.formatter.init(d,this.options),this.options.interpolation.format=d.formatter.format.bind(d.formatter)),d.interpolator=new JG(this.options),d.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},d.backendConnector=new DIe(i(this.modules.backend),d.resourceStore,d,this.options),d.backendConnector.on("*",(m,...g)=>{this.emit(m,...g)}),this.modules.languageDetector&&(d.languageDetector=i(this.modules.languageDetector),d.languageDetector.init&&d.languageDetector.init(d,this.options.detection,this.options)),this.modules.i18nFormat&&(d.i18nFormat=i(this.modules.i18nFormat),d.i18nFormat.init&&d.i18nFormat.init(this)),this.translator=new _S(this.services,this.options),this.translator.on("*",(m,...g)=>{this.emit(m,...g)}),this.modules.external.forEach(m=>{m.init&&m.init(this)})}if(this.format=this.options.interpolation.format,n||(n=tx),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const u=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);u.length>0&&u[0]!=="dev"&&(this.options.lng=u[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(u=>{this[u]=(...c)=>this.store[u](...c)}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(u=>{this[u]=(...c)=>(this.store[u](...c),this)});const o=oy(),l=()=>{const u=(c,d)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),o.resolve(d),n(c,d)};if(this.languages&&!this.isInitialized)return u(null,this.t.bind(this));this.changeLanguage(this.options.lng,u)};return this.options.resources||!this.options.initAsync?l():setTimeout(l,0),o}loadResources(e,n=tx){let r=n;const i=Ht(e)?e:this.language;if(typeof e=="function"&&(r=e),!this.options.resources||this.options.partialBundledLanguages){if(i?.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return r();const s=[],a=o=>{if(!o||o==="cimode")return;this.services.languageUtils.toResolveHierarchy(o).forEach(u=>{u!=="cimode"&&s.indexOf(u)<0&&s.push(u)})};i?a(i):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(l=>a(l)),this.options.preload?.forEach?.(o=>a(o)),this.services.backendConnector.load(s,this.options.ns,o=>{!o&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),r(o)})}else r(null)}reloadResources(e,n,r){const i=oy();return typeof e=="function"&&(r=e,e=void 0),typeof n=="function"&&(r=n,n=void 0),e||(e=this.languages),n||(n=this.options.ns),r||(r=tx),this.services.backendConnector.reload(e,n,s=>{i.resolve(),r(s)}),i}use(e){if(!e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return e.type==="backend"&&(this.modules.backend=e),(e.type==="logger"||e.log&&e.warn&&e.error)&&(this.modules.logger=e),e.type==="languageDetector"&&(this.modules.languageDetector=e),e.type==="i18nFormat"&&(this.modules.i18nFormat=e),e.type==="postProcessor"&&xce.addPostProcessor(e),e.type==="formatter"&&(this.modules.formatter=e),e.type==="3rdParty"&&this.modules.external.push(e),this}setResolvedLanguage(e){if(!(!e||!this.languages)&&!(["cimode","dev"].indexOf(e)>-1)){for(let n=0;n<this.languages.length;n++){const r=this.languages[n];if(!(["cimode","dev"].indexOf(r)>-1)&&this.store.hasLanguageSomeTranslations(r)){this.resolvedLanguage=r;break}}!this.resolvedLanguage&&this.languages.indexOf(e)<0&&this.store.hasLanguageSomeTranslations(e)&&(this.resolvedLanguage=e,this.languages.unshift(e))}}changeLanguage(e,n){this.isLanguageChangingTo=e;const r=oy();this.emit("languageChanging",e);const i=o=>{this.language=o,this.languages=this.services.languageUtils.toResolveHierarchy(o),this.resolvedLanguage=void 0,this.setResolvedLanguage(o)},s=(o,l)=>{l?this.isLanguageChangingTo===e&&(i(l),this.translator.changeLanguage(l),this.isLanguageChangingTo=void 0,this.emit("languageChanged",l),this.logger.log("languageChanged",l)):this.isLanguageChangingTo=void 0,r.resolve((...u)=>this.t(...u)),n&&n(o,(...u)=>this.t(...u))},a=o=>{!e&&!o&&this.services.languageDetector&&(o=[]);const l=Ht(o)?o:o&&o[0],u=this.store.hasLanguageSomeTranslations(l)?l:this.services.languageUtils.getBestMatchFromCodes(Ht(o)?[o]:o);u&&(this.language||i(u),this.translator.language||this.translator.changeLanguage(u),this.services.languageDetector?.cacheUserLanguage?.(u)),this.loadResources(u,c=>{s(c,u)})};return!e&&this.services.languageDetector&&!this.services.languageDetector.async?a(this.services.languageDetector.detect()):!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(a):this.services.languageDetector.detect(a):a(e),r}getFixedT(e,n,r){const i=(s,a,...o)=>{let l;typeof a!="object"?l=this.options.overloadTranslationOptionHandler([s,a].concat(o)):l={...a},l.lng=l.lng||i.lng,l.lngs=l.lngs||i.lngs,l.ns=l.ns||i.ns,l.keyPrefix!==""&&(l.keyPrefix=l.keyPrefix||r||i.keyPrefix);const u=this.options.keySeparator||".";let c;return l.keyPrefix&&Array.isArray(s)?c=s.map(d=>(typeof d=="function"&&(d=ES(d,{...this.options,...a})),`${l.keyPrefix}${u}${d}`)):(typeof s=="function"&&(s=ES(s,{...this.options,...a})),c=l.keyPrefix?`${l.keyPrefix}${u}${s}`:s),this.t(c,l)};return Ht(e)?i.lng=e:i.lngs=e,i.ns=n,i.keyPrefix=r,i}t(...e){return this.translator?.translate(...e)}exists(...e){return this.translator?.exists(...e)}setDefaultNamespace(e){this.options.defaultNS=e}hasLoadedNamespace(e,n={}){if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;
32if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const r=n.lng||this.resolvedLanguage||this.languages[0],i=this.options?this.options.fallbackLng:!1,s=this.languages[this.languages.length-1];if(r.toLowerCase()==="cimode")return!0;const a=(o,l)=>{const u=this.services.backendConnector.state[`${o}|${l}`];return u===-1||u===0||u===2};if(n.precheck){const o=n.precheck(this,a);if(o!==void 0)return o}return!!(this.hasResourceBundle(r,e)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||a(r,e)&&(!i||a(s,e)))}loadNamespaces(e,n){const r=oy();return this.options.ns?(Ht(e)&&(e=[e]),e.forEach(i=>{this.options.ns.indexOf(i)<0&&this.options.ns.push(i)}),this.loadResources(i=>{r.resolve(),n&&n(i)}),r):(n&&n(),Promise.resolve())}loadLanguages(e,n){const r=oy();Ht(e)&&(e=[e]);const i=this.options.preload||[],s=e.filter(a=>i.indexOf(a)<0&&this.services.languageUtils.isSupportedCode(a));return s.length?(this.options.preload=i.concat(s),this.loadResources(a=>{r.resolve(),n&&n(a)}),r):(n&&n(),Promise.resolve())}dir(e){if(e||(e=this.resolvedLanguage||(this.languages?.length>0?this.languages[0]:this.language)),!e)return"rtl";try{const i=new Intl.Locale(e);if(i&&i.getTextInfo){const s=i.getTextInfo();if(s&&s.direction)return s.direction}}catch{}const n=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],r=this.services?.languageUtils||new KG(ON());return e.toLowerCase().indexOf("-latn")>1?"ltr":n.indexOf(r.getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(e={},n){const r=new ub(e,n);return r.createInstance=ub.createInstance,r}cloneInstance(e={},n=tx){const r=e.forkResourceStore;r&&delete e.forkResourceStore;const i={...this.options,...e,isClone:!0},s=new ub(i);if((e.debug!==void 0||e.prefix!==void 0)&&(s.logger=s.logger.clone(e)),["store","services","language"].forEach(o=>{s[o]=this[o]}),s.services={...this.services},s.services.utils={hasLoadedNamespace:s.hasLoadedNamespace.bind(s)},r){const o=Object.keys(this.store.data).reduce((l,u)=>(l[u]={...this.store.data[u]},l[u]=Object.keys(l[u]).reduce((c,d)=>(c[d]={...l[u][d]},c),l[u]),l),{});s.store=new WG(o,i),s.services.resourceStore=s.store}if(e.interpolation){const l={...ON().interpolation,...this.options.interpolation,...e.interpolation},u={...i,interpolation:l};s.services.interpolator=new JG(u)}return s.translator=new _S(s.services,i),s.translator.on("*",(o,...l)=>{s.emit(o,...l)}),s.init(i,n),s.translator.options=i,s.translator.backendConnector.services.utils={hasLoadedNamespace:s.hasLoadedNamespace.bind(s)},s}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const ma=ub.createInstance();ma.createInstance;ma.dir;ma.init;ma.loadResources;ma.reloadResources;ma.use;ma.changeLanguage;ma.getFixedT;const qkt=ma.t;ma.exists;ma.setDefaultNamespace;ma.hasLoadedNamespace;ma.loadNamespaces;ma.loadLanguages;const $Ie={loadPath:"/locales/{{lng}}/{{ns}}.json",addPath:"/locales/add/{{lng}}/{{ns}}",multiSeparator:"+",allowMultiLoading:!1,fetch:typeof fetch>"u"?void 0:fetch,parse:JSON.parse,stringify:JSON.stringify,requestOptions:{}},FIe=t=>Array.isArray(t)?t:[t],BIe=(t,...e)=>typeof t=="function"?t(...e):t;class nx extends Error{retry=null;constructor(e,n=!1){super(e),this.retry=n}}class Gkt{constructor(e,n){this.init(e,n)}type="backend";static type="backend";init(e,n={}){this.services=e,this.options={...$Ie,...this.options,...n}}getLoadPath(e,n){return BIe(this.options.loadPath,e,n)}read(e,n,r){const i=this.getLoadPath(e,n),s=this.services.interpolator.interpolate(i,{lng:e,ns:n});this.loadUrl(s,r)}readMulti(e,n,r){const i=this.getLoadPath(e,n),{multiSeparator:s}=this.options,a=this.services.interpolator.interpolate(i,{lng:e.join(s),ns:n.join(s)});this.loadUrl(a,r)}loadUrl(e,n){const{fetch:r,requestOptions:i,parse:s}=this.options;r(e,i).then(a=>{const{ok:o,status:l}=a;if(!o){const u=l>=500&&l<600;throw new nx(`failed loading ${e}`,u)}return a.text()},()=>{throw new nx(`failed loading ${e}`)}).then(a=>{try{return n(null,s(a,e))}catch{throw new nx(`failed parsing ${e} to json`,!1)}}).catch(a=>{a instanceof nx&&n(a.message,a.retry)})}create(e,n,r,i){const s={[r]:i||""};FIe(e).forEach(a=>{const{addPath:o,requestOptions:l,fetch:u,stringify:c}
vendor: 4,870 bytes, line 32
32=this.options,d=this.services.interpolator.interpolate(o,{lng:a,ns:n});try{u(d,{method:"POST",body:c(s),...l})}catch(h){console.error(h)}})}}var kN,nW;function HIe(){return nW||(nW=1,kN={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0}),kN}var UIe=HIe();const jIe=ys(UIe);var zIe=/\s([^'"/\s><]+?)[\s/>]|([^\s=]+)=\s?(".*?"|'.*?')/g;function rW(t){var e={type:"tag",name:"",voidElement:!1,attrs:{},children:[]},n=t.match(/<\/?([^\s]+?)[/\s>]/);if(n&&(e.name=n[1],(jIe[n[1]]||t.charAt(t.length-2)==="/")&&(e.voidElement=!0),e.name.startsWith("!--"))){var r=t.indexOf("-->");return{type:"comment",comment:r!==-1?t.slice(4,r):""}}for(var i=new RegExp(zIe),s=null;(s=i.exec(t))!==null;)if(s[0].trim())if(s[1]){var a=s[1].trim(),o=[a,""];a.indexOf("=")>-1&&(o=a.split("=")),e.attrs[o[0]]=o[1],i.lastIndex--}else s[2]&&(e.attrs[s[2]]=s[3].trim().substring(1,s[3].length-1));return e}var VIe=/<[a-zA-Z0-9\-\!\/](?:"[^"]*"|'[^']*'|[^'">])*>/g,qIe=/^\s*$/,GIe=Object.create(null);function Sce(t,e){switch(e.type){case"text":return t+e.content;case"tag":return t+="<"+e.name+(e.attrs?(function(n){var r=[];for(var i in n)r.push(i+'="'+n[i]+'"');return r.length?" "+r.join(" "):""})(e.attrs):"")+(e.voidElement?"/>":">"),e.voidElement?t:t+e.children.reduce(Sce,"")+"</"+e.name+">";case"comment":return t+"<!--"+e.comment+"-->"}}var WIe={parse:function(t,e){e||(e={}),e.components||(e.components=GIe);var n,r=[],i=[],s=-1,a=!1;if(t.indexOf("<")!==0){var o=t.indexOf("<");r.push({type:"text",content:o===-1?t:t.substring(0,o)})}return t.replace(VIe,function(l,u){if(a){if(l!=="</"+n.name+">")return;a=!1}var c,d=l.charAt(1)!=="/",h=l.startsWith("<!--"),m=u+l.length,g=t.charAt(m);if(h){var b=rW(l);return s<0?(r.push(b),r):((c=i[s]).children.push(b),r)}if(d&&(s++,(n=rW(l)).type==="tag"&&e.components[n.name]&&(n.type="component",a=!0),n.voidElement||a||!g||g==="<"||n.children.push({type:"text",content:t.slice(m,t.indexOf("<",m))}),s===0&&r.push(n),(c=i[s-1])&&c.children.push(n),i[s]=n),(!d||n.voidElement)&&(s>-1&&(n.voidElement||n.name===l.slice(2,-1))&&(s--,n=s===-1?r:i[s]),!a&&g!=="<"&&g)){c=s===-1?r:i[s].children;var v=t.indexOf("<",m),E=t.slice(m,v===-1?void 0:v);qIe.test(E)&&(E=" "),(v>-1&&s+c.length>=0||E!==" ")&&c.push({type:"text",content:E})}}),r},stringify:function(t){return t.reduce(function(e,n){return e+Sce("",n)},"")}};const ww=(t,e,n,r)=>{const i=[n,{code:e,...r||{}}];if(t?.services?.logger?.forward)return t.services.logger.forward(i,"warn","react-i18next::",!0);sa(i[0])&&(i[0]=`react-i18next:: ${i[0]}`),t?.services?.logger?.warn?t.services.logger.warn(...i):console?.warn&&console.warn(...i)},iW={},xT=(t,e,n,r)=>{sa(n)&&iW[n]||(sa(n)&&(iW[n]=new Date),ww(t,e,n,r))},Cce=(t,e)=>()=>{if(t.isInitialized)e();else{const n=()=>{setTimeout(()=>{t.off("initialized",n)},0),e()};t.on("initialized",n)}},BD=(t,e,n)=>{t.loadNamespaces(e,Cce(t,n))},sW=(t,e,n,r)=>{if(sa(n)&&(n=[n]),t.options.preload&&t.options.preload.indexOf(e)>-1)return BD(t,n,r);n.forEach(i=>{t.options.ns.indexOf(i)<0&&t.options.ns.push(i)}),t.loadLanguages(e,Cce(t,r))},YIe=(t,e,n={})=>!e.languages||!e.languages.length?(xT(e,"NO_LANGUAGES","i18n.languages were undefined or empty",{languages:e.languages}),!0):e.hasLoadedNamespace(t,{lng:n.lng,precheck:(r,i)=>{if(n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&r.services.backendConnector.backend&&r.isLanguageChangingTo&&!i(r.isLanguageChangingTo,t))return!1}}),sa=t=>typeof t=="string",bc=t=>typeof t=="object"&&t!==null,KIe=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,XIe={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"©","©":"©","®":"®","®":"®","…":"â¦","…":"â¦","/":"/","/":"/"},QIe=t=>XIe[t],Tce=t=>t.replace(KIe,QIe);let HD={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:Tce,transDefaultProps:void 0};const ZIe=(t={})=>{HD={...HD,...t}},Y7=()=>HD;let Ace;const JIe=t=>{Ace=t},K7=()=>Ace,Sw=(t,e)=>{if(!t)return!1;const n=t.props?.children??t.children;return e?n.length>0:!!n},Cw=t=>{if(!t)return[];const e=t.props?.children??t.children;return t.props?.i18nIsDynamicList?ph(e):e},eMe=t=>Array.isArray(t)&&t.every(C.isValidElement),ph=t=>Array.isArray(t)?t:[t],tMe=(t,e)=>{const n={...e};return n.props={...e.props,...t.props},n},nMe=t=>{const e={};if(!t)return e;const n=r=>{ph(r).forEach(s=>{sa(s)||(Sw(s)?n(Cw(s)):bc(s)&&!C.isValidElement(s)&&Object.assign(e,s))})};return n(t),e},Rce=(t,e,n,r)=>{if(!t)return"";let i="";const s=ph(t),a=e?.transSupportBasicHtmlNodes?e.transKeepBasicHtmlNodesFor??[]:[];
32return s.forEach((o,l)=>{if(sa(o)){i+=`${o}`;return}if(C.isValidElement(o)){const{props:u,type:c}=o,d=Object.keys(u).length,h=a.indexOf(c)>-1,m=u.children;if(!m&&h&&!d){i+=`<${c}/>`;return}if(!m&&(!h||d)||u.i18nIsDynamicList){i+=`<${l}></${l}>`;return}if(h&&d===1&&sa(m)){i+=`<${c}>${m}</${c}>`;return}const g=Rce(m,e,n,r);i+=`<${l}>${g}</${l}>`;return}if(o===null){ww(n,"TRANS_NULL_VALUE","Passed in a null value as child",{i18nKey:r});return}if(bc(o)){const{format:u,...c}=o,d=Object.keys(c);if(d.length===1){const h=u?`${d[0]}, ${u}`:d[0];i+=`{{${h}}}`;return}ww(n,"TRANS_INVALID_OBJ","Invalid child - Object should only have keys {{ value, format }} (format is optional).",{i18nKey:r,child:o});return}ww(n,"TRANS_INVALID_VAR","Passed in a variable like {number} - pass variables for interpolation as full objects like {{number}}.",{i18nKey:r,child:o})}),i},rMe=(t,e=[],n={})=>{if(!t)return t;const r=Object.keys(n),i=[...e,...r];let s="",a=0;for(;a<t.length;)if(t[a]==="<"){let o=!1;const l=t.slice(a).match(/^<\/(\d+|[a-zA-Z][a-zA-Z0-9_-]*)>/);if(l){const u=l[1];(/^\d+$/.test(u)||i.includes(u))&&(o=!0,s+=l[0],a+=l[0].length)}if(!o){const u=t.slice(a).match(/^<(\d+|[a-zA-Z][a-zA-Z0-9_-]*)(\s+[\w-]+(?:=(?:"[^"]*"|'[^']*'|[^\s>]+))?)*\s*(\/)?>/);if(u){const c=u[1];(/^\d+$/.test(c)||i.includes(c))&&(o=!0,s+=u[0],a+=u[0].length)}}o||(s+="<",a+=1)}else s+=t[a],a+=1;return s},iMe=(t,e,n,r,i,s,a)=>{if(n==="")return[];const o=i.transKeepBasicHtmlNodesFor||[],l=n&&new RegExp(o.map(x=>`<${x}`).join("|")).test(n);if(!t&&!e&&!l&&!a)return[n];const u=e??{},c=x=>{ph(x).forEach(S=>{sa(S)||(Sw(S)?c(Cw(S)):bc(S)&&!C.isValidElement(S)&&Object.assign(u,S))})};c(t);const d=rMe(n,o,u),h=WIe.parse(`<0>${d}</0>`),m={...u,...s},g=(x,_,S)=>{const A=Cw(x),R=v(A,_.children,S);return eMe(A)&&R.length===0||x.props?.i18nIsDynamicList?A:R},b=(x,_,S,A,R)=>{x.dummy?(x.children=_,S.push(C.cloneElement(x,{key:A},R?void 0:_))):S.push(...C.Children.map([x],T=>{const O="data-i18n-is-dynamic-list",I={key:A,[O]:void 0};return T&&T.props&&Object.keys(T.props).forEach(D=>{D==="ref"||D==="children"||D==="i18nIsDynamicList"||D===O||(I[D]=T.props[D])}),C.cloneElement(T,I,R?null:_)}))},v=(x,_,S)=>{const A=ph(x);return ph(_).reduce((T,O,I)=>{const D=O.children?.[0]?.content&&r.services.interpolator.interpolate(O.children[0].content,m,r.language);if(O.type==="tag"){let P=A[parseInt(O.name,10)];!P&&e&&(P=e[O.name]),S.length===1&&!P&&(P=S[0][O.name]),P||(P={});const B={...O.attrs};a&&Object.keys(B).forEach(H=>{const K=B[H];sa(K)&&(B[H]=Tce(K))});const L=Object.keys(B).length!==0?tMe({props:B},P):P,$=C.isValidElement(L),q=$&&Sw(O,!0)&&!O.voidElement,F=l&&bc(L)&&L.dummy&&!$,G=bc(e)&&Object.hasOwnProperty.call(e,O.name);if(sa(L)){const H=r.services.interpolator.interpolate(L,m,r.language);T.push(H)}else if(Sw(L)||q){const H=g(L,O,S);b(L,H,T,I)}else if(F){const H=v(A,O.children,S);b(L,H,T,I)}else if(Number.isNaN(parseFloat(O.name)))if(G){const H=g(L,O,S);b(L,H,T,I,O.voidElement)}else if(i.transSupportBasicHtmlNodes&&o.indexOf(O.name)>-1)if(O.voidElement)T.push(C.createElement(O.name,{key:`${O.name}-${I}`}));else{const H=v(A,O.children,S);T.push(C.createElement(O.name,{key:`${O.name}-${I}`},H))}else if(O.voidElement)T.push(`<${O.name} />`);else{const H=v(A,O.children,S);T.push(`<${O.name}>${H}</${O.name}>`)}else if(bc(L)&&!$){const H=O.children[0]?D:null;H&&T.push(H)}else b(L,D,T,I,O.children.length!==1||!D)}else if(O.type==="text"){const P=i.transWrapTextNodes,B=typeof i.unescape=="function"?i.unescape:Y7().unescape,L=a?B(r.services.interpolator.interpolate(O.content,m,r.language)):r.services.interpolator.interpolate(O.content,m,r.language);P?T.push(C.createElement(P,{key:`${O.name}-${I}`},L)):T.push(L)}return T},[])},E=v([{dummy:!0,children:t||[]}],h,ph(t||[]));return Cw(E[0])},Nce=(t,e,n)=>{const r=t.key||e,i=C.cloneElement(t,{key:r});if(!i.props||!i.props.children||n.indexOf(`${e}/>`)<0&&n.indexOf(`${e} />`)<0)return i;function s(){return C.createElement(C.Fragment,null,i)}return C.createElement(s,{key:r})},sMe=(t,e)=>t.map((n,r)=>Nce(n,r,e)),aMe=(t,e)=>{const n={};return Object.keys(t).forEach(r=>{Object.assign(n,{[r]:Nce(t[r],r,e)})}),n},oMe=(t,e,n,r)=>t?Array.isArray(t)?sMe(t,e):bc(t)?aMe(t,e):(xT(n,"TRANS_INVALID_COMPONENTS",'<Trans /> "components" prop expects an object or array',{i18nKey:r}),null):null,lMe=t=>!bc(t)||Array.isArray(t)?!1:Object.keys(t).reduce((e,n)=>e&&Number.isNaN(Number.parseFloat(n)),!0);function uMe({children:t,count:e,parent:n,i18nKey:r,context:i,tOptions:s={}
vendor: 4,577 bytes, line 32
32,values:a,defaults:o,components:l,ns:u,i18n:c,t:d,shouldUnescape:h,...m}){const g=c||K7();if(!g)return xT(g,"NO_I18NEXT_INSTANCE","Trans: You need to pass in an i18next instance using i18nextReactModule",{i18nKey:r}),t;const b=d||g.t.bind(g)||(V=>V),v={...Y7(),...g.options?.react};let E=u||b.ns||g.options?.defaultNS;E=sa(E)?[E]:E||["translation"];const{transDefaultProps:x}=v,_=x?.tOptions?{...x.tOptions,...s}:s,S=h??x?.shouldUnescape,A=x?.values?{...x.values,...a}:a,R=x?.components?{...x.components,...l}:l,T=Rce(t,v,g,r),O=o||_?.defaultValue||T||v.transEmptyNodeValue||(typeof r=="function"?ES(r):r),{hashTransKey:I}=v,D=r||(I?I(T||O):T||O);g.options?.interpolation?.defaultVariables?a=A&&Object.keys(A).length>0?{...A,...g.options.interpolation.defaultVariables}:{...g.options.interpolation.defaultVariables}:a=A;const P=nMe(t);P&&typeof P.count=="number"&&e===void 0&&(e=P.count);const B=a||e!==void 0&&!g.options?.interpolation?.alwaysFormat||!t?_.interpolation:{interpolation:{..._.interpolation,prefix:"#$?",suffix:"?$#"}},L={..._,context:i||_.context,count:e,...a,...B,defaultValue:O,ns:E};let $=D?b(D,L):O;$===D&&O&&($=O);const q=oMe(R,$,g,r);let F=q||t,G=null;lMe(q)&&(G=q,F=t);const H=iMe(F,G,$,g,v,L,S),K=n??v.defaultTransParent;return K?C.createElement(K,m,H):H}const Wkt={type:"3rdParty",init(t){ZIe(t.options.react),JIe(t)}},Oce=C.createContext();class cMe{constructor(){this.usedNamespaces={}}addUsedNamespaces(e){e.forEach(n=>{this.usedNamespaces[n]||(this.usedNamespaces[n]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}function Ykt({children:t,count:e,parent:n,i18nKey:r,context:i,tOptions:s={},values:a,defaults:o,components:l,ns:u,i18n:c,t:d,shouldUnescape:h,...m}){const{i18n:g,defaultNS:b}=C.useContext(Oce)||{},v=c||g||K7(),E=d||v?.t.bind(v);return uMe({children:t,count:e,parent:n,i18nKey:r,context:i,tOptions:s,values:a,defaults:o,components:l,ns:u||E?.ns||b||v?.options?.defaultNS,i18n:v,t:d,shouldUnescape:h,...m})}var IN={exports:{}},MN={};var aW;function dMe(){if(aW)return MN;aW=1;var t=t2();function e(d,h){return d===h&&(d!==0||1/d===1/h)||d!==d&&h!==h}var n=typeof Object.is=="function"?Object.is:e,r=t.useState,i=t.useEffect,s=t.useLayoutEffect,a=t.useDebugValue;function o(d,h){var m=h(),g=r({inst:{value:m,getSnapshot:h}}),b=g[0].inst,v=g[1];return s(function(){b.value=m,b.getSnapshot=h,l(b)&&v({inst:b})},[d,m,h]),i(function(){return l(b)&&v({inst:b}),d(function(){l(b)&&v({inst:b})})},[d]),a(m),m}function l(d){var h=d.getSnapshot;d=d.value;try{var m=h();return!n(d,m)}catch{return!0}}function u(d,h){return h()}var c=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?u:o;return MN.useSyncExternalStore=t.useSyncExternalStore!==void 0?t.useSyncExternalStore:c,MN}var oW;function kce(){return oW||(oW=1,IN.exports=dMe()),IN.exports}var fMe=kce();const hMe=(t,e)=>sa(e)?e:bc(e)&&sa(e.defaultValue)?e.defaultValue:Array.isArray(t)?t[t.length-1]:t,pMe={t:hMe,ready:!1},mMe=()=>()=>{},Kkt=(t,e={})=>{const{i18n:n}=e,{i18n:r,defaultNS:i}=C.useContext(Oce)||{},s=n||r||K7();s&&!s.reportNamespaces&&(s.reportNamespaces=new cMe),s||xT(s,"NO_I18NEXT_INSTANCE","useTranslation: You will need to pass in an i18next instance by using initReactI18next");const a=C.useMemo(()=>({...Y7(),...s?.options?.react,...e}),[s,e]),{useSuspense:o,keyPrefix:l}=a,u=i||s?.options?.defaultNS,c=sa(u)?[u]:u||["translation"],d=C.useMemo(()=>c,c);s?.reportNamespaces?.addUsedNamespaces?.(d);const h=C.useRef(0),m=C.useCallback(I=>{if(!s)return mMe;const{bindI18n:D,bindI18nStore:P}=a,B=()=>{h.current+=1,I()};return D&&s.on(D,B),P&&s.store.on(P,B),()=>{D&&D.split(" ").forEach(L=>s.off(L,B)),P&&P.split(" ").forEach(L=>s.store.off(L,B))}},[s,a]),g=C.useRef(),b=C.useCallback(()=>{if(!s)return pMe;const I=!!(s.isInitialized||s.initializedStoreOnce)&&d.every(q=>YIe(q,s,a)),D=e.lng||s.language,P=h.current,B=g.current;if(B&&B.ready===I&&B.lng===D&&B.keyPrefix===l&&B.revision===P)return B;const $={t:s.getFixedT(D,a.nsMode==="fallback"?d:d[0],l),ready:I,lng:D,keyPrefix:l,revision:P};return g.current=$,$},[s,d,l,a,e.lng]),[v,E]=C.useState(0),{t:x,ready:_}=fMe.useSyncExternalStore(m,b,b);C.useEffect(()=>{if(s&&!_&&!o){const I=()=>E(D=>D+1);e.lng?sW(s,e.lng,d,I):BD(s,d,I)}},[s,e.lng,d,_,o,v]);const S=s||{},A=C.useRef(null),R=C.useRef(),T=I=>{const D=Object.getOwnPropertyDescriptors(I);D.__original&&delete D.__original;const P=Object.create(Object.getPrototypeOf(I),D);if(!Object.prototype.hasOwnProperty.call(P,"__original"))try{Object.defineProperty(P,"__original",{value:I,writable:!1,enumerable:!1,
32configurable:!1})}catch{}return P},O=C.useMemo(()=>{const I=S,D=I?.language;let P=I;I&&(A.current&&A.current.__original===I?R.current!==D?(P=T(I),A.current=P,R.current=D):P=A.current:(P=T(I),A.current=P,R.current=D));const B=[x,P,_];return B.t=x,B.i18n=P,B.ready=_,B},[x,S,_,S.resolvedLanguage,S.language,S.languages]);if(s&&o&&!_)throw new Promise(I=>{const D=()=>I();e.lng?sW(s,e.lng,d,D):BD(s,d,D)});return O};function Ice(t){var e,n,r="";if(typeof t=="string"||typeof t=="number")r+=t;else if(typeof t=="object")if(Array.isArray(t)){var i=t.length;for(e=0;e<i;e++)t[e]&&(n=Ice(t[e]))&&(r&&(r+=" "),r+=n)}else for(n in t)t[n]&&(r&&(r+=" "),r+=n);return r}function Va(){for(var t,e,n=0,r="",i=arguments.length;n<i;n++)(t=arguments[n])&&(e=Ice(t))&&(r&&(r+=" "),r+=e);return r}function gMe(t){if(typeof document>"u")return;let e=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css",e.firstChild?e.insertBefore(n,e.firstChild):e.appendChild(n),n.styleSheet?n.styleSheet.cssText=t:n.appendChild(document.createTextNode(t))}gMe(`:root{--toastify-color-light: #fff;--toastify-color-dark: #121212;--toastify-color-info: #3498db;--toastify-color-success: #07bc0c;--toastify-color-warning: #f1c40f;--toastify-color-error: hsl(6, 78%, 57%);--toastify-color-transparent: rgba(255, 255, 255, .7);--toastify-icon-color-info: var(--toastify-color-info);--toastify-icon-color-success: var(--toastify-color-success);--toastify-icon-color-warning: var(--toastify-color-warning);--toastify-icon-color-error: var(--toastify-color-error);--toastify-container-width: fit-content;--toastify-toast-width: 320px;--toastify-toast-offset: 16px;--toastify-toast-top: max(var(--toastify-toast-offset), env(safe-area-inset-top));--toastify-toast-right: max(var(--toastify-toast-offset), env(safe-area-inset-right));--toastify-toast-left: max(var(--toastify-toast-offset), env(safe-area-inset-left));--toastify-toast-bottom: max(var(--toastify-toast-offset), env(safe-area-inset-bottom));--toastify-toast-background: #fff;--toastify-toast-padding: 14px;--toastify-toast-min-height: 64px;--toastify-toast-max-height: 800px;--toastify-toast-bd-radius: 6px;--toastify-toast-shadow: 0px 4px 12px rgba(0, 0, 0, .1);--toastify-font-family: sans-serif;--toastify-z-index: 9999;--toastify-text-color-light: #757575;--toastify-text-color-dark: #fff;--toastify-text-color-info: #fff;--toastify-text-color-success: #fff;--toastify-text-color-warning: #fff;--toastify-text-color-error: #fff;--toastify-spinner-color: #616161;--toastify-spinner-color-empty-area: #e0e0e0;--toastify-color-progress-light: linear-gradient(to right, #4cd964, #5ac8fa, #007aff, #34aadc, #5856d6, #ff2d55);--toastify-color-progress-dark: #bb86fc;--toastify-color-progress-info: var(--toastify-color-info);--toastify-color-progress-success: var(--toastify-color-success);--toastify-color-progress-warning: var(--toastify-color-warning);--toastify-color-progress-error: var(--toastify-color-error);--toastify-color-progress-bgo: .2}.Toastify__toast-container{z-index:var(--toastify-z-index);-webkit-transform:translate3d(0,0,var(--toastify-z-index));position:fixed;width:var(--toastify-container-width);box-sizing:border-box;color:#fff;display:flex;flex-direction:column}.Toastify__toast-container--top-left{top:var(--toastify-toast-top);left:var(--toastify-toast-left)}.Toastify__toast-container--top-center{top:var(--toastify-toast-top);left:50%;transform:translate(-50%);align-items:center}.Toastify__toast-container--top-right{top:var(--toastify-toast-top);right:var(--toastify-toast-right);align-items:end}.Toastify__toast-container--bottom-left{bottom:var(--toastify-toast-bottom);left:var(--toastify-toast-left)}.Toastify__toast-container--bottom-center{bottom:var(--toastify-toast-bottom);left:50%;transform:translate(-50%);align-items:center}.Toastify__toast-container--bottom-right{bottom:var(--toastify-toast-bottom);right:var(--toastify-toast-right);align-items:end}.Toastify__toast{--y: 0;position:relative;touch-action:none;width:var(--toastify-toast-width);min-height:var(--toastify-toast-min-height);box-sizing:border-box;margin-bottom:1rem;padding:var(--toastify-toast-padding);border-radius:var(--toastify-toast-bd-radius);box-shadow:var(--toastify-toast-shadow);max-height:var(--toastify-toast-max-height);font-family:var(--toastify-font-family);z-index:0;display:flex;flex:1 auto;align-items:center;word-break:break-word}@media only screen and (max-width: 480px){.Toastify__toast-container{width:100vw;left:env(safe-area-inset-left);margin:0}.Toastify__toast-container--top-left,.Toastify__toast-container--top-center,.Toastify__toast-container--top-right{top:env(safe-area-inset-top);transform:translate(0)}.Toastify__toast-container--bottom-left,.Toastify__toast-container--bottom-center,.Toastify__toast-container--bottom-right{bottom:env(safe-area-inset-bottom);transform:translate(0)}.Toastify__toast-container--rtl{right:env(safe-area-inset-right);left:initial}.Toastify__toast{--toastify-toast-width: 100%;margin-bottom:0;border-radius:0}}.Toastify__toast-container[data-stacked=true]{width:var(--toastify-toast-width)}.Toastify__toast--stacked{position:absolute;width:100%;transform:translate3d(0,var(--y),0) scale(var(--s));transition:transform .3s}.Toastify__toast--stacked[data-collapsed] .Toastify__toast-body,.Toastify__toast--stacked[data-collapsed] .Toastify__close-button{transition:opacity .1s}.Toastify__toast--stacked[data-collapsed=false]{overflow:visible}.Toastify__toast--stacked[data-collapsed=true]:not(:last-child)>*{opacity:0}
32.Toastify__toast--stacked:after{content:"";position:absolute;left:0;right:0;height:calc(var(--g) * 1px);bottom:100%}.Toastify__toast--stacked[data-pos=top]{top:0}.Toastify__toast--stacked[data-pos=bot]{bottom:0}.Toastify__toast--stacked[data-pos=bot].Toastify__toast--stacked:before{transform-origin:top}.Toastify__toast--stacked[data-pos=top].Toastify__toast--stacked:before{transform-origin:bottom}.Toastify__toast--stacked:before{content:"";position:absolute;left:0;right:0;bottom:0;height:100%;transform:scaleY(3);z-index:-1}.Toastify__toast--rtl{direction:rtl}.Toastify__toast--close-on-click{cursor:pointer}.Toastify__toast-icon{margin-inline-end:10px;width:22px;flex-shrink:0;display:flex}.Toastify--animate{animation-fill-mode:both;animation-duration:.5s}.Toastify--animate-icon{animation-fill-mode:both;animation-duration:.3s}.Toastify__toast-theme--dark{background:var(--toastify-color-dark);color:var(--toastify-text-color-dark)}.Toastify__toast-theme--light,.Toastify__toast-theme--colored.Toastify__toast--default{background:var(--toastify-color-light);color:var(--toastify-text-color-light)}.Toastify__toast-theme--colored.Toastify__toast--info{color:var(--toastify-text-color-info);background:var(--toastify-color-info)}.Toastify__toast-theme--colored.Toastify__toast--success{color:var(--toastify-text-color-success);background:var(--toastify-color-success)}.Toastify__toast-theme--colored.Toastify__toast--warning{color:var(--toastify-text-color-warning);background:var(--toastify-color-warning)}.Toastify__toast-theme--colored.Toastify__toast--error{color:var(--toastify-text-color-error);background:var(--toastify-color-error)}.Toastify__progress-bar-theme--light{background:var(--toastify-color-progress-light)}.Toastify__progress-bar-theme--dark{background:var(--toastify-color-progress-dark)}.Toastify__progress-bar--info{background:var(--toastify-color-progress-info)}.Toastify__progress-bar--success{background:var(--toastify-color-progress-success)}.Toastify__progress-bar--warning{background:var(--toastify-color-progress-warning)}.Toastify__progress-bar--error{background:var(--toastify-color-progress-error)}.Toastify__progress-bar-theme--colored.Toastify__progress-bar--info,.Toastify__progress-bar-theme--colored.Toastify__progress-bar--success,.Toastify__progress-bar-theme--colored.Toastify__progress-bar--warning,.Toastify__progress-bar-theme--colored.Toastify__progress-bar--error{background:var(--toastify-color-transparent)}.Toastify__close-button{color:#fff;position:absolute;top:6px;right:6px;background:transparent;outline:none;border:none;padding:0;cursor:pointer;opacity:.7;transition:.3s ease;z-index:1}.Toastify__toast--rtl .Toastify__close-button{left:6px;right:unset}.Toastify__close-button--light{color:#000;opacity:.3}.Toastify__close-button>svg{fill:currentColor;height:16px;width:14px}.Toastify__close-button:hover,.Toastify__close-button:focus{opacity:1}@keyframes Toastify__trackProgress{0%{transform:scaleX(1)}to{transform:scaleX(0)}}.Toastify__progress-bar{position:absolute;bottom:0;left:0;width:100%;height:100%;z-index:1;opacity:.7;transform-origin:left}.Toastify__progress-bar--animated{animation:Toastify__trackProgress linear 1 forwards}.Toastify__progress-bar--controlled{transition:transform .2s}.Toastify__progress-bar--rtl{right:0;left:initial;transform-origin:right;border-bottom-left-radius:initial}.Toastify__progress-bar--wrp{position:absolute;overflow:hidden;bottom:0;left:0;width:100%;height:5px;border-bottom-left-radius:var(--toastify-toast-bd-radius);border-bottom-right-radius:var(--toastify-toast-bd-radius)}.Toastify__progress-bar--wrp[data-hidden=true]{opacity:0}.Toastify__progress-bar--bg{opacity:var(--toastify-color-progress-bgo);width:100%;height:100%}.Toastify__spinner{width:20px;height:20px;box-sizing:border-box;border:2px solid;border-radius:100%;border-color:var(--toastify-spinner-color-empty-area);border-right-color:var(--toastify-spinner-color);animation:Toastify__spin .65s linear infinite}@keyframes Toastify__bounceInRight{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(3000px,0,0)}60%{opacity:1;transform:translate3d(-25px,0,0)}75%{transform:translate3d(10px,0,0)}90%{transform:translate3d(-5px,0,0)}to{transform:none}}@keyframes Toastify__bounceOutRight{20%{opacity:1;transform:translate3d(-20px,var(--y),0)}to{opacity:0;transform:translate3d(2000px,var(--y),0)}}@keyframes Toastify__bounceInLeft{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(-3000px,0,0)}60%{opacity:1;transform:translate3d(25px,0,0)}75%{transform:translate3d(-10px,0,0)}90%{transform:translate3d(5px,0,0)}to{transform:none}}@keyframes Toastify__bounceOutLeft{20%{opacity:1;transform:translate3d(20px,var(--y),0)}to{opacity:0;transform:translate3d(-2000px,var(--y),0)}}@keyframes Toastify__bounceInUp{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(0,3000px,0)}60%{opacity:1;transform:translate3d(0,-20px,0)}75%{transform:translate3d(0,10px,0)}90%{transform:translate3d(0,-5px,0)}to{transform:translateZ(0)}}@keyframes Toastify__bounceOutUp{20%{transform:translate3d(0,calc(var(--y) - 10px),0)}40%,45%{opacity:1;transform:translate3d(0,calc(var(--y) + 20px),0)}to{opacity:0;transform:translate3d(0,-2000px,0)}}@keyframes Toastify__bounceInDown{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(0,-3000px,0)}60%{opacity:1;transform:translate3d(0,25px,0)}75%{transform:translate3d(0,-10px,0)}90%{transform:translate3d(0,5px,0)}to{transform:none}}@keyframes Toastify__bounceOutDown{20%{transform:translate3d(0,calc(var(--y) - 10px),0)}40%,45%{opacity:1;transform:translate3d(0,calc(var(--y) + 20px),0)}to{opacity:0;transform:translate3d(0,2000px,0)}}.Toastify__bounce-enter--top-left,.Toastify__bounce-enter--bottom-left{animation-name:Toastify__bounceInLeft}.Toastify__bounce-enter--top-right,.Toastify__bounce-enter--bottom-right{animation-name:Toastify__bounceInRight}.Toastify__bounce-enter--top-center{animation-name:Toastify__bounceInDown}.Toastify__bounce-enter--bottom-center{animation-name:Toastify__bounceInUp}.Toastify__bounce-exit--top-left,.Toastify__bounce-exit--bottom-left{animation-name:Toastify__bounceOutLeft}.Toastify__bounce-exit--top-right,.Toastify__bounce-exit--bottom-right{animation-name:Toastify__bounceOutRight}.Toastify__bounce-exit--top-center{animation-name:Toastify__bounceOutUp}.Toastify__bounce-exit--bottom-center{animation-name:Toastify__bounceOutDown}@keyframes Toastify__zoomIn{0%{opacity:0;transform:scale3d(.3,.3,.3)}50%{opacity:1}}@keyframes Toastify__zoomOut{0%{opacity:1}50%{opacity:0;transform:translate3d(0,var(--y),0) scale3d(.3,.3,.3)}to{opacity:0}
32}.Toastify__zoom-enter{animation-name:Toastify__zoomIn}.Toastify__zoom-exit{animation-name:Toastify__zoomOut}@keyframes Toastify__flipIn{0%{transform:perspective(400px) rotateX(90deg);animation-timing-function:ease-in;opacity:0}40%{transform:perspective(400px) rotateX(-20deg);animation-timing-function:ease-in}60%{transform:perspective(400px) rotateX(10deg);opacity:1}80%{transform:perspective(400px) rotateX(-5deg)}to{transform:perspective(400px)}}@keyframes Toastify__flipOut{0%{transform:translate3d(0,var(--y),0) perspective(400px)}30%{transform:translate3d(0,var(--y),0) perspective(400px) rotateX(-20deg);opacity:1}to{transform:translate3d(0,var(--y),0) perspective(400px) rotateX(90deg);opacity:0}}.Toastify__flip-enter{animation-name:Toastify__flipIn}.Toastify__flip-exit{animation-name:Toastify__flipOut}@keyframes Toastify__slideInRight{0%{transform:translate3d(110%,0,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideInLeft{0%{transform:translate3d(-110%,0,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideInUp{0%{transform:translate3d(0,110%,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideInDown{0%{transform:translate3d(0,-110%,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideOutRight{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(110%,var(--y),0)}}@keyframes Toastify__slideOutLeft{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(-110%,var(--y),0)}}@keyframes Toastify__slideOutDown{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(0,500px,0)}}@keyframes Toastify__slideOutUp{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(0,-500px,0)}}.Toastify__slide-enter--top-left,.Toastify__slide-enter--bottom-left{animation-name:Toastify__slideInLeft}.Toastify__slide-enter--top-right,.Toastify__slide-enter--bottom-right{animation-name:Toastify__slideInRight}.Toastify__slide-enter--top-center{animation-name:Toastify__slideInDown}.Toastify__slide-enter--bottom-center{animation-name:Toastify__slideInUp}.Toastify__slide-exit--top-left,.Toastify__slide-exit--bottom-left{animation-name:Toastify__slideOutLeft;animation-timing-function:ease-in;animation-duration:.3s}.Toastify__slide-exit--top-right,.Toastify__slide-exit--bottom-right{animation-name:Toastify__slideOutRight;animation-timing-function:ease-in;animation-duration:.3s}.Toastify__slide-exit--top-center{animation-name:Toastify__slideOutUp;animation-timing-function:ease-in;animation-duration:.3s}.Toastify__slide-exit--bottom-center{animation-name:Toastify__slideOutDown;animation-timing-function:ease-in;animation-duration:.3s}@keyframes Toastify__spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}} 33`);var b2=t=>typeof t=="number"&&!isNaN(t),zh=t=>typeof t=="string",Ic=t=>typeof t=="function",yMe=t=>zh(t)||b2(t),UD=t=>zh(t)||Ic(t)?t:null,bMe=(t,e)=>t===!1||b2(t)&&t>0?t:e,jD=t=>C.isValidElement(t)||zh(t)||Ic(t)||b2(t);function vMe(t,e,n=300){let{scrollHeight:r,style:i}=t;requestAnimationFrame(()=>{i.minHeight="initial",i.height=r+"px",i.transition=`all ${n}ms`,requestAnimationFrame(()=>{i.height="0",i.padding="0",i.margin="0",setTimeout(e,n)})})}function Mce({enter:t,exit:e,appendPosition:n=!1,collapse:r=!0,collapseDuration:i=300}){return function({children:s,position:a,preventExitTransition:o,done:l,nodeRef:u,isIn:c,playToast:d}){let h=n?`${t}--${a}`:t,m=n?`${e}--${a}`:e,g=C.useRef(0);return C.useLayoutEffect(()=>{let b=u.current,v=h.split(" "),E=x=>{x.target===u.current&&(d(),b.removeEventListener("animationend",E),b.removeEventListener("animationcancel",E),g.current===0&&x.type!=="animationcancel"&&b.classList.remove(...v))};b.classList.add(...v),b.addEventListener("animationend",E),b.addEventListener("animationcancel",E)},[]),C.useEffect(()=>{let b=u.current,v=()=>{b.removeEventListener("animationend",v),r?vMe(b,l,i):l()};c||(o?v():(g.current=1,b.className+=` ${m}`,b.addEventListener("animationend",v)))},[c]),U.createElement(U.Fragment,null,s)}}function lW(t,e){return{content:Dce(t.content,t.props),containerId:t.props.containerId,id:t.props.toastId,theme:t.props.theme,type:t.props.type,data:t.props.data||{},isLoading:t.props.isLoading,icon:t.props.icon,reason:t.removalReason,status:e}}function Dce(t,e,n=!1){return C.isValidElement(t)&&!zh(t.type)?C.cloneElement(t,{closeToast:e.closeToast,toastProps:e,data:e.data,isPaused:n}):Ic(t)?t({closeToast:e.closeToast,toastProps:e,data:e.data,isPaused:n}):t}function EMe({closeToast:t,theme:e,ariaLabel:n="close"}){return U.createElement("button",{className:`Toastify__close-button Toastify__close-button--${e}`,type:"button",onClick:r=>{r.stopPropagation(),t(!0)},"aria-label":n},U.createElement("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},U.createElement("path",{fillRule:"evenodd",d:"M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z"})))}function _Me({delay:t,isRunning:e,closeToast:n,type:r="default",hide:i,className:s,controlledProgress:a,progress:o,rtl:l,isIn:u,theme:c}){let d=i||a&&o===0,h={animationDuration:`${t}ms`,animationPlayState:e?"running":"paused"};a&&(h.transform=`scaleX(${o})`);let m=Va("Toastify__progress-bar",a?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated",`Toastify__progress-bar-theme--${c}`,`Toastify__progress-bar--${r}`,{"Toastify__progress-bar--rtl":l}),g=Ic(s)?s({rtl:l,type:r,defaultClassName:m}):Va(m,s),b={[a&&o>=1?"onTransitionEnd":"onAnimationEnd"]:a&&o<1?null:()=>{u&&n()}};return U.createElement("div",{className:"Toastify__progress-bar--wrp","data-hidden":d},U.createElement("div",{className:`Toastify__progress-bar--bg Toastify__progress-bar-theme--${c} Toastify__progress-bar--${r}`}),U.createElement("div",{role:"progressbar","aria-hidden":d?"true":"false","aria-label":"notification timer",className:g,style:h,...b}))}var xMe=1,Pce=()=>`${xMe++}`;function wMe(t,e,n){let r=1,i=0,s=[],a=[],o=e,l=new Map,u=new Set,c=x=>(u.add(x),()=>u.delete(x)),d=()=>{a=Array.from(l.values()),u.forEach(x=>x())},h=({containerId:x,toastId:_,updateId:S})=>
vendor: 13,315 bytes, line 33
33{let A=x?x!==t:t!==1,R=l.has(_)&&S==null;return A||R},m=(x,_)=>{l.forEach(S=>{var A;(_==null||_===S.props.toastId)&&((A=S.toggle)==null||A.call(S,x))})},g=x=>{var _,S;(S=(_=x.props)==null?void 0:_.onClose)==null||S.call(_,x.removalReason),x.isActive=!1},b=x=>{if(x==null)l.forEach(g);else{let _=l.get(x);_&&g(_)}d()},v=()=>{i-=s.length,s=[]},E=x=>{var _,S;let{toastId:A,updateId:R}=x.props,T=R==null;x.staleId&&l.delete(x.staleId),x.isActive=!0,l.set(A,x),d(),n(lW(x,T?"added":"updated")),T&&((S=(_=x.props).onOpen)==null||S.call(_))};return{id:t,props:o,observe:c,toggle:m,removeToast:b,toasts:l,clearQueue:v,buildToast:(x,_)=>{if(h(_))return;let{toastId:S,updateId:A,data:R,staleId:T,delay:O}=_,I=A==null;I&&i++;let D={...o,style:o.toastStyle,key:r++,...Object.fromEntries(Object.entries(_).filter(([B,L])=>L!=null)),toastId:S,updateId:A,data:R,isIn:!1,className:UD(_.className||o.toastClassName),progressClassName:UD(_.progressClassName||o.progressClassName),autoClose:_.isLoading?!1:bMe(_.autoClose,o.autoClose),closeToast(B){l.get(S).removalReason=B,b(S)},deleteToast(){let B=l.get(S);if(B!=null){if(n(lW(B,"removed")),l.delete(S),i--,i<0&&(i=0),s.length>0){E(s.shift());return}d()}}};D.closeButton=o.closeButton,_.closeButton===!1||jD(_.closeButton)?D.closeButton=_.closeButton:_.closeButton===!0&&(D.closeButton=jD(o.closeButton)?o.closeButton:!0);let P={content:x,props:D,staleId:T};o.limit&&o.limit>0&&i>o.limit&&I?s.push(P):b2(O)?setTimeout(()=>{E(P)},O):E(P)},setProps(x){o=x},setToggle:(x,_)=>{let S=l.get(x);S&&(S.toggle=_)},isToastActive:x=>{var _;return(_=l.get(x))==null?void 0:_.isActive},getSnapshot:()=>a}}var Is=new Map,Yb=[],zD=new Set,SMe=t=>zD.forEach(e=>e(t)),Lce=()=>Is.size>0;function CMe(){Yb.forEach(t=>Fce(t.content,t.options)),Yb=[]}var TMe=(t,{containerId:e})=>{var n;return(n=Is.get(e||1))==null?void 0:n.toasts.get(t)};function $ce(t,e){var n;if(e)return!!((n=Is.get(e))!=null&&n.isToastActive(t));let r=!1;return Is.forEach(i=>{i.isToastActive(t)&&(r=!0)}),r}function AMe(t){if(!Lce()){Yb=Yb.filter(e=>t!=null&&e.options.toastId!==t);return}if(t==null||yMe(t))Is.forEach(e=>{e.removeToast(t)});else if(t&&("containerId"in t||"id"in t)){let e=Is.get(t.containerId);e?e.removeToast(t.id):Is.forEach(n=>{n.removeToast(t.id)})}}var RMe=(t={})=>{Is.forEach(e=>{e.props.limit&&(!t.containerId||e.id===t.containerId)&&e.clearQueue()})};function Fce(t,e){jD(t)&&(Lce()||Yb.push({content:t,options:e}),Is.forEach(n=>{n.buildToast(t,e)}))}function NMe(t){var e;(e=Is.get(t.containerId||1))==null||e.setToggle(t.id,t.fn)}function Bce(t,e){Is.forEach(n=>{(e==null||!(e!=null&&e.containerId)||e?.containerId===n.id)&&n.toggle(t,e?.id)})}function OMe(t){let e=t.containerId||1;return{subscribe(n){let r=wMe(e,t,SMe);Is.set(e,r);let i=r.observe(n);return CMe(),()=>{i(),Is.delete(e)}},setProps(n){var r;(r=Is.get(e))==null||r.setProps(n)},getSnapshot(){var n;return(n=Is.get(e))==null?void 0:n.getSnapshot()}}}function kMe(t){return zD.add(t),()=>{zD.delete(t)}}function IMe(t){return t&&(zh(t.toastId)||b2(t.toastId))?t.toastId:Pce()}function v2(t,e){return Fce(t,e),e.toastId}function wT(t,e){return{...e,type:e&&e.type||t,toastId:IMe(e)}}function ST(t){return(e,n)=>v2(e,wT(t,n))}function Jn(t,e){return v2(t,wT("default",e))}Jn.loading=(t,e)=>v2(t,wT("default",{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...e}));function MMe(t,{pending:e,error:n,success:r},i){let s;e&&(s=zh(e)?Jn.loading(e,i):Jn.loading(e.render,{...i,...e}));let a={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},o=(u,c,d)=>{if(c==null){Jn.dismiss(s);return}let h={type:u,...a,...i,data:d},m=zh(c)?{render:c}:c;return s?Jn.update(s,{...h,...m}):Jn(m.render,{...h,...m}),d},l=Ic(t)?t():t;return l.then(u=>o("success",r,u)).catch(u=>o("error",n,u)),l}Jn.promise=MMe;Jn.success=ST("success");Jn.info=ST("info");Jn.error=ST("error");Jn.warning=ST("warning");Jn.warn=Jn.warning;Jn.dark=(t,e)=>v2(t,wT("default",{theme:"dark",...e}));function DMe(t){AMe(t)}Jn.dismiss=DMe;Jn.clearWaitingQueue=RMe;Jn.isActive=$ce;Jn.update=(t,e={})=>{let n=TMe(t,e);if(n){let{props:r,content:i}=n,s={delay:100,...r,...e,toastId:e.toastId||t,updateId:Pce()};s.toastId!==t&&(s.staleId=t);let a=s.render||i;delete s.render,v2(a,s)}};Jn.done=t=>{Jn.update(t,{progress:1})};Jn.onChange=kMe;Jn.play=t=>Bce(!0,t);Jn.pause=t=>Bce(!1,t);function PMe(t){var e;let{subscribe:n,getSnapshot:r,setProps:i}=C.useRef(OMe(t)).current;i(t);let s=(e=C.useSyncExternalStore(n,r,r))==null?void 0:e.slice();function a(o){if(!s)return[];let l=new Map;return t.newestOnTop&&s.reverse(),s.forEach(u=>{let{position:c}=u.props;l.has(c)||l.set(c,[]),l.get(c).push(u)}),Array.from(l,u=>o(u[0],u[1]))}return{getToastToRender:a,isToastActive:$ce,count:s?.length}}function LMe(t){let[e,n]=C.useState(!1),[r,i]=C.useState(!1),s=C.useRef(null),a=C.useRef({start:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,didMove:!1}).current,{autoClose:o,pauseOnHover:l,closeToast:u,onClick:c,closeOnClick:d}=t;NMe({id:t.toastId,containerId:t.containerId,fn:n}),C.useEffect(()=>{if(t.pauseOnFocusLoss)return h(),()=>{m()}},[t.pauseOnFocusLoss]);function h(){document.hasFocus()||E(),window.addEventListener("focus",v),window.addEventListener("blur",E)}function m(){window.removeEventListener("focus",v),window.removeEventListener("blur",E)}function g(T){if(t.draggable===!0||t.draggable===T.pointerType){x();let O=s.current;a.canCloseOnClick=!0,a.canDrag=!0,O.style.transition="none",t.draggableDirection==="x"?(a.start=T.clientX,a.removalDistance=O.offsetWidth*(t.draggablePercent/100)):(a.start=T.clientY,a.removalDistance=O.offsetHeight*(t.draggablePercent===80?t.draggablePercent*1.5:t.draggablePercent)/100)}}function b(T){let{top:O,bottom:I,left:D,right:P}=s.current.getBoundingClientRect();T.nativeEvent.type!=="touchend"&&t.pauseOnHover&&T.clientX>=D&&T.clientX<=P&&T.clientY>=O&&T.clientY<=I?E():v()}function v(){n(!0)}function E(){n(!1)}function x(){a.didMove=!1,document.addEventListener("pointermove",S),document.addEventListener("pointerup",A)}function _(){document.removeEventListener("pointermove",S),document.removeEventListener("pointerup",A)}function S(T){let O=s.current;if(a.canDrag&&O){a.didMove=!0,e&&E(),t.draggableDirection==="x"?a.delta=T.clientX-a.start:a.delta=T.clientY-a.start,a.start!==T.clientX&&(a.canCloseOnClick=!1);let I=t.draggableDirection==="x"?`${a.delta}px, var(--y)`:`0, calc(${a.delta}px + var(--y))`;O.style.transform=`translate3d(${I},0)`,O.style.opacity=`${1-Math.abs(a.delta/a.removalDistance)}`}}function A(){_();let T=s.current;if(a.canDrag&&a.didMove&&T){if(a.canDrag=!1,Math.abs(a.delta)>a.removalDistance){i(!0),t.closeToast(!0),t.collapseAll();return}T.style.transition="transform 0.2s, opacity 0.2s",T.style.removeProperty("transform"),T.style.removeProperty("opacity")}}let R={onPointerDown:g,onPointerUp:b};return o&&l&&(R.onMouseEnter=E,t.stacked||(R.onMouseLeave=v)),d&&(R.onClick=T=>{c&&c(T),a.canCloseOnClick&&u(!0)}),{playToast:v,pauseToast:E,isRunning:e,preventExitTransition:r,toastRef:s,eventHandlers:R}}var $Me=typeof window<"u"?C.useLayoutEffect:C.useEffect,CT=({theme:t,type:e,isLoading:n,...r})=>U.createElement("svg",{viewBox:"0 0 24 24",width:"100%",height:"100%",fill:t==="colored"?"currentColor":`var(--toastify-icon-color-${e})`,...r});function FMe(t){return U.createElement(CT,{...t},U.createElement("path",{d:"M23.32 17.191L15.438 2.184C14.728.833 13.416 0 11.996 0c-1.42 0-2.733.833-3.443 2.184L.533 17.448a4.744 4.744 0 000 4.368C1.243 23.167 2.555 24 3.975 24h16.05C22.22 24 24 22.044 24 19.632c0-.904-.251-1.746-.68-2.44zm-9.622 1.46c0 1.033-.724 1.823-1.698 1.823s-1.698-.79-1.698-1.822v-.043c0-1.028.724-1.822 1.698-1.822s1.698.79 1.698 1.822v.043zm.039-12.285l-.84 8.06c-.057.581-.408.943-.897.943-.49 0-.84-.367-.896-.942l-.84-8.065c-.057-.624.25-1.095.779-1.095h1.91c.528.005.84.476.784 1.1z"}))}function BMe(t){return U.createElement(CT,{...t},U.createElement("path",{d:"M12 0a12 12 0 1012 12A12.013 12.013 0 0012 0zm.25 5a1.5 1.5 0 11-1.5 1.5 1.5 1.5 0 011.5-1.5zm2.25 13.5h-4a1 1 0 010-2h.75a.25.25 0 00.25-.25v-4.5a.25.25 0 00-.25-.25h-.75a1 1 0 010-2h1a2 2 0 012 2v4.75a.25.25 0 00.25.25h.75a1 1 0 110 2z"}))}function HMe(t){return U.createElement(CT,{...t},U.createElement("path",{d:"M12 0a12 12 0 1012 12A12.014 12.014 0 0012 0zm6.927 8.2l-6.845 9.289a1.011 1.011 0 01-1.43.188l-4.888-3.908a1 1 0 111.25-1.562l4.076 3.261 6.227-8.451a1 1 0 111.61 1.183z"}))}function UMe(t){return U.createElement(CT,{...t},U.createElement("path",{d:"M11.983 0a12.206 12.206 0 00-8.51 3.653A11.8 11.8 0 000 12.207 11.779 11.779 0 0011.8 24h.214A12.111 12.111 0 0024 11.791 11.766 11.766 0 0011.983 0zM10.5 16.542a1.476 1.476 0 011.449-1.53h.027a1.527 1.527 0 011.523 1.47 1.475 1.475 0 01-1.449 1.53h-.027a1.529 1.529 0 01-1.523-1.47zM11 12.5v-6a1 1 0 012 0v6a1 1 0 11-2 0z"}))}function jMe(){return U.createElement("div",{className:"Toastify__spinner"})}var VD={info:BMe,warning:FMe,success:HMe,error:UMe,spinner:jMe},zMe=t=>t in VD;function VMe({theme:t,type:e,isLoading:n,icon:r}){let i=null,s={theme:t,type:e};return r===!1||(Ic(r)?i=r({...s,isLoading:n}):C.isValidElement(r)?i=C.cloneElement(r,s):n?i=VD.spinner():zMe(e)&&(i=VD[e](s))),i}var qMe=t=>{let{isRunning:e,preventExitTransition:n,toastRef:r,eventHandlers:i,playToast:s}=LMe(t),{closeButton:a,children:o,autoClose:l,onClick:u,type:c,hideProgressBar:d,closeToast:h,transition:m,position:g,className:b,style:v,progressClassName:E,updateId:x,role:_,progress:S,rtl:A,toastId:R,deleteToast:T,isIn:O,isLoading:I,closeOnClick:D,theme:P,ariaLabel:B}=t,L=Va("Toastify__toast",`Toastify__toast-theme--${P}`,`Toastify__toast--${c}`,{"Toastify__toast--rtl":A},{"Toastify__toast--close-on-click":D}),$=Ic(b)?b({rtl:A,position:g,type:c,defaultClassName:L}):Va(L,b),q=VMe(t),F=!!S||!l,G={closeToast:h,type:c,theme:P},H=null;return a===!1||(Ic(a)?H=a(G):C.isValidElement(a)?H=C.cloneElement(a,G):H=EMe(G)),U.createElement(m,{isIn:O,done:T,position:g,preventExitTransition:n,nodeRef:r,playToast:s},U.createElement("div",{id:R,tabIndex:0,onClick:u,"data-in":O,className:$,...i,style:v,ref:r,...O&&{role:_,"aria-label":B}},q!=null&&U.createElement("div",{className:Va("Toastify__toast-icon",{"Toastify--animate-icon Toastify__zoom-enter":!I})},q),Dce(o,t,!e),H,!t.customProgressBar&&U.createElement(_Me,{...x&&!F?{key:`p-${x}`}:{},rtl:A,theme:P,delay:l,isRunning:e,isIn:O,closeToast:h,hide:d,type:c,className:E,controlledProgress:F,progress:S||0})))},Hce=(t,e=!1)=>({enter:`Toastify--animate Toastify__${t}-enter`,exit:`Toastify--animate Toastify__${t}-exit`,appendPosition:e}),GMe=Mce(Hce("bounce",!0)),Xkt=Mce(Hce("slide",!0)),WMe={position:"top-right",transition:GMe,autoClose:5e3,closeButton:!0,pauseOnHover:!0,pauseOnFocusLoss:!0,draggable:"touch",draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light","aria-label":"Notifications Alt+T",hotKeys:t=>t.altKey&&t.code==="KeyT"};function Qkt(t){let e={...WMe,...t},n=t.stacked,[r,i]=C.useState(!0),s=C.useRef(null),{getToastToRender:a,isToastActive:o,count:l}=PMe(e),{className:u,style:c,rtl:d,containerId:h,hotKeys:m}=e;function g(v){let E=Va("Toastify__toast-container",`Toastify__toast-container--${v}`,{"Toastify__toast-container--rtl":d});return Ic(u)?u({position:v,rtl:d,defaultClassName:E}):Va(E,UD(u))}function b(){n&&(i(!0),Jn.play())}return $Me(()=>{var v;if(n){let E=s.current.querySelectorAll('[data-in="true"]'),x=12,_=(v=e.position)==null?void 0:v.includes("top"),S=0,A=0;Array.from(E).reverse().forEach((R,T)=>{let O=R;O.classList.add("Toastify__toast--stacked"),T>0&&(O.dataset.collapsed=`${r}`),O.dataset.pos||(O.dataset.pos=_?"top":"bot");let I=S*(r?.2:1)+(r?0:x*T);O.style.setProperty("--y",`${_?I:I*-1}px`),O.style.setProperty("--g",`${x}`),O.style.setProperty("--s",`${1-(r?A:0)}`),S+=O.offsetHeight,A+=.025})}},[r,l,n]),C.useEffect(()=>{function v(E){var x;let _=s.current;m(E)&&((x=_.querySelector('[tabIndex="0"]'))==null||x.focus(),i(!1),Jn.pause()),E.key==="Escape"&&(document.activeElement===_||_!=null&&_.contains(document.activeElement))&&(i(!0),Jn.play())}return document.addEventListener("keydown",v),()=>{document.removeEventListener("keydown",v)}},[m]),U.createElement("section",{ref:s,className:"Toastify",id:h,onMouseEnter:()=>{n&&(i(!1),Jn.pause())},onMouseLeave:b,"aria-live":"polite","aria-atomic":"false","aria-relevant":"additions text","aria-label":e["aria-label"]},a((v,E)=>{let x=E.length?{...c}:{...c,pointerEvents:"none"};return U.createElement("div",{tabIndex:-1,className:g(v),"data-stacked":n,style:x,key:`c-${v}`},E.map(({content:_,props:S})=>U.createElement(qMe,{...S,stacked:n,collapseAll:b,isIn:o(S.toastId,S.containerId),key:`t-${S.key}`},_)))}))}var bo=function(){return bo=Object.assign||function(e){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(e[s]=n[s])}return e},bo.apply(this,arguments)};function Uce(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n}function Ap(t,e,n,r){function i(s){return s instanceof n?s:new n(function(a){a(s)})}
33return new(n||(n=Promise))(function(s,a){function o(c){try{u(r.next(c))}catch(d){a(d)}}function l(c){try{u(r.throw(c))}catch(d){a(d)}}function u(c){c.done?s(c.value):i(c.value).then(o,l)}u((r=r.apply(t,e||[])).next())})}function YMe(t,e,n){if(n||arguments.length===2)for(var r=0,i=e.length,s;r<i;r++)(s||!(r in e))&&(s||(s=Array.prototype.slice.call(e,0,r)),s[r]=e[r]);return t.concat(s||Array.prototype.slice.call(e))}var uW=function(){};function KMe(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];t&&t.addEventListener&&t.addEventListener.apply(t,e)}function XMe(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];t&&t.removeEventListener&&t.removeEventListener.apply(t,e)}var Tw=typeof window<"u",QMe=function(t){C.useEffect(t,[])},Zkt=function(t,e,n){if(!Tw)return[e,uW,uW];if(!t)throw new Error("useLocalStorage key may not be falsy");var r=JSON.parse,i=C.useRef(function(c){try{var d=n?n.raw?String:n.serializer:JSON.stringify,h=localStorage.getItem(c);return h!==null?r(h):(e&&localStorage.setItem(c,d(e)),e)}catch{return e}}),s=C.useState(function(){return i.current(t)}),a=s[0],o=s[1];C.useLayoutEffect(function(){return o(i.current(t))},[t]);var l=C.useCallback(function(c){try{var d=typeof c=="function"?c(a):c;if(typeof d>"u")return;var h=void 0;n||(h=JSON.stringify(d)),localStorage.setItem(t,h),o(r(h))}catch{}},[t,o]),u=C.useCallback(function(){try{localStorage.removeItem(t),o(void 0)}catch{}},[t,o]);return[a,l,u]},ZMe=function(t){var e=C.useRef(t);e.current=t,QMe(function(){return function(){return e.current()}})},JMe=function(t){var e=C.useRef(0),n=C.useState(t),r=n[0],i=n[1],s=C.useCallback(function(a){cancelAnimationFrame(e.current),e.current=requestAnimationFrame(function(){i(a)})},[]);return ZMe(function(){cancelAnimationFrame(e.current)}),[r,s]},eDe={restoreOnUnmount:!1};function tDe(t,e){e===void 0&&(e=eDe);var n=C.useRef(document.title);document.title!==t&&(document.title=t),C.useEffect(function(){if(e&&e.restoreOnUnmount)return function(){document.title=n.current}},[])}const Jkt=typeof document<"u"?tDe:function(t){};var e8t=function(t){var e={},n=e.initialWidth,r=n===void 0?1/0:n,i=e.initialHeight,s=i===void 0?1/0:i,a=e.onChange,o=JMe({width:Tw?window.innerWidth:r,height:Tw?window.innerHeight:s}),l=o[0],u=o[1];return C.useEffect(function(){if(Tw){var c=function(){var d=window.innerWidth,h=window.innerHeight;u({width:d,height:h}),a&&a(d,h)};return KMe(window,"resize",c),function(){XMe(window,"resize",c)}}},[]),l},k0=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(t){return this.listeners.add(t),this.onSubscribe(),()=>{this.listeners.delete(t),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},nDe={setTimeout:(t,e)=>setTimeout(t,e),clearTimeout:t=>clearTimeout(t),setInterval:(t,e)=>setInterval(t,e),clearInterval:t=>clearInterval(t)},rDe=class{#e=nDe;#t=!1;setTimeoutProvider(t){this.#e=t}setTimeout(t,e){return this.#e.setTimeout(t,e)}clearTimeout(t){this.#e.clearTimeout(t)}setInterval(t,e){return this.#e.setInterval(t,e)}clearInterval(t){this.#e.clearInterval(t)}},mh=new rDe;function iDe(t){setTimeout(t,0)}var Vh=typeof window>"u"||"Deno"in globalThis;function Cs(){}function sDe(t,e){return typeof t=="function"?t(e):t}function qD(t){return typeof t=="number"&&t>=0&&t!==1/0}function jce(t,e){return Math.max(t+(e||0)-Date.now(),0)}function Xd(t,e){return typeof t=="function"?t(e):t}function po(t,e){return typeof t=="function"?t(e):t}function cW(t,e){const{type:n="all",exact:r,fetchStatus:i,predicate:s,queryKey:a,stale:o}=t;if(a){if(r){if(e.queryHash!==X7(a,e.options))return!1}else if(!Kb(e.queryKey,a))return!1}if(n!=="all"){const l=e.isActive();if(n==="active"&&!l||n==="inactive"&&l)return!1}return!(typeof o=="boolean"&&e.isStale()!==o||i&&i!==e.state.fetchStatus||s&&!s(e))}function dW(t,e){const{exact:n,status:r,predicate:i,mutationKey:s}=t;if(s){if(!e.options.mutationKey)return!1;if(n){if(qh(e.options.mutationKey)!==qh(s))return!1}else if(!Kb(e.options.mutationKey,s))return!1}return!(r&&e.state.status!==r||i&&!i(e))}function X7(t,e){return(e?.queryKeyHashFn||qh)(t)}function qh(t){return JSON.stringify(t,(e,n)=>GD(n)?Object.keys(n).sort().reduce((r,i)=>(r[i]=n[i],r),{}):n)}function Kb(t,e){return t===e?!0:typeof t!=typeof e?!1:t&&e&&typeof t=="object"&&typeof e=="object"?Object.keys(e).every(n=>Kb(t[n],e[n])):!1}var aDe=Object.prototype.hasOwnProperty;function zce(t,e,n=0){if(t===e)return t;if(n>500)return e;const r=fW(t)&&fW(e);if(!r&&!(GD(t)&&GD(e)))return e;const s=(r?t:Object.keys(t)).length,a=r?e:Object.keys(e),o=a.length,l=r?new Array(o):{};let u=0;for(let c=0;c<o;c++){const d=r?c:a[c],h=t[d],m=e[d];if(h===m){l[d]=h,(r?c<s:aDe.call(t,d))&&u++;continue}if(h===null||m===null||typeof h!="object"||typeof m!="object"){l[d]=m;continue}
vendor: 24,187 bytes, line 33
33const g=zce(h,m,n+1);l[d]=g,g===h&&u++}return s===o&&u===s?t:l}function xS(t,e){if(!e||Object.keys(t).length!==Object.keys(e).length)return!1;for(const n in t)if(t[n]!==e[n])return!1;return!0}function fW(t){return Array.isArray(t)&&t.length===Object.keys(t).length}function GD(t){if(!hW(t))return!1;const e=t.constructor;if(e===void 0)return!0;const n=e.prototype;return!(!hW(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(t)!==Object.prototype)}function hW(t){return Object.prototype.toString.call(t)==="[object Object]"}function oDe(t){return new Promise(e=>{mh.setTimeout(e,t)})}function WD(t,e,n){return typeof n.structuralSharing=="function"?n.structuralSharing(t,e):n.structuralSharing!==!1?zce(t,e):e}function t8t(t){return t}function lDe(t,e,n=0){const r=[...t,e];return n&&r.length>n?r.slice(1):r}function uDe(t,e,n=0){const r=[e,...t];return n&&r.length>n?r.slice(0,-1):r}var Q7=Symbol();function Vce(t,e){return!t.queryFn&&e?.initialPromise?()=>e.initialPromise:!t.queryFn||t.queryFn===Q7?()=>Promise.reject(new Error(`Missing queryFn: '${t.queryHash}'`)):t.queryFn}function Z7(t,e){return typeof t=="function"?t(...e):!!t}function cDe(t,e,n){let r=!1,i;return Object.defineProperty(t,"signal",{enumerable:!0,get:()=>(i??=e(),r||(r=!0,i.aborted?n():i.addEventListener("abort",n,{once:!0})),i)}),t}var dDe=class extends k0{#e;#t;#r;constructor(){super(),this.#r=t=>{if(!Vh&&window.addEventListener){const e=()=>t();return window.addEventListener("visibilitychange",e,!1),()=>{window.removeEventListener("visibilitychange",e)}}}}onSubscribe(){this.#t||this.setEventListener(this.#r)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(t){this.#r=t,this.#t?.(),this.#t=t(e=>{typeof e=="boolean"?this.setFocused(e):this.onFocus()})}setFocused(t){this.#e!==t&&(this.#e=t,this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(e=>{e(t)})}isFocused(){return typeof this.#e=="boolean"?this.#e:globalThis.document?.visibilityState!=="hidden"}},J7=new dDe;function YD(){let t,e;const n=new Promise((i,s)=>{t=i,e=s});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}),t(i)},n.reject=i=>{r({status:"rejected",reason:i}),e(i)},n}var fDe=iDe;function hDe(){let t=[],e=0,n=o=>{o()},r=o=>{o()},i=fDe;const s=o=>{e?t.push(o):i(()=>{n(o)})},a=()=>{const o=t;t=[],o.length&&i(()=>{r(()=>{o.forEach(l=>{n(l)})})})};return{batch:o=>{let l;e++;try{l=o()}finally{e--,e||a()}return l},batchCalls:o=>(...l)=>{s(()=>{o(...l)})},schedule:s,setNotifyFunction:o=>{n=o},setBatchNotifyFunction:o=>{r=o},setScheduler:o=>{i=o}}}var Ri=hDe(),pDe=class extends k0{#e=!0;#t;#r;constructor(){super(),this.#r=t=>{if(!Vh&&window.addEventListener){const e=()=>t(!0),n=()=>t(!1);return window.addEventListener("online",e,!1),window.addEventListener("offline",n,!1),()=>{window.removeEventListener("online",e),window.removeEventListener("offline",n)}}}}onSubscribe(){this.#t||this.setEventListener(this.#r)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(t){this.#r=t,this.#t?.(),this.#t=t(this.setOnline.bind(this))}setOnline(t){this.#e!==t&&(this.#e=t,this.listeners.forEach(n=>{n(t)}))}isOnline(){return this.#e}},wS=new pDe;function mDe(t){return Math.min(1e3*2**t,3e4)}function qce(t){return(t??"online")==="online"?wS.isOnline():!0}var KD=class extends Error{constructor(t){super("CancelledError"),this.revert=t?.revert,this.silent=t?.silent}};function Gce(t){let e=!1,n=0,r;const i=YD(),s=()=>i.status!=="pending",a=b=>{if(!s()){const v=new KD(b);h(v),t.onCancel?.(v)}},o=()=>{e=!0},l=()=>{e=!1},u=()=>J7.isFocused()&&(t.networkMode==="always"||wS.isOnline())&&t.canRun(),c=()=>qce(t.networkMode)&&t.canRun(),d=b=>{s()||(r?.(),i.resolve(b))},h=b=>{s()||(r?.(),i.reject(b))},m=()=>new Promise(b=>{r=v=>{(s()||u())&&b(v)},t.onPause?.()}).then(()=>{r=void 0,s()||t.onContinue?.()}),g=()=>{if(s())return;let b;const v=n===0?t.initialPromise:void 0;try{b=v??t.fn()}catch(E){b=Promise.reject(E)}Promise.resolve(b).then(d).catch(E=>{if(s())return;const x=t.retry??(Vh?0:3),_=t.retryDelay??mDe,S=typeof _=="function"?_(n,E):_,A=x===!0||typeof x=="number"&&n<x||typeof x=="function"&&x(n,E);if(e||!A){h(E);return}n++,t.onFail?.(n,E),oDe(S).then(()=>u()?void 0:m()).then(()=>{e?h(E):g()})})};return{promise:i,status:()=>i.status,cancel:a,continue:()=>(r?.(),i),cancelRetry:o,continueRetry:l,canStart:c,start:()=>(c()?g():m().then(g),i)}}var Wce=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),qD(this.gcTime)&&(this.#e=mh.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(t){this.gcTime=Math.max(this.gcTime||0,t??(Vh?1/0:300*1e3))}clearGcTimeout(){this.#e&&(mh.clearTimeout(this.#e),this.#e=void 0)}},gDe=class extends Wce{#e;#t;#r;#n;#i;#s;#a;constructor(t){super(),this.#a=!1,this.#s=t.defaultOptions,this.setOptions(t.options),this.observers=[],this.#n=t.client,this.#r=this.#n.getQueryCache(),this.queryKey=t.queryKey,this.queryHash=t.queryHash,this.#e=mW(this.options),this.state=t.state??this.#e,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#i?.promise}setOptions(t){if(this.options={...this.#s,...t},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const e=mW(this.options);e.data!==void 0&&(this.setState(pW(e.data,e.dataUpdatedAt)),this.#e=e)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#r.remove(this)}setData(t,e){const n=WD(this.state.data,t,this.options);return this.#o({data:n,type:"success",dataUpdatedAt:e?.updatedAt,manual:e?.manual}),n}setState(t,e){this.#o({type:"setState",state:t,setStateOptions:e})}cancel(t){const e=this.#i?.promise;return this.#i?.cancel(t),e?e.then(Cs).catch(Cs):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#e)}isActive(){return this.observers.some(t=>po(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Q7||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>Xd(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:!jce(this.state.dataUpdatedAt,t)}onFocus(){this.observers.find(e=>e.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#i?.continue()}onOnline(){this.observers.find(e=>e.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#i?.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),this.#r.notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(e=>e!==t),this.observers.length||(this.#i&&(this.#a?this.#i.cancel({revert:!0}):this.#i.cancelRetry()),this.scheduleGc()),this.#r.notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#o({type:"invalidate"})}async fetch(t,e){if(this.state.fetchStatus!=="idle"&&this.#i?.status()!=="rejected"){if(this.state.data!==void 0&&e?.cancelRefetch)this.cancel({silent:!0});else if(this.#i)return this.#i.continueRetry(),this.#i.promise}if(t&&this.setOptions(t),!this.options.queryFn){const o=this.observers.find(l=>l.options.queryFn);o&&this.setOptions(o.options)}const n=new AbortController,r=o=>{Object.defineProperty(o,"signal",{enumerable:!0,get:()=>(this.#a=!0,n.signal)})},i=()=>{const o=Vce(this.options,e),u=(()=>{const c={client:this.#n,queryKey:this.queryKey,meta:this.meta};return r(c),c})();return this.#a=!1,this.options.persister?this.options.persister(o,u,this):o(u)},a=(()=>{const o={fetchOptions:e,options:this.options,queryKey:this.queryKey,client:this.#n,state:this.state,fetchFn:i};return r(o),o})();this.options.behavior?.onFetch(a,this),this.#t=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==a.fetchOptions?.meta)&&this.#o({type:"fetch",meta:a.fetchOptions?.meta}),this.#i=Gce({initialPromise:e?.initialPromise,fn:a.fetchFn,onCancel:o=>{o instanceof KD&&o.revert&&this.setState({...this.#t,fetchStatus:"idle"}),n.abort()},onFail:(o,l)=>{this.#o({type:"failed",failureCount:o,error:l})},onPause:()=>{this.#o({type:"pause"})},onContinue:()=>{this.#o({type:"continue"})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0});try{const o=await this.#i.start();if(o===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(o),this.#r.config.onSuccess?.(o,this),this.#r.config.onSettled?.(o,this.state.error,this),o}catch(o){if(o instanceof KD){if(o.silent)return this.#i.promise;if(o.revert){if(this.state.data===void 0)throw o;return this.state.data}}throw this.#o({type:"error",error:o}),this.#r.config.onError?.(o,this),this.#r.config.onSettled?.(this.state.data,o,this),o}finally{this.scheduleGc()}}#o(t){const e=n=>{switch(t.type){case"failed":return{...n,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...n,fetchStatus:"paused"};case"continue":return{...n,fetchStatus:"fetching"};case"fetch":return{...n,...Yce(n.data,this.options),fetchMeta:t.meta??null};case"success":const r={...n,...pW(t.data,t.dataUpdatedAt),dataUpdateCount:n.dataUpdateCount+1,...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#t=t.manual?r:void 0,r;case"error":const i=t.error;return{...n,error:i,errorUpdateCount:n.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:n.fetchFailureCount+1,fetchFailureReason:i,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...n,isInvalidated:!0};case"setState":return{...n,...t.state}}};this.state=e(this.state),Ri.batch(()=>{this.observers.forEach(n=>{n.onQueryUpdate()}),this.#r.notify({query:this,type:"updated",action:t})})}};function Yce(t,e){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:qce(e.networkMode)?"fetching":"paused",...t===void 0&&{error:null,status:"pending"}}}function pW(t,e){return{data:t,dataUpdatedAt:e??Date.now(),error:null,isInvalidated:!1,status:"success"}}function mW(t){const e=typeof t.initialData=="function"?t.initialData():t.initialData,n=e!==void 0,r=n?typeof t.initialDataUpdatedAt=="function"?t.initialDataUpdatedAt():t.initialDataUpdatedAt:0;return{data:e,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 Kce=class extends k0{constructor(t,e){super(),this.options=e,this.#e=t,this.#o=null,this.#a=YD(),this.bindMethods(),this.setOptions(e)}#e;#t=void 0;#r=void 0;#n=void 0;#i;#s;#a;#o;#u;#l;#f;#d;#h;#g;#p=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#t.addObserver(this),gW(this.#t,this.options)?this.#c():this.updateResult(),this.#b())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return XD(this.#t,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return XD(this.#t,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#S(),this.#x(),this.#t.removeObserver(this)}setOptions(t){const e=this.options,n=this.#t;if(this.options=this.#e.defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof po(this.options.enabled,this.#t)!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#E(),this.#t.setOptions(this.options),e._defaulted&&!xS(this.options,e)&&this.#e.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#t,observer:this});const r=this.hasListeners();r&&yW(this.#t,n,this.options,e)&&this.#c(),this.updateResult(),r&&(this.#t!==n||po(this.options.enabled,this.#t)!==po(e.enabled,this.#t)||Xd(this.options.staleTime,this.#t)!==Xd(e.staleTime,this.#t))&&this.#m();const i=this.#y();r&&(this.#t!==n||po(this.options.enabled,this.#t)!==po(e.enabled,this.#t)||i!==this.#g)&&this.#v(i)}getOptimisticResult(t){const e=this.#e.getQueryCache().build(this.#e,t),n=this.createResult(e,t);return bDe(this,n)&&(this.#n=n,this.#s=this.options,this.#i=this.#t.state),n}getCurrentResult(){return this.#n}trackResult(t,e){return new Proxy(t,{get:(n,r)=>(this.trackProp(r),e?.(r),r==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&this.#a.status==="pending"&&this.#a.reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(n,r))})}trackProp(t){this.#p.add(t)}getCurrentQuery(){return this.#t}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const e=this.#e.defaultQueryOptions(t),n=this.#e.getQueryCache().build(this.#e,e);return n.fetch().then(()=>this.createResult(n,e))}fetch(t){return this.#c({...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#n))}#c(t){this.#E();let e=this.#t.fetch(this.options,t);return t?.throwOnError||(e=e.catch(Cs)),e}#m(){this.#S();const t=Xd(this.options.staleTime,this.#t);if(Vh||this.#n.isStale||!qD(t))return;const n=jce(this.#n.dataUpdatedAt,t)+1;this.#d=mh.setTimeout(()=>{this.#n.isStale||this.updateResult()},n)}#y(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.#t):this.options.refetchInterval)??!1}#v(t){this.#x(),this.#g=t,!(Vh||po(this.options.enabled,this.#t)===!1||!qD(this.#g)||this.#g===0)&&(this.#h=mh.setInterval(()=>{(this.options.refetchIntervalInBackground||J7.isFocused())&&this.#c()},this.#g))}#b(){this.#m(),this.#v(this.#y())}#S(){this.#d&&(mh.clearTimeout(this.#d),this.#d=void 0)}#x(){this.#h&&(mh.clearInterval(this.#h),this.#h=void 0)}createResult(t,e){const n=this.#t,r=this.options,i=this.#n,s=this.#i,a=this.#s,l=t!==n?t.state:this.#r,{state:u}=t;let c={...u},d=!1,h;if(e._optimisticResults){const O=this.hasListeners(),I=!O&&gW(t,e),D=O&&yW(t,n,e,r);(I||D)&&(c={...c,...Yce(u.data,t.options)}),e._optimisticResults==="isRestoring"&&(c.fetchStatus="idle")}let{error:m,errorUpdatedAt:g,status:b}=c;h=c.data;let v=!1;if(e.placeholderData!==void 0&&h===void 0&&b==="pending"){let O;i?.isPlaceholderData&&e.placeholderData===a?.placeholderData?(O=i.data,v=!0):O=typeof e.placeholderData=="function"?e.placeholderData(this.#f?.state.data,this.#f):e.placeholderData,O!==void 0&&(b="success",h=WD(i?.data,O,e),d=!0)}if(e.select&&h!==void 0&&!v)if(i&&h===s?.data&&e.select===this.#u)h=this.#l;else try{this.#u=e.select,h=e.select(h),h=WD(i?.data,h,e),this.#l=h,this.#o=null}catch(O){this.#o=O}this.#o&&(m=this.#o,h=this.#l,g=Date.now(),b="error");const E=c.fetchStatus==="fetching",x=b==="pending",_=b==="error",S=x&&E,A=h!==void 0,T={status:b,fetchStatus:c.fetchStatus,isPending:x,isSuccess:b==="success",isError:_,isInitialLoading:S,isLoading:S,data:h,dataUpdatedAt:c.dataUpdatedAt,error:m,errorUpdatedAt:g,failureCount:c.fetchFailureCount,failureReason:c.fetchFailureReason,errorUpdateCount:c.errorUpdateCount,isFetched:c.dataUpdateCount>0||c.errorUpdateCount>0,isFetchedAfterMount:c.dataUpdateCount>l.dataUpdateCount||c.errorUpdateCount>l.errorUpdateCount,isFetching:E,isRefetching:E&&!x,isLoadingError:_&&!A,isPaused:c.fetchStatus==="paused",isPlaceholderData:d,isRefetchError:_&&A,isStale:e$(t,e),refetch:this.refetch,promise:this.#a,isEnabled:po(e.enabled,t)!==!1};if(this.options.experimental_prefetchInRender){const O=T.data!==void 0,I=T.status==="error"&&!O,D=L=>{I?L.reject(T.error):O&&L.resolve(T.data)},P=()=>{const L=this.#a=T.promise=YD();D(L)},B=this.#a;switch(B.status){case"pending":t.queryHash===n.queryHash&&D(B);break;case"fulfilled":(I||T.data!==B.value)&&P();break;case"rejected":(!I||T.error!==B.reason)&&P();break}}return T}updateResult(){const t=this.#n,e=this.createResult(this.#t,this.options);if(this.#i=this.#t.state,this.#s=this.options,this.#i.data!==void 0&&(this.#f=this.#t),xS(e,t))return;this.#n=e;const n=()=>{if(!t)return!0;const{notifyOnChangeProps:r}=this.options,i=typeof r=="function"?r():r;if(i==="all"||!i&&!this.#p.size)return!0;const s=new Set(i??this.#p);return this.options.throwOnError&&s.add("error"),Object.keys(this.#n).some(a=>{const o=a;return this.#n[o]!==t[o]&&s.has(o)})};this.#T({listeners:n()})}#E(){const t=this.#e.getQueryCache().build(this.#e,this.options);if(t===this.#t)return;const e=this.#t;this.#t=t,this.#r=t.state,this.hasListeners()&&(e?.removeObserver(this),t.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#b()}#T(t){Ri.batch(()=>{t.listeners&&this.listeners.forEach(e=>{e(this.#n)}),this.#e.getQueryCache().notify({query:this.#t,type:"observerResultsUpdated"})})}};function yDe(t,e){return po(e.enabled,t)!==!1&&t.state.data===void 0&&!(t.state.status==="error"&&e.retryOnMount===!1)}function gW(t,e){return yDe(t,e)||t.state.data!==void 0&&XD(t,e,e.refetchOnMount)}function XD(t,e,n){if(po(e.enabled,t)!==!1&&Xd(e.staleTime,t)!=="static"){const r=typeof n=="function"?n(t):n;return r==="always"||r!==!1&&e$(t,e)}return!1}function yW(t,e,n,r){return(t!==e||po(r.enabled,t)===!1)&&(!n.suspense||t.state.status!=="error")&&e$(t,n)}function e$(t,e){return po(e.enabled,t)!==!1&&t.isStaleByTime(Xd(e.staleTime,t))}function bDe(t,e){return!xS(t.getCurrentResult(),e)}function SS(t){return{onFetch:(e,n)=>{const r=e.options,i=e.fetchOptions?.meta?.fetchMore?.direction,s=e.state.data?.pages||[],a=e.state.data?.pageParams||[];let o={pages:[],pageParams:[]},l=0;const u=async()=>{let c=!1;const d=g=>{cDe(g,()=>e.signal,()=>c=!0)},h=Vce(e.options,e.fetchOptions),m=async(g,b,v)=>{if(c)return Promise.reject();if(b==null&&g.pages.length)return Promise.resolve(g);const x=(()=>{const R={client:e.client,queryKey:e.queryKey,pageParam:b,direction:v?"backward":"forward",meta:e.options.meta};return d(R),R})(),_=await h(x),{maxPages:S}=e.options,A=v?uDe:lDe;return{pages:A(g.pages,_,S),pageParams:A(g.pageParams,b,S)}};if(i&&s.length){const g=i==="backward",b=g?Xce:QD,v={pages:s,pageParams:a},E=b(r,v);o=await m(v,E,g)}else{const g=t??s.length;do{const b=l===0?a[0]??r.initialPageParam:QD(r,o);if(l>0&&b==null)break;o=await m(o,b),l++}while(l<g)}return o};e.options.persister?e.fetchFn=()=>e.options.persister?.(u,{client:e.client,queryKey:e.queryKey,meta:e.options.meta,signal:e.signal},n):e.fetchFn=u}}}function QD(t,{pages:e,pageParams:n}){const r=e.length-1;return e.length>0?t.getNextPageParam(e[r],e,n[r],n):void 0}function Xce(t,{pages:e,pageParams:n}){return e.length>0?t.getPreviousPageParam?.(e[0],e,n[0],n):void 0}function vDe(t,e){return e?QD(t,e)!=null:!1}function EDe(t,e){return!e||!t.getPreviousPageParam?!1:Xce(t,e)!=null}var _De=class extends Kce{constructor(t,e){super(t,e)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(t){super.setOptions({...t,behavior:SS()})}getOptimisticResult(t){return t.behavior=SS(),super.getOptimisticResult(t)}fetchNextPage(t){return this.fetch({...t,meta:{fetchMore:{direction:"forward"}}})}fetchPreviousPage(t){return this.fetch({...t,meta:{fetchMore:{direction:"backward"}}})}createResult(t,e){const{state:n}=t,r=super.createResult(t,e),{isFetching:i,isRefetching:s,isError:a,isRefetchError:o}=r,l=n.fetchMeta?.fetchMore?.direction,u=a&&l==="forward",c=i&&l==="forward",d=a&&l==="backward",h=i&&l==="backward";return{...r,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:vDe(e,n.data),hasPreviousPage:EDe(e,n.data),isFetchNextPageError:u,isFetchingNextPage:c,isFetchPreviousPageError:d,isFetchingPreviousPage:h,isRefetchError:o&&!u&&!d,isRefetching:s&&!c&&!h}}},xDe=class extends Wce{#e;#t;#r;#n;constructor(t){super(),this.#e=t.client,this.mutationId=t.mutationId,this.#r=t.mutationCache,this.#t=[],this.state=t.state||Qce(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){this.#t.includes(t)||(this.#t.push(t),this.clearGcTimeout(),this.#r.notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){this.#t=this.#t.filter(e=>e!==t),this.scheduleGc(),this.#r.notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){this.#t.length||(this.state.status==="pending"?this.scheduleGc():this.#r.remove(this))}continue(){return this.#n?.continue()??this.execute(this.state.variables)}async execute(t){const e=()=>{this.#i({type:"continue"})},n={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#n=Gce({fn:()=>this.options.mutationFn?this.options.mutationFn(t,n):Promise.reject(new Error("No mutationFn found")),onFail:(s,a)=>{this.#i({type:"failed",failureCount:s,error:a})},onPause:()=>{this.#i({type:"pause"})},onContinue:e,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#r.canRun(this)});const r=this.state.status==="pending",i=!this.#n.canStart();try{if(r)e();else{this.#i({type:"pending",variables:t,isPaused:i}),this.#r.config.onMutate&&await this.#r.config.onMutate(t,this,n);const a=await this.options.onMutate?.(t,n);a!==this.state.context&&this.#i({type:"pending",context:a,variables:t,isPaused:i})}const s=await this.#n.start();return await this.#r.config.onSuccess?.(s,t,this.state.context,this,n),await this.options.onSuccess?.(s,t,this.state.context,n),await this.#r.config.onSettled?.(s,null,this.state.variables,this.state.context,this,n),await this.options.onSettled?.(s,null,t,this.state.context,n),this.#i({type:"success",data:s}),s}catch(s){try{await this.#r.config.onError?.(s,t,this.state.context,this,n)}catch(a){Promise.reject(a)}try{await this.options.onError?.(s,t,this.state.context,n)}catch(a){Promise.reject(a)}try{await this.#r.config.onSettled?.(void 0,s,this.state.variables,this.state.context,this,n)}catch(a){Promise.reject(a)}try{await this.options.onSettled?.(void 0,s,t,this.state.context,n)}catch(a){Promise.reject(a)}throw this.#i({type:"error",error:s}),s}finally{this.#r.runNext(this)}}#i(t){const e=n=>{switch(t.type){case"failed":return{...n,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...n,isPaused:!0};case"continue":return{...n,isPaused:!1};case"pending":return{...n,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{...n,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...n,data:void 0,error:t.error,failureCount:n.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=e(this.state),Ri.batch(()=>{this.#t.forEach(n=>{n.onMutationUpdate(t)}),this.#r.notify({mutation:this,type:"updated",action:t})})}};function Qce(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var wDe=class extends k0{constructor(t={}){super(),this.config=t,this.#e=new Set,this.#t=new Map,this.#r=0}#e;#t;#r;build(t,e,n){const r=new xDe({client:t,mutationCache:this,mutationId:++this.#r,options:t.defaultMutationOptions(e),state:n});return this.add(r),r}add(t){this.#e.add(t);const e=rx(t);if(typeof e=="string"){const n=this.#t.get(e);n?n.push(t):this.#t.set(e,[t])}this.notify({type:"added",mutation:t})}remove(t){if(this.#e.delete(t)){const e=rx(t);if(typeof e=="string"){const n=this.#t.get(e);if(n)if(n.length>1){const r=n.indexOf(t);r!==-1&&n.splice(r,1)}else n[0]===t&&this.#t.delete(e)}}this.notify({type:"removed",mutation:t})}canRun(t){const e=rx(t);if(typeof e=="string"){const r=this.#t.get(e)?.find(i=>i.state.status==="pending");return!r||r===t}else return!0}runNext(t){const e=rx(t);return typeof e=="string"?this.#t.get(e)?.find(r=>
vendor: 2,750 bytes, line 33
33r!==t&&r.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){Ri.batch(()=>{this.#e.forEach(t=>{this.notify({type:"removed",mutation:t})}),this.#e.clear(),this.#t.clear()})}getAll(){return Array.from(this.#e)}find(t){const e={exact:!0,...t};return this.getAll().find(n=>dW(e,n))}findAll(t={}){return this.getAll().filter(e=>dW(t,e))}notify(t){Ri.batch(()=>{this.listeners.forEach(e=>{e(t)})})}resumePausedMutations(){const t=this.getAll().filter(e=>e.state.isPaused);return Ri.batch(()=>Promise.all(t.map(e=>e.continue().catch(Cs))))}};function rx(t){return t.options.scope?.id}var SDe=class extends k0{#e;#t=void 0;#r;#n;constructor(e,n){super(),this.#e=e,this.setOptions(n),this.bindMethods(),this.#i()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){const n=this.options;this.options=this.#e.defaultMutationOptions(e),xS(this.options,n)||this.#e.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#r,observer:this}),n?.mutationKey&&this.options.mutationKey&&qh(n.mutationKey)!==qh(this.options.mutationKey)?this.reset():this.#r?.state.status==="pending"&&this.#r.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#r?.removeObserver(this)}onMutationUpdate(e){this.#i(),this.#s(e)}getCurrentResult(){return this.#t}reset(){this.#r?.removeObserver(this),this.#r=void 0,this.#i(),this.#s()}mutate(e,n){return this.#n=n,this.#r?.removeObserver(this),this.#r=this.#e.getMutationCache().build(this.#e,this.options),this.#r.addObserver(this),this.#r.execute(e)}#i(){const e=this.#r?.state??Qce();this.#t={...e,isPending:e.status==="pending",isSuccess:e.status==="success",isError:e.status==="error",isIdle:e.status==="idle",mutate:this.mutate,reset:this.reset}}#s(e){Ri.batch(()=>{if(this.#n&&this.hasListeners()){const n=this.#t.variables,r=this.#t.context,i={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};if(e?.type==="success"){try{this.#n.onSuccess?.(e.data,n,r,i)}catch(s){Promise.reject(s)}try{this.#n.onSettled?.(e.data,null,n,r,i)}catch(s){Promise.reject(s)}}else if(e?.type==="error"){try{this.#n.onError?.(e.error,n,r,i)}catch(s){Promise.reject(s)}try{this.#n.onSettled?.(void 0,e.error,n,r,i)}catch(s){Promise.reject(s)}}}this.listeners.forEach(n=>{n(this.#t)})})}},CDe=class extends k0{constructor(t={}){super(),this.config=t,this.#e=new Map}#e;build(t,e,n){const r=e.queryKey,i=e.queryHash??X7(r,e);let s=this.get(i);return s||(s=new gDe({client:t,queryKey:r,queryHash:i,options:t.defaultQueryOptions(e),state:n,defaultOptions:t.getQueryDefaults(r)}),this.add(s)),s}add(t){this.#e.has(t.queryHash)||(this.#e.set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const e=this.#e.get(t.queryHash);
vendor: 5,349 bytes, line 33
33e&&(t.destroy(),e===t&&this.#e.delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){Ri.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return this.#e.get(t)}getAll(){return[...this.#e.values()]}find(t){const e={exact:!0,...t};return this.getAll().find(n=>cW(e,n))}findAll(t={}){const e=this.getAll();return Object.keys(t).length>0?e.filter(n=>cW(t,n)):e}notify(t){Ri.batch(()=>{this.listeners.forEach(e=>{e(t)})})}onFocus(){Ri.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){Ri.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},r8t=class{#e;#t;#r;#n;#i;#s;#a;#o;constructor(t={}){this.#e=t.queryCache||new CDe,this.#t=t.mutationCache||new wDe,this.#r=t.defaultOptions||{},this.#n=new Map,this.#i=new Map,this.#s=0}mount(){this.#s++,this.#s===1&&(this.#a=J7.subscribe(async t=>{t&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#o=wS.subscribe(async t=>{t&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#s--,this.#s===0&&(this.#a?.(),this.#a=void 0,this.#o?.(),this.#o=void 0)}isFetching(t){return this.#e.findAll({...t,fetchStatus:"fetching"}).length}isMutating(t){return this.#t.findAll({...t,status:"pending"}).length}getQueryData(t){const e=this.defaultQueryOptions({queryKey:t});return this.#e.get(e.queryHash)?.state.data}ensureQueryData(t){const e=this.defaultQueryOptions(t),n=this.#e.build(this,e),r=n.state.data;return r===void 0?this.fetchQuery(t):(t.revalidateIfStale&&n.isStaleByTime(Xd(e.staleTime,n))&&this.prefetchQuery(e),Promise.resolve(r))}getQueriesData(t){return this.#e.findAll(t).map(({queryKey:e,state:n})=>{const r=n.data;return[e,r]})}setQueryData(t,e,n){const r=this.defaultQueryOptions({queryKey:t}),s=this.#e.get(r.queryHash)?.state.data,a=sDe(e,s);if(a!==void 0)return this.#e.build(this,r).setData(a,{...n,manual:!0})}setQueriesData(t,e,n){return Ri.batch(()=>this.#e.findAll(t).map(({queryKey:r})=>[r,this.setQueryData(r,e,n)]))}getQueryState(t){const e=this.defaultQueryOptions({queryKey:t});return this.#e.get(e.queryHash)?.state}removeQueries(t){const e=this.#e;Ri.batch(()=>{e.findAll(t).forEach(n=>{e.remove(n)})})}resetQueries(t,e){const n=this.#e;return Ri.batch(()=>(n.findAll(t).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...t},e)))}cancelQueries(t,e={}){const n={revert:!0,...e},r=Ri.batch(()=>this.#e.findAll(t).map(i=>i.cancel(n)));return Promise.all(r).then(Cs).catch(Cs)}invalidateQueries(t,e={}){return Ri.batch(()=>(this.#e.findAll(t).forEach(n=>{n.invalidate()}),t?.refetchType==="none"?Promise.resolve():this.refetchQueries({...t,type:t?.refetchType??t?.type??"active"},e)))}refetchQueries(t,e={}){const n={...e,cancelRefetch:e.cancelRefetch??!0},r=Ri.batch(()=>this.#e.findAll(t).filter(i=>!i.isDisabled()&&!i.isStatic()).map(i=>{let s=i.fetch(void 0,n);return n.throwOnError||(s=s.catch(Cs)),i.state.fetchStatus==="paused"?Promise.resolve():s}));return Promise.all(r).then(Cs)}fetchQuery(t){const e=this.defaultQueryOptions(t);e.retry===void 0&&(e.retry=!1);const n=this.#e.build(this,e);return n.isStaleByTime(Xd(e.staleTime,n))?n.fetch(e):Promise.resolve(n.state.data)}prefetchQuery(t){return this.fetchQuery(t).then(Cs).catch(Cs)}fetchInfiniteQuery(t){return t.behavior=SS(t.pages),this.fetchQuery(t)}prefetchInfiniteQuery(t){return this.fetchInfiniteQuery(t).then(Cs).catch(Cs)}ensureInfiniteQueryData(t){return t.behavior=SS(t.pages),this.ensureQueryData(t)}resumePausedMutations(){return wS.isOnline()?this.#t.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#t}getDefaultOptions(){return this.#r}setDefaultOptions(t){this.#r=t}setQueryDefaults(t,e){this.#n.set(qh(t),{queryKey:t,defaultOptions:e})}getQueryDefaults(t){const e=[...this.#n.values()],n={};return e.forEach(r=>{Kb(t,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(t,e){this.#i.set(qh(t),{mutationKey:t,defaultOptions:e})}getMutationDefaults(t){const e=[...this.#i.values()],n={};return e.forEach(r=>{Kb(t,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(t){if(t._defaulted)return t;const e={...this.#r.queries,...this.getQueryDefaults(t.queryKey),...t,_defaulted:!0};return e.queryHash||(e.queryHash=X7(e.queryKey,e)),e.refetchOnReconnect===void 0&&(e.refetchOnReconnect=e.networkMode!=="always"),e.throwOnError===void 0&&(e.throwOnError=!!e.suspense),!e.networkMode&&e.persister&&(e.networkMode="offlineFirst"),e.queryFn===Q7&&(e.enabled=!1),e}defaultMutationOptions(t){return t?._defaulted?t:{...this.#r.mutations,...t?.mutationKey&&this.getMutationDefaults(t.mutationKey),...t,_defaulted:!0}}clear(){this.#e.clear(),this.#t.clear()}},Zce=C.createContext(void 0),Jce=t=>{const e=C.useContext(Zce);if(!e)throw new Error("No QueryClient set, use QueryClientProvider to set one");return e},i8t=({client:t,children:e})=>(C.useEffect(()=>(t.mount(),()=>{t.unmount()}),[t]),j.jsx(Zce.Provider,{value:t,children:e})),ede=C.createContext(!1),TDe=()=>C.useContext(ede);ede.Provider;function ADe(){let t=!1;return{clearReset:()=>{t=!1},reset:()=>{t=!0},isReset:()=>t}}var RDe=C.createContext(ADe()),NDe=()=>C.useContext(RDe),ODe=(t,e,n)=>{const r=n?.state.error&&typeof t.throwOnError=="function"?Z7(t.throwOnError,[n.state.error,n]):t.throwOnError;(t.suspense||t.experimental_prefetchInRender||r)&&(e.isReset()||(t.retryOn
33Mount=!1))},kDe=t=>{C.useEffect(()=>{t.clearReset()},[t])},IDe=({result:t,errorResetBoundary:e,throwOnError:n,query:r,suspense:i})=>t.isError&&!e.isReset()&&!t.isFetching&&r&&(i&&t.data===void 0||Z7(n,[t.error,r])),MDe=t=>{if(t.suspense){const n=i=>i==="static"?i:Math.max(i??1e3,1e3),r=t.staleTime;t.staleTime=typeof r=="function"?(...i)=>n(r(...i)):n(r),typeof t.gcTime=="number"&&(t.gcTime=Math.max(t.gcTime,1e3))}},DDe=(t,e)=>t.isLoading&&t.isFetching&&!e,PDe=(t,e)=>t?.suspense&&e.isPending,bW=(t,e,n)=>e.fetchOptimistic(t).catch(()=>{n.clearReset()});function tde(t,e,n){const r=TDe(),i=NDe(),s=Jce(),a=s.defaultQueryOptions(t);s.getDefaultOptions().queries?._experimental_beforeQuery?.(a);const o=s.getQueryCache().get(a.queryHash);a._optimisticResults=r?"isRestoring":"optimistic",MDe(a),ODe(a,i,o),kDe(i);const l=!s.getQueryCache().get(a.queryHash),[u]=C.useState(()=>new e(s,a)),c=u.getOptimisticResult(a),d=!r&&t.subscribed!==!1;if(C.useSyncExternalStore(C.useCallback(h=>{const m=d?u.subscribe(Ri.batchCalls(h)):Cs;return u.updateResult(),m},[u,d]),()=>u.getCurrentResult(),()=>u.getCurrentResult()),C.useEffect(()=>{u.setOptions(a)},[a,u]),PDe(a,c))throw bW(a,u,i);if(IDe({result:c,errorResetBoundary:i,throwOnError:a.throwOnError,query:o,suspense:a.suspense}))throw c.error;return s.getDefaultOptions().queries?._experimental_afterQuery?.(a,c),a.experimental_prefetchInRender&&!Vh&&DDe(c,r)&&(l?bW(a,u,i):o?.promise)?.catch(Cs).finally(()=>{u.updateResult()}),a.notifyOnChangeProps?c:u.trackResult(c)}function s8t(t,e){return tde(t,Kce)}function a8t(t){return t}function o8t(t,e){const n=Jce(),[r]=C.useState(()=>new SDe(n,t));C.useEffect(()=>{r.setOptions(t)},[r,t]);const i=C.useSyncExternalStore(C.useCallback(a=>r.subscribe(Ri.batchCalls(a)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),s=C.useCallback((a,o)=>{r.mutate(a,o).catch(Cs)},[r]);if(i.error&&Z7(r.options.throwOnError,[i.error]))throw i.error;return{...i,mutate:s,mutateAsync:i.mutate}}function l8t(t,e){return tde(t,_De)}const nde="%[a-f0-9]{2}",vW=new RegExp("("+nde+")|([^%]+?)","gi"),EW=new RegExp("("+nde+")+","gi");function ZD(t,e){try{return[decodeURIComponent(t.join(""))]}catch{}if(t.length===1)return t;e=e||1;const n=t.slice(0,e),r=t.slice(e);return Array.prototype.concat.call([],ZD(n),ZD(r))}function LDe(t){try{return decodeURIComponent(t)}catch{let e=t.match(vW)||[];for(let n=1;n<e.length;n++)t=ZD(e,n).join(""),e=t.match(vW)||[];return t}}function $De(t){const e={"%FE%FF":"��","%FF%FE":"��"};let n=EW.exec(t);for(;n;){try{e[n[0]]=decodeURIComponent(n[0])}catch{const i=LDe(n[0]);i!==n[0]&&(e[n[0]]=i)}n=EW.exec(t)}e["%C2"]="�";const r=Object.keys(e);for(const i of r)t=t.replace(new RegExp(i,"g"),e[i]);return t}function FDe(t){if(typeof t!="string")throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof t+"`");try{return decodeURIComponent(t)}catch{return $De(t)}}function BDe(t,e){const n={};if(Array.isArray(e))for(const r of e){const i=Object.getOwnPropertyDescriptor(t,r);i?.enumerable&&Object.defineProperty(n,r,i)}else for(const r of Reflect.ownKeys(t)){const i=Object.getOwnPropertyDescriptor(t,r);if(i.enumerable){const s=t[r];e(r,s,t)&&Object.defineProperty(n,r,i)}}return n}function rde(t,e){if(!(typeof t=="string"&&typeof e=="string"))throw new TypeError("Expected the arguments to be of type `string`");if(t===""||e==="")return[];const n=t.indexOf(e);return n===-1?[]:[t.slice(0,n),t.slice(n+e.length)]}const HDe=t=>t==null,UDe=t=>encodeURIComponent(t).replaceAll(/[!'()*]/g,e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`),JD=Symbol("encodeFragmentIdentifier");function jDe(t){switch(t.arrayFormat){case"index":return e=>(n,r)=>{const i=n.length;return r===void 0||t.skipNull&&r===null||t.skipEmptyString&&r===""?n:r===null?[...n,[ci(e,t),"[",i,"]"].join("")]:[...n,[ci(e,t),"[",ci(i,t),"]=",ci(r,t)].join("")]};case"bracket":return e=>(n,r)=>r===void 0||t.skipNull&&r===null||t.skipEmptyString&&r===""?n:r===null?[...n,[ci(e,t),"[]"].join("")]:[...n,[ci(e,t),"[]=",ci(r,t)].join("")];case"colon-list-separator":return e=>(n,r)=>r===void 0||t.skipNull&&r===null||t.skipEmptyString&&r===""?n:r===null?[...n,[ci(e,t),":list="].join("")]:[...n,[ci(e,t),":list=",ci(r,t)].join("")];case"comma":case"separator":case"bracket-separator":{const e=t.arrayFormat==="bracket-separator"?"[]=":"=";return n=>(r,i)=>i===void 0||t.skipNull&&i===null||t.skipEmptyString&&i===""?r:(i=i===null?"":i,r.length===0?[[ci(n,t),e,ci(i,t)].join("")]:[[r,ci(i,t)].join(t.arrayFormatSeparator)])}default:return e=>(n,r)=>r===void 0||t.skipNull&&r===null||t.skipEmptyString&&r===""?n:r===null?[...n,ci(e,t)]:[...n,[ci(e,t),"=",ci(r,t)].join("")]}}function zDe(t){let e;switch(t.arrayFormat){case"index":return(n,r,i)=>{if(e=/\[(\d*)]$/.exec(n),n=n.replace(/\[\d*]$/,""),!e){i[n]=r;return}i[n]===void 0&&(i[n]={}),i[n][e[1]]=r};case"bracket":return(n,r,i)=>{if(e=/(\[])$/.exec(n),n=n.replace(/\[]$/,""),!e){i[n]=r;return}if(i[n]===void 0){i[n]=[r];return}i[n]=[...i[n],r]};case"colon-list-separator":return(n,r,i)=>{if(e=/(:list)$/.exec(n),n=n.replace(/:list$/,""),!e){i[n]=r;return}if(i[n]===void 0){i[n]=[r];return}i[n]=[...i[n],r]};case"comma":case"separator":return(n,r,i)=>{const a=typeof r=="string"&&r.includes(t.arrayFormatSeparator)?r.split(t.arrayFormatSeparator).map(o=>gh(o,t)):r===null?r:gh(r,t);i[n]=a};case"bracket-separator":return(n,r,i)=>{const s=/(\[])$/.test(n);if(n=n.replace(/\[]$/,""),!s){i[n]=r&&gh(r,t);return}const a=r===null?[]:gh(r,t).split(t.arrayFormatSeparator);if(i[n]===void 0){i[n]=a;return}i[n]=[...i[n],...a]};default:return(n,r,i)=>{if(i[n]===void 0){i[n]=r;return}i[n]=[...[i[n]].flat(),r]}}}function ide(t){if(typeof t!="string"||t.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function ci(t,e){return e.encode?e.strict?UDe(t):encodeURIComponent(t):t}function gh(t,e){return e.decode?FDe(t):t}function sde(t){return Array.isArray(t)?t.sort():typeof t=="object"?sde(Object.keys(t)).sort((e,n)=>Number(e)-Number(n)).map(e=>t[e]):t}function ade(t){const e=t.indexOf("#");
33return e!==-1&&(t=t.slice(0,e)),t}function VDe(t){let e="";const n=t.indexOf("#");return n!==-1&&(e=t.slice(n)),e}function _W(t,e,n){return n==="string"&&typeof t=="string"?t:typeof n=="function"&&typeof t=="string"?n(t):n==="boolean"&&t===null?!0:n==="boolean"&&t!==null&&(t.toLowerCase()==="true"||t.toLowerCase()==="false")?t.toLowerCase()==="true":n==="boolean"&&t!==null&&(t.toLowerCase()==="1"||t.toLowerCase()==="0")?t.toLowerCase()==="1":n==="string[]"&&e.arrayFormat!=="none"&&typeof t=="string"?[t]:n==="number[]"&&e.arrayFormat!=="none"&&!Number.isNaN(Number(t))&&typeof t=="string"&&t.trim()!==""?[Number(t)]:n==="number"&&!Number.isNaN(Number(t))&&typeof t=="string"&&t.trim()!==""?Number(t):e.parseBooleans&&t!==null&&(t.toLowerCase()==="true"||t.toLowerCase()==="false")?t.toLowerCase()==="true":e.parseNumbers&&!Number.isNaN(Number(t))&&typeof t=="string"&&t.trim()!==""?Number(t):t}function t$(t){t=ade(t);const e=t.indexOf("?");return e===-1?"":t.slice(e+1)}function n$(t,e){e={decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1,types:Object.create(null),...e},ide(e.arrayFormatSeparator);const n=zDe(e),r=Object.create(null);if(typeof t!="string"||(t=t.trim().replace(/^[?#&]/,""),!t))return r;for(const i of t.split("&")){if(i==="")continue;const s=e.decode?i.replaceAll("+"," "):i;let[a,o]=rde(s,"=");a===void 0&&(a=s),o=o===void 0?null:["comma","separator","bracket-separator"].includes(e.arrayFormat)?o:gh(o,e),n(gh(a,e),o,r)}for(const[i,s]of Object.entries(r))if(typeof s=="object"&&s!==null&&e.types[i]!=="string")for(const[a,o]of Object.entries(s)){const l=e.types[i],u=typeof l=="function"?l:l?l.replace("[]",""):void 0;s[a]=_W(o,e,u)}else typeof s=="object"&&s!==null&&e.types[i]==="string"?r[i]=Object.values(s).join(e.arrayFormatSeparator):r[i]=_W(s,e,e.types[i]);return e.sort===!1?r:(e.sort===!0?Object.keys(r).sort():Object.keys(r).sort(e.sort)).reduce((i,s)=>{const a=r[s];return i[s]=a&&typeof a=="object"&&!Array.isArray(a)?sde(a):a,i},Object.create(null))}function ode(t,e){if(!t)return"";e={encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:",",...e},ide(e.arrayFormatSeparator);const n=a=>e.skipNull&&HDe(t[a])||e.skipEmptyString&&t[a]==="",r=jDe(e),i={};for(const[a,o]of Object.entries(t))n(a)||(i[a]=o);const s=Object.keys(i);return e.sort!==!1&&s.sort(e.sort),s.map(a=>{let o=t[a];if(e.replacer&&(o=e.replacer(a,o),o===void 0)||o===void 0)return"";if(o===null)return ci(a,e);if(Array.isArray(o)){if(o.length===0&&e.arrayFormat==="bracket-separator")return ci(a,e)+"[]";let l=o;return e.replacer&&(l=o.map((u,c)=>e.replacer(`${a}[${c}]`,u)).filter(u=>u!==void 0)),l.reduce(r(a),[]).join("&")}return ci(a,e)+"="+ci(o,e)}).filter(a=>a.length>0).join("&")}function lde(t,e){e={decode:!0,...e};let[n,r]=rde(t,"#");return n===void 0&&(n=t),{url:n?.split("?")?.[0]??"",query:n$(t$(t),e),...e&&e.parseFragmentIdentifier&&r?{fragmentIdentifier:gh(r,e)}:{}}}function ude(t,e){e={encode:!0,strict:!0,[JD]:!0,...e};const n=ade(t.url).split("?")[0]||"",r=t$(t.url),i={...n$(r,{sort:!1,...e}),...t.query};let s=ode(i,e);s&&=`?${s}`;let a=VDe(t.url);if(typeof t.fragmentIdentifier=="string"){const o=new URL(n);o.hash=t.fragmentIdentifier,a=e[JD]?o.hash:`#${t.fragmentIdentifier}`}return`${n}${s}${a}`}function cde(t,e,n){n={parseFragmentIdentifier:!0,[JD]:!1,...n};const{url:r,query:i,fragmentIdentifier:s}=lde(t,n);return ude({url:r,query:BDe(i,e),fragmentIdentifier:s},n)}function qDe(t,e,n){const r=Array.isArray(e)?i=>!e.includes(i):(i,s)=>!e(i,s);return cde(t,r,n)}const u8t=Object.freeze(Object.defineProperty({__proto__:null,exclude:qDe,extract:t$,parse:n$,parseUrl:lde,pick:cde,stringify:ode,stringifyUrl:ude},Symbol.toStringTag,{value:"Module"}));var ly={},uy={},xW;function GDe(){return xW||(xW=1,Object.defineProperty(uy,"__esModule",{value:!0}),uy.regionAPIs=void 0,uy.regionAPIs=new Map([["us","https://api-iam.intercom.io"],["eu","https://api-iam.eu.intercom.io"],["ap","https://api-iam.au.intercom.io"]])),uy}var Xu={},wW;function WDe(){if(wW)return Xu;wW=1;var t=Xu&&Xu.__awaiter||function(a,o,l,u){function c(d){return d instanceof l?d:new l(function(h){h(d)})}return new(l||(l=Promise))(function(d,h){function m(v){try{b(u.next(v))}catch(E){h(E)}}function g(v){try{b(u.throw(v))}catch(E){h(E)}}function b(v){v.done?d(v.value):c(v.value).then(m,g)}b((u=u.apply(a,o||[])).next())})};
33Object.defineProperty(Xu,"__esModule",{value:!0}),Xu.ref=Xu.init=void 0;const e="_intercom_npm_loader",n=function(){n.loaderQueue(arguments)};n.q=[],n.loaderQueue=function(a){n.q.push(a)};const r=function(a){var o,l,u=document;if(!u.getElementById(e)){var c=u.createElement("script");c.type="text/javascript",c.async=!0,c.id=e,c.src=a||"https://widget.intercom.io/widget/"+((o=window.intercomSettings)===null||o===void 0?void 0:o.app_id);var d=u.getElementsByTagName("script")[0];(l=d.parentNode)===null||l===void 0||l.insertBefore(c,d)}},i=()=>document.readyState==="complete"||document.readyState==="interactive",s=(...a)=>t(void 0,[...a],void 0,function*(o={}){var l=window,u=l.Intercom;l.intercomSettings&&(l.intercomSettings.installation_type="npm-package"),typeof u=="function"?(u("reattach_activator"),u("update",l.intercomSettings)):(l.Intercom=n,i()?r(o.widgetUrl):(document.addEventListener("readystatechange",function(){i()&&r(o.widgetUrl)}),l.attachEvent?l.attachEvent("onload",()=>r(o.widgetUrl)):l.addEventListener("load",()=>r(o.widgetUrl),!1)))});return Xu.init=s,Xu.ref=void 0,Xu}var SW;function YDe(){return SW||(SW=1,(function(t){var e=ly&&ly.__rest||function(L,$){var q={};for(var F in L)Object.prototype.hasOwnProperty.call(L,F)&&$.indexOf(F)<0&&(q[F]=L[F]);if(L!=null&&typeof Object.getOwnPropertySymbols=="function")for(var G=0,F=Object.getOwnPropertySymbols(L);G<F.length;G++)$.indexOf(F[G])<0&&Object.prototype.propertyIsEnumerable.call(L,F[G])&&(q[F[G]]=L[F[G]]);return q};Object.defineProperty(t,"__esModule",{value:!0}),t.hideNotifications=t.onUserEmailSupplied=t.showConversation=t.showTicket=t.startChecklist=t.startSurvey=t.showNews=t.showArticle=t.startTour=t.whoami=t.getVisitorId=t.trackEvent=t.onUnreadCountChange=t.onShow=t.onHide=t.showNewMessage=t.showMessages=t.showSpace=t.show=t.hide=t.update=t.shutdown=t.boot=t.Intercom=void 0;const n=GDe(),r=WDe(),i=(L,...$)=>{if(typeof window!==void 0&&window.Intercom)return window.Intercom(L,...$);console.warn("Please ensure Intercom is setup and running on client-side!")},s=L=>{if(typeof L!="object"){console.warn("Intercom initialiser called with invalid parameters.");return}const{region:$="us",widgetUrl:q}=L,F=e(L,["region","widgetUrl"]);typeof window<"u"&&!r.ref&&(window.intercomSettings=Object.assign(Object.assign({},F),{api_base:n.regionAPIs.get($)}),(0,r.init)({widgetUrl:q}))};t.Intercom=s,t.default=t.Intercom;const a=L=>i("boot",L);t.boot=a;const o=()=>i("shutdown");t.shutdown=o;const l=L=>i("update",L);t.update=l;const u=()=>i("hide");t.hide=u;const c=()=>i("show");t.show=c;const d=L=>i("showSpace",L);t.showSpace=d;const h=()=>i("showMessages");t.showMessages=h;const m=L=>i("showNewMessage",L);t.showNewMessage=m;const g=L=>i("onHide",L);t.onHide=g;const b=L=>i("onShow",L);t.onShow=b;const v=L=>i("onUnreadCountChange",L);t.onUnreadCountChange=v;const E=(...L)=>i("trackEvent",...L);t.trackEvent=E;const x=()=>i("getVisitorId");t.getVisitorId=x;const _=()=>i("whoami");t.whoami=_;const S=L=>i("startTour",L);t.startTour=S;const A=L=>i("showArticle",L);t.showArticle=A;const R=L=>i("showNews",L);t.showNews=R;const T=L=>i("startSurvey",L);t.startSurvey=T;const O=L=>i("startChecklist",L);t.startChecklist=O;const I=L=>i("showTicket",L);t.showTicket=I;const D=L=>i("showConversation",L);t.showConversation=D;const P=L=>i("onUserEmailSupplied",L);t.onUserEmailSupplied=P;const B=L=>i("hideNotifications",L);t.hideNotifications=B})(ly)),ly}var KDe=YDe();const c8t=ys(KDe);function tt(t,e,{checkForDefaultPrevented:n=!0}={}){return function(i){if(t?.(i),n===!1||!i.defaultPrevented)return e?.(i)}}function CW(t,e){if(typeof t=="function")return t(e);t!=null&&(t.current=e)}function vu(...t){return e=>{let n=!1;const r=t.map(i=>{const s=CW(i,e);return!n&&typeof s=="function"&&(n=!0),s});if(n)return()=>{for(let i=0;i<r.length;i++){const s=r[i];typeof s=="function"?s():CW(t[i],null)}}}}function nn(...t){return C.useCallback(vu(...t),t)}function XDe(t,e){const n=C.createContext(e),r=s=>{const{children:a,...o}=s,l=C.useMemo(()=>o,Object.values(o));return j.jsx(n.Provider,{value:l,children:a})};r.displayName=t+"Provider";function i(s){const a=C.useContext(n);if(a)return a;
vendor: 8,920 bytes, line 33
33if(e!==void 0)return e;throw new Error(`\`${s}\` must be used within \`${t}\``)}return[r,i]}function Ji(t,e=[]){let n=[];function r(s,a){const o=C.createContext(a),l=n.length;n=[...n,a];const u=d=>{const{scope:h,children:m,...g}=d,b=h?.[t]?.[l]||o,v=C.useMemo(()=>g,Object.values(g));return j.jsx(b.Provider,{value:v,children:m})};u.displayName=s+"Provider";function c(d,h){const m=h?.[t]?.[l]||o,g=C.useContext(m);if(g)return g;if(a!==void 0)return a;throw new Error(`\`${d}\` must be used within \`${s}\``)}return[u,c]}const i=()=>{const s=n.map(a=>C.createContext(a));return function(o){const l=o?.[t]||s;return C.useMemo(()=>({[`__scope${t}`]:{...o,[t]:l}}),[o,l])}};return i.scopeName=t,[r,QDe(i,...e)]}function QDe(...t){const e=t[0];if(t.length===1)return e;const n=()=>{const r=t.map(i=>({useScope:i(),scopeName:i.scopeName}));return function(s){const a=r.reduce((o,{useScope:l,scopeName:u})=>{const d=l(s)[`__scope${u}`];return{...o,...d}},{});return C.useMemo(()=>({[`__scope${e.scopeName}`]:a}),[a])}};return n.scopeName=e.scopeName,n}var gs=globalThis?.document?C.useLayoutEffect:()=>{},ZDe=oT[" useId ".trim().toString()]||(()=>{}),JDe=0;function wo(t){const[e,n]=C.useState(ZDe());return gs(()=>{n(r=>r??String(JDe++))},[t]),e?`radix-${e}`:""}var ePe=oT[" useInsertionEffect ".trim().toString()]||gs;function fa({prop:t,defaultProp:e,onChange:n=()=>{},caller:r}){const[i,s,a]=tPe({defaultProp:e,onChange:n}),o=t!==void 0,l=o?t:i;{const c=C.useRef(t!==void 0);C.useEffect(()=>{const d=c.current;d!==o&&console.warn(`${r} is changing from ${d?"controlled":"uncontrolled"} to ${o?"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.`),c.current=o},[o,r])}const u=C.useCallback(c=>{if(o){const d=nPe(c)?c(t):c;d!==t&&a.current?.(d)}else s(c)},[o,t,s,a]);return[l,u]}function tPe({defaultProp:t,onChange:e}){const[n,r]=C.useState(t),i=C.useRef(n),s=C.useRef(e);return ePe(()=>{s.current=e},[e]),C.useEffect(()=>{i.current!==n&&(s.current?.(n),i.current=n)},[n,i]),[n,r,s]}function nPe(t){return typeof t=="function"}function rPe(t){const e=iPe(t),n=C.forwardRef((r,i)=>{const{children:s,...a}=r,o=C.Children.toArray(s),l=o.find(aPe);if(l){const u=l.props.children,c=o.map(d=>d===l?C.Children.count(u)>1?C.Children.only(null):C.isValidElement(u)?u.props.children:null:d);return j.jsx(e,{...a,ref:i,children:C.isValidElement(u)?C.cloneElement(u,void 0,c):null})}return j.jsx(e,{...a,ref:i,children:s})});return n.displayName=`${t}.Slot`,n}function iPe(t){const e=C.forwardRef((n,r)=>{const{children:i,...s}=n;if(C.isValidElement(i)){const a=lPe(i),o=oPe(s,i.props);return i.type!==C.Fragment&&(o.ref=r?vu(r,a):a),C.cloneElement(i,o)}return C.Children.count(i)>1?C.Children.only(null):null});return e.displayName=`${t}.SlotClone`,e}var sPe=Symbol("radix.slottable");function aPe(t){return C.isValidElement(t)&&typeof t.type=="function"&&"__radixId"in t.type&&t.type.__radixId===sPe}function oPe(t,e){const n={...e};for(const r in e){const i=t[r],s=e[r];/^on[A-Z]/.test(r)?i&&s?n[r]=(...o)=>{const l=s(...o);return i(...o),l}:i&&(n[r]=i):r==="style"?n[r]={...i,...s}:r==="className"&&(n[r]=[i,s].filter(Boolean).join(" "))}return{...t,...n}}function lPe(t){let e=Object.getOwnPropertyDescriptor(t.props,"ref")?.get,n=e&&"isReactWarning"in e&&e.isReactWarning;return n?t.ref:(e=Object.getOwnPropertyDescriptor(t,"ref")?.get,n=e&&"isReactWarning"in e&&e.isReactWarning,n?t.props.ref:t.props.ref||t.ref)}var uPe=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],wt=uPe.reduce((t,e)=>{const n=rPe(`Primitive.${e}`),r=C.forwardRef((i,s)=>{const{asChild:a,...o}=i,l=a?n:e;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),j.jsx(l,{...o,ref:s})});return r.displayName=`Primitive.${e}`,{...t,[e]:r}},{});function dde(t,e){t&&ks.flushSync(()=>t.dispatchEvent(e))}function hu(t){const e=C.useRef(t);return C.useEffect(()=>{e.current=t}),C.useMemo(()=>(...n)=>e.current?.(...n),[])}function cPe(t,e=globalThis?.document){const n=hu(t);C.useEffect(()=>{const r=i=>{i.key==="Escape"&&n(i)};return e.addEventListener("keydown",r,{capture:!0}),()=>e.removeEventListener("keydown",r,{capture:!0})},[n,e])}var dPe="DismissableLayer",eP="dismissableLayer.update",fPe="dismissableLayer.pointerDownOutside",hPe="dismissableLayer.focusOutside",TW,fde=C.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),I0=C.forwardRef((t,e)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:i,onFocusOutside:s,onInteractOutside:a,onDismiss:o,...l}=t,u=C.useContext(fde),[c,d]=C.useState(null),h=c?.ownerDocument??globalThis?.document,[,m]=C.useState({}),g=nn(e,T=>d(T)),b=Array.from(u.layers),[v]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),E=b.indexOf(v),x=c?b.indexOf(c):-1,_=u.layersWithOutsidePointerEventsDisabled.size>0,S=x>=E,A=gPe(T=>{const O=T.target,I=[...u.branches].some(D=>D.contains(O));!S||I||(i?.(T),a?.(T),T.defaultPrevented||o?.())},h),R=yPe(T=>{const O=T.target;[...u.branches].some(D=>D.contains(O))||(s?.(T),a?.(T),T.defaultPrevented||o?.())},h);return cPe(T=>{x===u.layers.size-1&&(r?.(T),!T.defaultPrevented&&o&&(T.preventDefault(),o()))},h),C.useEffect(()=>{if(c)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(TW=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(c)),u.layers.add(c),AW(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(h.body.style.pointerEvents=TW)}},[c,h,n,u]),C.useEffect(()=>()=>{c&&(u.layers.delete(c),u.layersWithOutsidePointerEventsDisabled.delete(c),AW())},[c,u]),C.useEffect(()=>{const T=()=>m({});return document.addEventListener(eP,T),()=>document.removeEventListener(eP,T)},[]),j.jsx(wt.div,{...l,ref:g,style:{pointerEvents:_?S?"auto":"none":void 0,...t.style},onFocusCapture:tt(t.onFocusCapture,R.onFocusCapture),onBlurCapture:tt(t.onBlurCapture,R.onBlurCapture),onPointerDownCapture:tt(t.onPointerDownCapture,A.onPointerDownCapture)})});I0.displayName=dPe;var pPe="DismissableLayerBranch",mPe=C.forwardRef((t,e)=>{const n=C.useContext(fde),r=C.useRef(null),i=nn(e,r);return C.useEffect(()=>{const s=r.current;if(s)return n.branches.add(s),()=>{n.branches.delete(s)}},[n.branches]),j.jsx(wt.div,{...t,ref:i})});mPe.displayName=pPe;function gPe(t,e=globalThis?.document){const n=hu(t),r=C.useRef(!1),i=C.useRef(()=>{});return C.useEffect(()=>{const s=o=>{if(o.target&&!r.current){let l=function(){hde(fPe,n,u,{discrete:!0})};const u={originalEvent:o};o.pointerType==="touch"?(e.removeEventListener("click",i.current),i.current=l,e.addEventListener("click",i.current,{once:!0})):l()}else e.removeEventListener("click",i.current);r.current=!1},a=window.setTimeout(()=>{e.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(a),e.removeEventListener("pointerdown",s),e.removeEventListener("click",i.current)}},[e,n]),{onPointerDownCapture:()=>r.current=!0}}function yPe(t,e=globalThis?.document){const n=hu(t),r=C.useRef(!1);return C.useEffect(()=>{const i=s=>{s.target&&!r.current&&hde(hPe,n,{originalEvent:s},{discrete:!1})};return e.addEventListener("focusin",i),()=>e.removeEventListener("focusin",i)},[e,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function AW(){const t=new CustomEvent(eP);document.dispatchEvent(t)}function hde(t,e,n,{discrete:r}){const i=n.originalEvent.target,s=new CustomEvent(t,{bubbles:!1,cancelable:!0,detail:n});e&&i.addEventListener(t,e,{once:!0}),r?dde(i,s):i.dispatchEvent(s)}var DN="focusScope.autoFocusOnMount",PN="focusScope.autoFocusOnUnmount",RW={bubbles:!1,cancelable:!0},bPe="FocusScope",E2=C.forwardRef((t,e)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:i,onUnmountAutoFocus:s,...a}=t,[o,l]=C.useState(null),u=hu(i),c=hu(s),d=C.useRef(null),h=nn(e,b=>l(b)),m=C.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;C.useEffect(()=>{if(r){let b=function(_){if(m.paused||!o)return;const S=_.target;o.contains(S)?d.current=S:Nd(d.current,{select:!0})},v=function(_){if(m.paused||!o)return;const S=_.relatedTarget;S!==null&&(o.contains(S)||Nd(d.current,{select:!0}))},E=function(_){if(document.activeElement===document.body)for(const A of _)A.removedNodes.length>0&&Nd(o)};document.addEventListener("focusin",b),document.addEventListener("focusout",v);const x=new MutationObserver(E);return o&&x.observe(o,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",b),document.removeEventListener("focusout",v),x.disconnect()}}},[r,o,m.paused]),C.useEffect(()=>{if(o){OW.add(m);const b=document.activeElement;if(!o.contains(b)){const E=new CustomEvent(DN,RW);o.addEventListener(DN,u),o.dispatchEvent(E),E.defaultPrevented||(vPe(SPe(pde(o)),{select:!0}),document.activeElement===b&&Nd(o))}return()=>
vendor: 4,438 bytes, line 33
33{o.removeEventListener(DN,u),setTimeout(()=>{const E=new CustomEvent(PN,RW);o.addEventListener(PN,c),o.dispatchEvent(E),E.defaultPrevented||Nd(b??document.body,{select:!0}),o.removeEventListener(PN,c),OW.remove(m)},0)}}},[o,u,c,m]);const g=C.useCallback(b=>{if(!n&&!r||m.paused)return;const v=b.key==="Tab"&&!b.altKey&&!b.ctrlKey&&!b.metaKey,E=document.activeElement;if(v&&E){const x=b.currentTarget,[_,S]=EPe(x);_&&S?!b.shiftKey&&E===S?(b.preventDefault(),n&&Nd(_,{select:!0})):b.shiftKey&&E===_&&(b.preventDefault(),n&&Nd(S,{select:!0})):E===x&&b.preventDefault()}},[n,r,m.paused]);return j.jsx(wt.div,{tabIndex:-1,...a,ref:h,onKeyDown:g})});E2.displayName=bPe;function vPe(t,{select:e=!1}={}){const n=document.activeElement;for(const r of t)if(Nd(r,{select:e}),document.activeElement!==n)return}function EPe(t){const e=pde(t),n=NW(e,t),r=NW(e.reverse(),t);return[n,r]}function pde(t){const e=[],n=document.createTreeWalker(t,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();)e.push(n.currentNode);return e}function NW(t,e){for(const n of t)if(!_Pe(n,{upTo:e}))return n}function _Pe(t,{upTo:e}){if(getComputedStyle(t).visibility==="hidden")return!0;for(;t;){if(e!==void 0&&t===e)return!1;if(getComputedStyle(t).display==="none")return!0;t=t.parentElement}return!1}function xPe(t){return t instanceof HTMLInputElement&&"select"in t}function Nd(t,{select:e=!1}={}){if(t&&t.focus){const n=document.activeElement;t.focus({preventScroll:!0}),t!==n&&xPe(t)&&e&&t.select()}}var OW=wPe();function wPe(){let t=[];return{add(e){const n=t[0];e!==n&&n?.pause(),t=kW(t,e),t.unshift(e)},remove(e){t=kW(t,e),t[0]?.resume()}}}function kW(t,e){const n=[...t],r=n.indexOf(e);return r!==-1&&n.splice(r,1),n}function SPe(t){return t.filter(e=>e.tagName!=="A")}var CPe="Portal",M0=C.forwardRef((t,e)=>{const{container:n,...r}=t,[i,s]=C.useState(!1);gs(()=>s(!0),[]);const a=n||i&&globalThis?.document?.body;return a?x7.createPortal(j.jsx(wt.div,{...r,ref:e}),a):null});M0.displayName=CPe;function TPe(t,e){return C.useReducer((n,r)=>e[n][r]??n,t)}var $s=t=>{const{present:e,children:n}=t,r=APe(e),i=typeof n=="function"?n({present:r.isPresent}):C.Children.only(n),s=nn(r.ref,RPe(i));return typeof n=="function"||r.isPresent?C.cloneElement(i,{ref:s}):null};$s.displayName="Presence";function APe(t){const[e,n]=C.useState(),r=C.useRef(null),i=C.useRef(t),s=C.useRef("none"),a=t?"mounted":"unmounted",[o,l]=TPe(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return C.useEffect(()=>{const u=ix(r.current);s.current=o==="mounted"?u:"none"},[o]),gs(()=>{const u=r.current,c=i.current;if(c!==t){const h=s.current,m=ix(u);t?l("MOUNT"):m==="none"||u?.display==="none"?l("UNMOUNT"):l(c&&h!==m?"ANIMATION_OUT":"UNMOUNT"),i.current=t}},[t,l]),gs(()=>{if(e){let u;const c=e.ownerDocument.defaultView??window,d=m=>{const b=ix(r.current).includes(CSS.escape(m.animationName));if(m.target===e&&b&&(l("ANIMATION_END"),!i.current)){const v=e.style.animationFillMode;e.style.animationFillMode="forwards",u=c.setTimeout(()=>{e.style.animationFillMode==="forwards"&&(e.style.animationFillMode=v)})}},h=m=>{m.target===e&&(s.current=ix(r.current))};return e.addEventListener("animationstart",h),e.addEventListener("animationcancel",d),e.addEventListener("animationend",d),()=>{c.clearTimeout(u),e.removeEventListener("animationstart",h),e.removeEventListener("animationcancel",d),e.removeEventListener("animationend",d)}}else l("ANIMATION_END")},[e,l]),{isPresent:["mounted","unmountSuspended"].includes(o),ref:C.useCallback(u=>{r.current=u?getComputedStyle(u):null,n(u)},[])}}function ix(t){return t?.animationName||"none"}function RPe(t){let e=Object.getOwnPropertyDescriptor(t.props,"ref")?.get,n=e&&"isReactWarning"in e&&e.isReactWarning;return n?t.ref:(e=Object.getOwnPropertyDescriptor(t,"ref")?.get,n=e&&"isReactWarning"in e&&e.isReactWarning,n?t.props.ref:t.props.ref||t.ref)}var LN=0;function TT(){C.useEffect(()=>{const t=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",t[0]??IW()),document.body.insertAdjacentElement("beforeend",t[1]??IW()),LN++,()=>{LN===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e
vendor: 5,135 bytes, lines 33-48
33=>e.remove()),LN--}},[])}function IW(){const t=document.createElement("span");return t.setAttribute("data-radix-focus-guard",""),t.tabIndex=0,t.style.outline="none",t.style.opacity="0",t.style.position="fixed",t.style.pointerEvents="none",t}var Aw="right-scroll-bar-position",Rw="width-before-scroll-bar",NPe="with-scroll-bars-hidden",OPe="--removed-body-scroll-bar-size";function $N(t,e){return typeof t=="function"?t(e):t&&(t.current=e),t}function kPe(t,e){var n=C.useState(function(){return{value:t,callback:e,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=e,n.facade}var IPe=typeof window<"u"?C.useLayoutEffect:C.useEffect,MW=new WeakMap;function MPe(t,e){var n=kPe(null,function(r){return t.forEach(function(i){return $N(i,r)})});return IPe(function(){var r=MW.get(n);if(r){var i=new Set(r),s=new Set(t),a=n.current;i.forEach(function(o){s.has(o)||$N(o,null)}),s.forEach(function(o){i.has(o)||$N(o,a)})}MW.set(n,t)},[t]),n}function DPe(t){return t}function PPe(t,e){e===void 0&&(e=DPe);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]:t},useMedium:function(s){var a=e(s,r);return n.push(a),function(){n=n.filter(function(o){return o!==a})}},assignSyncMedium:function(s){for(r=!0;n.length;){var a=n;n=[],a.forEach(s)}n={push:function(o){return s(o)},filter:function(){return n}}},assignMedium:function(s){r=!0;var a=[];if(n.length){var o=n;n=[],o.forEach(s),a=n}var l=function(){var c=a;a=[],c.forEach(s)},u=function(){return Promise.resolve().then(l)};u(),n={push:function(c){a.push(c),u()},filter:function(c){return a=a.filter(c),n}}}};return i}function LPe(t){t===void 0&&(t={});var e=PPe(null);return e.options=bo({async:!0,ssr:!1},t),e}var mde=function(t){var e=t.sideCar,n=Uce(t,["sideCar"]);if(!e)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=e.read();if(!r)throw new Error("Sidecar medium not found");return C.createElement(r,bo({},n))};mde.isSideCarExport=!0;function $Pe(t,e){return t.useMedium(e),mde}var gde=LPe(),FN=function(){},AT=C.forwardRef(function(t,e){var n=C.useRef(null),r=C.useState({onScrollCapture:FN,onWheelCapture:FN,onTouchMoveCapture:FN}),i=r[0],s=r[1],a=t.forwardProps,o=t.children,l=t.className,u=t.removeScrollBar,c=t.enabled,d=t.shards,h=t.sideCar,m=t.noRelative,g=t.noIsolation,b=t.inert,v=t.allowPinchZoom,E=t.as,x=E===void 0?"div":E,_=t.gapMode,S=Uce(t,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),A=h,R=MPe([n,e]),T=bo(bo({},S),i);return C.createElement(C.Fragment,null,c&&C.createElement(A,{sideCar:gde,removeScrollBar:u,shards:d,noRelative:m,noIsolation:g,inert:b,setCallbacks:s,allowPinchZoom:!!v,lockRef:n,gapMode:_}),a?C.cloneElement(C.Children.only(o),bo(bo({},T),{ref:R})):C.createElement(x,bo({},T,{className:l,ref:R}),o))});AT.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};AT.classNames={fullWidth:Rw,zeroRight:Aw};var FPe=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function BPe(){if(!document)return null;var t=document.createElement("style");t.type="text/css";var e=FPe();return e&&t.setAttribute("nonce",e),t}function HPe(t,e){t.styleSheet?t.styleSheet.cssText=e:t.appendChild(document.createTextNode(e))}function UPe(t){var e=document.head||document.getElementsByTagName("head")[0];e.appendChild(t)}var jPe=function(){var t=0,e=null;return{add:function(n){t==0&&(e=BPe())&&(HPe(e,n),UPe(e)),t++},remove:function(){t--,!t&&e&&(e.parentNode&&e.parentNode.removeChild(e),e=null)}}},zPe=function(){var t=jPe();return function(e,n){C.useEffect(function(){return t.add(e),function(){t.remove()}},[e&&n])}},yde=function(){var t=zPe(),e=function(n){var r=n.styles,i=n.dynamic;return t(r,i),null};return e},VPe={left:0,top:0,right:0,gap:0},BN=function(t){return parseInt(t||"",10)||0},qPe=function(t){var e=window.getComputedStyle(document.body),n=e[t==="padding"?"paddingLeft":"marginLeft"],r=e[t==="padding"?"paddingTop":"marginTop"],i=e[t==="padding"?"paddingRight":"marginRight"];return[BN(n),BN(r),BN(i)]},GPe=function(t){if(t===void 0&&(t="margin"),typeof window>"u")return VPe;var e=qPe(t),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:e[0],top:e[1],right:e[2],gap:Math.max(0,r-n+e[2]-e[0])}},WPe=yde(),vg="data-scroll-locked",YPe=function(t,e,n,r){var i=t.left,s=t.top,a=t.right,o=t.gap;return n===void 0&&(n="margin"),` 34 .`.concat(NPe,` { 35 overflow: hidden `).concat(r,`; 36 padding-right: `).concat(o,"px ").concat(r,`; 37 } 38 body[`).concat(vg,`] { 39 overflow: hidden `).concat(r,`; 40 overscroll-behavior: contain; 41 `).concat([e&&"position: relative ".concat(r,";"),n==="margin"&&` 42 padding-left: `.concat(i,`px; 43 padding-top: `).concat(s,`px; 44 padding-right: `).concat(a,`px; 45 margin-left:0; 46 margin-top:0; 47 margin-right: `).concat(o,"px ").concat(r,`; 48 `),n==="padding"&&"padding-right: ".concat(o,"px ").concat(r,";
48")].filter(Boolean).join(""),` 49 } 50 51 .`).concat(Aw,` { 52 right: `).concat(o,"px ").concat(r,`; 53 } 54 55 .`).concat(Rw,` { 56 margin-right: `).concat(o,"px ").concat(r,`; 57 } 58 59 .`).concat(Aw," .").concat(Aw,` { 60 right: 0 `).concat(r,`; 61 } 62 63 .`).concat(Rw," .").concat(Rw,` { 64 margin-right: 0 `).concat(r,`; 65 } 66 67 body[`).concat(vg,`] { 68 `).concat(OPe,": ").concat(o,`px; 69 } 70`)},DW=function(){var t=parseInt(document.body.getAttribute(vg)||"0",10);return isFinite(t)?t:0},KPe=function(){C.useEffect(function(){return document.body.setAttribute(vg,(DW()+1).toString()),function(){var t=DW()-1;t<=0?document.body.removeAttribute(vg):document.body.setAttribute(vg,t.toString())}},[])},XPe=function(t){var e=t.noRelative,n=t.noImportant,r=t.gapMode,i=r===void 0?"margin":r;KPe();var s=C.useMemo(function(){return GPe(i)},[i]);return C.createElement(WPe,{styles:YPe(s,!e,i,n?"":"!important")})},tP=!1;if(typeof window<"u")try{var sx=Object.defineProperty({},"passive",{get:function(){return tP=!0,!0}});window.addEventListener("test",sx,sx),window.removeEventListener("test",sx,sx)}catch{tP=!1}var Im=tP?{passive:!1}:!1,QPe=function(t){return t.tagName==="TEXTAREA"},bde=function(t,e){if(!(t instanceof Element))return!1;var n=window.getComputedStyle(t);return n[e]!=="hidden"&&!(n.overflowY===n.overflowX&&!QPe(t)&&n[e]==="visible")},ZPe=function(t){return bde(t,"overflowY")},JPe=function(t){return bde(t,"overflowX")},PW=function(t,e){var n=e.ownerDocument,r=e;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var i=vde(t,r);if(i){var s=Ede(t,r),a=s[1],o=s[2];if(a>o)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},e9e=function(t){var e=t.scrollTop,n=t.scrollHeight,r=t.clientHeight;return[e,n,r]},t9e=function(t){var e=t.scrollLeft,n=t.scrollWidth,r=t.clientWidth;return[e,n,r]},vde=function(t,e){return t==="v"?ZPe(e):JPe(e)},Ede=function(t,e){return t==="v"?e9e(e):t9e(e)},n9e=function(t,e){return t==="h"&&e==="rtl"?-1:1},r9e=function(t,e,n,r,i){var s=n9e(t,window.getComputedStyle(e).direction),a=s*r,o=n.target,l=e.contains(o),u=!1,c=a>0,d=0,h=0;do{if(!o)break;var m=Ede(t,o),g=m[0],b=m[1],v=m[2],E=b-v-s*g;(g||E)&&vde(t,o)&&(d+=E,h+=g);var x=o.parentNode;o=x&&x.nodeType===Node.DOCUMENT_FRAGMENT_NODE?x.host:x}while(!l&&o!==document.body||l&&(e.contains(o)||e===o));return(c&&Math.abs(d)<1||!c&&Math.abs(h)<1)&&(u=!0),u},ax=function(t){return"changedTouches"in t?[t.changedTouches[0].clientX,t.changedTouches[0].clientY]:[0,0]},LW=function(t){return[t.deltaX,t.deltaY]},$W=function(t){return t&&"current"in t?t.current:t},i9e=function(t,e){return t[0]===e[0]&&t[1]===e[1]},s9e=function(t){return` 71 .block-interactivity-`.concat(t,` {pointer-events: none;} 72 .allow-interactivity-`).concat(t,` {pointer-events: all;} 73`)},a9e=0,Mm=[];function o9e(t){var e=C.useRef([]),n=C.useRef([0,0]),r=C.useRef(),i=C.useState(a9e++)[0],s=C.useState(yde)[0],a=C.useRef(t);C.useEffect(function(){a.current=t},[t]),C.useEffect(function(){if(t.inert){document.body.classList.add("block-interactivity-".concat(i));var b=YMe([t.lockRef.current],(t.shards||[]).map($W),!0).filter(Boolean);return b.forEach(function(v){return v.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),b.forEach(function(v){return v.classList.remove("allow-interactivity-".concat(i))})}}},[t.inert,t.lockRef.current,t.shards]);var o=C.useCallback(function(b,v){if("touches"in b&&b.touches.length===2||b.type==="wheel"&&b.ctrlKey)return!a.current.allowPinchZoom;var E=ax(b),x=n.current,_="deltaX"in b?b.deltaX:x[0]-E[0],S="deltaY"in b?b.deltaY:x[1]-E[1],A,R=b.target,T=Math.abs(_)>Math.abs(S)?"h":"v";if("touches"in b&&T==="h"&&R.type==="range")return!1;var O=window.getSelection(),I=O&&O.anchorNode,D=I?I===R||I.contains(R):!1;if(D)return!1;var P=PW(T,R);if(!P)return!0;if(P?A=T:(A=T==="v"?"h":"v",P=PW(T,R)),!P)return!1;if(!r.current&&"changedTouches"in b&&(_||S)&&(r.current=A),!A)return!0;var B=r.current||A;return r9e(B,v,b,B==="h"?_:S)},[]),l=C.useCallback(function(b){var v=b;if(!(!Mm.length||Mm[Mm.length-1]!==s)){var E="deltaY"in v?LW(v):ax(v),x=e.current.filter(function(A){return A.name===v.type&&(A.target===v.target||v.target===A.shadowParent)&&i9e(A.delta,E)})[0];if(x&&x.should){v.cancelable&&v.preventDefault();return}
vendor: 9,828 bytes, lines 73-77
73if(!x){var _=(a.current.shards||[]).map($W).filter(Boolean).filter(function(A){return A.contains(v.target)}),S=_.length>0?o(v,_[0]):!a.current.noIsolation;S&&v.cancelable&&v.preventDefault()}}},[]),u=C.useCallback(function(b,v,E,x){var _={name:b,delta:v,target:E,should:x,shadowParent:l9e(E)};e.current.push(_),setTimeout(function(){e.current=e.current.filter(function(S){return S!==_})},1)},[]),c=C.useCallback(function(b){n.current=ax(b),r.current=void 0},[]),d=C.useCallback(function(b){u(b.type,LW(b),b.target,o(b,t.lockRef.current))},[]),h=C.useCallback(function(b){u(b.type,ax(b),b.target,o(b,t.lockRef.current))},[]);C.useEffect(function(){return Mm.push(s),t.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:h}),document.addEventListener("wheel",l,Im),document.addEventListener("touchmove",l,Im),document.addEventListener("touchstart",c,Im),function(){Mm=Mm.filter(function(b){return b!==s}),document.removeEventListener("wheel",l,Im),document.removeEventListener("touchmove",l,Im),document.removeEventListener("touchstart",c,Im)}},[]);var m=t.removeScrollBar,g=t.inert;return C.createElement(C.Fragment,null,g?C.createElement(s,{styles:s9e(i)}):null,m?C.createElement(XPe,{noRelative:t.noRelative,gapMode:t.gapMode}):null)}function l9e(t){for(var e=null;t!==null;)t instanceof ShadowRoot&&(e=t.host,t=t.host),t=t.parentNode;return e}const u9e=$Pe(gde,o9e);var _2=C.forwardRef(function(t,e){return C.createElement(AT,bo({},t,{ref:e,sideCar:u9e}))});_2.classNames=AT.classNames;var c9e=function(t){if(typeof document>"u")return null;var e=Array.isArray(t)?t[0]:t;return e.ownerDocument.body},Dm=new WeakMap,ox=new WeakMap,lx={},HN=0,_de=function(t){return t&&(t.host||_de(t.parentNode))},d9e=function(t,e){return e.map(function(n){if(t.contains(n))return n;var r=_de(n);return r&&t.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",t,". Doing nothing"),null)}).filter(function(n){return!!n})},f9e=function(t,e,n,r){var i=d9e(e,Array.isArray(t)?t:[t]);lx[n]||(lx[n]=new WeakMap);var s=lx[n],a=[],o=new Set,l=new Set(i),u=function(d){!d||o.has(d)||(o.add(d),u(d.parentNode))};i.forEach(u);var c=function(d){!d||l.has(d)||Array.prototype.forEach.call(d.children,function(h){if(o.has(h))c(h);else try{var m=h.getAttribute(r),g=m!==null&&m!=="false",b=(Dm.get(h)||0)+1,v=(s.get(h)||0)+1;Dm.set(h,b),s.set(h,v),a.push(h),b===1&&g&&ox.set(h,!0),v===1&&h.setAttribute(n,"true"),g||h.setAttribute(r,"true")}catch(E){console.error("aria-hidden: cannot operate on ",h,E)}})};return c(e),o.clear(),HN++,function(){a.forEach(function(d){var h=Dm.get(d)-1,m=s.get(d)-1;Dm.set(d,h),s.set(d,m),h||(ox.has(d)||d.removeAttribute(r),ox.delete(d)),m||d.removeAttribute(n)}),HN--,HN||(Dm=new WeakMap,Dm=new WeakMap,ox=new WeakMap,lx={})}},RT=function(t,e,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(t)?t:[t]),i=c9e(t);return i?(r.push.apply(r,Array.from(i.querySelectorAll("[aria-live], script"))),f9e(r,i,n,"aria-hidden")):function(){return null}};function h9e(t){const e=p9e(t),n=C.forwardRef((r,i)=>{const{children:s,...a}=r,o=C.Children.toArray(s),l=o.find(g9e);if(l){const u=l.props.children,c=o.map(d=>d===l?C.Children.count(u)>1?C.Children.only(null):C.isValidElement(u)?u.props.children:null:d);return j.jsx(e,{...a,ref:i,children:C.isValidElement(u)?C.cloneElement(u,void 0,c):null})}return j.jsx(e,{...a,ref:i,children:s})});return n.displayName=`${t}.Slot`,n}function p9e(t){const e=C.forwardRef((n,r)=>{const{children:i,...s}=n;if(C.isValidElement(i)){const a=b9e(i),o=y9e(s,i.props);return i.type!==C.Fragment&&(o.ref=r?vu(r,a):a),C.cloneElement(i,o)}return C.Children.count(i)>1?C.Children.only(null):null});return e.displayName=`${t}.SlotClone`,e}var m9e=Symbol("radix.slottable");function g9e(t){return C.isValidElement(t)&&typeof t.type=="function"&&"__radixId"in t.type&&t.type.__radixId===m9e}function y9e(t,e){const n={...e};for(const r in e){const i=t[r],s=e[r];/^on[A-Z]/.test(r)?i&&s?n[r]=(...o)=>{const l=s(...o);return i(...o),l}:i&&(n[r]=i):r==="style"?n[r]={...i,...s}:r==="className"&&(n[r]=[i,s].filter(Boolean).join(" "))}return{...t,...n}}function b9e(t){let e=Object.getOwnPropertyDescriptor(t.props,"ref")?.get,n=e&&"isReactWarning"in e&&e.isReactWarning;return n?t.ref:(e=Object.getOwnPropertyDescriptor(t,"ref")?.get,n=e&&"isReactWarning"in e&&e.isReactWarning,n?t.props.ref:t.props.ref||t.ref)}var NT="Dialog",[xde,wde]=Ji(NT),[v9e,yl]=xde(NT),Sde=t=>{const{__scopeDialog:e,children:n,open:r,defaultOpen:i,onOpenChange:s,modal:a=!0}=t,o=C.useRef(null),l=C.useRef(null),[u,c]=fa({prop:r,defaultProp:i??!1,onChange:s,caller:NT});return j.jsx(v9e,{scope:e,triggerRef:o,contentRef:l,contentId:wo(),titleId:wo(),descriptionId:wo(),open:u,onOpenChange:c,onOpenToggle:C.useCallback(()=>c(d=>!d),[c]),modal:a,children:n})};Sde.displayName=NT;var Cde="DialogTrigger",Tde=C.forwardRef((t,e)=>{const{__scopeDialog:n,...r}=t,i=yl(Cde,n),s=nn(e,i.triggerRef);return j.jsx(wt.button,{type:"button","aria-haspopup":"dialog","aria-expanded":i.open,"aria-controls":i.contentId,"data-state":s$(i.open),...r,ref:s,onClick:tt(t.onClick,i.onOpenToggle)})});Tde.displayName=Cde;var r$="DialogPortal",[E9e,Ade]=xde(r$,{forceMount:void 0}),Rde=t=>{const{__scopeDialog:e,forceMount:n,children:r,container:i}=t,s=yl(r$,e);return j.jsx(E9e,{scope:e,forceMount:n,children:C.Children.map(r,a=>j.jsx($s,{present:n||s.open,children:j.jsx(M0,{asChild:!0,container:i,children:a})}))})};Rde.displayName=r$;var CS="DialogOverlay",Nde=C.forwardRef((t,e)=>{const n=Ade(CS,t.__scopeDialog),{forceMount:r=n.forceMount,...i}=t,s=yl(CS,t.__scopeDialog);return s.modal?j.jsx($s,{present:r||s.open,children:j.jsx(x9e,{...i,ref:e})}):null});Nde.displayName=CS;var _9e=h9e("DialogOverlay.RemoveScroll"),x9e=C.forwardRef((t,e)=>{const{__scopeDialog:n,...r}=t,i=yl(CS,n);return j.jsx(_2,{as:_9e,allowPinchZoom:!0,shards:[i.contentRef],children:j.jsx(wt.div,{"data-state":s$(i.open),...r,ref:e,style:{pointerEvents:"auto",...r.style}})})}),Gh="DialogContent",Ode=C.forwardRef((t,e)=>{const n=Ade(Gh,t.__scopeDialog),{forceMount:r=n.forceMount,...i}=t,s=yl(Gh,t.__scopeDialog);return j.jsx($s,{present:r||s.open,children:s.modal?j.jsx(w9e,{...i,ref:e}):j.jsx(S9e,{...i,ref:e})})});Ode.displayName=Gh;var w9e=C.forwardRef((t,e)=>{const n=yl(Gh,t.__scopeDialog),r=C.useRef(null),i=nn(e,n.contentRef,r);return C.useEffect(()=>{const s=r.current;if(s)return RT(s)},[]),j.jsx(kde,{...t,ref:i,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:tt(t.onCloseAutoFocus,s=>{s.preventDefault(),n.triggerRef.current?.focus()}),onPointerDownOutside:tt(t.onPointerDownOutside,s=>{const a=s.detail.originalEvent,o=a.button===0&&a.ctrlKey===!0;(a.button===2||o)&&s.preventDefault()}),onFocusOutside:tt(t.onFocusOutside,s=>s.preventDefault())})}),S9e=C.forwardRef((t,e)=>{const n=yl(Gh,t.__scopeDialog),r=C.useRef(!1),i=C.useRef(!1);return j.jsx(kde,{...t,ref:e,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:s=>{t.onCloseAutoFocus?.(s),s.defaultPrevented||(r.current||n.triggerRef.current?.focus(),s.preventDefault()),r.current=!1,i.current=!1},onInteractOutside:s=>{t.onInteractOutside?.(s),s.defaultPrevented||(r.current=!0,s.detail.originalEvent.type==="pointerdown"&&(i.current=!0));const a=s.target;n.triggerRef.current?.contains(a)&&s.preventDefault(),s.detail.originalEvent.type==="focusin"&&i.current&&s.preventDefault()}})}),kde=C.forwardRef((t,e)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:s,...a}=t,o=yl(Gh,n),l=C.useRef(null),u=nn(e,l);return TT(),j.jsxs(j.Fragment,{children:[j.jsx(E2,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:i,onUnmountAutoFocus:s,children:j.jsx(I0,{role:"dialog",id:o.contentId,"aria-describedby":o.descriptionId,"aria-labelledby":o.titleId,"data-state":s$(o.open),...a,ref:u,onDismiss:()=>o.onOpenChange(!1)})}),j.jsxs(j.Fragment,{children:[j.jsx(T9e,{titleId:o.titleId}),j.jsx(R9e,{contentRef:l,descriptionId:o.descriptionId})]})]})}),i$="DialogTitle",Ide=C.forwardRef((t,e)=>{const{__scopeDialog:n,...r}=t,i=yl(i$,n);return j.jsx(wt.h2,{id:i.titleId,...r,ref:e})});Ide.displayName=i$;var Mde="DialogDescription",Dde=C.forwardRef((t,e)=>{const{__scopeDialog:n,...r}=t,i=yl(Mde,n);return j.jsx(wt.p,{id:i.descriptionId,...r,ref:e})});Dde.displayName=Mde;var Pde="DialogClose",Lde=C.forwardRef((t,e)=>{const{__scopeDialog:n,...r}=t,i=yl(Pde,n);return j.jsx(wt.button,{type:"button",...r,ref:e,onClick:tt(t.onClick,()=>i.onOpenChange(!1))})});Lde.displayName=Pde;function s$(t){return t?"open":"closed"}var $de="DialogTitleWarning",[C9e,Fde]=XDe($de,{contentName:Gh,titleName:i$,docsSlug:"dialog"}),T9e=({titleId:t})=>{const e=Fde($de),n=`\`${e.contentName}\` requires a \`${e.titleName}\` for the component to be accessible for screen reader users. 74 75If you want to hide the \`${e.titleName}\`, you can wrap it with our VisuallyHidden component. 76 77For more information, see https://radix-ui.com/primitives/docs/components/${e.docsSlug}`;return C.useEffect(()=>{t&&(document.getElementById(t)||console.error(n))},[n,t]),null},A9e="DialogDescriptionWarning",R9e=({contentRef:t,descriptionId:e})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Fde(A9e).contentName}}.`;return C.useEffect(()=>{const i=t.current?.getAttribute("aria-describedby");e&&i&&(document.getElementById(e)||console.warn(r))},[r,t,e]),null},N9e=Sde,O9e=Tde,k9e=Rde,I9e=Nde,M9e=Ode,D9e=Ide,P9e=Dde,Bde=Lde;const L9e=(t,e)=>{const n=new Array(t.length+e.length);for(let r=0;r<t.length;r++)n[r]=t[r];for(let r=0;r<e.length;r++)n[t.length+r]=e[r];return n},$9e=(t,e)=>({classGroupId:t,validator:e}),Hde=(t=new Map,e=null,n)=>({nextPart:t,validators:e,classGroupId:n}),TS="-",FW=[],F9e="arbitrary..",B9e=t=>{const e=U9e(t),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=t;return{getClassGroupId:a=>
vendor: 7,804 bytes, line 77
77{if(a.startsWith("[")&&a.endsWith("]"))return H9e(a);const o=a.split(TS),l=o[0]===""&&o.length>1?1:0;return Ude(o,l,e)},getConflictingClassGroupIds:(a,o)=>{if(o){const l=r[a],u=n[a];return l?u?L9e(u,l):l:u||FW}return n[a]||FW}}},Ude=(t,e,n)=>{if(t.length-e===0)return n.classGroupId;const i=t[e],s=n.nextPart.get(i);if(s){const u=Ude(t,e+1,s);if(u)return u}const a=n.validators;if(a===null)return;const o=e===0?t.join(TS):t.slice(e).join(TS),l=a.length;for(let u=0;u<l;u++){const c=a[u];if(c.validator(o))return c.classGroupId}},H9e=t=>t.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const e=t.slice(1,-1),n=e.indexOf(":"),r=e.slice(0,n);return r?F9e+r:void 0})(),U9e=t=>{const{theme:e,classGroups:n}=t;return j9e(n,e)},j9e=(t,e)=>{const n=Hde();for(const r in t){const i=t[r];a$(i,n,r,e)}return n},a$=(t,e,n,r)=>{const i=t.length;for(let s=0;s<i;s++){const a=t[s];z9e(a,e,n,r)}},z9e=(t,e,n,r)=>{if(typeof t=="string"){V9e(t,e,n);return}if(typeof t=="function"){q9e(t,e,n,r);return}G9e(t,e,n,r)},V9e=(t,e,n)=>{const r=t===""?e:jde(e,t);r.classGroupId=n},q9e=(t,e,n,r)=>{if(W9e(t)){a$(t(r),e,n,r);return}e.validators===null&&(e.validators=[]),e.validators.push($9e(n,t))},G9e=(t,e,n,r)=>{const i=Object.entries(t),s=i.length;for(let a=0;a<s;a++){const[o,l]=i[a];a$(l,jde(e,o),n,r)}},jde=(t,e)=>{let n=t;const r=e.split(TS),i=r.length;for(let s=0;s<i;s++){const a=r[s];let o=n.nextPart.get(a);o||(o=Hde(),n.nextPart.set(a,o)),n=o}return n},W9e=t=>"isThemeGetter"in t&&t.isThemeGetter===!0,Y9e=t=>{if(t<1)return{get:()=>{},set:()=>{}};let e=0,n=Object.create(null),r=Object.create(null);const i=(s,a)=>{n[s]=a,e++,e>t&&(e=0,r=n,n=Object.create(null))};return{get(s){let a=n[s];if(a!==void 0)return a;if((a=r[s])!==void 0)return i(s,a),a},set(s,a){s in n?n[s]=a:i(s,a)}}},nP="!",BW=":",K9e=[],HW=(t,e,n,r,i)=>({modifiers:t,hasImportantModifier:e,baseClassName:n,maybePostfixModifierPosition:r,isExternal:i}),X9e=t=>{const{prefix:e,experimentalParseClassName:n}=t;let r=i=>{const s=[];let a=0,o=0,l=0,u;const c=i.length;for(let b=0;b<c;b++){const v=i[b];if(a===0&&o===0){if(v===BW){s.push(i.slice(l,b)),l=b+1;continue}if(v==="/"){u=b;continue}}v==="["?a++:v==="]"?a--:v==="("?o++:v===")"&&o--}const d=s.length===0?i:i.slice(l);let h=d,m=!1;d.endsWith(nP)?(h=d.slice(0,-1),m=!0):d.startsWith(nP)&&(h=d.slice(1),m=!0);const g=u&&u>l?u-l:void 0;return HW(s,m,h,g)};if(e){const i=e+BW,s=r;r=a=>a.startsWith(i)?s(a.slice(i.length)):HW(K9e,!1,a,void 0,!0)}if(n){const i=r;r=s=>n({className:s,parseClassName:i})}return r},Q9e=t=>{const e=new Map;return t.orderSensitiveModifiers.forEach((n,r)=>{e.set(n,1e6+r)}),n=>{const r=[];let i=[];for(let s=0;s<n.length;s++){const a=n[s],o=a[0]==="[",l=e.has(a);o||l?(i.length>0&&(i.sort(),r.push(...i),i=[]),r.push(a)):i.push(a)}return i.length>0&&(i.sort(),r.push(...i)),r}},Z9e=t=>({cache:Y9e(t.cacheSize),parseClassName:X9e(t),sortModifiers:Q9e(t),...B9e(t)}),J9e=/\s+/,eLe=(t,e)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i,sortModifiers:s}=e,a=[],o=t.trim().split(J9e);let l="";for(let u=o.length-1;u>=0;u-=1){const c=o[u],{isExternal:d,modifiers:h,hasImportantModifier:m,baseClassName:g,maybePostfixModifierPosition:b}=n(c);if(d){l=c+(l.length>0?" "+l:l);continue}let v=!!b,E=r(v?g.substring(0,b):g);if(!E){if(!v){l=c+(l.length>0?" "+l:l);continue}if(E=r(g),!E){l=c+(l.length>0?" "+l:l);continue}v=!1}const x=h.length===0?"":h.length===1?h[0]:s(h).join(":"),_=m?x+nP:x,S=_+E;if(a.indexOf(S)>-1)continue;a.push(S);const A=i(E,v);for(let R=0;R<A.length;++R){const T=A[R];a.push(_+T)}l=c+(l.length>0?" "+l:l)}return l},tLe=(...t)=>{let e=0,n,r,i="";for(;e<t.length;)(n=t[e++])&&(r=zde(n))&&(i&&(i+=" "),i+=r);return i},zde=t=>{if(typeof t=="string")return t;let e,n="";for(let r=0;r<t.length;r++)t[r]&&(e=zde(t[r]))&&(n&&(n+=" "),n+=e);return n},nLe=(t,...e)=>{let n,r,i,s;const a=l=>{const u=e.reduce((c,d)=>d(c),t());return n=Z9e(u),r=n.cache.get,i=n.cache.set,s=o,o(l)},o=l=>{const u=r(l);if(u)return u;const c=eLe(l,n);return i(l,c),c};return s=a,(...l)=>s(tLe(...l))},rLe=[],wi=t=>{const e=n=>n[t]||rLe;return e.isThemeGetter=!0,e},Vde=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,qde=/^\((?:(\w[\w-]*):)?(.+)\)$/i,iLe=/^\d+\/\d+$/,sLe=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,aLe=/\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$/,oLe=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,lLe=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,uLe=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Pm=t=>iLe.test(t),sn=t=>!!t&&!Number.isNaN(Number(t)),wd=t=>!!t&&Number.isInteger(Number(t)),UN=t=>t.endsWith("%")&&sn(t.slice(0,-1)),Qu=t=>sLe.test(t),cLe=()=>!0,dLe=t=>aLe.test(t)&&!oLe.test(t),Gde=()=>!1,fLe=t=>lLe.test(t),hLe=t=>uLe.test(t),pLe=t=>!dt(t)&&!ft(t),mLe=t=>D0(t,Kde,Gde),dt=t=>Vde.test(t),Zf=t=>D0(t,Xde,dLe),jN=t=>D0(t,ELe,sn),UW=t=>D0(t,Wde,Gde),gLe=t=>D0(t,Yde,hLe),ux=t=>D0(t,Qde,fLe),ft=t=>qde.test(t),cy=t=>P0(t,Xde),yLe=t=>P0(t,_Le),jW=t=>P0(t,Wde),bLe=t=>P0(t,Kde),vLe=t=>P0(t,Yde),cx=t=>P0(t,Qde,!0),D0=(t,e,n)=>{const r=Vde.exec(t);return r?r[1]?e(r[1]):n(r[2]):!1},P0=(t,e,n=!1)=>{const r=qde.exec(t);return r?r[1]?e(r[1]):n:!1},Wde=t=>t==="position"||t==="percentage",Yde=t=>t==="image"||t==="url",Kde=t=>t==="length"||t==="size"||t==="bg-size",Xde=t=>t==="length",ELe=t=>t==="number",_Le=t=>t==="family-name",Qde=t=>t==="shadow",xLe=()=>{const t=wi("color"),e=wi("font"),n=wi("text"),r=wi("font-weight"),i=wi("tracking"),s=wi("leading"),a=wi("breakpoint"),o=wi("container"),l=wi("spacing"),u=wi("radius"),c=wi("shadow"),d=wi("inset-shadow"),h=wi("text-shadow"),m=wi("drop-shadow"),g=wi("blur"),b=wi("perspective"),v=wi("aspect"),E=wi("ease"),x=wi("animate"),_=()=>["auto","avoid","all","avoid-page","page","left","right","column"],S=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],A=()=>[...S(),ft,dt],R=()=>["auto","hidden","clip","visible","scroll"],T=()=>["auto","contain","none"],O=()=>[ft,dt,l],I=()=>[Pm,"full","auto",...O()],D=()=>[wd,"none","subgrid",ft,dt],P=()=>["auto",{span:["full",wd,ft,dt]},wd,ft,dt],B=()=>[wd,"auto",ft,dt],L=()=>["auto","min","max","fr",ft,dt],$=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],q=()=>["start","end","center","stretch","center-safe","end-safe"],F=()=>["auto",...O()],G=()=>[Pm,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...O()],H=()=>[t,ft,dt],K=()=>[...S(),jW,UW,{position:[ft,dt]}],V=()=>["no-repeat",{repeat:["","x","y","space","round"]}],Y=()=>["auto","cover","contain",bLe,mLe,{size:[ft,dt]}],Z=()=>[UN,cy,Zf],W=()=>["","none","full",u,ft,dt],Q=()=>["",sn,cy,Zf],re=()=>["solid","dashed","dotted","double"],se=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],J=()=>[sn,UN,jW,UW],ae=()=>["","none",g,ft,dt],ge=()=>["none",sn,ft,dt],ve=()=>["none",sn,ft,dt],Re=()=>[sn,ft,dt],xe=()=>[Pm,"full",...O()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Qu],breakpoint:[Qu],color:[cLe],container:[Qu],"drop-shadow":[Qu],ease:["in","out","in-out"],font:[pLe],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Qu],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Qu],shadow:[Qu],spacing:["px",sn],text:[Qu],"text-shadow":[Qu],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Pm,dt,ft,v]}
vendor: 4,429 bytes, line 77
77],container:["container"],columns:[{columns:[sn,dt,ft,o]}],"break-after":[{"break-after":_()}],"break-before":[{"break-before":_()}],"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:A()}],overflow:[{overflow:R()}],"overflow-x":[{"overflow-x":R()}],"overflow-y":[{"overflow-y":R()}],overscroll:[{overscroll:T()}],"overscroll-x":[{"overscroll-x":T()}],"overscroll-y":[{"overscroll-y":T()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:I()}],"inset-x":[{"inset-x":I()}],"inset-y":[{"inset-y":I()}],start:[{start:I()}],end:[{end:I()}],top:[{top:I()}],right:[{right:I()}],bottom:[{bottom:I()}],left:[{left:I()}],visibility:["visible","invisible","collapse"],z:[{z:[wd,"auto",ft,dt]}],basis:[{basis:[Pm,"full","auto",o,...O()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[sn,Pm,"auto","initial","none",dt]}],grow:[{grow:["",sn,ft,dt]}],shrink:[{shrink:["",sn,ft,dt]}],order:[{order:[wd,"first","last","none",ft,dt]}],"grid-cols":[{"grid-cols":D()}],"col-start-end":[{col:P()}],"col-start":[{"col-start":B()}],"col-end":[{"col-end":B()}],"grid-rows":[{"grid-rows":D()}],"row-start-end":[{row:P()}],"row-start":[{"row-start":B()}],"row-end":[{"row-end":B()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":L()}],"auto-rows":[{"auto-rows":L()}],gap:[{gap:O()}],"gap-x":[{"gap-x":O()}],"gap-y":[{"gap-y":O()}],"justify-content":[{justify:[...$(),"normal"]}],"justify-items":[{"justify-items":[...q(),"normal"]}],"justify-self":[{"justify-self":["auto",...q()]}],"align-content":[{content:["normal",...$()]}],"align-items":[{items:[...q(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...q(),{baseline:["","last"]}]}],"place-content":[{"place-content":$()}],"place-items":[{"place-items":[...q(),"baseline"]}],"place-self":[{"place-self":["auto",...q()]}],p:[{p:O()}],px:[{px:O()}],py:[{py:O()}],ps:[{ps:O()}],pe:[{pe:O()}],pt:[{pt:O()}],pr:[{pr:O()}],pb:[{pb:O()}],pl:[{pl:O()}],m:[{m:F()}],mx:[{mx:F()}],my:[{my:F()}],ms:[{ms:F()}],me:[{me:F()}],mt:[{mt:F()}],mr:[{mr:F()}],mb:[{mb:F()}],ml:[{ml:F()}],"space-x":[{"space-x":O()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":O()}],"space-y-reverse":["space-y-reverse"],size:[{size:G()}],w:[{w:[o,"screen",...G()]}],"min-w":[{"min-w":[o,"screen","none",...G()]}],"max-w":[{"max-w":[o,"screen","none","prose",{screen:[a]},...G()]}],h:[{h:["screen","lh",...G()]}],"min-h":[{"min-h":["screen","lh","none",...G()]}],"max-h":[{"max-h":["screen","lh",...G()]}],"font-size":[{text:["base",n,cy,Zf]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,ft,jN]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",UN,dt]}],"font-family":[{font:[yLe,dt,e]}],"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,ft,dt]}],"line-clamp":[{"line-clamp":[sn,"none",ft,jN]}],leading:[{leading:[s,...O()]}],"list-image":[{"list-image":["none",ft,dt]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",ft,dt]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:H()}],"text-color":[{text:H()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...re(),"w
77avy"]}],"text-decoration-thickness":[{decoration:[sn,"from-font","auto",ft,Zf]}],"text-decoration-color":[{decoration:H()}],"underline-offset":[{"underline-offset":[sn,"auto",ft,dt]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:O()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ft,dt]}],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",ft,dt]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:K()}],"bg-repeat":[{bg:V()}],"bg-size":[{bg:Y()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},wd,ft,dt],radial:["",ft,dt],conic:[wd,ft,dt]},vLe,gLe]}],"bg-color":[{bg:H()}],"gradient-from-pos":[{from:Z()}],"gradient-via-pos":[{via:Z()}],"gradient-to-pos":[{to:Z()}],"gradient-from":[{from:H()}],"gradient-via":[{via:H()}],"gradient-to":[{to:H()}],rounded:[{rounded:W()}],"rounded-s":[{"rounded-s":W()}],"rounded-e":[{"rounded-e":W()}],"rounded-t":[{"rounded-t":W()}],"rounded-r":[{"rounded-r":W()}],"rounded-b":[{"rounded-b":W()}],"rounded-l":[{"rounded-l":W()}],"rounded-ss":[{"rounded-ss":W()}],"rounded-se":[{"rounded-se":W()}],"rounded-ee":[{"rounded-ee":W()}],"rounded-es":[{"rounded-es":W()}],"rounded-tl":[{"rounded-tl":W()}],"rounded-tr":[{"rounded-tr":W()}],"rounded-br":[{"rounded-br":W()}],"rounded-bl":[{"rounded-bl":W()}],"border-w":[{border:Q()}],"border-w-x":[{"border-x":Q()}],"border-w-y":[{"border-y":Q()}],"border-w-s":[{"border-s":Q()}],"border-w-e":[{"border-e":Q()}],"border-w-t":[{"border-t":Q()}],"border-w-r":[{"border-r":Q()}],"border-w-b":[{"border-b":Q()}],"border-w-l":[{"border-l":Q()}],"divide-x":[{"divide-x":Q()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":Q()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...re(),"hidden","none"]}],"divide-style":[{divide:[...re(),"hidden","none"]}],"border-color":[{border:H()}],"border-color-x":[{"border-x":H()}],"border-color-y":[{"border-y":H()}],"border-color-s":[{"border-s":H()}],"border-color-e":[{"border-e":H()}],"border-color-t":[{"border-t":H()}],"border-color-r":[{"border-r":H()}],"border-color-b":[{"border-b":H()}],"border-color-l":[{"border-l":H()}],"divide-color":[{divide:H()}],"outline-style":[{outline:[...re(),"none","hidden"]}],"outline-offset":[{"outline-offset":[sn,ft,dt]}],"outline-w":[{outline:["",sn,cy,Zf]}],"outline-color":[{outline:H()}],shadow:[{shadow:["","none",c,cx,ux]}],"shadow-color":[{shadow:H()}],"inset-shadow":[{"inset-shadow":["none",d,cx,ux]}],"inset-shadow-color":[{"inset-shadow":H()}],"ring-w":[{ring:Q()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:H()}],"ring-offset-w":[{"ring-offset":[sn,Zf]}],"ring-offset-color":[{"ring-offset":H()}],"inset-ring-w":[{"inset-ring":Q()}],"inset-ring-color":[{"inset-ring":H()}],"text-shadow":[{"text-shadow":["none",h,cx,ux]}],"text-shadow-color":[{"text-shadow":H()}],opacity:[{opacity:[sn,ft,dt]}],"mix-blend":[{"mix-blend":[...se(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":se()}],"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":[sn]}],"mask-image-linear-from-pos":[{"mask-linear-from":J()}],"mask-image-linear-to-pos":[{"mask-linear-to":J()}],"mask-image-linear-from-color":[{"mask-linear-from":H()}],"mask-image-linear-to-color":[{"mask-linear-to":H()}],"mask-image-t-from-pos":[{"mask-t-from":J()}],"mask-image-t-to-pos":[{"mask-t-to":J()}],"mask-image-t-from-color":[{"mask-t-from":H()}],"mask-image-t-to-color":[{"mask-t-to":H()}],"mask-image-r-from-pos":[{"mask-r-from":J()}],"mask-image-r-to-pos":[{"mask-r-to":J()}],"mask-image-r-from-color":[{"mask-r-from":H()}],"mask-image-r-to-color":[{"mask-r-to":H()}],"mask-image-b-from-pos":[{"mask-b-from":J()}],"mask-image-b-to-pos":[{"mask-b-to":J()}],"mask-image-b-from-color":[{"mask-b-from":H()}],"mask-image-b-to-color":[{"mask-b-to":H()}],"mask-image-l-from-pos":[{"mask-l-from":J()}],"mask-image-l-to-pos":[{"mask-l-to":J()}],"mask-image-l-from-color":[{"mask-l-from":H()}],"mask-image-l-to-color":[{"mask-l-to":H()}],"mask-image-x-from-pos":[{"mask-x-from":J()}],"mask-image-x-to-pos":[{"mask-x-to":J()}],"mask-image-x-from-color":[{"mask-x-from":H()}],"mask-image-x-to-color":[{"mask-x-to":H()}],"mask-image-y-from-pos":[{"mask-y-from":J()}],"mask-image-y-to-pos":[{"mask-y-to":J()}],"mask-image-y-from-color":[{"mask-y-from":H()}],"mask-image-y-to-color":[{"mask-y-to":H()}],"mask-image-radial":[{"mask-radial":[ft,dt]}],"mask-image-radial-from-pos":[{"mask-radial-from":J()}],"mask-image-radial-to-pos":[{"mask-radial-to":J()}],"mask-image-radial-from-color":[{"mask-radial-from":H()}],"mask-image-radial-to-color":[{"mask-radial-to":H()}],"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":S()}],"mask-image-conic-pos":[{"mask-conic":[sn]}],"mask-image-conic-from-pos":[{"mask-conic-from":J()}],"mask-image-conic-to-pos":[{"mask-conic-to":J()}],"mask-image-conic-from-color":[{"mask-conic-from":H()}],"mask-image-conic-to-color":[{"mask-conic-to":H()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:K()}],"mask-repeat":[{mask:V()}],"mask-size":[{mask:Y()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",ft,dt]}],filter:[{filter:["","none",ft,dt]}],blur:[{blur:ae()}],brightness:[{brightness:[sn,ft,dt]}],contrast:[{contrast:[sn,ft,dt]}],"drop-shadow":[{"drop-shadow":["","none",m,cx,ux]}],"drop-shadow-color":[{"drop-shadow":H()}],grayscale:[{grayscale:["",sn,ft,dt]}],"hue-rotate":[{"hue-rotate":[sn,ft,dt]}],invert:[{invert:["",sn,ft,dt]}],saturate:[{saturate:[sn,ft,dt]}],sepia:[{sepia:["",sn,ft,dt]}],"backdrop-filter":[{"backdrop-filter":["","none",ft,dt]}],"backdrop-blur":[{"backdrop-blur":ae()}],"backdrop-brightness":[{"backdrop-brightness":[sn,ft,dt]}],"backdrop-contrast":[{"backdrop-contrast":[sn,ft,dt]}],"backdrop-grayscale":[{"backdrop-grayscale":["",sn,ft,dt]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[sn,ft,dt]}],"backdrop-invert":[{"backdrop-invert":["",sn,ft,dt]}],"backdrop-opacity":[{"backdrop-opacity":[sn,ft,dt]}],"backdrop-saturate":[{"backdrop-saturate":[sn,ft,dt]}],"backdrop-sepia":[{"backdrop-sepia":["",sn,ft,dt]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":O()}],"border-spacing-x":[{"border-spacing-x":O()}],"border-spacing-y":[{"border-spacing-y":O()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",ft,dt]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[sn,"initial",ft,dt]}],ease:[{ease:["linear","initial",E,ft,dt]}],delay:[{delay:[sn,ft,dt]}],animate:[{animate:["none",x,ft,dt]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[b,ft,dt]}],"perspective-origin":[{"perspective-origin":A()}],rotate:[{rotate:ge()}],"rotate-x":[{"rotate-x":ge()}],"rotate-y":[{"rotate-y":ge()}],"rotate-z":[{"rotate-z":ge()}],scale:[{scale:ve()}],"scale-x":[{"scale-x":ve()}],"scale-y":[{"scale-y":ve()}],"scale-z":[{"scale-z":ve()}],"scale-3d":["scale-3d"],skew:[{skew:Re()}],"skew-x":[{"skew-x":Re()}],"skew-y":[{"skew-y":Re()}],transform:[{transform:[ft,dt,"","none","gpu","cpu"]}],"transform-origin":[{origin:A()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:xe()}],"translate-x":[{"translate-x":xe()}],"translate-y":[{"translate-y":xe()}],"translate-z":[{"translate-z":xe()}],"translate-none":["translate-none"],accent:[{accent:H()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:H()}
vendor: 10,382 bytes, line 77
77],"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",ft,dt]}],"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":O()}],"scroll-mx":[{"scroll-mx":O()}],"scroll-my":[{"scroll-my":O()}],"scroll-ms":[{"scroll-ms":O()}],"scroll-me":[{"scroll-me":O()}],"scroll-mt":[{"scroll-mt":O()}],"scroll-mr":[{"scroll-mr":O()}],"scroll-mb":[{"scroll-mb":O()}],"scroll-ml":[{"scroll-ml":O()}],"scroll-p":[{"scroll-p":O()}],"scroll-px":[{"scroll-px":O()}],"scroll-py":[{"scroll-py":O()}],"scroll-ps":[{"scroll-ps":O()}],"scroll-pe":[{"scroll-pe":O()}],"scroll-pt":[{"scroll-pt":O()}],"scroll-pr":[{"scroll-pr":O()}],"scroll-pb":[{"scroll-pb":O()}],"scroll-pl":[{"scroll-pl":O()}],"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",ft,dt]}],fill:[{fill:["none",...H()]}],"stroke-w":[{stroke:[sn,cy,Zf,jN]}],stroke:[{stroke:["none",...H()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},d8t=nLe(xLe),zW=t=>typeof t=="boolean"?`${t}`:t===0?"0":t,VW=Va,f8t=(t,e)=>n=>{var r;if(e?.variants==null)return VW(t,n?.class,n?.className);const{variants:i,defaultVariants:s}=e,a=Object.keys(i).map(u=>{const c=n?.[u],d=s?.[u];if(c===null)return null;const h=zW(c)||zW(d);return i[u][h]}),o=n&&Object.entries(n).reduce((u,c)=>{let[d,h]=c;return h===void 0||(u[d]=h),u},{}),l=e==null||(r=e.compoundVariants)===null||r===void 0?void 0:r.reduce((u,c)=>{let{class:d,className:h,...m}=c;return Object.entries(m).every(g=>{let[b,v]=g;return Array.isArray(v)?v.includes({...s,...o}[b]):{...s,...o}[b]===v})?[...u,d,h]:u},[]);return VW(t,a,l,n?.class,n?.className)};var wLe=Symbol.for("react.lazy"),AS=oT[" use ".trim().toString()];function SLe(t){return typeof t=="object"&&t!==null&&"then"in t}function Zde(t){return t!=null&&typeof t=="object"&&"$$typeof"in t&&t.$$typeof===wLe&&"_payload"in t&&SLe(t._payload)}function o$(t){const e=CLe(t),n=C.forwardRef((r,i)=>{let{children:s,...a}=r;Zde(s)&&typeof AS=="function"&&(s=AS(s._payload));const o=C.Children.toArray(s),l=o.find(ALe);if(l){const u=l.props.children,c=o.map(d=>d===l?C.Children.count(u)>1?C.Children.only(null):C.isValidElement(u)?u.props.children:null:d);return j.jsx(e,{...a,ref:i,children:C.isValidElement(u)?C.cloneElement(u,void 0,c):null})}return j.jsx(e,{...a,ref:i,children:s})});return n.displayName=`${t}.Slot`,n}var h8t=o$("Slot");function CLe(t){const e=C.forwardRef((n,r)=>{let{children:i,...s}=n;if(Zde(i)&&typeof AS=="function"&&(i=AS(i._payload)),C.isValidElement(i)){const a=NLe(i),o=RLe(s,i.props);return i.type!==C.Fragment&&(o.ref=r?vu(r,a):a),C.cloneElement(i,o)}return C.Children.count(i)>1?C.Children.only(null):null});return e.displayName=`${t}.SlotClone`,e}var TLe=Symbol("radix.slottable");function ALe(t){return C.isValidElement(t)&&typeof t.type=="function"&&"__radixId"in t.type&&t.type.__radixId===TLe}function RLe(t,e){const n={...e};for(const r in e){const i=t[r],s=e[r];/^on[A-Z]/.test(r)?i&&s?n[r]=(...o)=>{const l=s(...o);return i(...o),l}:i&&(n[r]=i):r==="style"?n[r]={...i,...s}:r==="className"&&(n[r]=[i,s].filter(Boolean).join(" "))}return{...t,...n}}function NLe(t){let e=Object.getOwnPropertyDescriptor(t.props,"ref")?.get,n=e&&"isReactWarning"in e&&e.isReactWarning;return n?t.ref:(e=Object.getOwnPropertyDescriptor(t,"ref")?.get,n=e&&"isReactWarning"in e&&e.isReactWarning,n?t.props.ref:t.props.ref||t.ref)}function qW(t){const e=[],n=String(t||"");let r=n.indexOf(","),i=0,s=!1;for(;!s;){r===-1&&(r=n.length,s=!0);const a=n.slice(i,r).trim();(a||!s)&&e.push(a),i=r+1,r=n.indexOf(",",i)}return e}function Jde(t,e){const n={};return(t[t.length-1]===""?[...t,""]:t).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const OLe=/[$_\p{ID_Start}]/u,kLe=/[$_\u{200C}\u{200D}\p{ID_Continue}]/u,ILe=/[-$_\u{200C}\u{200D}\p{ID_Continue}]/u,MLe=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,DLe=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,efe={};function Bo(t){return t?OLe.test(String.fromCodePoint(t)):!1}function dy(t,e){const r=(e||efe).jsx?ILe:kLe;return t?r.test(String.fromCodePoint(t)):!1}function GW(t,e){return(efe.jsx?DLe:MLe).test(t)}const PLe=/[ \t\n\f\r]/g;function LLe(t){return typeof t=="object"?t.type==="text"?WW(t.value):!1:WW(t)}function WW(t){return t.replace(PLe,"")===""}let x2=class{constructor(e,n,r){this.normal=n,this.property=e,r&&(this.space=r)}};x2.prototype.normal={};x2.prototype.property={};x2.prototype.space=void 0;function tfe(t,e){const n={},r={};for(const i of t)Object.assign(n,i.property),Object.assign(r,i.normal);return new x2(n,r,e)}function Xb(t){return t.toLowerCase()}class ga{constructor(e,n){this.attribute=n,this.property=e}}ga.prototype.attribute="";ga.prototype.booleanish=!1;ga.prototype.boolean=!1;ga.prototype.commaOrSpaceSeparated=!1;ga.prototype.commaSeparated=!1;ga.prototype.defined=!1;ga.prototype.mustUseProperty=!1;ga.prototype.number=!1;ga.prototype.overloadedBoolean=!1;ga.prototype.property="";ga.prototype.spaceSeparated=!1;ga.prototype.space=void 0;let $Le=0;const Qt=Rp(),fi=Rp(),rP=Rp(),Ke=Rp(),ar=Rp(),Eg=Rp(),Na=Rp();function Rp(){return 2**++$Le}const iP=Object.freeze(Object.defineProperty({__proto__:null,boolean:Qt,booleanish:fi,commaOrSpaceSeparated:Na,commaSeparated:Eg,number:Ke,overloadedBoolean:rP,spaceSeparated:ar},Symbol.toStringTag,{value:"Module"})),zN=Object.keys(iP);class l$ extends ga{constructor(e,n,r,i){let s=-1;if(super(e,n),YW(this,"space",i),typeof r=="number")for(;++s<zN.length;){const a=zN[s];YW(this,zN[s],(r&iP[a])===iP[a])}}}l$.prototype.defined=!0;function YW(t,e,n){n&&(t[e]=n)}function L0(t){const e={},n={};for(const[r,i]of Object.entries(t.properties)){const s=new l$(r,t.transform(t.attributes||{},r),i,t.space);t.mustUseProperty&&t.mustUseProperty.includes(r)&&(s.mustUseProperty=!0),e[r]=s,n[Xb(r)]=r,n[Xb(s.attribute)]=r}return new x2(e,n,t.space)}const nfe=L0({properties:{ariaActiveDescendant:null,ariaAtomic:fi,ariaAutoComplete:null,ariaBusy:fi,ariaChecked:fi,ariaColCount:Ke,ariaColIndex:Ke,ariaColSpan:Ke,ariaControls:ar,ariaCurrent:null,ariaDescribedBy:ar,ariaDetails:null,ariaDisabled:fi,ariaDropEffect:ar,ariaErrorMessage:null,ariaExpanded:fi,ariaFlowTo:ar,ariaGrabbed:fi,ariaHasPopup:null,ariaHidden:fi,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:ar,ariaLevel:Ke,ariaLive:null,ariaModal:fi,ariaMultiLine:fi,ariaMultiSelectable:fi,ariaOrientation:null,ariaOwns:ar,ariaPlaceholder:null,ariaPosInSet:Ke,ariaPressed:fi,ariaReadOnly:fi,ariaRelevant:null,ariaRequired:fi,ariaRoleDescription:ar,ariaRowCount:Ke,ariaRowIndex:Ke,ariaRowSpan:Ke,ariaSelected:fi,ariaSetSize:Ke,ariaSort:null,ariaValueMax:Ke,ariaValueMin:Ke,ariaValueNow:Ke,ariaValueText:null,role:null},transform(t,e){return e==="role"?e:"aria-"+e.slice(4).toLowerCase()}});function rfe(t,e){return e in t?t[e]:e}function ife(t,e){return rfe(t,e.toLowerCase())}const FLe=L0({attributes:{acceptcharset:"accept-charset",classname:"
77class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Eg,acceptCharset:ar,accessKey:ar,action:null,allow:null,allowFullScreen:Qt,allowPaymentRequest:Qt,allowUserMedia:Qt,alt:null,as:null,async:Qt,autoCapitalize:null,autoComplete:ar,autoFocus:Qt,autoPlay:Qt,blocking:ar,capture:null,charSet:null,checked:Qt,cite:null,className:ar,cols:Ke,colSpan:null,content:null,contentEditable:fi,controls:Qt,controlsList:ar,coords:Ke|Eg,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Qt,defer:Qt,dir:null,dirName:null,disabled:Qt,download:rP,draggable:fi,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Qt,formTarget:null,headers:ar,height:Ke,hidden:rP,high:Ke,href:null,hrefLang:null,htmlFor:ar,httpEquiv:ar,id:null,imageSizes:null,imageSrcSet:null,inert:Qt,inputMode:null,integrity:null,is:null,isMap:Qt,itemId:null,itemProp:ar,itemRef:ar,itemScope:Qt,itemType:ar,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Qt,low:Ke,manifest:null,max:null,maxLength:Ke,media:null,method:null,min:null,minLength:Ke,multiple:Qt,muted:Qt,name:null,nonce:null,noModule:Qt,noValidate:Qt,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:Qt,optimum:Ke,pattern:null,ping:ar,placeholder:null,playsInline:Qt,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Qt,referrerPolicy:null,rel:ar,required:Qt,reversed:Qt,rows:Ke,rowSpan:Ke,sandbox:ar,scope:null,scoped:Qt,seamless:Qt,selected:Qt,shadowRootClonable:Qt,shadowRootDelegatesFocus:Qt,shadowRootMode:null,shape:null,size:Ke,sizes:null,slot:null,span:Ke,spellCheck:fi,src:null,srcDoc:null,srcLang:null,srcSet:null,start:Ke,step:null,style:null,tabIndex:Ke,target:null,title:null,translate:null,type:null,typeMustMatch:Qt,useMap:null,value:fi,width:Ke,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:ar,axis:null,background:null,bgColor:null,border:Ke,borderColor:null,bottomMargin:Ke,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Qt,declare:Qt,event:null,face:null,frame:null,frameBorder:null,hSpace:Ke,leftMargin:Ke,link:null,longDesc:null,lowSrc:null,marginHeight:Ke,marginWidth:Ke,noResize:Qt,noHref:Qt,noShade:Qt,noWrap:Qt,object:null,profile:null,prompt:null,rev:null,rightMargin:Ke,rules:null,scheme:null,scrolling:fi,standby:null,summary:null,text:null,topMargin:Ke,valueType:null,version:null,vAlign:null,vLink:null,vSpace:Ke,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Qt,disableRemotePlayback:Qt,prefix:null,property:null,results:Ke,security:null,unselectable:null},space:"html",transform:ife}),BLe=L0({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
77dering:"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:Na,accentHeight:Ke,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:Ke,amplitude:Ke,arabicForm:null,ascent:Ke,attributeName:null,attributeType:null,azimuth:Ke,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:Ke,by:null,calcMode:null,capHeight:Ke,className:ar,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRen
77dering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:Ke,diffuseConstant:Ke,direction:null,display:null,dur:null,divisor:Ke,dominantBaseline:null,download:Qt,dx:null,dy:null,edgeMode:null,editable:null,elevation:Ke,enableBackground:null,end:null,event:null,exponent:Ke,externalResourcesRequired:null,fill:null,fillOpacity:Ke,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:Eg,g2:Eg,glyphName:Eg,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:Ke,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:Ke,horizOriginX:Ke,horizOriginY:Ke,id:null,ideographic:Ke,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:Ke,k:Ke,k1:Ke,k2:Ke,k3:Ke,k4:Ke,kernelMatrix:Na,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:Ke,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:Ke,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:Ke,overlineThickness:Ke,paintOrder:null,panose1:null,path:null,pathLength:Ke,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:ar,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:Ke,pointsAtY:Ke,pointsAtZ:Ke,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Na,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Na,rev:Na,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Na,requiredFeatures:Na,requiredFonts:Na,requiredFormats:Na,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:Ke,specularExponent:Ke,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:Ke,strikethroughThickness:Ke,string:null,stroke:null,strokeDashArray:Na,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:Ke,strokeOpacity:Ke,strokeWidth:null,style:null,surfaceScale:Ke,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Na,tabIndex:Ke,tableValues:null,target:null,targetX:Ke,targetY:Ke,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Na,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:Ke,underlineThickness:Ke,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:Ke,values:null,vAlphabetic:Ke,vMathematical:Ke,vectorEffect:null,vHanging:Ke,vIdeographic:Ke,version:null,vertAdvY:Ke,vertOriginX:Ke,vertOriginY:Ke,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:Ke,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:rfe}),sfe=L0({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}
vendor: 4,197 bytes, lines 77-78
77,space:"xlink",transform(t,e){return"xlink:"+e.slice(5).toLowerCase()}}),afe=L0({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:ife}),ofe=L0({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(t,e){return"xml:"+e.slice(3).toLowerCase()}}),HLe={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"},ULe=/[A-Z]/g,KW=/-[a-z]/g,jLe=/^data[-\w.:]+$/i;function OT(t,e){const n=Xb(e);let r=e,i=ga;if(n in t.normal)return t.property[t.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&jLe.test(e)){if(e.charAt(4)==="-"){const s=e.slice(5).replace(KW,VLe);r="data"+s.charAt(0).toUpperCase()+s.slice(1)}else{const s=e.slice(4);if(!KW.test(s)){let a=s.replace(ULe,zLe);a.charAt(0)!=="-"&&(a="-"+a),e="data"+a}}i=l$}return new i(r,e)}function zLe(t){return"-"+t.toLowerCase()}function VLe(t){return t.charAt(1).toUpperCase()}const w2=tfe([nfe,FLe,sfe,afe,ofe],"html"),yf=tfe([nfe,BLe,sfe,afe,ofe],"svg");function sP(t){const e=String(t||"").trim();return e?e.split(/[ \t\n\r\f]+/g):[]}function lfe(t){return t.join(" ").trim()}var Lm={},VN,XW;function qLe(){if(XW)return VN;XW=1;var t=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,e=/\n/g,n=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,i=/^:\s*/,s=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,a=/^[;\s]*/,o=/^\s+|\s+$/g,l=` 78`,u="/",c="*",d="",h="comment",m="declaration";function g(v,E){if(typeof v!="string")throw new TypeError("First argument must be a string");if(!v)return[];E=E||{};var x=1,_=1;function S($){var q=$.match(e);q&&(x+=q.length);var F=$.lastIndexOf(l);_=~F?$.length-F:_+$.length}function A(){var $={line:x,column:_};return function(q){return q.position=new R($),I(),q}}function R($){this.start=$,this.end={line:x,column:_},this.source=E.source}R.prototype.content=v;function T($){var q=new Error(E.source+":"+x+":"+_+": "+$);if(q.reason=$,q.filename=E.source,q.line=x,q.column=_,q.source=v,!E.silent)throw q}function O($){var q=$.exec(v);if(q){var F=q[0];return S(F),v=v.slice(F.length),q}}function I(){O(n)}function D($){var q;for($=$||[];q=P();)q!==!1&&$.push(q);return $}function P(){var $=A();if(!(u!=v.charAt(0)||c!=v.charAt(1))){for(var q=2;d!=v.charAt(q)&&(c!=v.charAt(q)||u!=v.charAt(q+1));)++q;if(q+=2,d===v.charAt(q-1))return T("End of comment missing");var F=v.slice(2,q-2);return _+=2,S(F),v=v.slice(q),_+=2,$({type:h,comment:F})}}function B(){var $=A(),q=O(r);if(q){if(P(),!O(i))return T("property missing ':'");var F=O(s),G=$({type:m,property:b(q[0].replace(t,d)),value:F?b(F[0].replace(t,d)):d});return O(a),G}}function L(){var $=[];D($);for(var q;q=B();)q!==!1&&($.push(q),D($));return $}return I(),L()}function b(v){return v?v.replace(o,d):d}return VN=g,VN}var QW;function GLe(){if(QW)return Lm;QW=1;var t=Lm&&Lm.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Lm,"__esModule",{value:!0}),Lm.default=n;const e=t(qLe());function n(r,i){let s=null;if(!r||typeof r!="string")return s;const a=(0,e.default)(r),o=typeof i=="function";return a.forEach(l=>{if(l.type!=="declaration")return;const{property:u,value:c}=l;o?i(u,c,l):c&&(s=s||{},s[u]=c)}),s}return Lm}var fy={},ZW;function WLe(){if(ZW)return fy;ZW=1,Object.defineProperty(fy,"__esModule",{value:!0}),fy.camelCase=void 0;var t=/^--[a-zA-Z0-9_-]+$/,e=/-([a-z])/g,n=/^[^-]+$/,r=/^-(webkit|moz|ms|o|khtml)-/,i=/^-(ms)-/,s=function(u){return!u||n.test(u)||t.test(u)},a=function(u,c){return c.toUpperCase()},o=function(u,c){return"".concat(c,"-")},l=function(u,c){return c===void 0&&(c={}),s(u)?u:(u=u.toLowerCase(),c.reactCompat?u=u.replace(i,o):u=u.replace(r,o),u.replace(e,a))};return fy.camelCase=l,fy}var hy,JW;function YLe(){if(JW)return hy;JW=1;var t=hy&&hy.__importDefault||function(i){return i&&i.__esModule?i:{default:i}},e=t(GLe()),n=WLe();function r(i,s){var a={};
vendor: 2,748 bytes, line 78
78return!i||typeof i!="string"||(0,e.default)(i,function(o,l){o&&l&&(a[(0,n.camelCase)(o,s)]=l)}),a}return r.default=r,hy=r,hy}var KLe=YLe();const XLe=ys(KLe),kT=ufe("end"),Eu=ufe("start");function ufe(t){return e;function e(n){const r=n&&n.position&&n.position[t]||{};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 cfe(t){const e=Eu(t),n=kT(t);if(e&&n)return{start:e,end:n}}function vc(t){return!t||typeof t!="object"?"":"position"in t||"type"in t?eY(t.position):"start"in t||"end"in t?eY(t):"line"in t||"column"in t?aP(t):""}function aP(t){return tY(t&&t.line)+":"+tY(t&&t.column)}function eY(t){return aP(t&&t.start)+"-"+aP(t&&t.end)}function tY(t){return t&&typeof t=="number"?t:1}class Pn extends Error{constructor(e,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let i="",s={},a=!1;if(n&&("line"in n&&"column"in n?s={place:n}:"start"in n&&"end"in n?s={place:n}:"type"in n?s={ancestors:[n],place:n.position}:s={...n}),typeof e=="string"?i=e:!s.cause&&e&&(a=!0,i=e.message,s.cause=e),!s.ruleId&&!s.source&&typeof r=="string"){const l=r.indexOf(":");l===-1?s.ruleId=r:(s.source=r.slice(0,l),s.ruleId=r.slice(l+1))}if(!s.place&&s.ancestors&&s.ancestors){const l=s.ancestors[s.ancestors.length-1];l&&(s.place=l.position)}const o=s.place&&"start"in s.place?s.place.start:s.place;this.ancestors=s.ancestors||void 0,this.cause=s.cause||void 0,this.column=o?o.column:void 0,this.fatal=void 0,this.file="",this.message=i,this.line=o?o.line:void 0,this.name=vc(s.place)||"1:1",this.place=s.place||void 0,this.reason=this.message,this.ruleId=s.ruleId||void 0,this.source=s.source||void 0,this.stack=a&&s.cause&&typeof s.cause.stack=="string"?s.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}Pn.prototype.file="";Pn.prototype.name="";Pn.prototype.reason="";Pn.prototype.message="";Pn.prototype.stack="";Pn.prototype.column=void 0;Pn.prototype.line=void 0;Pn.prototype.ancestors=void 0;Pn.prototype.cause=void 0;Pn.prototype.fatal=void 0;Pn.prototype.place=void 0;Pn.prototype.ruleId=void 0;Pn.prototype.source=void 0;const u$={}.hasOwnProperty,QLe=new Map,ZLe=/[A-Z]/g,JLe=new Set(["table","tbody","thead","tfoot","tr"]),e7e=new Set(["td","th"]),dfe="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function t7e(t,e){if(!e||e.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=e.filePath||void 0;let r;if(e.development){if(typeof e.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=u7e(n,e.jsxDEV)}else{if(typeof e.jsx!="function")throw new TypeError("Expected `jsx` in production options");
vendor: 6,358 bytes, line 78
78if(typeof e.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=l7e(n,e.jsx,e.jsxs)}const i={Fragment:e.Fragment,ancestors:[],components:e.components||{},create:r,elementAttributeNameCase:e.elementAttributeNameCase||"react",evaluater:e.createEvaluater?e.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:e.ignoreInvalidStyle||!1,passKeys:e.passKeys!==!1,passNode:e.passNode||!1,schema:e.space==="svg"?yf:w2,stylePropertyNameCase:e.stylePropertyNameCase||"dom",tableCellAlignToStyle:e.tableCellAlignToStyle!==!1},s=ffe(i,t,void 0);return s&&typeof s!="string"?s:i.create(t,i.Fragment,{children:s||void 0},void 0)}function ffe(t,e,n){if(e.type==="element")return n7e(t,e,n);if(e.type==="mdxFlowExpression"||e.type==="mdxTextExpression")return r7e(t,e);if(e.type==="mdxJsxFlowElement"||e.type==="mdxJsxTextElement")return s7e(t,e,n);if(e.type==="mdxjsEsm")return i7e(t,e);if(e.type==="root")return a7e(t,e,n);if(e.type==="text")return o7e(t,e)}function n7e(t,e,n){const r=t.schema;let i=r;e.tagName.toLowerCase()==="svg"&&r.space==="html"&&(i=yf,t.schema=i),t.ancestors.push(e);const s=pfe(t,e.tagName,!1),a=c7e(t,e);let o=d$(t,e);return JLe.has(e.tagName)&&(o=o.filter(function(l){return typeof l=="string"?!LLe(l):!0})),hfe(t,a,s,e),c$(a,o),t.ancestors.pop(),t.schema=r,t.create(e,s,a,n)}function r7e(t,e){if(e.data&&e.data.estree&&t.evaluater){const r=e.data.estree.body[0];return r.type,t.evaluater.evaluateExpression(r.expression)}Qb(t,e.position)}function i7e(t,e){if(e.data&&e.data.estree&&t.evaluater)return t.evaluater.evaluateProgram(e.data.estree);Qb(t,e.position)}function s7e(t,e,n){const r=t.schema;let i=r;e.name==="svg"&&r.space==="html"&&(i=yf,t.schema=i),t.ancestors.push(e);const s=e.name===null?t.Fragment:pfe(t,e.name,!0),a=d7e(t,e),o=d$(t,e);return hfe(t,a,s,e),c$(a,o),t.ancestors.pop(),t.schema=r,t.create(e,s,a,n)}function a7e(t,e,n){const r={};return c$(r,d$(t,e)),t.create(e,t.Fragment,r,n)}function o7e(t,e){return e.value}function hfe(t,e,n,r){typeof n!="string"&&n!==t.Fragment&&t.passNode&&(e.node=r)}function c$(t,e){if(e.length>0){const n=e.length>1?e:e[0];n&&(t.children=n)}}function l7e(t,e,n){return r;function r(i,s,a,o){const u=Array.isArray(a.children)?n:e;return o?u(s,a,o):u(s,a)}}function u7e(t,e){return n;function n(r,i,s,a){const o=Array.isArray(s.children),l=Eu(r);return e(i,s,a,o,{columnNumber:l?l.column-1:void 0,fileName:t,lineNumber:l?l.line:void 0},void 0)}}function c7e(t,e){const n={};let r,i;for(i in e.properties)if(i!=="children"&&u$.call(e.properties,i)){const s=f7e(t,i,e.properties[i]);if(s){const[a,o]=s;t.tableCellAlignToStyle&&a==="align"&&typeof o=="string"&&e7e.has(e.tagName)?r=o:n[a]=o}}if(r){const s=n.style||(n.style={});s[t.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return n}function d7e(t,e){const n={};for(const r of e.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&t.evaluater){const s=r.data.estree.body[0];s.type;const a=s.expression;a.type;const o=a.properties[0];o.type,Object.assign(n,t.evaluater.evaluateExpression(o.argument))}else Qb(t,e.position);else{const i=r.name;let s;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&t.evaluater){const o=r.value.data.estree.body[0];o.type,s=t.evaluater.evaluateExpression(o.expression)}else Qb(t,e.position);else s=r.value===null?!0:r.value;n[i]=s}return n}function d$(t,e){const n=[];let r=-1;const i=t.passKeys?new Map:QLe;for(;++r<e.children.length;){const s=e.children[r];let a;if(t.passKeys){const l=s.type==="element"?s.tagName:s.type==="mdxJsxFlowElement"||s.type==="mdxJsxTextElement"?s.name:void 0;if(l){const u=i.get(l)||0;a=l+"-"+u,i.set(l,u+1)}}const o=ffe(t,s,a);o!==void 0&&n.push(o)}return n}function f7e(t,e,n){const r=OT(t.schema,e);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?Jde(n):lfe(n)),r.property==="style"){let i=typeof n=="object"?n:h7e(t,String(n));return t.stylePropertyNameCase==="css"&&(i=p7e(i)),["style",i]}return[t.elementAttributeNameCase==="react"&&r.space?HLe[r.property]||r.property:r.attribute,n]}}function h7e(t,e){try{return XLe(e,{reactCompat:!0})}catch(n){if(t.ignoreInvalidStyle)return{};const r=n,i=new Pn("Cannot parse `style` attribute",{ancestors:t.ancestors,cause:r,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw i.file=t.filePath||void 0,i.url=dfe+"#cannot-parse-style-attribute",i}}function pfe(t,e,n){let r;if(!n)r={type:"Literal",value:e};else if(e.includes(".")){const i=e.split(".");let s=-1,a;for(;++s<i.length;){const o=GW(i[s])?{type:"Identifier",name:i[s]}:{type:"Literal",value:i[s]};a=a?{type:"MemberExpression",object:a,property:o,computed:!!(s&&o.type==="Literal"),optional:!1}:o}r=a}else r=GW(e)&&!/^[a-z]/.test(e)?{type:"Identifier",name:e}:{type:"Literal",value:e};if(r.type==="Literal"){const i=r.value;return u$.call(t.components,i)?t.components[i]:i}if(t.evaluater)return t.evaluater.evaluateExpression(r);Qb(t)}function Qb(t,e){const n=new Pn("Cannot handle MDX estrees without `createEvaluater`",{ancestors:t.ancestors,place:e,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=t.filePath||void 0,n.url=dfe+"#cannot-handle-mdx-estrees-without-createevaluater",n}function p7e(t){const e={};let n;for(n in t)u$.call(t,n)&&(e[m7e(n)]=t[n]);return e}function m7e(t){let e=t.replace(ZLe,g7e);return e.slice(0,3)==="ms-"&&(e="-"+e),e}function g7e(t){return"-"+t.toLowerCase()}const qN={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"]},y7e={};function f$(t,e){const n=y7e,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,i=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return mfe(t,r,i)}function mfe(t,e,n){if(b7e(t)){if("value"in t)return t.type==="html"&&!n?"":t.value;if(e&&"alt"in t&&t.alt)return t.alt;if("children"in t)return nY(t.children,e,n)}return Array.isArray(t)?nY(t,e,n):""}function nY(t,e,n){const r=[];let i=-1;for(;++i<t.length;)r[i]=mfe(t[i],e,n);return r.join("")}function b7e(t){return!!(t&&typeof t=="object")}const rY=document.createElement("i");function Zb(t){const e="&"+t+";";rY.innerHTML=e;const n=rY.textContent;
vendor: 13,334 bytes, line 78
78return n.charCodeAt(n.length-1)===59&&t!=="semi"||n===e?!1:n}function hs(t,e,n,r){const i=t.length;let s=0,a;if(e<0?e=-e>i?0:i+e:e=e>i?i:e,n=n>0?n:0,r.length<1e4)a=Array.from(r),a.unshift(e,n),t.splice(...a);else for(n&&t.splice(e,n);s<r.length;)a=r.slice(s,s+1e4),a.unshift(e,0),t.splice(...a),s+=1e4,e+=1e4}function go(t,e){return t.length>0?(hs(t,t.length,0,e),t):e}const iY={}.hasOwnProperty;function gfe(t){const e={};let n=-1;for(;++n<t.length;)v7e(e,t[n]);return e}function v7e(t,e){let n;for(n in e){const i=(iY.call(t,n)?t[n]:void 0)||(t[n]={}),s=e[n];let a;if(s)for(a in s){iY.call(i,a)||(i[a]=[]);const o=s[a];E7e(i[a],Array.isArray(o)?o:o?[o]:[])}}}function E7e(t,e){let n=-1;const r=[];for(;++n<e.length;)(e[n].add==="after"?t:r).push(e[n]);hs(t,0,0,r)}function yfe(t,e){const n=Number.parseInt(t,e);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 sl(t){return t.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Ns=bf(/[A-Za-z]/),fs=bf(/[\dA-Za-z]/),_7e=bf(/[#-'*+\--9=?A-Z^-~]/);function RS(t){return t!==null&&(t<32||t===127)}const oP=bf(/\d/),x7e=bf(/[\dA-Fa-f]/),w7e=bf(/[!-/:-@[-`{-~]/);function pt(t){return t!==null&&t<-2}function An(t){return t!==null&&(t<0||t===32)}function en(t){return t===-2||t===-1||t===32}const IT=bf(new RegExp("\\p{P}|\\p{S}","u")),Ts=bf(/\s/);function bf(t){return e;function e(n){return n!==null&&n>-1&&t.test(String.fromCharCode(n))}}function $0(t){const e=[];let n=-1,r=0,i=0;for(;++n<t.length;){const s=t.charCodeAt(n);let a="";if(s===37&&fs(t.charCodeAt(n+1))&&fs(t.charCodeAt(n+2)))i=2;else if(s<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(s))||(a=String.fromCharCode(s));else if(s>55295&&s<57344){const o=t.charCodeAt(n+1);s<56320&&o>56319&&o<57344?(a=String.fromCharCode(s,o),i=1):a="�"}else a=String.fromCharCode(s);a&&(e.push(t.slice(r,n),encodeURIComponent(a)),r=n+i+1,a=""),i&&(n+=i,i=0)}return e.join("")+t.slice(r)}function gn(t,e,n,r){const i=r?r-1:Number.POSITIVE_INFINITY;let s=0;return a;function a(l){return en(l)?(t.enter(n),o(l)):e(l)}function o(l){return en(l)&&s++<i?(t.consume(l),o):(t.exit(n),e(l))}}const S7e={tokenize:C7e};function C7e(t){const e=t.attempt(this.parser.constructs.contentInitial,r,i);let n;return e;function r(o){if(o===null){t.consume(o);return}return t.enter("lineEnding"),t.consume(o),t.exit("lineEnding"),gn(t,e,"linePrefix")}function i(o){return t.enter("paragraph"),s(o)}function s(o){const l=t.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=l),n=l,a(o)}function a(o){if(o===null){t.exit("chunkText"),t.exit("paragraph"),t.consume(o);return}return pt(o)?(t.consume(o),t.exit("chunkText"),s):(t.consume(o),a)}}const T7e={tokenize:A7e},sY={tokenize:R7e};function A7e(t){const e=this,n=[];let r=0,i,s,a;return o;function o(_){if(r<n.length){const S=n[r];return e.containerState=S[1],t.attempt(S[0].continuation,l,u)(_)}return u(_)}function l(_){if(r++,e.containerState._closeFlow){e.containerState._closeFlow=void 0,i&&x();const S=e.events.length;let A=S,R;for(;A--;)if(e.events[A][0]==="exit"&&e.events[A][1].type==="chunkFlow"){R=e.events[A][1].end;break}E(r);let T=S;for(;T<e.events.length;)e.events[T][1].end={...R},T++;return hs(e.events,A+1,0,e.events.slice(S)),e.events.length=T,u(_)}return o(_)}function u(_){if(r===n.length){if(!i)return h(_);if(i.currentConstruct&&i.currentConstruct.concrete)return g(_);e.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return e.containerState={},t.check(sY,c,d)(_)}function c(_){return i&&x(),E(r),h(_)}function d(_){return e.parser.lazy[e.now().line]=r!==n.length,a=e.now().offset,g(_)}function h(_){return e.containerState={},t.attempt(sY,m,g)(_)}function m(_){return r++,n.push([e.currentConstruct,e.containerState]),h(_)}function g(_){if(_===null){i&&x(),E(0),t.consume(_);return}return i=i||e.parser.flow(e.now()),t.enter("chunkFlow",{_tokenizer:i,contentType:"flow",previous:s}),b(_)}function b(_){if(_===null){v(t.exit("chunkFlow"),!0),E(0),t.consume(_);return}return pt(_)?(t.consume(_),v(t.exit("chunkFlow")),r=0,e.interrupt=void 0,o):(t.consume(_),b)}function v(_,S){const A=e.sliceStream(_);if(S&&A.push(null),_.previous=s,s&&(s.next=_),s=_,i.defineSkip(_.start),i.write(A),e.parser.lazy[_.start.line]){let R=i.events.length;for(;R--;)if(i.events[R][1].start.offset<a&&(!i.events[R][1].end||i.events[R][1].end.offset>a))return;const T=e.events.length;let O=T,I,D;for(;O--;)if(e.events[O][0]==="exit"&&e.events[O][1].type==="chunkFlow"){if(I){D=e.events[O][1].end;break}I=!0}for(E(r),R=T;R<e.events.length;)e.events[R][1].end={...D},R++;hs(e.events,O+1,0,e.events.slice(T)),e.events.length=R}}function E(_){let S=n.length;for(;S-- >_;){const A=n[S];e.containerState=A[1],A[0].exit.call(e,t)}n.length=_}function x(){i.write([null]),s=void 0,i=void 0,e.containerState._closeFlow=void 0}}function R7e(t,e,n){return gn(t,t.attempt(this.parser.constructs.document,e,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function nf(t){if(t===null||An(t)||Ts(t))return 1;if(IT(t))return 2}function S2(t,e,n){const r=[];let i=-1;for(;++i<t.length;){const s=t[i].resolveAll;s&&!r.includes(s)&&(e=s(e,n),r.push(s))}return e}const lP={name:"attention",resolveAll:N7e,tokenize:O7e};function N7e(t,e){let n=-1,r,i,s,a,o,l,u,c;for(;++n<t.length;)if(t[n][0]==="enter"&&t[n][1].type==="attentionSequence"&&t[n][1]._close){for(r=n;r--;)if(t[r][0]==="exit"&&t[r][1].type==="attentionSequence"&&t[r][1]._open&&e.sliceSerialize(t[r][1]).charCodeAt(0)===e.sliceSerialize(t[n][1]).charCodeAt(0)){if((t[r][1]._close||t[n][1]._open)&&(t[n][1].end.offset-t[n][1].start.offset)%3&&!((t[r][1].end.offset-t[r][1].start.offset+t[n][1].end.offset-t[n][1].start.offset)%3))continue;l=t[r][1].end.offset-t[r][1].start.offset>1&&t[n][1].end.offset-t[n][1].start.offset>1?2:1;const d={...t[r][1].end},h={...t[n][1].start};aY(d,-l),aY(h,l),a={type:l>1?"strongSequence":"emphasisSequence",start:d,end:{...t[r][1].end}},o={type:l>1?"strongSequence":"emphasisSequence",start:{...t[n][1].start},end:h},s={type:l>1?"strongText":"emphasisText",start:{...t[r][1].end},end:{...t[n][1].start}},i={type:l>1?"strong":"emphasis",start:{...a.start},end:{...o.end}},t[r][1].end={...a.start},t[n][1].start={...o.end},u=[],t[r][1].end.offset-t[r][1].start.offset&&(u=go(u,[["enter",t[r][1],e],["exit",t[r][1],e]])),u=go(u,[["enter",i,e],["enter",a,e],["exit",a,e],["enter",s,e]]),u=go(u,S2(e.parser.constructs.insideSpan.null,t.slice(r+1,n),e)),u=go(u,[["exit",s,e],["enter",o,e],["exit",o,e],["exit",i,e]]),t[n][1].end.offset-t[n][1].start.offset?(c=2,u=go(u,[["enter",t[n][1],e],["exit",t[n][1],e]])):c=0,hs(t,r-1,n-r+3,u),n=r+u.length-c-2;break}}for(n=-1;++n<t.length;)t[n][1].type==="attentionSequence"&&(t[n][1].type="data");return t}function O7e(t,e){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,i=nf(r);let s;return a;function a(l){return s=l,t.enter("attentionSequence"),o(l)}function o(l){if(l===s)return t.consume(l),o;const u=t.exit("attentionSequence"),c=nf(l),d=!c||c===2&&i||n.includes(l),h=!i||i===2&&c||n.includes(r);return u._open=!!(s===42?d:d&&(i||!h)),u._close=!!(s===42?h:h&&(c||!d)),e(l)}}function aY(t,e){t.column+=e,t.offset+=e,t._bufferIndex+=e}const k7e={name:"autolink",tokenize:I7e};function I7e(t,e,n){let r=0;return i;function i(m){return t.enter("autolink"),t.enter("autolinkMarker"),t.consume(m),t.exit("autolinkMarker"),t.enter("autolinkProtocol"),s}function s(m){return Ns(m)?(t.consume(m),a):m===64?n(m):u(m)}function a(m){return m===43||m===45||m===46||fs(m)?(r=1,o(m)):u(m)}function o(m){return m===58?(t.consume(m),r=0,l):(m===43||m===45||m===46||fs(m))&&r++<32?(t.consume(m),o):(r=0,u(m))}function l(m){return m===62?(t.exit("autolinkProtocol"),t.enter("autolinkMarker"),t.consume(m),t.exit("autolinkMarker"),t.exit("autolink"),e):m===null||m===32||m===60||RS(m)?n(m):(t.consume(m),l)}function u(m){return m===64?(t.consume(m),c):_7e(m)?(t.consume(m),u):n(m)}function c(m){return fs(m)?d(m):n(m)}function d(m){return m===46?(t.consume(m),r=0,c):m===62?(t.exit("autolinkProtocol").type="autolinkEmail",t.enter("autolinkMarker"),t.consume(m),t.exit("autolinkMarker"),t.exit("autolink"),e):h(m)}function h(m){if((m===45||fs(m))&&r++<63){const g=m===45?h:d;return t.consume(m),g}return n(m)}}const C2={partial:!0,tokenize:M7e};function M7e(t,e,n){return r;function r(s){return en(s)?gn(t,i,"linePrefix")(s):i(s)}function i(s){return s===null||pt(s)?e(s):n(s)}}const bfe={continuation:{tokenize:P7e},exit:L7e,name:"blockQuote",tokenize:D7e};function D7e(t,e,n){const r=this;return i;function i(a){if(a===62){const o=r.containerState;return o.open||(t.enter("blockQuote",{_container:!0}),o.open=!0),t.enter("blockQuotePrefix"),t.enter("blockQuoteMarker"),t.consume(a),t.exit("blockQuoteMarker"),s}return n(a)}function s(a){return en(a)?(t.enter("blockQuotePrefixWhitespace"),t.consume(a),t.exit("blockQuotePrefixWhitespace"),t.exit("blockQuotePrefix"),e):(t.exit("blockQuotePrefix"),e(a))}}function P7e(t,e,n){const r=this;return i;function i(a){return en(a)?gn(t,s,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(a):s(a)}function s(a){return t.attempt(bfe,e,n)(a)}}function L7e(t){t.exit("blockQuote")}const vfe={name:"characterEscape",tokenize:$7e};function $7e(t,e,n){return r;function r(s){return t.enter("characterEscape"),t.enter("escapeMarker"),t.consume(s),t.exit("escapeMarker"),i}function i(s){return w7e(s)?(t.enter("characterEscapeValue"),t.consume(s),t.exit("characterEscapeValue"),t.exit("characterEscape"),e):n(s)}}const Efe={name:"characterReference",tokenize:F7e};function F7e(t,e,n){const r=this;let i=0,s,a;return o;function o(d){return t.enter("characterReference"),t.enter("characterReferenceMarker"),t.consume(d),t.exit("characterReferenceMarker"),l}function l(d){return d===35?(t.enter("characterReferenceMarkerNumeric"),t.consume(d),t.exit("characterReferenceMarkerNumeric"),u):(t.enter("characterReferenceValue"),s=31,a=fs,c(d))}function u(d){return d===88||d===120?(t.enter("characterReferenceMarkerHexadecimal"),t.consume(d),t.exit("characterReferenceMarkerHexadecimal"),t.enter("characterReferenceValue"),s=6,a=x7e,c):(t.enter("characterReferenceValue"),s=7,a=oP,c(d))}function c(d){if(d===59&&i){const h=t.exit("characterReferenceValue");return a===fs&&!Zb(r.sliceSerialize(h))?n(d):(t.enter("characterReferenceMarker"),t.consume(d),t.exit("characterReferenceMarker"),t.exit("characterReference"),e)}return a(d)&&i++<s?(t.consume(d),c):n(d)}}const oY={partial:!0,tokenize:H7e},lY={concrete:!0,name:"codeFenced",tokenize:B7e};function B7e(t,e,n){const r=this,i={partial:!0,tokenize:A};let s=0,a=0,o;return l;function l(R){return u(R)}function u(R){const T=r.events[r.events.length-1];return s=T&&T[1].type==="linePrefix"?T[2].sliceSerialize(T[1],!0).length:0,o=R,t.enter("codeFenced"),t.enter("codeFencedFence"),t.enter("codeFencedFenceSequence"),c(R)}function c(R){return R===o?(a++,t.consume(R),c):a<3?n(R):(t.exit("codeFencedFenceSequence"),en(R)?gn(t,d,"whitespace")(R):d(R))}function d(R){return R===null||pt(R)?(t.exit("codeFencedFence"),r.interrupt?e(R):t.check(oY,b,S)(R)):(t.enter("codeFencedFenceInfo"),t.enter("chunkString",{contentType:"string"}),h(R))}function h(R){return R===null||pt(R)?(t.exit("chunkString"),t.exit("codeFencedFenceInfo"),d(R)):en(R)?(t.exit("chunkString"),t.exit("codeFencedFenceInfo"),gn(t,m,"whitespace")(R)):R===96&&R===o?n(R):(t.consume(R),h)}function m(R){return R===null||pt(R)?d(R):(t.enter("codeFencedFenceMeta"),t.enter("chunkString",{contentType:"string"}),g(R))}function g(R){return R===null||pt(R)?(t.exit("chunkString"),t.exit("codeFencedFenceMeta"),d(R)):R===96&&R===o?n(R):(t.consume(R),g)}function b(R){return t.attempt(i,S,v)(R)}function v(R){return t.enter("lineEnding"),t.consume(R),t.exit("lineEnding"),E}function E(R){return s>0&&en(R)?gn(t,x,"linePrefix",s+1)(R):x(R)}function x(R){return R===null||pt(R)?t.check(oY,b,S)(R):(t.enter("codeFlowValue"),_(R))}function _(R){return R===null||pt(R)?(t.exit("codeFlowValue"),x(R)):(t.consume(R),_)}function S(R){return t.exit("codeFenced"),e(R)}function A(R,T,O){let I=0;return D;function D(q){return R.enter("lineEnding"),R.consume(q),R.exit("lineEnding"),P}function P(q){return R.enter("codeFencedFence"),en(q)?gn(R,B,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(q):B(q)}function B(q){return q===o?(R.enter("codeFencedFenceSequence"),L(q)):O(q)}function L(q){return q===o?(I++,R.consume(q),L):I>=a?(R.exit("codeFencedFenceSequence"),en(q)?gn(R,$,"whitespace")(q):$(q)):O(q)}function $(q){return q===null||pt(q)?(R.exit("codeFencedFence"),T(q)):O(q)}}}function H7e(t,e,n){const r=this;return i;function i(a){return a===null?n(a):(t.enter("lineEnding"),t.consume(a),t.exit("lineEnding"),s)}function s(a){return r.parser.lazy[r.now().line]?n(a):e(a)}}const GN={name:"codeIndented",tokenize:j7e},U7e={partial:!0,tokenize:z7e};function j7e(t,e,n){const r=this;return i;function i(u){return t.enter("codeIndented"),gn(t,s,"linePrefix",5)(u)}function s(u){const c=r.events[r.events.length-1];return c&&c[1].type==="linePrefix"&&c[2].sliceSerialize(c[1],!0).length>=4?a(u):n(u)}function a(u){return u===null?l(u):pt(u)?t.attempt(U7e,a,l)(u):(t.enter("co
78deFlowValue"),o(u))}function o(u){return u===null||pt(u)?(t.exit("codeFlowValue"),a(u)):(t.consume(u),o)}function l(u){return t.exit("codeIndented"),e(u)}}function z7e(t,e,n){const r=this;return i;function i(a){return r.parser.lazy[r.now().line]?n(a):pt(a)?(t.enter("lineEnding"),t.consume(a),t.exit("lineEnding"),i):gn(t,s,"linePrefix",5)(a)}function s(a){const o=r.events[r.events.length-1];return o&&o[1].type==="linePrefix"&&o[2].sliceSerialize(o[1],!0).length>=4?e(a):pt(a)?i(a):n(a)}}const V7e={name:"codeText",previous:G7e,resolve:q7e,tokenize:W7e};function q7e(t){let e=t.length-4,n=3,r,i;if((t[n][1].type==="lineEnding"||t[n][1].type==="space")&&(t[e][1].type==="lineEnding"||t[e][1].type==="space")){for(r=n;++r<e;)if(t[r][1].type==="codeTextData"){t[n][1].type="codeTextPadding",t[e][1].type="codeTextPadding",n+=2,e-=2;break}}for(r=n-1,e++;++r<=e;)i===void 0?r!==e&&t[r][1].type!=="lineEnding"&&(i=r):(r===e||t[r][1].type==="lineEnding")&&(t[i][1].type="codeTextData",r!==i+2&&(t[i][1].end=t[r-1][1].end,t.splice(i+2,r-i-2),e-=r-i-2,r=i+2),i=void 0);return t}function G7e(t){return t!==96||this.events[this.events.length-1][1].type==="characterEscape"}function W7e(t,e,n){let r=0,i,s;return a;function a(d){return t.enter("codeText"),t.enter("codeTextSequence"),o(d)}function o(d){return d===96?(t.consume(d),r++,o):(t.exit("codeTextSequence"),l(d))}function l(d){return d===null?n(d):d===32?(t.enter("space"),t.consume(d),t.exit("space"),l):d===96?(s=t.enter("codeTextSequence"),i=0,c(d)):pt(d)?(t.enter("lineEnding"),t.consume(d),t.exit("lineEnding"),l):(t.enter("codeTextData"),u(d))}function u(d){return d===null||d===32||d===96||pt(d)?(t.exit("codeTextData"),l(d)):(t.consume(d),u)}function c(d){return d===96?(t.consume(d),i++,c):i===r?(t.exit("codeTextSequence"),t.exit("codeText"),e(d)):(s.type="codeTextData",u(d))}}class Y7e{constructor(e){this.left=e?[...e]:[],this.right=[]}get(e){if(e<0||e>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+e+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return e<this.left.length?this.left[e]:this.right[this.right.length-e+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(e,n){const r=n??Number.POSITIVE_INFINITY;return r<this.left.length?this.left.slice(e,r):e>this.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-e+this.left.length).reverse():this.left.slice(e).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(e,n,r){const i=n||0;this.setCursor(Math.trunc(e));const s=this.right.splice(this.right.length-i,Number.POSITIVE_INFINITY);return r&&py(this.left,r),s.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(e){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(e)}pushMany(e){this.setCursor(Number.POSITIVE_INFINITY),py(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),py(this.right,e.reverse())}setCursor(e){if(!(e===this.left.length||e>this.left.length&&this.right.length===0||e<0&&this.left.length===0))if(e<this.left.length){const n=this.left.splice(e,Number.POSITIVE_INFINITY);py(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-e,Number.POSITIVE_INFINITY);py(this.left,n.reverse())}}}function py(t,e){let n=0;if(e.length<1e4)t.push(...e);else for(;n<e.length;)t.push(...e.slice(n,n+1e4)),n+=1e4}function _fe(t){const e={};let n=-1,r,i,s,a,o,l,u;const c=new Y7e(t);for(;++n<c.length;){for(;n in e;)n=e[n];if(r=c.get(n),n&&r[1].type==="chunkFlow"&&c.get(n-1)[1].type==="listItemPrefix"&&(l=r[1]._tokenizer.events,s=0,s<l.length&&l[s][1].type==="lineEndingBlank"&&(s+=2),s<l.length&&l[s][1].type==="content"))for(;++s<l.length&&l[s][1].type!=="content";)l[s][1].type==="chunkText"&&(l[s][1]._isInFirstContentOfListItem=!0,s++);if(r[0]==="enter")r[1].contentType&&(Object.assign(e,K7e(c,n)),n=e[n],u=!0);else if(r[1]._container){for(s=n,i=void 0;s--;)if(a=c.get(s),a[1].type==="lineEnding"||a[1].type==="lineEndingBlank")a[0]==="enter"&&(i&&(c.get(i)[1].type="lineEndingBlank"),a[1].type="lineEnding",i=s);else if(!(a[1].type==="linePrefix"||a[1].type==="listItemIndent"))break;i&&(r[1].end={...c.get(i)[1].start},o=c.slice(i,n),o.unshift(r),c.splice(i,n-i+1,o))}}return hs(t,0,Number.POSITIVE_INFINITY,c.slice(0)),!u}function K7e(t,e){const n=t.get(e)[1],r=t.get(e)[2];let i=e-1;const s=[];let a=n._tokenizer;a||(a=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(a._contentTypeTextTrailing=!0));const o=a.events,l=[],u={};let c,d,h=-1,m=n,g=0,b=0;const v=[b];for(;m;){for(;t.get(++i)[1]!==m;);s.push(i),m._tokenizer||(c=r.sliceStream(m),m.next||c.push(null),d&&a.defineSki
vendor: 18,641 bytes, line 78
78p(m.start),m._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=!0),a.write(c),m._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=void 0)),d=m,m=m.next}for(m=n;++h<o.length;)o[h][0]==="exit"&&o[h-1][0]==="enter"&&o[h][1].type===o[h-1][1].type&&o[h][1].start.line!==o[h][1].end.line&&(b=h+1,v.push(b),m._tokenizer=void 0,m.previous=void 0,m=m.next);for(a.events=[],m?(m._tokenizer=void 0,m.previous=void 0):v.pop(),h=v.length;h--;){const E=o.slice(v[h],v[h+1]),x=s.pop();l.push([x,x+E.length-1]),t.splice(x,2,E)}for(l.reverse(),h=-1;++h<l.length;)u[g+l[h][0]]=g+l[h][1],g+=l[h][1]-l[h][0]-1;return u}const X7e={resolve:Z7e,tokenize:J7e},Q7e={partial:!0,tokenize:e$e};function Z7e(t){return _fe(t),t}function J7e(t,e){let n;return r;function r(o){return t.enter("content"),n=t.enter("chunkContent",{contentType:"content"}),i(o)}function i(o){return o===null?s(o):pt(o)?t.check(Q7e,a,s)(o):(t.consume(o),i)}function s(o){return t.exit("chunkContent"),t.exit("content"),e(o)}function a(o){return t.consume(o),t.exit("chunkContent"),n.next=t.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,i}}function e$e(t,e,n){const r=this;return i;function i(a){return t.exit("chunkContent"),t.enter("lineEnding"),t.consume(a),t.exit("lineEnding"),gn(t,s,"linePrefix")}function s(a){if(a===null||pt(a))return n(a);const o=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&o&&o[1].type==="linePrefix"&&o[2].sliceSerialize(o[1],!0).length>=4?e(a):t.interrupt(r.parser.constructs.flow,n,e)(a)}}function xfe(t,e,n,r,i,s,a,o,l){const u=l||Number.POSITIVE_INFINITY;let c=0;return d;function d(E){return E===60?(t.enter(r),t.enter(i),t.enter(s),t.consume(E),t.exit(s),h):E===null||E===32||E===41||RS(E)?n(E):(t.enter(r),t.enter(a),t.enter(o),t.enter("chunkString",{contentType:"string"}),b(E))}function h(E){return E===62?(t.enter(s),t.consume(E),t.exit(s),t.exit(i),t.exit(r),e):(t.enter(o),t.enter("chunkString",{contentType:"string"}),m(E))}function m(E){return E===62?(t.exit("chunkString"),t.exit(o),h(E)):E===null||E===60||pt(E)?n(E):(t.consume(E),E===92?g:m)}function g(E){return E===60||E===62||E===92?(t.consume(E),m):m(E)}function b(E){return!c&&(E===null||E===41||An(E))?(t.exit("chunkString"),t.exit(o),t.exit(a),t.exit(r),e(E)):c<u&&E===40?(t.consume(E),c++,b):E===41?(t.consume(E),c--,b):E===null||E===32||E===40||RS(E)?n(E):(t.consume(E),E===92?v:b)}function v(E){return E===40||E===41||E===92?(t.consume(E),b):b(E)}}function wfe(t,e,n,r,i,s){const a=this;let o=0,l;return u;function u(m){return t.enter(r),t.enter(i),t.consume(m),t.exit(i),t.enter(s),c}function c(m){return o>999||m===null||m===91||m===93&&!l||m===94&&!o&&"_hiddenFootnoteSupport"in a.parser.constructs?n(m):m===93?(t.exit(s),t.enter(i),t.consume(m),t.exit(i),t.exit(r),e):pt(m)?(t.enter("lineEnding"),t.consume(m),t.exit("lineEnding"),c):(t.enter("chunkString",{contentType:"string"}),d(m))}function d(m){return m===null||m===91||m===93||pt(m)||o++>999?(t.exit("chunkString"),c(m)):(t.consume(m),l||(l=!en(m)),m===92?h:d)}function h(m){return m===91||m===92||m===93?(t.consume(m),o++,d):d(m)}}function Sfe(t,e,n,r,i,s){let a;return o;function o(h){return h===34||h===39||h===40?(t.enter(r),t.enter(i),t.consume(h),t.exit(i),a=h===40?41:h,l):n(h)}function l(h){return h===a?(t.enter(i),t.consume(h),t.exit(i),t.exit(r),e):(t.enter(s),u(h))}function u(h){return h===a?(t.exit(s),l(a)):h===null?n(h):pt(h)?(t.enter("lineEnding"),t.consume(h),t.exit("lineEnding"),gn(t,u,"linePrefix")):(t.enter("chunkString",{contentType:"string"}),c(h))}function c(h){return h===a||h===null||pt(h)?(t.exit("chunkString"),u(h)):(t.consume(h),h===92?d:c)}function d(h){return h===a||h===92?(t.consume(h),c):c(h)}}function cb(t,e){let n;return r;function r(i){return pt(i)?(t.enter("lineEnding"),t.consume(i),t.exit("lineEnding"),n=!0,r):en(i)?gn(t,r,n?"linePrefix":"lineSuffix")(i):e(i)}}const t$e={name:"definition",tokenize:r$e},n$e={partial:!0,tokenize:i$e};function r$e(t,e,n){const r=this;let i;return s;function s(m){return t.enter("definition"),a(m)}function a(m){return wfe.call(r,t,o,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(m)}function o(m){return i=sl(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),m===58?(t.enter("definitionMarker"),t.consume(m),t.exit("definitionMarker"),l):n(m)}function l(m){return An(m)?cb(t,u)(m):u(m)}function u(m){return xfe(t,c,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(m)}function c(m){return t.attempt(n$e,d,d)(m)}function d(m){return en(m)?gn(t,h,"whitespace")(m):h(m)}function h(m){return m===null||pt(m)?(t.exit("definition"),r.parser.defined.push(i),e(m)):n(m)}}function i$e(t,e,n){return r;function r(o){return An(o)?cb(t,i)(o):n(o)}function i(o){return Sfe(t,s,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(o)}function s(o){return en(o)?gn(t,a,"whitespace")(o):a(o)}function a(o){return o===null||pt(o)?e(o):n(o)}}const s$e={name:"hardBreakEscape",tokenize:a$e};function a$e(t,e,n){return r;function r(s){return t.enter("hardBreakEscape"),t.consume(s),i}function i(s){return pt(s)?(t.exit("hardBreakEscape"),e(s)):n(s)}}const o$e={name:"headingAtx",resolve:l$e,tokenize:u$e};function l$e(t,e){let n=t.length-2,r=3,i,s;return t[r][1].type==="whitespace"&&(r+=2),n-2>r&&t[n][1].type==="whitespace"&&(n-=2),t[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&t[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r&&(i={type:"atxHeadingText",start:t[r][1].start,end:t[n][1].end},s={type:"chunkText",start:t[r][1].start,end:t[n][1].end,contentType:"text"},hs(t,r,n-r+1,[["enter",i,e],["enter",s,e],["exit",s,e],["exit",i,e]])),t}function u$e(t,e,n){let r=0;return i;function i(c){return t.enter("atxHeading"),s(c)}function s(c){return t.enter("atxHeadingSequence"),a(c)}function a(c){return c===35&&r++<6?(t.consume(c),a):c===null||An(c)?(t.exit("atxHeadingSequence"),o(c)):n(c)}function o(c){return c===35?(t.enter("atxHeadingSequence"),l(c)):c===null||pt(c)?(t.exit("atxHeading"),e(c)):en(c)?gn(t,o,"whitespace")(c):(t.enter("atxHeadingText"),u(c))}function l(c){return c===35?(t.consume(c),l):(t.exit("atxHeadingSequence"),o(c))}function u(c){return c===null||c===35||An(c)?(t.exit("atxHeadingText"),o(c)):(t.consume(c),u)}}const c$e=["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"],uY=["pre","script","style","textarea"],d$e={concrete:!0,name:"htmlFlow",resolveTo:p$e,tokenize:m$e},f$e={partial:!0,tokenize:y$e},h$e={partial:!0,tokenize:g$e};function p$e(t){let e=t.length;for(;e--&&!(t[e][0]==="enter"&&t[e][1].type==="htmlFlow"););return e>1&&t[e-2][1].type==="linePrefix"&&(t[e][1].start=t[e-2][1].start,t[e+1][1].start=t[e-2][1].start,t.splice(e-2,2)),t}function m$e(t,e,n){const r=this;let i,s,a,o,l;return u;function u(W){return c(W)}function c(W){return t.enter("htmlFlow"),t.enter("htmlFlowData"),t.consume(W),d}function d(W){return W===33?(t.consume(W),h):W===47?(t.consume(W),s=!0,b):W===63?(t.consume(W),i=3,r.interrupt?e:V):Ns(W)?(t.consume(W),a=String.fromCharCode(W),v):n(W)}function h(W){return W===45?(t.consume(W),i=2,m):W===91?(t.consume(W),i=5,o=0,g):Ns(W)?(t.consume(W),i=4,r.interrupt?e:V):n(W)}function m(W){return W===45?(t.consume(W),r.interrupt?e:V):n(W)}function g(W){const Q="CDATA[";return W===Q.charCodeAt(o++)?(t.consume(W),o===Q.length?r.interrupt?e:B:g):n(W)}function b(W){return Ns(W)?(t.consume(W),a=String.fromCharCode(W),v):n(W)}function v(W){if(W===null||W===47||W===62||An(W)){const Q=W===47,re=a.toLowerCase();return!Q&&!s&&uY.includes(re)?(i=1,r.interrupt?e(W):B(W)):c$e.includes(a.toLowerCase())?(i=6,Q?(t.consume(W),E):r.interrupt?e(W):B(W)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(W):s?x(W):_(W))}return W===45||fs(W)?(t.consume(W),a+=String.fromCharCode(W),v):n(W)}function E(W){return W===62?(t.consume(W),r.interrupt?e:B):n(W)}function x(W){return en(W)?(t.consume(W),x):D(W)}function _(W){return W===47?(t.consume(W),D):W===58||W===95||Ns(W)?(t.consume(W),S):en(W)?(t.consume(W),_):D(W)}function S(W){return W===45||W===46||W===58||W===95||fs(W)?(t.consume(W),S):A(W)}function A(W){return W===61?(t.consume(W),R):en(W)?(t.consume(W),A):_(W)}function R(W){return W===null||W===60||W===61||W===62||W===96?n(W):W===34||W===39?(t.consume(W),l=W,T):en(W)?(t.consume(W),R):O(W)}function T(W){return W===l?(t.consume(W),l=null,I):W===null||pt(W)?n(W):(t.consume(W),T)}function O(W){return W===null||W===34||W===39||W===47||W===60||W===61||W===62||W===96||An(W)?A(W):(t.consume(W),O)}function I(W){return W===47||W===62||en(W)?_(W):n(W)}function D(W){return W===62?(t.consume(W),P):n(W)}function P(W){return W===null||pt(W)?B(W):en(W)?(t.consume(W),P):n(W)}function B(W){return W===45&&i===2?(t.consume(W),F):W===60&&i===1?(t.consume(W),G):W===62&&i===4?(t.consume(W),Y):W===63&&i===3?(t.consume(W),V):W===93&&i===5?(t.consume(W),K):pt(W)&&(i===6||i===7)?(t.exit("htmlFlowData"),t.check(f$e,Z,L)(W)):W===null||pt(W)?(t.exit("htmlFlowData"),L(W)):(t.consume(W),B)}function L(W){return t.check(h$e,$,Z)(W)}function $(W){return t.enter("lineEnding"),t.consume(W),t.exit("lineEnding"),q}function q(W){return W===null||pt(W)?L(W):(t.enter("htmlFlowData"),B(W))}function F(W){return W===45?(t.consume(W),V):B(W)}function G(W){return W===47?(t.consume(W),a="",H):B(W)}function H(W){if(W===62){const Q=a.toLowerCase();return uY.includes(Q)?(t.consume(W),Y):B(W)}return Ns(W)&&a.length<8?(t.consume(W),a+=String.fromCharCode(W),H):B(W)}function K(W){return W===93?(t.consume(W),V):B(W)}function V(W){return W===62?(t.consume(W),Y):W===45&&i===2?(t.consume(W),V):B(W)}function Y(W){return W===null||pt(W)?(t.exit("htmlFlowData"),Z(W)):(t.consume(W),Y)}function Z(W){return t.exit("htmlFlow"),e(W)}}function g$e(t,e,n){const r=this;return i;function i(a){return pt(a)?(t.enter("lineEnding"),t.consume(a),t.exit("lineEnding"),s):n(a)}function s(a){return r.parser.lazy[r.now().line]?n(a):e(a)}}function y$e(t,e,n){return r;function r(i){return t.enter("lineEnding"),t.consume(i),t.exit("lineEnding"),t.attempt(C2,e,n)}}const b$e={name:"htmlText",tokenize:v$e};function v$e(t,e,n){const r=this;let i,s,a;return o;function o(V){return t.enter("htmlText"),t.enter("htmlTextData"),t.consume(V),l}function l(V){return V===33?(t.consume(V),u):V===47?(t.consume(V),A):V===63?(t.consume(V),_):Ns(V)?(t.consume(V),O):n(V)}function u(V){return V===45?(t.consume(V),c):V===91?(t.consume(V),s=0,g):Ns(V)?(t.consume(V),x):n(V)}function c(V){return V===45?(t.consume(V),m):n(V)}function d(V){return V===null?n(V):V===45?(t.consume(V),h):pt(V)?(a=d,G(V)):(t.consume(V),d)}function h(V){return V===45?(t.consume(V),m):d(V)}function m(V){return V===62?F(V):V===45?h(V):d(V)}function g(V){const Y="CDATA[";return V===Y.charCodeAt(s++)?(t.consume(V),s===Y.length?b:g):n(V)}function b(V){return V===null?n(V):V===93?(t.consume(V),v):pt(V)?(a=b,G(V)):(t.consume(V),b)}function v(V){return V===93?(t.consume(V),E):b(V)}function E(V){return V===62?F(V):V===93?(t.consume(V),E):b(V)}function x(V){return V===null||V===62?F(V):pt(V)?(a=x,G(V)):(t.consume(V),x)}function _(V){return V===null?n(V):V===63?(t.consume(V),S):pt(V)?(a=_,G(V)):(t.consume(V),_)}function S(V){return V===62?F(V):_(V)}function A(V){return Ns(V)?(t.consume(V),R):n(V)}function R(V){return V===45||fs(V)?(t.consume(V),R):T(V)}function T(V){return pt(V)?(a=T,G(V)):en(V)?(t.consume(V),T):F(V)}function O(V){return V===45||fs(V)?(t.consume(V),O):V===47||V===62||An(V)?I(V):n(V)}function I(V){return V===47?(t.consume(V),F):V===58||V===95||Ns(V)?(t.consume(V),D):pt(V)?(a=I,G(V)):en(V)?(t.consume(V),I):F(V)}function D(V){return V===45||V===46||V===58||V===95||fs(V)?(t.consume(V),D):P(V)}function P(V){return V===61?(t.consume(V),B):pt(V)?(a=P,G(V)):en(V)?(t.consume(V),P):I(V)}function B(V){return V===null||V===60||V===61||V===62||V===96?n(V):V===34||V===39?(t.consume(V),i=V,L):pt(V)?(a=B,G(V)):en(V)?(t.consume(V),B):(t.consume(V),$)}function L(V){return V===i?(t.consume(V),i=void 0,q):V===null?n(V):pt(V)?(a=L,G(V)):(t.consume(V),L)}function $(V){return V===null||V===34||V===39||V===60||V===61||V===96?n(V):V===47||V===62||An(V)?I(V):(t.consume(V),$)}function q(V){return V===47||V===62||An(V)?I(V):n(V)}function F(V){return V===62?(t.consume(V),t.exit("htmlTextData"),t.exit("htmlText"),e):n(V)}function G(V){return t.exit("htmlTextData"),t.enter("lineEnding"),t.consume(V),t.exit("lineEnding"),H}function H(V){return en(V)?gn(t,K,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(V):K(V)}function K(V){return t.enter("htmlTextData"),a(V)}}const h$={name:"labelEnd",resolveAll:w$e,resolveTo:S$e,tokenize:C$e},E$e={tokenize:T$e},_$e={tokenize:A$e},x$e={tokenize:R$e};function w$e(t){let e=-1;const n=[];for(;++e<t.length;){const r=t[e][1];if(n.push(t[e]),r.type==="labelImage"||r.type==="labelLink"||r.type==="labelEnd"){const i=r.type==="labelImage"?4:2;r.type="data",e+=i}}return t.length!==n.length&&hs(t,0,t.length,n),t}function S$e(t,e){let n=t.length,r=0,i,s,a,o;for(;n--;)if(i=t[n][1],s){if(i.type==="link"||i.type==="labelLink"&&i._inactive)break;t[n][0]==="enter"&&i.type==="labelLink"&&(i._inactive=!0)}else if(a){if(t[n][0]==="enter"&&(i.type==="labelImage"||i.type==="labelLink")&&!i._balanced&&(s=n,i.type!=="labelLink")){r=2;break}}else i.type==="labelEnd"&&(a=n);const l={type:t[s][1].type==="labelLink"?"link":"image",start:{...t[s][1].start},end:{...t[t.length-1][1].end}},u={type:"label",start:{...t[s][1].start},end:{...t[a][1].end}},c={type:"labelText",start:{...t[s+r+2][1].end},end:{...t[a-2][1].start}};return o=[["enter",l,e],["enter",u,e]],o=go(o,t.slice(s+1,s+r+3)),o=go(o,[["enter",c,e]]),o=go(o,S2(e.parser.constructs.insideSpan.null,t.slice(s+r+4,a-3),e)),o=go(o,[["exit",c,e],t[a-2],t[a-1],["exit",u,e]]),o=go(o,t.slice(a+1)),o=go(o,[["exit",l,e]]),hs(t,s,t.length,o),t}function C$e(t,e,n){const r=this;let i=r.events.length,s,a;for(;i--;)if((r.events[i][1].type==="labelImage"||r.events[i][1].type==="labelLink")&&!r.events[i][1]._balanced){s=r.events[i][1];break}return o;function o(h){return s?s._inactive?d(h):(a=r.parser.defined.includes(sl(r.sliceSerialize({start:s.end,end:r.now()}))),t.enter("labelEnd"),t.enter("labelMarker"),t.consume(h),t.exit("labelMarker"),t.exit("labelEnd"),l):n(h)}function l(h){return h===40?t.attempt(E$e,c,a?c:d)(h):h===91?t.attempt(_$e,c,a?u:d)(h):a?c(h):d(h)}function u(h){return t.attempt(x$e,c,d)(h)}function c(h){return e(h)}function d(h){return s._balanced=!0,n(h)}}function T$e(t,e,n){return r;function r(d){return t.enter("resource"),t.enter("resourceMarker"),t.consume(d),t.exit("resourceMarker"),i}function i(d){return An(d)?cb(t,s)(d):s(d)}function s(d){return d===41?c(d):xfe(t,a,o,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(d)}function a(d){return An(d)?cb(t,l)(d):c(d)}function o(d){return n(d)}function l(d){return d===34||d===39||d===40?Sfe(t,u,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(d):c(d)}function u(d){return An(d)?cb(t,c)(d):c(d)}function c(d){return d===41?(t.enter("resourceMarker"),t.consume(d),t.exit("resourceMarker"),t.exit("resource"),e):n(d)}}function A$e(t,e,n){const r=this;return i;function i(o){return wfe.call(r,t,s,a,"reference","referenceMarker","referenceString")(o)}function s(o){return r.parser.defined.includes(sl(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?e(o):n(o)}function a(o){return n(o)}}function R$e(t,e,n){return r;function r(s){return t.enter("reference"),t.enter("referenceMarker"),t.consume(s),t.exit("referenceMarker"),i}function i(s){return s===93?(t.enter("referenceMarker"),t.consume(s),t.exit("referenceMarker"),t.exit("reference"),e):n(s)}}const N$e={name:"labelStartImage",resolveAll:h$.resolveAll,tokenize:O$e};function O$e(t,e,n){const r=this;return i;function i(o){return t.enter("labelImage"),t.enter("labelImageMarker"),t.consume(o),t.exit("labelImageMarker"),s}function s(o){return o===91?(t.enter("labelMarker"),t.consume(o),t.exit("labelMarker"),t.exit("labelImage"),a):n(o)}function a(o){return o===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(o):e(o)}}const k$e={name:"labelStartLink",resolveAll:h$.resolveAll,tokenize:I$e};function I$e(t,e,n){const r=this;return i;function i(a){return t.enter("labelLink"),t.enter("labelMarker"),t.consume(a),t.exit("labelMarker"),t.exit("labelLink"),s}function s(a){return a===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(a):e(a)}}const WN={name:"lineEnding",tokenize:M$e};function M$e(t,e){return n;function n(r){return t.enter("lineEnding"),t.consume(r),t.exit("lineEnding"),gn(t,e,"linePrefix")}}const Nw={name:"thematicBreak",tokenize:D$e};function D$e(t,e,n){let r=0,i;return s;function s(u){return t.enter("thematicBreak"),a(u)}function a(u){return i=u,o(u)}function o(u){return u===i?(t.enter("thematicBreakSequence"),l(u)):r>=3&&(u===null||pt(u))?(t.exit("thematicBreak"),e(u)):n(u)}function l(u){return u===i?(t.consume(u),r++,l):(t.exit("thematicBreakSequence"),en(u)?gn(t,o,"whitespace")(u):o(u))}}const Xs={continuation:{tokenize:F$e},exit:H$e,name:"list",tokenize:$$e},P$e={partial:!0,tokenize:U$e},L$e={partial:!0,tokenize:B$e};function $$e(t,e,n){const r=this,i=r.events[r.events.length-1];let s=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,a=0;return o;function o(m){const g=r.containerState.type||(m===42||m===43||m===45?"listUnordered":"listOrdered");if(g==="listUnordered"?!r.containerState.marker||m===r.containerState.marker:oP(m)){if(r.containerState.type||(r.containerState.type=g,t.enter(g,{_container:!0})),g==="listUnordered")return t.enter("listItemPrefix"),m===42||m===45?t.check(Nw,n,u)(m):u(m);if(!r.interrupt||m===49)return t.enter("listItemPrefix"),t.enter("listItemValue"),l(m)}return n(m)}function l(m){return oP(m)&&++a<10?(t.consume(m),l):(!r.interrupt||a<2)&&(r.containerState.marker?m===r.containerState.marker:m===41||m===46)?(t.exit("listItemValue"),u(m)):n(m)}function u(m){return t.enter("listItemMarker"),t.consume(m),t.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||m,t.check(C2,r.interrupt?n:c,t.attempt(P$e,h,d))}
vendor: 5,418 bytes, line 78
78function c(m){return r.containerState.initialBlankLine=!0,s++,h(m)}function d(m){return en(m)?(t.enter("listItemPrefixWhitespace"),t.consume(m),t.exit("listItemPrefixWhitespace"),h):n(m)}function h(m){return r.containerState.size=s+r.sliceSerialize(t.exit("listItemPrefix"),!0).length,e(m)}}function F$e(t,e,n){const r=this;return r.containerState._closeFlow=void 0,t.check(C2,i,s);function i(o){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,gn(t,e,"listItemIndent",r.containerState.size+1)(o)}function s(o){return r.containerState.furtherBlankLines||!en(o)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,a(o)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,t.attempt(L$e,e,a)(o))}function a(o){return r.containerState._closeFlow=!0,r.interrupt=void 0,gn(t,t.attempt(Xs,e,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o)}}function B$e(t,e,n){const r=this;return gn(t,i,"listItemIndent",r.containerState.size+1);function i(s){const a=r.events[r.events.length-1];return a&&a[1].type==="listItemIndent"&&a[2].sliceSerialize(a[1],!0).length===r.containerState.size?e(s):n(s)}}function H$e(t){t.exit(this.containerState.type)}function U$e(t,e,n){const r=this;return gn(t,i,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function i(s){const a=r.events[r.events.length-1];return!en(s)&&a&&a[1].type==="listItemPrefixWhitespace"?e(s):n(s)}}const cY={name:"setextUnderline",resolveTo:j$e,tokenize:z$e};function j$e(t,e){let n=t.length,r,i,s;for(;n--;)if(t[n][0]==="enter"){if(t[n][1].type==="content"){r=n;break}t[n][1].type==="paragraph"&&(i=n)}else t[n][1].type==="content"&&t.splice(n,1),!s&&t[n][1].type==="definition"&&(s=n);const a={type:"setextHeading",start:{...t[r][1].start},end:{...t[t.length-1][1].end}};return t[i][1].type="setextHeadingText",s?(t.splice(i,0,["enter",a,e]),t.splice(s+1,0,["exit",t[r][1],e]),t[r][1].end={...t[s][1].end}):t[r][1]=a,t.push(["exit",a,e]),t}function z$e(t,e,n){const r=this;let i;return s;function s(u){let c=r.events.length,d;for(;c--;)if(r.events[c][1].type!=="lineEnding"&&r.events[c][1].type!=="linePrefix"&&r.events[c][1].type!=="content"){d=r.events[c][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||d)?(t.enter("setextHeadingLine"),i=u,a(u)):n(u)}function a(u){return t.enter("setextHeadingLineSequence"),o(u)}function o(u){return u===i?(t.consume(u),o):(t.exit("setextHeadingLineSequence"),en(u)?gn(t,l,"lineSuffix")(u):l(u))}function l(u){return u===null||pt(u)?(t.exit("setextHeadingLine"),e(u)):n(u)}}const V$e={tokenize:q$e};function q$e(t){const e=this,n=t.attempt(C2,r,t.attempt(this.parser.constructs.flowInitial,i,gn(t,t.attempt(this.parser.constructs.flow,i,t.attempt(X7e,i)),"linePrefix")));return n;function r(s){if(s===null){t.consume(s);return}return t.enter("lineEndingBlank"),t.consume(s),t.exit("lineEndingBlank"),e.currentConstruct=void 0,n}function i(s){if(s===null){t.consume(s);return}return t.enter("lineEnding"),t.consume(s),t.exit("lineEnding"),e.currentConstruct=void 0,n}}const G$e={resolveAll:Tfe()},W$e=Cfe("string"),Y$e=Cfe("text");function Cfe(t){return{resolveAll:Tfe(t==="text"?K$e:void 0),tokenize:e};function e(n){const r=this,i=this.parser.constructs[t],s=n.attempt(i,a,o);return a;function a(c){return u(c)?s(c):o(c)}function o(c){if(c===null){n.consume(c);return}return n.enter("data"),n.consume(c),l}function l(c){return u(c)?(n.exit("data"),s(c)):(n.consume(c),l)}function u(c){if(c===null)return!0;const d=i[c];let h=-1;if(d)for(;++h<d.length;){const m=d[h];if(!m.previous||m.previous.call(r,r.previous))return!0}return!1}}}function Tfe(t){return e;function e(n,r){let i=-1,s;for(;++i<=n.length;)s===void 0?n[i]&&n[i][1].type==="data"&&(s=i,i++):(!n[i]||n[i][1].type!=="data")&&(i!==s+2&&(n[s][1].end=n[i-1][1].end,n.splice(s+2,i-s-2),i=s+2),s=void 0);return t?t(n,r):n}}function K$e(t,e){let n=0;for(;++n<=t.length;)if((n===t.length||t[n][1].type==="lineEnding")&&t[n-1][1].type==="data"){const r=t[n-1][1],i=e.sliceStream(r);let s=i.length,a=-1,o=0,l;for(;s--;){const u=i[s];if(typeof u=="string"){for(a=u.length;u.charCodeAt(a-1)===32;)o++,a--;if(a)break;a=-1}else if(u===-2)l=!0,o++;else if(u!==-1){s++;break}}if(e._contentTypeTextTrailing&&n===t.length&&(o=0),o){const u={type:n===t.length||l||o<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:s?a:r.start._bufferIndex+a,_index:r.start._index+s,line:r.end.line,column:r.end.column-o,offset:r.end.offset-o},end:{...r.end}};r.end={...u.start},r.start.offset===r.end.offset?Object.assign(r,u):(t.splice(n,0,["enter",u,e],["exit",u,e]),n+=2)}n++}return t}const X$e={42:Xs,43:Xs,45:Xs,48:Xs,49:Xs,50:Xs,51:Xs,52:Xs,53:Xs,54:Xs,55:Xs,56:Xs,57:Xs,62:bfe},Q$e={91:t$e},Z$e={[-2]:GN,[-1]:GN,32:GN},J$e={35:o$e,42:Nw,45:[cY,Nw],60:d$e,61:cY,95:Nw,96:lY,126:lY},eFe={38:Efe,92:vfe},tFe={[-5]:WN,[-4]:WN,[-3]:WN,33:N$e,38:Efe,42:lP,60:[k7e,b$e],91:k$e,92:[s$e,vfe],93:h$,95:lP,96:V7e},nFe={null:[lP,G$e]},rFe={null:[42,95]},iFe={null:[]},sFe=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:rFe,contentInitial:Q$e,disable:iFe,document:X$e,flow:J$e,flowInitial:Z$e,insideSpan:nFe,string:eFe,text:tFe},Symbol.toStringTag,{value:"Module"}));function aFe(t,e,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,c
vendor: 14,793 bytes, lines 78-80
78olumn:n&&n.column||1,offset:n&&n.offset||0};const i={},s=[];let a=[],o=[];const l={attempt:T(A),check:T(R),consume:x,enter:_,exit:S,interrupt:T(R,{interrupt:!0})},u={code:null,containerState:{},defineSkip:b,events:[],now:g,parser:t,previous:null,sliceSerialize:h,sliceStream:m,write:d};let c=e.tokenize.call(u,l);return e.resolveAll&&s.push(e),u;function d(P){return a=go(a,P),v(),a[a.length-1]!==null?[]:(O(e,0),u.events=S2(s,u.events,u),u.events)}function h(P,B){return lFe(m(P),B)}function m(P){return oFe(a,P)}function g(){const{_bufferIndex:P,_index:B,line:L,column:$,offset:q}=r;return{_bufferIndex:P,_index:B,line:L,column:$,offset:q}}function b(P){i[P.line]=P.column,D()}function v(){let P;for(;r._index<a.length;){const B=a[r._index];if(typeof B=="string")for(P=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===P&&r._bufferIndex<B.length;)E(B.charCodeAt(r._bufferIndex));else E(B)}}function E(P){c=c(P)}function x(P){pt(P)?(r.line++,r.column=1,r.offset+=P===-3?2:1,D()):P!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===a[r._index].length&&(r._bufferIndex=-1,r._index++)),u.previous=P}function _(P,B){const L=B||{};return L.type=P,L.start=g(),u.events.push(["enter",L,u]),o.push(L),L}function S(P){const B=o.pop();return B.end=g(),u.events.push(["exit",B,u]),B}function A(P,B){O(P,B.from)}function R(P,B){B.restore()}function T(P,B){return L;function L($,q,F){let G,H,K,V;return Array.isArray($)?Z($):"tokenize"in $?Z([$]):Y($);function Y(se){return J;function J(ae){const ge=ae!==null&&se[ae],ve=ae!==null&&se.null,Re=[...Array.isArray(ge)?ge:ge?[ge]:[],...Array.isArray(ve)?ve:ve?[ve]:[]];return Z(Re)(ae)}}function Z(se){return G=se,H=0,se.length===0?F:W(se[H])}function W(se){return J;function J(ae){return V=I(),K=se,se.partial||(u.currentConstruct=se),se.name&&u.parser.constructs.disable.null.includes(se.name)?re():se.tokenize.call(B?Object.assign(Object.create(u),B):u,l,Q,re)(ae)}}function Q(se){return P(K,V),q}function re(se){return V.restore(),++H<G.length?W(G[H]):F}}}function O(P,B){P.resolveAll&&!s.includes(P)&&s.push(P),P.resolve&&hs(u.events,B,u.events.length-B,P.resolve(u.events.slice(B),u)),P.resolveTo&&(u.events=P.resolveTo(u.events,u))}function I(){const P=g(),B=u.previous,L=u.currentConstruct,$=u.events.length,q=Array.from(o);return{from:$,restore:F};function F(){r=P,u.previous=B,u.currentConstruct=L,u.events.length=$,o=q,D()}}function D(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function oFe(t,e){const n=e.start._index,r=e.start._bufferIndex,i=e.end._index,s=e.end._bufferIndex;let a;if(n===i)a=[t[n].slice(r,s)];else{if(a=t.slice(n,i),r>-1){const o=a[0];typeof o=="string"?a[0]=o.slice(r):a.shift()}s>0&&a.push(t[i].slice(0,s))}return a}function lFe(t,e){let n=-1;const r=[];let i;for(;++n<t.length;){const s=t[n];let a;if(typeof s=="string")a=s;else switch(s){case-5:{a="\r";break}case-4:{a=` 79`;break}case-3:{a=`\r 80`;break}case-2:{a=e?" ":" ";break}case-1:{if(!e&&i)continue;a=" ";break}default:a=String.fromCharCode(s)}i=s===-2,r.push(a)}return r.join("")}function uFe(t){const r={constructs:gfe([sFe,...(t||{}).extensions||[]]),content:i(S7e),defined:[],document:i(T7e),flow:i(V$e),lazy:{},string:i(W$e),text:i(Y$e)};return r;function i(s){return a;function a(o){return aFe(r,s,o)}}}function cFe(t){for(;!_fe(t););return t}const dY=/[\0\t\n\r]/g;function dFe(){let t=1,e="",n=!0,r;return i;function i(s,a,o){const l=[];let u,c,d,h,m;for(s=e+(typeof s=="string"?s.toString():new TextDecoder(a||void 0).decode(s)),d=0,e="",n&&(s.charCodeAt(0)===65279&&d++,n=void 0);d<s.length;){if(dY.lastIndex=d,u=dY.exec(s),h=u&&u.index!==void 0?u.index:s.length,m=s.charCodeAt(h),!u){e=s.slice(d);break}if(m===10&&d===h&&r)l.push(-3),r=void 0;else switch(r&&(l.push(-5),r=void 0),d<h&&(l.push(s.slice(d,h)),t+=h-d),m){case 0:{l.push(65533),t++;break}case 9:{for(c=Math.ceil(t/4)*4,l.push(-2);t++<c;)l.push(-1);break}case 10:{l.push(-4),t=1;break}default:r=!0,t=1}d=h+1}return o&&(r&&l.push(-5),e&&l.push(e),l.push(null)),l}}const fFe=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Afe(t){return t.replace(fFe,hFe)}function hFe(t,e,n){if(e)return e;if(n.charCodeAt(0)===35){const i=n.charCodeAt(1),s=i===120||i===88;return yfe(n.slice(s?2:1),s?16:10)}return Zb(n)||t}const Rfe={}.hasOwnProperty;function Nfe(t,e,n){return typeof e!="string"&&(n=e,e=void 0),pFe(n)(cFe(uFe(n).document().write(dFe()(t,e,!0))))}function pFe(t){const e={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:s(Ot),autolinkProtocol:I,autolinkEmail:I,atxHeading:s(Le),blockQuote:s(ve),characterEscape:I,characterReference:I,codeFenced:s(Re),codeFencedFenceInfo:a,codeFencedFenceMeta:a,codeIndented:s(Re,a),codeText:s(xe,a),codeTextData:I,data:I,codeFlowValue:I,definition:s(Ne),definitionDestinationString:a,definitionLabelString:a,definitionTitleString:a,emphasis:s(Fe),hardBreakEscape:s(ze),hardBreakTrailing:s(ze),htmlFlow:s(qe,a),htmlFlowData:I,htmlText:s(qe,a),htmlTextData:I,image:s(_t),label:a,link:s(Ot),listItem:s(ue),listItemValue:h,listOrdered:s(Lt,d),listUnordered:s(Lt),paragraph:s(te),reference:W,referenceString:a,resourceDestinationString:a,resourceTitleString:a,setextHeading:s(Le),strong:s(de),thematicBreak:s(ce)},exit:{atxHeading:l(),atxHeadingSequence:A,autolink:l(),autolinkEmail:ge,autolinkProtocol:ae,blockQuote:l(),characterEscapeValue:D,characterReferenceMarkerHexadecimal:re,characterReferenceMarkerNumeric:re,characterReferenceValue:se,characterReference:J,codeFenced:l(v),codeFencedFence:b,codeFencedFenceInfo:m,codeFencedFenceMeta:g,codeFlowValue:D,codeIndented:l(E),codeText:l(q),codeTextData:D,data:D,definition:l(),definitionDestinationString:S,definitionLabelString:x,definitionTitleString:_,emphasis:l(),hardBreakEscape:l(B),hardBreakTrailing:l(B),htmlFlow:l(L),htmlFlowData:D,htmlText:l($),htmlTextData:D,image:l(G),label:K,labelText:H,lineEnding:P,link:l(F),listItem:l(),listOrdered:l(),listUnordered:l(),paragraph:l(),referenceString:Q,resourceDestinationString:V,resourceTitleString:Y,resource:Z,setextHeading:l(O),setextHeadingLineSequence:T,setextHeadingText:R,strong:l(),thematicBreak:l()}};Ofe(e,(t||{}).mdastExtensions||[]);const n={};return r;function r(ne){let fe={type:"root",children:[]};const X={stack:[fe],tokenStack:[],config:e,enter:o,exit:u,buffer:a,resume:c,data:n},Oe=[];let Ye=-1;for(;++Ye<ne.length;)if(ne[Ye][1].type==="listOrdered"||ne[Ye][1].type==="listUnordered")if(ne[Ye][0]==="enter")Oe.push(Ye);else{const rt=Oe.pop();Ye=i(ne,rt,Ye)}for(Ye=-1;++Ye<ne.length;){const rt=e[ne[Ye][0]];Rfe.call(rt,ne[Ye][1].type)&&rt[ne[Ye][1].type].call(Object.assign({sliceSerialize:ne[Ye][2].sliceSerialize},X),ne[Ye][1])}if(X.tokenStack.length>0){const rt=X.tokenStack[X.tokenStack.length-1];(rt[1]||fY).call(X,void 0,rt[0])}for(fe.position={start:Sd(ne.length>0?ne[0][1].start:{line:1,column:1,offset:0}),end:Sd(ne.length>0?ne[ne.length-2][1].end:{line:1,column:1,offset:0})},Ye=-1;++Ye<e.transforms.length;)fe=e.transforms[Ye](fe)||fe;return fe}function i(ne,fe,X){let Oe=fe-1,Ye=-1,rt=!1,Ut,Kt,It,Tn;for(;++Oe<=X;){const qt=ne[Oe];switch(qt[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{qt[0]==="enter"?Ye++:Ye--,Tn=void 0;break}case"lineEndingBlank":{qt[0]==="enter"&&(Ut&&!Tn&&!Ye&&!It&&(It=Oe),Tn=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Tn=void 0}if(!Ye&&qt[0]==="enter"&&qt[1].type==="listItemPrefix"||Ye===-1&&qt[0]==="exit"&&(qt[1].type==="listUnordered"||qt[1].type==="listOrdered")){if(Ut){let or=Oe;for(Kt=void 0;or--;){const tr=ne[or];if(tr[1].type==="lineEnding"||tr[1].type==="lineEndingBlank"){if(tr[0]==="exit")continue;Kt&&(ne[Kt][1].type="lineEndingBlank",rt=!0),tr[1].type="lineEnding",Kt=or}else if(!(tr[1].type==="linePrefix"||tr[1].type==="blockQuotePrefix"||tr[1].type==="blockQuotePrefixWhitespace"||tr[1].type==="blockQuoteMarker"||tr[1].type==="listItemIndent"))break}It&&(!Kt||It<Kt)&&(Ut._spread=!0),Ut.end=Object.assign({},Kt?ne[Kt][1].start:qt[1].end),ne.splice(Kt||Oe,0,["exit",Ut,qt[2]]),Oe++,X++}if(qt[1].type==="listItemPrefix"){const or={type:"listItem",_spread:!1,start:Object.assign({},qt[1].start),end:void 0};Ut=or,ne.splice(Oe,0,["enter",or,qt[2]]),Oe++,X++,It=void 0,Tn=!0}}}return ne[fe][1]._spread=rt,X}function s(ne,fe){return X;function X(Oe){o.call(this,ne(Oe),Oe),fe&&fe.call(this,Oe)}}function a(){this.stack.push({type:"fragment",children:[]})}function o(ne,fe,X){this.stack[this.stack.length-1].children.push(ne),this.stack.push(ne),this.tokenStack.push([fe,X||void 0]),ne.position={start:Sd(fe.start),end:void 0}}function l(ne){return fe;function fe(X){ne&&ne.call(this,X),u.call(this,X)}}function u(ne,fe){const X=this.stack.pop(),Oe=this.tokenStack.pop();if(Oe)Oe[0].type!==ne.type&&(fe?fe.call(this,ne,Oe[0]):(Oe[1]||fY).call(this,ne,Oe[0]));else throw new Error("Cannot close `"+ne.type+"` ("+vc({start:ne.start,end:ne.end})+"): itâs not open");X.position.end=Sd(ne.end)}function c(){return f$(this.stack.pop())}function d(){this.data.expectingFirstListItemValue=!0}function h(ne){if(this.data.expectingFirstListItemValue){const fe=this.stack[this.stack.length-2];fe.start=Number.parseInt(this.sliceSerialize(ne),10),this.data.expectingFirstListItemValue=void 0}}function m(){const ne=this.resume(),fe=this.stack[this.stack.length-1];fe.lang=ne}function g(){const ne=this.resume(),fe=this.stack[this.stack.length-1];fe.meta=ne}function b(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function v(){const ne=this.resume(),fe=this.stack[this.stack.length-1];fe.value=ne.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function E(){const ne=this.resume(),fe=this.stack[this.stack.length-1];fe.value=ne.replace(/(\r?\n|\r)$/g,"")}function x(ne){const fe=this.resume(),X=this.stack[this.stack.length-1];X.label=fe,X.identifier=sl(this.sliceSerialize(ne)).toLowerCase()}function _(){const ne=this.resume(),fe=this.stack[this.stack.length-1];fe.title=ne}function S(){const ne=this.resume(),fe=this.stack[this.stack.length-1];fe.url=ne}function A(ne){const fe=this.stack[this.stack.length-1];if(!fe.depth){const X=this.sliceSerialize(ne).length;fe.depth=X}}function R(){this.data.setextHeadingSlurpLineEnding=!0}function T(ne){const fe=this.stack[this.stack.length-1];fe.depth=this.sliceSerialize(ne).codePointAt(0)===61?1:2}function O(){this.data.setextHeadingSlurpLineEnding=void 0}function I(ne){const X=this.stack[this.stack.length-1].children;let Oe=X[X.length-1];(!Oe||Oe.type!=="text")&&(Oe=be(),Oe.position={start:Sd(ne.start),end:void 0},X.push(Oe)),this.stack.push(Oe)}function D(ne){const fe=this.stack.pop();fe.value+=this.sliceSerialize(ne),fe.position.end=Sd(ne.end)}function P(ne){const fe=this.stack[this.stack.length-1];if(this.data.atHardBreak){const X=fe.children[fe.children.length-1];X.position.end=Sd(ne.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&e.canContainEols.includes(fe.type)&&(I.call(this,ne),D.call(this,ne))}function B(){this.data.atHardBreak=!0}function L(){const ne=this.resume(),fe=this.stack[this.stack.length-1];fe.value=ne}function $(){const ne=this.resume(),fe=this.stack[this.stack.length-1];fe.value=ne}function q(){const ne=this.resume(),fe=this.stack[this.stack.length-1];fe.value=ne}function F(){const ne=this.stack[this.stack.length-1];if(this.data.inReference){const fe=this.data.referenceType||"shortcut";ne.type+="Reference",ne.referenceType=fe,delete ne.url,delete ne.title}else delete ne.identifier,delete ne.label;this.data.referenceType=void 0}function G(){const ne=this.stack[this.stack.length-1];if(this.data.inReference){const fe=this.data.referenceType||"shortcut";ne.type+="Reference",ne.referenceType=fe,delete ne.url,delete ne.title}else delete ne.identifier,delete ne.label;this.data.referenceType=void 0}function H(ne){const fe=this.sliceSerialize(ne),X=this.stack[this.stack.length-2];X.label=Afe(fe),X.identifier=sl(fe).toLowerCase()}function K(){const ne=this.stack[this.stack.length-1],fe=this.resume(),X=this.stack[this.stack.length-1];if(this.data.inReference=!0,X.type==="link"){const Oe=ne.children;X.children=Oe}else X.alt=fe}function V(){const ne=this.resume(),fe=this.stack[this.stack.length-1];fe.url=ne}function Y(){const ne=this.resume(),fe=this.stack[this.stack.length-1];fe.title=ne}function Z(){this.data.inReference=void 0}function W(){this.data.referenceType="collapsed"}function Q(ne){const fe=this.resume(),X=this.stack[this.stack.length-1];X.label=fe,X.identifier=sl(this.sliceSerialize(ne)).toLowerCase(),this.data.referenceType="full"}function re(ne){this.data.characterReferenceType=ne.type}function se(ne){const fe=this.sliceSerialize(ne),X=this.data.characterReferenceType;let Oe;X?(Oe=yfe(fe,X==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):Oe=Zb(fe);const Ye=this.stack[this.stack.length-1];Ye.value+=Oe}function J(ne){const fe=this.stack.pop();fe.position.end=Sd(ne.end)}function ae(ne){D.call(this,ne);const fe=this.stack[this.stack.length-1];fe.url=this.sliceSerialize(ne)}function ge(ne){D.call(this,ne);const fe=this.stack[this.stack.length-1];fe.url="mailto:"+this.sliceSerialize(ne)}function ve(){return{type:"blockquote",children:[]}}function Re(){return{type:"code",lang:null,meta:null,value:""}}function xe(){return{type:"inlineCode",value:""}}function Ne(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Fe(){return{type:"emphasis",children:[]}}function Le(){return{type:"heading",depth:0,children:[]}}function ze(){return{type:"break"}}function qe(){return{type:"html",value:""}}function _t(){return{type:"image",title:null,url:"",alt:null}}function Ot(){return{type:"link",title:null,url:"",children:[]}}function Lt(ne){return{type:"list",ordered:ne.type==="listOrdered",start:null,spread:ne._spread,children:[]}}function ue(ne){return{type:"listItem",spread:ne._spread,checked:null,children:[]}}function te(){return{type:"paragraph",children:[]}}function de(){return{type:"strong",children:[]}}function be(){return{type:"text",value:""}}function ce(){return{type:"thematicBreak"}}}function Sd(t){return{line:t.line,column:t.column,offset:t.offset}}function Ofe(t,e){let n=-1;for(;++n<e.length;){const r=e[n];Array.isArray(r)?Ofe(t,r):mFe(t,r)}}function mFe(t,e){let n;for(n in e)if(Rfe.call(e,n))switch(n){case"canContainEols":{const r=e[n];r&&t[n].push(...r);break}case"transforms":{const r=e[n];r&&t[n].push(...r);break}case"enter":case"exit":{const r=e[n];r&&Object.assign(t[n],r);break}}}function fY(t,e){throw t?new Error("Cannot close `"+t.type+"` ("+vc({start:t.start,end:t.end})+"): a different token (`"+e.type+"`, "+vc({start:e.start,end:e.end}
vendor: 11,337 bytes, lines 80-84
80)+") is open"):new Error("Cannot close document, a token (`"+e.type+"`, "+vc({start:e.start,end:e.end})+") is still open")}function gFe(t){const e=this;e.parser=n;function n(r){return Nfe(r,{...e.data("settings"),...t,extensions:e.data("micromarkExtensions")||[],mdastExtensions:e.data("fromMarkdownExtensions")||[]})}}function yFe(t,e){const n={type:"element",tagName:"blockquote",properties:{},children:t.wrap(t.all(e),!0)};return t.patch(e,n),t.applyData(e,n)}function bFe(t,e){const n={type:"element",tagName:"br",properties:{},children:[]};return t.patch(e,n),[t.applyData(e,n),{type:"text",value:` 81`}]}function vFe(t,e){const n=e.value?e.value+` 82`:"",r={},i=e.lang?e.lang.split(/\s+/):[];i.length>0&&(r.className=["language-"+i[0]]);let s={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return e.meta&&(s.data={meta:e.meta}),t.patch(e,s),s=t.applyData(e,s),s={type:"element",tagName:"pre",properties:{},children:[s]},t.patch(e,s),s}function EFe(t,e){const n={type:"element",tagName:"del",properties:{},children:t.all(e)};return t.patch(e,n),t.applyData(e,n)}function _Fe(t,e){const n={type:"element",tagName:"em",properties:{},children:t.all(e)};return t.patch(e,n),t.applyData(e,n)}function xFe(t,e){const n=typeof t.options.clobberPrefix=="string"?t.options.clobberPrefix:"user-content-",r=String(e.identifier).toUpperCase(),i=$0(r.toLowerCase()),s=t.footnoteOrder.indexOf(r);let a,o=t.footnoteCounts.get(r);o===void 0?(o=0,t.footnoteOrder.push(r),a=t.footnoteOrder.length):a=s+1,o+=1,t.footnoteCounts.set(r,o);const l={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+i,id:n+"fnref-"+i+(o>1?"-"+o:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(a)}]};t.patch(e,l);const u={type:"element",tagName:"sup",properties:{},children:[l]};return t.patch(e,u),t.applyData(e,u)}function wFe(t,e){const n={type:"element",tagName:"h"+e.depth,properties:{},children:t.all(e)};return t.patch(e,n),t.applyData(e,n)}function SFe(t,e){if(t.options.allowDangerousHtml){const n={type:"raw",value:e.value};return t.patch(e,n),t.applyData(e,n)}}function kfe(t,e){const n=e.referenceType;let r="]";if(n==="collapsed"?r+="[]":n==="full"&&(r+="["+(e.label||e.identifier)+"]"),e.type==="imageReference")return[{type:"text",value:"!["+e.alt+r}];const i=t.all(e),s=i[0];s&&s.type==="text"?s.value="["+s.value:i.unshift({type:"text",value:"["});const a=i[i.length-1];return a&&a.type==="text"?a.value+=r:i.push({type:"text",value:r}),i}function CFe(t,e){const n=String(e.identifier).toUpperCase(),r=t.definitionById.get(n);if(!r)return kfe(t,e);const i={src:$0(r.url||""),alt:e.alt};r.title!==null&&r.title!==void 0&&(i.title=r.title);const s={type:"element",tagName:"img",properties:i,children:[]};return t.patch(e,s),t.applyData(e,s)}function TFe(t,e){const n={src:$0(e.url)};e.alt!==null&&e.alt!==void 0&&(n.alt=e.alt),e.title!==null&&e.title!==void 0&&(n.title=e.title);const r={type:"element",tagName:"img",properties:n,children:[]};return t.patch(e,r),t.applyData(e,r)}function AFe(t,e){const n={type:"text",value:e.value.replace(/\r?\n|\r/g," ")};t.patch(e,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return t.patch(e,r),t.applyData(e,r)}function RFe(t,e){const n=String(e.identifier).toUpperCase(),r=t.definitionById.get(n);if(!r)return kfe(t,e);const i={href:$0(r.url||"")};r.title!==null&&r.title!==void 0&&(i.title=r.title);const s={type:"element",tagName:"a",properties:i,children:t.all(e)};return t.patch(e,s),t.applyData(e,s)}function NFe(t,e){const n={href:$0(e.url)};e.title!==null&&e.title!==void 0&&(n.title=e.title);const r={type:"element",tagName:"a",properties:n,children:t.all(e)};return t.patch(e,r),t.applyData(e,r)}function OFe(t,e,n){const r=t.all(e),i=n?kFe(n):Ife(e),s={},a=[];if(typeof e.checked=="boolean"){const c=r[0];let d;c&&c.type==="element"&&c.tagName==="p"?d=c:(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:e.checked,disabled:!0},children:[]}),s.className=["task-list-item"]}let o=-1;for(;++o<r.length;){const c=r[o];(i||o!==0||c.type!=="element"||c.tagName!=="p")&&a.push({type:"text",value:` 83`}),c.type==="element"&&c.tagName==="p"&&!i?a.push(...c.children):a.push(c)}const l=r[r.length-1];l&&(i||l.type!=="element"||l.tagName!=="p")&&a.push({type:"text",value:` 84`});const u={type:"element",tagName:"li",properties:s,children:a};return t.patch(e,u),t.applyData(e,u)}function kFe(t){let e=!1;if(t.type==="list"){e=t.spread||!1;const n=t.children;let r=-1;for(;!e&&++r<n.length;)e=Ife(n[r])}return e}function Ife(t){const e=t.spread;return e??t.children.length>1}function IFe(t,e){const n={},r=t.all(e);let i=-1;for(typeof e.start=="number"&&e.start!==1&&(n.start=e.start);++i<r.length;){const a=r[i];if(a.type==="element"&&a.tagName==="li"&&a.properties&&Array.isArray(a.properties.className)&&a.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const s={type:"element",tagName:e.ordered?"ol":"ul",properties:n,children:t.wrap(r,!0)};return t.patch(e,s),t.applyData(e,s)}function MFe(t,e){const n={type:"element",tagName:"p",properties:{},children:t.all(e)};return t.patch(e,n),t.applyData(e,n)}function DFe(t,e){const n={type:"root",children:t.wrap(t.all(e))};return t.patch(e,n),t.applyData(e,n)}function PFe(t,e){const n={type:"element",tagName:"strong",properties:{},children:t.all(e)};return t.patch(e,n),t.applyData(e,n)}function LFe(t,e){const n=t.all(e),r=n.shift(),i=[];if(r){const a={type:"element",tagName:"thead",properties:{},children:t.wrap([r],!0)};t.patch(e.children[0],a),i.push(a)}if(n.length>0){const a={type:"element",tagName:"tbody",properties:{},children:t.wrap(n,!0)},o=Eu(e.children[1]),l=kT(e.children[e.children.length-1]);o&&l&&(a.position={start:o,end:l}),i.push(a)}const s={type:"element",tagName:"table",properties:{},children:t.wrap(i,!0)};return t.patch(e,s),t.applyData(e,s)}function $Fe(t,e,n){const r=n?n.children:void 0,s=(r?r.indexOf(e):1)===0?"th":"td",a=n&&n.type==="table"?n.align:void 0,o=a?a.length:e.children.length;let l=-1;const u=[];for(;++l<o;){const d=e.children[l],h={},m=a?a[l]:void 0;m&&(h.align=m);let g={type:"element",tagName:s,properties:h,children:[]};d&&(g.children=t.all(d),t.patch(d,g),g=t.applyData(d,g)),u.push(g)}const c={type:"element",tagName:"tr",properties:{},children:t.wrap(u,!0)};return t.patch(e,c),t.applyData(e,c)}function FFe(t,e){const n={type:"element",tagName:"td",properties:{},children:t.all(e)};return t.patch(e,n),t.applyData(e,n)}const hY=9,pY=32;function BFe(t){const e=String(t),n=/\r?\n|\r/g;let r=n.exec(e),i=0;const s=[];for(;r;)s.push(mY(e.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=n.exec(e);return s.push(mY(e.slice(i),i>0,!1)),s.join("")}function mY(t,e,n){let r=0,i=t.length;if(e){let s=t.codePointAt(r);for(;s===hY||s===pY;)r++,s=t.codePointAt(r)}if(n){let s=t.codePointAt(i-1);for(;s===hY||s===pY;)i--,s=t.codePointAt(i-1)}return i>r?t.slice(r,i):""}function HFe(t,e){const n={type:"text",value:BFe(String(e.value))};return t.patch(e,n),t.applyData(e,n)}function UFe(t,e){const n={type:"element",tagName:"hr",properties:{},children:[]};return t.patch(e,n),t.applyData(e,n)}const jFe={blockquote:yFe,break:bFe,code:vFe,delete:EFe,emphasis:_Fe,footnoteReference:xFe,heading:wFe,html:SFe,imageReference:CFe,image:TFe,inlineCode:AFe,linkReference:RFe,link:NFe,listItem:OFe,list:IFe,paragraph:MFe,root:DFe,strong:PFe,table:LFe,tableCell:FFe,tableRow:$Fe,text:HFe,thematicBreak:UFe,toml:dx,yaml:dx,definition:dx,footnoteDefinition:dx};function dx(){}const Mfe=-1,MT=0,db=1,NS=2,p$=3,m$=4,g$=5,y$=6,Dfe=7,Pfe=8,gY=typeof self=="object"?self:globalThis,zFe=(t,e)=>{const n=(i,s)=>(t.set(s,i),i),r=i=>{if(t.has(i))return t.get(i);const[s,a]=e[i];switch(s){case MT:case Mfe:return n(a,i);case db:{const o=n([],i);for(const l of a)o.push(r(l));return o}case NS:{const o=n({},i);for(const[l,u]of a)o[r(l)]=r(u);return o}case p$:return n(new Date(a),i);case m$:{const{source:o,flags:l}=a;return n(new RegExp(o,l),i)}case g$:{const o=n(new Map,i);for(const[l,u]of a)o.set(r(l),r(u));return o}case y$:{const o=n(new Set,i);for(const l of a)o.add(r(l));return o}case Dfe:{const{name:o,message:l}=a;return n(new gY[o](l),i)}case Pfe:return n(BigInt(a),i);case"BigInt":return n(Object(BigInt(a)),i);case"ArrayBuffer":return n(new Uint8Array(a).buffer,a);case"DataView":{const{buffer:o}=new Uint8Array(a);return n(new DataView(o),a)}}return n(new gY[s](a),i)};return r},yY=t=>zFe(new Map,t)(0),$m="",{toString:VFe}={},{keys:qFe}=Object,my=t=>{const e=typeof t;if(e!=="object"||!t)return[MT,e];const n=VFe.call(t).slice(8,-1);switch(n){case"Array":return[db,$m];case"Object":return[NS,$m];case"Date":return[p$,$m];case"RegExp":return[m$,$m];case"Map":return[g$,$m];case"Set":return[y$,$m];case"DataView":return[db,n]}return n.includes("Array")?[db,n]:n.includes("Error")?[Dfe,n]:[NS,n]},fx=([t,e])=>t===MT&&(e==="function"||e==="symbol"),GFe=(t,e,n,r)=>{const i=(a,o)=>{const l=r.push(a)-1;return n.set(o,l),l},s=a=>{if(n.has(a))return n.get(a);let[o,l]=my(a);switch(o){case MT:{let c=a;switch(l){case"bigint":o=Pfe,c=a.toString();break;case"function":case"symbol":if(t)throw new TypeError("unable to serialize "+l);c=null;break;case"undefined":return i([Mfe],a)}return i([o,c],a)}case db:{if(l){let h=a;return l==="DataView"?h=new Uint8Array(a.buffer):l==="ArrayBuffer"&&(h=new Uint8Array(a)),i([l,[...h]],a)}const c=[],d=i([o,c],a);for(const h of a)c.push(s(h));return d}case NS:{if(l)switch(l){case"BigInt":return i([l,a.toString()],a);case"Boolean":case"Number":case"String":return i([l,a.valueOf()],a)}if(e&&"toJSON"in a)return s(a.toJSON());const c=[],d=i([o,c],a);for(const h of qFe(a))(t||!fx(my(a[h])))&&c.push([s(h),s(a[h])]);return d}case p$:return i([o,a.toISOString()],a);case m$:{const{source:c,flags:d}=a;return i([o,{source:c,flags:d}],a)}case g$:{const c=[],d=i([o,c],a);for(const[h,m]of a)(t||!(fx(my(h))||fx(my(m))))&&c.push([s(h),s(m)]);return d}case y$:{const c=[],d=i([o,c],a);for(const h of a)(t||!fx(my(h)))&&c.push(s(h));return d}}const{message:u}=a;return i([o,{name:l,message:u}],a)};return s},bY=(t,{json:e,lossy:n}={})=>{const r=[];return GFe(!(e||n),!!e,new Map,r)(t),r},iu=typeof structuredClone=="function"?(t,e)=>e&&("json"in e||"lossy"in e)?yY(bY(t,e)):structuredClone(t):(t,e)=>yY(bY(t,e));function WFe(t,e){const n=[{type:"text",value:"â©"}];return e>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(e)}]}),n}function YFe(t,e){return"Back to reference "+(t+1)+(e>1?"-"+e:"")}function KFe(t){const e=typeof t.options.clobberPrefix=="string"?t.options.clobberPrefix:"user-content-",n=t.options.footnoteBackContent||WFe,r=t.options.footnoteBackLabel||YFe,i=t.options.footnoteLabel||"Footnotes",s=t.options.footnoteLabelTagName||"h2",a=t.options.footnoteLabelProperties||{className:["sr-only"]},o=[];let l=-1;for(;++l<t.footnoteOrder.length;){const u=t.footnoteById.get(t.footnoteOrder[l]);if(!u)continue;const c=t.all(u),d=String(u.identifier).toUpperCase(),h=$0(d.toLowerCase());let m=0;const g=[],b=t.footnoteCounts.get(d);for(;b!==void 0&&++m<=b;){g.length>0&&g.push({type:"text",value:" "});let x=typeof n=="string"?n:n(l,m);
vendor: 5,203 bytes, lines 84-90
84typeof x=="string"&&(x={type:"text",value:x}),g.push({type:"element",tagName:"a",properties:{href:"#"+e+"fnref-"+h+(m>1?"-"+m:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(l,m),className:["data-footnote-backref"]},children:Array.isArray(x)?x:[x]})}const v=c[c.length-1];if(v&&v.type==="element"&&v.tagName==="p"){const x=v.children[v.children.length-1];x&&x.type==="text"?x.value+=" ":v.children.push({type:"text",value:" "}),v.children.push(...g)}else c.push(...g);const E={type:"element",tagName:"li",properties:{id:e+"fn-"+h},children:t.wrap(c,!0)};t.patch(u,E),o.push(E)}if(o.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:s,properties:{...iu(a),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:` 85`},{type:"element",tagName:"ol",properties:{},children:t.wrap(o,!0)},{type:"text",value:` 86`}]}}const DT=(function(t){if(t==null)return JFe;if(typeof t=="function")return PT(t);if(typeof t=="object")return Array.isArray(t)?XFe(t):QFe(t);if(typeof t=="string")return ZFe(t);throw new Error("Expected function, string, or object as test")});function XFe(t){const e=[];let n=-1;for(;++n<t.length;)e[n]=DT(t[n]);return PT(r);function r(...i){let s=-1;for(;++s<e.length;)if(e[s].apply(this,i))return!0;return!1}}function QFe(t){const e=t;return PT(n);function n(r){const i=r;let s;for(s in t)if(i[s]!==e[s])return!1;return!0}}function ZFe(t){return PT(e);function e(n){return n&&n.type===t}}function PT(t){return e;function e(n,r,i){return!!(eBe(n)&&t.call(this,n,typeof r=="number"?r:void 0,i||void 0))}}function JFe(){return!0}function eBe(t){return t!==null&&typeof t=="object"&&"type"in t}const Lfe=[],tBe=!0,uP=!1,nBe="skip";function $fe(t,e,n,r){let i;typeof e=="function"&&typeof n!="function"?(r=n,n=e):i=e;const s=DT(i),a=r?-1:1;o(t,void 0,[])();function o(l,u,c){const d=l&&typeof l=="object"?l:{};if(typeof d.type=="string"){const m=typeof d.tagName=="string"?d.tagName:typeof d.name=="string"?d.name:void 0;Object.defineProperty(h,"name",{value:"node ("+(l.type+(m?"<"+m+">":""))+")"})}return h;function h(){let m=Lfe,g,b,v;if((!e||s(l,u,c[c.length-1]||void 0))&&(m=rBe(n(l,c)),m[0]===uP))return m;if("children"in l&&l.children){const E=l;if(E.children&&m[0]!==nBe)for(b=(r?E.children.length:-1)+a,v=c.concat(E);b>-1&&b<E.children.length;){const x=E.children[b];if(g=o(x,b,v)(),g[0]===uP)return g;b=typeof g[1]=="number"?g[1]:b+a}}return m}}}function rBe(t){return Array.isArray(t)?t:typeof t=="number"?[tBe,t]:t==null?Lfe:[t]}function T2(t,e,n,r){let i,s,a;typeof e=="function"&&typeof n!="function"?(s=void 0,a=e,i=n):(s=e,a=n,i=r),$fe(t,s,o,i);function o(l,u){const c=u[u.length-1],d=c?c.children.indexOf(l):void 0;return a(l,d,c)}}const cP={}.hasOwnProperty,iBe={};function sBe(t,e){const n=e||iBe,r=new Map,i=new Map,s=new Map,a={...jFe,...n.handlers},o={all:u,applyData:oBe,definitionById:r,footnoteById:i,footnoteCounts:s,footnoteOrder:[],handlers:a,one:l,options:n,patch:aBe,wrap:uBe};return T2(t,function(c){if(c.type==="definition"||c.type==="footnoteDefinition"){const d=c.type==="definition"?r:i,h=String(c.identifier).toUpperCase();d.has(h)||d.set(h,c)}}),o;function l(c,d){const h=c.type,m=o.handlers[h];if(cP.call(o.handlers,h)&&m)return m(o,c,d);if(o.options.passThrough&&o.options.passThrough.includes(h)){if("children"in c){const{children:b,...v}=c,E=iu(v);return E.children=o.all(c),E}return iu(c)}return(o.options.unknownHandler||lBe)(o,c,d)}function u(c){const d=[];if("children"in c){const h=c.children;let m=-1;for(;++m<h.length;){const g=o.one(h[m],c);if(g){if(m&&h[m-1].type==="break"&&(!Array.isArray(g)&&g.type==="text"&&(g.value=vY(g.value)),!Array.isArray(g)&&g.type==="element")){const b=g.children[0];b&&b.type==="text"&&(b.value=vY(b.value))}Array.isArray(g)?d.push(...g):d.push(g)}}}return d}}function aBe(t,e){t.position&&(e.position=cfe(t))}function oBe(t,e){let n=e;if(t&&t.data){const r=t.data.hName,i=t.data.hChildren,s=t.data.hProperties;if(typeof r=="string")if(n.type==="element")n.tagName=r;else{const a="children"in n?n.children:[n];n={type:"element",tagName:r,properties:{},children:a}}n.type==="element"&&s&&Object.assign(n.properties,iu(s)),"children"in n&&n.children&&i!==null&&i!==void 0&&(n.children=i)}return n}function lBe(t,e){const n=e.data||{},r="value"in e&&!(cP.call(n,"hProperties")||cP.call(n,"hChildren"))?{type:"text",value:e.value}:{type:"element",tagName:"div",properties:{},children:t.all(e)};return t.patch(e,r),t.applyData(e,r)}function uBe(t,e){const n=[];let r=-1;for(e&&n.push({type:"text",value:` 87`});++r<t.length;)r&&n.push({type:"text",value:` 88`}),n.push(t[r]);return e&&t.length>0&&n.push({type:"text",value:` 89`}),n}function vY(t){let e=0,n=t.charCodeAt(e);for(;n===9||n===32;)e++,n=t.charCodeAt(e);return t.slice(e)}function EY(t,e){const n=sBe(t,e),r=n.one(t,void 0),i=KFe(n),s=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return i&&s.children.push({type:"text",value:` 90`},i),s}function cBe(t,e){return t&&"run"in t?async function(n,r){const i=EY(n,{file:r,...e});await t.run(i,r)}:function(n,r){return EY(n,{file:r,...t||e})}}function _Y(t){if(t)throw t}var YN,xY;
vendor: 11,382 bytes, line 90
90function dBe(){if(xY)return YN;xY=1;var t=Object.prototype.hasOwnProperty,e=Object.prototype.toString,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,i=function(u){return typeof Array.isArray=="function"?Array.isArray(u):e.call(u)==="[object Array]"},s=function(u){if(!u||e.call(u)!=="[object Object]")return!1;var c=t.call(u,"constructor"),d=u.constructor&&u.constructor.prototype&&t.call(u.constructor.prototype,"isPrototypeOf");if(u.constructor&&!c&&!d)return!1;var h;for(h in u);return typeof h>"u"||t.call(u,h)},a=function(u,c){n&&c.name==="__proto__"?n(u,c.name,{enumerable:!0,configurable:!0,value:c.newValue,writable:!0}):u[c.name]=c.newValue},o=function(u,c){if(c==="__proto__")if(t.call(u,c)){if(r)return r(u,c).value}else return;return u[c]};return YN=function l(){var u,c,d,h,m,g,b=arguments[0],v=1,E=arguments.length,x=!1;for(typeof b=="boolean"&&(x=b,b=arguments[1]||{},v=2),(b==null||typeof b!="object"&&typeof b!="function")&&(b={});v<E;++v)if(u=arguments[v],u!=null)for(c in u)d=o(b,c),h=o(u,c),b!==h&&(x&&h&&(s(h)||(m=i(h)))?(m?(m=!1,g=d&&i(d)?d:[]):g=d&&s(d)?d:{},a(b,{name:c,newValue:l(x,g,h)})):typeof h<"u"&&a(b,{name:c,newValue:h}));return b},YN}var fBe=dBe();const KN=ys(fBe);function dP(t){if(typeof t!="object"||t===null)return!1;const e=Object.getPrototypeOf(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)}function hBe(){const t=[],e={run:n,use:r};return e;function n(...i){let s=-1;const a=i.pop();if(typeof a!="function")throw new TypeError("Expected function as last argument, not "+a);o(null,...i);function o(l,...u){const c=t[++s];let d=-1;if(l){a(l);return}for(;++d<i.length;)(u[d]===null||u[d]===void 0)&&(u[d]=i[d]);i=u,c?pBe(c,o)(...u):a(null,...u)}}function r(i){if(typeof i!="function")throw new TypeError("Expected `middelware` to be a function, not "+i);return t.push(i),e}}function pBe(t,e){let n;return r;function r(...a){const o=t.length>a.length;let l;o&&a.push(i);try{l=t.apply(this,a)}catch(u){const c=u;if(o&&n)throw c;return i(c)}o||(l&&l.then&&typeof l.then=="function"?l.then(s,i):l instanceof Error?i(l):s(l))}function i(a,...o){n||(n=!0,e(a,...o))}function s(a){i(null,a)}}const Pl={basename:mBe,dirname:gBe,extname:yBe,join:bBe,sep:"/"};function mBe(t,e){if(e!==void 0&&typeof e!="string")throw new TypeError('"ext" argument must be a string');A2(t);let n=0,r=-1,i=t.length,s;if(e===void 0||e.length===0||e.length>t.length){for(;i--;)if(t.codePointAt(i)===47){if(s){n=i+1;break}}else r<0&&(s=!0,r=i+1);return r<0?"":t.slice(n,r)}if(e===t)return"";let a=-1,o=e.length-1;for(;i--;)if(t.codePointAt(i)===47){if(s){n=i+1;break}}else a<0&&(s=!0,a=i+1),o>-1&&(t.codePointAt(i)===e.codePointAt(o--)?o<0&&(r=i):(o=-1,r=a));return n===r?r=a:r<0&&(r=t.length),t.slice(n,r)}function gBe(t){if(A2(t),t.length===0)return".";let e=-1,n=t.length,r;for(;--n;)if(t.codePointAt(n)===47){if(r){e=n;break}}else r||(r=!0);return e<0?t.codePointAt(0)===47?"/":".":e===1&&t.codePointAt(0)===47?"//":t.slice(0,e)}function yBe(t){A2(t);let e=t.length,n=-1,r=0,i=-1,s=0,a;for(;e--;){const o=t.codePointAt(e);if(o===47){if(a){r=e+1;break}continue}n<0&&(a=!0,n=e+1),o===46?i<0?i=e:s!==1&&(s=1):i>-1&&(s=-1)}return i<0||n<0||s===0||s===1&&i===n-1&&i===r+1?"":t.slice(i,n)}function bBe(...t){let e=-1,n;for(;++e<t.length;)A2(t[e]),t[e]&&(n=n===void 0?t[e]:n+"/"+t[e]);return n===void 0?".":vBe(n)}function vBe(t){A2(t);const e=t.codePointAt(0)===47;let n=EBe(t,!e);return n.length===0&&!e&&(n="."),n.length>0&&t.codePointAt(t.length-1)===47&&(n+="/"),e?"/"+n:n}function EBe(t,e){let n="",r=0,i=-1,s=0,a=-1,o,l;for(;++a<=t.length;){if(a<t.length)o=t.codePointAt(a);else{if(o===47)break;o=47}if(o===47){if(!(i===a-1||s===1))if(i!==a-1&&s===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=a,s=0;continue}}else if(n.length>0){n="",r=0,i=a,s=0;continue}}e&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+t.slice(i+1,a):n=t.slice(i+1,a),r=a-i-1;i=a,s=0}else o===46&&s>-1?s++:s=-1}return n}function A2(t){if(typeof t!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(t))}const _Be={cwd:xBe};function xBe(){return"/"}function fP(t){return!!(t!==null&&typeof t=="object"&&"href"in t&&t.href&&"protocol"in t&&t.protocol&&t.auth===void 0)}function wBe(t){if(typeof t=="string")t=new URL(t);else if(!fP(t)){const e=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+t+"`");throw e.code="ERR_INVALID_ARG_TYPE",e}if(t.protocol!=="file:"){const e=new TypeError("The URL must be of scheme file");throw e.code="ERR_INVALID_URL_SCHEME",e}return SBe(t)}function SBe(t){if(t.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 e=t.pathname;let n=-1;for(;++n<e.length;)if(e.codePointAt(n)===37&&e.codePointAt(n+1)===50){const r=e.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(e)}const XN=["history","path","basename","stem","extname","dirname"];class Ffe{constructor(e){let n;e?fP(e)?n={path:e}:typeof e=="string"||CBe(e)?n={value:e}:n=e:n={},this.cwd="cwd"in n?"":_Be.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<XN.length;){const s=XN[r];s in n&&n[s]!==void 0&&n[s]!==null&&(this[s]=s==="history"?[...n[s]]:n[s])}let i;for(i in n)XN.includes(i)||(this[i]=n[i])}get basename(){return typeof this.path=="string"?Pl.basename(this.path):void 0}set basename(e){ZN(e,"basename"),QN(e,"basename"),this.path=Pl.join(this.dirname||"",e)}get dirname(){return typeof this.path=="string"?Pl.dirname(this.path):void 0}set dirname(e){wY(this.basename,"dirname"),this.path=Pl.join(e||"",this.basename)}get extname(){return typeof this.path=="string"?Pl.extname(this.path):void 0}set extname(e){if(QN(e,"extname"),wY(this.dirname,"extname"),e){if(e.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(e.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=Pl.join(this.dirname,this.stem+(e||""))}get path(){return this.history[this.history.length-1]}set path(e){fP(e)&&(e=wBe(e)),ZN(e,"path"),this.path!==e&&this.history.push(e)}get stem(){return typeof this.path=="string"?Pl.basename(this.path,this.extname):void 0}set stem(e){ZN(e,"stem"),QN(e,"stem"),this.path=Pl.join(this.dirname||"",e+(this.extname||""))}fail(e,n,r){const i=this.message(e,n,r);throw i.fatal=!0,i}info(e,n,r){const i=this.message(e,n,r);return i.fatal=void 0,i}message(e,n,r){const i=new Pn(e,n,r);return this.path&&(i.name=this.path+":"+i.name,i.file=this.path),i.fatal=!1,this.messages.push(i),i}toString(e){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(e||void 0).decode(this.value)}}function QN(t,e){if(t&&t.includes(Pl.sep))throw new Error("`"+e+"` cannot be a path: did not expect `"+Pl.sep+"`")}function ZN(t,e){if(!t)throw new Error("`"+e+"` cannot be empty")}function wY(t,e){if(!t)throw new Error("Setting `"+e+"` requires `path` to be set too")}function CBe(t){return!!(t&&typeof t=="object"&&"byteLength"in t&&"byteOffset"in t)}const TBe=(function(t){const r=this.constructor.prototype,i=r[t],s=function(){return i.apply(s,arguments)};return Object.setPrototypeOf(s,r),s}),ABe={}.hasOwnProperty;class b$ extends TBe{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=hBe()}copy(){const e=new b$;let n=-1;for(;++n<this.attachers.length;){const r=this.attachers[n];e.use(...r)}return e.data(KN(!0,{},this.namespace)),e}data(e,n){return typeof e=="string"?arguments.length===2?(t4("data",this.frozen),this.namespace[e]=n,this):ABe.call(this.namespace,e)&&this.namespace[e]||void 0:e?(t4("data",this.frozen),this.namespace=e,this):this.namespace}freeze(){if(this.frozen)return this;const e=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(e,...r);typeof i=="function"&&this.transformers.use(i)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(e){this.freeze();const n=hx(e),r=this.parser||this.Parser;return JN("parse",r),r(String(n),n)}process(e,n){const r=this;return this.freeze(),JN("process",this.parser||this.Parser),e4("process",this.compiler||this.Compiler),n?i(void 0,n):new Promise(i);function i(s,a){const o=hx(e),l=r.parse(o);r.run(l,o,function(c,d,h){if(c||!d||!h)return u(c);const m=d,g=r.stringify(m,h);OBe(g)?h.value=g:h.result=g,u(c,h)});function u(c,d){c||!d?a(c):s?s(d):n(void 0,d)}}}processSync(e){let n=!1,r;return this.freeze(),JN("processSync",this.parser||this.Parser),e4("processSync",this.compiler||this.Compiler),this.process(e,i),CY("processSync","process",n),r;function i(s,a){n=!0,_Y(s),r=a}}run(e,n,r){SY(e),this.freeze();const i=this.transformers;return!r&&typeof n=="function"&&(r=n,n=void 0),r?s(void 0,r):new Promise(s);function s(a,o){const l=hx(n);i.run(e,l,u);function u(c,d,h){const m=d||e;c?o(c):a?a(m):r(void 0,m,h)}}}runSync(e,n){let r=!1,i;return this.run(e,n,s),CY("runSync","run",r),i;function s(a,o){_Y(a),i=o,r=!0}}stringify(e,n){this.freeze();const r=hx(n),i=this.compiler||this.Compiler;return e4("stringify",i),SY(e),i(e,r)}use(e,...n){const r=this.attachers,i=this.namespace;if(t4("use",this.frozen),e!=null)if(typeof e=="function")l(e,n);else if(typeof e=="object")Array.isArray(e)?o(e):a(e);else throw new TypeError("Expected usable value, not `"+e+"`");return this;function s(u){if(typeof u=="function")l(u,[]);else if(typeof u=="object")if(Array.isArray(u)){const[c,...d]=u;l(c,d)}else a(u);else throw new TypeError("Expected usable value, not `"+u+"`")}function a(u){if(!("plugins"in u)&&!("settings"in u))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");o(u.plugins),u.settings&&(i.settings=KN(!0,i.settings,u.settings))}function o(u){let c=-1;if(u!=null)if(Array.isArray(u))for(;++c<u.length;){const d=u[c];s(d)}else throw new TypeError("Expected a list of plugins, not `"+u+"`")}function l(u,c){let d=-1,h=-1;for(;++d<r.length;)if(r[d][0]===u){h=d;break}if(h===-1)r.push([u,...c]);else if(c.length>0){let[m,...g]=c;const b=r[h][1];dP(b)&&dP(m)&&(m=KN(!0,b,m)),r[h]=[u,m,...g]}}}}const RBe=new b$().freeze();function JN(t,e){if(typeof e!="function")throw new TypeError("Cannot `"+t+"` without `parser`")}function e4(t,e){if(typeof e!="function")throw new TypeError("Cannot `"+t+"` without `compiler`")}function t4(t,e){if(e)throw new Error("Cannot call `"+t+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function SY(t){if(!dP(t)||typeof t.type!="string")throw new TypeError("Expected node, got `"+t+"`")}function CY(t,e,n){if(!n)throw new Error("`"+t+"` finished async. Use `"+e+"` instead")}function hx(t){return NBe(t)?t:new Ffe(t)}
vendor: 4,373 bytes, line 90
90function NBe(t){return!!(t&&typeof t=="object"&&"message"in t&&"messages"in t)}function OBe(t){return typeof t=="string"||kBe(t)}function kBe(t){return!!(t&&typeof t=="object"&&"byteLength"in t&&"byteOffset"in t)}const IBe="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",TY=[],AY={allowDangerousHtml:!0},MBe=/^(https?|ircs?|mailto|xmpp)$/i,DBe=[{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 m8t(t){const e=PBe(t),n=LBe(t);return $Be(e.runSync(e.parse(n),n),t)}function PBe(t){const e=t.rehypePlugins||TY,n=t.remarkPlugins||TY,r=t.remarkRehypeOptions?{...t.remarkRehypeOptions,...AY}:AY;return RBe().use(gFe).use(n).use(cBe,r).use(e)}function LBe(t){const e=t.children||"",n=new Ffe;return typeof e=="string"&&(n.value=e),n}function $Be(t,e){const n=e.allowedElements,r=e.allowElement,i=e.components,s=e.disallowedElements,a=e.skipHtml,o=e.unwrapDisallowed,l=e.urlTransform||FBe;for(const c of DBe)Object.hasOwn(e,c.from)&&(""+c.from+(c.to?"use `"+c.to+"` instead":"remove it")+IBe+c.id,void 0);return T2(t,u),t7e(t,{Fragment:j.Fragment,components:i,ignoreInvalidStyle:!0,jsx:j.jsx,jsxs:j.jsxs,passKeys:!0,passNode:!0});function u(c,d,h){if(c.type==="raw"&&h&&typeof d=="number")return a?h.children.splice(d,1):h.children[d]={type:"text",value:c.value},d;if(c.type==="element"){let m;for(m in qN)if(Object.hasOwn(qN,m)&&Object.hasOwn(c.properties,m)){const g=c.properties[m],b=qN[m];(b===null||b.includes(c.tagName))&&(c.properties[m]=l(String(g||""),m,c))}}if(c.type==="element"){let m=n?!n.includes(c.tagName):s?s.includes(c.tagName):!1;if(!m&&r&&typeof d=="number"&&(m=!r(c,d,h)),m&&h&&typeof d=="number")return o&&c.children?h.children.splice(d,1,...c.children):h.children.splice(d,1),d}}}function FBe(t){const e=t.indexOf(":"),n=t.indexOf("?"),r=t.indexOf("#"),i=t.indexOf("/");return e===-1||i!==-1&&e>i||n!==-1&&e>n||r!==-1&&e>r||MBe.test(t.slice(0,e))?t:""}const Bfe=(function(t){if(t==null)return UBe;if(typeof t=="string")return HBe(t);if(typeof t=="object")return BBe(t);if(typeof t=="function")return v$(t);throw new Error("Expected function, string, or array as `test`")});function BBe(t){const e=[];let n=-1;for(;++n<t.length;)e[n]=Bfe(t[n]);return v$(r);function r(...i){let s=-1;for(;++s<e.length;)if(e[s].apply(this,i))return!0;return!1}}function HBe(t){return v$(e);function e(n){return n.tagName===t}}function v$(t){return e;function e(n,r,i){return!!(jBe(n)&&t.call(this,n,typeof r=="number"?r:void 0,i||void 0))}}function UBe(t){return!!(t&&typeof t=="object"&&"type"in t&&t.type==="element"&&"tagName"in t&&typeof t.tagName=="string")}function jBe(t){return t!==null&&typeof t=="object"&&"type"in t&&"tagName"in t}const zBe=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,VBe=/^[a-zA-Z]:\\/;function qBe(t){if(typeof t!="string")throw new TypeError(`Expected a \`string\`, got \`${typeof t}\``);return VBe.test(t)?!1:zBe.test(t)}const GBe=["http","https"],WBe=["nofollow"],YBe={};function g8t(t){const e=t||YBe,n=e.protocols||GBe,r=Bfe(e.test);return function(i){T2(i,"element",function(s,a,o){if(s.tagName==="a"&&typeof s.properties.href=="string"&&r(s,a,o)){const l=s.properties.href;if(qBe(l)?n.includes(l.slice(0,l.indexOf(":"))):l.startsWith("//")){const u=gy(e.content,s),c=u&&!Array.isArray(u)?[u]:u,d=gy(e.rel,s)||WBe,h=typeof d=="str
90ing"?sP(d):d,m=gy(e.target,s),g=gy(e.properties,s);if(g&&Object.assign(s.properties,iu(g)),h.length>0&&(s.properties.rel=[...h]),m&&(s.properties.target=m),c){const b=gy(e.contentProperties,s)||{};s.children.push({type:"element",tagName:"span",properties:iu(b),children:iu(c)})}}}})}}function gy(t,e){return typeof t=="function"?t(e):t}const RY=/[#.]/g;function KBe(t,e){const n=t||"",r={};let i=0,s,a;for(;i<n.length;){RY.lastIndex=i;const o=RY.exec(n),l=n.slice(i,o?o.index:n.length);l&&(s?s==="#"?r.id=l:Array.isArray(r.className)?r.className.push(l):r.className=[l]:a=l,i+=l.length),o&&(s=o[0],i++)}return{type:"element",tagName:a||e||"div",properties:r,children:[]}}function Hfe(t,e,n){const r=n?JBe(n):void 0;function i(s,a,...o){let l;if(s==null){l={type:"root",children:[]};const u=a;o.unshift(u)}else{l=KBe(s,e);const u=l.tagName.toLowerCase(),c=r?r.get(u):void 0;if(l.tagName=c||u,XBe(a))o.unshift(a);else for(const[d,h]of Object.entries(a))QBe(t,l.properties,d,h)}for(const u of o)hP(l.children,u);return l.type==="element"&&l.tagName==="template"&&(l.content={type:"root",children:l.children},l.children=[]),l}return i}function XBe(t){if(t===null||typeof t!="object"||Array.isArray(t))return!0;if(typeof t.type!="string")return!1;const e=t,n=Object.keys(t);for(const r of n){const i=e[r];if(i&&typeof i=="object"){if(!Array.isArray(i))return!0;const s=i;for(const a of s)if(typeof a!="number"&&typeof a!="string")return!0}}return!!("children"in t&&Array.isArray(t.children))}function QBe(t,e,n,r){const i=OT(t,n);let s;if(r!=null){if(typeof r=="number"){if(Number.isNaN(r))return;s=r}else typeof r=="boolean"?s=r:typeof r=="string"?i.spaceSeparated?s=sP(r):i.commaSeparated?s=qW(r):i.commaOrSpaceSeparated?s=sP(qW(r).join(" ")):s=NY(i,i.property,r):Array.isArray(r)?s=[...r]:s=i.property==="style"?ZBe(r):String(r);if(Array.isArray(s)){const a=[];for(const o of s)a.push(NY(i,i.property,o));s=a}i.property==="className"&&Array.isArray(e.className)&&(s=e.className.concat(s)),e[i.property]=s}}function hP(t,e){if(e!=null)if(typeof e=="number"||typeof e=="string")t.push({type:"text",value:String(e)});else if(Array.isArray(e))for(const n of e)hP(t,n);else if(typeof e=="object"&&"type"in e)e.type==="root"?hP(t,e.children):t.push(e);else throw new Error("Expected node, nodes, or string, got `"+e+"`")}function NY(t,e,n){if(typeof n=="string"){if(t.number&&n&&!Number.isNaN(Number(n)))return Number(n);if((t.boolean||t.overloadedBoolean)&&(n===""||Xb(n)===Xb(e)))return!0}return n}function ZBe(t){const e=[];for(const[n,r]of Object.entries(t))e.push([n,r].join(": "));return e.join("; ")}function JBe(t){const e=new Map;for(const n of t)e.set(n.toLowerCase(),n);return e}const eHe=["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","solidColor","textArea","textPath"],tHe=Hfe(w2,"div"),nHe=Hfe(yf,"g",eHe);function rHe(t){const e=String(t),n=[];return{toOffset:i,toPoint:r};function r(s){if(typeof s=="number"&&s>-1&&s<=e.length){let a=0;for(;;){let o=n[a];if(o===void 0){const l=OY(e,n[a-1]);o=l===-1?e.length+1:l+1,n[a]=o}if(o>s)return{line:a+1,column:s-(a>0?n[a-1]:0)+1,offset:s};a++}}}function i(s){if(s&&typeof s.line=="number"&&typeof s.column=="number"&&!Number.isNaN(s.line)&&!Number.isNaN(s.column)){for(;n.length<s.line;){const o=n[n.length-1],l=OY(e,o),u=l===-1?e.length+1:l+1;if(o===u)break;n.push(u)}const a=(s.line>1?n[s.line-2]:0)+s.column-1;if(a<n[s.line-1])return a}}}function OY(t,e){const n=t.indexOf("\r",e),r=t.indexOf(` 91`,e);return r===-1?n:n===-1||n+1===r?r:n<r?n:r}const yh={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},Ufe={}.hasOwnProperty,iHe=Object.prototype;function sHe(t,e){const n=e||{};return E$({file:n.file||void 0,location:!1,schema:n.space==="svg"?yf:w2,verbose:n.verbose||!1},t)}function E$(t,e){let n;switch(e.nodeName){case"#comment":{const r=e;return n={type:"comment",value:r.data},Ow(t,r,n),n}case"#document":case"#document-fragment":{const r=e,i="mode"in r?r.mode==="quirks"||r.mode==="limited-quirks":!1;if(n={type:"root",children:jfe(t,e.childNodes),data:{quirksMode:i}},t.file&&t.location){const s=String(t.file),a=rHe(s),o=a.toPoint(0),l=a.toPoint(s.length);n.position={start:o,end:l}}return n}case"#documentType":{const r=e;return n={type:"doctype"},Ow(t,r,n),n}case"#text":{const r=e;return n={type:"text",value:r.value},Ow(t,r,n),n}default:return n=aHe(t,e),n}}function jfe(t,e){let n=-1;const r=[];for(;++n<e.length;){const i=E$(t,e[n]);r.push(i)}return r}function aHe(t,e){const n=t.schema;
vendor: 5,464 bytes, line 91
91t.schema=e.namespaceURI===yh.svg?yf:w2;let r=-1;const i={};for(;++r<e.attrs.length;){const o=e.attrs[r],l=(o.prefix?o.prefix+":":"")+o.name;Ufe.call(iHe,l)||(i[l]=o.value)}const a=(t.schema.space==="svg"?nHe:tHe)(e.tagName,i,jfe(t,e.childNodes));if(Ow(t,e,a),a.tagName==="template"){const o=e,l=o.sourceCodeLocation,u=l&&l.startTag&&ig(l.startTag),c=l&&l.endTag&&ig(l.endTag),d=E$(t,o.content);u&&c&&t.file&&(d.position={start:u.end,end:c.start}),a.content=d}return t.schema=n,a}function Ow(t,e,n){if("sourceCodeLocation"in e&&e.sourceCodeLocation&&t.file){const r=oHe(t,n,e.sourceCodeLocation);r&&(t.location=!0,n.position=r)}}function oHe(t,e,n){const r=ig(n);if(e.type==="element"){const i=e.children[e.children.length-1];if(r&&!n.endTag&&i&&i.position&&i.position.end&&(r.end=Object.assign({},i.position.end)),t.verbose){const s={};let a;if(n.attrs)for(a in n.attrs)Ufe.call(n.attrs,a)&&(s[OT(t.schema,a).property]=ig(n.attrs[a]));n.startTag;const o=ig(n.startTag),l=n.endTag?ig(n.endTag):void 0,u={opening:o};l&&(u.closing=l),u.properties=s,e.data={position:u}}}return r}function ig(t){const e=kY({line:t.startLine,column:t.startCol,offset:t.startOffset}),n=kY({line:t.endLine,column:t.endCol,offset:t.endOffset});return e||n?{start:e,end:n}:void 0}function kY(t){return t.line&&t.column?t:void 0}const IY={}.hasOwnProperty;function _$(t,e){const n=e||{};function r(i,...s){let a=r.invalid;const o=r.handlers;if(i&&IY.call(i,t)){const l=String(i[t]);a=IY.call(o,l)?o[l]:r.unknown}if(a)return a.call(this,i,...s)}return r.handlers=n.handlers||{},r.invalid=n.invalid,r.unknown=n.unknown,r}const lHe={},uHe={}.hasOwnProperty,zfe=_$("type",{handlers:{root:dHe,element:gHe,text:pHe,comment:mHe,doctype:hHe}});function cHe(t,e){const r=(e||lHe).space;return zfe(t,r==="svg"?yf:w2)}function dHe(t,e){const n={nodeName:"#document",mode:(t.data||{}).quirksMode?"quirks":"no-quirks",childNodes:[]};return n.childNodes=x$(t.children,n,e),F0(t,n),n}function fHe(t,e){const n={nodeName:"#document-fragment",childNodes:[]};return n.childNodes=x$(t.children,n,e),F0(t,n),n}function hHe(t){const e={nodeName:"#documentType",name:"html",publicId:"",systemId:"",parentNode:null};return F0(t,e),e}function pHe(t){const e={nodeName:"#text",value:t.value,parentNode:null};return F0(t,e),e}function mHe(t){const e={nodeName:"#comment",data:t.value,parentNode:null};return F0(t,e),e}function gHe(t,e){const n=e;let r=n;t.type==="element"&&t.tagName.toLowerCase()==="svg"&&n.space==="html"&&(r=yf);const i=[];let s;if(t.properties){for(s in t.properties)if(s!=="children"&&uHe.call(t.properties,s)){const l=yHe(r,s,t.properties[s]);l&&i.push(l)}}const a=r.space,o={nodeName:t.tagName,tagName:t.tagName,attrs:i,namespaceURI:yh[a],childNodes:[],parentNode:null};return o.childNodes=x$(t.children,o,r),F0(t,o),t.tagName==="template"&&t.content&&(o.content=fHe(t.content,r)),o}function yHe(t,e,n){const r=OT(t,e);if(n===!1||n===null||n===void 0||typeof n=="number"&&Number.isNaN(n)||!n&&r.boolean)return;Array.isArray(n)&&(n=r.commaSeparated?Jde(n):lfe(n));const i={name:r.attribute,value:n===!0?"":String(n)};if(r.space&&r.space!=="html"&&r.space!=="svg"){const s=i.name.indexOf(":");s<0?i.prefix="":(i.name=i.name.slice(s+1),i.prefix=r.attribute.slice(0,s)),i.namespace=yh[r.space]}return i}function x$(t,e,n){let r=-1;const i=[];if(t)for(;++r<t.length;){const s=zfe(t[r],n);s.parentNode=e,i.push(s)}return i}function F0(t,e){const n=t.position;n&&n.start&&n.end&&(n.start.offset,n.end.offset,e.sourceCodeLocation={startLine:n.start.line,startCol:n.start.column,startOffset:n.start.offset,endLine:n.end.line,endCol:n.end.column,endOffset:n.end.offset})}const bHe=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"],vHe=new Set([65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111]),Er="�";var ie;(function(t){t[t.EOF=-1]="EOF",t[t.NULL=0]="NULL",t[t.TABULATION=9]="TABULATION",t[t.CARRIAGE_RETURN=13]="CARRIAGE_RETURN",t[t.LINE_FEED=10]="LINE_FEED",t[t.FORM_FEED=12]="FORM_FEED",t[t.SPACE=32]="SPACE",t[t.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",t[t.QUOTATION_MARK=34]="QUOTATION_MARK",t[t.AMPERSAND=38]="AMPERSAND",t[t.APOSTROPHE=39]="APOSTROPHE",t[t.HYPHEN_MINUS=45]="HYPHEN_MINUS",t[t.SOLIDUS=47]="SOLIDUS",t[t.DIGIT_0=48]="DIGIT_0",t[t.DIGIT_9=57]="DIGIT_9",t[t.SEMICOLON=59]="SEMICOLON",t[t.LESS_THAN_SIGN=60]="LESS_THAN_SIGN",t[t.EQUALS_SIGN=61]="EQUALS_SIGN",t[t.GREATER_THAN_SIGN=62]="GREATER_THAN_SIGN",t[t.QUESTION_MARK=63]="QUESTION_MARK",t[t.LATIN_CAPITAL_A=65]="LATIN_CAPITAL_A",t[t.LATIN_CAPITAL_Z=90]="LATIN_CAPITAL_Z",t[t.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",t[t.GRAVE_ACCENT=96]="GRAVE_ACCENT",t[t.LATIN_SMALL_A=97]="LATIN_SMALL_A",t[t.LATIN_SMALL_Z=122]="LATIN_SMALL_Z"})(ie||(ie={}));const Ks={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function Vfe(t){return t>=55296&&t<=57343}function EHe(t){return t>=56320&&t<=57343}function _He(t,e){return(t-55296)*1024+9216+e}function qfe(t){return t!==32&&t!==10&&t!==13&&t!==9&&t!==12&&t>=1&&t<=31||t>=127&&t<=159}function Gfe(t){return t>=64976&&t<=65007||vHe.has(t)}var De;(function(t){t.controlCharacterInInputStream="control-character-in-input-stream",t.n
vendor: 7,200 bytes, line 91
91oncharacterInInputStream="noncharacter-in-input-stream",t.surrogateInInputStream="surrogate-in-input-stream",t.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",t.endTagWithAttributes="end-tag-with-attributes",t.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",t.unexpectedSolidusInTag="unexpected-solidus-in-tag",t.unexpectedNullCharacter="unexpected-null-character",t.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",t.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",t.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",t.missingEndTagName="missing-end-tag-name",t.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",t.unknownNamedCharacterReference="unknown-named-character-reference",t.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",t.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",t.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",t.eofBeforeTagName="eof-before-tag-name",t.eofInTag="eof-in-tag",t.missingAttributeValue="missing-attribute-value",t.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",t.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keyword",t.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers="missing-whitespace-between-doctype-public-and-system-identifiers",t.missingWhitespaceAfterDoctypeSystemKeyword="missing-whitespace-after-doctype-system-keyword",t.missingQuoteBeforeDoctypePublicIdentifier="missing-quote-before-doctype-public-identifier",t.missingQuoteBeforeDoctypeSystemIdentifier="missing-quote-before-doctype-system-identifier",t.missingDoctypePublicIdentifier="missing-doctype-public-identifier",t.missingDoctypeSystemIdentifier="missing-doctype-system-identifier",t.abruptDoctypePublicIdentifier="abrupt-doctype-public-identifier",t.abruptDoctypeSystemIdentifier="abrupt-doctype-system-identifier",t.cdataInHtmlContent="cdata-in-html-content",t.incorrectlyOpenedComment="incorrectly-opened-comment",t.eofInScriptHtmlCommentLikeText="eof-in-script-html-comment-like-text",t.eofInDoctype="eof-in-doctype",t.nestedComment="nested-comment",t.abruptClosingOfEmptyComment="abrupt-closing-of-empty-comment",t.eofInComment="eof-in-comment",t.incorrectlyClosedComment="incorrectly-closed-comment",t.eofInCdata="eof-in-cdata",t.absenceOfDigitsInNumericCharacterReference="absence-of-digits-in-numeric-character-reference",t.nullCharacterReference="null-character-reference",t.surrogateCharacterReference="surrogate-character-reference",t.characterReferenceOutsideUnicodeRange="character-reference-outside-unicode-range",t.controlCharacterReference="control-character-reference",t.noncharacterCharacterReference="noncharacter-character-reference",t.missingWhitespaceBeforeDoctypeName="missing-whitespace-before-doctype-name",t.missingDoctypeName="missing-doctype-name",t.invalidCharacterSequenceAfterDoctypeName="invalid-character-sequence-after-doctype-name",t.duplicateAttribute="duplicate-attribute",t.nonConformingDoctype="non-conforming-doctype",t.missingDoctype="missing-doctype",t.misplacedDoctype="misplaced-doctype",t.endTagWithoutMatchingOpenElement="end-tag-without-matching-open-element",t.closingOfElementWithOpenChildElements="closing-of-element-with-open-child-elements",t.disallowedContentInNoscriptInHead="disallowed-content-in-noscript-in-head",t.openElementsLeftAfterEof="open-elements-left-after-eof",t.abandonedHeadElementChild="abandoned-head-element-child",t.misplacedStartTagForHeadElement="misplaced-start-tag-for-head-element",t.nestedNoscriptInHead="nested-noscript-in-head",t.eofInElementThatCanContainOnlyText="eof-in-element-that-can-contain-only-text"})(De||(De={}));const xHe=65536;class wHe{constructor(e){this.handler=e,this.html="",this.pos=-1,this.lastGapPos=-2,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=xHe,this.isEol=!1,this.lineStartPos=0,this.droppedBufferSize=0,this.line=1,this.lastErrOffset=-1}get col(){return this.pos-this.lineStartPos+ +(this.lastGapPos!==this.pos)}get offset(){return this.droppedBufferSize+this.pos}getError(e,n){const{line:r,col:i,offset:s}=this,a=i+n,o=s+n;return{code:e,startLine:r,endLine:r,startCol:a,endCol:a,startOffset:o,endOffset:o}}_err(e){this.handler.onParseError&&this.lastErrOffset!==this.offset&&(this.lastErrOffset=this.offset,this.handler.onParseError(this.getError(e,0)))}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(e){if(this.pos!==this.html.length-1){const n=this.html.charCodeAt(this.pos+1);if(EHe(n))return this.pos++,this._addGap(),_He(e,n)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,ie.EOF;return this._err(De.surrogateInInputStream),e}willDropParsedChunk(){return this.pos>this.bufferWaterline}dropParsedChunk(){this.willDropParsedChunk()&&(this.html=this.html.substring(this.pos),this.lineStartPos-=this.pos,this.droppedBufferSize+=this.pos,this.pos=0,this.lastGapPos=-2,this.gapStack.length=0)}write(e,n){this.html.length>0?this.html+=e:this.html=e,this.endOfChunkHit=!1,this.lastChunkWritten=n}insertHtmlAtCurrentPos(e){this.html=this.html.substring(0,this.pos+1)+e+this.html.substring(this.pos+1),this.endOfChunkHit=!1}startsWith(e,n){if(this.pos+e.length>this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,!1;if(n)return this.html.startsWith(e,this.pos);for(let r=0;r<e.length;r++)if((this.html.charCodeAt(this.pos+r)|32)!==e.charCodeAt(r))return!1;return!0}peek(e){const n=this.pos+e;if(n>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,ie.EOF;const r=this.html.charCodeAt(n);return r===ie.CARRIAGE_RETURN?ie.LINE_FEED:r}advance(){if(this.pos++,this.isEol&&(this.isEol=!1,this.line++,this.lineStartPos=this.pos),this.pos>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,ie.EOF;let e=this.html.charCodeAt(this.pos);return e===ie.CARRIAGE_RETURN?(this.isEol=!0,this.skipNextNewLine=!0,ie.LINE_FEED):e===ie.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine)?(this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance()):(this.skipNextNewLine=!1,Vfe(e)&&(e=this._processSurrogate(e)),this.handler.onParseError===null||e>31&&e<127||e===ie.LINE_FEED||e===ie.CARRIAGE_RETURN||e>159&&e<64976||this._checkForProblematicCharacters(e),e)}_checkForProblematicCharacters(e){qfe(e)?this._err(De.controlCharacterInInputStream):Gfe(e)&&this._err(De.noncharacterInInputStream)}retreat(e){for(this.pos-=e;this.pos<this.lastGapPos;)this.lastGapPos=this.gapStack.pop(),this.pos--;this.isEol=!1}}var on;(function(t){t[t.CHARACTER=0]="CHARACTER",t[t.NULL_CHARACTER=1]="NULL_CHARACTER",t[t.WHITESPACE_CHARACTER=2]="WHITESPACE_CHARACTER",t[t.START_TAG=3]="START_TAG",t[t.END_TAG=4]="END_TAG",t[t.COMMENT=5]="COMMENT",t[t.DOCTYPE=6]="DOCTYPE",t[t.EOF=7]="EOF",t[t.HIBERNATION=8]="HIBERNATION"})(on||(on={}));function Wfe(t,e){for(let n=t.attrs.length-1;n>=0;n--)if(t.attrs[n].name===e)return t.attrs[n].value;return null}const SHe
vendor: 8,319 bytes, line 91
91=new Uint16Array('áµ<ÃıÊÒÕ»×ÙµÛÞ¢ßà à©àªà¶¡à¹à¼à¼¦áá¨á¡ááááá¥\0\0\0\0\0\0á«áá¦á°á·á½¾â â°âââ»ââ ¤â¤â´â¹â¿ããºã¹ã¬ã£¾ã¨¨ã©±ã« 㬮à EMabcfglmnoprstu\\bfms�¦³¹ÃÃligè»ÃäPè»&ä¦cuteè»Ãäreve;äÄiyx}rcè»Ãä;är;ìðraveè»Ãäpha;äacr;äd;æ©Ägp¡on;äf;ìð¸plyFunction;æ¡ingè»Ã
ä
Äcs¾Ãr;ìðign;æildeè»Ãämlè»ÃäÐaceforsuåûþÄÄĢħĪÄcrêòkslash;æÅ¶Ã¶Ã¸;æ«§ed;æy;äÆcrtÄ
ÄÄause;æµnoullis;æ¬a;är;ìð
pf;ìð¹eve;äcòÄmpeq;æÜHOacdefhilorsuÅÅÅÆÆÆ¢ÆµÆ·ÆºÇÈɳɸɾcy;ä§PYè»Â©ä©ÆcpyÅŢźute;äÄ;iŧŨætalDifferentialD;æ
leys;æÈaeioÆÆÆÆron;ädilè»Ãärc;änint;æ°ot;äÄdnƧÆilla;ä¸terDot;ä·Ã²Å¿i;ä§rcleÈDMPTÇÇÇÇot;æinus;ælus;æimes;æoÄcsǢǸkwiseContourIntegral;æ²eCurlyÄDQÈÈoubleQuote;æuote;æÈlnpuÈȨÉÉonÄ;eȥȦæ·;æ©´ÆgitȯȶȺruent;æ¡nt;æ¯ourIntegral;æ®ÄfrÉÉ;æoduct;ænterClockwiseContourIntegral;æ³oss;樯cr;ìðpÄ;CÊÊ
æap;æÖDJSZacefiosÊ Ê¬Ê°Ê´Ê¸ËËˡ˦̳ÒÄ;oŹʥtrahd;æ¤cy;äcy;ä
cy;äÆgrsÊ¿ËËger;æ¡r;æ¡hv;櫤ÄayËËron;ä;älÄ;tËËæa;är;ìðÄaf˫̧Äcm˰̢riticalÈADGTÌÌÌÌcute;ä´oÅ´ÌÌ;äbleAcute;ärave;ä ilde;äond;æferentialD;æ
Ѱ̽\0\0\0ÍÍ\0Ð
f;ìð»Æ;DEÍÍÍä¨ot;æqual;æbleÌCDLRUVͣͲÎÏϢϸontourIntegraìȹoɴ͹\0\0ͻ»ÍnArrow;æÄeoÎΤftÆARTÎÎΡrrow;æightArrow;æeÃ¥ËngÄLRΫÏeftÄARγιrrow;æ¸ightArrow;æºightArrow;æ¹ightÄATÏÏrrow;æee;æ¨pÉÏ©\0\0ϯrrow;æownArrow;æerticalBar;æ¥nÌABLRTaÐЪаÑѿͼrrowÆ;BUÐÐТæar;æ¤pArrow;æµreve;äeftËк\0Ñ\0ÑightVector;æ¥eeVector;æ¥ectorÄ;BÑÑæ½ar;æ¥ightÇѧ\0ѱeeVector;æ¥ectorÄ;BѺѻæar;æ¥eeÄ;AÒÒæ¤rrow;æ§ÄctÒÒr;ìðrok;äà NTacdfglmopqstuxÒ½ÓÓÓÓÓ¢Ó§Ó®ÓµÔ¡Ô¯Ô¶ÕÕÕ Õ¥G;ä
Hè»Ãäcuteè»ÃäÆaiyÓÓÓron;ärcè»Ãä;äot;är;ìðraveè»Ãäement;æÄapÓºÓ¾cr;ätyÉÔ\0\0ÔmallSquare;æ»erySmallSquare;æ«ÄgpÔ¦Ôªon;äf;ìð¼silon;äuÄaiÔ¼ÕlÄ;TÕÕæ©µilde;ælibrium;æÄciÕÕr;æ°m;橳a;ämlè»ÃäÄipÕªÕ¯sts;æonentialE;æ
ÊcfiosÖ
ÖÖÖ²×y;ä¤r;ìðlledÉÖ\0\0Ö£mallSquare;æ¼erySmallSquare;æªÍ°Öº\0Ö¿\0\0×f;ìð½All;æriertrf;æ±cÃ²×ØJTabcdfgorst×¨×¬×¯×ºØØØØØØ£Ù¬Ù²cy;äè»>ä¾mmaÄ;d׷׸ä;äreve;äÆeiyØØØdil;ä¢rc;ä;äot;ä r;ìð;æpf;ìð¾eaterÌEFGLSTصÙÙÙÙÙ¦qualÄ;Lؾؿæ¥ess;æullEqual;æ§reater;檢ess;æ·lantEqual;橾ilde;æ³cr;ìð¢;æ«ÐAacfiosuÚ
ÚÚÚÚÚªÚ¾ÛRDcy;äªÄctÚÚek;ä;äirc;ä¤r;ælbertSpace;æÇ°Ú¯\0Ú²f;æizontalLine;æÄctÛÛ
òکrok;ä¦mpÅÛÛownHumðįqual;æÜEJOacdfgmnostuÛºÛ¾ÜÜÜÜÜܡܨÝݸÞÞÞcy;älig;ä²cy;äcuteè»ÃäÄiyÜÜrcè»Ãä;äot;ä°r;æraveè»ÃäÆ;apÜ Ü¯Ü¿ÄcgÜ´Ü·r;äªinaryI;æ
lieóÏÇ´Ý\0Ý¢Ä;eÝÝæ¬ÄgrÝÝral;æ«section;æisibleÄCTݬݲomma;æ£imes;æ¢ÆgptÝ¿ÞÞon;ä®f;ìða;äcr;æilde;ä¨Ç«Þ\0Þcy;älè»ÃäÊcfosuÞ¬Þ·Þ¼ßßÄiyÞ±Þµrc;ä´;är;ìðpf;ìðÇ£ß\0ßr;ìð¥rcy;äkcy;äÎHJacfosߤߨ߽߬߱à à cy;ä¥cy;äppa;äÄeyß¶ß»dil;ä¶;är;ìðpf;ìðcr;ìð¦ÖJTaceflmostà ¥à ©à ¬à¡à¡£à¦³à¦¸à§à§à¨·à©cy;äè»<ä¼Êcmnprà ·à ¼à¡à¡à¡ute;ä¹bda;äg;æªlacetrf;ær;æÆaeyà¡à¡à¡¡ron;ä½dil;ä»;äÄfsࡨ॰tÔACDFRTUVarࡾࢩࢱࣦ࣠ࣼयà¥Î४Änrà¢à¢gleBracket;æ¨rowÆ;BRà¢à¢à¢æar;æ¤ightArrow;æeiling;æoǵࢷ\0à£bleBracket;æ¦nÇà£\0à£eeVector;楡ectorÄ;Bà£à£æar;æ¥loor;æightÄAV࣯ࣵrrow;æector;æ¥Äerà¤à¤eÆ;AVà¤à¤à¤æ£rrow;æ¤ector;æ¥iangleÆ;BEतथऩæ²ar;æ§qual;æ´pÆDTVषà¥à¥ownVector;æ¥eeVector;æ¥ ectorÄ;Bà¥à¥æ¿ar;æ¥ectorÄ;B॥०æ¼ar;æ¥ightáÎsÌEFGLSTॾà¦à¦à¦à¦¢à¦qualGreater;æullEqual;æ¦reater;æ¶ess;檡lantEqual;橽ilde;æ²r;ìðÄ;eঽাæftarrow;æidot;ä¿Ænpwà§à¨à¨gÈLRlrà§à§·à¨à¨eftÄAR০৬rrow;æµightArrow;æ·ightArrow;æ¶eftÄarγà¨ightáοightáÏf;ìðerÄLRਢਬeftArrow;æightArrow;æÆchtਾà©à©Ã²à¡;æ°rok;ä
;æªÐacefiosuà©à©à© ੷੼àª
àªàªp;æ¤
y;äÄdl੥੯iumSpace;ælintrf;æ³r;ìðnusPlus;æpf;ìðcò੶;äÒJacefostuણધàªà«à¬à¬à¶à¶à¶cy;äcute;ä
Æaey઴હાron;ä
dil;ä
;äÆgswà«à«°à¬ativeÆMTVà«à«à«¨ediumSpace;æhiÄcn૦à«Ã«à«eryThiîà«tedÄGL૸à¬reaterGreateòٳessLesóà©Line;är;ìðÈBnptଢନଷ଺reak;æ BreakingSpace;ä f;æÚ;CDEGHLNPRSTVàààªà¼à®¡à¯«à°à±à²à²¦à³àµ¡à¶
櫬Äouàà¤ngruent;æ¢pCap;æoubleVerticalBar;æ¦Ælqxà®à®à®ement;æualÄ;Tà®à®æ ilde;ìâ̸ists;æreaterÎ;EFGLSTஶஷ஽à¯à¯à¯à¯¥æ¯qual;æ±ullEqual;ìâ§Ì¸reater;ìâ«Ì¸ess;æ¹lantEqual;ì⩾̸ilde;æµumpÅ௲௽ownHump;ìâ̸qual;ìâ̸eÄfsà°à°§tTriangleÆ;BEà°à°à°¡æªar;ìâ§Ì¸qual;æ¬sÌ;EGLSTవశ఼à±à±à±æ®qual;æ°reater;æ¸ess;ìâªÌ¸lantEqual;ì⩽̸ilde;æ´estedÄGL౨౹reaterGreater;ì⪢̸essLess;ì⪡̸recedesÆ;ESà²à²à²æqual;ì⪯̸lantEqual;æ ÄeiಫಹverseElement;æghtTriangleÆ;BEà³à³à³æ«ar;ìâ§Ì¸qual;æÄquà³à´uareSuÄbp೨೹setÄ;Eà³°à³³ìâ̸qual;æ¢ersetÄ;Eà´à´ìâ̸qual;æ£Æbcpà´à´¤àµsetÄ;Eà´à´ìââqual;æceedsÈ;ESTà´²à´³à´»àµæqual;ì⪰̸lantEqual;æ¡ilde;ìâ¿Ì¸ersetÄ;Eàµàµìââqual;æildeÈ;EFT൮൯൵ൿæqual;æullEqual;æilde;æerticalBar;æ¤cr;ìð©ildeè»Ãä;äÜEacdfgmoprstuvà¶½à·à·à·à·à· à·§à·¼à¸à¸ ยา฿à¹lig;ä
cuteè»ÃäÄiyà·à·rcè»Ãä;äblac;ä
r;ìðraveè»ÃäÆaei෮ෲ෶cr;ä
ga;ä©cron;äpf;ìðenCurlyÄDQà¸à¸oubleQuote;æuote;æ;æ©Äclวฬr;ìðªashè»ÃäiŬื฼deè»Ãäes;樷mlè»ÃäerÄBPà¹à¹ Äarà¹à¹r;æ¾acÄekà¹à¹;æet;æ´arenthesis;æÒacfhilors๿àºàºàºàºàºàºàº°à»¼rtialD;æy;är;ìði;ä¦;ä usMinus;ä±ÄipຢàºncareplanÃ¥Úf;æÈ;eio຺ູ໠໤檻cedesÈ;ESTà»à»à»à»æºqual;檯lantEqual;æ¼ilde;æ¾me;æ³Ädp໩໮uct;æortionÄ;aȥ໹l;æÄcià¼à¼r;ìð«;ä¨ÈUfosà¼à¼à¼à¼OTè»"ä¢r;ìðpf;æcr;ìð¬ØBEacefhiorsu༾à½à½à½ ཱིྦྷྪà¾áá©á´á¾arr;æ¤Gè»Â®ä®Æcnrà½à½à½ute;ä
g;æ«rÄ;tà½à½æ l;æ¤Æaeyཧཬཱron;ä
dil;ä
;ä Ä;vླྀཹæerseÄEUà¾à¾Älqà¾à¾ement;æuilibrium;æpEquilibrium;楯r»ཹo;ä¡ghtÐACDFTUVaà¿à¿«à¿³á¢á¨ááÏÄnrà¿à¿gleBracket;æ©rowÆ;BLà¿à¿à¿¡æar;æ¥eftArrow;æeiling;æoǵ࿹\0á
bleBracket;æ§nÇá\0áeeVector;æ¥ectorÄ;Bááæar;æ¥loor;æÄerááeÆ;AVáµá¶á¼æ¢rrow;æ¦ector;æ¥iangleÆ;BEáááæ³ar;æ§qual;æµpÆDTVá£á®á¸ownVector;æ¥eeVector;æ¥ectorÄ;Bááæ¾ar;æ¥ectorÄ;Bááæar;æ¥Äpuááf;ændImplies;楰ightarrow;æÄchá¹á¼r;æ;æ±leDelayed;æ§´ÚHOacfhimoqstuá¤á±á·á½ááá
á
á
¡á
§áµá»á¿ÄCcá©á®Hcy;ä©y;ä¨FTcy;ä¬cute;ä
Ê;aeiyáááááæª¼ron;ä
dil;ä
rc;ä
;ä¡r;ìðortÈDLRUáªá´á¾á
ownArrow»ÐeftArrow»à¢ightArrow»à¿pArrow;ægma;ä£allCircle;æpf;ìðɲá
\0\0á
°t;æareÈ;ISUá
ȇ
¼áá¯æ¡ntersection;æuÄbpáásetÄ;Eááæqual;æersetÄ;Eá¨á©æqual;ænion;æcr;ìð®ar;æÈbcmpááááÄ;sááæetÄ;Eááqual;æÄchá á
eedsÈ;ESTáá®á´á¿æ»qual;檰lantEqual;æ½ilde;æ¿Tháà¾;æÆ;esááá£ærsetÄ;Eááæqual;æet»áÖHRSacfhiorsá¾ááááá±á¶ááááORNè»ÃäADE;æ¢ÄHcáácy;äy;ä¦Äbuáá;ä;䤯aeyá¥áªá¯ron;ä
¤dil;ä
¢;ä¢r;ìðÄeiá»áDzá\0áefore;æ´a;äÄcnáákSpace;ìââSpace;ældeÈ;EFTá«á¬á²á¼æ¼qual;æullEqual;æ
ilde;æpf;ìðipleDot;æÄctáár;ìð¯rok;ä
¦à«¡á·ááá¦\0á¬á±\0\0\0\0\0á¸á½á·á
\0á¿áááÄcrá»áuteè»ÃärÄ;oááæcir;æ¥rÇ£á\0áy;äve;ä
¬Äiyáá£rcè»Ãä;ä£blac;ä
°r;ìðraveè»Ãäacr;ä
ªÄdiáá©erÄBPááÄaráár;äacÄekáá;æet;æµarenthesis;æonÄ;Pá°á±ælus;æÄgpá»á¿on;ä
²f;ìðÐADETadpsáá®á¸áϨááá³rrowÆ;BDá
á á¤ar;æ¤ownArrow;æ
ownArrow;æquilibrium;楮eeÄ;Aááæ¥rrow;æ¥ownáϳerÄLRáá¨eftArrow;æightArrow;æiÄ;lá¹áºäon;ä¥ing;ä
®cr;ìð°ilde;ä
¨mlè»ÃäÒDbcdefosvá§á¬á°á³á¾á
áááash;æ«ar;æ««y;äashÄ;lá»á¼æ©;櫦Äeráá
;æÆbtyáááºar;æÄ;iáácalÈBLSTá¡á¥áªá´ar;æ£ine;ä¼eparator;æilde;æThinSpace;ær;ìðpf;ìðcr;ìð±dash;æªÊcefosá§á¬á±á¶á¼irc;ä
´dge;ær;
vendor: 7,828 bytes, line 91
91ìðpf;ìðcr;ìð²Èfiosáááár;ìð;äpf;ìðcr;ìð³ÒAIUacfosuá±áµá¹á½ááááá cy;ä¯cy;äcy;ä®cuteè»ÃäÄiyáárc;ä
¶;ä«r;ìðpf;ìðcr;ìð´ml;ä
¸ÐHacdefosáµá¹á¿áááá á¤cy;äcute;ä
¹Äayááron;ä
½;äot;ä
»Ç²á\0áoWidtèà«a;är;æ¨pf;æ¤cr;ìðµà¯¡ááá\0á°á¶á¿\0\0\0\0ááá«áá\0ááá²á¹\0á¾cuteè»Ã¡ä¡reve;äÌ;Ediuyááá¡á£á¨áæ¾;ìâ¾Ì³;æ¿rcè»Ã¢ä¢teè»Â´Ì;ä°ligè»Ã¦ä¦Ä;r²áº;ìðraveè»Ã ä ÄepááÄfpáásym;æµÃ¨áha;ä±ÄapácÄclá¤á§r;äg;樿ɤá°\0\0áÊ;adsváºá»á¿ááæ§nd;æ©;æ©lope;æ©;æ©Î;elmrszááááá¿ááæ ;榤e»ásdÄ;aá¥á¦æ¡Ñ¡á°á²á´á¶á¸áºá¼á¾;榨;榩;榪;榫;榬;æ¦;榮;榯tÄ;vá
áæbÄ;dááæ¾;æ¦Äptááh;æ¢Â»Â¹arr;æ¼Ägpá£á§on;ä
f;ìðÎ;Eaeiopáá»á½áááá;æ©°cir;橯;æd;æs;ä§roxÄ;eááñáingè»Ã¥ä¥Æctyá¡á¦á¨r;ìð¶;äªmpÄ;eáá¯Ã±Êildeè»Ã£ä£mlè»Ã¤ä¤Äciááoninôɲnt;æ¨à Nabcdefiklnoprsuáá±á°á¼ááá¸á½á á¦á ¹á¡á᤽á¥á¥°ot;æ«Äcrá¶ákÈcepsáá
ááong;æpsilon;ä¶rime;æµimÄ;eááæ½q;æÅ¶á¢á¦ee;æ½edÄ;gá¬áæ
e»árkÄ;táá·brk;æ¶Äoyáá;ä±quo;æÊcmprtááá¡á¤á¨ausÄ;eÄÄptyv;榰séánoÃµÄÆahwá¯á±á³;ä²;æ¶een;æ¬r;ìðgÎcostuvwááá³ááááÆaiuáááÃ°Ý rc;æ¯pÂ»á±Ædptá¤á¨áot;æ¨lus;æ¨imes;æ¨É±á¹\0\0á¾cup;æ¨ar;æ
riangleÄduááown;æ½p;æ³plus;æ¨eÃ¥áÃ¥áarow;æ¤Æakoáá ¦á µÄcná²á £kÆlstáºÖ«á ozenge;æ§«riangleÈ;dlrá á á á æ´own;æ¾eft;æight;æ¸k;æ£Æ±á «\0á ³Æ²á ¯\0á ±;æ;æ4;æck;æÄeoá ¾á¡Ä;qá¡á¡ì=â¥uiv;ìâ¡â¥t;æÈptwxá¡á¡á¡§á¡¬f;ìðÄ;táá¡£om»átie;æØDHUVbdhmptuvá¢
á¢á¢ªá¢»á£á£á£¬á£¿á¤
á¤á¤á¤¡ÈLRlrá¢á¢á¢á¢;æ;æ;æ;æÊ;DUduᢡᢢᢤᢦᢨæ;æ¦;æ©;æ¤;æ§ÈLRlrᢳᢵᢷᢹ;æ;æ;æ;æÎ;HLRhlrá£á£á£á£á£á£á£æ;æ¬;æ£;æ ;æ«;æ¢;æox;æ§ÈLRlrᣤᣦᣨᣪ;æ;æ;æ;æÊ;DUduڽ᣷᣹᣻᣽;æ¥;æ¨;æ¬;æ´inus;ælus;æimes;æ ÈLRlrá¤á¤á¤á¤;æ;æ;æ;æÎ;HLRhlrᤰᤱᤳᤵᤷ᤻᤹æ;æª;æ¡;æ;æ¼;æ¤;æÄevÄ£á¥barè»Â¦ä¦Èceioá¥á¥á¥á¥ r;ìð·mi;æmÄ;eáálÆ;bhᥨᥩᥫä;æ§
sub;æÅ¬á¥´á¥¾lÄ;e᥹᥺æ¢t»᥺pÆ;Eeįá¦
á¦;檮Ä;qÛÛೡᦧ\0᧨á¨á¨á¨²\0ᨷá©\0\0᪴\0\0á«\0\0ᬡᬮáá\0᯽\0á°Æcprá¦á¦²á§ute;äÌ;abcdsᦿá§á§á§á§á§æ©nd;æ©rcup;æ©Äauá§á§p;æ©p;æ©ot;æ©;ìâ©ï¸Äeo᧢᧥t;æÃ®ÚÈaeiuá§°á§»á¨á¨
ǰ᧵\0᧸s;æ©on;ädilè»Ã§ä§rc;äpsÄ;sá¨á¨æ©m;æ©ot;äÆdmná¨á¨ ᨦilè»Â¸Æptyv;榲tè¢;eá¨á¨®ä¢räƲr;ìð Æceiᨽá©á©y;äckÄ;má©á©æark»á©;ärÎ;Ecefmsá©á© ᩢᩫ᪤᪪᪮æ;æ§Æ;elᩩᩪá©äq;æeɡᩴ\0\0áªrrowÄlr᩼áªeft;æºight;æ»ÊRSacdáªáªáªáªáªÂ»à½;æst;æirc;æash;ænint;æ¨id;櫯cir;æ§ubsÄ;u᪻᪼æ£it»᪼ˬá«á«á«º\0á¬onÄ;eá«á«äºÄ;qÃÃÉá«\0\0á«¢aÄ;tá«á«ä¬;äÆ;fl᫨᫩᫫æÃ®á
eÄmx᫱᫶ent»᫩eóÉǧ᫾\0á¬Ä;dá»á¬ot;æ©nÃ´ÉÆfryá¬á¬á¬;ìðoäÉè©;sÅá¬r;æÄaoᬥᬩrr;æµss;æÄcuᬲᬷr;ìð¸ÄbpᬼáÄ;eááæ«;æ«Ä;eááæ«;æ«dot;æ¯Îdelprvwá á¬á·á®á®¬á¯á¯¹arrÄlrá¨áª;椸;椵ɰá²\0\0áµr;æc;æarrÄ;pá¿á®æ¶;椽Ì;bcdosá®á®á®á®¡á®¥á®¨æªrcap;æ©Äauá®á®p;æ©p;æ©ot;ær;æ©
;ìâªï¸Èalrv᮵ᮿá¯á¯£rrÄ;mᮼᮽæ·;椼yÆevwá¯á¯á¯qɰá¯\0\0á¯reãá³uãáµee;æedge;æenè»Â¤ä¤earrowÄlrᯮ᯳eft»á®ight»ᮽeäá¯Äciá°á°oninôǷnt;æ±lcty;æà¦AHabcdefhijlorstuwz᰸᰻᰿á±á±©á±µá²á²á²¬á²·á³»á³¿á´áµ»á¶á¶«á¶»á·á·ròÎar;楥Èglrsá±á±á±á±ger;æ eth;æ¸Ã²á³hÄ;vá±á±æÂ»à¤Å«á±¡á±§arow;æ¤aãÌÄayᱮᱳron;ä;ä´Æ;ao̲ᱼá²ÄgrÊ¿á²r;ætseq;æ©·Æglmá²á²á²è»Â°ä°ta;ä´ptyv;榱ÄirᲣᲨsht;楿;ìð¡arÄlrᲳᲵ»à£Â»áÊaegsvá³Í¸á³á³á³ mÆ;oșá³á³ndÄ;șá³uit;æ¦amma;äin;æ²Æ;io᳧᳨᳸ä·deè÷;oá³§á³°ntimes;ænø᳷cy;äcɯá´\0\0á´rn;æop;æÊlptuwá´á´á´¢áµáµlar;ä¤f;ìðÊ;empsÌá´á´·á´½áµqÄ;dÍá´³ot;æinus;æ¸lus;æquare;æ¡blebarwedgåúnÆadhá®áµáµ§ownarrowóá²arpoonÄlrᵲᵶefôᲴighôᲶŢᵿá¶
karo÷à½É¯á¶\0\0á¶rn;æop;æÆcotá¶á¶£á¶¦Äryá¶á¶¡;ìð¹;äl;æ§¶rok;äÄdrá¶°á¶´ot;æ±iÄ;fá¶ºá æ¿Äahá·á·ròЩaòྦangle;榦Äciá·á·y;ägrarr;æ¿à¤Dacdefglmnopqrstuxá¸á¸á¸á¸¸Õ¸á¸¼á¹á¹¡á¹¾áº¥áº¯áº½á»¡á¼ªá¼·á½á½á½ÄDoá¸á´´oôá²Äcsá¸á¸uteè»Ã©ä©ter;æ©®ÈaioyḢḧḱḶron;ärÄ;cá¸á¸®æè»Ãªäªlon;æ;äot;äÄDrá¹á¹
ot;æ;ìð¢Æ;rsá¹á¹á¹æªaveè»Ã¨ä¨Ä;dá¹á¹æªot;æªÈ;ilsṪṫṲṴæªnters;æ§;æÄ;dṹṺæªot;æªÆapsáº
áºáºcr;ätyÆ;sváºáºáºæ
et»áºpÄ1;áºáº¤Ä³áº¡áº£;æ;æ
æÄgsẪẬ;ä
p;æÄgpẴẸon;äf;ìðÆalsá»á»á»rÄ;sá»á»æl;æ§£us;橱iÆ;lvá»á»á»äµon»á»;äµÈcsuvỪỳá¼á¼£Äioữḱrc»Ḯɩỹ\0\0á»»ÃÕantÄglá¼á¼tr»á¹ess»ṺÆaeiá¼á¼á¼ls;ä½st;ævÄ;DȵἠD;橸parsl;æ§¥ÄDaἯἳot;ærr;楱Æcdiá¼¾á½á»¸r;æ¯oôÍÄahá½á½;ä·è»Ã°ä°Ämrá½á½lè»Ã«ä«o;æ¬Æcipὡὤὧl;ä¡sôծÄeoὬὴctatioîÕnentialåչৡá¾\0á¾\0ᾡᾧ\0\0á¿á¿\0á¿\0ῦῪâ\0ââllingdotseñá¹y;ämale;æÆilrá¾á¾³á¿lig;èï¬É©á¾¹\0\0á¾½g;èï¬ig;èï¬;ìð£lig;èï¬lig;ìfjÆaltá¿á¿á¿¡t;æig;èï¬ns;æ±of;äǰ΅\0ῳf;ìðÄakÖ¿á¿·Ä;vῼ´æ;æ«artint;æ¨ÄaoââÄcsââαââ°â¸â
â\0âβâ¢â¥â§âªâ¬\0â®è»Â½ä½;æ
è»Â¼ä¼;æ
;æ
;æ
Ƴâ´\0â¶;æ
;æ
Ê´â¾â\0\0âè»Â¾ä¾;æ
;æ
5;æ
ƶâ\0â;æ
;æ
8;æ
l;æwn;æ¢cr;ìð»à¢Eabcdefgijlnorstvââââ¥â°â´â°âµâºâ¿âââ¸Ìâ¾â
âÄ;lÙâ;æªÆcmpâââute;äµmaÄ;dâá³ä³;æªreve;äÄiyâªâ®rc;ä;ä³ot;ä¡È;lqsؾÙâ½âÆ;qsؾÙâlanô٥È;cdlÙ¥âââ¥c;檩otÄ;oââæªÄ;lâ¢â£æª;æªÄ;eâªâìâï¸s;æªr;ìð¤Ä;gÙ³Ømel;æ·cy;äÈ;EajÙâââ;æª;檥;檤ÈEaesâââ©â´;æ©pÄ;pâ£â¤æªrox»â¤Ä;qâ®â¯æªÄ;qâ®âim;æ§pf;ìðÄciâ
â
r;æmÆ;elÙ«â
â
;æª;æªè>;cdlqr×®â
â
ªâ
®â
³â
¹Äciâ
¥â
§;檧r;橺ot;æPar;æ¦uest;橼Êadelsââ
ªâÙâǰâ\0âproøâr;楸qÄlqØ¿âlesóâiÃÙ«Äenâ£ârtneqq;ìâ©ï¸Ã
âªÔAabcefkosyâââ±âµâºâââ¯â¨â½ròΠÈilmrâââârsðáf»â¤ilôکÄdrâ â¤cy;äÆ;cwࣴâ«â¯ir;æ¥;æar;æirc;䥯alrââârtsÄ;uââæ¥it»âlip;æ¦con;æ¹r;ìð¥sÄewâ£â©arow;椥arow;椦Êamoprâºâ¾âââ£rr;æ¿tht;æ»kÄlrââeftarrow;æ©ightarrow;æªf;ìðbar;æÆcltâ¯â´â¸r;ìð½asèâ´rok;ä§Äbpââull;æhen»á±à«¡â£\0âª\0â¸â
â\0ââ³\0\0â¸â¢â§â¢â¿\0ââªâ´cuteè»ÃäÆ;iyݱâ°âµrcè»Ã®ä®;ä¸Äcxâ¼â¿y;äµclè»Â¡ä¡ÄfrÎâ;ìð¦raveè»Ã¬ä¬È;inoܾââ©â®Äinâ¢â¦nt;æ¨t;æfin;æ§ta;æ©lig;䳯aopâ¾ââÆcgtâ
ââr;䫯elpÜââinÃ¥ÞarÃ´Ü h;ä±f;æ·ed;äµÊ;cfotÓ´â¬â±â½âare;æ
inÄ;tâ¸â¹æie;æ§doôâÊ;celpÝââââ¡al;æºÄgrââeróá£Ã£âarhk;æ¨rod;樼Ècgptâ¯â²â¶â»y;äon;ä¯f;ìða;ä¹uestè»Â¿ä¿Äciââr;ìð¾nÊ;EdsvÓ´âââ¡Ó³;æ¹ot;æµÄ;vâ¦â§æ´;æ³Ä;iÝ·â®lde;ä©Ç«â¸\0â¼cy;älè»Ã¯ä¯Ìcfmosuââââ¡â§âµÄiyâârc;äµ;ä¹r;ìð§ath;ä·pf;ìðÇ£â¬\0â±r;ìð¿rcy;äkcy;äÐacfghjosâââ¢â§ââ±âµâ»ppaÄ;vââäº;ä°Äeyââ dil;ä·;äºr;ìð¨reen;ä¸cy;ä
cy;äpf;ìðcr;ìðà®ABEHabcdefghjlmnoprstuvâ°ââââââ½âââââ¥â¹â½ââ²âââ¨âââ â Æartâ·âºâ¼ròà§Ã²Îail;æ¤arr;æ¤Ä;gà¦â;æªar;楢ॣâ¥\0âª\0â±\0\0\0\0\0âµâº\0âââ\0â¹ute;äºmptyv;榴raîà¡bda;ä»gÆ;dlà¢ââ;æ¦Ã¥à¢;æª
uoè»Â«ä«rÐ;bfhlpstà¢ââ¦â©â«â®â±âµÄ;fà¢â£s;æ¤s;æ¤Ã«âp;æ«l;椹im;楳l;æ¢Æ;aeâ¿ââæª«il;æ¤Ä;sââæª;ìâªï¸Æabrââârr;æ¤rk;æ²Äakâ¢â¬cÄekâ¨âª;ä»;äÄesâ±â³;æ¦lÄduâ¹â»;æ¦;æ¦Èaeuyââââron;ä¾Ädiââil;ä¼Ã¬à¢°Ã¢â©;
vendor: 4,294 bytes, line 91
91ä»Ècqrsâ£â¦ââ½a;椶uoÄ;rà¸áÄduâ²â·har;楧shar;æ¥h;æ²Ê;fgqsââà¦â³â¿æ¤tÊahlrtââ¤â·ââ¨rrowÄ;tà¢â¡aéâ¶arpoonÄduâ¯â´own»Ñp»०eftarrows;æightÆahsââârrowÄ;sࣴࢧarpoonóà¾quigarro÷â°hreetimes;æÆ;qsâà¦âºlanôবÊ;cdgsবââââ¨c;檨otÄ;oââæ©¿Ä;rââæª;æªÄ;eâ¢â¥ìâï¸s;æªÊadegsâ³â¹â½ââpproøâot;æqÄgqââ
ôà¦gtòâôà¦iÃলÆilrâ࣡âsht;楼;ìð©Ä;Eà¦â£;æªÅ¡â©â¶rÄduâ²â®Ä;l॥â³;楪lk;æcy;äÊ;achtà©ââââròâorneòá´ard;楫ri;æºÄioââ¤dot;ä
ustÄ;aâ¬âæ°che»âÈEaesâ»â½ââ;æ¨pÄ;pââæªrox»âÄ;qââæªÄ;qââ»im;æ¦Ðabnoptwzâ©â´â·ââ¯âââÄnrâ®â±g;æ¬r;æ½rëà£gÆlmrâ¿ââeftÄar০âightá৲apsto;æ¼ightá৽parrowÄlrâ¥â©efôâight;æ¬Æaflâ¶â¹â½r;æ¦
;ìðus;æ¨imes;樴šââst;æÃ¡áÆ;efââá ænge»âarÄ;lâ¤â¥ä¨t;æ¦Êachmtâ³â¶â¼â
âròࢨorneòá¶arÄ;dà¾â;æ¥;æri;æ¿Ìachiqtââà©â¢â®â»quo;æ¹r;ìðmÆ;egলâªâ¬;æª;æªÄbuâªâ³oÄ;rà¸â¹;ærok;ä
è<;cdhilqrà «ââ¹ââ â¥âªâ°Äciââ;檦r;橹reÃ¥â²mes;æarr;楶uest;æ©»ÄPiâµâ¹ar;æ¦Æ;efâ à¤á ærÄduâ â shar;æ¥har;楦Äenâ â ¡rtneqq;ìâ¨ï¸Ã
â ÜDacdefhilnopsuâ¡â¡
â¢â¢â¢â¢ ⢥⢨â£â£¢â£¤àªâ£³â¤Dot;æºÈclprâ¡â¡â¡£â¡½rè»Â¯ä¯Äetâ¡â¡;æÄ;eâ¡â¡æ se»â¡Ä;sá»â¡¨toÈ;dluá»â¡³â¡·â¡»owîÒefôà¤Ã°áker;æ®Äoyâ¢â¢mma;権;ä¼ash;æasuredangle»á¦r;ìðªo;æ§Æcdn⢯⢴â£roè»ÂµäµÈ;acdá¤â¢½â£â£sôá§ir;æ«°otè»Â·ÆµusÆ;bdâ£á¤â£æÄ;uá´¼â£;横ţâ£â£¡p;æ«Ã²âðàªÄdp⣩⣮els;æ§f;ìðÄct⣸⣽r;ìðpos»áÆ;lmâ¤â¤â¤ä¼timap;æ¸à°GLRVabcdefghijlmoprstuvwâ¥â¥â¥¾â¦â¦â§â§©â¨â¨â©â©âªâªâª¤âª¨â¬â¬ââ¿â®®â°´â±§â±¼â³©Ägtâ¥â¥;ìâ̸Ä;vâ¥à¯ìâ«âÆeltâ¥â¥²â¥¶ftÄar⥡⥧rrow;æightarrow;æ;ìâ̸Ä;v⥻à±ìâªâightarrow;æÄDdâ¦â¦ash;æ¯ash;æ®Êbcnpt⦣⦧⦬⦱â§la»Ëute;ä
g;ìâ âÊ;Eiopà¶â¦¼â§â§
â§;ì⩰̸d;ìâ̸s;ä
roøà¶urÄ;aâ§â§æ®lÄ;sâ§à¬¸Ç³â§\0â§£pè»Â ଷmpÄ;e௹à°Êaeouyâ§´â§¾â¨â¨â¨Ç°â§¹\0â§»;æ©on;ä
dil;ä
ngÄ;dൾâ¨ot;ìâ©Ì¸p;æ©;ä½ash;æÎ;Aadqsxà®â¨©â¨â¨»â©â©
â©rr;ærÄhr⨳⨶k;椤Ä;oá²á°ot;ìâ̸uiöà£Äeiâ©â©ar;椨Ãà®istÄ;sà® à®r;ìð«ÈEestà¯
⩦⩹⩼Æ;qs஼â©à¯¡Æ;qs஼à¯
â©´lanô௢iÃ௪Ä;rà®¶âªÂ»à®·ÆAapâªâªâªrò⥱rr;æ®ar;櫲Æ;svà¾âªà¾Ä;d⪡⪢æ¼;æºcy;äÎAEadest⪷⪺⪾â«â«
⫶⫹rò⥦;ìâ¦Ì¸rr;ær;æ¥È;fqsà°»â«â«£â«¯tÄarâ«â«rro÷â«ightarroÃ·âªÆ;qs఻⪺⫪lanôà±Ä;sà±â«´Â»à°¶iÃà±Ä;rవ⫾iÄ;eà°à°¥iäà¶Äptâ¬â¬f;ìðè¬;inâ¬â¬â¬¶ä¬nÈ;Edvà®â¬¤â¬¨â¬®;ìâ¹Ì¸ot;ìâµÌ¸Ç¡à®â¬³â¬µ;æ·;æ¶iÄ;vಸ⬼ǡಸââ;æ¾;æ½Æaorââ£â©rÈ;astà»âââlleìà»l;ì⫽â¥;ìâ̸lint;æ¨Æ;ceà²â°â³uåಥÄ;cà²â¸Ä;eà²â½Ã±à²ÈAaitâ®â®â®â®§ròâ¦rrÆ;cwâ®â®â®æ;ì⤳̸;ìâ̸ghtarrow»â®riÄ;eà³à³Îchimpqu⮽â¯â¯â¬à¸â¯¤â¯¯È;cerà´²â¯à´·â¯uÃ¥àµ
;ìðortÉâ¬
\0\0â¯aráâmÄ;e൮â¯Ä;q൴൳suÄbp⯫â¯Ã¥à³¸Ã¥à´Æbcp⯶â°â°È;Ees⯿â°à´¢â°æ;ìâ«
̸etÄ;eà´â°qÄ;qà´£â°cÄ;eà´²â°Ã±à´¸È;EesⰢⰣàµâ°§æ
;ìâ«Ì¸etÄ;eàµâ°®qÄ;qൠⰣÈgilrⰽⰿâ±
â±Ã¬à¯ldeè»Ã±ä±Ã§à±iangleÄlrâ±â±eftÄ;eà°â±Ã±à°¦ightÄ;eà³â±¥Ã±à³Ä;mⱬâ±ä½Æ;esⱴⱵⱹä£ro;æp;æÒDHadgilrsâ²â²â²â²â²£â²°â²¶â³â³£ash;æarr;æ¤p;ìââash;æ¬ÄetⲨⲬ;ìâ¥â;ì>ânfin;æ§ÆAetâ²½â³â³
rr;æ¤;ìâ¤âÄ;râ³â³ì<âie;ìâ´âÄAtâ³â³rr;æ¤rie;ìâµâim;ìâ¼âÆAanâ³°â³´â´rr;ærÄhr⳺⳽k;椣Ä;oá§á¥ear;椧ááª\0\0\0\0\0\0\0\0\0\0\0\0\0â´\0â´¸âµâµ ⵥ⵲â¶á¬\0\0â¶â¶«\0â·â·\0â·â¸â¸«â¸¾â¹Äcsâ´±áªuteè»Ã³ä³Äiyâ´¼âµ
rÄ;cáªâµè»Ã´ä´;ä¾Êabios᪠âµâµÇâµlac;ä
v;樸old;榼lig;ä
Äcr⵩âµir;榿;ìð¬Í¯âµ¹\0\0âµ¼\0â¶n;äaveè»Ã²ä²;æ§Äbmâ¶à·´ar;榵Èacitâ¶â¶â¶¥â¶¨ròáªÄirâ¶â¶ r;榾oss;榻nÃ¥à¹;æ§Æaeiⶱⶵⶹcr;ä
ga;äÆcdnâ·â·
Çron;ä¿;榶pf;ìð Æaelâ·â·Çr;榷rp;榹Î;adiosvⷪⷫⷮâ¸â¸â¸â¸æ¨ròáªÈ;efmâ··â·¸â¸â¸
æ©rÄ;oⷾⷿæ´f»ⷿè»Âªäªè»Âºäºgof;æ¶r;æ©lope;æ©;æ©Æcloâ¸â¸¡â¸§Ã²â¸ashè»Ã¸ä¸l;æiŬⸯ⸴deè»ÃµäµesÄ;aÇ⸺s;樶mlè»Ã¶ä¶bar;æ½à«¡â¹\0â¹½\0âºâº\0⺢⺹\0\0â»àº\0â¼\0\0⼫⾼\0â¿rÈ;
vendor: 6,210 bytes, line 91
91astÐâ¹§â¹²àº
è¶;lâ¹â¹®ä¶leìÐɩ⹸\0\0â¹»m;櫳;櫽y;ä¿rÊcimptâºâºâºá¡¥âºnt;ä¥od;ä®il;æ°enk;æ±r;ìðÆimo⺨⺰⺴Ä;vâºâº®ä;ämaô੶ne;æÆ;tv⺿â»â»ächfork»´;äÄauâ»â»nÄckâ»â»kÄ;hâ´â»;æÃ¶â´sÒ;abcdemst⻳⻴á¤â»¹â»½â¼â¼â¼â¼ä«cir;樣ir;樢Äouáµâ¼;樥;橲nè»Â±àºim;樦wo;樧Æipuâ¼â¼ â¼¥ntint;æ¨f;ìð¡ndè»Â£ä£Ô;Eaceinosuà»â¼¿â½â½â½â¾â¾â¾â½¾â¾¶;檳p;檷uÃ¥à»Ä;cà»â½Ì;acensà»â½â½â½¦â½¨â½¾pproøâ½urlyeñà»Ã±à»Æaes⽯⽶⽺pprox;檹qq;檵im;æ¨iÃà»meÄ;sâ¾àº®æ²ÆEas⽸â¾â½ºÃ°â½µÆdfp໬â¾â¾¯Æals⾠⾥⾪lar;æ®ine;æurf;æÄ;t໻⾴ï໻rel;æ°Äciâ¿â¿
r;ìð
;äncsp;æÌfiopsuâ¿â¢â¿â¿¥â¿«â¿±r;ìð®pf;ìð¢rime;æcr;ìðÆaeo⿸ããtÄei⿾ã
rnionóڰnt;æ¨stÄ;eããä¿Ã±á¼Ã´à¼àªABHabcdefhilmnoprstuxããããã ãã«ã
ã
¢ã
²ãããã¤ã©ãã®ã²ãã°ã·Æartãããròá³Ã²Ïail;æ¤aròᱥar;楤Îcdenqrtã¨ãµã¸ã¿ãããÄeuãã±;ìâ½Ì±te;ä
iãá
®mptyv;榳gÈ;delà¿ããã;æ¦;榥åà¿uoè»Â»ä»rÖ;abcfhlpstwà¿ã¬ã¯ã·ã¹ã¼ã¾ããããp;極Ä;fà¿ ã´s;æ¤ ;椳s;æ¤Ã«âðâ®l;æ¥
im;楴l;æ£;æÄaiããil;æ¤oÄ;nããæ¶alÃ³à¼Æabrã§ãªã®ròá¥rk;æ³Äakã³ã½cÄekã¹ã»;ä½;äÄesãã;æ¦lÄduãã;æ¦;æ¦Èaeuyããã§ã©ron;ä
Ädiã¡ã¥il;ä
ì࿲âãº;äÈclqsã´ã·ã½ã
a;椷dhar;楩uoÄ;rÈÈh;æ³Æacgã
ã
à½lÈ;ipsླྀã
ã
ánÃ¥á»arôྩt;æÆilrã
©á£ã
®sht;楽;ìð¯Äaoã
·ãrÄduã
½ã
¿Â»Ñ»Ä;láã;楬Ä;vããä;䱯gnsãã¹ã¼htÌahlrstã¤ã°ããã¤ã®rrowÄ;tà¿ãaéãarpoonÄduã»ã¿owîã
¾p»áeftÄahããrrowó࿪arpoonóÕightarrows;æquigarro÷ãhreetimes;æg;äingdotseñἲÆahmãããrò࿪aòÕ;æoustÄ;aããæ±che»ãmid;æ«®Èabptã²ã½ããÄnrã·ãºg;ær;æ¾rëáÆaflãããr;æ¦;ìð£us;樮imes;樵Äapãã§rÄ;gã£ã¤ä©t;æ¦olint;æ¨aròã£Èachqã»ãá¼ã
quo;æºr;ìðÄbuã»ãoÄ;rÈÈÆhirããã reÃ¥ã¸mes;æiÈ;eflãªáá ¡ã«æ¹tri;æ§luhar;楨;æàµ¡ãããã¬ã¸ã±\0ãºã¤\0\0ã¬ã°\0ã¨ãããã±ãã±\0ã\0\0ã³cute;ä
quïâºÔ;Eaceinpsyáã³ãµã¿ããããã¦ã©;檴ǰãº\0ã¼;檸on;ä
¡uÃ¥á¾Ä;dá³ãil;ä
rc;ä
ÆEasããã;檶p;檺im;æ©olint;æ¨iÃá;äotÆ;beã´áµãµæ
;橦ÎAacmstxãããããã£ãrr;ærÄhrããëâ¨Ä;oਸ਼਴tè»Â§ä§i;ä»war;椩mÄinã©Ã°nuóñt;æ¶rÄ;oã¶âìð°Èacoyãããã rp;æ¯Ähyããcy;ä;ärtÉã\0\0ãiäá¤araì⹯è»ÂäÄgmã¨ã´maÆ;fvã±ã²ã²ä;äÐ;deglnprá«ã
ããããã¡ã¦ot;橪Ä;qá±á°Ä;Eããæª;æª Ä;Eããæª;æªe;ælus;樤arr;楲aròá½Èaeitã¸ãããÄlsã½ãlsetméãªhp;樳parsl;槤Ädlá£ãe;æ£Ä;eããæªªÄ;sã¢ã£æª¬;ìâª¬ï¸Æflpã®ã³ãtcy;äÄ;bã¸ã¹ä¯Ä;aã¾ã¿æ§r;æ¿f;ìð¤aÄdrãÐesÄ;uããæ it»ãÆcsuã ã¹ãÄauã¥ã¯pÄ;sáã«;ìâï¸pÄ;sá´ãµ;ìâï¸uÄbpã¿ãÆ;esááãetÄ;eáãñáÆ;esá¨áãetÄ;eá¨ãÃ±á®Æ;afá
»ã¦Ö°rÅ¥ã«Ö±Â»á
¼aròá
Ècemtã¹ã¾ãã
r;ìðtmîñiìãaræá¾ÄarããrÄ;fãá¿æÄanããightÄepã£ãªpsiloîỠhé⺯s»â¡Êbcmnpã»ãáããÒ;Edemnprsãããããã£ã¬ã±ã¶æ;æ«
ot;檽Ä;dáãot;æ«ult;æ«ÄEeã¨ãª;æ«;ælus;檿arr;楹Æeiuã½ããtÆ;enãã
ãqÄ;qáãeqÄ;qã«ã¨m;æ«Äbpãã;æ«;æ«cÌ;acensáã¬ã²ã¹ã»ã¦pproøãºurlyeñá¾Ã±á³Æaesãããpproøãqñãg;æªÚ123;Edehlmnpsã©ã¬ã¯áã²ã´ãããããã¨ãè»Â¹ä¹è»Â²ä²è»Â³ä³;æ«Äosã¹ã¼t;檾ub;æ«Ä;dá¢ã
ot;æ«sÄouããl;æb;æ«arr;楻ult;æ«ÄEeã¤ã¦;æ«;ælus;æ«Æeiuã´ããtÆ;enáã¼ãqÄ;qá¢ã²eqÄ;qã§ã¤m;æ«Äbpãã;æ«;æ«ÆAanãã ãrr;ærÄhrã¦ã¨Ã«â®Ä;oਫ਩war;椪ligè»Ãä௡ããã áã³ã¹\0ã¾ã\0\0\0\0\0ãã\0ãã¬\0\0\0ãɲã\0\0ãget;æ;ärÃ«à¹Æaeyã¦ã«ã°ron;ä
¥dil;ä
£;älrec;ær;ìð±Èeikoãããµã¼Ç²ã\0ãeÄ4fááaÆ;svãããä¸ym;äÄcnã¢ã²kÄasã¨ã®pproøáim»á¬sðáÄasãºã®Ã°árnè»Ã¾ä¾Ç¬Ìãâ§esèÃ;bdãããäÄ;aá¤ãr;樱;樰Æepsã¡ã£ãáâ©È;bcfÒã¬ã°ã´ot;æ¶ir;櫱Ä;oã¹ã¼ìð¥rk;æ«Ã¡ã¢rime;æ´Æaipããã¤dÃ¥áÎadempstã¡ããããããngleÊ;dlqrã°ã±ã¶ããæµown»ᶻeftÄ;eâ ã¾Ã±à¤®;æightÄ;eãªãñáot;æ¬inus;樺lus;樹b;æ§ime;樻ezium;æ¢Æchtã²ã½ãÄryã·ã»;ìð;äcy;ärok;ä
§Äioããxôá·headÄlrãã eftarro÷à¡ightarrow»à½à¤AHabcdfghlmoprstuwãããã¤ã°ã¼ã ã 㠣㠴ã¡ã¡ã¡«ã¢©ã£ã£ã£ªã£¶ròÏar;楣Äcrãã¢uteè»ÃºäºÃ²á
rÇ£ãª\0ãy;äve;ä
Äiyãµãºrcè»Ã»ä»;äÆabhã ã ã ròálac;ä
±aòáÄirã ã sht;楾;ìð²raveè»Ã¹ä¹Å¡ã §ã ±rÄlr㠬㠮»à¥Â»álk;æÄctã ¹ã¡É¯ã ¿\0\0ã¡rnÄ;eã¡
ã¡ær»ã¡op;æri;æ¸Äalã¡ã¡cr;ä
«è»Â¨ÍÄgp㡢㡦on;ä
³f;ìð¦Ìadhlsuá
㡸㡽á²ã¢ã¢ ownáá³arpoonÄlrã¢ã¢efôã ighô㠯iÆ;hlã¢ã¢ã¢ä
»áºon»ã¢parrows;æÆcit㢰ã£ã£É¯ã¢¶\0\0ã£rnÄ;e㢼㢽ær»㢽op;æng;ä
¯ri;æ¹cr;ìðÆdirã£ã£ã£¢ot;æ°lde;ä
©iÄ;fã°ã£¨Â»á Äam㣯㣲rò㢨lè»Ã¼ä¼angle;榧ÞABDacdeflnoprszã¤ã¤ã¤©ã¤ã¦µã¦¸ã¦½ã§ã§¤ã§¨ã§³ã§¹ã§½ã¨ã¨ ròϷarÄ;v㤦㤧櫨;æ«©asèϡÄnr㤲㤷grt;æ¦Îeknprstã£ã¥ã¥ã¥ã¥ã¥¤ã¦appáâothinÃ§áºÆhirã«â»ã¥opô⾵Ä;há·ã¥¢Ã¯ãÄiu㥩ã¥gmáã³Äbp㥲ã¦setneqÄ;q㥽ã¦ìâï¸;ìâ«ï¸setneqÄ;qã¦ã¦ìâï¸;ìâ«ï¸Ährã¦ã¦etáãiangleÄlr㦪㦯eft»थight»áy;ä²ashÂ»á¶Æelrã§ã§ã§Æ;beâ·ªã§ã§ar;æ»q;ælip;æ®Äbtã§á¨aòá©r;ìð³tré㦮suÄbp㧯㧱»à´Â»àµpf;ìð§roð໻tré㦴Äcuã¨ã¨r;ìðÄbpã¨ã¨nÄEeã¦ã¨Â»ã¥¾nÄEeã¦ã¨Â»ã¦igzag;æ¦Îcefoprs㨶㨻ã©ã©ã©ã©¡ã©ªirc;ä
µÄdiã©ã©Äbgã©
ã©ar;æ©eÄ;qáºã©;æerp;ær;ìð´pf;ìð¨Ä;eá¹ã©¦atèá¹cr;ìðà«£áãª\0ãª\0ãªãª\0\0ãªãª¨ãª«ãª¯\0\0ã«ã«\0ã«áátréár;ìðµÄAaãªãªròÏrò৶;ä¾ÄAa㪡㪤ròθrò৫aðâis;æ»Ædptá¤ãªµãª¾Äfl㪺á©;ìð©imÃ¥á²ÄAaã«ã«ròÏròà¨Äcqã«á¸r;ìðÄptáã«réáÐacefiosu㫰㫽ã¬ã¬ã¬ã¬ã¬ã¬¡cÄuyã«¶ã«»teè»Ã½ä½;äÄiyã¬ã¬rc;ä
·;änè»Â¥ä¥r;ìð¶cy;äpf;ìðªcr;ìðÄcm㬦㬩y;älè»Ã¿ä¿Ôacdefhioswããããã¤ã©ãã´ãºã®cute;ä
ºÄayããron;ä
¾;ä·ot;ä
¼Äetãã¡træáa;ä¶r;ìð·cy;ä¶grarr;æpf;ìð«cr;ìðÄjnã®
ã®;æj;æ
91'.split("").map(t=>t.charCodeAt(0))),CHe=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]);function THe(t){var e;return t>=55296&&t<=57343||t>1114111?65533:(e=CHe.get(t))!==null&&e!==void 0?e:t}var Fi;(function(t){t[t.NUM=35]="NUM",t[t.SEMI=59]="SEMI",t[t.EQUALS=61]="EQUALS",t[t.ZERO=48]="ZERO",t[t.NINE=57]="NINE",t[t.LOWER_A=97]="LOWER_A",t[t.LOWER_F=102]="LOWER_F",t[t.LOWER_X=120]="LOWER_X",t[t.LOWER_Z=122]="LOWER_Z",t[t.UPPER_A=65]="UPPER_A",t[t.UPPER_F=70]="UPPER_F",t[t.UPPER_Z=90]="UPPER_Z"})(Fi||(Fi={}));const AHe=32;var Ud;(function(t){t[t.VALUE_LENGTH=49152]="VALUE_LENGTH",t[t.BRANCH_LENGTH=16256]="BRANCH_LENGTH",t[t.JUMP_TABLE=127]="JUMP_TABLE"})(Ud||(Ud={}));function pP(t){return t>=Fi.ZERO&&t<=Fi.NINE}function RHe(t){return t>=Fi.UPPER_A&&t<=Fi.UPPER_F||t>=Fi.LOWER_A&&t<=Fi.LOWER_F}function NHe(t){return t>=Fi.UPPER_A&&t<=Fi.UPPER_Z||t>=Fi.LOWER_A&&t<=Fi.LOWER_Z||pP(t)}function OHe(t){return t===Fi.EQUALS||NHe(t)}var Di;(function(t){t[t.EntityStart=0]="EntityStart",t[t.NumericStart=1]="NumericStart",t[t.NumericDecimal=2]="NumericDecimal",t[t.NumericHex=3]="NumericHex",t[t.NamedEntity=4]="NamedEntity"})(Di||(Di={}));var gc;(function(t){t[t.Legacy=0]="Legacy",t[t.Strict=1]="Strict",t[t.Attribute=2]="Attribute"})(gc||(gc={}));class kHe{constructor(e,n,r){this.decodeTree=e,this.emitCodePoint=n,this.errors=r,this.state=Di.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=gc.Strict}startEntity(e){this.decodeMode=e,this.state=Di.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(e,n){switch(this.state){case Di.EntityStart:return e.charCodeAt(n)===Fi.NUM?(this.state=Di.NumericStart,this.consumed+=1,this.stateNumericStart(e,n+1)):(this.state=Di.NamedEntity,this.stateNamedEntity(e,n));case Di.NumericStart:return this.stateNumericStart(e,n);case Di.NumericDecimal:return this.stateNumericDecimal(e,n);case Di.NumericHex:return this.stateNumericHex(e,n);case Di.NamedEntity:return this.stateNamedEntity(e,n)}}stateNumericStart(e,n){return n>=e.length?-1:(e.charCodeAt(n)|AHe)===Fi.LOWER_X?(this.state=Di.NumericHex,this.consumed+=1,this.stateNumericHex(e,n+1)):(this.state=Di.NumericDecimal,this.stateNumericDecimal(e,n))}addToNumericResult(e,n,r,i){if(n!==r){const s=r-n;this.result=this.result*Math.pow(i,s)+Number.parseInt(e.substr(n,s),i),this.consumed+=s}}stateNumericHex(e,n){const r=n;for(;n<e.length;){const i=e.charCodeAt(n);if(pP(i)||RHe(i))n+=1;else return this.addToNumericResult(e,r,n,16),this.emitNumericEntity(i,3)}return this.addToNumericResult(e,r,n,16),-1}stateNumericDecimal(e,n){const r=n;for(;n<e.length;){const i=e.charCodeAt(n);if(pP(i))n+=1;else return this.addToNumericResult(e,r,n,10),this.emitNumericEntity(i,2)}return this.addToNumericResult(e,r,n,10),-1}
vendor: 4,270 bytes, line 91
91emitNumericEntity(e,n){var r;if(this.consumed<=n)return(r=this.errors)===null||r===void 0||r.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(e===Fi.SEMI)this.consumed+=1;else if(this.decodeMode===gc.Strict)return 0;return this.emitCodePoint(THe(this.result),this.consumed),this.errors&&(e!==Fi.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(e,n){const{decodeTree:r}=this;let i=r[this.treeIndex],s=(i&Ud.VALUE_LENGTH)>>14;for(;n<e.length;n++,this.excess++){const a=e.charCodeAt(n);if(this.treeIndex=IHe(r,i,this.treeIndex+Math.max(1,s),a),this.treeIndex<0)return this.result===0||this.decodeMode===gc.Attribute&&(s===0||OHe(a))?0:this.emitNotTerminatedNamedEntity();if(i=r[this.treeIndex],s=(i&Ud.VALUE_LENGTH)>>14,s!==0){if(a===Fi.SEMI)return this.emitNamedEntityData(this.treeIndex,s,this.consumed+this.excess);this.decodeMode!==gc.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var e;const{result:n,decodeTree:r}=this,i=(r[n]&Ud.VALUE_LENGTH)>>14;return this.emitNamedEntityData(n,i,this.consumed),(e=this.errors)===null||e===void 0||e.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(e,n,r){const{decodeTree:i}=this;return this.emitCodePoint(n===1?i[e]&~Ud.VALUE_LENGTH:i[e+1],r),n===3&&this.emitCodePoint(i[e+2],r),r}end(){var e;switch(this.state){case Di.NamedEntity:return this.result!==0&&(this.decodeMode!==gc.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case Di.NumericDecimal:return this.emitNumericEntity(0,2);case Di.NumericHex:return this.emitNumericEntity(0,3);case Di.NumericStart:return(e=this.errors)===null||e===void 0||e.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case Di.EntityStart:return 0}}}function IHe(t,e,n,r){const i=(e&Ud.BRANCH_LENGTH)>>7,s=e&Ud.JUMP_TABLE;if(i===0)return s!==0&&r===s?n:-1;if(s){const l=r-s;return l<0||l>=i?-1:t[n+l]-1}let a=n,o=a+i-1;for(;a<=o;){const l=a+o>>>1,u=t[l];if(u<r)a=l+1;else if(u>r)o=l-1;else return t[l+i]}return-1}var je;(function(t){t.HTML="http://www.w3.org/1999/xhtml",t.MATHML="http://www.w3.org/1998/Math/MathML",t.SVG="http://www.w3.org/2000/svg",t.XLINK="http://www.w3.org/1999/xlink",t.XML="http://www.w3.org/XML/1998/namespace",t.XMLNS="http://www.w3.org/2000/xmlns/"})(je||(je={}));var Oh;(function(t){t.TYPE="type",t.ACTION="action",t.ENCODING="encoding",t.PROMPT="prompt",t.NAME="name",t.COLOR="color",t.FACE="face",t.SIZE="size"})(Oh||(Oh={}));var yo;(function(t){t.NO_QUIRKS="no-quirks",t.QUIRKS="quirks",t.LIMITED_QUIRKS="limited-quirks"})(yo||(yo={}));var we;(function(t){t.A="a",t.ADDRESS="address",t.ANNOTATION_XML="annotation-xml",t.APPLET="applet",t.AREA="area",t.ARTICLE="article",t.ASIDE="aside",t.B="b",t.BASE="base",t.BASEFONT="basefont",t.BGSOUND="bgsound",t.BIG="big",t.BLOCKQUOTE="blockquote",t.BODY="body",t.BR="br",t.BUTTON="button",t.CAPTION="caption",t.CENTER="center",t.CODE="code",t.COL="col",t.COLGROUP="colgroup",t.DD="dd",t.DESC="desc",t.DETAILS="details",t.DIALOG="dialog",t.DIR="dir",t.DIV="div",t.DL="dl",t.DT="dt",t.EM="em",t.EMBED="embed",t.FIELDSET="fieldset",t.FIGCAPTION="figcaption",t.FIGURE="figure",t.FONT="font",t.FOOTER="footer",t.FOREIGN_OBJECT="foreignObject",t.FORM="form",t.FRAME="frame",t.FRAMESET="frameset",t.H1="h1",t.H2="h2",t.H3="h3",t.H4="h4",t.H5="h5",t.H6="h6",t.HEAD="head",t.HEADER="header",t.HGROUP="hgroup",t.HR="hr",t.HTML="html",t.I="i",t.IMG="img",t.IMAGE="image",t.INPUT="input",t.IFRAME="iframe",t.KEYGEN="keygen",t.LABEL="label",t.LI="li",t.LINK="link",t.LISTING="listing",t.MAIN="main",t.MALIGNMARK="malignmark",t.MARQUEE="marquee",t.MATH="math",t.MENU="menu",t.META="meta",t.MGLYPH="mglyph",t.MI="mi",t.MO="mo",t.MN="mn",t.MS="ms",t.MTEXT="mtext",t.NAV="nav",t.NOBR="nobr",t.NOFRAMES="noframes",t.NOEMBED="noembed",t.NOSCRIPT="noscript",t.OBJECT="object",t.OL="ol",t.OPTGROUP="optgroup",t.OPTION="option",t.P="p",t.PARAM="param",t.PLAINTEXT="plaintext",t.PRE="pre",t.RB="rb",t.RP="rp",t.RT="rt",t.RTC="rtc",t.RUBY="ruby",t.S="s",t.SCRIPT="script",t.SEARCH="search",t.SECTION="section",t.SELECT="select",t.SOURCE="source",t.SMALL="small",t.SPAN="span",t.STRIKE="str
91ike",t.STRONG="strong",t.STYLE="style",t.SUB="sub",t.SUMMARY="summary",t.SUP="sup",t.TABLE="table",t.TBODY="tbody",t.TEMPLATE="template",t.TEXTAREA="textarea",t.TFOOT="tfoot",t.TD="td",t.TH="th",t.THEAD="thead",t.TITLE="title",t.TR="tr",t.TRACK="track",t.TT="tt",t.U="u",t.UL="ul",t.SVG="svg",t.VAR="var",t.WBR="wbr",t.XMP="xmp"})(we||(we={}));var M;(function(t){t[t.UNKNOWN=0]="UNKNOWN",t[t.A=1]="A",t[t.ADDRESS=2]="ADDRESS",t[t.ANNOTATION_XML=3]="ANNOTATION_XML",t[t.APPLET=4]="APPLET",t[t.AREA=5]="AREA",t[t.ARTICLE=6]="ARTICLE",t[t.ASIDE=7]="ASIDE",t[t.B=8]="B",t[t.BASE=9]="BASE",t[t.BASEFONT=10]="BASEFONT",t[t.BGSOUND=11]="BGSOUND",t[t.BIG=12]="BIG",t[t.BLOCKQUOTE=13]="BLOCKQUOTE",t[t.BODY=14]="BODY",t[t.BR=15]="BR",t[t.BUTTON=16]="BUTTON",t[t.CAPTION=17]="CAPTION",t[t.CENTER=18]="CENTER",t[t.CODE=19]="CODE",t[t.COL=20]="COL",t[t.COLGROUP=21]="COLGROUP",t[t.DD=22]="DD",t[t.DESC=23]="DESC",t[t.DETAILS=24]="DETAILS",t[t.DIALOG=25]="DIALOG",t[t.DIR=26]="DIR",t[t.DIV=27]="DIV",t[t.DL=28]="DL",t[t.DT=29]="DT",t[t.EM=30]="EM",t[t.EMBED=31]="EMBED",t[t.FIELDSET=32]="FIELDSET",t[t.FIGCAPTION=33]="FIGCAPTION",t[t.FIGURE=34]="FIGURE",t[t.FONT=35]="FONT",t[t.FOOTER=36]="FOOTER",t[t.FOREIGN_OBJECT=37]="FOREIGN_OBJECT",t[t.FORM=38]="FORM",t[t.FRAME=39]="FRAME",t[t.FRAMESET=40]="FRAMESET",t[t.H1=41]="H1",t[t.H2=42]="H2",t[t.H3=43]="H3",t[t.H4=44]="H4",t[t.H5=45]="H5",t[t.H6=46]="H6",t[t.HEAD=47]="HEAD",t[t.HEADER=48]="HEADER",t[t.HGROUP=49]="HGROUP",t[t.HR=50]="HR",t[t.HTML=51]="HTML",t[t.I=52]="I",t[t.IMG=53]="IMG",t[t.IMAGE=54]="IMAGE",t[t.INPUT=55]="INPUT",t[t.IFRAME=56]="IFRAME",t[t.KEYGEN=57]="KEYGEN",t[t.LABEL=58]="LABEL",t[t.LI=59]="LI",t[t.LINK=60]="LINK",t[t.LISTING=61]="LISTING",t[t.MAIN=62]="MAIN",t[t.MALIGNMARK=63]="MALIGNMARK",t[t.MARQUEE=64]="MARQUEE",t[t.MATH=65]="MATH",t[t.MENU=66]="MENU",t[t.META=67]="META",t[t.MGLYPH=68]="MGLYPH",t[t.MI=69]="MI",t[t.MO=70]="MO",t[t.MN=71]="MN",t[t.MS=72]="MS",t[t.MTEXT=73]="MTEXT",t[t.NAV=74]="NAV",t[t.NOBR=75]="NOBR",t[t.NOFRAMES=76]="NOFRAMES",t[t.NOEMBED=77]="NOEMBED",t[t.NOSCRIPT=78]="NOSCRIPT",t[t.OBJECT=79]="OBJECT",t[t.OL=80]="OL",t[t.OPTGROUP=81]="OPTGROUP",t[t.OPTION=82]="OPTION",t[t.P=83]="P",t[t.PARAM=84]="PARAM",t[t.PLAINTEXT=85]="PLAINTEXT",t[t.PRE=86]="PRE",t[t.RB=87]="RB",t[t.RP=88]="RP",t[t.RT=89]="RT",t[t.RTC=90]="RTC",t[t.RUBY=91]="RUBY",t[t.S=92]="S",t[t.SCRIPT=93]="SCRIPT",t[t.SEARCH=94]="SEARCH",t[t.SECTION=95]="SECTION",t[t.SELECT=96]="SELECT",t[t.SOURCE=97]="SOURCE",t[t.SMALL=98]="SMALL",t[t.SPAN=99]="SPAN",t[t.STRIKE=100]="STRIKE",t[t.STRONG=101]="STRONG",t[t.STYLE=102]="STYLE",t[t.SUB=103]="SUB",t[t.SUMMARY=104]="SUMMARY",t[t.SUP=105]="SUP",t[t.TABLE=106]="TABLE",t[t.TBODY=107]="TBODY",t[t.TEMPLATE=108]="TEMPLATE",t[t.TEXTAREA=109]="TEXTAREA",t[t.TFOOT=110]="TFOOT",t[t.TD=111]="TD",t[t.TH=112]="TH",t[t.THEAD=113]="THEAD",t[t.TITLE=114]="TITLE",t[t.TR=115]="TR",t[t.TRACK=116]="TRACK",t[t.TT=117]="TT",t[t.U=118]="U",t[t.UL=119]="UL",t[t.SVG=120]="SVG",t[t.VAR=121]="VAR",t[t.WBR=122]="WBR",t[t.XMP=123]="XMP"})(M||(M={}));const MHe=new Map([[we.A,M.A],[we.ADDRESS,M.ADDRESS],[we.ANNOTATION_XML,M.ANNOTATION_XML],[we.APPLET,M.APPLET],[we.AREA,M.AREA],[we.ARTICLE,M.ARTICLE],[we.ASIDE,M.ASIDE],[we.B,M.B],[we.BASE,M.BASE],[we.BASEFONT,M.BASEFONT],[we.BGSOUND,M.BGSOUND],[we.BIG,M.BIG],[we.BLOCKQUOTE,M.BLOCKQUOTE],[we.BODY,M.BODY],[we.BR,M.BR],[we.BUTTON,M.BUTTON],[we.CAPTION,M.CAPTION],[we.CENTER,M.CENTER],[we.CODE,M.CODE],[we.COL,M.COL],[we.COLGROUP,M.COLGROUP],[we.DD,M.DD],[we.DESC,M.DESC],[we.DETAILS,M.DETAILS],[we.DIALOG,M.DIALOG],[we.DIR,M.DIR],[we.DIV,M.DIV],[we.DL,M.DL],[we.DT,M.DT],[we.EM,M.EM],[we.EMBED,M.EMBED],[we.FIELDSET,M.FIELDSET],[we.FIGCAPTION,M.FIGCAPTION],[we.FIGURE,M.FIGURE],[we.FONT,M.FONT],[we.FOOTER,M.FOOTER],[we.FOREIGN_OBJECT,M.FOREIGN_OBJECT],[we.FORM,M.FORM],[we.FRAME,M.FRAME],[we.FRAMESET,M.FRAMESET],[we.H1,M.H1],[we.H2,M.H2],[we.H3,M.H3],[we.H4,M.H4],[we.H5,M.H5],[we.H6,M.H6],[we.HEAD,M.HEAD],[we.HEADER,M.HEADER],[we.HGROUP,M.HGROUP],[we.HR,M.HR],[we.HTML,M.HTML],[we.I,M.I],[we.IMG,M.IMG],[we.IMAGE,M.IMAGE],[we.INPUT,M.INPUT],[we.IFRAME,M.IFRAME],[we.KEYGEN,M.KEYGEN],[we.LABEL,M.LABEL],[we.LI,M.LI],[we.LINK,M.LINK],[we.LISTING,M.LISTING],[we.MAIN,M.MAIN],[we.MALIGNMARK,M.MALIGNMARK],[we.MARQUEE,M.MARQUEE],[we.MATH,M.MATH],[we.MENU,M.MENU],[we.META,M.META],[we.MGLYPH,M.MGLYPH],[we.MI,M.MI],[we.MO,M.MO],[we.MN,M.MN],[we.MS,M.MS],[we.MTEXT,M.MTEXT],[we.NAV,M.NAV],[we.NOBR,M.NOBR],[we.NOFRAMES,M.NOFRAMES],[we.NOEMBED,M.NOEMBED],[we.NOSCRIPT,M.NOSCRIPT],[we.OBJECT,M.OBJECT],[we.OL,M.OL],[we.OPTGROUP,M.OPTGROUP],[we.OPTION,M.OPTION],[we.P,M.P],[we.PARAM,M.PARAM],[we.PLAINTEXT,M.PLAINTEXT],[we.PRE,M.PRE],[we.RB,M.RB],[we.RP,M.RP],[we.RT,M.RT],[we.RTC,M.RTC],[we.RUBY,M.RUBY],[we.S,M.S],[we.SCRIPT,M.SCRIPT],[we.SEARCH,M.SEARCH],[we.SECTION,M.SECTION],[we.SELECT,M.SELECT],[we.SOURCE,M.SOURCE],[we.SMALL,M.SMALL],[we.SPAN,M.SPAN],[we.STRIKE,M.STRIKE],[we.STRONG,M.STRONG],[we.STYLE,M.STYLE],[we.SUB,M.SUB],[we.SUMMARY,M.SUMMARY],[we.SUP,M.SUP],[we.TABLE,M.TABLE],[we.TBODY,M.TBODY],[we.TEMPLATE,M.TEMPLATE],[we.TEXTAREA,M.TEXTAREA],[we.TFOOT,M.TFOOT],[we.TD,M.TD],[we.TH,M.TH],[we.THEAD,M.THEAD],[we.TITLE,M.TITLE],[we.TR,M.TR],[we.TRACK,M.TRACK],[we.TT,M.TT],[we.U,M.U],[we.UL,M.UL],[we.SVG,M.SVG],[we.VAR,M.VAR
vendor: 140,225 bytes, lines 91-104
91],[we.WBR,M.WBR],[we.XMP,M.XMP]]);function B0(t){var e;return(e=MHe.get(t))!==null&&e!==void 0?e:M.UNKNOWN}const We=M,DHe={[je.HTML]:new Set([We.ADDRESS,We.APPLET,We.AREA,We.ARTICLE,We.ASIDE,We.BASE,We.BASEFONT,We.BGSOUND,We.BLOCKQUOTE,We.BODY,We.BR,We.BUTTON,We.CAPTION,We.CENTER,We.COL,We.COLGROUP,We.DD,We.DETAILS,We.DIR,We.DIV,We.DL,We.DT,We.EMBED,We.FIELDSET,We.FIGCAPTION,We.FIGURE,We.FOOTER,We.FORM,We.FRAME,We.FRAMESET,We.H1,We.H2,We.H3,We.H4,We.H5,We.H6,We.HEAD,We.HEADER,We.HGROUP,We.HR,We.HTML,We.IFRAME,We.IMG,We.INPUT,We.LI,We.LINK,We.LISTING,We.MAIN,We.MARQUEE,We.MENU,We.META,We.NAV,We.NOEMBED,We.NOFRAMES,We.NOSCRIPT,We.OBJECT,We.OL,We.P,We.PARAM,We.PLAINTEXT,We.PRE,We.SCRIPT,We.SECTION,We.SELECT,We.SOURCE,We.STYLE,We.SUMMARY,We.TABLE,We.TBODY,We.TD,We.TEMPLATE,We.TEXTAREA,We.TFOOT,We.TH,We.THEAD,We.TITLE,We.TR,We.TRACK,We.UL,We.WBR,We.XMP]),[je.MATHML]:new Set([We.MI,We.MO,We.MN,We.MS,We.MTEXT,We.ANNOTATION_XML]),[je.SVG]:new Set([We.TITLE,We.FOREIGN_OBJECT,We.DESC]),[je.XLINK]:new Set,[je.XML]:new Set,[je.XMLNS]:new Set},mP=new Set([We.H1,We.H2,We.H3,We.H4,We.H5,We.H6]);we.STYLE,we.SCRIPT,we.XMP,we.IFRAME,we.NOEMBED,we.NOFRAMES,we.PLAINTEXT;var le;(function(t){t[t.DATA=0]="DATA",t[t.RCDATA=1]="RCDATA",t[t.RAWTEXT=2]="RAWTEXT",t[t.SCRIPT_DATA=3]="SCRIPT_DATA",t[t.PLAINTEXT=4]="PLAINTEXT",t[t.TAG_OPEN=5]="TAG_OPEN",t[t.END_TAG_OPEN=6]="END_TAG_OPEN",t[t.TAG_NAME=7]="TAG_NAME",t[t.RCDATA_LESS_THAN_SIGN=8]="RCDATA_LESS_THAN_SIGN",t[t.RCDATA_END_TAG_OPEN=9]="RCDATA_END_TAG_OPEN",t[t.RCDATA_END_TAG_NAME=10]="RCDATA_END_TAG_NAME",t[t.RAWTEXT_LESS_THAN_SIGN=11]="RAWTEXT_LESS_THAN_SIGN",t[t.RAWTEXT_END_TAG_OPEN=12]="RAWTEXT_END_TAG_OPEN",t[t.RAWTEXT_END_TAG_NAME=13]="RAWTEXT_END_TAG_NAME",t[t.SCRIPT_DATA_LESS_THAN_SIGN=14]="SCRIPT_DATA_LESS_THAN_SIGN",t[t.SCRIPT_DATA_END_TAG_OPEN=15]="SCRIPT_DATA_END_TAG_OPEN",t[t.SCRIPT_DATA_END_TAG_NAME=16]="SCRIPT_DATA_END_TAG_NAME",t[t.SCRIPT_DATA_ESCAPE_START=17]="SCRIPT_DATA_ESCAPE_START",t[t.SCRIPT_DATA_ESCAPE_START_DASH=18]="SCRIPT_DATA_ESCAPE_START_DASH",t[t.SCRIPT_DATA_ESCAPED=19]="SCRIPT_DATA_ESCAPED",t[t.SCRIPT_DATA_ESCAPED_DASH=20]="SCRIPT_DATA_ESCAPED_DASH",t[t.SCRIPT_DATA_ESCAPED_DASH_DASH=21]="SCRIPT_DATA_ESCAPED_DASH_DASH",t[t.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN=22]="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN",t[t.SCRIPT_DATA_ESCAPED_END_TAG_OPEN=23]="SCRIPT_DATA_ESCAPED_END_TAG_OPEN",t[t.SCRIPT_DATA_ESCAPED_END_TAG_NAME=24]="SCRIPT_DATA_ESCAPED_END_TAG_NAME",t[t.SCRIPT_DATA_DOUBLE_ESCAPE_START=25]="SCRIPT_DATA_DOUBLE_ESCAPE_START",t[t.SCRIPT_DATA_DOUBLE_ESCAPED=26]="SCRIPT_DATA_DOUBLE_ESCAPED",t[t.SCRIPT_DATA_DOUBLE_ESCAPED_DASH=27]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH",t[t.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH=28]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH",t[t.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN=29]="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN",t[t.SCRIPT_DATA_DOUBLE_ESCAPE_END=30]="SCRIPT_DATA_DOUBLE_ESCAPE_END",t[t.BEFORE_ATTRIBUTE_NAME=31]="BEFORE_ATTRIBUTE_NAME",t[t.ATTRIBUTE_NAME=32]="ATTRIBUTE_NAME",t[t.AFTER_ATTRIBUTE_NAME=33]="AFTER_ATTRIBUTE_NAME",t[t.BEFORE_ATTRIBUTE_VALUE=34]="BEFORE_ATTRIBUTE_VALUE",t[t.ATTRIBUTE_VALUE_DOUBLE_QUOTED=35]="ATTRIBUTE_VALUE_DOUBLE_QUOTED",t[t.ATTRIBUTE_VALUE_SINGLE_QUOTED=36]="ATTRIBUTE_VALUE_SINGLE_QUOTED",t[t.ATTRIBUTE_VALUE_UNQUOTED=37]="ATTRIBUTE_VALUE_UNQUOTED",t[t.AFTER_ATTRIBUTE_VALUE_QUOTED=38]="AFTER_ATTRIBUTE_VALUE_QUOTED",t[t.SELF_CLOSING_START_TAG=39]="SELF_CLOSING_START_TAG",t[t.BOGUS_COMMENT=40]="BOGUS_COMMENT",t[t.MARKUP_DECLARATION_OPEN=41]="MARKUP_DECLARATION_OPEN",t[t.COMMENT_START=42]="COMMENT_START",t[t.COMMENT_START_DASH=43]="COMMENT_START_DASH",t[t.COMMENT=44]="COMMENT",t[t.COMMENT_LESS_THAN_SIGN=45]="COMMENT_LESS_THAN_SIGN",t[t.COMMENT_LESS_THAN_SIGN_BANG=46]="COMMENT_LESS_THAN_SIGN_BANG",t[t.COMMENT_LESS_THAN_SIGN_BANG_DASH=47]="COMMENT_LESS_THAN_SIGN_BANG_DASH",t[t.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH=48]="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH",t[t.COMMENT_END_DASH=49]="COMMENT_END_DASH",t[t.COMMENT_END=50]="COMMENT_END",t[t.COMMENT_END_BANG=51]="COMMENT_END_BANG",t[t.DOCTYPE=52]="DOCTYPE",t[t.BEFORE_DOCTYPE_NAME=53]="BEFORE_DOCTYPE_NAME",t[t.DOCTYPE_NAME=54]="DOCTYPE_NAME",t[t.AFTER_DOCTYPE_NAME=55]="AFTER_DOCTYPE_NAME",t[t.AFTER_DOCTYPE_PUBLIC_KEYWORD=56]="AFTER_DOCTYPE_PUBLIC_KEYWORD",t[t.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER=57]="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER",t[t.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED=58]="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED",t[t.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED=59]="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED",t[t.AFTER_DOCTYPE_PUBLIC_IDENTIFIER=60]="AFTER_DOCTYPE_PUBLIC_IDENTIFIER",t[t.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS=61]="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS",t[t.AFTER_DOCTYPE_SYSTEM_KEYWORD=62]="AFTER_DOCTYPE_SYSTEM_KEYWORD",t[t.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER=63]="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER",t[t.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED=64]="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED",t[t.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED=65]="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED",t[t.AFTER_DOCTYPE_SYSTEM_IDENTIFIER=66]="AFTER_DOCTYPE_SYSTEM_IDENTIFIER",t[t.BOGUS_DOCTYPE=67]="BOGUS_DOCTYPE",t[t.CDATA_SECTION=68]="CDATA_SECTION",t[t.CDATA_SECTION_BRACKET=69]="CDATA_SECTION_BRACKET",t[t.CDATA_SECTION_END=70]="CDATA_SECTION_END",t[t.CHARACTER_REFERENCE=71]="CHARACTER_REFERENCE",t[t.AMBIGUOUS_AMPERSAND=72]="AMBIGUOUS_AMPERSAND"})(le||(le={}));const Zr={DATA:le.DATA,RCDATA:le.RCDATA,RAWTEXT:le.RAWTEXT,SCRIPT_DATA:le.SCRIPT_DATA,PLAINTEXT:le.PLAINTEXT,CDATA_SECTION:le.CDATA_SECTION};function PHe(t){return t>=ie.DIGIT_0&&t<=ie.DIGIT_9}function By(t){return t>=ie.LATIN_CAPITAL_A&&t<=ie.LATIN_CAPITAL_Z}function LHe(t){return t>=ie.LATIN_SMALL_A&&t<=ie.LATIN_SMALL_Z}function Od(t){return LHe(t)||By(t)}function MY(t){return Od(t)||PHe(t)}function px(t){return t+32}function Yfe(t){return t===ie.SPACE||t===ie.LINE_FEED||t===ie.TABULATION||t===ie.FORM_FEED}function DY(t){return Yfe(t)||t===ie.SOLIDUS||t===ie.GREATER_THAN_SIGN}function $He(t){return t===ie.NULL?De.nullCharacterReference:t>1114111?De.characterReferenceOutsideUnicodeRange:Vfe(t)?De.surrogateCharacterReference:Gfe(t)?De.noncharacterCharacterReference:qfe(t)||t===ie.CARRIAGE_RETURN?De.controlCharacterReference:null}class FHe{constructor(e,n){this.options=e,this.handler=n,this.paused=!1,this.inLoop=!1,this.inForeignNode=!1,this.lastStartTagName="",this.active=!1,this.state=le.DATA,this.returnState=le.DATA,this.entityStartPos=0,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new wHe(n),this.currentLocation=this.getCurrentLocation(-1),this.entityDecoder=new kHe(SHe,(r,i)=>{this.preprocessor.pos=this.entityStartPos+i-1,this._flushCodePointConsumedAsCharacterReference(r)},n.onParseError?{missingSemicolonAfterCharacterReference:()=>{this._err(De.missingSemicolonAfterCharacterReference,1)},absenceOfDigitsInNumericCharacterReference:r=>{this._err(De.absenceOfDigitsInNumericCharacterReference,this.entityStartPos-this.preprocessor.pos+r)},validateNumericCharacterReference:r=>{const i=$He(r);i&&this._err(i,1)}}:void 0)}_err(e,n=0){var r,i;(i=(r=this.handler).onParseError)===null||i===void 0||i.call(r,this.preprocessor.getError(e,n))}getCurrentLocation(e){return this.options.sourceCodeLocationInfo?{startLine:this.preprocessor.line,startCol:this.preprocessor.col-e,startOffset:this.preprocessor.offset-e,endLine:-1,endCol:-1,endOffset:-1}:null}_runParsingLoop(){if(!this.inLoop){for(this.inLoop=!0;this.active&&!this.paused;){this.consumedAfterSnapshot=0;const e=this._consume();this._ensureHibernation()||this._callState(e)}this.inLoop=!1}}pause(){this.paused=!0}resume(e){if(!this.paused)throw new Error("Parser was already resumed");this.paused=!1,!this.inLoop&&(this._runParsingLoop(),this.paused||e?.())}write(e,n,r){this.active=!0,this.preprocessor.write(e,n),this._runParsingLoop(),this.paused||r?.()}insertHtmlAtCurrentPos(e){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(e),this._runParsingLoop()}_ensureHibernation(){return this.preprocessor.endOfChunkHit?(this.preprocessor.retreat(this.consumedAfterSnapshot),this.consumedAfterSnapshot=0,this.active=!1,!0):!1}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_advanceBy(e){this.consumedAfterSnapshot+=e;for(let n=0;n<e;n++)this.preprocessor.advance()}_consumeSequenceIfMatch(e,n){return this.preprocessor.startsWith(e,n)?(this._advanceBy(e.length-1),!0):!1}_createStartTagToken(){this.currentToken={type:on.START_TAG,tagName:"",tagID:M.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(1)}}_createEndTagToken(){this.currentToken={type:on.END_TAG,tagName:"",tagID:M.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(2)}}_createCommentToken(e){this.currentToken={type:on.COMMENT,data:"",location:this.getCurrentLocation(e)}}_createDoctypeToken(e){this.currentToken={type:on.DOCTYPE,name:e,forceQuirks:!1,publicId:null,systemId:null,location:this.currentLocation}}_createCharacterToken(e,n){this.currentCharacterToken={type:e,chars:n,location:this.currentLocation}}_createAttr(e){this.currentAttr={name:e,value:""},this.currentLocation=this.getCurrentLocation(0)}_leaveAttrName(){var e,n;const r=this.currentToken;if(Wfe(r,this.currentAttr.name)===null){if(r.attrs.push(this.currentAttr),r.location&&this.currentLocation){const i=(e=(n=r.location).attrs)!==null&&e!==void 0?e:n.attrs=Object.create(null);i[this.currentAttr.name]=this.currentLocation,this._leaveAttrValue()}}else this._err(De.duplicateAttribute)}_leaveAttrValue(){this.currentLocation&&(this.currentLocation.endLine=this.preprocessor.line,this.currentLocation.endCol=this.preprocessor.col,this.currentLocation.endOffset=this.preprocessor.offset)}prepareToken(e){this._emitCurrentCharacterToken(e.location),this.currentToken=null,e.location&&(e.location.endLine=this.preprocessor.line,e.location.endCol=this.preprocessor.col+1,e.location.endOffset=this.preprocessor.offset+1),this.currentLocation=this.getCurrentLocation(-1)}emitCurrentTagToken(){const e=this.currentToken;this.prepareToken(e),e.tagID=B0(e.tagName),e.type===on.START_TAG?(this.lastStartTagName=e.tagName,this.handler.onStartTag(e)):(e.attrs.length>0&&this._err(De.endTagWithAttributes),e.selfClosing&&this._err(De.endTagWithTrailingSolidus),this.handler.onEndTag(e)),this.preprocessor.dropParsedChunk()}emitCurrentComment(e){this.prepareToken(e),this.handler.onComment(e),this.preprocessor.dropParsedChunk()}emitCurrentDoctype(e){this.prepareToken(e),this.handler.onDoctype(e),this.preprocessor.dropParsedChunk()}_emitCurrentCharacterToken(e){if(this.currentCharacterToken){switch(e&&this.currentCharacterToken.location&&(this.currentCharacterToken.location.endLine=e.startLine,this.currentCharacterToken.location.endCol=e.startCol,this.currentCharacterToken.location.endOffset=e.startOffset),this.currentCharacterToken.type){case on.CHARACTER:{this.handler.onCharacter(this.currentCharacterToken);break}case on.NULL_CHARACTER:{this.handler.onNullCharacter(this.currentCharacterToken);break}case on.WHITESPACE_CHARACTER:{this.handler.onWhitespaceCharacter(this.currentCharacterToken);break}}this.currentCharacterToken=null}}_emitEOFToken(){const e=this.getCurrentLocation(0);e&&(e.endLine=e.startLine,e.endCol=e.startCol,e.endOffset=e.startOffset),this._emitCurrentCharacterToken(e),this.handler.onEof({type:on.EOF,location:e}),this.active=!1}_appendCharToCurrentCharacterToken(e,n){if(this.currentCharacterToken)if(this.currentCharacterToken.type===e){this.currentCharacterToken.chars+=n;return}else this.currentLocation=this.getCurrentLocation(0),this._emitCurrentCharacterToken(this.currentLocation),this.preprocessor.dropParsedChunk();this._createCharacterToken(e,n)}_emitCodePoint(e){const n=Yfe(e)?on.WHITESPACE_CHARACTER:e===ie.NULL?on.NULL_CHARACTER:on.CHARACTER;this._appendCharToCurrentCharacterToken(n,String.fromCodePoint(e))}_emitChars(e){this._appendCharToCurrentCharacterToken(on.CHARACTER,e)}_startCharacterReference(){this.returnState=this.state,this.state=le.CHARACTER_REFERENCE,this.entityStartPos=this.preprocessor.pos,this.entityDecoder.startEntity(this._isCharacterReferenceInAttribute()?gc.Attribute:gc.Legacy)}_isCharacterReferenceInAttribute(){return this.returnState===le.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===le.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===le.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(e){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(e):this._emitCodePoint(e)}_callState(e){switch(this.state){case le.DATA:{this._stateData(e);break}case le.RCDATA:{this._stateRcdata(e);break}case le.RAWTEXT:{this._stateRawtext(e);break}case le.SCRIPT_DATA:{this._stateScriptData(e);break}case le.PLAINTEXT:{this._statePlaintext(e);break}case le.TAG_OPEN:{this._stateTagOpen(e);break}case le.END_TAG_OPEN:{this._stateEndTagOpen(e);break}case le.TAG_NAME:{this._stateTagName(e);break}case le.RCDATA_LESS_THAN_SIGN:{this._stateRcdataLessThanSign(e);break}case le.RCDATA_END_TAG_OPEN:{this._stateRcdataEndTagOpen(e);break}case le.RCDATA_END_TAG_NAME:{this._stateRcdataEndTagName(e);break}case le.RAWTEXT_LESS_THAN_SIGN:{this._stateRawtextLessThanSign(e);break}case le.RAWTEXT_END_TAG_OPEN:{this._stateRawtextEndTagOpen(e);break}case le.RAWTEXT_END_TAG_NAME:{this._stateRawtextEndTagName(e);break}case le.SCRIPT_DATA_LESS_THAN_SIGN:{this._stateScriptDataLessThanSign(e);break}case le.SCRIPT_DATA_END_TAG_OPEN:{this._stateScriptDataEndTagOpen(e);break}case le.SCRIPT_DATA_END_TAG_NAME:{this._stateScriptDataEndTagName(e);break}case le.SCRIPT_DATA_ESCAPE_START:{this._stateScriptDataEscapeStart(e);break}case le.SCRIPT_DATA_ESCAPE_START_DASH:{this._stateScriptDataEscapeStartDash(e);break}case le.SCRIPT_DATA_ESCAPED:{this._stateScriptDataEscaped(e);break}case le.SCRIPT_DATA_ESCAPED_DASH:{this._stateScriptDataEscapedDash(e);break}case le.SCRIPT_DATA_ESCAPED_DASH_DASH:{this._stateScriptDataEscapedDashDash(e);break}case le.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataEscapedLessThanSign(e);break}case le.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:{this._stateScriptDataEscapedEndTagOpen(e);break}case le.SCRIPT_DATA_ESCAPED_END_TAG_NAME:{this._stateScriptDataEscapedEndTagName(e);break}case le.SCRIPT_DATA_DOUBLE_ESCAPE_START:{this._stateScriptDataDoubleEscapeStart(e);break}case le.SCRIPT_DATA_DOUBLE_ESCAPED:{this._stateScriptDataDoubleEscaped(e);break}case le.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:{this._stateScriptDataDoubleEscapedDash(e);break}case le.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:{this._stateScriptDataDoubleEscapedDashDash(e);break}case le.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataDoubleEscapedLessThanSign(e);break}case le.SCRIPT_DATA_DOUBLE_ESCAPE_END:{this._stateScriptDataDoubleEscapeEnd(e);break}case le.BEFORE_ATTRIBUTE_NAME:{this._stateBeforeAttributeName(e);break}case le.ATTRIBUTE_NAME:{this._stateAttributeName(e);break}case le.AFTER_ATTRIBUTE_NAME:{this._stateAfterAttributeName(e);break}case le.BEFORE_ATTRIBUTE_VALUE:{this._stateBeforeAttributeValue(e);break}case le.ATTRIBUTE_VALUE_DOUBLE_QUOTED:{this._stateAttributeValueDoubleQuoted(e);break}case le.ATTRIBUTE_VALUE_SINGLE_QUOTED:{this._stateAttributeValueSingleQuoted(e);break}case le.ATTRIBUTE_VALUE_UNQUOTED:{this._stateAttributeValueUnquoted(e);break}case le.AFTER_ATTRIBUTE_VALUE_QUOTED:{this._stateAfterAttributeValueQuoted(e);break}case le.SELF_CLOSING_START_TAG:{this._stateSelfClosingStartTag(e);break}case le.BOGUS_COMMENT:{this._stateBogusComment(e);break}case le.MARKUP_DECLARATION_OPEN:{this._stateMarkupDeclarationOpen(e);break}case le.COMMENT_START:{this._stateCommentStart(e);break}case le.COMMENT_START_DASH:{this._stateCommentStartDash(e);break}case le.COMMENT:{this._stateComment(e);break}case le.COMMENT_LESS_THAN_SIGN:{this._stateCommentLessThanSign(e);break}case le.COMMENT_LESS_THAN_SIGN_BANG:{this._stateCommentLessThanSignBang(e);break}case le.COMMENT_LESS_THAN_SIGN_BANG_DASH:{this._stateCommentLessThanSignBangDash(e);break}case le.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:{this._stateCommentLessThanSignBangDashDash(e);break}case le.COMMENT_END_DASH:{this._stateCommentEndDash(e);break}case le.COMMENT_END:{this._stateCommentEnd(e);break}case le.COMMENT_END_BANG:{this._stateCommentEndBang(e);break}case le.DOCTYPE:{this._stateDoctype(e);break}case le.BEFORE_DOCTYPE_NAME:{this._stateBeforeDoctypeName(e);break}case le.DOCTYPE_NAME:{this._stateDoctypeName(e);break}case le.AFTER_DOCTYPE_NAME:{this._stateAfterDoctypeName(e);break}case le.AFTER_DOCTYPE_PUBLIC_KEYWORD:{this._stateAfterDoctypePublicKeyword(e);break}case le.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateBeforeDoctypePublicIdentifier(e);break}case le.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypePublicIdentifierDoubleQuoted(e);break}case le.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypePublicIdentifierSingleQuoted(e);break}case le.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateAfterDoctypePublicIdentifier(e);break}case le.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:{this._stateBetweenDoctypePublicAndSystemIdentifiers(e);break}case le.AFTER_DOCTYPE_SYSTEM_KEYWORD:{this._stateAfterDoctypeSystemKeyword(e);break}case le.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateBeforeDoctypeSystemIdentifier(e);break}case le.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypeSystemIdentifierDoubleQuoted(e);break}case le.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypeSystemIdentifierSingleQuoted(e);break}case le.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateAfterDoctypeSystemIdentifier(e);break}case le.BOGUS_DOCTYPE:{this._stateBogusDoctype(e);break}case le.CDATA_SECTION:{this._stateCdataSection(e);break}case le.CDATA_SECTION_BRACKET:{this._stateCdataSectionBracket(e);break}case le.CDATA_SECTION_END:{this._stateCdataSectionEnd(e);break}case le.CHARACTER_REFERENCE:{this._stateCharacterReference();break}case le.AMBIGUOUS_AMPERSAND:{this._stateAmbiguousAmpersand(e);break}default:throw new Error("Unknown state")}}_stateData(e){switch(e){case ie.LESS_THAN_SIGN:{this.state=le.TAG_OPEN;break}case ie.AMPERSAND:{this._startCharacterReference();break}case ie.NULL:{this._err(De.unexpectedNullCharacter),this._emitCodePoint(e);break}case ie.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(e)}}_stateRcdata(e){switch(e){case ie.AMPERSAND:{this._startCharacterReference();break}case ie.LESS_THAN_SIGN:{this.state=le.RCDATA_LESS_THAN_SIGN;break}case ie.NULL:{this._err(De.unexpectedNullCharacter),this._emitChars(Er);break}case ie.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(e)}}_stateRawtext(e){switch(e){case ie.LESS_THAN_SIGN:{this.state=le.RAWTEXT_LESS_THAN_SIGN;break}case ie.NULL:{this._err(De.unexpectedNullCharacter),this._emitChars(Er);break}case ie.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(e)}}_stateScriptData(e){switch(e){case ie.LESS_THAN_SIGN:{this.state=le.SCRIPT_DATA_LESS_THAN_SIGN;break}case ie.NULL:{this._err(De.unexpectedNullCharacter),this._emitChars(Er);break}case ie.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(e)}}_statePlaintext(e){switch(e){case ie.NULL:{this._err(De.unexpectedNullCharacter),this._emitChars(Er);break}case ie.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(e)}}_stateTagOpen(e){if(Od(e))this._createStartTagToken(),this.state=le.TAG_NAME,this._stateTagName(e);else switch(e){case ie.EXCLAMATION_MARK:{this.state=le.MARKUP_DECLARATION_OPEN;break}case ie.SOLIDUS:{this.state=le.END_TAG_OPEN;break}case ie.QUESTION_MARK:{this._err(De.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=le.BOGUS_COMMENT,this._stateBogusComment(e);break}case ie.EOF:{this._err(De.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break}default:this._err(De.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=le.DATA,this._stateData(e)}}_stateEndTagOpen(e){if(Od(e))this._createEndTagToken(),this.state=le.TAG_NAME,this._stateTagName(e);else switch(e){case ie.GREATER_THAN_SIGN:{this._err(De.missingEndTagName),this.state=le.DATA;break}case ie.EOF:{this._err(De.eofBeforeTagName),this._emitChars("</"),this._emitEOFToken();break}default:this._err(De.invalidFirstCharacterOfTagName),this._createCommentToken(2),this.state=le.BOGUS_COMMENT,this._stateBogusComment(e)}}_stateTagName(e){const n=this.currentToken;switch(e){case ie.SPACE:case ie.LINE_FEED:case ie.TABULATION:case ie.FORM_FEED:{this.state=le.BEFORE_ATTRIBUTE_NAME;break}case ie.SOLIDUS:{this.state=le.SELF_CLOSING_START_TAG;break}case ie.GREATER_THAN_SIGN:{this.state=le.DATA,this.emitCurrentTagToken();break}case ie.NULL:{this._err(De.unexpectedNullCharacter),n.tagName+=Er;break}case ie.EOF:{this._err(De.eofInTag),this._emitEOFToken();break}default:n.tagName+=String.fromCodePoint(By(e)?px(e):e)}}_stateRcdataLessThanSign(e){e===ie.SOLIDUS?this.state=le.RCDATA_END_TAG_OPEN:(this._emitChars("<"),this.state=le.RCDATA,this._stateRcdata(e))}_stateRcdataEndTagOpen(e){Od(e)?(this.state=le.RCDATA_END_TAG_NAME,this._stateRcdataEndTagName(e)):(this._emitChars("</"),this.state=le.RCDATA,this._stateRcdata(e))}handleSpecialEndTag(e){if(!this.preprocessor.startsWith(this.lastStartTagName,!1))return!this._ensureHibernation();this._createEndTagToken();const n=this.currentToken;switch(n.tagName=this.lastStartTagName,this.preprocessor.peek(this.lastStartTagName.length)){case ie.SPACE:case ie.LINE_FEED:case ie.TABULATION:case ie.FORM_FEED:return this._advanceBy(this.lastStartTagName.length),this.state=le.BEFORE_ATTRIBUTE_NAME,!1;case ie.SOLIDUS:return this._advanceBy(this.lastStartTagName.length),this.state=le.SELF_CLOSING_START_TAG,!1;case ie.GREATER_THAN_SIGN:return this._advanceBy(this.lastStartTagName.length),this.emitCurrentTagToken(),this.state=le.DATA,!1;default:return!this._ensureHibernation()}}_stateRcdataEndTagName(e){this.handleSpecialEndTag(e)&&(this._emitChars("</"),this.state=le.RCDATA,this._stateRcdata(e))}_stateRawtextLessThanSign(e){e===ie.SOLIDUS?this.state=le.RAWTEXT_END_TAG_OPEN:(this._emitChars("<"),this.state=le.RAWTEXT,this._stateRawtext(e))}_stateRawtextEndTagOpen(e){Od(e)?(this.state=le.RAWTEXT_END_TAG_NAME,this._stateRawtextEndTagName(e)):(this._emitChars("</"),this.state=le.RAWTEXT,this._stateRawtext(e))}_stateRawtextEndTagName(e){this.handleSpecialEndTag(e)&&(this._emitChars("</"),this.state=le.RAWTEXT,this._stateRawtext(e))}_stateScriptDataLessThanSign(e){switch(e){case ie.SOLIDUS:{this.state=le.SCRIPT_DATA_END_TAG_OPEN;break}case ie.EXCLAMATION_MARK:{this.state=le.SCRIPT_DATA_ESCAPE_START,this._emitChars("<!");break}default:this._emitChars("<"),this.state=le.SCRIPT_DATA,this._stateScriptData(e)}}_stateScriptDataEndTagOpen(e){Od(e)?(this.state=le.SCRIPT_DATA_END_TAG_NAME,this._stateScriptDataEndTagName(e)):(this._emitChars("</"),this.state=le.SCRIPT_DATA,this._stateScriptData(e))}_stateScriptDataEndTagName(e){this.handleSpecialEndTag(e)&&(this._emitChars("</"),this.state=le.SCRIPT_DATA,this._stateScriptData(e))}_stateScriptDataEscapeStart(e){e===ie.HYPHEN_MINUS?(this.state=le.SCRIPT_DATA_ESCAPE_START_DASH,this._emitChars("-")):(this.state=le.SCRIPT_DATA,this._stateScriptData(e))}_stateScriptDataEscapeStartDash(e){e===ie.HYPHEN_MINUS?(this.state=le.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-")):(this.state=le.SCRIPT_DATA,this._stateScriptData(e))}_stateScriptDataEscaped(e){switch(e){case ie.HYPHEN_MINUS:{this.state=le.SCRIPT_DATA_ESCAPED_DASH,this._emitChars("-");break}case ie.LESS_THAN_SIGN:{this.state=le.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case ie.NULL:{this._err(De.unexpectedNullCharacter),this._emitChars(Er);break}case ie.EOF:{this._err(De.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(e)}}_stateScriptDataEscapedDash(e){switch(e){case ie.HYPHEN_MINUS:{this.state=le.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-");break}case ie.LESS_THAN_SIGN:{this.state=le.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case ie.NULL:{this._err(De.unexpectedNullCharacter),this.state=le.SCRIPT_DATA_ESCAPED,this._emitChars(Er);break}case ie.EOF:{this._err(De.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=le.SCRIPT_DATA_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataEscapedDashDash(e){switch(e){case ie.HYPHEN_MINUS:{this._emitChars("-");break}case ie.LESS_THAN_SIGN:{this.state=le.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case ie.GREATER_THAN_SIGN:{this.state=le.SCRIPT_DATA,this._emitChars(">");break}case ie.NULL:{this._err(De.unexpectedNullCharacter),this.state=le.SCRIPT_DATA_ESCAPED,this._emitChars(Er);break}case ie.EOF:{this._err(De.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=le.SCRIPT_DATA_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataEscapedLessThanSign(e){e===ie.SOLIDUS?this.state=le.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:Od(e)?(this._emitChars("<"),this.state=le.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(e)):(this._emitChars("<"),this.state=le.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e))}_stateScriptDataEscapedEndTagOpen(e){Od(e)?(this.state=le.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(e)):(this._emitChars("</"),this.state=le.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e))}_stateScriptDataEscapedEndTagName(e){this.handleSpecialEndTag(e)&&(this._emitChars("</"),this.state=le.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e))}_stateScriptDataDoubleEscapeStart(e){if(this.preprocessor.startsWith(Ks.SCRIPT,!1)&&DY(this.preprocessor.peek(Ks.SCRIPT.length))){this._emitCodePoint(e);for(let n=0;n<Ks.SCRIPT.length;n++)this._emitCodePoint(this._consume());this.state=le.SCRIPT_DATA_DOUBLE_ESCAPED}else this._ensureHibernation()||(this.state=le.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e))}_stateScriptDataDoubleEscaped(e){switch(e){case ie.HYPHEN_MINUS:{this.state=le.SCRIPT_DATA_DOUBLE_ESCAPED_DASH,this._emitChars("-");break}case ie.LESS_THAN_SIGN:{this.state=le.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case ie.NULL:{this._err(De.unexpectedNullCharacter),this._emitChars(Er);break}case ie.EOF:{this._err(De.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(e)}}_stateScriptDataDoubleEscapedDash(e){switch(e){case ie.HYPHEN_MINUS:{this.state=le.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH,this._emitChars("-");break}case ie.LESS_THAN_SIGN:{this.state=le.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case ie.NULL:{this._err(De.unexpectedNullCharacter),this.state=le.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(Er);break}case ie.EOF:{this._err(De.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=le.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataDoubleEscapedDashDash(e){switch(e){case ie.HYPHEN_MINUS:{this._emitChars("-");break}case ie.LESS_THAN_SIGN:{this.state=le.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case ie.GREATER_THAN_SIGN:{this.state=le.SCRIPT_DATA,this._emitChars(">");break}case ie.NULL:{this._err(De.unexpectedNullCharacter),this.state=le.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(Er);break}case ie.EOF:{this._err(De.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=le.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataDoubleEscapedLessThanSign(e){e===ie.SOLIDUS?(this.state=le.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/")):(this.state=le.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(e))}_stateScriptDataDoubleEscapeEnd(e){if(this.preprocessor.startsWith(Ks.SCRIPT,!1)&&DY(this.preprocessor.peek(Ks.SCRIPT.length))){this._emitCodePoint(e);for(let n=0;n<Ks.SCRIPT.length;n++)this._emitCodePoint(this._consume());this.state=le.SCRIPT_DATA_ESCAPED}else this._ensureHibernation()||(this.state=le.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(e))}_stateBeforeAttributeName(e){switch(e){case ie.SPACE:case ie.LINE_FEED:case ie.TABULATION:case ie.FORM_FEED:break;case ie.SOLIDUS:case ie.GREATER_THAN_SIGN:case ie.EOF:{this.state=le.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(e);break}case ie.EQUALS_SIGN:{this._err(De.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=le.ATTRIBUTE_NAME;break}default:this._createAttr(""),this.state=le.ATTRIBUTE_NAME,this._stateAttributeName(e)}}_stateAttributeName(e){switch(e){case ie.SPACE:case ie.LINE_FEED:case ie.TABULATION:case ie.FORM_FEED:case ie.SOLIDUS:case ie.GREATER_THAN_SIGN:case ie.EOF:{this._leaveAttrName(),this.state=le.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(e);break}case ie.EQUALS_SIGN:{this._leaveAttrName(),this.state=le.BEFORE_ATTRIBUTE_VALUE;break}case ie.QUOTATION_MARK:case ie.APOSTROPHE:case ie.LESS_THAN_SIGN:{this._err(De.unexpectedCharacterInAttributeName),this.currentAttr.name+=String.fromCodePoint(e);break}case ie.NULL:{this._err(De.unexpectedNullCharacter),this.currentAttr.name+=Er;break}default:this.currentAttr.name+=String.fromCodePoint(By(e)?px(e):e)}}_stateAfterAttributeName(e){switch(e){case ie.SPACE:case ie.LINE_FEED:case ie.TABULATION:case ie.FORM_FEED:break;case ie.SOLIDUS:{this.state=le.SELF_CLOSING_START_TAG;break}case ie.EQUALS_SIGN:{this.state=le.BEFORE_ATTRIBUTE_VALUE;break}case ie.GREATER_THAN_SIGN:{this.state=le.DATA,this.emitCurrentTagToken();break}case ie.EOF:{this._err(De.eofInTag),this._emitEOFToken();break}default:this._createAttr(""),this.state=le.ATTRIBUTE_NAME,this._stateAttributeName(e)}}_stateBeforeAttributeValue(e){switch(e){case ie.SPACE:case ie.LINE_FEED:case ie.TABULATION:case ie.FORM_FEED:break;case ie.QUOTATION_MARK:{this.state=le.ATTRIBUTE_VALUE_DOUBLE_QUOTED;break}case ie.APOSTROPHE:{this.state=le.ATTRIBUTE_VALUE_SINGLE_QUOTED;break}case ie.GREATER_THAN_SIGN:{this._err(De.missingAttributeValue),this.state=le.DATA,this.emitCurrentTagToken();break}default:this.state=le.ATTRIBUTE_VALUE_UNQUOTED,this._stateAttributeValueUnquoted(e)}}_stateAttributeValueDoubleQuoted(e){switch(e){case ie.QUOTATION_MARK:{this.state=le.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case ie.AMPERSAND:{this._startCharacterReference();break}case ie.NULL:{this._err(De.unexpectedNullCharacter),this.currentAttr.value+=Er;break}case ie.EOF:{this._err(De.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(e)}}_stateAttributeValueSingleQuoted(e){switch(e){case ie.APOSTROPHE:{this.state=le.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case ie.AMPERSAND:{this._startCharacterReference();break}case ie.NULL:{this._err(De.unexpectedNullCharacter),this.currentAttr.value+=Er;break}case ie.EOF:{this._err(De.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(e)}}_stateAttributeValueUnquoted(e){switch(e){case ie.SPACE:case ie.LINE_FEED:case ie.TABULATION:case ie.FORM_FEED:{this._leaveAttrValue(),this.state=le.BEFORE_ATTRIBUTE_NAME;break}case ie.AMPERSAND:{this._startCharacterReference();break}case ie.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=le.DATA,this.emitCurrentTagToken();break}case ie.NULL:{this._err(De.unexpectedNullCharacter),this.currentAttr.value+=Er;break}case ie.QUOTATION_MARK:case ie.APOSTROPHE:case ie.LESS_THAN_SIGN:case ie.EQUALS_SIGN:case ie.GRAVE_ACCENT:{this._err(De.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=String.fromCodePoint(e);break}case ie.EOF:{this._err(De.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(e)}}_stateAfterAttributeValueQuoted(e){switch(e){case ie.SPACE:case ie.LINE_FEED:case ie.TABULATION:case ie.FORM_FEED:{this._leaveAttrValue(),this.state=le.BEFORE_ATTRIBUTE_NAME;break}case ie.SOLIDUS:{this._leaveAttrValue(),this.state=le.SELF_CLOSING_START_TAG;break}case ie.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=le.DATA,this.emitCurrentTagToken();break}case ie.EOF:{this._err(De.eofInTag),this._emitEOFToken();break}default:this._err(De.missingWhitespaceBetweenAttributes),this.state=le.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(e)}}_stateSelfClosingStartTag(e){switch(e){case ie.GREATER_THAN_SIGN:{const n=this.currentToken;n.selfClosing=!0,this.state=le.DATA,this.emitCurrentTagToken();break}case ie.EOF:{this._err(De.eofInTag),this._emitEOFToken();break}default:this._err(De.unexpectedSolidusInTag),this.state=le.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(e)}}_stateBogusComment(e){const n=this.currentToken;switch(e){case ie.GREATER_THAN_SIGN:{this.state=le.DATA,this.emitCurrentComment(n);break}case ie.EOF:{this.emitCurrentComment(n),this._emitEOFToken();break}case ie.NULL:{this._err(De.unexpectedNullCharacter),n.data+=Er;break}default:n.data+=String.fromCodePoint(e)}}_stateMarkupDeclarationOpen(e){this._consumeSequenceIfMatch(Ks.DASH_DASH,!0)?(this._createCommentToken(Ks.DASH_DASH.length+1),this.state=le.COMMENT_START):this._consumeSequenceIfMatch(Ks.DOCTYPE,!1)?(this.currentLocation=this.getCurrentLocation(Ks.DOCTYPE.length+1),this.state=le.DOCTYPE):this._consumeSequenceIfMatch(Ks.CDATA_START,!0)?this.inForeignNode?this.state=le.CDATA_SECTION:(this._err(De.cdataInHtmlContent),this._createCommentToken(Ks.CDATA_START.length+1),this.currentToken.data="[CDATA[",this.state=le.BOGUS_COMMENT):this._ensureHibernation()||(this._err(De.incorrectlyOpenedComment),this._createCommentToken(2),this.state=le.BOGUS_COMMENT,this._stateBogusComment(e))}_stateCommentStart(e){switch(e){case ie.HYPHEN_MINUS:{this.state=le.COMMENT_START_DASH;break}case ie.GREATER_THAN_SIGN:{this._err(De.abruptClosingOfEmptyComment),this.state=le.DATA;const n=this.currentToken;this.emitCurrentComment(n);break}default:this.state=le.COMMENT,this._stateComment(e)}}_stateCommentStartDash(e){const n=this.currentToken;switch(e){case ie.HYPHEN_MINUS:{this.state=le.COMMENT_END;break}case ie.GREATER_THAN_SIGN:{this._err(De.abruptClosingOfEmptyComment),this.state=le.DATA,this.emitCurrentComment(n);break}case ie.EOF:{this._err(De.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="-",this.state=le.COMMENT,this._stateComment(e)}}_stateComment(e){const n=this.currentToken;switch(e){case ie.HYPHEN_MINUS:{this.state=le.COMMENT_END_DASH;break}case ie.LESS_THAN_SIGN:{n.data+="<",this.state=le.COMMENT_LESS_THAN_SIGN;break}case ie.NULL:{this._err(De.unexpectedNullCharacter),n.data+=Er;break}case ie.EOF:{this._err(De.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+=String.fromCodePoint(e)}}_stateCommentLessThanSign(e){const n=this.currentToken;switch(e){case ie.EXCLAMATION_MARK:{n.data+="!",this.state=le.COMMENT_LESS_THAN_SIGN_BANG;break}case ie.LESS_THAN_SIGN:{n.data+="<";break}default:this.state=le.COMMENT,this._stateComment(e)}}_stateCommentLessThanSignBang(e){e===ie.HYPHEN_MINUS?this.state=le.COMMENT_LESS_THAN_SIGN_BANG_DASH:(this.state=le.COMMENT,this._stateComment(e))}_stateCommentLessThanSignBangDash(e){e===ie.HYPHEN_MINUS?this.state=le.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:(this.state=le.COMMENT_END_DASH,this._stateCommentEndDash(e))}_stateCommentLessThanSignBangDashDash(e){e!==ie.GREATER_THAN_SIGN&&e!==ie.EOF&&this._err(De.nestedComment),this.state=le.COMMENT_END,this._stateCommentEnd(e)}_stateCommentEndDash(e){const n=this.currentToken;switch(e){case ie.HYPHEN_MINUS:{this.state=le.COMMENT_END;break}case ie.EOF:{this._err(De.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="-",this.state=le.COMMENT,this._stateComment(e)}}_stateCommentEnd(e){const n=this.currentToken;switch(e){case ie.GREATER_THAN_SIGN:{this.state=le.DATA,this.emitCurrentComment(n);break}case ie.EXCLAMATION_MARK:{this.state=le.COMMENT_END_BANG;break}case ie.HYPHEN_MINUS:{n.data+="-";break}case ie.EOF:{this._err(De.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="--",this.state=le.COMMENT,this._stateComment(e)}}_stateCommentEndBang(e){const n=this.currentToken;switch(e){case ie.HYPHEN_MINUS:{n.data+="--!",this.state=le.COMMENT_END_DASH;break}case ie.GREATER_THAN_SIGN:{this._err(De.incorrectlyClosedComment),this.state=le.DATA,this.emitCurrentComment(n);break}case ie.EOF:{this._err(De.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="--!",this.state=le.COMMENT,this._stateComment(e)}}_stateDoctype(e){switch(e){case ie.SPACE:case ie.LINE_FEED:case ie.TABULATION:case ie.FORM_FEED:{this.state=le.BEFORE_DOCTYPE_NAME;break}case ie.GREATER_THAN_SIGN:{this.state=le.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(e);break}case ie.EOF:{this._err(De.eofInDoctype),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(De.missingWhitespaceBeforeDoctypeName),this.state=le.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(e)}}_stateBeforeDoctypeName(e){if(By(e))this._createDoctypeToken(String.fromCharCode(px(e))),this.state=le.DOCTYPE_NAME;else switch(e){case ie.SPACE:case ie.LINE_FEED:case ie.TABULATION:case ie.FORM_FEED:break;case ie.NULL:{this._err(De.unexpectedNullCharacter),this._createDoctypeToken(Er),this.state=le.DOCTYPE_NAME;break}case ie.GREATER_THAN_SIGN:{this._err(De.missingDoctypeName),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=le.DATA;break}case ie.EOF:{this._err(De.eofInDoctype),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._createDoctypeToken(String.fromCodePoint(e)),this.state=le.DOCTYPE_NAME}}_stateDoctypeName(e){const n=this.currentToken;switch(e){case ie.SPACE:case ie.LINE_FEED:case ie.TABULATION:case ie.FORM_FEED:{this.state=le.AFTER_DOCTYPE_NAME;break}case ie.GREATER_THAN_SIGN:{this.state=le.DATA,this.emitCurrentDoctype(n);break}case ie.NULL:{this._err(De.unexpectedNullCharacter),n.name+=Er;break}case ie.EOF:{this._err(De.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.name+=String.fromCodePoint(By(e)?px(e):e)}}_stateAfterDoctypeName(e){const n=this.currentToken;switch(e){case ie.SPACE:case ie.LINE_FEED:case ie.TABULATION:case ie.FORM_FEED:break;case ie.GREATER_THAN_SIGN:{this.state=le.DATA,this.emitCurrentDoctype(n);break}case ie.EOF:{this._err(De.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._consumeSequenceIfMatch(Ks.PUBLIC,!1)?this.state=le.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._consumeSequenceIfMatch(Ks.SYSTEM,!1)?this.state=le.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._ensureHibernation()||(this._err(De.invalidCharacterSequenceAfterDoctypeName),n.forceQuirks=!0,this.state=le.BOGUS_DOCTYPE,this._stateBogusDoctype(e))}}_stateAfterDoctypePublicKeyword(e){const n=this.currentToken;switch(e){case ie.SPACE:case ie.LINE_FEED:case ie.TABULATION:case ie.FORM_FEED:{this.state=le.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER;break}case ie.QUOTATION_MARK:{this._err(De.missingWhitespaceAfterDoctypePublicKeyword),n.publicId="",this.state=le.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case ie.APOSTROPHE:{this._err(De.missingWhitespaceAfterDoctypePublicKeyword),n.publicId="",this.state=le.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case ie.GREATER_THAN_SIGN:{this._err(De.missingDoctypePublicIdentifier),n.forceQuirks=!0,this.state=le.DATA,this.emitCurrentDoctype(n);break}case ie.EOF:{this._err(De.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(De.missingQuoteBeforeDoctypePublicIdentifier),n.forceQuirks=!0,this.state=le.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateBeforeDoctypePublicIdentifier(e){const n=this.currentToken;switch(e){case ie.SPACE:case ie.LINE_FEED:case ie.TABULATION:case ie.FORM_FEED:break;case ie.QUOTATION_MARK:{n.publicId="",this.state=le.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case ie.APOSTROPHE:{n.publicId="",this.state=le.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case ie.GREATER_THAN_SIGN:{this._err(De.missingDoctypePublicIdentifier),n.forceQuirks=!0,this.state=le.DATA,this.emitCurrentDoctype(n);break}case ie.EOF:{this._err(De.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(De.missingQuoteBeforeDoctypePublicIdentifier),n.forceQuirks=!0,this.state=le.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateDoctypePublicIdentifierDoubleQuoted(e){const n=this.currentToken;switch(e){case ie.QUOTATION_MARK:{this.state=le.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case ie.NULL:{this._err(De.unexpectedNullCharacter),n.publicId+=Er;break}case ie.GREATER_THAN_SIGN:{this._err(De.abruptDoctypePublicIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=le.DATA;break}case ie.EOF:{this._err(De.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.publicId+=String.fromCodePoint(e)}}_stateDoctypePublicIdentifierSingleQuoted(e){const n=this.currentToken;switch(e){case ie.APOSTROPHE:{this.state=le.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case ie.NULL:{this._err(De.unexpectedNullCharacter),n.publicId+=Er;break}case ie.GREATER_THAN_SIGN:{this._err(De.abruptDoctypePublicIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=le.DATA;break}case ie.EOF:{this._err(De.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.publicId+=String.fromCodePoint(e)}}_stateAfterDoctypePublicIdentifier(e){const n=this.currentToken;switch(e){case ie.SPACE:case ie.LINE_FEED:case ie.TABULATION:case ie.FORM_FEED:{this.state=le.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS;break}case ie.GREATER_THAN_SIGN:{this.state=le.DATA,this.emitCurrentDoctype(n);break}case ie.QUOTATION_MARK:{this._err(De.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),n.systemId="",this.state=le.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case ie.APOSTROPHE:{this._err(De.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),n.systemId="",this.state=le.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case ie.EOF:{this._err(De.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(De.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=le.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateBetweenDoctypePublicAndSystemIdentifiers(e){const n=this.currentToken;switch(e){case ie.SPACE:case ie.LINE_FEED:case ie.TABULATION:case ie.FORM_FEED:break;case ie.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=le.DATA;break}case ie.QUOTATION_MARK:{n.systemId="",this.state=le.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case ie.APOSTROPHE:{n.systemId="",this.state=le.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case ie.EOF:{this._err(De.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(De.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=le.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateAfterDoctypeSystemKeyword(e){const n=this.currentToken;switch(e){case ie.SPACE:case ie.LINE_FEED:case ie.TABULATION:case ie.FORM_FEED:{this.state=le.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER;break}case ie.QUOTATION_MARK:{this._err(De.missingWhitespaceAfterDoctypeSystemKeyword),n.systemId="",this.state=le.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case ie.APOSTROPHE:{this._err(De.missingWhitespaceAfterDoctypeSystemKeyword),n.systemId="",this.state=le.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case ie.GREATER_THAN_SIGN:{this._err(De.missingDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=le.DATA,this.emitCurrentDoctype(n);break}case ie.EOF:{this._err(De.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(De.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=le.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateBeforeDoctypeSystemIdentifier(e){const n=this.currentToken;switch(e){case ie.SPACE:case ie.LINE_FEED:case ie.TABULATION:case ie.FORM_FEED:break;case ie.QUOTATION_MARK:{n.systemId="",this.state=le.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case ie.APOSTROPHE:{n.systemId="",this.state=le.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case ie.GREATER_THAN_SIGN:{this._err(De.missingDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=le.DATA,this.emitCurrentDoctype(n);break}case ie.EOF:{this._err(De.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(De.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=le.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateDoctypeSystemIdentifierDoubleQuoted(e){const n=this.currentToken;switch(e){case ie.QUOTATION_MARK:{this.state=le.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case ie.NULL:{this._err(De.unexpectedNullCharacter),n.systemId+=Er;break}case ie.GREATER_THAN_SIGN:{this._err(De.abruptDoctypeSystemIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=le.DATA;break}case ie.EOF:{this._err(De.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.systemId+=String.fromCodePoint(e)}}_stateDoctypeSystemIdentifierSingleQuoted(e){const n=this.currentToken;switch(e){case ie.APOSTROPHE:{this.state=le.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case ie.NULL:{this._err(De.unexpectedNullCharacter),n.systemId+=Er;break}case ie.GREATER_THAN_SIGN:{this._err(De.abruptDoctypeSystemIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=le.DATA;break}case ie.EOF:{this._err(De.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.systemId+=String.fromCodePoint(e)}}_stateAfterDoctypeSystemIdentifier(e){const n=this.currentToken;switch(e){case ie.SPACE:case ie.LINE_FEED:case ie.TABULATION:case ie.FORM_FEED:break;case ie.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=le.DATA;break}case ie.EOF:{this._err(De.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(De.unexpectedCharacterAfterDoctypeSystemIdentifier),this.state=le.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateBogusDoctype(e){const n=this.currentToken;switch(e){case ie.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=le.DATA;break}case ie.NULL:{this._err(De.unexpectedNullCharacter);break}case ie.EOF:{this.emitCurrentDoctype(n),this._emitEOFToken();break}}}_stateCdataSection(e){switch(e){case ie.RIGHT_SQUARE_BRACKET:{this.state=le.CDATA_SECTION_BRACKET;break}case ie.EOF:{this._err(De.eofInCdata),this._emitEOFToken();break}default:this._emitCodePoint(e)}}_stateCdataSectionBracket(e){e===ie.RIGHT_SQUARE_BRACKET?this.state=le.CDATA_SECTION_END:(this._emitChars("]"),this.state=le.CDATA_SECTION,this._stateCdataSection(e))}_stateCdataSectionEnd(e){switch(e){case ie.GREATER_THAN_SIGN:{this.state=le.DATA;break}case ie.RIGHT_SQUARE_BRACKET:{this._emitChars("]");break}default:this._emitChars("]]"),this.state=le.CDATA_SECTION,this._stateCdataSection(e)}}_stateCharacterReference(){let e=this.entityDecoder.write(this.preprocessor.html,this.preprocessor.pos);if(e<0)if(this.preprocessor.lastChunkWritten)e=this.entityDecoder.end();else{this.active=!1,this.preprocessor.pos=this.preprocessor.html.length-1,this.consumedAfterSnapshot=0,this.preprocessor.endOfChunkHit=!0;return}e===0?(this.preprocessor.pos=this.entityStartPos,this._flushCodePointConsumedAsCharacterReference(ie.AMPERSAND),this.state=!this._isCharacterReferenceInAttribute()&&MY(this.preprocessor.peek(1))?le.AMBIGUOUS_AMPERSAND:this.returnState):this.state=this.returnState}_stateAmbiguousAmpersand(e){MY(e)?this._flushCodePointConsumedAsCharacterReference(e):(e===ie.SEMICOLON&&this._err(De.unknownNamedCharacterReference),this.state=this.returnState,this._callState(e))}}const Kfe=new Set([M.DD,M.DT,M.LI,M.OPTGROUP,M.OPTION,M.P,M.RB,M.RP,M.RT,M.RTC]),PY=new Set([...Kfe,M.CAPTION,M.COLGROUP,M.TBODY,M.TD,M.TFOOT,M.TH,M.THEAD,M.TR]),OS=new Set([M.APPLET,M.CAPTION,M.HTML,M.MARQUEE,M.OBJECT,M.TABLE,M.TD,M.TEMPLATE,M.TH]),BHe=new Set([...OS,M.OL,M.UL]),HHe=new Set([...OS,M.BUTTON]),LY=new Set([M.ANNOTATION_XML,M.MI,M.MN,M.MO,M.MS,M.MTEXT]),$Y=new Set([M.DESC,M.FOREIGN_OBJECT,M.TITLE]),UHe=new Set([M.TR,M.TEMPLATE,M.HTML]),jHe=new Set([M.TBODY,M.TFOOT,M.THEAD,M.TEMPLATE,M.HTML]),zHe=new Set([M.TABLE,M.TEMPLATE,M.HTML]),VHe=new Set([M.TD,M.TH]);class qHe{get currentTmplContentOrNode(){return this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):this.current}constructor(e,n,r){this.treeAdapter=n,this.handler=r,this.items=[],this.tagIDs=[],this.stackTop=-1,this.tmplCount=0,this.currentTagId=M.UNKNOWN,this.current=e}_indexOf(e){return this.items.lastIndexOf(e,this.stackTop)}_isInTemplate(){return this.currentTagId===M.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===je.HTML}_updateCurrentElement(){this.current=this.items[this.stackTop],this.currentTagId=this.tagIDs[this.stackTop]}push(e,n){this.stackTop++,this.items[this.stackTop]=e,this.current=e,this.tagIDs[this.stackTop]=n,this.currentTagId=n,this._isInTemplate()&&this.tmplCount++,this.handler.onItemPush(e,n,!0)}pop(){const e=this.current;this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(e,!0)}replace(e,n){const r=this._indexOf(e);this.items[r]=n,r===this.stackTop&&(this.current=n)}insertAfter(e,n,r){const i=this._indexOf(e)+1;this.items.splice(i,0,n),this.tagIDs.splice(i,0,r),this.stackTop++,i===this.stackTop&&this._updateCurrentElement(),this.current&&this.currentTagId!==void 0&&this.handler.onItemPush(this.current,this.currentTagId,i===this.stackTop)}popUntilTagNamePopped(e){let n=this.stackTop+1;do n=this.tagIDs.lastIndexOf(e,n-1);while(n>0&&this.treeAdapter.getNamespaceURI(this.items[n])!==je.HTML);this.shortenToLength(Math.max(n,0))}shortenToLength(e){for(;this.stackTop>=e;){const n=this.current;this.tmplCount>0&&this._isInTemplate()&&(this.tmplCount-=1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(n,this.stackTop<e)}}popUntilElementPopped(e){const n=this._indexOf(e);this.shortenToLength(Math.max(n,0))}popUntilPopped(e,n){const r=this._indexOfTagNames(e,n);this.shortenToLength(Math.max(r,0))}popUntilNumberedHeaderPopped(){this.popUntilPopped(mP,je.HTML)}popUntilTableCellPopped(){this.popUntilPopped(VHe,je.HTML)}popAllUpToHtmlElement(){this.tmplCount=0,this.shortenToLength(1)}_indexOfTagNames(e,n){for(let r=this.stackTop;r>=0;r--)if(e.has(this.tagIDs[r])&&this.treeAdapter.getNamespaceURI(this.items[r])===n)return r;return-1}clearBackTo(e,n){const r=this._indexOfTagNames(e,n);this.shortenToLength(r+1)}clearBackToTableContext(){this.clearBackTo(zHe,je.HTML)}clearBackToTableBodyContext(){this.clearBackTo(jHe,je.HTML)}clearBackToTableRowContext(){this.clearBackTo(UHe,je.HTML)}remove(e){const n=this._indexOf(e);n>=0&&(n===this.stackTop?this.pop():(this.items.splice(n,1),this.tagIDs.splice(n,1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(e,!1)))}tryPeekProperlyNestedBodyElement(){return this.stackTop>=1&&this.tagIDs[1]===M.BODY?this.items[1]:null}contains(e){return this._indexOf(e)>-1}getCommonAncestor(e){const n=this._indexOf(e)-1;return n>=0?this.items[n]:null}isRootHtmlElementCurrent(){return this.stackTop===0&&this.tagIDs[0]===M.HTML}hasInDynamicScope(e,n){for(let r=this.stackTop;r>=0;r--){const i=this.tagIDs[r];switch(this.treeAdapter.getNamespaceURI(this.items[r])){case je.HTML:{if(i===e)return!0;if(n.has(i))return!1;break}case je.SVG:{if($Y.has(i))return!1;break}case je.MATHML:{if(LY.has(i))return!1;break}}}return!0}hasInScope(e){return this.hasInDynamicScope(e,OS)}hasInListItemScope(e){return this.hasInDynamicScope(e,BHe)}hasInButtonScope(e){return this.hasInDynamicScope(e,HHe)}hasNumberedHeaderInScope(){for(let e=this.stackTop;e>=0;e--){const n=this.tagIDs[e];switch(this.treeAdapter.getNamespaceURI(this.items[e])){case je.HTML:{if(mP.has(n))return!0;if(OS.has(n))return!1;break}case je.SVG:{if($Y.has(n))return!1;break}case je.MATHML:{if(LY.has(n))return!1;break}}}return!0}hasInTableScope(e){for(let n=this.stackTop;n>=0;n--)if(this.treeAdapter.getNamespaceURI(this.items[n])===je.HTML)switch(this.tagIDs[n]){case e:return!0;case M.TABLE:case M.HTML:return!1}return!0}hasTableBodyContextInTableScope(){for(let e=this.stackTop;e>=0;e--)if(this.treeAdapter.getNamespaceURI(this.items[e])===je.HTML)switch(this.tagIDs[e]){case M.TBODY:case M.THEAD:case M.TFOOT:return!0;case M.TABLE:case M.HTML:return!1}return!0}hasInSelectScope(e){for(let n=this.stackTop;n>=0;n--)if(this.treeAdapter.getNamespaceURI(this.items[n])===je.HTML)switch(this.tagIDs[n]){case e:return!0;case M.OPTION:case M.OPTGROUP:break;default:return!1}return!0}generateImpliedEndTags(){for(;this.currentTagId!==void 0&&Kfe.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;this.currentTagId!==void 0&&PY.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(e){for(;this.currentTagId!==void 0&&this.currentTagId!==e&&PY.has(this.currentTagId);)this.pop()}}const n4=3;var Vl;(function(t){t[t.Marker=0]="Marker",t[t.Element=1]="Element"})(Vl||(Vl={}));const FY={type:Vl.Marker};class GHe{constructor(e){this.treeAdapter=e,this.entries=[],this.bookmark=null}_getNoahArkConditionCandidates(e,n){const r=[],i=n.length,s=this.treeAdapter.getTagName(e),a=this.treeAdapter.getNamespaceURI(e);for(let o=0;o<this.entries.length;o++){const l=this.entries[o];if(l.type===Vl.Marker)break;const{element:u}=l;if(this.treeAdapter.getTagName(u)===s&&this.treeAdapter.getNamespaceURI(u)===a){const c=this.treeAdapter.getAttrList(u);c.length===i&&r.push({idx:o,attrs:c})}}return r}_ensureNoahArkCondition(e){if(this.entries.length<n4)return;const n=this.treeAdapter.getAttrList(e),r=this._getNoahArkConditionCandidates(e,n);if(r.length<n4)return;const i=new Map(n.map(a=>[a.name,a.value]));let s=0;for(let a=0;a<r.length;a++){const o=r[a];o.attrs.every(l=>i.get(l.name)===l.value)&&(s+=1,s>=n4&&this.entries.splice(o.idx,1))}}insertMarker(){this.entries.unshift(FY)}pushElement(e,n){this._ensureNoahArkCondition(e),this.entries.unshift({type:Vl.Element,element:e,token:n})}insertElementAfterBookmark(e,n){const r=this.entries.indexOf(this.bookmark);this.entries.splice(r,0,{type:Vl.Element,element:e,token:n})}removeEntry(e){const n=this.entries.indexOf(e);n!==-1&&this.entries.splice(n,1)}clearToLastMarker(){const e=this.entries.indexOf(FY);e===-1?this.entries.length=0:this.entries.splice(0,e+1)}getElementEntryInScopeWithTagName(e){const n=this.entries.find(r=>r.type===Vl.Marker||this.treeAdapter.getTagName(r.element)===e);return n&&n.type===Vl.Element?n:null}getElementEntry(e){return this.entries.find(n=>n.type===Vl.Element&&n.element===e)}}const kd={createDocument(){return{nodeName:"#document",mode:yo.NO_QUIRKS,childNodes:[]}},createDocumentFragment(){return{nodeName:"#document-fragment",childNodes:[]}},createElement(t,e,n){return{nodeName:t,tagName:t,attrs:n,namespaceURI:e,childNodes:[],parentNode:null}},createCommentNode(t){return{nodeName:"#comment",data:t,parentNode:null}},createTextNode(t){return{nodeName:"#text",value:t,parentNode:null}},appendChild(t,e){t.childNodes.push(e),e.parentNode=t},insertBefore(t,e,n){const r=t.childNodes.indexOf(n);t.childNodes.splice(r,0,e),e.parentNode=t},setTemplateContent(t,e){t.content=e},getTemplateContent(t){return t.content},setDocumentType(t,e,n,r){const i=t.childNodes.find(s=>s.nodeName==="#documentType");if(i)i.name=e,i.publicId=n,i.systemId=r;else{const s={nodeName:"#documentType",name:e,publicId:n,systemId:r,parentNode:null};kd.appendChild(t,s)}},setDocumentMode(t,e){t.mode=e},getDocumentMode(t){return t.mode},detachNode(t){if(t.parentNode){const e=t.parentNode.childNodes.indexOf(t);t.parentNode.childNodes.splice(e,1),t.parentNode=null}},insertText(t,e){if(t.childNodes.length>0){const n=t.childNodes[t.childNodes.length-1];if(kd.isTextNode(n)){n.value+=e;return}}kd.appendChild(t,kd.createTextNode(e))},insertTextBefore(t,e,n){const r=t.childNodes[t.childNodes.indexOf(n)-1];r&&kd.isTextNode(r)?r.value+=e:kd.insertBefore(t,kd.createTextNode(e),n)},adoptAttributes(t,e){const n=new Set(t.attrs.map(r=>r.name));for(let r=0;r<e.length;r++)n.has(e[r].name)||t.attrs.push(e[r])},getFirstChild(t){return t.childNodes[0]},getChildNodes(t){return t.childNodes},getParentNode(t){return t.parentNode},getAttrList(t){return t.attrs},getTagName(t){return t.tagName},getNamespaceURI(t){return t.namespaceURI},getTextNodeContent(t){return t.value},getCommentNodeContent(t){return t.data},getDocumentTypeNodeName(t){return t.name},getDocumentTypeNodePublicId(t){return t.publicId},getDocumentTypeNodeSystemId(t){return t.systemId},isTextNode(t){return t.nodeName==="#text"},isCommentNode(t){return t.nodeName==="#comment"},isDocumentTypeNode(t){return t.nodeName==="#documentType"},isElementNode(t){return Object.prototype.hasOwnProperty.call(t,"tagName")},setNodeSourceCodeLocation(t,e){t.sourceCodeLocation=e},getNodeSourceCodeLocation(t){return t.sourceCodeLocation},updateNodeSourceCodeLocation(t,e){t.sourceCodeLocation={...t.sourceCodeLocation,...e}}},Xfe="html",WHe="about:legacy-compat",YHe="http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd",Qfe=["+//silmaril//dtd html pro v0r11 19970101//","-//as//dtd html 3.0 aswedit + extensions//","-//advasoft ltd//dtd html 3.0 aswedit + extensions//","-//ietf//dtd html 2.0 level 1//","-//ietf//dtd html 2.0 level 2//","-//ietf//dtd html 2.0 strict level 1//","-//ietf//dtd html 2.0 strict level 2//","-//ietf//dtd html 2.0 strict//","-//ietf//dtd html 2.0//","-//ietf//dtd html 2.1e//","-//ietf//dtd html 3.0//","-//ietf//dtd html 3.2 final//","-//ietf//dtd html 3.2//","-//ietf//dtd html 3//","-//ietf//dtd html level 0//","-//ietf//dtd html level 1//","-//ietf//dtd html level 2//","-//ietf//dtd html level 3//","-//ietf//dtd html strict level 0//","-//ietf//dtd html strict level 1//","-//ietf//dtd html strict level 2//","-//ietf//dtd html strict level 3//","-//ietf//dtd html strict//","-//ietf//dtd html//","-//metrius//dtd metrius presentational//","-//microsoft//dtd internet explorer 2.0 html strict//","-//microsoft//dtd internet explorer 2.0 html//","-//microsoft//dtd internet explorer 2.0 tables//","-//microsoft//dtd internet explorer 3.0 html strict//","-//microsoft//dtd internet explorer 3.0 html//","-//microsoft//dtd internet explorer 3.0 tables//","-//netscape comm. corp.//dtd html//","-//netscape comm. corp.//dtd strict html//","-//o'reilly and associates//dtd html 2.0//","-//o'reilly and associates//dtd html extended 1.0//","-//o'reilly and associates//dtd html extended relaxed 1.0//","-//sq//dtd html 2.0 hotmetal + extensions//","-//softquad software//dtd hotmetal pro 6.0::19990601::extensions to html 4.0//","-//softquad//dtd hotmetal pro 4.0::19971010::extensions to html 4.0//","-//spyglass//dtd html 2.0 extended//","-//sun microsystems corp.//dtd hotjava html//","-//sun microsystems corp.//dtd hotjava strict html//","-//w3c//dtd html 3 1995-03-24//","-//w3c//dtd html 3.2 draft//","-//w3c//dtd html 3.2 final//","-//w3c//dtd html 3.2//","-//w3c//dtd html 3.2s draft//","-//w3c//dtd html 4.0 frameset//","-//w3c//dtd html 4.0 transitional//","-//w3c//dtd html experimental 19960712//","-//w3c//dtd html experimental 970421//","-//w3c//dtd w3 html//","-//w3o//dtd w3 html 3.0//","-//webtechs//dtd mozilla html 2.0//","-//webtechs//dtd mozilla html//"],KHe=[...Qfe,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"],XHe=new Set(["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"]),Zfe=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],QHe=[...Zfe,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"];function BY(t,e){return e.some(n=>t.startsWith(n))}function ZHe(t){return t.name===Xfe&&t.publicId===null&&(t.systemId===null||t.systemId===WHe)}function JHe(t){if(t.name!==Xfe)return yo.QUIRKS;const{systemId:e}=t;if(e&&e.toLowerCase()===YHe)return yo.QUIRKS;let{publicId:n}=t;if(n!==null){if(n=n.toLowerCase(),XHe.has(n))return yo.QUIRKS;let r=e===null?KHe:Qfe;if(BY(n,r))return yo.QUIRKS;if(r=e===null?Zfe:QHe,BY(n,r))return yo.LIMITED_QUIRKS}return yo.NO_QUIRKS}const HY={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},eUe="definitionurl",tUe="definitionURL",nUe=new Map(["attributeName","attributeType","baseFrequency","baseProfile","calcMode","clipPathUnits","diffuseConstant","edgeMode","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].map(t=>[t.toLowerCase(),t])),rUe=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:je.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:je.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:je.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:je.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:je.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:je.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:je.XLINK}],["xml:lang",{prefix:"xml",name:"lang",namespace:je.XML}],["xml:space",{prefix:"xml",name:"space",namespace:je.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:je.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:je.XMLNS}]]),iUe=new Map(["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","textPath"].map(t=>[t.toLowerCase(),t])),sUe=new Set([M.B,M.BIG,M.BLOCKQUOTE,M.BODY,M.BR,M.CENTER,M.CODE,M.DD,M.DIV,M.DL,M.DT,M.EM,M.EMBED,M.H1,M.H2,M.H3,M.H4,M.H5,M.H6,M.HEAD,M.HR,M.I,M.IMG,M.LI,M.LISTING,M.MENU,M.META,M.NOBR,M.OL,M.P,M.PRE,M.RUBY,M.S,M.SMALL,M.SPAN,M.STRONG,M.STRIKE,M.SUB,M.SUP,M.TABLE,M.TT,M.U,M.UL,M.VAR]);function aUe(t){const e=t.tagID;return e===M.FONT&&t.attrs.some(({name:r})=>r===Oh.COLOR||r===Oh.SIZE||r===Oh.FACE)||sUe.has(e)}function Jfe(t){for(let e=0;e<t.attrs.length;e++)if(t.attrs[e].name===eUe){t.attrs[e].name=tUe;break}}function ehe(t){for(let e=0;e<t.attrs.length;e++){const n=nUe.get(t.attrs[e].name);n!=null&&(t.attrs[e].name=n)}}function w$(t){for(let e=0;e<t.attrs.length;e++){const n=rUe.get(t.attrs[e].name);n&&(t.attrs[e].prefix=n.prefix,t.attrs[e].name=n.name,t.attrs[e].namespace=n.namespace)}}function oUe(t){const e=iUe.get(t.tagName);e!=null&&(t.tagName=e,t.tagID=B0(t.tagName))}function lUe(t,e){return e===je.MATHML&&(t===M.MI||t===M.MO||t===M.MN||t===M.MS||t===M.MTEXT)}function uUe(t,e,n){if(e===je.MATHML&&t===M.ANNOTATION_XML){for(let r=0;r<n.length;r++)if(n[r].name===Oh.ENCODING){const i=n[r].value.toLowerCase();return i===HY.TEXT_HTML||i===HY.APPLICATION_XML}}return e===je.SVG&&(t===M.FOREIGN_OBJECT||t===M.DESC||t===M.TITLE)}function cUe(t,e,n,r){return(!r||r===je.HTML)&&uUe(t,e,n)||(!r||r===je.MATHML)&&lUe(t,e)}const dUe="hidden",fUe=8,hUe=3;var pe;(function(t){t[t.INITIAL=0]="INITIAL",t[t.BEFORE_HTML=1]="BEFORE_HTML",t[t.BEFORE_HEAD=2]="BEFORE_HEAD",t[t.IN_HEAD=3]="IN_HEAD",t[t.IN_HEAD_NO_SCRIPT=4]="IN_HEAD_NO_SCRIPT",t[t.AFTER_HEAD=5]="AFTER_HEAD",t[t.IN_BODY=6]="IN_BODY",t[t.TEXT=7]="TEXT",t[t.IN_TABLE=8]="IN_TABLE",t[t.IN_TABLE_TEXT=9]="IN_TABLE_TEXT",t[t.IN_CAPTION=10]="IN_CAPTION",t[t.IN_COLUMN_GROUP=11]="IN_COLUMN_GROUP",t[t.IN_TABLE_BODY=12]="IN_TABLE_BODY",t[t.IN_ROW=13]="IN_ROW",t[t.IN_CELL=14]="IN_CELL",t[t.IN_SELECT=15]="IN_SELECT",t[t.IN_SELECT_IN_TABLE=16]="IN_SELECT_IN_TABLE",t[t.IN_TEMPLATE=17]="IN_TEMPLATE",t[t.AFTER_BODY=18]="AFTER_BODY",t[t.IN_FRAMESET=19]="IN_FRAMESET",t[t.AFTER_FRAMESET=20]="AFTER_FRAMESET",t[t.AFTER_AFTER_BODY=21]="AFTER_AFTER_BODY",t[t.AFTER_AFTER_FRAMESET=22]="AFTER_AFTER_FRAMESET"})(pe||(pe={}));const pUe={startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1},the=new Set([M.TABLE,M.TBODY,M.TFOOT,M.THEAD,M.TR]),UY={scriptingEnabled:!0,sourceCodeLocationInfo:!1,treeAdapter:kd,onParseError:null};let jY=class{constructor(e,n,r=null,i=null){this.fragmentContext=r,this.scriptHandler=i,this.currentToken=null,this.stopped=!1,this.insertionMode=pe.INITIAL,this.originalInsertionMode=pe.INITIAL,this.headElement=null,this.formElement=null,this.currentNotInHTML=!1,this.tmplInsertionModeStack=[],this.pendingCharacterTokens=[],this.hasNonWhitespacePendingCharacterToken=!1,this.framesetOk=!0,this.skipNextNewLine=!1,this.fosterParentingEnabled=!1,this.options={...UY,...e},this.treeAdapter=this.options.treeAdapter,this.onParseError=this.options.onParseError,this.onParseError&&(this.options.sourceCodeLocationInfo=!0),this.document=n??this.treeAdapter.createDocument(),this.tokenizer=new FHe(this.options,this),this.activeFormattingElements=new GHe(this.treeAdapter),this.fragmentContextID=r?B0(this.treeAdapter.getTagName(r)):M.UNKNOWN,this._setContextModes(r??this.document,this.fragmentContextID),this.openElements=new qHe(this.document,this.treeAdapter,this)}static parse(e,n){const r=new this(n);return r.tokenizer.write(e,!0),r.document}static getFragmentParser(e,n){const r={...UY,...n};e??(e=r.treeAdapter.createElement(we.TEMPLATE,je.HTML,[]));const i=r.treeAdapter.createElement("documentmock",je.HTML,[]),s=new this(r,i,e);return s.fragmentContextID===M.TEMPLATE&&s.tmplInsertionModeStack.unshift(pe.IN_TEMPLATE),s._initTokenizerForFragmentParsing(),s._insertFakeRootElement(),s._resetInsertionMode(),s._findFormInFragmentContext(),s}getFragment(){const e=this.treeAdapter.getFirstChild(this.document),n=this.treeAdapter.createDocumentFragment();return this._adoptNodes(e,n),n}_err(e,n,r){var i;if(!this.onParseError)return;const s=(i=e.location)!==null&&i!==void 0?i:pUe,a={code:n,startLine:s.startLine,startCol:s.startCol,startOffset:s.startOffset,endLine:r?s.startLine:s.endLine,endCol:r?s.startCol:s.endCol,endOffset:r?s.startOffset:s.endOffset};this.onParseError(a)}onItemPush(e,n,r){var i,s;(s=(i=this.treeAdapter).onItemPush)===null||s===void 0||s.call(i,e),r&&this.openElements.stackTop>0&&this._setContextModes(e,n)}onItemPop(e,n){var r,i;if(this.options.sourceCodeLocationInfo&&this._setEndLocation(e,this.currentToken),(i=(r=this.treeAdapter).onItemPop)===null||i===void 0||i.call(r,e,this.openElements.current),n){let s,a;this.openElements.stackTop===0&&this.fragmentContext?(s=this.fragmentContext,a=this.fragmentContextID):{current:s,currentTagId:a}=this.openElements,this._setContextModes(s,a)}}_setContextModes(e,n){const r=e===this.document||e&&this.treeAdapter.getNamespaceURI(e)===je.HTML;this.currentNotInHTML=!r,this.tokenizer.inForeignNode=!r&&e!==void 0&&n!==void 0&&!this._isIntegrationPoint(n,e)}_switchToTextParsing(e,n){this._insertElement(e,je.HTML),this.tokenizer.state=n,this.originalInsertionMode=this.insertionMode,this.insertionMode=pe.TEXT}switchToPlaintextParsing(){this.insertionMode=pe.TEXT,this.originalInsertionMode=pe.IN_BODY,this.tokenizer.state=Zr.PLAINTEXT}_getAdjustedCurrentElement(){return this.openElements.stackTop===0&&this.fragmentContext?this.fragmentContext:this.openElements.current}_findFormInFragmentContext(){let e=this.fragmentContext;for(;e;){if(this.treeAdapter.getTagName(e)===we.FORM){this.formElement=e;break}e=this.treeAdapter.getParentNode(e)}}_initTokenizerForFragmentParsing(){if(!(!this.fragmentContext||this.treeAdapter.getNamespaceURI(this.fragmentContext)!==je.HTML))switch(this.fragmentContextID){case M.TITLE:case M.TEXTAREA:{this.tokenizer.state=Zr.RCDATA;break}case M.STYLE:case M.XMP:case M.IFRAME:case M.NOEMBED:case M.NOFRAMES:case M.NOSCRIPT:{this.tokenizer.state=Zr.RAWTEXT;break}case M.SCRIPT:{this.tokenizer.state=Zr.SCRIPT_DATA;break}case M.PLAINTEXT:{this.tokenizer.state=Zr.PLAINTEXT;break}}}_setDocumentType(e){const n=e.name||"",r=e.publicId||"",i=e.systemId||"";if(this.treeAdapter.setDocumentType(this.document,n,r,i),e.location){const a=this.treeAdapter.getChildNodes(this.document).find(o=>this.treeAdapter.isDocumentTypeNode(o));a&&this.treeAdapter.setNodeSourceCodeLocation(a,e.location)}}_attachElementToTree(e,n){if(this.options.sourceCodeLocationInfo){const r=n&&{...n,startTag:n};this.treeAdapter.setNodeSourceCodeLocation(e,r)}if(this._shouldFosterParentOnInsertion())this._fosterParentElement(e);else{const r=this.openElements.currentTmplContentOrNode;this.treeAdapter.appendChild(r??this.document,e)}}_appendElement(e,n){const r=this.treeAdapter.createElement(e.tagName,n,e.attrs);this._attachElementToTree(r,e.location)}_insertElement(e,n){const r=this.treeAdapter.createElement(e.tagName,n,e.attrs);this._attachElementToTree(r,e.location),this.openElements.push(r,e.tagID)}_insertFakeElement(e,n){const r=this.treeAdapter.createElement(e,je.HTML,[]);this._attachElementToTree(r,null),this.openElements.push(r,n)}_insertTemplate(e){const n=this.treeAdapter.createElement(e.tagName,je.HTML,e.attrs),r=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(n,r),this._attachElementToTree(n,e.location),this.openElements.push(n,e.tagID),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(r,null)}_insertFakeRootElement(){const e=this.treeAdapter.createElement(we.HTML,je.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(e,null),this.treeAdapter.appendChild(this.openElements.current,e),this.openElements.push(e,M.HTML)}_appendCommentNode(e,n){const r=this.treeAdapter.createCommentNode(e.data);this.treeAdapter.appendChild(n,r),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(r,e.location)}_insertCharacters(e){let n,r;if(this._shouldFosterParentOnInsertion()?({parent:n,beforeElement:r}=this._findFosterParentingLocation(),r?this.treeAdapter.insertTextBefore(n,e.chars,r):this.treeAdapter.insertText(n,e.chars)):(n=this.openElements.currentTmplContentOrNode,this.treeAdapter.insertText(n,e.chars)),!e.location)return;const i=this.treeAdapter.getChildNodes(n),s=r?i.lastIndexOf(r):i.length,a=i[s-1];if(this.treeAdapter.getNodeSourceCodeLocation(a)){const{endLine:l,endCol:u,endOffset:c}=e.location;this.treeAdapter.updateNodeSourceCodeLocation(a,{endLine:l,endCol:u,endOffset:c})}else this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(a,e.location)}_adoptNodes(e,n){for(let r=this.treeAdapter.getFirstChild(e);r;r=this.treeAdapter.getFirstChild(e))this.treeAdapter.detachNode(r),this.treeAdapter.appendChild(n,r)}_setEndLocation(e,n){if(this.treeAdapter.getNodeSourceCodeLocation(e)&&n.location){const r=n.location,i=this.treeAdapter.getTagName(e),s=n.type===on.END_TAG&&i===n.tagName?{endTag:{...r},endLine:r.endLine,endCol:r.endCol,endOffset:r.endOffset}:{endLine:r.startLine,endCol:r.startCol,endOffset:r.startOffset};this.treeAdapter.updateNodeSourceCodeLocation(e,s)}}shouldProcessStartTagTokenInForeignContent(e){if(!this.currentNotInHTML)return!1;let n,r;return this.openElements.stackTop===0&&this.fragmentContext?(n=this.fragmentContext,r=this.fragmentContextID):{current:n,currentTagId:r}=this.openElements,e.tagID===M.SVG&&this.treeAdapter.getTagName(n)===we.ANNOTATION_XML&&this.treeAdapter.getNamespaceURI(n)===je.MATHML?!1:this.tokenizer.inForeignNode||(e.tagID===M.MGLYPH||e.tagID===M.MALIGNMARK)&&r!==void 0&&!this._isIntegrationPoint(r,n,je.HTML)}_processToken(e){switch(e.type){case on.CHARACTER:{this.onCharacter(e);break}case on.NULL_CHARACTER:{this.onNullCharacter(e);break}case on.COMMENT:{this.onComment(e);break}case on.DOCTYPE:{this.onDoctype(e);break}case on.START_TAG:{this._processStartTag(e);break}case on.END_TAG:{this.onEndTag(e);break}case on.EOF:{this.onEof(e);break}case on.WHITESPACE_CHARACTER:{this.onWhitespaceCharacter(e);break}}}_isIntegrationPoint(e,n,r){const i=this.treeAdapter.getNamespaceURI(n),s=this.treeAdapter.getAttrList(n);return cUe(e,i,s,r)}_reconstructActiveFormattingElements(){const e=this.activeFormattingElements.entries.length;if(e){const n=this.activeFormattingElements.entries.findIndex(i=>i.type===Vl.Marker||this.openElements.contains(i.element)),r=n===-1?e-1:n-1;for(let i=r;i>=0;i--){const s=this.activeFormattingElements.entries[i];this._insertElement(s.token,this.treeAdapter.getNamespaceURI(s.element)),s.element=this.openElements.current}}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=pe.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(M.P),this.openElements.popUntilTagNamePopped(M.P)}_resetInsertionMode(){for(let e=this.openElements.stackTop;e>=0;e--)switch(e===0&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[e]){case M.TR:{this.insertionMode=pe.IN_ROW;return}case M.TBODY:case M.THEAD:case M.TFOOT:{this.insertionMode=pe.IN_TABLE_BODY;return}case M.CAPTION:{this.insertionMode=pe.IN_CAPTION;return}case M.COLGROUP:{this.insertionMode=pe.IN_COLUMN_GROUP;return}case M.TABLE:{this.insertionMode=pe.IN_TABLE;return}case M.BODY:{this.insertionMode=pe.IN_BODY;return}case M.FRAMESET:{this.insertionMode=pe.IN_FRAMESET;return}case M.SELECT:{this._resetInsertionModeForSelect(e);return}case M.TEMPLATE:{this.insertionMode=this.tmplInsertionModeStack[0];return}case M.HTML:{this.insertionMode=this.headElement?pe.AFTER_HEAD:pe.BEFORE_HEAD;return}case M.TD:case M.TH:{if(e>0){this.insertionMode=pe.IN_CELL;return}break}case M.HEAD:{if(e>0){this.insertionMode=pe.IN_HEAD;return}break}}this.insertionMode=pe.IN_BODY}_resetInsertionModeForSelect(e){if(e>0)for(let n=e-1;n>0;n--){const r=this.openElements.tagIDs[n];if(r===M.TEMPLATE)break;if(r===M.TABLE){this.insertionMode=pe.IN_SELECT_IN_TABLE;return}}this.insertionMode=pe.IN_SELECT}_isElementCausesFosterParenting(e){return the.has(e)}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this.openElements.currentTagId!==void 0&&this._isElementCausesFosterParenting(this.openElements.currentTagId)}_findFosterParentingLocation(){for(let e=this.openElements.stackTop;e>=0;e--){const n=this.openElements.items[e];switch(this.openElements.tagIDs[e]){case M.TEMPLATE:{if(this.treeAdapter.getNamespaceURI(n)===je.HTML)return{parent:this.treeAdapter.getTemplateContent(n),beforeElement:null};break}case M.TABLE:{const r=this.treeAdapter.getParentNode(n);return r?{parent:r,beforeElement:n}:{parent:this.openElements.items[e-1],beforeElement:null}}}}return{parent:this.openElements.items[0],beforeElement:null}}_fosterParentElement(e){const n=this._findFosterParentingLocation();n.beforeElement?this.treeAdapter.insertBefore(n.parent,e,n.beforeElement):this.treeAdapter.appendChild(n.parent,e)}_isSpecialElement(e,n){const r=this.treeAdapter.getNamespaceURI(e);return DHe[r].has(n)}onCharacter(e){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){Vje(this,e);return}switch(this.insertionMode){case pe.INITIAL:{yy(this,e);break}case pe.BEFORE_HTML:{fb(this,e);break}case pe.BEFORE_HEAD:{hb(this,e);break}case pe.IN_HEAD:{pb(this,e);break}case pe.IN_HEAD_NO_SCRIPT:{mb(this,e);break}case pe.AFTER_HEAD:{gb(this,e);break}case pe.IN_BODY:case pe.IN_CAPTION:case pe.IN_CELL:case pe.IN_TEMPLATE:{rhe(this,e);break}case pe.TEXT:case pe.IN_SELECT:case pe.IN_SELECT_IN_TABLE:{this._insertCharacters(e);break}case pe.IN_TABLE:case pe.IN_TABLE_BODY:case pe.IN_ROW:{r4(this,e);break}case pe.IN_TABLE_TEXT:{uhe(this,e);break}case pe.IN_COLUMN_GROUP:{kS(this,e);break}case pe.AFTER_BODY:{IS(this,e);break}case pe.AFTER_AFTER_BODY:{kw(this,e);break}}}onNullCharacter(e){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){zje(this,e);return}switch(this.insertionMode){case pe.INITIAL:{yy(this,e);break}case pe.BEFORE_HTML:{fb(this,e);break}case pe.BEFORE_HEAD:{hb(this,e);break}case pe.IN_HEAD:{pb(this,e);break}case pe.IN_HEAD_NO_SCRIPT:{mb(this,e);break}case pe.AFTER_HEAD:{gb(this,e);break}case pe.TEXT:{this._insertCharacters(e);break}case pe.IN_TABLE:case pe.IN_TABLE_BODY:case pe.IN_ROW:{r4(this,e);break}case pe.IN_COLUMN_GROUP:{kS(this,e);break}case pe.AFTER_BODY:{IS(this,e);break}case pe.AFTER_AFTER_BODY:{kw(this,e);break}}}onComment(e){if(this.skipNextNewLine=!1,this.currentNotInHTML){gP(this,e);return}switch(this.insertionMode){case pe.INITIAL:case pe.BEFORE_HTML:case pe.BEFORE_HEAD:case pe.IN_HEAD:case pe.IN_HEAD_NO_SCRIPT:case pe.AFTER_HEAD:case pe.IN_BODY:case pe.IN_TABLE:case pe.IN_CAPTION:case pe.IN_COLUMN_GROUP:case pe.IN_TABLE_BODY:case pe.IN_ROW:case pe.IN_CELL:case pe.IN_SELECT:case pe.IN_SELECT_IN_TABLE:case pe.IN_TEMPLATE:case pe.IN_FRAMESET:case pe.AFTER_FRAMESET:{gP(this,e);break}case pe.IN_TABLE_TEXT:{by(this,e);break}case pe.AFTER_BODY:{_Ue(this,e);break}case pe.AFTER_AFTER_BODY:case pe.AFTER_AFTER_FRAMESET:{xUe(this,e);break}}}onDoctype(e){switch(this.skipNextNewLine=!1,this.insertionMode){case pe.INITIAL:{wUe(this,e);break}case pe.BEFORE_HEAD:case pe.IN_HEAD:case pe.IN_HEAD_NO_SCRIPT:case pe.AFTER_HEAD:{this._err(e,De.misplacedDoctype);break}case pe.IN_TABLE_TEXT:{by(this,e);break}}}onStartTag(e){this.skipNextNewLine=!1,this.currentToken=e,this._processStartTag(e),e.selfClosing&&!e.ackSelfClosing&&this._err(e,De.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(e){this.shouldProcessStartTagTokenInForeignContent(e)?qje(this,e):this._startTagOutsideForeignContent(e)}_startTagOutsideForeignContent(e){switch(this.insertionMode){case pe.INITIAL:{yy(this,e);break}case pe.BEFORE_HTML:{SUe(this,e);break}case pe.BEFORE_HEAD:{TUe(this,e);break}case pe.IN_HEAD:{bl(this,e);break}case pe.IN_HEAD_NO_SCRIPT:{NUe(this,e);break}case pe.AFTER_HEAD:{kUe(this,e);break}case pe.IN_BODY:{bs(this,e);break}case pe.IN_TABLE:{Wg(this,e);break}case pe.IN_TABLE_TEXT:{by(this,e);break}case pe.IN_CAPTION:{Aje(this,e);break}case pe.IN_COLUMN_GROUP:{T$(this,e);break}case pe.IN_TABLE_BODY:{FT(this,e);break}case pe.IN_ROW:{BT(this,e);break}case pe.IN_CELL:{Oje(this,e);break}case pe.IN_SELECT:{fhe(this,e);break}case pe.IN_SELECT_IN_TABLE:{Ije(this,e);break}case pe.IN_TEMPLATE:{Dje(this,e);break}case pe.AFTER_BODY:{Lje(this,e);break}case pe.IN_FRAMESET:{$je(this,e);break}case pe.AFTER_FRAMESET:{Bje(this,e);break}case pe.AFTER_AFTER_BODY:{Uje(this,e);break}case pe.AFTER_AFTER_FRAMESET:{jje(this,e);break}}}onEndTag(e){this.skipNextNewLine=!1,this.currentToken=e,this.currentNotInHTML?Gje(this,e):this._endTagOutsideForeignContent(e)}_endTagOutsideForeignContent(e){switch(this.insertionMode){case pe.INITIAL:{yy(this,e);break}case pe.BEFORE_HTML:{CUe(this,e);break}case pe.BEFORE_HEAD:{AUe(this,e);break}case pe.IN_HEAD:{RUe(this,e);break}case pe.IN_HEAD_NO_SCRIPT:{OUe(this,e);break}case pe.AFTER_HEAD:{IUe(this,e);break}case pe.IN_BODY:{$T(this,e);break}case pe.TEXT:{yje(this,e);break}case pe.IN_TABLE:{Jb(this,e);break}case pe.IN_TABLE_TEXT:{by(this,e);break}case pe.IN_CAPTION:{Rje(this,e);break}case pe.IN_COLUMN_GROUP:{Nje(this,e);break}case pe.IN_TABLE_BODY:{yP(this,e);break}case pe.IN_ROW:{dhe(this,e);break}case pe.IN_CELL:{kje(this,e);break}case pe.IN_SELECT:{hhe(this,e);break}case pe.IN_SELECT_IN_TABLE:{Mje(this,e);break}case pe.IN_TEMPLATE:{Pje(this,e);break}case pe.AFTER_BODY:{mhe(this,e);break}case pe.IN_FRAMESET:{Fje(this,e);break}case pe.AFTER_FRAMESET:{Hje(this,e);break}case pe.AFTER_AFTER_BODY:{kw(this,e);break}}}onEof(e){switch(this.insertionMode){case pe.INITIAL:{yy(this,e);break}case pe.BEFORE_HTML:{fb(this,e);break}case pe.BEFORE_HEAD:{hb(this,e);break}case pe.IN_HEAD:{pb(this,e);break}case pe.IN_HEAD_NO_SCRIPT:{mb(this,e);break}case pe.AFTER_HEAD:{gb(this,e);break}case pe.IN_BODY:case pe.IN_TABLE:case pe.IN_CAPTION:case pe.IN_COLUMN_GROUP:case pe.IN_TABLE_BODY:case pe.IN_ROW:case pe.IN_CELL:case pe.IN_SELECT:case pe.IN_SELECT_IN_TABLE:{ohe(this,e);break}case pe.TEXT:{bje(this,e);break}case pe.IN_TABLE_TEXT:{by(this,e);break}case pe.IN_TEMPLATE:{phe(this,e);break}case pe.AFTER_BODY:case pe.IN_FRAMESET:case pe.AFTER_FRAMESET:case pe.AFTER_AFTER_BODY:case pe.AFTER_AFTER_FRAMESET:{C$(this,e);break}}}onWhitespaceCharacter(e){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,e.chars.charCodeAt(0)===ie.LINE_FEED)){if(e.chars.length===1)return;e.chars=e.chars.substr(1)}if(this.tokenizer.inForeignNode){this._insertCharacters(e);return}switch(this.insertionMode){case pe.IN_HEAD:case pe.IN_HEAD_NO_SCRIPT:case pe.AFTER_HEAD:case pe.TEXT:case pe.IN_COLUMN_GROUP:case pe.IN_SELECT:case pe.IN_SELECT_IN_TABLE:case pe.IN_FRAMESET:case pe.AFTER_FRAMESET:{this._insertCharacters(e);break}case pe.IN_BODY:case pe.IN_CAPTION:case pe.IN_CELL:case pe.IN_TEMPLATE:case pe.AFTER_BODY:case pe.AFTER_AFTER_BODY:case pe.AFTER_AFTER_FRAMESET:{nhe(this,e);break}case pe.IN_TABLE:case pe.IN_TABLE_BODY:case pe.IN_ROW:{r4(this,e);break}case pe.IN_TABLE_TEXT:{lhe(this,e);break}}}};function mUe(t,e){let n=t.activeFormattingElements.getElementEntryInScopeWithTagName(e.tagName);return n?t.openElements.contains(n.element)?t.openElements.hasInScope(e.tagID)||(n=null):(t.activeFormattingElements.removeEntry(n),n=null):ahe(t,e),n}function gUe(t,e){let n=null,r=t.openElements.stackTop;for(;r>=0;r--){const i=t.openElements.items[r];if(i===e.element)break;t._isSpecialElement(i,t.openElements.tagIDs[r])&&(n=i)}return n||(t.openElements.shortenToLength(Math.max(r,0)),t.activeFormattingElements.removeEntry(e)),n}function yUe(t,e,n){let r=e,i=t.openElements.getCommonAncestor(e);for(let s=0,a=i;a!==n;s++,a=i){i=t.openElements.getCommonAncestor(a);const o=t.activeFormattingElements.getElementEntry(a),l=o&&s>=hUe;!o||l?(l&&t.activeFormattingElements.removeEntry(o),t.openElements.remove(a)):(a=bUe(t,o),r===e&&(t.activeFormattingElements.bookmark=o),t.treeAdapter.detachNode(r),t.treeAdapter.appendChild(a,r),r=a)}return r}function bUe(t,e){const n=t.treeAdapter.getNamespaceURI(e.element),r=t.treeAdapter.createElement(e.token.tagName,n,e.token.attrs);return t.openElements.replace(e.element,r),e.element=r,r}function vUe(t,e,n){const r=t.treeAdapter.getTagName(e),i=B0(r);if(t._isElementCausesFosterParenting(i))t._fosterParentElement(n);else{const s=t.treeAdapter.getNamespaceURI(e);i===M.TEMPLATE&&s===je.HTML&&(e=t.treeAdapter.getTemplateContent(e)),t.treeAdapter.appendChild(e,n)}}function EUe(t,e,n){const r=t.treeAdapter.getNamespaceURI(n.element),{token:i}=n,s=t.treeAdapter.createElement(i.tagName,r,i.attrs);t._adoptNodes(e,s),t.treeAdapter.appendChild(e,s),t.activeFormattingElements.insertElementAfterBookmark(s,i),t.activeFormattingElements.removeEntry(n),t.openElements.remove(n.element),t.openElements.insertAfter(e,s,i.tagID)}function S$(t,e){for(let n=0;n<fUe;n++){const r=mUe(t,e);if(!r)break;const i=gUe(t,r);if(!i)break;t.activeFormattingElements.bookmark=r;const s=yUe(t,i,r.element),a=t.openElements.getCommonAncestor(r.element);t.treeAdapter.detachNode(s),a&&vUe(t,a,s),EUe(t,i,r)}}function gP(t,e){t._appendCommentNode(e,t.openElements.currentTmplContentOrNode)}function _Ue(t,e){t._appendCommentNode(e,t.openElements.items[0])}function xUe(t,e){t._appendCommentNode(e,t.document)}function C$(t,e){if(t.stopped=!0,e.location){const n=t.fragmentContext?0:2;for(let r=t.openElements.stackTop;r>=n;r--)t._setEndLocation(t.openElements.items[r],e);if(!t.fragmentContext&&t.openElements.stackTop>=0){const r=t.openElements.items[0],i=t.treeAdapter.getNodeSourceCodeLocation(r);if(i&&!i.endTag&&(t._setEndLocation(r,e),t.openElements.stackTop>=1)){const s=t.openElements.items[1],a=t.treeAdapter.getNodeSourceCodeLocation(s);a&&!a.endTag&&t._setEndLocation(s,e)}}}}function wUe(t,e){t._setDocumentType(e);const n=e.forceQuirks?yo.QUIRKS:JHe(e);ZHe(e)||t._err(e,De.nonConformingDoctype),t.treeAdapter.setDocumentMode(t.document,n),t.insertionMode=pe.BEFORE_HTML}function yy(t,e){t._err(e,De.missingDoctype,!0),t.treeAdapter.setDocumentMode(t.document,yo.QUIRKS),t.insertionMode=pe.BEFORE_HTML,t._processToken(e)}function SUe(t,e){e.tagID===M.HTML?(t._insertElement(e,je.HTML),t.insertionMode=pe.BEFORE_HEAD):fb(t,e)}function CUe(t,e){const n=e.tagID;(n===M.HTML||n===M.HEAD||n===M.BODY||n===M.BR)&&fb(t,e)}function fb(t,e){t._insertFakeRootElement(),t.insertionMode=pe.BEFORE_HEAD,t._processToken(e)}function TUe(t,e){switch(e.tagID){case M.HTML:{bs(t,e);break}case M.HEAD:{t._insertElement(e,je.HTML),t.headElement=t.openElements.current,t.insertionMode=pe.IN_HEAD;break}default:hb(t,e)}}function AUe(t,e){const n=e.tagID;n===M.HEAD||n===M.BODY||n===M.HTML||n===M.BR?hb(t,e):t._err(e,De.endTagWithoutMatchingOpenElement)}function hb(t,e){t._insertFakeElement(we.HEAD,M.HEAD),t.headElement=t.openElements.current,t.insertionMode=pe.IN_HEAD,t._processToken(e)}function bl(t,e){switch(e.tagID){case M.HTML:{bs(t,e);break}case M.BASE:case M.BASEFONT:case M.BGSOUND:case M.LINK:case M.META:{t._appendElement(e,je.HTML),e.ackSelfClosing=!0;break}case M.TITLE:{t._switchToTextParsing(e,Zr.RCDATA);break}case M.NOSCRIPT:{t.options.scriptingEnabled?t._switchToTextParsing(e,Zr.RAWTEXT):(t._insertElement(e,je.HTML),t.insertionMode=pe.IN_HEAD_NO_SCRIPT);break}case M.NOFRAMES:case M.STYLE:{t._switchToTextParsing(e,Zr.RAWTEXT);break}case M.SCRIPT:{t._switchToTextParsing(e,Zr.SCRIPT_DATA);break}case M.TEMPLATE:{t._insertTemplate(e),t.activeFormattingElements.insertMarker(),t.framesetOk=!1,t.insertionMode=pe.IN_TEMPLATE,t.tmplInsertionModeStack.unshift(pe.IN_TEMPLATE);break}case M.HEAD:{t._err(e,De.misplacedStartTagForHeadElement);break}default:pb(t,e)}}function RUe(t,e){switch(e.tagID){case M.HEAD:{t.openElements.pop(),t.insertionMode=pe.AFTER_HEAD;break}case M.BODY:case M.BR:case M.HTML:{pb(t,e);break}case M.TEMPLATE:{Np(t,e);break}default:t._err(e,De.endTagWithoutMatchingOpenElement)}}function Np(t,e){t.openElements.tmplCount>0?(t.openElements.generateImpliedEndTagsThoroughly(),t.openElements.currentTagId!==M.TEMPLATE&&t._err(e,De.closingOfElementWithOpenChildElements),t.openElements.popUntilTagNamePopped(M.TEMPLATE),t.activeFormattingElements.clearToLastMarker(),t.tmplInsertionModeStack.shift(),t._resetInsertionMode()):t._err(e,De.endTagWithoutMatchingOpenElement)}function pb(t,e){t.openElements.pop(),t.insertionMode=pe.AFTER_HEAD,t._processToken(e)}function NUe(t,e){switch(e.tagID){case M.HTML:{bs(t,e);break}case M.BASEFONT:case M.BGSOUND:case M.HEAD:case M.LINK:case M.META:case M.NOFRAMES:case M.STYLE:{bl(t,e);break}case M.NOSCRIPT:{t._err(e,De.nestedNoscriptInHead);break}default:mb(t,e)}}function OUe(t,e){switch(e.tagID){case M.NOSCRIPT:{t.openElements.pop(),t.insertionMode=pe.IN_HEAD;break}case M.BR:{mb(t,e);break}default:t._err(e,De.endTagWithoutMatchingOpenElement)}}function mb(t,e){const n=e.type===on.EOF?De.openElementsLeftAfterEof:De.disallowedContentInNoscriptInHead;t._err(e,n),t.openElements.pop(),t.insertionMode=pe.IN_HEAD,t._processToken(e)}function kUe(t,e){switch(e.tagID){case M.HTML:{bs(t,e);break}case M.BODY:{t._insertElement(e,je.HTML),t.framesetOk=!1,t.insertionMode=pe.IN_BODY;break}case M.FRAMESET:{t._insertElement(e,je.HTML),t.insertionMode=pe.IN_FRAMESET;break}case M.BASE:case M.BASEFONT:case M.BGSOUND:case M.LINK:case M.META:case M.NOFRAMES:case M.SCRIPT:case M.STYLE:case M.TEMPLATE:case M.TITLE:{t._err(e,De.abandonedHeadElementChild),t.openElements.push(t.headElement,M.HEAD),bl(t,e),t.openElements.remove(t.headElement);break}case M.HEAD:{t._err(e,De.misplacedStartTagForHeadElement);break}default:gb(t,e)}}function IUe(t,e){switch(e.tagID){case M.BODY:case M.HTML:case M.BR:{gb(t,e);break}case M.TEMPLATE:{Np(t,e);break}default:t._err(e,De.endTagWithoutMatchingOpenElement)}}function gb(t,e){t._insertFakeElement(we.BODY,M.BODY),t.insertionMode=pe.IN_BODY,LT(t,e)}function LT(t,e){switch(e.type){case on.CHARACTER:{rhe(t,e);break}case on.WHITESPACE_CHARACTER:{nhe(t,e);break}case on.COMMENT:{gP(t,e);break}case on.START_TAG:{bs(t,e);break}case on.END_TAG:{$T(t,e);break}case on.EOF:{ohe(t,e);break}}}function nhe(t,e){t._reconstructActiveFormattingElements(),t._insertCharacters(e)}function rhe(t,e){t._reconstructActiveFormattingElements(),t._insertCharacters(e),t.framesetOk=!1}function MUe(t,e){t.openElements.tmplCount===0&&t.treeAdapter.adoptAttributes(t.openElements.items[0],e.attrs)}function DUe(t,e){const n=t.openElements.tryPeekProperlyNestedBodyElement();n&&t.openElements.tmplCount===0&&(t.framesetOk=!1,t.treeAdapter.adoptAttributes(n,e.attrs))}function PUe(t,e){const n=t.openElements.tryPeekProperlyNestedBodyElement();t.framesetOk&&n&&(t.treeAdapter.detachNode(n),t.openElements.popAllUpToHtmlElement(),t._insertElement(e,je.HTML),t.insertionMode=pe.IN_FRAMESET)}function LUe(t,e){t.openElements.hasInButtonScope(M.P)&&t._closePElement(),t._insertElement(e,je.HTML)}function $Ue(t,e){t.openElements.hasInButtonScope(M.P)&&t._closePElement(),t.openElements.currentTagId!==void 0&&mP.has(t.openElements.currentTagId)&&t.openElements.pop(),t._insertElement(e,je.HTML)}function FUe(t,e){t.openElements.hasInButtonScope(M.P)&&t._closePElement(),t._insertElement(e,je.HTML),t.skipNextNewLine=!0,t.framesetOk=!1}function BUe(t,e){const n=t.openElements.tmplCount>0;(!t.formElement||n)&&(t.openElements.hasInButtonScope(M.P)&&t._closePElement(),t._insertElement(e,je.HTML),n||(t.formElement=t.openElements.current))}function HUe(t,e){t.framesetOk=!1;const n=e.tagID;for(let r=t.openElements.stackTop;r>=0;r--){const i=t.openElements.tagIDs[r];if(n===M.LI&&i===M.LI||(n===M.DD||n===M.DT)&&(i===M.DD||i===M.DT)){t.openElements.generateImpliedEndTagsWithExclusion(i),t.openElements.popUntilTagNamePopped(i);break}if(i!==M.ADDRESS&&i!==M.DIV&&i!==M.P&&t._isSpecialElement(t.openElements.items[r],i))break}t.openElements.hasInButtonScope(M.P)&&t._closePElement(),t._insertElement(e,je.HTML)}function UUe(t,e){t.openElements.hasInButtonScope(M.P)&&t._closePElement(),t._insertElement(e,je.HTML),t.tokenizer.state=Zr.PLAINTEXT}function jUe(t,e){t.openElements.hasInScope(M.BUTTON)&&(t.openElements.generateImpliedEndTags(),t.openElements.popUntilTagNamePopped(M.BUTTON)),t._reconstructActiveFormattingElements(),t._insertElement(e,je.HTML),t.framesetOk=!1}function zUe(t,e){const n=t.activeFormattingElements.getElementEntryInScopeWithTagName(we.A);n&&(S$(t,e),t.openElements.remove(n.element),t.activeFormattingElements.removeEntry(n)),t._reconstructActiveFormattingElements(),t._insertElement(e,je.HTML),t.activeFormattingElements.pushElement(t.openElements.current,e)}function VUe(t,e){t._reconstructActiveFormattingElements(),t._insertElement(e,je.HTML),t.activeFormattingElements.pushElement(t.openElements.current,e)}function qUe(t,e){t._reconstructActiveFormattingElements(),t.openElements.hasInScope(M.NOBR)&&(S$(t,e),t._reconstructActiveFormattingElements()),t._insertElement(e,je.HTML),t.activeFormattingElements.pushElement(t.openElements.current,e)}function GUe(t,e){t._reconstructActiveFormattingElements(),t._insertElement(e,je.HTML),t.activeFormattingElements.insertMarker(),t.framesetOk=!1}function WUe(t,e){t.treeAdapter.getDocumentMode(t.document)!==yo.QUIRKS&&t.openElements.hasInButtonScope(M.P)&&t._closePElement(),t._insertElement(e,je.HTML),t.framesetOk=!1,t.insertionMode=pe.IN_TABLE}function ihe(t,e){t._reconstructActiveFormattingElements(),t._appendElement(e,je.HTML),t.framesetOk=!1,e.ackSelfClosing=!0}function she(t){const e=Wfe(t,Oh.TYPE);return e!=null&&e.toLowerCase()===dUe}function YUe(t,e){t._reconstructActiveFormattingElements(),t._appendElement(e,je.HTML),she(e)||(t.framesetOk=!1),e.ackSelfClosing=!0}function KUe(t,e){t._appendElement(e,je.HTML),e.ackSelfClosing=!0}function XUe(t,e){t.openElements.hasInButtonScope(M.P)&&t._closePElement(),t._appendElement(e,je.HTML),t.framesetOk=!1,e.ackSelfClosing=!0}function QUe(t,e){e.tagName=we.IMG,e.tagID=M.IMG,ihe(t,e)}function ZUe(t,e){t._insertElement(e,je.HTML),t.skipNextNewLine=!0,t.tokenizer.state=Zr.RCDATA,t.originalInsertionMode=t.insertionMode,t.framesetOk=!1,t.insertionMode=pe.TEXT}function JUe(t,e){t.openElements.hasInButtonScope(M.P)&&t._closePElement(),t._reconstructActiveFormattingElements(),t.framesetOk=!1,t._switchToTextParsing(e,Zr.RAWTEXT)}function eje(t,e){t.framesetOk=!1,t._switchToTextParsing(e,Zr.RAWTEXT)}function zY(t,e){t._switchToTextParsing(e,Zr.RAWTEXT)}function tje(t,e){t._reconstructActiveFormattingElements(),t._insertElement(e,je.HTML),t.framesetOk=!1,t.insertionMode=t.insertionMode===pe.IN_TABLE||t.insertionMode===pe.IN_CAPTION||t.insertionMode===pe.IN_TABLE_BODY||t.insertionMode===pe.IN_ROW||t.insertionMode===pe.IN_CELL?pe.IN_SELECT_IN_TABLE:pe.IN_SELECT}function nje(t,e){t.openElements.currentTagId===M.OPTION&&t.openElements.pop(),t._reconstructActiveFormattingElements(),t._insertElement(e,je.HTML)}function rje(t,e){t.openElements.hasInScope(M.RUBY)&&t.openElements.generateImpliedEndTags(),t._insertElement(e,je.HTML)}function ije(t,e){t.openElements.hasInScope(M.RUBY)&&t.openElements.generateImpliedEndTagsWithExclusion(M.RTC),t._insertElement(e,je.HTML)}function sje(t,e){t._reconstructActiveFormattingElements(),Jfe(e),w$(e),e.selfClosing?t._appendElement(e,je.MATHML):t._insertElement(e,je.MATHML),e.ackSelfClosing=!0}function aje(t,e){t._reconstructActiveFormattingElements(),ehe(e),w$(e),e.selfClosing?t._appendElement(e,je.SVG):t._insertElement(e,je.SVG),e.ackSelfClosing=!0}function VY(t,e){t._reconstructActiveFormattingElements(),t._insertElement(e,je.HTML)}function bs(t,e){switch(e.tagID){case M.I:case M.S:case M.B:case M.U:case M.EM:case M.TT:case M.BIG:case M.CODE:case M.FONT:case M.SMALL:case M.STRIKE:case M.STRONG:{VUe(t,e);break}case M.A:{zUe(t,e);break}case M.H1:case M.H2:case M.H3:case M.H4:case M.H5:case M.H6:{$Ue(t,e);break}case M.P:case M.DL:case M.OL:case M.UL:case M.DIV:case M.DIR:case M.NAV:case M.MAIN:case M.MENU:case M.ASIDE:case M.CENTER:case M.FIGURE:case M.FOOTER:case M.HEADER:case M.HGROUP:case M.DIALOG:case M.DETAILS:case M.ADDRESS:case M.ARTICLE:case M.SEARCH:case M.SECTION:case M.SUMMARY:case M.FIELDSET:case M.BLOCKQUOTE:case M.FIGCAPTION:{LUe(t,e);break}case M.LI:case M.DD:case M.DT:{HUe(t,e);break}case M.BR:case M.IMG:case M.WBR:case M.AREA:case M.EMBED:case M.KEYGEN:{ihe(t,e);break}case M.HR:{XUe(t,e);break}case M.RB:case M.RTC:{rje(t,e);break}case M.RT:case M.RP:{ije(t,e);break}case M.PRE:case M.LISTING:{FUe(t,e);break}case M.XMP:{JUe(t,e);break}case M.SVG:{aje(t,e);break}case M.HTML:{MUe(t,e);break}case M.BASE:case M.LINK:case M.META:case M.STYLE:case M.TITLE:case M.SCRIPT:case M.BGSOUND:case M.BASEFONT:case M.TEMPLATE:{bl(t,e);break}case M.BODY:{DUe(t,e);break}case M.FORM:{BUe(t,e);break}case M.NOBR:{qUe(t,e);break}case M.MATH:{sje(t,e);break}case M.TABLE:{WUe(t,e);break}case M.INPUT:{YUe(t,e);break}case M.PARAM:case M.TRACK:case M.SOURCE:{KUe(t,e);break}case M.IMAGE:{QUe(t,e);break}case M.BUTTON:{jUe(t,e);break}case M.APPLET:case M.OBJECT:case M.MARQUEE:{GUe(t,e);break}case M.IFRAME:{eje(t,e);break}case M.SELECT:{tje(t,e);break}case M.OPTION:case M.OPTGROUP:{nje(t,e);break}case M.NOEMBED:case M.NOFRAMES:{zY(t,e);break}case M.FRAMESET:{PUe(t,e);break}case M.TEXTAREA:{ZUe(t,e);break}case M.NOSCRIPT:{t.options.scriptingEnabled?zY(t,e):VY(t,e);break}case M.PLAINTEXT:{UUe(t,e);break}case M.COL:case M.TH:case M.TD:case M.TR:case M.HEAD:case M.FRAME:case M.TBODY:case M.TFOOT:case M.THEAD:case M.CAPTION:case M.COLGROUP:break;default:VY(t,e)}}function oje(t,e){if(t.openElements.hasInScope(M.BODY)&&(t.insertionMode=pe.AFTER_BODY,t.options.sourceCodeLocationInfo)){const n=t.openElements.tryPeekProperlyNestedBodyElement();n&&t._setEndLocation(n,e)}}function lje(t,e){t.openElements.hasInScope(M.BODY)&&(t.insertionMode=pe.AFTER_BODY,mhe(t,e))}function uje(t,e){const n=e.tagID;t.openElements.hasInScope(n)&&(t.openElements.generateImpliedEndTags(),t.openElements.popUntilTagNamePopped(n))}function cje(t){const e=t.openElements.tmplCount>0,{formElement:n}=t;e||(t.formElement=null),(n||e)&&t.openElements.hasInScope(M.FORM)&&(t.openElements.generateImpliedEndTags(),e?t.openElements.popUntilTagNamePopped(M.FORM):n&&t.openElements.remove(n))}function dje(t){t.openElements.hasInButtonScope(M.P)||t._insertFakeElement(we.P,M.P),t._closePElement()}function fje(t){t.openElements.hasInListItemScope(M.LI)&&(t.openElements.generateImpliedEndTagsWithExclusion(M.LI),t.openElements.popUntilTagNamePopped(M.LI))}function hje(t,e){const n=e.tagID;t.openElements.hasInScope(n)&&(t.openElements.generateImpliedEndTagsWithExclusion(n),t.openElements.popUntilTagNamePopped(n))}function pje(t){t.openElements.hasNumberedHeaderInScope()&&(t.openElements.generateImpliedEndTags(),t.openElements.popUntilNumberedHeaderPopped())}function mje(t,e){const n=e.tagID;t.openElements.hasInScope(n)&&(t.openElements.generateImpliedEndTags(),t.openElements.popUntilTagNamePopped(n),t.activeFormattingElements.clearToLastMarker())}function gje(t){t._reconstructActiveFormattingElements(),t._insertFakeElement(we.BR,M.BR),t.openElements.pop(),t.framesetOk=!1}function ahe(t,e){const n=e.tagName,r=e.tagID;for(let i=t.openElements.stackTop;i>0;i--){const s=t.openElements.items[i],a=t.openElements.tagIDs[i];if(r===a&&(r!==M.UNKNOWN||t.treeAdapter.getTagName(s)===n)){t.openElements.generateImpliedEndTagsWithExclusion(r),t.openElements.stackTop>=i&&t.openElements.shortenToLength(i);break}if(t._isSpecialElement(s,a))break}}function $T(t,e){switch(e.tagID){case M.A:case M.B:case M.I:case M.S:case M.U:case M.EM:case M.TT:case M.BIG:case M.CODE:case M.FONT:case M.NOBR:case M.SMALL:case M.STRIKE:case M.STRONG:{S$(t,e);break}case M.P:{dje(t);break}case M.DL:case M.UL:case M.OL:case M.DIR:case M.DIV:case M.NAV:case M.PRE:case M.MAIN:case M.MENU:case M.ASIDE:case M.BUTTON:case M.CENTER:case M.FIGURE:case M.FOOTER:case M.HEADER:case M.HGROUP:case M.DIALOG:case M.ADDRESS:case M.ARTICLE:case M.DETAILS:case M.SEARCH:case M.SECTION:case M.SUMMARY:case M.LISTING:case M.FIELDSET:case M.BLOCKQUOTE:case M.FIGCAPTION:{uje(t,e);break}case M.LI:{fje(t);break}case M.DD:case M.DT:{hje(t,e);break}case M.H1:case M.H2:case M.H3:case M.H4:case M.H5:case M.H6:{pje(t);break}case M.BR:{gje(t);break}case M.BODY:{oje(t,e);break}case M.HTML:{lje(t,e);break}case M.FORM:{cje(t);break}case M.APPLET:case M.OBJECT:case M.MARQUEE:{mje(t,e);break}case M.TEMPLATE:{Np(t,e);break}default:ahe(t,e)}}function ohe(t,e){t.tmplInsertionModeStack.length>0?phe(t,e):C$(t,e)}function yje(t,e){var n;e.tagID===M.SCRIPT&&((n=t.scriptHandler)===null||n===void 0||n.call(t,t.openElements.current)),t.openElements.pop(),t.insertionMode=t.originalInsertionMode}function bje(t,e){t._err(e,De.eofInElementThatCanContainOnlyText),t.openElements.pop(),t.insertionMode=t.originalInsertionMode,t.onEof(e)}function r4(t,e){if(t.openElements.currentTagId!==void 0&&the.has(t.openElements.currentTagId))switch(t.pendingCharacterTokens.length=0,t.hasNonWhitespacePendingCharacterToken=!1,t.originalInsertionMode=t.insertionMode,t.insertionMode=pe.IN_TABLE_TEXT,e.type){case on.CHARACTER:{uhe(t,e);break}case on.WHITESPACE_CHARACTER:{lhe(t,e);break}}else R2(t,e)}function vje(t,e){t.openElements.clearBackToTableContext(),t.activeFormattingElements.insertMarker(),t._insertElement(e,je.HTML),t.insertionMode=pe.IN_CAPTION}function Eje(t,e){t.openElements.clearBackToTableContext(),t._insertElement(e,je.HTML),t.insertionMode=pe.IN_COLUMN_GROUP}function _je(t,e){t.openElements.clearBackToTableContext(),t._insertFakeElement(we.COLGROUP,M.COLGROUP),t.insertionMode=pe.IN_COLUMN_GROUP,T$(t,e)}function xje(t,e){t.openElements.clearBackToTableContext(),t._insertElement(e,je.HTML),t.insertionMode=pe.IN_TABLE_BODY}function wje(t,e){t.openElements.clearBackToTableContext(),t._insertFakeElement(we.TBODY,M.TBODY),t.insertionMode=pe.IN_TABLE_BODY,FT(t,e)}function Sje(t,e){t.openElements.hasInTableScope(M.TABLE)&&(t.openElements.popUntilTagNamePopped(M.TABLE),t._resetInsertionMode(),t._processStartTag(e))}function Cje(t,e){she(e)?t._appendElement(e,je.HTML):R2(t,e),e.ackSelfClosing=!0}function Tje(t,e){!t.formElement&&t.openElements.tmplCount===0&&(t._insertElement(e,je.HTML),t.formElement=t.openElements.current,t.openElements.pop())}function Wg(t,e){switch(e.tagID){case M.TD:case M.TH:case M.TR:{wje(t,e);break}case M.STYLE:case M.SCRIPT:case M.TEMPLATE:{bl(t,e);break}case M.COL:{_je(t,e);break}case M.FORM:{Tje(t,e);break}case M.TABLE:{Sje(t,e);break}case M.TBODY:case M.TFOOT:case M.THEAD:{xje(t,e);break}case M.INPUT:{Cje(t,e);break}case M.CAPTION:{vje(t,e);break}case M.COLGROUP:{Eje(t,e);break}default:R2(t,e)}}function Jb(t,e){switch(e.tagID){case M.TABLE:{t.openElements.hasInTableScope(M.TABLE)&&(t.openElements.popUntilTagNamePopped(M.TABLE),t._resetInsertionMode());break}case M.TEMPLATE:{Np(t,e);break}case M.BODY:case M.CAPTION:case M.COL:case M.COLGROUP:case M.HTML:case M.TBODY:case M.TD:case M.TFOOT:case M.TH:case M.THEAD:case M.TR:break;default:R2(t,e)}}function R2(t,e){const n=t.fosterParentingEnabled;t.fosterParentingEnabled=!0,LT(t,e),t.fosterParentingEnabled=n}function lhe(t,e){t.pendingCharacterTokens.push(e)}function uhe(t,e){t.pendingCharacterTokens.push(e),t.hasNonWhitespacePendingCharacterToken=!0}function by(t,e){let n=0;if(t.hasNonWhitespacePendingCharacterToken)for(;n<t.pendingCharacterTokens.length;n++)R2(t,t.pendingCharacterTokens[n]);else for(;n<t.pendingCharacterTokens.length;n++)t._insertCharacters(t.pendingCharacterTokens[n]);t.insertionMode=t.originalInsertionMode,t._processToken(e)}const che=new Set([M.CAPTION,M.COL,M.COLGROUP,M.TBODY,M.TD,M.TFOOT,M.TH,M.THEAD,M.TR]);function Aje(t,e){const n=e.tagID;che.has(n)?t.openElements.hasInTableScope(M.CAPTION)&&(t.openElements.generateImpliedEndTags(),t.openElements.popUntilTagNamePopped(M.CAPTION),t.activeFormattingElements.clearToLastMarker(),t.insertionMode=pe.IN_TABLE,Wg(t,e)):bs(t,e)}function Rje(t,e){const n=e.tagID;switch(n){case M.CAPTION:case M.TABLE:{t.openElements.hasInTableScope(M.CAPTION)&&(t.openElements.generateImpliedEndTags(),t.openElements.popUntilTagNamePopped(M.CAPTION),t.activeFormattingElements.clearToLastMarker(),t.insertionMode=pe.IN_TABLE,n===M.TABLE&&Jb(t,e));break}case M.BODY:case M.COL:case M.COLGROUP:case M.HTML:case M.TBODY:case M.TD:case M.TFOOT:case M.TH:case M.THEAD:case M.TR:break;default:$T(t,e)}}function T$(t,e){switch(e.tagID){case M.HTML:{bs(t,e);break}case M.COL:{t._appendElement(e,je.HTML),e.ackSelfClosing=!0;break}case M.TEMPLATE:{bl(t,e);break}default:kS(t,e)}}function Nje(t,e){switch(e.tagID){case M.COLGROUP:{t.openElements.currentTagId===M.COLGROUP&&(t.openElements.pop(),t.insertionMode=pe.IN_TABLE);break}case M.TEMPLATE:{Np(t,e);break}case M.COL:break;default:kS(t,e)}}function kS(t,e){t.openElements.currentTagId===M.COLGROUP&&(t.openElements.pop(),t.insertionMode=pe.IN_TABLE,t._processToken(e))}function FT(t,e){switch(e.tagID){case M.TR:{t.openElements.clearBackToTableBodyContext(),t._insertElement(e,je.HTML),t.insertionMode=pe.IN_ROW;break}case M.TH:case M.TD:{t.openElements.clearBackToTableBodyContext(),t._insertFakeElement(we.TR,M.TR),t.insertionMode=pe.IN_ROW,BT(t,e);break}case M.CAPTION:case M.COL:case M.COLGROUP:case M.TBODY:case M.TFOOT:case M.THEAD:{t.openElements.hasTableBodyContextInTableScope()&&(t.openElements.clearBackToTableBodyContext(),t.openElements.pop(),t.insertionMode=pe.IN_TABLE,Wg(t,e));break}default:Wg(t,e)}}function yP(t,e){const n=e.tagID;switch(e.tagID){case M.TBODY:case M.TFOOT:case M.THEAD:{t.openElements.hasInTableScope(n)&&(t.openElements.clearBackToTableBodyContext(),t.openElements.pop(),t.insertionMode=pe.IN_TABLE);break}case M.TABLE:{t.openElements.hasTableBodyContextInTableScope()&&(t.openElements.clearBackToTableBodyContext(),t.openElements.pop(),t.insertionMode=pe.IN_TABLE,Jb(t,e));break}case M.BODY:case M.CAPTION:case M.COL:case M.COLGROUP:case M.HTML:case M.TD:case M.TH:case M.TR:break;default:Jb(t,e)}}function BT(t,e){switch(e.tagID){case M.TH:case M.TD:{t.openElements.clearBackToTableRowContext(),t._insertElement(e,je.HTML),t.insertionMode=pe.IN_CELL,t.activeFormattingElements.insertMarker();break}case M.CAPTION:case M.COL:case M.COLGROUP:case M.TBODY:case M.TFOOT:case M.THEAD:case M.TR:{t.openElements.hasInTableScope(M.TR)&&(t.openElements.clearBackToTableRowContext(),t.openElements.pop(),t.insertionMode=pe.IN_TABLE_BODY,FT(t,e));break}default:Wg(t,e)}}function dhe(t,e){switch(e.tagID){case M.TR:{t.openElements.hasInTableScope(M.TR)&&(t.openElements.clearBackToTableRowContext(),t.openElements.pop(),t.insertionMode=pe.IN_TABLE_BODY);break}case M.TABLE:{t.openElements.hasInTableScope(M.TR)&&(t.openElements.clearBackToTableRowContext(),t.openElements.pop(),t.insertionMode=pe.IN_TABLE_BODY,yP(t,e));break}case M.TBODY:case M.TFOOT:case M.THEAD:{(t.openElements.hasInTableScope(e.tagID)||t.openElements.hasInTableScope(M.TR))&&(t.openElements.clearBackToTableRowContext(),t.openElements.pop(),t.insertionMode=pe.IN_TABLE_BODY,yP(t,e));break}case M.BODY:case M.CAPTION:case M.COL:case M.COLGROUP:case M.HTML:case M.TD:case M.TH:break;default:Jb(t,e)}}function Oje(t,e){const n=e.tagID;che.has(n)?(t.openElements.hasInTableScope(M.TD)||t.openElements.hasInTableScope(M.TH))&&(t._closeTableCell(),BT(t,e)):bs(t,e)}function kje(t,e){const n=e.tagID;switch(n){case M.TD:case M.TH:{t.openElements.hasInTableScope(n)&&(t.openElements.generateImpliedEndTags(),t.openElements.popUntilTagNamePopped(n),t.activeFormattingElements.clearToLastMarker(),t.insertionMode=pe.IN_ROW);break}case M.TABLE:case M.TBODY:case M.TFOOT:case M.THEAD:case M.TR:{t.openElements.hasInTableScope(n)&&(t._closeTableCell(),dhe(t,e));break}case M.BODY:case M.CAPTION:case M.COL:case M.COLGROUP:case M.HTML:break;default:$T(t,e)}}function fhe(t,e){switch(e.tagID){case M.HTML:{bs(t,e);break}case M.OPTION:{t.openElements.currentTagId===M.OPTION&&t.openElements.pop(),t._insertElement(e,je.HTML);break}case M.OPTGROUP:{t.openElements.currentTagId===M.OPTION&&t.openElements.pop(),t.openElements.currentTagId===M.OPTGROUP&&t.openElements.pop(),t._insertElement(e,je.HTML);break}case M.HR:{t.openElements.currentTagId===M.OPTION&&t.openElements.pop(),t.openElements.currentTagId===M.OPTGROUP&&t.openElements.pop(),t._appendElement(e,je.HTML),e.ackSelfClosing=!0;break}case M.INPUT:case M.KEYGEN:case M.TEXTAREA:case M.SELECT:{t.openElements.hasInSelectScope(M.SELECT)&&(t.openElements.popUntilTagNamePopped(M.SELECT),t._resetInsertionMode(),e.tagID!==M.SELECT&&t._processStartTag(e));break}case M.SCRIPT:case M.TEMPLATE:{bl(t,e);break}}}function hhe(t,e){switch(e.tagID){case M.OPTGROUP:{t.openElements.stackTop>0&&t.openElements.currentTagId===M.OPTION&&t.openElements.tagIDs[t.openElements.stackTop-1]===M.OPTGROUP&&t.openElements.pop(),t.openElements.currentTagId===M.OPTGROUP&&t.openElements.pop();break}case M.OPTION:{t.openElements.currentTagId===M.OPTION&&t.openElements.pop();break}case M.SELECT:{t.openElements.hasInSelectScope(M.SELECT)&&(t.openElements.popUntilTagNamePopped(M.SELECT),t._resetInsertionMode());break}case M.TEMPLATE:{Np(t,e);break}}}function Ije(t,e){const n=e.tagID;n===M.CAPTION||n===M.TABLE||n===M.TBODY||n===M.TFOOT||n===M.THEAD||n===M.TR||n===M.TD||n===M.TH?(t.openElements.popUntilTagNamePopped(M.SELECT),t._resetInsertionMode(),t._processStartTag(e)):fhe(t,e)}function Mje(t,e){const n=e.tagID;n===M.CAPTION||n===M.TABLE||n===M.TBODY||n===M.TFOOT||n===M.THEAD||n===M.TR||n===M.TD||n===M.TH?t.openElements.hasInTableScope(n)&&(t.openElements.popUntilTagNamePopped(M.SELECT),t._resetInsertionMode(),t.onEndTag(e)):hhe(t,e)}function Dje(t,e){switch(e.tagID){case M.BASE:case M.BASEFONT:case M.BGSOUND:case M.LINK:case M.META:case M.NOFRAMES:case M.SCRIPT:case M.STYLE:case M.TEMPLATE:case M.TITLE:{bl(t,e);break}case M.CAPTION:case M.COLGROUP:case M.TBODY:case M.TFOOT:case M.THEAD:{t.tmplInsertionModeStack[0]=pe.IN_TABLE,t.insertionMode=pe.IN_TABLE,Wg(t,e);break}case M.COL:{t.tmplInsertionModeStack[0]=pe.IN_COLUMN_GROUP,t.insertionMode=pe.IN_COLUMN_GROUP,T$(t,e);break}case M.TR:{t.tmplInsertionModeStack[0]=pe.IN_TABLE_BODY,t.insertionMode=pe.IN_TABLE_BODY,FT(t,e);break}case M.TD:case M.TH:{t.tmplInsertionModeStack[0]=pe.IN_ROW,t.insertionMode=pe.IN_ROW,BT(t,e);break}default:t.tmplInsertionModeStack[0]=pe.IN_BODY,t.insertionMode=pe.IN_BODY,bs(t,e)}}function Pje(t,e){e.tagID===M.TEMPLATE&&Np(t,e)}function phe(t,e){t.openElements.tmplCount>0?(t.openElements.popUntilTagNamePopped(M.TEMPLATE),t.activeFormattingElements.clearToLastMarker(),t.tmplInsertionModeStack.shift(),t._resetInsertionMode(),t.onEof(e)):C$(t,e)}function Lje(t,e){e.tagID===M.HTML?bs(t,e):IS(t,e)}function mhe(t,e){var n;if(e.tagID===M.HTML){if(t.fragmentContext||(t.insertionMode=pe.AFTER_AFTER_BODY),t.options.sourceCodeLocationInfo&&t.openElements.tagIDs[0]===M.HTML){t._setEndLocation(t.openElements.items[0],e);const r=t.openElements.items[1];r&&!(!((n=t.treeAdapter.getNodeSourceCodeLocation(r))===null||n===void 0)&&n.endTag)&&t._setEndLocation(r,e)}}else IS(t,e)}function IS(t,e){t.insertionMode=pe.IN_BODY,LT(t,e)}function $je(t,e){switch(e.tagID){case M.HTML:{bs(t,e);break}case M.FRAMESET:{t._insertElement(e,je.HTML);break}case M.FRAME:{t._appendElement(e,je.HTML),e.ackSelfClosing=!0;break}case M.NOFRAMES:{bl(t,e);break}}}function Fje(t,e){e.tagID===M.FRAMESET&&!t.openElements.isRootHtmlElementCurrent()&&(t.openElements.pop(),!t.fragmentContext&&t.openElements.currentTagId!==M.FRAMESET&&(t.insertionMode=pe.AFTER_FRAMESET))}function Bje(t,e){switch(e.tagID){case M.HTML:{bs(t,e);break}case M.NOFRAMES:{bl(t,e);break}}}function Hje(t,e){e.tagID===M.HTML&&(t.insertionMode=pe.AFTER_AFTER_FRAMESET)}function Uje(t,e){e.tagID===M.HTML?bs(t,e):kw(t,e)}function kw(t,e){t.insertionMode=pe.IN_BODY,LT(t,e)}function jje(t,e){switch(e.tagID){case M.HTML:{bs(t,e);break}case M.NOFRAMES:{bl(t,e);break}}}function zje(t,e){e.chars=Er,t._insertCharacters(e)}function Vje(t,e){t._insertCharacters(e),t.framesetOk=!1}function ghe(t){for(;t.treeAdapter.getNamespaceURI(t.openElements.current)!==je.HTML&&t.openElements.currentTagId!==void 0&&!t._isIntegrationPoint(t.openElements.currentTagId,t.openElements.current);)t.openElements.pop()}function qje(t,e){if(aUe(e))ghe(t),t._startTagOutsideForeignContent(e);else{const n=t._getAdjustedCurrentElement(),r=t.treeAdapter.getNamespaceURI(n);r===je.MATHML?Jfe(e):r===je.SVG&&(oUe(e),ehe(e)),w$(e),e.selfClosing?t._appendElement(e,r):t._insertElement(e,r),e.ackSelfClosing=!0}}function Gje(t,e){if(e.tagID===M.P||e.tagID===M.BR){ghe(t),t._endTagOutsideForeignContent(e);return}for(let n=t.openElements.stackTop;n>0;n--){const r=t.openElements.items[n];if(t.treeAdapter.getNamespaceURI(r)===je.HTML){t._endTagOutsideForeignContent(e);break}const i=t.treeAdapter.getTagName(r);if(i.toLowerCase()===e.tagName){e.tagName=i,t.openElements.shortenToLength(n);break}}}we.AREA,we.BASE,we.BASEFONT,we.BGSOUND,we.BR,we.COL,we.EMBED,we.FRAME,we.HR,we.IMG,we.INPUT,we.KEYGEN,we.LINK,we.META,we.PARAM,we.SOURCE,we.TRACK,we.WBR;const Wje=/<(\/?)(iframe|noembed|noframes|plaintext|script|style|textarea|title|xmp)(?=[\t\n\f\r />])/gi,Yje=new Set(["mdxFlowExpression","mdxJsxFlowElement","mdxJsxTextElement","mdxTextExpression","mdxjsEsm"]),qY={sourceCodeLocationInfo:!0,scriptingEnabled:!1};function yhe(t,e){const n=ize(t),r=_$("type",{handlers:{root:Kje,element:Xje,text:Qje,comment:vhe,doctype:Zje,raw:eze},unknown:tze}),i={parser:n?new jY(qY):jY.getFragmentParser(void 0,qY),handle(o){r(o,i)},stitches:!1,options:e||{}};r(t,i),H0(i,Eu());const s=n?i.parser.document:i.parser.getFragment(),a=sHe(s,{file:i.options.file});return i.stitches&&T2(a,"comment",function(o,l,u){const c=o;if(c.value.stitch&&u&&l!==void 0){const d=u.children;return d[l]=c.value.stitch,l}}),a.type==="root"&&a.children.length===1&&a.children[0].type===t.type?a.children[0]:a}function bhe(t,e){let n=-1;if(t)for(;++n<t.length;)e.handle(t[n])}function Kje(t,e){bhe(t.children,e)}function Xje(t,e){nze(t,e),bhe(t.children,e),rze(t,e)}function Qje(t,e){e.parser.tokenizer.state>4&&(e.parser.tokenizer.state=0);const n={type:on.CHARACTER,chars:t.value,location:N2(t)};H0(e,Eu(t)),e.parser.currentToken=n,e.parser._processToken(e.parser.currentToken)}function Zje(t,e){const n={type:on.DOCTYPE,name:"html",forceQuirks:!1,publicId:"",systemId:"",location:N2(t)};H0(e,Eu(t)),e.parser.currentToken=n,e.parser._processToken(e.parser.currentToken)}function Jje(t,e){e.stitches=!0;const n=sze(t);if("children"in t&&"children"in n){const r=yhe({type:"root",children:t.children},e.options);n.children=r.children}vhe({type:"comment",value:{stitch:n}},e)}function vhe(t,e){const n=t.value,r={type:on.COMMENT,data:n,location:N2(t)};H0(e,Eu(t)),e.parser.currentToken=r,e.parser._processToken(e.parser.currentToken)}function eze(t,e){if(e.parser.tokenizer.preprocessor.html="",e.parser.tokenizer.preprocessor.pos=-1,e.parser.tokenizer.preprocessor.lastGapPos=-2,e.parser.tokenizer.preprocessor.gapStack=[],e.parser.tokenizer.preprocessor.skipNextNewLine=!1,e.parser.tokenizer.preprocessor.lastChunkWritten=!1,e.parser.tokenizer.preprocessor.endOfChunkHit=!1,e.parser.tokenizer.preprocessor.isEol=!1,Ehe(e,Eu(t)),e.parser.tokenizer.write(e.options.tagfilter?t.value.replace(Wje,"<$1$2"):t.value,!1),e.parser.tokenizer._runParsingLoop(),e.parser.tokenizer.state===72||e.parser.tokenizer.state===78){e.parser.tokenizer.preprocessor.lastChunkWritten=!0;const n=e.parser.tokenizer._consume();e.parser.tokenizer._callState(n)}}function tze(t,e){const n=t;if(e.options.passThrough&&e.options.passThrough.includes(n.type))Jje(n,e);else{let r="";throw Yje.has(n.type)&&(r=". It looks like you are using MDX nodes with `hast-util-raw` (or `rehype-raw`). If you use this because you are using remark or rehype plugins that inject `'html'` nodes, then please raise an issue with that plugin, as its a bad and slow idea. If you use this because you are using markdown syntax, then you have to configure this utility (or plugin) to pass through these nodes (see `passThrough` in docs), but you can also migrate to use the MDX syntax"),new Error("Cannot compile `"+n.type+"` node"+r)}}function H0(t,e){Ehe(t,e);const n=t.parser.tokenizer.currentCharacterToken;n&&n.location&&(n.location.endLine=t.parser.tokenizer.preprocessor.line,n.location.endCol=t.parser.tokenizer.preprocessor.col+1,n.location.endOffset=t.parser.tokenizer.preprocessor.offset+1,t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)),t.parser.tokenizer.paused=!1,t.parser.tokenizer.inLoop=!1,t.parser.tokenizer.active=!1,t.parser.tokenizer.returnState=Zr.DATA,t.parser.tokenizer.charRefCode=-1,t.parser.tokenizer.consumedAfterSnapshot=-1,t.parser.tokenizer.currentLocation=null,t.parser.tokenizer.currentCharacterToken=null,t.parser.tokenizer.currentToken=null,t.parser.tokenizer.currentAttr={name:"",value:""}}function Ehe(t,e){if(e&&e.offset!==void 0){const n={startLine:e.line,startCol:e.column,startOffset:e.offset,endLine:-1,endCol:-1,endOffset:-1};t.parser.tokenizer.preprocessor.lineStartPos=-e.column+1,t.parser.tokenizer.preprocessor.droppedBufferSize=e.offset,t.parser.tokenizer.preprocessor.line=e.line,t.parser.tokenizer.currentLocation=n}}function nze(t,e){const n=t.tagName.toLowerCase();if(e.parser.tokenizer.state===Zr.PLAINTEXT)return;H0(e,Eu(t));const r=e.parser.openElements.current;let i="namespaceURI"in r?r.namespaceURI:yh.html;i===yh.html&&n==="svg"&&(i=yh.svg);const s=cHe({...t,children:[]},{space:i===yh.svg?"svg":"html"}),a={type:on.START_TAG,tagName:n,tagID:B0(n),selfClosing:!1,ackSelfClosing:!1,attrs:"attrs"in s?s.attrs:[],location:N2(t)};e.parser.currentToken=a,e.parser._processToken(e.parser.currentToken),e.parser.tokenizer.lastStartTagName=n}function rze(t,e){const n=t.tagName.toLowerCase();if(!e.parser.tokenizer.inForeignNode&&bHe.includes(n)||e.parser.tokenizer.state===Zr.PLAINTEXT)return;H0(e,kT(t));const r={type:on.END_TAG,tagName:n,tagID:B0(n),selfClosing:!1,ackSelfClosing:!1,attrs:[],location:N2(t)};e.parser.currentToken=r,e.parser._processToken(e.parser.currentToken),n===e.parser.tokenizer.lastStartTagName&&(e.parser.tokenizer.state===Zr.RCDATA||e.parser.tokenizer.state===Zr.RAWTEXT||e.parser.tokenizer.state===Zr.SCRIPT_DATA)&&(e.parser.tokenizer.state=Zr.DATA)}function ize(t){const e=t.type==="root"?t.children[0]:t;return!!(e&&(e.type==="doctype"||e.type==="element"&&e.tagName.toLowerCase()==="html"))}function N2(t){const e=Eu(t)||{line:void 0,column:void 0,offset:void 0},n=kT(t)||{line:void 0,column:void 0,offset:void 0};return{startLine:e.line,startCol:e.column,startOffset:e.offset,endLine:n.line,endCol:n.column,endOffset:n.offset}}function sze(t){return"children"in t?iu({...t,children:[]}):iu(t)}function b8t(t){return function(e,n){return yhe(e,{...t,file:n})}}const Jf=["ariaDescribedBy","ariaLabel","ariaLabelledBy"],GY={ancestors:{tbody:["table"],td:["table"],th:["table"],thead:["table"],tfoot:["table"],tr:["table"]},attributes:{a:[...Jf,"dataFootnoteBackref","dataFootnoteRef",["className","data-footnote-backref"],"href"],blockquote:["cite"],code:[["className",/^language-./]],del:["cite"],div:["itemScope","itemType"],dl:[...Jf],h2:[["className","sr-only"]],img:[...Jf,"longDesc","src"],input:[["disabled",!0],["type","checkbox"]],ins:["cite"],li:[["className","task-list-item"]],ol:[...Jf,["className","contains-task-list"]],q:["cite"],section:["dataFootnotes",["className","footnotes"]],source:["srcSet"],summary:[...Jf],table:[...Jf],ul:[...Jf,["className","contains-task-list"]],"*":["abbr","accept","acceptCharset","accessKey","action","align","alt","axis","border","cellPadding","cellSpacing","char","charOff","charSet","checked","clear","colSpan","color","cols","compact","coords","dateTime","dir","encType","frame","hSpace","headers","height","hrefLang","htmlFor","id","isMap","itemProp","label","lang","maxLength","media","method","multiple","name","noHref","noShade","noWrap","open","prompt","readOnly","rev","rowSpan","rows","rules","scope","selected","shape","size","span","start","summary","tabIndex","title","useMap","vAlign","value","width"]},clobber:["ariaDescribedBy","ariaLabelledBy","id","name"],clobberPrefix:"user-content-",protocols:{cite:["http","https"],href:["http","https","irc","ircs","mailto","xmpp"],longDesc:["http","https"],src:["http","https"]},required:{input:{disabled:!0,type:"checkbox"}},strip:["script"],tagNames:["a","b","blockquote","br","code","dd","del","details","div","dl","dt","em","h1","h2","h3","h4","h5","h6","hr","i","img","input","ins","kbd","li","ol","p","picture","pre","q","rp","rt","ruby","s","samp","section","source","span","strike","strong","sub","summary","sup","table","tbody","td","tfoot","th","thead","tr","tt","ul","var"]},Md={}.hasOwnProperty;function aze(t,e){let n={type:"root",children:[]};const r={schema:e?{...GY,...e}:GY,stack:[]},i=_he(r,t);return i&&(Array.isArray(i)?i.length===1?n=i[0]:n.children=i:n=i),n}function _he(t,e){if(e&&typeof e=="object"){const n=e;switch(typeof n.type=="string"?n.type:""){case"comment":return oze(t,n);case"doctype":return lze(t,n);case"element":return uze(t,n);case"root":return cze(t,n);case"text":return dze(t,n)}}}function oze(t,e){if(t.schema.allowComments){const n=typeof e.value=="string"?e.value:"",r=n.indexOf("-->"),s={type:"comment",value:r<0?n:n.slice(0,r)};return O2(s,e),s}}function lze(t,e){if(t.schema.allowDoctypes){const n={type:"doctype"};return O2(n,e),n}}function uze(t,e){const n=typeof e.tagName=="string"?e.tagName:"";t.stack.push(n);const r=xhe(t,e.children),i=fze(t,e.properties);t.stack.pop();let s=!1;if(n&&n!=="*"&&(!t.schema.tagNames||t.schema.tagNames.includes(n))&&(s=!0,t.schema.ancestors&&Md.call(t.schema.ancestors,n))){const o=t.schema.ancestors[n];let l=-1;for(s=!1;++l<o.length;)t.stack.includes(o[l])&&(s=!0)}if(!s)return t.schema.strip&&!t.schema.strip.includes(n)?r:void 0;const a={type:"element",tagName:n,properties:i,children:r};return O2(a,e),a}function cze(t,e){const r={type:"root",children:xhe(t,e.children)};return O2(r,e),r}function dze(t,e){const r={type:"text",value:typeof e.value=="string"?e.value:""};return O2(r,e),r}function xhe(t,e){const n=[];if(Array.isArray(e)){const r=e;let i=-1;for(;++i<r.length;){const s=_he(t,r[i]);s&&(Array.isArray(s)?n.push(...s):n.push(s))}}return n}function fze(t,e){const n=t.stack[t.stack.length-1],r=t.schema.attributes,i=t.schema.required,s=r&&Md.call(r,n)?r[n]:void 0,a=r&&Md.call(r,"*")?r["*"]:void 0,o=e&&typeof e=="object"?e:{},l={};let u;for(u in o)if(Md.call(o,u)){const c=o[u];let d=WY(t,YY(s,u),u,c);d==null&&(d=WY(t,YY(a,u),u,c)),d!=null&&(l[u]=d)}if(i&&Md.call(i,n)){const c=i[n];for(u in c)Md.call(c,u)&&!Md.call(l,u)&&(l[u]=c[u])}return l}function WY(t,e,n,r){return e?Array.isArray(r)?hze(t,e,n,r):whe(t,e,n,r):void 0}function hze(t,e,n,r){let i=-1;const s=[];for(;++i<r.length;){const a=whe(t,e,n,r[i]);(typeof a=="number"||typeof a=="string")&&s.push(a)}return s}function whe(t,e,n,r){if(!(typeof r!="boolean"&&typeof r!="number"&&typeof r!="string")&&pze(t,n,r)){if(typeof e=="object"&&e.length>1){let i=!1,s=0;for(;++s<e.length;){const a=e[s];if(a&&typeof a=="object"&&"flags"in a){if(a.test(String(r))){i=!0;break}}else if(a===r){i=!0;break}}if(!i)return}return t.schema.clobber&&t.schema.clobberPrefix&&t.schema.clobber.includes(n)?t.schema.clobberPrefix+r:r}}function pze(t,e,n){const r=t.schema.protocols&&Md.call(t.schema.protocols,e)?t.schema.protocols[e]:void 0;if(!r||r.length===0)return!0;const i=String(n),s=i.indexOf(":"),a=i.indexOf("?"),o=i.indexOf("#"),l=i.indexOf("/");if(s<0||l>-1&&s>l||a>-1&&s>a||o>-1&&s>o)return!0;let u=-1;for(;++u<r.length;){const c=r[u];if(s===c.length&&i.slice(0,c.length)===c)return!0}return!1}function O2(t,e){const n=cfe(e);e.data&&(t.data=iu(e.data)),n&&(t.position=n)}function YY(t,e){let n,r=-1;if(t)for(;++r<t.length;){const i=t[r],s=typeof i=="string"?i:i[0];if(s===e)return i;s==="data*"&&(n=i)}if(e.length>4&&e.slice(0,4).toLowerCase()==="data")return n}function v8t(t){return function(e){return aze(e,t)}}function MS(t,e){const n=String(t);if(typeof e!="string")throw new TypeError("Expected character");let r=0,i=n.indexOf(e);for(;i!==-1;)r++,i=n.indexOf(e,i+e.length);return r}function mze(t){if(typeof t!="string")throw new TypeError("Expected a string");return t.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function gze(t,e,n){const i=DT((n||{}).ignore||[]),s=yze(e);let a=-1;for(;++a<s.length;)$fe(t,"text",o);function o(u,c){let d=-1,h;for(;++d<c.length;){const m=c[d],g=h?h.children:void 0;if(i(m,g?g.indexOf(m):void 0,h))return;h=m}if(h)return l(u,c)}function l(u,c){const d=c[c.length-1],h=s[a][0],m=s[a][1];let g=0;const v=d.children.indexOf(u);let E=!1,x=[];h.lastIndex=0;let _=h.exec(u.value);for(;_;){const S=_.index,A={index:_.index,input:_.input,stack:[...c,u]};let R=m(..._,A);if(typeof R=="string"&&(R=R.length>0?{type:"text",value:R}:void 0),R===!1?h.lastIndex=S+1:(g!==S&&x.push({type:"text",value:u.value.slice(g,S)}),Array.isArray(R)?x.push(...R):R&&x.push(R),g=S+_[0].length,E=!0),!h.global)break;_=h.exec(u.value)}return E?(g<u.value.length&&x.push({type:"text",value:u.value.slice(g)}),d.children.splice(v,1,...x)):x=[u],v+x.length}}function yze(t){const e=[];if(!Array.isArray(t))throw new TypeError("Expected find and replace tuple or list of tuples");const n=!t[0]||Array.isArray(t[0])?t:[t];let r=-1;for(;++r<n.length;){const i=n[r];e.push([bze(i[0]),vze(i[1])])}return e}function bze(t){return typeof t=="string"?new RegExp(mze(t),"g"):t}function vze(t){return typeof t=="function"?t:function(){return t}}const i4="phrasing",s4=["autolink","link","image","label"];function Eze(){return{transforms:[Aze],enter:{literalAutolink:xze,literalAutolinkEmail:a4,literalAutolinkHttp:a4,literalAutolinkWww:a4},exit:{literalAutolink:Tze,literalAutolinkEmail:Cze,literalAutolinkHttp:wze,literalAutolinkWww:Sze}}}function _ze(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:i4,notInConstruct:s4},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:i4,notInConstruct:s4},{character:":",before:"[ps]",after:"\\/",inConstruct:i4,notInConstruct:s4}]}}function xze(t){this.enter({type:"link",title:null,url:"",children:[]},t)}function a4(t){this.config.enter.autolinkProtocol.call(this,t)}function wze(t){this.config.exit.autolinkProtocol.call(this,t)}function Sze(t){this.config.exit.data.call(this,t);const e=this.stack[this.stack.length-1];e.type,e.url="http://"+this.sliceSerialize(t)}function Cze(t){this.config.exit.autolinkEmail.call(this,t)}function Tze(t){this.exit(t)}function Aze(t){gze(t,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,Rze],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),Nze]],{ignore:["link","linkReference"]})}function Rze(t,e,n,r,i){let s="";if(!She(i)||(/^w/i.test(e)&&(n=e+n,e="",s="http://"),!Oze(n)))return!1;const a=kze(n+r);if(!a[0])return!1;const o={type:"link",title:null,url:s+e+a[0],children:[{type:"text",value:e+a[0]}]};return a[1]?[o,{type:"text",value:a[1]}]:o}function Nze(t,e,n,r){return!She(r,!0)||/[-\d_]$/.test(n)?!1:{type:"link",title:null,url:"mailto:"+e+"@"+n,children:[{type:"text",value:e+"@"+n}]}}function Oze(t){const e=t.split(".");return!(e.length<2||e[e.length-1]&&(/_/.test(e[e.length-1])||!/[a-zA-Z\d]/.test(e[e.length-1]))||e[e.length-2]&&(/_/.test(e[e.length-2])||!/[a-zA-Z\d]/.test(e[e.length-2])))}function kze(t){const e=/[!"&'),.:;<>?\]}]+$/.exec(t);if(!e)return[t,void 0];t=t.slice(0,e.index);let n=e[0],r=n.indexOf(")");const i=MS(t,"(");let s=MS(t,")");for(;r!==-1&&i>s;)t+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(")"),s++;return[t,n]}function She(t,e){const n=t.input.charCodeAt(t.index-1);return(t.index===0||Ts(n)||IT(n))&&(!e||n!==47)}Che.peek=Hze;function Ize(){this.buffer()}function Mze(t){this.enter({type:"footnoteReference",identifier:"",label:""},t)}function Dze(){this.buffer()}function Pze(t){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},t)}function Lze(t){const e=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=sl(this.sliceSerialize(t)).toLowerCase(),n.label=e}function $ze(t){this.exit(t)}function Fze(t){const e=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=sl(this.sliceSerialize(t)).toLowerCase(),n.label=e}function Bze(t){this.exit(t)}function Hze(){return"["}function Che(t,e,n,r){const i=n.createTracker(r);let s=i.move("[^");const a=n.enter("footnoteReference"),o=n.enter("reference");return s+=i.move(n.safe(n.associationId(t),{after:"]",before:s})),o(),a(),s+=i.move("]"),s}function Uze(){return{enter:{gfmFootnoteCallString:Ize,gfmFootnoteCall:Mze,gfmFootnoteDefinitionLabelString:Dze,gfmFootnoteDefinition:Pze},exit:{gfmFootnoteCallString:Lze,gfmFootnoteCall:$ze,gfmFootnoteDefinitionLabelString:Fze,gfmFootnoteDefinition:Bze}}}function jze(t){let e=!1;return t&&t.firstLineBlank&&(e=!0),{handlers:{footnoteDefinition:n,footnoteReference:Che},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function n(r,i,s,a){const o=s.createTracker(a);let l=o.move("[^");const u=s.enter("footnoteDefinition"),c=s.enter("label");return l+=o.move(s.safe(s.associationId(r),{before:l,after:"]"})),c(),l+=o.move("]:"),r.children&&r.children.length>0&&(o.shift(4),l+=o.move((e?` 92`:" ")+s.indentLines(s.containerFlow(r,o.current()),e?The:zze))),u(),l}}function zze(t,e,n){return e===0?t:The(t,e,n)}function The(t,e,n){return(n?"":" ")+t}const Vze=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];Nhe.peek=Wze;function Ahe(){return{canContainEols:["delete"],enter:{strikethrough:qze},exit:{strikethrough:Gze}}}function Rhe(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:Vze}],handlers:{delete:Nhe}}}function qze(t){this.enter({type:"delete",children:[]},t)}function Gze(t){this.exit(t)}function Nhe(t,e,n,r){const i=n.createTracker(r),s=n.enter("strikethrough");let a=i.move("~~");return a+=n.containerPhrasing(t,{...i.current(),before:a,after:"~"}),a+=i.move("~~"),s(),a}function Wze(){return"~"}function Yze(t){return t.length}function Kze(t,e){const n=e||{},r=(n.align||[]).concat(),i=n.stringLength||Yze,s=[],a=[],o=[],l=[];let u=0,c=-1;for(;++c<t.length;){const b=[],v=[];let E=-1;for(t[c].length>u&&(u=t[c].length);++E<t[c].length;){const x=Xze(t[c][E]);if(n.alignDelimiters!==!1){const _=i(x);v[E]=_,(l[E]===void 0||_>l[E])&&(l[E]=_)}b.push(x)}a[c]=b,o[c]=v}let d=-1;if(typeof r=="object"&&"length"in r)for(;++d<u;)s[d]=KY(r[d]);else{const b=KY(r);for(;++d<u;)s[d]=b}d=-1;const h=[],m=[];for(;++d<u;){const b=s[d];let v="",E="";b===99?(v=":",E=":"):b===108?v=":":b===114&&(E=":");let x=n.alignDelimiters===!1?1:Math.max(1,l[d]-v.length-E.length);const _=v+"-".repeat(x)+E;n.alignDelimiters!==!1&&(x=v.length+x+E.length,x>l[d]&&(l[d]=x),m[d]=x),h[d]=_}a.splice(1,0,h),o.splice(1,0,m),c=-1;const g=[];for(;++c<a.length;){const b=a[c],v=o[c];d=-1;const E=[];for(;++d<u;){const x=b[d]||"";let _="",S="";if(n.alignDelimiters!==!1){const A=l[d]-(v[d]||0),R=s[d];R===114?_=" ".repeat(A):R===99?A%2?(_=" ".repeat(A/2+.5),S=" ".repeat(A/2-.5)):(_=" ".repeat(A/2),S=_):S=" ".repeat(A)}n.delimiterStart!==!1&&!d&&E.push("|"),n.padding!==!1&&!(n.alignDelimiters===!1&&x==="")&&(n.delimiterStart!==!1||d)&&E.push(" "),n.alignDelimiters!==!1&&E.push(_),E.push(x),n.alignDelimiters!==!1&&E.push(S),n.padding!==!1&&E.push(" "),(n.delimiterEnd!==!1||d!==u-1)&&E.push("|")}g.push(n.delimiterEnd===!1?E.join("").replace(/ +$/,""):E.join(""))}return g.join(` 93`)}function Xze(t){return t==null?"":String(t)}function KY(t){const e=typeof t=="string"?t.codePointAt(0):0;return e===67||e===99?99:e===76||e===108?108:e===82||e===114?114:0}const Qze={}.hasOwnProperty;function Ohe(t,e){let n=-1,r;if(e.extensions)for(;++n<e.extensions.length;)Ohe(t,e.extensions[n]);for(r in e)if(Qze.call(e,r))switch(r){case"extensions":break;case"unsafe":{XY(t[r],e[r]);break}case"join":{XY(t[r],e[r]);break}case"handlers":{Zze(t[r],e[r]);break}default:t.options[r]=e[r]}return t}function XY(t,e){e&&t.push(...e)}function Zze(t,e){e&&Object.assign(t,e)}function Jze(t,e,n,r){const i=n.enter("blockquote"),s=n.createTracker(r);s.move("> "),s.shift(2);const a=n.indentLines(n.containerFlow(t,s.current()),eVe);return i(),a}function eVe(t,e,n){return">"+(n?"":" ")+t}function khe(t,e){return QY(t,e.inConstruct,!0)&&!QY(t,e.notInConstruct,!1)}function QY(t,e,n){if(typeof e=="string"&&(e=[e]),!e||e.length===0)return n;let r=-1;for(;++r<e.length;)if(t.includes(e[r]))return!0;return!1}function ZY(t,e,n,r){let i=-1;for(;++i<n.unsafe.length;)if(n.unsafe[i].character===` 94`&&khe(n.stack,n.unsafe[i]))return/[ \t]/.test(r.before)?"":" ";return`\\ 95`}function tVe(t,e){const n=String(t);let r=n.indexOf(e),i=r,s=0,a=0;if(typeof e!="string")throw new TypeError("Expected substring");for(;r!==-1;)r===i?++s>a&&(a=s):s=1,i=r+e.length,r=n.indexOf(e,i);return a}function bP(t,e){return!!(e.options.fences===!1&&t.value&&!t.lang&&/[^ \r\n]/.test(t.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(t.value))}function nVe(t){const e=t.options.fence||"`";if(e!=="`"&&e!=="~")throw new Error("Cannot serialize code with `"+e+"` for `options.fence`, expected `` ` `` or `~`");return e}function rVe(t,e,n,r){const i=nVe(n),s=t.value||"",a=i==="`"?"GraveAccent":"Tilde";if(bP(t,n)){const d=n.enter("codeIndented"),h=n.indentLines(s,iVe);return d(),h}const o=n.createTracker(r),l=i.repeat(Math.max(tVe(s,i)+1,3)),u=n.enter("codeFenced");let c=o.move(l);if(t.lang){const d=n.enter(`codeFencedLang${a}`);c+=o.move(n.safe(t.lang,{before:c,after:" ",encode:["`"],...o.current()})),d()}if(t.lang&&t.meta){const d=n.enter(`codeFencedMeta${a}`);c+=o.move(" "),c+=o.move(n.safe(t.meta,{before:c,after:` 96`,encode:["`"],...o.current()})),d()}return c+=o.move(` 97`),s&&(c+=o.move(s+` 98`)),c+=o.move(l),u(),c}function iVe(t,e,n){return(n?"":" ")+t}function A$(t){const e=t.options.quote||'"';if(e!=='"'&&e!=="'")throw new Error("Cannot serialize title with `"+e+"` for `options.quote`, expected `\"`, or `'`");return e}function sVe(t,e,n,r){const i=A$(n),s=i==='"'?"Quote":"Apostrophe",a=n.enter("definition");let o=n.enter("label");const l=n.createTracker(r);let u=l.move("[");return u+=l.move(n.safe(n.associationId(t),{before:u,after:"]",...l.current()})),u+=l.move("]: "),o(),!t.url||/[\0- \u007F]/.test(t.url)?(o=n.enter("destinationLiteral"),u+=l.move("<"),u+=l.move(n.safe(t.url,{before:u,after:">",...l.current()})),u+=l.move(">")):(o=n.enter("destinationRaw"),u+=l.move(n.safe(t.url,{before:u,after:t.title?" ":` 99`,...l.current()}))),o(),t.title&&(o=n.enter(`title${s}`),u+=l.move(" "+i),u+=l.move(n.safe(t.title,{before:u,after:i,...l.current()})),u+=l.move(i),o()),a(),u}function aVe(t){const e=t.options.emphasis||"*";if(e!=="*"&&e!=="_")throw new Error("Cannot serialize emphasis with `"+e+"` for `options.emphasis`, expected `*`, or `_`");return e}function rf(t){return"&#x"+t.toString(16).toUpperCase()+";"}function DS(t,e,n){const r=nf(t),i=nf(e);return r===void 0?i===void 0?n==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:r===1?i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}Ihe.peek=oVe;function Ihe(t,e,n,r){const i=aVe(n),s=n.enter("emphasis"),a=n.createTracker(r),o=a.move(i);let l=a.move(n.containerPhrasing(t,{after:i,before:o,...a.current()}));const u=l.charCodeAt(0),c=DS(r.before.charCodeAt(r.before.length-1),u,i);c.inside&&(l=rf(u)+l.slice(1));const d=l.charCodeAt(l.length-1),h=DS(r.after.charCodeAt(0),d,i);h.inside&&(l=l.slice(0,-1)+rf(d));const m=a.move(i);return s(),n.attentionEncodeSurroundingInfo={after:h.outside,before:c.outside},o+l+m}function oVe(t,e,n){return n.options.emphasis||"*"}function Mhe(t,e){let n=!1;return T2(t,function(r){if("value"in r&&/\r?\n|\r/.test(r.value)||r.type==="break")return n=!0,uP}),!!((!t.depth||t.depth<3)&&f$(t)&&(e.options.setext||n))}function lVe(t,e,n,r){const i=Math.max(Math.min(6,t.depth||1),1),s=n.createTracker(r);if(Mhe(t,n)){const c=n.enter("headingSetext"),d=n.enter("phrasing"),h=n.containerPhrasing(t,{...s.current(),before:` 100`,after:` 101`});return d(),c(),h+` 102`+(i===1?"=":"-").repeat(h.length-(Math.max(h.lastIndexOf("\r"),h.lastIndexOf(` 103`))+1))}const a="#".repeat(i),o=n.enter("headingAtx"),l=n.enter("phrasing");s.move(a+" ");let u=n.containerPhrasing(t,{before:"# ",after:` 104`,...s.current()});return/^[\t ]/.test(u)&&(u=rf(u.charCodeAt(0))+u.slice(1)),u=u?a+" "+u:a,n.options.closeAtx&&(u+=" "+a),l(),o(),u}Dhe.peek=uVe;function Dhe(t){return t.value||""}function uVe(){return"<"}Phe.peek=cVe;function Phe(t,e,n,r){const i=A$(n),s=i==='"'?"Quote":"Apostrophe",a=n.enter("image");let o=n.enter("label");const l=n.createTracker(r);let u=l.move("![");return u+=l.move(n.safe(t.alt,{before:u,after:"]",...l.current()})),u+=l.move("]("),o(),!t.url&&t.title||/[\0- \u007F]/.test(t.url)?(o=n.enter("destinationLiteral"),u+=l.move("<"),u+=l.move(n.safe(t.url,{before:u,after:">",...l.current()})),u+=l.move(">")):(o=n.enter("destinationRaw"),u+=l.move(n.safe(t.url,{before:u,after:t.title?" ":")",...l.current()}))),o(),t.title&&(o=n.enter(`title${s}`),u+=l.move(" "+i),u+=l.move(n.safe(t.title,{before:u,after:i,...l.current()})),u+=l.move(i),o()),u+=l.move(")"),a(),u}function cVe(){return"!"}Lhe.peek=dVe;function Lhe(t,e,n,r){const i=t.referenceType,s=n.enter("imageReference");let a=n.enter("label");const o=n.createTracker(r);let l=o.move("![");const u=n.safe(t.alt,{before:l,after:"]",...o.current()});l+=o.move(u+"]["),a();const c=n.stack;n.stack=[],a=n.enter("reference");const d=n.safe(n.associationId(t),{before:l,after:"]",...o.current()});return a(),n.stack=c,s(),i==="full"||!u||u!==d?l+=o.move(d+"]"):i==="shortcut"?l=l.slice(0,-1):l+=o.move("]"),l}function dVe(){return"!"}$he.peek=fVe;function $he(t,e,n){let r=t.value||"",i="`",s=-1;for(;new RegExp("(^|[^`])"+i+"([^`]|$)").test(r);)i+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++s<n.unsafe.length;){const a=n.unsafe[s],o=n.compilePattern(a);let l;if(a.atBreak)for(;l=o.exec(r);){let u=l.index;r.charCodeAt(u)===10&&r.charCodeAt(u-1)===13&&u--,r=r.slice(0,u)+" "+r.slice(l.index+1)}}return i+r+i}function fVe(){return"`"}function Fhe(t,e){const n=f$(t);return!!(!e.options.resourceLink&&t.url&&!t.title&&t.children&&t.children.length===1&&t.children[0].type==="text"&&(n===t.url||"mailto:"+n===t.url)&&/^[a-z][a-z+.-]+:/i.test(t.url)&&!/[\0- <>\u007F]/.test(t.url))}Bhe.peek=hVe;function Bhe(t,e,n,r){const i=A$(n),s=i==='"'?"Quote":"Apostrophe",a=n.createTracker(r);let o,l;if(Fhe(t,n)){const c=n.stack;n.stack=[],o=n.enter("autolink");let d=a.move("<");return d+=a.move(n.containerPhrasing(t,{before:d,after:">",...a.current()})),d+=a.move(">"),o(),n.stack=c,d}o=n.enter("link"),l=n.enter("label");let u=a.move("[");return u+=a.move(n.containerPhrasing(t,{before:u,after:"](",...a.current()})),u+=a.move("]("),l(),!t.url&&t.title||/[\0- \u007F]/.test(t.url)?(l=n.enter("destinationLiteral"),u+=a.move("<"),u+=a.move(n.safe(t.url,{before:u,after:">",...a.current()})),u+=a.move(">")):(l=n.enter("destinationRaw"),u+=a.move(n.safe(t.url,{before:u,after:t.title?" ":")",...a.current()}))),l(),t.title&&(l=n.enter(`title${s}`),u+=a.move(" "+i),u+=a.move(n.safe(t.title,{before:u,after:i,...a.current()})),u+=a.move(i),l()),u+=a.move(")"),o(),u}function hVe(t,e,n){return Fhe(t,n)?"<":"["}Hhe.peek=pVe;function Hhe(t,e,n,r){const i=t.referenceType,s=n.enter("linkReference");let a=n.enter("label");const o=n.createTracker(r);let l=o.move("[");const u=n.containerPhrasing(t,{before:l,after:"]",...o.current()});l+=o.move(u+"]["),a();const c=n.stack;n.stack=[],a=n.enter("reference");const d=n.safe(n.associationId(t),{before:l,after:"]",...o.current()});return a(),n.stack=c,s(),i==="full"||!u||u!==d?l+=o.move(d+"]"):i==="shortcut"?l=l.slice(0,-1):l+=o.move("]"),l}function pVe(){return"["}function R$(t){const e=t.options.bullet||"*";if(e!=="*"&&e!=="+"&&e!=="-")throw new Error("Cannot serialize items with `"+e+"` for `options.bullet`, expected `*`, `+`, or `-`");return e}function mVe(t){const e=R$(t),n=t.options.bulletOther;if(!n)return e==="*"?"-":"*";if(n!=="*"&&n!=="+"&&n!=="-")throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===e)throw new Error("Expected `bullet` (`"+e+"`) and `bulletOther` (`"+n+"`) to be different");return n}function gVe(t){const e=t.options.bulletOrdered||".";if(e!=="."&&e!==")")throw new Error("Cannot serialize items with `"+e+"` for `options.bulletOrdered`, expected `.` or `)`");return e}function Uhe(t){const e=t.options.rule||"*";if(e!=="*"&&e!=="-"&&e!=="_")throw new Error("Cannot serialize rules with `"+e+"` for `options.rule`, expected `*`, `-`, or `_`");return e}function yVe(t,e,n,r){const i=n.enter("list"),s=n.bulletCurrent;let a=t.ordered?gVe(n):R$(n);const o=t.ordered?a==="."?")":".":mVe(n);let l=e&&n.bulletLastUsed?a===n.bulletLastUsed:!1;if(!t.ordered){const c=t.children?t.children[0]:void 0;if((a==="*"||a==="-")&&c&&(!c.children||!c.children[0])&&n.stack[n.stack.length-1]==="list"&&n.stack[n.stack.length-2]==="listItem"&&n.stack[n.stack.length-3]==="list"&&n.stack[n.stack.length-4]==="listItem"&&n.indexStack[n.indexStack.length-1]===0&&n.indexStack[n.indexStack.length-2]===0&&n.indexStack[n.indexStack.length-3]===0&&(l=!0),Uhe(n)===a&&c){let d=-1;for(;++d<t.children.length;){const h=t.children[d];if(h&&h.type==="listItem"&&h.children&&h.children[0]&&h.children[0].type==="thematicBreak"){l=!0;break}}}}l&&(a=o),n.bulletCurrent=a;const u=n.containerFlow(t,r);return n.bulletLastUsed=a,n.bulletCurrent=s,i(),u}function bVe(t){const e=t.options.listItemIndent||"one";if(e!=="tab"&&e!=="one"&&e!=="mixed")throw new Error("Cannot serialize items with `"+e+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return e}function vVe(t,e,n,r){const i=bVe(n);let s=n.bulletCurrent||R$(n);e&&e.type==="list"&&e.ordered&&(s=(typeof e.start=="number"&&e.start>
vendor: 12,267 bytes, lines 104-125
104-1?e.start:1)+(n.options.incrementListMarker===!1?0:e.children.indexOf(t))+s);let a=s.length+1;(i==="tab"||i==="mixed"&&(e&&e.type==="list"&&e.spread||t.spread))&&(a=Math.ceil(a/4)*4);const o=n.createTracker(r);o.move(s+" ".repeat(a-s.length)),o.shift(a);const l=n.enter("listItem"),u=n.indentLines(n.containerFlow(t,o.current()),c);return l(),u;function c(d,h,m){return h?(m?"":" ".repeat(a))+d:(m?s:s+" ".repeat(a-s.length))+d}}function EVe(t,e,n,r){const i=n.enter("paragraph"),s=n.enter("phrasing"),a=n.containerPhrasing(t,r);return s(),i(),a}const _Ve=DT(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function xVe(t,e,n,r){return(t.children.some(function(a){return _Ve(a)})?n.containerPhrasing:n.containerFlow).call(n,t,r)}function wVe(t){const e=t.options.strong||"*";if(e!=="*"&&e!=="_")throw new Error("Cannot serialize strong with `"+e+"` for `options.strong`, expected `*`, or `_`");return e}jhe.peek=SVe;function jhe(t,e,n,r){const i=wVe(n),s=n.enter("strong"),a=n.createTracker(r),o=a.move(i+i);let l=a.move(n.containerPhrasing(t,{after:i,before:o,...a.current()}));const u=l.charCodeAt(0),c=DS(r.before.charCodeAt(r.before.length-1),u,i);c.inside&&(l=rf(u)+l.slice(1));const d=l.charCodeAt(l.length-1),h=DS(r.after.charCodeAt(0),d,i);h.inside&&(l=l.slice(0,-1)+rf(d));const m=a.move(i+i);return s(),n.attentionEncodeSurroundingInfo={after:h.outside,before:c.outside},o+l+m}function SVe(t,e,n){return n.options.strong||"*"}function CVe(t,e,n,r){return n.safe(t.value,r)}function TVe(t){const e=t.options.ruleRepetition||3;if(e<3)throw new Error("Cannot serialize rules with repetition `"+e+"` for `options.ruleRepetition`, expected `3` or more");return e}function AVe(t,e,n){const r=(Uhe(n)+(n.options.ruleSpaces?" ":"")).repeat(TVe(n));return n.options.ruleSpaces?r.slice(0,-1):r}const N$={blockquote:Jze,break:ZY,code:rVe,definition:sVe,emphasis:Ihe,hardBreak:ZY,heading:lVe,html:Dhe,image:Phe,imageReference:Lhe,inlineCode:$he,link:Bhe,linkReference:Hhe,list:yVe,listItem:vVe,paragraph:EVe,root:xVe,strong:jhe,text:CVe,thematicBreak:AVe},RVe=[NVe];function NVe(t,e,n,r){if(e.type==="code"&&bP(e,r)&&(t.type==="list"||t.type===e.type&&bP(t,r)))return!1;if("spread"in n&&typeof n.spread=="boolean")return t.type==="paragraph"&&(t.type===e.type||e.type==="definition"||e.type==="heading"&&Mhe(e,r))?void 0:n.spread?1:0}const eh=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"],OVe=[{character:" ",after:"[\\r\\n]",inConstruct:"phrasing"},{character:" ",before:"[\\r\\n]",inConstruct:"phrasing"},{character:" ",inConstruct:["codeFencedLangGraveAccent","codeFencedLangTilde"]},{character:"\r",inConstruct:["codeFencedLangGraveAccent","codeFencedLangTilde","codeFencedMetaGraveAccent","codeFencedMetaTilde","destinationLiteral","headingAtx"]},{character:` 105`,inConstruct:["codeFencedLangGraveAccent","codeFencedLangTilde","codeFencedMetaGraveAccent","codeFencedMetaTilde","destinationLiteral","headingAtx"]},{character:" ",after:"[\\r\\n]",inConstruct:"phrasing"},{character:" ",before:"[\\r\\n]",inConstruct:"phrasing"},{character:" ",inConstruct:["codeFencedLangGraveAccent","codeFencedLangTilde"]},{character:"!",after:"\\[",inConstruct:"phrasing",notInConstruct:eh},{character:'"',inConstruct:"titleQuote"},{atBreak:!0,character:"#"},{character:"#",inConstruct:"headingAtx",after:`(?:[\r 106]|$)`},{character:"&",after:"[#A-Za-z]",inConstruct:"phrasing"},{character:"'",inConstruct:"titleApostrophe"},{character:"(",inConstruct:"destinationRaw"},{before:"\\]",character:"(",inConstruct:"phrasing",notInConstruct:eh},{atBreak:!0,before:"\\d+",character:")"},{character:")",inConstruct:"destinationRaw"},{atBreak:!0,character:"*",after:`(?:[ \r 107*])`},{character:"*",inConstruct:"phrasing",notInConstruct:eh},{atBreak:!0,character:"+",after:`(?:[ \r 108])`},{atBreak:!0,character:"-",after:`(?:[ \r 109-])`},{atBreak:!0,before:"\\d+",character:".",after:`(?:[ \r 110]|$)`},{atBreak:!0,character:"<",after:"[!/?A-Za-z]"},{character:"<",after:"[!/?A-Za-z]",inConstruct:"phrasing",notInConstruct:eh},{character:"<",inConstruct:"destinationLiteral"},{atBreak:!0,character:"="},{atBreak:!0,character:">"},{character:">",inConstruct:"destinationLiteral"},{atBreak:!0,character:"["},{character:"[",inConstruct:"phrasing",notInConstruct:eh},{character:"[",inConstruct:["label","reference"]},{character:"\\",after:"[\\r\\n]",inConstruct:"phrasing"},{character:"]",inConstruct:["label","reference"]},{atBreak:!0,character:"_"},{character:"_",inConstruct:"phrasing",notInConstruct:eh},{atBreak:!0,character:"`"},{character:"`",inConstruct:["codeFencedLangGraveAccent","codeFencedMetaGraveAccent"]},{character:"`",inConstruct:"phrasing",notInConstruct:eh},{atBreak:!0,character:"~"}];function kVe(t){return t.label||!t.identifier?t.label||"":Afe(t.identifier)}function IVe(t){if(!t._compiled){const e=(t.atBreak?"[\\r\\n][\\t ]*":"")+(t.before?"(?:"+t.before+")":"");t._compiled=new RegExp((e?"("+e+")":"")+(/[|\\{}()[\]^$+*?.-]/.test(t.character)?"\\":"")+t.character+(t.after?"(?:"+t.after+")":""),"g")}return t._compiled}function MVe(t,e,n){const r=e.indexStack,i=t.children||[],s=[];let a=-1,o=n.before,l;r.push(-1);let u=e.createTracker(n);for(;++a<i.length;){const c=i[a];let d;if(r[r.length-1]=a,a+1<i.length){let g=e.handle.handlers[i[a+1].type];g&&g.peek&&(g=g.peek),d=g?g(i[a+1],t,e,{before:"",after:"",...u.current()}).charAt(0):""}else d=n.after;s.length>0&&(o==="\r"||o===` 111`)&&c.type==="html"&&(s[s.length-1]=s[s.length-1].replace(/(\r?\n|\r)$/," "),o=" ",u=e.createTracker(n),u.move(s.join("")));let h=e.handle(c,t,e,{...u.current(),after:d,before:o});l&&l===h.slice(0,1)&&(h=rf(l.charCodeAt(0))+h.slice(1));const m=e.attentionEncodeSurroundingInfo;e.attentionEncodeSurroundingInfo=void 0,l=void 0,m&&(s.length>0&&m.before&&o===s[s.length-1].slice(-1)&&(s[s.length-1]=s[s.length-1].slice(0,-1)+rf(o.charCodeAt(0))),m.after&&(l=d)),u.move(h),s.push(h),o=h.slice(-1)}return r.pop(),s.join("")}function DVe(t,e,n){const r=e.indexStack,i=t.children||[],s=e.createTracker(n),a=[];let o=-1;for(r.push(-1);++o<i.length;){const l=i[o];r[r.length-1]=o,a.push(s.move(e.handle(l,t,e,{before:` 112`,after:` 113`,...s.current()}))),l.type!=="list"&&(e.bulletLastUsed=void 0),o<i.length-1&&a.push(s.move(PVe(l,i[o+1],t,e)))}return r.pop(),a.join("")}function PVe(t,e,n,r){let i=r.join.length;for(;i--;){const s=r.join[i](t,e,n,r);if(s===!0||s===1)break;if(typeof s=="number")return` 114`.repeat(1+s);if(s===!1)return` 115 116<!----> 117 118`}return` 119 120`}const LVe=/\r?\n|\r/g;function $Ve(t,e){const n=[];let r=0,i=0,s;for(;s=LVe.exec(t);)a(t.slice(r,s.index)),n.push(s[0]),r=s.index+s[0].length,i++;return a(t.slice(r)),n.join("");function a(o){n.push(e(o,i,!o))}}function FVe(t,e,n){const r=(n.before||"")+(e||"")+(n.after||""),i=[],s=[],a={};let o=-1;for(;++o<t.unsafe.length;){const c=t.unsafe[o];if(!khe(t.stack,c))continue;const d=t.compilePattern(c);let h;for(;h=d.exec(r);){const m="before"in c||!!c.atBreak,g="after"in c,b=h.index+(m?h[1].length:0);i.includes(b)?(a[b].before&&!m&&(a[b].before=!1),a[b].after&&!g&&(a[b].after=!1)):(i.push(b),a[b]={before:m,after:g})}}i.sort(BVe);let l=n.before?n.before.length:0;const u=r.length-(n.after?n.after.length:0);for(o=-1;++o<i.length;){const c=i[o];c<l||c>=u||c+1<u&&i[o+1]===c+1&&a[c].after&&!a[c+1].before&&!a[c+1].after||i[o-1]===c-1&&a[c].before&&!a[c-1].before&&!a[c-1].after||(l!==c&&s.push(JY(r.slice(l,c),"\\")),l=c,/[!-/:-@[-`{-~]/.test(r.charAt(c))&&(!n.encode||!n.encode.includes(r.charAt(c)))?s.push("\\"):(s.push(rf(r.charCodeAt(c))),l++))}return s.push(JY(r.slice(l,u),n.after)),s.join("")}function BVe(t,e){return t-e}function JY(t,e){const n=/\\(?=[!-/:-@[-`{-~])/g,r=[],i=[],s=t+e;let a=-1,o=0,l;for(;l=n.exec(s);)r.push(l.index);for(;++a<r.length;)o!==r[a]&&i.push(t.slice(o,r[a])),i.push("\\"),o=r[a];return i.push(t.slice(o)),i.join("")}function HVe(t){const e=t||{},n=e.now||{};let r=e.lineShift||0,i=n.line||1,s=n.column||1;return{move:l,current:a,shift:o};function a(){return{now:{line:i,column:s},lineShift:r}}function o(u){r+=u}function l(u){const c=u||"",d=c.split(/\r?\n|\r/g),h=d[d.length-1];return i+=d.length-1,s=d.length===1?s+h.length:1+h.length+r,c}}function zhe(t,e){const n=e||{},r={associationId:kVe,containerPhrasing:VVe,containerFlow:qVe,createTracker:HVe,compilePattern:IVe,enter:s,handlers:{...N$},handle:void 0,indentLines:$Ve,indexStack:[],join:[...RVe],options:{},safe:GVe,stack:[],unsafe:[...OVe]};Ohe(r,n),r.options.tightDefinitions&&r.join.push(zVe),r.handle=_$("type",{invalid:UVe,unknown:jVe,handlers:r.handlers});let i=r.handle(t,void 0,r,{before:` 121`,after:` 122`,now:{line:1,column:1},lineShift:0});return i&&i.charCodeAt(i.length-1)!==10&&i.charCodeAt(i.length-1)!==13&&(i+=` 123`),i;function s(a){return r.stack.push(a),o;function o(){r.stack.pop()}}}function UVe(t){throw new Error("Cannot handle value `"+t+"`, expected node")}function jVe(t){const e=t;throw new Error("Cannot handle unknown node `"+e.type+"`")}function zVe(t,e){if(t.type==="definition"&&t.type===e.type)return 0}function VVe(t,e){return MVe(t,this,e)}function qVe(t,e){return DVe(t,this,e)}function GVe(t,e){return FVe(this,t,e)}function WVe(){return{enter:{table:YVe,tableData:eK,tableHeader:eK,tableRow:XVe},exit:{codeText:QVe,table:KVe,tableData:o4,tableHeader:o4,tableRow:o4}}}function YVe(t){const e=t._align;this.enter({type:"table",align:e.map(function(n){return n==="none"?null:n}),children:[]},t),this.data.inTable=!0}function KVe(t){this.exit(t),this.data.inTable=void 0}function XVe(t){this.enter({type:"tableRow",children:[]},t)}function o4(t){this.exit(t)}function eK(t){this.enter({type:"tableCell",children:[]},t)}function QVe(t){let e=this.resume();this.data.inTable&&(e=e.replace(/\\([\\|])/g,ZVe));const n=this.stack[this.stack.length-1];n.type,n.value=e,this.exit(t)}function ZVe(t,e){return e==="|"?e:t}function JVe(t){const e=t||{},n=e.tableCellPadding,r=e.tablePipeAlign,i=e.stringLength,s=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:` 124`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:h,table:a,tableCell:l,tableRow:o}};function a(m,g,b,v){return u(c(m,b,v),m.align)}function o(m,g,b,v){const E=d(m,b,v),x=u([E]);return x.slice(0,x.indexOf(` 125`))}function l(m,g,b,v){const E=b.enter("tableCell"),x=b.enter("phrasing"),_=b.containerPhrasing(m,{...v,before:s,after:s});return x(),E(),_}function u(m,g){return Kze(m,{align:g,alignDelimiters:r,padding:n,stringLength:i})}function c(m,g,b){const v=m.children;let E=-1;const x=[],_=g.enter("table");for(;++E<v.length;)x[E]=d(v[E],g,b);return _(),x}function d(m,g,b){const v=m.children;let E=-1;const x=[],_=g.enter("tableRow");for(;++E<v.length;)x[E]=l(v[E],m,g,b);return _(),x}function h(m,g,b){let v=N$.inlineCode(m,g,b);return b.stack.includes("tableCell")&&(v=v.replace(/\|/g,"\\$&")),v}}function Vhe(){return{exit:{taskListCheckValueChecked:tK,taskListCheckValueUnchecked:tK,paragraph:eqe}}}function qhe(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:tqe}}}function tK(t){const e=this.stack[this.stack.length-2];e.type,e.checked=t.type==="taskListCheckValueChecked"}function eqe(t){const e=this.stack[this.stack.length-2];if(e&&e.type==="listItem"&&typeof e.checked=="boolean"){const n=this.stack[this.stack.length-1];n.type;const r=n.children[0];if(r&&r.type==="text"){const i=e.children;let s=-1,a;for(;++s<i.length;){const o=i[s];if(o.type==="paragraph"){a=o;break}}a===n&&(r.value=r.value.slice(1),r.value.length===0?n.children.shift():n.position&&r.position&&typeof r.position.start.offset=="number"&&(r.position.start.column++,r.position.start.offset++,n.position.start=Object.assign({},r.position.start)))}}this.exit(t)}function tqe(t,e,n,r){const i=t.children[0],s=typeof t.checked=="boolean"&&i&&i.type==="paragraph",a="["+(t.checked?"x":" ")+"] ",o=n.createTracker(r);s&&o.move(a);let l=N$.listItem(t,e,n,{...r,...o.current()});return s&&(l=l.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,u)),l;function u(c){return c+a}}
vendor: 9,891 bytes, line 125
125function nqe(){return[Eze(),Uze(),Ahe(),WVe(),Vhe()]}function rqe(t){return{extensions:[_ze(),jze(t),Rhe(),JVe(t),qhe()]}}const iqe={tokenize:cqe,partial:!0},Ghe={tokenize:dqe,partial:!0},Whe={tokenize:fqe,partial:!0},Yhe={tokenize:hqe,partial:!0},sqe={tokenize:pqe,partial:!0},Khe={name:"wwwAutolink",tokenize:lqe,previous:Qhe},Xhe={name:"protocolAutolink",tokenize:uqe,previous:Zhe},Vc={name:"emailAutolink",tokenize:oqe,previous:Jhe},_u={};function aqe(){return{text:_u}}let th=48;for(;th<123;)_u[th]=Vc,th++,th===58?th=65:th===91&&(th=97);_u[43]=Vc;_u[45]=Vc;_u[46]=Vc;_u[95]=Vc;_u[72]=[Vc,Xhe];_u[104]=[Vc,Xhe];_u[87]=[Vc,Khe];_u[119]=[Vc,Khe];function oqe(t,e,n){const r=this;let i,s;return a;function a(d){return!vP(d)||!Jhe.call(r,r.previous)||O$(r.events)?n(d):(t.enter("literalAutolink"),t.enter("literalAutolinkEmail"),o(d))}function o(d){return vP(d)?(t.consume(d),o):d===64?(t.consume(d),l):n(d)}function l(d){return d===46?t.check(sqe,c,u)(d):d===45||d===95||fs(d)?(s=!0,t.consume(d),l):c(d)}function u(d){return t.consume(d),i=!0,l}function c(d){return s&&i&&Ns(r.previous)?(t.exit("literalAutolinkEmail"),t.exit("literalAutolink"),e(d)):n(d)}}function lqe(t,e,n){const r=this;return i;function i(a){return a!==87&&a!==119||!Qhe.call(r,r.previous)||O$(r.events)?n(a):(t.enter("literalAutolink"),t.enter("literalAutolinkWww"),t.check(iqe,t.attempt(Ghe,t.attempt(Whe,s),n),n)(a))}function s(a){return t.exit("literalAutolinkWww"),t.exit("literalAutolink"),e(a)}}function uqe(t,e,n){const r=this;let i="",s=!1;return a;function a(d){return(d===72||d===104)&&Zhe.call(r,r.previous)&&!O$(r.events)?(t.enter("literalAutolink"),t.enter("literalAutolinkHttp"),i+=String.fromCodePoint(d),t.consume(d),o):n(d)}function o(d){if(Ns(d)&&i.length<5)return i+=String.fromCodePoint(d),t.consume(d),o;if(d===58){const h=i.toLowerCase();if(h==="http"||h==="https")return t.consume(d),l}return n(d)}function l(d){return d===47?(t.consume(d),s?u:(s=!0,l)):n(d)}function u(d){return d===null||RS(d)||An(d)||Ts(d)||IT(d)?n(d):t.attempt(Ghe,t.attempt(Whe,c),n)(d)}function c(d){return t.exit("literalAutolinkHttp"),t.exit("literalAutolink"),e(d)}}function cqe(t,e,n){let r=0;return i;function i(a){return(a===87||a===119)&&r<3?(r++,t.consume(a),i):a===46&&r===3?(t.consume(a),s):n(a)}function s(a){return a===null?n(a):e(a)}}function dqe(t,e,n){let r,i,s;return a;function a(u){return u===46||u===95?t.check(Yhe,l,o)(u):u===null||An(u)||Ts(u)||u!==45&&IT(u)?l(u):(s=!0,t.consume(u),a)}function o(u){return u===95?r=!0:(i=r,r=void 0),t.consume(u),a}function l(u){return i||r||!s?n(u):e(u)}}function fqe(t,e){let n=0,r=0;return i;function i(a){return a===40?(n++,t.consume(a),i):a===41&&r<n?s(a):a===33||a===34||a===38||a===39||a===41||a===42||a===44||a===46||a===58||a===59||a===60||a===63||a===93||a===95||a===126?t.check(Yhe,e,s)(a):a===null||An(a)||Ts(a)?e(a):(t.consume(a),i)}function s(a){return a===41&&r++,t.consume(a),i}}function hqe(t,e,n){return r;function r(o){return o===33||o===34||o===39||o===41||o===42||o===44||o===46||o===58||o===59||o===63||o===95||o===126?(t.consume(o),r):o===38?(t.consume(o),s):o===93?(t.consume(o),i):o===60||o===null||An(o)||Ts(o)?e(o):n(o)}function i(o){return o===null||o===40||o===91||An(o)||Ts(o)?e(o):r(o)}function s(o){return Ns(o)?a(o):n(o)}function a(o){return o===59?(t.consume(o),r):Ns(o)?(t.consume(o),a):n(o)}}function pqe(t,e,n){return r;function r(s){return t.consume(s),i}function i(s){return fs(s)?n(s):e(s)}}function Qhe(t){return t===null||t===40||t===42||t===95||t===91||t===93||t===126||An(t)}function Zhe(t){return!Ns(t)}function Jhe(t){return!(t===47||vP(t))}function vP(t){return t===43||t===45||t===46||t===95||fs(t)}function O$(t){let e=t.length,n=!1;for(;e--;){const r=t[e][1];if((r.type==="labelLink"||r.type==="labelImage")&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return t.length>0&&!n&&(t[t.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}const mqe={tokenize:wqe,partial:!0};function gqe(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:Eqe,continuation:{tokenize:_qe},exit:xqe}},text:{91:{name:"gfmFootnoteCall",tokenize:vqe},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:yqe,resolveTo:bqe}}}}function yqe(t,e,n){const r=this;let i=r.events.length;const s=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let a;for(;i--;){const l=r.events[i][1];if(l.type==="labelImage"){a=l;break}if(l.type==="gfmFootnoteCall"||l.type==="labelLink"||l.type==="label"||l.type==="image"||l.type==="link")break}return o;function o(l){if(!a||!a._balanced)return n(l);const u=sl(r.sliceSerialize({start:a.end,end:r.now()}));return u.codePointAt(0)!==94||!s.includes(u.slice(1))?n(l):(t.enter("gfmFootnoteCallLabelMarker"),t.consume(l),t.exit("gfmFootnoteCallLabelMarker"),e(l))}}function bqe(t,e){let n=t.length;for(;n--;)if(t[n][1].type==="labelImage"&&t[n][0]==="enter"){t[n][1];break}t[n+1][1].type="data",t[n+3][1].type="gfmFootnoteCallLabelMarker";const r={type:"gfmFootnoteCall",start:Object.assign({},t[n+3][1].start),end:Object.assign({},t[t.length-1][1].end)},i={type:"gfmFootnoteCallMarker",start:Object.assign({},t[n+3][1].end),end:Object.assign({},t[n+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;const s={type:"gfmFootnoteCallString",start:Object.assign({},i.end),end:Object.assign({},t[t.length-1][1].start)},a={type:"chunkString",contentType:"string",start:Object.assign({},s.start),end:Object.assign({},s.end)},o=[t[n+1],t[n+2],["enter",r,e],t[n+3],t[n+4],["enter",i,e],["exit",i,e],["enter",s,e],["enter",a,e],["exit",a,e],["exit",s,e],t[t.length-2],t[t.length-1],["exit",r,e]];return t.splice(n,t.length-n+1,...o),t}function vqe(t,e,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let s=0,a;return o;function o(d){return t.enter("gfmFootnoteCall"),t.enter("gfmFootnoteCallLabelMarker"),t.consume(d),t.exit("gfmFootnoteCallLabelMarker"),l}function l(d){return d!==94?n(d):(t.enter("gfmFootnoteCallMarker"),t.consume(d),t.exit("gfmFootnoteCallMarker"),t.enter("gfmFootnoteCallString"),t.enter("chunkString").contentType="string",u)}function u(d){if(s>999||d===93&&!a||d===null||d===91||An(d))return n(d);if(d===93){t.exit("chunkString");const h=t.exit("gfmFootnoteCallString");return i.includes(sl(r.sliceSerialize(h)))?(t.enter("gfmFootnoteCallLabelMarker"),t.consume(d),t.exit("gfmFootnoteCallLabelMarker"),t.exit("gfmFootnoteCall"),e):n(d)}return An(d)||(a=!0),s++,t.consume(d),d===92?c:u}function c(d){return d===91||d===92||d===93?(t.consume(d),s++,u):u(d)}}function Eqe(t,e,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let s,a=0,o;return l;function l(g){return t.enter("gfmFootnoteDefinition")._container=!0,t.enter("gfmFootnoteDefinitionLabel"),t.enter("gfmFootnoteDefinitionLabelMarker"),t.consume(g),t.exit("gfmFootnoteDefinitionLabelMarker"),u}function u(g){return g===94?(t.enter("gfmFootnoteDefinitionMarker"),t.consume(g),t.exit("gfmFootnoteDefinitionMarker"),t.enter("gfmFootnoteDefinitionLabelString"),t.enter("chunkString").contentType="string",c):n(g)}function c(g){if(a>999||g===93&&!o||g===null||g===91||An(g))return n(g);if(g===93){t.exit("chunkString");const b=t.exit("gfmFootnoteDefinitionLabelString");return s=sl(r.sliceSerialize(b)),t.enter("gfmFootnoteDefinitionLabelMarker"),t.consume(g),t.exit("gfmFootnoteDefinitionLabelMarker"),t.exit("gfmFootnoteDefinitionLabel"),h}return An(g)||(o=!0),a++,t.consume(g),g===92?d:c}function d(g){return g===91||g===92||g===93?(t.consume(g),a++,c):c(g)}function h(g){return g===58?(t.enter("definitionMarker"),t.consume(g),t.exit("definitionMarker"),i.includes(s)||i.push(s),gn(t,m,"gfmFootnoteDefinitionWhitespace")):n(g)}function m(g){return e(g)}}function _qe(t,e,n){return t.check(C2,e,t.attempt(mqe,e,n))}function xqe(t){t.exit("gfmFootnoteDefinition")}function wqe(t,e,n){const r=this;return gn(t,i,"gfmFootnoteDefinitionIndent",5);function i(s){const a=r.events[r.events.length-1];return a&&a[1].type==="gfmFootnoteDefinitionIndent"&&a[2].sliceSerialize(a[1],!0).length===4?e(s):n(s)}}function epe(t){let n=(t||{}).singleTilde;const r={name:"strikethrough",tokenize:s,resolveAll:i};return n==null&&(n=!0),{text:{126:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}};function i(a,o){let l=-1;for(;++l<a.length;)if(a[l][0]==="enter"&&a[l][1].type==="strikethroughSequenceTemporary"&&a[l][1]._close){let u=l;for(;u--;)if(a[u][0]==="exit"&&a[u][1].type==="strikethroughSequenceTemporary"&&a[u][1]._open&&a[l][1].end.offset-a[l][1].start.offset===a[u][1].end.offset-a[u][1].start.offset){a[l][1].type="strikethroughSequence",a[u][1].type="strikethroughSequence";const c={type:"strikethrough",start:Object.assign({},a[u][1].start),end:Object.assign({},a[l][1].end)},d={type:"strikethroughText",start:Object.assign({},a[u][1].end),end:Object.assign({},a[l][1].start)},h=[["enter",c,o],["enter",a[u][1],o],["exit",a[u][1],o],["enter",d,o]],m=o.parser.constructs.insideSpan.null;m&&hs(h,h.length,0,S2(m,a.slice(u+1,l),o)),hs(h,h.length,0,[["exit",d,o],["enter",a[l][1],o],["exit",a[l][1],o],["exit",c,o]]),hs(a,u-1,l-u+3,h),l=u+h.length-2;break}}for(l=-1;++l<a.length;)a[l][1].type==="strikethroughSequenceTemporary"&&(a[l][1].type="data");return a}function s(a,o,l){const u=this.previous,c=this.events;let d=0;return h;function h(g){return u===126&&c[c.length-1][1].type!=="characterEscape"?l(g):(a.enter("strikethroughSequenceTemporary"),m(g))}function m(g){const b=nf(u);if(g===126)return d>1?l(g):(a.consume(g),d++,m);if(d<2&&!n)return l(g);const v=a.exit("strikethroughSequenceTemporary"),E=nf(g);return v._open=!E||E===2&&!!b,v._close=!b||b===2&&!!E,o(g)}}}class Sqe{constructor(){this.map=[]}add(e,n,r){Cqe(this,e,n,r)}consume(e){if(this.map.sort(function(s,a){return s[0]-a[0]}),this.map.length===0)return;let n=this.map.length;const r=[];for(;n>0;)n-=1,r.push(e.slice(this.map[n][0]+this.map[n][1]),this.map[n][2]),e.length=this.map[n][0];
vendor: 4,098 bytes, line 125
125r.push(e.slice()),e.length=0;let i=r.pop();for(;i;){for(const s of i)e.push(s);i=r.pop()}this.map.length=0}}function Cqe(t,e,n,r){let i=0;if(!(n===0&&r.length===0)){for(;i<t.map.length;){if(t.map[i][0]===e){t.map[i][1]+=n,t.map[i][2].push(...r);return}i+=1}t.map.push([e,n,r])}}function Tqe(t,e){let n=!1;const r=[];for(;e<t.length;){const i=t[e];if(n){if(i[0]==="enter")i[1].type==="tableContent"&&r.push(t[e+1][1].type==="tableDelimiterMarker"?"left":"none");else if(i[1].type==="tableContent"){if(t[e-1][1].type==="tableDelimiterMarker"){const s=r.length-1;r[s]=r[s]==="left"?"center":"right"}}else if(i[1].type==="tableDelimiterRow")break}else i[0]==="enter"&&i[1].type==="tableDelimiterRow"&&(n=!0);e+=1}return r}function Aqe(){return{flow:{null:{name:"table",tokenize:Rqe,resolveAll:Nqe}}}}function Rqe(t,e,n){const r=this;let i=0,s=0,a;return o;function o(D){let P=r.events.length-1;for(;P>-1;){const $=r.events[P][1].type;if($==="lineEnding"||$==="linePrefix")P--;else break}const B=P>-1?r.events[P][1].type:null,L=B==="tableHead"||B==="tableRow"?R:l;return L===R&&r.parser.lazy[r.now().line]?n(D):L(D)}function l(D){return t.enter("tableHead"),t.enter("tableRow"),u(D)}function u(D){return D===124||(a=!0,s+=1),c(D)}function c(D){return D===null?n(D):pt(D)?s>1?(s=0,r.interrupt=!0,t.exit("tableRow"),t.enter("lineEnding"),t.consume(D),t.exit("lineEnding"),m):n(D):en(D)?gn(t,c,"whitespace")(D):(s+=1,a&&(a=!1,i+=1),D===124?(t.enter("tableCellDivider"),t.consume(D),t.exit("tableCellDivider"),a=!0,c):(t.enter("data"),d(D)))}function d(D){return D===null||D===124||An(D)?(t.exit("data"),c(D)):(t.consume(D),D===92?h:d)}function h(D){return D===92||D===124?(t.consume(D),d):d(D)}function m(D){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(D):(t.enter("tableDelimiterRow"),a=!1,en(D)?gn(t,g,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(D):g(D))}function g(D){return D===45||D===58?v(D):D===124?(a=!0,t.enter("tableCellDivider"),t.consume(D),t.exit("tableCellDivider"),b):A(D)}function b(D){return en(D)?gn(t,v,"whitespace")(D):v(D)}function v(D){return D===58?(s+=1,a=!0,t.enter("tableDelimiterMarker"),t.consume(D),t.exit("tableDelimiterMarker"),E):D===45?(s+=1,E(D)):D===null||pt(D)?S(D):A(D)}function E(D){return D===45?(t.enter("tableDelimiterFiller"),x(D)):A(D)}function x(D){return D===45?(t.consume(D),x):D===58?(a=!0,t.exit("tableDelimiterFiller"),t.enter("tableDelimiterMarker"),t.consume(D),t.exit("tableDelimiterMarker"),_):(t.exit("tableDelimiterFiller"),_(D))}function _(D){return en(D)?gn(t,S,"whitespace")(D):S(D)}function S(D){return D===124?g(D):D===null||pt(D)?!a||i!==s?A(D):(t.exit("tableDelimiterRow"),t.exit("tableHead"),e(D)):A(D)}function A(D){return n(D)}function R(D){return t.enter("tableRow"),T(D)}function T(D){return D===124?(t.enter("tableCellDivider"),t.consume(D),t.exit("tableCellDivider"),T):D===null||pt(D)?(t.exit("tableRow"),e(D)):en(D)?gn(t,T,"whitespace")(D):(t.enter("data"),O(D))}function O(D){return D===null||D===124||An(D)?(t.exit("data"),T(D)):(t.consume(D),D===92?I:O)}function I(D){return D===92||D===124?(t.consume(D),O):O(D)}}function Nqe(t,e){let n=-1,r=!0,i=0,s=[0,0,0,0],a=[0,0,0,0],o=!1,l=0,u,c,d;const h=new Sqe;for(;++n<t.length;){const m=t[n],g=m[1];m[0]==="enter"?g.type==="tableHead"?(o=!1,l!==0&&(nK(h,e,l,u,c),c=void 0,l=0),u={type:"table",start:Object.assign({},g.start),end:Object.assign({},g.end)},h.add(n,0,[["enter",u,e]])):g.type==="tableRow"||g.type==="tableDelimiterRow"?(r=!0,d=void 0,s=[0,0,0,0],a=[0,n+1,0,0],o&&(o=!1,c={type:"tableBody",start:Object.assign({},g.start),end:Object.assign({},g.end)},h.add(n,0,[["enter",c,e]])),i=g.type==="tableDelimiterRow"?2:c?3:1):i&&(g.type==="data"||g.type==="tableDelimiterMarker"||g.type==="tableDelimiterFiller")?(r=!1,a[2]===0&&(s[1]!==0&&(a[0]=a[1],d=mx(h,e,s,i,void 0,d),s=[0,0,0,0]),a[2]=n)):g.type==="tableCellDivider"&&(r?r=!1:(s[1]!==0&&(a[0]=a[1],d=mx(h,e,s,i,void 0,d)),s=a,a=[s[1],n,0,0])):g.type==="tableHead"?(o=!0,l=n):g.type==="tableRow"||g.type==="tableDelimiterRow"?(l=n,s[1]!==0?(a[0]=a[1],d=mx(h,e,s,i,n,d)):a[1]!==0&&(
125d=mx(h,e,a,i,n,d)),i=0):i&&(g.type==="data"||g.type==="tableDelimiterMarker"||g.type==="tableDelimiterFiller")&&(a[3]=n)}for(l!==0&&nK(h,e,l,u,c),h.consume(e.events),n=-1;++n<e.events.length;){const m=e.events[n];m[0]==="enter"&&m[1].type==="table"&&(m[1]._align=Tqe(e.events,n))}return t}function mx(t,e,n,r,i,s){const a=r===1?"tableHeader":r===2?"tableDelimiter":"tableData",o="tableContent";n[0]!==0&&(s.end=Object.assign({},Xm(e.events,n[0])),t.add(n[0],0,[["exit",s,e]]));const l=Xm(e.events,n[1]);if(s={type:a,start:Object.assign({},l),end:Object.assign({},l)},t.add(n[1],0,[["enter",s,e]]),n[2]!==0){const u=Xm(e.events,n[2]),c=Xm(e.events,n[3]),d={type:o,start:Object.assign({},u),end:Object.assign({},c)};if(t.add(n[2],0,[["enter",d,e]]),r!==2){const h=e.events[n[2]],m=e.events[n[3]];if(h[1].end=Object.assign({},m[1].end),h[1].type="chunkText",h[1].contentType="text",n[3]>n[2]+1){const g=n[2]+1,b=n[3]-n[2]-1;t.add(g,b,[])}}t.add(n[3]+1,0,[["exit",d,e]])}return i!==void 0&&(s.end=Object.assign({},Xm(e.events,i)),t.add(i,0,[["exit",s,e]]),s=void 0),s}function nK(t,e,n,r,i){const s=[],a=Xm(e.events,n);i&&(i.end=Object.assign({},a),s.push(["exit",i,e])),r.end=Object.assign({},a),s.push(["exit",r,e]),t.add(n+1,0,s)}function Xm(t,e){const n=t[e],r=n[0]==="enter"?"start":"end";return n[1][r]}const Oqe={name:"tasklistCheck",tokenize:kqe};function tpe(){return{text:{91:Oqe}}}function kqe(t,e,n){const r=this;return i;function i(l){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(l):(t.enter("taskListCheck"),t.enter("taskListCheckMarker"),t.consume(l),t.exit("taskListCheckMarker"),s)}function s(l){return An(l)?(t.enter("taskListCheckValueUnchecked"),t.consume(l),t.exit("taskListCheckValueUnchecked"),a):l===88||l===120?(t.enter("taskListCheckValueChecked"),t.consume(l),t.exit("taskListCheckValueChecked"),a):n(l)}function a(l){return l===93?(t.enter("taskListCheckMarker"),t.consume(l),t.exit("taskListCheckMarker"),t.exit("taskListCheck"),o):n(l)}function o(l){return pt(l)?e(l):en(l)?t.check({tokenize:Iqe},e,n)(l):n(l)}}function Iqe(t,e,n){return gn(t,r,"whitespace");function r(i){return i===null?n(i):e(i)}}function Mqe(t){return gfe([aqe(),gqe(),epe(t),Aqe(),tpe()])}const Dqe={};function E8t(t){const e=this,n=t||Dqe,r=e.data(),i=r.micromarkExtensions||(r.micromarkExtensions=[]),s=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),a=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);i.push(Mqe(n)),s.push(nqe()),a.push(rqe(n))}function gx(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)t[r]=n[r]}return t}var Pqe={read:function(t){return t[0]==='"'&&(t=t.slice(1,-1)),t.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(t){return encodeURIComponent(t).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function EP(t,e){function n(i,s,a){if(!(typeof document>"u")){a=gx({},e,a),typeof a.expires=="number"&&(a.expires=new Date(Date.now()+a.expires*864e5)),a.expires&&(a.expires=a.expires.toUTCString()),i=encodeURIComponent(i).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var o="";for(var l in a)a[l]&&(o+="; "+l,a[l]!==!0&&(o+="="+a[l].split(";")[0]));return document.cookie=i+"="+t.write(s,i)+o}}function r(i){if(!(typeof document>"u"||arguments.length&&!i)){for(var s=document.cookie?document.cookie.split("; "):[],a={},o=0;o<s.length;o++){var l=s[o].split("="),u=l.slice(1).join("=");try{var c=decodeURIComponent(l[0]);if(a[c]=t.read(u,c),i===c)break}catch{}}return i?a[i]:a}}return Object.create({set:n,get:r,remove:function(i,s){n(i,"",gx({},s,{expires:-1}))},withAttributes:function(i){return EP(this.converter,gx({},this.attributes,i))},withConverter:function(i){return EP(gx({},this.converter,i),this.attributes)}},{attributes:{value:Object.freeze(e)},converter:{value:Object.freeze(t)}})}var _8t=EP(Pqe,{path:"/"});function npe(t,e){return function(){return t.apply(e,arguments)}}const{toString:Lqe}=Object.prototype,{getPrototypeOf:k$}=Object,{iterator:HT,toStringTag:rpe}=Symbol,UT=(t=>e=>{const n=Lqe.call(e);return t[n]||(t[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),vl=t=>(t=t.toLowerCase(),e=>UT(e)===t),jT=t=>e=>typeof e===t,{isArray:U0}=Array,Yg=jT("undefined");function k2(t){return t!==null&&!Yg(t)&&t.constructor!==null&&!Yg(t.constructor)&&aa(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const ipe=vl("ArrayBuffer");function $qe(t){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&ipe(t.buffer),e}const Fqe=jT("string"),aa=jT("function"),spe=jT("number"),I2=t=>t!==null&&typeof t=="object",Bqe=t=>t===!0||t===!1,Iw=t=>{if(UT(t)!=="object")return!1;const e=k$(t);
vendor: 2,707 bytes, line 125
125return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(rpe in t)&&!(HT in t)},Hqe=t=>{if(!I2(t)||k2(t))return!1;try{return Object.keys(t).length===0&&Object.getPrototypeOf(t)===Object.prototype}catch{return!1}},Uqe=vl("Date"),jqe=vl("File"),zqe=vl("Blob"),Vqe=vl("FileList"),qqe=t=>I2(t)&&aa(t.pipe),Gqe=t=>{let e;return t&&(typeof FormData=="function"&&t instanceof FormData||aa(t.append)&&((e=UT(t))==="formdata"||e==="object"&&aa(t.toString)&&t.toString()==="[object FormData]"))},Wqe=vl("URLSearchParams"),[Yqe,Kqe,Xqe,Qqe]=["ReadableStream","Request","Response","Headers"].map(vl),Zqe=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function M2(t,e,{allOwnKeys:n=!1}={}){if(t===null||typeof t>"u")return;let r,i;if(typeof t!="object"&&(t=[t]),U0(t))for(r=0,i=t.length;r<i;r++)e.call(null,t[r],r,t);else{if(k2(t))return;const s=n?Object.getOwnPropertyNames(t):Object.keys(t),a=s.length;let o;for(r=0;r<a;r++)o=s[r],e.call(null,t[o],o,t)}}function ape(t,e){if(k2(t))return null;e=e.toLowerCase();const n=Object.keys(t);let r=n.length,i;for(;r-- >0;)if(i=n[r],e===i.toLowerCase())return i;return null}const bh=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,ope=t=>!Yg(t)&&t!==bh;function _P(){const{caseless:t,skipUndefined:e}=ope(this)&&this||{},n={},r=(i,s)=>{const a=t&&ape(n,s)||s;Iw(n[a])&&Iw(i)?n[a]=_P(n[a],i):Iw(i)?n[a]=_P({},i):U0(i)?n[a]=i.slice():(!e||!Yg(i))&&(n[a]=i)};for(let i=0,s=arguments.length;i<s;i++)arguments[i]&&M2(arguments[i],r);return n}const Jqe=(t,e,n,{allOwnKeys:r}={})=>(M2(e,(i,s)=>{n&&aa(i)?Object.defineProperty(t,s,{value:npe(i,n),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(t,s,{value:i,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:r}),t),eGe=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),tGe=(t,e,n,r)=>{t.prototype=Object.create(e.prototype,r),Object.defineProperty(t.prototype,"constructor",{value:t,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(t,"super",{value:e.prototype}),n&&Object.assign(t.prototype,n)},nGe=(t,e,n,r)=>{let i,s,a;const o={};if(e=e||{},t==null)return e;do{for(i=Object.getOwnPropertyNames(t),s=i.length;s-- >0;)a=i[s],(!r||r(a,t,e))&&!o[a]&&(e[a]=t[a],o[a]=!0);t=n!==!1&&k$(t)}while(t&&(!n||n(t,e))&&t!==Object.prototype);return e},rGe=(t,e,n)=>{t=String(t),(n===void 0||n>t.length)&&(n=t.length),n-=e.length;const r=t.indexOf(e,n);return r!==-1&&r===n},iGe=t=>{if(!t)return null;if(U0(t))return t;let e=t.length;if(!spe(e))return null;const n=new Array(e);for(;e-- >0;)n[e]=t[e];return n},sGe=(t=>e=>t&&e instanceof t)(typeof Uint8Array<"u"&&k$(Uint8Array)),aGe=(t,e)=>{const r=(t&&t[HT]).call(t);let i;for(;
vendor: 9,081 bytes, line 125
125(i=r.next())&&!i.done;){const s=i.value;e.call(t,s[0],s[1])}},oGe=(t,e)=>{let n;const r=[];for(;(n=t.exec(e))!==null;)r.push(n);return r},lGe=vl("HTMLFormElement"),uGe=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,i){return r.toUpperCase()+i}),rK=(({hasOwnProperty:t})=>(e,n)=>t.call(e,n))(Object.prototype),cGe=vl("RegExp"),lpe=(t,e)=>{const n=Object.getOwnPropertyDescriptors(t),r={};M2(n,(i,s)=>{let a;(a=e(i,s,t))!==!1&&(r[s]=a||i)}),Object.defineProperties(t,r)},dGe=t=>{lpe(t,(e,n)=>{if(aa(t)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=t[n];if(aa(r)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},fGe=(t,e)=>{const n={},r=i=>{i.forEach(s=>{n[s]=!0})};return U0(t)?r(t):r(String(t).split(e)),n},hGe=()=>{},pGe=(t,e)=>t!=null&&Number.isFinite(t=+t)?t:e;function mGe(t){return!!(t&&aa(t.append)&&t[rpe]==="FormData"&&t[HT])}const gGe=t=>{const e=new Array(10),n=(r,i)=>{if(I2(r)){if(e.indexOf(r)>=0)return;if(k2(r))return r;if(!("toJSON"in r)){e[i]=r;const s=U0(r)?[]:{};return M2(r,(a,o)=>{const l=n(a,i+1);!Yg(l)&&(s[o]=l)}),e[i]=void 0,s}}return r};return n(t,0)},yGe=vl("AsyncFunction"),bGe=t=>t&&(I2(t)||aa(t))&&aa(t.then)&&aa(t.catch),upe=((t,e)=>t?setImmediate:e?((n,r)=>(bh.addEventListener("message",({source:i,data:s})=>{i===bh&&s===n&&r.length&&r.shift()()},!1),i=>{r.push(i),bh.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",aa(bh.postMessage)),vGe=typeof queueMicrotask<"u"?queueMicrotask.bind(bh):typeof process<"u"&&process.nextTick||upe,EGe=t=>t!=null&&aa(t[HT]),Ie={isArray:U0,isArrayBuffer:ipe,isBuffer:k2,isFormData:Gqe,isArrayBufferView:$qe,isString:Fqe,isNumber:spe,isBoolean:Bqe,isObject:I2,isPlainObject:Iw,isEmptyObject:Hqe,isReadableStream:Yqe,isRequest:Kqe,isResponse:Xqe,isHeaders:Qqe,isUndefined:Yg,isDate:Uqe,isFile:jqe,isBlob:zqe,isRegExp:cGe,isFunction:aa,isStream:qqe,isURLSearchParams:Wqe,isTypedArray:sGe,isFileList:Vqe,forEach:M2,merge:_P,extend:Jqe,trim:Zqe,stripBOM:eGe,inherits:tGe,toFlatObject:nGe,kindOf:UT,kindOfTest:vl,endsWith:rGe,toArray:iGe,forEachEntry:aGe,matchAll:oGe,isHTMLForm:lGe,hasOwnProperty:rK,hasOwnProp:rK,reduceDescriptors:lpe,freezeMethods:dGe,toObjectSet:fGe,toCamelCase:uGe,noop:hGe,toFiniteNumber:pGe,findKey:ape,global:bh,isContextDefined:ope,isSpecCompliantForm:mGe,toJSONObject:gGe,isAsyncFn:yGe,isThenable:bGe,setImmediate:upe,asap:vGe,isIterable:EGe};let $t=class cpe extends Error{static from(e,n,r,i,s,a){const o=new cpe(e.message,n||e.code,r,i,s);return o.cause=e,o.name=e.name,a&&Object.assign(o,a),o}constructor(e,n,r,i,s){super(e),this.name="AxiosError",this.isAxiosError=!0,n&&(this.code=n),r&&(this.config=r),i&&(this.request=i),s&&(this.response=s,this.status=s.status)}toJSON(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:Ie.toJSONObject(this.config),code:this.code,status:this.status}}};$t.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE";$t.ERR_BAD_OPTION="ERR_BAD_OPTION";$t.ECONNABORTED="ECONNABORTED";$t.ETIMEDOUT="ETIMEDOUT";$t.ERR_NETWORK="ERR_NETWORK";$t.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS";$t.ERR_DEPRECATED="ERR_DEPRECATED";$t.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE";$t.ERR_BAD_REQUEST="ERR_BAD_REQUEST";$t.ERR_CANCELED="ERR_CANCELED";$t.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT";$t.ERR_INVALID_URL="ERR_INVALID_URL";const _Ge=null;function xP(t){return Ie.isPlainObject(t)||Ie.isArray(t)}function dpe(t){return Ie.endsWith(t,"[]")?t.slice(0,-2):t}function iK(t,e,n){return t?t.concat(e).map(function(i,s){return i=dpe(i),!n&&s?"["+i+"]":i}).join(n?".":""):e}function xGe(t){return Ie.isArray(t)&&!t.some(xP)}const wGe=Ie.toFlatObject(Ie,{},null,function(e){return/^is[A-Z]/.test(e)});function zT(t,e,n){if(!Ie.isObject(t))throw new TypeError("target must be an object");e=e||new FormData,n=Ie.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(b,v){return!Ie.isUndefined(v[b])});const r=n.metaTokens,i=n.visitor||c,s=n.dots,a=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&Ie.isSpecCompliantForm(e);if(!Ie.isFunction(i))throw new TypeError("visitor must be a function");function u(g){if(g===null)return"";if(Ie.isDate(g))return g.toISOString();if(Ie.isBoolean(g))return g.toString();if(!l&&Ie.isBlob(g))throw new $t("Blob is not supported. Use a Buffer instead.");return Ie.isArrayBuffer(g)||Ie.isTypedArray(g)?l&&typeof Blob=="function"?new Blob([g]):Buffer.from(g):g}function c(g,b,v){let E=g;if(g&&!v&&typeof g=="object"){if(Ie.endsWith(b,"{}"))b=r?b:b.slice(0,-2),g=JSON.stringify(g);else if(Ie.isArray(g)&&xGe(g)||(Ie.isFileList(g)||Ie.endsWith(b,"[]"))&&(E=Ie.toArray(g)))return b=dpe(b),E.forEach(function(_,S){!(Ie.isUndefined(_)||_===null)&&e.append(a===!0?iK([b],S,s):a===null?b:b+"[]",u(_))}),!1}return xP(g)?!0:(e.append(iK(v,b,s),u(g)),!1)}const d=[],h=Object.assign(wGe,{defaultVisitor:c,convertValue:u,isVisitable:xP});function m(g,b){if(!Ie.isUndefined(g)){if(d.indexOf(g)!==-1)throw Error("Circular reference detected in "+b.join("."));d.push(g),Ie.forEach(g,function(E,x){(!(Ie.isUndefined(E)||E===null)&&i.call(e,E,Ie.isString(x)?x.trim():x,b,h))===!0&&m(E,b?b.concat(x):[x])}),d.pop()}}if(!Ie.isObject(t))throw new TypeError("data must be an object");return m(t),e}function sK(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(r){return e[r]})}function I$(t,e){this._pairs=[],t&&zT(t,this,e)}const fpe=I$.prototype;fpe.append=function(e,n){this._pairs.push([e,n])};fpe.toString=function(e){const n=e?function(r){return e.call(this,r,sK)}:sK;return this._pairs.map(function(i){return n(i[0])+"="+n(i[1])},"").join("&")};function SGe(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function hpe(t,e,n){if(!e)return t;const r=n&&n.encode||SGe,i=Ie.isFunction(n)?{serialize:n}:n,s=i&&i.serialize;let a;if(s?a=s(e,i):a=Ie.isURLSearchParams(e)?e.toString():new I$(e,i).toString(r),a){const o=t.indexOf("#");o!==-1&&(t=t.slice(0,o)),t+=(t.indexOf("?")===-1?"?":"&")+a}return t}class aK{constructor(){this.handlers=[]}use(e,n,r){return this.handlers.push({fulfilled:e,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){Ie.forEach(this.handlers,function(r){r!==null&&e(r)})}}const ppe={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},CGe=typeof URLSearchParams<"u"?URLSearchParams:I$,TGe=typeof FormData<"u"?FormData:null,AGe=typeof Blob<"u"?Blob:null,RGe={isBrowser:!0,classes:{URLSearchParams:CGe,FormData:TGe,Blob:AGe},protocols:["http","https","file","blob","url","data"]},M$=typeof window<"u"&&typeof document<"u",wP=typeof navigator=="object"&&navigator||void 0,NGe=M$&&(!wP||["ReactNative","NativeScript","NS"].indexOf(wP.product)<0),OGe=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",kGe=M$&&window.location.href||"http://localhost",IGe=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:M$,hasStandardBrowserEnv:NGe,hasStandardBrowserWebWorkerEnv:OGe,navigator:wP,origin:kGe},Symbol.toStringTag,{value:"Module"})),cs={...IGe,...RGe};function MGe(t,e){return zT(t,new cs.classes.URLSearchParams,{visitor:function(n,r,i,s){return cs.isNode&&Ie.isBuffer(n)?(this.append(r,n.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)},...e})}function DGe(t){return Ie.matchAll(/\w+|\[(\w*)]/g,t).map(e=>e[0]==="[]"?"":e[1]||e[0])}function PGe(t){const e={},n=Object.keys(t);let r;const i=n.length;let s;for(r=0;r<i;r++)s=n[r],e[s]=t[s];return e}function mpe(t){function e(n,r,i,s){let a=n[s++];if(a==="__proto__")return!0;const o=Number.isFinite(+a),l=s>=n.length;return a=!a&&Ie.isArray(i)?i.length:a,l?(Ie.hasOwnProp(i,a)?i[a]=[i[a],r]:i[a]=r,!o):((!i[a]||!Ie.isObject(i[a]))&&(i[a]=[]),e(n,r,i[a],s)&&Ie.isArray(i[a])&&(i[a]=PGe(i[a])),!o)}if(Ie.isFormData(t)&&Ie.isFunction(t.entries)){const n={};return Ie.forEachEntry(t,(r,i)=>{e(DGe(r),i,n,0)}),n}return null}function LGe(t,e,n){if(Ie.isString(t))try{return(e||JSON.parse)(t),Ie.trim(t)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(t)}const D2={transitional:ppe,adapter:["xhr","http","fetch"],transformRequest:[function(e,n){const r=n.getContentType()||"",i=r.indexOf("application/json")>-1,s=Ie.isObject(e);if(s&&Ie.isHTMLForm(e)&&(e=new FormData(e)),Ie.isFormData(e))return i?JSON.stringify(mpe(e)):e;if(Ie.isArrayBuffer(e)||Ie.isBuffer(e)||Ie.isStream(e)||Ie.isFile(e)||Ie.isBlob(e)||Ie.isReadableStream(e))return e;if(Ie.isArrayBufferView(e))return e.buffer;if(Ie.isURLSearchParams(e))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let o;if(s){if(r.indexOf("application/x-www-form-urlencoded")>
vendor: 4,470 bytes, lines 125-127
125-1)return MGe(e,this.formSerializer).toString();if((o=Ie.isFileList(e))||r.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return zT(o?{"files[]":e}:e,l&&new l,this.formSerializer)}}return s||i?(n.setContentType("application/json",!1),LGe(e)):e}],transformResponse:[function(e){const n=this.transitional||D2.transitional,r=n&&n.forcedJSONParsing,i=this.responseType==="json";if(Ie.isResponse(e)||Ie.isReadableStream(e))return e;if(e&&Ie.isString(e)&&(r&&!this.responseType||i)){const a=!(n&&n.silentJSONParsing)&&i;try{return JSON.parse(e,this.parseReviver)}catch(o){if(a)throw o.name==="SyntaxError"?$t.from(o,$t.ERR_BAD_RESPONSE,this,null,this.response):o}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:cs.classes.FormData,Blob:cs.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Ie.forEach(["delete","get","head","post","put","patch"],t=>{D2.headers[t]={}});const $Ge=Ie.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),FGe=t=>{const e={};let n,r,i;return t&&t.split(` 126`).forEach(function(a){i=a.indexOf(":"),n=a.substring(0,i).trim().toLowerCase(),r=a.substring(i+1).trim(),!(!n||e[n]&&$Ge[n])&&(n==="set-cookie"?e[n]?e[n].push(r):e[n]=[r]:e[n]=e[n]?e[n]+", "+r:r)}),e},oK=Symbol("internals");function vy(t){return t&&String(t).trim().toLowerCase()}function Mw(t){return t===!1||t==null?t:Ie.isArray(t)?t.map(Mw):String(t)}function BGe(t){const e=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(t);)e[r[1]]=r[2];return e}const HGe=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function l4(t,e,n,r,i){if(Ie.isFunction(r))return r.call(this,e,n);if(i&&(e=n),!!Ie.isString(e)){if(Ie.isString(r))return e.indexOf(r)!==-1;if(Ie.isRegExp(r))return r.test(e)}}function UGe(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,n,r)=>n.toUpperCase()+r)}function jGe(t,e){const n=Ie.toCamelCase(" "+e);["get","set","has"].forEach(r=>{Object.defineProperty(t,r+n,{value:function(i,s,a){return this[r].call(this,e,i,s,a)},configurable:!0})})}let oa=class{constructor(e){e&&this.set(e)}set(e,n,r){const i=this;function s(o,l,u){const c=vy(l);if(!c)throw new Error("header name must be a non-empty string");const d=Ie.findKey(i,c);(!d||i[d]===void 0||u===!0||u===void 0&&i[d]!==!1)&&(i[d||l]=Mw(o))}const a=(o,l)=>Ie.forEach(o,(u,c)=>s(u,c,l));if(Ie.isPlainObject(e)||e instanceof this.constructor)a(e,n);else if(Ie.isString(e)&&(e=e.trim())&&!HGe(e))a(FGe(e),n);else if(Ie.isObject(e)&&Ie.isIterable(e)){let o={},l,u;for(const c of e){if(!Ie.isArray(c))throw TypeError("Object iterator must return a key-value pair");o[u=c[0]]=(l=o[u])?Ie.isArray(l)?[...l,c[1]]:[l,c[1]]:c[1]}a(o,n)}else e!=null&&s(n,e,r);return this}get(e,n){if(e=vy(e),e){const r=Ie.findKey(this,e);if(r){const i=this[r];if(!n)return i;if(n===!0)return BGe(i);if(Ie.isFunction(n))return n.call(this,i,r);if(Ie.isRegExp(n))return n.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,n){if(e=vy(e),e){const r=Ie.findKey(this,e);return!!(r&&this[r]!==void 0&&(!n||l4(this,this[r],r,n)))}return!1}delete(e,n){const r=this;let i=!1;function s(a){if(a=vy(a),a){const o=Ie.findKey(r,a);o&&(!n||l4(r,r[o],o,n))&&(delete r[o],i=!0)}}return Ie.isArray(e)?e.forEach(s):s(e),i}clear(e){const n=Object.keys(this);let r=n.length,i=!1;for(;r--;){const s=n[r];(!e||l4(this,this[s],s,e,!0))&&(delete this[s],i=!0)}return i}normalize(e){const n=this,r={};return Ie.forEach(this,(i,s)=>{const a=Ie.findKey(r,s);if(a){n[a]=Mw(i),delete n[s];return}const o=e?UGe(s):String(s).trim();o!==s&&delete n[s],n[o]=Mw(i),r[o]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const n=Object.create(null);return Ie.forEach(this,(r,i)=>{r!=null&&r!==!1&&(n[i]=e&&Ie.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,n])=>e+": "+n).join(` 127`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...n){const r=new this(e);
vendor: 8,707 bytes, line 127
127return n.forEach(i=>r.set(i)),r}static accessor(e){const r=(this[oK]=this[oK]={accessors:{}}).accessors,i=this.prototype;function s(a){const o=vy(a);r[o]||(jGe(i,a),r[o]=!0)}return Ie.isArray(e)?e.forEach(s):s(e),this}};oa.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);Ie.reduceDescriptors(oa.prototype,({value:t},e)=>{let n=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(r){this[n]=r}}});Ie.freezeMethods(oa);function u4(t,e){const n=this||D2,r=e||n,i=oa.from(r.headers);let s=r.data;return Ie.forEach(t,function(o){s=o.call(n,s,i.normalize(),e?e.status:void 0)}),i.normalize(),s}function gpe(t){return!!(t&&t.__CANCEL__)}let P2=class extends $t{constructor(e,n,r){super(e??"canceled",$t.ERR_CANCELED,n,r),this.name="CanceledError",this.__CANCEL__=!0}};function ype(t,e,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?t(n):e(new $t("Request failed with status code "+n.status,[$t.ERR_BAD_REQUEST,$t.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function zGe(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}function VGe(t,e){t=t||10;const n=new Array(t),r=new Array(t);let i=0,s=0,a;return e=e!==void 0?e:1e3,function(l){const u=Date.now(),c=r[s];a||(a=u),n[i]=l,r[i]=u;let d=s,h=0;for(;d!==i;)h+=n[d++],d=d%t;if(i=(i+1)%t,i===s&&(s=(s+1)%t),u-a<e)return;const m=c&&u-c;return m?Math.round(h*1e3/m):void 0}}function qGe(t,e){let n=0,r=1e3/e,i,s;const a=(u,c=Date.now())=>{n=c,i=null,s&&(clearTimeout(s),s=null),t(...u)};return[(...u)=>{const c=Date.now(),d=c-n;d>=r?a(u,c):(i=u,s||(s=setTimeout(()=>{s=null,a(i)},r-d)))},()=>i&&a(i)]}const PS=(t,e,n=3)=>{let r=0;const i=VGe(50,250);return qGe(s=>{const a=s.loaded,o=s.lengthComputable?s.total:void 0,l=a-r,u=i(l),c=a<=o;r=a;const d={loaded:a,total:o,progress:o?a/o:void 0,bytes:l,rate:u||void 0,estimated:u&&o&&c?(o-a)/u:void 0,event:s,lengthComputable:o!=null,[e?"download":"upload"]:!0};t(d)},n)},lK=(t,e)=>{const n=t!=null;return[r=>e[0]({lengthComputable:n,total:t,loaded:r}),e[1]]},uK=t=>(...e)=>Ie.asap(()=>t(...e)),GGe=cs.hasStandardBrowserEnv?((t,e)=>n=>(n=new URL(n,cs.origin),t.protocol===n.protocol&&t.host===n.host&&(e||t.port===n.port)))(new URL(cs.origin),cs.navigator&&/(msie|trident)/i.test(cs.navigator.userAgent)):()=>!0,WGe=cs.hasStandardBrowserEnv?{write(t,e,n,r,i,s,a){if(typeof document>"u")return;const o=[`${t}=${encodeURIComponent(e)}`];Ie.isNumber(n)&&o.push(`expires=${new Date(n).toUTCString()}`),Ie.isString(r)&&o.push(`path=${r}`),Ie.isString(i)&&o.push(`domain=${i}`),s===!0&&o.push("secure"),Ie.isString(a)&&o.push(`SameSite=${a}`),document.cookie=o.join("; ")},read(t){if(typeof document>"u")return null;const e=document.cookie.match(new RegExp("(?:^|; )"+t+"=([^;]*)"));return e?decodeURIComponent(e[1]):null},remove(t){this.write(t,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function YGe(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function KGe(t,e){return e?t.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):t}function bpe(t,e,n){let r=!YGe(e);return t&&(r||n==!1)?KGe(t,e):e}const cK=t=>t instanceof oa?{...t}:t;function Wh(t,e){e=e||{};const n={};function r(u,c,d,h){return Ie.isPlainObject(u)&&Ie.isPlainObject(c)?Ie.merge.call({caseless:h},u,c):Ie.isPlainObject(c)?Ie.merge({},c):Ie.isArray(c)?c.slice():c}function i(u,c,d,h){if(Ie.isUndefined(c)){if(!Ie.isUndefined(u))return r(void 0,u,d,h)}else return r(u,c,d,h)}function s(u,c){if(!Ie.isUndefined(c))return r(void 0,c)}function a(u,c){if(Ie.isUndefined(c)){if(!Ie.isUndefined(u))return r(void 0,u)}else return r(void 0,c)}function o(u,c,d){if(d in e)return r(u,c);if(d in t)return r(void 0,u)}const l={url:s,method:s,data:s,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:o,headers:(u,c,d)=>i(cK(u),cK(c),d,!0)};return Ie.forEach(Object.keys({...t,...e}),function(c){const d=l[c]||i,h=d(t[c],e[c],c);Ie.isUndefined(h)&&d!==o||(n[c]=h)}),n}const vpe=t=>{const e=Wh({},t);let{data:n,withXSRFToken:r,xsrfHeaderName:i,xsrfCookieName:s,headers:a,auth:o}=e;if(e.headers=a=oa.from(a),e.url=hpe(bpe(e.baseURL,e.url,e.allowAbsoluteUrls),t.params,t.paramsSerializer),o&&a.set("Authorization","Basic "+btoa((o.username||"")+":"+(o.password?unescape(encodeURIComponent(o.password)):""))),Ie.isFormData(n)){if(cs.hasStandardBrowserEnv||cs.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if(Ie.isFunction(n.getHeaders)){const l=n.getHeaders(),u=["content-type","content-length"];Object.entries(l).forEach(([c,d])=>{u.includes(c.toLowerCase())&&a.set(c,d)})}}if(cs.hasStandardBrowserEnv&&(r&&Ie.isFunction(r)&&(r=r(e)),r||r!==!1&&GGe(e.url))){const l=i&&s&&WGe.read(s);l&&a.set(i,l)}return e},XGe=typeof XMLHttpRequest<"u",QGe=XGe&&function(t){return new Promise(function(n,r){const i=vpe(t);let s=i.data;const a=oa.from(i.headers).normalize();let{responseType:o,onUploadProgress:l,onDownloadProgress:u}=i,c,d,h,m,g;function b(){m&&m(),g&&g(),i.cancelToken&&i.cancelToken.unsubscribe(c),i.signal&&i.signal.removeEventListener("abort",c)}let v=new XMLHttpRequest;v.open(i.method.toUpperCase(),i.url,!0),v.timeout=i.timeout;function E(){if(!v)return;const _=oa.from("getAllResponseHeaders"in v&&v.getAllResponseHeaders()),A={data:!o||o==="text"||o==="json"?v.responseText:v.response,status:v.status,statusText:v.statusText,headers:_,config:t,request:v};ype(function(T){n(T),b()},function(T){r(T),b()},A),v=null}"onloadend"in v?v.onloadend=E:v.onreadystatechange=function(){!v||v.readyState!==4||v.status===0&&!(v.responseURL&&v.responseURL.indexOf("file:")===0)||setTimeout(E)},v.onabort=function(){v&&(r(new $t("Request aborted",$t.ECONNABORTED,t,v)),v=null)},v.onerror=function(S){const A=S&&S.message?S.message:"Network Error",R=new $t(A,$t.ERR_NETWORK,t,v);R.event=S||null,r(R),v=null},v.ontimeout=function(){let S=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const A=i.transitional||ppe;i.timeoutErrorMessage&&(S=i.timeoutErrorMessage),r(new $t(S,A.clarifyTimeoutError?$t.ETIMEDOUT:$t.ECONNABORTED,t,v)),v=null},s===void 0&&a.setContentType(null),"setRequestHeader"in v&&Ie.forEach(a.toJSON(),function(S,A){v.setRequestHeader(A,S)}),Ie.isUndefined(i.withCredentials)||(v.withCredentials=!!i.withCredentials),o&&o!=="json"&&(v.responseType=i.responseType),u&&([h,g]=PS(u,!0),v.addEventListener("progress",h)),l&&v.upload&&([d,m]=PS(l),v.upload.addEventListener("progress",d),v.upload.addEventListener("loadend",m)),(i.cancelToken||i.signal)&&(c=_=>{v&&(r(!_||_.type?new P2(null,t,v):_),v.abort(),v=null)},i.cancelToken&&i.cancelToken.subscribe(c),i.signal&&(i.signal.aborted?c():i.signal.addEventListener("abort",c)));const x=zGe(i.url);if(x&&cs.protocols.indexOf(x)===-1){r(new $t("Unsupported protocol "+x+":",$t.ERR_BAD_REQUEST,t));return}v.send(s||null)})},ZGe=(t,e)=>{const{length:n}=t=t?t.filter(Boolean):[];if(e||n){let r=new AbortController,i;const s=function(u){if(!i){i=!0,o();const c=u instanceof Error?u:this.reason;r.abort(c instanceof $t?c:new P2(c instanceof Error?c.message:c))}};let a=e&&setTimeout(()=>{a=null,s(new $t(`timeout of ${e}ms exceeded`,$t.ETIMEDOUT))},e);const o=()=>{t&&(a&&clearTimeout(a),a=null,t.forEach(u=>{u.unsubscribe?u.unsubscribe(s):u.removeEventListener("abort",s)}),t=null)};t.forEach(u=>u.addEventListener("abort",s));const{signal:l}=r;return l.unsubscribe=()=>Ie.asap(o),l}},JGe=function*(t,e){let n=t.byteLength;if(n<e){yield t;return}let r=0,i;for(;r<n;)i=r+e,yield t.slice(r,i),r=i},eWe=async function*(t,e){for await(const n of tWe(t))yield*JGe(n,e)},tWe=async function*(t){if(t[Symbol.asyncIterator]){yield*t;return}const e=t.getReader();try{for(;;){const{done:n,value:r}=await e.read();if(n)break;yield r}}finally{await e.cancel()}},dK=(t,e,n,r)=>{const i=eWe(t,e);let s=0,a,o=l=>{a||(a=!0,r&&r(l))};return new ReadableStream({async pull(l){try{const{done:u,value:c}=await i.next();if(u){o(),l.close();return}let d=c.byteLength;if(n){let h=s+=d;n(h)}l.enqueue(new Uint8Array(c))}catch(u){throw o(u),u}},cancel(l){return o(l),i.return()}},{highWaterMark:2})},fK=64*1024,{isFunction:yx}=Ie,nWe=(({Request:t,Response:e})=>({Request:t,Response:e}))(Ie.global),{ReadableStream:hK,TextEncoder:pK}=Ie.global,mK=(t,...e)=>{try{return!!t(...e)}catch{return!1}},rWe=t=>{t=Ie.merge.call({skipUndefined:!0},nWe,t);const{fetch:e,Request:n,Response:r}=t,i=e?yx(e):typeof fetch=="function",s=yx(n),a=yx(r);if(!i)return!1;
vendor: 8,955 bytes, lines 127-130
127const o=i&&yx(hK),l=i&&(typeof pK=="function"?(g=>b=>g.encode(b))(new pK):async g=>new Uint8Array(await new n(g).arrayBuffer())),u=s&&o&&mK(()=>{let g=!1;const b=new n(cs.origin,{body:new hK,method:"POST",get duplex(){return g=!0,"half"}}).headers.has("Content-Type");return g&&!b}),c=a&&o&&mK(()=>Ie.isReadableStream(new r("").body)),d={stream:c&&(g=>g.body)};i&&["text","arrayBuffer","blob","formData","stream"].forEach(g=>{!d[g]&&(d[g]=(b,v)=>{let E=b&&b[g];if(E)return E.call(b);throw new $t(`Response type '${g}' is not supported`,$t.ERR_NOT_SUPPORT,v)})});const h=async g=>{if(g==null)return 0;if(Ie.isBlob(g))return g.size;if(Ie.isSpecCompliantForm(g))return(await new n(cs.origin,{method:"POST",body:g}).arrayBuffer()).byteLength;if(Ie.isArrayBufferView(g)||Ie.isArrayBuffer(g))return g.byteLength;if(Ie.isURLSearchParams(g)&&(g=g+""),Ie.isString(g))return(await l(g)).byteLength},m=async(g,b)=>{const v=Ie.toFiniteNumber(g.getContentLength());return v??h(b)};return async g=>{let{url:b,method:v,data:E,signal:x,cancelToken:_,timeout:S,onDownloadProgress:A,onUploadProgress:R,responseType:T,headers:O,withCredentials:I="same-origin",fetchOptions:D}=vpe(g),P=e||fetch;T=T?(T+"").toLowerCase():"text";let B=ZGe([x,_&&_.toAbortSignal()],S),L=null;const $=B&&B.unsubscribe&&(()=>{B.unsubscribe()});let q;try{if(R&&u&&v!=="get"&&v!=="head"&&(q=await m(O,E))!==0){let Y=new n(b,{method:"POST",body:E,duplex:"half"}),Z;if(Ie.isFormData(E)&&(Z=Y.headers.get("content-type"))&&O.setContentType(Z),Y.body){const[W,Q]=lK(q,PS(uK(R)));E=dK(Y.body,fK,W,Q)}}Ie.isString(I)||(I=I?"include":"omit");const F=s&&"credentials"in n.prototype,G={...D,signal:B,method:v.toUpperCase(),headers:O.normalize().toJSON(),body:E,duplex:"half",credentials:F?I:void 0};L=s&&new n(b,G);let H=await(s?P(L,D):P(b,G));const K=c&&(T==="stream"||T==="response");if(c&&(A||K&&$)){const Y={};["status","statusText","headers"].forEach(re=>{Y[re]=H[re]});const Z=Ie.toFiniteNumber(H.headers.get("content-length")),[W,Q]=A&&lK(Z,PS(uK(A),!0))||[];H=new r(dK(H.body,fK,W,()=>{Q&&Q(),$&&$()}),Y)}T=T||"text";let V=await d[Ie.findKey(d,T)||"text"](H,g);return!K&&$&&$(),await new Promise((Y,Z)=>{ype(Y,Z,{data:V,headers:oa.from(H.headers),status:H.status,statusText:H.statusText,config:g,request:L})})}catch(F){throw $&&$(),F&&F.name==="TypeError"&&/Load failed|fetch/i.test(F.message)?Object.assign(new $t("Network Error",$t.ERR_NETWORK,g,L),{cause:F.cause||F}):$t.from(F,F&&F.code,g,L)}}},iWe=new Map,Epe=t=>{let e=t&&t.env||{};const{fetch:n,Request:r,Response:i}=e,s=[r,i,n];let a=s.length,o=a,l,u,c=iWe;for(;o--;)l=s[o],u=c.get(l),u===void 0&&c.set(l,u=o?new Map:rWe(e)),c=u;return u};Epe();const D$={http:_Ge,xhr:QGe,fetch:{get:Epe}};Ie.forEach(D$,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch{}Object.defineProperty(t,"adapterName",{value:e})}});const gK=t=>`- ${t}`,sWe=t=>Ie.isFunction(t)||t===null||t===!1;function aWe(t,e){t=Ie.isArray(t)?t:[t];const{length:n}=t;let r,i;const s={};for(let a=0;a<n;a++){r=t[a];let o;if(i=r,!sWe(r)&&(i=D$[(o=String(r)).toLowerCase()],i===void 0))throw new $t(`Unknown adapter '${o}'`);if(i&&(Ie.isFunction(i)||(i=i.get(e))))break;s[o||"#"+a]=i}if(!i){const a=Object.entries(s).map(([l,u])=>`adapter ${l} `+(u===!1?"is not supported by the environment":"is not available in the build"));let o=n?a.length>1?`since : 128`+a.map(gK).join(` 129`):" "+gK(a[0]):"as no adapter specified";throw new $t("There is no suitable adapter to dispatch the request "+o,"ERR_NOT_SUPPORT")}return i}const _pe={getAdapter:aWe,adapters:D$};function c4(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new P2(null,t)}function yK(t){return c4(t),t.headers=oa.from(t.headers),t.data=u4.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),_pe.getAdapter(t.adapter||D2.adapter,t)(t).then(function(r){return c4(t),r.data=u4.call(t,t.transformResponse,r),r.headers=oa.from(r.headers),r},function(r){return gpe(r)||(c4(t),r&&r.response&&(r.response.data=u4.call(t,t.transformResponse,r.response),r.response.headers=oa.from(r.response.headers))),Promise.reject(r)})}const xpe="1.13.4",VT={};["object","boolean","number","function","string","symbol"].forEach((t,e)=>{VT[t]=function(r){return typeof r===t||"a"+(e<1?"n ":" ")+t}});const bK={};VT.transitional=function(e,n,r){function i(s,a){return"[Axios v"+xpe+"] Transitional option '"+s+"'"+a+(r?". "+r:"")}return(s,a,o)=>{if(e===!1)throw new $t(i(a," has been removed"+(n?" in "+n:"")),$t.ERR_DEPRECATED);return n&&!bK[a]&&(bK[a]=!0,console.warn(i(a," has been deprecated since v"+n+" and will be removed in the near future"))),e?e(s,a,o):!0}};VT.spelling=function(e){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${e}`),!0)};function oWe(t,e,n){if(typeof t!="object")throw new $t("options must be an object",$t.ERR_BAD_OPTION_VALUE);const r=Object.keys(t);let i=r.length;for(;i-- >0;){const s=r[i],a=e[s];if(a){const o=t[s],l=o===void 0||a(o,s,t);if(l!==!0)throw new $t("option "+s+" must be "+l,$t.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new $t("Unknown option "+s,$t.ERR_BAD_OPTION)}}const Dw={assertOptions:oWe,validators:VT},kl=Dw.validators;let kh=class{constructor(e){this.defaults=e||{},this.interceptors={request:new aK,response:new aK}}async request(e,n){try{return await this._request(e,n)}catch(r){if(r instanceof Error){let i={};Error.captureStackTrace?Error.captureStackTrace(i):i=new Error;const s=i.stack?i.stack.replace(/^.+\n/,""):"";try{r.stack?s&&!String(r.stack).endsWith(s.replace(/^.+\n.+\n/,""))&&(r.stack+=` 130`+s):r.stack=s}catch{}}throw r}}_request(e,n){typeof e=="string"?(n=n||{},n.url=e):n=e||{},n=Wh(this.defaults,n);const{transitional:r,paramsSerializer:i,headers:s}=n;r!==void 0&&Dw.assertOptions(r,{silentJSONParsing:kl.transitional(kl.boolean),forcedJSONParsing:kl.transitional(kl.boolean),clarifyTimeoutError:kl.transitional(kl.boolean)},!1),i!=null&&(Ie.isFunction(i)?n.paramsSerializer={serialize:i}:Dw.assertOptions(i,{encode:kl.function,serialize:kl.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),Dw.assertOptions(n,{baseUrl:kl.spelling("baseURL"),withXsrfToken:kl.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let a=s&&Ie.merge(s.common,s[n.method]);s&&Ie.forEach(["delete","get","head","post","put","patch","common"],g=>{delete s[g]}),n.headers=oa.concat(a,s);const o=[];let l=!0;this.interceptors.request.forEach(function(b){typeof b.runWhen=="function"&&b.runWhen(n)===!1||(l=l&&b.synchronous,o.unshift(b.fulfilled,b.rejected))});const u=[];this.interceptors.response.forEach(function(b){u.push(b.fulfilled,b.rejected)});let c,d=0,h;if(!l){const g=[yK.bind(this),void 0];for(g.unshift(...o),g.push(...u),h=g.length,c=Promise.resolve(n);d<h;)c=c.then(g[d++],g[d++]);return c}h=o.length;let m=n;for(;d<h;){const g=o[d++],b=o[d++];try{m=g(m)}catch(v){b.call(this,v);break}}try{c=yK.call(this,m)}catch(g){return Promise.reject(g)}for(d=0,h=u.length;d<h;)c=c.then(u[d++],u[d++]);return c}getUri(e){e=Wh(this.defaults,e);const n=bpe(e.baseURL,e.url,e.allowAbsoluteUrls);return hpe(n,e.params,e.paramsSerializer)}};Ie.forEach(["delete","get","head","options"],function(e){kh.prototype[e]=function(n,r){return this.request(Wh(r||{},{method:e,url:n,data:(r||{}).data}))}});Ie.forEach(["post","put","patch"],function(e){function n(r){return function(s,a,o){return this.request(Wh(o||{},{method:e,headers:r?{"Content-Type":"multipart/form-data"}:{},url:s,data:a}))}}kh.prototype[e]=n(),kh.prototype[e+"Form"]=n(!0)});let lWe=class wpe{constructor(e){if(typeof e!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(s){n=s});const r=this;this.promise.then(i=>{if(!r._listeners)return;let s=r._listeners.length;for(;s-- >0;)r._listeners[s](i);r._listeners=null}),this.promise.then=i=>{let s;const a=new Promise(o=>{r.subscribe(o),s=o}).then(i);return a.cancel=function(){r.unsubscribe(s)},a},e(function(s,a,o){r.reason||(r.reason=new P2(s,a,o),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const n=this._listeners.indexOf(e);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const e=new AbortController,n=r=>{e.abort(r)};return this.subscribe(n),e.signal.unsubscribe=()=>this.unsubscribe(n),e.signal}static source(){let e;return{token:new wpe(function(i){e=i}),cancel:e}}};function uWe(t){return function(n){return t.apply(null,n)}}function cWe(t){return Ie.isObject(t)&&t.isAxiosError===!0}const SP={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,Re
vendor: 2,188 bytes, line 130
130setContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(SP).forEach(([t,e])=>{SP[e]=t});function Spe(t){const e=new kh(t),n=npe(kh.prototype.request,e);return Ie.extend(n,kh.prototype,e,{allOwnKeys:!0}),Ie.extend(n,e,null,{allOwnKeys:!0}),n.create=function(i){return Spe(Wh(t,i))},n}const yi=Spe(D2);yi.Axios=kh;yi.CanceledError=P2;yi.CancelToken=lWe;yi.isCancel=gpe;yi.VERSION=xpe;yi.toFormData=zT;yi.AxiosError=$t;yi.Cancel=yi.CanceledError;yi.all=function(e){return Promise.all(e)};yi.spread=uWe;yi.isAxiosError=cWe;yi.mergeConfig=Wh;yi.AxiosHeaders=oa;yi.formToJSON=t=>mpe(Ie.isHTMLForm(t)?new FormData(t):t);yi.getAdapter=_pe.getAdapter;yi.HttpStatusCode=SP;yi.default=yi;const{Axios:C8t,AxiosError:T8t,CanceledError:A8t,isCancel:R8t,CancelToken:N8t,VERSION:O8t,all:k8t,Cancel:I8t,isAxiosError:M8t,spread:D8t,toFormData:P8t,AxiosHeaders:L8t,HttpStatusCode:$8t,formToJSON:F8t,getAdapter:B8t,mergeConfig:H8t}=yi;var d4={exports:{}},f4,vK;function dWe(){if(vK)return f4;vK=1;var t="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return f4=t,f4}
vendor: 13,098 bytes, lines 130-131
130var h4,EK;function fWe(){if(EK)return h4;EK=1;var t=dWe();function e(){}function n(){}return n.resetWarningCache=e,h4=function(){function r(a,o,l,u,c,d){if(d!==t){var h=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 h.name="Invariant Violation",h}}r.isRequired=r;function i(){return r}var s={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:i,element:r,elementType:r,instanceOf:i,node:r,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:n,resetWarningCache:e};return s.PropTypes=s,s},h4}var _K;function hWe(){return _K||(_K=1,d4.exports=fWe()()),d4.exports}var pWe=hWe();const oe=ys(pWe);function xK(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function mWe(t){if(Array.isArray(t))return t}function Cpe(t,e,n){return(e=_We(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function gWe(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,i,s,a,o=[],l=!0,u=!1;try{if(s=(n=n.call(t)).next,e!==0)for(;!(l=(r=s.call(n)).done)&&(o.push(r.value),o.length!==e);l=!0);}catch(c){u=!0,i=c}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return o}}function yWe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 131In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function wK(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function SK(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?wK(Object(n),!0).forEach(function(r){Cpe(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):wK(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function bWe(t,e){if(t==null)return{};var n,r,i=vWe(t,e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);for(r=0;r<s.length;r++)n=s[r],e.indexOf(n)===-1&&{}.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function vWe(t,e){if(t==null)return{};var n={};for(var r in t)if({}.hasOwnProperty.call(t,r)){if(e.indexOf(r)!==-1)continue;n[r]=t[r]}return n}function Tpe(t,e){return mWe(t)||gWe(t,e)||xWe(t,e)||yWe()}function EWe(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function _We(t){var e=EWe(t,"string");return typeof e=="symbol"?e:e+""}function CP(t){"@babel/helpers - typeof";return CP=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},CP(t)}function xWe(t,e){if(t){if(typeof t=="string")return xK(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?xK(t,e):void 0}}var ns=function(e,n,r){var i=!!r,s=U.useRef(r);U.useEffect(function(){s.current=r},[r]),U.useEffect(function(){if(!i||!e)return function(){};var a=function(){if(s.current)return s.current.apply(s,arguments)};return e.on(n,a),function(){e.off(n,a)}},[i,n,e,s])},TP=function(e){var n=U.useRef(e);return U.useEffect(function(){n.current=e},[e]),n.current},Kg=function(e){return e!==null&&CP(e)==="object"},wWe=function(e){return Kg(e)&&typeof e.then=="function"},SWe=function(e){return Kg(e)&&typeof e.elements=="function"&&typeof e.createToken=="function"&&typeof e.createPaymentMethod=="function"&&typeof e.confirmCardPayment=="function"},CK="[object Object]",CWe=function t(e,n){if(!Kg(e)||!Kg(n))return e===n;var r=Array.isArray(e),i=Array.isArray(n);if(r!==i)return!1;var s=Object.prototype.toString.call(e)===CK,a=Object.prototype.toString.call(n)===CK;if(s!==a)return!1;if(!s&&!r)return e===n;var o=Object.keys(e),l=Object.keys(n);if(o.length!==l.length)return!1;for(var u={},c=0;c<o.length;c+=1)u[o[c]]=!0;for(var d=0;d<l.length;d+=1)u[l[d]]=!0;var h=Object.keys(u);if(h.length!==o.length)return!1;var m=e,g=n,b=function(E){return t(m[E],g[E])};return h.every(b)},Ape=function(e,n,r){return Kg(e)?Object.keys(e).reduce(function(i,s){var a=!Kg(n)||!CWe(e[s],n[s]);return r.includes(s)?(a&&console.warn("Unsupported prop change: options.".concat(s," is not a mutable property.")),i):a?SK(SK({},i||{}),{},Cpe({},s,e[s])):i},null):null},Rpe="Invalid prop `stripe` supplied to `Elements`. We recommend using the `loadStripe` utility from `@stripe/stripe-js`. See https://stripe.com/docs/stripe-js/react#elements-props-stripe for details.",TK=function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Rpe;if(e===null||SWe(e))return e;throw new Error(n)},TWe=function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Rpe;if(wWe(e))return{tag:"async",stripePromise:Promise.resolve(e).then(function(i){return TK(i,n)})};var r=TK(e,n);return r===null?{tag:"empty"}:{tag:"sync",stripe:r}},AWe=function(e){!e||!e._registerWrapper||!e.registerAppInfo||(e._registerWrapper({name:"react-stripe-js",version:"6.8.0"}),e.registerAppInfo({name:"react-stripe-js",version:"6.8.0",url:"https://stripe.com/docs/stripe-js/react"}))},qT=U.createContext(null);qT.displayName="ElementsContext";var Npe=function(e,n){if(!e)throw new Error("Could not find Elements context; You need to wrap the part of your app that ".concat(n," in an <Elements> provider."));return e},RWe=function(e){var n=e.stripe,r=e.options,i=e.children,s=U.useMemo(function(){return TWe(n)},[n]),a=U.useState(function(){return{stripe:s.tag==="sync"?s.stripe:null,elements:s.tag==="sync"?s.stripe.elements(r):null}}),o=Tpe(a,2),l=o[0],u=o[1];U.useEffect(function(){var h=!0,m=function(b){u(function(v){return v.stripe?v:{stripe:b,elements:b.elements(r)}})};return s.tag==="async"&&!l.stripe?s.stripePromise.then(function(g){g&&h&&m(g)}):s.tag==="sync"&&!l.stripe&&m(s.stripe),function(){h=!1}},[s,l,r]);var c=TP(n);U.useEffect(function(){c!==null&&c!==n&&console.warn("Unsupported prop change on Elements: You cannot change the `stripe` prop after setting it.")},[c,n]);var d=TP(r);return U.useEffect(function(){if(l.elements){var h=Ape(r,d,["clientSecret","fonts"]);h&&l.elements.update(h)}},[r,d,l.elements]),U.useEffect(function(){AWe(l.stripe)},[l.stripe]),U.createElement(qT.Provider,{value:l},i)};RWe.propTypes={stripe:oe.any,options:oe.object};var NWe=function(e){var n=U.useContext(qT);return Npe(n,e)},U8t=function(){var e=NWe("calls useElements()"),n=e.elements;return n};oe.func.isRequired;var Ope=U.createContext(null);Ope.displayName="CheckoutContext";var AP=function(e){var n=U.useContext(Ope),r=U.useContext(qT);if(n){if(r)throw new Error("You cannot wrap the part of your app that ".concat(e," in both a checkout provider and <Elements> provider."));return n}else return Npe(r,e)},OWe=["mode"],kWe=function(e){return e.charAt(0).toUpperCase()+e.slice(1)},zr=function(e,n,r){var i="".concat(kWe(e),"Element"),s=function(u){var c=u.id,d=u.className,h=u.options,m=h===void 0?{}:h,g=u.onBlur,b=u.onFocus,v=u.onReady,E=u.onChange,x=u.onEscape,_=u.onClick,S=u.onLoadError,A=u.onLoaderStart,R=u.onNetworksChange,T=u.onConfirm,O=u.onCancel,I=u.onShippingAddressChange,D=u.onShippingRateChange,P=u.onSavedPaymentMethodRemove,B=u.onSavedPaymentMethodUpdate,L=u.onAvailablePaymentMethodsChange,$=AP("mounts <".concat(i,">")),q="elements"in $?$.elements:null,F="checkoutState"in $?$.checkoutState:null,G=F?.type==="success"||F?.type==="loading"?F.sdk:null,H=U.useState(null),K=Tpe(H,2),V=K[0],Y=K[1],Z=U.useRef(null),W=U.useRef(null);ns(V,"blur",g),ns(V,"focus",b),ns(V,"escape",x),ns(V,"click",_),ns(V,"loaderror",S),ns(V,"loaderstart",A),ns(V,"networkschange",R),ns(V,"confirm",T),ns(V,"cancel",O),ns(V,"shippingaddresschange",I),ns(V,"shippingratechange",D),ns(V,"savedpaymentmethodremove",P),ns(V,"savedpaymentmethodupdate",B),ns(V,"availablepaymentmethodschange",L),ns(V,"change",E);var Q;v&&(e==="expressCheckout"?Q=v:Q=function(){v(V)}),ns(V,"ready",Q),U.useLayoutEffect(function(){if(Z.current===null&&W.current!==null&&(q||G)){var se=null;if(G){var J=G,ae=G;switch(e){case"paymentForm":se=ae.createForm(m);break;case"payment":se=J.createPaymentElement(m);break;case"address":if("mode"in m){var ge=m.mode,ve=bWe(m,OWe);if(ge==="shipping")se=J.createShippingAddressElement(ve);else if(ge==="billing")se=J.createBillingAddressElement(ve);else throw new Error("Invalid options.mode. mode must be 'billing' or 'shipping'.")}else throw new Error("You must supply options.mode. mode must be 'billing' or 'shipping'.");break;case"expressCheckout":se=J.createExpressCheckoutElement(m);break;case"currencySelector":se=G.createCurrencySelectorElement();break;case"taxId":se=J.createTaxIdElement(m);break;case"contactDetails":se=J.createContactDetailsElement();break;case"terms":se=J.createTermsElement(m);break;default:throw new Error("<".concat(i,"> is not supported inside a checkout provider. Use an <Elements> provider instead."))}}else q&&(se=q.create(e,m));Z.current=se,Y(se),se&&se.mount(W.current)}},[q,G,m]);var re=TP(m);return U.useEffect(function(){if(Z.current){var se=Ape(m,re,["paymentRequest"]);se&&"update"in Z.current&&Z.current.update(se)}},[m,re]),U.useLayoutEffect(function(){return function(){if(Z.current&&typeof Z.current.destroy=="function")try{Z.current.destroy(),Z.current=null}catch{}}},[]),U.createElement("div",{id:c,className:d,ref:W})},a=function(u){AP("mounts <".concat(i,">"));var c=u.id,d=u.className;return U.createElement("div",{id:c,className:d})},o=n?a:s;return o.propTypes={id:oe.string,className:oe.string,onChange:oe.func,onBlur:oe.func,onFocus:oe.func,onReady:oe.func,onEscape:oe.func,onClick:oe.func,onLoadError:oe.func,onLoaderStart:oe.func,onNetworksChange:oe.func,onConfirm:oe.func,onCancel:oe.func,onShippingAddressChange:oe.func,onShippingRateChange:oe.func,onSavedPaymentMethodRemove:oe.func,onSavedPaymentMethodUpdate:oe.func,onAvailablePaymentMethodsChange:oe.func,options:oe.object},o.displayName=i,o.__elementType=e,o},Vr=typeof window>"u",IWe=U.createContext(null);IWe.displayName="EmbeddedCheckoutProviderContext";var j8t=function(){var e=AP("calls useStripe()"),n=e.stripe;return n};zr("auBankAccount",Vr);zr("card",Vr);zr("cardNumber",Vr);zr("cardExpiry",Vr);zr("cardCvc",Vr);zr("currencySelector",Vr);zr("iban",Vr);var z8t=zr("payment",Vr);zr("expressCheckout",Vr);zr("paymentRequestButton",Vr);zr("linkAuthentication",Vr);zr("contactDetails",Vr);zr("address",Vr);zr("shippingAddress",Vr);zr("paymentMethodMessaging",Vr);zr("taxId",Vr);zr("issuingCardNumberDisplay",Vr);zr("issuingCardCvcDisplay",Vr);zr("issuingCardExpiryDisplay",Vr);zr("issuingCardPinDisplay",Vr);zr("issuingCardCopyButton",Vr);zr("terms",Vr);function Pw(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Pw=function(e){return typeof e}:Pw=function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Pw(t)}var kpe="dahlia",MWe=function(e){return e===3?"v3":e},Ipe="https://js.stripe.com",DWe="".concat(Ipe,"/").concat(kpe,"/stripe.js"),PWe=/^https:\/\/js\.stripe\.com\/v3\/?(\?.*)?$/,LWe=/^https:\/\/js\.stripe\.com\/(v3|[a-z]+)\/stripe\.js(\?.*)?$/;var $We=function(e){return PWe.test(e)||LWe.test(e)},FWe=function(){for(var e=document.querySelectorAll('script[src^="'.concat(Ipe,'"]')),n=0;n<e.length;n++){var r=e[n];if($We(r.src))return r}return null},AK=function(e){var n="",r=document.createElement("script");r.src="".concat(DWe).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},BWe=function(e,n){!e||!e._registerWrapper||e._registerWrapper({name:"stripe-js",version:"9.12.0",startTime:n})},Ey=null,bx=null,vx=null,HWe=function(e){return function(n){e(new Error("Failed to load Stripe.js",{cause:n}))}},UWe=function(e,n){return function(){window.Stripe?e(window.Stripe):n(new Error("Stripe.js not available"))}},jWe=function(e){return Ey!==null?Ey:(Ey=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=FWe();if(!(i&&e)){if(!i)i=AK(e);else if(i&&vx!==null&&bx!==null){var s;i.removeEventListener("load",vx),i.removeEventListener("error",bx),(s=i.parentNode)===null||s===void 0||s.removeChild(i),i=AK(e)}}vx=UWe(n,r),bx=HWe(r),i.addEventListener("load",vx),i.addEventListener("error",bx)}catch(a){r(a);return}}),Ey.catch(function(n){return Ey=null,Promise.reject(n)}))},zWe=function(e,n,r){if(e===null)return null;var i=n[0];
vendor: 5,505 bytes, line 131
131if(typeof i!="string")throw new Error("Expected publishable key to be of type string, got type ".concat(Pw(i)," instead."));var s=i.match(/^pk_test/),a=MWe(e.version),o=kpe;s&&a!==o&&console.warn("Stripe.js@".concat(a," was loaded on the page, but @stripe/stripe-js@").concat("9.12.0"," expected Stripe.js@").concat(o,". This may result in unexpected behavior. For more information, see https://docs.stripe.com/sdks/stripejs-versioning"));var l=e.apply(void 0,n);return BWe(l,r),l},_y,Mpe=!1,Dpe=function(){return _y||(_y=jWe(null).catch(function(e){return _y=null,Promise.reject(e)}),_y)};Promise.resolve().then(function(){return Dpe()}).catch(function(t){Mpe||console.warn(t)});var V8t=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];Mpe=!0;var i=Date.now();return Dpe().then(function(s){return zWe(s,n,i)})},VWe=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],qWe=VWe.reduce((t,e)=>{const n=o$(`Primitive.${e}`),r=C.forwardRef((i,s)=>{const{asChild:a,...o}=i,l=a?n:e;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),j.jsx(l,{...o,ref:s})});return r.displayName=`Primitive.${e}`,{...t,[e]:r}},{}),GWe="Label",Ppe=C.forwardRef((t,e)=>j.jsx(qWe.label,{...t,ref:e,onMouseDown:n=>{n.target.closest("button, input, select, textarea")||(t.onMouseDown?.(n),!n.defaultPrevented&&n.detail>1&&n.preventDefault())}}));Ppe.displayName=GWe;var q8t=Ppe;function RK(t){const e=WWe(t),n=C.forwardRef((r,i)=>{const{children:s,...a}=r,o=C.Children.toArray(s),l=o.find(KWe);if(l){const u=l.props.children,c=o.map(d=>d===l?C.Children.count(u)>1?C.Children.only(null):C.isValidElement(u)?u.props.children:null:d);return j.jsx(e,{...a,ref:i,children:C.isValidElement(u)?C.cloneElement(u,void 0,c):null})}return j.jsx(e,{...a,ref:i,children:s})});return n.displayName=`${t}.Slot`,n}function WWe(t){const e=C.forwardRef((n,r)=>{const{children:i,...s}=n;if(C.isValidElement(i)){const a=QWe(i),o=XWe(s,i.props);return i.type!==C.Fragment&&(o.ref=r?vu(r,a):a),C.cloneElement(i,o)}return C.Children.count(i)>1?C.Children.only(null):null});return e.displayName=`${t}.SlotClone`,e}var YWe=Symbol("radix.slottable");function KWe(t){return C.isValidElement(t)&&typeof t.type=="function"&&"__radixId"in t.type&&t.type.__radixId===YWe}function XWe(t,e){const n={...e};for(const r in e){const i=t[r],s=e[r];/^on[A-Z]/.test(r)?i&&s?n[r]=(...o)=>{const l=s(...o);return i(...o),l}:i&&(n[r]=i):r==="style"?n[r]={...i,...s}:r==="className"&&(n[r]=[i,s].filter(Boolean).join(" "))}return{...t,...n}}function QWe(t){let e=Object.getOwnPropertyDescriptor(t.props,"ref")?.get,n=e&&"isReactWarning"in e&&e.isReactWarning;return n?t.ref:(e=Object.getOwnPropertyDescriptor(t,"ref")?.get,n=e&&"isReactWarning"in e&&e.isReactWarning,n?t.props.ref:t.props.ref||t.ref)}function P$(t){const e=t+"CollectionProvider",[n,r]=Ji(e),[i,s]=n(e,{collectionRef:{current:null},itemMap:new Map}),a=b=>{const{scope:v,children:E}=b,x=U.useRef(null),_=U.useRef(new Map).current;return j.jsx(i,{scope:v,itemMap:_,collectionRef:x,children:E})};a.displayName=e;const o=t+"CollectionSlot",l=RK(o),u=U.forwardRef((b,v)=>{const{scope:E,children:x}=b,_=s(o,E),S=nn(v,_.collectionRef);return j.jsx(l,{ref:S,children:x})});u.displayName=o;const c=t+"CollectionItemSlot",d="data-radix-collection-item",h=RK(c),m=U.forwardRef((b,v)=>{const{scope:E,children:x,..._}=b,S=U.useRef(null),A=nn(v,S),R=s(c,E);return U.useEffect(()=>(R.itemMap.set(S,{ref:S,..._}),()=>{R.itemMap.delete(S)})),j.jsx(h,{[d]:"",ref:A,children:x})});m.displayName=c;function g(b){const v=s(t+"CollectionConsumer",b);return U.useCallback(()=>{const x=v.collectionRef.current;if(!x)return[];const _=Array.from(x.querySelectorAll(`[${d}]`));return Array.from(v.itemMap.values()).sort((R,T)=>_.indexOf(R.ref.current)-_.indexOf(T.ref.current))},[v.collectionRef,v.itemMap])}return[{Provider:a,Slot:u,ItemSlot:m},g,r]}var ZWe=C.createContext(void 0);function Op(t){const e=C.useContext(ZWe);return t||e||"ltr"}var p4="rovingFocusGroup.onEntryFocus",JWe={bubbles:!1,cancelable:!0},L2="RovingFocusGroup",[RP,Lpe,eYe]=P$(L2),[tYe,xu]=Ji(L2,[eYe]),[nYe,rYe]=tYe(L2),$pe=C.forwardRef((t,e)=>j.jsx(RP.Provider,{scope:t.__scopeRovingFocusGroup,children:j.jsx(RP.Slot,{scope:t.__scopeRovingFocusGroup,children:j.jsx(iYe,{...t,ref:e})})}));$pe.displayName=L2;var iYe=C.forwardRef((t,e)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:i=!1,dir:s,currentTabStopId:a,defaultCurrentTabStopId:o,onCurrentTabStopIdChange:l,onEntryFocus:u,preventScrollOnEntryFocus:c=!1,...d}=t,h=C.useRef(null),m=nn(e,h),g=Op(s),[b,v]=fa({prop:a,defaultProp:o??null,onChange:l,caller:L2}),[E,x]=C.useState(!1),_=hu(u),S=Lpe(n),A=C.useRef(!1),[R,T]=C.useState(0);return C.useEffect(()=>{const O=h.current;if(O)return O.addEventListener(p4,_),()=>O.removeEventListener(p4,_)},[_]),j.jsx(nYe,{scope:n,orientation:r,dir:g,loop:i,currentTabStopId:b,onItemFocus:C.useCallback(O=>v(O),[v]),onItemShiftTab:C.useCallback(()=>x(!0),[]),onFocusableItemAdd:C.useCallback(()=>T(O=>O+1),[]),onFocusableItemRemove:C.useCallback(()=>T(O=>O-1),[]),children:j.jsx(wt.div,{tabIndex:E||R===0?-1:0,"data-orientation":r,...d,ref:m,style:{outline:"none",...t.style},onMouseDown:tt(t.onMouseDown,()=>{A.current=!0}),onFocus:tt(t.onFocus,O=>{const I=!A.current;if(O.target===O.currentTarget&&I&&!E){const D=new CustomEvent(p4,JWe);if(O.currentTarget.dispatchEvent(D),!D.defaultPrevented){const P=S().filter(F=>F.focusable),B=P.find(F=>F.active),L=P.find(F=>
vendor: 5,396 bytes, line 131
131F.id===b),q=[B,L,...P].filter(Boolean).map(F=>F.ref.current);Hpe(q,c)}}A.current=!1}),onBlur:tt(t.onBlur,()=>x(!1))})})}),Fpe="RovingFocusGroupItem",Bpe=C.forwardRef((t,e)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:i=!1,tabStopId:s,children:a,...o}=t,l=wo(),u=s||l,c=rYe(Fpe,n),d=c.currentTabStopId===u,h=Lpe(n),{onFocusableItemAdd:m,onFocusableItemRemove:g,currentTabStopId:b}=c;return C.useEffect(()=>{if(r)return m(),()=>g()},[r,m,g]),j.jsx(RP.ItemSlot,{scope:n,id:u,focusable:r,active:i,children:j.jsx(wt.span,{tabIndex:d?0:-1,"data-orientation":c.orientation,...o,ref:e,onMouseDown:tt(t.onMouseDown,v=>{r?c.onItemFocus(u):v.preventDefault()}),onFocus:tt(t.onFocus,()=>c.onItemFocus(u)),onKeyDown:tt(t.onKeyDown,v=>{if(v.key==="Tab"&&v.shiftKey){c.onItemShiftTab();return}if(v.target!==v.currentTarget)return;const E=oYe(v,c.orientation,c.dir);if(E!==void 0){if(v.metaKey||v.ctrlKey||v.altKey||v.shiftKey)return;v.preventDefault();let _=h().filter(S=>S.focusable).map(S=>S.ref.current);if(E==="last")_.reverse();else if(E==="prev"||E==="next"){E==="prev"&&_.reverse();const S=_.indexOf(v.currentTarget);_=c.loop?lYe(_,S+1):_.slice(S+1)}setTimeout(()=>Hpe(_))}}),children:typeof a=="function"?a({isCurrentTabStop:d,hasTabStop:b!=null}):a})})});Bpe.displayName=Fpe;var sYe={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function aYe(t,e){return e!=="rtl"?t:t==="ArrowLeft"?"ArrowRight":t==="ArrowRight"?"ArrowLeft":t}function oYe(t,e,n){const r=aYe(t.key,n);if(!(e==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(e==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return sYe[r]}function Hpe(t,e=!1){const n=document.activeElement;for(const r of t)if(r===n||(r.focus({preventScroll:e}),document.activeElement!==n))return}function lYe(t,e){return t.map((n,r)=>t[(e+r)%t.length])}var $2=$pe,j0=Bpe;function GT(t){const[e,n]=C.useState(void 0);return gs(()=>{if(t){n({width:t.offsetWidth,height:t.offsetHeight});const r=new ResizeObserver(i=>{if(!Array.isArray(i)||!i.length)return;const s=i[0];let a,o;if("borderBoxSize"in s){const l=s.borderBoxSize,u=Array.isArray(l)?l[0]:l;a=u.inlineSize,o=u.blockSize}else a=t.offsetWidth,o=t.offsetHeight;n({width:a,height:o})});return r.observe(t,{box:"border-box"}),()=>r.unobserve(t)}else n(void 0)},[t]),e}function WT(t){const e=C.useRef({value:t,previous:t});return C.useMemo(()=>(e.current.value!==t&&(e.current.previous=e.current.value,e.current.value=t),e.current.previous),[t])}var L$="Radio",[uYe,Upe]=Ji(L$),[cYe,dYe]=uYe(L$),jpe=C.forwardRef((t,e)=>{const{__scopeRadio:n,name:r,checked:i=!1,required:s,disabled:a,value:o="on",onCheck:l,form:u,...c}=t,[d,h]=C.useState(null),m=nn(e,v=>h(v)),g=C.useRef(!1),b=d?u||!!d.closest("form"):!0;return j.jsxs(cYe,{scope:n,checked:i,disabled:a,children:[j.jsx(wt.button,{type:"button",role:"radio","aria-checked":i,"data-state":Gpe(i),"data-disabled":a?"":void 0,disabled:a,value:o,...c,ref:m,onClick:tt(t.onClick,v=>{i||l?.(),b&&(g.current=v.isPropagationStopped(),g.current||v.stopPropagation())})}),b&&j.jsx(qpe,{control:d,bubbles:!g.current,name:r,value:o,checked:i,required:s,disabled:a,form:u,style:{transform:"translateX(-100%)"}})]})});jpe.displayName=L$;var zpe="RadioIndicator",Vpe=C.forwardRef((t,e)=>{const{__scopeRadio:n,forceMount:r,...i}=t,s=dYe(zpe,n);return j.jsx($s,{present:r||s.checked,children:j.jsx(wt.span,{"data-state":Gpe(s.checked),"data-disabled":s.disabled?"":void 0,...i,ref:e})})});Vpe.displayName=zpe;var fYe="RadioBubbleInput",qpe=C.forwardRef(({__scopeRadio:t,control:e,checked:n,bubbles:r=!0,...i},s)=>{const a=C.useRef(null),o=nn(a,s),l=WT(n),u=GT(e);return C.useEffect(()=>{const c=a.current;if(!c)return;const d=window.HTMLInputElement.prototype,m=Object.getOwnPropertyDescriptor(d,"checked").set;if(l!==n&&m){const g=new Event("click",{bubbles:r});m.call(c,n),c.dispatchEvent(g)}},[l,n,r]),j.jsx(wt.input,{type:"radio","aria-hidden":!0,defaultChecked:n,...i,tabIndex:-1,ref:o,style:{...i.style,...u,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});qpe.displayName=fYe;function Gpe(t){return t?"checked":"unchecked"}var hYe=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],YT="RadioGroup",[pYe]=Ji(YT,[xu,Upe]),Wpe=xu(),Ype=Upe(),[mYe,gYe]=pYe(YT),Kpe=C.forwardRef((t,e)=>{const{__scopeRadioGroup:n,name:r,defaultValue:i,value:s,required:a=!1,disabled:o=!1,orientation:l,dir:u,loop:c=!0,onValueChange:d,...h}=t,m=Wpe(n),g=Op(u),[b,v]=fa({prop:s,defaultProp:i??null,onChange:d,caller:YT});return j.jsx(mYe,{scope:n,name:r,required:a,disabled:o,value:b,onValueChange:v,children:j.jsx($2,{asChild:!0,...m,orientation:l,dir:g,loop:c,children:j.jsx(wt.div,{role:"radiogroup","aria-required":a,"aria-orientation":l,"data-disabled":o?"":void 0,dir:g,...h,ref:e})})})});Kpe.displayName=YT;var Xpe="RadioGroupItem",Qpe=C.forwardRef((t,e)=>{const{__scopeRadioGroup:n,disabled:r,...i}=t,s=gYe(Xpe,n),a=s.disabled||r,o=Wpe(n),l=Ype(n),u=C.useRef(null),c=nn(e,u),d=s.value===i.value,h=C.useRef(!1);return C.useEffect(()=>{const m=b=>{hYe.includes(b.key)&&(h.current=!0)},g=()=>h.current=!1;return document.addEventListener("keydown",m),document.addEventListener("keyup",g),()=>{document.removeEventListener("keydown",m),document.removeEventListener("keyup",g)}},[]),j.jsx(j0,{asChild:!0,...o,focusable:!a,active:d,children:j.jsx(jpe,{disabled:a,required:s.required,
vendor: 8,391 bytes, line 131
131checked:d,...l,...i,name:s.name,ref:c,onCheck:()=>s.onValueChange(i.value),onKeyDown:tt(m=>{m.key==="Enter"&&m.preventDefault()}),onFocus:tt(i.onFocus,()=>{h.current&&u.current?.click()})})})});Qpe.displayName=Xpe;var yYe="RadioGroupIndicator",Zpe=C.forwardRef((t,e)=>{const{__scopeRadioGroup:n,...r}=t,i=Ype(n);return j.jsx(Vpe,{...i,...r,ref:e})});Zpe.displayName=yYe;var G8t=Kpe,W8t=Qpe,Y8t=Zpe;const bYe=["top","right","bottom","left"],sf=Math.min,Fa=Math.max,LS=Math.round,Ex=Math.floor,su=t=>({x:t,y:t}),vYe={left:"right",right:"left",bottom:"top",top:"bottom"},EYe={start:"end",end:"start"};function NP(t,e,n){return Fa(t,sf(e,n))}function Mc(t,e){return typeof t=="function"?t(e):t}function Dc(t){return t.split("-")[0]}function z0(t){return t.split("-")[1]}function $$(t){return t==="x"?"y":"x"}function F$(t){return t==="y"?"height":"width"}const _Ye=new Set(["top","bottom"]);function eu(t){return _Ye.has(Dc(t))?"y":"x"}function B$(t){return $$(eu(t))}function xYe(t,e,n){n===void 0&&(n=!1);const r=z0(t),i=B$(t),s=F$(i);let a=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return e.reference[s]>e.floating[s]&&(a=$S(a)),[a,$S(a)]}function wYe(t){const e=$S(t);return[OP(t),e,OP(e)]}function OP(t){return t.replace(/start|end/g,e=>EYe[e])}const NK=["left","right"],OK=["right","left"],SYe=["top","bottom"],CYe=["bottom","top"];function TYe(t,e,n){switch(t){case"top":case"bottom":return n?e?OK:NK:e?NK:OK;case"left":case"right":return e?SYe:CYe;default:return[]}}function AYe(t,e,n,r){const i=z0(t);let s=TYe(Dc(t),n==="start",r);return i&&(s=s.map(a=>a+"-"+i),e&&(s=s.concat(s.map(OP)))),s}function $S(t){return t.replace(/left|right|bottom|top/g,e=>vYe[e])}function RYe(t){return{top:0,right:0,bottom:0,left:0,...t}}function Jpe(t){return typeof t!="number"?RYe(t):{top:t,right:t,bottom:t,left:t}}function FS(t){const{x:e,y:n,width:r,height:i}=t;return{width:r,height:i,top:n,left:e,right:e+r,bottom:n+i,x:e,y:n}}function kK(t,e,n){let{reference:r,floating:i}=t;const s=eu(e),a=B$(e),o=F$(a),l=Dc(e),u=s==="y",c=r.x+r.width/2-i.width/2,d=r.y+r.height/2-i.height/2,h=r[o]/2-i[o]/2;let m;switch(l){case"top":m={x:c,y:r.y-i.height};break;case"bottom":m={x:c,y:r.y+r.height};break;case"right":m={x:r.x+r.width,y:d};break;case"left":m={x:r.x-i.width,y:d};break;default:m={x:r.x,y:r.y}}switch(z0(e)){case"start":m[a]-=h*(n&&u?-1:1);break;case"end":m[a]+=h*(n&&u?-1:1);break}return m}async function NYe(t,e){var n;e===void 0&&(e={});const{x:r,y:i,platform:s,rects:a,elements:o,strategy:l}=t,{boundary:u="clippingAncestors",rootBoundary:c="viewport",elementContext:d="floating",altBoundary:h=!1,padding:m=0}=Mc(e,t),g=Jpe(m),v=o[h?d==="floating"?"reference":"floating":d],E=FS(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(v)))==null||n?v:v.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(o.floating)),boundary:u,rootBoundary:c,strategy:l})),x=d==="floating"?{x:r,y:i,width:a.floating.width,height:a.floating.height}:a.reference,_=await(s.getOffsetParent==null?void 0:s.getOffsetParent(o.floating)),S=await(s.isElement==null?void 0:s.isElement(_))?await(s.getScale==null?void 0:s.getScale(_))||{x:1,y:1}:{x:1,y:1},A=FS(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:o,rect:x,offsetParent:_,strategy:l}):x);return{top:(E.top-A.top+g.top)/S.y,bottom:(A.bottom-E.bottom+g.bottom)/S.y,left:(E.left-A.left+g.left)/S.x,right:(A.right-E.right+g.right)/S.x}}const OYe=async(t,e,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:s=[],platform:a}=n,o=s.filter(Boolean),l=await(a.isRTL==null?void 0:a.isRTL(e));let u=await a.getElementRects({reference:t,floating:e,strategy:i}),{x:c,y:d}=kK(u,r,l),h=r,m={},g=0;for(let v=0;v<o.length;v++){var b;const{name:E,fn:x}=o[v],{x:_,y:S,data:A,reset:R}=await x({x:c,y:d,initialPlacement:r,placement:h,strategy:i,middlewareData:m,rects:u,platform:{...a,detectOverflow:(b=a.detectOverflow)!=null?b:NYe},elements:{reference:t,floating:e}});c=_??c,d=S??d,m={...m,[E]:{...m[E],...A}},R&&g<=50&&(g++,typeof R=="object"&&(R.placement&&(h=R.placement),R.rects&&(u=R.rects===!0?await a.getElementRects({reference:t,floating:e,strategy:i}):R.rects),{x:c,y:d}=kK(u,h,l)),v=-1)}return{x:c,y:d,placement:h,strategy:i,middlewareData:m}},kYe=t=>({name:"arrow",options:t,async fn(e){const{x:n,y:r,placement:i,rects:s,platform:a,elements:o,middlewareData:l}=e,{element:u,padding:c=0}=Mc(t,e)||{};if(u==null)return{};const d=Jpe(c),h={x:n,y:r},m=B$(i),g=F$(m),b=await a.getDimensions(u),v=m==="y",E=v?"top":"left",x=v?"bottom":"right",_=v?"clientHeight":"clientWidth",S=s.reference[g]+s.reference[m]-h[m]-s.floating[g],A=h[m]-s.reference[m],R=await(a.getOffsetParent==null?void 0:a.getOffsetParent(u));let T=R?R[_]:0;(!T||!await(a.isElement==null?void 0:a.isElement(R)))&&(T=o.floating[_]||s.floating[g]);const O=S/2-A/2,I=T/2-b[g]/2-1,D=sf(d[E],I),P=sf(d[x],I),B=D,L=T-b[g]-P,$=T/2-b[g]/2+O,q=NP(B,$,L),F=!l.arrow&&z0(i)!=null&&$!==q&&s.reference[g]/2-($<B?D:P)-b[g]/2<0,G=F?$<B?$-B:$-L:0;return{[m]:h[m]+G,data:{[m]:q,centerOffset:$-q-G,...F&&{alignmentOffset:G}},reset:F}}}),IYe=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var n,r;const{placement:i,middlewareData:s,rects:a,initialPlacement:o,platform:l,elements:u}=e,{mainAxis:c=!0,crossAxis:d=!0,fallbackPlacements:h,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:b=!0,...v}=Mc(t,e);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const E=Dc(i),x=eu(o),_=Dc(o)===o,S=await(l.isRTL==null?void 0:l.isRTL(u.floating)),A=h||(_||!b?[$S(o)]:wYe(o)),R=g!=="none";!h&&R&&A.push(...AYe(o,b,g,S));const T=[o,...A],O=await l.detectOverflow(e,v),I=[];let D=((r=s.flip)==null?void 0:r.overflows)||[];if(c&&I.push(O[E]),d){const $=xYe(i,a,S);I.push(O[$[0]],O[$[1]])}if(D=[...D,{placement:i,overflows:I}],!I.every($=>$<=0)){var P,B;const $=(((P=s.flip)==null?void 0:P.index)||0)+1,q=T[$];if(q&&(!(d==="alignment"?x!==eu(q):!1)||D.every(H=>eu(H.placement)===x?H.overflows[0]>0:!0)))return{data:{index:$,overflows:D},reset:{placement:q}};let F=(B=D.filter(G=>G.overflows[0]<=0).sort((G,H)=>G.overflows[1]-H.overflows[1])[0])==null?void 0:B.placement;if(!F)switch(m){case"bestFit":{var L;const G=(L=D.filter(H=>{if(R){const K=eu(H.placement);return K===x||K==="y"}return!0}).map(H=>[H.placement,H.overflows.filter(K=>K>0).reduce((K,V)=>K+V,0)]).sort((H,K)=>H[1]-K[1])[0])==null?void 0:L[0];G&&(F=G);break}case"initialPlacement":F=o;break}if(i!==F)return{reset:{placement:F}}}return{}}}};function IK(t,e){return{top:t.top-e.height,right:t.right-e.width,bottom:t.bottom-e.height,left:t.left-e.width}}function MK(t){return bYe.some(e=>t[e]>=0)}const MYe=function(t){return t===void 0&&(t={}),{name:"hide",options:t,async fn(e){const{rects:n,platform:r}=e,{strategy:i="referenceHidden",...s}=Mc(t,e);switch(i){case"referenceHidden":{const a=await r.detectOverflow(e,{...s,elementContext:"reference"}),o=IK(a,n.reference);return{data:{referenceHiddenOffsets:o,referenceHidden:MK(o)}}}case"escaped":{const a=await r.detectOverflow(e,{...s,altBoundary:!0}),o=IK(a,n.floating);return{data:{escapedOffsets:o,escaped:MK(o)}}}default:return{}}}}},eme=new Set(["left","top"]);async function DYe(t,e){const{placement:n,platform:r,elements:i}=t,s=await(r.isRTL==null?void 0:r.isRTL(i.floating)),a=Dc(n),o=z0(n),l=eu(n)==="y",u=eme.has(a)?-1:1,c=s&&l?-1:1,d=Mc(e,t);let{mainAxis:h,crossAxis:m,alignmentAxis:g}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return o&&typeof g=="number"&&(m=o==="end"?g*-1:g),l?{x:m*c,y:h*u}:{x:h*u,y:m*c}}const PYe=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){var n,r;const{x:i,y:s,placement:a,middlewareData:o}=e,l=await DYe(e,t);return a===((n=o.offset)==null?void 0:n.placement)&&(r=o.arrow)!=null&&r.alignmentOffset?{}:{x:i+l.x,y:s+l.y,data:{...l,placement:a}}}}},LYe=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){const{x:n,y:r,placement:i,platform:s}=e,{mainAxis:a=!0,crossAxis:o=!1,limiter:l={fn:E=>{let{x,y:_}=E;return{x,y:_}}},...u}=Mc(t,e),c={x:n,y:r},d=await s.detectOverflow(e,u),h=eu(Dc(i)),m=$$(h);let g=c[m],b=c[h];if(a){const E=m==="y"?"top":"left",x=m==="y"?"bottom":"right",_=g+d[E],S=g-d[x];g=NP(_,g,S)}
vendor: 1,442 bytes, line 131
131if(o){const E=h==="y"?"top":"left",x=h==="y"?"bottom":"right",_=b+d[E],S=b-d[x];b=NP(_,b,S)}const v=l.fn({...e,[m]:g,[h]:b});return{...v,data:{x:v.x-n,y:v.y-r,enabled:{[m]:a,[h]:o}}}}}},$Ye=function(t){return t===void 0&&(t={}),{options:t,fn(e){const{x:n,y:r,placement:i,rects:s,middlewareData:a}=e,{offset:o=0,mainAxis:l=!0,crossAxis:u=!0}=Mc(t,e),c={x:n,y:r},d=eu(i),h=$$(d);let m=c[h],g=c[d];const b=Mc(o,e),v=typeof b=="number"?{mainAxis:b,crossAxis:0}:{mainAxis:0,crossAxis:0,...b};if(l){const _=h==="y"?"height":"width",S=s.reference[h]-s.floating[_]+v.mainAxis,A=s.reference[h]+s.reference[_]-v.mainAxis;m<S?m=S:m>A&&(m=A)}if(u){var E,x;const _=h==="y"?"width":"height",S=eme.has(Dc(i)),A=s.reference[d]-s.floating[_]+(S&&((E=a.offset)==null?void 0:E[d])||0)+(S?0:v.crossAxis),R=s.reference[d]+s.reference[_]+(S?0:((x=a.offset)==null?void 0:x[d])||0)-(S?v.crossAxis:0);g<A?g=A:g>R&&(g=R)}return{[h]:m,[d]:g}}}},FYe=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(e){var n,r;const{placement:i,rects:s,platform:a,elements:o}=e,{apply:l=()=>{},...u}=Mc(t,e),c=await a.detectOverflow(e,u),d=Dc(i),h=z0(i),m=eu(i)==="y",{width:g,height:b}=s.floating;let v,E;d==="top"||d==="bottom"?(v=d,E=h===(await(a.isRTL==null?void 0:a.isRTL(o.floating))?"start":"end")?"left":"right"):(E=d,v=h==="end"?"top":"bottom");const x=b-c.top-c.bottom,_=g-c.left-c.right,S=sf(b-c[v],x),A=sf(g-c[E],_),R=!e.middlewareData.shift;let T=S,O=A;
vendor: 9,288 bytes, line 131
131if((n=e.middlewareData.shift)!=null&&n.enabled.x&&(O=_),(r=e.middlewareData.shift)!=null&&r.enabled.y&&(T=x),R&&!h){const D=Fa(c.left,0),P=Fa(c.right,0),B=Fa(c.top,0),L=Fa(c.bottom,0);m?O=g-2*(D!==0||P!==0?D+P:Fa(c.left,c.right)):T=b-2*(B!==0||L!==0?B+L:Fa(c.top,c.bottom))}await l({...e,availableWidth:O,availableHeight:T});const I=await a.getDimensions(o.floating);return g!==I.width||b!==I.height?{reset:{rects:!0}}:{}}}};function KT(){return typeof window<"u"}function V0(t){return tme(t)?(t.nodeName||"").toLowerCase():"#document"}function qa(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function wu(t){var e;return(e=(tme(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function tme(t){return KT()?t instanceof Node||t instanceof qa(t).Node:!1}function ul(t){return KT()?t instanceof Element||t instanceof qa(t).Element:!1}function pu(t){return KT()?t instanceof HTMLElement||t instanceof qa(t).HTMLElement:!1}function DK(t){return!KT()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof qa(t).ShadowRoot}const BYe=new Set(["inline","contents"]);function F2(t){const{overflow:e,overflowX:n,overflowY:r,display:i}=cl(t);return/auto|scroll|overlay|hidden|clip/.test(e+r+n)&&!BYe.has(i)}const HYe=new Set(["table","td","th"]);function UYe(t){return HYe.has(V0(t))}const jYe=[":popover-open",":modal"];function XT(t){return jYe.some(e=>{try{return t.matches(e)}catch{return!1}})}const zYe=["transform","translate","scale","rotate","perspective"],VYe=["transform","translate","scale","rotate","perspective","filter"],qYe=["paint","layout","strict","content"];function H$(t){const e=U$(),n=ul(t)?cl(t):t;return zYe.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!e&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!e&&(n.filter?n.filter!=="none":!1)||VYe.some(r=>(n.willChange||"").includes(r))||qYe.some(r=>(n.contain||"").includes(r))}function GYe(t){let e=af(t);for(;pu(e)&&!Xg(e);){if(H$(e))return e;if(XT(e))return null;e=af(e)}return null}function U$(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const WYe=new Set(["html","body","#document"]);function Xg(t){return WYe.has(V0(t))}function cl(t){return qa(t).getComputedStyle(t)}function QT(t){return ul(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function af(t){if(V0(t)==="html")return t;const e=t.assignedSlot||t.parentNode||DK(t)&&t.host||wu(t);return DK(e)?e.host:e}function nme(t){const e=af(t);return Xg(e)?t.ownerDocument?t.ownerDocument.body:t.body:pu(e)&&F2(e)?e:nme(e)}function ev(t,e,n){var r;e===void 0&&(e=[]),n===void 0&&(n=!0);const i=nme(t),s=i===((r=t.ownerDocument)==null?void 0:r.body),a=qa(i);if(s){const o=kP(a);return e.concat(a,a.visualViewport||[],F2(i)?i:[],o&&n?ev(o):[])}return e.concat(i,ev(i,[],n))}function kP(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function rme(t){const e=cl(t);let n=parseFloat(e.width)||0,r=parseFloat(e.height)||0;const i=pu(t),s=i?t.offsetWidth:n,a=i?t.offsetHeight:r,o=LS(n)!==s||LS(r)!==a;return o&&(n=s,r=a),{width:n,height:r,$:o}}function j$(t){return ul(t)?t:t.contextElement}function _g(t){const e=j$(t);if(!pu(e))return su(1);const n=e.getBoundingClientRect(),{width:r,height:i,$:s}=rme(e);let a=(s?LS(n.width):n.width)/r,o=(s?LS(n.height):n.height)/i;return(!a||!Number.isFinite(a))&&(a=1),(!o||!Number.isFinite(o))&&(o=1),{x:a,y:o}}const YYe=su(0);function ime(t){const e=qa(t);return!U$()||!e.visualViewport?YYe:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function KYe(t,e,n){return e===void 0&&(e=!1),!n||e&&n!==qa(t)?!1:e}function Yh(t,e,n,r){e===void 0&&(e=!1),n===void 0&&(n=!1);const i=t.getBoundingClientRect(),s=j$(t);let a=su(1);e&&(r?ul(r)&&(a=_g(r)):a=_g(t));const o=KYe(s,n,r)?ime(s):su(0);let l=(i.left+o.x)/a.x,u=(i.top+o.y)/a.y,c=i.width/a.x,d=i.height/a.y;if(s){const h=qa(s),m=r&&ul(r)?qa(r):r;let g=h,b=kP(g);for(;b&&r&&m!==g;){const v=_g(b),E=b.getBoundingClientRect(),x=cl(b),_=E.left+(b.clientLeft+parseFloat(x.paddingLeft))*v.x,S=E.top+(b.clientTop+parseFloat(x.paddingTop))*v.y;l*=v.x,u*=v.y,c*=v.x,d*=v.y,l+=_,u+=S,g=qa(b),b=kP(g)}}return FS({width:c,height:d,x:l,y:u})}function ZT(t,e){const n=QT(t).scrollLeft;return e?e.left+n:Yh(wu(t)).left+n}function sme(t,e){const n=t.getBoundingClientRect(),r=n.left+e.scrollLeft-ZT(t,n),i=n.top+e.scrollTop;return{x:r,y:i}}function XYe(t){let{elements:e,rect:n,offsetParent:r,strategy:i}=t;const s=i==="fixed",a=wu(r),o=e?XT(e.floating):!1;if(r===a||o&&s)return n;let l={scrollLeft:0,scrollTop:0},u=su(1);const c=su(0),d=pu(r);if((d||!d&&!s)&&((V0(r)!=="body"||F2(a))&&(l=QT(r)),pu(r))){const m=Yh(r);u=_g(r),c.x=m.x+r.clientLeft,c.y=m.y+r.clientTop}const h=a&&!d&&!s?sme(a,l):su(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-l.scrollLeft*u.x+c.x+h.x,y:n.y*u.y-l.scrollTop*u.y+c.y+h.y}}function QYe(t){return Array.from(t.getClientRects())}function ZYe(t){const e=wu(t),n=QT(t),r=t.ownerDocument.body,i=Fa(e.scrollWidth,e.clientWidth,r.scrollWidth,r.clientWidth),s=Fa(e.scrollHeight,e.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+ZT(t);const o=-n.scrollTop;return cl(r).direction==="rtl"&&(a+=Fa(e.clientWidth,r.clientWidth)-i),{width:i,height:s,x:a,y:o}}const PK=25;function JYe(t,e){const n=qa(t),r=wu(t),i=n.visualViewport;let s=r.clientWidth,a=r.clientHeight,o=0,l=0;if(i){s=i.width,a=i.height;const c=U$();(!c||c&&e==="fixed")&&(o=i.offsetLeft,l=i.offsetTop)}const u=ZT(r);if(u<=0){const c=r.ownerDocument,d=c.body,h=getComputedStyle(d),m=c.compatMode==="CSS1Compat"&&parseFloat(h.marginLeft)+parseFloat(h.marginRight)||0,g=Math.abs(r.clientWidth-d.clientWidth-m);g<=PK&&(s-=g)}else u<=PK&&(s+=u);return{width:s,height:a,x:o,y:l}}const eKe=new Set(["absolute","fixed"]);function tKe(t,e){const n=Yh(t,!0,e==="fixed"),r=n.top+t.clientTop,i=n.left+t.clientLeft,s=pu(t)?_g(t):su(1),a=t.clientWidth*s.x,o=t.clientHeight*s.y,l=i*s.x,u=r*s.y;return{width:a,height:o,x:l,y:u}}function LK(t,e,n){let r;if(e==="viewport")r=JYe(t,n);else if(e==="document")r=ZYe(wu(t));else if(ul(e))r=tKe(e,n);else{const i=ime(t);r={x:e.x-i.x,y:e.y-i.y,width:e.width,height:e.height}}return FS(r)}function ame(t,e){const n=af(t);return n===e||!ul(n)||Xg(n)?!1:cl(n).position==="fixed"||ame(n,e)}function nKe(t,e){const n=e.get(t);if(n)return n;let r=ev(t,[],!1).filter(o=>ul(o)&&V0(o)!=="body"),i=null;const s=cl(t).position==="fixed";let a=s?af(t):t;for(;ul(a)&&!Xg(a);){const o=cl(a),l=H$(a);!l&&o.position==="fixed"&&(i=null),(s?!l&&!i:!l&&o.position==="static"&&!!i&&eKe.has(i.position)||F2(a)&&!l&&ame(t,a))?r=r.filter(c=>c!==a):i=o,a=af(a)}return e.set(t,r),r}function rKe(t){let{element:e,boundary:n,rootBoundary:r,strategy:i}=t;const a=[...n==="clippingAncestors"?XT(e)?[]:nKe(e,this._c):[].concat(n),r],o=a[0],l=a.reduce((u,c)=>{const d=LK(e,c,i);return u.top=Fa(d.top,u.top),u.right=sf(d.right,u.right),u.bottom=sf(d.bottom,u.bottom),u.left=Fa(d.left,u.left),u},LK(e,o,i));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function iKe(t){const{width:e,height:n}=rme(t);return{width:e,height:n}}function sKe(t,e,n){const r=pu(e),i=wu(e),s=n==="fixed",a=Yh(t,!0,s,e);let o={scrollLeft:0,scrollTop:0};const l=su(0);function u(){l.x=ZT(i)}if(r||!r&&!s)if((V0(e)!=="body"||F2(i))&&(o=QT(e)),r){const m=Yh(e,!0,s,e);l.x=m.x+e.clientLeft,l.y=m.y+e.clientTop}else i&&u();s&&!r&&i&&u();const c=i&&!r&&!s?sme(i,o):su(0),d=a.left+o.scrollLeft-l.x-c.x,h=a.top+o.scrollTop-l.y-c.y;return{x:d,y:h,width:a.width,height:a.height}}function m4(t){return cl(t).position==="static"}function $K(t,e){if(!pu(t)||cl(t).position==="fixed")return null;if(e)return e(t);let n=t.offsetParent;return wu(t)===n&&(n=n.ownerDocument.body),n}function ome(t,e){const n=qa(t);if(XT(t))return n;if(!pu(t)){let i=af(t);for(;i&&!Xg(i);){if(ul(i)&&!m4(i))return i;i=af(i)}return n}let r=$K(t,e);for(;r&&UYe(r)&&m4(r);)r=$K(r,e);return r&&Xg(r)&&m4(r)&&!H$(r)?n:r||GYe(t)||n}const aKe=async function(t){const e=this.getOffsetParent||ome,n=this.getDimensions,r=await n(t.floating);return{reference:sKe(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function oKe(t){return cl(t).direction==="rtl"}const lKe={convertOffsetParentRelativeRectToViewportRelativeRect:XYe,getDocumentElement:wu,getClippingRect:rKe,getOffsetParent:ome,getElementRects:aKe,getClientRects:QYe,getDimensions:iKe,getScale:_g,isElement:ul,isRTL:oKe};function lme(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}function uKe(t,e){let n=null,r;const i=wu(t);function s(){var o;clearTimeout(r),(o=n)==null||o.disconnect(),n=null}function a(o,l){o===void 0&&(o=!1),l===void 0&&(l=1),s();const u=t.getBoundingClientRect(),{left:c,top:d,width:h,height:m}=u;if(o||e(),!h||!m)return;const g=Ex(d),b=Ex(i.clientWidth-(c+h)),v=Ex(i.clientHeight-(d+m)),E=Ex(c),_={rootMargin:-g+"px "+-b+"px "+-v+"px "+-E+"px",threshold:Fa(0,sf(1,l))||1};let S=!0;function A(R){const T=R[0].intersectionRatio;if(T!==l){if(!S)return a();T?a(!1,T):r=setTimeout(()=>{a(!1,1e-7)},1e3)}T===1&&!lme(u,t.getBoundingClientRect())&&a(),S=!1}try{n=new IntersectionObserver(A,{..._,root:i.ownerDocument})}catch{n=new IntersectionObserver(A,_)}
vendor: 5,099 bytes, line 131
131n.observe(t)}return a(!0),s}function cKe(t,e,n,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:s=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:o=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,u=j$(t),c=i||s?[...u?ev(u):[],...ev(e)]:[];c.forEach(E=>{i&&E.addEventListener("scroll",n,{passive:!0}),s&&E.addEventListener("resize",n)});const d=u&&o?uKe(u,n):null;let h=-1,m=null;a&&(m=new ResizeObserver(E=>{let[x]=E;x&&x.target===u&&m&&(m.unobserve(e),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var _;(_=m)==null||_.observe(e)})),n()}),u&&!l&&m.observe(u),m.observe(e));let g,b=l?Yh(t):null;l&&v();function v(){const E=Yh(t);b&&!lme(b,E)&&n(),b=E,g=requestAnimationFrame(v)}return n(),()=>{var E;c.forEach(x=>{i&&x.removeEventListener("scroll",n),s&&x.removeEventListener("resize",n)}),d?.(),(E=m)==null||E.disconnect(),m=null,l&&cancelAnimationFrame(g)}}const dKe=PYe,fKe=LYe,hKe=IYe,pKe=FYe,mKe=MYe,FK=kYe,gKe=$Ye,yKe=(t,e,n)=>{const r=new Map,i={platform:lKe,...n},s={...i.platform,_c:r};return OYe(t,e,{...i,platform:s})};var bKe=typeof document<"u",vKe=function(){},Lw=bKe?C.useLayoutEffect:vKe;function BS(t,e){if(t===e)return!0;if(typeof t!=typeof e)return!1;if(typeof t=="function"&&t.toString()===e.toString())return!0;let n,r,i;if(t&&e&&typeof t=="object"){if(Array.isArray(t)){if(n=t.length,n!==e.length)return!1;for(r=n;r--!==0;)if(!BS(t[r],e[r]))return!1;return!0}if(i=Object.keys(t),n=i.length,n!==Object.keys(e).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(e,i[r]))return!1;for(r=n;r--!==0;){const s=i[r];if(!(s==="_owner"&&t.$$typeof)&&!BS(t[s],e[s]))return!1}return!0}return t!==t&&e!==e}function ume(t){return typeof window>"u"?1:(t.ownerDocument.defaultView||window).devicePixelRatio||1}function BK(t,e){const n=ume(t);return Math.round(e*n)/n}function g4(t){const e=C.useRef(t);return Lw(()=>{e.current=t}),e}function EKe(t){t===void 0&&(t={});const{placement:e="bottom",strategy:n="absolute",middleware:r=[],platform:i,elements:{reference:s,floating:a}={},transform:o=!0,whileElementsMounted:l,open:u}=t,[c,d]=C.useState({x:0,y:0,strategy:n,placement:e,middlewareData:{},isPositioned:!1}),[h,m]=C.useState(r);BS(h,r)||m(r);const[g,b]=C.useState(null),[v,E]=C.useState(null),x=C.useCallback(H=>{H!==R.current&&(R.current=H,b(H))},[]),_=C.useCallback(H=>{H!==T.current&&(T.current=H,E(H))},[]),S=s||g,A=a||v,R=C.useRef(null),T=C.useRef(null),O=C.useRef(c),I=l!=null,D=g4(l),P=g4(i),B=g4(u),L=C.useCallback(()=>{if(!R.current||!T.current)return;const H={placement:e,strategy:n,middleware:h};P.current&&(H.platform=P.current),yKe(R.current,T.current,H).then(K=>{const V={...K,isPositioned:B.current!==!1};$.current&&!BS(O.current,V)&&(O.current=V,ks.flushSync(()=>{d(V)}))})},[h,e,n,P,B]);Lw(()=>{u===!1&&O.current.isPositioned&&(O.current.isPositioned=!1,d(H=>({...H,isPositioned:!1})))},[u]);const $=C.useRef(!1);Lw(()=>($.current=!0,()=>{$.current=!1}),[]),Lw(()=>{if(S&&(R.current=S),A&&(T.current=A),S&&A){if(D.current)return D.current(S,A,L);L()}},[S,A,L,D,I]);const q=C.useMemo(()=>({reference:R,floating:T,setReference:x,setFloating:_}),[x,_]),F=C.useMemo(()=>({reference:S,floating:A}),[S,A]),G=C.useMemo(()=>{const H={position:n,left:0,top:0};if(!F.floating)return H;const K=BK(F.floating,c.x),V=BK(F.floating,c.y);return o?{...H,transform:"translate("+K+"px, "+V+"px)",...ume(F.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:K,top:V}},[n,o,F.floating,c.x,c.y]);return C.useMemo(()=>({...c,update:L,refs:q,elements:F,floatingStyles:G}),[c,L,q,F,G])}const _Ke=t=>{function e(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:t,fn(n){const{element:r,padding:i}=typeof t=="function"?t(n):t;return r&&e(r)?r.current!=null?FK({element:r.current,padding:i}).fn(n):{}:r?FK({element:r,padding:i}).fn(n):{}}}},xKe=(t,e)=>({...dKe(t),options:[t,e]}),wKe=(t,e)=>({...fKe(t),options:[t,e]}),SKe=(t,e)=>({...gKe(t),options:[t,e]}),CKe=(t,e)=>({...hKe(t),options:[t,e]}),TKe=(t,e)=>({...pKe(t),options:[t,e]}),AKe=(t,e)=>({...mKe(t),options:[t,e]}),RKe=(t,e)=>({..._Ke(t),options:[t,e]});var NKe="Arrow",cme=C.forwardRef((t,e)=>{const{children:n,width:r=10,height:i=5,...s}=t;return j.jsx(wt.svg,{...s,ref:e,width:r,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:t.asChild?n:j.jsx("polygon",{points:"0,0 30,0 15,10"})})});cme.displayName=NKe;var OKe=cme,z$="Popper",[dme,vf]=Ji(z$),[kKe,fme]=dme(z$),hme=t=>{const{__scopePopper:e,children:n}=t,[r,i]=C.useState(null);return j.jsx(kKe,{scope:e,anchor:r,onAnchorChange:i,children:n})};hme.displayName=z$;var pme="PopperAnchor",mme=C.forwardRef((t,e)=>{const{__scopePopper:n,virtualRef:r,...i}=t,s=fme(pme,n),a=C.useRef(null),o=nn(e,a),l=C.useRef(null);return C.useEffect(()=>{const u=l.current;l.current=r?.current||a.current,u!==l.current&&s.onAnchorChange(l.current)}),r?null:j.jsx(wt.div,{...i,ref:o})});mme.displayName=pme;var V$="PopperContent",[IKe,MKe]=dme(V$),gme=C.forwardRef((t,e)=>{const{__scopePopper:n,side:r="bottom",sideOffset:i=0,align:s="center",alignOffset:a=0,arrowPadding:o=0,avoidCollisions:l
vendor: 22,239 bytes, line 131
131=!0,collisionBoundary:u=[],collisionPadding:c=0,sticky:d="partial",hideWhenDetached:h=!1,updatePositionStrategy:m="optimized",onPlaced:g,...b}=t,v=fme(V$,n),[E,x]=C.useState(null),_=nn(e,J=>x(J)),[S,A]=C.useState(null),R=GT(S),T=R?.width??0,O=R?.height??0,I=r+(s!=="center"?"-"+s:""),D=typeof c=="number"?c:{top:0,right:0,bottom:0,left:0,...c},P=Array.isArray(u)?u:[u],B=P.length>0,L={padding:D,boundary:P.filter(PKe),altBoundary:B},{refs:$,floatingStyles:q,placement:F,isPositioned:G,middlewareData:H}=EKe({strategy:"fixed",placement:I,whileElementsMounted:(...J)=>cKe(...J,{animationFrame:m==="always"}),elements:{reference:v.anchor},middleware:[xKe({mainAxis:i+O,alignmentAxis:a}),l&&wKe({mainAxis:!0,crossAxis:!1,limiter:d==="partial"?SKe():void 0,...L}),l&&CKe({...L}),TKe({...L,apply:({elements:J,rects:ae,availableWidth:ge,availableHeight:ve})=>{const{width:Re,height:xe}=ae.reference,Ne=J.floating.style;Ne.setProperty("--radix-popper-available-width",`${ge}px`),Ne.setProperty("--radix-popper-available-height",`${ve}px`),Ne.setProperty("--radix-popper-anchor-width",`${Re}px`),Ne.setProperty("--radix-popper-anchor-height",`${xe}px`)}}),S&&RKe({element:S,padding:o}),LKe({arrowWidth:T,arrowHeight:O}),h&&AKe({strategy:"referenceHidden",...L})]}),[K,V]=vme(F),Y=hu(g);gs(()=>{G&&Y?.()},[G,Y]);const Z=H.arrow?.x,W=H.arrow?.y,Q=H.arrow?.centerOffset!==0,[re,se]=C.useState();return gs(()=>{E&&se(window.getComputedStyle(E).zIndex)},[E]),j.jsx("div",{ref:$.setFloating,"data-radix-popper-content-wrapper":"",style:{...q,transform:G?q.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:re,"--radix-popper-transform-origin":[H.transformOrigin?.x,H.transformOrigin?.y].join(" "),...H.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:t.dir,children:j.jsx(IKe,{scope:n,placedSide:K,onArrowChange:A,arrowX:Z,arrowY:W,shouldHideArrow:Q,children:j.jsx(wt.div,{"data-side":K,"data-align":V,...b,ref:_,style:{...b.style,animation:G?void 0:"none"}})})})});gme.displayName=V$;var yme="PopperArrow",DKe={top:"bottom",right:"left",bottom:"top",left:"right"},bme=C.forwardRef(function(e,n){const{__scopePopper:r,...i}=e,s=MKe(yme,r),a=DKe[s.placedSide];return j.jsx("span",{ref:s.onArrowChange,style:{position:"absolute",left:s.arrowX,top:s.arrowY,[a]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[s.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[s.placedSide],visibility:s.shouldHideArrow?"hidden":void 0},children:j.jsx(OKe,{...i,ref:n,style:{...i.style,display:"block"}})})});bme.displayName=yme;function PKe(t){return t!==null}var LKe=t=>({name:"transformOrigin",options:t,fn(e){const{placement:n,rects:r,middlewareData:i}=e,a=i.arrow?.centerOffset!==0,o=a?0:t.arrowWidth,l=a?0:t.arrowHeight,[u,c]=vme(n),d={start:"0%",center:"50%",end:"100%"}[c],h=(i.arrow?.x??0)+o/2,m=(i.arrow?.y??0)+l/2;let g="",b="";return u==="bottom"?(g=a?d:`${h}px`,b=`${-l}px`):u==="top"?(g=a?d:`${h}px`,b=`${r.floating.height+l}px`):u==="right"?(g=`${-l}px`,b=a?d:`${m}px`):u==="left"&&(g=`${r.floating.width+l}px`,b=a?d:`${m}px`),{data:{x:g,y:b}}}});function vme(t){const[e,n="center"]=t.split("-");return[e,n]}var JT=hme,B2=mme,e3=gme,t3=bme;function $Ke(t){const e=FKe(t),n=C.forwardRef((r,i)=>{const{children:s,...a}=r,o=C.Children.toArray(s),l=o.find(HKe);if(l){const u=l.props.children,c=o.map(d=>d===l?C.Children.count(u)>1?C.Children.only(null):C.isValidElement(u)?u.props.children:null:d);return j.jsx(e,{...a,ref:i,children:C.isValidElement(u)?C.cloneElement(u,void 0,c):null})}return j.jsx(e,{...a,ref:i,children:s})});return n.displayName=`${t}.Slot`,n}function FKe(t){const e=C.forwardRef((n,r)=>{const{children:i,...s}=n;if(C.isValidElement(i)){const a=jKe(i),o=UKe(s,i.props);return i.type!==C.Fragment&&(o.ref=r?vu(r,a):a),C.cloneElement(i,o)}return C.Children.count(i)>1?C.Children.only(null):null});return e.displayName=`${t}.SlotClone`,e}var BKe=Symbol("radix.slottable");function HKe(t){return C.isValidElement(t)&&typeof t.type=="function"&&"__radixId"in t.type&&t.type.__radixId===BKe}function UKe(t,e){const n={...e};for(const r in e){const i=t[r],s=e[r];/^on[A-Z]/.test(r)?i&&s?n[r]=(...o)=>{const l=s(...o);return i(...o),l}:i&&(n[r]=i):r==="style"?n[r]={...i,...s}:r==="className"&&(n[r]=[i,s].filter(Boolean).join(" "))}return{...t,...n}}function jKe(t){let e=Object.getOwnPropertyDescriptor(t.props,"ref")?.get,n=e&&"isReactWarning"in e&&e.isReactWarning;return n?t.ref:(e=Object.getOwnPropertyDescriptor(t,"ref")?.get,n=e&&"isReactWarning"in e&&e.isReactWarning,n?t.props.ref:t.props.ref||t.ref)}var IP=["Enter"," "],zKe=["ArrowDown","PageUp","Home"],Eme=["ArrowUp","PageDown","End"],VKe=[...zKe,...Eme],qKe={ltr:[...IP,"ArrowRight"],rtl:[...IP,"ArrowLeft"]},GKe={ltr:["ArrowLeft"],rtl:["ArrowRight"]},H2="Menu",[tv,WKe,YKe]=P$(H2),[kp,_me]=Ji(H2,[YKe,vf,xu]),n3=vf(),xme=xu(),[KKe,Ip]=kp(H2),[XKe,U2]=kp(H2),wme=t=>{const{__scopeMenu:e,open:n=!1,children:r,dir:i,onOpenChange:s,modal:a=!0}=t,o=n3(e),[l,u]=C.useState(null),c=C.useRef(!1),d=hu(s),h=Op(i);return C.useEffect(()=>{const m=()=>{c.current=!0,document.addEventListener("pointerdown",g,{capture:!0,once:!0}),document.addEventListener("pointermove",g,{capture:!0,once:!0})},g=()=>c.current=!1;return document.addEventListener("keydown",m,{capture:!0}),()=>{document.removeEventListener("keydown",m,{capture:!0}),document.removeEventListener("pointerdown",g,{capture:!0}),document.removeEventListener("pointermove",g,{capture:!0})}},[]),j.jsx(JT,{...o,children:j.jsx(KKe,{scope:e,open:n,onOpenChange:d,content:l,onContentChange:u,children:j.jsx(XKe,{scope:e,onClose:C.useCallback(()=>d(!1),[d]),isUsingKeyboardRef:c,dir:h,modal:a,children:r})})})};wme.displayName=H2;var QKe="MenuAnchor",q$=C.forwardRef((t,e)=>{const{__scopeMenu:n,...r}=t,i=n3(n);return j.jsx(B2,{...i,...r,ref:e})});q$.displayName=QKe;var G$="MenuPortal",[ZKe,Sme]=kp(G$,{forceMount:void 0}),Cme=t=>{const{__scopeMenu:e,forceMount:n,children:r,container:i}=t,s=Ip(G$,e);return j.jsx(ZKe,{scope:e,forceMount:n,children:j.jsx($s,{present:n||s.open,children:j.jsx(M0,{asChild:!0,container:i,children:r})})})};Cme.displayName=G$;var So="MenuContent",[JKe,W$]=kp(So),Tme=C.forwardRef((t,e)=>{const n=Sme(So,t.__scopeMenu),{forceMount:r=n.forceMount,...i}=t,s=Ip(So,t.__scopeMenu),a=U2(So,t.__scopeMenu);return j.jsx(tv.Provider,{scope:t.__scopeMenu,children:j.jsx($s,{present:r||s.open,children:j.jsx(tv.Slot,{scope:t.__scopeMenu,children:a.modal?j.jsx(eXe,{...i,ref:e}):j.jsx(tXe,{...i,ref:e})})})})}),eXe=C.forwardRef((t,e)=>{const n=Ip(So,t.__scopeMenu),r=C.useRef(null),i=nn(e,r);return C.useEffect(()=>{const s=r.current;if(s)return RT(s)},[]),j.jsx(Y$,{...t,ref:i,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:tt(t.onFocusOutside,s=>s.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),tXe=C.forwardRef((t,e)=>{const n=Ip(So,t.__scopeMenu);return j.jsx(Y$,{...t,ref:e,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),nXe=$Ke("MenuContent.ScrollLock"),Y$=C.forwardRef((t,e)=>{const{__scopeMenu:n,loop:r=!1,trapFocus:i,onOpenAutoFocus:s,onCloseAutoFocus:a,disableOutsidePointerEvents:o,onEntryFocus:l,onEscapeKeyDown:u,onPointerDownOutside:c,onFocusOutside:d,onInteractOutside:h,onDismiss:m,disableOutsideScroll:g,...b}=t,v=Ip(So,n),E=U2(So,n),x=n3(n),_=xme(n),S=WKe(n),[A,R]=C.useState(null),T=C.useRef(null),O=nn(e,T,v.onContentChange),I=C.useRef(0),D=C.useRef(""),P=C.useRef(0),B=C.useRef(null),L=C.useRef("right"),$=C.useRef(0),q=g?_2:C.Fragment,F=g?{as:nXe,allowPinchZoom:!0}:void 0,G=K=>{const V=D.current+K,Y=S().filter(J=>!J.disabled),Z=document.activeElement,W=Y.find(J=>J.ref.current===Z)?.textValue,Q=Y.map(J=>J.textValue),re=pXe(Q,V,W),se=Y.find(J=>J.textValue===re)?.ref.current;(function J(ae){D.current=ae,window.clearTimeout(I.current),ae!==""&&(I.current=window.setTimeout(()=>J(""),1e3))})(V),se&&setTimeout(()=>se.focus())};C.useEffect(()=>()=>window.clearTimeout(I.current),[]),TT();const H=C.useCallback(K=>L.current===B.current?.side&&gXe(K,B.current?.area),[]);return j.jsx(JKe,{scope:n,searchRef:D,onItemEnter:C.useCallback(K=>{H(K)&&K.preventDefault()},[H]),onItemLeave:C.useCallback(K=>{H(K)||(T.current?.focus(),R(null))},[H]),onTriggerLeave:C.useCallback(K=>{H(K)&&K.preventDefault()},[H]),pointerGraceTimerRef:P,onPointerGraceIntentChange:C.useCallback(K=>{B.current=K},[]),children:j.jsx(q,{...F,children:j.jsx(E2,{asChild:!0,trapped:i,onMountAutoFocus:tt(s,K=>{K.preventDefault(),T.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:a,children:j.jsx(I0,{asChild:!0,disableOutsidePointerEvents:o,onEscapeKeyDown:u,onPointerDownOutside:c,onFocusOutside:d,onInteractOutside:h,onDismiss:m,children:j.jsx($2,{asChild:!0,..._,dir:E.dir,orientation:"vertical",loop:r,currentTabStopId:A,onCurrentTabStopIdChange:R,onEntryFocus:tt(l,K=>{E.isUsingKeyboardRef.current||K.preventDefault()}),preventScrollOnEntryFocus:!0,children:j.jsx(e3,{role:"menu","aria-orientation":"vertical","data-state":jme(v.open),"data-radix-menu-content":"",dir:E.dir,...x,...b,ref:O,style:{outline:"none",...b.style},onKeyDown:tt(b.onKeyDown,K=>{const Y=K.target.closest("[data-radix-menu-content]")===K.currentTarget,Z=K.ctrlKey||K.altKey||K.metaKey,W=K.key.length===1;Y&&(K.key==="Tab"&&K.preventDefault(),!Z&&W&&G(K.key));const Q=T.current;if(K.target!==Q||!VKe.includes(K.key))return;K.preventDefault();const se=S().filter(J=>!J.disabled).map(J=>J.ref.current);Eme.includes(K.key)&&se.reverse(),fXe(se)}),onBlur:tt(t.onBlur,K=>{K.currentTarget.contains(K.target)||(window.clearTimeout(I.current),D.current="")}),onPointerMove:tt(t.onPointerMove,nv(K=>{const V=K.target,Y=$.current!==K.clientX;if(K.currentTarget.contains(V)&&Y){const Z=K.clientX>$.current?"right":"left";L.current=Z,$.current=K.clientX}}))})})})})})})});Tme.displayName=So;var rXe="MenuGroup",K$=C.forwardRef((t,e)=>{const{__scopeMenu:n,...r}=t;return j.jsx(wt.div,{role:"group",...r,ref:e})});K$.displayName=rXe;var iXe="MenuLabel",Ame=C.forwardRef((t,e)=>{const{__scopeMenu:n,...r}=t;return j.jsx(wt.div,{...r,ref:e})});Ame.displayName=iXe;var HS="MenuItem",HK="menu.itemSelect",r3=C.forwardRef((t,e)=>{const{disabled:n=!1,onSelect:r,...i}=t,s=C.useRef(null),a=U2(HS,t.__scopeMenu),o=W$(HS,t.__scopeMenu),l=nn(e,s),u=C.useRef(!1),c=()=>{const d=s.current;if(!n&&d){const h=new CustomEvent(HK,{bubbles:!0,cancelable:!0});d.addEventListener(HK,m=>r?.(m),{once:!0}),dde(d,h),h.defaultPrevented?u.current=!1:a.onClose()}};return j.jsx(Rme,{...i,ref:l,disabled:n,onClick:tt(t.onClick,c),onPointerDown:d=>{t.onPointerDown?.(d),u.current=!0},onPointerUp:tt(t.onPointerUp,d=>{u.current||d.currentTarget?.click()}),onKeyDown:tt(t.onKeyDown,d=>{const h=o.searchRef.current!=="";n||h&&d.key===" "||IP.includes(d.key)&&(d.currentTarget.click(),d.preventDefault())})})});r3.displayName=HS;var Rme=C.forwardRef((t,e)=>{const{__scopeMenu:n,disabled:r=!1,textValue:i,...s}=t,a=W$(HS,n),o=xme(n),l=C.useRef(null),u=nn(e,l),[c,d]=C.useState(!1),[h,m]=C.useState("");return C.useEffect(()=>{const g=l.current;g&&m((g.textContent??"").trim())},[s.children]),j.jsx(tv.ItemSlot,{scope:n,disabled:r,textValue:i??h,children:j.jsx(j0,{asChild:!0,...o,focusable:!r,children:j.jsx(wt.div,{role:"menuitem","data-highlighted":c?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0,...s,ref:u,onPointerMove:tt(t.onPointerMove,nv(g=>{r?a.onItemLeave(g):(a.onItemEnter(g),g.defaultPrevented||g.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:tt(t.onPointerLeave,nv(g=>a.onItemLeave(g))),onFocus:tt(t.onFocus,()=>d(!0)),onBlur:tt(t.onBlur,()=>d(!1))})})})}),sXe="MenuCheckboxItem",Nme=C.forwardRef((t,e)=>{const{checked:n=!1,onCheckedChange:r,...i}=t;return j.jsx(Dme,{scope:t.__scopeMenu,checked:n,children:j.jsx(r3,{role:"menuitemcheckbox","aria-checked":US(n)?"mixed":n,...i,ref:e,"data-state":Q$(n),onSelect:tt(i.onSelect,()=>r?.(US(n)?!0:!n),{checkForDefaultPrevented:!1})})})});Nme.displayName=sXe;var Ome="MenuRadioGroup",[aXe,oXe]=kp(Ome,{value:void 0,onValueChange:()=>{}}),kme=C.forwardRef((t,e)=>{const{value:n,onValueChange:r,...i}=t,s=hu(r);return j.jsx(aXe,{scope:t.__scopeMenu,value:n,onValueChange:s,children:j.jsx(K$,{...i,ref:e})})});kme.displayName=Ome;var Ime="MenuRadioItem",Mme=C.forwardRef((t,e)=>{const{value:n,...r}=t,i=oXe(Ime,t.__scopeMenu),s=n===i.value;return j.jsx(Dme,{scope:t.__scopeMenu,checked:s,children:j.jsx(r3,{role:"menuitemradio","aria-checked":s,...r,ref:e,"data-state":Q$(s),onSelect:tt(r.onSelect,()=>i.onValueChange?.(n),{checkForDefaultPrevented:!1})})})});Mme.displayName=Ime;var X$="MenuItemIndicator",[Dme,lXe]=kp(X$,{checked:!1}),Pme=C.forwardRef((t,e)=>{const{__scopeMenu:n,forceMount:r,...i}=t,s=lXe(X$,n);return j.jsx($s,{present:r||US(s.checked)||s.checked===!0,children:j.jsx(wt.span,{...i,ref:e,"data-state":Q$(s.checked)})})});Pme.displayName=X$;var uXe="MenuSeparator",Lme=C.forwardRef((t,e)=>{const{__scopeMenu:n,...r}=t;return j.jsx(wt.div,{role:"separator","aria-orientation":"horizontal",...r,ref:e})});Lme.displayName=uXe;var cXe="MenuArrow",$me=C.forwardRef((t,e)=>{const{__scopeMenu:n,...r}=t,i=n3(n);return j.jsx(t3,{...i,...r,ref:e})});$me.displayName=cXe;var dXe="MenuSub",[K8t,Fme]=kp(dXe),Hy="MenuSubTrigger",Bme=C.forwardRef((t,e)=>{const n=Ip(Hy,t.__scopeMenu),r=U2(Hy,t.__scopeMenu),i=Fme(Hy,t.__scopeMenu),s=W$(Hy,t.__scopeMenu),a=C.useRef(null),{pointerGraceTimerRef:o,onPointerGraceIntentChange:l}=s,u={__scopeMenu:t.__scopeMenu},c=C.useCallback(()=>{a.current&&window.clearTimeout(a.current),a.current=null},[]);return C.useEffect(()=>c,[c]),C.useEffect(()=>{const d=o.current;return()=>{window.clearTimeout(d),l(null)}},[o,l]),j.jsx(q$,{asChild:!0,...u,children:j.jsx(Rme,{id:i.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":i.contentId,"data-state":jme(n.open),...t,ref:vu(e,i.onTriggerChange),onClick:d=>{t.onClick?.(d),!(t.disabled||d.defaultPrevented)&&(d.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:tt(t.onPointerMove,nv(d=>{s.onItemEnter(d),!d.defaultPrevented&&!t.disabled&&!n.open&&!a.current&&(s.onPointerGraceIntentChange(null),a.current=window.setTimeout(()=>{n.onOpenChange(!0),c()},100))})),onPointerLeave:tt(t.onPointerLeave,nv(d=>{c();const h=n.content?.getBoundingClientRect();if(h){const m=n.content?.dataset.side,g=m==="right",b=g?-5:5,v=h[g?"left":"right"],E=h[g?"right":"left"];s.onPointerGraceIntentChange({area:[{x:d.clientX+b,y:d.clientY},{x:v,y:h.top},{x:E,y:h.top},{x:E,y:h.bottom},{x:v,y:h.bottom}],side:m}),window.clearTimeout(o.current),o.current=window.setTimeout(()=>s.onPointerGraceIntentChange(null),300)}else{if(s.onTriggerLeave(d),d.defaultPrevented)return;s.onPointerGraceIntentChange(null)}})),onKeyDown:tt(t.onKeyDown,d=>{const h=s.searchRef.current!=="";t.disabled||h&&d.key===" "||qKe[r.dir].includes(d.key)&&(n.onOpenChange(!0),n.content?.focus(),d.preventDefault())})})})});Bme.displayName=Hy;var Hme="MenuSubContent",Ume=C.forwardRef((t,e)=>{const n=Sme(So,t.__scopeMenu),{forceMount:r=n.forceMount,...i}=t,s=Ip(So,t.__scopeMenu),a=U2(So,t.__scopeMenu),o=Fme(Hme,t.__scopeMenu),l=C.useRef(null),u=nn(e,l);return j.jsx(tv.Provider,{scope:t.__scopeMenu,children:j.jsx($s,{present:r||s.open,children:j.jsx(tv.Slot,{scope:t.__scopeMenu,children:j.jsx(Y$,{id:o.contentId,"aria-labelledby":o.triggerId,...i,ref:u,align:"start",side:a.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:c=>{a.isUsingKeyboardRef.current&&l.current?.focus(),c.preventDefault()},onCloseAutoFocus:c=>c.preventDefault(),onFocusOutside:tt(t.onFocusOutside,c=>{c.target!==o.trigger&&s.onOpenChange(!1)}),onEscapeKeyDown:tt(t.onEscapeKeyDown,c=>{a.onClose(),c.preventDefault()}),onKeyDown:tt(t.onKeyDown,c=>{const d=c.currentTarget.contains(c.target),h=GKe[a.dir].includes(c.key);d&&h&&(s.onOpenChange(!1),o.trigger?.focus(),c.preventDefault())})})})})})});Ume.displayName=Hme;function jme(t){return t?"open":"closed"}function US(t){return t==="indeterminate"}function Q$(t){return US(t)?"indeterminate":t?"checked":"unchecked"}function fXe(t){const e=document.activeElement;for(const n of t)if(n===e||(n.focus(),document.activeElement!==e))return}function hXe(t,e){return t.map((n,r)=>t[(e+r)%t.length])}function pXe(t,e,n){const i=e.length>1&&Array.from(e).every(u=>u===e[0])?e[0]:e,s=n?t.indexOf(n):-1;let a=hXe(t,Math.max(s,0));i.length===1&&(a=a.filter(u=>u!==n));const l=a.find(u=>u.toLowerCase().startsWith(i.toLowerCase()));return l!==n?l:void 0}function mXe(t,e){const{x:n,y:r}=t;let i=!1;for(let s=0,a=e.length-1;s<e.length;a=s++){const o=e[s],l=e[a],u=o.x,c=o.y,d=l.x,h=l.y;c>r!=h>r&&n<(d-u)*(r-c)/(h-c)+u&&(i=!i)}return i}function gXe(t,e){if(!e)return!1;const n={x:t.clientX,y:t.clientY};return mXe(n,e)}function nv(t){return e=>e.pointerType==="mouse"?t(e):void 0}var yXe=wme,bXe=q$,vXe=Cme,EXe=Tme,_Xe=K$,xXe=Ame,wXe=r3,SXe=Nme,CXe=kme,TXe=Mme,AXe=Pme,RXe=Lme,NXe=$me,OXe=Bme,kXe=Ume,i3="DropdownMenu",[IXe]=Ji(i3,[_me]),Fs=_me(),[MXe,zme]=IXe(i3),Vme=t=>{const{__scopeDropdownMenu:e,children:n,dir:r,open:i,defaultOpen:s,onOpenChange:a,modal:o=!0}=t,l=Fs(e),u=C.useRef(null),[c,d]=fa({prop:i,defaultProp:s??!1,onChange:a,caller:i3});return j.jsx(MXe,{scope:e,triggerId:wo(),triggerRef:u,contentId:wo(),open:c,onOpenChange:d,onOpenToggle:C.useCallback(()=>d(h=>!h),[d]),modal:o,children:j.jsx(yXe,{...l,open:c,onOpenChange:d,dir:r,modal:o,children:n})})};Vme.displayName=i3;var qme="DropdownMenuTrigger",Gme=C.forwardRef((t,e)=>{const{__scopeDropdownMenu:n,disabled:r=!1,...i}=t,s=zme(qme,n),a=Fs(n);return j.jsx(bXe,{asChild:!0,...a,children:j.jsx(wt.button,{type:"button",id:s.triggerId,"aria-haspopup":"menu","aria-expanded":s.open,"aria-controls":s.open?s.contentId:void 0,"data-state":s.open?"open":"closed","data-disabled":r?"":void 0,disabled:r,...i,ref:vu(e,s.triggerRef),onPointerDown:tt(t.onPointerDown,o=>{!r&&o.button===0&&o.ctrlKey===!1&&(s.onOpenToggle(),s.open||o.preventDefault())}),onKeyDown:tt(t.onKeyDown,o=>{r||(["Enter"," "].includes(o.key)&&s.onOpenToggle(),o.key==="ArrowDown"&&s.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(o.key)&&o.preventDefault())})})})});Gme.displayName=qme;var DXe="DropdownMenuPortal",Wme=t=>{const{__scopeDropdownMenu:e,...n}=t,r=Fs(e);return j.jsx(vXe,{...r,...n})};Wme.displayName=DXe;var Yme="DropdownMenuContent",Kme=C.forwardRef((t,e)=>{const{__scopeDropdownMenu:n,...r}=t,i=zme(Yme,n),s=Fs(n),a=C.useRef(!1);return j.jsx(EXe,{id:i.contentId,"aria-labelledby":i.triggerId,...s,...r,ref:e,onCloseAutoFocus:tt(t.onCloseAutoFocus,o=>{a.current||i.triggerRef.current?.focus(),a.current=!1,o.preventDefault()}),onInteractOutside:tt(t.onInteractOutside,o=>{const l=o.detail.originalEvent,u=l.button===0&&l.ctrlKey===!0,c=l.button===2||u;(!i.modal||c)&&(a.current=!0)}),style:{...t.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)"}})});Kme.displayName=Yme;var PXe="DropdownMenuGroup",LXe=C.forwardRef((t,e)=>{const{__scopeDropdownMenu:n,...r}=t,i=Fs(n);return j.jsx(_Xe,{...i,...r,ref:e})});LXe.displayName=PXe;var $Xe="DropdownMenuLabel",Xme=C.forwardRef((t,e)=>{const{__scopeDropdownMenu:n,...r}=t,i=Fs(n);return j.jsx(xXe,{...i,...r,ref:e})});Xme.displayName=$Xe;var FXe="DropdownMenuItem",Qme=C.forwardRef((t,e)=>{const{__scopeDropdownMenu:n,...r}=t,i=Fs(n);return j.jsx(wXe,{...i,...r,ref:e})});Qme.displayName=FXe;var BXe="DropdownMenuCheckboxItem",Zme=C.forwardRef((t,e)=>{const{__scopeDropdownMenu:n,...r}=t,i=Fs(n);return j.jsx(SXe,{...i,...r,ref:e})});Zme.displayName=BXe;var HXe="DropdownMenuRadioGroup",UXe=C.forwardRef((t,e)=>{const{__scopeDropdownMenu:n,...r}=t,i=Fs(n);return j.jsx(CXe,{...i,...r,ref:e})});UXe.displayName=HXe;var jXe="DropdownMenuRadioItem",Jme=C.forwardRef((t,e)=>{const{__scopeDropdownMenu:n,...r}=t,i=Fs(n);return j.jsx(TXe,{...i,...r,ref:e})});Jme.displayName=jXe;var zXe="DropdownMenuItemIndicator",ege=C.forwardRef((t,e)=>{const{__scopeDropdownMenu:n,...r}=t,i=Fs(n);return j.jsx(AXe,{...i,...r,ref:e})});ege.displayName=zXe;var VXe="DropdownMenuSeparator",tge=C.forwardRef((t,e)=>{const{__scopeDropdownMenu:n,...r}=t,i=Fs(n);return j.jsx(RXe,{...i,...r,ref:e})});tge.displayName=VXe;var qXe="DropdownMenuArrow",GXe=C.forwardRef((t,e)=>{const{__scopeDropdownMenu:n,...r}=t,i=Fs(n);return j.jsx(NXe,{...i,...r,ref:e})});GXe.displayName=qXe;var WXe="DropdownMenuSubTrigger",nge=C.forwardRef((t,e)=>{const{__scopeDropdownMenu:n,...r}=t,i=Fs(n);return j.jsx(OXe,{...i,...r,ref:e})});nge.displayName=WXe;var YXe="DropdownMenuSubContent",rge=C.forwardRef((t,e)=>{const{__scopeDropdownMenu:n,...r}=t,i=Fs(n);return j.jsx(kXe,{...i,...r,ref:e,style:{...t.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)"}})});rge.displayName=YXe;var X8t=Vme,Q8t=Gme,Z8t=Wme,J8t=Kme,eIt=Xme,tIt=Qme,nIt=Zme,rIt=Jme,iIt=ege,sIt=tge,aIt=nge,oIt=rge,KXe=Symbol("radix.slottable");function XXe(t){const e=({children:n})=>j.jsx(j.Fragment,{children:n});return e.displayName=`${t}.Slottable`,e.__radixId=KXe,e}var ige=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"}),QXe="VisuallyHidden",sge=C.forwardRef((t,e)=>j.jsx(wt.span,{...t,ref:e,style:{...ige,...t.style}}));sge.displayName=QXe;var ZXe=sge,[s3]=Ji("Tooltip",[vf]),a3=vf(),age="TooltipProvider",JXe=700,MP="tooltip.open",[eQe,Z$]=s3(age),oge=t=>
vendor: 5,758 bytes, line 131
131{const{__scopeTooltip:e,delayDuration:n=JXe,skipDelayDuration:r=300,disableHoverableContent:i=!1,children:s}=t,a=C.useRef(!0),o=C.useRef(!1),l=C.useRef(0);return C.useEffect(()=>{const u=l.current;return()=>window.clearTimeout(u)},[]),j.jsx(eQe,{scope:e,isOpenDelayedRef:a,delayDuration:n,onOpen:C.useCallback(()=>{window.clearTimeout(l.current),a.current=!1},[]),onClose:C.useCallback(()=>{window.clearTimeout(l.current),l.current=window.setTimeout(()=>a.current=!0,r)},[r]),isPointerInTransitRef:o,onPointerInTransitChange:C.useCallback(u=>{o.current=u},[]),disableHoverableContent:i,children:s})};oge.displayName=age;var rv="Tooltip",[tQe,j2]=s3(rv),lge=t=>{const{__scopeTooltip:e,children:n,open:r,defaultOpen:i,onOpenChange:s,disableHoverableContent:a,delayDuration:o}=t,l=Z$(rv,t.__scopeTooltip),u=a3(e),[c,d]=C.useState(null),h=wo(),m=C.useRef(0),g=a??l.disableHoverableContent,b=o??l.delayDuration,v=C.useRef(!1),[E,x]=fa({prop:r,defaultProp:i??!1,onChange:T=>{T?(l.onOpen(),document.dispatchEvent(new CustomEvent(MP))):l.onClose(),s?.(T)},caller:rv}),_=C.useMemo(()=>E?v.current?"delayed-open":"instant-open":"closed",[E]),S=C.useCallback(()=>{window.clearTimeout(m.current),m.current=0,v.current=!1,x(!0)},[x]),A=C.useCallback(()=>{window.clearTimeout(m.current),m.current=0,x(!1)},[x]),R=C.useCallback(()=>{window.clearTimeout(m.current),m.current=window.setTimeout(()=>{v.current=!0,x(!0),m.current=0},b)},[b,x]);return C.useEffect(()=>()=>{m.current&&(window.clearTimeout(m.current),m.current=0)},[]),j.jsx(JT,{...u,children:j.jsx(tQe,{scope:e,contentId:h,open:E,stateAttribute:_,trigger:c,onTriggerChange:d,onTriggerEnter:C.useCallback(()=>{l.isOpenDelayedRef.current?R():S()},[l.isOpenDelayedRef,R,S]),onTriggerLeave:C.useCallback(()=>{g?A():(window.clearTimeout(m.current),m.current=0)},[A,g]),onOpen:S,onClose:A,disableHoverableContent:g,children:n})})};lge.displayName=rv;var DP="TooltipTrigger",uge=C.forwardRef((t,e)=>{const{__scopeTooltip:n,...r}=t,i=j2(DP,n),s=Z$(DP,n),a=a3(n),o=C.useRef(null),l=nn(e,o,i.onTriggerChange),u=C.useRef(!1),c=C.useRef(!1),d=C.useCallback(()=>u.current=!1,[]);return C.useEffect(()=>()=>document.removeEventListener("pointerup",d),[d]),j.jsx(B2,{asChild:!0,...a,children:j.jsx(wt.button,{"aria-describedby":i.open?i.contentId:void 0,"data-state":i.stateAttribute,...r,ref:l,onPointerMove:tt(t.onPointerMove,h=>{h.pointerType!=="touch"&&!c.current&&!s.isPointerInTransitRef.current&&(i.onTriggerEnter(),c.current=!0)}),onPointerLeave:tt(t.onPointerLeave,()=>{i.onTriggerLeave(),c.current=!1}),onPointerDown:tt(t.onPointerDown,()=>{i.open&&i.onClose(),u.current=!0,document.addEventListener("pointerup",d,{once:!0})}),onFocus:tt(t.onFocus,()=>{u.current||i.onOpen()}),onBlur:tt(t.onBlur,i.onClose),onClick:tt(t.onClick,i.onClose)})})});uge.displayName=DP;var J$="TooltipPortal",[nQe,rQe]=s3(J$,{forceMount:void 0}),cge=t=>{const{__scopeTooltip:e,forceMount:n,children:r,container:i}=t,s=j2(J$,e);return j.jsx(nQe,{scope:e,forceMount:n,children:j.jsx($s,{present:n||s.open,children:j.jsx(M0,{asChild:!0,container:i,children:r})})})};cge.displayName=J$;var Qg="TooltipContent",dge=C.forwardRef((t,e)=>{const n=rQe(Qg,t.__scopeTooltip),{forceMount:r=n.forceMount,side:i="top",...s}=t,a=j2(Qg,t.__scopeTooltip);return j.jsx($s,{present:r||a.open,children:a.disableHoverableContent?j.jsx(fge,{side:i,...s,ref:e}):j.jsx(iQe,{side:i,...s,ref:e})})}),iQe=C.forwardRef((t,e)=>{const n=j2(Qg,t.__scopeTooltip),r=Z$(Qg,t.__scopeTooltip),i=C.useRef(null),s=nn(e,i),[a,o]=C.useState(null),{trigger:l,onClose:u}=n,c=i.current,{onPointerInTransitChange:d}=r,h=C.useCallback(()=>{o(null),d(!1)},[d]),m=C.useCallback((g,b)=>{const v=g.currentTarget,E={x:g.clientX,y:g.clientY},x=lQe(E,v.getBoundingClientRect()),_=uQe(E,x),S=cQe(b.getBoundingClientRect()),A=fQe([..._,...S]);o(A),d(!0)},[d]);return C.useEffect(()=>()=>h(),[h]),C.useEffect(()=>{if(l&&c){const g=v=>m(v,c),b=v=>m(v,l);return l.addEventListener("pointerleave",g),c.addEventListener("pointerleave",b),()=>{l.removeEventListener("pointerleave",g),c.removeEventListener("pointerleave",b)}}},[l,c,m,h]),C.useEffect(()=>{if(a){const g=b=>{const v=b.target,E={x:b.clientX,y:b.clientY},x=l?.contains(v)||c?.contains(v),_=!dQe(E,a);x?h():_&&(h(),u())};return document.addEventListener("pointermove",g),()=>document.removeEventListener("pointermove",g)}},[l,c,a,u,h]),j.jsx(fge,{...t,ref:s})}),[sQe,aQe]=s3(rv,{isInside:!1}),oQe=XXe("TooltipContent"),fge=C.forwardRef((t,e)=>{const{__scopeTooltip:n,children:r,"aria-label":i,onEscapeKeyDown:s,onPointerDownOutside:a,...o}=t,l=j2(Qg,n),u=a3(n),{onClose:c}=l;return C.useEffect(()=>(document.addEventListener(MP,c),()=>document.removeEventListener(MP,c)),[c]),C.useEffect(()=>{if(l.trigger){const d=h=>{h.target?.contains(l.trigger)&&c()};return window.addEventListener("scroll",d,{capture:!0}),()=>window.removeEventListener("scroll",d,{capture:!0})}},[l.trigger,c]),j.jsx(I0,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:s,onPointerDownOutside:a,onFocusOutside:d=>d.preventDefault(),onDismiss:c,children:j.jsxs(e3,{"data-state":l.stateAttribute,...u,...o,ref:e,style:{...o.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:[j.jsx(oQe,{children:r}),j.jsx(sQe,{scope:n,isInside:!0,children:j.jsx(ZXe,{id:l.contentId,role:"tooltip",children:i||r})})]})})});dge.displayName=Qg;var hge="TooltipArrow",pge=C.forwardRef((t,e)=>{const{__scopeTooltip:n,...r}=t,i=a3(n);
131return aQe(hge,n).isInside?null:j.jsx(t3,{...i,...r,ref:e})});pge.displayName=hge;function lQe(t,e){const n=Math.abs(e.top-t.y),r=Math.abs(e.bottom-t.y),i=Math.abs(e.right-t.x),s=Math.abs(e.left-t.x);switch(Math.min(n,r,i,s)){case s:return"left";case i:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function uQe(t,e,n=5){const r=[];switch(e){case"top":r.push({x:t.x-n,y:t.y+n},{x:t.x+n,y:t.y+n});break;case"bottom":r.push({x:t.x-n,y:t.y-n},{x:t.x+n,y:t.y-n});break;case"left":r.push({x:t.x+n,y:t.y-n},{x:t.x+n,y:t.y+n});break;case"right":r.push({x:t.x-n,y:t.y-n},{x:t.x-n,y:t.y+n});break}return r}function cQe(t){const{top:e,right:n,bottom:r,left:i}=t;return[{x:i,y:e},{x:n,y:e},{x:n,y:r},{x:i,y:r}]}function dQe(t,e){const{x:n,y:r}=t;let i=!1;for(let s=0,a=e.length-1;s<e.length;a=s++){const o=e[s],l=e[a],u=o.x,c=o.y,d=l.x,h=l.y;c>r!=h>r&&n<(d-u)*(r-c)/(h-c)+u&&(i=!i)}return i}function fQe(t){const e=t.slice();return e.sort((n,r)=>n.x<r.x?-1:n.x>r.x?1:n.y<r.y?-1:n.y>r.y?1:0),hQe(e)}function hQe(t){if(t.length<=1)return t.slice();const e=[];for(let r=0;r<t.length;r++){const i=t[r];for(;e.length>=2;){const s=e[e.length-1],a=e[e.length-2];if((s.x-a.x)*(i.y-a.y)>=(s.y-a.y)*(i.x-a.x))e.pop();else break}e.push(i)}e.pop();const n=[];for(let r=t.length-1;r>=0;r--){const i=t[r];for(;n.length>=2;){const s=n[n.length-1],a=n[n.length-2];if((s.x-a.x)*(i.y-a.y)>=(s.y-a.y)*(i.x-a.x))n.pop();else break}n.push(i)}return n.pop(),e.length===1&&n.length===1&&e[0].x===n[0].x&&e[0].y===n[0].y?e:e.concat(n)}var mge=oge,gge=lge,yge=uge,bge=cge,vge=dge,pQe=pge,mQe=function(e){return gQe(e)&&!yQe(e)};function gQe(t){return!!t&&typeof t=="object"}function yQe(t){var e=Object.prototype.toString.call(t);return e==="[object RegExp]"||e==="[object Date]"||EQe(t)}var bQe=typeof Symbol=="function"&&Symbol.for,vQe=bQe?Symbol.for("react.element"):60103;function EQe(t){return t.$$typeof===vQe}function _Qe(t){return Array.isArray(t)?[]:{}}function jS(t,e){return e.clone!==!1&&e.isMergeableObject(t)?iv(_Qe(t),t,e):t}function xQe(t,e,n){return t.concat(e).map(function(r){return jS(r,n)})}function wQe(t,e,n){var r={};return n.isMergeableObject(t)&&Object.keys(t).forEach(function(i){r[i]=jS(t[i],n)}),Object.keys(e).forEach(function(i){!n.isMergeableObject(e[i])||!t[i]?r[i]=jS(e[i],n):r[i]=iv(t[i],e[i],n)}),r}function iv(t,e,n){n=n||{},n.arrayMerge=n.arrayMerge||xQe,n.isMergeableObject=n.isMergeableObject||mQe;var r=Array.isArray(e),i=Array.isArray(t),s=r===i;return s?r?n.arrayMerge(t,e,n):wQe(t,e,n):jS(e,n)}iv.all=function(e,n){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(r,i){return iv(r,i,n)},{})};var PP=iv,Ege=typeof global=="object"&&global&&global.Object===Object&&global,SQe=typeof self=="object"&&self&&self.Object===Object&&self,Su=Ege||SQe||Function("return this")(),of=Su.Symbol,_ge=Object.prototype,CQe=_ge.hasOwnProperty,TQe=_ge.toString,xy=of?of.toStringTag:void 0;function AQe(t){var e=CQe.call(t,xy),n=t[xy];try{t[xy]=void 0;var r=!0}catch{}var i=TQe.call(t);return r&&(e?t[xy]=n:delete t[xy]),i}var RQe=Object.prototype,NQe=RQe.toString;function OQe(t){return NQe.call(t)}var kQe="[object Null]",IQe="[object Undefined]",UK=of?of.toStringTag:void 0;function Mp(t){return t==null?t===void 0?IQe:kQe:UK&&UK in Object(t)?AQe(t):OQe(t)}function xge(t,e){return function(n){return t(e(n))}}var eF=xge(Object.getPrototypeOf,Object);function Dp(t){return t!=null&&typeof t=="object"}var MQe="[object Object]",DQe=Function.prototype,PQe=Object.prototype,wge=DQe.toString,LQe=PQe.hasOwnProperty,$Qe=wge.call(Object);function jK(t){if(!Dp(t)||Mp(t)!=MQe)return!1;var e=eF(t);
vendor: 5,926 bytes, line 131
131if(e===null)return!0;var n=LQe.call(e,"constructor")&&e.constructor;return typeof n=="function"&&n instanceof n&&wge.call(n)==$Qe}function FQe(){this.__data__=[],this.size=0}function Sge(t,e){return t===e||t!==t&&e!==e}function o3(t,e){for(var n=t.length;n--;)if(Sge(t[n][0],e))return n;return-1}var BQe=Array.prototype,HQe=BQe.splice;function UQe(t){var e=this.__data__,n=o3(e,t);if(n<0)return!1;var r=e.length-1;return n==r?e.pop():HQe.call(e,n,1),--this.size,!0}function jQe(t){var e=this.__data__,n=o3(e,t);return n<0?void 0:e[n][1]}function zQe(t){return o3(this.__data__,t)>-1}function VQe(t,e){var n=this.__data__,r=o3(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this}function qc(t){var e=-1,n=t==null?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}qc.prototype.clear=FQe;qc.prototype.delete=UQe;qc.prototype.get=jQe;qc.prototype.has=zQe;qc.prototype.set=VQe;function qQe(){this.__data__=new qc,this.size=0}function GQe(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n}function WQe(t){return this.__data__.get(t)}function YQe(t){return this.__data__.has(t)}function z2(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}var KQe="[object AsyncFunction]",XQe="[object Function]",QQe="[object GeneratorFunction]",ZQe="[object Proxy]";function Cge(t){if(!z2(t))return!1;var e=Mp(t);return e==XQe||e==QQe||e==KQe||e==ZQe}var y4=Su["__core-js_shared__"],zK=(function(){var t=/[^.]+$/.exec(y4&&y4.keys&&y4.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""})();function JQe(t){return!!zK&&zK in t}var eZe=Function.prototype,tZe=eZe.toString;function Pp(t){if(t!=null){try{return tZe.call(t)}catch{}try{return t+""}catch{}}return""}var nZe=/[\\^$.*+?()[\]{}|]/g,rZe=/^\[object .+?Constructor\]$/,iZe=Function.prototype,sZe=Object.prototype,aZe=iZe.toString,oZe=sZe.hasOwnProperty,lZe=RegExp("^"+aZe.call(oZe).replace(nZe,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function uZe(t){if(!z2(t)||JQe(t))return!1;var e=Cge(t)?lZe:rZe;return e.test(Pp(t))}function cZe(t,e){return t?.[e]}function Lp(t,e){var n=cZe(t,e);return uZe(n)?n:void 0}var sv=Lp(Su,"Map"),av=Lp(Object,"create");function dZe(){this.__data__=av?av(null):{},this.size=0}function fZe(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}var hZe="__lodash_hash_undefined__",pZe=Object.prototype,mZe=pZe.hasOwnProperty;function gZe(t){var e=this.__data__;if(av){var n=e[t];return n===hZe?void 0:n}return mZe.call(e,t)?e[t]:void 0}var yZe=Object.prototype,bZe=yZe.hasOwnProperty;function vZe(t){var e=this.__data__;return av?e[t]!==void 0:bZe.call(e,t)}var EZe="__lodash_hash_undefined__";function _Ze(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=av&&e===void 0?EZe:e,this}function Kh(t){var e=-1,n=t==null?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}Kh.prototype.clear=dZe;Kh.prototype.delete=fZe;Kh.prototype.get=gZe;Kh.prototype.has=vZe;Kh.prototype.set=_Ze;function xZe(){this.size=0,this.__data__={hash:new Kh,map:new(sv||qc),string:new Kh}}function wZe(t){var e=typeof t;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null}function l3(t,e){var n=t.__data__;return wZe(e)?n[typeof e=="string"?"string":"hash"]:n.map}function SZe(t){var e=l3(this,t).delete(t);return this.size-=e?1:0,e}function CZe(t){return l3(this,t).get(t)}function TZe(t){return l3(this,t).has(t)}function AZe(t,e){var n=l3(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this}function Ef(t){var e=-1,n=t==null?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}Ef.prototype.clear=xZe;Ef.prototype.delete=SZe;Ef.prototype.get=CZe;Ef.prototype.has=TZe;Ef.prototype.set=AZe;var RZe=200;function NZe(t,e){var n=this.__data__;if(n instanceof qc){var r=n.__data__;if(!sv||r.length<RZe-1)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new Ef(r)}return n.set(t,e),this.size=n.size,this}function q0(t){var e=this.__data__=new qc(t);this.size=e.size}q0.prototype.clear=qQe;q0.prototype.delete=GQe;q0.prototype.get=WQe;q0.prototype.has=YQe;q0.prototype.set=NZe;function OZe(t,e){for(var n=-1,r=t==null?0:t.length;++n<r&&e(t[n],n,t)!==!1;);return t}var VK=(function(){try{var t=Lp(Object,"defineProperty");return t({},"",{}),t}catch{}})();function Tge(t,e,n){e=="__proto__"&&VK?VK(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}var kZe=Object.prototype,IZe=kZe.hasOwnProperty;function Age(t,e,n){var r=t[e];(!(IZe.call(t,e)&&Sge(r,n))||n===void 0&&!(e in t))&&Tge(t,e,n)}function u3(t,e,n,r){var i=!n;n||(n={});for(var s=-1,a=e.length;++s<a;){var o=e[s],l=void 0;l===void 0&&(l=t[o]),i?Tge(n,o,l):Age(n,o,l)}return n}function MZe(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}var DZe="[object Arguments]";function qK(t){return Dp(t)&&Mp(t)==DZe}var Rge=Object.prototype,PZe=Rge.hasOwnProperty,LZe=Rge.propertyIsEnumerable,$Ze=qK((function(){return arguments})())?qK:function(t){return Dp(t)&&PZe.call(t,"callee")&&!LZe.call(t,"callee")},V2=Array.isArray;function FZe(){return!1}var Nge=typeof exports=="object"&&exports&&!exports.nodeType&&exports,GK=Nge&&typeof module=="object"&&module&&!module.nodeType&&module,BZe=GK&&GK.exports===Nge,WK=BZe?Su.Buffer:void 0,HZe=WK?WK.isBuffer:void 0,Oge=HZe||FZe,UZe=9007199254740991,jZe=/^(?:0|[1-9]\d*)$/;function zZe(t,e){var n=typeof t;return e=e??UZe,!!e&&(n=="number"||n!="symbol"&&jZe.test(t))&&t>-1&&t%1==0&&t<e}var VZe=9007199254740991;function kge(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=VZe}var qZe="[object Arguments]",GZe="[object Array]",WZe="[object Boolean]",YZe="[object Date]",KZe="[object Error]",XZe="[object Function]",QZe="[object Map]",ZZe="[object Number]",JZe="[object Object]",eJe="[object RegExp]",tJe="[object Set]",nJe="[object String]",rJe="[object WeakMap]",iJe="[object ArrayBuffer]",sJe="[object DataView]",aJe="[object Float32Array]",oJe="[object Float64Array
131]",lJe="[object Int8Array]",uJe="[object Int16Array]",cJe="[object Int32Array]",dJe="[object Uint8Array]",fJe="[object Uint8ClampedArray]",hJe="[object Uint16Array]",pJe="[object Uint32Array]",hr={};hr[aJe]=hr[oJe]=hr[lJe]=hr[uJe]=hr[cJe]=hr[dJe]=hr[fJe]=hr[hJe]=hr[pJe]=!0;hr[qZe]=hr[GZe]=hr[iJe]=hr[WZe]=hr[sJe]=hr[YZe]=hr[KZe]=hr[XZe]=hr[QZe]=hr[ZZe]=hr[JZe]=hr[eJe]=hr[tJe]=hr[nJe]=hr[rJe]=!1;function mJe(t){return Dp(t)&&kge(t.length)&&!!hr[Mp(t)]}function tF(t){return function(e){return t(e)}}var Ige=typeof exports=="object"&&exports&&!exports.nodeType&&exports,yb=Ige&&typeof module=="object"&&module&&!module.nodeType&&module,gJe=yb&&yb.exports===Ige,b4=gJe&&Ege.process,Zg=(function(){try{var t=yb&&yb.require&&yb.require("util").types;return t||b4&&b4.binding&&b4.binding("util")}catch{}})(),YK=Zg&&Zg.isTypedArray,yJe=YK?tF(YK):mJe,bJe=Object.prototype,vJe=bJe.hasOwnProperty;function Mge(t,e){var n=V2(t),r=!n&&$Ze(t),i=!n&&!r&&Oge(t),s=!n&&!r&&!i&&yJe(t),a=n||r||i||s,o=a?MZe(t.length,String):[],l=o.length;for(var u in t)(e||vJe.call(t,u))&&!(a&&(u=="length"||i&&(u=="offset"||u=="parent")||s&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||zZe(u,l)))&&o.push(u);return o}var EJe=Object.prototype;function nF(t){var e=t&&t.constructor,n=typeof e=="function"&&e.prototype||EJe;return t===n}var _Je=xge(Object.keys,Object),xJe=Object.prototype,wJe=xJe.hasOwnProperty;function SJe(t){if(!nF(t))return _Je(t);var e=[];for(var n in Object(t))wJe.call(t,n)&&n!="constructor"&&e.push(n);return e}function Dge(t){return t!=null&&kge(t.length)&&!Cge(t)}function rF(t){return Dge(t)?Mge(t):SJe(t)}function CJe(t,e){return t&&u3(e,rF(e),t)}function TJe(t){var e=[];if(t!=null)for(var n in Object(t))e.push(n);return e}var AJe=Object.prototype,RJe=AJe.hasOwnProperty;function NJe(t){if(!z2(t))return TJe(t);var e=nF(t),n=[];for(var r in t)r=="constructor"&&(e||!RJe.call(t,r))||n.push(r);return n}function iF(t){return Dge(t)?Mge(t,!0):NJe(t)}function OJe(t,e){return t&&u3(e,iF(e),t)}var Pge=typeof exports=="object"&&exports&&!exports.nodeType&&exports,KK=Pge&&typeof module=="object"&&module&&!module.nodeType&&module,kJe=KK&&KK.exports===Pge,XK=kJe?Su.Buffer:void 0,QK=XK?XK.allocUnsafe:void 0;function IJe(t,e){if(e)return t.slice();var n=t.length,r=QK?QK(n):new t.constructor(n);return t.copy(r),r}function Lge(t,e){var n=-1,r=t.length;for(e||(e=Array(r));++n<r;)e[n]=t[n];return e}function MJe(t,e){for(var n=-1,r=t==null?0:t.length,i=0,s=[];++n<r;){var a=t[n];e(a,n,t)&&(s[i++]=a)}return s}function $ge(){return[]}var DJe=Object.prototype,PJe=DJe.propertyIsEnumerable,ZK=Object.getOwnPropertySymbols,sF=ZK?function(t){return t==null?[]:(t=Object(t),MJe(ZK(t),function(e){return PJe.call(t,e)}))}:$ge;function LJe(t,e){return u3(t,sF(t),e)}function Fge(t,e){for(var n=-1,r=e.length,i=t.length;++n<r;)t[i+n]=e[n];return t}var $Je=Object.getOwnPropertySymbols,Bge=$Je?function(t){for(var e=[];t;)Fge(e,sF(t)),t=eF(t);return e}:$ge;function FJe(t,e){return u3(t,Bge(t),e)}function Hge(t,e,n){var r=e(t);return V2(t)?r:Fge(r,n(t))}function BJe(t){return Hge(t,rF,sF)}function HJe(t){return Hge(t,iF,Bge)}var LP=Lp(Su,"DataView"),$P=Lp(Su,"Promise"),FP=Lp(Su,"Set"),BP=Lp(Su,"WeakMap"),JK="[object Map]",UJe="[object Object]",eX="[object Promise]",tX="[object Set]",nX="[object WeakMap]",rX="[object DataView]",jJe=Pp(LP),zJe=Pp(sv),VJe=Pp($P),qJe=Pp(FP),GJe=Pp(BP),fc=Mp;(LP&&fc(new LP(new ArrayBuffer(1)))!=rX||sv&&fc(new sv)!=JK||$P&&fc($P.resolve())!=eX||FP&&fc(new FP)!=tX||BP&&fc(new BP)!=nX)&&(fc=function(t){var e=Mp(t),n=e==UJe?t.constructor:void 0,r=n?Pp(n):"";if(r)switch(r){case jJe:return rX;case zJe:return JK;case VJe:return eX;case qJe:return tX;case GJe:return nX}return e});var WJe=Object.prototype,YJe=WJe.hasOwnProperty;function KJe(t){var e=t.length,n=new t.constructor(e);return e&&typeof t[0]=="string"&&YJe.call(t,"index")&&(n.index=t.index,n.input=t.input),n}var iX=Su.Uint8Array;function aF(t){var e=new t.constructor(t.byteLength);return new iX(e).set(new iX(t)),e}function XJe(t,e){var n=e?aF(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}var QJe=/\w*$/;function ZJe(t){var e=new t.constructor(t.source,QJe.exec(t));return e.lastIndex=t.lastIndex,e}
vendor: 4,561 bytes, line 131
131var sX=of?of.prototype:void 0,aX=sX?sX.valueOf:void 0;function JJe(t){return aX?Object(aX.call(t)):{}}function eet(t,e){var n=e?aF(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}var tet="[object Boolean]",net="[object Date]",ret="[object Map]",iet="[object Number]",set="[object RegExp]",aet="[object Set]",oet="[object String]",uet="[object Symbol]",cet="[object ArrayBuffer]",det="[object DataView]",fet="[object Float32Array]",het="[object Float64Array]",pet="[object Int8Array]",met="[object Int16Array]",get="[object Int32Array]",yet="[object Uint8Array]",bet="[object Uint8ClampedArray]",vet="[object Uint16Array]",Eet="[object Uint32Array]";function _et(t,e,n){var r=t.constructor;switch(e){case cet:return aF(t);case tet:case net:return new r(+t);case det:return XJe(t,n);case fet:case het:case pet:case met:case get:case yet:case bet:case vet:case Eet:return eet(t,n);case ret:return new r;case iet:case oet:return new r(t);case set:return ZJe(t);case aet:return new r;case uet:return JJe(t)}}var oX=Object.create,xet=(function(){function t(){}return function(e){if(!z2(e))return{};if(oX)return oX(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}})();function wet(t){return typeof t.constructor=="function"&&!nF(t)?xet(eF(t)):{}}var Cet="[object Map]";function Tet(t){return Dp(t)&&fc(t)==Cet}var lX=Zg&&Zg.isMap,Aet=lX?tF(lX):Tet,Ret="[object Set]";function Net(t){return Dp(t)&&fc(t)==Ret}var uX=Zg&&Zg.isSet,Oet=uX?tF(uX):Net,ket=1,Iet=2,Met=4,Uge="[object Arguments]",Det="[object Array]",Pet="[object Boolean]",Let="[object Date]",$et="[object Error]",jge="[object Function]",Fet="[object GeneratorFunction]",Bet="[object Map]",Het="[object Number]",zge="[object Object]",Uet="[object RegExp]",jet="[object Set]",zet="[object String]",Vet="[object Symbol]",qet="[object WeakMap]",Get="[object ArrayBuffer]",Wet="[object DataView]",Yet="[object Float32Array]",Ket="[object Float64Array]",Xet="[object Int8Array]",Qet="[object Int16Array]",Zet="[object Int32Array]",Jet="[object Uint8Array]",ett="[object Uint8ClampedArray]",ttt="[object Uint16Array]",ntt="[object Uint32Array]",ir={};ir[Uge]=ir[Det]=ir[Get]=ir[Wet]=ir[Pet]=ir[Let]=ir[Yet]=ir[Ket]=ir[Xet]=ir[Qet]=ir[Zet]=ir[Bet]=ir[Het]=ir[zge]=ir[Uet]=ir[jet]=ir[zet]=ir[Vet]=ir[Jet]=ir[ett]=ir[ttt]=ir[ntt]=!0;ir[$et]=ir[jge]=ir[qet]=!1;function bb(t,e,n,r,i,s){var a,o=e&ket,l=e&Iet,u=e&Met;if(a!==void 0)return a;if(!z2(t))return t;var c=V2(t);if(c){if(a=KJe(t),!o)return Lge(t,a)}else{var d=fc(t),h=d==jge||d==Fet;if(Oge(t))return IJe(t,o);if(d==zge||d==Uge||h&&!i){if(a=l||h?{}:wet(t),!o)return l?FJe(t,OJe(a,t)):LJe(t,CJe(a,t))}else{if(!ir[d])return i?t:{};a=_et(t,d,o)}}s||(s=new q0);var m=s.get(t);if(m)return m;s.set(t,a),Oet(t)?t.forEach(function(v){a.add(bb(v,e,n,v,t,s))}):Aet(t)&&t.forEach(function(v,E){a.set(E,bb(v,e,n,E,t,s))});var g=u?l?HJe:BJe:l?iF:rF,b=c?void 0:g(t);return OZe(b||t,function(v,E){b&&(E=v,v=t[E]),Age(a,E,bb(v,e,n,E,t,s))}),a}var rtt=1,itt=4;function Uy(t){return bb(t,rtt|itt)}var v4,cX;function stt(){if(cX)return v4;cX=1;var t=Array.isArray,e=Object.keys,n=Object.prototype.hasOwnProperty,r=typeof Element<"u";function i(s,a){if(s===a)return!0;if(s&&a&&typeof s=="object"&&typeof a=="object"){var o=t(s),l=t(a),u,c,d;if(o&&l){if(c=s.length,c!=a.length)return!1;for(u=c;u--!==0;)if(!i(s[u],a[u]))return!1;return!0}if(o!=l)return!1;var h=s instanceof Date,m=a instanceof Date;if(h!=m)return!1;if(h&&m)return s.getTime()==a.getTime();var g=s instanceof RegExp,b=a instanceof RegExp;if(g!=b)return!1;if(g&&b)return s.toString()==a.toString();var v=e(s);if(c=v.length,c!==e(a).length)return!1;for(u=c;u--!==0;)if(!n.call(a,v[u]))return!1;if(r&&s instanceof Element&&a instanceof Element)return s===a;for(u=c;u--!==0;)if(d=v[u],!(d==="_owner"&&s.$$typeof)&&!i(s[d],a[d]))return!1;return!0}return s!==s&&a!==a}return v4=function(a,o){try{return i(a,o)}catch(l){if(l.message&&l.message.match(/stack|recursion/i)||l.number===-2146828260)return console.warn("Warning: react-fast-compare does not handle circular references.",l.name,l.message),!1;throw l}},v4}var att=stt();const Dd=ys(att);var ott=4;function dX(t){return bb(t,ott)}function Vge(t,e){for(var n=-1,r=t==null?0:t.length,i=Array(r);++n<r;)i[n]=e(t[n],n,t);return i}var ltt="[object Symbol]";function oF(t){return typeof t=="symbol"||Dp(t)&&Mp(t)==ltt}var utt="Expected a function";function lF(t,e){if(typeof t!="function"||e!=null&&typeof e!="function")throw new TypeError(utt);var n=function(){var r=arguments,i=e?e.apply(this,r):r[0],s=n.cache;if(s.has(i))return s.get(i);
131var a=t.apply(this,r);return n.cache=s.set(i,a)||s,a};return n.cache=new(lF.Cache||Ef),n}lF.Cache=Ef;var ctt=500;function dtt(t){var e=lF(t,function(r){return n.size===ctt&&n.clear(),r}),n=e.cache;return e}var ftt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,htt=/\\(\\)?/g,ptt=dtt(function(t){var e=[];return t.charCodeAt(0)===46&&e.push(""),t.replace(ftt,function(n,r,i,s){e.push(i?s.replace(htt,"$1"):r||n)}),e});function mtt(t){if(typeof t=="string"||oF(t))return t;var e=t+"";return e=="0"&&1/t==-1/0?"-0":e}var fX=of?of.prototype:void 0,hX=fX?fX.toString:void 0;function qge(t){if(typeof t=="string")return t;if(V2(t))return Vge(t,qge)+"";if(oF(t))return hX?hX.call(t):"";var e=t+"";return e=="0"&&1/t==-1/0?"-0":e}function gtt(t){return t==null?"":qge(t)}function Gge(t){return V2(t)?Vge(t,mtt):oF(t)?[t]:Lge(ptt(gtt(t)))}var E4={exports:{}},Fn={};var pX;function ytt(){if(pX)return Fn;pX=1;var t=typeof Symbol=="function"&&Symbol.for,e=t?Symbol.for("react.element"):60103,n=t?Symbol.for("react.portal"):60106,r=t?Symbol.for("react.fragment"):60107,i=t?Symbol.for("react.strict_mode"):60108,s=t?Symbol.for("react.profiler"):60114,a=t?Symbol.for("react.provider"):60109,o=t?Symbol.for("react.context"):60110,l=t?Symbol.for("react.async_mode"):60111,u=t?Symbol.for("react.concurrent_mode"):60111,c=t?Symbol.for("react.forward_ref"):60112,d=t?Symbol.for("react.suspense"):60113,h=t?Symbol.for("react.suspense_list"):60120,m=t?Symbol.for("react.memo"):60115,g=t?Symbol.for("react.lazy"):60116,b=t?Symbol.for("react.block"):60121,v=t?Symbol.for("react.fundamental"):60117,E=t?Symbol.for("react.responder"):60118,x=t?Symbol.for("react.scope"):60119;function _(A){if(typeof A=="object"&&A!==null){var R=A.$$typeof;switch(R){case e:switch(A=A.type,A){case l:case u:case r:case s:case i:case d:return A;default:switch(A=A&&A.$$typeof,A){case o:case c:case g:case m:case a:return A;default:return R}}case n:return R}}}function S(A){return _(A)===u}return Fn.AsyncMode=l,Fn.ConcurrentMode=u,Fn.ContextConsumer=o,Fn.ContextProvider=a,Fn.Element=e,Fn.ForwardRef=c,Fn.Fragment=r,Fn.Lazy=g,Fn.Memo=m,Fn.Portal=n,Fn.Profiler=s,Fn.StrictMode=i,Fn.Suspense=d,Fn.isAsyncMode=function(A){return S(A)||_(A)===l},Fn.isConcurrentMode=S,Fn.isContextConsumer=function(A){return _(A)===o},Fn.isContextProvider=function(A){return _(A)===a},Fn.isElement=function(A){return typeof A=="object"&&A!==null&&A.$$typeof===e},Fn.isForwardRef=function(A){return _(A)===c},Fn.isFragment=function(A){return _(A)===r},Fn.isLazy=function(A){return _(A)===g},Fn.isMemo=function(A){return _(A)===m},Fn.isPortal=function(A){return _(A)===n},Fn.isProfiler=function(A){return _(A)===s},Fn.isStrictMode=function(A){return _(A)===i},Fn.isSuspense=function(A){return _(A)===d},Fn.isValidElementType=function(A){return typeof A=="string"||typeof A=="function"||A===r||A===u||A===s||A===i||A===d||A===h||typeof A=="object"&&A!==null&&(A.$$typeof===g||A.$$typeof===m||A.$$typeof===a||A.$$typeof===o||A.$$typeof===c||A.$$typeof===v||A.$$typeof===E||A.$$typeof===x||A.$$typeof===b)},Fn.typeOf=_,Fn}var mX;function btt(){return mX||(mX=1,E4.exports=ytt()),E4.exports}var _4,gX;function vtt(){if(gX)return _4;gX=1;var t=btt(),e={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},n={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},r={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},i={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};s[t.ForwardRef]=r,s[t.Memo]=i;function a(g){return t.isMemo(g)?i:s[g.$$typeof]||e}var o=Object.defineProperty,l=Object.getOwnPropertyNames,u=Object.getOwnPropertySymbols,c=Object.getOwnPropertyDescriptor,d=Object.getPrototypeOf,h=Object.prototype;function m(g,b,v){if(typeof b!="string"){if(h){var E=d(b);E&&E!==h&&m(g,E,v)}var x=l(b);u&&(x=x.concat(u(b)));for(var _=a(g),S=a(b),A=0;A<x.length;++A){var R=x[A];if(!n[R]&&!(v&&v[R])&&!(S&&S[R])&&!(_&&_[R])){var T=c(b,R);try{o(g,R,T)}catch{}}}}return g}return _4=m,_4}var Ett=vtt();const _tt=ys(Ett);function Br(){return Br=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Br.apply(this,arguments)}function xtt(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}function uF(t,e){if(t==null)return{};var n={},r=Object.keys(t),i,s;for(s=0;s<r.length;s++)i=r[s],!(e.indexOf(i)>=0)&&(n[i]=t[i]);return n}function yX(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}var c3=C.createContext(void 0);c3.displayName="FormikContext";var wtt=c3.Provider,Stt=c3.Consumer;function Wge(){var t=C.useContext(c3);return t}var bX=function(e){return Array.isArray(e)&&e.length===0},xs=function(e){return typeof e=="function"},G0=function(e){return e!==null&&typeof e=="object"},Ctt=function(e){return String(Math.floor(Number(e)))===e},x4=function(e){return Object.prototype.toString.call(e)==="[object String]"},Yge=function(e){return C.Children.count(e)===0},w4=function(e){return G0(e)&&xs(e.then)};function Ti(t,e,n,r){r===void 0&&(r=0);for(var i=Gge(e);t&&r<i.length;)t=t[i[r++]];return r!==i.length&&!t||t===void 0?n:t}function au(t,e,n){for(var r=dX(t),i=r,s=0,a=Gge(e);s<a.length-1;s++){var o=a[s],l=Ti(t,a.slice(0,s+1));if(l&&(G0(l)||Array.isArray(l)))i=i[o]=dX(l);else{var u=a[s+1];i=i[o]=Ctt(u)&&Number(u)>=0?[]:{}}}return(s===0?t:i)[a[s]]===n?t:(n===void 0?delete i[a[s]]:i[a[s]]=n,s===0&&n===void 0&&delete r[a[s]],r)}
vendor: 8,390 bytes, line 131
131function Kge(t,e,n,r){n===void 0&&(n=new WeakMap),r===void 0&&(r={});for(var i=0,s=Object.keys(t);i<s.length;i++){var a=s[i],o=t[a];G0(o)?n.get(o)||(n.set(o,!0),r[a]=Array.isArray(o)?[]:{},Kge(o,e,n,r[a])):r[a]=e}return r}function Ttt(t,e){switch(e.type){case"SET_VALUES":return Br({},t,{values:e.payload});case"SET_TOUCHED":return Br({},t,{touched:e.payload});case"SET_ERRORS":return Dd(t.errors,e.payload)?t:Br({},t,{errors:e.payload});case"SET_STATUS":return Br({},t,{status:e.payload});case"SET_ISSUBMITTING":return Br({},t,{isSubmitting:e.payload});case"SET_ISVALIDATING":return Br({},t,{isValidating:e.payload});case"SET_FIELD_VALUE":return Br({},t,{values:au(t.values,e.payload.field,e.payload.value)});case"SET_FIELD_TOUCHED":return Br({},t,{touched:au(t.touched,e.payload.field,e.payload.value)});case"SET_FIELD_ERROR":return Br({},t,{errors:au(t.errors,e.payload.field,e.payload.value)});case"RESET_FORM":return Br({},t,e.payload);case"SET_FORMIK_STATE":return e.payload(t);case"SUBMIT_ATTEMPT":return Br({},t,{touched:Kge(t.values,!0),isSubmitting:!0,submitCount:t.submitCount+1});case"SUBMIT_FAILURE":return Br({},t,{isSubmitting:!1});case"SUBMIT_SUCCESS":return Br({},t,{isSubmitting:!1});default:return t}}var nh={},_x={};function Att(t){var e=t.validateOnChange,n=e===void 0?!0:e,r=t.validateOnBlur,i=r===void 0?!0:r,s=t.validateOnMount,a=s===void 0?!1:s,o=t.isInitialValid,l=t.enableReinitialize,u=l===void 0?!1:l,c=t.onSubmit,d=uF(t,["validateOnChange","validateOnBlur","validateOnMount","isInitialValid","enableReinitialize","onSubmit"]),h=Br({validateOnChange:n,validateOnBlur:i,validateOnMount:a,onSubmit:c},d),m=C.useRef(h.initialValues),g=C.useRef(h.initialErrors||nh),b=C.useRef(h.initialTouched||_x),v=C.useRef(h.initialStatus),E=C.useRef(!1),x=C.useRef({});C.useEffect(function(){return E.current=!0,function(){E.current=!1}},[]);var _=C.useState(0),S=_[1],A=C.useRef({values:Uy(h.initialValues),errors:Uy(h.initialErrors)||nh,touched:Uy(h.initialTouched)||_x,status:Uy(h.initialStatus),isSubmitting:!1,isValidating:!1,submitCount:0}),R=A.current,T=C.useCallback(function(te){var de=A.current;A.current=Ttt(de,te),de!==A.current&&S(function(be){return be+1})},[]),O=C.useCallback(function(te,de){return new Promise(function(be,ce){var ne=h.validate(te,de);ne==null?be(nh):w4(ne)?ne.then(function(fe){be(fe||nh)},function(fe){ce(fe)}):be(ne)})},[h.validate]),I=C.useCallback(function(te,de){var be=h.validationSchema,ce=xs(be)?be(de):be,ne=de&&ce.validateAt?ce.validateAt(de,te):Ntt(te,ce);return new Promise(function(fe,X){ne.then(function(){fe(nh)},function(Oe){Oe.name==="ValidationError"?fe(Rtt(Oe)):X(Oe)})})},[h.validationSchema]),D=C.useCallback(function(te,de){return new Promise(function(be){return be(x.current[te].validate(de))})},[]),P=C.useCallback(function(te){var de=Object.keys(x.current).filter(function(ce){return xs(x.current[ce].validate)}),be=de.length>0?de.map(function(ce){return D(ce,Ti(te,ce))}):[Promise.resolve("DO_NOT_DELETE_YOU_WILL_BE_FIRED")];return Promise.all(be).then(function(ce){return ce.reduce(function(ne,fe,X){return fe==="DO_NOT_DELETE_YOU_WILL_BE_FIRED"||fe&&(ne=au(ne,de[X],fe)),ne},{})})},[D]),B=C.useCallback(function(te){return Promise.all([P(te),h.validationSchema?I(te):{},h.validate?O(te):{}]).then(function(de){var be=de[0],ce=de[1],ne=de[2],fe=PP.all([be,ce,ne],{arrayMerge:Ott});return fe})},[h.validate,h.validationSchema,P,O,I]),L=oo(function(te){return te===void 0&&(te=R.values),T({type:"SET_ISVALIDATING",payload:!0}),B(te).then(function(de){return E.current&&(T({type:"SET_ISVALIDATING",payload:!1}),T({type:"SET_ERRORS",payload:de})),de})});C.useEffect(function(){a&&E.current===!0&&Dd(m.current,h.initialValues)&&L(m.current)},[a,L]);var $=C.useCallback(function(te){var de=te&&te.values?te.values:m.current,be=te&&te.errors?te.errors:g.current?g.current:h.initialErrors||{},ce=te&&te.touched?te.touched:b.current?b.current:h.initialTouched||{},ne=te&&te.status?te.status:v.current?v.current:h.initialStatus;m.current=de,g.current=be,b.current=ce,v.current=ne;var fe=function(){T({type:"RESET_FORM",payload:{isSubmitting:!!te&&!!te.isSubmitting,errors:be,touched:ce,status:ne,values:de,isValidating:!!te&&!!te.isValidating,submitCount:te&&te.submitCount&&typeof te.submitCount=="number"?te.submitCount:0}})};if(h.onReset){var X=h.onReset(R.values,Ne);w4(X)?X.then(fe):fe()}else fe()},[h.initialErrors,h.initialStatus,h.initialTouched,h.onReset]);C.useEffect(function(){E.current===!0&&!Dd(m.current,h.initialValues)&&u&&(m.current=h.initialValues,$(),a&&L(m.current))},[u,h.initialValues,$,a,L]),C.useEffect(function(){u&&E.current===!0&&!Dd(g.current,h.initialErrors)&&(g.current=h.initialErrors||nh,T({type:"SET_ERRORS",payload:h.initialErrors||nh}))},[u,h.initialErrors]),C.useEffect(function(){u&&E.current===!0&&!Dd(b.current,h.initialTouched)&&(b.current=h.initialTouched||_x,T({type:"SET_TOUCHED",payload:h.initialTouched||_x}))},[u,h.initialTouched]),C.useEffect(function(){u&&E.current===!0&&!Dd(v.current,h.initialStatus)&&(v.current=h.initialStatus,T({type:"SET_STATUS",payload:h.initialStatus}))},[u,h.initialStatus,h.initialTouched]);var q=oo(function(te){if(x.current[te]&&xs(x.current[te].validate)){var de=Ti(R.values,te),be=x.current[te].validate(de);return w4(be)?(T({type:"SET_ISVALIDATING",payload:!0}),be.then(function(ce){return ce}).then(function(ce){T({type:"SET_FIELD_ERROR",payload:{field:te,value:ce}}),T({type:"SET_ISVALIDATING",payload:!1})})):(T({type:"SET_FIELD_ERROR",payload:{field:te,value:be}}),Promise.resolve(be))}else if(h.validationSchema)return T({type:"SET_ISVALIDATING",payload:!0}),I(R.values,te).then(function(ce){return ce}).then(function(ce){T({type:"SET_FIELD_ERROR",payload:{field:te,value:Ti(ce,te)}}),T({type:"SET_ISVALIDATING",payload:!1})});return Promise.resolve()}),F=C.useCallback(function(te,de){var be=de.validate;x.current[te]={validate:be}},[]),G=C.useCallback(function(te){delete x.current[te]},[]),H=oo(function(te,de){T({type:"SET_TOUCHED",payload:te});var be=de===void 0?i:de;return be?L(R.values):Promise.resolve()}),K=C.useCallback(function(te){T({type:"SET_ERRORS",payload:te})},[]),V=oo(function(te,de){var be=xs(te)?te(R.values):te;T({type:"SET_VALUES",payload:be});var ce=de===void 0?n:de;return ce?L(be):Promise.resolve()}),Y=C.useCallback(function(te,de){T({type:"SET_FIELD_ERROR",payload:{field:te,value:de}})},[]),Z=oo(function(te,de,be){var ce=xs(de)?de(Ti(R.values,te)):de;T({type:"SET_FIELD_VALUE",payload:{field:te,value:ce}});var ne=be===void 0?n:be;return ne?L(au(R.values,te,ce)):Promise.resolve()}),W=C.useCallback(function(te,de){var be=de,ce=te,ne;if(!x4(te)){te.persist&&te.persist();var fe=te.target?te.target:te.currentTarget,X=fe.type,Oe=fe.name,Ye=fe.id,rt=fe.value,Ut=fe.checked;fe.outerHTML;var Kt=fe.options,It=fe.multiple;be=de||Oe||Ye,ce=/number|range/.test(X)?(ne=parseFloat(rt),isNaN(ne)?"":ne):/checkbox/.test(X)?Itt(Ti(R.values,be),Ut,rt):Kt&&It?ktt(Kt):rt}be&&Z(be,ce)},[Z,R.values]),Q=oo(function(te){if(x4(te))return function(de){return W(de,te)};W(te)}),re=oo(function(te,de,be){de===void 0&&(de=!0),T({type:"SET_FIELD_TOUCHED",payload:{field:te,value:de}});var ce=be===void 0?i:be;return ce?L(R.values):Promise.resolve()}),se=C.useCallback(function(te,de){te.persist&&te.persist();var be=te.target,ce=be.name,ne=be.id;be.outerHTML;var fe=de||ce||ne;re(fe,!0)},[re]),J=oo(function(te){if(x4(te))return function(de){return se(de,te)};se(te)}),ae=C.useCallback(function(te){xs(te)?T({type:"SET_FORMIK_STATE",payload:te}):T({type:"SET_FORMIK_STATE",payload:function(){return te}})},[]),ge=C.useCallback(function(te){T({type:"SET_STATUS",payload:te})},[]),ve=C.useCallback(function(te){T({type:"SET_ISSUBMITTING",payload:te})},[]),Re=oo(function(){return T({type:"SUBMIT_ATTEMPT"}),L().then(function(te){var de=te instanceof Error,be=!de&&Object.keys(te).length===0;if(be){var ce;try{if(ce=Fe(),ce===void 0)return}catch(ne){throw ne}return Promise.resolve(ce).then(function(ne){return E.current&&T({type:"SUBMIT_SUCCESS"}),ne}).catch(function(ne){if(E.current)throw T({type:"SUBMIT_FAILURE"}),ne})}else if(E.current&&(T({type:"SUBMIT_FAILURE"}),de))throw te})}),xe=oo(function(te){te&&te.preventDefault&&xs(te.preventDefault)&&te.preventDefault(),te&&te.stopPropagation&&xs(te.stopPropagation)&&te.stopPropagation(),Re().catch(function(de){console.warn("Warning: An unhandled error was caught from submitForm(
131)",de)})}),Ne={resetForm:$,validateForm:L,validateField:q,setErrors:K,setFieldError:Y,setFieldTouched:re,setFieldValue:Z,setStatus:ge,setSubmitting:ve,setTouched:H,setValues:V,setFormikState:ae,submitForm:Re},Fe=oo(function(){return c(R.values,Ne)}),Le=oo(function(te){te&&te.preventDefault&&xs(te.preventDefault)&&te.preventDefault(),te&&te.stopPropagation&&xs(te.stopPropagation)&&te.stopPropagation(),$()}),ze=C.useCallback(function(te){return{value:Ti(R.values,te),error:Ti(R.errors,te),touched:!!Ti(R.touched,te),initialValue:Ti(m.current,te),initialTouched:!!Ti(b.current,te),initialError:Ti(g.current,te)}},[R.errors,R.touched,R.values]),qe=C.useCallback(function(te){return{setValue:function(be,ce){return Z(te,be,ce)},setTouched:function(be,ce){return re(te,be,ce)},setError:function(be){return Y(te,be)}}},[Z,re,Y]),_t=C.useCallback(function(te){var de=G0(te),be=de?te.name:te,ce=Ti(R.values,be),ne={name:be,value:ce,onChange:Q,onBlur:J};if(de){var fe=te.type,X=te.value,Oe=te.as,Ye=te.multiple;fe==="checkbox"?X===void 0?ne.checked=!!ce:(ne.checked=!!(Array.isArray(ce)&&~ce.indexOf(X)),ne.value=X):fe==="radio"?(ne.checked=ce===X,ne.value=X):Oe==="select"&&Ye&&(ne.value=ne.value||[],ne.multiple=!0)}return ne},[J,Q,R.values]),Ot=C.useMemo(function(){return!Dd(m.current,R.values)},[m.current,R.values]),Lt=C.useMemo(function(){return typeof o<"u"?Ot?R.errors&&Object.keys(R.errors).length===0:o!==!1&&xs(o)?o(h):o:R.errors&&Object.keys(R.errors).length===0},[o,Ot,R.errors,h]),ue=Br({},R,{initialValues:m.current,initialErrors:g.current,initialTouched:b.current,initialStatus:v.current,handleBlur:J,handleChange:Q,handleReset:Le,handleSubmit:xe,resetForm:$,setErrors:K,setFormikState:ae,setFieldTouched:re,setFieldValue:Z,setFieldError:Y,setStatus:ge,setSubmitting:ve,setTouched:H,setValues:V,submitForm:Re,validateForm:L,validateField:q,isValid:Lt,dirty:Ot,unregisterField:G,registerField:F,getFieldProps:_t,getFieldMeta:ze,getFieldHelpers:qe,validateOnBlur:i,validateOnChange:n,validateOnMount:a});return ue}function lIt(t){var e=Att(t),n=t.component,r=t.children,i=t.render,s=t.innerRef;return C.useImperativeHandle(s,function(){return e}),C.createElement(wtt,{value:e},n?C.createElement(n,e):i?i(e):r?xs(r)?r(e):Yge(r)?null:C.Children.only(r):null)}function Rtt(t){var e={};if(t.inner){if(t.inner.length===0)return au(e,t.path,t.message);for(var i=t.inner,n=Array.isArray(i),r=0,i=n?i:i[Symbol.iterator]();;){var s;if(n){if(r>=i.length)break;s=i[r++]}else{if(r=i.next(),r.done)break;s=r.value}var a=s;Ti(e,a.path)||(e=au(e,a.path,a.message))}}return e}function Ntt(t,e,n,r){n===void 0&&(n=!1);var i=HP(t);return e[n?"validateSync":"validate"](i,{abortEarly:!1,context:i})}function HP(t){var e=Array.isArray(t)?[]:{};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){var r=String(n);Array.isArray(t[r])===!0?e[r]=t[r].map(function(i){return Array.isArray(i)===!0||jK(i)?HP(i):i!==""?i:void 0}):jK(t[r])?e[r]=HP(t[r]):e[r]=t[r]!==""?t[r]:void 0}return e}function Ott(t,e,n){var r=t.slice();return e.forEach(function(s,a){if(typeof r[a]>"u"){var o=n.clone!==!1,l=o&&n.isMergeableObject(s);r[a]=l?PP(Array.isArray(s)?[]:{},s,n):s}else n.isMergeableObject(s)?r[a]=PP(t[a],s,n):t.indexOf(s)===-1&&r.push(s)}),r}function ktt(t){return Array.from(t).filter(function(e){return e.selected}).map(function(e){return e.value})}function Itt(t,e,n){if(typeof t=="boolean")return!!e;var r=[],i=!1,s=-1;if(Array.isArray(t))r=t,s=t.indexOf(n),i=s>=0;else if(!n||n=="true"||n=="false")return!!e;return e&&n&&!i?r.concat(n):i?r.slice(0,s).concat(r.slice(s+1)):r}var Mtt=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?C.useLayoutEffect:C.useEffect;function oo(t){var e=C.useRef(t);return Mtt(function(){e.current=t}),C.useCallback(function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return e.current.apply(void 0,r)},[])}function uIt(t){var e=Wge(),n=e.getFieldProps,r=e.getFieldMeta,i=e.getFieldHelpers,s=e.registerField,a=e.unregisterField,o=G0(t),l=o?t:{name:t},u=l.name,c=l.validate;C.useEffect(function(){return u&&s(u,{validate:c}),function(){u&&a(u)}},[s,a,u,c]);var d=C.useMemo(function(){return i(u)},[i,u]);return[n(l),r(u),d]}var Dtt=C.forwardRef(function(t,e){var n=t.action,r=uF(t,["action"]),i=n??"#",s=Wge(),a=s.handleReset,o=s.handleSubmit;return C.createElement("form",Br({onSubmit:o,ref:e,onReset:a,action:i},r))});
131Dtt.displayName="Form";function Ptt(t){var e=function(i){return C.createElement(Stt,null,function(s){return C.createElement(t,Br({},i,{formik:s}))})},n=t.displayName||t.name||t.constructor&&t.constructor.name||"Component";return e.WrappedComponent=t,e.displayName="FormikConnect("+n+")",_tt(e,t)}var Ltt=function(e,n,r){var i=Xh(e),s=i[n];return i.splice(n,1),i.splice(r,0,s),i},$tt=function(e,n,r){var i=Xh(e),s=i[n];return i[n]=i[r],i[r]=s,i},S4=function(e,n,r){var i=Xh(e);return i.splice(n,0,r),i},Ftt=function(e,n,r){var i=Xh(e);return i[n]=r,i},Xh=function(e){if(e){if(Array.isArray(e))return[].concat(e);var n=Object.keys(e).map(function(r){return parseInt(r)}).reduce(function(r,i){return i>r?i:r},0);return Array.from(Br({},e,{length:n+1}))}else return[]},vX=function(e,n){var r=typeof e=="function"?e:n;return function(i){if(Array.isArray(i)||G0(i)){var s=Xh(i);return r(s)}return i}},Xge=(function(t){xtt(e,t);function e(r){var i;return i=t.call(this,r)||this,i.updateArrayField=function(s,a,o){var l=i.props,u=l.name,c=l.formik.setFormikState;c(function(d){var h=vX(o,s),m=vX(a,s),g=au(d.values,u,s(Ti(d.values,u))),b=o?h(Ti(d.errors,u)):void 0,v=a?m(Ti(d.touched,u)):void 0;return bX(b)&&(b=void 0),bX(v)&&(v=void 0),Br({},d,{values:g,errors:o?au(d.errors,u,b):d.errors,touched:a?au(d.touched,u,v):d.touched})})},i.push=function(s){return i.updateArrayField(function(a){return[].concat(Xh(a),[Uy(s)])},!1,!1)},i.handlePush=function(s){return function(){return i.push(s)}},i.swap=function(s,a){return i.updateArrayField(function(o){return $tt(o,s,a)},!0,!0)},i.handleSwap=function(s,a){return function(){return i.swap(s,a)}},i.move=function(s,a){return i.updateArrayField(function(o){return Ltt(o,s,a)},!0,!0)},i.handleMove=function(s,a){return function(){return i.move(s,a)}},i.insert=function(s,a){return i.updateArrayField(function(o){return S4(o,s,a)},function(o){return S4(o,s,null)},function(o){return S4(o,s,null)})},i.handleInsert=function(s,a){return function(){return i.insert(s,a)}},i.replace=function(s,a){return i.updateArrayField(function(o){return Ftt(o,s,a)},!1,!1)},i.handleReplace=function(s,a){return function(){return i.replace(s,a)}},i.unshift=function(s){var a=-1;return i.updateArrayField(function(o){var l=o?[s].concat(o):[s];return a=l.length,l},function(o){return o?[null].concat(o):[null]},function(o){return o?[null].concat(o):[null]}),a},i.handleUnshift=function(s){return function(){return i.unshift(s)}},i.handleRemove=function(s){return function(){return i.remove(s)}},i.handlePop=function(){return function(){return i.pop()}},i.remove=i.remove.bind(yX(i)),i.pop=i.pop.bind(yX(i)),i}var n=e.prototype;return n.componentDidUpdate=function(i){this.props.validateOnChange&&this.props.formik.validateOnChange&&!Dd(Ti(i.formik.values,i.name),Ti(this.props.formik.values,this.props.name))&&this.props.formik.validateForm(this.props.formik.values)},n.remove=function(i){var s;return this.updateArrayField(function(a){var o=a?Xh(a):[];return s||(s=o[i]),xs(o.splice)&&o.splice(i,1),xs(o.every)&&o.every(function(l){return l===void 0})?[]:o},!0,!0),s},n.pop=function(){var i;return this.updateArrayField(function(s){var a=s.slice();return i||(i=a&&a.pop&&a.pop()),a},!0,!0),i},n.render=function(){var i={push:this.push,pop:this.pop,swap:this.swap,move:this.move,insert:this.insert,replace:this.replace,unshift:this.unshift,remove:this.remove,handlePush:this.handlePush,handlePop:this.handlePop,handleSwap:this.handleSwap,handleMove:this.handleMove,handleInsert:this.handleInsert,handleReplace:this.handleReplace,handleUnshift:this.handleUnshift,handleRemove:this.handleRemove},s=this.props,a=s.component,o=s.render,l=s.children,u=s.name,c=s.formik,d=uF(c,["validate","validationSchema"]),h=Br({},i,{form:d,name:u});return a?C.createElement(a,h):o?o(h):l?typeof l=="function"?l(h):Yge(l)?null:C.Children.only(l):null},e})(C.Component);Xge.defaultProps={validateOnChange:!0};var cIt=Ptt(Xge),C4,EX;function Btt(){if(EX)return C4;EX=1;function t(E){this._maxSize=E,this.clear()}t.prototype.clear=function(){this._size=0,this._values=Object.create(null)},t.prototype.get=function(E){return this._values[E]},t.prototype.set=function(E,x){return this._size>=this._maxSize&&this.clear(),E in this._values||this._size++,this._values[E]=x};var e=/[^.^\]^[]+|(?=\[\]|\.\.)/g,n=/^\d+$/,r=/^\d/,i=/[~`!#$%\^&*+=\-\[\]\\';,/{}|\\":<>
vendor: 12,460 bytes, line 131
131\?]/g,s=/^\s*(['"]?)(.*?)(\1)\s*$/,a=512,o=new t(a),l=new t(a),u=new t(a);C4={Cache:t,split:d,normalizePath:c,setter:function(E){var x=c(E);return l.get(E)||l.set(E,function(S,A){for(var R=0,T=x.length,O=S;R<T-1;){var I=x[R];if(I==="__proto__"||I==="constructor"||I==="prototype")return S;O=O[x[R++]]}O[x[R]]=A})},getter:function(E,x){var _=c(E);return u.get(E)||u.set(E,function(A){for(var R=0,T=_.length;R<T;)if(A!=null||!x)A=A[_[R++]];else return;return A})},join:function(E){return E.reduce(function(x,_){return x+(m(_)||n.test(_)?"["+_+"]":(x?".":"")+_)},"")},forEach:function(E,x,_){h(Array.isArray(E)?E:d(E),x,_)}};function c(E){return o.get(E)||o.set(E,d(E).map(function(x){return x.replace(s,"$2")}))}function d(E){return E.match(e)||[""]}function h(E,x,_){var S=E.length,A,R,T,O;for(R=0;R<S;R++)A=E[R],A&&(v(A)&&(A='"'+A+'"'),O=m(A),T=!O&&/^\d+$/.test(A),x.call(_,A,O,T,R,E))}function m(E){return typeof E=="string"&&E&&["'",'"'].indexOf(E.charAt(0))!==-1}function g(E){return E.match(r)&&!E.match(n)}function b(E){return i.test(E)}function v(E){return!m(E)&&(g(E)||b(E))}return C4}var Ih=Btt(),T4,_X;function Htt(){if(_X)return T4;_X=1;const t=/[A-Z\xc0-\xd6\xd8-\xde]?[a-z\xdf-\xf6\xf8-\xff]+(?:['â](?:d|ll|m|re|s|t|ve))?(?=[\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \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]|[A-Z\xc0-\xd6\xd8-\xde]|$)|(?:[A-Z\xc0-\xd6\xd8-\xde]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \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\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])+(?:['â](?:D|LL|M|RE|S|T|VE))?(?=[\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \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]|[A-Z\xc0-\xd6\xd8-\xde](?:[a-z\xdf-\xf6\xf8-\xff]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \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\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])|$)|[A-Z\xc0-\xd6\xd8-\xde]?(?:[a-z\xdf-\xf6\xf8-\xff]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \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\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])+(?:['â](?:d|ll|m|re|s|t|ve))?|[A-Z\xc0-\xd6\xd8-\xde]+(?:['â](?:D|LL|M|RE|S|T|VE))?|\d*(?:1ST|2ND|3RD|(?![123])\dTH)(?=\b|[a-z_])|\d*(?:1st|2nd|3rd|(?![123])\dth)(?=\b|[A-Z_])|\d+|(?:[\u2700-\u27bf]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff])[\ufe0e\ufe0f]?(?:[\u0300-\u036f\ufe20-\ufe2f\u20d0-\u20ff]|\ud83c[\udffb-\udfff])?(?:\u200d(?:[^\ud800-\udfff]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff])[\ufe0e\ufe0f]?(?:[\u0300-\u036f\ufe20-\ufe2f\u20d0-\u20ff]|\ud83c[\udffb-\udfff])?)*/g,e=c=>c.match(t)||[],n=c=>c[0].toUpperCase()+c.slice(1),r=(c,d)=>e(c).join(d).toLowerCase(),i=c=>e(c).reduce((d,h)=>`${d}${d?h[0].toUpperCase()+h.slice(1).toLowerCase():h.toLowerCase()}`,"");return T4={words:e,upperFirst:n,camelCase:i,pascalCase:c=>n(i(c)),snakeCase:c=>r(c,"_"),kebabCase:c=>r(c,"-"),sentenceCase:c=>n(r(c," ")),titleCase:c=>e(c).map(n).join(" ")},T4}var A4=Htt(),xx={exports:{}},xX;function Utt(){if(xX)return xx.exports;xX=1,xx.exports=function(i){return t(e(i),i)},xx.exports.array=t;function t(i,s){var a=i.length,o=new Array(a),l={},u=a,c=n(s),d=r(i);for(s.forEach(function(m){if(!d.has(m[0])||!d.has(m[1]))throw new Error("Unknown node. There is an unknown node in the supplied edges.")});u--;)l[u]||h(i[u],u,new Set);return o;function h(m,g,b){if(b.has(m)){var v;try{v=", node was:"+JSON.stringify(m)}catch{v=""}throw new Error("Cyclic dependency"+v)}if(!d.has(m))throw new Error("Found unknown node. Make sure to provided all involved nodes. Unknown node: "+JSON.stringify(m));if(!l[g]){l[g]=!0;var E=c.get(m)||new Set;if(E=Array.from(E),g=E.length){b.add(m);do{var x=E[--g];h(x,d.get(x),b)}while(g);b.delete(m)}o[--a]=m}}}function e(i){for(var s=new Set,a=0,o=i.length;a<o;a++){var l=i[a];s.add(l[0]),s.add(l[1])}return Array.from(s)}function n(i){for(var s=new Map,a=0,o=i.length;a<o;a++){var l=i[a];s.has(l[0])||s.set(l[0],new Set),s.has(l[1])||s.set(l[1],new Set),s.get(l[0]).add(l[1])}return s}function r(i){for(var s=new Map,a=0,o=i.length;a<o;a++)s.set(i[a],a);return s}return xx.exports}var jtt=Utt();const ztt=ys(jtt),Vtt=Object.prototype.toString,qtt=Error.prototype.toString,Gtt=RegExp.prototype.toString,Wtt=typeof Symbol<"u"?Symbol.prototype.toString:()=>"",Ytt=/^Symbol\((.*)\)(.*)$/;function Ktt(t){return t!=+t?"NaN":t===0&&1/t<0?"-0":""+t}function wX(t,e=!1){if(t==null||t===!0||t===!1)return""+t;const n=typeof t;if(n==="number")return Ktt(t);if(n==="string")return e?`"${t}"`:t;if(n==="function")return"[Function "+(t.name||"anonymous")+"]";if(n==="symbol")return Wtt.call(t).replace(Ytt,"Symbol($1)");const r=Vtt.call(t).slice(8,-1);return r==="Date"?isNaN(t.getTime())?""+t:t.toISOString(t):r==="Error"||t instanceof Error?"["+qtt.call(t)+"]":r==="RegExp"?Gtt.call(t):null}function Tc(t,e){let n=wX(t,e);return n!==null?n:JSON.stringify(t,function(r,i){let s=wX(this[r],e);return s!==null?s:i},2)}function Qge(t){return t==null?[]:[].concat(t)}let Zge,Jge,e0e,Xtt=/\$\{\s*(\w+)\s*\}/g;Zge=Symbol.toStringTag;class SX{constructor(e,n,r,i){this.name=void 0,this.message=void 0,this.value=void 0,this.path=void 0,this.type=void 0,this.params=void 0,this.errors=void 0,this.inner=void 0,this[Zge]="Error",this.name="ValidationError",this.value=n,this.path=r,this.type=i,this.errors=[],this.inner=[],Qge(e).forEach(s=>{if(As.isError(s)){this.errors.push(...s.errors);const a=s.inner.length?s.inner:[s];this.inner.push(...a)}else this.errors.push(s)}),this.message=this.errors.length>1?`${this.errors.length} errors occurred`:this.errors[0]}}Jge=Symbol.hasInstance;e0e=Symbol.toStringTag;class As extends Error{static formatError(e,n){const r=n.label||n.path||"this";return n=Object.assign({},n,{path:r,originalPath:n.path}),typeof e=="string"?e.replace(Xtt,(i,s)=>Tc(n[s])):typeof e=="function"?e(n):e}static isError(e){return e&&e.name==="ValidationError"}constructor(e,n,r,i,s){const a=new SX(e,n,r,i);if(s)return a;super(),this.value=void 0,this.path=void 0,this.type=void 0,this.params=void 0,this.errors=[],this.inner=[],this[e0e]="Error",this.name=a.name,this.message=a.message,this.type=a.type,this.value=a.value,this.path=a.path,this.errors=a.errors,this.inner=a.inner,Error.captureStackTrace&&Error.captureStackTrace(this,As)}static[Jge](e){return SX[Symbol.hasInstance](e)||super[Symbol.hasInstance](e)}}let Ul={default:"${path} is invalid",required:"${path} is a required field",defined:"${path} must be defined",notNull:"${path} cannot be null",oneOf:"${path} must be one of the following values: ${values}",notOneOf:"${path} must not be one of the following values: ${values}",notType:({path:t,type:e,value:n,originalValue:r})=>{const i=r!=null&&r!==n?` (cast from the value \`${Tc(r,!0)}\`).`:".";return e!=="mixed"?`${t} must be a \`${e}\` type, but the final value was: \`${Tc(n,!0)}\``+i:`${t} must match the configured type. The validated value was: \`${Tc(n,!0)}\``+i}},Qs={length:"${path} must be exactly ${length} characters",min:"${path} must be at least ${min} characters",max:"${path} must be at most ${max} characters",matches:'${path} must match the following: "${regex}"',email:"${path} must be a valid email",url:"${path} must be a valid URL",uuid:"${path} must be a valid UUID",datetime:"${path} must be a valid ISO date-time",datetime_precision:"${path} must be a valid ISO date-time with a sub-second precision of exactly ${precision} digits",datetime_offset:'${path} must be a valid ISO date-time with UTC "Z" timezone',trim:"${path} must be a trimmed string",lowercase:"${path} must be a lowercase string",uppercase:"${path} must be a upper case string"},Id={min:"${path} must be greater than or equal to ${min}",max:"${path} must be less than or equal to ${max}",lessThan:"${path} must be less than ${less}",moreThan:"${path} must be greater than ${more}",positive:"${path} must be a positive number",negative:"${path} must be a negative number",integer:"${path} must be an integer"},UP={min:"${path} field must be later than ${min}",max:"${path} field must be at earlier than ${max}"},jP={isValue:"${path} field must be ${value}"},$w={noUnknown:"${path} field has unspecified keys: ${unknown}",exact:"${path} object contains unknown properties: ${properties}"},Fw={min:"${path} field must have at least ${min} items",max:"${path} field must have less than or equal to ${max} items",length:"${path} must have ${length} items"},Qtt={notType:t=>{const{path:e,value:n,spec:r}=t,i=r.types.length;if(Array.isArray(n)){if(n.length<i)return`${e} tuple value has too few items, expected a length of ${i} but got ${n.length} for value: \`${Tc(n,!0)}\``;if(n.length>i)return`${e} tuple value has too many items, expected a length of ${i} but got ${n.length} for value: \`${Tc(n,!0)}\``}return As.formatError(Ul.notType,t)}};Object.assign(Object.create(null),{mixed:Ul,string:Qs,number:Id,date:UP,object:$w,array:Fw,boolean:jP,tuple:Qtt});const d3=t=>t&&t.__isYupSchema__;class zS{static fromOptions(e,n){if(!n.then&&!n.otherwise)throw new TypeError("either `then:` or `otherwise:` is required for `when()` conditions");let{is:r,then:i,otherwise:s}=n,a=typeof r=="function"?r:(...o)=>o.every(l=>l===r);return new zS(e,(o,l)=>{var u;let c=a(...o)?i:s;return(u=c?.(l))!=null?u:l})}constructor(e,n){this.fn=void 0,this.refs=e,this.refs=e,this.fn=n}resolve(e,n){let r=this.refs.map(s=>s.getValue(n?.value,n?.parent,n?.context)),i=this.fn(r,e,n);if(i===void 0||i===e)return e;if(!d3(i))throw new TypeError("conditions must return a schema object");return i.resolve(n)}}const wx={context:"$",value:"."};function dIt(t,e){return new _f(t,e)}class _f{constructor(e,n={}){if(this.key=void 0,this.isContext=void 0,this.isValue=void 0,this.isSibling=void 0,this.path=void 0,this.getter=void 0,this.map=void 0,typeof e!="string")throw new TypeError("ref must be a string, got: "+e);if(this.key=e.trim(),e==="")throw new TypeError("ref must be a non-empty string");this.isContext=this.key[0]===wx.context,this.isValue=this.key[0]===wx.value,this.isSibling=!this.isContext&&!this.isValue;let r=this.isContext?wx.context:this.isValue?wx.value:"";this.path=this.key.slice(r.length),this.getter=this.path&&Ih.getter(this.path,!0),this.map=n.map}getValue(e,n,r){let i=this.isContext?r:this.isValue?e:n;return this.getter&&(i=this.getter(i||{})),this.map&&(i=this.map(i)),i}cast(e,n){return this.getValue(e,n?.parent,n?.context)}resolve(){return this}describe(){return{type:"ref",key:this.key}}toString(){return`Ref(${this.key})`}static isRef(e){return e&&e.__isYupRef}}_f.prototype.__isYupRef=!0;const Jo=t=>t==null;function Fm(t){function e({value:n,path:r="",options:i,originalValue:s,schema:a},o,l){const{name:u,test:c,params:d,message:h,skipAbsent:m}=t;let{parent:g,context:b,abortEarly:v=a.spec.abortEarly,disableStackTrace:E=a.spec.disableStackTrace}=i;const x={value:n,parent:g,context:b};function _(P={}){const B=t0e(Object.assign({value:n,originalValue:s,label:a.spec.label,path:P.path||r,spec:a.spec,disableStackTrace:P.disableStackTrace||E},d,P.params),x),L=new As(As.formatError(P.message||h,B),n,B.path,P.type||u,B.disableStackTrace);return L.params=B,L}const S=v?o:l;let A={path:r,parent:g,type:u,from:i.from,createError:_,resolve(P){return n0e(P,x)},options:i,originalValue:s,schema:a};const R=P=>{As.isError(P)?S(P):P?l(null):S(_())},T=P=>{As.isError(P)?S(P):o(P)};if(m&&Jo(n))return R(!0);let I;try{var D;if(I=c.call(A,n,A),typeof((D=I)==null?void 0:D.then)=="function"){if(i.sync)throw new Error(`Validation test of type: "${A.type}" returned a Promise during a synchronous validate. This test will finish after the validate call has returned`);return Promise.resolve(I).then(R,T)}}catch(P){T(P);return}R(I)}return e.OPTIONS=t,e}function t0e(t,e){if(!t)return t;for(const n of Object.keys(t))t[n]=n0e(t[n],e);return t}function n0e(t,e){return _f.isRef(t)?t.getValue(e.value,e.parent,e.context):t}function Ztt(t,e,n,r=n){let i,s,a;
131return e?(Ih.forEach(e,(o,l,u)=>{let c=l?o.slice(1,o.length-1):o;t=t.resolve({context:r,parent:i,value:n});let d=t.type==="tuple",h=u?parseInt(c,10):0;if(t.innerType||d){if(d&&!u)throw new Error(`Yup.reach cannot implicitly index into a tuple type. the path part "${a}" must contain an index to the tuple element, e.g. "${a}[0]"`);if(n&&h>=n.length)throw new Error(`Yup.reach cannot resolve an array item at index: ${o}, in the path: ${e}. because there is no value at that index. `);i=n,n=n&&n[h],t=d?t.spec.types[h]:t.innerType}if(!u){if(!t.fields||!t.fields[c])throw new Error(`The schema does not contain the path: ${e}. (failed at: ${a} which is a type: "${t.type}")`);i=n,n=n&&n[c],t=t.fields[c]}s=c,a=l?"["+o+"]":"."+o}),{schema:t,parent:i,parentPath:s}):{parent:i,parentPath:e,schema:t}}class VS extends Set{describe(){const e=[];for(const n of this.values())e.push(_f.isRef(n)?n.describe():n);return e}resolveAll(e){let n=[];for(const r of this.values())n.push(e(r));return n}clone(){return new VS(this.values())}merge(e,n){const r=this.clone();return e.forEach(i=>r.add(i)),n.forEach(i=>r.delete(i)),r}}function sg(t,e=new Map){if(d3(t)||!t||typeof t!="object")return t;if(e.has(t))return e.get(t);let n;if(t instanceof Date)n=new Date(t.getTime()),e.set(t,n);else if(t instanceof RegExp)n=new RegExp(t),e.set(t,n);else if(Array.isArray(t)){n=new Array(t.length),e.set(t,n);for(let r=0;r<t.length;r++)n[r]=sg(t[r],e)}else if(t instanceof Map){n=new Map,e.set(t,n);for(const[r,i]of t.entries())n.set(r,sg(i,e))}else if(t instanceof Set){n=new Set,e.set(t,n);for(const r of t)n.add(sg(r,e))}else if(t instanceof Object){n={},e.set(t,n);for(const[r,i]of Object.entries(t))n[r]=sg(i,e)}else throw Error(`Unable to clone ${t}`);return n}function Jtt(t){if(!(t!=null&&t.length))return;const e=[];let n="",r=!1,i=!1;for(let s=0;s<t.length;s++){const a=t[s];if(a==="["&&!i){n&&(e.push(...n.split(".").filter(Boolean)),n=""),r=!0;continue}if(a==="]"&&!i){n&&(/^\d+$/.test(n)?e.push(n):e.push(n.replace(/^"|"$/g,"")),n=""),r=!1;continue}if(a==='"'){i=!i;continue}if(a==="."&&!r&&!i){n&&(e.push(n),n="");continue}n+=a}return n&&e.push(...n.split(".").filter(Boolean)),e}function ent(t,e){const n=e?`${e}.${t.path}`:t.path;return t.errors.map(r=>({message:r,path:Jtt(n)}))}function r0e(t,e){var n;if(!((n=t.inner)!=null&&n.length)&&t.errors.length)return ent(t,e);const r=e?`${e}.${t.path}`:t.path;return t.inner.flatMap(i=>r0e(i,r))}class ha{constructor(e){this.type=void 0,this.deps=[],this.tests=void 0,this.transforms=void 0,this.conditions=[],this._mutate=void 0,this.internalTests={},this._whitelist=new VS,this._blacklist=new VS,this.exclusiveTests=Object.create(null),this._typeCheck=void 0,this.spec=void 0,this.tests=[],this.transforms=[],this.withMutation(()=>{this.typeError(Ul.notType)}),this.type=e.type,this._typeCheck=e.check,this.spec=Object.assign({strip:!1,strict:!1,abortEarly:!0,recursive:!0,disableStackTrace:!1,nullable:!1,optional:!0,coerce:!0},e?.spec),this.withMutation(n=>{n.nonNullable()})}get _type(){return this.type}clone(e){if(this._mutate)return e&&Object.assign(this.spec,e),this;const n=Object.create(Object.getPrototypeOf(this));
vendor: 19,996 bytes, lines 131-134
131return n.type=this.type,n._typeCheck=this._typeCheck,n._whitelist=this._whitelist.clone(),n._blacklist=this._blacklist.clone(),n.internalTests=Object.assign({},this.internalTests),n.exclusiveTests=Object.assign({},this.exclusiveTests),n.deps=[...this.deps],n.conditions=[...this.conditions],n.tests=[...this.tests],n.transforms=[...this.transforms],n.spec=sg(Object.assign({},this.spec,e)),n}label(e){let n=this.clone();return n.spec.label=e,n}meta(...e){if(e.length===0)return this.spec.meta;let n=this.clone();return n.spec.meta=Object.assign(n.spec.meta||{},e[0]),n}withMutation(e){let n=this._mutate;this._mutate=!0;let r=e(this);return this._mutate=n,r}concat(e){if(!e||e===this)return this;if(e.type!==this.type&&this.type!=="mixed")throw new TypeError(`You cannot \`concat()\` schema's of different types: ${this.type} and ${e.type}`);let n=this,r=e.clone();const i=Object.assign({},n.spec,r.spec);return r.spec=i,r.internalTests=Object.assign({},n.internalTests,r.internalTests),r._whitelist=n._whitelist.merge(e._whitelist,e._blacklist),r._blacklist=n._blacklist.merge(e._blacklist,e._whitelist),r.tests=n.tests,r.exclusiveTests=n.exclusiveTests,r.withMutation(s=>{e.tests.forEach(a=>{s.test(a.OPTIONS)})}),r.transforms=[...n.transforms,...r.transforms],r}isType(e){return e==null?!!(this.spec.nullable&&e===null||this.spec.optional&&e===void 0):this._typeCheck(e)}resolve(e){let n=this;if(n.conditions.length){let r=n.conditions;n=n.clone(),n.conditions=[],n=r.reduce((i,s)=>s.resolve(i,e),n),n=n.resolve(e)}return n}resolveOptions(e){var n,r,i,s;return Object.assign({},e,{from:e.from||[],strict:(n=e.strict)!=null?n:this.spec.strict,abortEarly:(r=e.abortEarly)!=null?r:this.spec.abortEarly,recursive:(i=e.recursive)!=null?i:this.spec.recursive,disableStackTrace:(s=e.disableStackTrace)!=null?s:this.spec.disableStackTrace})}cast(e,n={}){let r=this.resolve(Object.assign({},n,{value:e})),i=n.assert==="ignore-optionality",s=r._cast(e,n);if(n.assert!==!1&&!r.isType(s)){if(i&&Jo(s))return s;let a=Tc(e),o=Tc(s);throw new TypeError(`The value of ${n.path||"field"} could not be cast to a value that satisfies the schema type: "${r.type}". 132 133attempted value: ${a} 134`+(o!==a?`result of cast: ${o}`:""))}return s}_cast(e,n){let r=e===void 0?e:this.transforms.reduce((i,s)=>s.call(this,i,e,this,n),e);return r===void 0&&(r=this.getDefault(n)),r}_validate(e,n={},r,i){let{path:s,originalValue:a=e,strict:o=this.spec.strict}=n,l=e;o||(l=this._cast(l,Object.assign({assert:!1},n)));let u=[];for(let c of Object.values(this.internalTests))c&&u.push(c);this.runTests({path:s,value:l,originalValue:a,options:n,tests:u},r,c=>{if(c.length)return i(c,l);this.runTests({path:s,value:l,originalValue:a,options:n,tests:this.tests},r,i)})}runTests(e,n,r){let i=!1,{tests:s,value:a,originalValue:o,path:l,options:u}=e,c=b=>{i||(i=!0,n(b,a))},d=b=>{i||(i=!0,r(b,a))},h=s.length,m=[];if(!h)return d([]);let g={value:a,originalValue:o,path:l,options:u,schema:this};for(let b=0;b<s.length;b++){const v=s[b];v(g,c,function(x){x&&(Array.isArray(x)?m.push(...x):m.push(x)),--h<=0&&d(m)})}}asNestedTest({key:e,index:n,parent:r,parentPath:i,originalParent:s,options:a}){const o=e??n;if(o==null)throw TypeError("Must include `key` or `index` for nested validations");const l=typeof o=="number";let u=r[o];const c=Object.assign({},a,{strict:!0,parent:r,value:u,originalValue:s[o],key:void 0,[l?"index":"key"]:o,path:l||o.includes(".")?`${i||""}[${l?o:`"${o}"`}]`:(i?`${i}.`:"")+e});return(d,h,m)=>this.resolve(c)._validate(u,c,h,m)}validate(e,n){var r;let i=this.resolve(Object.assign({},n,{value:e})),s=(r=n?.disableStackTrace)!=null?r:i.spec.disableStackTrace;return new Promise((a,o)=>i._validate(e,n,(l,u)=>{As.isError(l)&&(l.value=u),o(l)},(l,u)=>{l.length?o(new As(l,u,void 0,void 0,s)):a(u)}))}validateSync(e,n){var r;let i=this.resolve(Object.assign({},n,{value:e})),s,a=(r=n?.disableStackTrace)!=null?r:i.spec.disableStackTrace;return i._validate(e,Object.assign({},n,{sync:!0}),(o,l)=>{throw As.isError(o)&&(o.value=l),o},(o,l)=>{if(o.length)throw new As(o,e,void 0,void 0,a);s=l}),s}isValid(e,n){return this.validate(e,n).then(()=>!0,r=>{if(As.isError(r))return!1;throw r})}isValidSync(e,n){try{return this.validateSync(e,n),!0}catch(r){if(As.isError(r))return!1;throw r}}_getDefault(e){let n=this.spec.default;return n==null?n:typeof n=="function"?n.call(this,e):sg(n)}getDefault(e){return this.resolve(e||{})._getDefault(e)}default(e){return arguments.length===0?this._getDefault():this.clone({default:e})}strict(e=!0){return this.clone({strict:e})}nullability(e,n){const r=this.clone({nullable:e});return r.internalTests.nullable=Fm({message:n,name:"nullable",test(i){return i===null?this.schema.spec.nullable:!0}}),r}optionality(e,n){const r=this.clone({optional:e});return r.internalTests.optionality=Fm({message:n,name:"optionality",test(i){return i===void 0?this.schema.spec.optional:!0}}),r}optional(){return this.optionality(!0)}defined(e=Ul.defined){return this.optionality(!1,e)}nullable(){return this.nullability(!0)}nonNullable(e=Ul.notNull){return this.nullability(!1,e)}required(e=Ul.required){return this.clone().withMutation(n=>n.nonNullable(e).defined(e))}notRequired(){return this.clone().withMutation(e=>e.nullable().optional())}transform(e){let n=this.clone();return n.transforms.push(e),n}test(...e){let n;if(e.length===1?typeof e[0]=="function"?n={test:e[0]}:n=e[0]:e.length===2?n={name:e[0],test:e[1]}:n={name:e[0],message:e[1],test:e[2]},n.message===void 0&&(n.message=Ul.default),typeof n.test!="function")throw new TypeError("`test` is a required parameters");let r=this.clone(),i=Fm(n),s=n.exclusive||n.name&&r.exclusiveTests[n.name]===!0;if(n.exclusive&&!n.name)throw new TypeError("Exclusive tests must provide a unique `name` identifying the test");return n.name&&(r.exclusiveTests[n.name]=!!n.exclusive),r.tests=r.tests.filter(a=>!(a.OPTIONS.name===n.name&&(s||a.OPTIONS.test===i.OPTIONS.test))),r.tests.push(i),r}when(e,n){!Array.isArray(e)&&typeof e!="string"&&(n=e,e=".");let r=this.clone(),i=Qge(e).map(s=>new _f(s));return i.forEach(s=>{s.isSibling&&r.deps.push(s.key)}),r.conditions.push(typeof n=="function"?new zS(i,n):zS.fromOptions(i,n)),r}typeError(e){let n=this.clone();return n.internalTests.typeError=Fm({message:e,name:"typeError",skipAbsent:!0,test(r){return this.schema._typeCheck(r)?!0:this.createError({params:{type:this.schema.type}})}}),n}oneOf(e,n=Ul.oneOf){let r=this.clone();return e.forEach(i=>{r._whitelist.add(i),r._blacklist.delete(i)}),r.internalTests.whiteList=Fm({message:n,name:"oneOf",skipAbsent:!0,test(i){let s=this.schema._whitelist,a=s.resolveAll(this.resolve);return a.includes(i)?!0:this.createError({params:{values:Array.from(s).join(", "),resolved:a}})}}),r}notOneOf(e,n=Ul.notOneOf){let r=this.clone();return e.forEach(i=>{r._blacklist.add(i),r._whitelist.delete(i)}),r.internalTests.blacklist=Fm({message:n,name:"notOneOf",test(i){let s=this.schema._blacklist,a=s.resolveAll(this.resolve);return a.includes(i)?this.createError({params:{values:Array.from(s).join(", "),resolved:a}}):!0}}),r}strip(e=!0){let n=this.clone();return n.spec.strip=e,n}describe(e){const n=(e?this.resolve(e):this).clone(),{label:r,meta:i,optional:s,nullable:a}=n.spec;return{meta:i,label:r,optional:s,nullable:a,default:n.getDefault(e),type:n.type,oneOf:n._whitelist.describe(),notOneOf:n._blacklist.describe(),tests:n.tests.filter((l,u,c)=>c.findIndex(d=>d.OPTIONS.name===l.OPTIONS.name)===u).map(l=>{const u=l.OPTIONS.params&&e?t0e(Object.assign({},l.OPTIONS.params),e):l.OPTIONS.params;return{name:l.OPTIONS.name,params:u}})}}get"~standard"(){const e=this;return{version:1,vendor:"yup",async validate(r){try{return{value:await e.validate(r,{abortEarly:!1})}}catch(i){if(i instanceof As)return{issues:r0e(i)};throw i}}}}}ha.prototype.__isYupSchema__=!0;for(const t of["validate","validateSync"])ha.prototype[`${t}At`]=function(e,n,r={}){const{parent:i,parentPath:s,schema:a}=Ztt(this,e,n,r.context);return a[t](i&&i[s],Object.assign({},r,{parent:i,path:e}))};for(const t of["equals","is"])ha.prototype[t]=ha.prototype.oneOf;for(const t of["not","nope"])ha.prototype[t]=ha.prototype.notOneOf;const tnt=()=>!0;function nnt(t){return new i0e(t)}class i0e extends ha{constructor(e){super(typeof e=="function"?{type:"mixed",check:e}:Object.assign({type:"mixed",check:tnt},e))}}nnt.prototype=i0e.prototype;function rnt(){return new s0e}class s0e extends ha{constructor(){super({type:"boolean",check(e){return e instanceof Boolean&&(e=e.valueOf()),typeof e=="boolean"}}),this.withMutation(()=>{this.transform((e,n)=>{if(this.spec.coerce&&!this.isType(e)){if(/^(true|1)$/i.test(String(e)))return!0;if(/^(false|0)$/i.test(String(e)))return!1}return e})})}isTrue(e=jP.isValue){return this.test({message:e,name:"is-value",exclusive:!0,params:{value:"true"},test(n){return Jo(n)||n===!0}})}isFalse(e=jP.isValue){return this.test({message:e,name:"is-value",exclusive:!0,params:{value:"false"},test(n){return Jo(n)||n===!1}})}default(e){return super.default(e)}defined(e){return super.defined(e)}optional(){return super.optional()}required(e){return super.required(e)}notRequired(){return super.notRequired()}nullable(){return super.nullable()}nonNullable(e){return super.nonNullable(e)}strip(e){return super.strip(e)}}rnt.prototype=s0e.prototype;const int=/^(\d{4}|[+-]\d{6})(?:-?(\d{2})(?:-?(\d{2}))?)?(?:[ T]?(\d{2}):?(\d{2})(?::?(\d{2})(?:[,.](\d{1,}))?)?(?:(Z)|([+-])(\d{2})(?::?(\d{2}))?)?)?$/;function snt(t){const e=zP(t);if(!e)return Date.parse?Date.parse(t):Number.NaN;if(e.z===void 0&&e.plusMinus===void 0)return new Date(e.year,e.month,e.day,e.hour,e.minute,e.second,e.millisecond).valueOf();let n=0;return e.z!=="Z"&&e.plusMinus!==void 0&&(n=e.hourOffset*60+e.minuteOffset,e.plusMinus==="+"&&(n=0-n)),Date.UTC(e.year,e.month,e.day,e.hour,e.minute+n,e.second,e.millisecond)}function zP(t){var e,n;const r=int.exec(t);return r?{year:Zu(r[1]),month:Zu(r[2],1)-1,day:Zu(r[3],1),hour:Zu(r[4]),minute:Zu(r[5]),second:Zu(r[6]),millisecond:r[7]?Zu(r[7].substring(0,3)):0,precision:(e=(n=r[7])==null?void 0:n.length)!=null?e:void 0,z:r[8]||void 0,plusMinus:r[9]||void 0,hourOffset:Zu(r[10]),minuteOffset:Zu(r[11])}:null}function Zu(t,e=0){return Number(t)||e}let ant=/^[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])?)*$/,ont=/^((https?|ftp):)?\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i,lnt=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,unt="^\\d{4}-\\d{2}-\\d{2}",cnt="\\d{2}:\\d{2}:\\d{2}",dnt="(([+-]\\d{2}(:?\\d{2})?)|Z)",fnt=new RegExp(`${unt}T${cnt}(\\.\\d+)?${dnt}$`),hnt=t=>Jo(t)||t===t.trim(),pnt={}.toString();function mnt(){return new a0e}class a0e extends ha{constructor(){super({type:"string",check(e){return e instanceof String&&(e=e.valueOf()),typeof e=="string"}}),this.withMutation(()=>{this.transform((e,n)=>{if(!this.spec.coerce||this.isType(e)||Array.isArray(e))return e;const r=e!=null&&e.toString?e.toString():e;return r===pnt?e:r})})}required(e){return super.required(e).withMutation(n=>n.test({message:e||Ul.required,name:"required",skipAbsent:!0,test:r=>!!r.length}))}notRequired(){return super.notRequired().withMutation(e=>(e.tests=e.tests.filter(n=>n.OPTIONS.name!=="required"),e))}length(e,n=Qs.length){return this.test({message:n,name:"length",exclusive:!0,params:{length:e},skipAbsent:!0,test(r){return r.length===this.resolve(e)}})}min(e,n=Qs.min){return this.test({message:n,name:"min",exclusive:!0,params:{min:e},skipAbsent:!0,test(r){return r.length>=this.resolve(e)}})}max(e,n=Qs.max){return this.test({name:"max",exclusive:!0,message:n,params:{max:e},skipAbsent:!0,test(r){return r.length<=this.resolve(e)}})}matches(e,n){let r=!1,i,s;return n&&(typeof n=="object"?{excludeEmptyString:r=!1,message:i,name:s}=n:i=n),this.test({name:s||"matches",message:i||Qs.matches,params:{regex:e},skipAbsent:!0,test:a=>a===""&&r||a.search(e)!==-1})}email(e=Qs.email){return this.matches(ant,{name:"email",message:e,excludeEmptyString:!0})}url(e=Qs.url){return this.matches(ont,{name:"url",message:e,excludeEmptyString:!0})}uuid(e=Qs.uuid){return this.matches(lnt,{name:"uuid",message:e,excludeEmptyString:!1})}datetime(e){let n="",r,i;return e&&(typeof e=="object"?{message:n="",allowOffset:r=!1,precision:i=void 0}=e:n=e),this.matches(fnt,{name:"datetime",message:n||Qs.datetime,excludeEmptyString:!0}).test({name:"datetime_offset",message:n||Qs.datetime_offset,params:{allowOffset:r},skipAbsent:!0,test:s=>{if(!s||r)return!0;const a=zP(s);return a?!!a.z:!1}}).test({name:"datetime_precision",message:n||Qs.datetime_precision,params:{precision:i},skipAbsent:!0,test:s=>{if(!s||i==null)return!0;const a=zP(s);return a?a.precision===i:!1}})}ensure(){return this.default("").transform(e=>e===null?"":e)}trim(e=Qs.trim){return this.transform(n=>n!=null?n.trim():n).test({message:e,name:"trim",test:hnt})}lowercase(e=Qs.lowercase){return this.transform(n=>Jo(n)?n:n.toLowerCase()).test({message:e,name:"string_case",exclusive:!0,skipAbsent:!0,test:n=>Jo(n)||n===n.toLowerCase()})}uppercase(e=Qs.uppercase){return this.transform(n=>Jo(n)?n:n.toUpperCase()).test({message:e,name:"string_case",exclusive:!0,skipAbsent:!0,test:n=>Jo(n)||n===n.toUpperCase()})}}mnt.prototype=a0e.prototype;let gnt=t=>t!=+t;function ynt(){return new o0e}class o0e extends ha{constructor(){super({type:"number",check(e){return e instanceof Number&&(e=e.valueOf()),typeof e=="number"&&!gnt(e)}}),this.withMutation(()=>{this.transform((e,n)=>{if(!this.spec.coerce)return e;let r=e;if(typeof r=="string"){if(r=r.replace(/\s/g,""),r==="")return NaN;r=+r}return this.isType(r)||r===null?r:parseFloat(r)})})}min(e,n=Id.min){return this.test({message:n,name:"min",exclusive:!0,params:{min:e},skipAbsent:!0,test(r){return r>=this.resolve(e)}})}max(e,n=Id.max){return this.test({message:n,name:"max",exclusive:!0,params:{max:e},skipAbsent:!0,test(r){return r<=this.resolve(e)}})}lessThan(e,n=Id.lessThan){return this.test({message:n,name:"max",exclusive:!0,params:{less:e},skipAbsent:!0,test(r){return r<this.resolve(e)}})}moreThan(e,n=Id.moreThan){return this.test({message:n,name:"min",exclusive:!0,params:{more:e},skipAbsent:!0,test(r){return r>this.resolve(e)}})}positive(e=Id.positive){return this.moreThan(0,e)}negative(e=Id.negative){return this.lessThan(0,e)}integer(e=Id.integer){return this.test({name:"integer",message:e,skipAbsent:!0,test:n=>Number.isInteger(n)})}truncate(){return this.transform(e=>Jo(e)?e:e|0)}round(e){var n;let r=["ceil","floor","round","trunc"];if(e=((n=e)==null?void 0:n.toLowerCase())||"round",e==="trunc")return this.truncate();if(r.indexOf(e.toLowerCase())===-1)throw new TypeError("Only valid options for round() are: "+r.join(", "));return this.transform(i=>Jo(i)?i:Math[e](i))}}ynt.prototype=o0e.prototype;let bnt=new Date(""),vnt=t=>Object.prototype.toString.call(t)==="[object Date]";class cF extends ha{constructor(){super({type:"date",check(e){return vnt(e)&&!isNaN(e.getTime())}}),this.withMutation(()=>{this.transform((e,n)=>!this.spec.coerce||this.isType(e)||e===null?e:(e=snt(e),isNaN(e)?cF.INVALID_DATE:new Date(e)))})}prepareParam(e,n){let r;if(_f.isRef(e))r=e;else{let i=this.cast(e);if(!this._typeCheck(i))throw new TypeError(`\`${n}\` must be a Date or a value that can be \`cast()\` to a Date`);r=i}return r}min(e,n=UP.min){let r=this.prepareParam(e,"min");return this.test({message:n,name:"min",exclusive:!0,params:{min:e},skipAbsent:!0,test(i){return i>=this.resolve(r)}})}max(e,n=UP.max){let r=this.prepareParam(e,"max");return this.test({message:n,name:"max",exclusive:!0,params:{max:e},skipAbsent:!0,test(i){return i<=this.resolve(r)}})}}cF.INVALID_DATE=bnt;function Ent(t,e=[]){let n=[],r=new Set,i=new Set(e.map(([a,o])=>`${a}-${o}`));function s(a,o){let l=Ih.split(a)[0];r.add(l),i.has(`${o}-${l}`)||n.push([o,l])}for(const a of Object.keys(t)){let o=t[a];r.add(a),_f.isRef(o)&&o.isSibling?s(o.path,a):d3(o)&&"deps"in o&&o.deps.forEach(l=>s(l,a))}return ztt.array(Array.from(r),n).reverse()}function CX(t,e){let n=1/0;return t.some((r,i)=>{var s;if((s=e.path)!=null&&s.includes(r))return n=i,!0}),n}function l0e(t){return(e,n)=>CX(t,e)-CX(t,n)}const u0e=(t,e,n)=>{if(typeof t!="string")return t;let r=t;try{r=JSON.parse(t)}catch{}return n.isType(r)?r:t};function Bw(t){if("fields"in t){const e={};for(const[n,r]of Object.entries(t.fields))e[n]=Bw(r);return t.setFields(e)}if(t.type==="array"){const e=t.optional();return e.innerType&&(e.innerType=Bw(e.innerType)),e}return t.type==="tuple"?t.optional().clone({types:t.spec.types.map(Bw)}):"optional"in t?t.optional():t}const _nt=(t,e)=>{const n=[...Ih.normalizePath(e)];if(n.length===1)return n[0]in t;let r=n.pop(),i=Ih.getter(Ih.join(n),!0)(t);return!!(i&&r in i)};let TX=t=>Object.prototype.toString.call(t)==="[object Object]";function AX(t,e){let n=Object.keys(t.fields);return Object.keys(e).filter(r=>n.indexOf(r)===-1)}const xnt=l0e([]);function wnt(t){return new c0e(t)}class c0e extends ha{constructor(e){super({type:"object",check(n){return TX(n)||typeof n=="function"}}),this.fields=Object.create(null),this._sortErrors=xnt,this._nodes=[],this._excludedEdges=[],this.withMutation(()=>{e&&this.shape(e)})}_cast(e,n={}){var r;let i=super._cast(e,n);if(i===void 0)return this.getDefault(n);if(!this._typeCheck(i))return i;let s=this.fields,a=(r=n.stripUnknown)!=null?r:this.spec.noUnknown,o=[].concat(this._nodes,Object.keys(i).filter(d=>!this._nodes.includes(d))),l={},u=Object.assign({},n,{parent:l,__validating:n.__validating||!1}),c=!1;for(const d of o){let h=s[d],m=d in i,g=i[d];if(h){let b;u.path=(n.path?`${n.path}.`:"")+d,h=h.resolve({value:g,context:n.context,parent:l});let v=h instanceof ha?h.spec:void 0,E=v?.strict;if(v!=null&&v.strip){c=c||d in i;continue}b=!n.__validating||!E?h.cast(g,u):g,b!==void 0&&(l[d]=b)}else m&&!a&&(l[d]=g);(m!==d in l||l[d]!==g)&&(c=!0)}return c?l:i}_validate(e,n={},r,i){let{from:s=[],originalValue:a=e,recursive:o=this.spec.recursive}=n;n.from=[{schema:this,value:a},...s],n.__validating=!0,n.originalValue=a,super._validate(e,n,r,(l,u)=>{if(!o||!TX(u)){i(l,u);return}a=a||u;let c=[];for(let d of this._nodes){let h=this.fields[d];!h||_f.isRef(h)||c.push(h.asNestedTest({options:n,key:d,parent:u,parentPath:n.path,originalParent:a}))}this.runTests({tests:c,value:u,originalValue:a,options:n},r,d=>{i(d.sort(this._sortErrors).concat(l),u)})})}clone(e){const n=super.clone(e);return n.fields=Object.assign({},this.fields),n._nodes=this._nodes,n._excludedEdges=this._excludedEdges,n._sortErrors=this._sortErrors,n}concat(e){let n=super.concat(e),r=n.fields;for(let[i,s]of Object.entries(this.fields)){const a=r[i];r[i]=a===void 0?s:a}return n.withMutation(i=>i.setFields(r,[...this._excludedEdges,...e._excludedEdges]))}_getDefault(e){if("default"in this.spec)return super._getDefault(e);if(!this._nodes.length)return;let n={};
vendor: 5,180 bytes, line 134
134return this._nodes.forEach(r=>{var i;const s=this.fields[r];let a=e;(i=a)!=null&&i.value&&(a=Object.assign({},a,{parent:a.value,value:a.value[r]})),n[r]=s&&"getDefault"in s?s.getDefault(a):void 0}),n}setFields(e,n){let r=this.clone();return r.fields=e,r._nodes=Ent(e,n),r._sortErrors=l0e(Object.keys(e)),n&&(r._excludedEdges=n),r}shape(e,n=[]){return this.clone().withMutation(r=>{let i=r._excludedEdges;return n.length&&(Array.isArray(n[0])||(n=[n]),i=[...r._excludedEdges,...n]),r.setFields(Object.assign(r.fields,e),i)})}partial(){const e={};for(const[n,r]of Object.entries(this.fields))e[n]="optional"in r&&r.optional instanceof Function?r.optional():r;return this.setFields(e)}deepPartial(){return Bw(this)}pick(e){const n={};for(const r of e)this.fields[r]&&(n[r]=this.fields[r]);return this.setFields(n,this._excludedEdges.filter(([r,i])=>e.includes(r)&&e.includes(i)))}omit(e){const n=[];for(const r of Object.keys(this.fields))e.includes(r)||n.push(r);return this.pick(n)}from(e,n,r){let i=Ih.getter(e,!0);return this.transform(s=>{if(!s)return s;let a=s;return _nt(s,e)&&(a=Object.assign({},s),r||delete a[e],a[n]=i(s)),a})}json(){return this.transform(u0e)}exact(e){return this.test({name:"exact",exclusive:!0,message:e||$w.exact,test(n){if(n==null)return!0;const r=AX(this.schema,n);return r.length===0||this.createError({params:{properties:r.join(", ")}})}})}stripUnknown(){return this.clone({noUnknown:!0})}noUnknown(e=!0,n=$w.noUnknown){typeof e!="boolean"&&(n=e,e=!0);let r=this.test({name:"noUnknown",exclusive:!0,message:n,test(i){if(i==null)return!0;const s=AX(this.schema,i);return!e||s.length===0||this.createError({params:{unknown:s.join(", ")}})}});return r.spec.noUnknown=e,r}unknown(e=!0,n=$w.noUnknown){return this.noUnknown(!e,n)}transformKeys(e){return this.transform(n=>{if(!n)return n;const r={};for(const i of Object.keys(n))r[e(i)]=n[i];return r})}camelCase(){return this.transformKeys(A4.camelCase)}snakeCase(){return this.transformKeys(A4.snakeCase)}constantCase(){return this.transformKeys(e=>A4.snakeCase(e).toUpperCase())}describe(e){const n=(e?this.resolve(e):this).clone(),r=super.describe(e);r.fields={};for(const[s,a]of Object.entries(n.fields)){var i;let o=e;(i=o)!=null&&i.value&&(o=Object.assign({},o,{parent:o.value,value:o.value[s]})),r.fields[s]=a.describe(o)}return r}}wnt.prototype=c0e.prototype;function Snt(t){return new d0e(t)}class d0e extends ha{constructor(e){super({type:"array",spec:{types:e},check(n){return Array.isArray(n)}}),this.innerType=void 0,this.innerType=e}_cast(e,n){const r=super._cast(e,n);if(!this._typeCheck(r)||!this.innerType)return r;let i=!1;const s=r.map((a,o)=>{const l=this.innerType.cast(a,Object.assign({},n,{path:`${n.path||""}[${o}]`,parent:r,originalValue:a,value:a,index:o}));return l!==a&&(i=!0),l});return i?s:r}_validate(e,n={},r,i){var s;let a=this.innerType,o=(s=n.recursive)!=null?s:this.spec.recursive;n.originalValue!=null&&n.originalValue,super._validate(e,n,r,(l,u)=>{var c;if(!o||!a||!this._typeCheck(u)){i(l,u);return}let d=new Array(u.length);for(let m=0;m<u.length;m++){var h;d[m]=a.asNestedTest({options:n,index:m,parent:u,parentPath:n.path,originalParent:(h=n.originalValue)!=null?h:e})}this.runTests({value:u,tests:d,originalValue:(c=n.originalValue)!=null?c:e,options:n},r,m=>i(m.concat(l),u))})}clone(e){const n=super.clone(e);return n.innerType=this.innerType,n}json(){return this.transform(u0e)}concat(e){let n=super.concat(e);return n.innerType=this.innerType,e.innerType&&(n.innerType=n.innerType?n.innerType.concat(e.innerType):e.innerType),n}of(e){let n=this.clone();if(!d3(e))throw new TypeError("`array.of()` sub-schema must be a valid yup schema not: "+Tc(e));return n.innerType=e,n.spec=Object.assign({},n.spec,{types:e}),n}length(e,n=Fw.length){return this.test({message:n,name:"length",exclusive:!0,params:{length:e},skipAbsent:!0,test(r){return r.length===this.resolve(e)}})}min(e,n){return n=n||Fw.min,this.test({message:n,name:"min",exclusive:!0,params:{min:e},skipAbsent:!0,test(r){return r.length>=this.resolve(e)}})}max(e,n){return n=n||Fw.max,this.test({message:n,name:"max",exclusive:!0,params:{max:e},skipAbsent:!0,test(r){return r.length<=this.resolve(e)}})}ensure(){return this.default(()=>[]).transform((e,n)=>this._typeCheck(e)?e:n==null?[]:[].concat(n))}compact(e){let n=e?(r,i,s)=>!e(r,i,s):r=>!!r;return this.transform(r=>r!=null?r.filter(n):r)}describe(e){const n=(e?this.resolve(e):this).clone(),r=super.describe(e);if(n.innerType){var i;let s=e;(i=s)!=null&&i.value&&(s=Object.assign({},s,{parent:s.value,value:s.value[0]})),r.innerType=n.innerType.describe(s)}return r}}Snt.prototype=d0e.prototype;function RX(t,[e,n]){return Math.min(n,Math.max(e,t))}function Cnt(t){const e=Tnt(t),n=C.forwardRef((r,i)=>{const{children:s,...a}=r,o=C.Children.toArray(s),l=o.find(Rnt);if(l){const u=l.props.children,c=o.map(d=>d===l?C.Children.count(u)>1?C.Children.only(null):C.isValidElement(u)?u.props.children:null:d);return j.jsx(e,{...a,ref:i,children:C.isValidElement(u)?C.cloneElement(u,void 0,c):null})}return j.jsx(e,{...a,ref:i,children:s})});return n.displayName=`${t}.Slot`,n}function Tnt(t){const e=C.forwardRef((n,r)=>{const{children:i,...s}=n;
vendor: 8,071 bytes, line 134
134if(C.isValidElement(i)){const a=Ont(i),o=Nnt(s,i.props);return i.type!==C.Fragment&&(o.ref=r?vu(r,a):a),C.cloneElement(i,o)}return C.Children.count(i)>1?C.Children.only(null):null});return e.displayName=`${t}.SlotClone`,e}var Ant=Symbol("radix.slottable");function Rnt(t){return C.isValidElement(t)&&typeof t.type=="function"&&"__radixId"in t.type&&t.type.__radixId===Ant}function Nnt(t,e){const n={...e};for(const r in e){const i=t[r],s=e[r];/^on[A-Z]/.test(r)?i&&s?n[r]=(...o)=>{const l=s(...o);return i(...o),l}:i&&(n[r]=i):r==="style"?n[r]={...i,...s}:r==="className"&&(n[r]=[i,s].filter(Boolean).join(" "))}return{...t,...n}}function Ont(t){let e=Object.getOwnPropertyDescriptor(t.props,"ref")?.get,n=e&&"isReactWarning"in e&&e.isReactWarning;return n?t.ref:(e=Object.getOwnPropertyDescriptor(t,"ref")?.get,n=e&&"isReactWarning"in e&&e.isReactWarning,n?t.props.ref:t.props.ref||t.ref)}var knt=[" ","Enter","ArrowUp","ArrowDown"],Int=[" ","Enter"],Qh="Select",[f3,h3,Mnt]=P$(Qh),[W0]=Ji(Qh,[Mnt,vf]),p3=vf(),[Dnt,xf]=W0(Qh),[Pnt,Lnt]=W0(Qh),f0e=t=>{const{__scopeSelect:e,children:n,open:r,defaultOpen:i,onOpenChange:s,value:a,defaultValue:o,onValueChange:l,dir:u,name:c,autoComplete:d,disabled:h,required:m,form:g}=t,b=p3(e),[v,E]=C.useState(null),[x,_]=C.useState(null),[S,A]=C.useState(!1),R=Op(u),[T,O]=fa({prop:r,defaultProp:i??!1,onChange:s,caller:Qh}),[I,D]=fa({prop:a,defaultProp:o,onChange:l,caller:Qh}),P=C.useRef(null),B=v?g||!!v.closest("form"):!0,[L,$]=C.useState(new Set),q=Array.from(L).map(F=>F.props.value).join(";");return j.jsx(JT,{...b,children:j.jsxs(Dnt,{required:m,scope:e,trigger:v,onTriggerChange:E,valueNode:x,onValueNodeChange:_,valueNodeHasChildren:S,onValueNodeHasChildrenChange:A,contentId:wo(),value:I,onValueChange:D,open:T,onOpenChange:O,dir:R,triggerPointerDownPosRef:P,disabled:h,children:[j.jsx(f3.Provider,{scope:e,children:j.jsx(Pnt,{scope:t.__scopeSelect,onNativeOptionAdd:C.useCallback(F=>{$(G=>new Set(G).add(F))},[]),onNativeOptionRemove:C.useCallback(F=>{$(G=>{const H=new Set(G);return H.delete(F),H})},[]),children:n})}),B?j.jsxs($0e,{"aria-hidden":!0,required:m,tabIndex:-1,name:c,autoComplete:d,value:I,onChange:F=>D(F.target.value),disabled:h,form:g,children:[I===void 0?j.jsx("option",{value:""}):null,Array.from(L)]},q):null]})})};f0e.displayName=Qh;var h0e="SelectTrigger",p0e=C.forwardRef((t,e)=>{const{__scopeSelect:n,disabled:r=!1,...i}=t,s=p3(n),a=xf(h0e,n),o=a.disabled||r,l=nn(e,a.onTriggerChange),u=h3(n),c=C.useRef("touch"),[d,h,m]=B0e(b=>{const v=u().filter(_=>!_.disabled),E=v.find(_=>_.value===a.value),x=H0e(v,b,E);x!==void 0&&a.onValueChange(x.value)}),g=b=>{o||(a.onOpenChange(!0),m()),b&&(a.triggerPointerDownPosRef.current={x:Math.round(b.pageX),y:Math.round(b.pageY)})};return j.jsx(B2,{asChild:!0,...s,children:j.jsx(wt.button,{type:"button",role:"combobox","aria-controls":a.contentId,"aria-expanded":a.open,"aria-required":a.required,"aria-autocomplete":"none",dir:a.dir,"data-state":a.open?"open":"closed",disabled:o,"data-disabled":o?"":void 0,"data-placeholder":F0e(a.value)?"":void 0,...i,ref:l,onClick:tt(i.onClick,b=>{b.currentTarget.focus(),c.current!=="mouse"&&g(b)}),onPointerDown:tt(i.onPointerDown,b=>{c.current=b.pointerType;const v=b.target;v.hasPointerCapture(b.pointerId)&&v.releasePointerCapture(b.pointerId),b.button===0&&b.ctrlKey===!1&&b.pointerType==="mouse"&&(g(b),b.preventDefault())}),onKeyDown:tt(i.onKeyDown,b=>{const v=d.current!=="";!(b.ctrlKey||b.altKey||b.metaKey)&&b.key.length===1&&h(b.key),!(v&&b.key===" ")&&knt.includes(b.key)&&(g(),b.preventDefault())})})})});p0e.displayName=h0e;var m0e="SelectValue",g0e=C.forwardRef((t,e)=>{const{__scopeSelect:n,className:r,style:i,children:s,placeholder:a="",...o}=t,l=xf(m0e,n),{onValueNodeHasChildrenChange:u}=l,c=s!==void 0,d=nn(e,l.onValueNodeChange);return gs(()=>{u(c)},[u,c]),j.jsx(wt.span,{...o,ref:d,style:{pointerEvents:"none"},children:F0e(l.value)?j.jsx(j.Fragment,{children:a}):s})});g0e.displayName=m0e;var $nt="SelectIcon",y0e=C.forwardRef((t,e)=>{const{__scopeSelect:n,children:r,...i}=t;return j.jsx(wt.span,{"aria-hidden":!0,...i,ref:e,children:r||"â¼"})});y0e.displayName=$nt;var Fnt="SelectPortal",b0e=t=>j.jsx(M0,{asChild:!0,...t});b0e.displayName=Fnt;var Zh="SelectContent",v0e=C.forwardRef((t,e)=>{const n=xf(Zh,t.__scopeSelect),[r,i]=C.useState();if(gs(()=>{i(new DocumentFragment)},[]),!n.open){const s=r;return s?ks.createPortal(j.jsx(E0e,{scope:t.__scopeSelect,children:j.jsx(f3.Slot,{scope:t.__scopeSelect,children:j.jsx("div",{children:t.children})})}),s):null}return j.jsx(_0e,{...t,ref:e})});v0e.displayName=Zh;var Vo=10,[E0e,wf]=W0(Zh),Bnt="SelectContentImpl",Hnt=Cnt("SelectContent.RemoveScroll"),_0e=C.forwardRef((t,e)=>{const{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:i,onEscapeKeyDown:s,onPointerDownOutside:a,side:o,sideOffset:l,align:u,alignOffset:c,arrowPadding:d,collisionBoundary:h,collisionPadding:m,sticky:g,hideWhenDetached:b,avoidCollisions:v,...E}=t,x=xf(Zh,n),[_,S]=C.useState(null),[A,R]=C.useState(null),T=nn(e,J=>S(J)),[O,I]=C.useState(null),[D,P]=C.useState(null),B=h3(n),[L,$]=C.useState(!1),q=C.useRef(!1);C.useEffect(()=>{if(_)return RT(_)},[_]),TT();const F=C.useCallback(J=>{const[ae,...ge]=B().map(xe=>xe.ref.current),[ve]=ge.slice(-1),Re=document.activeElement;for(const xe of J)if(xe===Re||(xe?.scrollIntoView({block:"nearest"}),xe===ae&&A&&(A.scrollTop=0),xe===ve&&A&&(A.scrollTop=A.scrollHeight),xe?.focus(),document.activeElement!==Re))return},[B,A]),G=C.useCallback(()=>F([O,_]),[F,O,_]);C.useEffect(()=>{L&&G()},[L,G]);const{onOpenChange:H,triggerPointerDownPosRef:K}=x;C.useEffect(()=>{if(_){let J={x:0,y:0};const ae=ve=>{J={x:Math.abs(Math.round(ve.pageX)-(K.current?.x??0)),y:Math.abs(Math.round(ve.pageY)-(K.current?.y??0))}},ge=ve=>{J.x<=10&&J.y<=10?ve.preventDefault():_.contains(ve.target)||H(!1),document.removeEventListener("pointermove",ae),K.current=null};return K.current!==null&&(document.addEventListener("pointermove",ae),document.addEventListener("pointerup",ge,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",ae),document.removeEventListener("pointerup",ge,{capture:!0})}}},[_,H,K]),C.useEffect(()=>{const J=()=>H(!1);return window.addEventListener("blur",J),window.addEventListener("resize",J),()=>{window.removeEventListener("blur",J),window.removeEventListener("resize",J)}},[H]);const[V,Y]=B0e(J=>{const ae=B().filter(Re=>!Re.disabled),ge=ae.find(Re=>Re.ref.current===document.activeElement),ve=H0e(ae,J,ge);ve&&setTimeout(()=>ve.ref.current.focus())}),Z=C.useCallback((J,ae,ge)=>{const ve=!q.current&&!ge;(x.value!==void 0&&x.value===ae||ve)&&(I(J),ve&&(q.current=!0))},[x.value]),W=C.useCallback(()=>_?.focus(),[_]),Q=C.useCallback((J,ae,ge)=>{const ve=!q.current&&!ge;(x.value!==void 0&&x.value===ae||ve)&&P(J)},[x.value]),re=r==="popper"?VP:x0e,se=re===VP?{side:o,sideOffset:l,align:u,alignOffset:c,arrowPadding:d,collisionBoundary:h,collisionPadding:m,sticky:g,hideWhenDetached:b,avoidCollisions:v}:{};return j.jsx(E0e,{scope:n,content:_,viewport:A,onViewportChange:R,itemRefCallback:Z,selectedItem:O,onItemLeave:W,itemTextRefCallback:Q,focusSelectedItem:G,selectedItemText:D,position:r,isPositioned:L,searchRef:V,children:j.jsx(_2,{as:Hnt,allowPinchZoom:!0,children:j.jsx(E2,{asChild:!0,trapped:x.open,onMountAutoFocus:J=>{J.preventDefault()},onUnmountAutoFocus:tt(i,J=>{x.trigger?.focus({preventScroll:!0}),J.preventDefault()}),children:j.jsx(I0,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:s,onPointerDownOutside:a,onFocusOutside:J=>J.preventDefault(),onDismiss:()=>x.onOpenChange(!1),children:j.jsx(re,{role:"listbox",id:x.contentId,"data-state":x.open?"open":"closed",dir:x.dir,onContextMenu:J=>J.preventDefault(),...E,...se,onPlaced:()=>$(!0),ref:T,style:{display:"flex",flexDirection:"column",outline:"none",...E.style},onKeyDown:tt(E.onKeyDown,J=>{const ae=J.ctrlKey||J.altKey||J.metaKey;if(J.key==="Tab"&&J.preventDefault(),!ae&&J.key.length===1&&Y(J.key),["ArrowUp","ArrowDown","Home","End"].includes(J.key)){let ve=B().filter(Re=>!Re.disabled).map(Re=>Re.ref.current);
vendor: 12,674 bytes, line 134
134if(["ArrowUp","End"].includes(J.key)&&(ve=ve.slice().reverse()),["ArrowUp","ArrowDown"].includes(J.key)){const Re=J.target,xe=ve.indexOf(Re);ve=ve.slice(xe+1)}setTimeout(()=>F(ve)),J.preventDefault()}})})})})})})});_0e.displayName=Bnt;var Unt="SelectItemAlignedPosition",x0e=C.forwardRef((t,e)=>{const{__scopeSelect:n,onPlaced:r,...i}=t,s=xf(Zh,n),a=wf(Zh,n),[o,l]=C.useState(null),[u,c]=C.useState(null),d=nn(e,T=>c(T)),h=h3(n),m=C.useRef(!1),g=C.useRef(!0),{viewport:b,selectedItem:v,selectedItemText:E,focusSelectedItem:x}=a,_=C.useCallback(()=>{if(s.trigger&&s.valueNode&&o&&u&&b&&v&&E){const T=s.trigger.getBoundingClientRect(),O=u.getBoundingClientRect(),I=s.valueNode.getBoundingClientRect(),D=E.getBoundingClientRect();if(s.dir!=="rtl"){const Re=D.left-O.left,xe=I.left-Re,Ne=T.left-xe,Fe=T.width+Ne,Le=Math.max(Fe,O.width),ze=window.innerWidth-Vo,qe=RX(xe,[Vo,Math.max(Vo,ze-Le)]);o.style.minWidth=Fe+"px",o.style.left=qe+"px"}else{const Re=O.right-D.right,xe=window.innerWidth-I.right-Re,Ne=window.innerWidth-T.right-xe,Fe=T.width+Ne,Le=Math.max(Fe,O.width),ze=window.innerWidth-Vo,qe=RX(xe,[Vo,Math.max(Vo,ze-Le)]);o.style.minWidth=Fe+"px",o.style.right=qe+"px"}const P=h(),B=window.innerHeight-Vo*2,L=b.scrollHeight,$=window.getComputedStyle(u),q=parseInt($.borderTopWidth,10),F=parseInt($.paddingTop,10),G=parseInt($.borderBottomWidth,10),H=parseInt($.paddingBottom,10),K=q+F+L+H+G,V=Math.min(v.offsetHeight*5,K),Y=window.getComputedStyle(b),Z=parseInt(Y.paddingTop,10),W=parseInt(Y.paddingBottom,10),Q=T.top+T.height/2-Vo,re=B-Q,se=v.offsetHeight/2,J=v.offsetTop+se,ae=q+F+J,ge=K-ae;if(ae<=Q){const Re=P.length>0&&v===P[P.length-1].ref.current;o.style.bottom="0px";const xe=u.clientHeight-b.offsetTop-b.offsetHeight,Ne=Math.max(re,se+(Re?W:0)+xe+G),Fe=ae+Ne;o.style.height=Fe+"px"}else{const Re=P.length>0&&v===P[0].ref.current;o.style.top="0px";const Ne=Math.max(Q,q+b.offsetTop+(Re?Z:0)+se)+ge;o.style.height=Ne+"px",b.scrollTop=ae-Q+b.offsetTop}o.style.margin=`${Vo}px 0`,o.style.minHeight=V+"px",o.style.maxHeight=B+"px",r?.(),requestAnimationFrame(()=>m.current=!0)}},[h,s.trigger,s.valueNode,o,u,b,v,E,s.dir,r]);gs(()=>_(),[_]);const[S,A]=C.useState();gs(()=>{u&&A(window.getComputedStyle(u).zIndex)},[u]);const R=C.useCallback(T=>{T&&g.current===!0&&(_(),x?.(),g.current=!1)},[_,x]);return j.jsx(znt,{scope:n,contentWrapper:o,shouldExpandOnScrollRef:m,onScrollButtonChange:R,children:j.jsx("div",{ref:l,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:S},children:j.jsx(wt.div,{...i,ref:d,style:{boxSizing:"border-box",maxHeight:"100%",...i.style}})})})});x0e.displayName=Unt;var jnt="SelectPopperPosition",VP=C.forwardRef((t,e)=>{const{__scopeSelect:n,align:r="start",collisionPadding:i=Vo,...s}=t,a=p3(n);return j.jsx(e3,{...a,...s,ref:e,align:r,collisionPadding:i,style:{boxSizing:"border-box",...s.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)"}})});VP.displayName=jnt;var[znt,dF]=W0(Zh,{}),qP="SelectViewport",w0e=C.forwardRef((t,e)=>{const{__scopeSelect:n,nonce:r,...i}=t,s=wf(qP,n),a=dF(qP,n),o=nn(e,s.onViewportChange),l=C.useRef(0);return j.jsxs(j.Fragment,{children:[j.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}),j.jsx(f3.Slot,{scope:n,children:j.jsx(wt.div,{"data-radix-select-viewport":"",role:"presentation",...i,ref:o,style:{position:"relative",flex:1,overflow:"hidden auto",...i.style},onScroll:tt(i.onScroll,u=>{const c=u.currentTarget,{contentWrapper:d,shouldExpandOnScrollRef:h}=a;if(h?.current&&d){const m=Math.abs(l.current-c.scrollTop);if(m>0){const g=window.innerHeight-Vo*2,b=parseFloat(d.style.minHeight),v=parseFloat(d.style.height),E=Math.max(b,v);if(E<g){const x=E+m,_=Math.min(g,x),S=x-_;d.style.height=_+"px",d.style.bottom==="0px"&&(c.scrollTop=S>0?S:0,d.style.justifyContent="flex-end")}}}l.current=c.scrollTop})})})]})});w0e.displayName=qP;var S0e="SelectGroup",[Vnt,qnt]=W0(S0e),C0e=C.forwardRef((t,e)=>{const{__scopeSelect:n,...r}=t,i=wo();return j.jsx(Vnt,{scope:n,id:i,children:j.jsx(wt.div,{role:"group","aria-labelledby":i,...r,ref:e})})});C0e.displayName=S0e;var T0e="SelectLabel",A0e=C.forwardRef((t,e)=>{const{__scopeSelect:n,...r}=t,i=qnt(T0e,n);return j.jsx(wt.div,{id:i.id,...r,ref:e})});A0e.displayName=T0e;var qS="SelectItem",[Gnt,R0e]=W0(qS),N0e=C.forwardRef((t,e)=>{const{__scopeSelect:n,value:r,disabled:i=!1,textValue:s,...a}=t,o=xf(qS,n),l=wf(qS,n),u=o.value===r,[c,d]=C.useState(s??""),[h,m]=C.useState(!1),g=nn(e,x=>l.itemRefCallback?.(x,r,i)),b=wo(),v=C.useRef("touch"),E=()=>{i||(o.onValueChange(r),o.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 j.jsx(Gnt,{scope:n,value:r,disabled:i,textId:b,isSelected:u,onItemTextChange:C.useCallback(x=>{d(_=>_||(x?.textContent??"").trim())},[]),children:j.jsx(f3.ItemSlot,{scope:n,value:r,disabled:i,textValue:c,children:j.jsx(wt.div,{role:"option","aria-labelledby":b,"data-highlighted":h?"":void 0,"aria-selected":u&&h,"data-state":u?"checked":"unchecked","aria-disabled":i||void 0,"data-disabled":i?"":void 0,tabIndex:i?void 0:-1,...a,ref:g,onFocus:tt(a.onFocus,()=>m(!0)),onBlur:tt(a.onBlur,()=>m(!1)),onClick:tt(a.onClick,()=>{v.current!=="mouse"&&E()}),onPointerUp:tt(a.onPointerUp,()=>{v.current==="mouse"&&E()}),onPointerDown:tt(a.onPointerDown,x=>{v.current=x.pointerType}),onPointerMove:tt(a.onPointerMove,x=>{v.current=x.pointerType,i?l.onItemLeave?.():v.current==="mouse"&&x.currentTarget.focus({preventScroll:!0})}),onPointerLeave:tt(a.onPointerLeave,x=>{x.currentTarget===document.activeElement&&l.onItemLeave?.()}),onKeyDown:tt(a.onKeyDown,x=>{l.searchRef?.current!==""&&x.key===" "||(Int.includes(x.key)&&E(),x.key===" "&&x.preventDefault())})})})})});N0e.displayName=qS;var jy="SelectItemText",O0e=C.forwardRef((t,e)=>{const{__scopeSelect:n,className:r,style:i,...s}=t,a=xf(jy,n),o=wf(jy,n),l=R0e(jy,n),u=Lnt(jy,n),[c,d]=C.useState(null),h=nn(e,E=>d(E),l.onItemTextChange,E=>o.itemTextRefCallback?.(E,l.value,l.disabled)),m=c?.textContent,g=C.useMemo(()=>j.jsx("option",{value:l.value,disabled:l.disabled,children:m},l.value),[l.disabled,l.value,m]),{onNativeOptionAdd:b,onNativeOptionRemove:v}=u;return gs(()=>(b(g),()=>v(g)),[b,v,g]),j.jsxs(j.Fragment,{children:[j.jsx(wt.span,{id:l.textId,...s,ref:h}),l.isSelected&&a.valueNode&&!a.valueNodeHasChildren?ks.createPortal(s.children,a.valueNode):null]})});O0e.displayName=jy;var k0e="SelectItemIndicator",I0e=C.forwardRef((t,e)=>{const{__scopeSelect:n,...r}=t;return R0e(k0e,n).isSelected?j.jsx(wt.span,{"aria-hidden":!0,...r,ref:e}):null});I0e.displayName=k0e;var GP="SelectScrollUpButton",M0e=C.forwardRef((t,e)=>{const n=wf(GP,t.__scopeSelect),r=dF(GP,t.__scopeSelect),[i,s]=C.useState(!1),a=nn(e,r.onScrollButtonChange);return gs(()=>{if(n.viewport&&n.isPositioned){let o=function(){const u=l.scrollTop>0;s(u)};const l=n.viewport;return o(),l.addEventListener("scroll",o),()=>l.removeEventListener("scroll",o)}},[n.viewport,n.isPositioned]),i?j.jsx(P0e,{...t,ref:a,onAutoScroll:()=>{const{viewport:o,selectedItem:l}=n;o&&l&&(o.scrollTop=o.scrollTop-l.offsetHeight)}}):null});M0e.displayName=GP;var WP="SelectScrollDownButton",D0e=C.forwardRef((t,e)=>{const n=wf(WP,t.__scopeSelect),r=dF(WP,t.__scopeSelect),[i,s]=C.useState(!1),a=nn(e,r.onScrollButtonChange);return gs(()=>{if(n.viewport&&n.isPositioned){let o=function(){const u=l.scrollHeight-l.clientHeight,c=Math.ceil(l.scrollTop)<u;s(c)};const l=n.viewport;return o(),l.addEventListener("scroll",o),()=>l.removeEventListener("scroll",o)}},[n.viewport,n.isPositioned]),i?j.jsx(P0e,{...t,ref:a,onAutoScroll:()=>{const{viewport:o,selectedItem:l}=n;o&&l&&(o.scrollTop=o.scrollTop+l.offsetHeight)}}):null});D0e.displayName=WP;var P0e=C.forwardRef((t,e)=>{const{__scopeSelect:n,onAutoScroll:r,...i}=t,s=wf("SelectScrollButton",n),a=C.useRef(null),o=h3(n),l=C.useCallback(()=>{a.current!==null&&(window.clearInterval(a.current),a.current=null)},[]);return C.useEffect(()=>()=>l(),[l]),gs(()=>{o().find(c=>c.ref.current===document.activeElement)?.ref.current?.scrollIntoView({block:"nearest"})},[o]),j.jsx(wt.div,{"aria-hidden":!0,...i,ref:e,style:{flexShrink:0,...i.style},onPointerDown:tt(i.onPointerDown,()=>{a.current===null&&(a.current=window.setInterval(r,50))}),onPointerMove:tt(i.onPointerMove,()=>{s.onItemLeave?.(),a.current===null&&(a.current=window.setInterval(r,50))}),onPointerLeave:tt(i.onPointerLeave,()=>{l()})})}),Wnt="SelectSeparator",L0e=C.forwardRef((t,e)=>{const{__scopeSelect:n,...r}=t;return j.jsx(wt.div,{"aria-hidden":!0,...r,ref:e})});L0e.displayName=Wnt;var YP="SelectArrow",Ynt=C.forwardRef((t,e)=>{const{__scopeSelect:n,...r}=t,i=p3(n),s=xf(YP,n),a=wf(YP,n);return s.open&&a.position==="popper"?j.jsx(t3,{...i,...r,ref:e}):null});Ynt.displayName=YP;var Knt="SelectBubbleInput",$0e=C.forwardRef(({__scopeSelect:t,value:e,...n},r)=>{const i=C.useRef(null),s=nn(r,i),a=WT(e);return C.useEffect(()=>{const o=i.current;if(!o)return;const l=window.HTMLSelectElement.prototype,c=Object.getOwnPropertyDescriptor(l,"value").set;if(a!==e&&c){const d=new Event("change",{bubbles:!0});c.call(o,e),o.dispatchEvent(d)}},[a,e]),j.jsx(wt.select,{...n,style:{...ige,...n.style},ref:s,defaultValue:e})});$0e.displayName=Knt;function F0e(t){return t===""||t===void 0}function B0e(t){const e=hu(t),n=C.useRef(""),r=C.useRef(0),i=C.useCallback(a=>{const o=n.current+a;e(o),(function l(u){n.current=u,window.clearTimeout(r.current),u!==""&&(r.current=window.setTimeout(()=>l(""),1e3))})(o)},[e]),s=C.useCallback(()=>{n.current="",window.clearTimeout(r.current)},[]);return C.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,i,s]}function H0e(t,e,n){const i=e.length>1&&Array.from(e).every(u=>u===e[0])?e[0]:e,s=n?t.indexOf(n):-1;let a=Xnt(t,Math.max(s,0));i.length===1&&(a=a.filter(u=>u!==n));const l=a.find(u=>u.textValue.toLowerCase().startsWith(i.toLowerCase()));return l!==n?l:void 0}function Xnt(t,e){return t.map((n,r)=>t[(e+r)%t.length])}var fIt=f0e,hIt=p0e,pIt=g0e,mIt=y0e,gIt=b0e,yIt=v0e,bIt=w0e,vIt=C0e,EIt=A0e,_It=N0e,xIt=O0e,wIt=I0e,SIt=M0e,CIt=D0e,TIt=L0e,m3="Tabs",[Qnt]=Ji(m3,[xu]),U0e=xu(),[Znt,fF]=Qnt(m3),j0e=C.forwardRef((t,e)=>{const{__scopeTabs:n,value:r,onValueChange:i,defaultValue:s,orientation:a="horizontal",dir:o,activationMode:l="automatic",...u}=t,c=Op(o),[d,h]=fa({prop:r,onChange:i,defaultProp:s??"",caller:m3});return j.jsx(Znt,{scope:n,baseId:wo(),value:d,onValueChange:h,orientation:a,dir:c,activationMode:l,children:j.jsx(wt.div,{dir:c,"data-orientation":a,...u,ref:e})})});j0e.displayName=m3;var z0e="TabsList",V0e=C.forwardRef((t,e)=>{const{__scopeTabs:n,loop:r=!0,...i}=t,s=fF(z0e,n),a=U0e(n);return j.jsx($2,{asChild:!0,...a,orientation:s.orientation,dir:s.dir,loop:r,children:j.jsx(wt.div,{role:"tablist","aria-orientation":s.orientation,...i,ref:e})})});V0e.displayName=z0e;var q0e="TabsTrigger",G0e=C.forwardRef((t,e)=>{const{__scopeTabs:n,value:r,disabled:i=!1,...s}=t,a=fF(q0e,n),o=U0e(n),l=K0e(a.baseId,r),u=X0e(a.baseId,r),c=r===a.value;return j.jsx(j0,{asChild:!0,...o,focusable:!i,active:c,children:j.jsx(wt.button,{type:"button",role:"tab","aria-selected":c,"aria-controls":u,"data-state":c?"active":"inactive","data-disabled":i?"":void 0,disabled:i,id:l,...s,ref:e,onMouseDown:tt(t.onMouseDown,d=>{!i&&d.button===0&&d.ctrlKey===!1?a.onValueChange(r):d.preventDefault()}),onKeyDown:tt(t.onKeyDown,d=>{[" ","Enter"].includes(d.key)&&a.onValueChange(r)}),onFocus:tt(t.onFocus,()=>{const d=a.activationMode!=="manual";!c&&!i&&d&&a.onValueChange(r)})})})});G0e.displayName=q0e;var W0e="TabsContent",Y0e=C.forwardRef((t,e)=>{const{__scopeTabs:n,value:r,forceMount:i,children:s,...a}=t,o=fF(W0e,n),l=K0e(o.baseId,r),u=X0e(o.baseId,r),c=r===o.value,d=C.useRef(c);return C.useEffect(()=>{const h=requestAnimationFrame(()=>d.current=!1);return()=>cancelAnimationFrame(h)},[]),j.jsx($s,{present:i||c,children:({present:h})=>j.jsx(wt.div,{"data-state":c?"active":"inactive","data-orientation":o.orientation,role:"tabpanel","aria-labelledby":l,hidden:!h,id:u,tabIndex:0,...a,ref:e,style:{...t.style,animationDuration:d.current?"0s":void 0},children:h&&s})})});
vendor: 4,292 bytes, line 134
134Y0e.displayName=W0e;function K0e(t,e){return`${t}-trigger-${e}`}function X0e(t,e){return`${t}-content-${e}`}var AIt=j0e,RIt=V0e,NIt=G0e,OIt=Y0e;const Q0e=6048e5,Jnt=864e5,ert=6e4,trt=36e5,nrt=1e3,NX=Symbol.for("constructDateFrom");function Bn(t,e){return typeof t=="function"?t(e):t&&typeof t=="object"&&NX in t?t[NX](e):t instanceof Date?new t.constructor(e):new Date(e)}function an(t,e){return Bn(e||t,t)}function q2(t,e,n){const r=an(t,n?.in);return isNaN(e)?Bn(n?.in||t,NaN):(e&&r.setDate(r.getDate()+e),r)}function hF(t,e,n){const r=an(t,n?.in);if(isNaN(e))return Bn(t,NaN);if(!e)return r;const i=r.getDate(),s=Bn(t,r.getTime());s.setMonth(r.getMonth()+e+1,0);const a=s.getDate();return i>=a?s:(r.setFullYear(s.getFullYear(),s.getMonth(),i),r)}let rrt={};function $p(){return rrt}function Pc(t,e){const n=$p(),r=e?.weekStartsOn??e?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,i=an(t,e?.in),s=i.getDay(),a=(s<r?7:0)+s-r;return i.setDate(i.getDate()-a),i.setHours(0,0,0,0),i}function Jh(t,e){return Pc(t,{...e,weekStartsOn:1})}function Z0e(t,e){const n=an(t,e?.in),r=n.getFullYear(),i=Bn(n,0);i.setFullYear(r+1,0,4),i.setHours(0,0,0,0);const s=Jh(i),a=Bn(n,0);a.setFullYear(r,0,4),a.setHours(0,0,0,0);const o=Jh(a);return n.getTime()>=s.getTime()?r+1:n.getTime()>=o.getTime()?r:r-1}function GS(t){const e=an(t),n=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return n.setUTCFullYear(e.getFullYear()),+t-+n}function Fp(t,...e){const n=Bn.bind(null,e.find(r=>typeof r=="object"));return e.map(n)}function ov(t,e){const n=an(t,e?.in);return n.setHours(0,0,0,0),n}function g3(t,e,n){const[r,i]=Fp(n?.in,t,e),s=ov(r),a=ov(i),o=+s-GS(s),l=+a-GS(a);return Math.round((o-l)/Jnt)}function irt(t,e){const n=Z0e(t,e),r=Bn(t,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),Jh(r)}function srt(t,e,n){return q2(t,e*7,n)}function J0e(t,e,n){return hF(t,e*12,n)}function art(t,e){let n,r=e?.in;return t.forEach(i=>{!r&&typeof i=="object"&&(r=Bn.bind(null,i));const s=an(i,r);(!n||n<s||isNaN(+s))&&(n=s)}),Bn(r,n||NaN)}function ort(t,e){let n,r=e?.in;return t.forEach(i=>{!r&&typeof i=="object"&&(r=Bn.bind(null,i));const s=an(i,r);(!n||n>s||isNaN(+s))&&(n=s)}),Bn(r,n||NaN)}function lrt(t,e,n){const[r,i]=Fp(n?.in,t,e);return+ov(r)==+ov(i)}function e1e(t){return t instanceof Date||typeof t=="object"&&Object.prototype.toString.call(t)==="[object Date]"}function urt(t){return!(!e1e(t)&&typeof t!="number"||isNaN(+an(t)))}function t1e(t,e,n){const[r,i]=Fp(n?.in,t,e),s=r.getFullYear()-i.getFullYear(),a=r.getMonth()-i.getMonth();return s*12+a}function kIt(t,e,n){const[r,i]=Fp(n?.in,t,e),s=OX(r,i),a=Math.abs(g3(r,i));r.setDate(r.getDate()-s*a);const o=+(OX(r,i)===-s),l=s*(a-o);return l===0?0:l}function OX(t,e){const n=t.getFullYear()-e.getFullYear()||t.getMonth()-e.getMonth()||t.getDate()-e.getDate()||t.getHours()-e.getHours()||t.getMinutes()-e.getMinutes()||t.getSeconds()-e.getSeconds()||t.getMilliseconds()-e.getMilliseconds();return n<0?-1:n>0?1:n}function crt(t,e){const n=an(t,e?.in),r=n.getMonth();return n.setFullYear(n.getFullYear(),r+1,0),n.setHours(23,59,59,999),n}function n1e(t,e){const[n,r]=Fp(t,e.start,e.end);return{start:n,end:r}}function drt(t,e){const{start:n,end:r}=n1e(e?.in,t);let i=+n>+r;const s=i?+n:+r,a=i?r:n;a.setHours(0,0,0,0),a.setDate(1);let o=1;const l=[];for(;+a<=s;)l.push(Bn(n,a)),a.setMonth(a.getMonth()+o);return i?l.reverse():l}function frt(t,e){const n=an(t,e?.in);return n.setDate(1),n.setHours(0,0,0,0),n}function hrt(t,e){const n=an(t,e?.in),r=n.getFullYear();return n.setFullYear(r+1,0,0),n.setHours(23,59,59,999),n}function r1e(t,e){const n=an(t,e?.in);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}function prt(t,e){const{start:n,end:r}=n1e(e?.in,t);let i=+n>+r;const s=i?+n:+r,a=i?r:n;a.setHours(0,0,0,0),a.setMonth(0,1);let o=1;const l=[];for(;+a<=s;)l.push(Bn(n,a)),a.setFullYear(a.getFullYear()+o);return i?l.reverse():l}function i1e(t,e){const n=$p(),r=e?.weekStartsOn??e?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,i=an(t,e?.in),s=i.getDay(),a=(s<r?-7:0)+6-(s-r);return i.setDate(i.getDate()+a),i.setHours(23,59,59,999),i}function mrt(t,e){return i1e(t,{...e,weekStartsOn:1}
vendor: 17,728 bytes, line 134
134)}const grt={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"}},yrt=(t,e,n)=>{let r;const i=grt[t];return typeof i=="string"?r=i:e===1?r=i.one:r=i.other.replace("{{count}}",e.toString()),n?.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};function R4(t){return(e={})=>{const n=e.width?String(e.width):t.defaultWidth;return t.formats[n]||t.formats[t.defaultWidth]}}const brt={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},vrt={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Ert={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},_rt={date:R4({formats:brt,defaultWidth:"full"}),time:R4({formats:vrt,defaultWidth:"full"}),dateTime:R4({formats:Ert,defaultWidth:"full"})},xrt={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},wrt=(t,e,n,r)=>xrt[t];function wy(t){return(e,n)=>{const r=n?.context?String(n.context):"standalone";let i;if(r==="formatting"&&t.formattingValues){const a=t.defaultFormattingWidth||t.defaultWidth,o=n?.width?String(n.width):a;i=t.formattingValues[o]||t.formattingValues[a]}else{const a=t.defaultWidth,o=n?.width?String(n.width):t.defaultWidth;i=t.values[o]||t.values[a]}const s=t.argumentCallback?t.argumentCallback(e):e;return i[s]}}const Srt={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Crt={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},Trt={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"]},Art={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"]},Rrt={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"}},Nrt={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"}},Ort=(t,e)=>{const n=Number(t),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"},krt={ordinalNumber:Ort,era:wy({values:Srt,defaultWidth:"wide"}),quarter:wy({values:Crt,defaultWidth:"wide",argumentCallback:t=>t-1}),month:wy({values:Trt,defaultWidth:"wide"}),day:wy({values:Art,defaultWidth:"wide"}),dayPeriod:wy({values:Rrt,defaultWidth:"wide",formattingValues:Nrt,defaultFormattingWidth:"wide"})};function Sy(t){return(e,n={})=>{const r=n.width,i=r&&t.matchPatterns[r]||t.matchPatterns[t.defaultMatchWidth],s=e.match(i);if(!s)return null;const a=s[0],o=r&&t.parsePatterns[r]||t.parsePatterns[t.defaultParseWidth],l=Array.isArray(o)?Mrt(o,d=>d.test(a)):Irt(o,d=>d.test(a));let u;u=t.valueCallback?t.valueCallback(l):l,u=n.valueCallback?n.valueCallback(u):u;const c=e.slice(a.length);return{value:u,rest:c}}}function Irt(t,e){for(const n in t)if(Object.prototype.hasOwnProperty.call(t,n)&&e(t[n]))return n}function Mrt(t,e){for(let n=0;n<t.length;n++)if(e(t[n]))return n}function Drt(t){return(e,n={})=>{const r=e.match(t.matchPattern);if(!r)return null;const i=r[0],s=e.match(t.parsePattern);if(!s)return null;let a=t.valueCallback?t.valueCallback(s[0]):s[0];a=n.valueCallback?n.valueCallback(a):a;const o=e.slice(i.length);return{value:a,rest:o}}}const Prt=/^(\d+)(th|st|nd|rd)?/i,Lrt=/\d+/i,$rt={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},Frt={any:[/^b/i,/^(a|c)/i]},Brt={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},Hrt={any:[/1/i,/2/i,/3/i,/4/i]},Urt={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},jrt={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]},zrt={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},Vrt={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]},qrt={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},Grt={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}},Wrt={ordinalNumber:Drt({matchPattern:Prt,parsePattern:Lrt,valueCallback:t=>parseInt(t,10)}),era:Sy({matchPatterns:$rt,defaultMatchWidth:"wide",parsePatterns:Frt,defaultParseWidth:"any"}),quarter:Sy({matchPatterns:Brt,defaultMatchWidth:"wide",parsePatterns:Hrt,defaultParseWidth:"any",valueCallback:t=>t+1}),month:Sy({matchPatterns:Urt,defaultMatchWidth:"wide",parsePatterns:jrt,defaultParseWidth:"any"}),day:Sy({matchPatterns:zrt,defaultMatchWidth:"wide",parsePatterns:Vrt,defaultParseWidth:"any"}),dayPeriod:Sy({matchPatterns:qrt,defaultMatchWidth:"any",parsePatterns:Grt,defaultParseWidth:"any"})},uh={code:"en-US",formatDistance:yrt,formatLong:_rt,formatRelative:wrt,localize:krt,match:Wrt,options:{weekStartsOn:0,firstWeekContainsDate:1}};function Yrt(t,e){const n=an(t,e?.in);return g3(n,r1e(n))+1}function y3(t,e){const n=an(t,e?.in),r=+Jh(n)-+irt(n);return Math.round(r/Q0e)+1}function pF(t,e){const n=an(t,e?.in),r=n.getFullYear(),i=$p(),s=e?.firstWeekContainsDate??e?.locale?.options?.firstWeekContainsDate??i.firstWeekContainsDate??i.locale?.options?.firstWeekContainsDate??1,a=Bn(e?.in||t,0);a.setFullYear(r+1,0,s),a.setHours(0,0,0,0);const o=Pc(a,e),l=Bn(e?.in||t,0);l.setFullYear(r,0,s),l.setHours(0,0,0,0);const u=Pc(l,e);return+n>=+o?r+1:+n>=+u?r:r-1}function Krt(t,e){const n=$p(),r=e?.firstWeekContainsDate??e?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,i=pF(t,e),s=Bn(e?.in||t,0);return s.setFullYear(i,0,r),s.setHours(0,0,0,0),Pc(s,e)}function b3(t,e){const n=an(t,e?.in),r=+Pc(n,e)-+Krt(n,e);return Math.round(r/Q0e)+1}function mn(t,e){const n=t<0?"-":"",r=Math.abs(t).toString().padStart(e,"0");return n+r}const Cd={y(t,e){const n=t.getFullYear(),r=n>0?n:1-n;return mn(e==="yy"?r%100:r,e.length)},M(t,e){const n=t.getMonth();return e==="M"?String(n+1):mn(n+1,2)},d(t,e){return mn(t.getDate(),e.length)},a(t,e){const n=t.getHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];default:return n==="am"?"a.m.":"p.m."}},h(t,e){return mn(t.getHours()%12||12,e.length)},H(t,e){return mn(t.getHours(),e.length)},m(t,e){return mn(t.getMinutes(),e.length)},s(t,e){return mn(t.getSeconds(),e.length)},S(t,e){const n=e.length,r=t.getMilliseconds(),i=Math.trunc(r*Math.pow(10,n-3));return mn(i,e.length)}},Bm={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},kX={G:function(t,e,n){const r=t.getFullYear()>0?1:0;switch(e){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});default:return n.era(r,{width:"wide"})}},y:function(t,e,n){if(e==="yo"){const r=t.getFullYear(),i=r>0?r:1-r;return n.ordinalNumber(i,{unit:"year"})}return Cd.y(t,e)},Y:function(t,e,n,r){const i=pF(t,r),s=i>0?i:1-i;if(e==="YY"){const a=s%100;return mn(a,2)}return e==="Yo"?n.ordinalNumber(s,{unit:"year"}):mn(s,e.length)},R:function(t,e){const n=Z0e(t);return mn(n,e.length)},u:function(t,e){const n=t.getFullYear();return mn(n,e.length)},Q:function(t,e,n){const r=Math.ceil((t.getMonth()+1)/3);switch(e){case"Q":return String(r);case"QQ":return mn(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"});default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(t,e,n){const r=Math.ceil((t.getMonth()+1)/3);switch(e){case"q":return String(r);case"qq":return mn(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"});default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(t,e,n){const r=t.getMonth();switch(e){case"M":case"MM":return Cd.M(t,e);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"});default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(t,e,n){const r=t.getMonth();switch(e){case"L":return String(r+1);case"LL":return mn(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"});default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(t,e,n,r){const i=b3(t,r);return e==="wo"?n.ordinalNumber(i,{unit:"week"}):mn(i,e.length)},I:function(t,e,n){const r=y3(t);return e==="Io"?n.ordinalNumber(r,{unit:"week"}):mn(r,e.length)},d:function(t,e,n){return e==="do"?n.ordinalNumber(t.getDate(),{unit:"date"}):Cd.d(t,e)},D:function(t,e,n){const r=Yrt(t);return e==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):mn(r,e.length)},E:function(t,e,n){const r=t.getDay();switch(e){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"});default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(t,e,n,r){const i=t.getDay(),s=(i-r.weekStartsOn+8)%7||7;switch(e){case"e":return String(s);case"ee":return mn(s,2);case"eo":return n.ordinalNumber(s,{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"});default:return n.day(i,{width:"wide",context:"formatting"})}},c:function(t,e,n,r){const i=t.getDay(),s=(i-r.weekStartsOn+8)%7||7;switch(e){case"c":return String(s);case"cc":return mn(s,e.length);case"co":return n.ordinalNumber(s,{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"});default:return n.day(i,{width:"wide",context:"standalone"})}},i:function(t,e,n){const r=t.getDay(),i=r===0?7:r;switch(e){case"i":return String(i);case"ii":return mn(i,e.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"});default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(t,e,n){const i=t.getHours()/12>=1?"pm":"am";switch(e){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"});default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},b:function(t,e,n){const r=t.getHours();let i;switch(r===12?i=Bm.noon:r===0?i=Bm.midnight:i=r/12>=1?"pm":"am",e){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"});default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},B:function(t,e,n){const r=t.getHours();let i;switch(r>=17?i=Bm.evening:r>=12?i=Bm.afternoon:r>=4?i=Bm.morning:i=Bm.night,e){case"B":case"BB":case"BBB":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(i,{width:"narrow",context:"formatting"});default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},h:function(t,e,n){if(e==="ho"){let r=t.getHours()%12;return r===0&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return Cd.h(t,e)},H:function(t,e,n){return e==="Ho"?n.ordinalNumber(t.getHours(),{unit:"hour"}):Cd.H(t,e)},K:function(t,e,n){const r=t.getHours()%12;return e==="Ko"?n.ordinalNumber(r,{unit:"hour"}):mn(r,e.length)},k:function(t,e,n){let r=t.getHours();return r===0&&(r=24),e==="ko"?n.ordinalNumber(r,{unit:"hour"}):mn(r,e.length)},m:function(t,e,n){return e==="mo"?n.ordinalNumber(t.getMinutes(),{unit:"minute"}):Cd.m(t,e)},s:function(t,e,n){return e==="so"?n.ordinalNumber(t.getSeconds(),{unit:"second"}):Cd.s(t,e)},S:function(t,e){return Cd.S(t,e)},X:function(t,e,n){const r=t.getTimezoneOffset();if(r===0)return"Z";switch(e){case"X":return MX(r);case"XXXX":case"XX":return ah(r);default:return ah(r,":")}},x:function(t,e,n){const r=t.getTimezoneOffset();switch(e){case"x":return MX(r);case"xxxx":case"xx":return ah(r);default:return ah(r,":")}},O:function(t,e,n){const r=t.getTimezoneOffset();switch(e){case"O":case"OO":case"OOO":return"GMT"+IX(r,":");default:return"GMT"+ah(r,":")}},z:function(t,e,n){const r=t.getTimezoneOffset();switch(e){case"z":case"zz":case"zzz":return"GMT"+IX(r,":");default:return"GMT"+ah(r,":")}},t:function(t,e,n){const r=Math.trunc(+t/1e3);return mn(r,e.length)},T:function(t,e,n){return mn(+t,e.length)}};function IX(t,e=""){const n=t>0?"-":"+",r=Math.abs(t),i=Math.trunc(r/60),s=r%60;return s===0?n+String(i):n+String(i)+e+mn(s,2)}function MX(t,e){return t%60===0?(t>0?"-":"+")+mn(Math.abs(t)/60,2):ah(t,e)}function ah(t,e=""){const n=t>0?"-":"+",r=Math.abs(t),i=mn(Math.trunc(r/60),2),s=mn(r%60,2);return n+i+e+s}const DX=(t,e)=>{switch(t){case"P":return e.date({width:"short"});case"PP":return e.date({width:"medium"});case"PPP":return e.date({width:"long"});default:return e.date({width:"full"})}},s1e=(t,e)=>{switch(t){case"p":return e.time({width:"short"});case"pp":return e.time({width:"medium"});case"ppp":return e.time({width:"long"});default:return e.time({width:"full"})}},Xrt=(t,e)=>{const n=t.match(/(P+)(p+)?/)||[],r=n[1],i=n[2];if(!i)return DX(t,e);let s;switch(r){case"P":s=e.dateTime({width:"short"});break;case"PP":s=e.dateTime({width:"medium"});break;case"PPP":s=e.dateTime({width:"long"});break;default:s=e.dateTime({width:"full"});break}return s.replace("{{date}}",DX(r,e)).replace("{{time}}",s1e(i,e))},KP={p:s1e,P:Xrt},Qrt=/^D+$/,Zrt=/^Y+$/,Jrt=["D","DD","YY","YYYY"];function a1e(t){return Qrt.test(t)}function o1e(t){return Zrt.test(t)}function XP(t,e,n){const r=eit(t,e,n);if(console.warn(r),Jrt.includes(t))throw new RangeError(r)}function eit(t,e,n){const r=t[0]==="Y"?"years":"days of the month";return`Use \`${t.toLowerCase()}\` instead of \`${t}\` (in \`${e}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const tit=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,nit=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,rit=/^'([^]*?)'?$/,iit=/''/g,sit=/[a-zA-Z]/;function zy(t,e,n){const r=$p(),i=n?.locale??r.locale??uh,s=n?.firstWeekContainsDate??n?.locale?.options?.firstWeekContainsDate??r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,a=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,o=an(t,n?.in);if(!urt(o))throw new RangeError("Invalid time value");let l=e.match(nit).map(c=>{const d=c[0];if(d==="p"||d==="P"){const h=KP[d];return h(c,i.formatLong)}return c}).join("").match(tit).map(c=>{if(c==="''")return{isToken:!1,value:"'"};const d=c[0];if(d==="'")return{isToken:!1,value:ait(c)};if(kX[d])return{isToken:!0,value:c};
vendor: 15,414 bytes, line 134
134if(d.match(sit))throw new RangeError("Format string contains an unescaped latin alphabet character `"+d+"`");return{isToken:!1,value:c}});i.localize.preprocessor&&(l=i.localize.preprocessor(o,l));const u={firstWeekContainsDate:s,weekStartsOn:a,locale:i};return l.map(c=>{if(!c.isToken)return c.value;const d=c.value;(!n?.useAdditionalWeekYearTokens&&o1e(d)||!n?.useAdditionalDayOfYearTokens&&a1e(d))&&XP(d,e,String(t));const h=kX[d[0]];return h(o,d,i.localize,u)}).join("")}function ait(t){const e=t.match(rit);return e?e[1].replace(iit,"'"):t}function IIt(t,e){const n=an(t,e?.in);if(isNaN(+n))throw new RangeError("Invalid time value");let r="",i="";const s="-",a=":";{const o=mn(n.getDate(),2),l=mn(n.getMonth()+1,2);r=`${mn(n.getFullYear(),4)}${s}${l}${s}${o}`}{const o=n.getTimezoneOffset();if(o!==0){const m=Math.abs(o),g=mn(Math.trunc(m/60),2),b=mn(m%60,2);i=`${o<0?"+":"-"}${g}:${b}`}else i="Z";const l=mn(n.getHours(),2),u=mn(n.getMinutes(),2),c=mn(n.getSeconds(),2),d=r===""?"":"T",h=[l,u,c].join(a);r=`${r}${d}${h}${i}`}return r}function oit(t,e){const n=an(t,e?.in),r=n.getFullYear(),i=n.getMonth(),s=Bn(n,0);return s.setFullYear(r,i+1,0),s.setHours(0,0,0,0),s.getDate()}function lit(){return Object.assign({},$p())}function uit(t,e){const n=an(t,e?.in).getDay();return n===0?7:n}function cit(t,e){return an(t,e?.in).getMonth()}function dit(t,e){return an(t,e?.in).getFullYear()}function fit(t,e){return+an(t)>+an(e)}function hit(t,e){return+an(t)<+an(e)}function MIt(t,e){return+an(t)==+an(e)}function pit(t,e){const n=mit(e)?new e(0):Bn(e,0);return n.setFullYear(t.getFullYear(),t.getMonth(),t.getDate()),n.setHours(t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()),n}function mit(t){return typeof t=="function"&&t.prototype?.constructor===t}const git=10;class l1e{subPriority=0;validate(e,n){return!0}}class yit extends l1e{constructor(e,n,r,i,s){super(),this.value=e,this.validateValue=n,this.setValue=r,this.priority=i,s&&(this.subPriority=s)}validate(e,n){return this.validateValue(e,this.value,n)}set(e,n,r){return this.setValue(e,n,this.value,r)}}class bit extends l1e{priority=git;subPriority=-1;constructor(e,n){super(),this.context=e||(r=>Bn(n,r))}set(e,n){return n.timestampIsSet?e:Bn(e,pit(e,this.context))}}class $n{run(e,n,r,i){const s=this.parse(e,n,r,i);return s?{setter:new yit(s.value,this.validate,this.set,this.priority,this.subPriority),rest:s.rest}:null}validate(e,n,r){return!0}}class vit extends $n{priority=140;parse(e,n,r){switch(n){case"G":case"GG":case"GGG":return r.era(e,{width:"abbreviated"})||r.era(e,{width:"narrow"});case"GGGGG":return r.era(e,{width:"narrow"});default:return r.era(e,{width:"wide"})||r.era(e,{width:"abbreviated"})||r.era(e,{width:"narrow"})}}set(e,n,r){return n.era=r,e.setFullYear(r,0,1),e.setHours(0,0,0,0),e}incompatibleTokens=["R","u","t","T"]}const Jr={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/},Wl={basicOptionalMinutes:/^([+-])(\d{2})(\d{2})?|Z/,basic:/^([+-])(\d{2})(\d{2})|Z/,basicOptionalSeconds:/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,extended:/^([+-])(\d{2}):(\d{2})|Z/,extendedOptionalSeconds:/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/};function ei(t,e){return t&&{value:e(t.value),rest:t.rest}}function Mr(t,e){const n=e.match(t);return n?{value:parseInt(n[0],10),rest:e.slice(n[0].length)}:null}function Yl(t,e){const n=e.match(t);if(!n)return null;if(n[0]==="Z")return{value:0,rest:e.slice(1)};const r=n[1]==="+"?1:-1,i=n[2]?parseInt(n[2],10):0,s=n[3]?parseInt(n[3],10):0,a=n[5]?parseInt(n[5],10):0;return{value:r*(i*trt+s*ert+a*nrt),rest:e.slice(n[0].length)}}function u1e(t){return Mr(Jr.anyDigitsSigned,t)}function Ur(t,e){switch(t){case 1:return Mr(Jr.singleDigit,e);case 2:return Mr(Jr.twoDigits,e);case 3:return Mr(Jr.threeDigits,e);case 4:return Mr(Jr.fourDigits,e);default:return Mr(new RegExp("^\\d{1,"+t+"}"),e)}}function WS(t,e){switch(t){case 1:return Mr(Jr.singleDigitSigned,e);case 2:return Mr(Jr.twoDigitsSigned,e);case 3:return Mr(Jr.threeDigitsSigned,e);case 4:return Mr(Jr.fourDigitsSigned,e);default:return Mr(new RegExp("^-?\\d{1,"+t+"}"),e)}}function mF(t){switch(t){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;default:return 0}}function c1e(t,e){const n=e>0,r=n?e:1-e;let i;if(r<=50)i=t||100;else{const s=r+50,a=Math.trunc(s/100)*100,o=t>=s%100;i=t+a-(o?100:0)}return n?i:1-i}function d1e(t){return t%400===0||t%4===0&&t%100!==0}class Eit extends $n{priority=130;incompatibleTokens=["Y","R","u","w","I","i","e","c","t","T"];parse(e,n,r){const i=s=>({year:s,isTwoDigitYear:n==="yy"});switch(n){case"y":return ei(Ur(4,e),i);case"yo":return ei(r.ordinalNumber(e,{unit:"year"}),i);default:return ei(Ur(n.length,e),i)}}validate(e,n){return n.isTwoDigitYear||n.year>0}set(e,n,r){const i=e.getFullYear();if(r.isTwoDigitYear){const a=c1e(r.year,i);return e.setFullYear(a,0,1),e.setHours(0,0,0,0),e}const s=!("era"in n)||n.era===1?r.year:1-r.year;return e.setFullYear(s,0,1),e.setHours(0,0,0,0),e}}class _it extends $n{priority=130;parse(e,n,r){const i=s=>({year:s,isTwoDigitYear:n==="YY"});switch(n){case"Y":return ei(Ur(4,e),i);case"Yo":return ei(r.ordinalNumber(e,{unit:"year"}),i);default:return ei(Ur(n.length,e),i)}}validate(e,n){return n.isTwoDigitYear||n.year>0}set(e,n,r,i){const s=pF(e,i);if(r.isTwoDigitYear){const o=c1e(r.year,s);return e.setFullYear(o,0,i.firstWeekContainsDate),e.setHours(0,0,0,0),Pc(e,i)}const a=!("era"in n)||n.era===1?r.year:1-r.year;return e.setFullYear(a,0,i.firstWeekContainsDate),e.setHours(0,0,0,0),Pc(e,i)}incompatibleTokens=["y","R","u","Q","q","M","L","I","d","D","i","t","T"]}class xit extends $n{priority=130;parse(e,n){return WS(n==="R"?4:n.length,e)}set(e,n,r){const i=Bn(e,0);return i.setFullYear(r,0,4),i.setHours(0,0,0,0),Jh(i)}incompatibleTokens=["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]}class wit extends $n{priority=130;parse(e,n){return WS(n==="u"?4:n.length,e)}set(e,n,r){return e.setFullYear(r,0,1),e.setHours(0,0,0,0),e}incompatibleTokens=["G","y","Y","R","w","I","i","e","c","t","T"]}class Sit extends $n{priority=120;parse(e,n,r){switch(n){case"Q":case"QQ":return Ur(n.length,e);case"Qo":return r.ordinalNumber(e,{unit:"quarter"});case"QQQ":return r.quarter(e,{width:"abbreviated",context:"formatting"})||r.quarter(e,{width:"narrow",context:"formatting"});case"QQQQQ":return r.quarter(e,{width:"narrow",context:"formatting"});default:return r.quarter(e,{width:"wide",context:"formatting"})||r.quarter(e,{width:"abbreviated",context:"formatting"})||r.quarter(e,{width:"narrow",context:"formatting"})}}validate(e,n){return n>=1&&n<=4}set(e,n,r){return e.setMonth((r-1)*3,1),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]}class Cit extends $n{priority=120;parse(e,n,r){switch(n){case"q":case"qq":return Ur(n.length,e);case"qo":return r.ordinalNumber(e,{unit:"quarter"});case"qqq":return r.quarter(e,{width:"abbreviated",context:"standalone"})||r.quarter(e,{width:"narrow",context:"standalone"});case"qqqqq":return r.quarter(e,{width:"narrow",context:"standalone"});default:return r.quarter(e,{width:"wide",context:"standalone"})||r.quarter(e,{width:"abbreviated",context:"standalone"})||r.quarter(e,{width:"narrow",context:"standalone"})}}validate(e,n){return n>=1&&n<=4}set(e,n,r){return e.setMonth((r-1)*3,1),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]}class Tit extends $n{incompatibleTokens=["Y","R","q","Q","L","w","I","D","i","e","c","t","T"];priority=110;parse(e,n,r){const i=s=>s-1;switch(n){case"M":return ei(Mr(Jr.month,e),i);case"MM":return ei(Ur(2,e),i);case"Mo":return ei(r.ordinalNumber(e,{unit:"month"}),i);case"MMM":return r.month(e,{width:"abbreviated",context:"formatting"})||r.month(e,{width:"narrow",context:"formatting"});case"MMMMM":return r.month(e,{width:"narrow",context:"formatting"});default:return r.month(e,{width:"wide",context:"formatting"})||r.month(e,{width:"abbreviated",context:"formatting"})||r.month(e,{width:"narrow",context:"formatting"})}}validate(e,n){return n>=0&&n<=11}set(e,n,r){return e.setMonth(r,1),e.setHours(0,0,0,0),e}}class Ait extends $n{priority=110;parse(e,n,r){const i=s=>s-1;switch(n){case"L":return ei(Mr(Jr.month,e),i);case"LL":return ei(Ur(2,e),i);case"Lo":return ei(r.ordinalNumber(e,{unit:"month"}),i);case"LLL":return r.month(e,{width:"abbreviated",context:"standalone"})||r.month(e,{width:"narrow",context:"standalone"});case"LLLLL":return r.month(e,{width:"narrow",context:"standalone"});default:return r.month(e,{width:"wide",context:"standalone"})||r.month(e,{width:"abbreviated",context:"standalone"})||r.month(e,{width:"narrow",context:"standalone"})}}validate(e,n){return n>=0&&n<=11}set(e,n,r){return e.setMonth(r,1),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]}function Rit(t,e,n){const r=an(t,n?.in),i=b3(r,n)-e;return r.setDate(r.getDate()-i*7),an(r,n?.in)}class Nit extends $n{priority=100;parse(e,n,r){switch(n){case"w":return Mr(Jr.week,e);case"wo":return r.ordinalNumber(e,{unit:"week"});default:return Ur(n.length,e)}}validate(e,n){return n>=1&&n<=53}set(e,n,r,i){return Pc(Rit(e,r,i),i)}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","i","t","T"]}function Oit(t,e,n){const r=an(t,n?.in),i=y3(r,n)-e;return r.setDate(r.getDate()-i*7),r}class kit extends $n{priority=100;parse(e,n,r){switch(n){case"I":return Mr(Jr.week,e);case"Io":return r.ordinalNumber(e,{unit:"week"});default:return Ur(n.length,e)}}validate(e,n){return n>=1&&n<=53}set(e,n,r){return Jh(Oit(e,r))}incompatibleTokens=["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]}const Iit=[31,28,31,30,31,30,31,31,30,31,30,31],Mit=[31,29,31,30,31,30,31,31,30,31,30,31];class Dit extends $n{priority=90;subPriority=1;parse(e,n,r){switch(n){case"d":return Mr(Jr.date,e);case"do":return r.ordinalNumber(e,{unit:"date"});default:return Ur(n.length,e)}}validate(e,n){const r=e.getFullYear(),i=d1e(r),s=e.getMonth();return i?n>=1&&n<=Mit[s]:n>=1&&n<=Iit[s]}set(e,n,r){return e.setDate(r),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","q","Q","w","I","D","i","e","c","t","T"]}class Pit extends $n{priority=90;subpriority=1;parse(e,n,r){switch(n){case"D":case"DD":return Mr(Jr.dayOfYear,e);case"Do":return r.ordinalNumber(e,{unit:"date"});default:return Ur(n.length,e)}}validate(e,n){const r=e.getFullYear();return d1e(r)?n>=1&&n<=366:n>=1&&n<=365}set(e,n,r){return e.setMonth(0,r),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]}function gF(t,e,n){const r=$p(),i=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,s=an(t,n?.in),a=s.getDay(),l=(e%7+7)%7,u=7-i,c=e<0||e>6?e-(a+u)%7:(l+u)%7-(a+u)%7;return q2(s,c,n)}class Lit extends $n{priority=90;parse(e,n,r){switch(n){case"E":case"EE":case"EEE":return r.day(e,{width:"abbreviated",context:"formatting"})||r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"});case"EEEEE":return r.day(e,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"});default:return r.day(e,{width:"wide",context:"formatting"})||r.day(e,{width:"abbreviated",context:"formatting"})||r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"})}}validate(e,n){return n>=0&&n<=6}set(e,n,r,i){return e=gF(e,r,i),e.setHours(0,0,0,0),e}incompatibleTokens=["D","i","e","c","t","T"]}class $it extends $n{priority=90;parse(e,n,r,i){const s=a=>{const o=Math.floor((a-1)/7)*7;return(a+i.weekStartsOn+6)%7+o};switch(n){case"e":case"ee":return ei(Ur(n.length,e),s);case"eo":return ei(r.ordinalNumber(e,{unit:"day"}),s);case"eee":return r.day(e,{width:"abbreviated",context:"formatting"})||r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"});case"eeeee":return r.day(e,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"});default:return r.day(e,{width:"wide",context:"formatting"})||r.day(e,{width:"abbreviated",context:"formatting"})||r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"})}}validate(e,n){return n>=0&&n<=6}set(e,n,r,i){return e=gF(e,r,i),e.setHours(0,0,0,0),e}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]}class Fit extends $n{priority=90;parse(e,n,r,i){const s=a=>{const o=Math.floor((a-1)/7)*7;return(a+i.weekStartsOn+6)%7+o};switch(n){case"c":case"cc":return ei(Ur(n.length,e),s);case"co":return ei(r.ordinalNumber(e,{unit:"day"}),s);case"ccc":return r.day(e,{width:"abbreviated",context:"standalone"})||r.day(e,{width:"short",context:"standalone"})||r.day(e,{width:"narrow",context:"standalone"});case"ccccc":return r.day(e,{width:"narrow",context:"standalone"});case"cccccc":return r.day(e,{width:"short",context:"standalone"})||r.day(e,{width:"narrow",context:"standalone"});default:return r.day(e,{width:"wide",context:"standalone"})||r.day(e,{width:"abbreviated",context:"standalone"})||r.day(e,{width:"short",context:"standalone"})||r.day(e,{width:"narrow",context:"standalone"})}}validate(e,n){return n>=0&&n<=6}set(e,n,r,i){return e=gF(e,r,i),e.setHours(0,0,0,0),e}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]}function Bit(t,e,n){const r=an(t,n?.in),i=uit(r,n),s=e-i;return q2(r,s,n)}class Hit extends $n{priority=90;parse(e,n,r){const i=s=>s===0?7:s;switch(n){case"i":case"ii":return Ur(n.length,e);case"io":return r.ordinalNumber(e,{unit:"day"});case"iii":return ei(r.day(e,{width:"abbreviated",context:"formatting"})||r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"}),i);case"iiiii":return ei(r.day(e,{width:"narrow",context:"formatting"}),i);case"iiiiii":return ei(r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"}),i);default:return ei(r.day(e,{width:"wide",context:"formatting"})||r.day(e,{width:"abbreviated",context:"formatting"})||r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"}),i)}}validate(e,n){return n>=1&&n<=7}set(e,n,r){return e=Bit(e,r),e.setHours(0,0,0,0),e}incompatibleTokens=["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]}class Uit extends $n{priority=80;parse(e,n,r){switch(n){case"a":case"aa":case"aaa":return r.dayPeriod(e,{width:"abbreviated",context:"formatting"})||r.dayPeriod(e,{width:"narrow",context:"formatting"});case"aaaaa":return r.dayPeriod(e,{width:"narrow",context:"formatting"});default:return r.dayPeriod(e,{width:"wide",context:"formatting"})||r.dayPeriod(e,{width:"abbreviated",context:"formatting"})||r.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,n,r){return e.setHours(mF(r),0,0,0),e}incompatibleTokens=["b","B","H","k","t","T"]}class jit extends $n{priority=80;
134parse(e,n,r){switch(n){case"b":case"bb":case"bbb":return r.dayPeriod(e,{width:"abbreviated",context:"formatting"})||r.dayPeriod(e,{width:"narrow",context:"formatting"});case"bbbbb":return r.dayPeriod(e,{width:"narrow",context:"formatting"});default:return r.dayPeriod(e,{width:"wide",context:"formatting"})||r.dayPeriod(e,{width:"abbreviated",context:"formatting"})||r.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,n,r){return e.setHours(mF(r),0,0,0),e}incompatibleTokens=["a","B","H","k","t","T"]}class zit extends $n{priority=80;parse(e,n,r){switch(n){case"B":case"BB":case"BBB":return r.dayPeriod(e,{width:"abbreviated",context:"formatting"})||r.dayPeriod(e,{width:"narrow",context:"formatting"});case"BBBBB":return r.dayPeriod(e,{width:"narrow",context:"formatting"});default:return r.dayPeriod(e,{width:"wide",context:"formatting"})||r.dayPeriod(e,{width:"abbreviated",context:"formatting"})||r.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,n,r){return e.setHours(mF(r),0,0,0),e}incompatibleTokens=["a","b","t","T"]}class Vit extends $n{priority=70;parse(e,n,r){switch(n){case"h":return Mr(Jr.hour12h,e);case"ho":return r.ordinalNumber(e,{unit:"hour"});default:return Ur(n.length,e)}}validate(e,n){return n>=1&&n<=12}set(e,n,r){const i=e.getHours()>=12;return i&&r<12?e.setHours(r+12,0,0,0):!i&&r===12?e.setHours(0,0,0,0):e.setHours(r,0,0,0),e}incompatibleTokens=["H","K","k","t","T"]}class qit extends $n{priority=70;parse(e,n,r){switch(n){case"H":return Mr(Jr.hour23h,e);case"Ho":return r.ordinalNumber(e,{unit:"hour"});default:return Ur(n.length,e)}}validate(e,n){return n>=0&&n<=23}set(e,n,r){return e.setHours(r,0,0,0),e}incompatibleTokens=["a","b","h","K","k","t","T"]}class Git extends $n{priority=70;parse(e,n,r){switch(n){case"K":return Mr(Jr.hour11h,e);case"Ko":return r.ordinalNumber(e,{unit:"hour"});default:return Ur(n.length,e)}}validate(e,n){return n>=0&&n<=11}set(e,n,r){return e.getHours()>=12&&r<12?e.setHours(r+12,0,0,0):e.setHours(r,0,0,0),e}incompatibleTokens=["h","H","k","t","T"]}class Wit extends $n{priority=70;parse(e,n,r){switch(n){case"k":return Mr(Jr.hour24h,e);case"ko":return r.ordinalNumber(e,{unit:"hour"});default:return Ur(n.length,e)}}validate(e,n){return n>=1&&n<=24}set(e,n,r){const i=r<=24?r%24:r;return e.setHours(i,0,0,0),e}incompatibleTokens=["a","b","h","H","K","t","T"]}class Yit extends $n{priority=60;parse(e,n,r){switch(n){case"m":return Mr(Jr.minute,e);case"mo":return r.ordinalNumber(e,{unit:"minute"});default:return Ur(n.length,e)}}validate(e,n){return n>=0&&n<=59}set(e,n,r){return e.setMinutes(r,0,0),e}incompatibleTokens=["t","T"]}class Kit extends $n{priority=50;parse(e,n,r){switch(n){case"s":return Mr(Jr.second,e);case"so":return r.ordinalNumber(e,{unit:"second"});default:return Ur(n.length,e)}}validate(e,n){return n>=0&&n<=59}set(e,n,r){return e.setSeconds(r,0),e}incompatibleTokens=["t","T"]}class Xit extends $n{priority=30;parse(e,n){const r=i=>Math.trunc(i*Math.pow(10,-n.length+3));return ei(Ur(n.length,e),r)}set(e,n,r){return e.setMilliseconds(r),e}incompatibleTokens=["t","T"]}class Qit extends $n{priority=10;parse(e,n){switch(n){case"X":return Yl(Wl.basicOptionalMinutes,e);case"XX":return Yl(Wl.basic,e);case"XXXX":return Yl(Wl.basicOptionalSeconds,e);case"XXXXX":return Yl(Wl.extendedOptionalSeconds,e);default:return Yl(Wl.extended,e)}}set(e,n,r){return n.timestampIsSet?e:Bn(e,e.getTime()-GS(e)-r)}incompatibleTokens=["t","T","x"]}class Zit extends $n{priority=10;parse(e,n){switch(n){case"x":return Yl(Wl.basicOptionalMinutes,e);case"xx":return Yl(Wl.basic,e);case"xxxx":return Yl(Wl.basicOptionalSeconds,e);case"xxxxx":return Yl(Wl.extendedOptionalSeconds,e);default:return Yl(Wl.extended,e)}}set(e,n,r){return n.timestampIsSet?e:Bn(e,e.getTime()-GS(e)-r)}incompatibleTokens=["t","T","X"]}class Jit extends $n{priority=40;parse(e){return u1e(e)}set(e,n,r){return[Bn(e,r*1e3),{timestampIsSet:!0}]}incompatibleTokens="*"}class est extends $n{priority=20;parse(e){return u1e(e)}set(e,n,r){return[Bn(e,r),{timestampIsSet:!0}]}incompatibleTokens="*"}const tst={G:new vit,y:new Eit,Y:new _it,R:new xit,u:new wit,Q:new Sit,q:new Cit,M:new Tit,L:new Ait,w:new Nit,I:new kit,d:new Dit,D:new Pit,E:new Lit,e:new $it,c:new Fit,i:new Hit,a:new Uit,b:new jit,B:new zit,h:new Vit,H:new qit,K:new Git,k:new Wit,m:new Yit,s:new Kit,S:new Xit,X:new Qit,x:new Zit,t:new Jit,T:new est},nst=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,rst=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,ist=/^'([^]*?)'?$/,sst=/''/g,ast=/\S/,ost=/[a-zA-Z]/;function DIt(t,e,n,r){const i=()=>Bn(n,NaN),s=lit(),a=s.locale??uh,o=s.firstWeekContainsDate??s.locale?.options?.firstWeekContainsDate??1,l=s.weekStartsOn??s.locale?.options?.weekStartsOn??0;if(!e)return t?i():an(n,r?.in);const u={firstWeekContainsDate:o,weekStartsOn:l,locale:a}
vendor: 5,649 bytes, line 134
134,c=[new bit(r?.in,n)],d=e.match(rst).map(v=>{const E=v[0];if(E in KP){const x=KP[E];return x(v,a.formatLong)}return v}).join("").match(nst),h=[];for(let v of d){o1e(v)&&XP(v,e,t),a1e(v)&&XP(v,e,t);const E=v[0],x=tst[E];if(x){const{incompatibleTokens:_}=x;if(Array.isArray(_)){const A=h.find(R=>_.includes(R.token)||R.token===E);if(A)throw new RangeError(`The format string mustn't contain \`${A.fullToken}\` and \`${v}\` at the same time`)}else if(x.incompatibleTokens==="*"&&h.length>0)throw new RangeError(`The format string mustn't contain \`${v}\` and any other token at the same time`);h.push({token:E,fullToken:v});const S=x.run(t,v,a.match,u);if(!S)return i();c.push(S.setter),t=S.rest}else{if(E.match(ost))throw new RangeError("Format string contains an unescaped latin alphabet character `"+E+"`");if(v==="''"?v="'":E==="'"&&(v=lst(v)),t.indexOf(v)===0)t=t.slice(v.length);else return i()}}if(t.length>0&&ast.test(t))return i();const m=c.map(v=>v.priority).sort((v,E)=>E-v).filter((v,E,x)=>x.indexOf(v)===E).map(v=>c.filter(E=>E.priority===v).sort((E,x)=>x.subPriority-E.subPriority)).map(v=>v[0]);let g=an(n,r?.in);if(isNaN(+g))return i();const b={};for(const v of m){if(!v.validate(g,u))return i();const E=v.set(g,b,u);Array.isArray(E)?(g=E[0],Object.assign(b,E[1])):g=E}return g}function lst(t){return t.match(ist)[1].replace(sst,"'")}function ust(t,e,n){const[r,i]=Fp(n?.in,t,e);return r.getFullYear()===i.getFullYear()&&r.getMonth()===i.getMonth()}function cst(t,e,n){const[r,i]=Fp(n?.in,t,e);return r.getFullYear()===i.getFullYear()}function dst(t,e,n){return q2(t,-e,n)}function fst(t,e,n){const r=an(t,n?.in),i=r.getFullYear(),s=r.getDate(),a=Bn(t,0);a.setFullYear(i,e,15),a.setHours(0,0,0,0);const o=oit(a);return r.setMonth(e,Math.min(s,o)),r}function hst(t,e,n){const r=an(t,n?.in);return isNaN(+r)?Bn(t,NaN):(r.setFullYear(e),r)}function pst(t,e,n){return hF(t,-e,n)}function PIt(t,e,n){const{years:r=0,months:i=0,weeks:s=0,days:a=0,hours:o=0,minutes:l=0,seconds:u=0}=e,c=pst(t,i+r*12,n),d=dst(c,a+s*7,n),h=l+o*60,g=(u+h*60)*1e3;return Bn(t,+d-g)}function LIt(t,e,n){return J0e(t,-e,n)}function mst(t,e,n="long"){return new Intl.DateTimeFormat("en-US",{hour:"numeric",timeZone:t,timeZoneName:n}).format(e).split(/\s/g).slice(2).join(" ")}const gst={},Vy={};function vh(t,e){try{const r=(gst[t]||=new Intl.DateTimeFormat("en-US",{timeZone:t,timeZoneName:"longOffset"}).format)(e).split("GMT")[1];return r in Vy?Vy[r]:PX(r,r.split(":"))}catch{if(t in Vy)return Vy[t];const n=t?.match(yst);return n?PX(t,n.slice(1)):NaN}}const yst=/([+-]\d\d):?(\d\d)?/;function PX(t,e){const n=+(e[0]||0),r=+(e[1]||0),i=+(e[2]||0)/60;return Vy[t]=n*60+r>0?n*60+r+i:n*60-r-i}class tu extends Date{constructor(...e){super(),e.length>1&&typeof e[e.length-1]=="string"&&(this.timeZone=e.pop()),this.internal=new Date,isNaN(vh(this.timeZone,this))?this.setTime(NaN):e.length?typeof e[0]=="number"&&(e.length===1||e.length===2&&typeof e[1]!="number")?this.setTime(e[0]):typeof e[0]=="string"?this.setTime(+new Date(e[0])):e[0]instanceof Date?this.setTime(+e[0]):(this.setTime(+new Date(...e)),f1e(this),QP(this)):this.setTime(Date.now())}static tz(e,...n){return n.length?new tu(...n,e):new tu(Date.now(),e)}withTimeZone(e){return new tu(+this,e)}getTimezoneOffset(){const e=-vh(this.timeZone,this);return e>0?Math.floor(e):Math.ceil(e)}setTime(e){return Date.prototype.setTime.apply(this,arguments),QP(this),+this}[Symbol.for("constructDateFrom")](e){return new tu(+new Date(e),this.timeZone)}}const LX=/^(get|set)(?!UTC)/;Object.getOwnPropertyNames(Date.prototype).forEach(t=>{if(!LX.test(t))return;const e=t.replace(LX,"$1UTC");tu.prototype[e]&&(t.startsWith("get")?tu.prototype[t]=function(){return this.internal[e]()}:(tu.prototype[t]=function(){return Date.prototype[e].apply(this.internal,arguments),bst(this),+this},tu.prototype[e]=function(){return Date.prototype[e].apply(this,arguments),QP(this),+this}))});function QP(t){t.internal.setTime(+t),t.internal.setUTCSeconds(t.internal.getUTCSeconds()-Math.round(-vh(t.timeZone,t)*60))}function bst(t){Date.prototype.setFullYear.call(t,t.internal.getUTCFullYear(),t.internal.getUTCMonth(),t.internal.getUTCDate()),Date.prototype.setHours.call(t,t.internal.getUTCHours(),t.internal.getUTCMinutes(),t.internal.getUTCSeconds(),t.internal.getUTCMilliseconds()),f1e(t)}function f1e(t){const e=vh(t.timeZone,t),n=e>0?Math.floor(e):Math.ceil(e),r=new Date(+t);r.setUTCHours(r.getUTCHours()-1);const i=-new Date(+t).getTimezoneOffset(),s=-new Date(+r).getTimezoneOffset(),a=i-s,o=Date.prototype.getHours.apply(t)!==t.internal.getUTCHours();a&&o&&t.internal.setUTCMinutes(t.internal.getUTCMinutes()+a);const l=i-n;l&&Date.prototype.setUTCMinutes.call(t,Date.prototype.getUTCMinutes.call(t)+l);const u=new Date(+t);u.setUTCSeconds(0);const c=i>0?u.getSeconds():(u.getSeconds()-60)%60,d=Math.round(-(vh(t.timeZone,t)*60))%60;(d||c)&&(t.internal.setUTCSeconds(t.internal.getUTCSeconds()+d),Date.prototype.setUTCSeconds.call(t,Date.prototype.getUTCSeconds.call(t)+d+c));const h=vh(t.timeZone,t),m=h>0?Math.floor(h):Math.ceil(h),b=-new Date(+t).getTimezoneOffset()-m,v=m!==n,E=b-l;if(v&&E){Date.prototype.setUTCMinutes.call(t,Date.prototype.getUTCMinutes.call(t)+E);const x=vh(t.timeZone,t),_=x>0?Math.floor(x):Math.ceil(x),S=m-_;S&&(t.internal.setUTCMinutes(t.internal.getUTCMinutes()+S),Date.prototype.setUTCMinutes.call(t,Date.prototype.getUTCMinutes.call(t)+S))}}class ls extends tu{static tz(e,...n){return n.length?new ls(...n,e):new ls(Date.now(),e)}toISOString(){const[e,n,r]=this.tzComponents(),i=`${e}${n}:${r}`;return this.internal.toISOString().slice(0,-1)+i}toString(){return`${this.toDateString()}
134 ${this.toTimeString()}`}toDateString(){const[e,n,r,i]=this.internal.toUTCString().split(" ");return`${e?.slice(0,-1)} ${r} ${n} ${i}`}toTimeString(){const e=this.internal.toUTCString().split(" ")[4],[n,r,i]=this.tzComponents();return`${e} GMT${n}${r}${i} (${mst(this.timeZone,this)})`}toLocaleString(e,n){return Date.prototype.toLocaleString.call(this,e,{...n,timeZone:n?.timeZone||this.timeZone})}toLocaleDateString(e,n){return Date.prototype.toLocaleDateString.call(this,e,{...n,timeZone:n?.timeZone||this.timeZone})}toLocaleTimeString(e,n){return Date.prototype.toLocaleTimeString.call(this,e,{...n,timeZone:n?.timeZone||this.timeZone})}tzComponents(){const e=this.getTimezoneOffset(),n=e>0?"-":"+",r=String(Math.floor(Math.abs(e)/60)).padStart(2,"0"),i=String(Math.abs(e)%60).padStart(2,"0");return[n,r,i]}withTimeZone(e){return new ls(+this,e)}[Symbol.for("constructDateFrom")](e){return new ls(+new Date(e),this.timeZone)}}const $X=5,vst=4;function Est(t,e){const n=e.startOfMonth(t),r=n.getDay()>0?n.getDay():7,i=e.addDays(t,-r+1),s=e.addDays(i,$X*7-1);return e.getMonth(t)===e.getMonth(s)?$X:vst}function h1e(t,e){const n=e.startOfMonth(t),r=n.getDay();return r===1?n:r===0?e.addDays(n,-6):e.addDays(n,-1*(r-1))}function _st(t,e){const n=h1e(t,e),r=Est(t,e);return e.addDays(n,r*7-1)}const p1e={...uh,labels:{labelDayButton:(t,e,n,r)=>{let i;r&&typeof r.format=="function"?i=r.format.bind(r):i=(a,o)=>zy(a,o,{locale:uh,...n});let s=i(t,"PPPP");return e.today&&(s=`Today, ${s}`),e.selected&&(s=`${s}, selected`),s},labelMonthDropdown:"Choose the Month",labelNext:"Go to the Next Month",labelPrevious:"Go to the Previous Month",labelWeekNumber:t=>`Week ${t}`,labelYearDropdown:"Choose the Year",labelGrid:(t,e,n)=>{let r;return n&&typeof n.format=="function"?r=n.format.bind(n):r=(i,s)=>zy(i,s,{locale:uh,...e}),r(t,"LLLL yyyy")},labelGridcell:(t,e,n,r)=>{let i;r&&typeof r.format=="function"?i=r.format.bind(r):i=(a,o)=>zy(a,o,{locale:uh,...n});let s=i(t,"PPPP");return e?.today&&(s=`Today, ${s}`),s},labelNav:"Navigation bar",labelWeekNumberHeader:"Week Number",labelWeekday:(t,e,n)=>{let r;return n&&typeof n.format=="function"?r=n.format.bind(n):r=(i,s)=>zy(i,s,{locale:uh,...e}),r(t,"cccc")}}};class Wa{constructor(e,n){this.Date=Date,this.today=()=>this.overrides?.today?this.overrides.today():this.options.timeZone?ls.tz(this.options.timeZone):new this.Date,this.newDate=(r,i,s)=>this.overrides?.newDate?this.overrides.newDate(r,i,s):this.options.timeZone?new ls(r,i,s,this.options.timeZone):new Date(r,i,s),this.addDays=(r,i)=>this.overrides?.addDays?this.overrides.addDays(r,i):q2(r,i),this.addMonths=(r,i)=>this.overrides?.addMonths?this.overrides.addMonths(r,i):hF(r,i),this.addWeeks=(r,i)=>this.overrides?.addWeeks?this.overrides.addWeeks(r,i):srt(r,i),this.addYears=(r,i)=>this.overrides?.addYears?this.overrides.addYears(r,i):J0e(r,i),this.differenceInCalendarDays=(r,i)=>this.overrides?.differenceInCalendarDays?this.overrides.differenceInCalendarDays(r,i):g3(r,i),this.differenceInCalendarMonths=(r,i)=>this.overrides?.differenceInCalendarMonths?this.overrides.differenceInCalendarMonths(r,i):t1e(r,i),this.eachMonthOfInterval=r=>this.overrides?.eachMonthOfInterval?this.overrides.eachMonthOfInterval(r):drt(r),this.eachYearOfInterval=r=>{const i=this.overrides?.eachYearOfInterval?this.overrides.eachYearOfInterval(r):prt(r),s=new Set(i.map(o=>this.getYear(o)));if(s.size===i.length)return i;const a=[];return s.forEach(o=>{a.push(new Date(o,0,1))}),a},this.endOfBroadcastWeek=r=>this.overrides?.endOfBroadcastWeek?this.overrides.endOfBroadcastWeek(r):_st(r,this),this.endOfISOWeek=r=>this.overrides?.endOfISOWeek?this.overrides.endOfISOWeek(r):mrt(r),this.endOfMonth=r=>this.overrides?.endOfMonth?this.overrides.endOfMonth(r):crt(r),this.endOfWeek=(r,i)=>this.overrides?.endOfWeek?this.overrides.endOfWeek(r,i):i1e(r,this.options),this.endOfYear=r=>this.overrides?.endOfYear?this.overrides.endOfYear(r):hrt(r),this.format=(r,i,s)=>{const a=this.overrides?.format?this.overrides.format(r,i,this.options):zy(r,i,this.options);return this.options.numerals&&this.options.numerals!=="latn"?this.replaceDigits(a):a},this.getISOWeek=r=>this.overrides?.getISOWeek?this.overrides.getISOWeek(r):y3(r),this.getMonth=(r,i)=>this.overrides?.getMonth?this.overrides.getMonth(r,this.options):cit(r,this.options),this.getYear=(r,i)=>this.overrides?.getYear?this.overrides.getYear(r,this.options):dit(r,this.options),this.getWeek=(r,i)=>this.overrides?.getWeek?this.overrides.getWeek(r,this.options):b3(r,this.options),this.isAfter=(r,i)=>this.overrides?.isAfter?this.overrides.isAfter(r,i):fit(r,i),this.isBefore=(r,i)=>this.overrides?.isBefore?this.overrides.isBefore(r,i):hit(r,i),this.isDate=r=>this.overrides?.isDate?this.overrides.isDate(r):e1e(r),this.isSameDay=(r,i)=>this.overrides?.isSameDay?this.overrides.isSameDay(r,i):lrt(r,i),this.isSameMonth=(r,i)=>this.overrides?.isSameMonth?this.overrides.isSameMonth(r,i):ust(r,i),this.isSameYear=(r,i)=>this.overrides?.isSameYear?this.overrides.isSameYear(r,i):cst(r,i),this.max=r=>this.overrides?.max?this.overrides.max(r):art(r),this.min=r=>this.overrides?.min?this.overrides.min(r):ort(r),this.setMonth=(r,i)=>this.overrides?.setMonth?this.overrides.setMonth(r,i):fst(r,i),this.setYear=(r,i)=>this.overrides?.setYear?this.overrides.setYear(r,i):hst(r,i),this.startOfBroadcastWeek=(r,i)=>this.overrides?.startOfBroadcastWeek?this.overrides.startOfBroadcastWeek(r,this):h1e(r,this),this.startOfDay=r=>this.overrides?.startOfDay?this.overrides.startOfDay(r):ov(r),this.startOfISOWeek=r=>this.overrides?.startOfISOWeek?this.overrides.startOfISOWeek(r):Jh(r),this.startOfMonth=r=>this.overrides?.startOfMonth?this.overrides.startOfMonth(r):frt(r),this.startOfWeek=(r,i)=>this.overrides?.startOfWeek?this.overrides.startOfWeek(r,this.options):Pc(r,this.options),this.startOfYear=r=>this.overrides?.startOfYear?this.overrides.startOfYear(r):r1e(r),this.options={locale:p1e,...e},this.overrides=n}getDigitMap(){const{numerals:e="latn"}=this.options,n=new Intl.NumberFormat("en-US",{numberingSystem:e}),r={};for(let i=0;i<10;i++)r[i.toString()]=n.format(i);return r}replaceDigits(e){const n=this.getDigitMap();return e.replace(/\d/g,r=>n[r]||r)}formatNumber(e){return this.replaceDigits(e.toString())}getMonthYearOrder(){const e=this.options.locale?.code;return e&&Wa.yearFirstLocales.has(e)?"year-first":"month-first"}formatMonthYear(e){const{locale:n,timeZone:r,numerals:i}=this.options,s=n?.code;if(s&&Wa.yearFirstLocales.has(s))try{return new Intl.DateTimeFormat(s,{month:"long",year:"numeric",timeZone:r,numberingSystem:i}).format(e)}catch{}const a=this.getMonthYearOrder()==="year-first"?"y LLLL":"LLLL y";return this.format(e,a)}}Wa.yearFirstLocales=new Set(["eu","hu","ja","ja-Hira","ja-JP","ko","ko-KR","lt","lt-LT","lv","lv-LV","mn","mn-MN","zh","zh-CN","zh-HK","zh-TW"]);const Cu=new Wa;class m1e{constructor(e,n,r=Cu){this.date=e,this.displayMonth=n,this.outside=!!(n&&!r.isSameMonth(e,n)),this.dateLib=r,this.isoDate=r.format(e,"yyyy-MM-dd"),this.displayMonthId=r.format(n,"yyyy-MM"),this.dateMonthId=r.format(e,"yyyy-MM")}isEqualTo(e){return this.dateLib.isSameDay(e.date,this.date)&&this.dateLib.isSameMonth(e.displayMonth,this.displayMonth)}}class xst{constructor(e,n){this.date=e,this.weeks=n}}class wst{constructor(e,n){this.days=n,this.weekNumber=e}}function Sst(t){return U.createElement("button",{...t})}function Cst(t){return U.createElement("span",{...t})}function Tst(t){const{size:e=24,orientation:n="left",className:r}=t;return U.createElement("svg",{className:r,width:e,height:e,viewBox:"0 0 24 24"},n==="up"&&U.createElement("polygon",{points:"6.77 17 12.5 11.43 18.24 17 20 15.28 12.5 8 5 15.28"}),n==="down"&&U.createElement("polygon",{points:"6.77 8 12.5 13.57 18.24 8 20 9.72 12.5 17 5 9.72"}),n==="left"&&U.createElement("polygon",{points:"16 18.112 9.81111111 12 16 5.87733333 14.0888889 4 6 12 14.0888889 20"}),n==="right"&&U.createElement("polygon",{points:"8 18.112 14.18888889 12 8 5.87733333 9.91111111 4 18 12 9.91111111 20"}))}function Ast(t){const{day:e,modifiers:n,...r}=t;return U.createElement("td",{...r})}function Rst(t){const{day:e,modifiers:n,...r}=t,i=U.useRef(null);return U.useEffect(()=>{n.focused&&i.current?.focus()},[n.focused]),U.createElement("button",{ref:i,...r})}var St;(function(t){t.Root="root",t.Chevron="chevron",t.Day="day",t.DayButton="day_button",t.CaptionLabel="caption_label",t.Dropdowns="dropdowns",t.Dropdown="dropdown",t.DropdownRoot="dropdown_root",t.Footer="footer",t.MonthGrid="month_grid",t.MonthCaption="month_caption",t.MonthsDropdown="months_dropdown",t.Month="month",t.Months="months",t.Nav="nav",t.NextMonthButton="button_next",t.PreviousMonthButton="button_previous",t.Week="week",t.Weeks="weeks",t.Weekday="weekday",t.Weekdays="weekdays",t.WeekNumber="week_number",t.WeekNumberHeader="week_number_header",t.YearsDropdown="years_dropdown"})(St||(St={}));var kr;(function(t){t.disabled="disabled",t.hidden="hidden",t.outside="outside",t.focused="focused",t.today="today"})(kr||(kr={}));var el;(function(t){t.range_end="range_end",t.range_middle="range_middle",t.range_start="range_start",t.selected="selected"})(el||(el={}));var Ma;(function(t){t.weeks_before_enter="weeks_before_enter",t.weeks_before_exit="weeks_before_exit",t.weeks_after_enter="weeks_after_enter",t.weeks_after_exit="weeks_after_exit",t.caption_after_enter="caption_after_enter",t.caption_after_exit="caption_after_exit",t.caption_before_enter="caption_before_enter",t.caption_before_exit="caption_before_exit"}
vendor: 22,905 bytes, line 134
134)(Ma||(Ma={}));function Nst(t){const{options:e,className:n,components:r,classNames:i,...s}=t,a=[i[St.Dropdown],n].join(" "),o=e?.find(({value:l})=>l===s.value);return U.createElement("span",{"data-disabled":s.disabled,className:i[St.DropdownRoot]},U.createElement(r.Select,{className:a,...s},e?.map(({value:l,label:u,disabled:c})=>U.createElement(r.Option,{key:l,value:l,disabled:c},u))),U.createElement("span",{className:i[St.CaptionLabel],"aria-hidden":!0},o?.label,U.createElement(r.Chevron,{orientation:"down",size:18,className:i[St.Chevron]})))}function Ost(t){return U.createElement("div",{...t})}function kst(t){return U.createElement("div",{...t})}function Ist(t){const{calendarMonth:e,displayIndex:n,...r}=t;return U.createElement("div",{...r},t.children)}function Mst(t){const{calendarMonth:e,displayIndex:n,...r}=t;return U.createElement("div",{...r})}function Dst(t){return U.createElement("table",{...t})}function Pst(t){return U.createElement("div",{...t})}const g1e=C.createContext(void 0);function G2(){const t=C.useContext(g1e);if(t===void 0)throw new Error("useDayPicker() must be used within a custom component.");return t}function Lst(t){const{components:e}=G2();return U.createElement(e.Dropdown,{...t})}function $st(t){const{onPreviousClick:e,onNextClick:n,previousMonth:r,nextMonth:i,...s}=t,{components:a,classNames:o,labels:{labelPrevious:l,labelNext:u}}=G2(),c=C.useCallback(h=>{i&&n?.(h)},[i,n]),d=C.useCallback(h=>{r&&e?.(h)},[r,e]);return U.createElement("nav",{...s},U.createElement(a.PreviousMonthButton,{type:"button",className:o[St.PreviousMonthButton],tabIndex:r?void 0:-1,"aria-disabled":r?void 0:!0,"aria-label":l(r),onClick:d},U.createElement(a.Chevron,{disabled:r?void 0:!0,className:o[St.Chevron],orientation:"left"})),U.createElement(a.NextMonthButton,{type:"button",className:o[St.NextMonthButton],tabIndex:i?void 0:-1,"aria-disabled":i?void 0:!0,"aria-label":u(i),onClick:c},U.createElement(a.Chevron,{disabled:i?void 0:!0,orientation:"right",className:o[St.Chevron]})))}function Fst(t){const{components:e}=G2();return U.createElement(e.Button,{...t})}function Bst(t){return U.createElement("option",{...t})}function Hst(t){const{components:e}=G2();return U.createElement(e.Button,{...t})}function Ust(t){const{rootRef:e,...n}=t;return U.createElement("div",{...n,ref:e})}function jst(t){return U.createElement("select",{...t})}function zst(t){const{week:e,...n}=t;return U.createElement("tr",{...n})}function Vst(t){return U.createElement("th",{...t})}function qst(t){return U.createElement("thead",{"aria-hidden":!0},U.createElement("tr",{...t}))}function Gst(t){const{week:e,...n}=t;return U.createElement("th",{...n})}function Wst(t){return U.createElement("th",{...t})}function Yst(t){return U.createElement("tbody",{...t})}function Kst(t){const{components:e}=G2();return U.createElement(e.Dropdown,{...t})}const Xst=Object.freeze(Object.defineProperty({__proto__:null,Button:Sst,CaptionLabel:Cst,Chevron:Tst,Day:Ast,DayButton:Rst,Dropdown:Nst,DropdownNav:Ost,Footer:kst,Month:Ist,MonthCaption:Mst,MonthGrid:Dst,Months:Pst,MonthsDropdown:Lst,Nav:$st,NextMonthButton:Fst,Option:Bst,PreviousMonthButton:Hst,Root:Ust,Select:jst,Week:zst,WeekNumber:Gst,WeekNumberHeader:Wst,Weekday:Vst,Weekdays:qst,Weeks:Yst,YearsDropdown:Kst},Symbol.toStringTag,{value:"Module"}));function Ec(t,e,n=!1,r=Cu){let{from:i,to:s}=t;const{differenceInCalendarDays:a,isSameDay:o}=r;return i&&s?(a(s,i)<0&&([i,s]=[s,i]),a(e,i)>=(n?1:0)&&a(s,e)>=(n?1:0)):!n&&s?o(s,e):!n&&i?o(i,e):!1}function yF(t){return!!(t&&typeof t=="object"&&"before"in t&&"after"in t)}function v3(t){return!!(t&&typeof t=="object"&&"from"in t)}function bF(t){return!!(t&&typeof t=="object"&&"after"in t)}function vF(t){return!!(t&&typeof t=="object"&&"before"in t)}function y1e(t){return!!(t&&typeof t=="object"&&"dayOfWeek"in t)}function b1e(t,e){return Array.isArray(t)&&t.every(e.isDate)}function _c(t,e,n=Cu){const r=Array.isArray(e)?e:[e],{isSameDay:i,differenceInCalendarDays:s,isAfter:a}=n;return r.some(o=>{if(typeof o=="boolean")return o;if(n.isDate(o))return i(t,o);if(b1e(o,n))return o.some(l=>i(t,l));if(v3(o))return Ec(o,t,!1,n);if(y1e(o))return Array.isArray(o.dayOfWeek)?o.dayOfWeek.includes(t.getDay()):o.dayOfWeek===t.getDay();if(yF(o)){const l=s(o.before,t),u=s(o.after,t),c=l>0,d=u<0;return a(o.before,o.after)?d&&c:c||d}return bF(o)?s(t,o.after)>0:vF(o)?s(o.before,t)>0:typeof o=="function"?o(t):!1})}function Qst(t,e,n,r,i){const{disabled:s,hidden:a,modifiers:o,showOutsideDays:l,broadcastCalendar:u,today:c=i.today()}=e,{isSameDay:d,isSameMonth:h,startOfMonth:m,isBefore:g,endOfMonth:b,isAfter:v}=i,E=n&&m(n),x=r&&b(r),_={[kr.focused]:[],[kr.outside]:[],[kr.disabled]:[],[kr.hidden]:[],[kr.today]:[]},S={};for(const A of t){const{date:R,displayMonth:T}=A,O=!!(T&&!h(R,T)),I=!!(E&&g(R,E)),D=!!(x&&v(R,x)),P=!!(s&&_c(R,s,i)),B=!!(a&&_c(R,a,i))||I||D||!u&&!l&&O||u&&l===!1&&O,L=d(R,c);O&&_.outside.push(A),P&&_.disabled.push(A),B&&_.hidden.push(A),L&&_.today.push(A),o&&Object.keys(o).forEach($=>{const q=o?.[$];q&&_c(R,q,i)&&(S[$]?S[$].push(A):S[$]=[A])})}return A=>{const R={[kr.focused]:!1,[kr.disabled]:!1,[kr.hidden]:!1,[kr.outside]:!1,[kr.today]:!1},T={};for(const O in _){const I=_[O];R[O]=I.some(D=>D===A)}for(const O in S)T[O]=S[O].some(I=>I===A);return{...R,...T}}}function Zst(t,e,n={}){return Object.entries(t).filter(([,i])=>i===!0).reduce((i,[s])=>(n[s]?i.push(n[s]):e[kr[s]]?i.push(e[kr[s]]):e[el[s]]&&i.push(e[el[s]]),i),[e[St.Day]])}function Jst(t){return{...Xst,...t}}function eat(t){const e={"data-mode":t.mode??void 0,"data-required":"required"in t?t.required:void 0,"data-multiple-months":t.numberOfMonths&&t.numberOfMonths>1||void 0,"data-week-numbers":t.showWeekNumber||void 0,"data-broadcast-calendar":t.broadcastCalendar||void 0,"data-nav-layout":t.navLayout||void 0};return Object.entries(t).forEach(([n,r])=>{n.startsWith("data-")&&(e[n]=r)}),e}function tat(){const t={};for(const e in St)t[St[e]]=`rdp-${St[e]}`;for(const e in kr)t[kr[e]]=`rdp-${kr[e]}`;for(const e in el)t[el[e]]=`rdp-${el[e]}`;for(const e in Ma)t[Ma[e]]=`rdp-${Ma[e]}`;return t}function v1e(t,e,n){return(n??new Wa(e)).formatMonthYear(t)}const nat=v1e;function rat(t,e,n){return(n??new Wa(e)).format(t,"d")}function iat(t,e=Cu){return e.format(t,"LLLL")}function sat(t,e,n){return(n??new Wa(e)).format(t,"cccccc")}function aat(t,e=Cu){return t<10?e.formatNumber(`0${t.toLocaleString()}`):e.formatNumber(`${t.toLocaleString()}`)}function oat(){return""}function E1e(t,e=Cu){return e.format(t,"yyyy")}const lat=E1e,uat=Object.freeze(Object.defineProperty({__proto__:null,formatCaption:v1e,formatDay:rat,formatMonthCaption:nat,formatMonthDropdown:iat,formatWeekNumber:aat,formatWeekNumberHeader:oat,formatWeekdayName:sat,formatYearCaption:lat,formatYearDropdown:E1e},Symbol.toStringTag,{value:"Module"}));function cat(t){return t?.formatMonthCaption&&!t.formatCaption&&(t.formatCaption=t.formatMonthCaption),t?.formatYearCaption&&!t.formatYearDropdown&&(t.formatYearDropdown=t.formatYearCaption),{...uat,...t}}function EF(t,e,n,r){let i=(r??new Wa(n)).format(t,"PPPP");return e.today&&(i=`Today, ${i}`),e.selected&&(i=`${i}, selected`),i}const dat=EF;function _F(t,e,n){return(n??new Wa(e)).formatMonthYear(t)}const fat=_F;function _1e(t,e,n,r){let i=(r??new Wa(n)).format(t,"PPPP");return e?.today&&(i=`Today, ${i}`),i}function x1e(t){return"Choose the Month"}function w1e(){return""}const hat="Go to the Next Month";function S1e(t,e){return hat}function C1e(t){return"Go to the Previous Month"}function T1e(t,e,n){return(n??new Wa(e)).format(t,"cccc")}function A1e(t,e){return`Week ${t}`}function R1e(t){return"Week Number"}function N1e(t){return"Choose the Year"}const pat=Object.freeze(Object.defineProperty({__proto__:null,labelCaption:fat,labelDay:dat,labelDayButton:EF,labelGrid:_F,labelGridcell:_1e,labelMonthDropdown:x1e,labelNav:w1e,labelNext:S1e,labelPrevious:C1e,labelWeekNumber:A1e,labelWeekNumberHeader:R1e,labelWeekday:T1e,labelYearDropdown:N1e},Symbol.toStringTag,{value:"Module"})),Ho=(t,e,n)=>e||(n?typeof n=="function"?n:(...r)=>n:t);function mat(t,e){const n=e.locale?.labels??{};return{...pat,...t??{},labelDayButton:Ho(EF,t?.labelDayButton,n.labelDayButton),labelMonthDropdown:Ho(x1e,t?.labelMonthDropdown,n.labelMonthDropdown),labelNext:Ho(S1e,t?.labelNext,n.labelNext),labelPrevious:Ho(C1e,t?.labelPrevious,n.labelPrevious),labelWeekNumber:Ho(A1e,t?.labelWeekNumber,n.labelWeekNumber),labelYearDropdown:Ho(N1e,t?.labelYearDropdown,n.labelYearDropdown),labelGrid:Ho(_F,t?.labelGrid,n.labelGrid),labelGridcell:Ho(_1e,t?.labelGridcell,n.labelGridcell),labelNav:Ho(w1e,t?.labelNav,n.labelNav),labelWeekNumberHeader:Ho(R1e,t?.labelWeekNumberHeader,n.labelWeekNumberHeader),labelWeekday:Ho(T1e,t?.labelWeekday,n.labelWeekday)}}function gat(t,e,n,r,i){const{startOfMonth:s,startOfYear:a,endOfYear:o,eachMonthOfInterval:l,getMonth:u}=i;return l({start:a(t),end:o(t)}).map(h=>{const m=r.formatMonthDropdown(h,i),g=u(h),b=e&&h<s(e)||n&&h>s(n)||!1;return{value:g,label:m,disabled:b}})}function yat(t,e={},n={}){let r={...e?.[St.Day]};return Object.entries(t).filter(([,i])=>i===!0).forEach(([i])=>{r={...r,...n?.[i]}}),r}function bat(t,e,n,r){const i=r??t.today(),s=n?t.startOfBroadcastWeek(i,t):e?t.startOfISOWeek(i):t.startOfWeek(i),a=[];for(let o=0;o<7;o++){const l=t.addDays(s,o);a.push(l)}return a}function vat(t,e,n,r,i=!1){if(!t||!e)return;const{startOfYear:s,endOfYear:a,eachYearOfInterval:o,getYear:l}=r,u=s(t),c=a(e),d=o({start:u,end:c});return i&&d.reverse(),d.map(h=>{const m=n.formatYearDropdown(h,r);return{value:l(h),label:m,disabled:!1}})}function Eat(t,e={}){const{weekStartsOn:n,locale:r}=e,i=n??r?.options?.weekStartsOn??0,s=o=>{const l=typeof o=="number"||typeof o=="string"?new Date(o):o;return new ls(l.getFullYear(),l.getMonth(),l.getDate(),12,0,0,t)},a=o=>{const l=s(o);return new Date(l.getFullYear(),l.getMonth(),l.getDate(),0,0,0,0)};return{today:()=>s(ls.tz(t)),newDate:(o,l,u)=>new ls(o,l,u,12,0,0,t),startOfDay:o=>s(o),startOfWeek:(o,l)=>{const u=s(o),c=l?.weekStartsOn??i,d=(u.getDay()-c+7)%7;return u.setDate(u.getDate()-d),u},startOfISOWeek:o=>{const l=s(o),u=(l.getDay()-1+7)%7;return l.setDate(l.getDate()-u),l},startOfMonth:o=>{const l=s(o);return l.setDate(1),l},startOfYear:o=>{const l=s(o);return l.setMonth(0,1),l},endOfWeek:(o,l)=>{const u=s(o),h=(((l?.weekStartsOn??i)+6)%7-u.getDay()+7)%7;return u.setDate(u.getDate()+h),u},endOfISOWeek:o=>{const l=s(o),u=(7-l.getDay())%7;return l.setDate(l.getDate()+u),l},endOfMonth:o=>{const l=s(o);return l.setMonth(l.getMonth()+1,0),l},endOfYear:o=>{const l=s(o);return l.setMonth(11,31),l},eachMonthOfInterval:o=>{const l=s(o.start),u=s(o.end),c=[],d=new ls(l.getFullYear(),l.getMonth(),1,12,0,0,t),h=u.getFullYear()*12+u.getMonth();for(;d.getFullYear()*12+d.getMonth()<=h;)c.push(new ls(d,t)),d.setMonth(d.getMonth()+1,1);return c},addDays:(o,l)=>{const u=s(o);return u.setDate(u.getDate()+l),u},addWeeks:(o,l)=>{const u=s(o);return u.setDate(u.getDate()+l*7),u},addMonths:(o,l)=>{const u=s(o);return u.setMonth(u.getMonth()+l),u},addYears:(o,l)=>{const u=s(o);return u.setFullYear(u.getFullYear()+l),u},eachYearOfInterval:o=>{const l=s(o.start),u=s(o.end),c=[],d=new ls(l.getFullYear(),0,1,12,0,0,t);for(;d.getFullYear()<=u.getFullYear();)c.push(new ls(d,t)),d.setFullYear(d.getFullYear()+1,0,1);return c},getWeek:(o,l)=>{const u=a(o);return b3(u,{weekStartsOn:l?.weekStartsOn??i,firstWeekContainsDate:l?.firstWeekContainsDate??r?.options?.firstWeekContainsDate??1})},getISOWeek:o=>{const l=a(o);return y3(l)},differenceInCalendarDays:(o,l)=>{const u=a(o),c=a(l);return g3(u,c)},differenceInCalendarMonths:(o,l)=>{const u=a(o),c=a(l);return t1e(u,c)}}}const W2=t=>t instanceof HTMLElement?t:null,N4=t=>[...t.querySelectorAll("[data-animated-month]")??[]],_at=t=>W2(t.querySelector("[data-animated-month]")),O4=t=>W2(t.querySelector("[data-animated-caption]")),k4=t=>W2(t.querySelector("[data-animated-weeks]")),xat=t=>W2(t.querySelector("[data-animated-nav]")),wat=t=>W2(t.querySelector("[data-animated-weekdays]"));function Sat(t,e,{classNames:n,months:r,focused:i,dateLib:s}){const a=C.useRef(null),o=C.useRef(r),l=C.useRef(!1);C.useLayoutEffect(()=>{const u=o.current;if(o.current=r,!e||!t.current||!(t.current instanceof HTMLElement)||r.length===0||u.length===0||r.length!==u.length)return;const c=s.isSameMonth(r[0].date,u[0].date),d=s.isAfter(r[0].date,u[0].date),h=d?n[Ma.caption_after_enter]:n[Ma.caption_before_enter],m=d?n[Ma.weeks_after_enter]:n[Ma.weeks_before_enter],g=a.current,b=t.current.cloneNode(!0);if(b instanceof HTMLElement?(N4(b).forEach(_=>{if(!(_ instanceof HTMLElement))return;const S=_at(_);S&&_.contains(S)&&_.removeChild(S);const A=O4(_);A&&A.classList.remove(h);const R=k4(_);R&&R.classList.remove(m)}),a.current=b):a.current=null,l.current||c||i)return;const v=g instanceof HTMLElement?N4(g):[],E=N4(t.current);if(E?.every(x=>x instanceof HTMLElement)&&v&&v.every(x=>x instanceof HTMLElement)){l.current=!0,t.current.style.isolation="isolate";const x=xat(t.current);x&&(x.style.zIndex="1"),E.forEach((_,S)=>{const A=v[S];if(!A)return;_.style.position="relative",_.style.overflow="hidden";const R=O4(_);R&&R.classList.add(h);const T=k4(_);T&&T.classList.add(m);const O=()=>{l.current=!1,t.current&&(t.current.style.isolation=""),x&&(x.style.zIndex=""),R&&R.classList.remove(h),T&&T.classList.remove(m),_.style.position="",_.style.overflow="",_.contains(A)&&_.removeChild(A)};A.style.pointerEvents="none",A.style.position="absolute",A.style.overflow="hidden",A.setAttribute("aria-hidden","true");const I=wat(A);I&&(I.style.opacity="0");const D=O4(A);D&&(D.classList.add(d?n[Ma.caption_before_exit]:n[Ma.caption_after_exit]),D.addEventListener("animationend",O));const P=k4(A);P&&P.classList.add(d?n[Ma.weeks_before_exit]:n[Ma.weeks_after_exit]),_.insertBefore(A,_.firstChild)})}})}function Cat(t,e,n,r){const i=t[0],s=t[t.length-1],{ISOWeek:a,fixedWeeks:o,broadcastCalendar:l}=n??{},{addDays:u,differenceInCalendarDays:c,differenceInCalendarMonths:d,endOfBroadcastWeek:h,endOfISOWeek:m,endOfMonth:g,endOfWeek:b,isAfter:v,startOfBroadcastWeek:E,startOfISOWeek:x,startOfWeek:_}=r,S=l?E(i,r):a?x(i):_(i),A=l?h(s):a?m(g(s)):b(g(s)),R=e&&(l?h(e):a?m(e):b(e)),T=R&&v(A,R)?R:A,O=c(T,S),I=d(s,i)+1,D=[];for(let L=0;L<=O;L++){const $=u(S,L);D.push($)}const B=(l?35:42)*I;if(o&&D.length<B){const L=B-D.length;for(let $=0;$<L;$++){const q=u(D[D.length-1],1);D.push(q)}}return D}function Tat(t){const e=[];return t.reduce((n,r)=>{const i=r.weeks.reduce((s,a)=>s.concat(a.days.slice()),e.slice());return n.concat(i.slice())},e.slice())}function Aat(t,e,n,r){const{numberOfMonths:i=1}=n,s=[];for(let a=0;a<i;a++){const o=r.addMonths(t,a);if(e&&o>e)break;s.push(o)}return s}function FX(t,e,n,r){const{month:i,defaultMonth:s,today:a=r.today(),numberOfMonths:o=1}=t;let l=i||s||a;const{differenceInCalendarMonths:u,addMonths:c,startOfMonth:d}=r;if(n&&u(n,l)<o-1){const h=-1*(o-1);l=c(n,h)}return e&&u(l,e)<0&&(l=e),d(l)}function Rat(t,e,n,r){const{addDays:i,endOfBroadcastWeek:s,endOfISOWeek:a,endOfMonth:o,endOfWeek:l,getISOWeek:u,getWeek:c,startOfBroadcastWeek:d,startOfISOWeek:h,startOfWeek:m}=r,g=t.reduce((b,v)=>{const E=n.broadcastCalendar?d(v,r):n.ISOWeek?h(v):m(v),x=n.broadcastCalendar?s(v):n.ISOWeek?a(o(v)):l(o(v)),_=e.filter(T=>T>=E&&T<=x),S=n.broadcastCalendar?35:42;if(n.fixedWeeks&&_.length<S){const T=e.filter(O=>{const I=S-_.length;return O>x&&O<=i(x,I)});_.push(...T)}const A=_.reduce((T,O)=>{const I=n.ISOWeek?u(O):c(O),D=T.find(B=>B.weekNumber===I),P=new m1e(O,v,r);return D?D.days.push(P):T.push(new wst(I,[P])),T},[]),R=new xst(v,A);return b.push(R),b},[]);return n.reverseMonths?g.reverse():g}function Nat(t,e){let{startMonth:n,endMonth:r}=t;const{startOfYear:i,startOfDay:s,startOfMonth:a,endOfMonth:o,addYears:l,endOfYear:u,newDate:c,today:d}=e,{fromYear:h,toYear:m,fromMonth:g,toMonth:b}=t;!n&&g&&(n=g),!n&&h&&(n=e.newDate(h,0,1)),!r&&b&&(r=b),!r&&m&&(r=c(m,11,31));const v=t.captionLayout==="dropdown"||t.captionLayout==="dropdown-years";return n?n=a(n):h?n=c(h,0,1):!n&&v&&(n=i(l(t.today??d(),-100))),r?r=o(r):m?r=c(m,11,31):!r&&v&&(r=u(t.today??d())),[n&&s(n),r&&s(r)]}function Oat(t,e,n,r){if(n.disableNavigation)return;const{pagedNavigation:i,numberOfMonths:s=1}=n,{startOfMonth:a,addMonths:o,differenceInCalendarMonths:l}=r,u=i?s:1,c=a(t);if(!e)return o(c,u);if(!(l(e,t)<s))return o(c,u)}function kat(t,e,n,r){if(n.disableNavigation)return;const{pagedNavigation:i,numberOfMonths:s}=n,{startOfMonth:a,addMonths:o,differenceInCalendarMonths:l}=r,u=i?s??1:1,c=a(t);if(!e)return o(c,-u);if(!(l(c,e)<=0))return o(c,-u)}function Iat(t){const e=[];return t.reduce((n,r)=>n.concat(r.weeks.slice()),e.slice())}function E3(t,e){const[n,r]=C.useState(t);return[e===void 0?n:e,r]}function Mat(t,e){const[n,r]=Nat(t,e),{startOfMonth:i,endOfMonth:s}=e,a=FX(t,n,r,e),[o,l]=E3(a,t.month?a:void 0);C.useEffect(()=>{const S=FX(t,n,r,e);l(S)},[t.timeZone]);const{months:u,weeks:c,days:d,previousMonth:h,nextMonth:m}=C.useMemo(()=>{const S=Aat(o,r,{numberOfMonths:t.numberOfMonths},e),A=Cat(S,t.endMonth?s(t.endMonth):void 0,{ISOWeek:t.ISOWeek,fixedWeeks:t.fixedWeeks,broadcastCalendar:t.broadcastCalendar},e),R=Rat(S,A,{broadcastCalendar:t.broadcastCalendar,fixedWeeks:t.fixedWeeks,ISOWeek:t.ISOWeek,reverseMonths:t.reverseMonths},e),T=Iat(R),O=Tat(R),I=kat(o,n,t,e),D=Oat(o,r,t,e);return{months:R,weeks:T,days:O,previousMonth:I,nextMonth:D}},[e,o.getTime(),r?.getTime(),n?.getTime(),t.disableNavigation,t.broadcastCalendar,t.endMonth?.getTime(),t.fixedWeeks,t.ISOWeek,t.numberOfMonths,t.pagedNavigation,t.reverseMonths]),{disableNavigation:g,onMonthChange:b}=t,v=S=>c.some(A=>A.days.some(R=>R.isEqualTo(S))),E=S=>{if(g)return;let A=i(S);n&&A<i(n)&&(A=i(n)),r&&A>i(r)&&(A=i(r)),l(A),b?.(A)};return{months:u,weeks:c,days:d,navStart:n,navEnd:r,previousMonth:h,nextMonth:m,goToMonth:E,goToDay:S=>{v(S)||E(S.date)}}}var Ll;(function(t){t[t.Today=0]="Today",t[t.Selected=1]="Selected",t[t.LastFocused=2]="LastFocused",t[t.FocusedModifier=3]="FocusedModifier"})(Ll||(Ll={}));function BX(t){return!t[kr.disabled]&&!t[kr.hidden]&&!t[kr.outside]}function Dat(t,e,n,r){let i,s=-1;for(const a of t){const o=e(a);BX(o)&&(o[kr.focused]&&s<Ll.FocusedModifier?(i=a,s=Ll.FocusedModifier):r?.isEqualTo(a)&&s<Ll.LastFocused?(i=a,s=Ll.LastFocused):n(a.date)&&s<Ll.Selected?(i=a,s=Ll.Selected):o[kr.today]&&s<Ll.Today&&(i=a,s=Ll.Today))}return i||(i=t.find(a=>BX(e(a)))),i}function Pat(t,e,n,r,i,s,a){const{ISOWeek:o,broadcastCalendar:l}=s,{addDays:u,addMonths:c,addWeeks:d,addYears:h,endOfBroadcastWeek:m,endOfISOWeek:g,endOfWeek:b,max:v,min:E,startOfBroadcastWeek:x,startOfISOWeek:_,startOfWeek:S}=a;let R={day:u,week:d,month:c,year:h,startOfWeek:T=>l?x(T,a):o?_(T):S(T),endOfWeek:T=>l?m(T):o?g(T):b(T)}[t](n,e==="after"?1:-1);return e==="before"&&r?R=v([r,R]):e==="after"&&i&&(R=E([i,R])),R}function O1e(t,e,n,r,i,s,a,o=0){if(o>365)return;const l=Pat(t,e,n.date,r,i,s,a),u=!!(s.disabled&&_c(l,s.disabled,a)),c=!!(s.hidden&&_c(l,s.hidden,a)),d=l,h=new m1e(l,d,a);return!u&&!c?h:O1e(t,e,h,r,i,s,a,o+1)}function Lat(t,e,n,r,i){const{autoFocus:s}=t,[a,o]=C.useState(),l=Dat(e.days,n,r||(()=>!1),a),[u,c]=C.useState(s?l:void 0);return{isFocusTarget:b=>!!l?.isEqualTo(b),setFocused:c,focused:u,blur:()=>{o(u),c(void 0)},moveFocus:(b,v)=>{if(!u)return;const E=O1e(b,v,u,e.navStart,e.navEnd,t,i);E&&(t.disableNavigation&&!e.days.some(_=>_.isEqualTo(E))||(e.goToDay(E),c(E)))}}}function $at(t,e){const{selected:n,required:r,onSelect:i}=t,[s,a]=E3(n,i?n:void 0),o=i?n:s,{isSameDay:l}=e,u=m=>o?.some(g=>l(g,m))??!1,{min:c,max:d}=t;return{selected:o,select:(m,g,b)=>{let v=[...o??[]];if(u(m)){if(o?.length===c||r&&o?.length===1)return;v=o?.filter(E=>!l(E,m))}else o?.length===d?v=[m]:v=[...v,m];return i||a(v),i?.(v,m,g,b),v},isSelected:u}}function Fat(t,e,n=0,r=0,i=!1,s=Cu){const{from:a,to:o}=e||{},{isSameDay:l,isAfter:u,isBefore:c}=s;let d;if(!a&&!o)d={from:t,to:n>0?void 0:t};else if(a&&!o)l(a,t)?n===0?d={from:a,to:t}:i?d={from:a,to:void 0}:d=void 0:c(t,a)?d={from:t,to:a}:d={from:a,to:t};else if(a&&o)if(l(a,t)&&l(o,t))i?d={from:a,to:o}:d=void 0;else if(l(a,t))d={from:a,to:n>0?void 0:t};else if(l(o,t))d={from:t,to:n>0?void 0:t};else if(c(t,a))d={from:t,to:o};else if(u(t,a))d={from:a,to:t};else if(u(t,o))d={from:a,to:t};else throw new Error("Invalid range");if(d?.from&&d?.to){const h=s.differenceInCalendarDays(d.to,d.from);r>0&&h>r?d={from:t,to:void 0}:n>1&&h<n&&(d={from:t,to:void 0})}return d}function Bat(t,e,n=Cu){const r=Array.isArray(e)?e:[e];let i=t.from;const s=n.differenceInCalendarDays(t.to,t.from),a=Math.min(s,6);for(let o=0;o<=a;o++){if(r.includes(i.getDay()))return!0;i=n.addDays(i,1)}return!1}function HX(t,e,n=Cu){return Ec(t,e.from,!1,n)||Ec(t,e.to,!1,n)||Ec(e,t.from,!1,n)||Ec(e,t.to,!1,n)}function Hat(t,e,n=Cu){const r=Array.isArray(e)?e:[e];if(r.filter(o=>typeof o!="function").some(o=>typeof o=="boolean"?o:n.isDate(o)?Ec(t,o,!1,n):b1e(o,n)?o.some(l=>Ec(t,l,!1,n)):v3(o)?o.from&&o.to?HX(t,{from:o.from,to:o.to},n):!1:y1e(o)?Bat(t,o.dayOfWeek,n):yF(o)?n.isAfter(o.before,o.after)?HX(t,{from:n.addDays(o.after,1),to:n.addDays(o.before,-1)},n):_c(t.from,o,n)||_c(t.to,o,n):bF(o)||vF(o)?_c(t.from,o,n)||_c(t.to,o,n):!1))return!0;const a=r.filter(o=>typeof o=="function");if(a.length){let o=t.from;const l=n.differenceInCalendarDays(t.to,t.from);for(let u=0;u<=l;u++){if(a.some(c=>c(o)))return!0;o=n.addDays(o,1)}}return!1}function Uat(t,e){const{disabled:n,excludeDisabled:r,selected:i,required:s,onSelect:a}=t,[o,l]=E3(i,a?i:void 0),u=a?i:o;return{selected:u,select:(h,m,g)=>{const{min:b,max:v}=t,E=h?Fat(h,u,b,v,s,e):void 0;return r&&n&&E?.from&&E.to&&Hat({from:E.from,to:E.to},n,e)&&(E.from=h,E.to=void 0),a||l(E),a?.(E,h,m,g),E},isSelected:h=>u&&Ec(u,h,!1,e)}}function jat(t,e){const{selected:n,required:r,onSelect:i}=t,[s,a]=E3(n,i?n:void 0),o=i?n:s,{isSameDay:l}=e;return{selected:o,select:(d,h,m)=>{let g=d;return!r&&o&&o&&l(d,o)&&(g=void 0),i||a(g),i?.(g,d,h,m),g},isSelected:d=>o?l(o,d):!1}}function zat(t,e){const n=jat(t,e),r=$at(t,e),i=Uat(t,e);switch(t.mode){case"single":return n;case"multiple":return r;case"range":return i;default:return}}function fo(t,e){return t instanceof ls&&t.timeZone===e?t:new ls(t,e)}function Hm(t,e,n){return fo(t,e)}function UX(t,e,n){return typeof t=="boolean"||typeof t=="function"?t:t instanceof Date?Hm(t,e):Array.isArray(t)?t.map(r=>r instanceof Date?Hm(r,e):r):v3(t)?{...t,from:t.from?fo(t.from,e):t.from,to:t.to?fo(t.to,e):t.to}:yF(t)?{before:Hm(t.before,e),after:Hm(t.after,e)}:bF(t)?{after:Hm(t.after,e)}:vF(t)?{before:Hm(t.before,e)}:t}function I4(t,e,n){return t&&(Array.isArray(t)?t.map(r=>UX(r,e)):UX(t,e))}function $It(t){let e=t;const n=e.timeZone;if(n&&(e={...t,timeZone:n},e.today&&(e.today=fo(e.today,n)),e.month&&(e.month=fo(e.month,n)),e.defaultMonth&&(e.defaultMonth=fo(e.defaultMonth,n)),e.startMonth&&(e.startMonth=fo(e.startMonth,n)),e.endMonth&&(e.endMonth=fo(e.endMonth,n)),e.mode==="single"&&e.selected?e.
vendor: 6,887 bytes, line 134
134selected=fo(e.selected,n):e.mode==="multiple"&&e.selected?e.selected=e.selected?.map(xt=>fo(xt,n)):e.mode==="range"&&e.selected&&(e.selected={from:e.selected.from?fo(e.selected.from,n):e.selected.from,to:e.selected.to?fo(e.selected.to,n):e.selected.to}),e.disabled!==void 0&&(e.disabled=I4(e.disabled,n)),e.hidden!==void 0&&(e.hidden=I4(e.hidden,n)),e.modifiers)){const xt={};Object.keys(e.modifiers).forEach(Bt=>{xt[Bt]=I4(e.modifiers?.[Bt],n)}),e.modifiers=xt}const{components:r,formatters:i,labels:s,dateLib:a,locale:o,classNames:l}=C.useMemo(()=>{const xt={...p1e,...e.locale},Bt=e.broadcastCalendar?1:e.weekStartsOn,bt=e.noonSafe&&e.timeZone?Eat(e.timeZone,{weekStartsOn:Bt,locale:xt}):void 0,yt=e.dateLib&&bt?{...bt,...e.dateLib}:e.dateLib??bt,rn=new Wa({locale:xt,weekStartsOn:Bt,firstWeekContainsDate:e.firstWeekContainsDate,useAdditionalWeekYearTokens:e.useAdditionalWeekYearTokens,useAdditionalDayOfYearTokens:e.useAdditionalDayOfYearTokens,timeZone:e.timeZone,numerals:e.numerals},yt);return{dateLib:rn,components:Jst(e.components),formatters:cat(e.formatters),labels:mat(e.labels,rn.options),locale:xt,classNames:{...tat(),...e.classNames}}},[e.locale,e.broadcastCalendar,e.weekStartsOn,e.firstWeekContainsDate,e.useAdditionalWeekYearTokens,e.useAdditionalDayOfYearTokens,e.timeZone,e.numerals,e.dateLib,e.noonSafe,e.components,e.formatters,e.labels,e.classNames]);e.today||(e={...e,today:a.today()});const{captionLayout:u,mode:c,navLayout:d,numberOfMonths:h=1,onDayBlur:m,onDayClick:g,onDayFocus:b,onDayKeyDown:v,onDayMouseEnter:E,onDayMouseLeave:x,onNextClick:_,onPrevClick:S,showWeekNumber:A,styles:R}=e,{formatCaption:T,formatDay:O,formatMonthDropdown:I,formatWeekNumber:D,formatWeekNumberHeader:P,formatWeekdayName:B,formatYearDropdown:L}=i,$=Mat(e,a),{days:q,months:F,navStart:G,navEnd:H,previousMonth:K,nextMonth:V,goToMonth:Y}=$,Z=Qst(q,e,G,H,a),{isSelected:W,select:Q,selected:re}=zat(e,a)??{},{blur:se,focused:J,isFocusTarget:ae,moveFocus:ge,setFocused:ve}=Lat(e,$,Z,W??(()=>!1),a),{labelDayButton:Re,labelGridcell:xe,labelGrid:Ne,labelMonthDropdown:Fe,labelNav:Le,labelPrevious:ze,labelNext:qe,labelWeekday:_t,labelWeekNumber:Ot,labelWeekNumberHeader:Lt,labelYearDropdown:ue}=s,te=C.useMemo(()=>bat(a,e.ISOWeek,e.broadcastCalendar,e.today),[a,e.ISOWeek,e.broadcastCalendar,e.today]),de=c!==void 0||g!==void 0,be=C.useCallback(()=>{K&&(Y(K),S?.(K))},[K,Y,S]),ce=C.useCallback(()=>{V&&(Y(V),_?.(V))},[Y,V,_]),ne=C.useCallback((xt,Bt)=>bt=>{bt.preventDefault(),bt.stopPropagation(),ve(xt),!Bt.disabled&&(Q?.(xt.date,Bt,bt),g?.(xt.date,Bt,bt))},[Q,g,ve]),fe=C.useCallback((xt,Bt)=>bt=>{ve(xt),b?.(xt.date,Bt,bt)},[b,ve]),X=C.useCallback((xt,Bt)=>bt=>{se(),m?.(xt.date,Bt,bt)},[se,m]),Oe=C.useCallback((xt,Bt)=>bt=>{const yt={ArrowLeft:[bt.shiftKey?"month":"day",e.dir==="rtl"?"after":"before"],ArrowRight:[bt.shiftKey?"month":"day",e.dir==="rtl"?"before":"after"],ArrowDown:[bt.shiftKey?"year":"week","after"],ArrowUp:[bt.shiftKey?"year":"week","before"],PageUp:[bt.shiftKey?"year":"month","before"],PageDown:[bt.shiftKey?"year":"month","after"],Home:["startOfWeek","before"],End:["endOfWeek","after"]};if(yt[bt.key]){bt.preventDefault(),bt.stopPropagation();const[rn,vt]=yt[bt.key];ge(rn,vt)}v?.(xt.date,Bt,bt)},[ge,v,e.dir]),Ye=C.useCallback((xt,Bt)=>bt=>{E?.(xt.date,Bt,bt)},[E]),rt=C.useCallback((xt,Bt)=>bt=>{x?.(xt.date,Bt,bt)},[x]),Ut=C.useCallback(xt=>Bt=>{const bt=Number(Bt.target.value),yt=a.setMonth(a.startOfMonth(xt),bt);Y(yt)},[a,Y]),Kt=C.useCallback(xt=>Bt=>{const bt=Number(Bt.target.value),yt=a.setYear(a.startOfMonth(xt),bt);Y(yt)},[a,Y]),{className:It,style:Tn}=C.useMemo(()=>({className:[l[St.Root],e.className].filter(Boolean).join(" "),style:{...R?.[St.Root],...e.style}}),[l,e.className,e.style,R]),qt=eat(e),or=C.useRef(null);Sat(or,!!e.animate,{classNames:l,months:F,focused:J,dateLib:a});const tr={dayPickerProps:e,selected:re,select:Q,isSelected:W,months:F,nextMonth:V,previousMonth:K,goToMonth:Y,getModifiers:Z,components:r,classNames:l,styles:R,labels:s,formatters:i};return U.createElement(g1e.Provider,{value:tr},U.createElement(r.Root,{rootRef:e.animate?or:void 0,className:It,style:Tn,dir:e.dir,id:e.id,lang:e.lang,nonce:e.nonce,title:e.title,role:e.role,"aria-label":e["aria-label"],"aria-labelledby":e["aria-labelledby"],...qt},U.createElement(r.Months,{className:l[St.Months],style:R?.[St.Months]},!e.hideNavigation&&!d&&U.createElement(r.Nav,{"data-animated-nav":e.animate?"true":void 0,className:l[St.Nav],style:R?.[St.Nav],"aria-label":Le(),onPreviousClick:be,onNextClick:ce,previousMonth:K,nextMonth:V}),F.map((xt,Bt)=>U.createElement(r.Month,{"data-animated-month":e.animate?"true":void 0,className:l[St.Month],style:R?.[St.Month],key:Bt,displayIndex:Bt,calendarMonth:xt},d==="around"&&!e.hideNavigation&&Bt===0&&U.createElement(r.PreviousMonthButton,{type:"button",className:l[St.PreviousMonthButton],tabIndex:K?void 0:-1,"aria-disabled":K?void 0:!0,"aria-label":ze(K),onClick:be,"data-animated-button":e.animate?"true":void 0},U.createElement(r.Chevron,{disabled:K?void 0:!0,className:l[St.Chevron],orientation:e.dir==="rtl"?"right":"left"})),U.createElement(r.MonthCaption,{"data-animated-caption":e.animate?"true":void 0,className:l[St.MonthCaption],style:R?.[St.MonthCaption],calendarMonth:xt,displayIndex:Bt},u?.startsWith("dropdown")?U.createElement(r.DropdownNav,{className:l[St.Dropdowns],style:R?.[St.Dropdowns]},(()=>{const bt=u==="dropdown"||u==="dropdown-months"?U.createElement(r.MonthsDropdown,{key:"month",className:l[St.MonthsDropdown],"aria-label":Fe(),classNames:l,components:r,disabled:!!e.disableNavigation,onChange:Ut(xt.date),options:gat(xt.date,G,H,i,a),style:R?.[St.Dropdown],value:a.getMonth(xt.date)}):U.createElement("span",{key:"month"},I(xt.date,a)),yt=u==="dropdown"||u==="dropdown-years"?U.createElement(r.YearsDropdown,{key:"year",className:l[St.YearsDropdown],"aria-label":ue(a.options),classNames:l,components:r,disabled:!!e.disableNavigation,onChange:Kt(xt.date),options:vat(G,H,i,a,!!e.reverseYears),style:R?.[St.Dropdown],value:a.getYear(xt.date)}):U.createElement("span",{key:"year"},L(xt.date,a));return a.getMonthYearOrder()==="year-first"?[yt,bt]:[bt,yt]})(),U.createElement("span",{role:"status","aria-live":"polite",style:{border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap",wordWrap:"normal"}},T(xt.date,a.options,a))):U.createElement(r.CaptionLabel,{className:l[St.CaptionLabel],role:"status","aria-live":"polite"},T(xt.date,a.options,a))),d==="around"&&!e.hideNavigation&&Bt===h-1&&U.createElement(r.NextMonthButton,{type:"button",className:l[St.NextMonthButton],tabIndex:V?void 0:-1,"aria-disabled":V?void 0:!0,"aria-label":qe(V),onClick:ce,"data-animated-button":e.animate?"true":void 0},U.createElement(r.Chevron,{disabled:V?void 0:!0,className:l[St.Chevron],orientation:e.dir==="rtl"?"left"
vendor: 4,938 bytes, lines 134-135
134:"right"})),Bt===h-1&&d==="after"&&!e.hideNavigation&&U.createElement(r.Nav,{"data-animated-nav":e.animate?"true":void 0,className:l[St.Nav],style:R?.[St.Nav],"aria-label":Le(),onPreviousClick:be,onNextClick:ce,previousMonth:K,nextMonth:V}),U.createElement(r.MonthGrid,{role:"grid","aria-multiselectable":c==="multiple"||c==="range","aria-label":Ne(xt.date,a.options,a)||void 0,className:l[St.MonthGrid],style:R?.[St.MonthGrid]},!e.hideWeekdays&&U.createElement(r.Weekdays,{"data-animated-weekdays":e.animate?"true":void 0,className:l[St.Weekdays],style:R?.[St.Weekdays]},A&&U.createElement(r.WeekNumberHeader,{"aria-label":Lt(a.options),className:l[St.WeekNumberHeader],style:R?.[St.WeekNumberHeader],scope:"col"},P()),te.map(bt=>U.createElement(r.Weekday,{"aria-label":_t(bt,a.options,a),className:l[St.Weekday],key:String(bt),style:R?.[St.Weekday],scope:"col"},B(bt,a.options,a)))),U.createElement(r.Weeks,{"data-animated-weeks":e.animate?"true":void 0,className:l[St.Weeks],style:R?.[St.Weeks]},xt.weeks.map(bt=>U.createElement(r.Week,{className:l[St.Week],key:bt.weekNumber,style:R?.[St.Week],week:bt},A&&U.createElement(r.WeekNumber,{week:bt,style:R?.[St.WeekNumber],"aria-label":Ot(bt.weekNumber,{locale:o}),className:l[St.WeekNumber],scope:"row",role:"rowheader"},D(bt.weekNumber,a)),bt.days.map(yt=>{const{date:rn}=yt,vt=Z(yt);if(vt[kr.focused]=!vt.hidden&&!!J?.isEqualTo(yt),vt[el.selected]=W?.(rn)||vt.selected,v3(re)){const{from:ur,to:Gr}=re;vt[el.range_start]=!!(ur&&Gr&&a.isSameDay(rn,ur)),vt[el.range_end]=!!(ur&&Gr&&a.isSameDay(rn,Gr)),vt[el.range_middle]=Ec(re,rn,!0,a)}const ni=yat(vt,R,e.modifiersStyles),qr=Zst(vt,l,e.modifiersClassNames),lr=!de&&!vt.hidden?xe(rn,vt,a.options,a):void 0;return U.createElement(r.Day,{key:`${yt.isoDate}_${yt.displayMonthId}`,day:yt,modifiers:vt,className:qr.join(" "),style:ni,role:"gridcell","aria-selected":vt.selected||void 0,"aria-label":lr,"data-day":yt.isoDate,"data-month":yt.outside?yt.dateMonthId:void 0,"data-selected":vt.selected||void 0,"data-disabled":vt.disabled||void 0,"data-hidden":vt.hidden||void 0,"data-outside":yt.outside||void 0,"data-focused":vt.focused||void 0,"data-today":vt.today||void 0},!vt.hidden&&de?U.createElement(r.DayButton,{className:l[St.DayButton],style:R?.[St.DayButton],type:"button",day:yt,modifiers:vt,disabled:!vt.focused&&vt.disabled||void 0,"aria-disabled":vt.focused&&vt.disabled||void 0,tabIndex:ae(yt)?0:-1,"aria-label":Re(rn,vt,a.options,a),onClick:ne(yt,vt),onBlur:X(yt,vt),onFocus:fe(yt,vt),onKeyDown:Oe(yt,vt),onMouseEnter:Ye(yt,vt),onMouseLeave:rt(yt,vt)},O(rn,a.options,a)):!vt.hidden&&O(yt.date,a.options,a))})))))))),e.footer&&U.createElement(r.Footer,{className:l[St.Footer],style:R?.[St.Footer],role:"status","aria-live":"polite"},e.footer)))}var Vat=Symbol("radix.slottable");function qat(t){const e=({children:n})=>j.jsx(j.Fragment,{children:n});return e.displayName=`${t}.Slottable`,e.__radixId=Vat,e}var k1e="AlertDialog",[Gat]=Ji(k1e,[wde]),Gc=wde(),I1e=t=>{const{__scopeAlertDialog:e,...n}=t,r=Gc(e);return j.jsx(N9e,{...r,...n,modal:!0})};I1e.displayName=k1e;var Wat="AlertDialogTrigger",Yat=C.forwardRef((t,e)=>{const{__scopeAlertDialog:n,...r}=t,i=Gc(n);return j.jsx(O9e,{...i,...r,ref:e})});Yat.displayName=Wat;var Kat="AlertDialogPortal",M1e=t=>{const{__scopeAlertDialog:e,...n}=t,r=Gc(e);return j.jsx(k9e,{...r,...n})};M1e.displayName=Kat;var Xat="AlertDialogOverlay",D1e=C.forwardRef((t,e)=>{const{__scopeAlertDialog:n,...r}=t,i=Gc(n);return j.jsx(I9e,{...i,...r,ref:e})});D1e.displayName=Xat;var xg="AlertDialogContent",[Qat,Zat]=Gat(xg),Jat=qat("AlertDialogContent"),P1e=C.forwardRef((t,e)=>{const{__scopeAlertDialog:n,children:r,...i}=t,s=Gc(n),a=C.useRef(null),o=nn(e,a),l=C.useRef(null);return j.jsx(C9e,{contentName:xg,titleName:L1e,docsSlug:"alert-dialog",children:j.jsx(Qat,{scope:n,cancelRef:l,children:j.jsxs(M9e,{role:"alertdialog",...s,...i,ref:o,onOpenAutoFocus:tt(i.onOpenAutoFocus,u=>{u.preventDefault(),l.current?.focus({preventScroll:!0})}),onPointerDownOutside:u=>u.preventDefault(),onInteractOutside:u=>u.preventDefault(),children:[j.jsx(Jat,{children:r}),j.jsx(tot,{contentRef:a})]})})})});P1e.displayName=xg;var L1e="AlertDialogTitle",$1e=C.forwardRef((t,e)=>{const{__scopeAlertDialog:n,...r}=t,i=Gc(n);return j.jsx(D9e,{...i,...r,ref:e})});$1e.displayName=L1e;var F1e="AlertDialogDescription",B1e=C.forwardRef((t,e)=>{const{__scopeAlertDialog:n,...r}=t,i=Gc(n);return j.jsx(P9e,{...i,...r,ref:e})});B1e.displayName=F1e;var eot="AlertDialogAction",H1e=C.forwardRef((t,e)=>{const{__scopeAlertDialog:n,...r}=t,i=Gc(n);return j.jsx(Bde,{...i,...r,ref:e})});H1e.displayName=eot;var U1e="AlertDialogCancel",j1e=C.forwardRef((t,e)=>{const{__scopeAlertDialog:n,...r}=t,{cancelRef:i}=Zat(U1e,n),s=Gc(n),a=nn(e,i);return j.jsx(Bde,{...s,...r,ref:a})});j1e.displayName=U1e;var tot=({contentRef:t})=>{const e=`\`${xg}\` requires a description for the component to be accessible for screen reader users. 135
136You can add a description to the \`${xg}\` by passing a \`${F1e}\` component as a child, which also benefits sighted users by adding visible context to the dialog. 137 138Alternatively, 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 \`${xg}\`. 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. 139 140For more information, see https://radix-ui.com/primitives/docs/components/alert-dialog`;return C.useEffect(()=>{document.getElementById(t.current?.getAttribute("aria-describedby"))||console.warn(e)},[e,t]),null},FIt=I1e,BIt=M1e,HIt=D1e,UIt=P1e,jIt=H1e,zIt=j1e,VIt=$1e,qIt=B1e;const not
vendor: 41,168 bytes, line 140
140=new Map([["1km","application/vnd.1000minds.decision-model+xml"],["3dml","text/vnd.in3d.3dml"],["3ds","image/x-3ds"],["3g2","video/3gpp2"],["3gp","video/3gp"],["3gpp","video/3gpp"],["3mf","model/3mf"],["7z","application/x-7z-compressed"],["7zip","application/x-7z-compressed"],["123","application/vnd.lotus-1-2-3"],["aab","application/x-authorware-bin"],["aac","audio/x-acc"],["aam","application/x-authorware-map"],["aas","application/x-authorware-seg"],["abw","application/x-abiword"],["ac","application/vnd.nokia.n-gage.ac+xml"],["ac3","audio/ac3"],["acc","application/vnd.americandynamics.acc"],["ace","application/x-ace-compressed"],["acu","application/vnd.acucobol"],["acutc","application/vnd.acucorp"],["adp","audio/adpcm"],["aep","application/vnd.audiograph"],["afm","application/x-font-type1"],["afp","application/vnd.ibm.modcap"],["ahead","application/vnd.ahead.space"],["ai","application/pdf"],["aif","audio/x-aiff"],["aifc","audio/x-aiff"],["aiff","audio/x-aiff"],["air","application/vnd.adobe.air-application-installer-package+zip"],["ait","application/vnd.dvb.ait"],["ami","application/vnd.amiga.ami"],["amr","audio/amr"],["apk","application/vnd.android.package-archive"],["apng","image/apng"],["appcache","text/cache-manifest"],["application","application/x-ms-application"],["apr","application/vnd.lotus-approach"],["arc","application/x-freearc"],["arj","application/x-arj"],["asc","application/pgp-signature"],["asf","video/x-ms-asf"],["asm","text/x-asm"],["aso","application/vnd.accpac.simply.aso"],["asx","video/x-ms-asf"],["atc","application/vnd.acucorp"],["atom","application/atom+xml"],["atomcat","application/atomcat+xml"],["atomdeleted","application/atomdeleted+xml"],["atomsvc","application/atomsvc+xml"],["atx","application/vnd.antix.game-component"],["au","audio/x-au"],["avi","video/x-msvideo"],["avif","image/avif"],["aw","application/applixware"],["azf","application/vnd.airzip.filesecure.azf"],["azs","application/vnd.airzip.filesecure.azs"],["azv","image/vnd.airzip.accelerator.azv"],["azw","application/vnd.amazon.ebook"],["b16","image/vnd.pco.b16"],["bat","application/x-msdownload"],["bcpio","application/x-bcpio"],["bdf","application/x-font-bdf"],["bdm","application/vnd.syncml.dm+wbxml"],["bdoc","application/x-bdoc"],["bed","application/vnd.realvnc.bed"],["bh2","application/vnd.fujitsu.oasysprs"],["bin","application/octet-stream"],["blb","application/x-blorb"],["blorb","application/x-blorb"],["bmi","application/vnd.bmi"],["bmml","application/vnd.balsamiq.bmml+xml"],["bmp","image/bmp"],["book","application/vnd.framemaker"],["box","application/vnd.previewsystems.box"],["boz","application/x-bzip2"],["bpk","application/octet-stream"],["bpmn","application/octet-stream"],["bsp","model/vnd.valve.source.compiled-map"],["btif","image/prs.btif"],["buffer","application/octet-stream"],["bz","application/x-bzip"],["bz2","application/x-bzip2"],["c","text/x-c"],["c4d","application/vnd.clonk.c4group"],["c4f","application/vnd.clonk.c4group"],["c4g","application/vnd.clonk.c4group"],["c4p","application/vnd.clonk.c4group"],["c4u","application/vnd.clonk.c4group"],["c11amc","application/vnd.cluetrust.cartomobile-config"],["c11amz","application/vnd.cluetrust.cartomobile-config-pkg"],["cab","application/vnd.ms-cab-compressed"],["caf","audio/x-caf"],["cap","application/vnd.tcpdump.pcap"],["car","application/vnd.curl.car"],["cat","application/vnd.ms-pki.seccat"],["cb7","application/x-cbr"],["cba","application/x-cbr"],["cbr","application/x-cbr"],["cbt","application/x-cbr"],["cbz","application/x-cbr"],["cc","text/x-c"],["cco","application/x-cocoa"],["cct","application/x-director"],["ccxml","application/ccxml+xml"],["cdbcmsg","application/vnd.contact.cmsg"],["cda","application/x-cdf"],["cdf","application/x-netcdf"],["cdfx","application/cdfx+xml"],["cdkey","application/vnd.mediastation.cdkey"],["cdmia","application/cdmi-capability"],["cdmic","application/cdmi-container"],["cdmid","application/cdmi-domain"],["cdmio","application/cdmi-object"],["cdmiq","application/cdmi-queue"],["cdr","application/cdr"],["cdx","chemical/x-cdx"],["cdxml","application/vnd.chemdraw+xml"],["cdy","application/vnd.cinderella"],["cer","application/pkix-cert"],["cfs","application/x-cfs-compressed"],["cgm","image/cgm"],["chat","application/x-chat"],["chm","application/vnd.ms-htmlhelp"],["chrt","application/vnd.kde.kchart"],["cif","chemical/x-cif"],["cii","application/vnd.anser-web-certificate-issue-initiation"],["cil","application/vnd.ms-artgalry"],["cjs","application/node"],["cla","application/vnd.claymore"],["class","application/octet-stream"],["clkk","application/vnd.crick.clicker.keyboard"],["clkp","application/vnd.crick.clicker.palette"],["clkt","application/vnd.crick.clicker.template"],["clkw","application/vnd.crick.clicker.wordbank"],["clkx","application/vnd.crick.clicker"],["clp","application/x-msclip"],["cmc","application/vnd.cosmocaller"],["cmdf","chemical/x-cmdf"],["cml","chemical/x-cml"],["cmp","application/vnd.yellowriver-custom-menu"],["cmx","image/x-cmx"],["cod","application/vnd.rim.cod"],["coffee","text/coffeescript"],["com","application/x-msdownload"],["conf","text/plain"],["cpio","application/x-cpio"],["cpp","text/x-c"],["cpt","application/mac-compactpro"],["crd","application/x-mscardfile"],["crl","application/pkix-crl"],["crt","application/x-x509-ca-cert"],["crx","application/x-chrome-extension"],["cryptonote","application/vnd.rig.cryptonote"],["csh","application/x-csh"],["csl","application/vnd.citationstyles.style+xml"],["csml","chemical/x-csml"],["csp","application/vnd.commonspace"],["csr","application/octet-stream"],["css","text/css"],["cst","application/x-director"],["csv","text/csv"],["cu","application/cu-seeme"],["curl","text/vnd.curl"],["cww","application/prs.cww"],["cxt","application/x-director"],["cxx","text/x-c"],["dae","model/vnd.collada+xml"],["daf","application/vnd.mobius.daf"],["dart","application/vnd.dart"],["dataless","application/vnd.fdsn.seed"],["davmount","application/davmount+xml"],["dbf","application/vnd.dbf"],["dbk","application/docbook+xml"],["dcr","application/x-director"],["dcurl","text/vnd.curl.dcurl"],["dd2","application/vnd.oma.dd2+xml"],["ddd","application/vnd.fujixerox.ddd"],["ddf","application/vnd.syncml.dmddf+xml"],["dds","image/vnd.ms-dds"],["deb","application/x-debian-package"],["def","text/plain"],["deploy","application/octet-stream"],["der","application/x-x509-ca-cert"],["dfac","application/vnd.dreamfactory"],["dgc","application/x-dgc-compressed"],["dic","text/x-c"],["dir","application/x-director"],["dis","application/vnd.mobius.dis"],["disposition-notification","message/disposition-notification"],["dist","application/octet-stream"],["distz","application/octet-stream"],["djv","image/vnd.djvu"],["djvu","image/vnd.djvu"],["dll","application/octet-stream"],["dmg","application/x-apple-diskimage"],["dmn","application/octet-stream"],["dmp","application/vnd.tcpdump.pcap"],["dms","application/octet-stream"],["dna","application/vnd.dna"],["doc","application/msword"],["docm","application/vnd.ms-word.template.macroEnabled.12"],["docx","application/vnd.openxmlformats-officedocument.wordprocessingml.document"],["dot","application/msword"],["dotm","application/vnd.ms-word.template.macroEnabled.12"],["dotx","application/vnd.openxmlformats-officedocument.wordprocessingml.template"],["dp","application/vnd.osgi.dp"],["dpg","application/vnd.dpgraph"],["dra","audio/vnd.dra"],["drle","image/dicom-rle"],["dsc","text/prs.lines.tag"],["dssc","application/dssc+der"],["dtb","application/x-dtbook+xml"],["dtd","application/xml-dtd"],["dts","audio/vnd.dts"],["dtshd","audio/vnd.dts.hd"],["dump","application/octet-stream"],["dvb","video/vnd.dvb.file"],["dvi","application/x-dvi"],["dwd","application/atsc-dwd+xml"],["dwf","model/vnd.dwf"],["dwg","image/vnd.dwg"],["dxf","image/vnd.dxf"],["dxp","application/vnd.spotfire.dxp"],["dxr","application/x-director"],["ear","application/java-archive"],["ecelp4800","audio/vnd.nuera.ecelp4800"],["ecelp7470","audio/vnd.nuera.ecelp7470"],["ecelp9600","audio/vnd.nuera.ecelp9600"],["ecma","application/ecmascript"],["edm","application/vnd.novadigm.edm"],["edx","application/vnd.novadigm.edx"],["efif","application/vnd.picsel"],["ei6","application/vnd.pg.osasli"],["elc","application/octet-stream"],["emf","image/emf"],["eml","message/rfc822"],["emma","application/emma+xml"],["emotionml","application/emotionml+xml"],["emz","application/x-msmetafile"],["eol","audio/vnd.digital-winds"],["eot","application/vnd.ms-fontobject"],["eps","application/postscript"],["epub","application/epub+zip"],["es","application/ecmascript"],["es3","application/vnd.eszigno3+xml"],["esa","application/vnd.osgi.subsystem"],["esf","application/vnd.epson.esf"],["et3","application/vnd.eszigno3+xml"],["etx","text/x-setext"],["eva","application/x-eva"],["evy","application/x-envoy"],["exe","application/octet-stream"],["exi","application/exi"],["exp","application/express"],["exr","image/aces"],["ext","application/vnd.novadigm.ext"],["ez","application/andrew-inset"],["ez2","application/vnd.ezpix-album"],["ez3","application/vnd.ezpix-package"],["f","text/x-fortran"],["f4v","video/mp4"],["f77","text/x-fortran"],["f90","text/x-fortran"],["fbs","image/vnd.fastbidsheet"],["fcdt","application/vnd.adobe.formscentral.fcdt"],["fcs","application/vnd.isac.fcs"],["fdf","application/vnd.fdf"],["fdt","application/fdt+xml"],["fe_launch","application/vnd.denovo.fcselayout-link"],["fg5","application/vnd.fujitsu.oasysgp"],["fgd","application/x-director"],["fh","image/x-freehand"],["fh4","image/x-freehand"],["fh5","image/x-freehand"],["fh7","image/x-freehand"],["fhc","image/x-freehand"],["fig","application/x-xfig"],["fits","image/fits"],["flac","audio/x-flac"],["fli","video/x-fli"],["flo","application/vnd.micrografx.flo"],["flv","video/x-flv"],["flw","application/vnd.kde.kivio"],["flx","text/vnd.fmi.flexstor"],["fly","text/vnd.fly"],["fm","application/vnd.framemaker"],["fnc","application/vnd.frogans.fnc"],["fo","application/vnd.software602.filler.form+xml"],["for","text/x-fortran"],["fpx","image/vnd.fpx"],["frame","application/vnd.framemaker"],["fsc","application/vnd.fsc.weblaunch"],["fst","image/vnd.fst"],["ftc","application/vnd.fluxtime.clip"],["fti","application/vnd.anser-web-funds-transfer-initiation"],["fvt","video/vnd.fvt"],["fxp","application/vnd.adobe.fxp"],["fxpl","application/vnd.adobe.fxp"],["fzs","application/vnd.fuzzysheet"],["g2w","application/vnd.geoplan"],["g3","image/g3fax"],["g3w","application/vnd.geospace"],["gac","application/vnd.groove-account"],["gam","application/x-tads"],["gbr","application/rpki-ghostbusters"],["gca","application/x-gca-compressed"],["gdl","model/vnd.gdl"],["gdoc","application/vnd.google-apps.document"],["geo","application/vnd.dynageo"],["geojson","application/geo+json"],["gex","application/vnd.geometry-explorer"],["ggb","application/vnd.geogebra.file"],["ggt","application/vnd.geogebra.tool"],["ghf","application/vnd.groove-help"],["gif","image/gif"],["gim","application/vnd.groove-identity-message"],["glb","model/gltf-binary"],["gltf","model/gltf+json"],["gml","application/gml+xml"],["gmx","application/vnd.gmx"],["gnumeric","application/x-gnumeric"],["gpg","application/gpg-keys"],["gph","application/vnd.flographit"],["gpx","application/gpx+xml"],["gqf","application/vnd.grafeq"],["gqs","application/vnd.grafeq"],["gram","application/srgs"],["gramps","application/x-gramps-xml"],["gre","application/vnd.geometry-explorer"],["grv","application/vnd.groove-injector"],["grxml","application/srgs+xml"],["gsf","application/x-font-ghostscript"],["gsheet","application/vnd.google-apps.spreadsheet"],["gslides","application/vnd.google-apps.presentation"],["gtar","application/x-gtar"],["gtm","application/vnd.groove-tool-message"],["gtw","model/vnd.gtw"],["gv","text/vnd.graphviz"],["gxf","application/gxf"],["gxt","application/vnd.geonext"],["gz","application/gzip"],["gzip","application/gzip"],["h","text/x-c"],["h261","video/h261"],["h263","video/h263"],["h264","video/h264"],["hal","application/vnd.hal+xml"],["hbci","application/vnd.hbci"],["hbs","text/x-handlebars-template"],["hdd","application/x-virtualbox-hdd"],["hdf","application/x-hdf"],["heic","image/heic"],["heics","image/heic-sequence"],["heif","image/heif"],["heifs","image/heif-sequence"],["hej2","image/hej2k"],["held","application/atsc-held+xml"],["hh","text/x-c"],["hjson","application/hjson"],["hlp","application/winhlp"],["hpgl","application/vnd.hp-hpgl"],["hpid","application/vnd.hp-hpid"],["hps","application/vnd.hp-hps"],["hqx","application/mac-binhex40"],["hsj2","image/hsj2"],["htc","text/x-component"],["htke","application/vnd.kenameaapp"],["htm","text/html"],["html","text/html"],["hvd","application/vnd.yamaha.hv-dic"],["hvp","application/vnd.yamaha.hv-voice"],["hvs","application/vnd.yamaha.hv-script"],["i2g","application/vnd.intergeo"],["icc","application/vnd.iccprofile"],["ice","x-conference/x-cooltalk"],["icm","application/vnd.iccprofile"],["ico","image/x-icon"],["ics","text/calendar"],["ief","image/ief"],["ifb","text/calendar"],["ifm","application/vnd.shana.informed.formdata"],["iges","model/iges"],["igl","application/vnd.igloader"],["igm","application/vnd.insors.igm"],["igs","model/iges"],["igx","application/vnd.micrografx.igx"],["iif","application/vnd.shana.informed.interchange"],["img","application/octet-stream"],["imp","application/vnd.accpac.simply.imp"],["ims","application/vnd.ms-ims"],["in","text/plain"],["ini","text/plain"],["ink","application/inkml+xml"],["inkml","application/inkml+xml"],["install","application/x-install-instructions"],["iota","application/vnd.astraea-software.iota"],["ipfix","application/ipfix"],["ipk","application/vnd.shana.informed.package"],["irm","application/vnd.ibm.rights-management"],["irp","application/vnd.irepository.package+xml"],["iso","application/x-iso9660-image"],["itp","application/vnd.shana.informed.formtemplate"],["its","application/its+xml"],["ivp","application/vnd.immervision-ivp"],["ivu","application/vnd.immervision-ivu"],["jad","text/vnd.sun.j2me.app-descriptor"],["jade","text/jade"],["jam","application/vnd.jam"],["jar","application/java-archive"],["jardiff","application/x-java-archive-diff"],["java","text/x-java-source"],["jhc","image/jphc"],["jisp","application/vnd.jisp"],["jls","image/jls"],["jlt","application/vnd.hp-jlyt"],["jng","image/x-jng"],["jnlp","application/x-java-jnlp-file"],["joda","application/vnd.joost.joda-archive"],["jp2","image/jp2"],["jpe","image/jpeg"],["jpeg","image/jpeg"],["jpf","image/jpx"],["jpg","image/jpeg"],["jpg2","image/jp2"],["jpgm","video/jpm"],["jpgv","video/jpeg"],["jph","image/jph"],["jpm","video/jpm"],["jpx","image/jpx"],["js","application/javascript"],["json","application/json"],["json5","application/json5"],["jsonld","application/ld+json"],["jsonl","application/jsonl"],["jsonml","application/jsonml+json"],["jsx","text/jsx"],["jxr","image/jxr"],["jxra","image/jxra"],["jxrs","image/jxrs"],["jxs","image/jxs"],["jxsc","image/jxsc"],["jxsi","image/jxsi"],["jxss","image/jxss"],["kar","audio/midi"],["karbon","application/vnd.kde.karbon"],["kdb","application/octet-stream"],["kdbx","application/x-keepass2"],["key","application/x-iwork-keynote-sffkey"],["kfo","application/vnd.kde.kformula"],["kia","application/vnd.kidspiration"],["kml","application/vnd.google-earth.kml+xml"],["kmz","application/vnd.google-earth.kmz"],["kne","application/vnd.kinar"],["knp","application/vnd.kinar"],["kon","application/vnd.kde.kontour"],["kpr","application/vnd.kde.kpresenter"],["kpt","application/vnd.kde.kpresenter"],["kpxx","application/vnd.ds-keypoint"],["ksp","application/vnd.kde.kspread"],["ktr","application/vnd.kahootz"],["ktx","image/ktx"],["ktx2","image/ktx2"],["ktz","application/vnd.kahootz"],["kwd","application/vnd.kde.kword"],["kwt","application/vnd.kde.kword"],["lasxml","application/vnd.las.las+xml"],["latex","application/x-latex"],["lbd","application/vnd.llamagraphics.life-balance.desktop"],["lbe","application/vnd.llamagraphics.life-balance.exchange+xml"],["les","application/vnd.hhe.lesson-player"],["less","text/less"],["lgr","application/lgr+xml"],["lha","application/octet-stream"],["link66","application/vnd.route66.link66+xml"],["list","text/plain"],["list3820","application/vnd.ibm.modcap"],["listafp","application/vnd.ibm.modcap"],["litcoffee","text/coffeescript"],["lnk","application/x-ms-shortcut"],["log","text/plain"],["lostxml","application/lost+xml"],["lrf","application/octet-stream"],["lrm","application/vnd.ms-lrm"],["ltf","application/vnd.frogans.ltf"],["lua","text/x-lua"],["luac","application/x-lua-bytecode"],["lvp","audio/vnd.lucent.voice"],["lwp","application/vnd.lotus-wordpro"],["lzh","application/octet-stream"],["m1v","video/mpeg"],["m2a","audio/mpeg"],["m2v","video/mpeg"],["m3a","audio/mpeg"],["m3u","text/plain"],["m3u8","application/vnd.apple.mpegurl"],["m4a","audio/x-m4a"],["m4p","application/mp4"],["m4s","video/iso.segment"],["m4u","application/vnd.mpegurl"],["m4v","video/x-m4v"],["m13","application/x-msmediaview"],["m14","application/x-msmediaview"],["m21","application/mp21"],["ma","application/mathematica"],["mads","application/mads+xml"],["maei","application/mmt-aei+xml"],["mag","application/vnd.ecowin.chart"],["maker","application/vnd.framemaker"],["man","text/troff"],["manifest","text/cache-manifest"],["map","application/json"],["mar","application/octet-stream"],["markdown","text/markdown"],["mathml","application/mathml+xml"],["mb","application/mathematica"],["mbk","application/vnd.mobius.mbk"],["mbox","application/mbox"],["mc1","application/vnd.medcalcdata"],["mcd","application/vnd.mcd"],["mcurl","text/vnd.curl.mcurl"],["md","text/markdown"],["mdb","application/x-msaccess"],["mdi","image/vnd.ms-modi"],["mdx","text/mdx"],["me","text/troff"],["mesh","model/mesh"],["meta4","application/metalink4+xml"],["metalink","application/metalink+xml"],["mets","application/mets+xml"],["mfm","application/vnd.mfmp"],["mft","application/rpki-manifest"],["mgp","application/vnd.osgeo.mapguide.package"],["mgz","application/vnd.proteus.magazine"],["mid","audio/midi"],["midi","audio/midi"],["mie","application/x-mie"],["mif","application/vnd.mif"],["mime","message/rfc822"],["mj2","video/mj2"],["mjp2","video/mj2"],["mjs","application/javascript"],["mk3d","video/x-matroska"],["mka","audio/x-matroska"],["mkd","text/x-markdown"],["mks","video/x-matroska"],["mkv","video/x-matroska"],["mlp","application/vnd.dolby.mlp"],["mmd","application/vnd.chipnuts.karaoke-mmd"],["mmf","application/vnd.smaf"],["mml","text/mathml"],["mmr","image/vnd.fujixerox.edmics-mmr"],["mng","video/x-mng"],["mny","application/x-msmoney"],["mobi","application/x-mobipocket-ebook"],["mods","application/mods+xml"],["mov","video/quicktime"],["movie","video/x-sgi-movie"],["mp2","audio/mpeg"],["mp2a","audio/mpeg"],["mp3","audio/mpeg"],["mp4","video/mp4"],["mp4a","audio/mp4"],["mp4s","application/mp4"],["mp4v","video/mp4"],["mp21","application/mp21"],["mpc","application/vnd.mophun.certificate"],["mpd","application/dash+xml"],["mpe","video/mpeg"],["mpeg","video/mpeg"],["mpg","video/mpeg"],["mpg4","video/mp4"],["mpga","audio/mpeg"],["mpkg","application/vnd.apple.installer+xml"],["mpm","application/vnd.blueice.multipass"],["mpn","application/vnd.mophun.application"],["mpp","application/vnd.ms-project"],["mpt","application/vnd.ms-project"],["mpy","application/vnd.ibm.minipay"],["mqy","application/vnd.mobius.mqy"],["mrc","application/marc"],["mrcx","application/marcxml+xml"],["ms","text/troff"],["mscml","application/mediaservercontrol+xml"],["mseed","application/vnd.fdsn.mseed"],["mseq","application/vnd.mseq"],["msf","application/vnd.epson.msf"],["msg","application/vnd.ms-outlook"],["msh","model/mesh"],["msi","application/x-msdownload"],["msl","application/vnd.mobius.msl"],["msm","application/octet-stream"],["msp","application/octet-stream"],["msty","application/vnd.muvee.style"],["mtl","model/mtl"],["mts","model/vnd.mts"],["mus","application/vnd.musician"],["musd","application/mmt-usd+xml"],["musicxml","application/vnd.recordare.musicxml+xml"],["mvb","application/x-msmediaview"],["mvt","application/vnd.mapbox-vector-tile"],["mwf","application/vnd.mfer"],["mxf","application/mxf"],["mxl","application/vnd.recordare.musicxml"],["mxmf","audio/mobile-xmf"],["mxml","application/xv+xml"],["mxs","application/vnd.triscape.mxs"],["mxu","video/vnd.mpegurl"],["n-gage","application/vnd.nokia.n-gage.symbian.install"],["n3","text/n3"],["nb","application/mathematica"],["nbp","application/vnd.wolfram.player"],["nc","application/x-netcdf"],["ncx","application/x-dtbncx+xml"],["nfo","text/x-nfo"],["ngdat","application/vnd.nokia.n-gage.data"],["nitf","application/vnd.nitf"],["nlu","application/vnd.neurolanguage.nlu"],["nml","application/vnd.enliven"],["nnd","application/vnd.noblenet-directory"],["nns","application/vnd.noblenet-sealer"],["nnw","application/vnd.noblenet-web"],["npx","image/vnd.net-fpx"],["nq","application/n-quads"],["nsc","application/x-conference"],["nsf","application/vnd.lotus-notes"],["nt","application/n-triples"],["ntf","application/vnd.nitf"],["numbers","application/x-iwork-numbers-sffnumbers"],["nzb","application/x-nzb"],["oa2","application/vnd.fujitsu.oasys2"],["oa3","application/vnd.fujitsu.oasys3"],["oas","application/vnd.fujitsu.oasys"],["obd","application/x-msbinder"],["obgx","application/vnd.openblox.game+xml"],["obj","model/obj"],["oda","application/oda"],["odb","application/vnd.oasis.opendocument.database"],["odc","application/vnd.oasis.opendocument.chart"],["odf","application/vnd.oasis.opendocument.formula"],["odft","application/vnd.oasis.opendocument.formula-template"],["odg","application/vnd.oasis.opendocument.graphics"],["odi","application/vnd.oasis.opendocument.image"],["odm","application/vnd.oasis.opendocument.text-master"],["odp","application/vnd.oasis.opendocument.presentation"],["ods","application/vnd.oasis.opendocument.spreadsheet"],["odt","application/vnd.oasis.opendocument.text"],["oga","audio/ogg"],["ogex","model/vnd.opengex"],["ogg","audio/ogg"],["ogv","video/ogg"],["ogx","application/ogg"],["omdoc","application/omdoc+xml"],["onepkg","application/onenote"],["onetmp","application/onenote"],["onetoc","application/onenote"],["onetoc2","application/onenote"],["opf","application/oebps-package+xml"],["opml","text/x-opml"],["oprc","application/vnd.palm"],["opus","audio/ogg"],["org","text/x-org"],["osf","application/vnd.yamaha.openscoreformat"],["osfpvg","application/vnd.yamaha.openscoreformat.osfpvg+xml"],["osm","application/vnd.openstreetmap.data+xml"],["otc","application/vnd.oasis.opendocument.chart-template"],["otf","font/otf"],["otg","application/vnd.oasis.opendocument.graphics-template"],["oth","application/vnd.oasis.opendocument.text-web"],["oti","application/vnd.oasis.opendocument.image-template"],["otp","application/vnd.oasis.opendocument.presentation-template"],["ots","application/vnd.oasis.opendocument.spreadsheet-template"],["ott","application/vnd.oasis.opendocument.text-template"],["ova","application/x-virtualbox-ova"],["ovf","application/x-virtualbox-ovf"],["owl","application/rdf+xml"],["oxps","application/oxps"],["oxt","application/vnd.openofficeorg.extension"],["p","text/x-pascal"],["p7a","application/x-pkcs7-signature"],["p7b","application/x-pkcs7-certificates"],["p7c","application/pkcs7-mime"],["p7m","application/pkcs7-mime"],["p7r","application/x-pkcs7-certreqresp"],["p7s","application/pkcs7-signature"],["p8","application/pkcs8"],["p10","application/x-pkcs10"],["p12","application/x-pkcs12"],["pac","application/x-ns-proxy-autoconfig"],["pages","application/x-iwork-pages-sffpages"],["pas","text/x-pascal"],["paw","application/vnd.pawaafile"],["pbd","application/vnd.powerbuilder6"],["pbm","image/x-portable-bitmap"],["pcap","application/vnd.tcpdump.pcap"],["pcf","application/x-font-pcf"],["pcl","application/vnd.hp-pcl"],["pclxl","application/vnd.hp-pclxl"],["pct","image/x-pict"],["pcurl","application/vnd.curl.pcurl"],["pcx","image/x-pcx"],["pdb","application/x-pilot"],["pde","text/x-processing"],["pdf","application/pdf"],["pem","application/x-x509-user-cert"],["pfa","application/x-font-type1"],["pfb","application/x-font-type1"],["pfm","application/x-font-type1"],["pfr","application/font-tdpfr"],["pfx","application/x-pkcs12"],["pgm","image/x-portable-graymap"],["pgn","application/x-chess-pgn"],["pgp","application/pgp"],["php","application/x-httpd-php"],["php3","application/x-httpd-php"],["php4","application/x-httpd-php"],["phps","application/x-httpd-php-source"],["phtml","application/x-httpd-php"],["pic","image/x-pict"],["pkg","application/octet-stream"],["pki","application/pkixcmp"],["pkipath","application/pkix-pkipath"],["pkpass","application/vnd.apple.pkpass"],["pl","application/x-perl"],["plb","application/vnd.3gpp.pic-bw-large"],["plc","application/vnd.mobius.plc"],["plf","application/vnd.pocketlearn"],["pls","application/pls+xml"],["pm","application/x-perl"],["pml","application/vnd.ctc-posml"],["png","image/png"],["pnm","image/x-portable-anymap"],["portpkg","application/vnd.macports.portpkg"],["pot","application/vnd.ms-powerpoint"],["potm","application/vnd.ms-powerpoint.presentation.macroEnabled.12"],["potx","application/vnd.openxmlformats-officedocument.presentationml.template"],["ppa","application/vnd.ms-powerpoint"],["ppam","application/vnd.ms-powerpoint.addin.macroEnabled.12"],["ppd","application/vnd.cups-ppd"],["ppm","image/x-portable-pixmap"],["pps","application/vnd.ms-powerpoint"],["ppsm","application/vnd.ms-powerpoint.slideshow.macroEnabled.12"],["ppsx","application/vnd.openxmlformats-officedocument.presentationml.slideshow"],["ppt","application/powerpoint"],["pptm","application/vnd.ms-powerpoint.presentation.macroEnabled.12"],["pptx","application/vnd.openxmlformats-officedocument.presentationml.presentation"],["pqa","application/vnd.palm"],["prc","application/x-pilot"],["pre","application/vnd.lotus-freelance"],["prf","application/pics-rules"],["provx","application/provenance+xml"],["ps","application/postscript"],["psb","application/vnd.3gpp.pic-bw-small"],["psd","application/x-photoshop"],["psf","application/x-font-linux-psf"],["pskcxml","application/pskc+xml"],["pti","image/prs.pti"],["ptid","application/vnd.pvi.ptid1"],["pub","application/x-mspublisher"],["pvb","application/vnd.3gpp.pic-bw-var"],["pwn","application/vnd.3m.post-it-notes"],["pya","audio/vnd.ms-playready.media.pya"],["pyv","video/vnd.ms-playready.media.pyv"],["qam","application/vnd.epson.quickanime"],["qbo","application/vnd.intu.qbo"],["qfx","application/vnd.intu.qfx"],["qps","application/vnd.publishare-delta-tree"],["qt","video/quicktime"],["qwd","application/vnd.quark.quarkxpress"],["qwt","application/vnd.quark.quarkxpress"],["qxb","application/vnd.quark.quarkxpress"],["qxd","application/vnd.quark.quarkxpress"],["qxl","application/vnd.quark.quarkxpress"],["qxt","application/vnd.quark.quarkxpress"],["ra","audio/x-realaudio"],["ram","audio/x-pn-realaudio"],["raml","application/raml+yaml"],["rapd","application/route-apd+xml"],["rar","application/x-rar"],["ras","image/x-cmu-raster"],["rcprofile","application/vnd.ipunplugged.rcprofile"],["rdf","application/rdf+xml"],["rdz","application/vnd.data-vision.rdz"],["relo","application/p2p-overlay+xml"],["rep","application/vnd.businessobjects"],["res","application/x-dtbresource+xml"],["rgb","image/x-rgb"],["rif","application/reginfo+xml"],["rip","audio/vnd.rip"],["ris","application/x-research-info-systems"],["rl","application/resource-lists+xml"],["rlc","image/vnd.fujixerox.edmics-rlc"],["rld","application/resource-lists-diff+xml"],["rm","audio/x-pn-realaudio"],["rmi","audio/midi"],["rmp","audio/x-pn-realaudio-plugin"],["rms","application/vnd.jcp.javame.midlet-rms"],["rmvb","application/vnd.rn-realmedia-vbr"],["rnc","application/relax-ng-compact-syntax"],["rng","application/xml"],["roa","application/rpki-roa"],["roff","text/troff"],["rp9","application/vnd.cloanto.rp9"],["rpm","audio/x-pn-realaudio-plugin"],["rpss","application/vnd.nokia.radio-presets"],["rpst","application/vnd.nokia.radio-preset"],["rq","application/sparql-query"],["rs","application/rls-services+xml"],["rsa","application/x-pkcs7"],["rsat","application/atsc-rsat+xml"],["rsd","application/rsd+xml"],["rsheet","application/urc-ressheet+xml"],["rss","application/rss+xml"],["rtf","text/rtf"],["rtx","text/richtext"],["run","application/x-makeself"],["rusd","application/route-usd+xml"],["rv","video/vnd.rn-realvideo"],["s","text/x-asm"],["s3m","audio/s3m"],["saf","application/vnd.yamaha.smaf-audio"],["sass","text/x-sass"],["sbml","application/sbml+xml"],["sc","application/vnd.ibm.secure-container"],["scd","application/x-msschedule"],["scm","application/vnd.lotus-screencam"],["scq","application/scvp-cv-request"],["scs","application/scvp-cv-response"],["scss","text/x-scss"],["scurl","text/vnd.curl.scurl"],["sda","application/vnd.stardivision.draw"],["sdc","application/vnd.stardivision.calc"],["sdd","application/vnd.stardivision.impress"],["sdkd","application/vnd.solent.sdkm+xml"],["sdkm","application/vnd.solent.sdkm+xml"],["sdp","application/sdp"],["sdw","application/vnd.stardivision.writer"],["sea","application/octet-stream"],["see","application/vnd.seemail"],["seed","application/vnd.fdsn.seed"],["sema","application/vnd.sema"],["semd","application/vnd.semd"],["semf","application/vnd.semf"],["senmlx","application/senml+xml"],["sensmlx","application/sensml+xml"],["ser","application/java-serialized-object"],["setpay","application/set-payment-initiation"],["setreg","application/set-registration-initiation"],["sfd-hdstx","application/vnd.hydrostatix.sof-data"],["sfs","application/vnd.spotfire.sfs"],["sfv","text/x-sfv"],["sgi","image/sgi"],["sgl","application/vnd.stardivision.writer-global"],["sgm","text/sgml"],["sgml","text/sgml"],["sh","application/x-sh"],["shar","application/x-shar"],["shex","text/shex"],["shf","application/shf+xml"],["shtml","text/html"],["sid","image/x-mrsid-image"],["sieve","application/sieve"],["sig","application/pgp-signature"],["sil","audio/silk"],["silo","model/mesh"],["sis","application/vnd.symbian.install"],["sisx","application/vnd.symbian.install"],["sit","application/x-stuffit"],["sitx","application/x-stuffitx"],["siv","application/sieve"],["skd","application/vnd.koan"],["skm","application/vnd.koan"],["skp","application/vnd.koan"],["skt","application/vnd.koan"],["sldm","application/vnd.ms-powerpoint.slide.macroenabled.12"],["sldx","application/vnd.openxmlformats-officedocument.presentationml.slide"],["slim","text/slim"],["slm","text/slim"],["sls","application/route-s-tsid+xml"],["slt","application/vnd.epson.salt"],["sm","application/vnd.stepmania.stepchart"],["smf","application/vnd.stardivision.math"],["smi","application/smil"],["smil","application/smil"],["smv","video/x-smv"],["smzip","application/vnd.stepmania.package"],["snd","audio/basic"],["snf","application/x-font-snf"],["so","application/octet-stream"],["spc","application/x-pkcs7-certificates"],["spdx","text/spdx"],["spf","application/vnd.yamaha.smaf-phrase"],["spl","application/x-futuresplash"],["spot","text/vnd.in3d.spot"],["spp","application/scvp-vp-response"],["spq","application/scvp-vp-request"],["spx","audio/ogg"],["sql","application/x-sql"],["src","application/x-wais-source"],["srt","application/x-subrip"],["sru","application/sru+xml"],["srx","application/sparql-results+xml"],["ssdl","application/ssdl+xml"],["sse","application/vnd.kodak-descriptor"],["ssf","application/vnd.epson.ssf"],["ssml","application/ssml+xml"],["sst","application/octet-stream"],["st","application/vnd.sailingtracker.track"],["stc","application/vnd.sun.xml.calc.template"],["std","application/vnd.sun.xml.draw.template"],["stf","application/vnd.wt.stf"],["sti","application/vnd.sun.xml.impress.template"],["stk","application/hyperstudio"],["stl","model/stl"],["stpx","model/step+xml"],["stpxz","model/step-xml+zip"],["stpz","model/step+zip"],["str","application/vnd.pg.format"],["stw","application/vnd.sun.xml.writer.template"],["styl","text/stylus"],["stylus","text/stylus"],["sub","text/vnd.dvb.subtitle"],["sus","application/vnd.sus-calendar"],["susp","application/vnd.sus-calendar"],["sv4cpio","application/x-sv4cpio"],["sv4crc","application/x-sv4crc"],["svc","application/vnd.dvb.service"],["svd","application/vnd.svd"],["svg","image/svg+xml"],["svgz","image/svg+xml"],["swa","application/x-director"],["swf","application/x-shockwave-flash"],["swi","application/vnd.aristanetworks.swi"],["swidtag","application/swid+xml"],["sxc","application/vnd.sun.xml.calc"],["sxd","application/vnd.sun.xml.draw"],["sxg","application/vnd.sun.xml.writer.global"],["sxi","application/vnd.sun.xml.impress"],["sxm","application/vnd.sun.xml.math"],["sxw","application/vnd.sun.xml.writer"],["t","text/troff"],["t3","application/x-t3vm-image"],["t38","image/t38"],["taglet","application/vnd.mynfc"],["tao","application/vnd.tao.intent-module-archive"],["tap","image/vnd.tencent.tap"],["tar","application/x-tar"],["tcap","application/vnd.3gpp2.tcap"],["tcl","application/x-tcl"],["td","application/urc-targetdesc+xml"],["teacher","application/vnd.smart.teacher"],["tei","application/tei+xml"],["teicorpus","application/tei+xml"],["tex","application/x-tex"],["texi","application/x-texinfo"],["texinfo","application/x-texinfo"],["text","text/plain"],["tfi","application/thraud+xml"],["tfm","application/x-tex-tfm"],["tfx","image/tiff-fx"],["tga","image/x-tga"],["tgz","application/x-tar"],["thmx","application/vnd.ms-officetheme"],["tif","image/tiff"],["tiff","image/tiff"],["tk","application/x-tcl"],["tmo","application/vnd.tmobile-livetv"],["toml","application/toml"],["torrent","application/x-bittorrent"],["tpl","application/vnd.groove-tool-template"],["tpt","application/vnd.trid.tpt"],["tr","text/troff"],["tra","application/vnd.trueapp"],["trig","application/trig"],["trm","application/x-msterminal"],["ts","video/mp2t"],["tsd","application/timestamped-data"],["tsv","text/tab-separated-values"],["ttc","font/collection"],["ttf","font/ttf"],["ttl","text/turtle"],["ttml","application/ttml+xml"],["twd","application/vnd.simtech-mindmapper"],["twds","application/vnd.simtech-mindmapper"],["txd","application/vnd.genomatix.tuxedo"],["txf","application/vnd.mobius.txf"],["txt","text/plain"],["u8dsn","message/global-delivery-status"],["u8hdr","message/global-headers"],["u8mdn","message/global-disposition-notification"],["u8msg","message/global"],["u32","application/x-authorware-bin"],["ubj","application/ubjson"],["udeb","application/x-debian-package"],["ufd","application/vnd.ufdl"],["ufdl","application/vnd.ufdl"],["ulx","application/x-glulx"],["umj","application/vnd.umajin"],["unityweb","application/vnd.unity"],["uoml","application/vnd.uoml+xml"],["uri","text/uri-list"],["uris","text/uri-list"],["urls","text/uri-list"],["usdz","model/vnd.usdz+zip"],["ustar","application/x-ustar"],["utz","application/vnd.uiq.theme"],["uu","text/x-uuencode"],["uva","audio/vnd.dece.audio"],["uvd","application/vnd.dece.data"],["uvf","application/vnd.dece.data"],["uvg","image/vnd.dece.graphic"],["uvh","video/vnd.dece.hd"],["uvi","image/vnd.dece.graphic"],["uvm","video/vnd.dece.mobile"],["uvp","video/vnd.dece.pd"],["uvs","video/vnd.dece.sd"],["uvt","application/vnd.dece.ttml+xml"],["uvu","video/vnd.uvvu.mp4"],["uvv","video/vnd.dece.video"],["uvva","audio/vnd.dece.audio"],["uvvd","application/vnd.dece.data"],["uvvf","application/vnd.dece.data"],["uvvg","image/vnd.dece.graphic"],["uvvh","video/vnd.dece.hd"],["uvvi","image/vnd.dece.graphic"],["uvvm","video/vnd.dece.mobile"],["uvvp","video/vnd.dece.pd"],["uvvs","video/vnd.dece.sd"],["uvvt","application/vnd.dece.ttml+xml"],["uvvu","video/vnd.uvvu.mp4"],["uvvv","video/vnd.dece.video"],["uvvx","application/vnd.dece.unspecified"],["uvvz","application/vnd.dece.zip"],["uvx","application/vnd.dece.unspecified"],["uvz","application/vnd.dece.zip"],["vbox","application/x-virtualbox-vbox"],["vbox-extpack","application/x-virtualbox-vbox-extpack"],["vcard","text/vcard"],["vcd","application/x-cdlink"],["vcf","text/x-vcard"],["vcg","application/vnd.groove-vcard"],["vcs","text/x-vcalendar"],["vcx","application/vnd.vcx"],["vdi","application/x-virtualbox-vdi"],["vds","model/vnd.sap.vds"],["vhd","application/x-virtualbox-vhd"],["vis","application/vnd.visionary"],["viv","video/vnd.vivo"],["vlc","application/videolan"],["vmdk","application/x-virtualbox-vmdk"],["vob","video/x-ms-vob"],["vor","application/vnd.stardivision.writer"],["vox","application/x-authorware-bin"],["vrml","model/vrml"],["vsd","application/vnd.visio"],["vsf","application/vnd.vsf"],["vss","application/vnd.visio"],["vst","application/vnd.visio"],["vsw","application/vnd.visio"],["vtf","image/vnd.valve.source.texture"],["vtt","text/vtt"],["vtu","model/vnd.vtu"],["vxml","application/voicexml+xml"],["w3d","application/x-director"],["wad","application/x-doom"],["wadl","application/vnd.sun.wadl+xml"],["war","application/java-archive"],["wasm","application/wasm"],["wav","audio/x-wav"],["wax","audio/x-ms-wax"],["wbmp","image/vnd.wap.wbmp"],["wbs","application/vnd.criticaltools.wbs+xml"],["wbxml","application/wbxml"],["wcm","application/vnd.ms-works"],["wdb","application/vnd.ms-works"],["wdp","image/vnd.ms-photo"],["weba","audio/webm"],["webapp","application/x-web-app-manifest+json"],["webm","video/webm"],["webmanifest","application/manifest+json"],["webp","image/webp"],["wg","application/vnd.pmi.widget"],["wgt","application/widget"],["wks","application/vnd.ms-works"],["wm","video/x-ms-wm"],["wma","audio/x-ms-wma"],["wmd","application/x-ms-wmd"],["wmf","image/wmf"],["wml","text/vnd.wap.wml"],["wmlc","application/wmlc"],["wmls","text/vnd.wap.wmlscript"],["wmlsc","application/vnd.wap.wmlscriptc"],["wmv","video/x-ms-wmv"],["wmx","video/x-ms-wmx"],["wmz","application/x-msmetafile"],["woff","font/woff"],["woff2","font/woff2"],["word","application/msword"],["wpd","application/vnd.wordperfect"],["wpl","application/vnd.ms-wpl"],["wps","application/vnd.ms-works"],["wqd","application/vnd.wqd"],["wri","application/x-mswrite"],["wrl","model/vrml"],["wsc","message/vnd.wfa.wsc"],["wsdl","application/wsdl+xml"],["wspolicy","application/wspolicy+xml"],["wtb","application/vnd.webturbo"],["wvx","video/x-ms-wvx"],["x3d","model/x3d+xml"],["x3db","model/x3d+fastinfoset"],["x3dbz","model/x3d+binary"],["x3dv","model/x3d-vrml"],["x3dvz","model/x3d+vrml"],["x3dz","model/x3d+xml"],["x32","application/x-authorware-bin"],["x_b","model/vnd.parasolid.transmit.binary"],["x_t","model/vnd.parasolid.transmit.text"],["xaml","application/xaml+xml"],["xap","application/x-silverlight-app"],["xar","application/vnd.xara"],["xav","application/xcap-att+xml"],["xbap","application/x-ms-xbap"],["xbd","application/vnd.fujixerox.docuworks.binder"],["xbm","image/x-xbitmap"],["xca","application/xcap-caps+xml"],["xcs","application/calendar+xml"],["xdf","application/xcap-diff+xml"],["xdm","application/vnd.syncml.dm+xml"],["xdp","application/vnd.adobe.xdp+xml"],["xdssc","application/dssc+xml"],["xdw","application/vnd.fujixerox.docuworks"],["xel","application/xcap-el+xml"],["xenc","application/xenc+xml"],["xer","application/patch-ops-error+xml"],["xfdf","application/vnd.adobe.xfdf"],["xfdl","application/vnd.xfdl"],["xht","application/xhtml+xml"],["xhtml","application/xhtml+xml"],["xhvml","application/xv+xml"],["xif","image/vnd.xiff"],["xl","application/excel"],["xla","application/vnd.ms-excel"],["xlam","application/vnd.ms-excel.addin.macroEnabled.12"],["xlc","application/vnd.ms-excel"],["xlf","application/xliff+xml"],["xlm","application/vnd.ms-excel"],["xls","application/vnd.ms-excel"],["xlsb","application/vnd.ms-excel.sheet.binary.macroEnabled.12"],["xlsm","application/vnd.ms-excel.sheet.macroEnabled.12"],["xlsx","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"],["xlt","application/vnd.ms-excel"],["xltm","application/vnd.ms-excel.template.macroEnabled.12"],["xltx","application/vnd.openxmlformats-officedocument.spreadsheetml.template"],["xlw","application/vnd.ms-excel"],["xm","audio/xm"],["xml","application/xml"],["xns","application/xcap-ns+xml"],["xo","application/vnd.olpc-sugar"],["xop","application/xop+xml"],["xpi","application/x-xpinstall"],["xpl","application/xproc+xml"],["xpm","image/x-xpixmap"],["xpr","application/vnd.is-xpr"],["xps","application/vnd.ms-xpsdocument"],["xpw","application/vnd.intercon.formnet"],["xpx","application/vnd.intercon.formnet"],["xsd","application/xml"],["xsl","application/xml"],["xslt","application/xslt+xml"],["xsm","application/vnd.syncml+xml"],["xspf","application/xspf+xml"],["xul","application/vnd.mozilla.xul+xml"],["xvm","application/xv+xml"],["xvml","application/xv+xml"],["xwd","image/x-xwindowdump"],["xyz","chemical/x-xyz"],["xz","application/x-xz"],["yaml","text/yaml"],["yang","application/yang"],["yin","application/yin+xml"],["yml","text/yaml"],["ymp","text/x-suse-ymp"],["z","application/x-compress"],["z1","application/x-zmachine"],["z2","application/x-zmachine"],["z3","application/x-zmachine"],["z4","application/x-zmachine"],["z5","application/x-zmachine"],["z6","application/x-zmachine"],["z7","application/x-zmachine"],["z8","application/x-zmachine"],["zaz","application/vnd.zzazz.deck+xml"],["zip","application/zip"],["zir","application/vnd.zul"],["zirz","application/vnd.zul"],["zmm","application/vnd.handheld-entertainment+xml"],["zsh","text/x-scriptzsh"]]);function
vendor: 15,830 bytes, lines 140-144
140Jg(t,e,n){const r=rot(t),{webkitRelativePath:i}=t,s=typeof e=="string"?e:typeof i=="string"&&i.length>0?i:`./${t.name}`;return typeof r.path!="string"&&jX(r,"path",s),jX(r,"relativePath",s),r}function rot(t){const{name:e}=t;if(e&&e.lastIndexOf(".")!==-1&&!t.type){const r=e.split(".").pop().toLowerCase(),i=not.get(r);i&&Object.defineProperty(t,"type",{value:i,writable:!1,configurable:!1,enumerable:!0})}return t}function jX(t,e,n){Object.defineProperty(t,e,{value:n,writable:!1,configurable:!1,enumerable:!0})}const iot=[".DS_Store","Thumbs.db"];function sot(t){return Ap(this,void 0,void 0,function*(){return YS(t)&&aot(t.dataTransfer)?cot(t.dataTransfer,t.type):oot(t)?lot(t):Array.isArray(t)&&t.every(e=>"getFile"in e&&typeof e.getFile=="function")?uot(t):[]})}function aot(t){return YS(t)}function oot(t){return YS(t)&&YS(t.target)}function YS(t){return typeof t=="object"&&t!==null}function lot(t){return ZP(t.target.files).map(e=>Jg(e))}function uot(t){return Ap(this,void 0,void 0,function*(){return(yield Promise.all(t.map(n=>n.getFile()))).map(n=>Jg(n))})}function cot(t,e){return Ap(this,void 0,void 0,function*(){if(t.items){const n=ZP(t.items).filter(i=>i.kind==="file");if(e!=="drop")return n;const r=yield Promise.all(n.map(dot));return zX(z1e(r))}return zX(ZP(t.files).map(n=>Jg(n)))})}function zX(t){return t.filter(e=>iot.indexOf(e.name)===-1)}function ZP(t){if(t===null)return[];const e=[];for(let n=0;n<t.length;n++){const r=t[n];e.push(r)}return e}function dot(t){if(typeof t.webkitGetAsEntry!="function")return VX(t);const e=t.webkitGetAsEntry();return e&&e.isDirectory?V1e(e):VX(t,e)}function z1e(t){return t.reduce((e,n)=>[...e,...Array.isArray(n)?z1e(n):[n]],[])}function VX(t,e){return Ap(this,void 0,void 0,function*(){var n;if(globalThis.isSecureContext&&typeof t.getAsFileSystemHandle=="function"){const s=yield t.getAsFileSystemHandle();if(s===null)throw new Error(`${t} is not a File`);if(s!==void 0){const a=yield s.getFile();return a.handle=s,Jg(a)}}const r=t.getAsFile();if(!r)throw new Error(`${t} is not a File`);return Jg(r,(n=e?.fullPath)!==null&&n!==void 0?n:void 0)})}function fot(t){return Ap(this,void 0,void 0,function*(){return t.isDirectory?V1e(t):hot(t)})}function V1e(t){const e=t.createReader();return new Promise((n,r)=>{const i=[];function s(){e.readEntries(a=>Ap(this,void 0,void 0,function*(){if(a.length){const o=Promise.all(a.map(fot));i.push(o),s()}else try{const o=yield Promise.all(i);n(o)}catch(o){r(o)}}),a=>{r(a)})}s()})}function hot(t){return Ap(this,void 0,void 0,function*(){return new Promise((e,n)=>{t.file(r=>{const i=Jg(r,t.fullPath);e(i)},r=>{n(r)})})})}var Sx={},qX;function pot(){return qX||(qX=1,Sx.__esModule=!0,Sx.default=function(t,e){if(t&&e){var n=Array.isArray(e)?e:e.split(",");if(n.length===0)return!0;var r=t.name||"",i=(t.type||"").toLowerCase(),s=i.replace(/\/.*$/,"");return n.some(function(a){var o=a.trim().toLowerCase();return o.charAt(0)==="."?r.toLowerCase().endsWith(o):o.endsWith("/*")?s===o.replace(/\/.*$/,""):i===o})}return!0}),Sx}var mot=pot();const M4=ys(mot);function GX(t){return bot(t)||yot(t)||G1e(t)||got()}function got(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 141In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function yot(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function bot(t){if(Array.isArray(t))return JP(t)}function WX(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function YX(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?WX(Object(n),!0).forEach(function(r){q1e(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):WX(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function q1e(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function lv(t,e){return _ot(t)||Eot(t,e)||G1e(t,e)||vot()}function vot(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 142In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function G1e(t,e){if(t){if(typeof t=="string")return JP(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return JP(t,e)}}function JP(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function Eot(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r=[],i=!0,s=!1,a,o;try{for(n=n.call(t);!(i=(a=n.next()).done)&&(r.push(a.value),!(e&&r.length===e));i=!0);}catch(l){s=!0,o=l}finally{try{!i&&n.return!=null&&n.return()}finally{if(s)throw o}}return r}}function _ot(t){if(Array.isArray(t))return t}var xot=typeof M4=="function"?M4:M4.default,wot="file-invalid-type",Sot="file-too-large",Cot="file-too-small",Tot="too-many-files",Aot=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",n=e.split(","),r=n.length>1?"one of ".concat(n.join(", ")):n[0];return{code:wot,message:"File type must be ".concat(r)}},KX=function(e){return{code:Sot,message:"File is larger than ".concat(e," ").concat(e===1?"byte":"bytes")}},XX=function(e){return{code:Cot,message:"File is smaller than ".concat(e," ").concat(e===1?"byte":"bytes")}},Rot={code:Tot,message:"Too many files"};function Not(t){return t.type===""&&typeof t.getAsFile=="function"}function W1e(t,e){var n=t.type==="application/x-moz-file"||xot(t,e)||Not(t);return[n,n?null:Aot(e)]}function Y1e(t,e,n){if(ch(t.size))if(ch(e)&&ch(n)){if(t.size>n)return[!1,KX(n)];if(t.size<e)return[!1,XX(e)]}else{if(ch(e)&&t.size<e)return[!1,XX(e)];if(ch(n)&&t.size>n)return[!1,KX(n)]}return[!0,null]}function ch(t){return t!=null}function Oot(t){var e=t.files,n=t.accept,r=t.minSize,i=t.maxSize,s=t.multiple,a=t.maxFiles,o=t.validator;return!s&&e.length>1||s&&a>=1&&e.length>a?!1:e.every(function(l){var u=W1e(l,n),c=lv(u,1),d=c[0],h=Y1e(l,r,i),m=lv(h,1),g=m[0],b=o?o(l):null;return d&&g&&!b})}function KS(t){return typeof t.isPropagationStopped=="function"?t.isPropagationStopped():typeof t.cancelBubble<"u"?t.cancelBubble:!1}function Cy(t){return t.dataTransfer?Array.prototype.some.call(t.dataTransfer.types,function(e){return e==="Files"||e==="application/x-moz-file"}):!!t.target&&!!t.target.files}function QX(t){t.preventDefault()}function kot(t){return t.indexOf("MSIE")!==-1||t.indexOf("Trident/")!==-1}function Iot(t){return t.indexOf("Edge/")!==-1}function Mot(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.navigator.userAgent;return kot(t)||Iot(t)}function Il(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return function(r){for(var i=arguments.length,s=new Array(i>1?i-1:0),a=1;a<i;a++)s[a-1]=arguments[a];return e.some(function(o){return!KS(r)&&o&&o.apply(void 0,[r].concat(s)),KS(r)})}}function Dot(){return"showOpenFilePicker"in window}function Pot(t){if(ch(t)){var e=Object.entries(t).filter(function(n){var r=lv(n,2),i=r[0],s=r[1],a=!0;return K1e(i)||(console.warn('Skipped "'.concat(i,'" because it is not a valid MIME type. Check https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types for a list of valid MIME types.')),a=!1),(!Array.isArray(s)||!s.every(X1e))&&(console.warn('Skipped "'.concat(i,'" because an invalid file extension was provided.')),a=!1),a}).reduce(function(n,r){var i=lv(r,2),s=i[0],a=i[1];return YX(YX({},n),{},q1e({},s,a))},{});return[{description:"Files",accept:e}]}return t}function Lot(t){if(ch(t))return Object.entries(t).reduce(function(e,n){var r=lv(n,2),i=r[0],s=r[1];return[].concat(GX(e),[i],GX(s))},[]).filter(function(e){return K1e(e)||X1e(e)}).join(",")}function $ot(t){return t instanceof DOMException&&(t.name==="AbortError"||t.code===t.ABORT_ERR)}function Fot(t){return t instanceof DOMException&&(t.name==="SecurityError"||t.code===t.SECURITY_ERR)}function K1e(t){return t==="audio/*"||t==="video/*"||t==="image/*"||t==="text/*"||t==="application/*"||/\w+\/[-+.\w]+/g.test(t)}function X1e(t){return/^.*\.[\w]+$/.test(t)}var Bot=["children"],Hot=["open"],Uot=["refKey","role","onKeyDown","onFocus","onBlur","onClick","onDragEnter","onDragOver","onDragLeave","onDrop"],jot=["refKey","onChange","onClick"];function ZX(t){return qot(t)||Vot(t)||Q1e(t)||zot()}function zot(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 143In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Vot(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function qot(t){if(Array.isArray(t))return e9(t)}function D4(t,e){return Yot(t)||Wot(t,e)||Q1e(t,e)||Got()}function Got(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 144In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Q1e(t,e){if(t){if(typeof t=="string")return e9(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return e9(t,e)}}function e9(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function Wot(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r=[],i=!0,s=!1,a,o;try{for(n=n.call(t);!(i=(a=n.next()).done)&&(r.push(a.value),!(e&&r.length===e));i=!0);}catch(l){s=!0,o=l}finally{try{!i&&n.return!=null&&n.return()}finally{if(s)throw o}}return r}}function Yot(t){if(Array.isArray(t))return t}function JX(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function pr(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?JX(Object(n),!0).forEach(function(r){t9(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):JX(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function t9(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function XS(t,e){if(t==null)return{};var n=Kot(t,e),r,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);for(i=0;i<s.length;i++)r=s[i],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function Kot(t,e){if(t==null)return{};var n={},r=Object.keys(t),i,s;for(s=0;s<r.length;s++)i=r[s],!(e.indexOf(i)>=0)&&(n[i]=t[i]);return n}var xF=C.forwardRef(function(t,e){var n=t.children,r=XS(t,Bot),i=Xot(r),s=i.open,a=XS(i,Hot);return C.useImperativeHandle(e,function(){return{open:s}},[s]),U.createElement(C.Fragment,null,n(pr(pr({},a),{},{open:s})))});xF.displayName="Dropzone";var Z1e={disabled:!1,getFilesFromEvent:sot,maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1,validator:null,useFsAccessApi:!1,autoFocus:!1};xF.defaultProps=Z1e;xF.propTypes={children:oe.func,accept:oe.objectOf(oe.arrayOf(oe.string)),multiple:oe.bool,preventDropOnDocument:oe.bool,noClick:oe.bool,noKeyboard:oe.bool,noDrag:oe.bool,noDragEventsBubbling:oe.bool,minSize:oe.number,maxSize:oe.number,maxFiles:oe.number,disabled:oe.bool,getFilesFromEvent:oe.func,onFileDialogCancel:oe.func,onFileDialogOpen:oe.func,useFsAccessApi:oe.bool,autoFocus:oe.bool,onDragEnter:oe.func,onDragLeave:oe.func,onDragOver:oe.func,onDrop:oe.func,onDropAccepted:oe.func,onDropRejected:oe.func,onError:oe.func,validator:oe.func};var n9={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,isDragGlobal:!1,acceptedFiles:[],fileRejections:[]};function Xot(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=pr(pr({},Z1e),t),n=e.accept,r=e.disabled,i=e.getFilesFromEvent,s=e.maxSize,a=e.minSize,o=e.multiple,l=e.maxFiles,u=e.onDragEnter,c=e.onDragLeave,d=e.onDragOver,h=e.onDrop,m=e.onDropAccepted,g=e.onDropRejected,b=e.onFileDialogCancel,v=e.onFileDialogOpen,E=e.useFsAccessApi,x=e.autoFocus,_=e.preventDropOnDocument,S=e.noClick,A=e.noKeyboard,R=e.noDrag,T=e.noDragEventsBubbling,O=e.onError,I=e.validator,D=C.useMemo(function(){return Lot(n)},[n]),P=C.useMemo(function(){return Pot(n)},[n]),B=C.useMemo(function(){return typeof v=="function"?v:eQ},[v]),L=C.useMemo(function(){return typeof b=="function"?b:eQ},[b]),$=C.useRef(null),q=C.useRef(null),F=C.useReducer(Qot,n9),G=D4(F,2),H=G[0],K=G[1],V=H.isFocused,Y=H.isFileDialogActive,Z=C.useRef(typeof window<"u"&&window.isSecureContext&&E&&Dot()),W=function(){!Z.current&&Y&&setTimeout(function(){if(q.current){var ne=q.current.files;ne.length||(K({type:"closeDialog"}),L())}},300)};C.useEffect(function(){return window.addEventListener("focus",W,!1),function(){window.removeEventListener("focus",W,!1)}},[q,Y,L,Z]);var Q=C.useRef([]),re=C.useRef([]),se=function(ne){$.current&&$.current.contains(ne.target)||(ne.preventDefault(),Q.current=[])};C.useEffect(function(){return _&&(document.addEventListener("dragover",QX,!1),document.addEventListener("drop",se,!1)),function(){_&&(document.removeEventListener("dragover",QX),document.removeEventListener("drop",se))}},[$,_]),C.useEffect(function(){var ce=function(Ye){re.current=[].concat(ZX(re.current),[Ye.target]),Cy(Ye)&&K({isDragGlobal:!0,type:"setDragGlobal"})},ne=function(Ye){re.current=re.current.filter(function(rt){return rt!==Ye.target&&rt!==null}),!(re.current.length>0)&&K({isDragGlobal:!1,type:"setDragGlobal"})},fe=function(){re.current=[],K({isDragGlobal:!1,type:"setDragGlobal"})},X=function(){re.current=[],K({isDragGlobal:!1,type:"setDragGlobal"})};return document.addEventListener("dragenter",ce,!1),document.addEventListener("dragleave",ne,!1),document.addEventListener("dragend",fe,!1),document.addEventListener("drop",X,!1),function(){document.removeEventListener("dragenter",ce),document.removeEventListener("dragleave",ne),document.removeEventListener("dragend",fe),document.removeEventListener("drop",X)}},[$]),C.useEffect(function(){return!r&&x&&$.current&&$.current.focus(),function(){}},[$,x,r]);var J=C.useCallback(function(ce){O?O(ce):console.error(ce)},[O]),ae=C.useCallback(function(ce){ce.preventDefault(),ce.persist(),ue(ce),Q.current=[].concat(ZX(Q.current),[ce.target]),Cy(ce)&&Promise.resolve(i(ce)).then(function(ne){if(!(KS(ce)&&!T)){var fe=ne.length,X=fe>0&&Oot({files:ne,accept:D,minSize:a,maxSize:s,multiple:o,maxFiles:l,validator:I}),Oe=fe>0&&!X;K({isDragAccept:X,isDragReject:Oe,isDragActive:!0,type:"setDraggedFiles"}),u&&u(ce)}}).catch(function(ne){return J(ne)})},[i,u,J,T,D,a,s,o,l,I]),ge=C.useCallback(function(ce){ce.preventDefault(),ce.persist(),ue(ce);var ne=Cy(ce);if(ne&&ce.dataTransfer)try{ce.dataTransfer.dropEffect="copy"}catch{}return ne&&d&&d(ce),!1},[d,T]),ve=C.useCallback(function(ce){ce.preventDefault(),ce.persist(),ue(ce);var ne=Q.current.filter(function(X){return $.current&&$.current.contains(X)}),fe=ne.indexOf(ce.target);fe!==-1&&ne.splice(fe,1),Q.current=ne,!(ne.length>0)&&(K({type:"setDraggedFiles",isDragActive:!1,isDragAccept:!1,isDragReject:!1}),Cy(ce)&&c&&c(ce))},[$,c,T]),Re=C.useCallback(function(ce,ne){var fe=[],X=[];ce.forEach(function(Oe){var Ye=W1e(Oe,D),rt=D4(Ye,2),Ut=rt[0],Kt=rt[1],It=Y1e(Oe,a,s),Tn=D4(It,2),qt=Tn[0],or=Tn[
1441],tr=I?I(Oe):null;if(Ut&&qt&&!tr)fe.push(Oe);else{var xt=[Kt,or];tr&&(xt=xt.concat(tr)),X.push({file:Oe,errors:xt.filter(function(Bt){return Bt})})}}),(!o&&fe.length>1||o&&l>=1&&fe.length>l)&&(fe.forEach(function(Oe){X.push({file:Oe,errors:[Rot]})}),fe.splice(0)),K({acceptedFiles:fe,fileRejections:X,isDragReject:X.length>0,type:"setFiles"}),h&&h(fe,X,ne),X.length>0&&g&&g(X,ne),fe.length>0&&m&&m(fe,ne)},[K,o,D,a,s,l,h,m,g,I]),xe=C.useCallback(function(ce){ce.preventDefault(),ce.persist(),ue(ce),Q.current=[],Cy(ce)&&Promise.resolve(i(ce)).then(function(ne){KS(ce)&&!T||Re(ne,ce)}).catch(function(ne){return J(ne)}),K({type:"reset"})},[i,Re,J,T]),Ne=C.useCallback(function(){if(Z.current){K({type:"openDialog"}),B();var ce={multiple:o,types:P};window.showOpenFilePicker(ce).then(function(ne){return i(ne)}).then(function(ne){Re(ne,null),K({type:"closeDialog"})}).catch(function(ne){$ot(ne)?(L(ne),K({type:"closeDialog"})):Fot(ne)?(Z.current=!1,q.current?(q.current.value=null,q.current.click()):J(new Error("Cannot open the file picker because the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API is not supported and no <input> was provided."))):J(ne)});return}q.current&&(K({type:"openDialog"}),B(),q.current.value=null,q.current.click())},[K,B,L,E,Re,J,P,o]),Fe=C.useCallback(function(ce){!$.current||!$.current.isEqualNode(ce.target)||(ce.key===" "||ce.key==="Enter"||ce.keyCode===32||ce.keyCode===13)&&(ce.preventDefault(),Ne())},[$,Ne]),Le=C.useCallback(function(){K({type:"focus"})},[]),ze=C.useCallback(function(){K({type:"blur"})},[]),qe=C.useCallback(function(){S||(Mot()?setTimeout(Ne,0):Ne())},[S,Ne]),_t=function(ne){return r?null:ne},Ot=function(ne){return A?null:_t(ne)},Lt=function(ne){return R?null:_t(ne)},ue=function(ne){T&&ne.stopPropagation()},te=C.useMemo(function(){return function(){var ce=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},ne=ce.refKey,fe=ne===void 0?"ref":ne,X=ce.role,Oe=ce.onKeyDown,Ye=ce.onFocus,rt=ce.onBlur,Ut=ce.onClick,Kt=ce.onDragEnter,It=ce.onDragOver,Tn=ce.onDragLeave,qt=ce.onDrop,or=XS(ce,Uot);return pr(pr(t9({onKeyDown:Ot(Il(Oe,Fe)),onFocus:Ot(Il(Ye,Le)),onBlur:Ot(Il(rt,ze)),onClick:_t(Il(Ut,qe)),onDragEnter:Lt(Il(Kt,ae)),onDragOver:Lt(Il(It,ge)),onDragLeave:Lt(Il(Tn,ve)),onDrop:Lt(Il(qt,xe)),role:typeof X=="string"&&X!==""?X:"presentation"},fe,$),!r&&!A?{tabIndex:0}:{}),or)}},[$,Fe,Le,ze,qe,ae,ge,ve,xe,A,R,r]),de=C.useCallback(function(ce){ce.stopPropagation()},[]),be=C.useMemo(function(){return function(){var ce=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},ne=ce.refKey,fe=ne===void 0?"ref":ne,X=ce.onChange,Oe=ce.onClick,Ye=XS(ce,jot),rt=t9({accept:D,multiple:o,type:"file",style:{border:0,clip:"rect(0, 0, 0, 0)",clipPath:"inset(50%)",height:"1px",margin:"0 -1px -1px 0",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"},onChange:_t(Il(X,xe)),onClick:_t(Il(Oe,de)),tabIndex:-1},fe,q);return pr(pr({},rt),Ye)}},[q,n,o,xe,r]);return pr(pr({},H),{},{isFocused:V&&!r,getRootProps:te,getInputProps:be,rootRef:$,inputRef:q,open:_t(Ne)})}function Qot(t,e){switch(e.type){case"focus":return pr(pr({},t),{},{isFocused:!0});case"blur":return pr(pr({},t),{},{isFocused:!1});case"openDialog":return pr(pr({},n9),{},{isFileDialogActive:!0});case"closeDialog":return pr(pr({},t),{},{isFileDialogActive:!1});case"setDraggedFiles":return pr(pr({},t),{},{isDragActive:e.isDragActive,isDragAccept:e.isDragAccept,isDragReject:e.isDragReject});case"setFiles":return pr(pr({},t),{},{acceptedFiles:e.acceptedFiles,fileRejections:e.fileRejections,isDragReject:e.isDragReject});case"setDragGlobal":return pr(pr({},t),{},{isDragGlobal:e.isDragGlobal});case"reset":return pr({},n9);default:return t}}function eQ(){}function QS(t){"@babel/helpers - typeof";return QS=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},QS(t)}var Zot=/^\s+/,Jot=/\s+$/;function Ct(t,e){if(t=t||"",e=e||{},t instanceof Ct)return t;if(!(this instanceof Ct))return new Ct(t,e);var n=elt(t);this._originalInput=t,this._r=n.r,this._g=n.g,this._b=n.b,this._a=n.a,this._roundA=Math.round(100*this._a)/100,this._format=e.format||n.format,this._gradientType=e.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=n.ok}Ct.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var e=this.toRgb();return(e.r*299+e.g*587+e.b*114)/1e3},getLuminance:function(){var e=this.toRgb(),n,r,i,s,a,o;return n=e.r/255,r=e.g/255,i=e.b/255,n<=.03928?s=n/12.92:s=Math.pow((n+.055)/1.055,2.4),r<=.03928?a=r/12.92:a=Math.pow((r+.055)/1.055,2.4),i<=.03928?o=i/12.92:o=Math.pow((i+.055)/1.055,2.4),.2126*s+.7152*a+.0722*o},setAlpha:function(e){return this._a=J1e(e),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var e=nQ(this._r,this._g,this._b);return{h:e.h*360,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=nQ(this._r,this._g,this._b),n=Math.round(e.h*360),r=Math.round(e.s*100),i=Math.round(e.v*100);return this._a==1?"hsv("+n+", "+r+"%, "+i+"%)":"hsva("+n+", "+r+"%, "+i+"%, "+this._roundA+")"},toHsl:function(){var e=tQ(this._r,this._g,this._b);return{h:e.h*360,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=tQ(this._r,this._g,this._b),n=Math.round(e.h*360),r=Math.round(e.s*100),i=Math.round(e.l*100);return this._a==1?"hsl("+n+", "+r+"%, "+i+"%)":"hsla("+n+", "+r+"%, "+i+"%, "+this._roundA+")"},toHex:function(e){return rQ(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(e){return ilt(this._r,this._g,this._b,this._a,e)},toHex8String:function(e){return"#"+this.toHex8(e)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"}
vendor: 7,383 bytes, line 144
144,toPercentageRgb:function(){return{r:Math.round(Sr(this._r,255)*100)+"%",g:Math.round(Sr(this._g,255)*100)+"%",b:Math.round(Sr(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+Math.round(Sr(this._r,255)*100)+"%, "+Math.round(Sr(this._g,255)*100)+"%, "+Math.round(Sr(this._b,255)*100)+"%)":"rgba("+Math.round(Sr(this._r,255)*100)+"%, "+Math.round(Sr(this._g,255)*100)+"%, "+Math.round(Sr(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:glt[rQ(this._r,this._g,this._b,!0)]||!1},toFilter:function(e){var n="#"+iQ(this._r,this._g,this._b,this._a),r=n,i=this._gradientType?"GradientType = 1, ":"";if(e){var s=Ct(e);r="#"+iQ(s._r,s._g,s._b,s._a)}return"progid:DXImageTransform.Microsoft.gradient("+i+"startColorstr="+n+",endColorstr="+r+")"},toString:function(e){var n=!!e;e=e||this._format;var r=!1,i=this._a<1&&this._a>=0,s=!n&&i&&(e==="hex"||e==="hex6"||e==="hex3"||e==="hex4"||e==="hex8"||e==="name");return s?e==="name"&&this._a===0?this.toName():this.toRgbString():(e==="rgb"&&(r=this.toRgbString()),e==="prgb"&&(r=this.toPercentageRgbString()),(e==="hex"||e==="hex6")&&(r=this.toHexString()),e==="hex3"&&(r=this.toHexString(!0)),e==="hex4"&&(r=this.toHex8String(!0)),e==="hex8"&&(r=this.toHex8String()),e==="name"&&(r=this.toName()),e==="hsl"&&(r=this.toHslString()),e==="hsv"&&(r=this.toHsvString()),r||this.toHexString())},clone:function(){return Ct(this.toString())},_applyModification:function(e,n){var r=e.apply(null,[this].concat([].slice.call(n)));return this._r=r._r,this._g=r._g,this._b=r._b,this.setAlpha(r._a),this},lighten:function(){return this._applyModification(llt,arguments)},brighten:function(){return this._applyModification(ult,arguments)},darken:function(){return this._applyModification(clt,arguments)},desaturate:function(){return this._applyModification(slt,arguments)},saturate:function(){return this._applyModification(alt,arguments)},greyscale:function(){return this._applyModification(olt,arguments)},spin:function(){return this._applyModification(dlt,arguments)},_applyCombination:function(e,n){return e.apply(null,[this].concat([].slice.call(n)))},analogous:function(){return this._applyCombination(plt,arguments)},complement:function(){return this._applyCombination(flt,arguments)},monochromatic:function(){return this._applyCombination(mlt,arguments)},splitcomplement:function(){return this._applyCombination(hlt,arguments)},triad:function(){return this._applyCombination(sQ,[3])},tetrad:function(){return this._applyCombination(sQ,[4])}};Ct.fromRatio=function(t,e){if(QS(t)=="object"){var n={};for(var r in t)t.hasOwnProperty(r)&&(r==="a"?n[r]=t[r]:n[r]=qy(t[r]));t=n}return Ct(t,e)};function elt(t){var e={r:0,g:0,b:0},n=1,r=null,i=null,s=null,a=!1,o=!1;return typeof t=="string"&&(t=Elt(t)),QS(t)=="object"&&(Ju(t.r)&&Ju(t.g)&&Ju(t.b)?(e=tlt(t.r,t.g,t.b),a=!0,o=String(t.r).substr(-1)==="%"?"prgb":"rgb"):Ju(t.h)&&Ju(t.s)&&Ju(t.v)?(r=qy(t.s),i=qy(t.v),e=rlt(t.h,r,i),a=!0,o="hsv"):Ju(t.h)&&Ju(t.s)&&Ju(t.l)&&(r=qy(t.s),s=qy(t.l),e=nlt(t.h,r,s),a=!0,o="hsl"),t.hasOwnProperty("a")&&(n=t.a)),n=J1e(n),{ok:a,format:t.format||o,r:Math.min(255,Math.max(e.r,0)),g:Math.min(255,Math.max(e.g,0)),b:Math.min(255,Math.max(e.b,0)),a:n}}function tlt(t,e,n){return{r:Sr(t,255)*255,g:Sr(e,255)*255,b:Sr(n,255)*255}}function tQ(t,e,n){t=Sr(t,255),e=Sr(e,255),n=Sr(n,255);var r=Math.max(t,e,n),i=Math.min(t,e,n),s,a,o=(r+i)/2;if(r==i)s=a=0;else{var l=r-i;switch(a=o>.5?l/(2-r-i):l/(r+i),r){case t:s=(e-n)/l+(e<n?6:0);break;case e:s=(n-t)/l+2;break;case n:s=(t-e)/l+4;break}s/=6}return{h:s,s:a,l:o}}function nlt(t,e,n){var r,i,s;t=Sr(t,360),e=Sr(e,100),n=Sr(n,100);function a(u,c,d){return d<0&&(d+=1),d>1&&(d-=1),d<1/6?u+(c-u)*6*d:d<1/2?c:d<2/3?u+(c-u)*(2/3-d)*6:u}if(e===0)r=i=s=n;else{var o=n<.5?n*(1+e):n+e-n*e,l=2*n-o;r=a(l,o,t+1/3),i=a(l,o,t),s=a(l,o,t-1/3)}return{r:r*255,g:i*255,b:s*255}}function nQ(t,e,n){t=Sr(t,255),e=Sr(e,255),n=Sr(n,255);var r=Math.max(t,e,n),i=Math.min(t,e,n),s,a,o=r,l=r-i;if(a=r===0?0:l/r,r==i)s=0;else{switch(r){case t:s=(e-n)/l+(e<n?6:0);break;case e:s=(n-t)/l+2;break;case n:s=(t-e)/l+4;break}s/=6}return{h:s,s:a,v:o}}function rlt(t,e,n){t=Sr(t,360)*6,e=Sr(e,100),n=Sr(n,100);var r=Math.floor(t),i=t-r,s=n*(1-e),a=n*(1-i*e),o=n*(1-(1-i)*e),l=r%6,u=[n,a,s,s,o,n][l],c=[o,n,n,a,s,s][l],d=[s,s,o,n,n,a][l];return{r:u*255,g:c*255,b:d*255}}function rQ(t,e,n,r){var i=[tl(Math.round(t).toString(16)),tl(Math.round(e).toString(16)),tl(Math.round(n).toString(16))];return r&&i[0].charAt(0)==i[0].charAt(1)&&i[1].charAt(0)==i[1].charAt(1)&&i[2].charAt(0)==i[2].charAt(1)?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0):i.join("")}function ilt(t,e,n,r,i){var s=[tl(Math.round(t).toString(16)),tl(Math.round(e).toString(16)),tl(Math.round(n).toString(16)),tl(eye(r))];return i&&s[0].charAt(0)==s[0].charAt(1)&&s[1].charAt(0)==s[1].charAt(1)&&s[2].charAt(0)==s[2].charAt(1)&&s[3].charAt(0)==s[3].charAt(1)?s[0].charAt(0)+s[1].charAt(0)+s[2].charAt(0)+s[3].charAt(0):s.join("")}function iQ(t,e,n,r){var i=[tl(eye(r)),tl(Math.round(t).toString(16)),tl(Math.round(e).toString(16)),tl(Math.round(n).toString(16))];return i.join("")}Ct.equals=function(t,e){return!t||!e?!1:Ct(t).toRgbString()==Ct(e).toRgbString()};Ct.random=function(){return Ct.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})};function slt(t,e){e=e===0?0:e||10;var n=Ct(t).toHsl();return n.s-=e/100,n.s=_3(n.s),Ct(n)}function alt(t,e){e=e===0?0:e||10;var n=Ct(t).toHsl();return n.s+=e/100,n.s=_3(n.s),Ct(n)}function olt(t){return Ct(t).desaturate(100)}function llt(t,e){e=e===0?0:e||10;var n=Ct(t).toHsl();return n.l+=e/100,n.l=_3(n.l),Ct(n)}function ult(t,e){e=e===0?0:e||10;var n=Ct(t).toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(255*-(e/100)))),n.g=Math.max(0,Math.min(255,n.g-Math.round(255*-(e/100)))),n.b=Math.max(0,Math.min(255,n.b-Math.round(255*-(e/100)))),Ct(n)}function clt(t,e){e=e===0?0:e||10;var n=Ct(t).toHsl();return n.l-=e/100,n.l=_3(n.l),Ct(n)}function dlt(t,e){var n=Ct(t).toHsl(),r=(n.h+e)%360;return n.h=r<0?360+r:r,Ct(n)}function flt(t){var e=Ct(t).toHsl();return e.h=(e.h+180)%360,Ct(e)}function sQ(t,e){if(isNaN(e)||e<=0)throw new Error("Argument to polyad must be a positive number");for(var n=Ct(t).toHsl(),r=[Ct(t)],i=360/e,s=1;s<e;s++)r.push(Ct({h:(n.h+s*i)%360,s:n.s,l:n.l}));return r}function hlt(t){var e=Ct(t).toHsl(),n=e.h;return[Ct(t),Ct({h:(n+72)%360,s:e.s,l:e.l}),Ct({h:(n+216)%360,s:e.s,l:e.l})]}function plt(t,e,n){e=e||6,n=n||30;var r=Ct(t).toHsl(),i=360/n,s=[Ct(t)];for(r.h=(r.h-(i*e>>1)+720)%360;--e;)r.h=(r.h+i)%360,s.push(Ct(r));return s}function mlt(t,e){e=e||6;for(var n=Ct(t).toHsv(),r=n.h,i=n.s,s=n.v,a=[],o=1/e;e--;)a.push(Ct({h:r,s:i,v:s})),s=(s+o)%1;return a}Ct.mix=function(t,e,n){n=n===0?0:n||50;var r=Ct(t).toRgb(),i=Ct(e).toRgb(),s=n/100,a={r:(i.r-r.r)*s+r.r,g:(i.g-r.g)*s+r.g,b:(i.b-r.b)*s+r.b,a:(i.a-r.a)*s+r.a};return Ct(a)};Ct.readability=function(t,e){var n=Ct(t),r=Ct(e);return(Math.max(n.getLuminance(),r.getLuminance())+.05)/(Math.min(n.getLuminance(),r.getLuminance())+.05)};Ct.isReadable=function(t,e,n){var r=Ct.readability(t,e),i,s;switch(s=!1,i=_lt(n),i.level+i.size){case"AAsmall":case"AAAlarge":s=r>=4.5;break;case"AAlarge":s=r>=3;break;case"AAAsmall":s=r>=7;break}return s};Ct.mostReadable=function(t,e,n){var r=null,i=0,s,a,o,l;n=n||{},a=n.includeFallbackColors,o=n.level,l=n.size;
144for(var u=0;u<e.length;u++)s=Ct.readability(t,e[u]),s>i&&(i=s,r=Ct(e[u]));return Ct.isReadable(t,r,{level:o,size:l})||!a?r:(n.includeFallbackColors=!1,Ct.mostReadable(t,["#fff","#000"],n))};var r9=Ct.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee9
1440",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},glt=Ct.hexNames=ylt(r9);function ylt(t){var e={};for(var n in t)t.hasOwnProperty(n)&&(e[t[n]]=n);return e}function J1e(t){return t=parseFloat(t),(isNaN(t)||t<0||t>1)&&(t=1),t}function Sr(t,e){blt(t)&&(t="100%");var n=vlt(t);return t=Math.min(e,Math.max(0,parseFloat(t))),n&&(t=parseInt(t*e,10)/100),Math.abs(t-e)<1e-6?1:t%e/parseFloat(e)}function _3(t){return Math.min(1,Math.max(0,t))}function Oa(t){return parseInt(t,16)}function blt(t){return typeof t=="string"&&t.indexOf(".")!=-1&&parseFloat(t)===1}function vlt(t){return typeof t=="string"&&t.indexOf("%")!=-1}function tl(t){return t.length==1?"0"+t:""+t}function qy(t){return t<=1&&(t=t*100+"%"),t}function eye(t){return Math.round(parseFloat(t)*255).toString(16)}function aQ(t){return Oa(t)/255}var Uo=(function(){var t="[-\\+]?\\d+%?",e="[-\\+]?\\d*\\.\\d+%?",n="(?:"+e+")|(?:"+t+")",r="[\\s|\\(]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")\\s*\\)?",i="[\\s|\\(]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")\\s*\\)?";return{CSS_UNIT:new RegExp(n),rgb:new RegExp("rgb"+r),rgba:new RegExp("rgba"+i),hsl:new RegExp("hsl"+r),hsla:new RegExp("hsla"+i),hsv:new RegExp("hsv"+r),hsva:new RegExp("hsva"
144+i),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}})();function Ju(t){return!!Uo.CSS_UNIT.exec(t)}function Elt(t){t=t.replace(Zot,"").replace(Jot,"").toLowerCase();var e=!1;if(r9[t])t=r9[t],e=!0;else if(t=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n;return(n=Uo.rgb.exec(t))?{r:n[1],g:n[2],b:n[3]}:(n=Uo.rgba.exec(t))?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=Uo.hsl.exec(t))?{h:n[1],s:n[2],l:n[3]}:(n=Uo.hsla.exec(t))?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=Uo.hsv.exec(t))?{h:n[1],s:n[2],v:n[3]}:(n=Uo.hsva.exec(t))?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=Uo.hex8.exec(t))?{r:Oa(n[1]),g:Oa(n[2]),b:Oa(n[3]),a:aQ(n[4]),format:e?"name":"hex8"}:(n=Uo.hex6.exec(t))?{r:Oa(n[1]),g:Oa(n[2]),b:Oa(n[3]),format:e?"name":"hex"}:(n=Uo.hex4.exec(t))?{r:Oa(n[1]+""+n[1]),g:Oa(n[2]+""+n[2]),b:Oa(n[3]+""+n[3]),a:aQ(n[4]+""+n[4]),format:e?"name":"hex8"}:(n=Uo.hex3.exec(t))?{r:Oa(n[1]+""+n[1]),g:Oa(n[2]+""+n[2]),b:Oa(n[3]+""+n[3]),format:e?"name":"hex"}:!1}function _lt(t){var e,n;return t=t||{level:"AA",size:"small"},e=(t.level||"AA").toUpperCase(),n=(t.size||"small").toLowerCase(),e!=="AA"&&e!=="AAA"&&(e="AA"),n!=="small"&&n!=="large"&&(n="small"),{level:e,size:n}}var xlt=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],wlt=xlt.reduce((t,e)=>{const n=o$(`Primitive.${e}`),r=C.forwardRef((i,s)=>{const{asChild:a,...o}=i,l=a?n:e;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),j.jsx(l,{...o,ref:s})});return r.displayName=`Primitive.${e}`,{...t,[e]:r}},{}),Slt="Separator",oQ="horizontal",Clt=["horizontal","vertical"],tye=C.forwardRef((t,e)=>{const{decorative:n,orientation:r=oQ,...i}=t,s=Tlt(r)?r:oQ,o=n?{role:"none"}:{"aria-orientation":s==="vertical"?s:void 0,role:"separator"};return j.jsx(wlt.div,{"data-orientation":s,...o,...i,ref:e})});tye.displayName=Slt;function Tlt(t){return Clt.includes(t)}var GIt=tye;function Alt(t){const e=Rlt(t),n=C.forwardRef((r,i)=>{const{children:s,...a}=r,o=C.Children.toArray(s),l=o.find(Olt);if(l){const u=l.props.children,c=o.map(d=>d===l?C.Children.count(u)>1?C.Children.only(null):C.isValidElement(u)?u.props.children:null:d);return j.jsx(e,{...a,ref:i,children:C.isValidElement(u)?C.cloneElement(u,void 0,c):null})}return j.jsx(e,{...a,ref:i,children:s})});return n.displayName=`${t}.Slot`,n}function Rlt(t){const e=C.forwardRef((n,r)=>{const{children:i,...s}=n;if(C.isValidElement(i)){const a=Ilt(i),o=klt(s,i.props);return i.type!==C.Fragment&&(o.ref=r?vu(r,a):a),C.cloneElement(i,o)}return C.Children.count(i)>1?C.Children.only(null):null});return e.displayName=`${t}.SlotClone`,e}var Nlt=Symbol("radix.slottable");function Olt(t){return C.isValidElement(t)&&typeof t.type=="function"&&"__radixId"in t.type&&t.type.__radixId===Nlt}function klt(t,e){const n={...e};for(const r in e){const i=t[r],s=e[r];/^on[A-Z]/.test(r)?i&&s?n[r]=(...o)=>{const l=s(...o);return i(...o),l}:i&&(n[r]=i):r==="style"?n[r]={...i,...s}:r==="className"&&(n[r]=[i,s].filter(Boolean).join(" "))}return{...t,...n}}function Ilt(t){let e=Object.getOwnPropertyDescriptor(t.props,"ref")?.get,n=e&&"isReactWarning"in e&&e.isReactWarning;return n?t.ref:(e=Object.getOwnPropertyDescriptor(t,"ref")?.get,n=e&&"isReactWarning"in e&&e.isReactWarning,n?t.props.ref:t.props.ref||t.ref)}var x3="Popover",[nye]=Ji(x3,[vf]),Y2=vf(),[Mlt,Sf]=nye(x3),rye=t=>{const{__scopePopover:e,children:n,open:r,defaultOpen:i,onOpenChange:s,modal:a=!1}=t,o=Y2(e),l=C.useRef(null),[u,c]=C.useState(!1),[d,h]=fa({prop:r,defaultProp:i??!1,onChange:s,caller:x3});return j.jsx(JT,{...o,children:j.jsx(Mlt,{scope:e,contentId:wo(),triggerRef:l,open:d,onOpenChange:h,onOpenToggle:C.useCallback(()=>h(m=>!m),[h]),hasCustomAnchor:u,onCustomAnchorAdd:C.useCallback(()=>c(!0),[]),onCustomAnchorRemove:C.useCallback(()=>c(!1),[]),modal:a,children:n})})};rye.displayName=x3;var iye="PopoverAnchor",sye=C.forwardRef((t,e)=>{const{__scopePopover:n,...r}=t,i=Sf(iye,n),s=Y2(n),{onCustomAnchorAdd:a,onCustomAnchorRemove:o}=i;return C.useEffect(()=>(a(),()=>o()),[a,o]),j.jsx(B2,{...s,...r,ref:e})});sye.displayName=iye;var aye="PopoverTrigger",oye=C.forwardRef((t,e)=>{const{__scopePopover:n,...r}=t,i=Sf(aye,n),s=Y2(n),a=nn(e,i.triggerRef),o=j.jsx(wt.button,{type:"button","aria-haspopup":"dialog","aria-expanded":i.open,"aria-controls":i.contentId,"data-state":hye(i.open
vendor: 6,488 bytes, line 144
144),...r,ref:a,onClick:tt(t.onClick,i.onOpenToggle)});return i.hasCustomAnchor?o:j.jsx(B2,{asChild:!0,...s,children:o})});oye.displayName=aye;var wF="PopoverPortal",[Dlt,Plt]=nye(wF,{forceMount:void 0}),lye=t=>{const{__scopePopover:e,forceMount:n,children:r,container:i}=t,s=Sf(wF,e);return j.jsx(Dlt,{scope:e,forceMount:n,children:j.jsx($s,{present:n||s.open,children:j.jsx(M0,{asChild:!0,container:i,children:r})})})};lye.displayName=wF;var e0="PopoverContent",uye=C.forwardRef((t,e)=>{const n=Plt(e0,t.__scopePopover),{forceMount:r=n.forceMount,...i}=t,s=Sf(e0,t.__scopePopover);return j.jsx($s,{present:r||s.open,children:s.modal?j.jsx($lt,{...i,ref:e}):j.jsx(Flt,{...i,ref:e})})});uye.displayName=e0;var Llt=Alt("PopoverContent.RemoveScroll"),$lt=C.forwardRef((t,e)=>{const n=Sf(e0,t.__scopePopover),r=C.useRef(null),i=nn(e,r),s=C.useRef(!1);return C.useEffect(()=>{const a=r.current;if(a)return RT(a)},[]),j.jsx(_2,{as:Llt,allowPinchZoom:!0,children:j.jsx(cye,{...t,ref:i,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:tt(t.onCloseAutoFocus,a=>{a.preventDefault(),s.current||n.triggerRef.current?.focus()}),onPointerDownOutside:tt(t.onPointerDownOutside,a=>{const o=a.detail.originalEvent,l=o.button===0&&o.ctrlKey===!0,u=o.button===2||l;s.current=u},{checkForDefaultPrevented:!1}),onFocusOutside:tt(t.onFocusOutside,a=>a.preventDefault(),{checkForDefaultPrevented:!1})})})}),Flt=C.forwardRef((t,e)=>{const n=Sf(e0,t.__scopePopover),r=C.useRef(!1),i=C.useRef(!1);return j.jsx(cye,{...t,ref:e,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:s=>{t.onCloseAutoFocus?.(s),s.defaultPrevented||(r.current||n.triggerRef.current?.focus(),s.preventDefault()),r.current=!1,i.current=!1},onInteractOutside:s=>{t.onInteractOutside?.(s),s.defaultPrevented||(r.current=!0,s.detail.originalEvent.type==="pointerdown"&&(i.current=!0));const a=s.target;n.triggerRef.current?.contains(a)&&s.preventDefault(),s.detail.originalEvent.type==="focusin"&&i.current&&s.preventDefault()}})}),cye=C.forwardRef((t,e)=>{const{__scopePopover:n,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:s,disableOutsidePointerEvents:a,onEscapeKeyDown:o,onPointerDownOutside:l,onFocusOutside:u,onInteractOutside:c,...d}=t,h=Sf(e0,n),m=Y2(n);return TT(),j.jsx(E2,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:i,onUnmountAutoFocus:s,children:j.jsx(I0,{asChild:!0,disableOutsidePointerEvents:a,onInteractOutside:c,onEscapeKeyDown:o,onPointerDownOutside:l,onFocusOutside:u,onDismiss:()=>h.onOpenChange(!1),children:j.jsx(e3,{"data-state":hye(h.open),role:"dialog",id:h.contentId,...m,...d,ref:e,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)"}})})})}),dye="PopoverClose",Blt=C.forwardRef((t,e)=>{const{__scopePopover:n,...r}=t,i=Sf(dye,n);return j.jsx(wt.button,{type:"button",...r,ref:e,onClick:tt(t.onClick,()=>i.onOpenChange(!1))})});Blt.displayName=dye;var Hlt="PopoverArrow",fye=C.forwardRef((t,e)=>{const{__scopePopover:n,...r}=t,i=Y2(n);return j.jsx(t3,{...i,...r,ref:e})});fye.displayName=Hlt;function hye(t){return t?"open":"closed"}var Ult=rye,jlt=sye,WIt=oye,zlt=lye,Vlt=uye,qlt=fye,w3="Checkbox",[Glt]=Ji(w3),[Wlt,SF]=Glt(w3);function Ylt(t){const{__scopeCheckbox:e,checked:n,children:r,defaultChecked:i,disabled:s,form:a,name:o,onCheckedChange:l,required:u,value:c="on",internal_do_not_use_render:d}=t,[h,m]=fa({prop:n,defaultProp:i??!1,onChange:l,caller:w3}),[g,b]=C.useState(null),[v,E]=C.useState(null),x=C.useRef(!1),_=g?!!a||!!g.closest("form"):!0,S={checked:h,disabled:s,setChecked:m,control:g,setControl:b,name:o,form:a,value:c,hasConsumerStoppedPropagationRef:x,required:u,defaultChecked:Qd(i)?!1:i,isFormControl:_,bubbleInput:v,setBubbleInput:E};return j.jsx(Wlt,{scope:e,...S,children:Qlt(d)?d(S):r})}var pye="CheckboxTrigger",mye=C.forwardRef(({__scopeCheckbox:t,onKeyDown:e,onClick:n,...r},i)=>{const{control:s,value:a,disabled:o,checked:l,required:u,setControl:c,setChecked:d,hasConsumerStoppedPropagationRef:h,isFormControl:m,bubbleInput:g}=SF(pye,t),b=nn(i,c),v=C.useRef(l);return C.useEffect(()=>{const E=s?.form;if(E){const x=()=>d(v.current);return E.addEventListener("reset",x),()=>E.removeEventListener("reset",x)}},[s,d]),j.jsx(wt.button,{type:"button",role:"checkbox","aria-checked":Qd(l)?"mixed":l,"aria-required":u,"data-state":vye(l),"data-disabled":o?"":void 0,disabled:o,value:a,...r,ref:b,onKeyDown:tt(e,E=>{E.key==="Enter"&&E.preventDefault()}),onClick:tt(n,E=>{d(x=>Qd(x)?!0:!x),g&&m&&(h.current=E.isPropagationStopped(),h.current||E.stopPropagation())})})});mye.displayName=pye;var Klt=C.forwardRef((t,e)=>{const{__scopeCheckbox:n,name:r,checked:i,defaultChecked:s,required:a,disabled:o,value:l,onCheckedChange:u,form:c,...d}=t;return j.jsx(Ylt,{__scopeCheckbox:n,checked:i,defaultChecked:s,disabled:o,required:a,onCheckedChange:u,name:r,form:c,value:l,internal_do_not_use_render:({isFormControl:h})=>j.jsxs(j.Fragment,{children:[j.jsx(mye,{...d,ref:e,__scopeCheckbox:n}),h&&j.jsx(bye,{__scopeCheckbox:n})]})})});Klt.displayName=w3;var gye="CheckboxIndicator",Xlt=C.forwardRef((t,e)=>{const{__scopeCheckbox:n,forceMount:r,...i}=t,s=SF(gye,n);return j.jsx($s,{present:r||Qd(s.checked)||s.checked===!0,children:j.jsx(wt.span,{"data-state":vye(s.checked),"data-disabled":s.disabled?"":void 0,...i,ref:e,style:{pointerEvents:"none",...t.style}})})});Xlt.displayName=gye;var yye="CheckboxBubbleInput",bye=C.forwardRef(({__scopeCheckbox:t,...e},n)=>{const{control:r,hasConsumerStoppedPropagationRef:i,checked:s,defaultChecked:a,required:o,disabled:l,name:u,value:c,form:d,bubbleInput:h,setBubbleInput:m}=SF(yye,t),g=nn(n,m),b=WT(s),v=GT(r);C.useEffect(()=>{const x=h;if(!x)return;const _=window.HTMLInputElement.prototype,A=Object.getOwnPropertyDescriptor(_,"checked").set,R=!i.current;if(b!==s&&A){const T=new Event("click",{bubbles:R});x.indeterminate=Qd(s),A.call(x,Qd(s)?!1:s),x.dispatchEvent(T)}},[h,b,s,i]);const E=C.useRef(Qd(s)?!1:s);return j.jsx(wt.input,{type:"checkbox","aria-hidden":!0,defaultChecked:a??E.current,required:o,disabled:l,name:u,value:c,form:d,...e,tabIndex:-1,ref:g,style:{...e.style,...v,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});
144bye.displayName=yye;function Qlt(t){return typeof t=="function"}function Qd(t){return t==="indeterminate"}function vye(t){return Qd(t)?"indeterminate":t?"checked":"unchecked"}const CF
vendor: 16,313 bytes, line 144
144={version:4,country_calling_codes:{1:["US","AG","AI","AS","BB","BM","BS","CA","DM","DO","GD","GU","JM","KN","KY","LC","MP","MS","PR","SX","TC","TT","VC","VG","VI"],7:["RU","KZ"],20:["EG"],27:["ZA"],30:["GR"],31:["NL"],32:["BE"],33:["FR"],34:["ES"],36:["HU"],39:["IT","VA"],40:["RO"],41:["CH"],43:["AT"],44:["GB","GG","IM","JE"],45:["DK"],46:["SE"],47:["NO","SJ"],48:["PL"],49:["DE"],51:["PE"],52:["MX"],53:["CU"],54:["AR"],55:["BR"],56:["CL"],57:["CO"],58:["VE"],60:["MY"],61:["AU","CC","CX"],62:["ID"],63:["PH"],64:["NZ"],65:["SG"],66:["TH"],81:["JP"],82:["KR"],84:["VN"],86:["CN"],90:["TR"],91:["IN"],92:["PK"],93:["AF"],94:["LK"],95:["MM"],98:["IR"],211:["SS"],212:["MA","EH"],213:["DZ"],216:["TN"],218:["LY"],220:["GM"],221:["SN"],222:["MR"],223:["ML"],224:["GN"],225:["CI"],226:["BF"],227:["NE"],228:["TG"],229:["BJ"],230:["MU"],231:["LR"],232:["SL"],233:["GH"],234:["NG"],235:["TD"],236:["CF"],237:["CM"],238:["CV"],239:["ST"],240:["GQ"],241:["GA"],242:["CG"],243:["CD"],244:["AO"],245:["GW"],246:["IO"],247:["AC"],248:["SC"],249:["SD"],250:["RW"],251:["ET"],252:["SO"],253:["DJ"],254:["KE"],255:["TZ"],256:["UG"],257:["BI"],258:["MZ"],260:["ZM"],261:["MG"],262:["RE","YT"],263:["ZW"],264:["NA"],265:["MW"],266:["LS"],267:["BW"],268:["SZ"],269:["KM"],290:["SH","TA"],291:["ER"],297:["AW"],298:["FO"],299:["GL"],350:["GI"],351:["PT"],352:["LU"],353:["IE"],354:["IS"],355:["AL"],356:["MT"],357:["CY"],358:["FI","AX"],359:["BG"],370:["LT"],371:["LV"],372:["EE"],373:["MD"],374:["AM"],375:["BY"],376:["AD"],377:["MC"],378:["SM"],380:["UA"],381:["RS"],382:["ME"],383:["XK"],385:["HR"],386:["SI"],387:["BA"],389:["MK"],420:["CZ"],421:["SK"],423:["LI"],500:["FK"],501:["BZ"],502:["GT"],503:["SV"],504:["HN"],505:["NI"],506:["CR"],507:["PA"],508:["PM"],509:["HT"],590:["GP","BL","MF"],591:["BO"],592:["GY"],593:["EC"],594:["GF"],595:["PY"],596:["MQ"],597:["SR"],598:["UY"],599:["CW","BQ"],670:["TL"],672:["NF"],673:["BN"],674:["NR"],675:["PG"],676:["TO"],677:["SB"],678:["VU"],679:["FJ"],680:["PW"],681:["WF"],682:["CK"],683:["NU"],685:["WS"],686:["KI"],687:["NC"],688:["TV"],689:["PF"],690:["TK"],691:["FM"],692:["MH"],850:["KP"],852:["HK"],853:["MO"],855:["KH"],856:["LA"],880:["BD"],886:["TW"],960:["MV"],961:["LB"],962:["JO"],963:["SY"],964:["IQ"],965:["KW"],966:["SA"],967:["YE"],968:["OM"],970:["PS"],971:["AE"],972:["IL"],973:["BH"],974:["QA"],975:["BT"],976:["MN"],977:["NP"],992:["TJ"],993:["TM"],994:["AZ"],995:["GE"],996:["KG"],998:["UZ"]},countries:{AC:["247","00","(?:[01589]\\d|[46])\\d{4}",[5,6]],AD:["376","00","(?:1|6\\d)\\d{7}|[135-9]\\d{5}",[6,8,9],[["(\\d{3})(\\d{3})","$1 $2",["[135-9]"]],["(\\d{4})(\\d{4})","$1 $2",["1"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6"]]]],AE:["971","00","(?:[4-7]\\d|9[0-689])\\d{7}|800\\d{2,9}|[2-4679]\\d{7}",[5,6,7,8,9,10,11,12],[["(\\d{3})(\\d{2,9})","$1 $2",["60|8"]],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[236]|[479][2-8]"],"0$1"],["(\\d{3})(\\d)(\\d{5})","$1 $2 $3",["[479]"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["5"],"0$1"]],"0"],AF:["93","00","[2-7]\\d{8}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[2-7]"],"0$1"]],"0"],AG:["1","011","(?:268|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([457]\\d{6})$|1","268$1",0,"268"],AI:["1","011","(?:264|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2457]\\d{6})$|1","264$1",0,"264"],AL:["355","00","(?:700\\d\\d|900)\\d{3}|8\\d{5,7}|(?:[2-5]|6\\d)\\d{7}",[6,7,8,9],[["(\\d{3})(\\d{3,4})","$1 $2",["80|9"],"0$1"],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["4[2-6]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2358][2-5]|4"],"0$1"],["(\\d{3})(\\d{5})","$1 $2",["[23578]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["6"],"0$1"]],"0"],AM:["374","00","(?:[1-489]\\d|55|60|77)\\d{6}",[8],[["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["[89]0"],"0 $1"],["(\\d{3})(\\d{5})","$1 $2",["2|3[12]"],"(0$1)"],["(\\d{2})(\\d{6})","$1 $2",["1|47"],"(0$1)"],["(\\d{2})(\\d{6})","$1 $2",["[3-9]"],"0$1"]],"0"],AO:["244","00","[29]\\d{8}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[29]"]]]],AR:["54","00","(?:11|[89]\\d\\d)\\d{8}|[2368]\\d{9}",[10,11],[["(\\d{4})(\\d{2})(\\d{4})","$1 $2-$3",["2(?:2[024-9]|3[0-59]|47|6[245]|9[02-8])|3(?:3[28]|4[03-9]|5[2-46-8]|7[1-578]|8[2-9])","2(?:[23]02|6(?:[25]|4[6-8])|9(?:[02356]|4[02568]|72|8[23]))|3(?:3[28]|4(?:[04679]|3[5-8]|5[4-68]|8[2379])|5(?:[2467]|3[237]|8[2-5])|7[1-578]|8(?:[2469]|3[2578]|5[4-8]|7[36-8]|8[5-8]))|2(?:2[24-9]|3[1-59]|47)","2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3[78]|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8[23])|7[1-578]|8(?:[2469]|3[278]|5[56][46]|86[3-6]))|2(?:2[24-9]|3[1-59]|47)|38(?:[58][78]|7[378])|3(?:4[35][56]|58[45]|8(?:[38]5|54|76))[4-6]","2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3(?:5(?:4[0-25689]|[56])|[78])|58|8[2379])|5(?:[2467]|3[237]|8(?:[23]|4(?:[45]|60)|5(?:4[0-39]|5|64)))|7[1-578]|8(?:[2469]|3[278]|54(?:4|5[13-7]|6[89])|86[3-6]))|2(?:2[24-9]|3[1-59]|47)|38(?:[58][78]|7[378])|3(?:454|85[56])[46]|3(?:4(?:36|5[56])|8(?:[38]5|76))[4-6]"],"0$1",1],["(\\d{2})(\\d{4})(\\d{4})","$1 $2-$3",["1"],"0$1",1],["(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["[68]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2-$3",["[23]"],"0$1",1],["(\\d)(\\d{4})(\\d{2})(\\d{4})","$2 15-$3-$4",["9(?:2[2-469]|3[3-578])","9(?:2(?:2[024-9]|3[0-59]|47|6[245]|9[02-8])|3(?:3[28]|4[03-9]|5[2-46-8]|7[1-578]|8[2-9]))","9(?:2(?:[23]02|6(?:[25]|4[6-8])|9(?:[02356]|4[02568]|72|8[23]))|3(?:3[28]|4(?:[04679]|3[5-8]|5[4-68]|8[2379])|5(?:[2467]|3[237]|8[2-5])|7[1-578]|8(?:[2469]|3[2578]|5[4-8]|7[36-8]|8[5-8])))|92(?:2[24-9]|3[1-59]|47)","9(?:2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3[78]|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8[23])|7[1-578]|8(?:[2469]|3[278]|5(?:[56][46]|[78])|7[378]|8(?:6[3-6]|[78]))))|92(?:2[24-9]|3[1-59]|47)|93(?:4[35][56]|58[45]|8(?:[38]5|54|76))[4-6]","9(?:2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3(?:5(?:4[0-25689]|[56])|[78])|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8(?:[23]|4(?:[45]|60)|5(?:4[0-39]|5|64)))|7[1-578]|8(?:[2469]|3[278]|5(?:4(?:4|5[13-7]|6[89])|[56][46]|[78])|7[378]|8(?:6[3-6]|[78]))))|92(?:2[24-9]|3[1-59]|47)|93(?:4(?:36|5[56])|8(?:[38]5|76))[4-6]"],"0$1",0,"$1 $2 $3-$4"],["(\\d)(\\d{2})(\\d{4})(\\d{4})","$2 15-$3-$4",["91"],"0$1",0,"$1 $2 $3-$4"],["(\\d{3})(\\d{3})(\\d{5})","$1-$2-$3",["8"],"0$1"],["(\\d)(\\d{3})(\\d{3})(\\d{4})","$2 15-$3-$4",["9"],"0$1",0,"$1 $2 $3-$4"]],"0",0,"0?(?:(11|2(?:2(?:02?|[13]|2[13-79]|4[1-6]|5[2457]|6[124-8]|7[1-4]|8[13-6]|9[1267])|3(?:02?|1[467]|2[03-6]|3[13-8]|[49][2-6]|5[2-8]|[67])|4(?:7[3-578]|9)|6(?:[0136]|2[24-6]|4[6-8]?|5[15-8])|80|9(?:0[1-3]|[19]|2\\d|3[1-6]|4[02568]?|5[2-4]|6[2-46]|72?|8[23]?))|3(?:3(?:2[79]|6|8[2578])|4(?:0[0-24-9]|[12]|3[5-8]?|4[24-7]|5[4-68]?|6[02-9]|7[126]|8[2379]?|9[1-36-8])|5(?:1|2[1245]|3[237]?|4[1-46-9]|6[2-4]|7[1-6]|8[2-5]?)|6[24]|7(?:[069]|1[1568]|2[15]|3[145]|4[13]|5[14-8]|7[2-57]|8[126])|8(?:[01]|2[15-7]|3[2578]?|4[13-6]|5[4-8]?|6[1-357-9]|7[36-8]?|8[5-8]?|9[124])))15)?","9$1"],AS:["1","011","(?:[58]\\d\\d|684|900)\\d{7}",[10],0,"1",0,"([267]\\d{6})$|1","684$1",0,"684"],AT:["43","00","1\\d{3,12}|2\\d{6,12}|43(?:(?:0\\d|5[02-9])\\d{3,9}|2\\d{4,5}|[3467]\\d{4}|8\\d{4,6}|9\\d{4,7})|5\\d{4,12}|8\\d{7,12}|9\\d{8,12}|(?:[367]\\d|4[0-24-9])\\d{4,11}",[4,5,6,7,8,9,10,11,12,13],[["(\\d)(\\d{3,12})","$1 $2",["1(?:11|[2-9])"],"0$1"],["(\\d{3})(\\d{2})","$1 $2",["517"],"0$1"],["(\\d{2})(\\d{3,5})","$1 $2",["5[079]"],"0$1"],["(\\d{3})(\\d{3,10})","$1 $2",["(?:31|4)6|51|6(?:48|5[0-3579]|[6-9])|7(?:20|32|8)|[89]","(?:31|4)6|51|6(?:485|5[0-3579]|[6-9])|7(?:20|32|8)|[89]"],"0$1"],["(\\d{4})(\\d{3,9})","$1 $2",["[2-467]|5[2-6]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["5"],"0$1"],["(\\d{2})(\\d{4})(\\d{4,7})","$1 $2 $3",["5"],"0$1"]],"0"],AU:["61","001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011","1(?:[0-79]\\d{7}(?:\\d(?:\\d{2})?)?|8[0-24-9]\\d{7})|[2-478]\\d{8}|1\\d{4,7}",[5,6,7,8,9,10,12],[["(\\d{2})(\\d{3,4})","$1 $2",["16"],"0$1"],["(\\d{2})(\\d{3})(\\d{2,4})","$1 $2 $3",["16"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["14|4"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["[2378]"],"(0$1)"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1(?:30|[89])"]]],"0",0,"(183[12])|0",0,0,0,[["(?:(?:241|349)0\\d\\d|8(?:51(?:0(?:0[03-9]|[12479]\\d|3[2-9]|5[0-8]|6[1-9]|8[0-7])|1(?:[0235689]\\d|1[0-69]|4[0-589]|7[0-47-9])|2(?:0[0-79]|[18][13579]|2[14-9]|3[0-46-9]|[4-6]\\d|7[89]|9[0-4])|[34]\\d\\d)|91(?:(?:[0-58]\\d|6[0135-9])\\d|7(?:0[0-24-9]|[1-9]\\d)|9(?:[0-46-9]\\d|5[0-79]))))\\d{3}|(?:2(?:[0-26-9]\\d|3[0-8]|4[02-9]|5[0135-9])|3(?:[0-3589]\\d|4[0-578]|6[1-9]|7[0-35-9])|7(?:[013-57-9]\\d|2[0-8])|8(?:55|6[0-8]|[78]\\d|9[02-9]))\\d{6}",[9]],["4(?:79[01]|83[0-36-9]|95[0-3])\\d{5}|4(?:[0-36]\\d|4[047-9]|[58][0-24-9]|7[02-8]|9[0-47-9])\\d{6}",[9]],["180(?:0\\d{3}|2)\\d{3}",[7,10]],["190[0-26]\\d{6}",[10]],0,0,0,["163\\d{2,6}",[5,6,7,8,9]],["14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}",[9]],["13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}",[6,8,10,12]]],"0011"],AW:["297","00","(?:[25-79]\\d\\d|800)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[25-9]"]]]],AX:["358","00|99(?:[01469]|5(?:[14]1|3[23]|5[59]|77|88|9[09]))","2\\d{4,9}|35\\d{4,5}|(?:60\\d\\d|800)\\d{4,6}|7\\d{5,11}|(?:[14]\\d|3[0-46-9]|50)\\d{4,8}",[5,6,7,8,9,10,11,12],0,"0",0,0,0,0,"18",0,"00"],AZ:["994","00","365\\d{6}|(?:[124579]\\d|60|88)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["90"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[28]|2|365|46","1[28]|2|365[45]|46","1[28]|2|365(?:4|5[02])|46"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[13-9]"],"0$1"]],"0"],BA:["387","00","6\\d{8}|(?:[35689]\\d|49|70)\\d{6}",[8,9],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["6[1-3]|[7-9]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2-$3",["[3-5]|6[56]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3 $4",["6"],"0$1"]],"0"],BB:["1","011","(?:246|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","246$1",0,"246"],BD:["880","00","[1-469]\\d{9}|8[0-79]\\d{7,8}|[2-79]\\d{8}|[2-9]\\d{7}|[3-9]\\d{6}|[57-9]\\d{5}",[6,7,8,9,10],[["(\\d{2})(\\d{4,6})","$1-$2",["31[5-8]|[459]1"],"0$1"],["(\\d{3})(\\d{3,7})","$1-$2",["3(?:[67]|8[013-9])|4(?:6[168]|7|[89][18])|5(?:6[128]|9)|6(?:[15]|28|4[14])|7[2-589]|8(?:0[014-9]|[12])|9[358]|(?:3[2-5]|4[235]|5[2-578]|6[0389]|76|8[3-7]|9[24])1|(?:44|66)[01346-9]"],"0$1"],["(\\d{4})(\\d{3,6})","$1-$2",["[13-9]|2[23]"],"0$1"],["(\\d)(\\d{7,8})","$1-$2",["2"],"0$1"]],"0"],BE:["32","00","4\\d{8}|[1-9]\\d{7}",[8,9],[["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["(?:80|9)0"],"0$1"],["(\\d)(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[239]|4[23]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[15-8]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["4"],"0$1"]],"0"],BF:["226","00","(?:[025-7]\\d|44)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[024-7]"]]]],BG:["359","00","00800\\d{7}|[2-7]\\d{6,7}|[89]\\d{6,8}|2\\d{5}",[6,7,8,9,12],[["(\\d)(\\d)(\\d{2})(\\d{2})","$1 $2 $3 $4",["2"],"0$1"],["(\\d{3})(\\d{4})","$1 $2",["43[1-6]|70[1-9]"],"0$1"],["(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{2,3})","$1 $2 $3",["[356]|4[124-7]|7[1-9]|8[1-6]|9[1-7]"],"0$1"],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["(?:70|8)0"],"0$1"],["(\\d{3})(\\d{3})(\\d{2})","$1 $2 $3",["43[1-7]|7"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[48]|9[08]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["9"],"0$1"]],"0"],BH:["973","00","[136-9]\\d{7}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[13679]|8[02-4679]"]]]],BI:["257","00","(?:[267]\\d|31)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2367]"]]]],BJ:["229","00","(?:01\\d|8)\\d{7}",[8,10],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["0"]]]],BL:["590","00","(?:590\\d|7090)\\d{5}|(?:69|80|9\\d)\\d{7}",[9],0,"0",0,0,0,0,0,[["590(?:2[7-9]|3[3-7]|5[12]|87)\\d{4}"],["(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5])|4(?:0[89]|1[2-6]|9\\d)|6(?:1[016-9]|5[0-4]|[67]\\d))|7090[0-4])\\d{4}"],["80[0-5]\\d{6}"],0,0,0,0,0,["9(?:(?:39[5-7]|76[018])\\d|475[0-6])\\d{4}"]]],BM:["1","011","(?:441|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","441$1",0,"441"],BN:["673","00","[2-578]\\d{6}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-578]"]]]],BO:["591","00(?:1\\d)?","8001\\d{5}|(?:[2-467]\\d|50)\\d{6}",[8,9],[["(\\d)(\\d{7})","$1 $2",["[235]|4[46]"]],["(\\d{8})","$1",["[67]"]],["(\\d{3})(\\d{2})(\\d{4})","$1 $2 $3",["8"]]],"0",0,"0(1\\d)?"],BQ:["599","00","(?:[34]1|7\\d)\\d{5}",[7],0,0,0,0,0,0,"[347]"],BR:["55","00(?:1[245]|2[1-35]|31|4[13]|[56]5|99)","[1-467]\\d{9,10}|55[0-46-9]\\d{8}|[34]\\d{7}|55\\d{7,8}|(?:5[0-46-9]|[89]\\d)\\d{7,9}",[8,9,10,11],[["(\\d{4})(\\d{4})","$1-$2",["300|4(?:0[02]|37|86)","300|4(?:0(?:0|20)|370|864)"]],["(\\d{3})(\\d{2,3})(\\d{4})","$1 $2 $3",["(?:[358]|90)0"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1 $2-$3",["(?:[14689][1-9]|2[12478]|3[1-578]|5[13-5]|7[13-579])[2-57]"],"($1)"],["(\\d{2})(\\d{5})(\\d{4})","$1 $2-$3",["[16][1-9]|[2-57-9]"],"($1)"]],"0",0,"(?:0|90)(?:(1[245]|2[1-35]|31|4[13]|[56]5|99)(\\d{10,11}))?","$2"],BS:["1","011","(?:242|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([3-8]\\d{6})$|1","242$1",0,"242"],BT:["975","00","[178]\\d{7}|[2-8]\\d{6}",[7,8],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[2-6]|7[246]|8[2-4]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[67]|[78]"]]]],BW:["267","00","(?:0800|(?:[37]|800)\\d)\\d{6}|(?:[2-6]\\d|90)\\d{5}",[7,8,10],[["(\\d{2})(\\d{5})","$1 $2",["90"]],["(\\d{3})(\\d{4})","$1 $2",["[24-6]|3[15-9]"]],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[37]"]],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["0"]],["(\\d{3})(\\d{4})(\\d{3})","$1 $2 $3",["8"]]]],BY:["375","810","(?:[12]\\d|33|44|902)\\d{7}|8(?:0[0-79]\\d{5,7}|[1-7]\\d{9})|8(?:1[0-489]|[5-79]\\d)\\d{7}|8[1-79]\\d{6,7}|8[0-79]\\d{5}|8\\d{5}",[6,7,8,9,10,11],[["(\\d{3})(\\d{3})","$1 $2",["800"],"8 $1"],["(\\d{3})(\\d{2})(\\d{2,4})","$1 $2 $3",["800"],"8 $1"],["(\\d{4})(\\d{2})(\\d{3})","$1 $2-$3",["1(?:5[169]|6[3-5]|7[179])|2(?:1[35]|2[34]|3[3-5])","1(?:5[169]|6(?:3[1-3]|4|5[125])|7(?:1[3-9]|7[0-24-6]|9[2-7]))|2(?:1[35]|2[34]|3[3-5])"],"8 0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2-$3-$4",["1(?:[56]|7[467])|2[1-3]"],"8 0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2-$3-$4",["[1-4]"],"8 0$1"],["(\\d{3})(\\d{3,4})(\\d{4})","$1 $2 $3",["[89]"],"8 $1"]],"8",0,"0|80?",0,0,0,0,"8~10"],BZ:["501","00","(?:0800\\d|[2-8])\\d{6}",[7,11],[["(\\d{3})(\\d{4})","$1-$2",["[2-8]"]],["(\\d)(\\d{3})(\\d{4})(\\d{3})","$1-$2-$3-$4",["0"]]]],CA:["1","011","[2-9]\\d{9}|3\\d{6}",[7,10],0,"1",0,0,0,0,0,[["(?:2(?:04|[23]6|[48]9|5[07]|63)|3(?:06|43|54|6[578]|82)|4(?:03|1[68]|[26]8|3[178]|50|74)|5(?:06|1[49]|48|79|8[147])|6(?:04|[18]3|39|47|72)|7(?:0[59]|42|53|78|8[02])|8(?:[06]7|19|25|7[39])|9(?:0[25]|42))[2-9]\\d{6}",[10]],["",[10]],["8(?:00|33|44|55|66|77|88)[2-9]\\d{6}",[10]],["900[2-9]\\d{6}",[10]],["52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|(?:5(?:2[125-9]|3[23]|44|66|77|88)|6(?:22|33))[2-9]\\d{6}",[10]],0,["310\\d{4}",[7]],0,["600[2-9]\\d{6}",[10]]]],CC:["61","001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011","1(?:[0-79]\\d{8}(?:\\d{2})?|8[0-24-9]\\d{7})|[148]\\d{8}|1\\d{5,7}",[6,7,8,9,10,12],0,"0",0,"([59]\\d{7})$|0","8$1",0,0,[["8(?:51(?:0(?:02|31|60|89)|1(?:18|76)|223)|91(?:0(?:1[0-2]|29)|1(?:[28]2|50|79)|2(?:10|64)|3(?:[06]8|22)|4[29]8|62\\d|70[23]|959))\\d{3}",[9]],["4(?:79[01]|83[0-36-9]|95[0-3])\\d{5}|4(?:[0-36]\\d|4[047-9]|[58][0-24-9]|7[02-8]|9[0-47-9])\\d{6}",[9]],["180(?:0\\d{3}|2)\\d{3}",[7,10]],["190[0-26]\\d{6}",[10]],0,0,0,0,["14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}",[9]],["13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}",[6,8,10,12]]],"0011"],CD:["243","00","(?:(?:[189]|5\\d)\\d|2)\\d{7}|[1-68]\\d{6}",[7,8,9,10],[["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["88"],"0$1"],["(\\d{2})(\\d{5})","$1 $2",["[1-6]"],"0$1"],["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[89]"],"0$1"],["(\\d{2})(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3 $4",["5"],"0$1"]],"0"],CF:["236","00","
144(?:[27]\\d{3}|8776)\\d{4}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[27
vendor: 33,137 bytes, line 144
1448]"]]]],CG:["242","00","222\\d{6}|(?:0\\d|80)\\d{7}",[9],[["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["8"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[02]"]]]],CH:["41","00","8\\d{11}|[2-9]\\d{8}",[9,12],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8[047]|90"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-79]|81"],"0$1"],["(\\d{3})(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["8"],"0$1"]],"0"],CI:["225","00","[02]\\d{9}",[10],[["(\\d{2})(\\d{2})(\\d)(\\d{5})","$1 $2 $3 $4",["2"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3 $4",["0"]]]],CK:["682","00","[2-578]\\d{4}",[5],[["(\\d{2})(\\d{3})","$1 $2",["[2-578]"]]]],CL:["56","(?:0|1(?:1[0-69]|2[02-5]|5[13-58]|69|7[0167]|8[018]))0","12300\\d{6}|6\\d{9,10}|[2-9]\\d{8}",[9,10,11],[["(\\d{5})(\\d{4})","$1 $2",["219","2196"],"($1)"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["60|809"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["44"]],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["2[1-36]"],"($1)"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["9(?:10|[2-9])"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["3[2-5]|[47]|5[1-3578]|6[13-57]|8(?:0[1-8]|[1-9])"],"($1)"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["60|8"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]],["(\\d{3})(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3 $4",["60"]]]],CM:["237","00","[26]\\d{8}|88\\d{6,7}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["88"]],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["[26]|88"]]]],CN:["86","00|1(?:[12]\\d|79)\\d\\d00","(?:(?:1[03-689]|2\\d)\\d\\d|6)\\d{8}|1\\d{10}|[126]\\d{6}(?:\\d(?:\\d{2})?)?|86\\d{5,6}|(?:[3-579]\\d|8[0-57-9])\\d{5,9}",[7,8,9,10,11,12],[["(\\d{2})(\\d{5,6})","$1 $2",["(?:10|2[0-57-9])[19]|3(?:[157]|35|49|9[1-68])|4(?:1[124-9]|2[179]|6[47-9]|7|8[23])|5(?:[1357]|2[37]|4[36]|6[1-46]|80)|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:07|1[236-8]|2[5-7]|[37]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3|4[13]|5[1-5]|7[0-79]|9[0-35-9])|(?:4[35]|59|85)[1-9]","(?:10|2[0-57-9])(?:1[02]|9[56])|8078|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))1","10(?:1(?:0|23)|9[56])|2[0-57-9](?:1(?:00|23)|9[56])|80781|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))12","10(?:1(?:0|23)|9[56])|2[0-57-9](?:1(?:00|23)|9[56])|807812|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))123","10(?:1(?:0|23)|9[56])|2[0-57-9](?:1(?:00|23)|9[56])|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:078|1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))123"],"0$1"],["(\\d{3})(\\d{5,6})","$1 $2",["3(?:[157]|35|49|9[1-68])|4(?:[17]|2[179]|6[47-9]|8[23])|5(?:[1357]|2[37]|4[36]|6[1-46]|80)|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]|4[13]|5[1-5])|(?:4[35]|59|85)[1-9]","(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))[19]","85[23](?:10|95)|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[14-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))(?:10|9[56])","85[23](?:100|95)|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[14-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))(?:100|9[56])"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["(?:4|80)0"]],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["10|2(?:[02-57-9]|1[1-9])","10|2(?:[02-57-9]|1[1-9])","10[0-79]|2(?:[02-57-9]|1[1-79])|(?:10|21)8(?:0[1-9]|[1-9])"],"0$1",1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["3(?:[3-59]|7[02-68])|4(?:[26-8]|3[3-9]|5[2-9])|5(?:3[03-9]|[468]|7[028]|9[2-46-9])|6|7(?:[0-247]|3[04-9]|5[0-4689]|6[2368])|8(?:[1-358]|9[1-7])|9(?:[013479]|5[1-5])|(?:[34]1|55|79|87)[02-9]"],"0$1",1],["(\\d{3})(\\d{7,8})","$1 $2",["9"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["80"],"0$1",1],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["[3-578]"],"0$1",1],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["1[3-9]"]],["(\\d{2})(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3 $4",["[12]"],"0$1",1]],"0",0,"(1(?:[12]\\d|79)\\d\\d)|0",0,0,0,0,"00"],CO:["57","00(?:4(?:[14]4|56)|[579])","(?:46|60\\d\\d)\\d{6}|(?:1\\d|[39])\\d{9}",[8,10,11],[["(\\d{4})(\\d{4})","$1 $2",["46"]],["(\\d{3})(\\d{7})","$1 $2",["6|90"],"($1)"],["(\\d{3})(\\d{7})","$1 $2",["3[0-357]|9[14]"]],["(\\d)(\\d{3})(\\d{7})","$1-$2-$3",["1"],"0$1",0,"$1 $2 $3"]],"0",0,"0([3579]|4(?:[14]4|56))?"],CR:["506","00","(?:8\\d|90)\\d{8}|(?:[24-8]\\d{3}|3005)\\d{4}",[8,10],[["(\\d{4})(\\d{4})","$1 $2",["[2-7]|8[3-9]"]],["(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["[89]"]]],0,0,"(19(?:0[0-2468]|1[09]|20|66|77|99))"],CU:["53","119","(?:[2-7]|8\\d\\d)\\d{7}|[2-47]\\d{6}|[34]\\d{5}",[6,7,8,10],[["(\\d{2})(\\d{4,6})","$1 $2",["2[1-4]|[34]"],"(0$1)"],["(\\d)(\\d{6,7})","$1 $2",["7"],"(0$1)"],["(\\d)(\\d{7})","$1 $2",["[56]"],"0$1"],["(\\d{3})(\\d{7})","$1 $2",["8"],"0$1"]],"0"],CV:["238","0","(?:[2-59]\\d\\d|800)\\d{4}",[7],[["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["[2-589]"]]]],CW:["599","00","(?:[34]1|60|(?:7|9\\d)\\d)\\d{5}",[7,8],[["(\\d{3})(\\d{4})","$1 $2",["[3467]"]],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["9[4-8]"]]],0,0,0,0,0,"[69]"],CX:["61","001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011","1(?:[0-79]\\d{8}(?:\\d{2})?|8[0-24-9]\\d{7})|[148]\\d{8}|1\\d{5,7}",[6,7,8,9,10,12],0,"0",0,"([59]\\d{7})$|0","8$1",0,0,[["8(?:51(?:0(?:01|30|59|88)|1(?:17|46|75)|2(?:22|35))|91(?:00[6-9]|1(?:[28]1|49|78)|2(?:09|63)|3(?:12|26|75)|4(?:56|97)|64\\d|7(?:0[01]|1[0-2])|958))\\d{3}",[9]],["4(?:79[01]|83[0-36-9]|95[0-3])\\d{5}|4(?:[0-36]\\d|4[047-9]|[58][0-24-9]|7[02-8]|9[0-47-9])\\d{6}",[9]],["180(?:0\\d{3}|2)\\d{3}",[7,10]],["190[0-26]\\d{6}",[10]],0,0,0,0,["14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}",[9]],["13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}",[6,8,10,12]]],"0011"],CY:["357","00","(?:[279]\\d|[58]0)\\d{6}",[8],[["(\\d{2})(\\d{6})","$1 $2",["[257-9]"]]]],CZ:["420","00","(?:[2-578]\\d|60)\\d{7}|9\\d{8,11}",[9,10,11,12],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[2-8]|9[015-7]"]],["(\\d{2})(\\d{3})(\\d{3})(\\d{2})","$1 $2 $3 $4",["96"]],["(\\d{2})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["9"]],["(\\d{3})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["9"]]]],DE:["49","00","[2579]\\d{5,14}|49(?:[34]0|69|8\\d)\\d\\d?|49(?:37|49|60|7[089]|9\\d)\\d{1,3}|49(?:2[024-9]|3[2-689]|7[1-7])\\d{1,8}|(?:1|[368]\\d|4[0-8])\\d{3,13}|49(?:[015]\\d|2[13]|31|[46][1-8])\\d{1,9}",[4,5,6,7,8,9,10,11,12,13,14,15],[["(\\d{2})(\\d{3,13})","$1 $2",["3[02]|40|[68]9"],"0$1"],["(\\d{3})(\\d{3,12})","$1 $2",["2(?:0[1-389]|1[124]|2[18]|3[14])|3(?:[35-9][15]|4[015])|906|(?:2[4-9]|4[2-9]|[579][1-9]|[68][1-8])1","2(?:0[1-389]|12[0-8])|3(?:[35-9][15]|4[015])|906|2(?:[13][14]|2[18])|(?:2[4-9]|4[2-9]|[579][1-9]|[68][1-8])1"],"0$1"],["(\\d{4})(\\d{2,11})","$1 $2",["[24-6]|3(?:[3569][02-46-9]|4[2-4679]|7[2-467]|8[2-46-8])|70[2-8]|8(?:0[2-9]|[1-8])|90[7-9]|[79][1-9]","[24-6]|3(?:3(?:0[1-467]|2[127-9]|3[124578]|7[1257-9]|8[1256]|9[145])|4(?:2[135]|4[13578]|9[1346])|5(?:0[14]|2[1-3589]|6[1-4]|7[13468]|8[13568])|6(?:2[1-489]|3[124-6]|6[13]|7[12579]|8[1-356]|9[135])|7(?:2[1-7]|4[145]|6[1-5]|7[1-4])|8(?:21|3[1468]|6|7[1467]|8[136])|9(?:0[12479]|2[1358]|4[134679]|6[1-9]|7[136]|8[147]|9[1468]))|70[2-8]|8(?:0[2-9]|[1-8])|90[7-9]|[79][1-9]|3[68]4[1347]|3(?:47|60)[1356]|3(?:3[46]|46|5[49])[1246]|3[4579]3[1357]"],"0$1"],["(\\d{3})(\\d{4})","$1 $2",["138"],"0$1"],["(\\d{5})(\\d{2,10})","$1 $2",["3"],"0$1"],["(\\d{3})(\\d{5,11})","$1 $2",["181"],"0$1"],["(\\d{3})(\\d)(\\d{4,10})","$1 $2 $3",["1(?:3|80)|9"],"0$1"],["(\\d{3})(\\d{7,8})","$1 $2",["1[67]"],"0$1"],["(\\d{3})(\\d{7,12})","$1 $2",["8"],"0$1"],["(\\d{5})(\\d{6})","$1 $2",["185","1850","18500"],"0$1"],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["7"],"0$1"],["(\\d{4})(\\d{7})","$1 $2",["18[68]"],"0$1"],["(\\d{4})(\\d{7})","$1 $2",["15[1279]"],"0$1"],["(\\d{5})(\\d{6})","$1 $2",["15[03568]","15(?:[0568]|3[13])"],"0$1"],["(\\d{3})(\\d{8})","$1 $2",["18"],"0$1"],["(\\d{3})(\\d{2})(\\d{7,8})","$1 $2 $3",["1(?:6[023]|7)"],"0$1"],["(\\d{4})(\\d{2})(\\d{7})","$1 $2 $3",["15[279]"],"0$1"],["(\\d{3})(\\d{2})(\\d{8})","$1 $2 $3",["15"],"0$1"]],"0"],DJ:["253","00","(?:2\\d|77)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[27]"]]]],DK:["45","00","[2-9]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-9]"]]]],DM:["1","011","(?:[58]\\d\\d|767|900)\\d{7}",[10],0,"1",0,"([2-7]\\d{6})$|1","767$1",0,"767"],DO:["1","011","(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,0,0,0,"8001|8[024]9"],DZ:["213","00","(?:[1-4]|[5-79]\\d|80)\\d{7}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[1-4]"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["9"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-8]"],"0$1"]],"0"],EC:["593","00","1\\d{9,10}|(?:[2-7]|9\\d)\\d{7}",[8,9,10,11],[["(\\d)(\\d{3})(\\d{4})","$1 $2-$3",["[2-7]"],"(0$1)",0,"$1-$2-$3"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["9"],"0$1"],["(\\d{4})(\\d{3})(\\d{3,4})","$1 $2 $3",["1"]]],"0"],EE:["372","00","8\\d{9}|[4578]\\d{7}|(?:[3-8]\\d|90)\\d{5}",[7,8,10],[["(\\d{3})(\\d{4})","$1 $2",["[369]|4[3-8]|5(?:[0-2]|5[0-478]|6[45])|7[1-9]|88","[369]|4[3-8]|5(?:[02]|1(?:[0-8]|95)|5[0-478]|6(?:4[0-4]|5[1-589]))|7[1-9]|88"]],["(\\d{4})(\\d{3,4})","$1 $2",["[45]|8(?:00|[1-49])","[45]|8(?:00[1-9]|[1-49])"]],["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["7"]],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["8"]]]],EG:["20","00","[189]\\d{8,9}|[24-6]\\d{8}|[135]\\d{7}",[8,9,10],[["(\\d)(\\d{7,8})","$1 $2",["[23]"],"0$1"],["(\\d{2})(\\d{6,7})","$1 $2",["1[35]|[4-6]|8[2468]|9[235-7]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[89]"],"0$1"],["(\\d{2})(\\d{8})","$1 $2",["1"],"0$1"]],"0"],EH:["212","00","[5-8]\\d{8}",[9],0,"0",0,0,0,0,0,[["528[89]\\d{5}"],["(?:6(?:[0-79]\\d|8[0-247-9])|7(?:[016-8]\\d|2[0-8]|5[0-5]))\\d{6}"],["80[0-7]\\d{6}"],["89\\d{7}"],0,0,0,0,["(?:592(?:4[0-2]|93)|80[89]\\d\\d)\\d{4}"]]],ER:["291","00","[178]\\d{6}",[7],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[178]"],"0$1"]],"0"],ES:["34","00","[5-9]\\d{8}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[89]00"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-9]"]]]],ET:["251","00","(?:11|[2-579]\\d)\\d{7}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[1-579]"],"0$1"]],"0"],FI:["358","00|99(?:[01469]|5(?:[14]1|3[23]|5[59]|77|88|9[09]))","[1-35689]\\d{4}|7\\d{10,11}|(?:[124-7]\\d|3[0-46-9])\\d{8}|[1-9]\\d{5,8}",[5,6,7,8,9,10,11,12],[["(\\d{5})","$1",["20[2-59]"],"0$1"],["(\\d{3})(\\d{3,7})","$1 $2",["(?:[1-3]0|[68])0|70[07-9]"],"0$1"],["(\\d{2})(\\d{4,8})","$1 $2",["[14]|2[09]|50|7[135]"],"0$1"],["(\\d{2})(\\d{6,10})","$1 $2",["7"],"0$1"],["(\\d)(\\d{4,9})","$1 $2",["(?:19|[2568])[1-8]|3(?:0[1-9]|[1-9])|9"],"0$1"]],"0",0,0,0,0,"1[03-79]|[2-9]",0,"00"],FJ:["679","0(?:0|52)","45\\d{5}|(?:0800\\d|[235-9])\\d{6}",[7,11],[["(\\d{3})(\\d{4})","$1 $2",["[235-9]|45"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["0"]]],0,0,0,0,0,0,0,"00"],FK:["500","00","[2-7]\\d{4}",[5]],FM:["691","00","(?:[39]\\d\\d|820)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[389]"]]]],FO:["298","00","[2-9]\\d{5}",[6],[["(\\d{6})","$1",["[2-9]"]]],0,0,"(10(?:01|[12]0|88))"],FR:["33","00","[1-9]\\d{8}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0 $1"],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["[1-79]"],"0$1"]],"0"],GA:["241","00","(?:[067]\\d|11)\\d{6}|[2-7]\\d{6}",[7,8],[["(\\d)(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-7]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["0"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["11|[67]"],"0$1"]],0,0,"0(11\\d{6}|60\\d{6}|61\\d{6}|6[256]\\d{6}|7[467]\\d{6})","$1"],GB:["44","00","[1-357-9]\\d{9}|[18]\\d{8}|8\\d{6}",[7,9,10],[["(\\d{3})(\\d{4})","$1 $2",["800","8001","80011","800111","8001111"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["845","8454","84546","845464"],"0$1"],["(\\d{3})(\\d{6})","$1 $2",["800"],"0$1"],["(\\d{5})(\\d{4,5})","$1 $2",["1(?:38|5[23]|69|76|94)","1(?:(?:38|69)7|5(?:24|39)|768|946)","1(?:3873|5(?:242|39[4-6])|(?:697|768)[347]|9467)"],"0$1"],["(\\d{4})(\\d{5,6})","$1 $2",["1(?:[2-69][02-9]|[78])"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["[25]|7(?:0|6[02-9])","[25]|7(?:0|6(?:[03-9]|2[356]))"],"0$1"],["(\\d{4})(\\d{6})","$1 $2",["7"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[1389]"],"0$1"]],"0",0,"0|180020",0,0,0,[["(?:1(?:1(?:3(?:[0-58]\\d\\d|73[0-5])|4(?:(?:[0-5]\\d|70)\\d|69[7-9])|(?:(?:5[0-26-9]|[78][0-49])\\d|6(?:[0-4]\\d|5[01]))\\d)|(?:2(?:(?:0[024-9]|2[3-9]|3[3-79]|4[1-689]|[58][02-9]|6[0-47-9]|7[013-9]|9\\d)\\d|1(?:[0-7]\\d|8[0-3]))|(?:3(?:0\\d|1[0-8]|[25][02-9]|3[02-579]|[468][0-46-9]|7[1-35-79]|9[2-578])|4(?:0[03-9]|[137]\\d|[28][02-57-9]|4[02-69]|5[0-8]|[69][0-79])|5(?:0[1-35-9]|[16]\\d|2[024-9]|3[015689]|4[02-9]|5[03-9]|7[0-35-9]|8[0-468]|9[0-57-9])|6(?:0[034689]|1\\d|2[0-35689]|[38][013-9]|4[1-467]|5[0-69]|6[13-9]|7[0-8]|9[0-24578])|7(?:0[0246-9]|2\\d|3[0236-8]|4[03-9]|5[0-46-9]|6[013-9]|7[0-35-9]|8[024-9]|9[02-9])|8(?:0[35-9]|2[1-57-9]|3[02-578]|4[0-578]|5[124-9]|6[2-69]|7\\d|8[02-9]|9[02569])|9(?:0[02-589]|[18]\\d|2[02-689]|3[1-57-9]|4[2-9]|5[0-579]|6[2-47-9]|7[0-24578]|9[2-57]))\\d)\\d)|2(?:0[013478]|3[0189]|4[017]|8[0-46-9]|9[0-2])\\d{3})\\d{4}|1(?:2(?:0(?:46[1-4]|87[2-9])|545[1-79]|76(?:2\\d|3[1-8]|6[1-6])|9(?:7(?:2[0-4]|3[2-5])|8(?:2[2-8]|7[0-47-9]|8[3-5])))|3(?:6(?:38[2-5]|47[23])|8(?:47[04-9]|64[0157-9]))|4(?:044[1-7]|20(?:2[23]|8\\d)|6(?:0(?:30|5[2-57]|6[1-8]|7[2-8])|140)|8(?:052|87[1-3]))|5(?:2(?:4(?:3[2-79]|6\\d)|76\\d)|6(?:26[06-9]|686))|6(?:06(?:4\\d|7[4-79])|295[5-7]|35[34]\\d|47(?:24|61)|59(?:5[08]|6[67]|74)|9(?:55[0-4]|77[23]))|7(?:26(?:6[13-9]|7[0-7])|(?:442|688)\\d|50(?:2[0-3]|[3-68]2|76))|8(?:27[56]\\d|37(?:5[2-5]|8[239])|843[2-58])|9(?:0(?:0(?:6[1-8]|85)|52\\d)|3583|4(?:66[1-8]|9(?:2[01]|81))|63(?:23|3[1-4])|9561))\\d{3}",[9,10]],["7(?:457[0-57-9]|700[01]|911[028])\\d{5}|7(?:[1-3]\\d\\d|4(?:[0-46-9]\\d|5[0-689])|5(?:0[0-8]|[13-9]\\d|2[0-35-9])|7(?:0[1-9]|[1-7]\\d|8[02-9]|9[0-689])|8(?:[014-9]\\d|[23][0-8])|9(?:[024-9]\\d|1[02-9]|3[0-689]))\\d{6}",[10]],["80[08]\\d{7}|800\\d{6}|8001111"],["(?:8(?:4[2-5]|7[0-3])|9(?:[01]\\d|8[2-49]))\\d{7}|845464\\d",[7,10]],["70\\d{8}",[10]],0,["(?:3[0347]|55)\\d{8}",[10]],["76(?:464|652)\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}",[10]],["56\\d{8}",[10]]],0," x"],GD:["1","011","(?:473|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","473$1",0,"473"],GE:["995","00","(?:[3-57]\\d\\d|800)\\d{6}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["70"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["32"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[57]"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[348]"],"0$1"]],"0"],GF:["594","00","(?:[56]94\\d|7093)\\d{5}|(?:80|9\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-7]|9[47]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[89]"],"0$1"]],"0"],GG:["44","00","(?:1481|[357-9]\\d{3})\\d{6}|8\\d{6}(?:\\d{2})?",[7,9,10],0,"0",0,"([25-9]\\d{5})$|0|180020","1481$1",0,0,[["1481[25-9]\\d{5}",[10]],["7(?:(?:781|839)\\d|911[17])\\d{5}",[10]],["80[08]\\d{7}|800\\d{6}|8001111"],["(?:8(?:4[2-5]|7[0-3])|9(?:[01]\\d|8[0-3]))\\d{7}|845464\\d",[7,10]],["70\\d{8}",[10]],0,["(?:3[0347]|55)\\d{8}",[10]],["76(?:464|652)\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}",[10]],["56\\d{8}",[10]]]],GH:["233","00","(?:[235]\\d{3}|800)\\d{5}",[8,9],[["(\\d{3})(\\d{5})","$1 $2",["8"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[235]"],"0$1"]],"0"],GI:["350","00","(?:[25]\\d|60)\\d{6}",[8],[["(\\d{3})(\\d{5})","$1 $2",["2"]]]],GL:["299","00","(?:19|[2-689]\\d|70)\\d{4}",[6],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["19|[2-9]"]]]],GM:["220","00","[2-9]\\d{6}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-9]"]]]],GN:["224","00","722\\d{6}|(?:3|6\\d)\\d{7}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["3"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[67]"]]]],GP:["590","00","(?:590\\d|7090)\\d{5}|(?:69|80|9\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-79]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0$1"]],"0",0,0,0,0,0,[["590(?:0[1-68]|[14][0-24-9]|2[0-68]|3[1-9]|5[3-579]|[68][0-689]|7[08]|9\\d)\\d{4}"],["(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5])|4(?:0[89]|1[2-6]|9\\d)|6(?:1[016-9]|5[0-4]|[67]\\d))|7090[0-4])\\d{4}"],["80[0-5]\\d{6}"],0,0,0,0,0,["9(?:(?:39[5-7]|76[018])\\d|475[0-6])\\d{4}"]]],GQ:["240","00","222\\d{6}|(?:3\\d|55|[89]0)\\d{7}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[235]"]],["(\\d{3})(\\d{6})","$1 $2",["[89]"]]]],GR:["30","00","5005000\\d{3}|8\\d{9,11}|(?:[269]\\d|70)\\d{8}",[10,11,12],[["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["21|7"]],["(\\d{4})(\\d{6})","$1 $2",["2(?:2|3[2-57-9]|4[2-469]|5[2-59]|6[2-9]|7[2-69]|8[2-49])|5"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[2689]"]],["(\\d{3})(\\d{3,4})(\\d{5})","$1 $2 $3",["8"]]]],GT:["502","00","80\\d{6}|(?:1\\d{3}|[2-7])\\d{7}",[8,11],[["(\\d{4})(\\d{4})","$1 $2",["[2-8]"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]]]],GU:["1","011","(?:[58]\\d\\d|671|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","671$1",0,"671"],GW:["245","00","[49]\\d{8}|4\\d{6}",[7,9],[["(\\d{3})(\\d{4})","$1 $2",["40"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[49]"]]]],GY:["592","001","(?:[2-8]\\d{3}|9008)\\d{3}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-9]"]]]],HK:["852","00(?:30|5[09]|[126-9]?)","8[0-46-9]\\d{6,7}|9\\d{4,7}|(?:[2-7]|9\\d{3})\\d{7}",[5,6,7,8,9,11],[["(\\d{3})(\\d{2,5})","$1 $2",["900","9003"]],["(\\d{4})(\\d{4})","$1 $2",["[2-7]|8[1-4]|9(?:0[1-9]|[1-8])"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"]],["(\\d{3})(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3 $4",["9"]]],0,0,0,0,0,0,0,"00"],HN:["504","00","8\\d{10}|[237-9]\\d{7}",[8,11],[["(\\d{4})(\\d{4})","$1-$2",["[237-9]"]]]],HR:["385","00","[2-69]\\d{8}|80\\d{5,7}|[1-79]\\d{7}|6\\d{6}",[7,8,9],[["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["6[01]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2,3})","$1 $2 $3",["8"],"0$1"],["(\\d)(\\d{4})(\\d{3})","$1 $2 $3",["1"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["6|7[245]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["9"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-57]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"],"0$1"]],"0"],HT:["509","00","[2-589]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["[2-589]"]]]],HU:["36","00","[235-7]\\d{8}|[1-9]\\d{7}",[8,9],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["1"],"(06 $1)"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[27][2-9]|3[2-7]|4[24-9]|5[2-79]|6|8[2-57-9]|9[2-69]"],"(06 $1)"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-9]"],"06 $1"]],"06"],ID:["62","00[89]","00[1-9]\\d{9,14}|(?:[1-36]|8\\d{5})\\d{6}|00\\d{9}|[1-9]\\d{8,10}|[2-9]\\d{7}",[7,8,9,10,11,12,13,14,15,16,17],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["15"]],["(\\d{2})(\\d{5,9})","$1 $2",["2[124]|[36]1"],"(0$1)"],["(\\d{3})(\\d{5,7})","$1 $2",["800"],"0$1"],["(\\d{3})(\\d{5,8})","$1 $2",["[2-79]"],"(0$1)"],["(\\d{3})(\\d{3,4})(\\d{3})","$1-$2-$3",["8[1-35-9]"],"0$1"],["(\\d{3})(\\d{6,8})","$1 $2",["1"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["804"],"0$1"],["(\\d{3})(\\d)(\\d{3})(\\d{3})","$1 $2 $3 $4",["80"],"0$1"],["(\\d{3})(\\d{4})(\\d{4,5})","$1-$2-$3",["8"],"0$1"]],"0"],IE:["353","00","(?:1\\d|[2569])\\d{6,8}|4\\d{6,9}|7\\d{8}|8\\d{8,9}",[7,8,9,10],[["(\\d{2})(\\d{5})","$1 $2",["2[24-9]|47|58|6[237-9]|9[35-9]"],"(0$1)"],["(\\d{3})(\\d{5})","$1 $2",["[45]0"],"(0$1)"],["(\\d)(\\d{3,4})(\\d{4})","$1 $2 $3",["1"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2569]|4[1-69]|7[14]"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["70"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["81"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[78]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["4"],"(0$1)"],["(\\d{2})(\\d)(\\d{3})(\\d{4})","$1 $2 $3 $4",["8"],"0$1"]],"0"],IL:["972","0(?:0|1[2-9])","1\\d{6}(?:\\d{3,5})?|[57]\\d{8}|[1-489]\\d{7}",[7,8,9,10,11,12],[["(\\d{4})(\\d{3})","$1-$2",["125"]],["(\\d{4})(\\d{2})(\\d{2})","$1-$2-$3",["121"]],["(\\d)(\\d{3})(\\d{4})","$1-$2-$3",["[2-489]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["[57]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1-$2-$3",["12"]],["(\\d{4})(\\d{6})","$1-$2",["159"]],["(\\d)(\\d{3})(\\d{3})(\\d{3})","$1-$2-$3-$4",["1[7-9]"]],["(\\d{3})(\\d{1,2})(\\d{3})(\\d{4})","$1-$2 $3-$4",["15"]]],"0"],IM:["44","00","1624\\d{6}|(?:[3578]\\d|90)\\d{8}",[10],0,"0",0,"([25-8]\\d{5})$|0|180020","1624$1",0,"74576|(?:16|7[56])24"],IN:["91","00","(?:000800|[2-9]\\d\\d)\\d{7}|1\\d{7,12}",[8,9,10,11,12,13],[["(\\d{8})","$1",["5(?:0|2[23]|3[03]|[67]1|88)","5(?:0|2(?:21|3)|3(?:0|3[23])|616|717|888)","5(?:0|2(?:21|3)|3(?:0|3[23])|616|717|8888)"],0,1],["(\\d{4})(\\d{4,5})","$1 $2",["180","1800"],0,1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["140"],0,1],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["11|2[02]|33|4[04]|79[1-7]|80[2-46]","11|2[02]|33|4[04]|79(?:[1-6]|7[19])|80(?:[2-4]|6[0-589])","11|2[02]|33|4[04]|79(?:[124-6]|3(?:[02-9]|1[0-24-9])|7(?:1|9[1-6]))|80(?:[2-4]|6[0-589])"],"0$1",1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["1(?:2[0-249]|3[0-25]|4[145]|[68]|7[1257])|2(?:1[257]|3[013]|4[01]|5[0137]|6[0158]|78|8[1568])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|5[12]|[78]1)|6(?:12|[2-4]1|5[17]|6[13]|80)|7(?:12|3[134]|4[47]|61|88)|8(?:16|2[014]|3[126]|6[136]|7[078]|8[34]|91)|(?:43|59|75)[15]|(?:1[59]|29|67|72)[14]","1(?:2[0-24]|3[0-25]|4[145]|[59][14]|6[1-9]|7[1257]|8[1-57-9])|2(?:1[257]|3[013]|4[01]|5[0137]|6[058]|78|8[1568]|9[14])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|3[15]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|[578]1|9[15])|674|7(?:(?:2[14]|3[34]|5[15])[2-6]|61[346]|88[0-8])|8(?:70[2-6]|84[235-7]|91[3-7])|(?:1(?:29|60|8[06])|261|552|6(?:12|[2-47]1|5[17]|6[13]|80)|7(?:12|31|4[47])|8(?:16|2[014]|3[126]|6[136]|7[78]|83))[2-7]","1(?:2[0-24]|3[0-25]|4[145]|[59][14]|6[1-9]|7[1257]|8[1-57-9])|2(?:1[257]|3[013]|4[01]|5[0137]|6[058]|78|8[1568]|9[14])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|3[15]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|[578]1|9[15])|6(?:12(?:[2-6]|7[0-8])|74[2-7])|7(?:(?:2[14]|5[15])[2-6]|3171|61[346]|88(?:[2-7]|82))|8(?:70[2-6]|84(?:[2356]|7[19])|91(?:[3-6]|7[19]))|73[134][2-6]|(?:74[47]|8(?:16|2[014]|3[126]|6[136]|7[78]|83))(?:[2-6]|7[19])|(?:1(?:29|60|8[06])|261|552|6(?:[2-4]1|5[17]|6[13]|7(?:1|4[0189])|80)|7(?:12|88[01]))[2-7]"],"0$1",1],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1(?:[2-479]|5[0235-9])|[2-5]|6(?:1[1358]|2[2457-9]|3[2-5]|4[235-7]|5[2-689]|6[24578]|7[235689]|8[1-6])|7(?:1[013-9]|28|3[129]|4[1-35689]|5[29]|6[02-5]|70)|807","1(?:[2-479]|5[0235-9])|[2-5]|6(?:1[1358]|2(?:[2457]|84|95)|3(?:[2-4]|55)|4[235-7]|5[2-689]|6[24578]|7[235689]|8[1-6])|7(?:1(?:[013-8]|9[6-9])|28[6-8]|3(?:17|2[0-49]|9[2-57])|4(?:1[2-4]|[29][0-7]|3[0-8]|[56]|8[0-24-7])|5(?:2[1-3]|9[0-6])|6(?:0[5689]|2[5-9]|3[02-8]|4|5[0-367])|70[13-7])|807[19]","1(?:[2-479]|5(?:[0236-9]|5[013-9]))|[2-5]|6(?:2(?:84|95)|355|8(?:28[235-7]|3))|73179|807(?:1|9[1-3])|(?:1552|6(?:(?:1[1358]|2[2457]|3[2-4]|4[235-7]|5[2-689]|6[24578]|7[235689])\\d|8(?:[14-6]\\d|2[0-79]))|7(?:1(?:[013-8]\\d|9[6-9])|28[6-8]|3(?:2[0-49]|9[2-57])|4(?:1[2-4]|[29][0-7]|3[0-8]|[56]\\d|8[0-24-7])|5(?:2[1-3]|9[0-6])|6(?:0[5689]|2[5-9]|3[02-8]|4\\d|5[0-367])|70[13-7]))[2-7]"],"0$1",1],["(\\d{5})(\\d{5})","$1 $2",["16|[6-9]"],"0$1",1],["(\\d{4})(\\d{2,4})(\\d{4})","$1 $2 $3",["18[06]","18[06]0"],0,1],["(\\d{4})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["18"],0,1]],"0"],IO:["246","00","3\\d{6}",[7],[["(\\d{3})(\\d{4})","$1 $2",["3"]]]],IQ:["964","00","(?:1|7\\d\\d)\\d{7}|[2-6]\\d{7,8}",[8,9,10],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-6]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"0$1"]],"0"],IR:["98","00","[1-9]\\d{9}|(?:[1-8]\\d\\d|9)\\d{3,4}",[4,5,6,7,10],[["(\\d{4,5})","$1",["96"],"0$1"],["(\\d{2})(\\d{4,5})","$1 $2",["(?:1[137]|2[13-68]|3[1458]|4[145]|5[1468]|6[16]|7[1467]|8[13467])[12689]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["9"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["[1-8]"],"0$1"]],"0"],IS:["354","00|1(?:0(?:01|[12]0)|100)","(?:38\\d|[4-9])\\d{6}",[7,9],[["(\\d{3})(\\d{4})","$1 $2",["[4-9]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["3"]]],0,0,0,0,0,0,0,"00"],IT:["39","00","0\\d{5,11}|1\\d{8,10}|3(?:[0-8]\\d{7,10}|9\\d{7,8})|(?:43|55|70)\\d{8}|8\\d{5}(?:\\d{2,4})?",[6,7,8,9,10,11,12],[["(\\d{2})(\\d{4,6})","$1 $2",["0[26]"]],["(\\d{3})(\\d{3,6})","$1 $2",["0[13-57-9][0159]|8(?:03|4[17]|9[2-5])","0[13-57-9][0159]|8(?:03|4[17]|9(?:2|3[04]|[45][0-4]))"]],["(\\d{4})(\\d{2,6})","$1 $2",["0(?:[13-579][2-46-8]|8[236-8])"]],["(\\d{4})(\\d{4})","$1 $2",["894"]],["(\\d{2})(\\d{3,4})(\\d{4})","$1 $2 $3",["0[26]|5"]],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["1(?:44|[679])|[378]|43"]],["(\\d{3})(\\d{3,4})(\\d{4})","$1 $2 $3",["0[13-57-9][0159]|14"]],["(\\d{2})(\\d{4})(\\d{5})","$1 $2 $3",["0[26]"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["0"]],["(\\d{3})(\\d{4})(\\d{4,5})","$1 $2 $3",["[03]"]]],0,0,0,0,0,0,[["0(?:669[0-79]\\d{1,6}|831\\d{2,8})|0(?:1(?:[0159]\\d|[27][1-5]|31|4[1-4]|6[1356]|8[2-57])|2\\d\\d|3(?:[0159]\\d|2[1-4]|3[12]|[48][1-6]|6[2-59]|7[1-7])|4(?:[0159]\\d|[23][1-9]|4[245]|6[1-5]|7[1-4]|81)|5(?:[0159]\\d|2[1-5]|3[2-6]|4[1-79]|6[4-6]|7[1-578]|8[3-8])|6(?:[0-57-9]\\d|6[0-8])|7(?:[0159]\\d|2[12]|3[1-7]|4[2-46]|6[13569]|7[13-6]|8[1-59])|8(?:[0159]\\d|2[3-578]|3[2356]|[6-8][1-5])|9(?:[0159]\\d|[238][1-5]|4[12]|6[1-8]|7[1-6]))\\d{2,7}"],["3[2-9]\\d{7,8}|(?:31|43)\\d{8}",[9,10]],["80(?:0\\d{3}|3)\\d{3}",[6,9]],["(?:0878\\d{3}|89(?:2\\d|3[04]|4(?:[0-4]|[5-9]\\d\\d)|5[0-4]))\\d\\d|(?:1(?:44|6[346])|89(?:38|5[5-9]|9))\\d{6}",[6,8,9,10]],["1(?:78\\d|99)\\d{6}",[9,10]],["3[2-8]\\d{9,10}",[11,12]],0,0,["55\\d{8}",[10]],["84(?:[08]\\d{3}|[17])\\d{3}",[6,9]]]],JE:["44","00","1534\\d{6}|(?:[3578]\\d|90)\\d{8}",[10],0,"0",0,"([0-24-8]\\d{5})$|0|180020","1534$1",0,0,[["1534[0-24-8]\\d{5}"],["7(?:(?:(?:50|82)9|937)\\d|7(?:00[378]|97\\d))\\d{5}"],["80(?:07(?:35|81)|8901)\\d{4}"],["(?:8(?:4(?:4(?:4(?:05|42|69)|703)|5(?:041|800))|7(?:0002|1206))|90(?:066[59]|1810|71(?:07|55)))\\d{4}"],["701511\\d{4}"],0,["(?:3(?:0(?:07(?:35|81)|8901)|3\\d{4}|4(?:4(?:4(?:05|42|69)|703)|5(?:041|800))|7(?:0002|1206))|55\\d{4})\\d{4}"],["76(?:464|652)\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}"],["56\\d{8}"]]],JM:["1","011","(?:[58]\\d\\d|658|900)\\d{7}",[10],0,"1",0,0,0,0,"658|876"],JO:["962","00","(?:(?:[2689]|7\\d)\\d|32|427|53)\\d{6}",[8,9],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[2356]|87"],"(0$1)"],["(\\d{3})(\\d{5,6})","$1 $2",["[89]"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["70"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["[47]"],"0$1"]],"0"],JP:["81","010","00[1-9]\\d{6,14}|[25-9]\\d{9}|(?:00|[1-9]\\d\\d)\\d{6}",[8,9,10,11,12,13,14,15,16,17],[["(\\d{3})(\\d{3})(\\d{3})","$1-$2-$3",["(?:12|57|99)0"],"0$1"],["(\\d{4})(\\d)(\\d{4})","$1-$2-$3",["1(?:26|3[79]|4[56]|5[4-68]|6[3-5])|499|5(?:76|97)|746|8(?:3[89]|47|51)|9(?:80|9[16])","1(?:267|3(?:7[247]|9[278])|466|5(?:47|58|64)|6(?:3[245]|48|5[4-68]))|499[2468]|5(?:76|97)9|7468|8(?:3(?:8[7-9]|96)|477|51[2-9])|9(?:802|9(?:1[23]|69))|1(?:45|58)[67]","1(?:267|3(?:7[247]|9[278])|466|5(?:47|58|64)|6(?:3[245]|48|5[4-68]))|499[2468]|5(?:769|979[2-69])|7468|8(?:3(?:8[7-9]|96[2457-9])|477|51[2-9])|9(?:802|9(?:1[23]|69))|1(?:45|58)[67]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["60"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1-$2-$3",["3|4(?:2[09]|7[01])|6[1-9]","3|4(?:2(?:0|9[02-69])|7(?:0[019]|1))|6[1-9]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["1(?:1|5[45]|77|88|9[69])|2(?:2[1-37]|3[0-269]|4[59]|5|6[24]|7[1-358]|8[1369]|9[0-38])|4(?:[28][1-9]|3[0-57]|[45]|6[248]|7[2-579]|9[29])|5(?:2|3[0459]|4[0-369]|5[29]|8[02389]|9[0-389])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9[2-6])|8(?:2[124589]|3[26-9]|49|51|6|7[0-468]|8[68]|9[019])|9(?:[23][1-9]|4[15]|5[138]|6[1-3]|7[156]|8[189]|9[1-489])","1(?:1|5(?:4[018]|5[017])|77|88|9[69])|2(?:2(?:[127]|3[014-9])|3[0-269]|4[59]|5(?:[1-3]|5[0-69]|9[19])|62|7(?:[1-35]|8[0189])|8(?:[16]|3[0134]|9[0-5])|9(?:[028]|17))|4(?:2(?:[13-79]|8[014-6])|3[0-57]|[45]|6[248]|7[2-47]|8[1-9]|9[29])|5(?:2|3(?:[045]|9[0-8])|4[0-369]|5[29]|8[02389]|9[0-3])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9(?:[23]|4[0-59]|5[01569]|6[0167]))|8(?:2(?:[1258]|4[0-39]|9[0-2469])|3(?:[29]|60)|49|51|6(?:[0-24]|36|5[0-3589]|7[23]|9[01459])|7[0-468]|8[68])|9(?:[23][1-9]|4[15]|5[138]|6[1-3]|7[156]|8[189]|9(?:[1289]|3[34]|4[0178]))|(?:264|837)[016-9]|2(?:57|93)[015-9]|(?:25[0468]|422|838)[01]|(?:47[59]|59[89]|8(?:6[68]|9))[019]","1(?:1|5(?:4[018]|5[017])|77|88|9[69])|2(?:2[127]|3[0-269]|4[59]|5(?:[1-3]|5[0-69]|9(?:17|99))|6(?:2|4[016-9])|7(?:[1-35]|8[0189])|8(?:[16]|3[0134]|9[0-5])|9(?:[028]|17))|4(?:2(?:[13-79]|8[014-6])|3[0-57]|[45]|6[248]|7[2-47]|9[29])|5(?:2|3(?:[045]|9(?:[0-58]|6[4-9]|7[0-35689]))|4[0-369]|5[29]|8[02389]|9[0-3])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9(?:[23]|4[0-59]|5[01569]|6[0167]))|8(?:2(?:[1258]|4[0-39]|9[0169])|3(?:[29]|60|7(?:[017-9]|6[6-8]))|49|51|6(?:[0-24]|36[2-57-9]|5(?:[0-389]|5[23])|6(?:[01]|9[178])|7(?:2[2-468]|3[78])|9[0145])|7[0-468]|8[68])|9(?:4[15]|5[138]|7[156]|8[189]|9(?:[1289]|3(?:31|4[357])|4[0178]))|(?:8294|96)[1-3]|2(?:57|93)[015-9]|(?:223|8699)[014-9]|(?:25[0468]|422|838)[01]|(?:48|8292|9[23])[1-9]|(?:47[59]|59[89]|8(?:68|9))[019]"],"0$1"],["(\\d{3})(\\d{2})(\\d{4})","$1-$2-$3",["[14]|[289][2-9]|5[3-9]|7[2-4679]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["800"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1-$2-$3",["[25-9]"],"0$1"]],"0",0,"(000[2569]\\d{4,6})$|(?:(?:003768)0?)|0","$1"],KE:["254","000","(?:[17]\\d\\d|900)\\d{6}|(?:2|80)0\\d{6,7}|[4-6]\\d{6,8}",[7,8,9,10],[["(\\d{2})(\\d{5,7})","$1 $2",["[24-6]"],"0$1"],["(\\d{3})(\\d{6})","$1 $2",["[17]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["[89]"],"0$1"]],"0"],KG:["996","00","8\\d{9}|[235-9]\\d{8}",[9,10],[["(\\d{4})(\\d{5})","$1 $2",["3(?:1[346]|[24-79])"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[235-79]|88"],"0$1"],["(\\d{3})(\\d{3})(\\d)(\\d{2,3})","$1 $2 $3 $4",["8"],"0$1"]],"0"],KH:["855","00[14-9]","1\\d{9}|[1-9]\\d{7,8}",[8,9,10],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[1-9]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]]],"0"],KI:["686","00","(?:[37]\\d|6[0-79])\\d{6}|(?:[2-48]\\d|50)\\d{3}",[5,8],0,"0"],KM:["269","00","[3478]\\d{6}",[7],[["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["[3478]"]]]],KN:["1","011","(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-7]\\d{6})$|1","869$1",0,"869"],KP:["850","00|99","85\\d{6}|(?:19\\d|[2-7])\\d{7}",[8,10],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["8"],"0$1"],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[2-7]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"]],"0"],KR:["82","00(?:[125689]|3(?:[46]5|91)|7(?:00|27|3|55|6[126]))","00[1-9]\\d{8,11}|(?:[12]|5\\d{3})\\d{7}|[13-6]\\d{9}|(?:[1-6]\\d|80)\\d{7}|[3-6]\\d{4,5}|(?:00|7)0\\d{8}",[5,6,8,9,10,11,12,13,14],[["(\\d{2})(\\d{3,4})","$1-$2",["(?:3[1-3]|[46][1-4]|5[1-5])1"],"0$1"],["(\\d{4})(\\d{4})","$1-$2",["1"]],["(\\d)(\\d{3,4})(\\d{4})","$1-$2-$3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["[36]0|8"],"0$1"],["(\\d{2})(\\d{3,4})(\\d{4})","$1-$2-$3",["[1346]|5[1-5]"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1-$2-$3",["[57]"],"0$1"],["(\\d{2})(\\d{5})(\\d{4})","$1-$2-$3",["5"],"0$1"]],"0",0,"0(8(?:[1-46-8]|5\\d\\d))?"],KW:["965","00","18\\d{5}|(?:[2569]\\d|41)\\d{6}",[7,8],[["(\\d{4})(\\d{3,4})","$1 $2",["[169]|2(?:[235]|4[1-35-9])|52"]],["(\\d{3})(\\d{5})","$1 $2",["[245]"]]]],KY:["1","011","(?:345|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","345$1",0,"345"],KZ:["7","810","
144(?:33622|8\\d{8})\\d{5}|[78]\\d{9}",[10,14],0,"8",0,0,0,0,"33622|7",0,"8~10"],LA:["856","00","[23]\\d{9}|3\\d{8}|(?:[235-8]\\d|41)\\d{6}",[8,9,10],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["2[13]|3[14]|[4-8]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3 $4",["3"],"0$1"],["(\\d{2})(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3 $4",["[23]"],"0$1"]],"0"],LB:["961","00","[27-9]\\d{7}|[13-9]\\d{6}",[7,8],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[13-69]|7(?:[2-57]|62|8[0-6]|9[04-9])|8[02-9]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[27-9]"]]],"0"],LC:["1","011","(?:[58]\\d\\d|758|900)\\d{7}",[10],0,"1",0,"([2-8]\\d{6})$|1","758$1",0,"758"],LI:["423","00","[68]\\d{8}|(?:[2378]\\d|90)\\d{5}",[7,9],[["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["[2379]|8(?:0[09]|7)","[2379]|8(?:0(?:02|9)|7)"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["69"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6"]]],"0",0,"(1001)|0"],LK:["94","00","[1-9]\\d{8}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[1-689]"],"0$1"]],"0"],LR:["231","00","(?:[2457]\\d|33|88)\\d{7}|(?:2\\d|[4-6])\\d{6}",[7,8,9],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["4[67]|[56]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[2-578]"],"0$1"]],"0"],LS:["266","00","(?:[256]\\d\\d|800)\\d{5}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[2568]"]]]],LT:["370","00","(?:[3469]\\d|52|[78]0)\\d{6}",[8],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["52[0-7]"],"(0-$1)",1],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["[7-9]"],"0 $1",1],["(\\d{2})(\\d{6})","$1 $2",["37|4(?:[15]|6[1-8])"],"(0-$1)",1],["(\\d{3})(\\d{5})","$1 $2",["[3-6]"],"(0-$1)",1]],"0",0,"[08]"],LU:["352","00","35[013-9]\\d{4,8}|6\\d{8}|35\\d{2,4}|(?:[2457-9]\\d|3[0-46-9])\\d{2,9}",[4,5,6,7,8,9,10,11],[["(\\d{2})(\\d{3})","$1 $2",["2(?:0[2-689]|[2-9])|[3-57]|8(?:0[2-9]|[13-9])|9(?:0[89]|[2-579])"]],["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["2(?:0[2-689]|[2-9])|[3-57]|8(?:0[2-9]|[13-9])|9(?:0[89]|[2-579])"]],["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["20[2-689]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{1,2})","$1 $2 $3 $4",["2(?:[0367]|4[3-8])"]],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["80[01]|90[015]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3 $4",["20"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})(\\d{1,2})","$1 $2 $3 $4 $5",["2(?:[0367]|4[3-8])"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{1,5})","$1 $2 $3 $4",["[3-57]|8[13-9]|9(?:0[89]|[2-579])|(?:2|80)[2-9]"]]],0,0,"(15(?:0[06]|1[12]|[35]5|4[04]|6[26]|77|88|99)\\d)"],LV:["371","00","(?:[268]\\d|78|90)\\d{6}",[8],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2679]|8[01]"]]]],LY:["218","00","[2-9]\\d{8}",[9],[["(\\d{2})(\\d{7})","$1-$2",["[2-9]"],"0$1"]],"0"],MA:["212","00","[5-8]\\d{8}",[9],[["(\\d{4})(\\d{5})","$1-$2",["892"],"0$1"],["(\\d{2})(\\d{7})","$1-$2",["8(?:0[0-7]|9)"],"0$1"],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["[5-8]"],"0$1"]],"0",0,0,0,0,"[5-8]"],MC:["377","00","(?:[3489]|[67]\\d)\\d{7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["4"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[389]"]],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["[67]"],"0$1"]],"0"],MD:["373","00","(?:[235-7]\\d|[89]0)\\d{6}",[8],[["(\\d{3})(\\d{5})","$1 $2",["[89]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["22|3"],"0$1"],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["[25-7]"],"0$1"]],"0"],ME:["382","00","(?:20|[3-79]\\d)\\d{6}|80\\d{6,7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-9]"],"0$1"]],"0"],MF:["590","00","(?:590\\d|7090)\\d{5}|(?:69|80|9\\d)\\d{7}",[9],0,"0",0,0,0,0,0,[["590(?:0[079]|[14]3|[27][79]|3[03-7]|5[0-268]|87)\\d{4}"],["(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5])|4(?:0[89]|1[2-6]|9\\d)|6(?:1[016-9]|5[0-4]|[67]\\d))|7090[0-4])\\d{4}"],["80[0-5]\\d{6}"],0,0,0,0,0,["9(?:(?:39[5-7]|76[018])\\d|475[0-6])\\d{4}"]]],MG:["261","00","[23]\\d{8}",[9],[["(\\d{2})(\\d{2})(\\d{3})(\\d{2})","$1 $2 $3 $4",["[23]"],"0$1"]],"0",0,"([24-9]\\d{6})$|0","20$1"],MH:["692","011","329\\d{4}|(?:[256]\\d|45)\\d{5}",[7],[["(\\d{3})(\\d{4})","$1-$2",["[2-6]"]]],"1"],MK:["389","00","[2-578]\\d{7}",[8],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["2|34[47]|4(?:[37]7|5[47]|64)"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[347]"],"0$1"],["(\\d{3})(\\d)(\\d{2})(\\d{2})","$1 $2 $3 $4",["[58]"],"0$1"]],"0"],ML:["223","00","[24-9]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[24-9]"]]]],MM:["95","00","1\\d{5,7}|95\\d{6}|(?:[4-7]|9[0-46-9])\\d{6,8}|(?:2|8\\d)\\d{5,8}",[6,7,8,9,10],[["(\\d)(\\d{2})(\\d{3})","$1 $2 $3",["16|2"],"0$1"],["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["4(?:[2-46]|5[3-5])|5|6(?:[1-689]|7[235-7])|7(?:[0-4]|5[2-7])|8[1-5]|(?:60|86)[23]"],"0$1"],["(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["[12]|452|678|86","[12]|452|6788|86"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[4-7]|8[1-35]"],"0$1"],["(\\d)(\\d{3})(\\d{4,6})","$1 $2 $3",["9(?:2[0-4]|[35-9]|4[137-9])"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"],"0$1"],["(\\d)(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["92"],"0$1"],["(\\d)(\\d{5})(\\d{4})","$1 $2 $3",["9"],"0$1"]],"0"],MN:["976","001","[12]\\d{7,9}|[5-9]\\d{7}",[8,9,10],[["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["[12]1"],"0$1"],["(\\d{4})(\\d{4})","$1 $2",["[5-9]"]],["(\\d{3})(\\d{5,6})","$1 $2",["[12]2[1-3]"],"0$1"],["(\\d{4})(\\d{5,6})","$1 $2",["[12](?:27|3[2-8]|4[2-68]|5[1-4689])","[12](?:27|3[2-8]|4[2-68]|5[1-4689])[0-3]"],"0$1"],["(\\d{5})(\\d{4,5})","$1 $2",["[12]"],"0$1"]],"0"],MO:["853","00","0800\\d{3}|(?:28|[68]\\d)\\d{6}",[7,8],[["(\\d{4})(\\d{3})","$1 $2",["0"]],["(\\d{4})(\\d{4})","$1 $2",["[268]"]]]],MP:["1","011","[58]\\d{9}|(?:67|90)0\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","670$1",0,"670"],MQ:["596","00","(?:596\\d|7091)\\d{5}|(?:69|[89]\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-79]|8(?:0[6-9]|[36])"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0$1"]],"0"],MR:["222","00","(?:[2-4]\\d\\d|800)\\d{5}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-48]"]]]],MS:["1","011","(?:[58]\\d\\d|664|900)\\d{7}",[10],0,"1",0,"([34]\\d{6})$|1","664$1",0,"664"],MT:["356","00","3550\\d{4}|(?:[2579]\\d\\d|800)\\d{5}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[2357-9]"]]]],MU:["230","0(?:0|[24-7]0|3[03])","(?:[57]|8\\d\\d)\\d{7}|[2-468]\\d{6}",[7,8,10],[["(\\d{3})(\\d{4})","$1 $2",["[2-46]|8[013]"]],["(\\d{4})(\\d{4})","$1 $2",["[57]"]],["(\\d{5})(\\d{5})","$1 $2",["8"]]],0,0,0,0,0,0,0,"020"],MV:["960","0(?:0|19)","(?:800|9[0-57-9]\\d)\\d{7}|[34679]\\d{6}",[7,10],[["(\\d{3})(\\d{4})","$1-$2",["[34679]"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[89]"]]],0,0,0,0,0,0,0,"00"],MW:["265","00","(?:[1289]\\d|31|77)\\d{7}|1\\d{6}",[7,9],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["1[2-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["2"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[137-9]"],"0$1"]],"0"],MX:["52","0[09]","[2-9]\\d{9}",[10],[["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["33|5[56]|81"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[2-9]"]]],0,0,0,0,0,0,0,"00"],MY:["60","00","1\\d{8,9}|(?:3\\d|[4-9])\\d{7}",[8,9,10],[["(\\d)(\\d{3})(\\d{4})","$1-$2 $3",["[4-79]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1-$2 $3",["1(?:[02469]|[378][1-9]|53)|8","1(?:[02469]|[37][1-9]|53|8(?:[1-46-9]|5[7-9]))|8"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1-$2 $3",["3"],"0$1"],["(\\d)(\\d{3})(\\d{2})(\\d{4})","$1-$2-$3-$4",["1(?:[367]|80)"]],["(\\d{3})(\\d{3})(\\d{4})","$1-$2 $3",["15"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1-$2 $3",["1"],"0$1"]],"0"],MZ:["258","00","(?:2|8\\d)\\d{7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["2|8[2-79]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"]]]],NA:["264","00","[68]\\d{7,8}",[8,9],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["88"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["6"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["87"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["8"],"0$1"]],"0"],NC:["687","00","(?:050|[2-57-9]\\d\\d)\\d{3}",[6],[["(\\d{2})(\\d{2})(\\d{2})","$1.$2.$3",["[02-57-9]"]]]],NE:["227","00","[027-9]\\d{7}",[8],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["08"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[089]|2[013]|7[0467]"]]]],NF:["672","00","[13]\\d{5}",[6],[["(\\d{2})(\\d{4})","$1 $2",["1[0-3]"]],["(\\d)(\\d{5})","$1 $2",["[13]"]]],0,0,"([0-258]\\d{4})$","3$1"],NG:["234","009","(?:20|9\\d)\\d{8}|[78]\\d{9,13}",[10,11,12,13,14],[["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["[7-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["20[129]"],"0$1"],["(\\d{4})(\\d{2})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{3})(\\d{4})(\\d{4,5})","$1 $2 $3",["[78]"],"0$1"],["(\\d{3})(\\d{5})(\\d{5,6})","$1 $2 $3",["[78]"],"0$1"]],"0"],NI:["505","00","(?:1800|[25-8]\\d{3})\\d{4}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[125-8]"]]]],NL:["31","00","(?:[124-7]\\d\\d|3(?:[02-9]\\d|1[0-8]))\\d{6}|8\\d{6,9}|9\\d{6,10}|1\\d{4,5}",[5,6,7,8,9,10,11],[["(\\d{3})(\\d{4,7})","$1 $2",["[89]0"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["66"],"0$1"],["(\\d)(\\d{8})","$1 $2",["6"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["1[16-8]|2[259]|3[124]|4[17-9]|5[124679]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[1-578]|91"],"0$1"],["(\\d{3})(\\d{3})(\\d{5})","$1 $2 $3",["9"],"0$1"]],"0"],NO:["47","00","(?:0|[2-9]\\d{3})\\d{4}",[5,8],[["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["8"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-79]"]]],0,0,0,0,0,"[02-689]|7[0-8]"],NP:["977","00","(?:1\\d|9)\\d{9}|[1-9]\\d{7}",[8,10,11],[["(\\d)(\\d{7})","$1-$2",["1[2-6]"],"0$1"],["(\\d{2})(\\d{6})","$1-$2",["1[01]|[2-8]|9(?:[1-59]|[67][2-6])"],"0$1"],["(\\d{3})(\\d{7})","$1-$2",["9"]]],"0"],NR:["674","00","(?:222|444|(?:55|8\\d)\\d|666|777|999)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[24-9]"]]]],NU:["683","00","(?:[4-7]|888\\d)\\d{3}",[4,7],[["(\\d{3})(\\d{4})","$1 $2",["8"]]]],NZ:["64","0(?:0|161)","[1289]\\d{9}|50\\d{5}
144(?:\\d{2,3})?|[27-9]\\d{7,8}|(?:[34]\\d|6[0-35-9])\\d{6}|8\\d{4,6}",[5,6,7,8,9,10],[["(\\d{2})(\\d{3,8})","$1 $2",["8[1-79]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2,3})","$1 $2 $3",["50[036-8]|8|90","50(?:[0367]|88)|8|90"],"0$1"],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["24|[346]|7[2-57-9]|9[2-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["2(?:10|74)|[589]"],"0$1"],["(\\d{2})(\\d{3,4})(\\d{4})","$1 $2 $3",["1|2[028]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,5})","$1 $2 $3",["2(?:[169]|7[0-35-9])|7"],"0$1"]],"0",0,0,0,0,0,0,"00"],OM:["968","00","(?:1505|[279]\\d{3}|500)\\d{4}|800\\d{5,6}",[7,8,9],[["(\\d{3})(\\d{4,6})","$1 $2",["[58]"]],["(\\d{2})(\\d{6})","$1 $2",["2"]],["(\\d{4})(\\d{4})","$1 $2",["[179]"]]]],PA:["507","00","(?:00800|8\\d{3})\\d{6}|[68]\\d{7}|[1-57-9]\\d{6}",[7,8,10,11],[["(\\d{3})(\\d{4})","$1-$2",["[1-57-9]"]],["(\\d{4})(\\d{4})","$1-$2",["[68]"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"]]]],PE:["51","00|19(?:1[124]|77|90)00","(?:[14-8]|9\\d)\\d{7}",[8,9],[["(\\d{3})(\\d{5})","$1 $2",["80"],"(0$1)"],["(\\d)(\\d{7})","$1 $2",["1"],"(0$1)"],["(\\d{2})(\\d{6})","$1 $2",["[4-8]"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["9"]]],"0",0,0,0,0,0,0,"00"," Anexo "],PF:["689","00","4\\d{5}(?:\\d{2})?|8\\d{7,8}",[6,8,9],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["44"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["4|8[7-9]"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]]]],PG:["675","00|140[1-3]","(?:180|[78]\\d{3})\\d{4}|(?:[2-589]\\d|64)\\d{5}",[7,8],[["(\\d{3})(\\d{4})","$1 $2",["18|[2-69]|85"]],["(\\d{4})(\\d{4})","$1 $2",["[78]"]]],0,0,0,0,0,0,0,"00"],PH:["63","00","(?:[2-7]|9\\d)\\d{8}|2\\d{5}|(?:1800|8)\\d{7,9}",[6,8,9,10,11,12,13],[["(\\d)(\\d{5})","$1 $2",["2"],"(0$1)"],["(\\d{4})(\\d{4,6})","$1 $2",["3(?:23|39|46)|4(?:2[3-6]|[35]9|4[26]|76)|544|88[245]|(?:52|64|86)2","3(?:230|397|461)|4(?:2(?:35|[46]4|51)|396|4(?:22|63)|59[347]|76[15])|5(?:221|446)|642[23]|8(?:622|8(?:[24]2|5[13]))"],"(0$1)"],["(\\d{5})(\\d{4})","$1 $2",["346|4(?:27|9[35])|883","3469|4(?:279|9(?:30|56))|8834"],"(0$1)"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["2"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[3-7]|8[2-8]"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[89]"],"0$1"],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]],["(\\d{4})(\\d{1,2})(\\d{3})(\\d{4})","$1 $2 $3 $4",["1"]]],"0"],PK:["92","00","122\\d{6}|[24-8]\\d{10,11}|9(?:[013-9]\\d{8,10}|2(?:[01]\\d\\d|2(?:[06-8]\\d|1[01]))\\d{7})|(?:[2-8]\\d{3}|92(?:[0-7]\\d|8[1-9]))\\d{6}|[24-9]\\d{8}|[89]\\d{7}",[8,9,10,11,12],[["(\\d{3})(\\d{3})(\\d{2,7})","$1 $2 $3",["[89]0"],"0$1"],["(\\d{4})(\\d{5})","$1 $2",["1"]],["(\\d{3})(\\d{6,7})","$1 $2",["2(?:3[2358]|4[2-4]|9[2-8])|45[3479]|54[2-467]|60[468]|72[236]|8(?:2[2-689]|3[23578]|4[3478]|5[2356])|9(?:2[2-8]|3[27-9]|4[2-6]|6[3569]|9[25-8])","9(?:2[3-8]|98)|(?:2(?:3[2358]|4[2-4]|9[2-8])|45[3479]|54[2-467]|60[468]|72[236]|8(?:2[2-689]|3[23578]|4[3478]|5[2356])|9(?:22|3[27-9]|4[2-6]|6[3569]|9[25-7]))[2-9]"],"(0$1)"],["(\\d{2})(\\d{7,8})","$1 $2",["(?:2[125]|4[0-246-9]|5[1-35-7]|6[1-8]|7[14]|8[16]|91)[2-9]"],"(0$1)"],["(\\d{5})(\\d{5})","$1 $2",["58"],"(0$1)"],["(\\d{3})(\\d{7})","$1 $2",["3"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["2[125]|4[0-246-9]|5[1-35-7]|6[1-8]|7[14]|8[16]|91"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["[24-9]"],"(0$1)"]],"0"],PL:["48","00","(?:6|8\\d\\d)\\d{7}|[1-9]\\d{6}(?:\\d{2})?|[26]\\d{5}",[6,7,8,9,10],[["(\\d{5})","$1",["19"]],["(\\d{3})(\\d{3})","$1 $2",["11|20|64"]],["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["(?:1[2-8]|2[2-69]|3[2-4]|4[1-468]|5[24-689]|6[1-3578]|7[14-7]|8[1-79]|9[145])1","(?:1[2-8]|2[2-69]|3[2-4]|4[1-468]|5[24-689]|6[1-3578]|7[14-7]|8[1-79]|9[145])19"]],["(\\d{3})(\\d{2})(\\d{2,3})","$1 $2 $3",["64"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["21|39|45|5[0137]|6[0469]|7[02389]|8(?:0[14]|8)"]],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[2-8]|[2-7]|8[1-79]|9[145]"]],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["8"]]]],PM:["508","00","[45]\\d{5}|(?:708|8\\d\\d)\\d{6}",[6,9],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["[45]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["7"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0$1"]],"0"],PR:["1","011","(?:[589]\\d\\d|787)\\d{7}",[10],0,"1",0,0,0,0,"787|939"],PS:["970","00","[2489]2\\d{6}|(?:1\\d|5)\\d{8}",[8,9,10],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[2489]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["5"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]]],"0"],PT:["351","00","1693\\d{5}|(?:[26-9]\\d|30)\\d{7}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["2[12]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["16|[236-9]"]]]],PW:["680","01[12]","(?:[24-8]\\d\\d|345|900)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-9]"]]]],PY:["595","00","[36-8]\\d{5,8}|4\\d{6,8}|59\\d{6}|9\\d{5,10}|(?:2\\d|5[0-8])\\d{6,7}",[6,7,8,9,10,11],[["(\\d{3})(\\d{3,6})","$1 $2",["[2-9]0"],"0$1"],["(\\d{2})(\\d{5})","$1 $2",["3[289]|4[246-8]|61
vendor: 8,552 bytes, line 144
144|7[1-3]|8[1-36]"],"(0$1)"],["(\\d{3})(\\d{4,5})","$1 $2",["2[279]|3[13-5]|4[359]|5|6(?:[34]|7[1-46-8])|7[46-8]|85"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["2[14-68]|3[26-9]|4[1246-8]|6(?:1|75)|7[1-35]|8[1-36]"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["87"]],["(\\d{3})(\\d{6})","$1 $2",["9(?:[5-79]|8[1-7])"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[2-8]"],"0$1"],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["9"]]],"0"],QA:["974","00","800\\d{4}|(?:2|800)\\d{6}|(?:0080|[3-7])\\d{7}",[7,8,9,11],[["(\\d{3})(\\d{4})","$1 $2",["2[136]|8"]],["(\\d{4})(\\d{4})","$1 $2",["[3-7]"]]]],RE:["262","00","709\\d{6}|(?:26|[689]\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[26-9]"],"0$1"]],"0",0,0,0,0,0,[["26(?:2\\d\\d|3(?:0\\d|1[0-6]))\\d{4}"],["(?:69(?:2\\d\\d|3(?:[06][0-6]|1[0-3]|2[0-2]|3[0-39]|4\\d|5[0-5]|7[0-37]|8[0-8]|9[0-479]))|7092[0-3])\\d{4}"],["80\\d{7}"],["89[1-37-9]\\d{6}"],0,0,0,0,["9(?:399[0-3]|479[0-6]|76(?:2[278]|3[0-37]))\\d{4}"],["8(?:1[019]|2[0156]|84|90)\\d{6}"]]],RO:["40","00","(?:[236-8]\\d|90)\\d{7}|[23]\\d{5}",[6,9],[["(\\d{3})(\\d{3})","$1 $2",["2[3-6]","2[3-6]\\d9"],"0$1"],["(\\d{2})(\\d{4})","$1 $2",["219|31"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[23]1"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[236-9]"],"0$1"]],"0",0,0,0,0,0,0,0," int "],RS:["381","00","38[02-9]\\d{6,9}|6\\d{7,9}|90\\d{4,8}|38\\d{5,6}|(?:7\\d\\d|800)\\d{3,9}|(?:[12]\\d|3[0-79])\\d{5,10}",[6,7,8,9,10,11,12],[["(\\d{3})(\\d{3,9})","$1 $2",["(?:2[389]|39)0|[7-9]"],"0$1"],["(\\d{2})(\\d{5,10})","$1 $2",["[1-36]"],"0$1"]],"0"],RU:["7","810","8\\d{13}|[347-9]\\d{9}",[10,14],[["(\\d{4})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["7(?:1[0-8]|2[1-9])","7(?:1(?:[0-356]2|4[29]|7|8[27])|2(?:1[23]|[2-9]2))","7(?:1(?:[0-356]2|4[29]|7|8[27])|2(?:13[03-69]|62[013-9]))|72[1-57-9]2"],"8 ($1)",1],["(\\d{5})(\\d)(\\d{2})(\\d{2})","$1 $2 $3 $4",["7(?:1[0-68]|2[1-9])","7(?:1(?:[06][3-6]|[18]|2[35]|[3-5][3-5])|2(?:[13][3-5]|[24-689]|7[457]))","7(?:1(?:0(?:[356]|4[023])|[18]|2(?:3[013-9]|5)|3[45]|43[013-79]|5(?:3[1-8]|4[1-7]|5)|6(?:3[0-35-9]|[4-6]))|2(?:1(?:3[178]|[45])|[24-689]|3[35]|7[457]))|7(?:14|23)4[0-8]|71(?:33|45)[1-79]"],"8 ($1)",1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"8 ($1)",1],["(\\d{3})(\\d{3})(\\d{2})(\\d{2})","$1 $2-$3-$4",["[349]|8(?:[02-7]|1[1-8])"],"8 ($1)",1],["(\\d{4})(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3 $4",["8"],"8 ($1)"]],"8",0,0,0,0,0,[["336(?:[013-9]\\d|2[013-9])\\d{5}|(?:3(?:0[12]|4[1-35-79]|5[1-3]|65|8[1-58]|9[0145])|4(?:01|1[1356]|2[13467]|7[1-5]|8[1-7]|9[1-689])|8(?:1[1-8]|2[01]|3[13-6]|4[0-8]|5[15-7]|6[0-35-79]|7[1-37-9]))\\d{7}",[10]],["9\\d{9}",[10]],["8(?:0[04]|108\\d{3})\\d{7}"],["80[39]\\d{7}",[10]],["808\\d{7}",[10]]],"8~10"],RW:["250","00","(?:06|[27]\\d\\d|[89]00)\\d{6}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["0"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["2"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[7-9]"],"0$1"]],"0"],SA:["966","00","(?:[15]\\d|800|92)\\d{7}",[9,10],[["(\\d{4})(\\d{5})","$1 $2",["9"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["5"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"]]],"0"],SB:["677","0[01]","[6-9]\\d{6}|[1-6]\\d{4}",[5,7],[["(\\d{2})(\\d{5})","$1 $2",["6[89]|7|8[4-9]|9(?:[1-8]|9[0-8])"]]]],SC:["248","010|0[0-2]","(?:[2489]\\d|64)\\d{5}",[7],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[246]|9[57]"]]],0,0,0,0,0,0,0,"00"],SD:["249","00","[19]\\d{8}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[19]"],"0$1"]],"0"],SE:["46","00","(?:[26]\\d\\d|9)\\d{9}|[1-9]\\d{8}|[1-689]\\d{7}|[1-4689]\\d{6}|2\\d{5}",[6,7,8,9,10,12],[["(\\d{2})(\\d{2,3})(\\d{2})","$1-$2 $3",["20"],"0$1",0,"$1 $2 $3"],["(\\d{3})(\\d{4})","$1-$2",["9(?:00|39|44|9)"],"0$1",0,"$1 $2"],["(\\d{2})(\\d{3})(\\d{2})","$1-$2 $3",["[12][136]|3[356]|4[0246]|6[03]|90[1-9]"],"0$1",0,"$1 $2 $3"],["(\\d)(\\d{2,3})(\\d{2})(\\d{2})","$1-$2 $3 $4",["8"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2,3})(\\d{2})","$1-$2 $3",["1[2457]|2(?:[247-9]|5[0138])|3[0247-9]|4[1357-9]|5[0-35-9]|6(?:[125689]|4[02-57]|7[0-2])|9(?:[125-8]|3[02-5]|4[0-3])"],"0$1",0,"$1 $2 $3"],["(\\d{3})(\\d{2,3})(\\d{3})","$1-$2 $3",["9(?:00|39|44)"],"0$1",0,"$1 $2 $3"],["(\\d{2})(\\d{2,3})(\\d{2})(\\d{2})","$1-$2 $3 $4",["1[13689]|2[0136]|3[1356]|4[0246]|54|6[03]|90[1-9]"],"0$1",0,"$1 $2 $3 $4"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1-$2 $3 $4",["10|7"],"0$1",0,"$1 $2 $3 $4"],["(\\d)(\\d{3})(\\d{3})(\\d{2})","$1-$2 $3 $4",["8"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1-$2 $3 $4",["[13-5]|2(?:[247-9]|5[0138])|6(?:[124-689]|7[0-2])|9(?:[125-8]|3[02-5]|4[0-3])"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2})(\\d{2})(\\d{3})","$1-$2 $3 $4",["9"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1-$2 $3 $4 $5",["[26]"],"0$1",0,"$1 $2 $3 $4 $5"]],"0"],SG:["65","0[0-3]\\d","(?:(?:1\\d|8)\\d\\d|7000)\\d{7}|[3689]\\d{7}",[8,10,11],[["(\\d{4})(\\d{4})","$1 $2",["[369]|8(?:0[1-9]|[1-9])"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"]],["(\\d{4})(\\d{4})(\\d{3})","$1 $2 $3",["7"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]]]],SH:["290","00","(?:[256]\\d|8)\\d{3}",[4,5],0,0,0,0,0,0,"[256]"],SI:["386","00|10(?:22|66|88|99)","[1-7]\\d{7}|8\\d{4,7}|90\\d{4,6}",[5,6,7,8],[["(\\d{2})(\\d{3,6})","$1 $2",["8[09]|9"],"0$1"],["(\\d{3})(\\d{5})","$1 $2",["59|8"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[37][01]|4[0139]|51|6"],"0$1"],["(\\d)(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[1-57]"],"(0$1)"]],"0",0,0,0,0,0,0,"00"],SJ:["47","00","0\\d{4}|(?:[489]\\d|79)\\d{6}",[5,8],0,0,0,0,0,0,"79"],SK:["421","00","[2-689]\\d{8}|[2-59]\\d{6}|[2-5]\\d{5}",[6,7,9],[["(\\d)(\\d{2})(\\d{3,4})","$1 $2 $3",["21"],"0$1"],["(\\d{2})(\\d{2})(\\d{2,3})","$1 $2 $3",["[3-5][1-8]1","[3-5][1-8]1[67]"],"0$1"],["(\\d)(\\d{3})(\\d{3})(\\d{2})","$1/$2 $3 $4",["2"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[689]"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1/$2 $3 $4",["[3-5]"],"0$1"]],"0"],SL:["232","00","(?:[237-9]\\d|66)\\d{6}",[8],[["(\\d{2})(\\d{6})","$1 $2",["[236-9]"],"(0$1)"]],"0"],SM:["378","00","(?:0549|[5-7]\\d)\\d{6}",[8,10],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-7]"]],["(\\d{4})(\\d{6})","$1 $2",["0"]]],0,0,"([89]\\d{5})$","0549$1"],SN:["221","00","(?:[378]\\d|93)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[379]"]]]],SO:["252","00","[346-9]\\d{8}|[12679]\\d{7}|[1-5]\\d{6}|[1348]\\d{5}",[6,7,8,9],[["(\\d{2})(\\d{4})","$1 $2",["8[125]"]],["(\\d{6})","$1",["[134]"]],["(\\d)(\\d{6})","$1 $2",["[15]|2[0-79]|3[0-46-8]|4[0-7]"]],["(\\d)(\\d{7})","$1 $2",["(?:2|90)4|[67]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[348]|64|79|90"]],["(\\d{2})(\\d{5,7})","$1 $2",["1|28|6[0-35-9]|7[67]|9[2-9]"]]],"0"],SR:["597","00","(?:[2-5]|[6-8]\\d|90)\\d{5}",[6,7],[["(\\d{2})(\\d{2})(\\d{2})","$1-$2-$3",["56"]],["(\\d{3})(\\d{3})","$1-$2",["[2-5]"]],["(\\d{3})(\\d{4})","$1-$2",["[6-9]"]]]],SS:["211","00","[19]\\d{8}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[19]"],"0$1"]],"0"],ST:["239","00","(?:22|9\\d)\\d{5}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[29]"]]]],SV:["503","00","[25-7]\\d{7}|(?:80\\d|900)\\d{4}(?:\\d{4})?",[7,8,11],[["(\\d{3})(\\d{4})","$1 $2",["[89]"]],["(\\d{4})(\\d{4})","$1 $2",["[25-7]"]],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["[89]"]]]],SX:["1","011","7215\\d{6}|(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"(5\\d{6})$|1","721$1",0,"721"],SY:["963","00","[1-359]\\d{8}|[1-5]\\d{7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[1-4]|5[1-3]"],"0$1",1],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[59]"],"0$1",1]],"0"],SZ:["268","00","0800\\d{4}|(?:[237]\\d|900)\\d{6}",[8,9],[["(\\d{4})(\\d{4})","$1 $2",["[0237]"]],["(\\d{5})(\\d{4})","$1 $2",["9"]]]],TA:["290","00","8\\d{3}",[4],0,0,0,0,0,0,"8"],TC:["1","011","(?:[58]\\d\\d|649|900)\\d{7}",[10],0,"1",0,"([2-479]\\d{6})$|1","649$1",0,"649"],TD:["235","00|16","(?:22|30|[689]\\d|77)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[236-9]"]]],0,0,0,0,0,0,0,"00"],TG:["228","00","[279]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[279]"]]]],TH:["66","00[1-9]","(?:001800|[2-57]|[689]\\d)\\d{7}|1\\d{7,9}",[8,9,10,13],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[13-9]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]]],"0"],TJ:["992","810","(?:[0-57-9]\\d|66)\\d{7}",[9],[["(\\d{6})(\\d)(\\d{2})","$1 $2 $3",["331","3317"]],["(\\d{3})(\\d{2})(\\d{4})","$1 $2 $3",["44[02-479]|[34]7"]],["(\\d{4})(\\d)(\\d{4}
vendor: 10,795 bytes, line 144
144)","$1 $2 $3",["3(?:[1245]|3[12])"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["\\d"]]],0,0,0,0,0,0,0,"8~10"],TK:["690","00","[2-47]\\d{3,6}",[4,5,6,7]],TL:["670","00","7\\d{7}|(?:[2-47]\\d|[89]0)\\d{5}",[7,8],[["(\\d{3})(\\d{4})","$1 $2",["[2-489]|70"]],["(\\d{4})(\\d{4})","$1 $2",["7"]]]],TM:["993","810","(?:[1-6]\\d|71)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2-$3-$4",["12"],"(8 $1)"],["(\\d{3})(\\d)(\\d{2})(\\d{2})","$1 $2-$3-$4",["[1-5]"],"(8 $1)"],["(\\d{2})(\\d{6})","$1 $2",["[67]"],"8 $1"]],"8",0,0,0,0,0,0,"8~10"],TN:["216","00","[2-57-9]\\d{7}",[8],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2-57-9]"]]]],TO:["676","00","(?:0800|(?:[5-8]\\d\\d|999)\\d)\\d{3}|[2-8]\\d{4}",[5,7],[["(\\d{2})(\\d{3})","$1-$2",["[2-4]|50|6[09]|7[0-24-69]|8[05]"]],["(\\d{4})(\\d{3})","$1 $2",["0"]],["(\\d{3})(\\d{4})","$1 $2",["[5-9]"]]]],TR:["90","00","4\\d{6}|8\\d{11,12}|(?:[2-58]\\d\\d|900)\\d{7}",[7,10,12,13],[["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["512|8[01589]|90"],"0$1",1],["(\\d{3})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["5(?:[0-59]|61)","5(?:[0-59]|61[06])","5(?:[0-59]|61[06]1)"],"0$1",1],["(\\d{3})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[24][1-8]|3[1-9]"],"(0$1)",1],["(\\d{3})(\\d{3})(\\d{6,7})","$1 $2 $3",["80"],"0$1",1]],"0"],TT:["1","011","(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-46-8]\\d{6})$|1","868$1",0,"868"],TV:["688","00","(?:2|7\\d\\d|90)\\d{4}",[5,6,7],[["(\\d{2})(\\d{3})","$1 $2",["2"]],["(\\d{2})(\\d{4})","$1 $2",["90"]],["(\\d{2})(\\d{5})","$1 $2",["7"]]]],TW:["886","0(?:0[25-79]|19)","[2-689]\\d{8}|7\\d{9,10}|[2-8]\\d{7}|2\\d{6}",[7,8,9,10,11],[["(\\d{2})(\\d)(\\d{4})","$1 $2 $3",["202"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[258]0"],"0$1"],["(\\d)(\\d{3,4})(\\d{4})","$1 $2 $3",["[23568]|4(?:0[02-48]|[1-47-9])|7[1-9]","[23568]|4(?:0[2-48]|[1-47-9])|(?:400|7)[1-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[49]"],"0$1"],["(\\d{2})(\\d{4})(\\d{4,5})","$1 $2 $3",["7"],"0$1"]],"0",0,0,0,0,0,0,0,"#"],TZ:["255","00[056]","(?:[25-8]\\d|41|90)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{4})","$1 $2 $3",["[89]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[24]"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["5"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[67]"],"0$1"]],"0"],UA:["380","00","[89]\\d{9}|[3-9]\\d{8}",[9,10],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6[12][29]|(?:3[1-8]|4[136-8]|5[12457]|6[49])2|(?:56|65)[24]","6[12][29]|(?:35|4[1378]|5[12457]|6[49])2|(?:56|65)[24]|(?:3[1-46-8]|46)2[013-9]"],"0$1"],["(\\d{4})(\\d{5})","$1 $2",["3[1-8]|4(?:[1367]|[45][6-9]|8[4-6])|5(?:[1-5]|6[0135689]|7[4-6])|6(?:[12][3-7]|[459])","3[1-8]|4(?:[1367]|[45][6-9]|8[4-6])|5(?:[1-5]|6(?:[015689]|3[02389])|7[4-6])|6(?:[12][3-7]|[459])"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[3-7]|89|9[1-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["[89]"],"0$1"]],"0",0,0,0,0,0,0,"0~0"],UG:["256","00[057]","800\\d{6}|(?:[29]0|[347]\\d)\\d{7}",[9],[["(\\d{4})(\\d{5})","$1 $2",["202","2024"],"0$1"],["(\\d{3})(\\d{6})","$1 $2",["[27-9]|4(?:6[45]|[7-9])"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["[34]"],"0$1"]],"0"],US:["1","011","[2-9]\\d{9}|3\\d{6}",[10],[["(\\d{3})(\\d{4})","$1-$2",["310"],0,1],["(\\d{3})(\\d{3})(\\d{4})","($1) $2-$3",["[2-9]"],0,1,"$1-$2-$3"]],"1",0,0,0,0,0,[["(?:274[27]|(?:472|983)[2-47-9])\\d{6}|(?:2(?:0[1-35-9]|1[02-9]|2[03-57-9]|3[1459]|4[08]|5[1-46]|6[0279]|7[0269]|8[13])|3(?:0[1-57-9]|1[02-9]|2[013-79]|3[0-24679]|4[167]|5[0-3]|6[01349]|8[056])|4(?:0[124-9]|1[02-579]|2[3-5]|3[0245]|4[023578]|58|6[349]|7[0589]|8[04])|5(?:0[1-57-9]|1[0235-8]|20|3[0149]|4[01]|5[179]|6[1-47]|7[0-5]|8[0256])|6(?:0[1-35-9]|1[024-9]|2[03689]|3[016]|4[0156]|5[01679]|6[0-279]|78|8[0-269])|7(?:0[1-46-8]|1[2-9]|2[04-8]|3[0-247]|4[0378]|5[47]|6[02359]|7[0-59]|8[156])|8(?:0[1-68]|1[02-8]|2[0168]|3[0-2589]|4[03578]|5[046-9]|6[02-5]|7[028])|9(?:0[1346-9]|1[02-9]|2[0589]|3[0146-8]|4[01357-9]|5[12469]|7[0-3589]|8[04-69]))[2-9]\\d{6}"],[""],["8(?:00|33|44|55|66|77|88)[2-9]\\d{6}"],["900[2-9]\\d{6}"],["52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|5(?:00|2[125-9]|3[23]|44|66|77|88)[2-9]\\d{6}"]]],UY:["598","0(?:0|1[3-9]\\d)","0004\\d{2,9}|[1249]\\d{7}|2\\d{3,4}|(?:[49]\\d|80)\\d{5}",[4,5,6,7,8,9,10,11,12,13],[["(\\d{4,5})","$1",["21"]],["(\\d{3})(\\d{3,4})","$1 $2",["0"]],["(\\d{3})(\\d{4})","$1 $2",["[49]0|8"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["9"],"0$1"],["(\\d{4})(\\d{4})","$1 $2",["[124]"]],["(\\d{3})(\\d{3})(\\d{2,4})","$1 $2 $3",["0"]],["(\\d{3})(\\d{3})(\\d{3})(\\d{2,4})","$1 $2 $3 $4",["0"]]],"0",0,0,0,0,0,0,"00"," int. "],UZ:["998","00","(?:20|33|[5-9]\\d)\\d{7}",[9],[["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[235-9]"]]]],VA:["39","00","0\\d{5,10}|3[0-8]\\d{7,10}|55\\d{8}|8\\d{5}(?:\\d{2,4})?|(?:1\\d|39)\\d{7,8}",[6,7,8,9,10,11,12],0,0,0,0,0,0,"06698"],VC:["1","011","(?:[58]\\d\\d|784|900)\\d{7}",[10],0,"1",0,"([2-7]\\d{6})$|1","784$1",0,"784"],VE:["58","00","[68]00\\d{7}|(?:[24]\\d|[59]0)\\d{8}",[10],[["(\\d{3})(\\d{7})","$1-$2",["[24-689]"],"0$1"]],"0"],VG:["1","011","(?:284|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-578]\\d{6})$|1","284$1",0,"284"],VI:["1","011","[58]\\d{9}|(?:34|90)0\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","340$1",0,"340"],VN:["84","00","[12]\\d{9}|[135-9]\\d{8}|[16]\\d{7}|[16-8]\\d{6}",[7,8,9,10],[["(\\d{2})(\\d{5})","$1 $2",["80"],"0$1",1],["(\\d{4})(\\d{4,6})","$1 $2",["1"],0,1],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["6"],"0$1",1],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[357-9]"],"0$1",1],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["2[48]"],"0$1",1],["(\\d{3})(\\d{4})(\\d{3})","$1 $2 $3",["2"],"0$1",1]],"0"],VU:["678","00","[57-9]\\d{6}|(?:[238]\\d|48)\\d{3}",[5,7],[["(\\d{3})(\\d{4})","$1 $2",["[57-9]"]]]],WF:["681","00","(?:40|72|8\\d{4})\\d{4}|[89]\\d{5}",[6,9],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["[47-9]"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]]]],WS:["685","0","(?:[2-6]|8\\d{5})\\d{4}|[78]\\d{6}|[68]\\d{5}",[5,6,7,10],[["(\\d{5})","$1",["[2-5]|6[1-9]"]],["(\\d{3})(\\d{3,7})","$1 $2",["[68]"]],["(\\d{2})(\\d{5})","$1 $2",["7"]]]],XK:["383","00","2\\d{7,8}|3\\d{7,11}|(?:4\\d\\d|[89]00)\\d{5}",[8,9,10,11,12],[["(\\d{3})(\\d{5})","$1 $2",["[89]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2-4]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["2|39"],"0$1"],["(\\d{2})(\\d{7,10})","$1 $2",["3"],"0$1"]],"0"],YE:["967","00","(?:1|7\\d)\\d{7}|[1-7]\\d{6}",[7,8,9],[["(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["[1-6]|7(?:[24-6]|8[0-7])"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["7"],"0$1"]],"0"],YT:["262","00","7093\\d{5}|(?:80|9\\d)\\d{7}|(?:26|63)9\\d{6}",[9],0,"0",0,0,0,0,0,[["269(?:0[0-467]|15|5[0-4]|6\\d|[78]0)\\d{4}"],["(?:639(?:0[0-79]|1[019]|[267]\\d|3[09]|40|5[05-9]|9[04-79])|7093[5-7])\\d{4}"],["80\\d{7}"],0,0,0,0,0,["9(?:(?:39|47)8[01]|769\\d)\\d{4}"]]],ZA:["27","00","[1-79]\\d{8}|8\\d{4,9}",[5,6,7,8,9,10],[["(\\d{2})(\\d{3,4})","$1 $2",["8[1-4]"],"0$1"],["(\\d{2})(\\d{3})(\\d{2,3})","$1 $2 $3",["8[1-4]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["860"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[1-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"],"0$1"]],"0"],ZM:["260","00","800\\d{6}|(?:21|[579]\\d|63)\\d{7}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[28]"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["[579]"],"0$1"]],"0"],ZW:["263","00","2(?:[0-57-9]\\d{6,8}|6[0-24-9]\\d{6,7})|[38]\\d{9}|[35-8]\\d{8}|[3-6]\\d{7}|[1-689]\\d{6}|[1-3569]\\d{5}|[1356]\\d{4}",[5,6,7,8,9,10],[["(\\d{3})(\\d{3,5})","$1 $2",["2(?:0[45]|2[278]|[49]8)|3(?:[09]8|17)|6(?:[29]8|37|75)|[23][78]|(?:33|5[15]|6[68])[78]"],"0$1"],["(\\d)(\\d{3})(\\d{2,4})","$1 $2 $3",["[49]"],"0$1"],["(\\d{3})(\\d{4})","$1 $2",["80"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["24|8[13-59]|(?:2[05-79]|39|5[45]|6[15-8])2","2(?:02[014]|4|[56]20|[79]2)|392|5(?:42|525)|6(?:[16-8]21|52[013])|8[13-59]"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["2(?:1[39]|2[0157]|[378]|[56][14])|3(?:12|29)","2(?:1[39]|2[0157]|[378]|[56][14])|3(?:123|29)"],"0$1"],["(\\d{4})(\\d{6})","$1 $2",["8"],"0$1"],["(\\d{2})(\\d{3,5})","$1 $2",["1|2(?:0[0-36-9]|12|29|[56])|3(?:1[0-689]|[24-6])|5(?:[0236-9]|1[2-4])|6(?:[013-59]|7[0-46-9])|(?:33|55|6[68])[0-69]|(?:29|3[09]|62)[0-79]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["29[013-9]|39|54"],"0$1"],["(\\d{4})(\\d{3,5})","$1 $2",["(?:25|54)8","258|5483"],"0$1"]],"0"]},nonGeographic:{800:["800",0,"(?:00|[1-9]\\d)\\d{6}",[8],[["(\\d{4})(\\d{4})","$1 $2",["\\d"]]],0,0,0,0,0,0,[0,0,["(?:00|[1-9]\\d)\\d{6}"]]],808:["808",0,"[1-9]\\d{7}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[1-9]"]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,0,["[1-9]\\d{7}"]]],870:["870",0,"7\\d{11}|[235-7]\\d{8}",[9,12],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[235-7]"]]],0,0,0,0,0,0,[0,["(?:[356]|774[45])\\d{8}|7[6-8]\\d{7}"],0,0,0,0,0,0,["2\\d{8}",[9]]]],878:["878",0,"10\\d{10}",[12],[["(\\d{2})(\\d{5})(\\d{5})","$1 $2 $3",["1"]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,["10\\d{10}"]]],881:["881",0,"6\\d{9}|[0-36-9]\\d{8}",[9,10],[["(\\d)(\\d{3})(\\d{5})","$1 $2 $3",["[0-37-9]"]],["(\\d)(\\d{3})(\\d{5,6})","$1 $2 $3",["6"]]],0,0,0,0,0,0,[0,["6\\d{9}|[0-36-9]\\d{8}"]]],882:["882",0,"[13]\\d{6}(?:\\d{2,5})?|[19]\\d{7}|(?:[25]\\d\\d|4)\\d{7}(?:\\d{2})?",[7,8,9,10,11,12],[["(\\d{2})(\\d{5})","$1 $2",["16|342"]],["(\\d{2})(\\d{6})","$1 $2",["49"]],["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["1[36]|9"]],["(\\d{2})(\\d{4})(\\d{3})","$1 $2 $3",["3[23]"]],["(\\d{2})(\\d{3,4})(\\d{4})","$1 $2 $3",["16"]],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["10|23|3(?:[15]|4[57])|4|51"]],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["34"]],["(\\d{2})(\\d{4,5})(\\d{5})","$1 $2 $3",["[1-35]"]]],0,0,0,0,0,0,[0,["342\\d{4}|(?:337|49)\\d{6}|(?:3(?:2|47|7\\d{3})|50\\d{3})\\d{7}",[7,8,9,10,12]],0,0,0,["348[57]\\d{7}",[11]],0,0,["1(?:3(?:0[0347]|[13][0139]|2[035]|4[013568]|6[0459]|7[06]|8[15-8]|9[0689])\\d{4}|6\\d{5,10})|(?:345\\d|9[89])\\d{6}|(?:10|2(?:3|85\\d)|3(?:[15]|[69]\\d\\d)|4[15-8]|51)\\d{8}"]]],883:["883",0,"(?:[1-4]\\d|51)\\d{6,10}",[8,9,10,11,12],[["(\\d{3})(\\d{3})(\\d{2,8})","$1 $2 $3",["[14]|2[24-689]|3[02-689]|51[24-9]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["510"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["21"]],["(\\d{4})(\\d{4})(\\d{4})","$1 $2 $3",["51[13]"]],["(\\d{3})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["[235]"]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,["(?:2(?:00\\d\\d|10)|(?:370[1-9]|51\\d0)\\d)\\d{7}|51(?:00\\d{5}|[24-9]0\\d{4,7})|(?:1[0-79]|2[24-689]|3[02-689]|4[0-4])0\\d{5,9}"]]],888:["888",0,"\\d{11}",[11],[["(\\d{3})(\\d{3})(\\d{5})","$1 $2 $3"]],0,0,0,0,0,0,[0,0,0,0,0,0,["\\d{11}"]]],979:["979",0,"[1359]\\d{8}",[9],[["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["[1359]"]]],0,0,0,0,0,0,[0,0,0,["[1359]\\d{8}"]]]}}
144;var P4={exports:{}};var lQ;function Zlt(){return lQ||(lQ=1,(function(t){(function(){var e={}.hasOwnProperty;function n(){for(var s="",a=0;a<arguments.length;a++){var o=arguments[a];o&&(s=i(s,r(o)))}return s}function r(s){if(typeof s=="string"||typeof s=="number")return s;if(typeof s!="object")return"";if(Array.isArray(s))return n.apply(null,s);if(s.toString!==Object.prototype.toString&&!s.toString.toString().includes("[native code]"))return s.toString();var a="";for(var o in s)e.call(s,o)&&s[o]&&(a=i(a,o));return a}function i(s,a){return a?s?s+" "+a:s+a:s}t.exports?(n.default=n,t.exports=n):window.classNames=n})()})(P4)),P4.exports}var Jlt=Zlt();const Oi=ys(Jlt);function eut(t,e,n){switch(n){case"Backspace":e>0&&(t=t.slice(0,e-1)+t.slice(e),e--);break;case"Delete":t=t.slice(0,e)+t.slice(e+1);break}return{value:t,caret:e}}function tut(t,e,n){for(var r={},i="",s=0,a=0;a<t.length;){var o=n(t[a],i,r);o!==void 0&&(i+=o,e!==void 0&&(e===a?s=i.length-1:e>a&&(s=i.length))),a++}e===void 0&&(s=i.length);var l={value:i,caret:s};return l}function nut(t,e){var n=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n)return(n=n.call(t)).next.bind(n);if(Array.isArray(t)||(n=rut(t))||e){n&&(t=n);var r=0;return function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. 145In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function rut(t,e){if(t){if(typeof t=="string")return uQ(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return uQ(t,e)}}function uQ(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function i9(t,e){for(var n=0,r=nut(e.split("")),i;!(i=r()).done;){var s=i.value;s===t&&n++}return n}function iut(t,e){for(var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"x",r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:" ",i=t.length,s=i9("(",t),a=i9(")",t),o=s-a;o>0&&i<e.length;)t+=e[i].replace(n,r),e[i]===")"&&o--,i++;return t}function sut(t,e){var n=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n)return(n=n.call(t)).next.bind(n);if(Array.isArray(t)||(n=aut(t))||e){n&&(t=n);var r=0;return function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. 146In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function aut(t,e){if(t){if(typeof t=="string")return cQ(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return cQ(t,e)}}function cQ(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function out(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"x",n=arguments.length>2?arguments[2]:void 0;if(!t)return function(i){return{text:i}};var r=i9(e,t);return function(i){if(!i)return{text:"",template:t};for(var s=0,a="",o=sut(t.split("")),l;!(l=o()).done;){var u=l.value;if(u!==e){a+=u;continue}if(a+=i[s],s++,s===i.length&&i.length<r)break}return n&&(a=iut(a,t)),{text:a,template:t}}}function lut(t,e,n){typeof n=="string"&&(n=out(n));var r=n(t)||{},i=r.text,s=r.template;if(i===void 0&&(i=t),s)if(e===void 0)e=i.length;else{for(var a=0,o=!1,l=-1;a<i.length&&a<s.length;){if(i[a]!==s[a]){if(e===0){o=!0,e=a;break}l=a,e--}a++}o||(e=l+1)}return{text:i,caret:e}}function uut(t){return t.hasAttribute("readonly")}function cut(t){if(t.selectionStart!==t.selectionEnd)return{start:t.selectionStart,end:t.selectionEnd}}var dQ={Backspace:8,Delete:46};function dut(t){switch(t.keyCode){case dQ.Backspace:return"Backspace";case dQ.Delete:return"Delete"}}function fut(t){return t.selectionStart}function Eye(t,e){e!==void 0&&(hut()?setTimeout(function(){return t.setSelectionRange(e,e)},0):t.setSelectionRange(e,e))}function hut(){if(typeof navigator<"u")return put.test(navigator.userAgent)}var put=/Android/i;function mut(t,e,n,r,i){s9(e,n,r,void 0,i)}function gut(t,e,n,r,i){if(!uut(e)){var s=dut(t);switch(s){case"Delete":case"Backspace":t.preventDefault();var a=cut(e);return a?(yut(e,a),s9(e,n,r,void 0,i)):s9(e,n,r,s,i)}}}function yut(t,e){var n=t.value;n=n.slice(0,e.start)+n.slice(e.end),t.value=n,Eye(t,e.start)}function s9(t,e,n,r,i){var s=tut(t.value,fut(t),e),a=s.value,o=s.caret;if(r){var l=eut(a,o,r);a=l.value,o=l.caret}var u=lut(a,o,n),c=u.text;o=u.caret,t.value=c,Eye(t,o),i&&i(a)}var but=["ref","parse","format","value","defaultValue","controlled","onChange","onKeyDown"];function fQ(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function Um(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};
146e%2?fQ(Object(n),!0).forEach(function(r){vut(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):fQ(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function vut(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Eut(t,e){if(t==null)return{};var n=_ut(t,e),r,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);for(i=0;i<s.length;i++)r=s[i],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function _ut(t,e){if(t==null)return{};var n={},r=Object.keys(t),i,s;for(s=0;s<r.length;s++)i=r[s],!(e.indexOf(i)>=0)&&(n[i]=t[i]);return n}function xut(t){var e=t.ref,n=t.parse,r=t.format,i=t.value,s=t.defaultValue,a=t.controlled,o=a===void 0?!0:a,l=t.onChange,u=t.onKeyDown,c=Eut(t,but),d=C.useRef(),h=C.useCallback(function(v){d.current=v,e&&(typeof e=="function"?e(v):e.current=v)},[e]),m=C.useCallback(function(v){return mut(v,d.current,n,r,l)},[d,n,r,l]),g=C.useCallback(function(v){if(u&&u(v),!v.defaultPrevented)return gut(v,d.current,n,r,l)},[d,n,r,l,u]),b=Um(Um({},c),{},{ref:h,onChange:m,onKeyDown:g});return o?Um(Um({},b),{},{value:r(hQ(i)?"":i).text}):Um(Um({},b),{},{defaultValue:r(hQ(s)?"":s).text})}function hQ(t){return t==null}var wut=["inputComponent","parse","format","value","defaultValue","onChange","controlled","onKeyDown","type"];function pQ(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function Sut(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?pQ(Object(n),!0).forEach(function(r){Cut(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):pQ(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function Cut(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Tut(t,e){if(t==null)return{};var n=Aut(t,e),r,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);for(i=0;i<s.length;i++)r=s[i],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function Aut(t,e){if(t==null)return{};var n={},r=Object.keys(t),i,s;for(s=0;s<r.length;s++)i=r[s],!(e.indexOf(i)>=0)&&(n[i]=t[i]);return n}function ZS(t,e){var n=t.inputComponent,r=n===void 0?"input":n,i=t.parse,s=t.format,a=t.value,o=t.defaultValue,l=t.onChange,u=t.controlled,c=t.onKeyDown,d=t.type,h=d===void 0?"text":d,m=Tut(t,wut),g=xut(Sut({ref:e,parse:i,format:s,value:a,defaultValue:o,onChange:l,controlled:u,onKeyDown:c,type:h},m));return U.createElement(r,g)}ZS=U.forwardRef(ZS);ZS.propTypes={parse:oe.func.isRequired,format:oe.func.isRequired,inputComponent:oe.elementType,type:oe.string,value:oe.string,defaultValue:oe.string,onChange:oe.func,controlled:oe.bool,onKeyDown:oe.func,onCut:oe.func,onPaste:oe.func};function mQ(t,e){t=t.split("-"),e=e.split("-");for(var n=t[0].split("."),r=e[0].split("."),i=0;i<3;i++){var s=Number(n[i]),a=Number(r[i]);if(s>a)return 1;if(a>s)return-1;if(!isNaN(s)&&isNaN(a))return 1;if(isNaN(s)&&!isNaN(a))return-1}return t[1]&&e[1]?t[1]>e[1]?1:t[1]<e[1]?-1:0:!t[1]&&e[1]?1:t[1]&&!e[1]?-1:0}var Rut={}.constructor;function Mh(t){return t!=null&&t.constructor===Rut}function t0(t){"@babel/helpers - typeof";return t0=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},t0(t)}function S3(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Nut(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,Out(r.key),r)}}function C3(t,e,n){return e&&Nut(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function Out(t){var e=kut(t,"string");return t0(e)=="symbol"?e:e+""}function kut(t,e){if(t0(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(t0(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}var Iut="1.2.0",Mut="1.7.35",gQ=" ext. ",Dut=/^\d+$/,bi=(function(){function t(e){S3(this,t),_ye(e),this.metadata=e,wye.call(this,e)}return C3(t,[{key:"getCountries",value:function(){return Object.keys(this.metadata.countries).filter(function(n){return n!=="001"})}},{key:"getCountryMetadata",value:function(n){return this.metadata.countries[n]}},{key:"nonGeographic",value:function(){if(!(this.v1||this.v2||this.v3))return this.metadata.nonGeographic||this.metadata.nonGeographical}},{key:"hasCountry",value:function(n){return this.getCountryMetadata(n)!==void 0}},{key:"hasCallingCode",value:function(n){if(this.getCountryCodesForCallingCode(n))return!0;
vendor: 10,801 bytes, lines 146-147
146if(this.nonGeographic()){if(this.nonGeographic()[n])return!0}else{var r=this.countryCallingCodes()[n];if(r&&r.length===1&&r[0]==="001")return!0}}},{key:"isNonGeographicCallingCode",value:function(n){return this.nonGeographic()?!!this.nonGeographic()[n]:!this.getCountryCodesForCallingCode(n)}},{key:"country",value:function(n){return this.selectNumberingPlan(n)}},{key:"selectNumberingPlan",value:function(n,r){if(n&&Dut.test(n)&&(r=n,n=null),n&&n!=="001"){if(!this.hasCountry(n))throw new Error("Unknown country: ".concat(n));this.numberingPlan=new yQ(this.getCountryMetadata(n),this)}else if(r){if(!this.hasCallingCode(r))throw new Error("Unknown calling code: ".concat(r));this.numberingPlan=new yQ(this.getNumberingPlanMetadata(r),this)}else this.numberingPlan=void 0;return this}},{key:"getCountryCodesForCallingCode",value:function(n){var r=this.countryCallingCodes()[n];if(r)return r.length===1&&r[0].length===3?void 0:r}},{key:"getCountryCodeForCallingCode",value:function(n){var r=this.getCountryCodesForCallingCode(n);if(r)return r[0]}},{key:"getNumberingPlanMetadata",value:function(n){var r=this.getCountryCodeForCallingCode(n);if(r)return this.getCountryMetadata(r);if(this.nonGeographic()){var i=this.nonGeographic()[n];if(i)return i}else{var s=this.countryCallingCodes()[n];if(s&&s.length===1&&s[0]==="001")return this.metadata.countries["001"]}}},{key:"countryCallingCode",value:function(){return this.numberingPlan.callingCode()}},{key:"IDDPrefix",value:function(){return this.numberingPlan.IDDPrefix()}},{key:"defaultIDDPrefix",value:function(){return this.numberingPlan.defaultIDDPrefix()}},{key:"nationalNumberPattern",value:function(){return this.numberingPlan.nationalNumberPattern()}},{key:"possibleLengths",value:function(){return this.numberingPlan.possibleLengths()}},{key:"formats",value:function(){return this.numberingPlan.formats()}},{key:"nationalPrefixForParsing",value:function(){return this.numberingPlan.nationalPrefixForParsing()}},{key:"nationalPrefixTransformRule",value:function(){return this.numberingPlan.nationalPrefixTransformRule()}},{key:"leadingDigits",value:function(){return this.numberingPlan.leadingDigits()}},{key:"hasTypes",value:function(){return this.numberingPlan.hasTypes()}},{key:"type",value:function(n){return this.numberingPlan.type(n)}},{key:"ext",value:function(){return this.numberingPlan.ext()}},{key:"countryCallingCodes",value:function(){return this.v1?this.metadata.country_phone_code_to_countries:this.metadata.country_calling_codes}},{key:"chooseCountryByCountryCallingCode",value:function(n){return this.selectNumberingPlan(n)}},{key:"hasSelectedNumberingPlan",value:function(){return this.numberingPlan!==void 0}}])})(),yQ=(function(){function t(e,n){S3(this,t),this.globalMetadataObject=n,this.metadata=e,wye.call(this,n.metadata)}return C3(t,[{key:"callingCode",value:function(){return this.metadata[0]}},{key:"getDefaultCountryMetadataForRegion",value:function(){return this.globalMetadataObject.getNumberingPlanMetadata(this.callingCode())}},{key:"IDDPrefix",value:function(){if(!(this.v1||this.v2))return this.metadata[1]}},{key:"defaultIDDPrefix",value:function(){if(!(this.v1||this.v2))return this.metadata[12]}},{key:"nationalNumberPattern",value:function(){return this.v1||this.v2?this.metadata[1]:this.metadata[2]}},{key:"possibleLengths",value:function(){if(!this.v1)return this.metadata[this.v2?2:3]}},{key:"_getFormats",value:function(n){return n[this.v1?2:this.v2?3:4]}},{key:"formats",value:function(){var n=this,r=this._getFormats(this.metadata)||this._getFormats(this.getDefaultCountryMetadataForRegion())||[];return r.map(function(i){return new Put(i,n)})}},{key:"nationalPrefix",value:function(){return this.metadata[this.v1?3:this.v2?4:5]}},{key:"_getNationalPrefixFormattingRule",value:function(n){return n[this.v1?4:this.v2?5:6]}},{key:"nationalPrefixFormattingRule",value:function(){return this._getNationalPrefixFormattingRule(this.metadata)||this._getNationalPrefixFormattingRule(this.getDefaultCountryMetadataForRegion())}},{key:"_nationalPrefixForParsing",value:function(){return this.metadata[this.v1?5:this.v2?6:7]}},{key:"nationalPrefixForParsing",value:function(){return this._nationalPrefixForParsing()||this.nationalPrefix()}},{key:"nationalPrefixTransformRule",value:function(){return this.metadata[this.v1?6:this.v2?7:8]}},{key:"_getNationalPrefixIsOptionalWhenFormatting",value:function(){return!!this.metadata[this.v1?7:this.v2?8:9]}},{key:"nationalPrefixIsOptionalWhenFormattingInNationalFormat",value:function(){return this._getNationalPrefixIsOptionalWhenFormatting(this.metadata)||this._getNationalPrefixIsOptionalWhenFormatting(this.getDefaultCountryMetadataForRegion())}},{key:"leadingDigits",value:function(){return this.metadata[this.v1?8:this.v2?9:10]}},{key:"types",value:function(){return this.metadata[this.v1?9:this.v2?10:11]}},{key:"hasTypes",value:function(){return this.types()&&this.types().length===0?!1:!!this.types()}},{key:"type",value:function(n){if(this.hasTypes()&&bQ(this.types(),n))return new $ut(bQ(this.types(),n),this)}},{key:"ext",value:function(){return this.v1||this.v2?gQ:this.metadata[13]||gQ}}])})(),Put=(function(){function t(e,n){S3(this,t),this._format=e,this.metadata=n}return C3(t,[{key:"pattern",value:function(){return this._format[0]}},{key:"format",value:function(){return this._format[1]}},{key:"leadingDigitsPatterns",value:function(){return this._format[2]||[]}},{key:"nationalPrefixFormattingRule",value:function(){return this._format[3]||this.metadata.nationalPrefixFormattingRule()}},{key:"nationalPrefixIsOptionalWhenFormattingInNationalFormat",value:function(){return!!this._format[4]||this.metadata.nationalPrefixIsOptionalWhenFormattingInNationalFormat()}},{key:"nationalPrefixIsMandatoryWhenFormattingInNationalFormat",value:function(){return this.usesNationalPrefix()&&!this.nationalPrefixIsOptionalWhenFormattingInNationalFormat()}},{key:"usesNationalPrefix",value:function(){return!!(this.nationalPrefixFormattingRule()&&!Lut.test(this.nationalPrefixFormattingRule()))}},{key:"internationalFormat",value:function(){return this._format[5]||this.format()}}])})(),Lut=/^\(?\$1\)?$/,$ut=(function(){function t(e,n){S3(this,t),this.type=e,this.metadata=n}return C3(t,[{key:"pattern",value:function(){return this.metadata.v1?this.type:this.type[0]}},{key:"possibleLengths",value:function(){if(!this.metadata.v1)return this.type[1]||this.metadata.possibleLengths()}}])})();function bQ(t,e){switch(e){case"FIXED_LINE":return t[0];case"MOBILE":return t[1];case"TOLL_FREE":return t[2];case"PREMIUM_RATE":return t[3];case"PERSONAL_NUMBER":return t[4];case"VOICEMAIL":return t[5];case"UAN":return t[6];case"PAGER":return t[7];case"VOIP":return t[8];case"SHARED_COST":return t[9]}}function _ye(t){if(!t)throw new Error("[libphonenumber-js] `metadata` argument not passed. Check your arguments.");if(!Mh(t)||!Mh(t.countries))throw new Error("[libphonenumber-js] `metadata` argument was passed but it's not a valid metadata. Must be an object having `.countries` child object property. Got ".concat(Mh(t)?"an object of shape: { "+Object.keys(t).join(", ")+" }":"a "+Fut(t)+": "+t,"."))}var Fut=function(e){return t0(e)};function Cf(t,e){if(e=new bi(e),e.hasCountry(t))return e.selectNumberingPlan(t).countryCallingCode();throw new Error("Unknown country: ".concat(t))}function xye(t,e){return e.countries.hasOwnProperty(t)}function wye(t){var e=t.version;typeof e=="number"?(this.v1=e===1,this.v2=e===2,this.v3=e===3,this.v4=e===4):e?mQ(e,Iut)===-1?this.v2=!0:mQ(e,Mut)===-1?this.v3=!0:this.v4=!0:this.v1=!0}function T3(t,e,n){return But(t,e,void 0,n)}function But(t,e,n,r){e&&(r=new bi(r.metadata),r.selectNumberingPlan(e));var i=r.type(n),s=i&&i.possibleLengths()||r.possibleLengths();if(!s)return"IS_POSSIBLE";var a=t.length,o=s[0];return o===a?"IS_POSSIBLE":o>a?"TOO_SHORT":s[s.length-1]<a?"TOO_LONG":s.indexOf(a,1)>=0?"IS_POSSIBLE":"INVALID_LENGTH"}function Hut(t,e,n){if(e===void 0&&(e={}),n=new bi(n),e.v2){if(!t.countryCallingCode)throw new Error("Invalid phone number object passed");n.selectNumberingPlan(t.countryCallingCode)}else{if(!t.phone)return!1;if(t.country){if(!n.hasCountry(t.country))throw new Error("Unknown country: ".concat(t.country));n.selectNumberingPlan(t.country)}else{if(!t.countryCallingCode)throw new Error("Invalid phone number object passed");n.selectNumberingPlan(t.countryCallingCode)}}if(n.possibleLengths())return Sye(t.phone||t.nationalNumber,t.country,n);if(t.countryCallingCode&&n.isNonGeographicCallingCode(t.countryCallingCode))return!0;throw new Error('Missing "possibleLengths" in metadata. Perhaps the metadata has been generated before v1.0.18.')}function Sye(t,e,n){return T3(t,e,n)==="IS_POSSIBLE"}function Lc(t,e){return t=t||"",new RegExp("^(?:"+e+")$").test(t)}function Uut(t,e){var n=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n)return(n=n.call(t)).next.bind(n);if(Array.isArray(t)||(n=jut(t))||e){n&&(t=n);var r=0;return function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. 147In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function jut(t,e){if(t){if(typeof t=="string")return vQ(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?vQ(t,e):void 0}}function vQ(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}var zut=["MOBILE","PREMIUM_RATE","TOLL_FREE","SHARED_COST","VOIP","PERSONAL_NUMBER","PAGER","UAN","VOICEMAIL"];function TF(t,e,n){if(e=e||{},!(!t.country&&!t.countryCallingCode)){n=new bi(n),n.selectNumberingPlan(t.country,t.countryCallingCode);var r=e.v2?t.nationalNumber:t.phone;if(Lc(r,n.nationalNumberPattern())){if(L4(r,"FIXED_LINE",n))return n.type("MOBILE")&&n.type("MOBILE").pattern()===""||!n.type("MOBILE")||L4(r,"MOBILE",n)?"FIXED_LINE_OR_MOBILE":"FIXED_LINE";for(var i=Uut(zut),s;!(s=i()).done;){var a=s.value;if(L4(r,a,n))return a}}}}function L4(t,e,n){return e=n.type(e),!e||!e.pattern()||e.possibleLengths()&&e.possibleLengths().indexOf(t.length)<0?!1:Lc(t,e.pattern())}function Vut(t,e,n){if(e=e||{},n=new bi(n),n.selectNumberingPlan(t.country,t.countryCallingCode),n.hasTypes())return TF(t,e,n.metadata)!==void 0;var r=e.v2?t.nationalNumber:t.phone;return Lc(r,n.nationalNumberPattern())}function qut(t,e,n){var r=new bi(n),i=r.getCountryCodesForCallingCode(t);return i?i.filter(function(s){return Gut(e,s,n)}):[]}function Gut(t,e,n){var r=new bi(n);return r.selectNumberingPlan(e),r.numberingPlan.possibleLengths().indexOf(t.length)>=0}var AF=2,Wut=17,Yut=3,Ps="0-9ï¼-ï¼Ù -Ù©Û°-Û¹",Kut="-â-ââã¼ï¼",Xut="ï¼/",Qut="ï¼.",Zut="  Ââ
147â ã",Jut="()ï¼ï¼ï¼»ï¼½\\[\\]",ect="~ââ¼ï½",al="".concat(Kut).concat(Xut).concat(Qut).concat(Zut).concat(Jut).concat(ect),A3="+ï¼",tct=new RegExp("(["+Ps+"])");function Cye(t,e,n,r){if(e){var i=new bi(r);i.selectNumberingPlan(e,n);var s=new RegExp(i.IDDPrefix());if(t.search(s)===0){t=t.slice(t.match(s)[0].length);var a=t.match(tct);if(!(a&&a[1]!=null&&a[1].length>0&&a[1]==="0"))return t}}}function a9(t,e){if(t&&e.numberingPlan.nationalPrefixForParsing()){var n=new RegExp("^(?:"+e.numberingPlan.nationalPrefixForParsing()+")"),r=n.exec(t);if(r){var i,s,a=r.length-1,o=a>0&&r[a];if(e.nationalPrefixTransformRule()&&o)i=t.replace(n,e.nationalPrefixTransformRule()),a>1&&(s=r[1]);else{var l=r[0];i=t.slice(l.length),o&&(s=r[1])}var u;if(o){var c=t.indexOf(r[1]),d=t.slice(0,c);d===e.numberingPlan.nationalPrefix()&&(u=e.numberingPlan.nationalPrefix())}else u=r[0];return{nationalNumber:i,nationalPrefix:u,carrierCode:s}}}return{nationalNumber:t}}function nct(t,e){var n=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n)return(n=n.call(t)).next.bind(n);if(Array.isArray(t)||(n=rct(t))||e){n&&(t=n);var r=0;return function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. 148In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function rct(t,e){if(t){if(typeof t=="string")return EQ(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?EQ(t,e):void 0}}function EQ(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function Tye(t,e){var n=e.countries,r=e.metadata;r=new bi(r);for(var i=nct(n),s;!(s=i()).done;){var a=s.value;if(r.selectNumberingPlan(a),r.leadingDigits()){if(t&&t.search(r.leadingDigits())===0)return a}else if(TF({phone:t,country:a},void 0,r.metadata))return a}}function RF(t,e){var n=e.nationalNumber,r=e.metadata,i=r.getCountryCodesForCallingCode(t);if(i)return i.length===1?i[0]:Tye(n,{countries:i,metadata:r.metadata})}function o9(t,e,n){var r=a9(t,n),i=r.carrierCode,s=r.nationalNumber;if(s!==t){if(!ict(t,s,n))return{nationalNumber:t};if(n.numberingPlan.possibleLengths()&&(e||(e=RF(n.numberingPlan.callingCode(),{nationalNumber:s,metadata:n})),!sct(s,e,n)))return{nationalNumber:t}}return{nationalNumber:s,carrierCode:i}}function ict(t,e,n){return!(Lc(t,n.nationalNumberPattern())&&!Lc(e,n.nationalNumberPattern()))}function sct(t,e,n){switch(T3(t,e,n)){case"TOO_SHORT":case"INVALID_LENGTH":return!1;default:return!0}}function Aye(t,e,n,r,i){var s=e||n?Cf(e||n,i):r;if(t.indexOf(s)===0){i=new bi(i),i.selectNumberingPlan(e||n,s);var a=t.slice(s.length),o=o9(a,e,i),l=o.nationalNumber,u=o9(t,e,i),c=u.nationalNumber;if(!Lc(c,i.nationalNumberPattern())&&Lc(l,i.nationalNumberPattern())||T3(c,e,i)==="TOO_LONG")return{countryCallingCode:s,number:a}}return{number:t}}function NF(t,e,n,r,i){if(!t)return{};var s;if(t[0]!=="+"){var a=Cye(t,e||n,r,i);if(a&&a!==t)s=!0,t="+"+a;else{if(e||n||r){var o=Aye(t,e,n,r,i),l=o.countryCallingCode,u=o.number;if(l)return{countryCallingCodeSource:"FROM_NUMBER_WITHOUT_PLUS_SIGN",countryCallingCode:l,number:u}}return{number:t}}}if(t[1]==="0")return{};i=new bi(i);for(var c=2;c-1<=Yut&&c<=t.length;){var d=t.slice(1,c);if(i.hasCallingCode(d))return i.selectNumberingPlan(d),{countryCallingCodeSource:s?"FROM_NUMBER_WITH_IDD":"FROM_NUMBER_WITH_PLUS_SIGN",countryCallingCode:d,number:t.slice(c)};c++}return{}}function Rye(t){return t.replace(new RegExp("[".concat(al,"]+"),"g")," ").trim()}var Nye=/(\$\d)/;function Oye(t,e,n){var r=n.useInternationalFormat,i=n.withNationalPrefix;n.carrierCode,n.metadata;var s=t.replace(new RegExp(e.pattern()),r?e.internationalFormat():i&&e.nationalPrefixFormattingRule()?e.format().replace(Nye,e.nationalPrefixFormattingRule()):e.format());return r?Rye(s):s}var act=/^[\d]+(?:[~\u2053\u223C\uFF5E][\d]+)?$/;function oct(t,e,n){var r=new bi(n);if(r.selectNumberingPlan(t,e),r.defaultIDDPrefix())return r.defaultIDDPrefix();if(act.test(r.IDDPrefix()))return r.IDDPrefix()}var lct=";ext=",jm=function(e){return"([".concat(Ps,"]{1,").concat(e,"})")};function kye(t){var e="20",n="15",r="9",i="6",s="[  \\t,]*",a="[:\\.ï¼]?[  \\t,-]*",o="#?",l="(?:e?xt(?:ensi(?:oÌ?|ó))?n?|ï½ ?ï½ï½ï½?|доб|anexo)",u="(?:[xï½#ï¼~ï½]|int|ï½ï½ï½)",c="[- ]+",d="[  \\t]*",h="(?:,{2}|;)",m=lct+jm(e),g=s+l+a+jm(e)+o,b=s+u+a+jm(r)+o,v=c+jm(i)+"#",E=d+h+a+jm(n)+o,x=d+"(?:,)+"+a+jm(r)+o;return m+"|"+g+"|"+b+"|"+v+"|"+E+"|"+x}var uct="["+Ps+"]{"+AF+"}",cct="["+A3+"]{0,1}(?:["+al+"]*["+Ps+"]){3,}["+al+Ps+"]*",dct=new RegExp("^["+A3+"]{0,1}(?:["+al+"]*["+Ps+"]){1,2}$","i"),fct=cct+"(?:"+kye()+")?",hct=new RegExp("^"+uct+"$|^"+fct+"$","i");function pct(t){return t.length>=AF&&hct.test(t)}function mct(t){return dct.test(t)}function gct(t){var e=t.number,n=t.ext;if(!e)return"";if(e[0]!=="+")throw new Error('"formatRFC3966()" expects "number" to be in E.164 format.');return"tel:".concat(e).concat(n?";ext="+n:"")}var _Q={formatExtension:function(e,n,r){return"".concat(e).concat(r.ext()).concat(n)}};function yct(t,e,n,r){if(n?n=Ect({},_Q,n):n=_Q,r=new bi(r),t.country&&t.country!=="001"){if(!r.hasCountry(t.country))throw new Error("Unknown country: ".concat(t.country));r.selectNumberingPlan(t.country)}else if(t.countryCallingCode)r.selectNumberingPlan(t.countryCallingCode);else return t.phone||"";var i=r.countryCallingCode(),s=n.v2?t.nationalNumber:t.phone,a;switch(e){case"NATIONAL":return s?(a=JS(s,t.carrierCode,"NATIONAL",r,n),$4(a,t.ext,r,n.formatExtension)):"";case"INTERNATIONAL":return s?(a=JS(s,null,"INTERNATIONAL",r,n),a="+".concat(i," ").concat(a),$4(a,t.ext,r,n.formatExtension)):"+".concat(i);
vendor: 48,654 bytes, lines 148-158
148case"E.164":return"+".concat(i).concat(s);case"RFC3966":return gct({number:"+".concat(i).concat(s),ext:t.ext});case"IDD":if(!n.fromCountry)return;var o=vct(s,t.carrierCode,i,n.fromCountry,r);return o?$4(o,t.ext,r,n.formatExtension):void 0;default:throw new Error('Unknown "format" argument passed to "formatNumber()": "'.concat(e,'"'))}}function JS(t,e,n,r,i){var s=bct(r.formats(),t);return s?Oye(t,s,{useInternationalFormat:n==="INTERNATIONAL",withNationalPrefix:!(s.nationalPrefixIsOptionalWhenFormattingInNationalFormat()&&i&&i.nationalPrefix===!1),carrierCode:e,metadata:r}):t}function bct(t,e){return _ct(t,function(n){if(n.leadingDigitsPatterns().length>0){var r=n.leadingDigitsPatterns()[n.leadingDigitsPatterns().length-1];if(e.search(r)!==0)return!1}return Lc(e,n.pattern())})}function $4(t,e,n,r){return e?r(t,e,n):t}function vct(t,e,n,r,i){var s=Cf(r,i.metadata);if(s===n){var a=JS(t,e,"NATIONAL",i);return n==="1"?n+" "+a:a}var o=oct(r,void 0,i.metadata);if(o)return"".concat(o," ").concat(n," ").concat(JS(t,null,"INTERNATIONAL",i))}function Ect(){for(var t=1,e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];for(;t<n.length;){if(n[t])for(var i in n[t])n[0][i]=n[t][i];t++}return n[0]}function _ct(t,e){for(var n=0;n<t.length;){if(e(t[n]))return t[n];n++}}function uv(t){"@babel/helpers - typeof";return uv=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},uv(t)}function xQ(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function wQ(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?xQ(Object(n),!0).forEach(function(r){xct(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):xQ(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function xct(t,e,n){return(e=Iye(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function wct(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Sct(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,Iye(r.key),r)}}function Cct(t,e,n){return e&&Sct(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function Iye(t){var e=Tct(t,"string");return uv(e)=="symbol"?e:e+""}function Tct(t,e){if(uv(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(uv(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}var OF=(function(){function t(e,n,r){if(wct(this,t),!e)throw new TypeError("First argument is required");if(typeof e!="string")throw new TypeError("First argument must be a string");if(e[0]==="+"&&!n)throw new TypeError("`metadata` argument not passed");if(Mh(n)&&Mh(n.countries)){r=n;var i=e;if(!Nct.test(i))throw new Error('Invalid `number` argument passed: must consist of a "+" followed by digits');var s=NF(i,void 0,void 0,void 0,r),a=s.countryCallingCode,o=s.number;if(n=o,e=a,!n)throw new Error("Invalid `number` argument passed: too short")}if(!n)throw new TypeError("`nationalNumber` argument is required");if(typeof n!="string")throw new TypeError("`nationalNumber` argument must be a string");_ye(r);var l=Rct(e,r),u=l.country,c=l.countryCallingCode;this.country=u,this.countryCallingCode=c,this.nationalNumber=n,this.number="+"+this.countryCallingCode+this.nationalNumber,this.getMetadata=function(){return r}}return Cct(t,[{key:"setExt",value:function(n){this.ext=n}},{key:"getPossibleCountries",value:function(){return this.country?[this.country]:qut(this.countryCallingCode,this.nationalNumber,this.getMetadata())}},{key:"isPossible",value:function(){return Hut(this,{v2:!0},this.getMetadata())}},{key:"isValid",value:function(){return Vut(this,{v2:!0},this.getMetadata())}},{key:"isNonGeographic",value:function(){var n=new bi(this.getMetadata());return n.isNonGeographicCallingCode(this.countryCallingCode)}},{key:"isEqual",value:function(n){return this.number===n.number&&this.ext===n.ext}},{key:"getType",value:function(){return TF(this,{v2:!0},this.getMetadata())}},{key:"format",value:function(n,r){return yct(this,n,r?wQ(wQ({},r),{},{v2:!0}):{v2:!0},this.getMetadata())}},{key:"formatNational",value:function(n){return this.format("NATIONAL",n)}},{key:"formatInternational",value:function(n){return this.format("INTERNATIONAL",n)}},{key:"getURI",value:function(n){return this.format("RFC3966",n)}}])})(),Act=function(e){return/^[A-Z]{2}$/.test(e)};function Rct(t,e){var n,r,i=new bi(e);return Act(t)?(n=t,i.selectNumberingPlan(n),r=i.countryCallingCode()):r=t,{country:n,countryCallingCode:r}}var Nct=/^\+\d+$/;function l9(t){"@babel/helpers - typeof";return l9=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l9(t)}function Oct(t,e,n){return Object.defineProperty(t,"prototype",{writable:!1}),t}function kct(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Ict(t,e,n){return e=dv(e),Mct(t,kF()?Reflect.construct(e,n||[],dv(t).constructor):e.apply(t,n))}function Mct(t,e){if(e&&(l9(e)=="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Dct(t)}function Dct(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Pct(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&cv(t,e)}function u9(t){var e=typeof Map=="function"?new Map:void 0;return u9=function(r){if(r===null||!$ct(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(e!==void 0){if(e.has(r))return e.get(r);e.set(r,i)}function i(){return Lct(r,arguments,dv(this).constructor)}return i.prototype=Object.create(r.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),cv(i,r)},u9(t)}function Lct(t,e,n){if(kF())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,e);var i=new(t.bind.apply(t,r));return n&&cv(i,n.prototype),i}function kF(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(kF=function(){return!!t})()}function $ct(t){try{return Function.toString.call(t).indexOf("[native code]")!==-1}catch{return typeof t=="function"}}function cv(t,e){return cv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},cv(t,e)}function dv(t){return dv=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},dv(t)}var hc=(function(t){function e(n){var r;return kct(this,e),r=Ict(this,e,[n]),Object.setPrototypeOf(r,e.prototype),r.name=r.constructor.name,r}return Pct(e,t),Oct(e)})(u9(Error)),SQ=new RegExp("(?:"+kye()+")$","i");function Fct(t){var e=t.search(SQ);if(e<0)return{};for(var n=t.slice(0,e),r=t.match(SQ),i=1;i<r.length;){if(r[i])return{number:n,ext:r[i]};i++}}function Bct(t,e){var n=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n)return(n=n.call(t)).next.bind(n);if(Array.isArray(t)||(n=Hct(t))||e){n&&(t=n);var r=0;return function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. 149In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Hct(t,e){if(t){if(typeof t=="string")return CQ(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?CQ(t,e):void 0}}function CQ(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}var Uct={0:"0",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9","ï¼":"0","ï¼":"1","ï¼":"2","ï¼":"3","ï¼":"4","ï¼":"5","ï¼":"6","ï¼":"7","ï¼":"8","ï¼":"9","Ù ":"0","Ù¡":"1","Ù¢":"2","Ù£":"3","Ù¤":"4","Ù¥":"5","Ù¦":"6","Ù§":"7","Ù¨":"8","Ù©":"9","Û°":"0","Û±":"1","Û²":"2","Û³":"3","Û´":"4","Ûµ":"5","Û¶":"6","Û·":"7","Û¸":"8","Û¹":"9"};function Mye(t){return Uct[t]}function eC(t){for(var e="",n=Bct(t.split("")),r;!(r=n()).done;){var i=r.value,s=Mye(i);s&&(e+=s)}return e}function jct(t,e){var n=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n)return(n=n.call(t)).next.bind(n);if(Array.isArray(t)||(n=zct(t))||e){n&&(t=n);var r=0;return function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. 150In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function zct(t,e){if(t){if(typeof t=="string")return TQ(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?TQ(t,e):void 0}}function TQ(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function c9(t){for(var e="",n=jct(t.split("")),r;!(r=n()).done;){var i=r.value;e+=Dye(i,e)||""}return e}function Dye(t,e,n){if(t==="+"){if(e){typeof n=="function"&&n("end");return}return"+"}return Mye(t)}var Pye="+",Vct="[\\-\\.\\(\\)]?",AQ="(["+Ps+"]|"+Vct+")",qct="^\\"+Pye+AQ+"*["+Ps+"]"+AQ+"*$",Gct=new RegExp(qct,"g"),d9=Ps,Wct="["+d9+"]+((\\-)*["+d9+"])*",Yct="a-zA-Z",Kct="["+Yct+"]+((\\-)*["+d9+"])*",Xct="^("+Wct+"\\.)*"+Kct+"\\.?$",Qct=new RegExp(Xct,"g"),RQ="tel:",f9=";phone-context=",Zct=";isub=";function Jct(t){var e=t.indexOf(f9);if(e<0)return null;var n=e+f9.length;if(n>=t.length)return"";var r=t.indexOf(";",n);return r>=0?t.substring(n,r):t.substring(n)}function edt(t){return t===null?!0:t.length===0?!1:Gct.test(t)||Qct.test(t)}function tdt(t,e){var n=e.extractFormattedPhoneNumber,r=Jct(t);if(!edt(r))throw new hc("NOT_A_NUMBER");var i;if(r===null)i=n(t)||"";else{i="",r.charAt(0)===Pye&&(i+=r);var s=t.indexOf(RQ),a;s>=0?a=s+RQ.length:a=0;var o=t.indexOf(f9);i+=t.substring(a,o)}var l=i.indexOf(Zct);if(l>0&&(i=i.substring(0,l)),i!=="")return i}var ndt=250,rdt=new RegExp("["+A3+Ps+"]"),idt=new RegExp("[^"+Ps+"#]+$");function sdt(t,e,n){if(e=e||{},n=new bi(n),e.defaultCountry&&!n.hasCountry(e.defaultCountry))throw e.v2?new hc("INVALID_COUNTRY"):new Error("Unknown country: ".concat(e.defaultCountry));var r=odt(t,e.v2,e.extract),i=r.number,s=r.ext,a=r.error;if(!i){if(e.v2)throw a==="TOO_SHORT"?new hc("TOO_SHORT"):new hc("NOT_A_NUMBER");return{}}var o=udt(i,e.defaultCountry,e.defaultCallingCode,n),l=o.country,u=o.nationalNumber,c=o.countryCallingCode,d=o.countryCallingCodeSource,h=o.carrierCode;if(!n.hasSelectedNumberingPlan()){if(e.v2)throw new hc("INVALID_COUNTRY");return{}}if(!u||u.length<AF){if(e.v2)throw new hc("TOO_SHORT");return{}}if(u.length>Wut){if(e.v2)throw new hc("TOO_LONG");return{}}if(e.v2){var m=new OF(c,u,n.metadata);return l&&(m.country=l),h&&(m.carrierCode=h),s&&(m.ext=s),m.__countryCallingCodeSource=d,m}var g=(e.extended?n.hasSelectedNumberingPlan():l)?Lc(u,n.nationalNumberPattern()):!1;return e.extended?{country:l,countryCallingCode:c,carrierCode:h,valid:g,possible:g?!0:!!(e.extended===!0&&n.possibleLengths()&&Sye(u,l,n)),phone:u,ext:s}:g?ldt(l,u,s):{}}function adt(t,e,n){if(t){if(t.length>ndt){if(n)throw new hc("TOO_LONG");return}if(e===!1)return t;var r=t.search(rdt);if(!(r<0))return t.slice(r).replace(idt,"")}}function odt(t,e,n){var r=tdt(t,{extractFormattedPhoneNumber:function(a){return adt(a,n,e)}});if(!r)return{};if(!pct(r))return mct(r)?{error:"TOO_SHORT"}:{};var i=Fct(r);return i.ext?i:{number:r}}function ldt(t,e,n){var r={country:t,phone:e};return n&&(r.ext=n),r}function udt(t,e,n,r){var i=NF(c9(t),void 0,e,n,r.metadata),s=i.countryCallingCodeSource,a=i.countryCallingCode,o=i.number,l;if(a)r.selectNumberingPlan(a);else if(o&&(e||n))r.selectNumberingPlan(e,n),e&&(l=e),a=n||Cf(e,r.metadata);else return{};if(!o)return{countryCallingCodeSource:s,countryCallingCode:a};var u=o9(c9(o),l,r),c=u.nationalNumber,d=u.carrierCode,h=RF(a,{nationalNumber:c,metadata:r});return h&&(l=h,h==="001"||r.selectNumberingPlan(l)),{country:l,countryCallingCode:a,countryCallingCodeSource:s,nationalNumber:c,carrierCode:d}}function fv(t){"@babel/helpers - typeof";return fv=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},fv(t)}function NQ(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function OQ(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?NQ(Object(n),!0).forEach(function(r){cdt(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):NQ(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function cdt(t,e,n){return(e=ddt(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function ddt(t){var e=fdt(t,"string");return fv(e)=="symbol"?e:e+""}function fdt(t,e){if(fv(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(fv(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function hdt(t,e,n){return sdt(t,OQ(OQ({},e),{},{v2:!0}),n)}function hv(t){"@babel/helpers - typeof";return hv=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},hv(t)}function kQ(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function pdt(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?kQ(Object(n),!0).forEach(function(r){mdt(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):kQ(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function mdt(t,e,n){return(e=gdt(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function gdt(t){var e=ydt(t,"string");return hv(e)=="symbol"?e:e+""}function ydt(t,e){if(hv(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(hv(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function bdt(t,e){return xdt(t)||_dt(t,e)||Edt(t,e)||vdt()}function vdt(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 151In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Edt(t,e){if(t){if(typeof t=="string")return IQ(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?IQ(t,e):void 0}}function IQ(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function _dt(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,i,s,a,o=[],l=!0,u=!1;try{if(s=(n=n.call(t)).next,e!==0)for(;!(l=(r=s.call(n)).done)&&(o.push(r.value),o.length!==e);l=!0);}catch(c){u=!0,i=c}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return o}}function xdt(t){if(Array.isArray(t))return t}function Lye(t){var e=Array.prototype.slice.call(t),n=bdt(e,4),r=n[0],i=n[1],s=n[2],a=n[3],o,l,u;if(typeof r=="string")o=r;else throw new TypeError("A text for parsing must be a string.");if(!i||typeof i=="string")a?(l=s,u=a):(l=void 0,u=s),i&&(l=pdt({defaultCountry:i},l));else if(Mh(i))s?(l=i,u=s):u=i;else throw new Error("Invalid second argument: ".concat(i));return{text:o,options:l,metadata:u}}function pv(t){"@babel/helpers - typeof";return pv=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},pv(t)}function MQ(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function DQ(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?MQ(Object(n),!0).forEach(function(r){wdt(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):MQ(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function wdt(t,e,n){return(e=Sdt(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Sdt(t){var e=Cdt(t,"string");return pv(e)=="symbol"?e:e+""}function Cdt(t,e){if(pv(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(pv(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function $ye(t,e,n){e&&e.defaultCountry&&!xye(e.defaultCountry,n)&&(e=DQ(DQ({},e),{},{defaultCountry:void 0}));try{return hdt(t,e,n)}catch(r){if(!(r instanceof hc))throw r}}function Fye(){var t=Lye(arguments),e=t.text,n=t.options,r=t.metadata;return $ye(e,n,r)}function mv(t){"@babel/helpers - typeof";return mv=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},mv(t)}function PQ(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function LQ(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?PQ(Object(n),!0).forEach(function(r){Tdt(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):PQ(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function Tdt(t,e,n){return(e=Adt(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Adt(t){var e=Rdt(t,"string");return mv(e)=="symbol"?e:e+""}function Rdt(t,e){if(mv(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(mv(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Ndt(){var t=Lye(arguments),e=t.text,n=t.options,r=t.metadata;n=LQ(LQ({},n),{},{extract:!1});var i=$ye(e,n,r);return i&&i.isValid()||!1}function gv(t){"@babel/helpers - typeof";return gv=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},gv(t)}function Odt(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function kdt(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,Mdt(r.key),r)}}function Idt(t,e,n){return e&&kdt(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function Mdt(t){var e=Ddt(t,"string");return gv(e)=="symbol"?e:e+""}function Ddt(t,e){if(gv(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(gv(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}var Pdt=(function(){function t(e){var n=e.onCountryChange,r=e.onCallingCodeChange;Odt(this,t),this.onCountryChange=n,this.onCallingCodeChange=r}return Idt(t,[{key:"reset",value:function(n){var r=n.country,i=n.callingCode;this.international=!1,this.missingPlus=!1,this.IDDPrefix=void 0,this.callingCode=void 0,this.digits="",this.resetNationalSignificantNumber(),this.initCountryAndCallingCode(r,i)}},{key:"resetNationalSignificantNumber",value:function(){this.nationalSignificantNumber=this.getNationalDigits(),this.nationalSignificantNumberIsModified=!1,this.nationalPrefix=void 0,this.carrierCode=void 0,this.prefixBeforeNationalSignificantNumberThatIsNotNationalPrefix=void 0}},{key:"update",value:function(n){for(var r=0,i=Object.keys(n);r<i.length;r++){var s=i[r];this[s]=n[s]}}},{key:"initCountryAndCallingCode",value:function(n,r){this.setCountry(n),this.setCallingCode(r)}},{key:"setCountry",value:function(n){this.country=n,this.onCountryChange(n)}},{key:"setCallingCode",value:function(n){this.callingCode=n,this.onCallingCodeChange(n,this.country)}},{key:"startInternationalNumber",value:function(n,r){this.international=!0,this.initCountryAndCallingCode(n,r)}},{key:"appendDigits",value:function(n){this.digits+=n}},{key:"appendNationalSignificantNumberDigits",value:function(n){this.nationalSignificantNumber+=n}},{key:"getNationalDigits",value:function(){return this.international?this.digits.slice((this.IDDPrefix?this.IDDPrefix.length:0)+(this.callingCode?this.callingCode.length:0)):this.digits}},{key:"getDigitsWithoutInternationalPrefix",value:function(){return this.international&&this.IDDPrefix?this.digits.slice(this.IDDPrefix.length):this.digits}}])})();function Ldt(t,e){var n=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n)return(n=n.call(t)).next.bind(n);if(Array.isArray(t)||(n=$dt(t))||e){n&&(t=n);var r=0;return function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. 152In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function $dt(t,e){if(t){if(typeof t=="string")return $Q(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?$Q(t,e):void 0}}function $Q(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}var qo="x",F4=new RegExp(qo);function Hw(t,e){if(e<1)return"";for(var n="";e>1;)e&1&&(n+=t),e>>=1,t+=t;return n+t}function FQ(t,e){return t[e]===")"&&e++,Fdt(t.slice(0,e))}function Fdt(t){for(var e=[],n=0;n<t.length;)t[n]==="("?e.push(n):t[n]===")"&&e.pop(),n++;var r=0,i="";e.push(t.length);for(var s=0,a=e;s<a.length;s++){var o=a[s];i+=t.slice(r,o),r=o+1}return i}function Bdt(t,e,n){for(var r=Ldt(n.split("")),i;!(i=r()).done;){var s=i.value;if(t.slice(e+1).search(F4)<0)return;e=t.search(F4),t=t.replace(F4,s)}return[t,e]}function Hdt(t,e,n){var r=n.metadata,i=n.shouldTryNationalPrefixFormattingRule,s=n.getSeparatorAfterNationalPrefix,a=new RegExp("^(?:".concat(e.pattern(),")$"));if(a.test(t.nationalSignificantNumber))return jdt(t,e,{metadata:r,shouldTryNationalPrefixFormattingRule:i,getSeparatorAfterNationalPrefix:s})}function Udt(t,e,n){return T3(t,e,n)==="IS_POSSIBLE"}function jdt(t,e,n){var r=n.metadata,i=n.shouldTryNationalPrefixFormattingRule,s=n.getSeparatorAfterNationalPrefix;if(t.nationalSignificantNumber,t.international,t.nationalPrefix,t.carrierCode,i(e)){var a=BQ(t,e,{useNationalPrefixFormattingRule:!0,getSeparatorAfterNationalPrefix:s,metadata:r});if(a)return a}return BQ(t,e,{useNationalPrefixFormattingRule:!1,getSeparatorAfterNationalPrefix:s,metadata:r})}function BQ(t,e,n){var r=n.metadata,i=n.useNationalPrefixFormattingRule,s=n.getSeparatorAfterNationalPrefix,a=Oye(t.nationalSignificantNumber,e,{carrierCode:t.carrierCode,useInternationalFormat:t.international,withNationalPrefix:i,metadata:r});if(i||(t.nationalPrefix?a=t.nationalPrefix+s(e)+a:t.prefixBeforeNationalSignificantNumberThatIsNotNationalPrefix&&(a=t.prefixBeforeNationalSignificantNumberThatIsNotNationalPrefix+" "+a)),zdt(a,t))return a}function zdt(t,e){return eC(t)===e.getNationalDigits()}function yv(t){"@babel/helpers - typeof";return yv=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},yv(t)}function Vdt(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function qdt(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,Wdt(r.key),r)}}function Gdt(t,e,n){return e&&qdt(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function Wdt(t){var e=Ydt(t,"string");return yv(e)=="symbol"?e:e+""}function Ydt(t,e){if(yv(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(yv(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}var Kdt=(function(){function t(){Vdt(this,t)}return Gdt(t,[{key:"parse",value:function(n){if(this.context=[{or:!0,instructions:[]}],this.parsePattern(n),this.context.length!==1)throw new Error("Non-finalized contexts left when pattern parse ended");var r=this.context[0],i=r.branches,s=r.instructions;if(i)return{op:"|",args:i.concat([B4(s)])};if(s.length===0)throw new Error("Pattern is required");return s.length===1?s[0]:s}},{key:"startContext",value:function(n){this.context.push(n)}},{key:"endContext",value:function(){this.context.pop()}},{key:"getContext",value:function(){return this.context[this.context.length-1]}},{key:"parsePattern",value:function(n){if(!n)throw new Error("Pattern is required");var r=n.match(Zdt);if(!r){if(Qdt.test(n))throw new Error("Illegal characters found in a pattern: ".concat(n));this.getContext().instructions=this.getContext().instructions.concat(n.split(""));return}var i=r[1],s=n.slice(0,r.index),a=n.slice(r.index+i.length);switch(i){case"(?:":s&&this.parsePattern(s),this.startContext({or:!0,instructions:[],branches:[]});break;case")":if(!this.getContext().or)throw new Error('")" operator must be preceded by "(?:" operator');if(s&&this.parsePattern(s),this.getContext().instructions.length===0)throw new Error('No instructions found after "|" operator in an "or" group');var o=this.getContext(),l=o.branches;l.push(B4(this.getContext().instructions)),this.endContext(),this.getContext().instructions.push({op:"|",args:l});break;case"|":if(!this.getContext().or)throw new Error('"|" operator can only be used inside "or" groups');if(s&&this.parsePattern(s),!this.getContext().branches)if(this.context.length===1)this.getContext().branches=[];else throw new Error('"branches" not found in an "or" group context');this.getContext().branches.push(B4(this.getContext().instructions)),this.getContext().instructions=[];break;case"[":s&&this.parsePattern(s),this.startContext({oneOfSet:!0});break;case"]":if(!this.getContext().oneOfSet)throw new Error('"]" operator must be preceded by "[" operator');this.endContext(),this.getContext().instructions.push({op:"[]",args:Xdt(s)});break;default:throw new Error("Unknown operator: ".concat(i))}a&&this.parsePattern(a)}}])})();function Xdt(t){for(var e=[],n=0;n<t.length;){if(t[n]==="-"){if(n===0||n===t.length-1)throw new Error("Couldn't parse a one-of set pattern: ".concat(t));for(var r=t[n-1].charCodeAt(0)+1,i=t[n+1].charCodeAt(0)-1,s=r;s<=i;)e.push(String.fromCharCode(s)),s++}else e.push(t[n]);n++}return e}var Qdt=/[\(\)\[\]\?\:\|]/,Zdt=new RegExp("(\\||\\(\\?\\:|\\)|\\[|\\])");function B4(t){return t.length===1?t[0]:t}function HQ(t,e){var n=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n)return(n=n.call(t)).next.bind(n);if(Array.isArray(t)||(n=Jdt(t))||e){n&&(t=n);var r=0;return function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. 153In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Jdt(t,e){if(t){if(typeof t=="string")return UQ(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?UQ(t,e):void 0}}function UQ(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function bv(t){"@babel/helpers - typeof";return bv=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},bv(t)}function eft(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function tft(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,rft(r.key),r)}}function nft(t,e,n){return e&&tft(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function rft(t){var e=ift(t,"string");return bv(e)=="symbol"?e:e+""}function ift(t,e){if(bv(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(bv(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}var sft=(function(){function t(e){eft(this,t),this.matchTree=new Kdt().parse(e)}return nft(t,[{key:"match",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=r.allowOverflow;if(!n)throw new Error("String is required");var s=h9(n.split(""),this.matchTree,!0);if(s&&s.match&&delete s.matchedChars,!(s&&s.overflow&&!i))return s}}])})();function h9(t,e,n){if(typeof e=="string"){var r=t.join("");return e.indexOf(r)===0?t.length===e.length?{match:!0,matchedChars:t}:{partialMatch:!0}:r.indexOf(e)===0?n&&t.length>e.length?{overflow:!0}:{match:!0,matchedChars:t.slice(0,e.length)}:void 0}if(Array.isArray(e)){for(var i=t.slice(),s=0;s<e.length;){var a=e[s],o=h9(i,a,n&&s===e.length-1);if(o){if(o.overflow)return o;if(o.match){if(i=i.slice(o.matchedChars.length),i.length===0)return s===e.length-1?{match:!0,matchedChars:t}:{partialMatch:!0}}else{if(o.partialMatch)return{partialMatch:!0};throw new Error(`Unsupported match result: 154`.concat(JSON.stringify(o,null,2)))}}else return;s++}return n?{overflow:!0}:{match:!0,matchedChars:t.slice(0,t.length-i.length)}}switch(e.op){case"|":for(var l,u=HQ(e.args),c;!(c=u()).done;){var d=c.value,h=h9(t,d,n);if(h){if(h.overflow)return h;if(h.match)return{match:!0,matchedChars:h.matchedChars};if(h.partialMatch)l=!0;else throw new Error(`Unsupported match result: 155`.concat(JSON.stringify(h,null,2)))}}return l?{partialMatch:!0}:void 0;case"[]":for(var m=HQ(e.args),g;!(g=m()).done;){var b=g.value;if(t[0]===b)return t.length===1?{match:!0,matchedChars:t}:n?{overflow:!0}:{match:!0,matchedChars:[b]}}return;default:throw new Error("Unsupported instruction tree: ".concat(e))}}function vv(t){"@babel/helpers - typeof";return vv=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},vv(t)}function jQ(t,e){var n=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n)return(n=n.call(t)).next.bind(n);if(Array.isArray(t)||(n=aft(t))||e){n&&(t=n);var r=0;return function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. 156In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function aft(t,e){if(t){if(typeof t=="string")return zQ(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?zQ(t,e):void 0}}function zQ(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function oft(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function lft(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,cft(r.key),r)}}function uft(t,e,n){return e&&lft(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function cft(t){var e=dft(t,"string");return vv(e)=="symbol"?e:e+""}function dft(t,e){if(vv(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(vv(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}var p9="9",fft=15,hft=Hw(p9,fft),pft=/[- ]/,mft=function(){return/\[([^\[\]])*\]/g},gft=function(){return/\d(?=[^,}][^,}])/g},yft=new RegExp("["+al+"]*\\$1["+al+"]*(\\$\\d["+al+"]*)*$"),VQ=3,bft=(function(){function t(e){e.state;var n=e.metadata;oft(this,t),this.metadata=n,this.resetFormat()}return uft(t,[{key:"resetFormat",value:function(){this.chosenFormat=void 0,this.template=void 0,this.nationalNumberTemplate=void 0,this.populatedNationalNumberTemplate=void 0,this.populatedNationalNumberTemplatePosition=-1}},{key:"reset",value:function(n,r){this.resetFormat(),n?(this.isNANP=n.callingCode()==="1",this.matchingFormats=n.formats(),r.nationalSignificantNumber&&this.narrowDownMatchingFormats(r)):(this.isNANP=void 0,this.matchingFormats=[])}},{key:"format",value:function(n,r){var i=this;if(Udt(r.nationalSignificantNumber,r.country,this.metadata))for(var s=jQ(this.matchingFormats),a;!(a=s()).done;){var o=a.value,l=Hdt(r,o,{metadata:this.metadata,shouldTryNationalPrefixFormattingRule:function(c){return i.shouldTryNationalPrefixFormattingRule(c,{international:r.international,nationalPrefix:r.nationalPrefix})},getSeparatorAfterNationalPrefix:function(c){return i.getSeparatorAfterNationalPrefix(c)}});if(l)return this.resetFormat(),this.chosenFormat=o,this.setNationalNumberTemplate(l.replace(/\d/g,qo),r),this.populatedNationalNumberTemplate=l,this.populatedNationalNumberTemplatePosition=this.template.lastIndexOf(qo),l}return this.formatNationalNumberWithNextDigits(n,r)}},{key:"formatNationalNumberWithNextDigits",value:function(n,r){var i=this.chosenFormat,s=this.chooseFormat(r);if(s)return s===i?this.formatNextNationalNumberDigits(n):this.formatNextNationalNumberDigits(r.getNationalDigits())}},{key:"narrowDownMatchingFormats",value:function(n){var r=this,i=n.nationalSignificantNumber,s=n.nationalPrefix,a=n.international,o=i,l=o.length-VQ;l<0&&(l=0),this.matchingFormats=this.matchingFormats.filter(function(u){return r.formatSuits(u,a,s)&&r.formatMatches(u,o,l)}),this.chosenFormat&&this.matchingFormats.indexOf(this.chosenFormat)===-1&&this.resetFormat()}},{key:"formatSuits",value:function(n,r,i){return!(i&&!n.usesNationalPrefix()&&!n.nationalPrefixIsOptionalWhenFormattingInNationalFormat()||!r&&!i&&n.nationalPrefixIsMandatoryWhenFormattingInNationalFormat())}},{key:"formatMatches",value:function(n,r,i){var s=n.leadingDigitsPatterns().length;if(s===0)return!0;i=Math.min(i,s-1);var a=n.leadingDigitsPatterns()[i];if(r.length<VQ)try{return new sft(a).match(r,{allowOverflow:!0})!==void 0}catch(o){return console.error(o),!0}return new RegExp("^(".concat(a,")")).test(r)}},{key:"getFormatFormat",value:function(n,r){return r?n.internationalFormat():n.format()}},{key:"chooseFormat",value:function(n){for(var r=this,i=function(){var u=o.value;return r.chosenFormat===u?0:yft.test(r.getFormatFormat(u,n.international))?r.createTemplateForFormat(u,n)?(r.chosenFormat=u,0):(r.matchingFormats=r.matchingFormats.filter(function(c){return c!==u}),1):1},s,a=jQ(this.matchingFormats.slice()),o;!(o=a()).done&&(s=i(),s!==0););return this.chosenFormat||this.resetFormat(),this.chosenFormat}},{key:"createTemplateForFormat",value:function(n,r){if(!(n.pattern().indexOf("|")>=0)){var i=this.getTemplateForFormat(n,r);if(i)return this.setNationalNumberTemplate(i,r),!0}}},{key:"getSeparatorAfterNationalPrefix",value:function(n){return this.isNANP||n&&n.nationalPrefixFormattingRule()&&pft.test(n.nationalPrefixFormattingRule())?" ":""}},{key:"getInternationalPrefixBeforeCountryCallingCode",value:function(n,r){var i=n.IDDPrefix,s=n.missingPlus;return i?r&&r.spacing===!1?i:i+" ":s?"":"+"}},{key:"getTemplate",value:function(n){if(this.template){for(var r=-1,i=0,s=n.international?this.getInternationalPrefixBeforeCountryCallingCode(n,{spacing:!1}):"";i<s.length+n.getDigitsWithoutInternationalPrefix().length;)r=this.template.indexOf(qo,r+1),i++;return FQ(this.template,r+1)}}},{key:"setNationalNumberTemplate",value:function(n,r){this.nationalNumberTemplate=n,this.populatedNationalNumberTemplate=n,this.populatedNationalNumberTemplatePosition=-1,r.international?this.template=this.getInternationalPrefixBeforeCountryCallingCode(r).replace(/[\d\+]/g,qo)+Hw(qo,r.callingCode.length)+" "+n:this.template=n}},{key:"getTemplateForFormat",value:function(n,r){var i=r.nationalSignificantNumber,s=r.international,a=r.nationalPrefix,o=r.prefixBeforeNationalSignificantNumberThatIsNotNationalPrefix,l=n.pattern();l=l.replace(mft(),"\\d").replace(gft(),"\\d");var u=hft.match(l)[0];if(!(i.length>u.length)){var c=new RegExp("^"+l+"$"),d=i.replace(/\d/g,p9);c.test(d)&&(u=d);var h=this.getFormatFormat(n,s),m;if(this.shouldTryNationalPrefixFormattingRule(n,{international:s,nationalPrefix:a})){var g=h.replace(Nye,n.nationalPrefixFormattingRule());if(eC(n.nationalPrefixFormattingRule())===(a||"")+eC("$1")&&(h=g,m=!0,a))for(var b=a.length;b>0;)h=h.replace(/\d/,qo),b--}var v=u.replace(new RegExp(l),h).replace(new RegExp(p9,"g"),qo);return m||(o?v=Hw(qo,o.length)+" "+v:a&&(v=Hw(qo,a.length)+this.getSeparatorAfterNationalPrefix(n)+v)),s&&(v=Rye(v)),v}}},{key:"formatNextNationalNumberDigits",value:function(n){var r=Bdt(this.populatedNationalNumberTemplate,this.populatedNationalNumberTemplatePosition,n);if(!r){this.resetFormat();return}return this.populatedNationalNumberTemplate=r[0],this.populatedNationalNumberTemplatePosition=r[1],FQ(this.populatedNationalNumberTemplate,this.populatedNationalNumberTemplatePosition+1)}},{key:"shouldTryNationalPrefixFormattingRule",value:function(n,r){var i=r.international,s=r.nationalPrefix;if(n.nationalPrefixFormattingRule()){var a=n.usesNationalPrefix();if(a&&s||!a&&!i)return!0}}}])})();function Ev(t){"@babel/helpers - typeof";return Ev=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ev(t)}function Bye(t,e){return xft(t)||_ft(t,e)||Eft(t,e)||vft()}function vft(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 157In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Eft(t,e){if(t){if(typeof t=="string")return qQ(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?qQ(t,e):void 0}}function qQ(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function _ft(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,i,s,a,o=[],l=!0,u=!1;try{if(s=(n=n.call(t)).next,e!==0)for(;!(l=(r=s.call(n)).done)&&(o.push(r.value),o.length!==e);l=!0);}catch(c){u=!0,i=c}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return o}}function xft(t){if(Array.isArray(t))return t}function wft(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Sft(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,Tft(r.key),r)}}function Cft(t,e,n){return e&&Sft(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function Tft(t){var e=Aft(t,"string");return Ev(e)=="symbol"?e:e+""}function Aft(t,e){if(Ev(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(Ev(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}var Rft="["+al+Ps+"]+",Nft=new RegExp("^"+Rft+"$","i"),Oft="(?:["+A3+"]["+al+Ps+"]*|["+al+Ps+"]+)",kft=new RegExp("[^"+al+Ps+"]+.*$"),Ift=/[^\d\[\]]/,Mft=(function(){function t(e){var n=e.defaultCountry,r=e.defaultCallingCode,i=e.metadata,s=e.onNationalSignificantNumberChange;wft(this,t),this.defaultCountry=n,this.defaultCallingCode=r,this.metadata=i,this.onNationalSignificantNumberChange=s}return Cft(t,[{key:"input",value:function(n,r){var i=Lft(n),s=Bye(i,2),a=s[0],o=s[1],l=eC(a),u;return o&&(r.digits||(r.startInternationalNumber(void 0,void 0),l||(u=!0))),l&&this.inputDigits(l,r),{digits:l,justLeadingPlus:u}}},{key:"inputDigits",value:function(n,r){var i=r.digits,s=i.length<3&&i.length+n.length>=3;if(r.appendDigits(n),s&&this.extractIddPrefix(r),this.isWaitingForCountryCallingCode(r)){if(!this.extractCountryCallingCode(r))return}else r.appendNationalSignificantNumberDigits(n);r.international||this.hasExtractedNationalSignificantNumber||this.extractNationalSignificantNumber(r.getNationalDigits(),function(a){return r.update(a)})}},{key:"isWaitingForCountryCallingCode",value:function(n){var r=n.international,i=n.callingCode;return r&&!i}},{key:"extractCountryCallingCode",value:function(n){var r=NF("+"+n.getDigitsWithoutInternationalPrefix(),n.country,this.defaultCountry,this.defaultCallingCode,this.metadata.metadata),i=r.countryCallingCode,s=r.number;if(i)return n.setCallingCode(i),n.update({nationalSignificantNumber:s}),!0}},{key:"reset",value:function(n){if(n){this.hasSelectedNumberingPlan=!0;var r=n._nationalPrefixForParsing();this.couldPossiblyExtractAnotherNationalSignificantNumber=r&&Ift.test(r)}else this.hasSelectedNumberingPlan=void 0,this.couldPossiblyExtractAnotherNationalSignificantNumber=void 0}},{key:"extractNationalSignificantNumber",value:function(n,r){if(this.hasSelectedNumberingPlan){var i=a9(n,this.metadata),s=i.nationalPrefix,a=i.nationalNumber,o=i.carrierCode;if(a!==n)return this.onExtractedNationalNumber(s,o,a,n,r),!0}}},{key:"extractAnotherNationalSignificantNumber",value:function(n,r,i){if(!this.hasExtractedNationalSignificantNumber)return this.extractNationalSignificantNumber(n,i);if(this.couldPossiblyExtractAnotherNationalSignificantNumber){var s=a9(n,this.metadata),a=s.nationalPrefix,o=s.nationalNumber,l=s.carrierCode;if(o!==r)return this.onExtractedNationalNumber(a,l,o,n,i),!0}}},{key:"onExtractedNationalNumber",value:function(n,r,i,s,a){var o=!1,l,u=s.lastIndexOf(i);if(u<0||u!==s.length-i.length)o=!0;else{var c=s.slice(0,u);c&&c!==n&&(l=c)}a({nationalPrefix:n,carrierCode:r,nationalSignificantNumber:i,nationalSignificantNumberIsModified:o,prefixBeforeNationalSignificantNumberThatIsNotNationalPrefix:l}),this.hasExtractedNationalSignificantNumber=!0,this.onNationalSignificantNumberChange()}},{key:"reExtractNationalSignificantNumber",value:function(n){if(this.extractAnotherNationalSignificantNumber(n.getNationalDigits(),n.nationalSignificantNumber,function(r){return n.update(r)}))return!0;if(this.extractIddPrefix(n))return this.extractCallingCodeAndNationalSignificantNumber(n),!0;if(this.fixMissingPlus(n))return this.extractCallingCodeAndNationalSignificantNumber(n),!0}},{key:"extractIddPrefix",value:function(n){var r=n.international,i=n.IDDPrefix,s=n.digits;if(n.nationalSignificantNumber,!(r||i)){var a=Cye(s,this.defaultCountry,this.defaultCallingCode,this.metadata.metadata);if(a!==void 0&&a!==s)return n.update({IDDPrefix:s.slice(0,s.length-a.length)}),this.startInternationalNumber(n,{country:void 0,callingCode:void 0}),!0}}},{key:"fixMissingPlus",value:function(n){if(!n.international){var r=Aye(n.digits,n.country,this.defaultCountry,this.defaultCallingCode,this.metadata.metadata),i=r.countryCallingCode;if(i)return n.update({missingPlus:!0}),this.startInternationalNumber(n,{country:n.country,callingCode:i}),!0}}},{key:"startInternationalNumber",value:function(n,r){var i=r.country,s=r.callingCode;n.startInternationalNumber(i,s),n.nationalSignificantNumber&&(n.resetNationalSignificantNumber(),this.onNationalSignificantNumberChange(),this.hasExtractedNationalSignificantNumber=void 0)}},{key:"extractCallingCodeAndNationalSignificantNumber",value:function(n){this.extractCountryCallingCode(n)&&this.extractNationalSignificantNumber(n.getNationalDigits(),function(r){return n.update(r)})}}])})();function Dft(t){var e=t.search(Oft);if(!(e<0)){t=t.slice(e);var n;return t[0]==="+"&&(n=!0,t=t.slice(1)),t=t.replace(kft,""),n&&(t="+"+t),t}}function Pft(t){var e=Dft(t)||"";return e[0]==="+"?[e.slice(1),!0]:[e]}function Lft(t){var e=Pft(t),n=Bye(e,2),r=n[0],i=n[1];return Nft.test(r)||(r=""),[r,i]}function _v(t){"@babel/helpers - typeof";return _v=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_v(t)}function $ft(t,e){return Uft(t)||Hft(t,e)||Bft(t,e)||Fft()}function Fft(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 158In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Bft(t,e){if(t){if(typeof t=="string")return GQ(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?GQ(t,e):void 0}}function GQ(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function Hft(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,i,s,a,o=[],l=!0,u=!1;try{if(s=(n=n.call(t)).next,e!==0)for(;!(l=(r=s.call(n)).done)&&(o.push(r.value),o.length!==e);l=!0);}catch(c){u=!0,i=c}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return o}}function Uft(t){if(Array.isArray(t))return t}function jft(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function zft(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,qft(r.key),r)}}function Vft(t,e,n){return e&&zft(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function qft(t){var e=Gft(t,"string");return _v(e)=="symbol"?e:e+""}function Gft(t,e){if(_v(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(_v(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}var Y0=(function(){function t(e,n){jft(this,t),this.metadata=new bi(n);var r=this.getCountryAndCallingCode(e),i=$ft(r,2),s=i[0],a=i[1];this.defaultCountry=s,this.defaultCallingCode=a,this.reset()}return Vft(t,[{key:"getCountryAndCallingCode",value:function(n){var r,i;return n&&(Mh(n)?(r=n.defaultCountry,i=n.defaultCallingCode):r=n),r&&!this.metadata.hasCountry(r)&&(r=void 0),[r,i]}},{key:"input",value:function(n){var r=this.parser.input(n,this.state),i=r.digits,s=r.justLeadingPlus;if(s)this.formattedOutput="+";else if(i){this.determineTheCountryIfNeeded(),this.state.nationalSignificantNumber&&this.formatter.narrowDownMatchingFormats(this.state);var a;if(this.metadata.hasSelectedNumberingPlan()&&(a=this.formatter.format(i,this.state)),a===void 0&&this.parser.reExtractNationalSignificantNumber(this.state)){this.determineTheCountryIfNeeded();var o=this.state.getNationalDigits();o&&(a=this.formatter.format(o,this.state))}
158this.formattedOutput=a?this.getFullNumber(a):this.getNonFormattedNumber()}return this.formattedOutput}},{key:"reset",value:function(){var n=this;return this.state=new Pdt({onCountryChange:function(i){n.country=i},onCallingCodeChange:function(i,s){n.metadata.selectNumberingPlan(s,i),n.formatter.reset(n.metadata.numberingPlan,n.state),n.parser.reset(n.metadata.numberingPlan)}}),this.formatter=new bft({state:this.state,metadata:this.metadata}),this.parser=new Mft({defaultCountry:this.defaultCountry,defaultCallingCode:this.defaultCallingCode,metadata:this.metadata,state:this.state,onNationalSignificantNumberChange:function(){n.determineTheCountryIfNeeded(),n.formatter.reset(n.metadata.numberingPlan,n.state)}}),this.state.reset({country:this.defaultCountry,callingCode:this.defaultCallingCode}),this.formattedOutput="",this}},{key:"isInternational",value:function(){return this.state.international}},{key:"getCallingCode",value:function(){if(this.isInternational())return this.state.callingCode}},{key:"getCountryCallingCode",value:function(){return this.getCallingCode()}},{key:"getCountry",value:function(){var n=this.state.digits;if(n)return this._getCountry()}},{key:"_getCountry",value:function(){var n=this.state.country;return n}},{key:"determineTheCountryIfNeeded",value:function(){(!this.state.country||this.isCountryCallingCodeAmbiguous())&&this.determineTheCountry()}},{key:"getFullNumber",value:function(n){var r=this;if(this.isInternational()){var i=function(o){return r.formatter.getInternationalPrefixBeforeCountryCallingCode(r.state,{spacing:!!o})+o},s=this.state.callingCode;return i(s?n?"".concat(s," ").concat(n):s:"".concat(this.state.getDigitsWithoutInternationalPrefix()))}return n}},{key:"getNonFormattedNationalNumberWithPrefix",value:function(){var n=this.state,r=n.nationalSignificantNumber,i=n.prefixBeforeNationalSignificantNumberThatIsNotNationalPrefix,s=n.nationalPrefix,a=r,o=i||s;return o&&(a=o+a),a}},{key:"getNonFormattedNumber",value:function(){var n=this.state.nationalSignificantNumberIsModified;return this.getFullNumber(n?this.state.getNationalDigits():this.getNonFormattedNationalNumberWithPrefix())}},{key:"getNonFormattedTemplate",value:function(){var n=this.getNonFormattedNumber();if(n)return n.replace(/[\+\d]/g,qo)}},{key:"isCountryCallingCodeAmbiguous",value:function(){var n=this.state.callingCode,r=this.metadata.getCountryCodesForCallingCode(n);return r&&r.length>1}},{key:"determineTheCountry",value:function(){this.state.setCountry(RF(this.isInternational()?this.state.callingCode:this.defaultCallingCode,{nationalNumber:this.state.nationalSignificantNumber,metadata:this.metadata}))}},{key:"getNumberValue",value:function(){var n=this.state,r=n.digits,i=n.callingCode,s=n.country,a=n.nationalSignificantNumber;if(r){if(this.isInternational())return i?"+"+i+a:"+"+r;if(s||i){var o=s?this.metadata.countryCallingCode():i;return"+"+o+a}}}},{key:"getNumber",value:function(){var n=this.state,r=n.nationalSignificantNumber,i=n.carrierCode,s=n.callingCode,a=this._getCountry();if(r&&!(!a&&!s)){if(a&&a===this.defaultCountry){var o=new bi(this.metadata.metadata);o.selectNumberingPlan(a);var l=o.numberingPlan.callingCode(),u=this.metadata.getCountryCodesForCallingCode(l);if(u.length>1){var c=Tye(r,{countries:u,metadata:this.metadata.metadata});c&&(a=c)}}var d=new OF(a||s,r,this.metadata.metadata);return i&&(d.carrierCode=i),d}}},{key:"isPossible",value:function(){var n=this.getNumber();return n?n.isPossible():!1}},{key:"isValid",value:function(){var n=this.getNumber();return n?n.isValid():!1}},{key:"getNationalNumber",value:function(){return this.state.nationalSignificantNumber}},{key:"getChars",value:function(){return(this.state.international?"+":"")+this.state.digits}},{key:"getTemplate",value:function(){return this.formatter.getTemplate(this.state)||this.getNonFormattedTemplate()||""}}])})();function WQ(t){return new bi(t).getCountries()}function Wft(t,e,n){if(e[t])return new OF(t,e[t],n)}function Yft(t,e,n){return n||(n=e,e=void 0),new Y0(e,n).input(t)}function Hye(t){var e=t.inputFormat,n=t.country,r=t.metadata;return e==="NATIONAL_PART_OF_INTERNATIONAL"?"+".concat(Cf(n,r)):""}function m9(t,e){return e&&(t=t.slice(e.length),t[0]===" "&&(t=t.slice(1))),t}function Kft(t,e,n){if(!(n&&n.ignoreRest)){var r=function(s){n&&s==="end"&&(n.ignoreRest=!0)};return Dye(t,e,r)}}function Uye(t){var e=t.onKeyDown,n=t.inputFormat;return C.useCallback(function(r){if(r.keyCode===Qft&&n==="INTERNATIONAL"&&r.target instanceof HTMLInputElement&&Xft(r.target)===Zft.length){r.preventDefault();return}e&&e(r)},[e,n])}function Xft(t){return t.selectionStart}var Qft=8,Zft="+",Jft=["onKeyDown","country","inputFormat","metadata","international","withCountryCallingCode"];function g9(){return g9=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},g9.apply(this,arguments)}function eht(t,e){if(t==null)return{};var n=tht(t,e),r,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);for(i=0;i<s.length;i++)r=s[i],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function tht(t,e){if(t==null)return{};var n={},r=Object.keys(t),i,s;for(s=0;s<r.length;s++)i=r[s],!(e.indexOf(i)>=0)&&(n[i]=t[i]);return n}function nht(t){function e(n,r){var i=n.onKeyDown,s=n.country,a=n.inputFormat,o=n.metadata,l=o===void 0?t:o;n.international,n.withCountryCallingCode;var u=eht(n,Jft),c=C.useCallback(function(h){var m=new Y0(s,l),g=Hye({inputFormat:a,country:s,metadata:l}),b=m.input(g+h),v=m.getTemplate();return g&&(b=m9(b,g),v&&(v=m9(v,g))),{text:b,template:v}},[s,l]),d=Uye({onKeyDown:i,inputFormat:a});return U.createElement(ZS,g9({},u,{ref:r,parse:Kft,format:c,onKeyDown:d}))}return e=U.forwardRef(e),e.propTypes={value:oe.string.isRequired,onChange:oe.func.isRequired,onKeyDown:oe.func,country:oe.string,inputFormat:oe.oneOf(["INTERNATIONAL","NATIONAL_PART_OF_INTERNATIONAL","NATIONAL","INTERNATIONAL_OR_NATIONAL"]).isRequired,metadata:oe.object},e}const rht=nht();var iht=["value","onChange","onKeyDown","country","inputFormat","metadata","inputComponent","international","withCountryCallingCode"];function y9(){return y9=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},y9.apply(this,arguments)}function sht(t,e){if(t==null)return{};var n=aht(t,e),r,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);for(i=0;i<s.length;i++)r=s[i],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function aht(t,e){if(t==null)return{};var n={},r=Object.keys(t),i,s;for(s=0;s<r.length;s++)i=r[s],!(e.indexOf(i)>=0)&&(n[i]=t[i]);return n}function oht(t){function e(n,r){var i=n.value,s=n.onChange,a=n.onKeyDown,o=n.country,l=n.inputFormat,u=n.metadata,c=u===void 0?t:u,d=n.inputComponent,h=d===void 0?"input":d;n.international,n.withCountryCallingCode;var m=sht(n,iht),g=Hye({inputFormat:l,country:o,metadata:c}),b=C.useCallback(function(E){var x=c9(E.target.value);if(x===i){var _=YQ(g,x,o,c);_.indexOf(E.target.value)===0&&(x=x.slice(0,-1))}s(x)},[g,i,s,o,c]),v=Uye({onKeyDown:a,inputFormat:l});return U.createElement(h,y9({},m,{ref:r,value:YQ(g,i,o,c),onChange:b,onKeyDown:v}))}return e=U.forwardRef(e),e.propTypes={value:oe.string.isRequired,onChange:oe.func.isRequired,onKeyDown:oe.func,country:oe.string,inputFormat:oe.oneOf(["INTERNATIONAL","NATIONAL_PART_OF_INTERNATIONAL","NATIONAL","INTERNATIONAL_OR_NATIONAL"]).isRequired,metadata:oe.object,inputComponent:oe.elementType},e}const lht=oht();function YQ(t,e,n,r){return m9(Yft(t+e,n,r),t)}function uht(t){return KQ(t[0])+KQ(t[1])}function KQ(t){return String.fromCodePoint(127397+t.toUpperCase().charCo
158deAt(0))}var cht=["value","onChange","options","disabled","readOnly"],dht=["value","options","className","iconComponent","getIconAspectRatio","arrowComponent","unicodeFlags"];function fht(t,e){var n=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n)return(n=n.call(t)).next.bind(n);if(Array.isArray(t)||(n=hht(t))||e){n&&(t=n);var r=0;return function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. 159In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function hht(t,e){if(t){if(typeof t=="string")return XQ(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return XQ(t,e)}}function XQ(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function tC(){return tC=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},tC.apply(this,arguments)}function jye(t,e){if(t==null)return{};var n=pht(t,e),r,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);for(i=0;i<s.length;i++)r=s[i],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function pht(t,e){if(t==null)return{};var n={},r=Object.keys(t),i,s;for(s=0;s<r.length;s++)i=r[s],!(e.indexOf(i)>=0)&&(n[i]=t[i]);return n}function zye(t){var e=t.value,n=t.onChange,r=t.options,i=t.disabled,s=t.readOnly,a=jye(t,cht),o=C.useCallback(function(l){var u=l.target.value;n(u==="ZZ"?void 0:u)},[n]);return C.useMemo(function(){return qye(r,e)},[r,e]),U.createElement("select",tC({},a,{disabled:i||s,readOnly:s,value:e||"ZZ",onChange:o}),r.map(function(l){var u=l.value,c=l.label,d=l.divider;return U.createElement("option",{key:d?"|":u||"ZZ",value:d?"|":u||"ZZ",disabled:!!d,style:d?mht:void 0},c)}))}zye.propTypes={value:oe.string,onChange:oe.func.isRequired,options:oe.arrayOf(oe.shape({value:oe.string,label:oe.string,divider:oe.bool})).isRequired,disabled:oe.bool,readOnly:oe.bool};var mht={fontSize:"1px",backgroundColor:"currentColor",color:"inherit"};function Vye(t){var e=t.value,n=t.options,r=t.className,i=t.iconComponent;t.getIconAspectRatio;var s=t.arrowComponent,a=s===void 0?ght:s,o=t.unicodeFlags,l=jye(t,dht),u=C.useMemo(function(){return qye(n,e)},[n,e]);return U.createElement("div",{className:"PhoneInputCountry"},U.createElement(zye,tC({},l,{value:e,options:n,className:Oi("PhoneInputCountrySelect",r)})),u&&(o&&e?U.createElement("div",{className:"PhoneInputCountryIconUnicode"},uht(e)):U.createElement(i,{"aria-hidden":!0,country:e,label:u.label,aspectRatio:o?1:void 0})),U.createElement(a,null))}Vye.propTypes={iconComponent:oe.elementType,arrowComponent:oe.elementType,unicodeFlags:oe.bool};function ght(){return U.createElement("div",{className:"PhoneInputCountrySelectArrow"})}function qye(t,e){for(var n=fht(t),r;!(r=n()).done;){var i=r.value;if(!i.divider&&yht(i.value,e))return i}}function yht(t,e){return t==null?e==null:t===e}var bht=["country","countryName","flags","flagUrl"];function b9(){return b9=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},b9.apply(this,arguments)}function vht(t,e){if(t==null)return{};var n=Eht(t,e),r,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);for(i=0;i<s.length;i++)r=s[i],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function Eht(t,e){if(t==null)return{};var n={},r=Object.keys(t),i,s;for(s=0;s<r.length;s++)i=r[s],!(e.indexOf(i)>=0)&&(n[i]=t[i]);return n}function IF(t){var e=t.country,n=t.countryName,r=t.flags,i=t.flagUrl,s=vht(t,bht);return r&&r[e]?r[e]({title:n}):U.createElement("img",b9({},s,{alt:n,role:n?void 0:"presentation",src:i.replace("{XX}",e).replace("{xx}",e.toLowerCase())}))}IF.propTypes={country:oe.string.isRequired,countryName:oe.string.isRequired,flags:oe.objectOf(oe.elementType),flagUrl:oe.string.isRequired};var _ht=["aspectRatio"],xht=["title"],wht=["title"];function nC(){return nC=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},nC.apply(this,arguments)}function MF(t,e){if(t==null)return{};var n=Sht(t,e),r,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);for(i=0;i<s.length;i++)r=s[i],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function Sht(t,e){if(t==null)return{};var n={},r=Object.keys(t),i,s;for(s=0;s<r.length;s++)i=r[s],!(e.indexOf(i)>=0)&&(n[i]=t[i]);return n}function R3(t){var e=t.aspectRatio,n=MF(t,_ht);return e===1?U.createElement(Wye,n):U.createElement(Gye,n)}
159R3.propTypes={title:oe.string.isRequired,aspectRatio:oe.number};function Gye(t){var e=t.title,n=MF(t,xht);return U.createElement("svg",nC({},n,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 75 50"}),U.createElement("title",null,e),U.createElement("g",{className:"PhoneInputInternationalIconGlobe",stroke:"currentColor",fill:"none",strokeWidth:"2",strokeMiterlimit:"10"},U.createElement("path",{strokeLinecap:"round",d:"M47.2,36.1C48.1,36,49,36,50,36c7.4,0,14,1.7,18.5,4.3"}),U.createElement("path",{d:"M68.6,9.6C64.2,12.3,57.5,14,50,14c-7.4,0-14-1.7-18.5-4.3"}),U.createElement("line",{x1:"26",y1:"25",x2:"74",y2:"25"}),U.createElement("line",{x1:"50",y1:"1",x2:"50",y2:"49"}),U.createElement("path",{strokeLinecap:"round",d:"M46.3,48.7c1.2,0.2,2.5,0.3,3.7,0.3c13.3,0,24-10.7,24-24S63.3,1,50,1S26,11.7,26,25c0,2,0.3,3.9,0.7,5.8"}),U.createElement("path",{strokeLinecap:"round",d:"M46.8,48.2c1,0.6,2.1,0.8,3.2,0.8c6.6,0,12-10.7,12-24S56.6,1,50,1S38,11.7,38,25c0,1.4,0.1,2.7,0.2,4c0,0.1,0,0.2,0,0.2"})),U.createElement("path",{className:"PhoneInputInternationalIconPhone",stroke:"none",fill:"currentColor",d:"M12.4,17.9c2.9-2.9,5.4-4.8,0.3-11.2S4.1,5.2,1.3,8.1C-2,11.4,1.1,23.5,13.1,35.6s24.3,15.2,27.5,11.9c2.8-2.8,7.8-6.3,1.4-11.5s-8.3-2.6-11.2,0.3c-2,2-7.2-2.2-11.7-6.7S10.4,19.9,12.4,17.9z"}))}Gye.propTypes={title:oe.string.isRequired};function Wye(t){var e=t.title,n=MF(t,wht);return U.createElement("svg",nC({},n,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 50 50"}),U.createElement("title",null,e),U.createElement("g",{className:"PhoneInputInternationalIconGlobe",stroke:"currentColor",fill:"none",strokeWidth:"2",strokeLinecap:"round"},U.createElement("path",{d:"M8.45,13A21.44,21.44,0,1,1,37.08,41.56"}),U.createElement("path",{d:"M19.36,35.47a36.9,36.9,0,0,1-2.28-13.24C17.08,10.39,21.88.85,27.8.85s10.72,9.54,10.72,21.38c0,6.48-1.44,12.28-3.71,16.21"}),U.createElement("path",{d:"M17.41,33.4A39,39,0,0,1,27.8,32.06c6.62,0,12.55,1.5,16.48,3.86"}),U.createElement("path",{d:"M44.29,8.53c-3.93,2.37-9.86,3.88-16.49,3.88S15.25,10.9,11.31,8.54"}),U.createElement("line",{x1:"27.8",y1:"0.85",x2:"27.8",y2:"34.61"}),U.createElement("line",{x1:"15.2",y1:"22.23",x2:"49.15",y2:"22.23"})),U.createElement("path",{className:"PhoneInputInternationalIconPhone",stroke:"transparent",fill:"currentColor",d:"M9.42,26.64c2.22-2.22,4.15-3.59.22-8.49S3.08,17,.93,19.17c-2.49,2.48-.13,11.74,9,20.89s18.41,11.5,20.89,9c2.15-2.15,5.91-4.77,1-8.71s-6.27-2-8.49.22c-1.55,1.55-5.48-1.69-8.86-5.08S7.87,28.19,9.42,26.64Z"}))}Wye.propTypes={title:oe.string.isRequired};function Cht(t){if(t.length<2||t[0]!=="+")return!1;for(var e=1;e<t.length;){var n=t.charCodeAt(e);if(!(n>=48&&n<=57))return!1;e++}return!0}function Yye(t){Cht(t)||console.error("[react-phone-number-input] Expected the initial `value` to be a E.164 phone number. Got",t)}function Tht(t,e){var n=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n)return(n=n.call(t)).next.bind(n);if(Array.isArray(t)||(n=Aht(t))||e){n&&(t=n);var r=0;return function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. 160In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Aht(t,e){if(t){if(typeof t=="string")return QQ(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return QQ(t,e)}}function QQ(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function Rht(t,e){if(!e)return t;for(var n=[],r=[],i=n,s=function(){var u=o.value;if(u==="|")i.push({divider:!0});else if(u==="..."||u==="â¦")i=r;else{var c;u==="ð"?c=void 0:c=u;var d=t.indexOf(t.filter(function(m){return m.value===c})[0]),h=t[d];t.splice(d,1),i.push(h)}},a=Tht(e),o;!(o=a()).done;)s();return n.concat(t).concat(r)}function Nht(t,e){if(t&&(t=t.filter(function(n){switch(n){case"ð":case"|":case"...":case"â¦":return!0;default:return N3(n,e)}}),t.length>0))return t}function N3(t,e){return xye(t,e)?!0:(console.error("Country not found: ".concat(t)),!1)}function Kye(t,e){return t&&(t=t.filter(function(n){return N3(n,e)}),t.length===0&&(t=void 0)),t}
160var Oht=["country","label","aspectRatio"];function v9(){return v9=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},v9.apply(this,arguments)}function kht(t,e){if(t==null)return{};var n=Iht(t,e),r,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);for(i=0;i<s.length;i++)r=s[i],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function Iht(t,e){if(t==null)return{};var n={},r=Object.keys(t),i,s;for(s=0;s<r.length;s++)i=r[s],!(e.indexOf(i)>=0)&&(n[i]=t[i]);return n}function Xye(t){var e=t.flags,n=t.flagUrl,r=t.flagComponent,i=t.internationalIcon;function s(a){var o=a.country,l=a.label,u=a.aspectRatio,c=kht(a,Oht),d=i===R3?u:void 0;return U.createElement("div",v9({},c,{className:Oi("PhoneInputCountryIcon",{"PhoneInputCountryIcon--square":d===1,"PhoneInputCountryIcon--border":o})}),o?U.createElement(r,{country:o,countryName:l,flags:e,flagUrl:n,className:"PhoneInputCountryIconImg"}):U.createElement(i,{title:l,aspectRatio:d,className:"PhoneInputCountryIconImg"}))}return s.propTypes={country:oe.string,label:oe.string.isRequired,aspectRatio:oe.number},s}Xye({flagUrl:"https://purecatamphetamine.github.io/country-flag-icons/3x2/{XX}.svg",flagComponent:IF,internationalIcon:R3});function Mht(t,e){var n=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n)return(n=n.call(t)).next.bind(n);if(Array.isArray(t)||(n=Dht(t))||e){n&&(t=n);var r=0;return function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. 161In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Dht(t,e){if(t){if(typeof t=="string")return ZQ(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ZQ(t,e)}}function ZQ(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function Pht(t,e){for(var n=Mht(t),r;!(r=n()).done;){var i=r.value;i&&Lht(i,e)}}function Lht(t,e){typeof t=="function"?t(e):t.current=e}var Qye=oe.shape({country_calling_codes:oe.object.isRequired,countries:oe.object.isRequired}),Zye=oe.objectOf(oe.string);function Ac(t,e){var n="+"+Cf(t,e);return n}function $ht(t){var e=t.value,n=t.phoneNumber,r=t.defaultCountry,i=t.getAnyCountry,s=t.countries,a=t.required,o=t.metadata,l;return n&&n.country?l=n.country:r&&(!e||wg(e,r,o))&&(l=r),s&&s.indexOf(l)<0&&(l=void 0),!l&&a&&s&&s.length>0&&(l=i()),l}function Fht(t){var e=t.countries,n=t.countryNames,r=t.addInternationalOption,i=t.compareStringsLocales,s=t.compareStrings;s||(s=qht);var a=e.map(function(o){return{value:o,label:n[o]||o}});return a.sort(function(o,l){return s(o.label,l.label,i)}),r&&a.unshift({label:n.ZZ}),a}function Jye(t,e){return Fye(t||"",e)}function Bht(t){return t.formatNational().replace(/\D/g,"")}function Hht(t,e){var n=e.prevCountry,r=e.newCountry,i=e.metadata,s=e.useNationalFormat;if(n===r)return t;if(!t)return s?"":r?Ac(r,i):"";if(r){if(t[0]==="+"){if(s)return t.indexOf("+"+Cf(r,i))===0?Ght(t,r,i):"";if(n){var a=Ac(r,i);return t.indexOf(a)===0?t:a}else{var o=Ac(r,i);return t.indexOf(o)===0?t:o}}}else if(t[0]!=="+")return ag(t,n,i)||"";return t}function ag(t,e,n){if(t){if(t[0]==="+"){if(t==="+")return;var r=new Y0(e,n);return r.input(t),r.getNumberValue()}if(e){var i=tbe(t,e,n);return"+".concat(Cf(e,n)).concat(i||"")}}}function Uht(t,e,n){var r=tbe(t,e,n);if(r){var i=r.length-jht(e,n);if(i>0)return t.slice(0,t.length-i)}return t}function jht(t,e){return e=new bi(e),e.selectNumberingPlan(t),e.numberingPlan.possibleLengths()[e.numberingPlan.possibleLengths().length-1]}function ebe(t,e){var n=e.country,r=e.countries,i=e.defaultCountry,s=e.latestCountrySelectedByUser,a=e.required,o=e.metadata;if(t==="+")return n;var l=Vht(t,o);if(l)return!r||r.indexOf(l)>=0?l:void 0;if(n){if(wg(t,n,o)){if(s&&wg(t,s,o))return s;if(i&&wg(t,i,o))return i;if(!a)return}else if(!a)return}return n}function zht(t,e){var n=e.prevPhoneDigits,r=e.country,i=e.defaultCountry,s=e.latestCountrySelectedByUser,a=e.countryRequired,o=e.getAnyCountry,l=e.countries,u=e.international,c=e.limitMaxLength,d=e.countryCallingCodeEditable,h=e.metadata;if(u&&d===!1&&r){var m=Ac(r,h);if(t.indexOf(m)!==0){var g,b=t&&t[0]!=="+";return b?(t=m+t,g=ag(t,r,h)):t=m,{phoneDigits:t,value:g,country:r}}}u===!1&&r&&t&&t[0]==="+"&&(t=JQ(t,r,h)),t&&r&&c&&(t=Uht(t,r,h)),t&&t[0]!=="+"&&(!r||u)&&(t="+"+t),!t&&n&&n[0]==="+"&&(u?r=void 0:r=i),t==="+"&&n&&n[0]==="+"&&n.length>1&&(r=void 0);var v;
161return t&&(t[0]==="+"&&(t==="+"||r&&Ac(r,h).indexOf(t)===0)?v=void 0:v=ag(t,r,h)),v&&(r=ebe(v,{country:r,countries:l,defaultCountry:i,latestCountrySelectedByUser:s,required:!1,metadata:h}),u===!1&&r&&t&&t[0]==="+"&&(t=JQ(t,r,h),v=ag(t,r,h))),!r&&a&&(r=i||o()),{phoneDigits:t,country:r,value:v}}function JQ(t,e,n){if(t.indexOf(Ac(e,n))===0){var r=new Y0(e,n);r.input(t);var i=r.getNumber();return i?i.formatNational().replace(/\D/g,""):""}else return t.replace(/\D/g,"")}function Vht(t,e){var n=new Y0(null,e);return n.input(t),n.getCountry()}function qht(t,e,n){return String.prototype.localeCompare?t.localeCompare(e,n):t<e?-1:t>e?1:0}function Ght(t,e,n){if(e){var r="+"+Cf(e,n);if(t.length<r.length){if(r.indexOf(t)===0)return""}else if(t.indexOf(r)===0)return t.slice(r.length)}for(var i=0,s=Object.keys(n.country_calling_codes);i<s.length;i++){var a=s[i];if(t.indexOf(a)===1)return t.slice(1+a.length)}return""}function tbe(t,e,n){var r=new Y0(e,n);r.input(t);var i=r.getNumber();return i&&i.nationalNumber}function wg(t,e,n){for(var r=Ac(e,n),i=0;i<t.length&&i<r.length;){if(t[i]!==r[i])return!1;i++}return!0}function nbe(t){var e=t.value,n=t.phoneNumber,r=t.defaultCountry,i=t.international,s=t.useNationalFormat,a=t.metadata;return(i===!1||s)&&n&&n.country?Bht(n):!e&&i&&r?Ac(r,a):e}function xv(t){"@babel/helpers - typeof";return xv=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},xv(t)}function eZ(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function Cx(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?eZ(Object(n),!0).forEach(function(r){Wht(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):eZ(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function Wht(t,e,n){return e=Yht(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Yht(t){var e=Kht(t,"string");return xv(e)=="symbol"?e:e+""}function Kht(t,e){if(xv(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(xv(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Xht(t,e,n){var r=t.metadata,i=t.countries,s=t.defaultCountry,a=t.value,o=t.reset,l=t.international,u=t.displayInitialValueAsLocalNumber,c=t.initialValueFormat,d=e.defaultCountry,h=e.value,m=e.reset;n.country;var g=n.value,b=n.hasUserSelectedACountry,v=n.latestCountrySelectedByUser,E=function(P){return nbe(Cx(Cx({},P),{},{international:l,useNationalFormat:u||c==="national",metadata:r}))};if(o!==m)return{phoneDigits:E({value:void 0,defaultCountry:s}),value:void 0,country:s,latestCountrySelectedByUser:void 0,hasUserSelectedACountry:void 0};if(s!==d){var x=!s||N3(s,r),_=!g||l&&g===E({value:void 0,defaultCountry:d}),S=!a&&_;if(!b&&x&&S)return{country:s,phoneDigits:E({value:void 0,defaultCountry:s}),value:void 0}}if(!tZ(a,h)&&!tZ(a,g)){var A,R;if(a){a&&Yye(a),A=Jye(a,r);var T=Kye(i,r);A&&A.country?(!T||T.indexOf(A.country)>=0)&&(R=A.country):(R=ebe(a,{country:void 0,countries:T,metadata:r}),R||s&&a.indexOf(Ac(s,r))===0&&(R=s))}var O;if(a){if(v){var I=R?v===R:wg(a,v,r);I?R||(R=v):O={latestCountrySelectedByUser:void 0}}}else O={latestCountrySelectedByUser:void 0,hasUserSelectedACountry:void 0};return Cx(Cx({},O),{},{phoneDigits:E({phoneNumber:A,value:a,defaultCountry:s}),value:a,country:a?R:s})}}function tZ(t,e){return t===null&&(t=void 0),e===null&&(e=void 0),t===e}var Qht=["name","disabled","readOnly","autoComplete","style","className","inputRef","inputComponent","numberInputProps","smartCaret","countrySelectComponent","countrySelectProps","containerComponent","containerComponentProps","defaultCountry","countries","countryOptionsOrder","labels","flags","flagComponent","flagUrl","addInternationalOption","internationalIcon","displayInitialValueAsLocalNumber","initialValueFormat","onCountryChange","limitMaxLength","countryCallingCodeEditable","focusInputOnCountrySelection","reset","metadata","international","locales"];function n0(t){"@babel/helpers - typeof";return n0=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n0(t)}function nZ(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function rbe(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};
161e%2?nZ(Object(n),!0).forEach(function(r){jo(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):nZ(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function Sg(){return Sg=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Sg.apply(this,arguments)}function Zht(t,e){if(t==null)return{};var n=Jht(t,e),r,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);for(i=0;i<s.length;i++)r=s[i],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function Jht(t,e){if(t==null)return{};var n={},r=Object.keys(t),i,s;for(s=0;s<r.length;s++)i=r[s],!(e.indexOf(i)>=0)&&(n[i]=t[i]);return n}function ept(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function rZ(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,sbe(r.key),r)}}function tpt(t,e,n){return e&&rZ(t.prototype,e),n&&rZ(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function npt(t,e,n){return e=rC(e),rpt(t,ibe()?Reflect.construct(e,n||[],rC(t).constructor):e.apply(t,n))}function rpt(t,e){if(e&&(n0(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ipt(t)}function ipt(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function ibe(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(ibe=function(){return!!t})()}function rC(t){return rC=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},rC(t)}function spt(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&E9(t,e)}function E9(t,e){return E9=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},E9(t,e)}function jo(t,e,n){return e=sbe(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function sbe(t){var e=apt(t,"string");return n0(e)=="symbol"?e:e+""}function apt(t,e){if(n0(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(n0(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var opt=(function(t){function e(n){var r;ept(this,e),r=npt(this,e,[n]),jo(r,"setInputRef",function(v){Pht([r.props.inputRef,r.inputRef],v)}),jo(r,"isCountrySupportedWithError",function(v){var E=r.props.metadata;return N3(v,E)}),jo(r,"onCountryChange",function(v){var E=r.props,x=E.international,_=E.metadata,S=E.onChange,A=E.focusInputOnCountrySelection,R=r.state,T=R.phoneDigits,O=R.country,I=Hht(T,{prevCountry:O,newCountry:v,metadata:_,useNationalFormat:!x}),D=ag(I,v,_);A&&r.inputRef.current.focus(),r.setState({country:v,latestCountrySelectedByUser:v,hasUserSelectedACountry:!0,phoneDigits:I,value:D},function(){S(D)})}),jo(r,"onChange",function(v){var E=r.props,x=E.defaultCountry,_=E.onChange,S=E.addInternationalOption,A=E.international,R=E.limitMaxLength,T=E.countryCallingCodeEditable,O=E.metadata,I=r.state,D=I.countries,P=I.phoneDigits,B=I.country,L=I.latestCountrySelectedByUser,$=zht(v,{prevPhoneDigits:P,country:B,countryRequired:!S,defaultCountry:x,latestCountrySelectedByUser:L,getAnyCountry:function(){return r.getFirstSupportedCountry({countries:D})},countries:D,international:A,limitMaxLength:R,countryCallingCodeEditable:T,metadata:O}),q=$.phoneDigits,F=$.country,G=$.value,H={phoneDigits:q,value:G,country:F};L&&G&&!wg(G,L,O)&&(H.latestCountrySelectedByUser=void 0),T===!1&&!G&&q===r.state.phoneDigits&&(H.forceRerender={}),r.setState(H,function(){return _(G)})}),jo(r,"_onFocus",function(){return r.setState({isFocused:!0})}),jo(r,"_onBlur",function(){return r.setState({isFocused:!1})}),jo(r,"onFocus",function(v){r._onFocus();var E=r.props.onFocus;E&&E(v)}),jo(r,"onBlur",function(v){var E=r.props.onBlur;r._onBlur(),E&&E(v)}),jo(r,"onCountryFocus",function(v){r._onFocus();var E=r.props.countrySelectProps;if(E){var x=E.onFocus;x&&x(v)}}),jo(r,"onCountryBlur",function(v){r._onBlur();var E=r.props.countrySelectProps;if(E){var x=E.onBlur;x&&x(v)}}),r.inputRef=U.createRef();var i=r.props,s=i.value;i.labels;var a=i.international,o=i.addInternationalOption,l=i.displayInitialValueAsLocalNumber,u=i.initialValueFormat,c=i.metadata,d=r.props,h=d.defaultCountry,m=d.countries;h&&(r.isCountrySupportedWithError(h)||(h=void 0)),s&&Yye(s),m=Kye(m,c);var g=Jye(s,c);r.CountryIcon=Xye(r.props);var b=$ht({value:s,phoneNumber:g,defaultCountry:h,required:!o,countries:m||WQ(c),getAnyCountry:function(){return r.getFirstSupportedCountry({countries:m})},metadata:c});return r.state={props:r.props,country:b,countries:m,phoneDigits:nbe({value:s,phoneNumber:g,defaultCountry:h,international:a,useNationalFormat:l||u==="national",metadata:c}),value:s},r}
161return spt(e,t),tpt(e,[{key:"componentDidMount",value:function(){var r=this.props.onCountryChange,i=this.props.defaultCountry,s=this.state.country;r&&(i&&(this.isCountrySupportedWithError(i)||(i=void 0)),s!==i&&r(s))}},{key:"componentDidUpdate",value:function(r,i){var s=this.props.onCountryChange,a=this.state.country;s&&a!==i.country&&s(a)}},{key:"getCountrySelectOptions",value:function(r){var i=r.countries,s=this.props,a=s.international,o=s.countryCallingCodeEditable,l=s.countryOptionsOrder,u=s.addInternationalOption,c=s.labels,d=s.locales,h=s.metadata;return this.useMemoCountrySelectOptions(function(){return Rht(Fht({countries:i||WQ(h),countryNames:c,addInternationalOption:a&&o===!1?!1:u,compareStringsLocales:d}),Nht(l,h))},[i,l,u,c,h])}},{key:"useMemoCountrySelectOptions",value:function(r,i){return(!this.countrySelectOptionsMemoDependencies||!upt(i,this.countrySelectOptionsMemoDependencies))&&(this.countrySelectOptionsMemo=r(),this.countrySelectOptionsMemoDependencies=i),this.countrySelectOptionsMemo}},{key:"getFirstSupportedCountry",value:function(r){var i=r.countries,s=this.getCountrySelectOptions({countries:i});return s[0].value}},{key:"render",value:function(){var r=this.props,i=r.name,s=r.disabled,a=r.readOnly,o=r.autoComplete,l=r.style,u=r.className;r.inputRef;var c=r.inputComponent,d=r.numberInputProps,h=r.smartCaret,m=r.countrySelectComponent,g=r.countrySelectProps,b=r.containerComponent,v=r.containerComponentProps;r.defaultCountry,r.countries,r.countryOptionsOrder;var E=r.labels;r.flags,r.flagComponent,r.flagUrl,r.addInternationalOption,r.internationalIcon,r.displayInitialValueAsLocalNumber,r.initialValueFormat,r.onCountryChange,r.limitMaxLength,r.countryCallingCodeEditable,r.focusInputOnCountrySelection,r.reset;var x=r.metadata,_=r.international;r.locales;var S=Zht(r,Qht),A=this.state,R=A.country,T=A.countries,O=A.phoneDigits,I=A.isFocused,D=h?rht:lht,P=this.getCountrySelectOptions({countries:T});return U.createElement(b,Sg({style:l,className:Oi(u,"PhoneInput",{"PhoneInput--focus":I,"PhoneInput--disabled":s,"PhoneInput--readOnly":a})},v),U.createElement(m,Sg({name:i?"".concat(i,"Country"):void 0,"aria-label":E.country},g,{value:R,options:P,onChange:this.onCountryChange,onFocus:this.onCountryFocus,onBlur:this.onCountryBlur,disabled:s||g&&g.disabled,readOnly:a||g&&g.readOnly,iconComponent:this.CountryIcon})),U.createElement(D,Sg({ref:this.setInputRef,type:"tel",autoComplete:o},d,S,{inputFormat:_===!0?"INTERNATIONAL":_===!1?"NATIONAL":"INTERNATIONAL_OR_NATIONAL",international:_?!0:void 0,withCountryCallingCode:_?!0:void 0,name:i,metadata:x,country:R,value:O||"",onChange:this.onChange,onFocus:this.onFocus,onBlur:this.onBlur,disabled:s,readOnly:a,inputComponent:c,className:Oi("PhoneInputInput",d&&d.className,S.className)})))}}],[{key:"getDerivedStateFromProps",value:function(r,i){return rbe({props:r},Xht(r,i.props,i))}}])})(U.PureComponent),abe=U.forwardRef(function(t,e){return U.createElement(opt,Sg({},lpt(t),{inputRef:e}))});abe.propTypes={value:oe.string,onChange:oe.func.isRequired,onFocus:oe.func,onBlur:oe.func,disabled:oe.bool,readOnly:oe.bool,autoComplete:oe.string,initialValueFormat:oe.oneOf(["national"]),displayInitialValueAsLocalNumber:oe.bool,defaultCountry:oe.string,countries:oe.arrayOf(oe.string),labels:Zye,locales:oe.oneOfType([oe.string,oe.arrayOf(oe.string)]),flagUrl:oe.string,flags:oe.objectOf(oe.elementType),flagComponent:oe.elementType,addInternationalOption:oe.bool,internationalIcon:oe.elementType,countryOptionsOrder:oe.arrayOf(oe.string),style:oe.object,className:oe.string,countrySelectComponent:oe.elementType,countrySelectProps:oe.object,inputComponent:oe.elementType,numberInputProps:oe.object,containerComponent:oe.elementType,containerComponentProps:oe.object,smartCaret:oe.bool,international:oe.bool,limitMaxLength:oe.bool,countryCallingCodeEditable:oe.bool,metadata:Qye,onCountryChange:oe.func,focusInputOnCountrySelection:oe.bool};var iZ={autoComplete:"tel",countrySelectComponent:Vye,flagComponent:IF,flagUrl:"https://purecatamphetamine.github.io/country-flag-icons/3x2/{XX}.svg",internationalIcon:R3,inputComponent:"input",containerComponent:"div",reset:oe.any,smartCaret:!0,addInternationalOption:!0,countryCallingCodeEditable:!0,focusInputOnCountrySelection:!0}
161;function lpt(t){t=rbe({},t);for(var e in iZ)t[e]===void 0&&(t[e]=iZ[e]);return t}function upt(t,e){if(t.length!==e.length)return!1;for(var n=0;n<t.length;){if(t[n]!==e[n])return!1;n++}return!0}function _9(t){"@babel/helpers - typeof";return _9=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_9(t)}function obe(t,e,n){if(n||_9(e)==="object"&&(n=e,e="NATIONAL"),!t)return"";var r=Fye(t,n);if(!r)return"";switch(e){case"National":e="NATIONAL";break;case"International":e="INTERNATIONAL";break}return r.format(e)}function cpt(t,e){return obe(t,"INTERNATIONAL",e)}const dpt={ext:"ext.",country:"Phone number country",phone:"Phone",AC:"Ascension Island",AD:"Andorra",AE:"United Arab Emirates",AF:"Afghanistan",AG:"Antigua and Barbuda",AI:"Anguilla",AL:"Albania",AM:"Armenia",AO:"Angola",AQ:"Antarctica",AR:"Argentina",AS:"American Samoa",AT:"Austria",AU:"Australia",AW:"Aruba",AX:"Ã
land Islands",AZ:"Azerbaijan",BA:"Bosnia and Herzegovina",BB:"Barbados",BD:"Bangladesh",BE:"Belgium",BF:"Burkina Faso",BG:"Bulgaria",BH:"Bahrain",BI:"Burundi",BJ:"Benin",BL:"Saint Barthélemy",BM:"Bermuda",BN:"Brunei Darussalam",BO:"Bolivia",BQ:"Bonaire, Sint Eustatius and Saba",BR:"Brazil",BS:"Bahamas",BT:"Bhutan",BV:"Bouvet Island",BW:"Botswana",BY:"Belarus",BZ:"Belize",CA:"Canada",CC:"Cocos (Keeling) Islands",CD:"Congo, Democratic Republic of the",CF:"Central African Republic",CG:"Congo",CH:"Switzerland",CI:"Cote d'Ivoire",CK:"Cook Islands",CL:"Chile",CM:"Cameroon",CN:"China",CO:"Colombia",CR:"Costa Rica",CU:"Cuba",CV:"Cape Verde",CW:"Curaçao",CX:"Christmas Island",CY:"Cyprus",CZ:"Czech Republic",DE:"Germany",DJ:"Djibouti",DK:"Denmark",DM:"Dominica",DO:"Dominican Republic",DZ:"Algeria",EC:"Ecuador",EE:"Estonia",EG:"Egypt",EH:"Western Sahara",ER:"Eritrea",ES:"Spain",ET:"Ethiopia",FI:"Finland",FJ:"Fiji",FK:"Falkland Islands",FM:"Federated States of Micronesia",FO:"Faroe Islands",FR:"France",GA:"Gabon",GB:"United Kingdom",GD:"Grenada",GE:"Georgia",GF:"French Guiana",GG:"Guernsey",GH:"Ghana",GI:"Gibraltar",GL:"Greenland",GM:"Gambia",GN:"Guinea",GP:"Guadeloupe",GQ:"Equatorial Guinea",GR:"Greece",GS:"South Georgia and the South Sandwich Islands",GT:"Guatemala",GU:"Guam",GW:"Guinea-Bissau",GY:"Guyana",HK:"Hong Kong",HM:"Heard Island and McDonald Islands",HN:"Honduras",HR:"Croatia",HT:"Haiti",HU:"Hungary",ID:"Indonesia",IE:"Ireland",IL:"Israel",IM:"Isle of Man",IN:"India",IO:"British Indian Ocean Territory",IQ:"Iraq",IR:"Iran",IS:"Iceland",IT:"Italy",JE:"Jersey",JM:"Jamaica",JO:"Jordan",JP:"Japan",KE:"Kenya",KG:"Kyrgyzstan",KH:"Cambodia",KI:"Kiribati",KM:"Comoros",KN:"Saint Kitts and Nevis",KP:"North Korea",KR:"South Korea",KW:"Kuwait",KY:"Cayman Islands",KZ:"Kazakhstan",LA:"Laos",LB:"Lebanon",LC:"Saint Lucia",LI:"Liechtenstein",LK:"Sri Lanka",LR:"Liberia",LS:"Lesotho",LT:"Lithuania",LU:"Luxembourg",LV:"Latvia",LY:"Libya",MA:"Morocco",MC:"Monaco",MD:"Moldova",ME:"Montenegro",MF:"Saint Martin (French Part)",MG:"Madagascar",MH:"Marshall Islands",MK:"North Macedonia",ML:"Mali",MM:"Myanmar",MN:"Mongolia",MO:"Macao",MP:"Northern Mariana Islands",MQ:"Martinique",MR:"Mauritania",MS:"Montserrat",MT:"Malta",MU:"Mauritius",MV:"Maldives",MW:"Malawi",MX:"Mexico",MY:"Malaysia",MZ:"Mozambique",NA:"Namibia",NC:"New Caledonia",NE:"Niger",NF:"Norfolk Island",NG:"Nigeria",NI:"Nicaragua",NL:"Netherlands",NO:"Norway",NP:"Nepal",NR:"Nauru",NU:"Niue",NZ:"New Zealand",OM:"Oman",PA:"Panama",PE:"Peru",PF:"French Polynesia",PG:"Papua New Guinea",PH:"Philippines",PK:"Pakistan",PL:"Poland",PM:"Saint Pierre and Miquelon",PN:"Pitcairn",PR:"Puerto Rico",PS:"Palestine",PT:"Portugal",PW:"Palau",PY:"Paraguay",QA:"Qatar",RE:"Reunion",RO:"Romania",RS:"Serbia",RU:"Russia",RW:"Rwanda",SA:"Saudi Arabia",SB:"Solomon Islands",SC:"Seychelles",SD:"Sudan",SE:"Sweden",SG:"Singapore",SH:"Saint Helena",SI:"Slovenia",SJ:"Svalbard and Jan Mayen",SK:"Slovakia",SL:"Sierra Leone",SM:"San Marino",SN:"Senegal",SO:"Somalia",SR:"Suriname",SS:"South Sudan",ST:"Sao Tome and Principe",SV:"El Salvador",SX:"Sint Maarten",SY:"Syria",SZ:"Swaziland",TA:"Tristan da Cunha",TC:"Turks and Caicos Islands",TD:"Chad",TF:"French Southern Territories",TG:"Togo",TH:"Thailand",TJ:"Tajikistan",TK:"Tokelau",TL:"Timor-Leste",TM:"Turkmenistan",TN:"Tunisia",TO:"Tonga",TR:"Turkey",TT:"Trinidad and Tobago",TV:"Tuvalu",TW:"Taiwan",TZ:"Tanzania",UA:"Ukraine",UG:"Uganda",UM:"United States Minor Outlying Islands",US:"United States",UY:"Uruguay",UZ:"Uzbekistan",VA:"Holy See (Vatican City State)",VC:"Saint Vincent and the Grenadines",VE:"Venezuela",VG:"Virgin Islands, British",VI:"Virgin Islands, U.S.",VN:"Vietnam",VU:"Vanuatu",WF:"Wallis and Futuna",WS:"Samoa",XA:"Abkhazia",XK:"Kosovo",XO:"South Ossetia",YE:"Yemen",YT:"Mayotte",ZA:"South Africa",ZM:"Zambia",ZW:"Zimbabwe",ZZ:"International"};var fpt=["metadata","labels"];function x9(){return x9=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},x9.apply(this,arguments)}function hpt(t,e){if(t==null)return{};var n=ppt(t,e),r,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);for(i=0;i<s.length;i++)r=s[i],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function ppt(t,e){if(t==null)return{};var n={},r=Object.keys(t),i,s;for(s=0;s<r.length;s++)i=r[s],!(e.indexOf(i)>=0)&&(n[i]=t[i]);return n}function lbe(t){var e=U.forwardRef(function(n,r){var i=n.metadata,s=i===void 0?t:i,a=n.labels,o=a===void 0?dpt:a,l=hpt(n,fpt);return U.createElement(abe,x9({},l,{ref:r,metadata:s,labels:o}))});return e.propTypes={metadata:Qye,labels:Zye},e}lbe();function DF(t,e){var n=Array.prototype.slice.call(e);return n.push(CF),t.apply(this,n)}
161const YIt=lbe(CF);function KIt(){return DF(obe,arguments)}function XIt(){return DF(cpt,arguments)}function QIt(){return DF(Ndt,arguments)}function mpt(t,e){var n=Array.prototype.slice.call(e);return n.push(CF),t.apply(this,n)}function ZIt(){return mpt(Wft,arguments)}const JIt={AC:"40123",AD:"312345",AE:"501234567",AF:"701234567",AG:"2684641234",AI:"2642351234",AL:"672123456",AM:"77123456",AO:"923123456",AR:"91123456789",AS:"6847331234",AT:"664123456",AU:"412345678",AW:"5601234",AX:"412345678",AZ:"401234567",BA:"61123456",BB:"2462501234",BD:"1812345678",BE:"450001234",BF:"70123456",BG:"43012345",BH:"36001234",BI:"79561234",BJ:"0195123456",BL:"690001234",BM:"4413701234",BN:"7123456",BO:"71234567",BQ:"3181234",BR:"11961234567",BS:"2423591234",BT:"17123456",BW:"71123456",BY:"294911911",BZ:"6221234",CA:"5062345678",CC:"412345678",CD:"991234567",CF:"70012345",CG:"061234567",CH:"781234567",CI:"0123456789",CK:"71234",CL:"221234567",CM:"671234567",CN:"13123456789",CO:"3211234567",CR:"83123456",CU:"51234567",CV:"9911234",CW:"95181234",CX:"412345678",CY:"96123456",CZ:"601123456",DE:"15123456789",DJ:"77831001",DK:"34412345",DM:"7672251234",DO:"8092345678",DZ:"551234567",EC:"991234567",EE:"51234567",EG:"1001234567",EH:"650123456",ER:"7123456",ES:"612345678",ET:"911234567",FI:"412345678",FJ:"7012345",FK:"51234",FM:"3501234",FO:"211234",FR:"612345678",GA:"06031234",GB:"7400123456",GD:"4734031234",GE:"555123456",GF:"694201234",GG:"7781123456",GH:"231234567",GI:"57123456",GL:"221234",GM:"3012345",GN:"601123456",GP:"690001234",GQ:"222123456",GR:"6912345678",GT:"51234567",GU:"6713001234",GW:"955012345",GY:"6091234",HK:"51234567",HN:"91234567",HR:"921234567",HT:"34101234",HU:"201234567",ID:"812345678",IE:"850123456",IL:"502345678",IM:"7924123456",IN:"8123456789",IO:"3801234",IQ:"7912345678",IR:"9123456789",IS:"6111234",IT:"3123456789",JE:"7797712345",JM:"8762101234",JO:"790123456",JP:"9012345678",KE:"712123456",KG:"700123456",KH:"91234567",KI:"72001234",KM:"3212345",KN:"8697652917",KP:"1921234567",KR:"1020000000",KW:"50012345",KY:"3453231234",KZ:"7710009998",LA:"2023123456",LB:"71123456",LC:"7582845678",LI:"660234567",LK:"712345678",LR:"770123456",LS:"50123456",LT:"61234567",LU:"628123456",LV:"21234567",LY:"912345678",MA:"650123456",MC:"612345678",MD:"62112345",ME:"60123456",MF:"690001234",MG:"321234567",MH:"2351234",MK:"72345678",ML:"65012345",MM:"92123456",MN:"88123456",MO:"66123456",MP:"6702345678",MQ:"696201234",MR:"22123456",MS:"6644923456",MT:"96961234",MU:"52512345",MV:"7712345",MW:"991234567",MX:"2221234567",MY:"123456789",MZ:"821234567",NA:"811234567",NC:"751234",NE:"93123456",NF:"381234",NG:"8021234567",NI:"81234567",NL:"612345678",NO:"40612345",NP:"9841234567",NR:"5551234",NU:"8884012",NZ:"211234567",OM:"92123456",PA:"61234567",PE:"912345678",PF:"87123456",PG:"70123456",PH:"9051234567",PK:"3012345678",PL:"512345678",PM:"551234",PR:"7872345678",PS:"599123456",PT:"912345678",PW:"6201234",PY:"961456789",QA:"33123456",RE:"692123456",RO:"712034567",RS:"601234567",RU:"9123456789",RW:"720123456",SA:"512345678",SB:"7421234",SC:"2510123",SD:"911231234",SE:"701234567",SG:"81234567",SH:"51234",SI:"31234567",SJ:"41234567",SK:"912123456",SL:"25123456",SM:"66661212",SN:"701234567",SO:"71123456",SR:"7412345",SS:"977123456",ST:"9812345",SV:"70123456",SX:"7215205678",SY:"944567890",SZ:"76123456",TA:"8999",TC:"6492311234",TD:"63012345",TG:"90112345",TH:"812345678",TJ:"917123456",TK:"7290",TL:"77212345",TM:"66123456",TN:"20123456",TO:"7715123",TR:"5012345678",TT:"8682911234",TV:"901234",TW:"912345678",TZ:"621234567",UA:"501234567",UG:"712345678",US:"2015550123",UY:"94231234",UZ:"912345678",VA:"3123456789",VC:"7844301234",VE:"4121234567",VG:"2843001234",VI:"3406421234",VN:"912345678",VU:"5912345",WF:"821234",WS:"7212345",XK:"43201234",YE:"712345678",YT:"639012345",ZA:"711234567",ZM:"955123456",ZW:"712345678"};var O3="Switch",[gpt]=Ji(O3),[ypt,bpt]=gpt(O3),ube=C.forwardRef((t,e)=>{const{__scopeSwitch:n,name:r,checked:i,defaultChecked:s,required:a,disabled:o,value:l="on",onCheckedChange:u,form:c,...d}=t,[h,m]=C.useState(null),g=nn(e,_=>
161m(_)),b=C.useRef(!1),v=h?c||!!h.closest("form"):!0,[E,x]=fa({prop:i,defaultProp:s??!1,onChange:u,caller:O3});return j.jsxs(ypt,{scope:n,checked:E,disabled:o,children:[j.jsx(wt.button,{type:"button",role:"switch","aria-checked":E,"aria-required":a,"data-state":hbe(E),"data-disabled":o?"":void 0,disabled:o,value:l,...d,ref:g,onClick:tt(t.onClick,_=>{x(S=>!S),v&&(b.current=_.isPropagationStopped(),b.current||_.stopPropagation())})}),v&&j.jsx(fbe,{control:h,bubbles:!b.current,name:r,value:l,checked:E,required:a,disabled:o,form:c,style:{transform:"translateX(-100%)"}})]})});ube.displayName=O3;var cbe="SwitchThumb",dbe=C.forwardRef((t,e)=>{const{__scopeSwitch:n,...r}=t,i=bpt(cbe,n);return j.jsx(wt.span,{"data-state":hbe(i.checked),"data-disabled":i.disabled?"":void 0,...r,ref:e})});dbe.displayName=cbe;var vpt="SwitchBubbleInput",fbe=C.forwardRef(({__scopeSwitch:t,control:e,checked:n,bubbles:r=!0,...i},s)=>{const a=C.useRef(null),o=nn(a,s),l=WT(n),u=GT(e);return C.useEffect(()=>{const c=a.current;if(!c)return;const d=window.HTMLInputElement.prototype,m=Object.getOwnPropertyDescriptor(d,"checked").set;if(l!==n&&m){const g=new Event("click",{bubbles:r});m.call(c,n),c.dispatchEvent(g)}},[l,n,r]),j.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:n,...i,tabIndex:-1,ref:o,style:{...i.style,...u,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});fbe.displayName=vpt;function hbe(t){return t?"checked":"unchecked"}var eMt=ube,tMt=dbe;function Ept(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return C.useMemo(()=>r=>{e.forEach(i=>i(r))},e)}const k3=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function K0(t){const e=Object.prototype.toString.call(t);return e==="[object Window]"||e==="[object global]"}function PF(t){return"nodeType"in t}function Bs(t){var e,n;return t?K0(t)?t:PF(t)&&(e=(n=t.ownerDocument)==null?void 0:n.defaultView)!=null?e:window:window}function LF(t){const{Document:e}=Bs(t);return t instanceof e}function K2(t){return K0(t)?!1:t instanceof Bs(t).HTMLElement}function pbe(t){return t instanceof Bs(t).SVGElement}function X0(t){return t?K0(t)?t.document:PF(t)?LF(t)?t:K2(t)||pbe(t)?t.ownerDocument:document:document:document}const dl=k3?C.useLayoutEffect:C.useEffect;function I3(t){const e=C.useRef(t);return dl(()=>{e.current=t}),C.useCallback(function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return e.current==null?void 0:e.current(...r)},[])}function _pt(){const t=C.useRef(null),e=C.useCallback((r,i)=>{t.current=setInterval(r,i)},[]),n=C.useCallback(()=>{t.current!==null&&(clearInterval(t.current),t.current=null)},[]);return[e,n]}function wv(t,e){e===void 0&&(e=[t]);const n=C.useRef(t);return dl(()=>{n.current!==t&&(n.current=t)},e),n}function X2(t,e){const n=C.useRef();return C.useMemo(()=>{const r=t(n.current);return n.current=r,r},[...e])}function iC(t){const e=I3(t),n=C.useRef(null),r=C.useCallback(i=>{i!==n.current&&e?.(i,n.current),n.current=i},[]);return[n,r]}function sC(t){const e=C.useRef();return C.useEffect(()=>{e.current=t},[t]),e.current}let H4={};function Q2(t,e){return C.useMemo(()=>{if(e)return e;const n=H4[t]==null?0:H4[t]+1;return H4[t]=n,t+"-"+n},[t,e])}function mbe(t){return function(e){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((s,a)=>{const o=Object.entries(a);for(const[l,u]of o){const c=s[l];c!=null&&(s[l]=c+t*u)}return s},{...e})}}const Cg=mbe(1),Sv=mbe(-1);function xpt(t){return"clientX"in t&&"clientY"in t}function M3(t){if(!t)return!1;const{KeyboardEvent:e}=Bs(t.target);return e&&t instanceof e}function wpt(t){if(!t)return!1;const{TouchEvent:e}=Bs(t.target);return e&&t instanceof e}function aC(t){if(wpt(t)){if(t.touches&&t.touches.length){const{clientX:e,clientY:n}=t.touches[0];return{x:e,y:n}}else if(t.changedTouches&&t.changedTouches.length){const{clientX:e,clientY:n}=t.changedTouches[0];return{x:e,y:n}}}return xpt(t)?{x:t.clientX,y:t.clientY}:null}const ep=Object.freeze({Translate:{toString(t){if(!t)return;const{x:e,y:n}=t;return"translate3d("+(e?Math.round(e):0)+"px, "+(n?Math.round(n):0)+"px, 0)"}},Scale:{toString(t){if(!t)return;const{scaleX:e,scaleY:n}=t;return"scaleX("+e+") scaleY("+n+")"}},Transform:{toString(t){if(t)return[ep.Translate.toString(t),ep.Scale.toString(t)].join(" ")}},Transition:{toString(t){let{property:e,duration:n,easing:r}=t;return e+" "+n+"ms "+r}}}),sZ="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";
161function Spt(t){return t.matches(sZ)?t:t.querySelector(sZ)}const Cpt={display:"none"};function Tpt(t){let{id:e,value:n}=t;return U.createElement("div",{id:e,style:Cpt},n)}function Apt(t){let{id:e,announcement:n,ariaLiveType:r="assertive"}=t;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 U.createElement("div",{id:e,style:i,role:"status","aria-live":r,"aria-atomic":!0},n)}function Rpt(){const[t,e]=C.useState("");return{announce:C.useCallback(r=>{r!=null&&e(r)},[]),announcement:t}}const gbe=C.createContext(null);function Npt(t){const e=C.useContext(gbe);C.useEffect(()=>{if(!e)throw new Error("useDndMonitor must be used within a children of <DndContext>");return e(t)},[t,e])}function Opt(){const[t]=C.useState(()=>new Set),e=C.useCallback(r=>(t.add(r),()=>t.delete(r)),[t]);return[C.useCallback(r=>{let{type:i,event:s}=r;t.forEach(a=>{var o;return(o=a[i])==null?void 0:o.call(a,s)})},[t]),e]}const kpt={draggable:` 162 To pick up a draggable item, press the space bar. 163 While dragging, use the arrow keys to move the item. 164 Press space again to drop the item in its new position, or press escape to cancel. 165 `},Ipt={onDragStart(t){let{active:e}=t;return"Picked up draggable item "+e.id+"."},onDragOver(t){let{active:e,over:n}=t;return n?"Draggable item "+e.id+" was moved over droppable area "+n.id+".":"Draggable item "+e.id+" is no longer over a droppable area."},onDragEnd(t){let{active:e,over:n}=t;return n?"Draggable item "+e.id+" was dropped over droppable area "+n.id:"Draggable item "+e.id+" was dropped."},onDragCancel(t){let{active:e}=t;return"Dragging was cancelled. Draggable item "+e.id+" was dropped."}};function Mpt(t){let{announcements:e=Ipt,container:n,hiddenTextDescribedById:r,screenReaderInstructions:i=kpt}=t;const{announce:s,announcement:a}=Rpt(),o=Q2("DndLiveRegion"),[l,u]=C.useState(!1);if(C.useEffect(()=>{u(!0)},[]),Npt(C.useMemo(()=>({onDragStart(d){let{active:h}=d;s(e.onDragStart({active:h}))},onDragMove(d){let{active:h,over:m}=d;e.onDragMove&&s(e.onDragMove({active:h,over:m}))},onDragOver(d){let{active:h,over:m}=d;s(e.onDragOver({active:h,over:m}))},onDragEnd(d){let{active:h,over:m}=d;s(e.onDragEnd({active:h,over:m}))},onDragCancel(d){let{active:h,over:m}=d;s(e.onDragCancel({active:h,over:m}))}}),[s,e])),!l)return null;const c=U.createElement(U.Fragment,null,U.createElement(Tpt,{id:r,value:i.draggable}),U.createElement(Apt,{id:o,announcement:a}));return n?ks.createPortal(c,n):c}var Ai;(function(t){t.DragStart="dragStart",t.DragMove="dragMove",t.DragEnd="dragEnd",t.DragCancel="dragCancel",t.DragOver="dragOver",t.RegisterDroppable="registerDroppable",t.SetDroppableDisabled="setDroppableDisabled",t.UnregisterDroppable="unregisterDroppable"})(Ai||(Ai={}));function oC(){}function nMt(t,e){return C.useMemo(()=>({sensor:t,options:e??{}}),[t,e])}function rMt(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return C.useMemo(()=>[...e].filter(r=>r!=null),[...e])}const fl=Object.freeze({x:0,y:0});function ybe(t,e){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))}function Dpt(t,e){const n=aC(t);if(!n)return"0 0";const r={x:(n.x-e.left)/e.width*100,y:(n.y-e.top)/e.height*100};return r.x+"% "+r.y+"%"}function bbe(t,e){let{data:{value:n}}=t,{data:{value:r}}=e;return n-r}function Ppt(t,e){let{data:{value:n}}=t,{data:{value:r}}=e;return r-n}function aZ(t){let{left:e,top:n,height:r,width:i}=t;return[{x:e,y:n},{x:e+i,y:n},{x:e,y:n+r},{x:e+i,y:n+r}]}function vbe(t,e){if(!t||t.length===0)return null;const[n]=t;return n[e]}function oZ(t,e,n){return e===void 0&&(e=t.left),n===void 0&&(n=t.top),{x:e+t.width*.5,y:n+t.height*.5}}const iMt=t=>{let{collisionRect:e,droppableRects:n,droppableContainers:r}=t;const i=oZ(e,e.left,e.top),s=[];for(const a of r){const{id:o}=a,l=n.get(o);if(l){const u=ybe(oZ(l),i);s.push({id:o,data:{droppableContainer:a,value:u}})}}return s.sort(bbe)},Lpt=t=>{let{collisionRect:e,droppableRects:n,droppableContainers:r}=t;const i=aZ(e),s=[];for(const a of r){const{id:o}=a,l=n.get(o);if(l){const u=aZ(l),c=i.reduce((h,m,g)=>h+ybe(u[g],m),0),d=Number((c/4).toFixed(4));s.push({id:o,data:{droppableContainer:a,value:d}})}}return s.sort(bbe)};function $pt(t,e){const n=Math.max(e.top,t.top),r=Math.max(e.left,t.left),i=Math.min(e.left+e.width,t.left+t.width),s=Math.min(e.top+e.height,t.top+t.height),a=i-r,o=s-n;if(r<i&&n<s){const l=e.width*e.height,u=t.width*t.height,c=a*o,d=c/(l+u-c);return Number(d.toFixed(4))}return 0}const Fpt=t=>{let{collisionRect:e,droppableRects:n,droppableContainers:r}=t;const i=[];for(const s of r){const{id:a}=s,o=n.get(a);if(o){const l=$pt(o,e);l>0&&i.push({id:a,data:{droppableContainer:s,value:l}})}}return i.sort(Ppt)};function Bpt(t,e,n){return{...t,scaleX:e&&n?e.width/n.width:1,scaleY:e&&n?e.height/n.height:1}}function Ebe(t,e){return t&&e?{x:t.left-e.left,y:t.top-e.top}:fl}function Hpt(t){return function(n){for(var r=arguments.length,i=new Array(r>1?r-1:0),s=1;s<r;s++)i[s-1]=arguments[s];return i.reduce((a,o)=>({...a,top:a.top+t*o.y,bottom:a.bottom+t*o.y,left:a.left+t*o.x,right:a.right+t*o.x}),{...n})}}const Upt=Hpt(1);function _be(t){if(t.startsWith("matrix3d(")){const e=t.slice(9,-1).split(/, /);return{x:+e[12],y:+e[13],scaleX:+e[0],scaleY:+e[5]}}else if(t.startsWith("matrix(")){const e=t.slice(7,-1).split(/, /);return{x:+e[4],y:+e[5],scaleX:+e[0],scaleY:+e[3]}}return null}function jpt(t,e,n){const r=_be(e);
vendor: 12,235 bytes, line 165
165if(!r)return t;const{scaleX:i,scaleY:s,x:a,y:o}=r,l=t.left-a-(1-i)*parseFloat(n),u=t.top-o-(1-s)*parseFloat(n.slice(n.indexOf(" ")+1)),c=i?t.width/i:t.width,d=s?t.height/s:t.height;return{width:c,height:d,top:u,right:l+c,bottom:u+d,left:l}}const zpt={ignoreTransform:!1};function Q0(t,e){e===void 0&&(e=zpt);let n=t.getBoundingClientRect();if(e.ignoreTransform){const{transform:u,transformOrigin:c}=Bs(t).getComputedStyle(t);u&&(n=jpt(n,u,c))}const{top:r,left:i,width:s,height:a,bottom:o,right:l}=n;return{top:r,left:i,width:s,height:a,bottom:o,right:l}}function lZ(t){return Q0(t,{ignoreTransform:!0})}function Vpt(t){const e=t.innerWidth,n=t.innerHeight;return{top:0,left:0,right:e,bottom:n,width:e,height:n}}function qpt(t,e){return e===void 0&&(e=Bs(t).getComputedStyle(t)),e.position==="fixed"}function Gpt(t,e){e===void 0&&(e=Bs(t).getComputedStyle(t));const n=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(i=>{const s=e[i];return typeof s=="string"?n.test(s):!1})}function D3(t,e){const n=[];function r(i){if(e!=null&&n.length>=e||!i)return n;if(LF(i)&&i.scrollingElement!=null&&!n.includes(i.scrollingElement))return n.push(i.scrollingElement),n;if(!K2(i)||pbe(i)||n.includes(i))return n;const s=Bs(t).getComputedStyle(i);return i!==t&&Gpt(i,s)&&n.push(i),qpt(i,s)?n:r(i.parentNode)}return t?r(t):n}function xbe(t){const[e]=D3(t,1);return e??null}function U4(t){return!k3||!t?null:K0(t)?t:PF(t)?LF(t)||t===X0(t).scrollingElement?window:K2(t)?t:null:null}function wbe(t){return K0(t)?t.scrollX:t.scrollLeft}function Sbe(t){return K0(t)?t.scrollY:t.scrollTop}function w9(t){return{x:wbe(t),y:Sbe(t)}}var $i;(function(t){t[t.Forward=1]="Forward",t[t.Backward=-1]="Backward"})($i||($i={}));function Cbe(t){return!k3||!t?!1:t===document.scrollingElement}function Tbe(t){const e={x:0,y:0},n=Cbe(t)?{height:window.innerHeight,width:window.innerWidth}:{height:t.clientHeight,width:t.clientWidth},r={x:t.scrollWidth-n.width,y:t.scrollHeight-n.height},i=t.scrollTop<=e.y,s=t.scrollLeft<=e.x,a=t.scrollTop>=r.y,o=t.scrollLeft>=r.x;return{isTop:i,isLeft:s,isBottom:a,isRight:o,maxScroll:r,minScroll:e}}const Wpt={x:.2,y:.2};function Ypt(t,e,n,r,i){let{top:s,left:a,right:o,bottom:l}=n;r===void 0&&(r=10),i===void 0&&(i=Wpt);const{isTop:u,isBottom:c,isLeft:d,isRight:h}=Tbe(t),m={x:0,y:0},g={x:0,y:0},b={height:e.height*i.y,width:e.width*i.x};return!u&&s<=e.top+b.height?(m.y=$i.Backward,g.y=r*Math.abs((e.top+b.height-s)/b.height)):!c&&l>=e.bottom-b.height&&(m.y=$i.Forward,g.y=r*Math.abs((e.bottom-b.height-l)/b.height)),!h&&o>=e.right-b.width?(m.x=$i.Forward,g.x=r*Math.abs((e.right-b.width-o)/b.width)):!d&&a<=e.left+b.width&&(m.x=$i.Backward,g.x=r*Math.abs((e.left+b.width-a)/b.width)),{direction:m,speed:g}}function Kpt(t){if(t===document.scrollingElement){const{innerWidth:s,innerHeight:a}=window;return{top:0,left:0,right:s,bottom:a,width:s,height:a}}const{top:e,left:n,right:r,bottom:i}=t.getBoundingClientRect();return{top:e,left:n,right:r,bottom:i,width:t.clientWidth,height:t.clientHeight}}function Abe(t){return t.reduce((e,n)=>Cg(e,w9(n)),fl)}function Xpt(t){return t.reduce((e,n)=>e+wbe(n),0)}function Qpt(t){return t.reduce((e,n)=>e+Sbe(n),0)}function Rbe(t,e){if(e===void 0&&(e=Q0),!t)return;const{top:n,left:r,bottom:i,right:s}=e(t);xbe(t)&&(i<=0||s<=0||n>=window.innerHeight||r>=window.innerWidth)&&t.scrollIntoView({block:"center",inline:"center"})}const Zpt=[["x",["left","right"],Xpt],["y",["top","bottom"],Qpt]];class $F{constructor(e,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=D3(n),i=Abe(r);this.rect={...e},this.width=e.width,this.height=e.height;for(const[s,a,o]of Zpt)for(const l of a)Object.defineProperty(this,l,{get:()=>{const u=o(r),c=i[s]-u;return this.rect[l]+c},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}class vb{constructor(e){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=e}add(e,n,r){var i;(i=this.target)==null||i.addEventListener(e,n,r),this.listeners.push([e,n,r])}}function Jpt(t){const{EventTarget:e}=Bs(t);return t instanceof e?t:X0(t)}function j4(t,e){const n=Math.abs(t.x),r=Math.abs(t.y);return typeof e=="number"?Math.sqrt(n**2+r**2)>e:"x"in e&&"y"in e?n>e.x&&r>e.y:"x"in e?n>e.x:"y"in e?r>e.y:!1}var mo;(function(t){t.Click="click",t.DragStart="dragstart",t.Keydown="keydown",t.ContextMenu="contextmenu",t.Resize="resize",t.SelectionChange="selectionchange",t.VisibilityChange="visibilitychange"})(mo||(mo={}));function uZ(t){t.preventDefault()}function emt(t){t.stopPropagation()}var Sn;(function(t){t.Space="Space",t.Down="ArrowDown",t.Right="ArrowRight",t.Left="ArrowLeft",t.Up="ArrowUp",t.Esc="Escape",t.Enter="Enter",t.Tab="Tab"})(Sn||(Sn={}));const Nbe={start:[Sn.Space,Sn.Enter],cancel:[Sn.Esc],end:[Sn.Space,Sn.Enter,Sn.Tab]},tmt=(t,e)=>{let{currentCoordinates:n}=e;switch(t.code){case Sn.Right:return{...n,x:n.x+25};case Sn.Left:return{...n,x:n.x-25};case Sn.Down:return{...n,y:n.y+25};case Sn.Up:return{...n,y:n.y-25}}};class Obe{constructor(e){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=e;const{event:{target:n}}=e;this.props=e,this.listeners=new vb(X0(n)),this.windowListeners=new vb(Bs(n)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(mo.Resize,this.handleCancel),this.windowListeners.add(mo.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(mo.Keydown,this.handleKeyDown))}handleStart(){const{activeNode:e,onStart:n}=this.props,r=e.node.current;r&&Rbe(r),n(fl)}handleKeyDown(e){if(M3(e)){const{active:n,context:r,options:i}=this.props,{keyboardCodes:s=Nbe,coordinateGetter:a=tmt,scrollBehavior:o="smooth"}=i,{code:l}=e;if(s.end.includes(l)){this.handleEnd(e);return}if(s.cancel.includes(l)){this.handleCancel(e);return}const{collisionRect:u}=r.current,c=u?{x:u.left,y:u.top}:fl;this.referenceCoordinates||(this.referenceCoordinates=c);const d=a(e,{active:n,context:r.current,currentCoordinates:c});if(d){const h=Sv(d,c),m={x:0,y:0},{scrollableAncestors:g}=r.current;for(const b of g){const v=e.code,{isTop:E,isRight:x,isLeft:_,isBottom:S,maxScroll:A,minScroll:R}=Tbe(b),T=Kpt(b),O={x:Math.min(v===Sn.Right?T.right-T.width/2:T.right,Math.max(v===Sn.Right?T.left:T.left+T.width/2,d.x)),y:Math.min(v===Sn.Down?T.bottom-T.height/2:T.bottom,Math.max(v===Sn.Down?T.top:T.top+T.height/2,d.y))},I=v===Sn.Right&&!x||v===Sn.Left&&!_,D=v===Sn.Down&&!S||v===Sn.Up&&!E;if(I&&O.x!==d.x){const P=b.scrollLeft+h.x,B=v===Sn.Right&&P<=A.x||v===Sn.Left&&P>=R.x;if(B&&!h.y){b.scrollTo({left:P,behavior:o});return}B?m.x=b.scrollLeft-P:m.x=v===Sn.Right?b.scrollLeft-A.x:b.scrollLeft-R.x,m.x&&b.scrollBy({left:-m.x,behavior:o});break}else if(D&&O.y!==d.y){const P=b.scrollTop+h.y,B=v===Sn.Down&&P<=A.y||v===Sn.Up&&P>=R.y;if(B&&!h.x){b.scrollTo({top:P,behavior:o});return}B?m.y=b.scrollTop-P:m.y=v===Sn.Down?b.scrollTop-A.y:b.scrollTop-R.y,m.y&&b.scrollBy({top:-m.y,behavior:o});break}}this.handleMove(e,Cg(Sv(d,this.referenceCoordinates),m))}}}handleMove(e,n){const{onMove:r}=this.props;e.preventDefault(),r(n)}handleEnd(e){const{onEnd:n}=this.props;e.preventDefault(),this.detach(),n()}handleCancel(e){const{onCancel:n}=this.props;e.preventDefault(),this.detach(),n()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}}Obe.activators=[{eventName:"onKeyDown",handler:(t,e,n)=>{let{keyboardCodes:r=Nbe,onActivation:i}=e,{active:s}=n;const{code:a}=t.nativeEvent;if(r.start.includes(a)){const o=s.activatorNode.current;return o&&t.target!==o?!1:(t.preventDefault(),i?.({event:t.nativeEvent}),!0)}return!1}}];function cZ(t){return!!(t&&"distance"in t)}function dZ(t){return!!(t&&"delay"in t)}class FF{constructor(e,n,r){var i;r===void 0&&(r=Jpt(e.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=e,this.events=n;const{event:s}=e,{target:a}=s;this.props=e,this.events=n,this.document=X0(a),this.documentListeners=new vb(this.document),this.listeners=new vb(r),this.windowListeners=new vb(Bs(a)),this.initialCoordinates=(i=aC(s))!=null?i:fl,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:e,props:{options:{activationConstraint:n,bypassActivationConstraint:r}}}=this;if(this.listeners.add(e.move.name,this.handleMove,{passive:!1}),this.listeners.add(e.end.name,this.handleEnd),e.cancel&&this.listeners.add(e.cancel.name,this.handleCancel),this.windowListeners.add(mo.Resize,this.handleCancel),this.windowListeners.add(mo.DragStart,uZ),this.windowListeners.add(mo.VisibilityChange,this.handleCancel),this.windowListeners.add(mo.ContextMenu,uZ),this.documentListeners.add(mo.Keydown,this.handleKeydown),n){if(r!=null&&r({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(dZ(n)){this.timeoutId=setTimeout(this.handleStart,n.delay),this.handlePending(n);return}if(cZ(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(e,n){const{active:r,onPending:i}=this.props;i(r,e,this.initialCoordinates,n)}handleStart(){const{initialCoordinates:e}=this,{onStart:n}=this.props;e&&(this.activated=!0,this.documentListeners.add(mo.Click,emt,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(mo.SelectionChange,this.removeTextSelection),n(e))}handleMove(e){var n;const{activated:r,initialCoordinates:i,props:s}=this,{onMove:a,options:{activationConstraint:o}}=s;if(!i)return;const l=(n=aC(e))!=null?n:fl,u=Sv(i,l);if(!r&&o){if(cZ(o)){if(o.tolerance!=null&&j4(u,o.tolerance))return this.handleCancel();if(j4(u,o.distance))return this.handleStart()}if(dZ(o)&&j4(u,o.tolerance))return this.handleCancel();this.handlePending(o,u);return}e.cancelable&&e.preventDefault(),a(l)}handleEnd(){const{onAbort:e,onEnd:n}=this.props;this.detach(),this.activated||e(this.props.active),n()}handleCancel(){const{onAbort:e,onCancel:n}=this.props;this.detach(),this.activated||e(this.props.active),n()}handleKeydown(e){e.code===Sn.Esc&&this.handleCancel()}removeTextSelection(){var e;(e=this.document.getSelection())==null||e.removeAllRanges()}}const nmt={cancel:{name:"pointercancel"},move:{name:"pointermove"},end:{name:"pointerup"}};class kbe extends FF{constructor(e){const{event:n}=e,r=X0(n.target);super(e,nmt,r)}}kbe.activators=[{eventName:"onPointerDown",handler:(t,e)=>{let{nativeEvent:n}=t,{onActivation:r}=e;return!n.isPrimary||n.button!==0?!1:(r?.({event:n}),!0)}}];const rmt={move:{name:"mousemove"},end:{name:"mouseup"}};var S9;(function(t){t[t.RightClick=2]="RightClick"})(S9||(S9={}));class imt extends FF{constructor(e){super(e,rmt,X0(e.event.target))}}imt.activators=[{eventName:"onMouseDown",handler:(t,e)=>{let{nativeEvent:n}=t,{onActivation:r}=e;return n.button===S9.RightClick?!1:(r?.({event:n}),!0)}}];const z4={cancel:{name:"touchcancel"},move:{name:"touchmove"},end:{name:"touchend"}};class smt extends FF{constructor(e){super(e,z4)}static setup(){return window.addEventListener(z4.move.name,e,{capture:!1,passive:!1}),function(){window.removeEventListener(z4.move.name,e)};function e(){}}}smt.activators=[{eventName:"onTouchStart",handler:(t,e)=>{let{nativeEvent:n}=t,{onActivation:r}=e;const{touches:i}=n;return i.length>1?!1:(r?.({event:n}),!0)}}];var Eb;(function(t){t[t.Pointer=0]="Pointer",t[t.DraggableRect=1]="DraggableRect"})(Eb||(Eb={}));var lC;(function(t){t[t.TreeOrder=0]="TreeOrder",t[t.ReversedTreeOrder=1]="Rever
165sedTreeOrder"})(lC||(lC={}));function amt(t){let{acceleration:e,activator:n=Eb.Pointer,canScroll:r,draggingRect:i,enabled:s,interval:a=5,order:o=lC.TreeOrder,pointerCoordinates:l,scrollableAncestors:u,scrollableAncestorRects:c,delta:d,threshold:h}=t;const m=lmt({delta:d,disabled:!s}),[g,b]=_pt(),v=C.useRef({x:0,y:0}),E=C.useRef({x:0,y:0}),x=C.useMemo(()=>{switch(n){case Eb.Pointer:return l?{top:l.y,bottom:l.y,left:l.x,right:l.x}:null;case Eb.DraggableRect:return i}},[n,i,l]),_=C.useRef(null),S=C.useCallback(()=>{const R=_.current;if(!R)return;const T=v.current.x*E.current.x,O=v.current.y*E.current.y;R.scrollBy(T,O)},[]),A=C.useMemo(()=>o===lC.TreeOrder?[...u].reverse():u,[o,u]);C.useEffect(()=>{if(!s||!u.length||!x){b();return}for(const R of A){if(r?.(R)===!1)continue;const T=u.indexOf(R),O=c[T];if(!O)continue;const{direction:I,speed:D}=Ypt(R,O,x,e,h);for(const P of["x","y"])m[P][I[P]]||(D[P]=0,I[P]=0);if(D.x>0||D.y>0){b(),_.current=R,g(S,a),v.current=D,E.current=I;return}}v.current={x:0,y:0},E.current={x:0,y:0},b()},[e,S,r,b,s,a,JSON.stringify(x),JSON.stringify(m),g,u,A,c,JSON.stringify(h)])}const omt={x:{[$i.Backward]:!1,[$i.Forward]:!1},y:{[$i.Backward]:!1,[$i.Forward]:!1}};function lmt(t){let{delta:e,disabled:n}=t;const r=sC(e);return X2(i=>{if(n||!r||!i)return omt;const s={x:Math.sign(e.x-r.x),y:Math.sign(e.y-r.y)};return{x:{[$i.Backward]:i.x[$i.Backward]||s.x===-1,[$i.Forward]:i.x[$i.Forward]||s.x===1},y:{[$i.Backward]:i.y[$i.Backward]||s.y===-1,[$i.Forward]:i.y[$i.Forward]||s.y===1}}},[n,e,r])}function umt(t,e){const n=e!=null?t.get(e):void 0,r=n?n.node.current:null;return X2(i=>{var s;return e==null?null:(s=r??i)!=null?s:null},[r,e])}function cmt(t,e){return C.useMemo(()=>t.reduce((n,r)=>{const{sensor:i}=r,s=i.activators.map(a=>({eventName:a.eventName,handler:e(a.handler,r)}));return[...n,...s]},[]),[t,e])}var Cv;(function(t){t[t.Always=0]="Always",t[t.BeforeDragging=1]="BeforeDragging",t[t.WhileDragging=2]="WhileDragging"})(Cv||(Cv={}));var C9;(function(t){t.Optimized="optimized"})(C9||(C9={}));const fZ=new Map;function dmt(t,e){let{dragging:n,dependencies:r,config:i}=e;const[s,a]=C.useState(null),{frequency:o,measure:l,strategy:u}=i,c=C.useRef(t),d=v(),h=wv(d),m=C.useCallback(function(E){E===void 0&&(E=[]),!h.current&&a(x=>x===null?E:x.concat(E.filter(_=>!x.includes(_))))},[h]),g=C.useRef(null),b=X2(E=>{if(d&&!n)return fZ;if(!E||E===fZ||c.current!==t||s!=null){const x=new Map;for(let _ of t){if(!_)continue;if(s&&s.length>0&&!s.includes(_.id)&&_.rect.current){x.set(_.id,_.rect.current);continue}const S=_.node.current,A=S?new $F(l(S),S):null;_.rect.current=A,A&&x.set(_.id,A)}return x}return E},[t,s,n,d,l]);return C.useEffect(()=>{c.current=t},[t]),C.useEffect(()=>{d||m()},[n,d]),C.useEffect(()=>{s&&s.length>0&&a(null)},[JSON.stringify(s)]),C.useEffect(()=>{d||typeof o!="number"||g.current!==null||(g.current=setTimeout(()=>{m(),g.current=null},o))},[o,d,m,...r]),{droppableRects:b,measureDroppableContainers:m,measuringScheduled:s!=null};function v(){switch(u){case Cv.Always:return!1;case Cv.BeforeDragging:return n;default:return!n}}}function BF(t,e){return X2(n=>t?n||(typeof e=="function"?e(t):t):null,[e,t])}function fmt(t,e){return BF(t,e)}function hmt(t){let{callback:e,disabled:n}=t;const r=I3(e),i=C.useMemo(()=>{if(n||typeof window>"u"||typeof window.MutationObserver>"u")return;const{MutationObserver:s}=window;return new s(r)},[r,n]);return C.useEffect(()=>()=>i?.disconnect(),[i]),i}function P3(t){let{callback:e,disabled:n}=t;const r=I3(e),i=C.useMemo(()=>{if(n||typeof window>"u"||typeof window.ResizeObserver>"u")return;const{ResizeObserver:s}=window;return new s(r)},[n]);return C.useEffect(()=>()=>i?.disconnect(),[i]),i}function pmt(t){return new $F(Q0(t),t)}function hZ(t,e,n){e===void 0&&(e=pmt);const[r,i]=C.useState(null);function s(){i(l=>{if(!t)return null;if(t.isConnected===!1){var u;return(u=l??n)!=null?u:null}const c=e(t);return JSON.stringify(l)===JSON.stringify(c)?l:c})}const a=hmt({callback(l){if(t)for(const u of l){const{type:c,target:d}=u;if(c==="childList"&&d instanceof HTMLElement&&d.contains(t)){s();break}}}}),o=P3({callback:s});return dl(()=>{s(),t?(o?.observe(t),a?.observe(document.body,{childList:!0,subtree:!0})):(o?.disconnect(),a?.disconnect())},[t]),r}function mmt(t){const e=BF(t);return Ebe(t,e)}const pZ=[];function gmt(t){const e=C.useRef(t),n=X2(r=>t?r&&r!==pZ&&t&&e.current&&t.parentNode===e.current.parentNode?r:D3(t):pZ,[t]);return C.useEffect(()=>{e.current=t},[t]),n}function ymt(t){const[e,n]=C.useState(null),r=C.useRef(t),i=C.useCallback(s=>{const a=U4(s.target);a&&n(o=>
165o?(o.set(a,w9(a)),new Map(o)):null)},[]);return C.useEffect(()=>{const s=r.current;if(t!==s){a(s);const o=t.map(l=>{const u=U4(l);return u?(u.addEventListener("scroll",i,{passive:!0}),[u,w9(u)]):null}).filter(l=>l!=null);n(o.length?new Map(o):null),r.current=t}return()=>{a(t),a(s)};function a(o){o.forEach(l=>{const u=U4(l);u?.removeEventListener("scroll",i)})}},[i,t]),C.useMemo(()=>t.length?e?Array.from(e.values()).reduce((s,a)=>Cg(s,a),fl):Abe(t):fl,[t,e])}function mZ(t,e){e===void 0&&(e=[]);const n=C.useRef(null);return C.useEffect(()=>{n.current=null},e),C.useEffect(()=>{const r=t!==fl;r&&!n.current&&(n.current=t),!r&&n.current&&(n.current=null)},[t]),n.current?Sv(t,n.current):fl}function bmt(t){C.useEffect(()=>{if(!k3)return;const e=t.map(n=>{let{sensor:r}=n;return r.setup==null?void 0:r.setup()});return()=>{for(const n of e)n?.()}},t.map(e=>{let{sensor:n}=e;return n}))}function vmt(t,e){return C.useMemo(()=>t.reduce((n,r)=>{let{eventName:i,handler:s}=r;return n[i]=a=>{s(a,e)},n},{}),[t,e])}function Ibe(t){return C.useMemo(()=>t?Vpt(t):null,[t])}const gZ=[];function Emt(t,e){e===void 0&&(e=Q0);const[n]=t,r=Ibe(n?Bs(n):null),[i,s]=C.useState(gZ);function a(){s(()=>t.length?t.map(l=>Cbe(l)?r:new $F(e(l),l)):gZ)}const o=P3({callback:a});return dl(()=>{o?.disconnect(),a(),t.forEach(l=>o?.observe(l))},[t]),i}function Mbe(t){if(!t)return null;if(t.children.length>1)return t;const e=t.children[0];return K2(e)?e:t}function _mt(t){let{measure:e}=t;const[n,r]=C.useState(null),i=C.useCallback(u=>{for(const{target:c}of u)if(K2(c)){r(d=>{const h=e(c);return d?{...d,width:h.width,height:h.height}:h});break}},[e]),s=P3({callback:i}),a=C.useCallback(u=>{const c=Mbe(u);s?.disconnect(),c&&s?.observe(c),r(c?e(c):null)},[e,s]),[o,l]=iC(a);return C.useMemo(()=>({nodeRef:o,rect:n,setRef:l}),[n,o,l])}const xmt=[{sensor:kbe,options:{}},{sensor:Obe,options:{}}],wmt={current:{}},Uw={draggable:{measure:lZ},droppable:{measure:lZ,strategy:Cv.WhileDragging,frequency:C9.Optimized},dragOverlay:{measure:Q0}};class _b extends Map{get(e){var n;return e!=null&&(n=super.get(e))!=null?n:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter(e=>{let{disabled:n}=e;return!n})}getNodeFor(e){var n,r;return(n=(r=this.get(e))==null?void 0:r.node.current)!=null?n:void 0}}const Smt={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new _b,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:oC},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:Uw,measureDroppableContainers:oC,windowRect:null,measuringScheduled:!1},Dbe={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:oC,draggableNodes:new Map,over:null,measureDroppableContainers:oC},Z2=C.createContext(Dbe),Pbe=C.createContext(Smt);function Cmt(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new _b}}}function Tmt(t,e){switch(e.type){case Ai.DragStart:return{...t,draggable:{...t.draggable,initialCoordinates:e.initialCoordinates,active:e.active}};case Ai.DragMove:return t.draggable.active==null?t:{...t,draggable:{...t.draggable,translate:{x:e.coordinates.x-t.draggable.initialCoordinates.x,y:e.coordinates.y-t.draggable.initialCoordinates.y}}};case Ai.DragEnd:case Ai.DragCancel:return{...t,draggable:{...t.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case Ai.RegisterDroppable:{const{element:n}=e,{id:r}=n,i=new _b(t.droppable.containers);return i.set(r,n),{...t,droppable:{...t.droppable,containers:i}}}case Ai.SetDroppableDisabled:{const{id:n,key:r,disabled:i}=e,s=t.droppable.containers.get(n);if(!s||r!==s.key)return t;const a=new _b(t.droppable.containers);return a.set(n,{...s,disabled:i}),{...t,droppable:{...t.droppable,containers:a}}}case Ai.UnregisterDroppable:{const{id:n,key:r}=e,i=t.droppable.containers.get(n);if(!i||r!==i.key)return t;
165const s=new _b(t.droppable.containers);return s.delete(n),{...t,droppable:{...t.droppable,containers:s}}}default:return t}}function Amt(t){let{disabled:e}=t;const{active:n,activatorEvent:r,draggableNodes:i}=C.useContext(Z2),s=sC(r),a=sC(n?.id);return C.useEffect(()=>{if(!e&&!r&&s&&a!=null){if(!M3(s)||document.activeElement===s.target)return;const o=i.get(a);if(!o)return;const{activatorNode:l,node:u}=o;if(!l.current&&!u.current)return;requestAnimationFrame(()=>{for(const c of[l.current,u.current]){if(!c)continue;const d=Spt(c);if(d){d.focus();break}}})}},[r,e,i,a,s]),null}function Lbe(t,e){let{transform:n,...r}=e;return t!=null&&t.length?t.reduce((i,s)=>s({transform:i,...r}),n):n}function Rmt(t){return C.useMemo(()=>({draggable:{...Uw.draggable,...t?.draggable},droppable:{...Uw.droppable,...t?.droppable},dragOverlay:{...Uw.dragOverlay,...t?.dragOverlay}}),[t?.draggable,t?.droppable,t?.dragOverlay])}function Nmt(t){let{activeNode:e,measure:n,initialRect:r,config:i=!0}=t;const s=C.useRef(!1),{x:a,y:o}=typeof i=="boolean"?{x:i,y:i}:i;dl(()=>{if(!a&&!o||!e){s.current=!1;return}if(s.current||!r)return;const u=e?.node.current;if(!u||u.isConnected===!1)return;const c=n(u),d=Ebe(c,r);if(a||(d.x=0),o||(d.y=0),s.current=!0,Math.abs(d.x)>0||Math.abs(d.y)>0){const h=xbe(u);h&&h.scrollBy({top:d.y,left:d.x})}},[e,a,o,r,n])}const L3=C.createContext({...fl,scaleX:1,scaleY:1});var Pd;(function(t){t[t.Uninitialized=0]="Uninitialized",t[t.Initializing=1]="Initializing",t[t.Initialized=2]="Initialized"})(Pd||(Pd={}));const sMt=C.memo(function(e){var n,r,i,s;let{id:a,accessibility:o,autoScroll:l=!0,children:u,sensors:c=xmt,collisionDetection:d=Fpt,measuring:h,modifiers:m,...g}=e;const b=C.useReducer(Tmt,void 0,Cmt),[v,E]=b,[x,_]=Opt(),[S,A]=C.useState(Pd.Uninitialized),R=S===Pd.Initialized,{draggable:{active:T,nodes:O,translate:I},droppable:{containers:D}}=v,P=T!=null?O.get(T):null,B=C.useRef({initial:null,translated:null}),L=C.useMemo(()=>{var yt;return T!=null?{id:T,data:(yt=P?.data)!=null?yt:wmt,rect:B}:null},[T,P]),$=C.useRef(null),[q,F]=C.useState(null),[G,H]=C.useState(null),K=wv(g,Object.values(g)),V=Q2("DndDescribedBy",a),Y=C.useMemo(()=>D.getEnabled(),[D]),Z=Rmt(h),{droppableRects:W,measureDroppableContainers:Q,measuringScheduled:re}=dmt(Y,{dragging:R,dependencies:[I.x,I.y],config:Z.droppable}),se=umt(O,T),J=C.useMemo(()=>G?aC(G):null,[G]),ae=bt(),ge=fmt(se,Z.draggable.measure);Nmt({activeNode:T!=null?O.get(T):null,config:ae.layoutShiftCompensation,initialRect:ge,measure:Z.draggable.measure});const ve=hZ(se,Z.draggable.measure,ge),Re=hZ(se?se.parentElement:null),xe=C.useRef({activatorEvent:null,active:null,activeNode:se,collisionRect:null,collisions:null,droppableRects:W,draggableNodes:O,draggingNode:null,draggingNodeRect:null,droppableContainers:D,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),Ne=D.getNodeFor((n=xe.current.over)==null?void 0:n.id),Fe=_mt({measure:Z.dragOverlay.measure}),Le=(r=Fe.nodeRef.current)!=null?r:se,ze=R?(i=Fe.rect)!=null?i:ve:null,qe=!!(Fe.nodeRef.current&&Fe.rect),_t=mmt(qe?null:ve),Ot=Ibe(Le?Bs(Le):null),Lt=gmt(R?Ne??se:null),ue=Emt(Lt),te=Lbe(m,{transform:{x:I.x-_t.x,y:I.y-_t.y,scaleX:1,scaleY:1},activatorEvent:G,active:L,activeNodeRect:ve,containerNodeRect:Re,draggingNodeRect:ze,over:xe.current.over,overlayNodeRect:Fe.rect,scrollableAncestors:Lt,scrollableAncestorRects:ue,windowRect:Ot}),de=J?Cg(J,I):null,be=ymt(Lt),ce=mZ(be),ne=mZ(be,[ve]),fe=Cg(te,ce),X=ze?Upt(ze,te):null,Oe=L&&X?d({active:L,collisionRect:X,droppableRects:W,droppableContainers:Y,pointerCoordinates:de}):null,Ye=vbe(Oe,"id"),[rt,Ut]=C.useState(null),Kt=qe?te:Cg(te,ne),It=Bpt(Kt,(s=rt?.rect)!=null?s:null,ve),Tn=C.useRef(null),qt=C.useCallback((yt,rn)=>{let{sensor:vt,options:ni}=rn;if($.current==null)return;const qr=O.get($.current);if(!qr)return;const lr=yt.nativeEvent,ur=new vt({active:$.current,activeNode:qr,event:lr,options:ni,context:xe,onAbort(Rr){if(!O.get(Rr))return;const{onDragAbort:he}=K.current,Ee={id:Rr};he?.(Ee),x({type:"onDragAbort",event:Ee})},onPending(Rr,vs,he,Ee){if(!O.get(Rr))return;const{onDragPending:Ue}=K.current,Ge={id:Rr,constraint:vs,initialCoordinates:he,offset:Ee};Ue?.(Ge),x({type:"onDragPending",event:Ge})},onStart(Rr){const vs=$.current;if(vs==null)return;const he=O.get(vs);if(!he)return;const{onDragStart:Ee}=K.current,Te={activatorEvent:lr,active:{id:vs,data:he.data,rect:B}};ks.unstable_batchedUpdates(()=>{Ee?.(Te),A(Pd.Initializing),E({type:Ai.DragStart,initialCoordinates:Rr,active:vs}),x({type:"onDragStart",event:Te}),F(Tn.current),H(lr)})},onMove(Rr){E({type:Ai.DragMove,coordinates:Rr})},onEnd:Gr(Ai.DragEnd),onCancel:Gr(Ai.DragCancel)});Tn.current=ur;function Gr(Rr){return async function(){const{active:he,collisions:Ee,over:Te,scrollAdjustedTranslate:Ue}=xe.current;let Ge=null;if(he&&Ue){const{cancelDrop:ot}=K.current;Ge={activatorEvent:lr,active:he,collisions:Ee,delta:Ue,over:Te},Rr===Ai.DragEnd&&typeof ot=="function"&&await Promise.resolve(ot(Ge))&&(Rr=Ai.DragCancel)}$.current=null,ks.unstable_batchedUpdates(()=>{E({type:Rr}),A(Pd.Uninitialized),Ut(null),F(null),H(null),Tn.current=null;const ot=Rr===Ai.DragEnd?"onDragEnd":"onDragCancel";if(Ge){const Ze=K.current[ot];Ze?.(Ge),x({type:ot,event:Ge})}})}}},[O]),or=C.useCallback((yt,rn)=>(vt,ni)=>{const qr=vt.nativeEvent,lr=O.get(ni);if($.current!==null||!lr||qr.dndKit||qr.defaultPrevented)return;const ur={active:lr};yt(vt,rn.options,ur)===!0&&(qr.dndKit={capturedBy:rn.sensor},$.current=ni,qt(vt,rn))},[O,qt]),tr=cmt(c,or);bmt(c),dl(()=>{ve&&S===Pd.Initializing&&A(Pd.Initialized)},[ve,S]),C.useEffect(()=>{const{onDragMove:yt}=K.current,{active:rn,activatorEvent:vt,collisions:ni,over:qr}=xe.current;if(!rn||!vt)return;const lr={active:rn,activatorEvent:vt,collisions:ni,delta:{x:fe.x,y:fe.y},over:qr};ks.unstable_batchedUpdates(()=>{yt?.(lr),x({type:"onDragMove",event:lr})})},[fe.x,fe.y]),C.useEffect(()=>{const{active:yt,activatorEvent:rn,collisions:vt,droppableContainers:ni,scrollAdjustedTranslate:qr}=xe.current;if(!yt||$.current==null||!rn||!qr)return;const{onDragOver:lr}=K.current,ur=ni.get(Ye),Gr=ur&&ur.rect.current?{id:ur.id,rect:ur.rect.current,data:ur.data,disabled:ur.disabled}:null,Rr={active:yt,activatorEvent:rn,collisions:vt,delta:{x:qr.x,y:qr.y},over:Gr};ks.unstable_batchedUpdates(()=>{Ut(Gr),lr?.(Rr),x({type:"onDragOver",event:Rr})})},[Ye]),dl(()=>{xe.current={activatorEvent:G,active:L,activeNode:se,collisionRect:X,collisions:Oe,droppableRects:W,draggableNodes:O,draggingNode:Le,draggingNodeRect:ze,droppableContainers:D,over:rt,scrollableAncestors:Lt,scrollAdjustedTranslate:fe},B.current={initial:ze,translated:X}},[L,se,Oe,X,O,Le,ze,W,D,rt,Lt,fe]),amt({...ae,delta:I,draggingRect:X,pointerCoordinates:de,scrollableAncestors:Lt,scrollableAncestorRects:ue});const xt=C.useMemo(()=>({active:L,activeNode:se,activeNodeRect:ve,activatorEvent:G,collisions:Oe,containerNodeRect:Re,dragOverlay:Fe,draggableNodes:O,droppableContainers:D,droppableRects:W,over:rt,measureDroppableContainers:
165Q,scrollableAncestors:Lt,scrollableAncestorRects:ue,measuringConfiguration:Z,measuringScheduled:re,windowRect:Ot}),[L,se,ve,G,Oe,Re,Fe,O,D,W,rt,Q,Lt,ue,Z,re,Ot]),Bt=C.useMemo(()=>({activatorEvent:G,activators:tr,active:L,activeNodeRect:ve,ariaDescribedById:{draggable:V},dispatch:E,draggableNodes:O,over:rt,measureDroppableContainers:Q}),[G,tr,L,ve,E,V,O,rt,Q]);return U.createElement(gbe.Provider,{value:_},U.createElement(Z2.Provider,{value:Bt},U.createElement(Pbe.Provider,{value:xt},U.createElement(L3.Provider,{value:It},u)),U.createElement(Amt,{disabled:o?.restoreFocus===!1})),U.createElement(Mpt,{...o,hiddenTextDescribedById:V}));function bt(){const yt=q?.autoScrollEnabled===!1,rn=typeof l=="object"?l.enabled===!1:l===!1,vt=R&&!yt&&!rn;return typeof l=="object"?{...l,enabled:vt}:{enabled:vt}}}),Omt=C.createContext(null),yZ="button",kmt="Draggable";function Imt(t){let{id:e,data:n,disabled:r=!1,attributes:i}=t;const s=Q2(kmt),{activators:a,activatorEvent:o,active:l,activeNodeRect:u,ariaDescribedById:c,draggableNodes:d,over:h}=C.useContext(Z2),{role:m=yZ,roleDescription:g="draggable",tabIndex:b=0}=i??{},v=l?.id===e,E=C.useContext(v?L3:Omt),[x,_]=iC(),[S,A]=iC(),R=vmt(a,e),T=wv(n);dl(()=>(d.set(e,{id:e,key:s,node:x,activatorNode:S,data:T}),()=>{const I=d.get(e);I&&I.key===s&&d.delete(e)}),[d,e]);const O=C.useMemo(()=>({role:m,tabIndex:b,"aria-disabled":r,"aria-pressed":v&&m===yZ?!0:void 0,"aria-roledescription":g,"aria-describedby":c.draggable}),[r,m,b,v,g,c.draggable]);return{active:l,activatorEvent:o,activeNodeRect:u,attributes:O,isDragging:v,listeners:r?void 0:R,node:x,over:h,setNodeRef:_,setActivatorNodeRef:A,transform:E}}function $be(){return C.useContext(Pbe)}const Mmt="Droppable",Dmt={timeout:25};function Pmt(t){let{data:e,disabled:n=!1,id:r,resizeObserverConfig:i}=t;const s=Q2(Mmt),{active:a,dispatch:o,over:l,measureDroppableContainers:u}=C.useContext(Z2),c=C.useRef({disabled:n}),d=C.useRef(!1),h=C.useRef(null),m=C.useRef(null),{disabled:g,updateMeasurementsFor:b,timeout:v}={...Dmt,...i},E=wv(b??r),x=C.useCallback(()=>{if(!d.current){d.current=!0;return}m.current!=null&&clearTimeout(m.current),m.current=setTimeout(()=>{u(Array.isArray(E.current)?E.current:[E.current]),m.current=null},v)},[v]),_=P3({callback:x,disabled:g||!a}),S=C.useCallback((O,I)=>{_&&(I&&(_.unobserve(I),d.current=!1),O&&_.observe(O))},[_]),[A,R]=iC(S),T=wv(e);return C.useEffect(()=>{!_||!A.current||(_.disconnect(),d.current=!1,_.observe(A.current))},[A,_]),C.useEffect(()=>(o({type:Ai.RegisterDroppable,element:{id:r,key:s,disabled:n,node:A,rect:h,data:T}}),()=>o({type:Ai.UnregisterDroppable,key:s,id:r})),[r]),C.useEffect(()=>{n!==c.current.disabled&&(o({type:Ai.SetDroppableDisabled,id:r,key:s,disabled:n}),c.current.disabled=n)},[r,s,n,o]),{active:a,rect:h,isOver:l?.id===r,node:A,over:l,setNodeRef:R}}function Lmt(t){let{animation:e,children:n}=t;const[r,i]=C.useState(null),[s,a]=C.useState(null),o=sC(n);return!n&&!r&&o&&i(o),dl(()=>{if(!s)return;const l=r?.key,u=r?.props.id;if(l==null||u==null){i(null);return}Promise.resolve(e(u,s)).then(()=>{i(null)})},[e,r,s]),U.createElement(U.Fragment,null,n,r?C.cloneElement(r,{ref:a}):null)}const $mt={x:0,y:0,scaleX:1,scaleY:1};function Fmt(t){let{children:e}=t;return U.createElement(Z2.Provider,{value:Dbe},U.createElement(L3.Provider,{value:$mt},e))}const Bmt={position:"fixed",touchAction:"none"},Hmt=t=>M3(t)?"transform 250ms ease":void 0,Umt=C.forwardRef((t,e)=>{let{as:n,activatorEvent:r,adjustScale:i,children:s,className:a,rect:o,style:l,transform:u,transition:c=Hmt}=t;if(!o)return null;const d=i?u:{...u,scaleX:1,scaleY:1},h={...Bmt,width:o.width,height:o.height,top:o.top,left:o.left,transform:ep.Transform.toString(d),transformOrigin:i&&r?Dpt(r,o):void 0,transition:typeof c=="function"?c(r):c,...l};return U.createElement(n,{className:a,style:h,ref:e},s)}),jmt=t=>e=>{let{active:n,dragOverlay:r}=e;const i={},{styles:s,className:a}=t;if(s!=null&&s.active)for(const[o,l]of Object.entries(s.active))l!==void 0&&(i[o]=n.node.style.getPropertyValue(o),n.node.style.setProperty(o,l));if(s!=null&&s.dragOverlay)for(const[o,l]of Object.entries(s.dragOverlay))l!==void 0&&r.node.style.setProperty(o,l);return a!=null&&a.active&&n.node.classList.add(a.active),a!=null&&a.dragOverlay&&r.node.classList.add(a.dragOverlay),function(){for(const[l,u]of Object.entries(i))n.node.style.setProperty(l,u);a!=null&&a.active&&n.node.classList.remove(a.active)}},zmt=t=>{let{transform:{initial:e,final:n}}=t;return[{transform:ep.Transform.toString(e)},{transform:ep.Transform.toString(n)}]},Vmt={duration:250,easing:"ease",keyframes:zmt,sideEffects:jmt({styles:{active:{opacity:"0"}}})};function qmt(t){let{config:e,draggableNodes:n,droppableContainers:r,measuringConfiguration:i}=t;return I3((s,a)=>
165{if(e===null)return;const o=n.get(s);if(!o)return;const l=o.node.current;if(!l)return;const u=Mbe(a);if(!u)return;const{transform:c}=Bs(a).getComputedStyle(a),d=_be(c);if(!d)return;const h=typeof e=="function"?e:Gmt(e);return Rbe(l,i.draggable.measure),h({active:{id:s,data:o.data,node:l,rect:i.draggable.measure(l)},draggableNodes:n,dragOverlay:{node:a,rect:i.dragOverlay.measure(u)},droppableContainers:r,measuringConfiguration:i,transform:d})})}function Gmt(t){const{duration:e,easing:n,sideEffects:r,keyframes:i}={...Vmt,...t};return s=>{let{active:a,dragOverlay:o,transform:l,...u}=s;if(!e)return;const c={x:o.rect.left-a.rect.left,y:o.rect.top-a.rect.top},d={scaleX:l.scaleX!==1?a.rect.width*l.scaleX/o.rect.width:1,scaleY:l.scaleY!==1?a.rect.height*l.scaleY/o.rect.height:1},h={x:l.x-c.x,y:l.y-c.y,...d},m=i({...u,active:a,dragOverlay:o,transform:{initial:l,final:h}}),[g]=m,b=m[m.length-1];if(JSON.stringify(g)===JSON.stringify(b))return;const v=r?.({active:a,dragOverlay:o,...u}),E=o.node.animate(m,{duration:e,easing:n,fill:"forwards"});return new Promise(x=>{E.onfinish=()=>{v?.(),x()}})}}let bZ=0;function Wmt(t){return C.useMemo(()=>{if(t!=null)return bZ++,bZ},[t])}const aMt=U.memo(t=>{let{adjustScale:e=!1,children:n,dropAnimation:r,style:i,transition:s,modifiers:a,wrapperElement:o="div",className:l,zIndex:u=999}=t;const{activatorEvent:c,active:d,activeNodeRect:h,containerNodeRect:m,draggableNodes:g,droppableContainers:b,dragOverlay:v,over:E,measuringConfiguration:x,scrollableAncestors:_,scrollableAncestorRects:S,windowRect:A}=$be(),R=C.useContext(L3),T=Wmt(d?.id),O=Lbe(a,{activatorEvent:c,active:d,activeNodeRect:h,containerNodeRect:m,draggingNodeRect:v.rect,over:E,overlayNodeRect:v.rect,scrollableAncestors:_,scrollableAncestorRects:S,transform:R,windowRect:A}),I=BF(h),D=qmt({config:r,draggableNodes:g,droppableContainers:b,measuringConfiguration:x}),P=I?v.setRef:void 0;return U.createElement(Fmt,null,U.createElement(Lmt,{animation:D},d&&T?U.createElement(Umt,{key:T,id:d.id,ref:P,as:o,activatorEvent:c,adjustScale:e,className:l,transition:s,rect:I,style:{zIndex:u,...i},transform:O},n):null))}),oMt="/assets/pdf.worker.min-qwK7q_zL.mjs",Ss=typeof process=="object"&&process+""=="[object process]"&&!process.versions.nw&&!(process.versions.electron&&process.type&&process.type!=="browser"),T9=[.001,0,0,.001,0,0],V4=1.35,ka={ANY:1,DISPLAY:2,PRINT:4,ANNOTATIONS_FORMS:16,ANNOTATIONS_STORAGE:32,ANNOTATIONS_DISABLE:64,IS_EDITING:128,OPLIST:256},Kl={DISABLE:0,ENABLE:1,ENABLE_FORMS:2,ENABLE_STORAGE:3},Tv="pdfjs_internal_editor_",zt={DISABLE:-1,NONE:0,FREETEXT:3,HIGHLIGHT:9,STAMP:13,INK:15,POPUP:16,SIGNATURE:101,COMMENT:102},En={RESIZE:1,CREATE:2,FREETEXT_SIZE:11,FREETEXT_COLOR:12,FREETEXT_OPACITY:13,INK_COLOR:21,INK_THICKNESS:22,INK_OPACITY:23,HIGHLIGHT_COLOR:31,HIGHLIGHT_THICKNESS:32,HIGHLIGHT_FREE:33,HIGHLIGHT_SHOW_ALL:34,DRAW_STEP:41},Fbe={PRINT:4,MODIFY_CONTENTS:8,COPY:16,MODIFY_ANNOTATIONS:32,FILL_INTERACTIVE_FORMS:256,COPY_FOR_ACCESSIBILITY:512,ASSEMBLE:1024,PRINT_HIGH_QUALITY:2048},Xi={FILL:0,STROKE:1,FILL_STROKE:2,INVISIBLE:3,FILL_STROKE_MASK:3,ADD_TO_PATH_FLAG:4},xb={GRAYSCALE_1BPP:1,RGB_24BPP:2,RGBA_32BPP:3},Xr={TEXT:1,LINK:2,FREETEXT:3,LINE:4,SQUARE:5,CIRCLE:6,POLYGON:7,POLYLINE:8,HIGHLIGHT:9,UNDERLINE:10,SQUIGGLY:11,STRIKEOUT:12,STAMP:13,CARET:14,INK:15,POPUP:16,FILEATTACHMENT:17,SOUND:18,MOVIE:19,WIDGET:20,SCREEN:21,PRINTERMARK:22,TRAPNET:23,WATERMARK:24,THREED:25,REDACT:26},Qm={SOLID:1,DASHED:2,BEVELED:3,INSET:4,UNDERLINE:5},J2={ERRORS:0,WARNINGS:1,INFOS:5},r0={dependency:1,setLineWidth:2,setLineCap:3,setLineJoin:4,setMiterLimit:5,setDash:6,setRenderingIntent:7,setFlatness:8,setGState:9,save:10,restore:11,transform:12,moveTo:13,lineTo:14,curveTo:15,curveTo2:16,curveTo3:17,closePath:18,rectangle:19,stroke:20,closeStroke:21,fill:22,eoFill:23,fillStroke:24,eoFillStroke:25,closeFillStroke:26,closeEOFillStroke:27,endPath:28,clip:29,eoClip:30,beginText:31,endText:32,setCharSpacing:33,setWordSpacing:34,setHScale:35,setLeading:36,setFont:37,setTextRenderingMode:38,setTextRise:39,moveText:40,setLeadingMoveText:41,setTextMatrix:42,nextLine:43,showText:44,showSpacedText:45,nextLineShowText:46,nextLineSetSpacingShowText:47,setCharWidth:48,setCharWidthAndBounds:49,setStrokeColorSpace:50,setFillColorSpace:51,setStrokeColor:52,setStrokeColorN:53,setFillColor:54,setFillColorN:55,setStrokeGray:56,setFillGray:57,setStrokeRGBColor:58,setFillRGBColor:59,setStrokeCMYKColor:60,setFillCMYKColor:61,shadingFill:62,beginInlineImage:63,beginImageData:64,endInlineImage:65,paintXObject:66,markPoint:67,markPointProps:68,beginMarkedContent:69,beginMarkedContentProps:70,endMarkedContent:71,beginCompat:72,endCompat:73,paintFormXObjectBegin:74,paintFormXObjectEnd:75,beginGroup:76,endGroup:77,beginAnnotation:80,endAnnotation:81,paintImageMaskXObject:83,paintImageMaskXObjectGroup:84,paintImageXObject:85,paintInlineImageXObject:86,paintInlineImageXObjectGroup:87,paintImageXObjectRepeat:88,paintImageMaskXObjectRepeat:89,paintSolidColorImageMask:90,constructPath:91,setStrokeTransparent:92,setFillTransparent:93,rawFillPath:94},Tx={moveTo:0,lineTo:1,curveTo:2,closePath:3},Bbe={NEED_PASSWORD:1,INCORRECT_PASSWORD:2};let $3=J2.WARNINGS;function Ymt(t){Number.isInteger(t)&&($3=t)}function Kmt(){return $3}function F3(t){$3>=J2.INFOS&&console.info(`Info: ${t}`)}function Vt(t){$3>=J2.WARNINGS&&console.warn(`Warning: ${t}`)}function er(t){throw new Error(t)}function Cn(t,e){t||er(e)}function Xmt(t){switch(t?.protocol){case"http:":case"https:":case"ftp:":case"mailto:":case"tel:":return!0;default:return!1}}function HF(t,e=null,n=null){if(!t)return null;if(n&&typeof t=="string"&&(n.addDefaultProtocol&&t.startsWith("www.")&&t.match(/\./g)?.length>=2&&(t=`http://${t}`),n.tryConvertEncoding))try{t=tgt(t)}catch{}const r=e?URL.parse(t,e):URL.parse(t);return Xmt(r)?r:null}function UF(t,e,n=!1){const r=URL.parse(t);return r?(r.hash=e,r.href):n&&HF(t,"http://example.com")?t.split("#",1)[0]+`${e?`#${e}`:""}`:""}function Zt(t,e,n,r=!1){return Object.defineProperty(t,e,{value:n,enumerable:!r,configurable:!0,writable:!1}),n}const Bp=(function(){function e(n,r){this.message=n,this.name=r}return e.prototype=new Error,e.constructor=e,e})();class vZ extends Bp{constructor(e,n){super(e,"PasswordException"),this.code=n}}class q4 extends Bp{constructor(e,n){super(e,"UnknownErrorException"),this.details=n}}class uC extends Bp{constructor(e){super(e,"InvalidPDFException")}}class Av extends Bp{constructor(e,n,r){super(e,"ResponseException"),this.status=n,this.missing=r}}class Qmt extends Bp{constructor(e){super(e,"FormatError")}}class $c extends Bp{constructor(e){super(e,"AbortException")}}function Hbe(t){(typeof t!="object"||t?.length===void 0)&&er("Invalid argument for bytesToString");const e=t.length,n=8192;if(e<n)return String.fromCharCode.apply(null,t);const r=[];for(let i=0;i<e;i+=n){const s=Math.min(i+n,e),a=t.subarray(i,s);r.push(String.fromCharCode.apply(null,a))}return r.join("")}function eE(t){typeof t!="string"&&er("Invalid argument for stringToBytes");const e=t.length,n=new Uint8Array(e);for(let r=0;r<e;++r)n[r]=t.charCodeAt(r)&255;return n}function Zmt(t){return String.fromCharCode(t>>24&255,t>>16&255,t>>8&255,t&255)}function Jmt(){const t=new Uint8Array(4);return t[0]=1,new Uint32Array(t.buffer,0,1)[0]===1}function egt(){try{return new Function(""),!0}catch{return!1}}class zi{static get isLittleEndian(){return Zt(this,"isLittleEndian",Jmt())}static get isEvalSupported(){return Zt(this,"isEvalSupported",egt())}static get isOffscreenCanvasSupported(){return Zt(this,"isOffscreenCanvasSupported",typeof OffscreenCanvas<"u")}static get isImageDecoderSupported(){return Zt(this,"isImageDecoderSupported",typeof ImageDecoder<"u")}static get platform(){const{platform:e,userAgent:n}=navigator;return Zt(this,"platform",{isAndroid:n.includes("Android"),isLinux:e.includes("Linux"),isMac:e.includes("Mac"),isWindows:e.includes("Win"),isFirefox:n.includes("Firefox")})}static get isCSSRoundSupported(){return Zt(this,"isCSSRoundSupported",globalThis.CSS?.supports?.("width: round(1.5px, 1px)"))}}const G4=Array.from(Array(256).keys(),t=>t.toString(16).padStart(2,"0"));class ut{static makeHexColor(e,n,r){return`#${G4[e]}${G4[n]}${G4[r]}`}static domMatrixToTransform(e){return[e.a,e.b,e.c,e.d,e.e,e.f]}static scaleMinMax(e,n){let r;e[0]?(e[0]<0&&(r=n[0],n[0]=n[2],n[2]=r),n[0]*=e[0],n[2]*=e[0],e[3]<0&&(r=n[1],n[1]=n[3],n[3]=r),n[1]*=e[3],n[3]*=e[3]):(r=n[0],n[0]=n[1],n[1]=r,r=n[2],n[2]=n[3],n[3]=r,e[1]<0&&(r=n[1],n[1]=n[3],n[3]=r),n[1]*=e[1],n[3]*=e[1],e[2]<0&&(r=n[0],n[0]=n[2],n[2]=r),n[0]*=e[2],n[2]*=e[2]),n[0]+=e[4],n[1]+=e[5],n[2]+=e[4],n[3]+=e[5]}static transform(e,n){return[e[0]*n[0]+e[2]*n[1],e[1]*n[0]+e[3]*n[1],e[0]*n[2]+e[2]*n[3],e[1]*n[2]+e[3]*n[3],e[0]*n[4]+e[2]*n[5]+e[4],e[1]*n[4]+e[3]*n[5]+e[5]]}static multiplyByDOMMatrix(e,n){return[e[0]*n.a+e[2]*n.b,e[1]*n.a+e[3]*n.b,e[0]*n.c+e[2]*n.d,e[1]*n.c+e[3]*n.d,e[0]*n.e+e[2]*n.f+e[4],e[1]*n.e+e[3]*n.f+e[5]]}static applyTransform(e,n,r=0){const i=e[r],s=e[r+1];e[r]=i*n[0]+s*n[2]+n[4],e[r+1]=i*n[1]+s*n[3]+n[5]}
vendor: 23,402 bytes, lines 165-166
165static applyTransformToBezier(e,n,r=0){const i=n[0],s=n[1],a=n[2],o=n[3],l=n[4],u=n[5];for(let c=0;c<6;c+=2){const d=e[r+c],h=e[r+c+1];e[r+c]=d*i+h*a+l,e[r+c+1]=d*s+h*o+u}}static applyInverseTransform(e,n){const r=e[0],i=e[1],s=n[0]*n[3]-n[1]*n[2];e[0]=(r*n[3]-i*n[2]+n[2]*n[5]-n[4]*n[3])/s,e[1]=(-r*n[1]+i*n[0]+n[4]*n[1]-n[5]*n[0])/s}static axialAlignedBoundingBox(e,n,r){const i=n[0],s=n[1],a=n[2],o=n[3],l=n[4],u=n[5],c=e[0],d=e[1],h=e[2],m=e[3];let g=i*c+l,b=g,v=i*h+l,E=v,x=o*d+u,_=x,S=o*m+u,A=S;if(s!==0||a!==0){const R=s*c,T=s*h,O=a*d,I=a*m;g+=O,E+=O,v+=I,b+=I,x+=R,A+=R,S+=T,_+=T}r[0]=Math.min(r[0],g,v,b,E),r[1]=Math.min(r[1],x,S,_,A),r[2]=Math.max(r[2],g,v,b,E),r[3]=Math.max(r[3],x,S,_,A)}static inverseTransform(e){const n=e[0]*e[3]-e[1]*e[2];return[e[3]/n,-e[1]/n,-e[2]/n,e[0]/n,(e[2]*e[5]-e[4]*e[3])/n,(e[4]*e[1]-e[5]*e[0])/n]}static singularValueDecompose2dScale(e,n){const r=e[0],i=e[1],s=e[2],a=e[3],o=r**2+i**2,l=r*s+i*a,u=s**2+a**2,c=(o+u)/2,d=Math.sqrt(c**2-(o*u-l**2));n[0]=Math.sqrt(c+d||1),n[1]=Math.sqrt(c-d||1)}static normalizeRect(e){const n=e.slice(0);return e[0]>e[2]&&(n[0]=e[2],n[2]=e[0]),e[1]>e[3]&&(n[1]=e[3],n[3]=e[1]),n}static intersect(e,n){const r=Math.max(Math.min(e[0],e[2]),Math.min(n[0],n[2])),i=Math.min(Math.max(e[0],e[2]),Math.max(n[0],n[2]));if(r>i)return null;const s=Math.max(Math.min(e[1],e[3]),Math.min(n[1],n[3])),a=Math.min(Math.max(e[1],e[3]),Math.max(n[1],n[3]));return s>a?null:[r,s,i,a]}static pointBoundingBox(e,n,r){r[0]=Math.min(r[0],e),r[1]=Math.min(r[1],n),r[2]=Math.max(r[2],e),r[3]=Math.max(r[3],n)}static rectBoundingBox(e,n,r,i,s){s[0]=Math.min(s[0],e,r),s[1]=Math.min(s[1],n,i),s[2]=Math.max(s[2],e,r),s[3]=Math.max(s[3],n,i)}static#e(e,n,r,i,s,a,o,l,u,c){if(u<=0||u>=1)return;const d=1-u,h=u*u,m=h*u,g=d*(d*(d*e+3*u*n)+3*h*r)+m*i,b=d*(d*(d*s+3*u*a)+3*h*o)+m*l;c[0]=Math.min(c[0],g),c[1]=Math.min(c[1],b),c[2]=Math.max(c[2],g),c[3]=Math.max(c[3],b)}static#t(e,n,r,i,s,a,o,l,u,c,d,h){if(Math.abs(u)<1e-12){Math.abs(c)>=1e-12&&this.#e(e,n,r,i,s,a,o,l,-d/c,h);return}const m=c**2-4*d*u;if(m<0)return;const g=Math.sqrt(m),b=2*u;this.#e(e,n,r,i,s,a,o,l,(-c+g)/b,h),this.#e(e,n,r,i,s,a,o,l,(-c-g)/b,h)}static bezierBoundingBox(e,n,r,i,s,a,o,l,u){u[0]=Math.min(u[0],e,o),u[1]=Math.min(u[1],n,l),u[2]=Math.max(u[2],e,o),u[3]=Math.max(u[3],n,l),this.#t(e,r,s,o,n,i,a,l,3*(-e+3*(r-s)+o),6*(e-2*r+s),3*(r-e),u),this.#t(e,r,s,o,n,i,a,l,3*(-n+3*(i-a)+l),6*(n-2*i+a),3*(i-n),u)}}function tgt(t){return decodeURIComponent(escape(t))}let W4=null,EZ=null;function Ube(t){return W4||(W4=/([\u00a0\u00b5\u037e\u0eb3\u2000-\u200a\u202f\u2126\ufb00-\ufb04\ufb06\ufb20-\ufb36\ufb38-\ufb3c\ufb3e\ufb40-\ufb41\ufb43-\ufb44\ufb46-\ufba1\ufba4-\ufba9\ufbae-\ufbb1\ufbd3-\ufbdc\ufbde-\ufbe7\ufbea-\ufbf8\ufbfc-\ufbfd\ufc00-\ufc5d\ufc64-\ufcf1\ufcf5-\ufd3d\ufd88\ufdf4\ufdfa-\ufdfb\ufe71\ufe77\ufe79\ufe7b\ufe7d]+)|(\ufb05+)/gu,EZ=new Map([["ï¬ ","Å¿t"]])),t.replaceAll(W4,(e,n,r)=>n?n.normalize("NFKC"):EZ.get(r))}function jF(){if(typeof crypto.randomUUID=="function")return crypto.randomUUID();const t=new Uint8Array(32);return crypto.getRandomValues(t),Hbe(t)}const zF="pdfjs_internal_id_";function ngt(t,e,n){if(!Array.isArray(n)||n.length<2)return!1;const[r,i,...s]=n;if(!t(r)&&!Number.isInteger(r)||!e(i))return!1;const a=s.length;let o=!0;switch(i.name){case"XYZ":if(a<2||a>3)return!1;break;case"Fit":case"FitB":return a===0;case"FitH":case"FitBH":case"FitV":case"FitBV":if(a>1)return!1;break;case"FitR":if(a!==4)return!1;o=!1;break;default:return!1}for(const l of s)if(!(typeof l=="number"||o&&l===null))return!1;return!0}function is(t,e,n){return Math.min(Math.max(t,e),n)}function jbe(t){return Uint8Array.prototype.toBase64?t.toBase64():btoa(Hbe(t))}function rgt(t){return Uint8Array.fromBase64?Uint8Array.fromBase64(t):eE(atob(t))}typeof Promise.try!="function"&&(Promise.try=function(t,...e){return new Promise(n=>{n(t(...e))})});typeof Math.sumPrecise!="function"&&(Math.sumPrecise=function(t){return t.reduce((e,n)=>e+n,0)});class Rv{static textContent(e){const n=[],r={items:n,styles:Object.create(null)};function i(s){if(!s)return;let a=null;const o=s.name;if(o==="#text")a=s.value;else if(Rv.shouldBuildText(o))s?.attributes?.textContent?a=s.attributes.textContent:s.value&&(a=s.value);else return;if(a!==null&&n.push({str:a}),!!s.children)for(const l of s.children)i(l)}return i(e),r}static shouldBuildText(e){return!(e==="textarea"||e==="input"||e==="option"||e==="select")}}class VF{static setupStorage(e,n,r,i,s){const a=i.getValue(n,{value:null});switch(r.name){case"textarea":if(a.value!==null&&(e.textContent=a.value),s==="print")break;e.addEventListener("input",o=>{i.setValue(n,{value:o.target.value})});break;case"input":if(r.attributes.type==="radio"||r.attributes.type==="checkbox"){if(a.value===r.attributes.xfaOn?e.setAttribute("checked",!0):a.value===r.attributes.xfaOff&&e.removeAttribute("checked"),s==="print")break;e.addEventListener("change",o=>{i.setValue(n,{value:o.target.checked?o.target.getAttribute("xfaOn"):o.target.getAttribute("xfaOff")})})}else{if(a.value!==null&&e.setAttribute("value",a.value),s==="print")break;e.addEventListener("input",o=>{i.setValue(n,{value:o.target.value})})}break;case"select":if(a.value!==null){e.setAttribute("value",a.value);for(const o of r.children)o.attributes.value===a.value?o.attributes.selected=!0:o.attributes.hasOwnProperty("selected")&&delete o.attributes.selected}e.addEventListener("input",o=>{const l=o.target.options,u=l.selectedIndex===-1?"":l[l.selectedIndex].value;i.setValue(n,{value:u})});break}}static setAttributes({html:e,element:n,storage:r=null,intent:i,linkService:s}){const{attributes:a}=n,o=e instanceof HTMLAnchorElement;a.type==="radio"&&(a.name=`${a.name}-${i}`);for(const[l,u]of Object.entries(a))if(u!=null)switch(l){case"class":u.length&&e.setAttribute(l,u.join(" "));break;case"dataId":break;case"id":e.setAttribute("data-element-id",u);break;case"style":Object.assign(e.style,u);break;case"textContent":e.textContent=u;break;default:(!o||l!=="href"&&l!=="newWindow")&&e.setAttribute(l,u)}o&&s.addLinkAttributes(e,a.href,a.newWindow),r&&a.dataId&&this.setupStorage(e,a.dataId,n,r)}static render(e){const n=e.annotationStorage,r=e.linkService,i=e.xfaHtml,s=e.intent||"display",a=document.createElement(i.name);i.attributes&&this.setAttributes({html:a,element:i,intent:s,linkService:r});const o=s!=="richText",l=e.div;if(l.append(a),e.viewport){const d=`matrix(${e.viewport.transform.join(",")})`;l.style.transform=d}o&&l.setAttribute("class","xfaLayer xfaFont");const u=[];if(i.children.length===0){if(i.value){const d=document.createTextNode(i.value);a.append(d),o&&Rv.shouldBuildText(i.name)&&u.push(d)}return{textDivs:u}}const c=[[i,-1,a]];for(;c.length>0;){const[d,h,m]=c.at(-1);if(h+1===d.children.length){c.pop();continue}const g=d.children[++c.at(-1)[1]];if(g===null)continue;const{name:b}=g;if(b==="#text"){const E=document.createTextNode(g.value);u.push(E),m.append(E);continue}const v=g?.attributes?.xmlns?document.createElementNS(g.attributes.xmlns,b):document.createElement(b);if(m.append(v),g.attributes&&this.setAttributes({html:v,element:g,storage:n,intent:s,linkService:r}),g.children?.length>0)c.push([g,-1,v]);else if(g.value){const E=document.createTextNode(g.value);o&&Rv.shouldBuildText(b)&&u.push(E),v.append(E)}}for(const d of l.querySelectorAll(".xfaNonInteractive input, .xfaNonInteractive textarea"))d.setAttribute("readOnly",!0);return{textDivs:u}}static update(e){const n=`matrix(${e.viewport.transform.join(",")})`;e.div.style.transform=n,e.div.hidden=!1}}const ac="http://www.w3.org/2000/svg";class tp{static CSS=96;static PDF=72;static PDF_TO_CSS_UNITS=this.CSS/this.PDF}async function Z0(t,e="text"){if(Gy(t,document.baseURI)){const n=await fetch(t);if(!n.ok)throw new Error(n.statusText);switch(e){case"arraybuffer":return n.arrayBuffer();case"blob":return n.blob();case"json":return n.json()}return n.text()}return new Promise((n,r)=>{const i=new XMLHttpRequest;i.open("GET",t,!0),i.responseType=e,i.onreadystatechange=()=>{if(i.readyState===XMLHttpRequest.DONE){if(i.status===200||i.status===0){switch(e){case"arraybuffer":case"blob":case"json":n(i.response);return}n(i.responseText);return}r(new Error(i.statusText))}},i.send(null)})}class tE{constructor({viewBox:e,userUnit:n,scale:r,rotation:i,offsetX:s=0,offsetY:a=0,dontFlip:o=!1}){this.viewBox=e,this.userUnit=n,this.scale=r,this.rotation=i,this.offsetX=s,this.offsetY=a,r*=n;const l=(e[2]+e[0])/2,u=(e[3]+e[1])/2;let c,d,h,m;switch(i%=360,i<0&&(i+=360),i){case 180:c=-1,d=0,h=0,m=1;break;case 90:c=0,d=1,h=1,m=0;break;case 270:c=0,d=-1,h=-1,m=0;break;case 0:c=1,d=0,h=0,m=-1;break;default:throw new Error("PageViewport: Invalid rotation, must be a multiple of 90 degrees.")}o&&(h=-h,m=-m);let g,b,v,E;c===0?(g=Math.abs(u-e[1])*r+s,b=Math.abs(l-e[0])*r+a,v=(e[3]-e[1])*r,E=(e[2]-e[0])*r):(g=Math.abs(l-e[0])*r+s,b=Math.abs(u-e[1])*r+a,v=(e[2]-e[0])*r,E=(e[3]-e[1])*r),this.transform=[c*r,d*r,h*r,m*r,g-c*r*l-h*r*u,b-d*r*l-m*r*u],this.width=v,this.height=E}get rawDims(){const e=this.viewBox;return Zt(this,"rawDims",{pageWidth:e[2]-e[0],pageHeight:e[3]-e[1],pageX:e[0],pageY:e[1]})}clone({scale:e=this.scale,rotation:n=this.rotation,offsetX:r=this.offsetX,offsetY:i=this.offsetY,dontFlip:s=!1}={}){return new tE({viewBox:this.viewBox.slice(),userUnit:this.userUnit,scale:e,rotation:n,offsetX:r,offsetY:i,dontFlip:s})}convertToViewportPoint(e,n){const r=[e,n];return ut.applyTransform(r,this.transform),r}convertToViewportRectangle(e){const n=[e[0],e[1]];ut.applyTransform(n,this.transform);const r=[e[2],e[3]];return ut.applyTransform(r,this.transform),[n[0],n[1],r[0],r[1]]}convertToPdfPoint(e,n){const r=[e,n];return ut.applyInverseTransform(r,this.transform),r}}class B3 extends Bp{constructor(e,n=0){super(e,"RenderingCancelledException"),this.extraDelay=n}}function nE(t){const e=t.length;let n=0;for(;n<e&&t[n].trim()==="";)n++;return t.substring(n,n+5).toLowerCase()==="data:"}function H3(t){return typeof t=="string"&&/\.pdf$/i.test(t)}function zbe(t){return[t]=t.split(/[#?]/,1),t.substring(t.lastIndexOf("/")+1)}function Vbe(t,e="document.pdf"){if(typeof t!="string")return e;if(nE(t))return Vt('getPdfFilenameFromUrl: ignore "data:"-URL for performance reasons.'),e;const r=(o=>{try{return new URL(o)}catch{try{return new URL(decodeURIComponent(o))}catch{try{return new URL(o,"https://foo.bar")}catch{try{return new URL(decodeURIComponent(o),"https://foo.bar")}catch{return null}}}}})(t);if(!r)return e;const i=o=>{try{let l=decodeURIComponent(o);return l.includes("/")?(l=l.split("/").at(-1),l.test(/^\.pdf$/i)?l:o):l}catch{return o}},s=/\.pdf$/i,a=r.pathname.split("/").at(-1);if(s.test(a))return i(a);if(r.searchParams.size>0){const o=Array.from(r.searchParams.values()).reverse();for(const u of o)if(s.test(u))return i(u);const l=Array.from(r.searchParams.keys()).reverse();for(const u of l)if(s.test(u))return i(u)}if(r.hash){const l=/[^/?#=]+\.pdf\b(?!.*\.pdf\b)/i.exec(r.hash);if(l)return i(l[0])}return e}class _Z{started=Object.create(null);times=[];time(e){e in this.started&&Vt(`Timer is already running for ${e}`),this.started[e]=Date.now()}timeEnd(e){e in this.started||Vt(`Timer has not been started for ${e}`),this.times.push({name:e,start:this.started[e],end:Date.now()}),delete this.started[e]}toString(){const e=[];let n=0;for(const{name:r}of this.times)n=Math.max(r.length,n);for(const{name:r,start:i,end:s}of this.times)e.push(`${r.padEnd(n)} ${s-i}ms 166`);return e.join("")}}function Gy(t,e){const n=e?URL.parse(t,e):URL.parse(t);return n?.protocol==="http:"||n?.protocol==="https:"}function Ya(t){t.preventDefault()}function Ir(t){t.preventDefault(),t.stopPropagation()}function igt(t){console.log("Deprecated API usage: "+t)}class cC{static#e;static toDateObject(e){if(e instanceof Date)return e;if(!e||typeof e!="string")return null;this.#e||=new RegExp("^D:(\\d{4})(\\d{2})?(\\d{2})?(\\d{2})?(\\d{2})?(\\d{2})?([Z|+|-])?(\\d{2})?'?(\\d{2})?'?");const n=this.#e.exec(e);if(!n)return null;const r=parseInt(n[1],10);let i=parseInt(n[2],10);i=i>=1&&i<=12?i-1:0;let s=parseInt(n[3],10);s=s>=1&&s<=31?s:1;let a=parseInt(n[4],10);a=a>=0&&a<=23?a:0;let o=parseInt(n[5],10);o=o>=0&&o<=59?o:0;let l=parseInt(n[6],10);l=l>=0&&l<=59?l:0;const u=n[7]||"Z";let c=parseInt(n[8],10);c=c>=0&&c<=23?c:0;let d=parseInt(n[9],10)||0;return d=d>=0&&d<=59?d:0,u==="-"?(a+=c,o+=d):u==="+"&&(a-=c,o-=d),new Date(Date.UTC(r,i,s,a,o,l))}}function qbe(t,{scale:e=1,rotation:n=0}){const{width:r,height:i}=t.attributes.style,s=[0,0,parseInt(r),parseInt(i)];return new tE({viewBox:s,userUnit:1,scale:e,rotation:n})}function J0(t){if(t.startsWith("#")){const e=parseInt(t.slice(1),16);return[(e&16711680)>>16,(e&65280)>>8,e&255]}return t.startsWith("rgb(")?t.slice(4,-1).split(",").map(e=>parseInt(e)):t.startsWith("rgba(")?t.slice(5,-1).split(",").map(e=>parseInt(e)).slice(0,3):(Vt(`Not a valid color format: "${t}"`),[0,0,0])}function sgt(t){const e=document.createElement("span");e.style.visibility="hidden",e.style.colorScheme="only light",document.body.append(e);for(const n of t.keys()){e.style.color=n;const r=window.getComputedStyle(e).color;t.set(n,J0(r))}e.remove()}function Or(t){const{a:e,b:n,c:r,d:i,e:s,f:a}=t.getTransform();return[e,n,r,i,s,a]}function Ml(t){const{a:e,b:n,c:r,d:i,e:s,f:a}=t.getTransform().invertSelf();return[e,n,r,i,s,a]}function lf(t,e,n=!1,r=!0){if(e instanceof tE){const{pageWidth:i,pageHeight:s}=e.rawDims,{style:a}=t,o=zi.isCSSRoundSupported,l=`var(--total-scale-factor) * ${i}px`,u=`var(--total-scale-factor) * ${s}px`,c=o?`round(down, ${l}, var(--scale-round-x))`:`calc(${l})`,d=o?`round(down, ${u}, var(--scale-round-y))`:`calc(${u})`;!n||e.rotation%180===0?(a.width=c,a.height=d):(a.width=d,a.height=c)}r&&t.setAttribute("data-main-rotation",e.rotation)}class hl{constructor(){const{pixelRatio:e}=hl;this.sx=e,this.sy=e}get scaled(){return this.sx!==1||this.sy!==1}get symmetric(){return this.sx===this.sy}limitCanvas(e,n,r,i,s=-1){let a=1/0,o=1/0,l=1/0;r=hl.capPixels(r,s),r>0&&(a=Math.sqrt(r/(e*n))),i!==-1&&(o=i/e,l=i/n);const u=Math.min(a,o,l);return this.sx>u||this.sy>u?(this.sx=u,this.sy=u,!0):!1}static get pixelRatio(){return globalThis.devicePixelRatio||1}static capPixels(e,n){if(n>=0){const r=Math.ceil(window.screen.availWidth*window.screen.availHeight*this.pixelRatio**2*(1+n/100));return e>0?Math.min(e,r):r}return e}}const dC=["image/apng","image/avif","image/bmp","image/gif","image/jpeg","image/png","image/svg+xml","image/webp","image/x-icon"];class agt{static get isDarkMode(){return Zt(this,"isDarkMode",!!window?.matchMedia?.("(prefers-color-scheme: dark)").matches)}}class Gbe{static get commentForegroundColor(){const e=document.createElement("span");e.classList.add("comment","sidebar");const{style:n}=e;n.width=n.height="0",n.display="none",n.color="var(--comment-fg-color)",document.body.append(e);const{color:r}=window.getComputedStyle(e);return e.remove(),Zt(this,"commentForegroundColor",J0(r))}}function Wbe(t,e,n,r){r=Math.min(Math.max(r??1,0),1);const i=255*(1-r);return t=Math.round(t*r+i),e=Math.round(e*r+i),n=Math.round(n*r+i),[t,e,n]}function xZ(t,e){const n=t[0]/255,r=t[1]/255,i=t[2]/255,s=Math.max(n,r,i),a=Math.min(n,r,i),o=(s+a)/2;if(s===a)e[0]=e[1]=0;else{const l=s-a;switch(e[1]=o<.5?l/(s+a):l/(2-s-a),s){case n:e[0]=((r-i)/l+(r<i?6:0))*60;break;case r:e[0]=((i-n)/l+2)*60;break;case i:e[0]=((n-r)/l+4)*60;break}}e[2]=o}function A9(t,e){const n=t[0],r=t[1],i=t[2],s=(1-Math.abs(2*i-1))*r,a=s*(1-Math.abs(n/60%2-1)),o=i-s/2;switch(Math.floor(n/60)){case 0:e[0]=s+o,e[1]=a+o,e[2]=o;break;case 1:e[0]=a+o,e[1]=s+o,e[2]=o;break;case 2:e[0]=o,e[1]=s+o,e[2]=a+o;break;case 3:e[0]=o,e[1]=a+o,e[2]=s+o;break;case 4:e[0]=a+o,e[1]=o,e[2]=s+o;break;case 5:case 6:e[0]=s+o,e[1]=o,e[2]=a+o;break}}function wZ(t){return t<=.03928?t/12.92:((t+.055)/1.055)**2.4}function SZ(t,e,n){A9(t,n),n.map(wZ);const r=.2126*n[0]+.7152*n[1]+.0722*n[2];A9(e,n),n.map(wZ);const i=.2126*n[0]+.7152*n[1]+.0722*n[2];return r>i?(r+.05)/(i+.05):(i+.05)/(r+.05)}const CZ=new Map;function Ybe(t,e){const n=t[0]+t[1]*256+t[2]*65536+e[0]*16777216+e[1]*4294967296+e[2]*1099511627776;let r=CZ.get(n);if(r)return r;const i=new Float32Array(9),s=i.subarray(0,3),a=i.subarray(3,6);xZ(t,a);const o=i.subarray(6,9);xZ(e,o);const l=o[2]<.5,u=l?12:4.5;if(a[2]=l?Math.sqrt(a[2]):1-Math.sqrt(1-a[2]),SZ(a,o,s)<u){let c,d;l?(c=a[2],d=1):(c=0,d=a[2]);const h=.005;for(;d-c>h;){const m=a[2]=(c+d)/2;l===SZ(a,o,s)<u?c=m:d=m}a[2]=l?d:c}return A9(a,s),r=ut.makeHexColor(Math.round(s[0]*255),Math.round(s[1]*255),Math.round(s[2]*255)),CZ.set(n,r),r}function qF({html:t,dir:e,className:n},r){const i=document.createDocumentFragment();if(typeof t=="string"){const s=document.createElement("p");s.dir=e||"auto";const a=t.split(/(?:\r\n?|\n)/);for(let o=0,l=a.length;o<l;++o){const u=a[o];s.append(document.createTextNode(u)),o<l-1&&s.append(document.createElement("br"))}i.append(s)}else VF.render({xfaHtml:t,div:i,intent:"richText"});i.firstChild.classList.add("richText",n),r.append(i)}class wb{#e=null;#t=null;#r;#n=null;#i=null;#s=null;#a=null;#o=null;static#u=null;constructor(e){this.#r=e,wb.#u||=Object.freeze({freetext:"pdfjs-editor-remove-freetext-button",highlight:"pdfjs-editor-remove-highlight-button",ink:"pdfjs-editor-remove-ink-button",stamp:"pdfjs-editor-remove-stamp-button",signature:"pdfjs-editor-remove-signature-button"})}render(){const e=this.#e=document.createElement("div");e.classList.add("editToolbar","hidden"),e.setAttribute("role","toolbar");const n=this.#r._uiManager._signal;n instanceof AbortSignal&&!n.aborted&&(e.addEventListener("contextmenu",Ya,{signal:n}),e.addEventListener("pointerdown",wb.#l,{signal:n}));const r=this.#n=document.createElement("div");r.className="buttons",e.append(r);const i=this.#r.toolbarPosition;if(i){const{style:s}=e,a=this.#r._uiManager.direction==="ltr"?1-i[0]:i[0];s.insetInlineEnd=`${100*a}%`,s.top=`calc(${100*i[1]}% + var(--editor-toolbar-vert-offset))`}return e}get div(){return this.#e}static#l(e){e.stopPropagation()}#f(e){this.#r._focusEventsAllowed=!1,Ir(e)}#d(e){this.#r._focusEventsAllowed=!0,Ir(e)}#h(e){const n=this.#r._uiManager._signal;return!(n instanceof AbortSignal)||n.aborted?!1:(e.addEventListener("focusin",this.#f.bind(this),{capture:!0,signal:n}),e.addEventListener("focusout",this.#d.bind(this),{capture:!0,signal:n}),e.addEventListener("contextmenu",Ya,{signal:n}),!0)}hide(){this.#e.classList.add("hidden"),this.#t?.hideDropdown()}show(){this.#e.classList.remove("hidden"),this.#i?.shown(),this.#s?.shown()}addDeleteButton(){const{editorType:e,_uiManager:n}=this.#r,r=document.createElement("button");r.classList.add("basic","deleteButton"),r.tabIndex=0,r.setAttribute("data-l10n-id",wb.#u[e]),this.#h(r)&&r.addEventListener("click",i=>{n.delete()},{signal:n._signal}),this.#n.append(r)}get#g(){const e=document.createElement("div");return e.className="divider",e}async addAltText(e){const n=await e.render();this.#h(n),this.#n.append(n,this.#g),this.#i=e}addComment(e,n=null){if(this.#s)return;const r=e.renderForToolbar();if(!r)return;this.#h(r);const i=this.#a=this.#g;n?(this.#n.insertBefore(r,n),this.#n.insertBefore(i,n)):this.#n.append(r,i),this.#s=e,e.toolbar=this}addColorPicker(e){if(this.#t)return;this.#t=e;const n=e.renderButton();this.#h(n),this.#n.append(n,this.#g)}async addEditSignatureButton(e){const n=this.#o=await e.renderEditButton(this.#r);this.#h(n),this.#n.append(n,this.#g)}removeButton(e){e==="comment"&&(this.#s?.removeToolbarCommentButton(),this.#s=null,this.#a?.remove(),this.#a=null)}async addButton(e,n){switch(e){case"colorPicker":this.addColorPicker(n);break;case"altText":await this.addAltText(n);break;case"editSignature":await this.addEditSignatureButton(n);break;case"delete":this.addDeleteButton();break;case"comment":this.addComment(n);break}}async addButtonBefore(e,n,r){const i=this.#n.querySelector(r);i&&e==="comment"&&this.addComment(n,i)}updateEditSignatureButton(e){this.#o&&(this.#o.title=e)}remove(){this.#e.remove(),this.#t?.destroy(),this.#t=null}}class ogt{#e=null;#t=null;#r;constructor(e){this.#r=e}#n(){const e=this.#t=document.createElement("div");e.className="editToolbar",e.setAttribute("role","toolbar");const n=this.#r._signal;n instanceof AbortSignal&&!n.aborted&&e.addEventListener("contextmenu",Ya,{signal:n});const r=this.#e=document.createElement("div");return r.className="buttons",e.append(r),this.#r.hasCommentManager()&&this.#s("commentButton","pdfjs-comment-floating-button","pdfjs-comment-floating-button-label",()=>{this.#r.commentSelection("floating_button")}),this.#s("highlightButton","pdfjs-highlight-floating-button1","pdfjs-highlight-floating-button-label",()=>{this.#r.highlightSelection("floating_button")}),e}#i(e,n){let r=0,i=0;for(const s of e){const a=s.y+s.height;if(a<r)continue;const o=s.x+(n?s.width:0);if(a>r){i=o,r=a;continue}n?o>i&&(i=o):o<i&&(i=o)}return[n?1-i:i,r]}show(e,n,r){const[i,s]=this.#i(n,r),{style:a}=this.#t||=this.#n();e.append(this.#t),a.insetInlineEnd=`${100*i}%`,a.top=`calc(${100*s}% + var(--editor-toolbar-vert-offset))`}hide(){this.#t.remove()}#s(e,n,r,i){const s=document.createElement("button");s.classList.add("basic",e),s.tabIndex=0,s.setAttribute("data-l10n-id",n);const a=document.createElement("span");s.append(a),a.className="visuallyHidden",a.setAttribute("data-l10n-id",r);const o=this.#r._signal;o instanceof AbortSignal&&!o.aborted&&(s.addEventListener("contextmenu",Ya,{signal:o}),s.addEventListener("click",i,{signal:o})),this.#e.append(s)}}function Kbe(t,e,n){for(const r of n)e.addEventListener(r,t[r].bind(t))}class lgt{#e=0;get id(){return`${Tv}${this.#e++}`}}class GF{#e=jF();#t=0;#r=null;static get _isSVGFittingCanvas(){const e='data:image/svg+xml;charset=UTF-8,<svg viewBox="0 0 1 1" width="1" height="1" xmlns="http://www.w3.org/2000/svg"><rect width="1" height="1" style="fill:red;"/></svg>',r=new OffscreenCanvas(1,3).getContext("2d",{willReadFrequently:!0}),i=new Image;i.src=e;const s=i.decode().then(()=>(r.drawImage(i,0,0,1,1,0,0,1,3),new Uint32Array(r.getImageData(0,0,1,1).data.buffer)[0]===0));return Zt(this,"_isSVGFittingCanvas",s)}async#n(e,n){this.#r||=new Map;let r=this.#r.get(e);if(r===null)return null;if(r?.bitmap)return r.refCounter+=1,r;try{r||={bitmap:null,id:`image_${this.#e}_${this.#t++}`,refCounter:0,isSvg:!1};let i;if(typeof n=="string"?(r.url=n,i=await Z0(n,"blob")):n instanceof File?i=r.file=n:n instanceof Blob&&(i=n),i.type==="image/svg+xml"){const s=GF._isSVGFittingCanvas,a=new FileReader,o=new Image,l=new Promise((u,c)=>{o.onload=()=>{r.bitmap=o,r.isSvg=!0,u()},a.onload=async()=>{const d=r.svgUrl=a.result;o.src=await s?`${d}#svgView(preserveAspectRatio(none))`:d},o.onerror=a.onerror=c});a.readAsDataURL(i),await l}else r.bitmap=await createImageBitmap(i);r.refCounter=1}catch(i){Vt(i),r=null}return this.#r.set(e,r),r&&this.#r.set(r.id,r),r}async getFromFile(e){const{lastModified:n,name:r,size:i,type:s}=e;return this.#n(`${n}_${r}_${i}_${s}`,e)}async getFromUrl(e){return this.#n(e,e)}async getFromBlob(e,n){const r=await n;return this.#n(e,r)}async getFromId(e){this.#r||=new Map;const n=this.#r.get(e);if(!n)return null;if(n.bitmap)return n.refCounter+=1,n;if(n.file)return this.getFromFile(n.file);if(n.blobPromise){const{blobPromise:r}=n;return delete n.blobPromise,this.getFromBlob(n.id,r)}return this.getFromUrl(n.url)}getFromCanvas(e,n){this.#r||=new Map;let r=this.#r.get(e);if(r?.bitmap)return r.refCounter+=1,r;const i=new OffscreenCanvas(n.width,n.height);
vendor: 4,230 bytes, line 166
166return i.getContext("2d").drawImage(n,0,0),r={bitmap:i.transferToImageBitmap(),id:`image_${this.#e}_${this.#t++}`,refCounter:1,isSvg:!1},this.#r.set(e,r),this.#r.set(r.id,r),r}getSvgUrl(e){const n=this.#r.get(e);return n?.isSvg?n.svgUrl:null}deleteId(e){this.#r||=new Map;const n=this.#r.get(e);if(!n||(n.refCounter-=1,n.refCounter!==0))return;const{bitmap:r}=n;if(!n.url&&!n.file){const i=new OffscreenCanvas(r.width,r.height);i.getContext("bitmaprenderer").transferFromImageBitmap(r),n.blobPromise=i.convertToBlob()}r.close?.(),n.bitmap=null}isValidId(e){return e.startsWith(`image_${this.#e}_`)}}class ugt{#e=[];#t=!1;#r;#n=-1;constructor(e=128){this.#r=e}add({cmd:e,undo:n,post:r,mustExec:i,type:s=NaN,overwriteIfSameType:a=!1,keepUndo:o=!1}){if(i&&e(),this.#t)return;const l={cmd:e,undo:n,post:r,type:s};if(this.#n===-1){this.#e.length>0&&(this.#e.length=0),this.#n=0,this.#e.push(l);return}if(a&&this.#e[this.#n].type===s){o&&(l.undo=this.#e[this.#n].undo),this.#e[this.#n]=l;return}const u=this.#n+1;u===this.#r?this.#e.splice(0,1):(this.#n=u,u<this.#e.length&&this.#e.splice(u)),this.#e.push(l)}undo(){if(this.#n===-1)return;this.#t=!0;const{undo:e,post:n}=this.#e[this.#n];e(),n?.(),this.#t=!1,this.#n-=1}redo(){if(this.#n<this.#e.length-1){this.#n+=1,this.#t=!0;const{cmd:e,post:n}=this.#e[this.#n];e(),n?.(),this.#t=!1}}hasSomethingToUndo(){return this.#n!==-1}hasSomethingToRedo(){return this.#n<this.#e.length-1}cleanType(e){if(this.#n!==-1){for(let n=this.#n;n>=0;n--)if(this.#e[n].type!==e){this.#e.splice(n+1,this.#n-n),this.#n=n;return}this.#e.length=0,this.#n=-1}}destroy(){this.#e=null}}class rE{constructor(e){this.buffer=[],this.callbacks=new Map,this.allKeys=new Set;const{isMac:n}=zi.platform;for(const[r,i,s={}]of e)for(const a of r){const o=a.startsWith("mac+");n&&o?(this.callbacks.set(a.slice(4),{callback:i,options:s}),this.allKeys.add(a.split("+").at(-1))):!n&&!o&&(this.callbacks.set(a,{callback:i,options:s}),this.allKeys.add(a.split("+").at(-1)))}}#e(e){e.altKey&&this.buffer.push("alt"),e.ctrlKey&&this.buffer.push("ctrl"),e.metaKey&&this.buffer.push("meta"),e.shiftKey&&this.buffer.push("shift"),this.buffer.push(e.key);const n=this.buffer.join("+");return this.buffer.length=0,n}exec(e,n){if(!this.allKeys.has(n.key))return;const r=this.callbacks.get(this.#e(n));if(!r)return;const{callback:i,options:{bubbles:s=!1,args:a=[],checker:o=null}}=r;o&&!o(e,n)||(i.bind(e,...a,n)(),s||Ir(n))}}class WF{static _colorsMapping=new Map([["CanvasText",[0,0,0]],["Canvas",[255,255,255]]]);get _colors(){const e=new Map([["CanvasText",null],["Canvas",null]]);return sgt(e),Zt(this,"_colors",e)}convert(e){const n=J0(e);if(!window.matchMedia("(forced-colors: active)").matches)return n;for(const[r,i]of this._colors)if(i.every((s,a)=>s===n[a]))return WF._colorsMapping.get(r);return n}getHexCode(e){const n=this._colors.get(e);return n?ut.makeHexColor(...n):e}}class Fc{#e=new AbortController;#t=null;#r=null;#n=new Map;#i=new Map;#s=null;#a=null;#o=null;#u=new ugt;#l=null;#f=null;#d=null;#h=0;#g=new Set;#p=null;#c=null;#m=new Set;_editorUndoBar=null;#y=!1;#v=!1;#b=!1;#S=null;#x=null;#E=null;#T=null;#w=!1;#C=null;#O=new lgt;#R=!1;#N=!1;#$=!1;#I=null;#D=null;#F=null;#P=null;#V=null;#A=zt.NONE;#_=new Set;#M=null;#B=null;#U=null;#W=null;#G=null;#Y={isEditing:!1,isEmpty:!0,hasSomethingToUndo:!1,hasSomethingToRedo:!1,hasSelectedEditor:!1,hasSelectedText:!1};#j=[0,0];#L=null;#q=null;#Z=null;#J=null;#H=null;static TRANSLATE_SMALL=1;static TRANSLATE_BIG=10;static get _keyboardManager(){const e=Fc.prototype,n=a=>a.#q.contains(document.activeElement)&&document.activeElement.tagName!=="BUTTON"&&a.hasSomethingToControl(),r=(a,{target:o})=>{if(o instanceof HTMLInputElement){const{type:l}=o;return l!=="text"&&l!=="number"}return!0},i=this.TRANSLATE_SMALL,s=this.TRANSLATE_BIG;return Zt(this,"_keyboardManager",new rE([[["ctrl+a","mac+meta+a"],e.selectAll,{checker:r}],[["ctrl+z","mac+meta+z"],e.undo,{checker:r}],[["ctrl+y","ctrl+shift+z","mac+meta+shift+z","ctrl+shift+Z","mac+meta+shift+Z"],e.redo,{checker:r}],[["Backspace","alt+Backspace","ctrl+Backspace","shift+Backspace","mac+Backspace","mac+alt+Backspace","mac+ctrl+Backspace","Delete","ctrl+Delete","shift+Delete","mac+Delete"],e.delete,{checker:r}
vendor: 6,786 bytes, line 166
166],[["Enter","mac+Enter"],e.addNewEditorFromKeyboard,{checker:(a,{target:o})=>!(o instanceof HTMLButtonElement)&&a.#q.contains(o)&&!a.isEnterHandled}],[[" ","mac+ "],e.addNewEditorFromKeyboard,{checker:(a,{target:o})=>!(o instanceof HTMLButtonElement)&&a.#q.contains(document.activeElement)}],[["Escape","mac+Escape"],e.unselectAll],[["ArrowLeft","mac+ArrowLeft"],e.translateSelectedEditors,{args:[-i,0],checker:n}],[["ctrl+ArrowLeft","mac+shift+ArrowLeft"],e.translateSelectedEditors,{args:[-s,0],checker:n}],[["ArrowRight","mac+ArrowRight"],e.translateSelectedEditors,{args:[i,0],checker:n}],[["ctrl+ArrowRight","mac+shift+ArrowRight"],e.translateSelectedEditors,{args:[s,0],checker:n}],[["ArrowUp","mac+ArrowUp"],e.translateSelectedEditors,{args:[0,-i],checker:n}],[["ctrl+ArrowUp","mac+shift+ArrowUp"],e.translateSelectedEditors,{args:[0,-s],checker:n}],[["ArrowDown","mac+ArrowDown"],e.translateSelectedEditors,{args:[0,i],checker:n}],[["ctrl+ArrowDown","mac+shift+ArrowDown"],e.translateSelectedEditors,{args:[0,s],checker:n}]]))}constructor(e,n,r,i,s,a,o,l,u,c,d,h,m,g,b,v){const E=this._signal=this.#e.signal;this.#q=e,this.#Z=n,this.#J=r,this.#s=i,this.#l=s,this.#B=a,this.#G=l,this._eventBus=o,o._on("editingaction",this.onEditingAction.bind(this),{signal:E}),o._on("pagechanging",this.onPageChanging.bind(this),{signal:E}),o._on("scalechanging",this.onScaleChanging.bind(this),{signal:E}),o._on("rotationchanging",this.onRotationChanging.bind(this),{signal:E}),o._on("setpreference",this.onSetPreference.bind(this),{signal:E}),o._on("switchannotationeditorparams",x=>this.updateParams(x.type,x.value),{signal:E}),window.addEventListener("pointerdown",()=>{this.#N=!0},{capture:!0,signal:E}),window.addEventListener("pointerup",()=>{this.#N=!1},{capture:!0,signal:E}),this.#le(),this.#fe(),this.#te(),this.#a=l.annotationStorage,this.#S=l.filterFactory,this.#U=u,this.#T=c||null,this.#y=d,this.#v=h,this.#b=m,this.#V=g||null,this.viewParameters={realScale:tp.PDF_TO_CSS_UNITS,rotation:0},this.isShiftKeyDown=!1,this._editorUndoBar=b||null,this._supportsPinchToZoom=v!==!1,s?.setSidebarUiManager(this)}destroy(){this.#H?.resolve(),this.#H=null,this.#e?.abort(),this.#e=null,this._signal=null;for(const e of this.#i.values())e.destroy();this.#i.clear(),this.#n.clear(),this.#m.clear(),this.#P?.clear(),this.#t=null,this.#_.clear(),this.#u.destroy(),this.#s?.destroy(),this.#l?.destroy(),this.#B?.destroy(),this.#C?.hide(),this.#C=null,this.#F?.destroy(),this.#F=null,this.#r=null,this.#x&&(clearTimeout(this.#x),this.#x=null),this.#L&&(clearTimeout(this.#L),this.#L=null),this._editorUndoBar?.destroy(),this.#G=null}combinedSignal(e){return AbortSignal.any([this._signal,e.signal])}get mlManager(){return this.#V}get useNewAltTextFlow(){return this.#v}get useNewAltTextWhenAddingImage(){return this.#b}get hcmFilter(){return Zt(this,"hcmFilter",this.#U?this.#S.addHCMFilter(this.#U.foreground,this.#U.background):"none")}get direction(){return Zt(this,"direction",getComputedStyle(this.#q).direction)}get _highlightColors(){return Zt(this,"_highlightColors",this.#T?new Map(this.#T.split(",").map(e=>(e=e.split("=").map(n=>n.trim()),e[1]=e[1].toUpperCase(),e))):null)}get highlightColors(){const{_highlightColors:e}=this;if(!e)return Zt(this,"highlightColors",null);const n=new Map,r=!!this.#U;for(const[i,s]of e){const a=i.endsWith("_HCM");if(r&&a){n.set(i.replace("_HCM",""),s);continue}!r&&!a&&n.set(i,s)}return Zt(this,"highlightColors",n)}get highlightColorNames(){return Zt(this,"highlightColorNames",this.highlightColors?new Map(Array.from(this.highlightColors,e=>e.reverse())):null)}getNonHCMColor(e){if(!this._highlightColors)return e;const n=this.highlightColorNames.get(e);return this._highlightColors.get(n)||e}getNonHCMColorName(e){return this.highlightColorNames.get(e)||e}setCurrentDrawingSession(e){e?(this.unselectAll(),this.disableUserSelect(!0)):this.disableUserSelect(!1),this.#d=e}setMainHighlightColorPicker(e){this.#F=e}editAltText(e,n=!1){this.#s?.editAltText(this,e,n)}hasCommentManager(){return!!this.#l}editComment(e,n,r,i){this.#l?.showDialog(this,e,n,r,i)}selectComment(e,n){this.#i.get(e)?.getEditorByUID(n)?.toggleComment(!0,!0)}updateComment(e){this.#l?.updateComment(e.getData())}updatePopupColor(e){this.#l?.updatePopupColor(e)}removeComment(e){this.#l?.removeComments([e.uid])}toggleComment(e,n,r=void 0){this.#l?.toggleCommentPopup(e,n,r)}makeCommentColor(e,n){return e&&this.#l?.makeCommentColor(e,n)||null}getCommentDialogElement(){return this.#l?.dialogElement||null}async waitForEditorsRendered(e){if(this.#i.has(e-1))return;const{resolve:n,promise:r}=Promise.withResolvers(),i=s=>{s.pageNumber===e&&(this._eventBus._off("editorsrendered",i),n())};this._eventBus.on("editorsrendered",i),await r}getSignature(e){this.#B?.getSignature({uiManager:this,editor:e})}get signatureManager(){return this.#B}switchToMode(e,n){this._eventBus.on("annotationeditormodechanged",n,{once:!0,signal:this._signal}),this._eventBus.dispatch("showannotationeditorui",{source:this,mode:e})}setPreference(e,n){this._eventBus.dispatch("setpreference",{source:this,name:e,value:n})}onSetPreference({name:e,value:n}){e==="enableNewAltTextWhenAddingImage"&&(this.#b=n)}onPageChanging({pageNumber:e}){this.#h=e-1}focusMainContainer(){this.#q.focus()}findParent(e,n){for(const r of this.#i.values()){const{x:i,y:s,width:a,height:o}=r.div.getBoundingClientRect();if(e>=i&&e<=i+a&&n>=s&&n<=s+o)return r}return null}disableUserSelect(e=!1){this.#Z.classList.toggle("noUserSelect",e)}addShouldRescale(e){this.#m.add(e)}removeShouldRescale(e){this.#m.delete(e)}onScaleChanging({scale:e}){this.commitOrRemove(),this.viewParameters.realScale=e*tp.PDF_TO_CSS_UNITS;for(const n of this.#m)n.onScaleChanging();this.#d?.onScaleChanging()}onRotationChanging({pagesRotation:e}){this.commitOrRemove(),this.viewParameters.rotation=e}#Q({anchorNode:e}){return e.nodeType===Node.TEXT_NODE?e.parentElement:e}#ee(e){const{currentLayer:n}=this;if(n.hasTextLayer(e))return n;for(const r of this.#i.values())if(r.hasTextLayer(e))return r;return null}highlightSelection(e="",n=!1){const r=document.getSelection();if(!r||r.isCollapsed)return;const{anchorNode:i,anchorOffset:s,focusNode:a,focusOffset:o}=r,l=r.toString(),c=this.#Q(r).closest(".textLayer"),d=this.getSelectionBoxes(c);if(!d)return;r.empty();const h=this.#ee(c),m=this.#A===zt.NONE,g=()=>{const b=h?.createAndAddNewEditor({x:0,y:0},!1,{methodOfCreation:e,boxes:d,anchorNode:i,anchorOffset:s,focusNode:a,focusOffset:o,text:l});m&&this.showAllEditors("highlight",!0,!0),n&&b?.editComment()};if(m){this.switchToMode(zt.HIGHLIGHT,g);return}g()}commentSelection(e=""){this.highlightSelection(e,!0)}#ae(){const e=document.getSelection();if(!e||e.isCollapsed)return;const r=this.#Q(e).closest(".textLayer"),i=this.getSelectionBoxes(r);
vendor: 5,900 bytes, line 166
166i&&(this.#C||=new ogt(this),this.#C.show(r,i,this.direction==="ltr"))}getAndRemoveDataFromAnnotationStorage(e){if(!this.#a)return null;const n=`${Tv}${e}`,r=this.#a.getRawValue(n);return r&&this.#a.remove(n),r}addToAnnotationStorage(e){!e.isEmpty()&&this.#a&&!this.#a.has(e.id)&&this.#a.setValue(e.id,e)}a11yAlert(e,n=null){const r=this.#J;r&&(r.setAttribute("data-l10n-id",e),n?r.setAttribute("data-l10n-args",JSON.stringify(n)):r.removeAttribute("data-l10n-args"))}#oe(){const e=document.getSelection();if(!e||e.isCollapsed){this.#M&&(this.#C?.hide(),this.#M=null,this.#k({hasSelectedText:!1}));return}const{anchorNode:n}=e;if(n===this.#M)return;const i=this.#Q(e).closest(".textLayer");if(!i){this.#M&&(this.#C?.hide(),this.#M=null,this.#k({hasSelectedText:!1}));return}if(this.#C?.hide(),this.#M=n,this.#k({hasSelectedText:!0}),!(this.#A!==zt.HIGHLIGHT&&this.#A!==zt.NONE)&&(this.#A===zt.HIGHLIGHT&&this.showAllEditors("highlight",!0,!0),this.#w=this.isShiftKeyDown,!this.isShiftKeyDown)){const s=this.#A===zt.HIGHLIGHT?this.#ee(i):null;if(s?.toggleDrawing(),this.#N){const a=new AbortController,o=this.combinedSignal(a),l=u=>{u.type==="pointerup"&&u.button!==0||(a.abort(),s?.toggleDrawing(!0),u.type==="pointerup"&&this.#K("main_toolbar"))};window.addEventListener("pointerup",l,{signal:o}),window.addEventListener("blur",l,{signal:o})}else s?.toggleDrawing(!0),this.#K("main_toolbar")}}#K(e=""){this.#A===zt.HIGHLIGHT?this.highlightSelection(e):this.#y&&this.#ae()}#le(){document.addEventListener("selectionchange",this.#oe.bind(this),{signal:this._signal})}#ue(){if(this.#E)return;this.#E=new AbortController;const e=this.combinedSignal(this.#E);window.addEventListener("focus",this.focus.bind(this),{signal:e}),window.addEventListener("blur",this.blur.bind(this),{signal:e})}#ce(){this.#E?.abort(),this.#E=null}blur(){if(this.isShiftKeyDown=!1,this.#w&&(this.#w=!1,this.#K("main_toolbar")),!this.hasSelection)return;const{activeElement:e}=document;for(const n of this.#_)if(n.div.contains(e)){this.#D=[n,e],n._focusEventsAllowed=!1;break}}focus(){if(!this.#D)return;const[e,n]=this.#D;this.#D=null,n.addEventListener("focusin",()=>{e._focusEventsAllowed=!0},{once:!0,signal:this._signal}),n.focus()}#te(){if(this.#I)return;this.#I=new AbortController;const e=this.combinedSignal(this.#I);window.addEventListener("keydown",this.keydown.bind(this),{signal:e}),window.addEventListener("keyup",this.keyup.bind(this),{signal:e})}#de(){this.#I?.abort(),this.#I=null}#ne(){if(this.#f)return;this.#f=new AbortController;const e=this.combinedSignal(this.#f);document.addEventListener("copy",this.copy.bind(this),{signal:e}),document.addEventListener("cut",this.cut.bind(this),{signal:e}),document.addEventListener("paste",this.paste.bind(this),{signal:e})}#re(){this.#f?.abort(),this.#f=null}#fe(){const e=this._signal;document.addEventListener("dragover",this.dragOver.bind(this),{signal:e}),document.addEventListener("drop",this.drop.bind(this),{signal:e})}addEditListeners(){this.#te(),this.#ne()}removeEditListeners(){this.#de(),this.#re()}dragOver(e){for(const{type:n}of e.dataTransfer.items)for(const r of this.#c)if(r.isHandlingMimeForPasting(n)){e.dataTransfer.dropEffect="copy",e.preventDefault();return}}drop(e){for(const n of e.dataTransfer.items)for(const r of this.#c)if(r.isHandlingMimeForPasting(n.type)){r.paste(n,this.currentLayer),e.preventDefault();return}}copy(e){if(e.preventDefault(),this.#t?.commitOrRemove(),!this.hasSelection)return;const n=[];for(const r of this.#_){const i=r.serialize(!0);i&&n.push(i)}n.length!==0&&e.clipboardData.setData("application/pdfjs",JSON.stringify(n))}cut(e){this.copy(e),this.delete()}async paste(e){e.preventDefault();const{clipboardData:n}=e;for(const s of n.items)for(const a of this.#c)if(a.isHandlingMimeForPasting(s.type)){a.paste(s,this.currentLayer);return}let r=n.getData("application/pdfjs");if(!r)return;try{r=JSON.parse(r)}catch(s){Vt(`paste: "${s.message}".`);return}if(!Array.isArray(r))return;this.unselectAll();const i=this.currentLayer;try{const s=[];for(const l of r){const u=await i.deserialize(l);if(!u)return;s.push(u)}const a=()=>{for(const l of s)this.#ie(l);this.#se(s)},o=()=>{for(const l of s)l.remove()};this.addCommands({cmd:a,undo:o,mustExec:!0})}catch(s){Vt(`paste: "${s.message}".`)}}keydown(e){!this.isShiftKeyDown&&e.key==="Shift"&&(this.isShiftKeyDown=!0),this.#A!==zt.NONE&&!this.isEditorHandlingKeyboard&&Fc._keyboardManager.exec(this,e)}keyup(e){this.isShiftKeyDown&&e.key==="Shift"&&(this.isShiftKeyDown=!1,this.#w&&(this.#w=!1,this.#K("main_toolbar")))}onEditingAction({name:e}){switch(e){case"undo":case"redo":case"delete":case"selectAll":this[e]();break;case"highlightSelection":this.highlightSelection("context_menu");break;case"commentSelection":this.commentSelection("context_menu");break}}#k(e){Object.entries(e).some(([r,i])=>this.#Y[r]!==i)&&(this._eventBus.dispatch("annotationeditorstateschanged",{source:this,details:Object.assign(this.#Y,e)}),this.#A===zt.HIGHLIGHT&&e.hasSelectedEditor===!1&&this.#z([[En.HIGHLIGHT_FREE,!0]]))}#z(e){this._eventBus.dispatch("annotationeditorparamschanged",{source:this,details:e})}setEditingState(e){e?(this.#ue(),this.#ne(),this.#k({isEditing:this.#A!==zt.NONE,isEmpty:this.#X(),hasSomethingToUndo:this.#u.hasSomethingToUndo(),hasSomethingToRedo:this.#u.hasSomethingToRedo(),hasSelectedEditor:!1})):(this.#ce(),this.#re(),this.#k({isEditing:!1}),this.disableUserSelect(!1))}registerEditorTypes(e){if(!this.#c){this.#c=e;for(const n of this.#c)this.#z(n.defaultPropertiesToUpdate)}}getId(){return this.#O.id}get currentLayer(){return this.#i.get(this.#h)}getLayer(e){return this.#i.get(e)}get currentPageIndex(){return this.#h}addLayer(e){this.#i.set(e.pageIndex,e),this.#R?e.enable():e.disable()}removeLayer(e){this.#i.delete(e.pageIndex)}async updateMode(e,n=null,r=!1,i=!1,s=!1){if(this.#A!==e&&!(this.#H&&(await this.#H.promise,!this.#H))){if(this.#H=Prom
vendor: 4,755 bytes, line 166
166ise.withResolvers(),this.#d?.commitOrRemove(),this.#A===zt.POPUP&&this.#l?.hideSidebar(),this.#l?.destroyPopup(),this.#A=e,e===zt.NONE){this.setEditingState(!1),this.#pe();for(const a of this.#n.values())a.hideStandaloneCommentButton();this._editorUndoBar?.hide(),this.toggleComment(null),this.#H.resolve();return}for(const a of this.#n.values())a.addStandaloneCommentButton();e===zt.SIGNATURE&&await this.#B?.loadSignatures(),this.setEditingState(!0),await this.#he(),this.unselectAll();for(const a of this.#i.values())a.updateMode(e);if(e===zt.POPUP){this.#r||=await this.#G.getAnnotationsByType(new Set(this.#c.map(l=>l._editorType)));const a=new Set,o=[];for(const l of this.#n.values()){const{annotationElementId:u,hasComment:c,deleted:d}=l;u&&a.add(u),c&&!d&&o.push(l.getData())}for(const l of this.#r){const{id:u,popupRef:c,contentsObj:d}=l;c&&d?.str&&!a.has(u)&&!this.#g.has(u)&&o.push(l)}this.#l?.showSidebar(o)}if(!n){r&&this.addNewEditorFromKeyboard(),this.#H.resolve();return}for(const a of this.#n.values())a.uid===n?(this.setSelected(a),s?a.editComment():i?a.enterInEditMode():a.focus()):a.unselect();this.#H.resolve()}}addNewEditorFromKeyboard(){this.currentLayer.canCreateNewEmptyEditor()&&this.currentLayer.addNewEditor()}updateToolbar(e){e.mode!==this.#A&&this._eventBus.dispatch("switchannotationeditormode",{source:this,...e})}updateParams(e,n){if(this.#c){switch(e){case En.CREATE:this.currentLayer.addNewEditor(n);return;case En.HIGHLIGHT_SHOW_ALL:this._eventBus.dispatch("reporttelemetry",{source:this,details:{type:"editing",data:{type:"highlight",action:"toggle_visibility"}}}),(this.#W||=new Map).set(e,n),this.showAllEditors("highlight",n);break}if(this.hasSelection)for(const r of this.#_)r.updateParams(e,n);else for(const r of this.#c)r.updateDefaultParams(e,n)}}showAllEditors(e,n,r=!1){for(const s of this.#n.values())s.editorType===e&&s.show(n);(this.#W?.get(En.HIGHLIGHT_SHOW_ALL)??!0)!==n&&this.#z([[En.HIGHLIGHT_SHOW_ALL,n]])}enableWaiting(e=!1){if(this.#$!==e){this.#$=e;for(const n of this.#i.values())e?n.disableClick():n.enableClick(),n.div.classList.toggle("waiting",e)}}async#he(){if(!this.#R){this.#R=!0;const e=[];for(const n of this.#i.values())e.push(n.enable());await Promise.all(e);for(const n of this.#n.values())n.enable()}}#pe(){if(this.unselectAll(),this.#R){this.#R=!1;for(const e of this.#i.values())e.disable();for(const e of this.#n.values())e.disable()}}*getEditors(e){for(const n of this.#n.values())n.pageIndex===e&&(yield n)}getEditor(e){return this.#n.get(e)}addEditor(e){this.#n.set(e.id,e)}removeEditor(e){e.div.contains(document.activeElement)&&(this.#x&&clearTimeout(this.#x),this.#x=setTimeout(()=>{this.focusMainContainer(),this.#x=null},0)),this.#n.delete(e.id),e.annotationElementId&&this.#P?.delete(e.annotationElementId),this.unselect(e),(!e.annotationElementId||!this.#g.has(e.annotationElementId))&&this.#a?.remove(e.id)}addDeletedAnnotationElement(e){this.#g.add(e.annotationElementId),this.addChangedExistingAnnotation(e),e.deleted=!0}isDeletedAnnotationElement(e){return this.#g.has(e)}removeDeletedAnnotationElement(e){this.#g.delete(e.annotationElementId),this.removeChangedExistingAnnotation(e),e.deleted=!1}#ie(e){const n=this.#i.get(e.pageIndex);n?n.addOrRebuild(e):(this.addEditor(e),this.addToAnnotationStorage(e))}setActiveEditor(e){this.#t!==e&&(this.#t=e,e&&this.#z(e.propertiesToUpdate))}get#me(){let e=null;for(e of this.#_);return e}updateUI(e){this.#me===e&&this.#z(e.propertiesToUpdate)}updateUIForDefaultProperties(e){this.#z(e.defaultPropertiesToUpdate)}toggleSelected(e){if(this.#_.has(e)){this.#_.delete(e),e.unselect(),this.#k({hasSelectedEditor:this.hasSelection});return}this.#_.add(e),e.select(),this.#z(e.propertiesToUpdate),this.#k({hasSelectedEditor:!0})}setSelected(e){this.updateToolbar({mode:e.mode,editId:e.id}),this.#d?.commitOrRemove();for(const n of this.#_)n!==e&&n.unselect();this.#_.clear(),this.#_.add(e),e.select(),this.#z(e.propertiesToUpdate),this.#k({hasSelectedEditor:!0})}isSelected(e){return this.#_.has(e)}get firstSelectedEditor(){return this.#_.values().next().value}unselect(e){e.unselect(),this.#_.delete(e),this.#k({hasSelectedEditor:this.hasSelection})}get hasSelection(){return this.#_.size!==0}get isEnterHandled(){return this.#_.size===1&&this.firstSelectedEditor.isEnterHandled}undo(){this.#u.undo(),this.#k({hasSomethingToUndo:this.#u.hasSomethingToUndo(),hasSomethingToRedo:!0,isEmpty:this.#X()}),this._editorUndoBar?.hide()}redo(){this.#u.redo(),this.#k({hasSomethingToUndo:!0,hasSomethingToRedo:this.#u.hasSomethingToRedo(),isEmpty:this.#X()})}addCommands(e){this.#u.add(e),this.#k({hasSomethingToUndo:!0,hasSomethingToRedo:!1,isEmpty:this.#X()})}cleanUndoStack(e){this.#u.cleanType(e)}#X(){if(this.#n.size===0)return!0;
vendor: 4,827 bytes, line 166
166if(this.#n.size===1)for(const e of this.#n.values())return e.isEmpty();return!1}delete(){this.commitOrRemove();const e=this.currentLayer?.endDrawingSession(!0);if(!this.hasSelection&&!e)return;const n=e?[e]:[...this.#_],r=()=>{this._editorUndoBar?.show(i,n.length===1?n[0].editorType:n.length);for(const s of n)s.remove()},i=()=>{for(const s of n)this.#ie(s)};this.addCommands({cmd:r,undo:i,mustExec:!0})}commitOrRemove(){this.#t?.commitOrRemove()}hasSomethingToControl(){return this.#t||this.hasSelection}#se(e){for(const n of this.#_)n.unselect();this.#_.clear();for(const n of e)n.isEmpty()||(this.#_.add(n),n.select());this.#k({hasSelectedEditor:this.hasSelection})}selectAll(){for(const e of this.#_)e.commit();this.#se(this.#n.values())}unselectAll(){if(!(this.#t&&(this.#t.commitOrRemove(),this.#A!==zt.NONE))&&!this.#d?.commitOrRemove()&&this.hasSelection){for(const e of this.#_)e.unselect();this.#_.clear(),this.#k({hasSelectedEditor:!1})}}translateSelectedEditors(e,n,r=!1){if(r||this.commitOrRemove(),!this.hasSelection)return;this.#j[0]+=e,this.#j[1]+=n;const[i,s]=this.#j,a=[...this.#_],o=1e3;this.#L&&clearTimeout(this.#L),this.#L=setTimeout(()=>{this.#L=null,this.#j[0]=this.#j[1]=0,this.addCommands({cmd:()=>{for(const l of a)this.#n.has(l.id)&&(l.translateInPage(i,s),l.translationDone())},undo:()=>{for(const l of a)this.#n.has(l.id)&&(l.translateInPage(-i,-s),l.translationDone())},mustExec:!1})},o);for(const l of a)l.translateInPage(e,n),l.translationDone()}setUpDragSession(){if(this.hasSelection){this.disableUserSelect(!0),this.#p=new Map;for(const e of this.#_)this.#p.set(e,{savedX:e.x,savedY:e.y,savedPageIndex:e.pageIndex,newX:0,newY:0,newPageIndex:-1})}}endDragSession(){if(!this.#p)return!1;this.disableUserSelect(!1);const e=this.#p;this.#p=null;let n=!1;for(const[{x:i,y:s,pageIndex:a},o]of e)o.newX=i,o.newY=s,o.newPageIndex=a,n||=i!==o.savedX||s!==o.savedY||a!==o.savedPageIndex;if(!n)return!1;const r=(i,s,a,o)=>{if(this.#n.has(i.id)){const l=this.#i.get(o);l?i._setParentAndPosition(l,s,a):(i.pageIndex=o,i.x=s,i.y=a)}};return this.addCommands({cmd:()=>{for(const[i,{newX:s,newY:a,newPageIndex:o}]of e)r(i,s,a,o)},undo:()=>{for(const[i,{savedX:s,savedY:a,savedPageIndex:o}]of e)r(i,s,a,o)},mustExec:!0}),!0}dragSelectedEditors(e,n){if(this.#p)for(const r of this.#p.keys())r.drag(e,n)}rebuild(e){if(e.parent===null){const n=this.getLayer(e.pageIndex);n?(n.changeParent(e),n.addOrRebuild(e)):(this.addEditor(e),this.addToAnnotationStorage(e),e.rebuild())}else e.parent.addOrRebuild(e)}get isEditorHandlingKeyboard(){return this.getActive()?.shouldGetKeyboardEvents()||this.#_.size===1&&this.firstSelectedEditor.shouldGetKeyboardEvents()}isActive(e){return this.#t===e}getActive(){return this.#t}getMode(){return this.#A}isEditingMode(){return this.#A!==zt.NONE}get imageManager(){return Zt(this,"imageManager",new GF)}getSelectionBoxes(e){if(!e)return null;const n=document.getSelection();for(let u=0,c=n.rangeCount;u<c;u++)if(!e.contains(n.getRangeAt(u).commonAncestorContainer))return null;const{x:r,y:i,width:s,height:a}=e.getBoundingClientRect();let o;switch(e.getAttribute("data-main-rotation")){case"90":o=(u,c,d,h)=>({x:(c-i)/a,y:1-(u+d-r)/s,width:h/a,height:d/s});break;case"180":o=(u,c,d,h)=>({x:1-(u+d-r)/s,y:1-(c+h-i)/a,width:d/s,height:h/a});break;case"270":o=(u,c,d,h)=>({x:1-(c+h-i)/a,y:(u-r)/s,width:h/a,height:d/s});break;default:o=(u,c,d,h)=>({x:(u-r)/s,y:(c-i)/a,width:d/s,height:h/a});break}const l=[];for(let u=0,c=n.rangeCount;u<c;u++){const d=n.getRangeAt(u);if(!d.collapsed)for(const{x:h,y:m,width:g,height:b}of d.getClientRects())g===0||b===0||l.push(o(h,m,g,b))}return l.length===0?null:l}addChangedExistingAnnotation({annotationElementId:e,id:n}){(this.#o||=new Map).set(e,n)}removeChangedExistingAnnotation({annotationElementId:e}){this.#o?.delete(e)}renderAnnotationElement(e){const n=this.#o?.get(e.data.id);if(!n)return;const r=this.#a.getRawValue(n);r&&(this.#A===zt.NONE&&!r.hasBeenModified||r.renderAnnotationElement(e))}setMissingCanvas(e,n,r){const i=this.#P?.get(e);i&&(i.setCanvas(n,r),this.#P.delete(e))}addMissingCanvas(e,n){(this.#P||=new Map).set(e,n)}}class jl{#e=null;#t=!1;#r=null;#n=null;#i=null;#s=null;#a=!1;#o=null;#u=null;#l=null;#f=null;#d=!1;static#h=null;static _l10n=null;constructor(e){this.#u=e,this.#d=e._uiManager.useNewAltTextFlow,jl.#h||=Object.freeze({added:"pdfjs-editor-new-alt-text-added-button","added-label":"pdfjs-editor-new-alt-text-added-button-label",missing:"pdfjs-editor-new-alt-text-missing-button","missing-label":"pdfjs-editor-new-alt-text-missing-button-label",review:"pdfjs-editor-new-alt-text-to-review-button","review-label":"pdfjs-editor-new-alt-text-to-review-button-label"})}static initialize(e){jl._l10n??=e}async render(){const e=this.#r=document.createElement("button");e.className="altText",e.tabIndex="0";
vendor: 4,624 bytes, line 166
166const n=this.#n=document.createElement("span");e.append(n),this.#d?(e.classList.add("new"),e.setAttribute("data-l10n-id",jl.#h.missing),n.setAttribute("data-l10n-id",jl.#h["missing-label"])):(e.setAttribute("data-l10n-id","pdfjs-editor-alt-text-button"),n.setAttribute("data-l10n-id","pdfjs-editor-alt-text-button-label"));const r=this.#u._uiManager._signal;e.addEventListener("contextmenu",Ya,{signal:r}),e.addEventListener("pointerdown",s=>s.stopPropagation(),{signal:r});const i=s=>{s.preventDefault(),this.#u._uiManager.editAltText(this.#u),this.#d&&this.#u._reportTelemetry({action:"pdfjs.image.alt_text.image_status_label_clicked",data:{label:this.#g}})};return e.addEventListener("click",i,{capture:!0,signal:r}),e.addEventListener("keydown",s=>{s.target===e&&s.key==="Enter"&&(this.#a=!0,i(s))},{signal:r}),await this.#p(),e}get#g(){return this.#e&&"added"||this.#e===null&&this.guessedText&&"review"||"missing"}finish(){this.#r&&(this.#r.focus({focusVisible:this.#a}),this.#a=!1)}isEmpty(){return this.#d?this.#e===null:!this.#e&&!this.#t}hasData(){return this.#d?this.#e!==null||!!this.#l:this.isEmpty()}get guessedText(){return this.#l}async setGuessedText(e){this.#e===null&&(this.#l=e,this.#f=await jl._l10n.get("pdfjs-editor-new-alt-text-generated-alt-text-with-disclaimer",{generatedAltText:e}),this.#p())}toggleAltTextBadge(e=!1){if(!this.#d||this.#e){this.#o?.remove(),this.#o=null;return}if(!this.#o){const n=this.#o=document.createElement("div");n.className="noAltTextBadge",this.#u.div.append(n)}this.#o.classList.toggle("hidden",!e)}serialize(e){let n=this.#e;return!e&&this.#l===n&&(n=this.#f),{altText:n,decorative:this.#t,guessedText:this.#l,textWithDisclaimer:this.#f}}get data(){return{altText:this.#e,decorative:this.#t}}set data({altText:e,decorative:n,guessedText:r,textWithDisclaimer:i,cancel:s=!1}){r&&(this.#l=r,this.#f=i),!(this.#e===e&&this.#t===n)&&(s||(this.#e=e,this.#t=n),this.#p())}toggle(e=!1){this.#r&&(!e&&this.#s&&(clearTimeout(this.#s),this.#s=null),this.#r.disabled=!e)}shown(){this.#u._reportTelemetry({action:"pdfjs.image.alt_text.image_status_label_displayed",data:{label:this.#g}})}destroy(){this.#r?.remove(),this.#r=null,this.#n=null,this.#i=null,this.#o?.remove(),this.#o=null}async#p(){const e=this.#r;if(!e)return;if(this.#d){if(e.classList.toggle("done",!!this.#e),e.setAttribute("data-l10n-id",jl.#h[this.#g]),this.#n?.setAttribute("data-l10n-id",jl.#h[`${this.#g}-label`]),!this.#e){this.#i?.remove();return}}else{if(!this.#e&&!this.#t){e.classList.remove("done"),this.#i?.remove();return}e.classList.add("done"),e.setAttribute("data-l10n-id","pdfjs-editor-alt-text-edit-button")}let n=this.#i;if(!n){this.#i=n=document.createElement("span"),n.className="tooltip",n.setAttribute("role","tooltip"),n.id=`alt-text-tooltip-${this.#u.id}`;const i=100,s=this.#u._uiManager._signal;s.addEventListener("abort",()=>{clearTimeout(this.#s),this.#s=null},{once:!0}),e.addEventListener("mouseenter",()=>{this.#s=setTimeout(()=>{this.#s=null,this.#i.classList.add("show"),this.#u._reportTelemetry({action:"alt_text_tooltip"})},i)},{signal:s}),e.addEventListener("mouseleave",()=>{this.#s&&(clearTimeout(this.#s),this.#s=null),this.#i?.classList.remove("show")},{signal:s})}this.#t?n.setAttribute("data-l10n-id","pdfjs-editor-alt-text-decorative-tooltip"):(n.removeAttribute("data-l10n-id"),n.textContent=this.#e),n.parentNode||e.append(n),this.#u.getElementForAltText()?.setAttribute("aria-describedby",n.id)}}class Ax{#e=null;#t=null;#r=!1;#n=null;#i=null;#s=null;#a=null;#o=null;#u=!1;#l=null;constructor(e){this.#n=e}renderForToolbar(){const e=this.#t=document.createElement("button");return e.className="comment",this.#f(e,!1)}renderForStandalone(){const e=this.#e=document.createElement("button");e.className="annotationCommentButton";const n=this.#n.commentButtonPosition;if(n){const{style:r}=e;r.insetInlineEnd=`calc(${100*(this.#n._uiManager.direction==="ltr"?1-n[0]:n[0])}% - var(--comment-button-dim))`,r.top=`calc(${100*n[1]}% - var(--comment-button-dim))`;const i=this.#n.commentButtonColor;i&&(r.backgroundColor=i)}return this.#f(e,!0)}focusButton(){setTimeout(()=>{(this.#e??this.#t)?.focus()},0)}onUpdatedColor(){if(!this.#e)return;const e=this.#n.commentButtonColor;e&&(this.#e.style.backgroundColor=e),this.#n._uiManager.updatePopupColor(this.#n)}get commentButtonWidth(){return(this.#e?.getBoundingClientRect().width??0)/this.#n.parent.boundingClientRect.width}get commentPopupPositionInLayer(){if(this.#l)return this.#l;if(!this.#e)return null;const{x:e,y:n,height:r}=this.#e.getBoundingClientRect(),{x:i,y:s,width:a,height:o}=this.#n.parent.boundingClientRect;
vendor: 25,273 bytes, line 166
166return[(e-i)/a,(n+r-s)/o]}set commentPopupPositionInLayer(e){this.#l=e}hasDefaultPopupPosition(){return this.#l===null}removeStandaloneCommentButton(){this.#e?.remove(),this.#e=null}removeToolbarCommentButton(){this.#t?.remove(),this.#t=null}setCommentButtonStates({selected:e,hasPopup:n}){this.#e&&(this.#e.classList.toggle("selected",e),this.#e.ariaExpanded=n)}#f(e,n){if(!this.#n._uiManager.hasCommentManager())return null;e.tabIndex="0",e.ariaHasPopup="dialog",n?(e.ariaControls="commentPopup",e.setAttribute("data-l10n-id","pdfjs-show-comment-button")):(e.ariaControlsElements=[this.#n._uiManager.getCommentDialogElement()],e.setAttribute("data-l10n-id","pdfjs-editor-edit-comment-button"));const r=this.#n._uiManager._signal;if(!(r instanceof AbortSignal)||r.aborted)return e;e.addEventListener("contextmenu",Ya,{signal:r}),n&&(e.addEventListener("focusin",s=>{this.#n._focusEventsAllowed=!1,Ir(s)},{capture:!0,signal:r}),e.addEventListener("focusout",s=>{this.#n._focusEventsAllowed=!0,Ir(s)},{capture:!0,signal:r})),e.addEventListener("pointerdown",s=>s.stopPropagation(),{signal:r});const i=s=>{s.preventDefault(),e===this.#t?this.edit():this.#n.toggleComment(!0)};return e.addEventListener("click",i,{capture:!0,signal:r}),e.addEventListener("keydown",s=>{s.target===e&&s.key==="Enter"&&(this.#r=!0,i(s))},{signal:r}),e.addEventListener("pointerenter",()=>{this.#n.toggleComment(!1,!0)},{signal:r}),e.addEventListener("pointerleave",()=>{this.#n.toggleComment(!1,!1)},{signal:r}),e}edit(e){const n=this.commentPopupPositionInLayer;let r,i;if(n)[r,i]=n;else{[r,i]=this.#n.commentButtonPosition;const{width:c,height:d,x:h,y:m}=this.#n;r=h+r*c,i=m+i*d}const s=this.#n.parent.boundingClientRect,{x:a,y:o,width:l,height:u}=s;this.#n._uiManager.editComment(this.#n,a+r*l,o+i*u,{...e,parentDimensions:s})}finish(){this.#t&&(this.#t.focus({focusVisible:this.#r}),this.#r=!1)}isDeleted(){return this.#u||this.#a===""}isEmpty(){return this.#a===null}hasBeenEdited(){return this.isDeleted()||this.#a!==this.#i}serialize(){return this.data}get data(){return{text:this.#a,richText:this.#s,date:this.#o,deleted:this.isDeleted()}}set data(e){if(e!==this.#a&&(this.#s=null),e===null){this.#a="",this.#u=!0;return}this.#a=e,this.#o=new Date,this.#u=!1}setInitialText(e,n=null){this.#i=e,this.data=e,this.#o=null,this.#s=n}shown(){}destroy(){this.#t?.remove(),this.#t=null,this.#e?.remove(),this.#e=null,this.#a="",this.#s=null,this.#o=null,this.#n=null,this.#r=!1,this.#u=!1}}class iE{#e;#t=!1;#r=null;#n;#i;#s;#a;#o=null;#u;#l=null;#f;#d=null;constructor({container:e,isPinchingDisabled:n=null,isPinchingStopped:r=null,onPinchStart:i=null,onPinching:s=null,onPinchEnd:a=null,signal:o}){this.#e=e,this.#r=r,this.#n=n,this.#i=i,this.#s=s,this.#a=a,this.#f=new AbortController,this.#u=AbortSignal.any([o,this.#f.signal]),e.addEventListener("touchstart",this.#h.bind(this),{passive:!1,signal:this.#u})}get MIN_TOUCH_DISTANCE_TO_PINCH(){return 35/hl.pixelRatio}#h(e){if(this.#n?.())return;if(e.touches.length===1){if(this.#o)return;const i=this.#o=new AbortController,s=AbortSignal.any([this.#u,i.signal]),a=this.#e,o={capture:!0,signal:s,passive:!1},l=u=>{u.pointerType==="touch"&&(this.#o?.abort(),this.#o=null)};a.addEventListener("pointerdown",u=>{u.pointerType==="touch"&&(Ir(u),l(u))},o),a.addEventListener("pointerup",l,o),a.addEventListener("pointercancel",l,o);return}if(!this.#d){this.#d=new AbortController;const i=AbortSignal.any([this.#u,this.#d.signal]),s=this.#e,a={signal:i,capture:!1,passive:!1};s.addEventListener("touchmove",this.#g.bind(this),a);const o=this.#p.bind(this);s.addEventListener("touchend",o,a),s.addEventListener("touchcancel",o,a),a.capture=!0,s.addEventListener("pointerdown",Ir,a),s.addEventListener("pointermove",Ir,a),s.addEventListener("pointercancel",Ir,a),s.addEventListener("pointerup",Ir,a),this.#i?.()}if(Ir(e),e.touches.length!==2||this.#r?.()){this.#l=null;return}let[n,r]=e.touches;n.identifier>r.identifier&&([n,r]=[r,n]),this.#l={touch0X:n.screenX,touch0Y:n.screenY,touch1X:r.screenX,touch1Y:r.screenY}}#g(e){if(!this.#l||e.touches.length!==2)return;Ir(e);let[n,r]=e.touches;n.identifier>r.identifier&&([n,r]=[r,n]);const{screenX:i,screenY:s}=n,{screenX:a,screenY:o}=r,l=this.#l,{touch0X:u,touch0Y:c,touch1X:d,touch1Y:h}=l,m=d-u,g=h-c,b=a-i,v=o-s,E=Math.hypot(b,v)||1,x=Math.hypot(m,g)||1;if(!this.#t&&Math.abs(x-E)<=iE.MIN_TOUCH_DISTANCE_TO_PINCH)return;if(l.touch0X=i,l.touch0Y=s,l.touch1X=a,l.touch1Y=o,!this.#t){this.#t=!0;return}const _=[(i+a)/2,(s+o)/2];this.#s?.(_,x,E)}#p(e){e.touches.length>=2||(this.#d&&(this.#d.abort(),this.#d=null,this.#a?.()),this.#l&&(Ir(e),this.#l=null,this.#t=!1))}destroy(){this.#f?.abort(),this.#f=null,this.#o?.abort(),this.#o=null}}class Rt{#e=null;#t=null;#r=null;#n=null;#i=null;#s=!1;#a=null;#o="";#u=null;#l=null;#f=null;#d=null;#h=null;#g="";#p=!1;#c=null;#m=!1;#y=!1;#v=!1;#b=null;#S=0;#x=0;#E=null;#T=null;isSelected=!1;_isCopy=!1;_editToolbar=null;_initialOptions=Object.create(null);_initialData=null;_isVisible=!0;_uiManager=null;_focusEventsAllowed=!0;static _l10n=null;static _l10nResizer=null;#w=!1;#C=Rt._zIndex++;static _borderLineWidth=-1;static _colorManager=new WF;static _zIndex=1;static _telemetryTimeout=1e3;static get _resizerKeyboardManager(){const e=Rt.prototype._resizeWithKeyboard,n=Fc.TRANSLATE_SMALL,r=Fc.TRANSLATE_BIG;return Zt(this,"_resizerKeyboardManager",new rE([[["ArrowLeft","mac+ArrowLeft"],e,{args:[-n,0]}],[["ctrl+ArrowLeft","mac+shift+ArrowLeft"],e,{args:[-r,0]}],[["ArrowRight","mac+ArrowRight"],e,{args:[n,0]}],[["ctrl+ArrowRight","mac+shift+ArrowRight"],e,{args:[r,0]}],[["ArrowUp","mac+ArrowUp"],e,{args:[0,-n]}],[["ctrl+ArrowUp","mac+shift+ArrowUp"],e,{args:[0,-r]}],[["ArrowDown","mac+ArrowDown"],e,{args:[0,n]}],[["ctrl+ArrowDown","mac+shift+ArrowDown"],e,{args:[0,r]}],[["Escape","mac+Escape"],Rt.prototype._stopResizingWithKeyboard]]))}constructor(e){this.parent=e.parent,this.id=e.id,this.width=this.height=null,this.pageIndex=e.parent.pageIndex,this.name=e.name,this.div=null,this._uiManager=e.uiManager,this.annotationElementId=null,this._willKeepAspectRatio=!1,this._initialOptions.isCentered=e.isCentered,this._structTreeParentId=null,this.annotationElementId=e.annotationElementId||null,this.creationDate=e.creationDate||new Date,this.modificationDate=e.modificationDate||null;const{rotation:n,rawDims:{pageWidth:r,pageHeight:i,pageX:s,pageY:a}}=this.parent.viewport;this.rotation=n,this.pageRotation=(360+n-this._uiManager.viewParameters.rotation)%360,this.pageDimensions=[r,i],this.pageTranslation=[s,a];const[o,l]=this.parentDimensions;this.x=e.x/o,this.y=e.y/l,this.isAttachedToDOM=!1,this.deleted=!1}get editorType(){return Object.getPrototypeOf(this).constructor._type}get mode(){return Object.getPrototypeOf(this).constructor._editorType}static get isDrawer(){return!1}static get _defaultLineColor(){return Zt(this,"_defaultLineColor",this._colorManager.getHexCode("CanvasText"))}static deleteAnnotationElement(e){const n=new cgt({id:e.parent.getNextId(),parent:e.parent,uiManager:e._uiManager});n.annotationElementId=e.annotationElementId,n.deleted=!0,n._uiManager.addToAnnotationStorage(n)}static initialize(e,n){if(Rt._l10n??=e,Rt._l10nResizer||=Object.freeze({topLeft:"pdfjs-editor-resizer-top-left",topMiddle:"pdfjs-editor-resizer-top-middle",topRight:"pdfjs-editor-resizer-top-right",middleRight:"pdfjs-editor-resizer-middle-right",bottomRight:"pdfjs-editor-resizer-bottom-right",bottomMiddle:"pdfjs-editor-resizer-bottom-middle",bottomLeft:"pdfjs-editor-resizer-bottom-left",middleLeft:"pdfjs-editor-resizer-middle-left"}),Rt._borderLineWidth!==-1)return;const r=getComputedStyle(document.documentElement);Rt._borderLineWidth=parseFloat(r.getPropertyValue("--outline-width"))||0}static updateDefaultParams(e,n){}static get defaultPropertiesToUpdate(){return[]}static isHandlingMimeForPasting(e){return!1}static paste(e,n){er("Not implemented")}get propertiesToUpdate(){return[]}get _isDraggable(){return this.#w}set _isDraggable(e){this.#w=e,this.div?.classList.toggle("draggable",e)}get uid(){return this.annotationElementId||this.id}get isEnterHandled(){return!0}center(){const[e,n]=this.pageDimensions;switch(this.parentRotation){case 90:this.x-=this.height*n/(e*2),this.y+=this.width*e/(n*2);break;case 180:this.x+=this.width/2,this.y+=this.height/2;break;case 270:this.x+=this.height*n/(e*2),this.y-=this.width*e/(n*2);break;default:this.x-=this.width/2,this.y-=this.height/2;break}this.fixAndSetPosition()}addCommands(e){this._uiManager.addCommands(e)}get currentLayer(){return this._uiManager.currentLayer}setInBackground(){this.div.style.zIndex=0}setInForeground(){this.div.style.zIndex=this.#C}setParent(e){e!==null?(this.pageIndex=e.pageIndex,this.pageDimensions=e.pageDimensions):(this.#L(),this.#d?.remove(),this.#d=null),this.parent=e}focusin(e){this._focusEventsAllowed&&(this.#p?this.#p=!1:this.parent.setSelected(this))}focusout(e){!this._focusEventsAllowed||!this.isAttachedToDOM||e.relatedTarget?.closest(`#${this.id}`)||(e.preventDefault(),this.parent?.isMultipleSelection||this.commitOrRemove())}commitOrRemove(){this.isEmpty()?this.remove():this.commit()}commit(){this.isInEditMode()&&this.addToAnnotationStorage()}addToAnnotationStorage(){this._uiManager.addToAnnotationStorage(this)}setAt(e,n,r,i){const[s,a]=this.parentDimensions;[r,i]=this.screenToPageTranslation(r,i),this.x=(e+r)/s,this.y=(n+i)/a,this.fixAndSetPosition()}_moveAfterPaste(e,n){const[r,i]=this.parentDimensions;this.setAt(e*r,n*i,this.width*r,this.height*i),this._onTranslated()}#O([e,n],r,i){[r,i]=this.screenToPageTranslation(r,i),this.x+=r/e,this.y+=i/n,this._onTranslating(this.x,this.y),this.fixAndSetPosition()}translate(e,n){this.#O(this.parentDimensions,e,n)}translateInPage(e,n){this.#c||=[this.x,this.y,this.width,this.height],this.#O(this.pageDimensions,e,n),this.div.scrollIntoView({block:"nearest"})}translationDone(){this._onTranslated(this.x,this.y)}drag(e,n){this.#c||=[this.x,this.y,this.width,this.height];const{div:r,parentDimensions:[i,s]}=this;if(this.x+=e/i,this.y+=n/s,this.parent&&(this.x<0||this.x>1||this.y<0||this.y>1)){const{x:d,y:h}=this.div.getBoundingClientRect();this.parent.findNewParent(this,d,h)&&(this.x-=Math.floor(this.x),this.y-=Math.floor(this.y))}let{x:a,y:o}=this;const[l,u]=this.getBaseTranslation();a+=l,o+=u;const{style:c}=r;c.left=`${(100*a).toFixed(2)}%`,c.top=`${(100*o).toFixed(2)}%`,this._onTranslating(a,o),r.scrollIntoView({block:"nearest"})}_onTranslating(e,n){}_onTranslated(e,n){}get _hasBeenMoved(){return!!this.#c&&(this.#c[0]!==this.x||this.#c[1]!==this.y)}get _hasBeenResized(){return!!this.#c&&(this.#c[2]!==this.width||this.#c[3]!==this.height)}getBaseTranslation(){const[e,n]=this.parentDimensions,{_borderLineWidth:r}=Rt,i=r/e,s=r/n;switch(this.rotation){case 90:return[-i,s];case 180:return[i,s];case 270:return[i,-s];default:return[-i,-s]}}get _mustFixPosition(){return!0}fixAndSetPosition(e=this.rotation){const{div:{style:n},pageDimensions:[r,i]}=this;let{x:s,y:a,width:o,height:l}=this;if(o*=r,l*=i,s*=r,a*=i,this._mustFixPosition)switch(e){case 0:s=is(s,0,r-o),a=is(a,0,i-l);break;case 90:s=is(s,0,r-l),a=is(a,o,i);break;case 180:s=is(s,o,r),a=is(a,l,i);break;case 270:s=is(s,l,r),a=is(a,0,i-o);break}this.x=s/=r,this.y=a/=i;const[u,c]=this.getBaseTranslation();s+=u,a+=c,n.left=`${(100*s).toFixed(2)}%`,n.top=`${(100*a).toFixed(2)}%`,this.moveInDOM()}static#R(e,n,r){switch(r){case 90:return[n,-e];case 180:return[-e,-n];case 270:return[-n,e];default:return[e,n]}}screenToPageTranslation(e,n){return Rt.#R(e,n,this.parentRotation)}pageTranslationToScreen(e,n){return Rt.#R(e,n,360-this.parentRotation)}#N(e){switch(e){case 90:{const[n,r]=this.pageDimensions;return[0,-n/r,r/n,0]}case 180:return[-1,0,0,-1];case 270:{const[n,r]=this.pageDimensions;return[0,n/r,-r/n,0]}default:return[1,0,0,1]}}get parentScale(){return this._uiManager.viewParameters.realScale}get parentRotation(){return(this._uiManager.viewParameters.rotation+this.pageRotation)%360}get parentDimensions(){const{parentScale:e,pageDimensions:[n,r]}=this;return[n*e,r*e]}setDims(){const{div:{style:e},width:n,height:r}=this;e.width=`${(100*n).toFixed(2)}%`,e.height=`${(100*r).toFixed(2)}%`}getInitialTranslation(){return[0,0]}#$(){if(this.#u)return;this.#u=document.createElement("div"),this.#u.classList.add("resizers");const e=this._willKeepAspectRatio?["topLeft","topRight","bottomRight","bottomLeft"]:["topLeft","topMiddle","topRight","middleRight","bottomRight","bottomMiddle","bottomLeft","middleLeft"],n=this._uiManager._signal;for(const r of e){const i=document.createElement("div");this.#u.append(i),i.classList.add("resizer",r),i.setAttribute("data-resizer-name",r),i.addEventListener("pointerdown",this.#I.bind(this,r),{signal:n}),i.addEventListener("contextmenu",Ya,{signal:n}),i.tabIndex=-1}this.div.prepend(this.#u)}#I(e,n){n.preventDefault();const{isMac:r}=zi.platform;if(n.button!==0||n.ctrlKey&&r)return;this.#r?.toggle(!1);const i=this._isDraggable;this._isDraggable=!1,this.#l=[n.screenX,n.screenY];const s=new AbortController,a=this._uiManager.combinedSignal(s);this.parent.togglePointerEvents(!1),window.addEventListener("pointermove",this.#P.bind(this,e),{passive:!0,capture:!0,signal:a}),window.addEventListener("touchmove",Ir,{passive:!1,signal:a}),window.addEventListener("contextmenu",Ya,{signal:a}),this.#f={savedX:this.x,savedY:this.y,savedWidth:this.width,savedHeight:this.height};const o=this.parent.div.style.cursor,l=this.div.style.cursor;this.div.style.cursor=this.parent.div.style.cursor=window.getComputedStyle(n.target).cursor;const u=()=>{s.abort(),this.parent.togglePointerEvents(!0),this.#r?.toggle(!0),this._isDraggable=i,this.parent.div.style.cursor=o,this.div.style.cursor=l,this.#F()};window.addEventListener("pointerup",u,{signal:a}),window.addEventListener("blur",u,{signal:a})}#D(e,n,r,i){this.width=r,this.height=i,this.x=e,this.y=n,this.setDims(),this.fixAndSetPosition(),this._onResized()}_onResized(){}#F(){if(!this.#f)return;const{savedX:e,savedY:n,savedWidth:r,savedHeight:i}=this.#f;this.#f=null;const s=this.x,a=this.y,o=this.width,l=this.height;s===e&&a===n&&o===r&&l===i||this.addCommands({cmd:this.#D.bind(this,s,a,o,l),undo:this.#D.bind(this,e,n,r,i),mustExec:!0})}static _round(e){return Math.round(e*1e4)/1e4}#P(e,n){const[r,i]=this.parentDimensions,s=this.x,a=this.y,o=this.width,l=this.height,u=Rt.MIN_SIZE/r,c=Rt.MIN_SIZE/i,d=this.#N(this.rotation),h=(F,G)=>[d[0]*F+d[2]*G,d[1]*F+d[3]*G],m=this.#N(360-this.rotation),g=(F,G)=>[m[0]*F+m[2]*G,m[1]*F+m[3]*G];let b,v,E=!1,x=!1;switch(e){case"topLeft":E=!0,b=(F,G)=>[0,0],v=(F,G)=>[F,G];break;case"topMiddle":b=(F,G)=>[F/2,0],v=(F,G)=>[F/2,G];break;case"topRight":E=!0,b=(F,G)=>[F,0],v=(F,G)=>[0,G];break;case"middleRight":x=!0,b=(F,G)=>[F,G/2],v=(F,G)=>[0,G/2];break;case"bottomRight":E=!0,b=(F,G)=>[F,G],v=(F,G)=>[0,0];break;case"bottomMiddle":b=(F,G)=>[F/2,G],v=(F,G)=>[F/2,0];break;case"bottomLeft":E=!0,b=(F,G)=>[0,G],v=(F,G)=>[F,0];break;case"middleLeft":x=!0,b=(F,G)=>[0,G/2],v=(F,G)=>[F,G/2];break}const _=b(o,l),S=v(o,l);let A=h(...S);const R=Rt._round(s+A[0]),T=Rt._round(a+A[1]);let O=1,I=1,D,P;if(n.fromKeyboard)({deltaX:D,deltaY:P}=n);else{const{screenX:F,screenY:G}=n,[H,K]=this.#l;[D,P]=this.screenToPageTranslation(F-H,G-K),this.#l[0]=F,this.#l[1]=G}if([D,P]=g(D/r,P/i),E){const F=Math.hypot(o,l);O=I=Math.max(Math.min(Math.hypot(S[0]-_[0]-D,S[1]-_[1]-P)/F,1/o,1/l),u/o,c/l)}else x?O=is(Math.abs(S[0]-_[0]-D),u,1)/o:I=is(Math.abs(S[1]-_[1]-P),c,1)/l;const B=Rt._round(o*O),L=Rt._round(l*I);A=h(...v(B,L));const $=R-A[0],q=T-A[1];this.#c||=[this.x,this.y,this.width,this.height],this.width=B,this.height=L,this.x=$,this.y=q,this.setDims(),this.fixAndSetPosition(),this._onResizing()}_onResizing(){}altTextFinish(){this.#r?.finish()}get toolbarButtons(){return null}async addEditToolbar(){if(this._editToolbar||this.#y)return this._editToolbar;this._editToolbar=new wb(this),this.div.append(this._editToolbar.render());const{toolbarButtons:e}=this;if(e)for(const[n,r]of e)await this._editToolbar.addButton(n,r);return this.hasComment||this._editToolbar.addButton("comment",this.addCommentButton()),this._editToolbar.addButton("delete"),this._editToolbar}addCommentButtonInToolbar(){this._editToolbar?.addButtonBefore("comment",this.addCommentButton(),".deleteButton")}removeCommentButtonFromToolbar(){this._editToolbar?.removeButton("comment")}removeEditToolbar(){this._editToolbar?.remove(),this._editToolbar=null,this.#r?.destroy()}addContainer(e){const n=this._editToolbar?.div;n?n.before(e):this.div.append(e)}getClientDimensions(){return this.div.getBoundingClientRect()}createAltText(){return this.#r||(jl.initialize(Rt._l10n),this.#r=new jl(this),this.#e&&(this.#r.data=this.#e,this.#e=null)),this.#r}get altTextData(){return this.#r?.data}set altTextData(e){this.#r&&(this.#r.data=e)}get guessedAltText(){return this.#r?.guessedText}async setGuessedAltText(e){await this.#r?.setGuessedText(e)}serializeAltText(e){return this.#r?.serialize(e)}hasAltText(){return!!this.#r&&!this.#r.isEmpty()}hasAltTextData(){return this.#r?.hasData()??!1}focusCommentButton(){this.#n?.focusButton()}addCommentButton(){return this.#n||=new Ax(this)}addStandaloneCommentButton(){if(this.#i){this._uiManager.isEditingMode()&&this.#i.classList.remove("hidden");return}this.hasComment&&(this.#i=this.#n.renderForStandalone(),this.div.append(this.#i))}removeStandaloneCommentButton(){this.#n.removeStandaloneCommentButton(),this.#i=null}hideStandaloneCommentButton(){this.#i?.classList.add("hidden")}get comment(){const{data:{richText:e,text:n,date:r,deleted:i}}=this.#n;return{text:n,richText:e,date:r,deleted:i,color:this.getNonHCMColor(),opacity:this.opacity??1}}set comment(e){this.#n||=new Ax(this),this.#n.data=e,this.hasComment?(this.removeCommentButtonFromToolbar(),this.addStandaloneCommentButton(),this._uiManager.updateComment(this)):(this.addCommentButtonInToolbar(),this.removeStandaloneCommentButton(),this._uiManager.removeComment(this))}setCommentData({comment:e,popupRef:n,richText:r}){if(!n||(this.#n||=new Ax(this),this.#n.setInitialText(e,r),!this.annotationElementId))return;const i=this._uiManager.getAndRemoveDataFromAnnotationStorage(this.annotationElementId);i&&this.updateFromAnnotationLayer(i)}get hasEditedComment(){return this.#n?.hasBeenEdited()}get hasDeletedComment(){return this.#n?.isDeleted()}get hasComment(){return!!this.#n&&!this.#n.isEmpty()&&!this.#n.isDeleted()}async editComment(e){this.#n||=new Ax(this),this.#n.edit(e)}toggleComment(e,n=void 0){this.hasComment&&this._uiManager.toggleComment(this,e,n)}setSelectedCommentButton(e){this.#n.setSelectedButton(e)}addComment(e){if(this.hasEditedComment){const[,,,i]=e.rect,[s]=this.pageDimensions,[a]=this.pageTranslation,o=a+s+1,l=i-100,u=o+180;e.popup={contents:this.comment.text,deleted:this.comment.deleted,rect:[o,l,u,i]}}}updateFromAnnotationLayer({popup:{contents:e,deleted:n}}){this.#n.data=n?null:e}get parentBoundingClientRect(){return this.parent.boundingClientRect}render(){const e=this.div=document.createElement("div");e.setAttribute("data-editor-rotation",(360-this.rotation)%360),e.className=this.name,e.setAttribute("id",this.id),e.tabIndex=this.#s?-1:0,e.setAttribute("role","application"),this.defaultL10nId&&e.setAttribute("data-l10n-id",this.defaultL10nId),this._isVisible||e.classList.add("hidden"),this.setInForeground(),this.#U();const[n,r]=this.parentDimensions;this.parentRotation%180!==0&&(e.style.maxWidth=`${(100*r/n).toFixed(2)}%`,e.style.maxHeight=`${(100*n/r).toFixed(2)}%`);const[i,s]=this.getInitialTranslation();return this.translate(i,s),Kbe(this,e,["keydown","pointerdown","dblclick"]),this.isResizable&&this._uiManager._supportsPinchToZoom&&(this.#T||=new iE({container:e,isPinchingDisabled:()=>!this.isSelected,onPinchStart:this.#V.bind(this),onPinching:this.#A.bind(this),onPinchEnd:this.#_.bind(this),signal:this._uiManager._signal})),this.addStandaloneCommentButton(),this._uiManager._editorUndoBar?.hide(),e}#V(){this.#f={savedX:this.x,savedY:this.y,savedWidth:this.width,savedHeight:this.height},this.#r?.toggle(!1),this.parent.togglePointerEvents(!1)}#A(e,n,r){let s=.7*(r/n)+1-.7;if(s===1)return;const a=this.#N(this.rotation),o=(R,T)=>[a[0]*R+a[2]*T,a[1]*R+a[3]*T],[l,u]=this.parentDimensions,c=this.x,d=this.y,h=this.width,m=this.height,g=Rt.MIN_SIZE/l,b=Rt.MIN_SIZE/u;s=Math.max(Math.min(s,1/h,1/m),g/h,b/m);const v=Rt._round(h*s),E=Rt._round(m*s);if(v===h&&E===m)return;this.#c||=[c,d,h,m];const x=o(h/2,m/2),_=Rt._round(c+x[0]),S=Rt._round(d+x[1]),A=o(v/2,E/2);this.x=_-A[0],this.y=S-A[1],this.width=v,this.height=E,this.setDims(),this.fixAndSetPosition(),this._onResizing()}#_(){this.#r?.toggle(!0),this.parent.togglePointerEvents(!0),this.#F()}pointerdown(e){const{isMac:n}=zi.platform;if(e.button!==0||e.ctrlKey&&n){e.preventDefault();return}if(this.#p=!0,this._isDraggable){this.#B(e);return}this.#M(e)}#M(e){const{isMac:n}=zi.platform;e.ctrlKey&&!n||e.shiftKey||e.metaKey&&n?this.parent.toggleSelected(this):this.parent.setSelected(this)}#B(e){const{isSelected:n}=this;this._uiManager.setUpDragSession();let r=!1;const i=new AbortController,s=this._uiManager.combinedSignal(i),a={capture:!0,passive:!1,signal:s},o=u=>{i.abort(),this.#a=null,this.#p=!1,this._uiManager.endDragSession()||this.#M(u),r&&this._onStopDragging()};n&&(this.#S=e.clientX,this.#x=e.clientY,this.#a=e.pointerId,this.#o=e.pointerType,window.addEventListener("pointermove",u=>{r||(r=!0,this._uiManager.toggleComment(this,!0,!1),this._onStartDragging());const{clientX:c,clientY:d,pointerId:h}=u;if(h!==this.#a){Ir(u);return}const[m,g]=this.screenToPageTranslation(c-this.#S,d-this.#x);this.#S=c,this.#x=d,this._uiManager.dragSelectedEditors(m,g)},a),window.addEventListener("touchmove",Ir,a),window.addEventListener("pointerdown",u=>{u.pointerType===this.#o&&(this.#T||u.isPrimary)&&o(u),Ir(u)},a));const l=u=>{if(!this.#a||this.#a===u.pointerId){o(u);return}Ir(u)};window.addEventListener("pointerup",l,{signal:s}),window.addEventListener("blur",l,{signal:s})}_onStartDragging(){}_onStopDragging(){}moveInDOM(){this.#b&&clearTimeout(this.#b),this.#b=setTimeout(()=>{this.#b=null,this.parent?.moveEditorInDOM(this)},0)}_setParentAndPosition(e,n,r){e.changeParent(this),this.x=n,this.y=r,this.fixAndSetPosition(),this._onTranslated()}getRect(e,n,r=this.rotation){const i=this.parentScale,[s,a]=this.pageDimensions,[o,l]=this.pageTranslation,u=e/i,c=n/i,d=this.x*s,h=this.y*a,m=this.width*s,g=this.height*a;switch(r){case 0:return[d+u+o,a-h-c-g+l,d+u+m+o,a-h-c+l];case 90:return[d+c+o,a-h+u+l,d+c+g+o,a-h+u+m+l];case 180:return[d-u-m+o,a-h+c+l,d-u+o,a-h+c+g+l];case 270:return[d-c-g+o,a-h-u-m+l,d-c+o,a-h-u+l];default:throw new Error("Invalid rotation")}}getRectInCurrentCoords(e,n){const[r,i,s,a]=e,o=s-r,l=a-i;switch(this.rotation){case 0:return[r,n-a,o,l];case 90:return[r,n-i,l,o];case 180:return[s,n-i,o,l];case 270:return[s,n-a,l,o];default:throw new Error("Invalid rotation")}}getPDFRect(){return this.getRect(0,0)}getNonHCMColor(){return this.color&&Rt._colorManager.convert(this._uiManager.getNonHCMColor(this.color))}onUpdatedColor(){this.#n?.onUpdatedColor()}getData(){const{comment:{text:e,color:n,date:r,opacity:i,deleted:s,richText:a},uid:o,pageIndex:l,creationDate:u,modificationDate:c}=this;return{id:o,pageIndex:l,rect:this.getPDFRect(),richText:a,contentsObj:{str:e},creationDate:u,modificationDate:r||c,popupRef:!s,color:n,opacity:i}}onceAdded(e){}isEmpty(){return!1}enableEditMode(){return this.isInEditMode()?!1:(this.parent.setEditingState(!1),this.#y=!0,!0)}disableEditMode(){return this.isInEditMode()?(this.parent.setEditingState(!0),this.#y=!1,!0):!1}isInEditMode(){return this.#y}shouldGetKeyboardEvents(){return this.#v}needsToBeRebuilt(){return this.div&&!this.isAttachedToDOM}get isOnScreen(){const{top:e,left:n,bottom:r,right:i}=this.getClientDimensions(),{innerHeight:s,innerWidth:a}=window;return n<a&&i>0&&e<s&&r>0}#U(){if(this.#h||!this.div)return;this.#h=new AbortController;const e=this._uiManager.combinedSignal(this.#h);this.div.addEventListener("focusin",this.focusin.bind(this),{signal:e}),this.div.addEventListener("focusout",this.focusout.bind(this),{signal:e})}rebuild(){this.#U()}rotate(e){}resize(){}serializeDeleted(){return{id:this.annotationElementId,deleted:!0,pageIndex:this.pageIndex,popupRef:this._initialData?.popupRef||""}}serialize(e=!1,n=null){return{annotationType:this.mode,pageIndex:this.pageIndex,rect:this.getPDFRect(),rotation:this.rotation,structTreeParentId:this._structTreeParentId,popupRef:this._initialData?.popupRef||""}}static async deserialize(e,n,r){const i=new this.prototype.constructor({parent:n,id:n.getNextId(),uiManager:r,annotationElementId:e.annotationElementId,creationDate:e.creationDate,modificationDate:e.modificationDate});i.rotation=e.rotation,i.#e=e.accessibilityData,i._isCopy=e.isCopy||!1;const[s,a]=i.pageDimensions,[o,l,u,c]=i.getRectInCurrentCoords(e.rect,a);return i.x=o/s,i.y=l/a,i.width=u/s,i.height=c/a,i}get hasBeenModified(){return!!this.annotationElementId&&(this.deleted||this.serialize()!==null)}remove(){if(this.#h?.abort(),this.#h=null,this.isEmpty()||this.commit(),this.parent?this.parent.remove(this):this._uiManager.removeEditor(this),this.#b&&(clearTimeout(this.#b),this.#b=null),this.#L(),this.removeEditToolbar(),this.#E){for(const e of this.#E.values())clearTimeout(e);
vendor: 4,946 bytes, line 166
166this.#E=null}this.parent=null,this.#T?.destroy(),this.#T=null}get isResizable(){return!1}makeResizable(){this.isResizable&&(this.#$(),this.#u.classList.remove("hidden"))}get toolbarPosition(){return null}get commentButtonPosition(){return this._uiManager.direction==="ltr"?[1,0]:[0,0]}get commentButtonPositionInPage(){const{commentButtonPosition:[e,n]}=this,[r,i,s,a]=this.getPDFRect();return[Rt._round(r+(s-r)*e),Rt._round(i+(a-i)*(1-n))]}get commentButtonColor(){return this._uiManager.makeCommentColor(this.getNonHCMColor(),this.opacity)}get commentPopupPosition(){return this.#n.commentPopupPositionInLayer}set commentPopupPosition(e){this.#n.commentPopupPositionInLayer=e}hasDefaultPopupPosition(){return this.#n.hasDefaultPopupPosition()}get commentButtonWidth(){return this.#n.commentButtonWidth}get elementBeforePopup(){return this.div}setCommentButtonStates(e){this.#n.setCommentButtonStates(e)}keydown(e){if(!this.isResizable||e.target!==this.div||e.key!=="Enter")return;this._uiManager.setSelected(this),this.#f={savedX:this.x,savedY:this.y,savedWidth:this.width,savedHeight:this.height};const n=this.#u.children;if(!this.#t){this.#t=Array.from(n);const a=this.#W.bind(this),o=this.#G.bind(this),l=this._uiManager._signal;for(const u of this.#t){const c=u.getAttribute("data-resizer-name");u.setAttribute("role","spinbutton"),u.addEventListener("keydown",a,{signal:l}),u.addEventListener("blur",o,{signal:l}),u.addEventListener("focus",this.#Y.bind(this,c),{signal:l}),u.setAttribute("data-l10n-id",Rt._l10nResizer[c])}}const r=this.#t[0];let i=0;for(const a of n){if(a===r)break;i++}const s=(360-this.rotation+this.parentRotation)%360/90*(this.#t.length/4);if(s!==i){if(s<i)for(let o=0;o<i-s;o++)this.#u.append(this.#u.firstChild);else if(s>i)for(let o=0;o<s-i;o++)this.#u.firstChild.before(this.#u.lastChild);let a=0;for(const o of n){const u=this.#t[a++].getAttribute("data-resizer-name");o.setAttribute("data-l10n-id",Rt._l10nResizer[u])}}this.#j(0),this.#v=!0,this.#u.firstChild.focus({focusVisible:!0}),e.preventDefault(),e.stopImmediatePropagation()}#W(e){Rt._resizerKeyboardManager.exec(this,e)}#G(e){this.#v&&e.relatedTarget?.parentNode!==this.#u&&this.#L()}#Y(e){this.#g=this.#v?e:""}#j(e){if(this.#t)for(const n of this.#t)n.tabIndex=e}_resizeWithKeyboard(e,n){this.#v&&this.#P(this.#g,{deltaX:e,deltaY:n,fromKeyboard:!0})}#L(){this.#v=!1,this.#j(-1),this.#F()}_stopResizingWithKeyboard(){this.#L(),this.div.focus()}select(){if(this.isSelected&&this._editToolbar){this._editToolbar.show();return}if(this.isSelected=!0,this.makeResizable(),this.div?.classList.add("selectedEditor"),!this._editToolbar){this.addEditToolbar().then(()=>{this.div?.classList.contains("selectedEditor")&&this._editToolbar?.show()});return}this._editToolbar?.show(),this.#r?.toggleAltTextBadge(!1)}focus(){this.div&&!this.div.contains(document.activeElement)&&setTimeout(()=>this.div?.focus({preventScroll:!0}),0)}unselect(){this.isSelected&&(this.isSelected=!1,this.#u?.classList.add("hidden"),this.div?.classList.remove("selectedEditor"),this.div?.contains(document.activeElement)&&this._uiManager.currentLayer.div.focus({preventScroll:!0}),this._editToolbar?.hide(),this.#r?.toggleAltTextBadge(!0),this.hasComment&&this._uiManager.toggleComment(this,!1,!1))}updateParams(e,n){}disableEditing(){}enableEditing(){}get canChangeContent(){return!1}enterInEditMode(){this.canChangeContent&&(this.enableEditMode(),this.div.focus())}dblclick(e){e.target.nodeName!=="BUTTON"&&(this.enterInEditMode(),this.parent.updateToolbar({mode:this.constructor._editorType,editId:this.id}))}getElementForAltText(){return this.div}get contentDiv(){return this.div}get isEditing(){return this.#m}set isEditing(e){this.#m=e,this.parent&&(e?(this.parent.setSelected(this),this.parent.setActiveEditor(this)):this.parent.setActiveEditor(null))}static get MIN_SIZE(){return 16}static canCreateNewEmptyEditor(){return!0}get telemetryInitialData(){return{action:"added"}}get telemetryFinalData(){return null}_reportTelemetry(e,n=!1){if(n){this.#E||=new Map;const{action:r}=e;let i=this.#E.get(r);i&&clearTimeout(i),i=setTimeout(()=>{this._reportTelemetry(e),this.#E.delete(r),this.#E.size===0&&(this.#E=null)},Rt._telemetryTimeout),this.#E.set(r,i);return}e.type||=this.editorType,this._uiManager._eventBus.dispatch("reporttelemetry",{source:this,details:{type:"editing",data:e}})}show(e=this._isVisible){this.div.classList.toggle("hidden",!e),this._isVisible=e}enable(){this.div&&(this.div.tabIndex=0),this.#s=!1}disable(){this.div&&(this.div.tabIndex=-1),this.#s=!0}updateFakeAnnotationElement(e){if(!this.#d&&!this.deleted){this.#d=e.addFakeAnnotation(this);return}if(this.deleted){this.#d.remove(),this.#d=null;return}(this.hasEditedComment||this._hasBeenMoved||this._hasBeenResized)&&this.#d.updateEdited({rect:this.getPDFRect(),popup:this.comment})}renderAnnotationElement(e){if(this.deleted)return e.hide(),null;let n=e.container.querySelector(".annotationContent");
166if(!n)n=document.createElement("div"),n.classList.add("annotationContent",this.editorType),e.container.prepend(n);else if(n.nodeName==="CANVAS"){const r=n;n=document.createElement("div"),n.classList.add("annotationContent",this.editorType),r.before(n)}return n}resetAnnotationElement(e){const{firstChild:n}=e.container;n?.nodeName==="DIV"&&n.classList.contains("annotationContent")&&n.remove()}}class cgt extends Rt{constructor(e){super(e),this.annotationElementId=e.annotationElementId,this.deleted=!0}serialize(){return this.serializeDeleted()}}const TZ=3285377520,lo=4294901760,Dl=65535;class Xbe{constructor(e){this.h1=e?e&4294967295:TZ,this.h2=e?e&4294967295:TZ}update(e){let n,r;if(typeof e=="string"){n=new Uint8Array(e.length*2),r=0;for(let b=0,v=e.length;b<v;b++){const E=e.charCodeAt(b);E<=255?n[r++]=E:(n[r++]=E>>>8,n[r++]=E&255)}}else if(ArrayBuffer.isView(e))n=e.slice(),r=n.byteLength;else throw new Error("Invalid data format, must be a string or TypedArray.");const i=r>>2,s=r-i*4,a=new Uint32Array(n.buffer,0,i);let o=0,l=0,u=this.h1,c=this.h2;const d=3432918353,h=461845907,m=d&Dl,g=h&Dl;for(let b=0;b<i;b++)b&1?(o=a[b],o=o*d&lo|o*m&Dl,o=o<<15|o>>>17,o=o*h&lo|o*g&Dl,u^=o,u=u<<13|u>>>19,u=u*5+3864292196):(l=a[b],l=l*d&lo|l*m&Dl,l=l<<15|l>>>17,l=l*h&lo|l*g&Dl,c^=l,c=c<<13|c>>>19,c=c*5+3864292196);switch(o=0,s){case 3:o^=n[i*4+2]<<16;case 2:o^=n[i*4+1]<<8;case 1:o^=n[i*4],o=o*d&lo|o*m&Dl,o=o<<15|o>>>17,o=o*h&lo|o*g&Dl,i&1?u^=o:c^=o}this.h1=u,this.h2=c}hexdigest(){let e=this.h1,n=this.h2;return e^=n>>>1,e=e*3981806797&lo|e*36045&Dl,n=n*4283543511&lo|((n<<16|e>>>16)*2950163797&lo)>>>16,e^=n>>>1,e=e*444984403&lo|e*60499&Dl,n=n*3301882366&lo|((n<<16|e>>>16)*3120437893&lo)>>>16,e^=n>>>1,(e>>>0).toString(16).padStart(8,"0")+(n>>>0).toString(16).padStart(8,"0")}}const R9=Object.freeze({map:null,hash:"",transfer:void 0});class YF{#e=!1;#t=null;#r=null;#n=new Map;constructor(){this.onSetModified=null,this.onResetModified=null,this.onAnnotationEditor=null}getValue(e,n){const r=this.#n.get(e);return r===void 0?n:Object.assign(n,r)}getRawValue(e){return this.#n.get(e)}remove(e){const n=this.#n.get(e);if(n!==void 0&&(n instanceof Rt&&this.#r.delete(n.annotationElementId),this.#n.delete(e),this.#n.size===0&&this.resetModified(),typeof this.onAnnotationEditor=="function")){for(const r of this.#n.values())if(r instanceof Rt)return;this.onAnnotationEditor(null)}}setValue(e,n){const r=this.#n.get(e);let i=!1;if(r!==void 0)for(const[s,a]of Object.entries(n))r[s]!==a&&(i=!0,r[s]=a);else i=!0,this.#n.set(e,n);i&&this.#i(),n instanceof Rt&&((this.#r||=new Map).set(n.annotationElementId,n),typeof this.onAnnotationEditor=="function"&&this.onAnnotationEditor(n.constructor._type))}has(e){return this.#n.has(e)}get size(){return this.#n.size}#i(){this.#e||(this.#e=!0,typeof this.onSetModified=="function"&&this.onSetModified())}resetModified(){this.#e&&(this.#e=!1,typeof this.onResetModified=="function"&&this.onResetModified())}get print(){return new Qbe(this)}get serializable(){if(this.#n.size===0)return R9;const e=new Map,n=new Xbe,r=[],i=Object.create(null);let s=!1;for(const[a,o]of this.#n){const l=o instanceof Rt?o.serialize(!1,i):o;l&&(e.set(a,l),n.update(`${a}:${JSON.stringify(l)}`),s||=!!l.bitmap)}if(s)for(const a of e.values())a.bitmap&&r.push(a.bitmap);return e.size>0?{map:e,hash:n.hexdigest(),transfer:r}:R9}get editorStats(){let e=null;const n=new Map;let r=0,i=0;for(const s of this.#n.values()){if(!(s instanceof Rt)){s.popup&&(s.popup.deleted?i+=1:r+=1);continue}s.isCommentDeleted?i+=1:s.hasEditedComment&&(r+=1);const a=s.telemetryFinalData;if(!a)continue;const{type:o}=a;n.has(o)||n.set(o,Object.getPrototypeOf(s).constructor),e||=Object.create(null);const l=e[o]||=new Map;for(const[u,c]of Object.entries(a)){if(u==="type")continue;let d=l.get(u);d||(d=new Map,l.set(u,d));const h=d.get(c)??0;d.set(c,h+1)}}if((i>0||r>0)&&(e||=Object.create(null),e.comments={deleted:i,edited:r}),!e)return null;for(const[s,a]of n)e[s]=a.computeTelemetryFinalData(e[s]);return e}resetModifiedIds(){this.#t=null}updateEditor(e,n){const r=this.#r?.get(e);return r?(r.updateFromAnnotationLayer(n),!0):!1}getEditor(e){return this.#r?.get(e)||null}get modifiedIds(){if(this.#t)return this.#t;const e=[];
vendor: 4,471 bytes, line 166
166if(this.#r)for(const n of this.#r.values())n.serialize()&&e.push(n.annotationElementId);return this.#t={ids:new Set(e),hash:e.join(",")}}[Symbol.iterator](){return this.#n.entries()}}class Qbe extends YF{#e;constructor(e){super();const{map:n,hash:r,transfer:i}=e.serializable,s=structuredClone(n,i?{transfer:i}:null);this.#e={map:s,hash:r,transfer:i}}get print(){er("Should not call PrintAnnotationStorage.print")}get serializable(){return this.#e}get modifiedIds(){return Zt(this,"modifiedIds",{ids:new Set,hash:""})}}class dgt{#e=new Set;constructor({ownerDocument:e=globalThis.document,styleElement:n=null}){this._document=e,this.nativeFontFaces=new Set,this.styleElement=null,this.loadingRequests=[],this.loadTestFontId=0}addNativeFontFace(e){this.nativeFontFaces.add(e),this._document.fonts.add(e)}removeNativeFontFace(e){this.nativeFontFaces.delete(e),this._document.fonts.delete(e)}insertRule(e){this.styleElement||(this.styleElement=this._document.createElement("style"),this._document.documentElement.getElementsByTagName("head")[0].append(this.styleElement));const n=this.styleElement.sheet;n.insertRule(e,n.cssRules.length)}clear(){for(const e of this.nativeFontFaces)this._document.fonts.delete(e);this.nativeFontFaces.clear(),this.#e.clear(),this.styleElement&&(this.styleElement.remove(),this.styleElement=null)}async loadSystemFont({systemFontInfo:e,disableFontFace:n,_inspectFont:r}){if(!(!e||this.#e.has(e.loadedName))){if(Cn(!n,"loadSystemFont shouldn't be called when `disableFontFace` is set."),this.isFontLoadingAPISupported){const{loadedName:i,src:s,style:a}=e,o=new FontFace(i,s,a);this.addNativeFontFace(o);try{await o.load(),this.#e.add(i),r?.(e)}catch{Vt(`Cannot load system font: ${e.baseFontName}, installing it could help to improve PDF rendering.`),this.removeNativeFontFace(o)}return}er("Not implemented: loadSystemFont without the Font Loading API.")}}async bind(e){if(e.attached||e.missingFile&&!e.systemFontInfo)return;if(e.attached=!0,e.systemFontInfo){await this.loadSystemFont(e);return}if(this.isFontLoadingAPISupported){const r=e.createNativeFontFace();if(r){this.addNativeFontFace(r);try{await r.loaded}catch(i){throw Vt(`Failed to load font '${r.family}': '${i}'.`),e.disableFontFace=!0,i}}return}const n=e.createFontFaceRule();if(n){if(this.insertRule(n),this.isSyncFontLoadingSupported)return;await new Promise(r=>{const i=this._queueLoadingCallback(r);this._prepareFontLoadEvent(e,i)})}}get isFontLoadingAPISupported(){const e=!!this._document?.fonts;return Zt(this,"isFontLoadingAPISupported",e)}get isSyncFontLoadingSupported(){return Zt(this,"isSyncFontLoadingSupported",Ss||zi.platform.isFirefox)}_queueLoadingCallback(e){function n(){for(Cn(!i.done,"completeRequest() cannot be called twice."),i.done=!0;r.length>0&&r[0].done;){const s=r.shift();setTimeout(s.callback,0)}}const{loadingRequests:r}=this,i={done:!1,complete:n,callback:e};return r.push(i),i}get _loadTestFont(){const e=atob("T1RUTwALAIAAAwAwQ0ZGIDHtZg4AAAOYAAAAgUZGVE1lkzZwAAAEHAAAABxHREVGABQAFQAABDgAAAAeT1MvMlYNYwkAAAEgAAAAYGNtYXABDQLUAAACNAAAAUJoZWFk/xVFDQAAALwAAAA2aGhlYQdkA+oAAAD0AAAAJGhtdHgD6AAAAAAEWAAAAAZtYXhwAAJQAAAAARgAAAAGbmFtZVjmdH4AAAGAAAAAsXBvc3T/hgAzAAADeAAAACAAAQAAAAEAALZRFsRfDzz1AAsD6AAAAADOBOTLAAAAAM4KHDwAAAAAA+gDIQAAAAgAAgAAAAAAAAABAAADIQAAAFoD6AAAAAAD6AABAAAAAAAAAAAAAAAAAAAAAQAAUAAAAgAAAAQD6AH0AAUAAAKKArwAAACMAooCvAAAAeAAMQECAAACAAYJAAAAAAAAAAAAAQAAAAAAAAAAAAAAAFBmRWQAwAAuAC4DIP84AFoDIQAAAAAAAQAAAAAAAAAAACAAIAABAAAADgCuAAEAAAAAAAAAAQAAAAEAAAAAAAEAAQAAAAEAAAAAAAIAAQAAAAEAAAAAAAMAAQAAAAEAAAAAAAQAAQAAAAEAAAAAAAUAAQAAAAEAAAAAAAYAAQAAAAMAAQQJAAAAAgABAAMAAQQJAAEAAgABAAMAAQQJAAIAAgABAAMAAQQJAAMAAgABAAMAAQQJAAQAAgABAAMAAQQJAAUAAgABAAMAAQQJAAYAAgABWABYAAAAAAAAAwAAAAMAAAAcAAEAAAAAADwAAwABAAAAHAAEACAAAAAEAAQAAQAAAC7//wAAAC7////TAAEAAAAAAAABBgAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMAAAAAAAD/gwAyAAAAAQAAAAAAAAAAAAAAAAAAAAABAAQEAAEBAQJYAAEBASH4DwD4GwHEAvgcA/gXBIwMAYuL+nz5tQXkD5j3CBLnEQACAQEBIVhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYAAABAQAADwACAQEEE/t3Dov6fAH6fAT+fPp8+nwHDosMCvm1Cvm1DAz6fBQAAAAAAAABAAAAAMmJbzEAAAAAzgTjFQAAAADOBOQpAAEAAAAAAAAADAAUAAQAAAABAAAAAgABAAAAAAAAAAAD6AAAAAAAAA==");return Zt(this,"_loadTestFont",e)}
166_prepareFontLoadEvent(e,n){function r(S,A){return S.charCodeAt(A)<<24|S.charCodeAt(A+1)<<16|S.charCodeAt(A+2)<<8|S.charCodeAt(A+3)&255}function i(S,A,R,T){const O=S.substring(0,A),I=S.substring(A+R);return O+T+I}let s,a;const o=this._document.createElement("canvas");o.width=1,o.height=1;const l=o.getContext("2d");let u=0;function c(S,A){if(++u>30){Vt("Load test font never loaded."),A();return}if(l.font="30px "+S,l.fillText(".",0,20),l.getImageData(0,0,1,1).data[3]>0){A();return}setTimeout(c.bind(null,S,A))}const d=`lt${Date.now()}${this.loadTestFontId++}`;let h=this._loadTestFont;h=i(h,976,d.length,d);const g=16,b=1482184792;let v=r(h,g);for(s=0,a=d.length-3;s<a;s+=4)v=v-b+r(d,s)|0;s<d.length&&(v=v-b+r(d+"XXX",s)|0),h=i(h,g,4,Zmt(v));const E=`url(data:font/opentype;base64,${btoa(h)});`,x=`@font-face {font-family:"${d}";src:${E}}`;this.insertRule(x);const _=this._document.createElement("div");_.style.visibility="hidden",_.style.width=_.style.height="10px",_.style.position="absolute",_.style.top=_.style.left="0px";for(const S of[e.loadedName,d]){const A=this._document.createElement("span");A.textContent="Hi",A.style.fontFamily=S,_.append(A)}this._document.body.append(_),c(d,()=>{_.remove(),n.complete()})}}class fgt{#e;constructor(e,n=null,r,i){this.compiledGlyphs=Object.create(null),this.#e=e,this._inspectFont=n,r&&Object.assign(this,r),i&&(this.charProcOperatorList=i)}createNativeFontFace(){if(!this.data||this.disableFontFace)return null;let e;if(!this.cssFontInfo)e=new FontFace(this.loadedName,this.data,{});else{const n={weight:this.cssFontInfo.fontWeight};this.cssFontInfo.italicAngle&&(n.style=`oblique ${this.cssFontInfo.italicAngle}deg`),e=new FontFace(this.cssFontInfo.fontFamily,this.data,n)}return this._inspectFont?.(this),e}createFontFaceRule(){if(!this.data||this.disableFontFace)return null;const e=`url(data:${this.mimetype};base64,${jbe(this.data)});`;let n;if(!this.cssFontInfo)n=`@font-face {font-family:"${this.loadedName}";src:${e}}`;else{let r=`font-weight: ${this.cssFontInfo.fontWeight};`;this.cssFontInfo.italicAngle&&(r+=`font-style: oblique ${this.cssFontInfo.italicAngle}deg;`),n=`@font-face {font-family:"${this.cssFontInfo.fontFamily}";${r}src:${e}}`}return this._inspectFont?.(this,e),n}getPathGenerator(e,n){if(this.compiledGlyphs[n]!==void 0)return this.compiledGlyphs[n];const r=this.loadedName+"_path_"+n;let i;try{i=e.get(r)}catch(a){Vt(`getPathGenerator - ignoring character: "${a}".`)}const s=new Path2D(i||"");return this.fontExtraProperties||e.delete(r),this.compiledGlyphs[n]=s}get black(){return this.#e.black}get bold(){return this.#e.bold}get disableFontFace(){return this.#e.disableFontFace??!1}get fontExtraProperties(){return this.#e.fontExtraProperties??!1}get isInvalidPDFjsFont(){return this.#e.isInvalidPDFjsFont}get isType3Font(){return this.#e.isType3Font}get italic(){return this.#e.italic}get missingFile(){return this.#e.missingFile}get remeasure(){return this.#e.remeasure}get vertical(){return this.#e.vertical}get ascent(){return this.#e.ascent}get defaultWidth(){return this.#e.defaultWidth}get descent(){return this.#e.descent}get bbox(){return this.#e.bbox}get fontMatrix(){return this.#e.fontMatrix}get fallbackName(){return this.#e.fallbackName}get loadedName(){return this.#e.loadedName}get mimetype(){return this.#e.mimetype}get name(){return this.#e.name}get data(){return this.#e.data}clearData(){this.#e.clearData()}get cssFontInfo(){return this.#e.cssFontInfo}get systemFontInfo(){return this.#e.systemFontInfo}get defaultVMetrics(){return this.#e.defaultVMetrics}}function hgt(t){if(t instanceof URL)return t.href;if(typeof t=="string"){if(Ss)return t;const e=URL.parse(t,window.location);if(e)return e.href}throw new Error("Invalid PDF url data: either string or URL-object is expected in the url property.")}function pgt(t){if(Ss&&typeof Buffer<"u"&&t instanceof Buffer)throw new Error("Please provide binary data as `Uint8Array`, rather than `Buffer`.");if(t instanceof Uint8Array&&t.byteLength===t.buffer.byteLength)return t;if(typeof t=="string")return eE(t);if(t instanceof ArrayBuffer||ArrayBuffer.isView(t)||typeof t=="object"&&!isNaN(t?.length))return new Uint8Array(t);throw new Error("Invalid PDF binary data: either TypedArray, string, or array-like object is expected in the data property.")}function Rx(t){if(typeof t!="string")return null;if(t.endsWith("/"))return t;throw new Error(`Invalid factory url: "${t}" must include trailing slash.`)}const N9=t=>typeof t=="object"&&Number.isInteger(t?.num)&&t.num>=0&&Number.isInteger(t?.gen)&&t.gen>=0,mgt=t=>typeof t=="object"&&typeof t?.name=="string",Zbe=ngt.bind(null,N9,mgt);class ggt{#e=new Map;#t=Promise.resolve();postMessage(e,n){const r={data:structuredClone(e,n?{transfer:n}:null)};this.#t.then(()=>{for(const[i]of this.#e)i.call(this,r)})}
vendor: 23,685 bytes, line 166
166addEventListener(e,n,r=null){let i=null;if(r?.signal instanceof AbortSignal){const{signal:s}=r;if(s.aborted){Vt("LoopbackPort - cannot use an `aborted` signal.");return}const a=()=>this.removeEventListener(e,n);i=()=>s.removeEventListener("abort",a),s.addEventListener("abort",a)}this.#e.set(n,i)}removeEventListener(e,n){this.#e.get(n)?.(),this.#e.delete(n)}terminate(){for(const[,e]of this.#e)e?.();this.#e.clear()}}const Nx={DATA:1,ERROR:2},oi={CANCEL:1,CANCEL_COMPLETE:2,CLOSE:3,ENQUEUE:4,ERROR:5,PULL:6,PULL_COMPLETE:7,START_COMPLETE:8};function AZ(){}function Js(t){if(t instanceof $c||t instanceof uC||t instanceof vZ||t instanceof Av||t instanceof q4)return t;switch(t instanceof Error||typeof t=="object"&&t!==null||er('wrapReason: Expected "reason" to be a (possibly cloned) Error.'),t.name){case"AbortException":return new $c(t.message);case"InvalidPDFException":return new uC(t.message);case"PasswordException":return new vZ(t.message,t.code);case"ResponseException":return new Av(t.message,t.status,t.missing);case"UnknownErrorException":return new q4(t.message,t.details)}return new q4(t.message,t.toString())}class Wy{#e=new AbortController;constructor(e,n,r){this.sourceName=e,this.targetName=n,this.comObj=r,this.callbackId=1,this.streamId=1,this.streamSinks=Object.create(null),this.streamControllers=Object.create(null),this.callbackCapabilities=Object.create(null),this.actionHandler=Object.create(null),r.addEventListener("message",this.#t.bind(this),{signal:this.#e.signal})}#t({data:e}){if(e.targetName!==this.sourceName)return;if(e.stream){this.#n(e);return}if(e.callback){const r=e.callbackId,i=this.callbackCapabilities[r];if(!i)throw new Error(`Cannot resolve callback ${r}`);if(delete this.callbackCapabilities[r],e.callback===Nx.DATA)i.resolve(e.data);else if(e.callback===Nx.ERROR)i.reject(Js(e.reason));else throw new Error("Unexpected callback case");return}const n=this.actionHandler[e.action];if(!n)throw new Error(`Unknown action from worker: ${e.action}`);if(e.callbackId){const r=this.sourceName,i=e.sourceName,s=this.comObj;Promise.try(n,e.data).then(function(a){s.postMessage({sourceName:r,targetName:i,callback:Nx.DATA,callbackId:e.callbackId,data:a})},function(a){s.postMessage({sourceName:r,targetName:i,callback:Nx.ERROR,callbackId:e.callbackId,reason:Js(a)})});return}if(e.streamId){this.#r(e);return}n(e.data)}on(e,n){const r=this.actionHandler;if(r[e])throw new Error(`There is already an actionName called "${e}"`);r[e]=n}send(e,n,r){this.comObj.postMessage({sourceName:this.sourceName,targetName:this.targetName,action:e,data:n},r)}sendWithPromise(e,n,r){const i=this.callbackId++,s=Promise.withResolvers();this.callbackCapabilities[i]=s;try{this.comObj.postMessage({sourceName:this.sourceName,targetName:this.targetName,action:e,callbackId:i,data:n},r)}catch(a){s.reject(a)}return s.promise}sendWithStream(e,n,r,i){const s=this.streamId++,a=this.sourceName,o=this.targetName,l=this.comObj;return new ReadableStream({start:u=>{const c=Promise.withResolvers();return this.streamControllers[s]={controller:u,startCall:c,pullCall:null,cancelCall:null,isClosed:!1},l.postMessage({sourceName:a,targetName:o,action:e,streamId:s,data:n,desiredSize:u.desiredSize},i),c.promise},pull:u=>{const c=Promise.withResolvers();return this.streamControllers[s].pullCall=c,l.postMessage({sourceName:a,targetName:o,stream:oi.PULL,streamId:s,desiredSize:u.desiredSize}),c.promise},cancel:u=>{Cn(u instanceof Error,"cancel must have a valid reason");const c=Promise.withResolvers();return this.streamControllers[s].cancelCall=c,this.streamControllers[s].isClosed=!0,l.postMessage({sourceName:a,targetName:o,stream:oi.CANCEL,streamId:s,reason:Js(u)}),c.promise}},r)}#r(e){const n=e.streamId,r=this.sourceName,i=e.sourceName,s=this.comObj,a=this,o=this.actionHandler[e.action],l={enqueue(u,c=1,d){if(this.isCancelled)return;const h=this.desiredSize;this.desiredSize-=c,h>0&&this.desiredSize<=0&&(this.sinkCapability=Promise.withResolvers(),this.ready=this.sinkCapability.promise),s.postMessage({sourceName:r,targetName:i,stream:oi.ENQUEUE,streamId:n,chunk:u},d)},close(){this.isCancelled||(this.isCancelled=!0,s.postMessage({sourceName:r,targetName:i,stream:oi.CLOSE,streamId:n}),delete a.streamSinks[n])},error(u){Cn(u instanceof Error,"error must have a valid reason"),!this.isCancelled&&(this.isCancelled=!0,s.postMessage({sourceName:r,targetName:i,stream:oi.ERROR,streamId:n,reason:Js(u)}))},sinkCapability:Promise.withResolvers(),onPull:null,onCancel:null,isCancelled:!1,desiredSize:e.desiredSize,ready:null};l.sinkCapability.resolve(),l.ready=l.sinkCapability.promise,this.streamSinks[n]=l,Promise.try(o,e.data,l).then(function(){s.postMessage({sourceName:r,targetName:i,stream:oi.START_COMPLETE,streamId:n,success:!0})},function(u){s.postMessage({sourceName:r,targetName:i,stream:oi.START_COMPLETE,streamId:n,reason:Js(u)})})}#n(e){const n=e.streamId,r=this.sourceName,i=e.sourceName,s=this.comObj,a=this.streamControllers[n],o=this.streamSinks[n];switch(e.stream){case oi.START_COMPLETE:e.success?a.startCall.resolve():a.startCall.reject(Js(e.reason));break;case oi.PULL_COMPLETE:e.success?a.pullCall.resolve():a.pullCall.reject(Js(e.reason));break;case oi.PULL:if(!o){s.postMessage({sourceName:r,targetName:i,stream:oi.PULL_COMPLETE,streamId:n,success:!0});break}o.desiredSize<=0&&e.desiredSize>0&&o.sinkCapability.resolve(),o.desiredSize=e.desiredSize,Promise.try(o.onPull||AZ).then(function(){s.postMessage({sourceName:r,targetName:i,stream:oi.PULL_COMPLETE,streamId:n,success:!0})},function(u){s.postMessage({sourceName:r,targetName:i,stream:oi.PULL_COMPLETE,streamId:n,reason:Js(u)})});break;case oi.ENQUEUE:if(Cn(a,"enqueue should have stream controller"),a.isClosed)break;a.controller.enqueue(e.chunk);break;case oi.CLOSE:if(Cn(a,"close should have stream controller"),a.isClosed)break;a.isClosed=!0,a.controller.close(),this.#i(a,n);break;case oi.ERROR:Cn(a,"error should have stream controller"),a.controller.error(Js(e.reason)),this.#i(a,n);break;case oi.CANCEL_COMPLETE:e.success?a.cancelCall.resolve():a.cancelCall.reject(Js(e.reason)),this.#i(a,n);break;case oi.CANCEL:if(!o)break;const l=Js(e.reason);Promise.try(o.onCancel||AZ,l).then(function(){s.postMessage({sourceName:r,targetName:i,stream:oi.CANCEL_COMPLETE,streamId:n,success:!0})},function(u){s.postMessage({sourceName:r,targetName:i,stream:oi.CANCEL_COMPLETE,streamId:n,reason:Js(u)})}),o.sinkCapability.reject(l),o.isCancelled=!0,delete this.streamSinks[n];break;default:throw new Error("Unexpected stream case")}}async#i(e,n){await Promise.allSettled([e.startCall?.promise,e.pullCall?.promise,e.cancelCall?.promise]),delete this.streamControllers[n]}destroy(){this.#e?.abort(),this.#e=null}}class Jbe{#e=!1;constructor({enableHWA:e=!1}){this.#e=e}create(e,n){if(e<=0||n<=0)throw new Error("Invalid canvas size");const r=this._createCanvas(e,n);return{canvas:r,context:r.getContext("2d",{willReadFrequently:!this.#e})}}reset(e,n,r){if(!e.canvas)throw new Error("Canvas is not specified");if(n<=0||r<=0)throw new Error("Invalid canvas size");e.canvas.width=n,e.canvas.height=r}destroy(e){if(!e.canvas)throw new Error("Canvas is not specified");e.canvas.width=0,e.canvas.height=0,e.canvas=null,e.context=null}_createCanvas(e,n){er("Abstract method `_createCanvas` called.")}}class ygt extends Jbe{constructor({ownerDocument:e=globalThis.document,enableHWA:n=!1}){super({enableHWA:n}),this._document=e}_createCanvas(e,n){const r=this._document.createElement("canvas");return r.width=e,r.height=n,r}}class eve{constructor({baseUrl:e=null,isCompressed:n=!0}){this.baseUrl=e,this.isCompressed=n}async fetch({name:e}){if(!this.baseUrl)throw new Error("Ensure that the `cMapUrl` and `cMapPacked` API parameters are provided.");if(!e)throw new Error("CMap name must be specified.");const n=this.baseUrl+e+(this.isCompressed?".bcmap":"");return this._fetch(n).then(r=>({cMapData:r,isCompressed:this.isCompressed})).catch(r=>{throw new Error(`Unable to load ${this.isCompressed?"binary ":""}CMap at: ${n}`)})}async _fetch(e){er("Abstract method `_fetch` called.")}}class RZ extends eve{async _fetch(e){const n=await Z0(e,this.isCompressed?"arraybuffer":"text");return n instanceof ArrayBuffer?new Uint8Array(n):eE(n)}}class tve{addFilter(e){return"none"}addHCMFilter(e,n){return"none"}addAlphaFilter(e){return"none"}addLuminosityFilter(e){return"none"}addHighlightHCMFilter(e,n,r,i,s){return"none"}destroy(e=!1){}}class bgt extends tve{#e;#t;#r;#n;#i;#s;#a=0;constructor({docId:e,ownerDocument:n=globalThis.document}){super(),this.#n=e,this.#i=n}get#o(){return this.#t||=new Map}get#u(){return this.#s||=new Map}get#l(){if(!this.#r){const e=this.#i.createElement("div"),{style:n}=e;n.visibility="hidden",n.contain="strict",n.width=n.height=0,n.position="absolute",n.top=n.left=0,n.zIndex=-1;const r=this.#i.createElementNS(ac,"svg");r.setAttribute("width",0),r.setAttribute("height",0),this.#r=this.#i.createElementNS(ac,"defs"),e.append(r),r.append(this.#r),this.#i.body.append(e)}return this.#r}#f(e){if(e.length===1){const l=e[0],u=new Array(256);for(let d=0;d<256;d++)u[d]=l[d]/255;const c=u.join(",");return[c,c,c]}const[n,r,i]=e,s=new Array(256),a=new Array(256),o=new Array(256);for(let l=0;l<256;l++)s[l]=n[l]/255,a[l]=r[l]/255,o[l]=i[l]/255;return[s.join(","),a.join(","),o.join(",")]}#d(e){if(this.#e===void 0){this.#e="";const n=this.#i.URL;n!==this.#i.baseURI&&(nE(n)?Vt('#createUrl: ignore "data:"-URL for performance reasons.'):this.#e=UF(n,""))}return`url(${this.#e}#${e})`}addFilter(e){if(!e)return"none";let n=this.#o.get(e);if(n)return n;const[r,i,s]=this.#f(e),a=e.length===1?r:`${r}${i}${s}`;if(n=this.#o.get(a),n)return this.#o.set(e,n),n;const o=`g_${this.#n}_transfer_map_${this.#a++}`,l=this.#d(o);this.#o.set(e,l),this.#o.set(a,l);const u=this.#p(o);return this.#m(r,i,s,u),l}addHCMFilter(e,n){const r=`${e}-${n}`,i="base";let s=this.#u.get(i);if(s?.key===r||(s?(s.filter?.remove(),s.key=r,s.url="none",s.filter=null):(s={key:r,url:"none",filter:null},this.#u.set(i,s)),!e||!n))return s.url;const a=this.#v(e);e=ut.makeHexColor(...a);const o=this.#v(n);if(n=ut.makeHexColor(...o),this.#l.style.color="",e==="#000000"&&n==="#ffffff"||e===n)return s.url;const l=new Array(256);for(let m=0;m<=255;m++){const g=m/255;l[m]=g<=.03928?g/12.92:((g+.055)/1.055)**2.4}const u=l.join(","),c=`g_${this.#n}_hcm_filter`,d=s.filter=this.#p(c);this.#m(u,u,u,d),this.#g(d);const h=(m,g)=>{const b=a[m]/255,v=o[m]/255,E=new Array(g+1);for(let x=0;x<=g;x++)E[x]=b+x/g*(v-b);return E.join(",")};return this.#m(h(0,5),h(1,5),h(2,5),d),s.url=this.#d(c),s.url}addAlphaFilter(e){let n=this.#o.get(e);if(n)return n;const[r]=this.#f([e]),i=`alpha_${r}`;if(n=this.#o.get(i),n)return this.#o.set(e,n),n;const s=`g_${this.#n}_alpha_map_${this.#a++}`,a=this.#d(s);this.#o.set(e,a),this.#o.set(i,a);const o=this.#p(s);return this.#y(r,o),a}addLuminosityFilter(e){let n=this.#o.get(e||"luminosity");if(n)return n;let r,i;if(e?([r]=this.#f([e]),i=`luminosity_${r}`):i="luminosity",n=this.#o.get(i),n)return this.#o.set(e,n),n;const s=`g_${this.#n}_luminosity_map_${this.#a++}`,a=this.#d(s);this.#o.set(e,a),this.#o.set(i,a);const o=this.#p(s);return this.#h(o),e&&this.#y(r,o),a}addHighlightHCMFilter(e,n,r,i,s){const a=`${n}-${r}-${i}-${s}`;let o=this.#u.get(e);if(o?.key===a||(o?(o.filter?.remove(),o.key=a,o.url="none",o.filter=null):(o={key:a,url:"none",filter:null},this.#u.set(e,o)),!n||!r))return o.url;const[l,u]=[n,r].map(this.#v.bind(this));let c=Math.round(.2126*l[0]+.7152*l[1]+.0722*l[2]),d=Math.round(.2126*u[0]+.7152*u[1]+.0722*u[2]),[h,m]=[i,s].map(this.#v.bind(this));d<c&&([c,d,h,m]=[d,c,m,h]),this.#l.style.color="";const g=(E,x,_)=>{const S=new Array(256),A=(d-c)/_,R=E/255,T=(x-E)/(255*_);let O=0;for(let I=0;I<=_;I++){const D=Math.round(c+I*A),P=R+I*T;for(let B=O;B<=D;B++)S[B]=P;O=D+1}for(let I=O;I<256;I++)S[I]=S[O-1];return S.join(",")},b=`g_${this.#n}_hcm_${e}_filter`,v=o.filter=this.#p(b);return this.#g(v),this.#m(g(h[0],m[0],5),g(h[1],m[1],5),g(h[2],m[2],5),v),o.url=this.#d(b),o.url}destroy(e=!1){e&&this.#s?.size||(this.#r?.parentNode.parentNode.remove(),this.#r=null,this.#t?.clear(),this.#t=null,this.#s?.clear(),this.#s=null,this.#a=0)}#h(e){const n=this.#i.createElementNS(ac,"feColorMatrix");n.setAttribute("type","matrix"),n.setAttribute("values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.3 0.59 0.11 0 0"),e.append(n)}#g(e){const n=this.#i.createElementNS(ac,"feColorMatrix");n.setAttribute("type","matrix"),n.setAttribute("values","0.2126 0.7152 0.0722 0 0 0.2126 0.7152 0.0722 0 0 0.2126 0.7152 0.0722 0 0 0 0 0 1 0"),e.append(n)}#p(e){const n=this.#i.createElementNS(ac,"filter");return n.setAttribute("color-interpolation-filters","sRGB"),n.setAttribute("id",e),this.#l.append(n),n}#c(e,n,r){const i=this.#i.createElementNS(ac,n);i.setAttribute("type","discrete"),i.setAttribute("tableValues",r),e.append(i)}#m(e,n,r,i){const s=this.#i.createElementNS(ac,"feComponentTransfer");i.append(s),this.#c(s,"feFuncR",e),this.#c(s,"feFuncG",n),this.#c(s,"feFuncB",r)}#y(e,n){const r=this.#i.createElementNS(ac,"feComponentTransfer");n.append(r),this.#c(r,"feFuncA",e)}#v(e){return this.#l.style.color=e,J0(getComputedStyle(this.#l).getPropertyValue("color"))}}class nve{constructor({baseUrl:e=null}){this.baseUrl=e}async fetch({filename:e}){if(!this.baseUrl)throw new Error("Ensure that the `standardFontDataUrl` API parameter is provided.");if(!e)throw new Error("Font filename must be specified.");const n=`${this.baseUrl}${e}`;return this._fetch(n).catch(r=>{throw new Error(`Unable to load font data at: ${n}`)})}async _fetch(e){er("Abstract method `_fetch` called.")}}class NZ extends nve{async _fetch(e){const n=await Z0(e,"arraybuffer");return new Uint8Array(n)}}class rve{constructor({baseUrl:e=null}){this.baseUrl=e}async fetch({filename:e}){if(!this.baseUrl)throw new Error("Ensure that the `wasmUrl` API parameter is provided.");if(!e)throw new Error("Wasm filename must be specified.");const n=`${this.baseUrl}${e}`;return this._fetch(n).catch(r=>{throw new Error(`Unable to load wasm data at: ${n}`)})}async _fetch(e){er("Abstract method `_fetch` called.")}}class OZ extends rve{async _fetch(e){const n=await Z0(e,"arraybuffer");return new Uint8Array(n)}}Ss&&Vt("Please use the `legacy` build in Node.js environments.");async function KF(t){const n=await process.getBuiltinModule("fs").promises.readFile(t);return new Uint8Array(n)}class vgt extends tve{}class Egt extends Jbe{_createCanvas(e,n){return process.getBuiltinModule("module").createRequire(import.meta.url)("@napi-rs/canvas").createCanvas(e,n)}}class _gt extends eve{async _fetch(e){return KF(e)}}class xgt extends nve{async _fetch(e){return KF(e)}}class wgt extends rve{async _fetch(e){return KF(e)}}const zm="__forcedDependency",{floor:kZ,ceil:IZ}=Math;function Ox(t,e,n,r,i,s){t[e*4+0]=Math.min(t[e*4+0],n),t[e*4+1]=Math.min(t[e*4+1],r),t[e*4+2]=Math.max(t[e*4+2],i),t[e*4+3]=Math.max(t[e*4+3],s)}const O9=new Uint32Array(new Uint8Array([255,255,0,0]).buffer)[0];class Sgt{#e;#t;constructor(e,n){this.#e=e,this.#t=n}get length(){return this.#e.length}isEmpty(e){return this.#e[e]===O9}minX(e){return this.#t[e*4+0]/256}minY(e){return this.#t[e*4+1]/256}maxX(e){return(this.#t[e*4+2]+1)/256}maxY(e){return(this.#t[e*4+3]+1)/256}}const kx=(t,e)=>{if(!t)return;let n=t.get(e);return n||(n={dependencies:new Set,isRenderingOperation:!1},t.set(e,n)),n};class Cgt{#e={__proto__:null};#t={__proto__:null,transform:[],moveText:[],sameLineText:[],[zm]:[]};#r=new Map;#n=[];#i=[];#s=[[1,0,0,1,0,0]];#a=[-1/0,-1/0,1/0,1/0];#o=new Float64Array([1/0,1/0,-1/0,-1/0]);#u=-1;#l=new Set;#f=new Map;#d=new Map;#h;#g;#p;#c;#m;constructor(e,n,r=!1){this.#h=e.width,this.#g=e.height,this.#y(n),r&&(this.#m=new Map)}growOperationsCount(e){e>=this.#c.length&&this.#y(e,this.#c)}#y(e,n){const r=new ArrayBuffer(e*4);this.#p=new Uint8ClampedArray(r),this.#c=new Uint32Array(r),n&&n.length>0?(this.#c.set(n),this.#c.fill(O9,n.length)):this.#c.fill(O9)}save(e){return this.#e={__proto__:this.#e},this.#t={__proto__:this.#t,transform:{__proto__:this.#t.transform},moveText:{__proto__:this.#t.moveText},sameLineText:{__proto__:this.#t.sameLineText},[zm]:{__proto__:this.#t[zm]}},this.#a={__proto__:this.#a},this.#n.push(e),this}restore(e){const n=Object.getPrototypeOf(this.#e);if(n===null)return this;this.#e=n,this.#t=Object.getPrototypeOf(this.#t),this.#a=Object.getPrototypeOf(this.#a);const r=this.#n.pop();return r!==void 0&&(kx(this.#m,e)?.dependencies.add(r),this.#c[e]=this.#c[r]),this}recordOpenMarker(e){return this.#n.push(e),this}getOpenMarker(){return this.#n.length===0?null:this.#n.at(-1)}recordCloseMarker(e){const n=this.#n.pop();return n!==void 0&&(kx(this.#m,e)?.dependencies.add(n),this.#c[e]=this.#c[n]),this}beginMarkedContent(e){return this.#i.push(e),this}endMarkedContent(e){const n=this.#i.pop();return n!==void 0&&(kx(this.#m,e)?.dependencies.add(n),this.#c[e]=this.#c[n]),this}pushBaseTransform(e){return this.#s.push(ut.multiplyByDOMMatrix(this.#s.at(-1),e.getTransform())),this}popBaseTransform(){return this.#s.length>1&&this.#s.pop(),this}recordSimpleData(e,n){return this.#e[e]=n,this}recordIncrementalData(e,n){return this.#t[e].push(n),this}resetIncrementalData(e,n){return this.#t[e].length=0,this}recordNamedData(e,n){return this.#r.set(e,n),this}recordSimpleDataFromNamed(e,n,r){this.#e[e]=this.#r.get(n)??r}recordFutureForcedDependency(e,n){return this.recordIncrementalData(zm,n),this}inheritSimpleDataAsFutureForcedDependencies(e){for(const n of e)n in this.#e&&this.recordFutureForcedDependency(n,this.#e[n]);return this}inheritPendingDependenciesAsFutureForcedDependencies(){for(const e of this.#l)this.recordFutureForcedDependency(zm,e);return this}resetBBox(e){return this.#u!==e&&(this.#u=e,this.#o[0]=1/0,this.#o[1]=1/0,this.#o[2]=-1/0,this.#o[3]=-1/0),this}recordClipBox(e,n,r,i,s,a){const o=ut.multiplyByDOMMatrix(this.#s.at(-1),n.getTransform()),l=[1/0,1/0,-1/0,-1/0];ut.axialAlignedBoundingBox([r,s,i,a],o,l);const u=ut.intersect(this.#a,l);return u?(this.#a[0]=u[0],this.#a[1]=u[1],this.#a[2]=u[2],this.#a[3]=u[3]):(this.#a[0]=this.#a[1]=1/0,this.#a[2]=this.#a[3]=-1/0),this}recordBBox(e,n,r,i,s,a){const o=this.#a;if(o[0]===1/0)return this;const l=ut.multiplyByDOMMatrix(this.#s.at(-1),n.getTransform());if(o[0]===-1/0)return ut.axialAlignedBoundingBox([r,s,i,a],l,this.#o),this;const u=[1/0,1/0,-1/0,-1/0];return ut.axialAlignedBoundingBox([r,s,i,a],l,u),this.#o[0]=Math.min(this.#o[0],Math.max(u[0],o[0])),this.#o[1]=Math.min(this.#o[1],Math.max(u[1],o[1])),this.#o[2]=Math.max(this.#o[2],Math.min(u[2],o[2])),this.#o[3]=Math.max(this.#o[3],Math.min(u[3],o[3])),this}recordCharacterBBox(e,n,r,i=1,s=0,a=0,o){const l=r.bbox;let u,c;if(l&&(u=l[2]!==l[0]&&l[3]!==l[1]&&this.#d.get(r),u!==!1&&(c=[0,0,0,0],ut.axialAlignedBoundingBox(l,r.fontMatrix,c),(i!==1||s!==0||a!==0)&&ut.scaleMinMax([i,0,0,-i,s,a],c),u)))return this.recordBBox(e,n,c[0],c[2],c[1],c[3]);if(!o)return this.recordFullPageBBox(e);const d=o();return l&&c&&u===void 0&&(u=c[0]<=s-d.actualBoundingBoxLeft&&c[2]>=s+d.actualBoundingBoxRight&&c[1]<=a-d.actualBoundingBoxAscent&&c[3]>=a+d.actualBoundingBoxDescent,this.#d.set(r,u),u)?this.recordBBox(e,n,c[0],c[2],c[1],c[3]):this.recordBBox(e,n,s-d.actualBoundingBoxLeft,s+d.actualBoundingBoxRight,a-d.actualBoundingBoxAscent,a+d.actualBoundingBoxDescent)}recordFullPageBBox(e){return this.#o[0]=Math.max(0,this.#a[0]),this.#o[1]=Math.max(0,this.#a[1]),this.#o[2]=Math.min(this.#h,this.#a[2]),this.#o[3]=Math.min(this.#g,this.#a[3]),this}getSimpleIndex(e){return this.#e[e]}recordDependencies(e,n){const r=this.#l,i=this.#e,s=this.#t;for(const a of n)a in this.#e?r.add(i[a]):a in s&&s[a].forEach(r.add,r);return this}recordNamedDependency(e,n){return this.#r.has(n)&&this.#l.add(this.#r.get(n)),this}recordOperation(e,n=!1){if(this.recordDependencies(e,[zm]),this.#m){const r=kx(this.#m,e),{dependencies:i}=r;this.#l.forEach(i.add,i),this.#n.forEach(i.add,i),this.#i.forEach(i.add,i),i.delete(e),r.isRenderingOperation=!0}if(this.#u===e){const r=kZ(this.#o[0]*256/this.#h),i=kZ(this.#o[1]*256/this.#g),s=IZ(this.#o[2]*256/this.#h),a=IZ(this.#o[3]*256/this.#g);Ox(this.#p,e,r,i,s,a);for(const o of this.#l)o!==e&&Ox(this.#p,o,r,i,s,a);for(const o of this.#n)o!==e&&Ox(this.#p,o,r,i,s,a);for(const o of this.#i)o!==e&&Ox(this.#p,o,r,i,s,a);n||(this.#l.clear(),this.#u=-1)}return this}recordShowTextOperation(e,n=!1){const r=Array.from(this.#l);this.recordOperation(e,n),this.recordIncrementalData("sameLineText",e);for(const i of r)this.recordIncrementalData("sameLineText",i);return this}bboxToClipBoxDropOperation(e,n=!1){return this.#u===e&&(this.#u=-1,this.#a[0]=Math.max(this.#a[0],this.#o[0]),this.#a[1]=Math.max(this.#a[1],this.#o[1]),this.#a[2]=Math.min(this.#a[2],this.#o[2]),this.#a[3]=Math.min(this.#a[3],this.#o[3]),n||this.#l.clear()),this}_takePendingDependencies(){const e=this.#l;return this.#l=new Set,e}_extractOperation(e){const n=this.#f.get(e);return this.#f.delete(e),n}_pushPendingDependencies(e){for(const n of e)this.#l.add(n)}take(){return this.#d.clear(),new Sgt(this.#c,this.#p)}takeDebugMetadata(){return this.#m}}class fC{#e;#t;#r;#n=0;#i=0;constructor(e,n,r){if(e instanceof fC&&e.#r===!!r)return e;this.#e=e,this.#t=n,this.#r=!!r}growOperationsCount(){throw new Error("Unreachable")}save(e){return this.#i++,this.#e.save(this.#t),this}restore(e){return this.#i>0&&(this.#e.restore(this.#t),this.#i--),this}recordOpenMarker(e){return this.#n++,this}getOpenMarker(){return this.#n>0?this.#t:this.#e.getOpenMarker()}recordCloseMarker(e){return this.#n--,this}beginMarkedContent(e){return this}endMarkedContent(e){return this}pushBaseTransform(e){return this.#e.pushBaseTransform(e),this}popBaseTransform(){return this.#e.popBaseTransform(),this}recordSimpleData(e,n){return this.#e.recordSimpleData(e,this.#t),this}recordIncrementalData(e,n){return this.#e.recordIncrementalData(e,this.#t),this}resetIncrementalData(e,n){return this.#e.resetIncrementalData(e,this.#t),this}recordNamedData(e,n){return this}recordSimpleDataFromNamed(e,n,r){return this.#e.recordSimpleDataFromNamed(e,n,this.#t),this}recordFutureForcedDependency(e,n){return this.#e.recordFutureForcedDependency(e,this.#t),this}inheritSimpleDataAsFutureForcedDependencies(e){return this.#e.inheritSimpleDataAsFutureForcedDependencies(e),this}inheritPendingDependenciesAsFutureForcedDependencies(){return this.#e.inheritPendingDependenciesAsFutureForcedDependencies(),this}resetBBox(e){return this.#r||this.#e.resetBBox(this.#t),this}recordClipBox(e,n,r,i,s,a){return this.#r||this.#e.recordClipBox(this.#t,n,r,i,s,a),this}recordBBox(e,n,r,i,s,a){return this.#r||this.#e.recordBBox(this.#t,n,r,i,s,a),this}recordCharacterBBox(e,n,r,i,s,a,o){return this.#r||this.#e.recordCharacterBBox(this.#t,n,r,i,s,a,o),this}recordFullPageBBox(e){return this.#r||this.#e.recordFullPageBBox(this.#t),this}getSimpleIndex(e){return this.#e.getSimpleIndex(e)}recordDependencies(e,n){return this.#e.recordDependencies(this.#t,n),this}recordNamedDependency(e,n){return this.#e.recordNamedDependency(this.#t,n),this}recordOperation(e){return this.#e.recordOperation(this.#t,!0),this}recordShowTextOperation(e){return this.#e.recordShowTextOperation(this.#t,!0),this}bboxToClipBoxDropOperation(e){return this.#r||this.#e.bboxToClipBoxDropOperation(this.#t,!0),this}take(){throw new Error("Unreachable")}takeDebugMetadata(){throw new Error("Unreachable")}}const uo={stroke:["path","transform","filter","strokeColor","strokeAlpha","lineWidth","lineCap","lineJoin","miterLimit","dash"],fill:["path","transform","filter","fillColor","fillAlpha","globalCompositeOperation","SMask"],imageXObject:["transform","SMask","filter","fillAlpha","strokeAlpha","globalCompositeOperation"],rawFillPath:["f
166ilter","fillColor","fillAlpha"],showText:["transform","leading","charSpacing","wordSpacing","hScale","textRise","moveText","textMatrix","font","fontObj","filter","fillColor","textRenderingMode","SMask","fillAlpha","strokeAlpha","globalCompositeOperation","sameLineText"],transform:["transform"],transformAndFill:["transform","fillColor"]},Qi={FILL:"Fill",STROKE:"Stroke",SHADING:"Shading"};function k9(t,e){if(!e)return;const n=e[2]-e[0],r=e[3]-e[1],i=new Path2D;i.rect(e[0],e[1],n,r),t.clip(i)}class XF{isModifyingCurrentTransform(){return!1}getPattern(){er("Abstract method `getPattern` called.")}}class Tgt extends XF{constructor(e){super(),this._type=e[1],this._bbox=e[2],this._colorStops=e[3],this._p0=e[4],this._p1=e[5],this._r0=e[6],this._r1=e[7],this.matrix=null}_createGradient(e){let n;this._type==="axial"?n=e.createLinearGradient(this._p0[0],this._p0[1],this._p1[0],this._p1[1]):this._type==="radial"&&(n=e.createRadialGradient(this._p0[0],this._p0[1],this._r0,this._p1[0],this._p1[1],this._r1));for(const r of this._colorStops)n.addColorStop(r[0],r[1]);return n}getPattern(e,n,r,i){let s;if(i===Qi.STROKE||i===Qi.FILL){const a=n.current.getClippedPathBoundingBox(i,Or(e))||[0,0,0,0],o=Math.ceil(a[2]-a[0])||1,l=Math.ceil(a[3]-a[1])||1,u=n.cachedCanvases.getCanvas("pattern",o,l),c=u.context;c.clearRect(0,0,c.canvas.width,c.canvas.height),c.beginPath(),c.rect(0,0,c.canvas.width,c.canvas.height),c.translate(-a[0],-a[1]),r=ut.transform(r,[1,0,0,1,a[0],a[1]]),c.transform(...n.baseTransform),this.matrix&&c.transform(...this.matrix),k9(c,this._bbox),c.fillStyle=this._createGradient(c),c.fill(),s=e.createPattern(u.canvas,"no-repeat");const d=new DOMMatrix(r);s.setTransform(d)}else k9(e,this._bbox),s=this._createGradient(e);return s}}function Y4(t,e,n,r,i,s,a,o){const l=e.coords,u=e.colors,c=t.data,d=t.width*4;let h;l[n+1]>l[r+1]&&(h=n,n=r,r=h,h=s,s=a,a=h),l[r+1]>l[i+1]&&(h=r,r=i,i=h,h=a,a=o,o=h),l[n+1]>l[r+1]&&(h=n,n=r,r=h,h=s,s=a,a=h);const m=(l[n]+e.offsetX)*e.scaleX,g=(l[n+1]+e.offsetY)*e.scaleY,b=(l[r]+e.offsetX)*e.scaleX,v=(l[r+1]+e.offsetY)*e.scaleY,E=(l[i]+e.offsetX)*e.scaleX,x=(l[i+1]+e.offsetY)*e.scaleY;if(g>=x)return;const _=u[s],S=u[s+1],A=u[s+2],R=u[a],T=u[a+1],O=u[a+2],I=u[o],D=u[o+1],P=u[o+2],B=Math.round(g),L=Math.round(x);let $,q,F,G,H,K,V,Y;for(let Z=B;Z<=L;Z++){if(Z<v){const J=Z<g?0:(g-Z)/(g-v);$=m-(m-b)*J,q=_-(_-R)*J,F=S-(S-T)*J,G=A-(A-O)*J}else{let J;Z>x?J=1:v===x?J=0:J=(v-Z)/(v-x),$=b-(b-E)*J,q=R-(R-I)*J,F=T-(T-D)*J,G=O-(O-P)*J}let W;Z<g?W=0:Z>x?W=1:W=(g-Z)/(g-x),H=m-(m-E)*W,K=_-(_-I)*W,V=S-(S-D)*W,Y=A-(A-P)*W;const Q=Math.round(Math.min($,H)),re=Math.round(Math.max($,H));let se=d*Z+Q*4;for(let J=Q;J<=re;J++)W=($-J)/($-H),W<0?W=0:W>1&&(W=1),c[se++]=q-(q-K)*W|0,c[se++]=F-(F-V)*W|0,c[se++]=G-(G-Y)*W|0,c[se++]=255}}function Agt(t,e,n){const r=e.coords,i=e.colors;let s,a;switch(e.type){case"lattice":const o=e.verticesPerRow,l=Math.floor(r.length/o)-1,u=o-1;for(s=0;s<l;s++){let c=s*o;for(let d=0;d<u;d++,c++)Y4(t,n,r[c],r[c+1],r[c+o],i[c],i[c+1],i[c+o]),Y4(t,n,r[c+o+1],r[c+1],r[c+o],i[c+o+1],i[c+1],i[c+o])}break;case"triangles":for(s=0,a=r.length;s<a;s+=3)Y4(t,n,r[s],r[s+1],r[s+2],i[s],i[s+1],i[s+2]);break;default:throw new Error("illegal figure")}}class Rgt extends XF{constructor(e){super(),this._coords=e[2],this._colors=e[3],this._figures=e[4],this._bounds=e[5],this._bbox=e[6],this._background=e[7],this.matrix=null}_createMeshCanvas(e,n,r){const o=Math.floor(this._bounds[0]),l=Math.floor(this._bounds[1]),u=Math.ceil(this._bounds[2])-o,c=Math.ceil(this._bounds[3])-l,d=Math.min(Math.ceil(Math.abs(u*e[0]*1.1)),3e3),h=Math.min(Math.ceil(Math.abs(c*e[1]*1.1)),3e3),m=u/d,g=c/h,b={coords:this._coords,colors:this._colors,offsetX:-o,offsetY:-l,scaleX:1/m,scaleY:1/g},v=d+4,E=h+4,x=r.getCanvas("mesh",v,E),_=x.context,S=_.createImageData(d,h);if(n){const R=S.data;for(let T=0,O=R.length;T<O;T+=4)R[T]=n[0],R[T+1]=n[1],R[T+2]=n[2],R[T+3]=255}for(const R of this._figures)Agt(S,R,b);return _.putImageData(S,2,2),{canvas:x.canvas,offsetX:o-2*m,offsetY:l-2*g,scaleX:m,scaleY:g}}isModifyingCurrentTransform(){return!0}getPattern(e,n,r,i){k9(e,this._bbox);const s=new Float32Array(2);if(i===Qi.SHADING)ut.singularValueDecompose2dScale(Or(e),s);
vendor: 26,663 bytes, line 166
166else if(this.matrix){ut.singularValueDecompose2dScale(this.matrix,s);const[o,l]=s;ut.singularValueDecompose2dScale(n.baseTransform,s),s[0]*=o,s[1]*=l}else ut.singularValueDecompose2dScale(n.baseTransform,s);const a=this._createMeshCanvas(s,i===Qi.SHADING?null:this._background,n.cachedCanvases);return i!==Qi.SHADING&&(e.setTransform(...n.baseTransform),this.matrix&&e.transform(...this.matrix)),e.translate(a.offsetX,a.offsetY),e.scale(a.scaleX,a.scaleY),e.createPattern(a.canvas,"no-repeat")}}class Ngt extends XF{getPattern(){return"hotpink"}}function Ogt(t){switch(t[0]){case"RadialAxial":return new Tgt(t);case"Mesh":return new Rgt(t);case"Dummy":return new Ngt}throw new Error(`Unknown IR type: ${t[0]}`)}const MZ={COLORED:1,UNCOLORED:2};class QF{static MAX_PATTERN_SIZE=3e3;constructor(e,n,r,i){this.color=e[1],this.operatorList=e[2],this.matrix=e[3],this.bbox=e[4],this.xstep=e[5],this.ystep=e[6],this.paintType=e[7],this.tilingType=e[8],this.ctx=n,this.canvasGraphicsFactory=r,this.baseTransform=i}createPatternCanvas(e,n){const{bbox:r,operatorList:i,paintType:s,tilingType:a,color:o,canvasGraphicsFactory:l}=this;let{xstep:u,ystep:c}=this;u=Math.abs(u),c=Math.abs(c),F3("TilingType: "+a);const d=r[0],h=r[1],m=r[2],g=r[3],b=m-d,v=g-h,E=new Float32Array(2);ut.singularValueDecompose2dScale(this.matrix,E);const[x,_]=E;ut.singularValueDecompose2dScale(this.baseTransform,E);const S=x*E[0],A=_*E[1];let R=b,T=v,O=!1,I=!1;const D=Math.ceil(u*S),P=Math.ceil(c*A),B=Math.ceil(b*S),L=Math.ceil(v*A);D>=B?R=u:O=!0,P>=L?T=c:I=!0;const $=this.getSizeAndScale(R,this.ctx.canvas.width,S),q=this.getSizeAndScale(T,this.ctx.canvas.height,A),F=e.cachedCanvases.getCanvas("pattern",$.size,q.size),G=F.context,H=l.createCanvasGraphics(G,n);if(H.groupLevel=e.groupLevel,this.setFillAndStrokeStyleToContext(H,s,o),G.translate(-$.scale*d,-q.scale*h),H.transform(0,$.scale,0,0,q.scale,0,0),G.save(),H.dependencyTracker?.save(),this.clipBbox(H,d,h,m,g),H.baseTransform=Or(H.ctx),H.executeOperatorList(i),H.endDrawing(),H.dependencyTracker?.restore(),G.restore(),O||I){const K=F.canvas;O&&(R=u),I&&(T=c);const V=this.getSizeAndScale(R,this.ctx.canvas.width,S),Y=this.getSizeAndScale(T,this.ctx.canvas.height,A),Z=V.size,W=Y.size,Q=e.cachedCanvases.getCanvas("pattern-workaround",Z,W),re=Q.context,se=O?Math.floor(b/u):0,J=I?Math.floor(v/c):0;for(let ae=0;ae<=se;ae++)for(let ge=0;ge<=J;ge++)re.drawImage(K,Z*ae,W*ge,Z,W,0,0,Z,W);return{canvas:Q.canvas,scaleX:V.scale,scaleY:Y.scale,offsetX:d,offsetY:h}}return{canvas:F.canvas,scaleX:$.scale,scaleY:q.scale,offsetX:d,offsetY:h}}getSizeAndScale(e,n,r){const i=Math.max(QF.MAX_PATTERN_SIZE,n);let s=Math.ceil(e*r);return s>=i?s=i:r=s/e,{scale:r,size:s}}clipBbox(e,n,r,i,s){const a=i-n,o=s-r;e.ctx.rect(n,r,a,o),ut.axialAlignedBoundingBox([n,r,i,s],Or(e.ctx),e.current.minMax),e.clip(),e.endPath()}setFillAndStrokeStyleToContext(e,n,r){const i=e.ctx,s=e.current;switch(n){case MZ.COLORED:const{fillStyle:a,strokeStyle:o}=this.ctx;i.fillStyle=s.fillColor=a,i.strokeStyle=s.strokeColor=o;break;case MZ.UNCOLORED:i.fillStyle=i.strokeStyle=r,s.fillColor=s.strokeColor=r;break;default:throw new Qmt(`Unsupported paint type: ${n}`)}}isModifyingCurrentTransform(){return!1}getPattern(e,n,r,i,s){let a=r;i!==Qi.SHADING&&(a=ut.transform(a,n.baseTransform),this.matrix&&(a=ut.transform(a,this.matrix)));const o=this.createPatternCanvas(n,s);let l=new DOMMatrix(a);l=l.translate(o.offsetX,o.offsetY),l=l.scale(1/o.scaleX,1/o.scaleY);const u=e.createPattern(o.canvas,"repeat");return u.setTransform(l),u}}function kgt({src:t,srcPos:e=0,dest:n,width:r,height:i,nonBlackColor:s=4294967295,inverseDecode:a=!1}){const o=zi.isLittleEndian?4278190080:255,[l,u]=a?[s,o]:[o,s],c=r>>3,d=r&7,h=t.length;n=new Uint32Array(n.buffer);let m=0;for(let g=0;g<i;g++){for(const v=e+c;e<v;e++){const E=e<h?t[e]:255;n[m++]=E&128?u:l,n[m++]=E&64?u:l,n[m++]=E&32?u:l,n[m++]=E&16?u:l,n[m++]=E&8?u:l,n[m++]=E&4?u:l,n[m++]=E&2?u:l,n[m++]=E&1?u:l}if(d===0)continue;const b=e<h?t[e++]:255;for(let v=0;v<d;v++)n[m++]=b&1<<7-v?u:l}return{srcPos:e,destPos:m}}const DZ=16,PZ=100,Igt=15,LZ=10,ta=16,K4=new DOMMatrix,Pa=new Float32Array(2),og=new Float32Array([1/0,1/0,-1/0,-1/0]);function Mgt(t,e){if(t._removeMirroring)throw new Error("Context is already forwarding operations.");t.__originalSave=t.save,t.__originalRestore=t.restore,t.__originalRotate=t.rotate,t.__originalScale=t.scale,t.__originalTranslate=t.translate,t.__originalTransform=t.transform,t.__originalSetTransform=t.setTransform,t.__originalResetTransform=t.resetTransform,t.__originalClip=t.clip,t.__originalMoveTo=t.moveTo,t.__originalLineTo=t.lineTo,t.__originalBezierCurveTo=t.bezierCurveTo,t.__originalRect=t.rect,t.__originalClosePath=t.closePath,t.__originalBeginPath=t.beginPath,t._removeMirroring=()=>{t.save=t.__originalSave,t.restore=t.__originalRestore,t.rotate=t.__originalRotate,t.scale=t.__originalScale,t.translate=t.__originalTranslate,t.transform=t.__originalTransform,t.setTransform=t.__originalSetTransform,t.resetTransform=t.__originalResetTransform,t.clip=t.__originalClip,t.moveTo=t.__originalMoveTo,t.lineTo=t.__originalLineTo,t.bezierCurveTo=t.__originalBezierCurveTo,t.rect=t.__originalRect,t.closePath=t.__originalClosePath,t.beginPath=t.__originalBeginPath,delete t._removeMirroring},t.save=function(){e.save(),this.__originalSave()},t.restore=function(){e.restore(),this.__originalRestore()},t.translate=function(n,r){e.translate(n,r),this.__originalTranslate(n,r)},t.scale=function(n,r){e.scale(n,r),this.__originalScale(n,r)},t.transform=function(n,r,i,s,a,o){e.transform(n,r,i,s,a,o),this.__originalTransform(n,r,i,s,a,o)},t.setTransform=function(n,r,i,s,a,o){e.setTransform(n,r,i,s,a,o),this.__originalSetTransform(n,r,i,s,a,o)},t.resetTransform=function(){e.resetTransform(),this.__originalResetTransform()},t.rotate=function(n){e.rotate(n),this.__originalRotate(n)},t.clip=function(n){e.clip(n),this.__originalClip(n)},t.moveTo=function(n,r){e.moveTo(n,r),this.__originalMoveTo(n,r)},t.lineTo=function(n,r){e.lineTo(n,r),this.__originalLineTo(n,r)},t.bezierCurveTo=function(n,r,i,s,a,o){e.bezierCurveTo(n,r,i,s,a,o),this.__originalBezierCurveTo(n,r,i,s,a,o)},t.rect=function(n,r,i,s){e.rect(n,r,i,s),this.__originalRect(n,r,i,s)},t.closePath=function(){e.closePath(),this.__originalClosePath()},t.beginPath=function(){e.beginPath(),this.__originalBeginPath()}}class Dgt{constructor(e){this.canvasFactory=e,this.cache=Object.create(null)}getCanvas(e,n,r){let i;return this.cache[e]!==void 0?(i=this.cache[e],this.canvasFactory.reset(i,n,r)):(i=this.canvasFactory.create(n,r),this.cache[e]=i),i}delete(e){delete this.cache[e]}clear(){for(const e in this.cache){const n=this.cache[e];this.canvasFactory.destroy(n),delete this.cache[e]}}}function Ix(t,e,n,r,i,s,a,o,l,u){const[c,d,h,m,g,b]=Or(t);if(d===0&&h===0){const x=a*c+g,_=Math.round(x),S=o*m+b,A=Math.round(S),R=(a+l)*c+g,T=Math.abs(Math.round(R)-_)||1,O=(o+u)*m+b,I=Math.abs(Math.round(O)-A)||1;return t.setTransform(Math.sign(c),0,0,Math.sign(m),_,A),t.drawImage(e,n,r,i,s,0,0,T,I),t.setTransform(c,d,h,m,g,b),[T,I]}if(c===0&&m===0){const x=o*h+g,_=Math.round(x),S=a*d+b,A=Math.round(S),R=(o+u)*h+g,T=Math.abs(Math.round(R)-_)||1,O=(a+l)*d+b,I=Math.abs(Math.round(O)-A)||1;return t.setTransform(0,Math.sign(d),Math.sign(h),0,_,A),t.drawImage(e,n,r,i,s,0,0,I,T),t.setTransform(c,d,h,m,g,b),[I,T]}t.drawImage(e,n,r,i,s,a,o,l,u);const v=Math.hypot(c,d),E=Math.hypot(h,m);return[v*l,E*u]}class $Z{alphaIsShape=!1;fontSize=0;fontSizeScale=1;textMatrix=null;textMatrixScale=1;fontMatrix=T9;leading=0;x=0;y=0;lineX=0;lineY=0;charSpacing=0;wordSpacing=0;textHScale=1;textRenderingMode=Xi.FILL;textRise=0;fillColor="#000000";strokeColor="#000000";patternFill=!1;patternStroke=!1;fillAlpha=1;strokeAlpha=1;lineWidth=1;activeSMask=null;transferMaps="none";constructor(e,n,r){r?.(this),this.clipBox=new Float32Array([0,0,e,n]),this.minMax=og.slice()}clone(){const e=Object.create(this);return e.clipBox=this.clipBox.slice(),e.minMax=this.minMax.slice(),e}getPathBoundingBox(e=Qi.FILL,n=null){const r=this.minMax.slice();if(e===Qi.STROKE){n||er("Stroke bounding box must include transform."),ut.singularValueDecompose2dScale(n,Pa);const i=Pa[0]*this.lineWidth/2,s=Pa[1]*this.lineWidth/2;r[0]-=i,r[1]-=s,r[2]+=i,r[3]+=s}return r}updateClipFromPath(){const e=ut.intersect(this.clipBox,this.getPathBoundingBox());this.startNewPathAndClipBox(e||[0,0,0,0])}isEmptyClip(){return this.minMax[0]===1/0}startNewPathAndClipBox(e){this.clipBox.set(e,0),this.minMax.set(og,0)}getClippedPathBoundingBox(e=Qi.FILL,n=null){return ut.intersect(this.clipBox,this.getPathBoundingBox(e,n))}}function FZ(t,e){if(e instanceof ImageData){t.putImageData(e,0,0);return}const n=e.height,r=e.width,i=n%ta,s=(n-i)/ta,a=i===0?s:s+1,o=t.createImageData(r,ta);let l=0,u;const c=e.data,d=o.data;let h,m,g,b;if(e.kind===xb.GRAYSCALE_1BPP){const v=c.byteLength,E=new Uint32Array(d.buffer,0,d.byteLength>>2),x=E.length,_=r+7>>3,S=4294967295,A=zi.isLittleEndian?4278190080:255;for(h=0;h<a;h++){for(g=h<s?ta:i,u=0,m=0;m<g;m++){const R=v-l;let T=0;const O=R>_?r:R*8-7,I=O&-8;let D=0,P=0;for(;T<I;T+=8)P=c[l++],E[u++]=P&128?S:A,E[u++]=P&64?S:A,E[u++]=P&32?S:A,E[u++]=P&16?S:A,E[u++]=P&8?S:A,E[u++]=P&4?S:A,E[u++]=P&2?S:A,E[u++]=P&1?S:A;for(;T<O;T++)D===0&&(P=c[l++],D=128),E[u++]=P&D?S:A,D>>=1}for(;u<x;)E[u++]=0;t.putImageData(o,0,h*ta)}}else if(e.kind===xb.RGBA_32BPP){for(m=0,b=r*ta*4,h=0;h<s;h++)d.set(c.subarray(l,l+b)),l+=b,t.putImageData(o,0,m),m+=ta;h<a&&(b=r*i*4,d.set(c.subarray(l,l+b)),t.putImageData(o,0,m))}else if(e.kind===xb.RGB_24BPP)for(g=ta,b=r*g,h=0;h<a;h++){for(h>=s&&(g=i,b=r*g),u=0,m=b;m--;)d[u++]=c[l++],d[u++]=c[l++],d[u++]=c[l++],d[u++]=255;t.putImageData(o,0,h*ta)}else throw new Error(`bad image kind: ${e.kind}`)}function BZ(t,e){if(e.bitmap){t.drawImage(e.bitmap,0,0);return}const n=e.height,r=e.width,i=n%ta,s=(n-i)/ta,a=i===0?s:s+1,o=t.createImageData(r,ta);let l=0;const u=e.data,c=o.data;for(let d=0;d<a;d++){const h=d<s?ta:i;({srcPos:l}=kgt({src:u,srcPos:l,dest:c,width:r,height:h,nonBlackColor:0})),t.putImageData(o,0,d*ta)}}function Ty(t,e){const n=["strokeStyle","fillStyle","fillRule","globalAlpha","lineWidth","lineCap","lineJoin","miterLimit","globalCompositeOperation","font","filter"];for(const r of n)t[r]!==void 0&&(e[r]=t[r]);t.setLineDash!==void 0&&(e.setLineDash(t.getLineDash()),e.lineDashOffset=t.lineDashOffset)}function Mx(t){t.strokeStyle=t.fillStyle="#000000",t.fillRule="nonzero",t.globalAlpha=1,t.lineWidth=1,t.lineCap="butt",t.lineJoin="miter",t.miterLimit=10,t.globalCompositeOperation="source-over",t.font="10px sans-serif",t.setLineDash!==void 0&&(t.setLineDash([]),t.lineDashOffset=0);const{filter:e}=t;e!=="none"&&e!==""&&(t.filter="none")}function HZ(t,e){if(e)return!0;ut.singularValueDecompose2dScale(t,Pa);const n=Math.fround(hl.pixelRatio*tp.PDF_TO_CSS_UNITS);return Pa[0]<=n&&Pa[1]<=n}const Pgt=["butt","round","square"],Lgt=["miter","round","bevel"],$gt={},UZ={};class Tg{constructor(e,n,r,i,s,{optionalContentConfig:a,markedContentStack:o=null},l,u,c){this.ctx=e,this.current=new $Z(this.ctx.canvas.width,this.ctx.canvas.height),this.stateStack=[],this.pendingClip=null,this.pendingEOFill=!1,this.res=null,this.xobjs=null,this.commonObjs=n,this.objs=r,this.canvasFactory=i,this.filterFactory=s,this.groupStack=[],this.baseTransform=null,this.baseTransformStack=[],this.groupLevel=0,this.smaskStack=[],this.smaskCounter=0,this.tempSMask=null,this.suspendedCtx=null,this.contentVisible=!0,this.markedContentStack=o||[],this.optionalContentConfig=a,this.cachedCanvases=new Dgt(this.canvasFactory),this.cachedPatterns=new Map,this.annotationCanvasMap=l,this.viewportScale=1,this.outputScaleX=1,this.outputScaleY=1,this.pageColors=u,this._cachedScaleForStroking=[-1,0],this._cachedGetSinglePixelWidth=null,this._cachedBitmapsMap=new Map,this.dependencyTracker=c??null}getObject(e,n,r=null){return typeof n=="string"?(this.dependencyTracker?.recordNamedDependency(e,n),n.startsWith("g_")?this.commonObjs.get(n):this.objs.get(n)):r}beginDrawing({transform:e,viewport:n,transparency:r=!1,background:i=null}){const s=this.ctx.canvas.width,a=this.ctx.canvas.height,o=this.ctx.fillStyle;if(this.ctx.fillStyle=i||"#ffffff",this.ctx.fillRect(0,0,s,a),this.ctx.fillStyle=o,r){const l=this.cachedCanvases.getCanvas("transparent",s,a);this.compositeCtx=this.ctx,this.transparentCanvas=l.canvas,this.ctx=l.context,this.ctx.save(),this.ctx.transform(...Or(this.compositeCtx))}this.ctx.save(),Mx(this.ctx),e&&(this.ctx.transform(...e),this.outputScaleX=e[0],this.outputScaleY=e[0]),this.ctx.transform(...n.transform),this.viewportScale=n.scale,this.baseTransform=Or(this.ctx)}executeOperatorList(e,n,r,i,s){const a=e.argsArray,o=e.fnArray;let l=n||0;const u=a.length;if(u===l)return l;const c=u-l>LZ&&typeof r=="function",d=c?Date.now()+Igt:0;let h=0;const m=this.commonObjs,g=this.objs;let b,v;for(;;){if(i!==void 0&&l===i.nextBreakPoint)return i.breakIt(l,r),l;if(!s||s(l))if(b=o[l],v=a[l]??null,b!==r0.dependency)v===null?this[b](l):this[b](l,...v);else for(const E of v){this.dependencyTracker?.recordNamedData(E,l);const x=E.startsWith("g_")?m:g;if(!x.has(E))return x.get(E,r),l}if(l++,l===u)return l;if(c&&++h>LZ){if(Date.now()>d)return r(),l;h=0}}}#e(){for(;this.stateStack.length||this.inSMaskMode;)this.restore();this.current.activeSMask=null,this.ctx.restore(),this.transparentCanvas&&(this.ctx=this.compositeCtx,this.ctx.save(),this.ctx.setTransform(1,0,0,1,0,0),this.ctx.drawImage(this.transparentCanvas,0,0),this.ctx.restore(),this.transparentCanvas=null)}endDrawing(){this.#e(),this.cachedCanvases.clear(),this.cachedPatterns.clear();for(const e of this._cachedBitmapsMap.values()){for(const n of e.values())typeof HTMLCanvasElement<"u"&&n instanceof HTMLCanvasElement&&(n.width=n.height=0);e.clear()}this._cachedBitmapsMap.clear(),this.#t()}#t(){if(this.pageColors){const e=this.filterFactory.addHCMFilter(this.pageColors.foreground,this.pageColors.background);if(e!=="none"){const n=this.ctx.filter;this.ctx.filter=e,this.ctx.drawImage(this.ctx.canvas,0,0),this.ctx.filter=n}}}_scaleImage(e,n){const r=e.width??e.displayWidth,i=e.height??e.displayHeight;let s=Math.max(Math.hypot(n[0],n[1]),1),a=Math.max(Math.hypot(n[2],n[3]),1),o=r,l=i,u="prescale1",c,d;for(;s>2&&o>1||a>2&&l>1;){let h=o,m=l;s>2&&o>1&&(h=o>=16384?Math.floor(o/2)-1||1:Math.ceil(o/2),s/=o/h),a>2&&l>1&&(m=l>=16384?Math.floor(l/2)-1||1:Math.ceil(l)/2,a/=l/m),c=this.cachedCanvases.getCanvas(u,h,m),d=c.context,d.clearRect(0,0,h,m),d.drawImage(e,0,0,o,l,0,0,h,m),e=c.canvas,o=h,l=m,u=u==="prescale1"?"prescale2":"prescale1"}return{img:e,paintWidth:o,paintHeight:l}}_createMaskCanvas(e,n){const r=this.ctx,{width:i,height:s}=n,a=this.current.fillColor,o=this.current.patternFill,l=Or(r);let u,c,d,h;if((n.bitmap||n.data)&&n.count>1){const D=n.bitmap||n.data.buffer;c=JSON.stringify(o?l:[l.slice(0,4),a]),u=this._cachedBitmapsMap.get(D),u||(u=new Map,this._cachedBitmapsMap.set(D,u));const P=u.get(c);if(P&&!o){const B=Math.round(Math.min(l[0],l[2])+l[4]),L=Math.round(Math.min(l[1],l[3])+l[5]);return this.dependencyTracker?.recordDependencies(e,uo.transformAndFill),{canvas:P,offsetX:B,offsetY:L}}d=P}d||(h=this.cachedCanvases.getCanvas("maskCanvas",i,s),BZ(h.context,n));let m=ut.transform(l,[1/i,0,0,-1/s,0,0]);m=ut.transform(m,[1,0,0,1,0,-s]);const g=og.slice();ut.axialAlignedBoundingBox([0,0,i,s],m,g);const[b,v,E,x]=g,_=Math.round(E-b)||1,S=Math.round(x-v)||1,A=this.cachedCanvases.getCanvas("fillCanvas",_,S),R=A.context,T=b,O=v;R.translate(-T,-O),R.transform(...m),d||(d=this._scaleImage(h.canvas,Ml(R)),d=d.img,u&&o&&u.set(c,d)),R.imageSmoothingEnabled=HZ(Or(R),n.interpolate),Ix(R,d,0,0,d.width,d.height,0,0,i,s),R.globalCompositeOperation="source-in";const I=ut.transform(Ml(R),[1,0,0,1,-T,-O]);return R.fillStyle=o?a.getPattern(r,this,I,Qi.FILL,e):a,R.fillRect(0,0,i,s),u&&!o&&(this.cachedCanvases.delete("fillCanvas"),u.set(c,A.canvas)),this.dependencyTracker?.recordDependencies(e,uo.transformAndFill),{canvas:A.canvas,offsetX:Math.round(T),offsetY:Math.round(O)}}setLineWidth(e,n){this.dependencyTracker?.recordSimpleData("lineWidth",e),n!==this.current.lineWidth&&(this._cachedScaleForStroking[0]=-1),this.current.lineWidth=n,this.ctx.lineWidth=n}setLineCap(e,n){this.dependencyTracker?.recordSimpleData("lineCap",e),this.ctx.lineCap=Pgt[n]}setLineJoin(e,n){this.dependencyTracker?.recordSimpleData("lineJoin",e),this.ctx.lineJoin=Lgt[n]}setMiterLimit(e,n){this.dependencyTracker?.recordSimpleData("miterLimit",e),this.ctx.miterLimit=n}setDash(e,n,r){this.dependencyTracker?.recordSimpleData("dash",e);const i=this.ctx;i.setLineDash!==void 0&&(i.setLineDash(n),i.lineDashOffset=r)}setRenderingIntent(e,n){}setFlatness(e,n){}setGState(e,n){for(const[r,i]of n)switch(r){case"LW":this.setLineWidth(e,i);break;case"LC":this.setLineCap(e,i);break;case"LJ":this.setLineJoin(e,i);break;case"ML":this.setMiterLimit(e,i);break;case"D":this.setDash(e,i[0],i[1]);break;case"RI":this.setRenderingIntent(e,i);break;case"FL":this.setFlatness(e,i);break;case"Font":this.setFont(e,i[0],i[1]);break;case"CA":this.dependencyTracker?.recordSimpleData("strokeAlpha",e),this.current.strokeAlpha=i;break;case"ca":this.dependencyTracker?.recordSimpleData("fillAlpha",e),this.ctx.globalAlpha=this.current.fillAlpha=i;break;case"BM":this.dependencyTracker?.recordSimpleData("globalCompositeOperation",e),this.ctx.globalCompositeOperation=i;break;case"SMask":this.dependencyTracker?.recordSimpleData("SMask",e),this.current.activeSMask=i?this.tempSMask:null,this.tempSMask=null,this.checkSMaskState();break;case"TR":this.dependencyTracker?.recordSimpleData("filter",e),this.ctx.filter=this.current.transferMaps=this.filterFactory.addFilter(i);break}}get inSMaskMode(){return!!this.suspendedCtx}checkSMaskState(){const e=this.inSMaskMode;this.current.activeSMask&&!e?this.beginSMaskMode():!this.current.activeSMask&&e&&this.endSMaskMode()}beginSMaskMode(e){if(this.inSMaskMode)throw new Error("beginSMaskMode called while already in smask mode");const n=this.ctx.canvas.width,r=this.ctx.canvas.height,i="smaskGroupAt"+this.groupLevel,s=this.cachedCanvases.getCanvas(i,n,r);this.suspendedCtx=this.ctx;const a=this.ctx=s.context;a.setTransform(this.suspendedCtx.getTransform()),Ty(this.suspendedCtx,a),Mgt(a,this.suspendedCtx),this.setGState(e,[["BM","source-over"]])}endSMaskMode(){if(!this.inSMaskMode)throw new Error("endSMaskMode called while not in smask mode");this.ctx._removeMirroring(),Ty(this.ctx,this.suspendedCtx),this.ctx=this.suspendedCtx,this.suspendedCtx=null}compose(e){if(!this.current.activeSMask)return;e?(e[0]=Math.floor(e[0]),e[1]=Math.floor(e[1]),e[2]=Math.ceil(e[2]),e[3]=Math.ceil(e[3])):e=[0,0,this.ctx.canvas.width,this.ctx.canvas.height];const n=this.current.activeSMask,r=this.suspendedCtx;this.composeSMask(r,n,this.ctx,e),this.ctx.save(),this.ctx.setTransform(1,0,0,1,0,0),this.ctx.clearRect(0,0,this.ctx.canvas.width,this.ctx.canvas.height),this.ctx.restore()}composeSMask(e,n,r,i){const s=i[0],a=i[1],o=i[2]-s,l=i[3]-a;o===0||l===0||(this.genericComposeSMask(n.context,r,o,l,n.subtype,n.backdrop,n.transferMap,s,a,n.offsetX,n.offsetY),e.save(),e.globalAlpha=1,e.globalCompositeOperation="source-over",e.setTransform(1,0,0,1,0,0),e.drawImage(r.canvas,0,0),e.restore())}genericComposeSMask(e,n,r,i,s,a,o,l,u,c,d){let h=e.canvas,m=l-c,g=u-d;if(a)if(m<0||g<0||m+r>h.width||g+i>h.height){const v=this.cachedCanvases.getCanvas("maskExtension",r,i),E=v.context;E.drawImage(h,-m,-g),E.globalCompositeOperation="destination-atop",E.fillStyle=a,E.fillRect(0,0,r,i),E.globalCompositeOperation="source-over",h=v.canvas,m=g=0}else{e.save(),e.globalAlpha=1,e.setTransform(1,0,0,1,0,0);const v=new Path2D;v.rect(m,g,r,i),e.clip(v),e.globalCompositeOperation="destination-atop",e.fillStyle=a,e.fillRect(m,g,r,i),e.restore()}n.save(),n.globalAlpha=1,n.setTransform(1,0,0,1,0,0),s==="Alpha"&&o?n.filter=this.filterFactory.addAlphaFilter(o):s==="Luminosity"&&(n.filter=this.filterFactory.addLuminosityFilter(o));const b=new Path2D;b.rect(l,u,r,i),n.clip(b),n.globalCompositeOperation="destination-in",n.drawImage(h,m,g,r,i,l,u,r,i),n.restore()}save(e){this.inSMaskMode&&Ty(this.ctx,this.suspendedCtx),this.ctx.save();const n=this.current;this.stateStack.push(n),this.current=n.clone(),this.dependencyTracker?.save(e)}restore(e){if(this.dependencyTracker?.restore(e),this.stateStack.length===0){this.inSMaskMode&&this.endSMaskMode();return}this.current=this.stateStack.pop(),this.ctx.restore(),this.inSMaskMode&&Ty(this.suspendedCtx,this.ctx),this.checkSMaskState(),this.pendingClip=null,this._cachedScaleForStroking[0]=-1,this._cachedGetSinglePixelWidth=null}transform(e,n,r,i,s,a,o){this.dependencyTracker?.recordIncrementalData("transform",e),this.ctx.transform(n,r,i,s,a,o),this._cachedScaleForStroking[0]=-1,this._cachedGetSinglePixelWidth=null}constructPath(e,n,r,i){let[s]=r;if(!i){s||=r[0]=new Path2D,this[n](e,s);return}if(this.dependencyTracker!==null){const a=n===r0.stroke?this.current.lineWidth/2:0;this.dependencyTracker.resetBBox(e).recordBBox(e,this.ctx,i[0]-a,i[2]+a,i[1]-a,i[3]+a).recordDependencies(e,["transform"])}if(!(s instanceof Path2D)){const a=r[0]=new Path2D;for(let o=0,l=s.length;o<l;)switch(s[o++]){case Tx.moveTo:a.moveTo(s[o++],s[o++]);break;case Tx.lineTo:a.lineTo(s[o++],s[o++]);break;case Tx.curveTo:a.bezierCurveTo(s[o++],s[o++],s[o++],s[o++],s[o++],s[o++]);break;case Tx.closePath:a.closePath();break;default:Vt(`Unrecognized drawing path operator: ${s[o-1]}`);break}s=a}ut.axialAlignedBoundingBox(i,Or(this.ctx),this.current.minMax),this[n](e,s),this._pathStartIdx=e}closePath(e){this.ctx.closePath()}stroke(e,n,r=!0){const i=this.ctx,s=this.current.strokeColor;if(i.globalAlpha=this.current.strokeAlpha,this.contentVisible)if(typeof s=="object"&&s?.getPattern){const a=s.isModifyingCurrentTransform()?i.getTransform():null;if(i.save(),i.strokeStyle=s.getPattern(i,this,Ml(i),Qi.STROKE,e),a){const o=new Path2D;o.addPath(n,i.getTransform().invertSelf().multiplySelf(a)),n=o}this.rescaleAndStroke(n,!1),i.restore()}else this.rescaleAndStroke(n,!0);this.dependencyTracker?.recordDependencies(e,uo.stroke),r&&this.consumePath(e,n,this.current.getClippedPathBoundingBox(Qi.STROKE,Or(this.ctx))),i.globalAlpha=this.current.fillAlpha}closeStroke(e,n){this.stroke(e,n)}fill(e,n,r=!0){const i=this.ctx,s=this.current.fillColor,a=this.current.patternFill;let o=!1;if(a){const u=s.isModifyingCurrentTransform()?i.getTransform():null;if(this.dependencyTracker?.save(e),i.save(),i.fillStyle=s.getPattern(i,this,Ml(i),Qi.FILL,e),u){const c=new Path2D;c.addPath(n,i.getTransform().invertSelf().multiplySelf(u)),n=c}o=!0}const l=this.current.getClippedPathBoundingBox();this.contentVisible&&l!==null&&(this.pendingEOFill?(i.fill(n,"evenodd"),this.pendingEOFill=!1):i.fill(n)),this.dependencyTracker?.recordDependencies(e,uo.fill),o&&(i.restore(),this.dependencyTracker?.restore(e)),r&&this.consumePath(e,n,l)}eoFill(e,n){this.pendingEOFill=!0,this.fill(e,n)}fillStroke(e,n){this.fill(e,n,!1),this.stroke(e,n,!1),this.consumePath(e,n)}eoFillStroke(e,n){this.pendingEOFill=!0,this.fillStroke(e,n)}closeFillStroke(e,n){this.fillStroke(e,n)}closeEOFillStroke(e,n){this.pendingEOFill=!0,this.fillStroke(e,n)}endPath(e,n){this.consumePath(e,n)}rawFillPath(e,n){this.ctx.fill(n),this.dependencyTracker?.recordDependencies(e,uo.rawFillPath).recordOperation(e)}clip(e){this.dependencyTracker?.recordFutureForcedDependency("clipMode",e),this.pendingClip=$gt}eoClip(e){this.dependencyTracker?.recordFutureForcedDependency("clipMode",e),this.pendingClip=UZ}beginText(e){this.current.textMatrix=null,this.current.textMatrixScale=1,this.current.x=this.current.lineX=0,this.current.y=this.current.lineY=0,this.dependencyTracker?.recordOpenMarker(e).resetIncrementalData("sameLineText").resetIncrementalData("moveText",e)}endText(e){const n=this.pendingTextPaths,r=this.ctx;if(this.dependencyTracker){const{dependencyTracker:i}=this;n!==void 0&&i.recordFutureForcedDependency("textClip",i.getOpenMarker()).recordFutureForcedDependency("textClip",e),i.recordCloseMarker(e)}if(n!==void 0){const i=new Path2D,s=r.getTransform().invertSelf();for(const{transform:a,x:o,y:l,fontSize:u,path:c}of n)c&&i.addPath(c,new DOMMatrix(a).preMultiplySelf(s).translate(o,l).scale(u,-u));r.clip(i)}delete this.pendingTextPaths}setCharSpacing(e,n){this.dependencyTracker?.recordSimpleData("charSpacing",e),this.current.charSpacing=n}setWordSpacing(e,n){this.dependencyTracker?.recordSimpleData("wordSpacing",e),this.current.wordSpacing=n}setHScale(e,n){this.dependencyTracker?.recordSimpleData("hScale",e),this.current.textHScale=n/100}setLeading(e,n){this.dependencyTracker?.recordSimpleData("leading",e),this.current.leading=-n}setFont(e,n,r){this.dependencyTracker?.recordSimpleData("font",e).recordSimpleDataFromNamed("fontObj",n,e);const i=this.commonObjs.get(n),s=this.current;if(!i)throw new Error(`Can't find font for ${n}`);if(s.fontMatrix=i.fontMatrix||T9,(s.fontMatrix[0]===0||s.fontMatrix[3]===0)&&Vt("Invalid font matrix for font "+n),r<0?(r=-r,s.fontDirection=-1):s.fontDirection=1,this.current.font=i,this.current.fontSize=r,i.isType3Font)return;const a=i.loadedName||"sans-serif",o=i.systemFontInfo?.css||`"${a}", ${i.fallbackName}`;let l="normal";i.black?l="900":i.bold&&(l="bold");const u=i.italic?"italic":"normal";let c=r;r<DZ?c=DZ:r>PZ&&(c=PZ),this.current.fontSizeScale=r/c,this.ctx.font=`${u} ${l} ${c}px ${o}`}setTextRenderingMode(e,n){this.dependencyTracker?.recordSimpleData("textRenderingMode",e),this.current.textRenderingMode=n}setTextRise(e,n){this.dependencyTracker?.recordSimpleData("textRise",e),this.current.textRise=n}moveText(e,n,r){this.dependencyTracker?.resetIncrementalData("sameLineText").recordIncrementalData("moveText",e),this.current.x=this.current.lineX+=n,this.current.y=this.current.lineY+=r}setLeadingMoveText(e,n,r){this.setLeading(e,-r),this.moveText(e,n,r)}setTextMatrix(e,n){this.dependencyTracker?.recordSimpleData("textMatrix",e);const{current:r}=this;r.textMatrix=n,r.textMatrixScale=Math.hypot(n[0],n[1]),r.x=r.lineX=0,r.y=r.lineY=0}nextLine(e){this.moveText(e,0,this.current.leading),this.dependencyTracker?.recordIncrementalData("moveText",this.dependencyTracker.getSimpleIndex("leading")??e)}#r(e,n,r){const i=new Path2D;return i.addPath(e,new DOMMatrix(r).invertSelf().multiplySelf(n)),i}paintChar(e,n,r,i,s,a){const o=this.ctx,l=this.current,u=l.font,c=l.textRenderingMode,d=l.fontSize/l.fontSizeScale,h=c&Xi.FILL_STROKE_MASK,m=!!(c&Xi.ADD_TO_PATH_FLAG),g=l.patternFill&&!u.missingFile,b=l.patternStroke&&!u.missingFile;let v;if((u.disableFontFace||m||g||b)&&!u.missingFile&&(v=u.getPathGenerator(this.commonObjs,n)),v&&(u.disableFontFace||g||b)){o.save(),o.translate(r,i),o.scale(d,-d
166),this.dependencyTracker?.recordCharacterBBox(e,o,u);let E;if(h===Xi.FILL||h===Xi.FILL_STROKE)if(s){E=o.getTransform(),o.setTransform(...s);const x=this.#r(v,E,s);o.fill(x)}else o.fill(v);if(h===Xi.STROKE||h===Xi.FILL_STROKE)if(a){E||=o.getTransform(),o.setTransform(...a);const{a:x,b:_,c:S,d:A}=E,R=ut.inverseTransform(a),T=ut.transform([x,_,S,A,0,0],R);ut.singularValueDecompose2dScale(T,Pa),o.lineWidth*=Math.max(Pa[0],Pa[1])/d,o.stroke(this.#r(v,E,a))}else o.lineWidth/=d,o.stroke(v);o.restore()}else(h===Xi.FILL||h===Xi.FILL_STROKE)&&(o.fillText(n,r,i),this.dependencyTracker?.recordCharacterBBox(e,o,u,d,r,i,()=>o.measureText(n))),(h===Xi.STROKE||h===Xi.FILL_STROKE)&&(this.dependencyTracker&&this.dependencyTracker?.recordCharacterBBox(e,o,u,d,r,i,()=>o.measureText(n)).recordDependencies(e,uo.stroke),o.strokeText(n,r,i));m&&((this.pendingTextPaths||=[]).push({transform:Or(o),x:r,y:i,fontSize:d,path:v}),this.dependencyTracker?.recordCharacterBBox(e,o,u,d,r,i))}get isFontSubpixelAAEnabled(){const{context:e}=this.cachedCanvases.getCanvas("isFontSubpixelAAEnabled",10,10);e.scale(1.5,1),e.fillText("I",0,10);const n=e.getImageData(0,0,10,10).data;let r=!1;for(let i=3;i<n.length;i+=4)if(n[i]>0&&n[i]<255){r=!0;break}return Zt(this,"isFontSubpixelAAEnabled",r)}showText(e,n){this.dependencyTracker&&(this.dependencyTracker.recordDependencies(e,uo.showText).resetBBox(e),this.current.textRenderingMode&Xi.ADD_TO_PATH_FLAG&&this.dependencyTracker.recordFutureForcedDependency("textClip",e).inheritPendingDependenciesAsFutureForcedDependencies());const r=this.current,i=r.font;if(i.isType3Font){this.showType3Text(e,n),this.dependencyTracker?.recordShowTextOperation(e);return}const s=r.fontSize;if(s===0){this.dependencyTracker?.recordOperation(e);return}const a=this.ctx,o=r.fontSizeScale,l=r.charSpacing,u=r.wordSpacing,c=r.fontDirection,d=r.textHScale*c,h=n.length,m=i.vertical,g=m?1:-1,b=i.defaultVMetrics,v=s*r.fontMatrix[0],E=r.textRenderingMode===Xi.FILL&&!i.disableFontFace&&!r.patternFill;a.save(),r.textMatrix&&a.transform(...r.textMatrix),a.translate(r.x,r.y+r.textRise),c>0?a.scale(d,-1):a.scale(d,1);let x,_;if(r.patternFill){a.save();const O=r.fillColor.getPattern(a,this,Ml(a),Qi.FILL,e);x=Or(a),a.restore(),a.fillStyle=O}if(r.patternStroke){a.save();const O=r.strokeColor.getPattern(a,this,Ml(a),Qi.STROKE,e);_=Or(a),a.restore(),a.strokeStyle=O}let S=r.lineWidth;const A=r.textMatrixScale;if(A===0||S===0){const O=r.textRenderingMode&Xi.FILL_STROKE_MASK;(O===Xi.STROKE||O===Xi.FILL_STROKE)&&(S=this.getSinglePixelWidth())}else S/=A;if(o!==1&&(a.scale(o,o),S/=o),a.lineWidth=S,i.isInvalidPDFjsFont){const O=[];let I=0;for(const P of n)O.push(P.unicode),I+=P.width;const D=O.join("");if(a.fillText(D,0,0),this.dependencyTracker!==null){const P=a.measureText(D);this.dependencyTracker.recordBBox(e,this.ctx,-P.actualBoundingBoxLeft,P.actualBoundingBoxRight,-P.actualBoundingBoxAscent,P.actualBoundingBoxDescent).recordShowTextOperation(e)}r.x+=I*v*d,a.restore(),this.compose();return}let R=0,T;for(T=0;T<h;++T){const O=n[T];if(typeof O=="number"){R+=g*O*s/1e3;continue}let I=!1;const D=(O.isSpace?u:0)+l,P=O.fontChar,B=O.accent;let L,$,q=O.width;if(m){const H=O.vmetric||b,K=-(O.vmetric?H[1]:q*.5)*v,V=H[2]*v;q=H?-H[0]:q,L=K/o,$=(R+V)/o}else L=R/o,$=0;let F;if(i.remeasure&&q>0){F=a.measureText(P);const H=F.width*1e3/s*o;if(q<H&&this.isFontSubpixelAAEnabled){const K=q/H;I=!0,a.save(),a.scale(K,1),L/=K}else q!==H&&(L+=(q-H)/2e3*s/o)}if(this.contentVisible&&(O.isInFont||i.missingFile)){if(E&&!B)a.fillText(P,L,$),this.dependencyTracker?.recordCharacterBBox(e,a,F?{bbox:null}:i,s/o,L,$,()=>F??a.measureText(P));else if(this.paintChar(e,P,L,$,x,_),B){const H=L+s*B.offset.x/o,K=$-s*B.offset.y/o;this.paintChar(e,B.fontChar,H,K,x,_)}}const G=m?q*v-D*c:q*v+D*c;R+=G,I&&a.restore()}m?r.y-=R:r.x+=R*d,a.restore(),this.compose(),this.dependencyTracker?.recordShowTextOperation(e)}showType3Text(e,n){const r=this.ctx,i=this.current,s=i.font,a=i.fontSize,o=i.fontDirection,l=s.vertical?1:-1,u=i.charSpacing,c=i.wordSpacing,d=i.textHScale*o,h=i.fontMatrix||T9,m=n.length,g=i.textRenderingMode===Xi.INVISIBLE;let b,v,E,x;if(g||a===0)return;this._cachedScaleForStroking[0]=-1,this._cachedGetSinglePixelWidth=null,r.save(),i.textMatrix&&r.transform(...i.textMatrix),r.translate(i.x,i.y+i.textRise),r.scale(d,o);const _=this.dependencyTracker;for(this.dependencyTracker=_?new fC(_,e):null,b=0;b<m;++b){if(v=n[b],typeof v=="number"){x=l*v*a/1e3,this.ctx.translate(x,0),i.x+=x*d;continue}const S=(v.isSpace?c:0)+u,A=s.charProcOperatorList[v.operatorListId];A?this.contentVisible&&(this.save(),r.scale(a,a),r.transform(...h),this.executeOperatorList(A),this.restore(
vendor: 39,655 bytes, line 166
166)):Vt(`Type3 character "${v.operatorListId}" is not available.`);const R=[v.width,0];ut.applyTransform(R,h),E=R[0]*a+S,r.translate(E,0),i.x+=E*d}r.restore(),_&&(this.dependencyTracker=_)}setCharWidth(e,n,r){}setCharWidthAndBounds(e,n,r,i,s,a,o){const l=new Path2D;l.rect(i,s,a-i,o-s),this.ctx.clip(l),this.dependencyTracker?.recordBBox(e,this.ctx,i,a,s,o).recordClipBox(e,this.ctx,i,a,s,o),this.endPath(e)}getColorN_Pattern(e,n){let r;if(n[0]==="TilingPattern"){const i=this.baseTransform||Or(this.ctx),s={createCanvasGraphics:(a,o)=>new Tg(a,this.commonObjs,this.objs,this.canvasFactory,this.filterFactory,{optionalContentConfig:this.optionalContentConfig,markedContentStack:this.markedContentStack},void 0,void 0,this.dependencyTracker?new fC(this.dependencyTracker,o,!0):null)};r=new QF(n,this.ctx,s,i)}else r=this._getPattern(e,n[1],n[2]);return r}setStrokeColorN(e,...n){this.dependencyTracker?.recordSimpleData("strokeColor",e),this.current.strokeColor=this.getColorN_Pattern(e,n),this.current.patternStroke=!0}setFillColorN(e,...n){this.dependencyTracker?.recordSimpleData("fillColor",e),this.current.fillColor=this.getColorN_Pattern(e,n),this.current.patternFill=!0}setStrokeRGBColor(e,n){this.dependencyTracker?.recordSimpleData("strokeColor",e),this.ctx.strokeStyle=this.current.strokeColor=n,this.current.patternStroke=!1}setStrokeTransparent(e){this.dependencyTracker?.recordSimpleData("strokeColor",e),this.ctx.strokeStyle=this.current.strokeColor="transparent",this.current.patternStroke=!1}setFillRGBColor(e,n){this.dependencyTracker?.recordSimpleData("fillColor",e),this.ctx.fillStyle=this.current.fillColor=n,this.current.patternFill=!1}setFillTransparent(e){this.dependencyTracker?.recordSimpleData("fillColor",e),this.ctx.fillStyle=this.current.fillColor="transparent",this.current.patternFill=!1}_getPattern(e,n,r=null){let i;return this.cachedPatterns.has(n)?i=this.cachedPatterns.get(n):(i=Ogt(this.getObject(e,n)),this.cachedPatterns.set(n,i)),r&&(i.matrix=r),i}shadingFill(e,n){if(!this.contentVisible)return;const r=this.ctx;this.save(e);const i=this._getPattern(e,n);r.fillStyle=i.getPattern(r,this,Ml(r),Qi.SHADING,e);const s=Ml(r);if(s){const{width:a,height:o}=r.canvas,l=og.slice();ut.axialAlignedBoundingBox([0,0,a,o],s,l);const[u,c,d,h]=l;this.ctx.fillRect(u,c,d-u,h-c)}else this.ctx.fillRect(-1e10,-1e10,2e10,2e10);this.dependencyTracker?.resetBBox(e).recordFullPageBBox(e).recordDependencies(e,uo.transform).recordDependencies(e,uo.fill).recordOperation(e),this.compose(this.current.getClippedPathBoundingBox()),this.restore(e)}beginInlineImage(){er("Should not call beginInlineImage")}beginImageData(){er("Should not call beginImageData")}paintFormXObjectBegin(e,n,r){if(this.contentVisible&&(this.save(e),this.baseTransformStack.push(this.baseTransform),n&&this.transform(e,...n),this.baseTransform=Or(this.ctx),r)){ut.axialAlignedBoundingBox(r,this.baseTransform,this.current.minMax);const[i,s,a,o]=r,l=new Path2D;l.rect(i,s,a-i,o-s),this.ctx.clip(l),this.dependencyTracker?.recordClipBox(e,this.ctx,i,a,s,o),this.endPath(e)}}paintFormXObjectEnd(e){this.contentVisible&&(this.restore(e),this.baseTransform=this.baseTransformStack.pop())}beginGroup(e,n){if(!this.contentVisible)return;this.save(e),this.inSMaskMode&&(this.endSMaskMode(),this.current.activeSMask=null);const r=this.ctx;n.isolated||F3("TODO: Support non-isolated groups."),n.knockout&&Vt("Knockout groups not supported.");const i=Or(r);if(n.matrix&&r.transform(...n.matrix),!n.bbox)throw new Error("Bounding box is required.");let s=og.slice();ut.axialAlignedBoundingBox(n.bbox,Or(r),s);const a=[0,0,r.canvas.width,r.canvas.height];s=ut.intersect(s,a)||[0,0,0,0];const o=Math.floor(s[0]),l=Math.floor(s[1]),u=Math.max(Math.ceil(s[2])-o,1),c=Math.max(Math.ceil(s[3])-l,1);this.current.startNewPathAndClipBox([0,0,u,c]);let d="groupAt"+this.groupLevel;n.smask&&(d+="_smask_"+this.smaskCounter++%2);const h=this.cachedCanvases.getCanvas(d,u,c),m=h.context;m.translate(-o,-l),m.transform(...i);let g=new Path2D;const[b,v,E,x]=n.bbox;if(g.rect(b,v,E-b,x-v),n.matrix){const _=new Path2D;_.addPath(g,new DOMMatrix(n.matrix)),g=_}m.clip(g),n.smask&&this.smaskStack.push({canvas:h.canvas,context:m,offsetX:o,offsetY:l,subtype:n.smask.subtype,backdrop:n.smask.backdrop,transferMap:n.smask.transferMap||null,startTransformInverse:null}),(!n.smask||this.dependencyTracker)&&(r.setTransform(1,0,0,1,0,0),r.translate(o,l),r.save()),Ty(r,m),this.ctx=m,this.dependencyTracker?.inheritSimpleDataAsFutureForcedDependencies(["fillAlpha","strokeAlpha","globalCompositeOperation"]).pushBaseTransform(r),this.setGState(e,[["BM","source-over"],["ca",1],["CA",1]]),this.groupStack.push(r),this.groupLevel++}endGroup(e,n){if(!this.contentVisible)return;this.groupLevel--;const r=this.ctx,i=this.groupStack.pop();if(this.ctx=i,this.ctx.imageSmoothingEnabled=!1,this.dependencyTracker?.popBaseTransform(),n.smask)this.tempSMask=this.smaskStack.pop(),this.restore(e),this.dependencyTracker&&this.ctx.restore();else{this.ctx.restore();const s=Or(this.ctx);this.restore(e),this.ctx.save(),this.ctx.setTransform(...s);const a=og.slice();ut.axialAlignedBoundingBox([0,0,r.canvas.width,r.canvas.height],s,a),this.ctx.drawImage(r.canvas,0,0),this.ctx.restore(),this.compose(a)}}beginAnnotation(e,n,r,i,s,a){if(this.#e(),Mx(this.ctx),this.ctx.save(),this.save(e),this.baseTransform&&this.ctx.setTransform(...this.baseTransform),r){const o=r[2]-r[0],l=r[3]-r[1];if(a&&this.annotationCanvasMap){i=i.slice(),i[4]-=r[0],i[5]-=r[1],r=r.slice(),r[0]=r[1]=0,r[2]=o,r[3]=l,ut.singularValueDecompose2dScale(Or(this.ctx),Pa);const{viewportScale:u}=this,c=Math.ceil(o*this.outputScaleX*u),d=Math.ceil(l*this.outputScaleY*u);this.annotationCanvas=this.canvasFactory.create(c,d);const{canvas:h,context:m}=this.annotationCanvas;this.annotationCanvasMap.set(n,h),this.annotationCanvas.savedCtx=this.ctx,this.ctx=m,this.ctx.save(),this.ctx.setTransform(Pa[0],0,0,-Pa[1],0,l*Pa[1]),Mx(this.ctx)}else{Mx(this.ctx),this.endPath(e);const u=new Path2D;u.rect(r[0],r[1],o,l),this.ctx.clip(u)}}this.current=new $Z(this.ctx.canvas.width,this.ctx.canvas.height),this.transform(e,...i),this.transform(e,...s)}endAnnotation(e){this.annotationCanvas&&(this.ctx.restore(),this.#t(),this.ctx=this.annotationCanvas.savedCtx,delete this.annotationCanvas.savedCtx,delete this.annotationCanvas)}paintImageMaskXObject(e,n){if(!this.contentVisible)return;const r=n.count;n=this.getObject(e,n.data,n),n.count=r;const i=this.ctx,s=this._createMaskCanvas(e,n),a=s.canvas;i.save(),i.setTransform(1,0,0,1,0,0),i.drawImage(a,s.offsetX,s.offsetY),this.dependencyTracker?.resetBBox(e).recordBBox(e,this.ctx,s.offsetX,s.offsetX+a.width,s.offsetY,s.offsetY+a.height).recordOperation(e),i.restore(),this.compose()}paintImageMaskXObjectRepeat(e,n,r,i=0,s=0,a,o){if(!this.contentVisible)return;n=this.getObject(e,n.data,n);const l=this.ctx;l.save();const u=Or(l);l.transform(r,i,s,a,0,0);const c=this._createMaskCanvas(e,n);l.setTransform(1,0,0,1,c.offsetX-u[4],c.offsetY-u[5]),this.dependencyTracker?.resetBBox(e);for(let d=0,h=o.length;d<h;d+=2){const m=ut.transform(u,[r,i,s,a,o[d],o[d+1]]);l.drawImage(c.canvas,m[4],m[5]),this.dependencyTracker?.recordBBox(e,this.ctx,m[4],m[4]+c.canvas.width,m[5],m[5]+c.canvas.height)}l.restore(),this.compose(),this.dependencyTracker?.recordOperation(e)}paintImageMaskXObjectGroup(e,n){if(!this.contentVisible)return;const r=this.ctx,i=this.current.fillColor,s=this.current.patternFill;this.dependencyTracker?.resetBBox(e).recordDependencies(e,uo.transformAndFill);for(const a of n){const{data:o,width:l,height:u,transform:c}=a,d=this.cachedCanvases.getCanvas("maskCanvas",l,u),h=d.context;h.save();const m=this.getObject(e,o,a);BZ(h,m),h.globalCompositeOperation="source-in",h.fillStyle=s?i.getPattern(h,this,Ml(r),Qi.FILL,e):i,h.fillRect(0,0,l,u),h.restore(),r.save(),r.transform(...c),r.scale(1,-1),Ix(r,d.canvas,0,0,l,u,0,-1,1,1),this.dependencyTracker?.recordBBox(e,r,0,l,0,u),r.restore()}this.compose(),this.dependencyTracker?.recordOperation(e)}paintImageXObject(e,n){if(!this.contentVisible)return;const r=this.getObject(e,n);if(!r){Vt("Dependent image isn't ready yet");return}this.paintInlineImageXObject(e,r)}paintImageXObjectRepeat(e,n,r,i,s){if(!this.contentVisible)return;const a=this.getObject(e,n);if(!a){Vt("Dependent image isn't ready yet");return}const o=a.width,l=a.height,u=[];for(let c=0,d=s.length;c<d;c+=2)u.push({transform:[r,0,0,i,s[c],s[c+1]],x:0,y:0,w:o,h:l});this.paintInlineImageXObjectGroup(e,a,u)}applyTransferMapsToCanvas(e){return this.current.transferMaps!=="none"&&(e.filter=this.current.transferMaps,e.drawImage(e.canvas,0,0),e.filter="none"),e.canvas}applyTransferMapsToBitmap(e){if(this.current.transferMaps==="none")return e.bitmap;const{bitmap:n,width:r,height:i}=e,s=this.cachedCanvases.getCanvas("inlineImage",r,i),a=s.context;return a.filter=this.current.transferMaps,a.drawImage(n,0,0),a.filter="none",s.canvas}paintInlineImageXObject(e,n){if(!this.contentVisible)return;const r=n.width,i=n.height,s=this.ctx;this.save(e);const{filter:a}=s;a!=="none"&&a!==""&&(s.filter="none"),s.scale(1/r,-1/i);let o;if(n.bitmap)o=this.applyTransferMapsToBitmap(n);else if(typeof HTMLElement=="function"&&n instanceof HTMLElement||!n.data)o=n;else{const c=this.cachedCanvases.getCanvas("inlineImage",r,i).context;FZ(c,n),o=this.applyTransferMapsToCanvas(c)}const l=this._scaleImage(o,Ml(s));s.imageSmoothingEnabled=HZ(Or(s),n.interpolate),this.dependencyTracker?.resetBBox(e).recordBBox(e,s,0,r,-i,0).recordDependencies(e,uo.imageXObject).recordOperation(e),Ix(s,l.img,0,0,l.paintWidth,l.paintHeight,0,-i,r,i),this.compose(),this.restore(e)}paintInlineImageXObjectGroup(e,n,r){if(!this.contentVisible)return;const i=this.ctx;let s;if(n.bitmap)s=n.bitmap;else{const a=n.width,o=n.height,u=this.cachedCanvases.getCanvas("inlineImage",a,o).context;FZ(u,n),s=this.applyTransferMapsToCanvas(u)}this.dependencyTracker?.resetBBox(e);for(const a of r)i.save(),i.transform(...a.transform),i.scale(1,-1),Ix(i,s,a.x,a.y,a.w,a.h,0,-1,1,1),this.dependencyTracker?.recordBBox(e,i,0,1,-1,0),i.restore();this.dependencyTracker?.recordOperation(e),this.compose()}paintSolidColorImageMask(e){this.contentVisible&&(this.dependencyTracker?.resetBBox(e).recordBBox(e,this.ctx,0,1,0,1).recordDependencies(e,uo.fill).recordOperation(e),this.ctx.fillRect(0,0,1,1),this.compose())}markPoint(e,n){}markPointProps(e,n,r){}beginMarkedContent(e,n){this.dependencyTracker?.beginMarkedContent(e),this.markedContentStack.push({visible:!0})}beginMarkedContentProps(e,n,r){this.dependencyTracker?.beginMarkedContent(e),n==="OC"?this.markedContentStack.push({visible:this.optionalContentConfig.isVisible(r)}):this.markedContentStack.push({visible:!0}),this.contentVisible=this.isContentVisible()}endMarkedContent(e){this.dependencyTracker?.endMarkedContent(e),this.markedContentStack.pop(),this.contentVisible=this.isContentVisible()}beginCompat(e){}endCompat(e){}consumePath(e,n,r){const i=this.current.isEmptyClip();this.pendingClip&&this.current.updateClipFromPath(),this.pendingClip||this.compose(r);const s=this.ctx;this.pendingClip?(i||(this.pendingClip===UZ?s.clip(n,"evenodd"):s.clip(n)),this.pendingClip=null,this.dependencyTracker?.bboxToClipBoxDropOperation(e).recordFutureForcedDependency("clipPath",e)):this.dependencyTracker?.recordOperation(e),this.current.startNewPathAndClipBox(this.current.clipBox)}getSinglePixelWidth(){if(!this._cachedGetSinglePixelWidth){const e=Or(this.ctx);if(e[1]===0&&e[2]===0)this._cachedGetSinglePixelWidth=1/Math.min(Math.abs(e[0]),Math.abs(e[3]));else{const n=Math.abs(e[0]*e[3]-e[2]*e[1]),r=Math.hypot(e[0],e[2]),i=Math.hypot(e[1],e[3]);this._cachedGetSinglePixelWidth=Math.max(r,i)/n}}return this._cachedGetSinglePixelWidth}getScaleForStroking(){if(this._cachedScaleForStroking[0]===-1){const{lineWidth:e}=this.current,{a:n,b:r,c:i,d:s}=this.ctx.getTransform();let a,o;if(r===0&&i===0){const l=Math.abs(n),u=Math.abs(s);if(l===u)if(e===0)a=o=1/l;else{const c=l*e;a=o=c<1?1/c:1}else if(e===0)a=1/l,o=1/u;else{const c=l*e,d=u*e;a=c<1?1/c:1,o=d<1?1/d:1}}else{const l=Math.abs(n*s-r*i),u=Math.hypot(n,r),c=Math.hypot(i,s);if(e===0)a=c/l,o=u/l;else{const d=e*l;a=c>d?c/d:1,o=u>d?u/d:1}}this._cachedScaleForStroking[0]=a,this._cachedScaleForStroking[1]=o}return this._cachedScaleForStroking}rescaleAndStroke(e,n){const{ctx:r,current:{lineWidth:i}}=this,[s,a]=this.getScaleForStroking();if(s===a){r.lineWidth=(i||1)*s,r.stroke(e);return}const o=r.getLineDash();n&&r.save(),r.scale(s,a),K4.a=1/s,K4.d=1/a;const l=new Path2D;if(l.addPath(e,K4),o.length>0){const u=Math.max(s,a);r.setLineDash(o.map(c=>c/u)),r.lineDashOffset/=u}r.lineWidth=i||1,r.stroke(l),n&&r.restore()}isContentVisible(){for(let e=this.markedContentStack.length-1;e>=0;e--)if(!this.markedContentStack[e].visible)return!1;return!0}}for(const t in r0)Tg.prototype[t]!==void 0&&(Tg.prototype[r0[t]]=Tg.prototype[t]);class Ag{#e;#t;#r;static strings=["fontFamily","fontWeight","italicAngle"];static write(e){const n=new TextEncoder,r={};let i=0;for(const u of Ag.strings){const c=n.encode(e[u]);r[u]=c,i+=4+c.length}const s=new ArrayBuffer(i),a=new Uint8Array(s),o=new DataView(s);let l=0;for(const u of Ag.strings){const c=r[u],d=c.length;o.setUint32(l,d),a.set(c,l+4),l+=4+d}return Cn(l===s.byteLength,"CssFontInfo.write: Buffer overflow"),s}constructor(e){this.#e=e,this.#t=new DataView(this.#e),this.#r=new TextDecoder}#n(e){Cn(e<Ag.strings.length,"Invalid string index");let n=0;for(let i=0;i<e;i++)n+=this.#t.getUint32(n)+4;const r=this.#t.getUint32(n);return this.#r.decode(new Uint8Array(this.#e,n+4,r))}get fontFamily(){return this.#n(0)}get fontWeight(){return this.#n(1)}get italicAngle(){return this.#n(2)}}class Rg{#e;#t;#r;static strings=["css","loadedName","baseFontName","src"];static write(e){const n=new TextEncoder,r={};let i=0;for(const h of Rg.strings){const m=n.encode(e[h]);r[h]=m,i+=4+m.length}i+=4;let s,a,o=1+i;e.style&&(s=n.encode(e.style.style),a=n.encode(e.style.weight),o+=4+s.length+4+a.length);const l=new ArrayBuffer(o),u=new Uint8Array(l),c=new DataView(l);let d=0;c.setUint8(d++,e.guessFallback?1:0),c.setUint32(d,0),d+=4,i=0;for(const h of Rg.strings){const m=r[h],g=m.length;i+=4+g,c.setUint32(d,g),u.set(m,d+4),d+=4+g}return c.setUint32(d-i-4,i),e.style&&(c.setUint32(d,s.length),u.set(s,d+4),d+=4+s.length,c.setUint32(d,a.length),u.set(a,d+4),d+=4+a.length),Cn(d<=l.byteLength,"SubstitionInfo.write: Buffer overflow"),l.transferToFixedLength(d)}constructor(e){this.#e=e,this.#t=new DataView(this.#e),this.#r=new TextDecoder}get guessFallback(){return this.#t.getUint8(0)!==0}#n(e){Cn(e<Rg.strings.length,"Invalid string index");let n=5;for(let i=0;i<e;i++)n+=this.#t.getUint32(n)+4;const r=this.#t.getUint32(n);return this.#r.decode(new Uint8Array(this.#e,n+4,r))}get css(){return this.#n(0)}get loadedName(){return this.#n(1)}get baseFontName(){return this.#n(2)}get src(){return this.#n(3)}get style(){let e=1;e+=4+this.#t.getUint32(e);const n=this.#t.getUint32(e),r=this.#r.decode(new Uint8Array(this.#e,e+4,n));e+=4+n;const i=this.#t.getUint32(e),s=this.#r.decode(new Uint8Array(this.#e,e+4,i));return{style:r,weight:s}}}class Yn{static bools=["black","bold","disableFontFace","fontExtraProperties","isInvalidPDFjsFont","isType3Font","italic","missingFile","remeasure","vertical"];static numbers=["ascent","defaultWidth","descent"];static strings=["fallbackName","loadedName","mimetype","name"];static#e=Math.ceil(this.bools.length*2/8);static#t=this.#e+this.numbers.length*8;static#r=this.#t+1+8;static#n=this.#r+1+48;static#i=this.#n+1+6;#s;#a;#o;constructor({data:e,extra:n}){this.#s=e,this.#a=new TextDecoder,this.#o=new DataView(this.#s),n&&Object.assign(this,n)}#u(e){Cn(e<Yn.bools.length,"Invalid boolean index");const n=Math.floor(e/4),r=e*2%8,i=this.#o.getUint8(n)>>r&3;return i===0?void 0:i===2}get black(){return this.#u(0)}get bold(){return this.#u(1)}get disableFontFace(){return this.#u(2)}get fontExtraProperties(){return this.#u(3)}get isInvalidPDFjsFont(){return this.#u(4)}get isType3Font(){return this.#u(5)}get italic(){return this.#u(6)}get missingFile(){return this.#u(7)}get remeasure(){return this.#u(8)}get vertical(){return this.#u(9)}#l(e){return Cn(e<Yn.numbers.length,"Invalid number index"),this.#o.getFloat64(Yn.#e+e*8)}get ascent(){return this.#l(0)}get defaultWidth(){return this.#l(1)}get descent(){return this.#l(2)}get bbox(){let e=Yn.#t;if(this.#o.getUint8(e)===0)return;e+=1;const r=[];for(let i=0;i<4;i++)r.push(this.#o.getInt16(e,!0)),e+=2;return r}get fontMatrix(){let e=Yn.#r;if(this.#o.getUint8(e)===0)return;e+=1;const r=[];for(let i=0;i<6;i++)r.push(this.#o.getFloat64(e,!0)),e+=8;return r}get defaultVMetrics(){let e=Yn.#n;if(this.#o.getUint8(e)===0)return;e+=1;const r=[];for(let i=0;i<3;i++)r.push(this.#o.getInt16(e,!0)),e+=2;return r}#f(e){Cn(e<Yn.strings.length,"Invalid string index");let n=Yn.#i+4;for(let s=0;s<e;s++)n+=this.#o.getUint32(n)+4;const r=this.#o.getUint32(n),i=new Uint8Array(r);return i.set(new Uint8Array(this.#s,n+4,r)),this.#a.decode(i)}get fallbackName(){return this.#f(0)}get loadedName(){return this.#f(1)}get mimetype(){return this.#f(2)}get name(){return this.#f(3)}get data(){let e=Yn.#i;const n=this.#o.getUint32(e);e+=4+n;const r=this.#o.getUint32(e);e+=4+r;const i=this.#o.getUint32(e);e+=4+i;const s=this.#o.getUint32(e);if(s!==0)return new Uint8Array(this.#s,e+4,s)}clearData(){let e=Yn.#i;const n=this.#o.getUint32(e);e+=4+n;const r=this.#o.getUint32(e);e+=4+r;const i=this.#o.getUint32(e);e+=4+i;const s=this.#o.getUint32(e);new Uint8Array(this.#s,e+4,s).fill(0),this.#o.setUint32(e,0)}get cssFontInfo(){let e=Yn.#i;const n=this.#o.getUint32(e);e+=4+n;const r=this.#o.getUint32(e);e+=4+r;const i=this.#o.getUint32(e);if(i===0)return null;const s=new Uint8Array(i);return s.set(new Uint8Array(this.#s,e+4,i)),new Ag(s.buffer)}get systemFontInfo(){let e=Yn.#i;const n=this.#o.getUint32(e);e+=4+n;const r=this.#o.getUint32(e);if(r===0)return null;const i=new Uint8Array(r);return i.set(new Uint8Array(this.#s,e+4,r)),new Rg(i.buffer)}static write(e){const n=e.systemFontInfo?Rg.write(e.systemFontInfo):null,r=e.cssFontInfo?Ag.write(e.cssFontInfo):null,i=new TextEncoder,s={};let a=0;for(const b of Yn.strings)s[b]=i.encode(e[b]),a+=4+s[b].length;const o=Yn.#i+4+a+4+(n?n.byteLength:0)+4+(r?r.byteLength:0)+4+(e.data?e.data.length:0),l=new ArrayBuffer(o),u=new Uint8Array(l),c=new DataView(l);let d=0;const h=Yn.bools.length;let m=0,g=0;for(let b=0;b<h;b++){const v=e[Yn.bools[b]];m|=(v===void 0?0:v?2:1)<<g,g+=2,(g===8||b===h-1)&&(c.setUint8(d++,m),m=0,g=0)}Cn(d===Yn.#e,"FontInfo.write: Boolean properties offset mismatch");for(const b of Yn.numbers)c.setFloat64(d,e[b]),d+=8;if(Cn(d===Yn.#t,"FontInfo.write: Number properties offset mismatch"),e.bbox){c.setUint8(d++,4);for(const b of e.bbox)c.setInt16(d,b,!0),d+=2}else c.setUint8(d++,0),d+=8;if(Cn(d===Yn.#r,"FontInfo.write: BBox properties offset mismatch"),e.fontMatrix){c.setUint8(d++,6);for(const b of e.fontMatrix)c.setFloat64(d,b,!0),d+=8}else c.setUint8(d++,0),d+=48;if(Cn(d===Yn.#n,"FontInfo.write: FontMatrix properties offset mismatch"),e.defaultVMetrics){c.setUint8(d++,1);for(const b of e.defaultVMetrics)c.setInt16(d,b,!0),d+=2}else c.setUint8(d++,0),d+=6;Cn(d===Yn.#i,"FontInfo.write: DefaultVMetrics properties offset mismatch"),c.setUint32(Yn.#i,0),d+=4;for(const b of Yn.strings){const v=s[b],E=v.length;c.setUint32(d,E),u.set(v,d+4),d+=4+E}if(c.setUint32(Yn.#i,d-Yn.#i-4),!n)c.setUint32(d,0),d+=4;else{const b=n.byteLength;c.setUint32(d,b),Cn(d+4+b<=l.byteLength,"FontInfo.write: Buffer overflow at systemFontInfo"),u.set(new Uint8Array(n),d+4),d+=4+b}if(!r)c.setUint32(d,0),d+=4;else{const b=r.byteLength;c.setUint32(d,b),Cn(d+4+b<=l.byteLength,"FontInfo.write: Buffer overflow at cssFontInfo"),u.set(new Uint8Array(r),d+4),d+=4+b}return e.data===void 0?(c.setUint32(d,0),d+=4):(c.setUint32(d,e.data.length),u.set(e.data,d+4),d+=4+e.data.length),Cn(d<=l.byteLength,"FontInfo.write: Buffer overflow"),l.transferToFixedLength(d)}}class Dh{static#e=null;static#t="";static get workerPort(){return this.#e}static set workerPort(e){if(!(typeof Worker<"u"&&e instanceof Worker)&&e!==null)throw new Error("Invalid `workerPort` type.");this.#e=e}static get workerSrc(){return this.#t}static set workerSrc(e){if(typeof e!="string")throw new Error("Invalid `workerSrc` type.");this.#t=e}}class Fgt{#e;#t;constructor({parsedData:e,rawData:n}){this.#e=e,this.#t=n}getRaw(){return this.#t}get(e){return this.#e.get(e)??null}[Symbol.iterator](){return this.#e.entries()}}const Zm=Symbol("INTERNAL");class Bgt{#e=!1;#t=!1;#r=!1;#n=!0;constructor(e,{name:n,intent:r,usage:i,rbGroups:s}){this.#e=!!(e&ka.DISPLAY),this.#t=!!(e&ka.PRINT),this.name=n,this.intent=r,this.usage=i,this.rbGroups=s}get visible(){if(this.#r)return this.#n;if(!this.#n)return!1;const{print:e,view:n}=this.usage;return this.#e?n?.viewState!=="OFF":this.#t?e?.printState!=="OFF":!0}_setVisible(e,n,r=!1){e!==Zm&&er("Internal method `_setVisible` called."),this.#r=r,this.#n=n}}class Hgt{#e=null;#t=new Map;#r=null;#n=null;constructor(e,n=ka.DISPLAY){if(this.renderingIntent=n,this.name=null,this.creator=null,e!==null){this.name=e.name,this.creator=e.creator,this.#n=e.order;for(const r of e.groups)this.#t.set(r.id,new Bgt(n,r));if(e.baseState==="OFF")for(const r of this.#t.values())r._setVisible(Zm,!1);for(const r of e.on)this.#t.get(r)._setVisible(Zm,!0);for(const r of e.off)this.#t.get(r)._setVisible(Zm,!1);this.#r=this.getHash()}}#i(e){const n=e.length;if(n<2)return!0;const r=e[0];for(let i=1;i<n;i++){const s=e[i];let a;if(Array.isArray(s))a=this.#i(s);else if(this.#t.has(s))a=this.#t.get(s).visible;else return Vt(`Optional content group not found: ${s}`),!0;switch(r){case"And":if(!a)return!1;break;case"Or":if(a)return!0;break;case"Not":return!a;default:return!0}}return r==="And"}isVisible(e){if(this.#t.size===0)return!0;if(!e)return F3("Optional content group not defined."),!0;if(e.type==="OCG")return this.#t.has(e.id)?this.#t.get(e.id).visible:(Vt(`Optional content group not found: ${e.id}`),!0);if(e.type==="OCMD"){if(e.expression)return this.#i(e.expression);if(!e.policy||e.policy==="AnyOn"){for(const n of e.ids){if(!this.#t.has(n))return Vt(`Optional content group not found: ${n}`),!0;if(this.#t.get(n).visible)return!0}return!1}else if(e.policy==="AllOn"){for(const n of e.ids){if(!this.#t.has(n))return Vt(`Optional content group not found: ${n}`),!0;if(!this.#t.get(n).visible)return!1}return!0}else if(e.policy==="AnyOff"){for(const n of e.ids){if(!this.#t.has(n))return Vt(`Optional content group not found: ${n}`),!0;if(!this.#t.get(n).visible)return!0}return!1}else if(e.policy==="AllOff"){for(const n of e.ids){if(!this.#t.has(n))return Vt(`Optional content group not found: ${n}`),!0;if(this.#t.get(n).visible)return!1}return!0}return Vt(`Unknown optional content policy ${e.policy}.`),!0}return Vt(`Unknown group type ${e.type}.`),!0}setVisibility(e,n=!0,r=!0){const i=this.#t.get(e);if(!i){Vt(`Optional content group not found: ${e}`);return}if(r&&n&&i.rbGroups.length)for(const s of i.rbGroups)for(const a of s)a!==e&&this.#t.get(a)?._setVisible(Zm,!1,!0);i._setVisible(Zm,!!n,!0),this.#e=null}setOCGState({state:e,preserveRB:n}){let r;for(const i of e){switch(i){case"ON":case"OFF":case"Toggle":r=i;continue}const s=this.#t.get(i);if(s)switch(r){case"ON":this.setVisibility(i,!0,n);break;case"OFF":this.setVisibility(i,!1,n);break;case"Toggle":this.setVisibility(i,!s.visible,n);break}}this.#e=null}get hasInitialVisibility(){return this.#r===null||this.getHash()===this.#r}getOrder(){return this.#t.size?this.#n?this.#n.slice():[...this.#t.keys()]:null}getGroup(e){return this.#t.get(e)||null}getHash(){if(this.#e!==null)return this.#e;const e=new Xbe;for(const[n,r]of this.#t)e.update(`${n}:${r.visible}`);return this.#e=e.hexdigest()}[Symbol.iterator](){return this.#t.entries()}}class Ugt{constructor(e,{disableRange:n=!1,disableStream:r=!1}){Cn(e,'PDFDataTransportStream - missing required "pdfDataRangeTransport" argument.');const{length:i,initialData:s,progressiveDone:a,contentDispositionFilename:o}=e;if(this._queuedChunks=[],this._progressiveDone=a,this._contentDispositionFilename=o,s?.length>0){const l=s instanceof Uint8Array&&s.byteLength===s.buffer.byteLength?s.buffer:new Uint8Array(s).buffer;this._queuedChunks.push(l)}this._pdfDataRangeTransport=e,this._isStreamingSupported=!r,this._isRangeSupported=!n,this._contentLength=i,this._fullRequestReader=null,this._rangeReaders=[],e.addRangeListener((l,u)=>{this._onReceiveData({begin:l,chunk:u})}),e.addProgressListener((l,u)=>{this._onProgress({loaded:l,total:u})}),e.addProgressiveReadListener(l=>{this._onReceiveData({chunk:l})}),e.addProgressiveDoneListener(()=>{this._onProgressiveDone()}),e.transportReady()}_onReceiveData({begin:e,chunk:n}){const r=n instanceof Uint8Array&&n.byteLength===n.buffer.byteLength?n.buffer:new Uint8Array(n).buffer;if(e===void 0)this._fullRequestReader?this._fullRequestReader._enqueue(r):this._queuedChunks.push(r);else{const i=this._rangeReaders.some(function(s){return s._begin!==e?!1:(s._enqueue(r),!0)});Cn(i,"_onReceiveData - no `PDFDataTransportStreamRangeReader` instance found.")}}get _progressiveDataLength(){return this._fullRequestReader?._loaded??0}_onProgress(e){e.total===void 0?this._rangeReaders[0]?.onProgress?.({loaded:e.loaded}):this._fullRequestReader?.onProgress?.({loaded:e.loaded,total:e.total})}_onProgressiveDone(){this._fullRequestReader?.progressiveDone(),this._progressiveDone=!0}_removeRangeReader(e){const n=this._rangeReaders.indexOf(e);n>=0&&this._rangeReaders.splice(n,1)}getFullReader(){Cn(!this._fullRequestReader,"PDFDataTransportStream.getFullReader can only be called once.");const e=this._queuedChunks;return this._queuedChunks=null,new jgt(this,e,this._progressiveDone,this._contentDispositionFilename)}getRangeReader(e,n){if(n<=this._progressiveDataLength)return null;const r=new zgt(this,e,n);return this._pdfDataRangeTransport.requestDataRange(e,n),this._rangeReaders.push(r),r}cancelAllRequests(e){this._fullRequestReader?.cancel(e);for(const n of this._rangeReaders.slice(0))n.cancel(e);this._pdfDataRangeTransport.abort()}}class jgt{constructor(e,n,r=!1,i=null){this._stream=e,this._done=r||!1,this._filename=H3(i)?i:null,this._queuedChunks=n||[],this._loaded=0;for(const s of this._queuedChunks)this._loaded+=s.byteLength;this._requests=[],this._headersReady=Promise.resolve(),e._fullRequestReader=this,this.onProgress=null}_enqueue(e){this._done||(this._requests.length>0?this._requests.shift().resolve({value:e,done:!1}):this._queuedChunks.push(e),this._loaded+=e.byteLength)}get headersReady(){return this._headersReady}get filename(){return this._filename}get isRangeSupported(){return this._stream._isRangeSupported}get isStreamingSupported(){return this._stream._isStreamingSupported}get contentLength(){return this._stream._contentLength}async read(){if(this._queuedChunks.length>0)return{value:this._queuedChunks.shift(),done:!1};if(this._done)return{value:void 0,done:!0};const e=Promise.withResolvers();return this._requests.push(e),e.promise}cancel(e){this._done=!0;for(const n of this._requests)n.resolve({value:void 0,done:!0});this._requests.length=0}progressiveDone(){this._done||(this._done=!0)}}class zgt{constructor(e,n,r){this._stream=e,this._begin=n,this._end=r,this._queuedChunk=null,this._requests=[],this._done=!1,this.onProgress=null}_enqueue(e){if(!this._done){if(this._requests.length===0)this._queuedChunk=e;else{this._requests.shift().resolve({value:e,done:!1});for(const r of this._requests)r.resolve({value:void 0,done:!0});this._requests.length=0}this._done=!0,this._stream._removeRangeReader(this)}}get isStreamingSupported(){return!1}async read(){if(this._queuedChunk){const n=this._queuedChunk;return this._queuedChunk=null,{value:n,done:!1}}if(this._done)return{value:void 0,done:!0};const e=Promise.withResolvers();return this._requests.push(e),e.promise}cancel(e){this._done=!0;for(const n of this._requests)n.resolve({value:void 0,done:!0});this._requests.length=0,this._stream._removeRangeReader(this)}}function Vgt(t){let e=!0,n=r("filename\\*","i").exec(t);if(n){n=n[1];let c=o(n);return c=unescape(c),c=l(c),c=u(c),s(c)}if(n=a(t),n){const c=u(n);return s(c)}if(n=r("filename","i").exec(t),n){n=n[1];let c=o(n);return c=u(c),s(c)}function r(c,d){return new RegExp("(?:^|;)\\s*"+c+'\\s*=\\s*([^";\\s][^;\\s]*|"(?:[^"\\\\]|\\\\"?)+"?)',d)}function i(c,d){if(c){if(!/^[\x00-\xFF]+$/.test(d))return d;try{const h=new TextDecoder(c,{fatal:!0}),m=eE(d);d=h.decode(m),e=!1}catch{}}return d}function s(c){return e&&/[\x80-\xff]/.test(c)&&(c=i("utf-8",c),e&&(c=i("iso-8859-1",c))),c}function a(c){const d=[];let h;const m=r("filename\\*((?!0\\d)\\d+)(\\*?)","ig");for(;(h=m.exec(c))!==null;){let[,b,v,E]=h;if(b=parseInt(b,10),b in d){if(b===0)break;continue}d[b]=[v,E]}const g=[];for(let b=0;b<d.length&&b in d;++b){let[v,E]=d[b];E=o(E),v&&(E=unescape(E),b===0&&(E=l(E))),g.push(E)}return g.join("")}function o(c){if(c.startsWith('"')){const d=c.slice(1).split('\\"');for(let h=0;h<d.length;++h){const m=d[h].indexOf('"');m!==-1&&(d[h]=d[h].slice(0,m),d.length=h+1),d[h]=d[h].replaceAll(/\\(.)/g,"$1")}c=d.join('"')}return c}function l(c){const d=c.indexOf("'");if(d===-1)return c;const h=c.slice(0,d),g=c.slice(d+1).replace(/^[^']*'/,"");return i(h,g)}function u(c){return!c.startsWith("=?")||/[\x00-\x19\x80-\xff]/.test(c)?c:c.replaceAll(/=\?([\w-]*)\?([QqBb])\?((?:[^?]|\?(?!=))*)\?=/g,function(d,h,m,g){if(m==="q"||m==="Q")return g=g.replaceAll("_"," "),g=g.replaceAll(/=([0-9a-fA-F]{2})/g,function(b,v){return String.fromCharCode(parseInt(v,16))}),i(h,g);try{g=atob(g)}catch{}return i(h,g)})}return""}function ive(t,e){const n=new Headers;if(!t||!e||typeof e!="object")return n;for(const r in e){const i=e[r];i!==void 0&&n.append(r,i)}return n}function U3(t){return URL.parse(t)?.origin??null}function sve({responseHeaders:t,isHttp:e,rangeChunkSize:n,disableRange:r}){const i={allowRangeRequests:!1,suggestedLength:void 0},s=parseInt(t.get("Content-Length"),10);return!Number.isInteger(s)||(i.suggestedLength=s,s<=2*n)||r||!e||t.get("Accept-Ranges")!=="bytes"||(t.get("Content-Encoding")||"identity")!=="identity"||(i.allowRangeRequests=!0),i}function ave(t){const e=t.get("Content-Disposition");if(e){let n=Vgt(e);if(n.includes("%"))try{n=decodeURIComponent(n)}catch{}if(H3(n))return n}return null}function sE(t,e){return new Av(`Unexpected server response (${t}) while retrieving PDF "${e}".`,t,t===404||t===0&&e.startsWith("file:"))}function ove(t){return t===200||t===206}function lve(t,e,n){return{method:"GET",headers:t,signal:n.signal,mode:"cors",credentials:e?"include":"same-origin",redirect:"follow"}}function uve(t){return t instanceof Uint8Array?t.buffer:t instanceof ArrayBuffer?t:(Vt(`getArrayBuffer - unexpected data format: ${t}`),new Uint8Array(t).buffer)}class qgt{_responseOrigin=null;constructor(e){this.source=e,this.isHttp=/^https?:/i.test(e.url),this.headers=ive(this.isHttp,e.httpHeaders),this._fullRequestReader=null,this._rangeRequestReaders=[]}get _progressiveDataLength(){return this._fullRequestReader?._loaded??0}getFullReader(){return Cn(!this._fullRequestReader,"PDFFetchStream.getFullReader can only be called once."),this._fullRequestReader=new Ggt(this),this._fullRequestReader}getRangeReader(e,n){if(n<=this._progressiveDataLength)return null;const r=new Wgt(this,e,n);return this._rangeRequestReaders.push(r),r}cancelAllRequests(e){this._fullRequestReader?.cancel(e);for(const n of this._rangeRequestReaders.slice(0))n.cancel(e)}}class Ggt{constructor(e){this._stream=e,this._reader=null,this._loaded=0,this._filename=null;const n=e.source;this._withCredentials=n.withCredentials||!1,this._contentLength=n.length,this._headersCapability=Promise.withResolvers(),this._disableRange=n.disableRange||!1,this._rangeChunkSize=n.rangeChunkSize,!this._rangeChunkSize&&!this._disableRange&&(this._disableRange=!0),this._abortController=new AbortController,this._isStreamingSupported=!n.disableStream,this._isRangeSupported=!n.disableRange;const r=new Headers(e.headers),i=n.url;fetch(i,lve(r,this._withCredentials,this._abortController)).then(s=>{if(e._responseOrigin=U3(s.url),!ove(s.status))throw sE(s.status,i);this._reader=s.body.getReader(),this._headersCapability.resolve();const a=s.headers,{allowRangeRequests:o,suggestedLength:l}=sve({responseHeaders:a,isHttp:e.isHttp,rangeChunkSize:this._rangeChunkSize,disableRange:this._disableRange});this._isRangeSupported=o,this._contentLength=l||this._contentLength,this._filename=ave(a),!this._isStreamingSupported&&this._isRangeSupported&&this.cancel(new $c("Streaming is disabled."))}).catch(this._headersCapability.reject),this.onProgress=null}get headersReady(){return this._headersCapability.promise}get filename(){return this._filename}get contentLength(){return this._contentLength}get isRangeSupported(){return this._isRangeSupported}get isStreamingSupported(){return this._isStreamingSupported}async read(){await this._headersCapability.promise;const{value:e,done:n}=await this._reader.read();return n?{value:e,done:n}:(this._loaded+=e.byteLength,this.onProgress?.({loaded:this._loaded,total:this._contentLength}),{value:uve(e),done:!1})}cancel(e){this._reader?.cancel(e),this._abortController.abort()}}class Wgt{constructor(e,n,r){this._stream=e,this._reader=null,this._loaded=0;const i=e.source;this._withCredentials=i.withCredentials||!1,this._readCapability=Promise.withResolvers(),this._isStreamingSupported=!i.disableStream,this._abortController=new AbortController;const s=new Headers(e.headers);s.append("Range",`bytes=${n}-${r-1}`);const a=i.url;fetch(a,lve(s,this._withCredentials,this._abortController)).then(o=>{const l=U3(o.url);if(l!==e._responseOrigin)throw new Error(`Expected range response-origin "${l}" to match "${e._responseOrigin}".`);if(!ove(o.status))throw sE(o.status,a);this._readCapability.resolve(),this._reader=o.body.getReader()}).catch(this._readCapability.reject),this.onProgress=null}get isStreamingSupported(){return this._isStreamingSupported}async read(){await this._readCapability.promise;const{value:e,done:n}=await this._reader.read();return n?{value:e,done:n}:(this._loaded+=e.byteLength,this.onProgress?.({loaded:this._loaded}),{value:uve(e),done:!1})}cancel(e){this._reader?.cancel(e),this._abortController.abort()}}const X4=200,Q4=206;function Ygt(t){const e=t.response;return typeof e!="string"?e:eE(e).buffer}class Kgt{_responseOrigin=null;constructor({url:e,httpHeaders:n,withCredentials:r}){this.url=e,this.isHttp=/^https?:/i.test(e),this.headers=ive(this.isHttp,n),this.withCredentials=r||!1,this.currXhrId=0,this.pendingRequests=Object.create(null)}request(e){const n=new XMLHttpRequest,r=this.currXhrId++,i=this.pendingRequests[r]={xhr:n};n.open("GET",this.url),n.withCredentials=this.withCredentials;for(const[s,a]of this.headers)n.setRequestHeader(s,a);return this.isHttp&&"begin"in e&&"end"in e?(n.setRequestHeader("Range",`bytes=${e.begin}-${e.end-1}`),i.expectedStatus=Q4):i.expectedStatus=X4,n.responseType="arraybuffer",Cn(e.onError,"Expected `onError` callback to be provided."),n.onerror=()=>{e.onError(n.status)},n.onreadystatechange=this.onStateChange.bind(this,r),n.onprogress=this.onProgress.bind(this,r),i.onHeadersReceived=e.onHeadersReceived,i.onDone=e.onDone,i.onError=e.onError,i.onProgress=e.onProgress,n.send(null),r}onProgress(e,n){const r=this.pendingRequests[e];r&&r.onProgress?.(n)}onStateChange(e,n){const r=this.pendingRequests[e];if(!r)return;const i=r.xhr;if(i.readyState>=2&&r.onHeadersReceived&&(r.onHeadersReceived(),delete r.onHeadersReceived),i.readyState!==4||!(e in this.pendingRequests))return;if(delete this.pendingRequests[e],i.status===0&&this.isHttp){r.onError(i.status);return}const s=i.status||X4;if(!(s===X4&&r.expectedStatus===Q4)&&s!==r.expectedStatus){r.onError(i.status);return}const o=Ygt(i);if(s===Q4){const l=i.getResponseHeader("Content-Range"),u=/bytes (\d+)-(\d+)\/(\d+)/.exec(l);u?r.onDone({begin:parseInt(u[1],10),chunk:o}):(Vt('Missing or invalid "Content-Range" header.'),r.onError(0))}else o?r.onDone({begin:0,chunk:o}):r.onError(i.status)}getRequestXhr(e){return this.pendingRequests[e].xhr}isPendingRequest(e){return e in this.pendingRequests}abortRequest(e){const n=this.pendingRequests[e].xhr;delete this.pendingRequests[e],n.abort()}}class Xgt{constructor(e){this._source=e,this._manager=new Kgt(e),this._rangeChunkSize=e.rangeChunkSize,this._fullRequestReader=null,this._rangeRequestReaders=[]}_onRangeRequestReaderClosed(e){const n=this._rangeRequestReaders.indexOf(e);n>=0&&this._rangeRequestReaders.splice(n,1)}getFullReader(){return Cn(!this._fullRequestReader,"PDFNetworkStream.getFullReader can only be called once."),this._fullRequestReader=new Qgt(this._manager,this._source),this._fullRequestReader}getRangeReader(e,n){const r=new Zgt(this._manager,e,n);return r.onClosed=this._onRangeRequestReaderClosed.bind(this),this._rangeRequestReaders.push(r),r}cancelAllRequests(e){this._fullRequestReader?.cancel(e);for(const n of this._rangeRequestReaders.slice(0))n.cancel(e)}}class Qgt{constructor(e,n){this._manager=e,this._url=n.url,this._fullRequestId=e.request({onHeadersReceived:this._onHeadersReceived.bind(this),onDone:this._onDone.bind(this),onError:this._onError.bind(this),onProgress:this._onProgress.bind(this)}),this._headersCapability=Promise.withResolvers(),this._disableRange=n.disableRange||!1,this._contentLength=n.length,this._rangeChunkSize=n.rangeChunkSize,!this._rangeChunkSize&&!this._disableRange&&(this._disableRange=!0),this._isStreamingSupported=!1,this._isRangeSupported=!1,this._cachedChunks=[],this._requests=[],this._done=!1,this._storedError=void 0,this._filename=null,this.onProgress=null}_onHeadersReceived(){const e=this._fullRequestId,n=this._manager.getRequestXhr(e);this._manager._responseOrigin=U3(n.responseURL);const r=n.getAllResponseHeaders(),i=new Headers(r?r.trimStart().replace(/[^\S ]+$/,"").split(/[\r\n]+/).map(o=>{const[l,...u]=o.split(": ");return[l,u.join(": ")]}):[]),{allowRangeRequests:s,suggestedLength:a}=sve({responseHeaders:i,isHttp:this._manager.isHttp,rangeChunkSize:this._rangeChunkSize,disableRange:this._disableRange});s&&(this._isRangeSupported=!0),this._contentLength=a||this._contentLength,this._filename=ave(i),this._isRangeSupported&&this._manager.abortRequest(e),this._headersCapability.resolve()}_onDone(e){if(e&&(this._requests.length>0?this._requests.shift().resolve({value:e.chunk,done:!1}):this._cachedChunks.push(e.chunk)),this._done=!0,!(this._cachedChunks.length>0)){for(const n of this._requests)n.resolve({value:void 0,done:!0});this._requests.length=0}}_onError(e){this._storedError=sE(e,this._url),this._headersCapability.reject(this._storedError);for(const n of this._requests)n.reject(this._storedError);this._requests.length=0,this._cachedChunks.length=0}_onProgress(e){this.onProgress?.({loaded:e.loaded,total:e.lengthComputable?e.total:this._contentLength})}get filename(){return this._filename}get isRangeSupported(){return this._isRangeSupported}get isStreamingSupported(){return this._isStreamingSupported}get contentLength(){return this._contentLength}get headersReady(){return this._headersCapability.promise}async read(){if(await this._headersCapability.promise,this._storedError)throw this._storedError;if(this._cachedChunks.length>0)return{value:this._cachedChunks.shift(),done:!1};if(this._done)return{value:void 0,done:!0};const e=Promise.withResolvers();return this._requests.push(e),e.promise}cancel(e){this._done=!0,this._headersCapability.reject(e);for(const n of this._requests)n.resolve({value:void 0,done:!0});this._requests.length=0,this._manager.isPendingRequest(this._fullRequestId)&&this._manager.abortRequest
vendor: 11,810 bytes, line 166
166(this._fullRequestId),this._fullRequestReader=null}}class Zgt{constructor(e,n,r){this._manager=e,this._url=e.url,this._requestId=e.request({begin:n,end:r,onHeadersReceived:this._onHeadersReceived.bind(this),onDone:this._onDone.bind(this),onError:this._onError.bind(this),onProgress:this._onProgress.bind(this)}),this._requests=[],this._queuedChunk=null,this._done=!1,this._storedError=void 0,this.onProgress=null,this.onClosed=null}_onHeadersReceived(){const e=U3(this._manager.getRequestXhr(this._requestId)?.responseURL);e!==this._manager._responseOrigin&&(this._storedError=new Error(`Expected range response-origin "${e}" to match "${this._manager._responseOrigin}".`),this._onError(0))}_close(){this.onClosed?.(this)}_onDone(e){const n=e.chunk;this._requests.length>0?this._requests.shift().resolve({value:n,done:!1}):this._queuedChunk=n,this._done=!0;for(const r of this._requests)r.resolve({value:void 0,done:!0});this._requests.length=0,this._close()}_onError(e){this._storedError??=sE(e,this._url);for(const n of this._requests)n.reject(this._storedError);this._requests.length=0,this._queuedChunk=null}_onProgress(e){this.isStreamingSupported||this.onProgress?.({loaded:e.loaded})}get isStreamingSupported(){return!1}async read(){if(this._storedError)throw this._storedError;if(this._queuedChunk!==null){const n=this._queuedChunk;return this._queuedChunk=null,{value:n,done:!1}}if(this._done)return{value:void 0,done:!0};const e=Promise.withResolvers();return this._requests.push(e),e.promise}cancel(e){this._done=!0;for(const n of this._requests)n.resolve({value:void 0,done:!0});this._requests.length=0,this._manager.isPendingRequest(this._requestId)&&this._manager.abortRequest(this._requestId),this._close()}}const Jgt=/^[a-z][a-z0-9\-+.]+:/i;function e0t(t){if(Jgt.test(t))return new URL(t);const e=process.getBuiltinModule("url");return new URL(e.pathToFileURL(t))}class t0t{constructor(e){this.source=e,this.url=e0t(e.url),Cn(this.url.protocol==="file:","PDFNodeStream only supports file:// URLs."),this._fullRequestReader=null,this._rangeRequestReaders=[]}get _progressiveDataLength(){return this._fullRequestReader?._loaded??0}getFullReader(){return Cn(!this._fullRequestReader,"PDFNodeStream.getFullReader can only be called once."),this._fullRequestReader=new n0t(this),this._fullRequestReader}getRangeReader(e,n){if(n<=this._progressiveDataLength)return null;const r=new r0t(this,e,n);return this._rangeRequestReaders.push(r),r}cancelAllRequests(e){this._fullRequestReader?.cancel(e);for(const n of this._rangeRequestReaders.slice(0))n.cancel(e)}}class n0t{constructor(e){this._url=e.url,this._done=!1,this._storedError=null,this.onProgress=null;const n=e.source;this._contentLength=n.length,this._loaded=0,this._filename=null,this._disableRange=n.disableRange||!1,this._rangeChunkSize=n.rangeChunkSize,!this._rangeChunkSize&&!this._disableRange&&(this._disableRange=!0),this._isStreamingSupported=!n.disableStream,this._isRangeSupported=!n.disableRange,this._readableStream=null,this._readCapability=Promise.withResolvers(),this._headersCapability=Promise.withResolvers();const r=process.getBuiltinModule("fs");r.promises.lstat(this._url).then(i=>{this._contentLength=i.size,this._setReadableStream(r.createReadStream(this._url)),this._headersCapability.resolve()},i=>{i.code==="ENOENT"&&(i=sE(0,this._url.href)),this._storedError=i,this._headersCapability.reject(i)})}get headersReady(){return this._headersCapability.promise}get filename(){return this._filename}get contentLength(){return this._contentLength}get isRangeSupported(){return this._isRangeSupported}get isStreamingSupported(){return this._isStreamingSupported}async read(){if(await this._readCapability.promise,this._done)return{value:void 0,done:!0};if(this._storedError)throw this._storedError;const e=this._readableStream.read();return e===null?(this._readCapability=Promise.withResolvers(),this.read()):(this._loaded+=e.length,this.onProgress?.({loaded:this._loaded,total:this._contentLength}),{value:new Uint8Array(e).buffer,done:!1})}cancel(e){if(!this._readableStream){this._error(e);return}this._readableStream.destroy(e)}_error(e){this._storedError=e,this._readCapability.resolve()}_setReadableStream(e){this._readableStream=e,e.on("readable",()=>{this._readCapability.resolve()}),e.on("end",()=>{e.destroy(),this._done=!0,this._readCapability.resolve()}),e.on("error",n=>{this._error(n)}),!this._isStreamingSupported&&this._isRangeSupported&&this._error(new $c("streaming is disabled")),this._storedError&&this._readableStream.destroy(this._storedError)}}class r0t{constructor(e,n,r){this._url=e.url,this._done=!1,this._storedError=null,this.onProgress=null,this._loaded=0,this._readableStream=null,this._readCapability=Promise.withResolvers();const i=e.source;this._isStreamingSupported=!i.disableStream;const s=process.getBuiltinModule("fs");this._setReadableStream(s.createReadStream(this._url,{start:n,end:r-1}))}get isStreamingSupported(){return this._isStreamingSupported}async read(){if(await this._readCapability.promise,this._done)return{value:void 0,done:!0};if(this._storedError)throw this._storedError;const e=this._readableStream.read();return e===null?(this._readCapability=Promise.withResolvers(),this.read()):(this._loaded+=e.length,this.onProgress?.({loaded:this._loaded}),{value:new Uint8Array(e).buffer,done:!1})}cancel(e){if(!this._readableStream){this._error(e);return}this._readableStream.destroy(e)}_error(e){this._storedError=e,this._readCapability.resolve()}_setReadableStream(e){this._readableStream=e,e.on("readable",()=>{this._readCapability.resolve()}),e.on("end",()=>{e.destroy(),this._done=!0,this._readCapability.resolve()}),e.on("error",n=>{this._error(n)}),this._storedError&&this._readableStream.destroy(this._storedError)}}const Ay=Symbol("INITIAL_DATA");class cve{#e=Object.create(null);#t(e){return this.#e[e]||={...Promise.withResolvers(),data:Ay}}get(e,n=null){if(n){const i=this.#t(e);return i.promise.then(()=>n(i.data)),null}const r=this.#e[e];if(!r||r.data===Ay)throw new Error(`Requesting object that isn't resolved yet ${e}.`);return r.data}has(e){const n=this.#e[e];return!!n&&n.data!==Ay}delete(e){const n=this.#e[e];return!n||n.data===Ay?!1:(delete this.#e[e],!0)}resolve(e,n=null){const r=this.#t(e);r.data=n,r.resolve()}clear(){for(const e in this.#e){const{data:n}=this.#e[e];n?.bitmap?.close()}this.#e=Object.create(null)}*[Symbol.iterator](){for(const e in this.#e){const{data:n}=this.#e[e];n!==Ay&&(yield[e,n])}}}const i0t=1e5,jZ=30;let Nv=class co{#e=Promise.withResolvers();#t=null;#r=!1;#n=!!globalThis.FontInspector?.enabled;#i=null;#s=null;#a=0;#o=0;#u=null;#l=null;#f=0;#d=0;#h=Object.create(null);#g=[];#p=null;#c=[];#m=new WeakMap;#y=null;static#v=new Map;static#b=new Map;static#S=new WeakMap;static#x=null;static#E=new Set;constructor({textContentSource:e,container:n,viewport:r}){if(e instanceof ReadableStream)this.#p=e;else if(typeof e=="object")this.#p=new ReadableStream({start(l){l.enqueue(e),l.close()}});else throw new Error('No "textContentSource" parameter specified.');this.#t=this.#l=n,this.#d=r.scale*hl.pixelRatio,this.#f=r.rotation,this.#s={div:null,properties:null,ctx:null};const{pageWidth:i,pageHeight:s,pageX:a,pageY:o}=r.rawDims;this.#y=[1,0,0,-1,-a,o+s],this.#o=i,this.#a=s,co.#N(),lf(n,r),this.#e.promise.finally(()=>{co.#E.delete(this),this.#s=null,this.#h=null}).catch(()=>{})}static get fontFamilyMap(){const{isWindows:e,isFirefox:n}=zi.platform;return Zt(this,"fontFamilyMap",new Map([["sans-serif",`${e&&n?"Calibri, ":""}sans-serif`],["monospace",`${e&&n?"Lucida Console, ":""}monospace`]]))}render(){const e=()=>{this.#u.read().then(({value:n,done:r})=>{if(r){this.#e.resolve();return}this.#i??=n.lang,Object.assign(this.#h,n.styles),this.#T(n.items),e()},this.#e.reject)};return this.#u=this.#p.getReader(),co.#E.add(this),e(),this.#e.promise}update({viewport:e,onBefore:n=null}){const r=e.scale*hl.pixelRatio,i=e.rotation;if(i!==this.#f&&(n?.(),this.#f=i,lf(this.#l,{rotation:i})),r!==this.#d){n?.(),this.#d=r;const s={div:null,properties:null,ctx:co.#O(this.#i)};for(const a of this.#c)s.properties=this.#m.get(a),s.div=a,this.#C(s)}}cancel(){const e=new $c("TextLayer task cancelled.");this.#u?.cancel(e).catch(()=>{}),this.#u=null,this.#e.reject(e)}get textDivs(){return this.#c}get textContentItemsStr(){return this.#g}#T(e){if(this.#r)return;this.#s.ctx??=co.#O(this.#i);const n=this.#c,r=this.#g;for(const i of e){if(n.length>i0t){Vt("Ignoring additional textDivs for performance reasons."),this.#r=!0;return}if(i.str===void 0){if(i.type==="beginMarkedContentProps"||i.type==="beginMarkedContent"){const s=this.#t;this.#t=document.createElement("span"),this.#t.classList.add("markedContent"),i.id&&this.#t.setAttribute("id",`${i.id}`),s.append(this.#t)}else i.type==="endMarkedContent"&&(this.#t=this.#t.parentNode);continue}r.push(i.str),this.#w(i)}}#w(e){const n=document.createElement("span"),r={angle:0,canvasWidth:0,hasText:e.str!=="",hasEOL:e.hasEOL,fontSize:0};this.#c.push(n);const i=ut.transform(this.#y,e.transform);let s=Math.atan2(i[1],i[0]);const a=this.#h[e.fontName];a.vertical&&(s+=Math.PI/2);let o=this.#n&&a.fontSubstitution||a.fontFamily;o=co.fontFamilyMap.get(o)||o;const l=Math.hypot(i[2],i[3]),u=l*co.#$(o,a,this.#i);let c,d;s===0?(c=i[4],d=i[5]-u):(c=i[4]+u*Math.sin(s),d=i[5]-u*Math.cos(s));const h="calc(var(--total-scale-factor) *",m=n.style;this.#t===this.#l?(m.left=`${(100*c/this.#o).toFixed(2)}%`,m.top=`${(100*d/this.#a).toFixed(2)}%`):(m.left=`${h}${c.toFixed(2)}px)`,m.top=`${h}${d.toFixed(2)}px)`),m.fontSize=`${h}${(co.#x*l).toFixed(2)}px)`,m.fontFamily=o,r.fontSize=l,n.setAttribute("role","presentation"),n.textContent=e.str,n.dir=e.dir,this.#n&&(n.dataset.fontName=a.fontSubstitutionLoadedName||e.fontName),s!==0&&(r.angle=s*(180/Math.PI));let g=!1;if(e.str.length>1)g=!0;else if(e.str!==" "&&e.transform[0]!==e.transform[3]){const b=Math.abs(e.transform[0]),v=Math.abs(e.transform[3]);b!==v&&Math.max(b,v)/Math.min(b,v)>1.5&&(g=!0)}if(g&&(r.canvasWidth=a.vertical?e.height:e.width),this.#m.set(n,r),this.#s.div=n,this.#s.properties=r,this.#C(this.#s),r.hasText&&this.#t.append(n),r.hasEOL){const b=document.createElement("br");b.setAttribute("role","presentation"),this.#t.append(b)}}#C(e){const{div:n,properties:r,ctx:i}=e,{style:s}=n;let a="";if(co.#x>1&&(a=`scale(${1/co.#x})`),r.canvasWidth!==0&&r.hasText){const{fontFamily:o}=s,{canvasWidth:l,fontSize:u}=r;co.#R(i,u*this.#d,o);const{width:c}=i.measureText(n.textContent);c>0&&(a=`scaleX(${l*this.#d/c}) ${a}`)}r.angle!==0&&(a=`rotate(${r.angle}deg) ${a}`),a.length>0&&(s.transform=a)}static cleanup(){if(!(this.#E.size>0)){this.#v.clear();for(const{canvas:e}of this.#b.values())e.remove();this.#b.clear()}}static#O(e=null){let n=this.#b.get(e||="");if(!n){const r=document.createElement("canvas");r.className="hiddenCanvasElement",r.lang=e,document.body.append(r),n=r.getContext("2d",{alpha:!1,willReadFrequently:!0}),this.#b.set(e,n),this.#S.set(n,{size:0,family:""})}return n}static#R(e,n,r){const i=this.#S.get(e);n===i.size&&r===i.family||(e.font=`${n}px ${r}`,i.size=n,i.family=r)}static#N(){if(this.#x!==null)return;const e=document.createElement("div");e.style.opacity=0,e.style.lineHeight=1,e.style.fontSize="1px",e.style.position="absolute",e.textContent="X",document.body.append(e),this.#x=e.getBoundingClientRect().height,e.remove()}static#$(e,n,r){const i=this.#v.get(e);if(i)return i;const s=this.#O(r);s.canvas.width=s.canvas.height=jZ,this.#R(s,jZ,e);const a=s.measureText(""),o=a.fontBoundingBoxAscent,l=Math.abs(a.fontBoundingBoxDescent);s.canvas.width=s.canvas.height=0;let u=.8;return o?u=o/(o+l):(zi.platform.isFirefox&&Vt("Enable the `dom.textMetrics.fontBoundingBox.enabled` preference in `about:config` to improve TextLayer rendering."),n.ascent?u=n.ascent:n.descent&&(u=1+n.descent)),this.#v.
166set(e,u),u}};const s0t=100;function ZF(t={}){typeof t=="string"||t instanceof URL?t={url:t}:(t instanceof ArrayBuffer||ArrayBuffer.isView(t))&&(t={data:t});const e=new JF,{docId:n}=e,r=t.url?hgt(t.url):null,i=t.data?pgt(t.data):null,s=t.httpHeaders||null,a=t.withCredentials===!0,o=t.password??null,l=t.range instanceof eB?t.range:null,u=Number.isInteger(t.rangeChunkSize)&&t.rangeChunkSize>0?t.rangeChunkSize:2**16;let c=t.worker instanceof i0?t.worker:null;const d=t.verbosity,h=typeof t.docBaseUrl=="string"&&!nE(t.docBaseUrl)?t.docBaseUrl:null,m=Rx(t.cMapUrl),g=t.cMapPacked!==!1,b=t.CMapReaderFactory||(Ss?_gt:RZ),v=Rx(t.iccUrl),E=Rx(t.standardFontDataUrl),x=t.StandardFontDataFactory||(Ss?xgt:NZ),_=Rx(t.wasmUrl),S=t.WasmFactory||(Ss?wgt:OZ),A=t.stopAtErrors!==!0,R=Number.isInteger(t.maxImageSize)&&t.maxImageSize>-1?t.maxImageSize:-1,T=t.isEvalSupported!==!1,O=typeof t.isOffscreenCanvasSupported=="boolean"?t.isOffscreenCanvasSupported:!Ss,I=typeof t.isImageDecoderSupported=="boolean"?t.isImageDecoderSupported:!Ss&&(zi.platform.isFirefox||!globalThis.chrome),D=Number.isInteger(t.canvasMaxAreaInBytes)?t.canvasMaxAreaInBytes:-1,P=typeof t.disableFontFace=="boolean"?t.disableFontFace:Ss,B=t.fontExtraProperties===!0,L=t.enableXfa===!0,$=t.ownerDocument||globalThis.document,q=t.disableRange===!0,F=t.disableStream===!0,G=t.disableAutoFetch===!0,H=t.pdfBug===!0,K=t.CanvasFactory||(Ss?Egt:ygt),V=t.FilterFactory||(Ss?vgt:bgt),Y=t.enableHWA===!0,Z=t.useWasm!==!1,W=l?l.length:t.length??NaN,Q=typeof t.useSystemFonts=="boolean"?t.useSystemFonts:!Ss&&!P,re=typeof t.useWorkerFetch=="boolean"?t.useWorkerFetch:!!(b===RZ&&x===NZ&&S===OZ&&m&&E&&_&&Gy(m,document.baseURI)&&Gy(E,document.baseURI)&&Gy(_,document.baseURI)),se=null;Ymt(d);const J={canvasFactory:new K({ownerDocument:$,enableHWA:Y}),filterFactory:new V({docId:n,ownerDocument:$}),cMapReaderFactory:re?null:new b({baseUrl:m,isCompressed:g}),standardFontDataFactory:re?null:new x({baseUrl:E}),wasmFactory:re?null:new S({baseUrl:_})};c||(c=i0.create({verbosity:d,port:Dh.workerPort}),e._worker=c);const ae={docId:n,apiVersion:"5.4.296",data:i,password:o,disableAutoFetch:G,rangeChunkSize:u,length:W,docBaseUrl:h,enableXfa:L,evaluatorOptions:{maxImageSize:R,disableFontFace:P,ignoreErrors:A,isEvalSupported:T,isOffscreenCanvasSupported:O,isImageDecoderSupported:I,canvasMaxAreaInBytes:D,fontExtraProperties:B,useSystemFonts:Q,useWasm:Z,useWorkerFetch:re,cMapUrl:m,iccUrl:v,standardFontDataUrl:E,wasmUrl:_}},ge={ownerDocument:$,pdfBug:H,styleElement:se,loadingParams:{disableAutoFetch:G,enableXfa:L}};return c.promise.then(function(){if(e.destroyed)throw new Error("Loading aborted");if(c.destroyed)throw new Error("Worker was destroyed");const ve=c.messageHandler.sendWithPromise("GetDocRequest",ae,i?[i.buffer]:null);let Re;if(l)Re=new Ugt(l,{disableRange:q,disableStream:F});else if(!i){if(!r)throw new Error("getDocument - no `url` parameter provided.");const xe=Gy(r)?qgt:Ss?t0t:Xgt;Re=new xe({url:r,length:W,httpHeaders:s,withCredentials:a,rangeChunkSize:u,disableRange:q,disableStream:F})}return ve.then(xe=>{if(e.destroyed)throw new Error("Loading aborted");if(c.destroyed)throw new Error("Worker was destroyed");const Ne=new Wy(n,xe,c.port),Fe=new l0t(Ne,e,Re,ge,J,Y);e._transport=Fe,Ne.send("Ready",null)})}).catch(e._capability.reject),e}class JF{static#e=0;_capability=Promise.withResolvers();_transport=null;_worker=null;docId=`d${JF.#e++}`;destroyed=!1;onPassword=null;onProgress=null;get promise(){return this._capability.promise}async destroy(){this.destroyed=!0;try{this._worker?.port&&(this._worker._pendingDestroy=!0),await this._transport?.destroy()}catch(e){throw this._worker?.port&&delete this._worker._pendingDestroy,e}this._transport=null,this._worker?.destroy(),this._worker=null}async getData(){return this._transport.getData()}}let eB=class{#e=Promise.withResolvers();#t=[];#r=[];#n=[];#i=[];constructor(e,n,r=!1,i=null){this.length=e,this.initialData=n,this.progressiveDone=r,this.contentDispositionFilename=i}addRangeListener(e){this.#i.push(e)}addProgressListener(e){this.#n.push(e)}addProgressiveReadListener(e){this.#r.push(e)}addProgressiveDoneListener(e){this.#t.push(e)}onDataRange(e,n){for(const r of this.#i)r(e,n)}onDataProgress(e,n){this.#e.promise.then(()=>{for(const r of this.#n)r(e,n)})}onDataProgressiveRead(e){this.#e.promise.then(()=>{for(const n of this.#r)n(e)})}onDataProgressiveDone(){this.#e.promise.then(()=>{for(const e of this.#t)e()})}transportReady(){this.#e.resolve()}requestDataRange(e,n){er("Abstract method PDFDataRangeTransport.requestDataRange")}abort(){}};class a0t{constructor(e,n){this._pdfInfo=e,this._transport=n}get annotationStorage(){return this._transport.annotationStorage}get canvasFactory(){return this._transport.canvasFactory}get filterFactory(){return this._transport.filterFactory}get numPages(){return this._pdfInfo.numPages}get fingerprints(){return this._pdfInfo.fingerprints}get isPureXfa(){return Zt(this,"isPureXfa",!!this._transport._htmlForXfa)}get allXfaHtml(){return this._transport._htmlForXfa}getPage(e){return this._transport.getPage(e)}getPageIndex(e){return this._transport.getPageIndex(e)}
vendor: 9,881 bytes, line 166
166getDestinations(){return this._transport.getDestinations()}getDestination(e){return this._transport.getDestination(e)}getPageLabels(){return this._transport.getPageLabels()}getPageLayout(){return this._transport.getPageLayout()}getPageMode(){return this._transport.getPageMode()}getViewerPreferences(){return this._transport.getViewerPreferences()}getOpenAction(){return this._transport.getOpenAction()}getAttachments(){return this._transport.getAttachments()}getAnnotationsByType(e,n){return this._transport.getAnnotationsByType(e,n)}getJSActions(){return this._transport.getDocJSActions()}getOutline(){return this._transport.getOutline()}getOptionalContentConfig({intent:e="display"}={}){const{renderingIntent:n}=this._transport.getRenderingIntent(e);return this._transport.getOptionalContentConfig(n)}getPermissions(){return this._transport.getPermissions()}getMetadata(){return this._transport.getMetadata()}getMarkInfo(){return this._transport.getMarkInfo()}getData(){return this._transport.getData()}saveDocument(){return this._transport.saveDocument()}getDownloadInfo(){return this._transport.downloadInfoCapability.promise}cleanup(e=!1){return this._transport.startCleanup(e||this.isPureXfa)}destroy(){return this.loadingTask.destroy()}cachedPageNumber(e){return this._transport.cachedPageNumber(e)}get loadingParams(){return this._transport.loadingParams}get loadingTask(){return this._transport.loadingTask}getFieldObjects(){return this._transport.getFieldObjects()}hasJSActions(){return this._transport.hasJSActions()}getCalculationOrderIds(){return this._transport.getCalculationOrderIds()}}class o0t{#e=!1;constructor(e,n,r,i=!1){this._pageIndex=e,this._pageInfo=n,this._transport=r,this._stats=i?new _Z:null,this._pdfBug=i,this.commonObjs=r.commonObjs,this.objs=new cve,this._intentStates=new Map,this.destroyed=!1,this.recordedBBoxes=null}get pageNumber(){return this._pageIndex+1}get rotate(){return this._pageInfo.rotate}get ref(){return this._pageInfo.ref}get userUnit(){return this._pageInfo.userUnit}get view(){return this._pageInfo.view}getViewport({scale:e,rotation:n=this.rotate,offsetX:r=0,offsetY:i=0,dontFlip:s=!1}={}){return new tE({viewBox:this.view,userUnit:this.userUnit,scale:e,rotation:n,offsetX:r,offsetY:i,dontFlip:s})}getAnnotations({intent:e="display"}={}){const{renderingIntent:n}=this._transport.getRenderingIntent(e);return this._transport.getAnnotations(this._pageIndex,n)}getJSActions(){return this._transport.getPageJSActions(this._pageIndex)}get filterFactory(){return this._transport.filterFactory}get isPureXfa(){return Zt(this,"isPureXfa",!!this._transport._htmlForXfa)}async getXfa(){return this._transport._htmlForXfa?.children[this._pageIndex]||null}render({canvasContext:e,canvas:n=e.canvas,viewport:r,intent:i="display",annotationMode:s=Kl.ENABLE,transform:a=null,background:o=null,optionalContentConfigPromise:l=null,annotationCanvasMap:u=null,pageColors:c=null,printAnnotationStorage:d=null,isEditing:h=!1,recordOperations:m=!1,operationsFilter:g=null}){this._stats?.time("Overall");const b=this._transport.getRenderingIntent(i,s,d,h),{renderingIntent:v,cacheKey:E}=b;this.#e=!1,l||=this._transport.getOptionalContentConfig(v);let x=this._intentStates.get(E);x||(x=Object.create(null),this._intentStates.set(E,x)),x.streamReaderCancelTimeout&&(clearTimeout(x.streamReaderCancelTimeout),x.streamReaderCancelTimeout=null);const _=!!(v&ka.PRINT);x.displayReadyCapability||(x.displayReadyCapability=Promise.withResolvers(),x.operatorList={fnArray:[],argsArray:[],lastChunk:!1,separateAnnots:null},this._stats?.time("Page Request"),this._pumpOperatorList(b));const S=!!(this._pdfBug&&globalThis.StepperManager?.enabled),A=!this.recordedBBoxes&&(m||S),R=I=>{if(x.renderTasks.delete(T),A){const D=T.gfx?.dependencyTracker.take();D&&(T.stepper&&T.stepper.setOperatorBBoxes(D,T.gfx.dependencyTracker.takeDebugMetadata()),m&&(this.recordedBBoxes=D))}_&&(this.#e=!0),this.#t(),I?(T.capability.reject(I),this._abortOperatorList({intentState:x,reason:I instanceof Error?I:new Error(I)})):T.capability.resolve(),this._stats&&(this._stats.timeEnd("Rendering"),this._stats.timeEnd("Overall"),globalThis.Stats?.enabled&&globalThis.Stats.add(this.pageNumber,this._stats))},T=new lg({callback:R,params:{canvas:n,canvasContext:e,dependencyTracker:A?new Cgt(n,x.operatorList.length,S):null,viewport:r,transform:a,background:o},objs:this.objs,commonObjs:this.commonObjs,annotationCanvasMap:u,operatorList:x.operatorList,pageIndex:this._pageIndex,canvasFactory:this._transport.canvasFactory,filterFactory:this._transport.filterFactory,useRequestAnimationFrame:!_,pdfBug:this._pdfBug,pageColors:c,enableHWA:this._transport.enableHWA,operationsFilter:g});(x.renderTasks||=new Set).add(T);const O=T.task;return Promise.all([x.displayReadyCapability.promise,l]).then(([I,D])=>{if(this.destroyed){R();return}if(this._stats?.time("Rendering"),!(D.renderingIntent&v))throw new Error("Must use the same `intent`-argument when calling the `PDFPageProxy.render` and `PDFDocumentProxy.getOptionalContentConfig` methods.");T.initializeGraphics({transparency:I,optionalContentConfig:D}),T.operatorListChanged()}).catch(R),O}getOperatorList({intent:e="display",annotationMode:n=Kl.ENABLE,printAnnotationStorage:r=null,isEditing:i=!1}={}){function s(){o.operatorList.lastChunk&&(o.opListReadCapability.resolve(o.operatorList),o.renderTasks.delete(l))}const a=this._transport.getRenderingIntent(e,n,r,i,!0);let o=this._intentStates.get(a.cacheKey);o||(o=Object.create(null),this._intentStates.set(a.cacheKey,o));let l;return o.opListReadCapability||(l=Object.create(null),l.operatorListChanged=s,o.opListReadCapability=Promise.withResolvers(),(o.renderTasks||=new Set).add(l),o.operatorList={fnArray:[],argsArray:[],lastChunk:!1,separateAnnots:null},this._stats?.time("Page Request"),this._pumpOperatorList(a)),o.opListReadCapability.promise}streamTextContent({includeMarkedContent:e=!1,disableNormalization:n=!1}={}){return this._transport.messageHandler.sendWithStream("GetTextContent",{pageIndex:this._pageIndex,includeMarkedContent:e===!0,disableNormalization:n===!0},{highWaterMark:100,size(i){return i.items.length}})}getTextContent(e={}){if(this._transport._htmlForXfa)return this.getXfa().then(r=>Rv.textContent(r));const n=this.streamTextContent(e);return new Promise(function(r,i){function s(){a.read().then(function({value:l,done:u}){if(u){r(o);return}o.lang??=l.lang,Object.assign(o.styles,l.styles),o.items.push(...l.items),s()},i)}const a=n.getReader(),o={items:[],styles:Object.create(null),lang:null};s()})}getStructTree(){return this._transport.getStructTree(this._pageIndex)}_destroy(){this.destroyed=!0;const e=[];for(const n of this._intentStates.values())if(this._abortOperatorList({intentState:n,reason:new Error("Page was destroyed."),force:!0}),!n.opListReadCapability)for(const r of n.renderTasks)e.push(r.completed),r.cancel();return this.objs.clear(),this.#e=!1,Promise.all(e)}cleanup(e=!1){this.#e=!0;const n=this.#t();return e&&n&&(this._stats&&=new _Z),n}#t(){if(!this.#e||this.destroyed)return!1;for(const{renderTasks:e,operatorList:n}of this._intentStates.values())if(e.size>0||!n.lastChunk)return!1;return this._intentStates.clear(),this.objs.clear(),this.#e=!1,!0}_startRenderPage(e,n){const r=this._intentStates.get(n);r&&(this._stats?.timeEnd("Page Request"),r.displayReadyCapability?.resolve(e))}_renderPageChunk(e,n){for(let r=0,i=e.length;r<i;r++)n.operatorList.fnArray.push(e.fnArray[r]),n.operatorList.argsArray.push(e.argsArray[r]);n.operatorList.lastChunk=e.lastChunk,n.operatorList.separateAnnots=e.separateAnnots;for(const r of n.renderTasks)r.operatorListChanged();e.lastChunk&&this.#t()}_pumpOperatorList({renderingIntent:e,cacheKey:n,annotationStorageSerializable:r,modifiedIds:i}){const{map:s,transfer:a}=r,l=this._transport.messageHandler.sendWithStream("GetOperatorList",{pageIndex:this._pageIndex,intent:e,cacheKey:n,annotationStorage:s,modifiedIds:i},a).getReader(),u=this._intentStates.get(n);u.streamReader=l;const c=()=>{l.read().then(({value:d,done:h})=>{if(h){u.streamReader=null;return}this._transport.destroyed||(this._renderPageChunk(d,u),c())},d=>{if(u.streamReader=null,!this._transport.destroyed){if(u.operatorList){u.operatorList.lastChunk=!0;for(const h of u.renderTasks)h.operatorListChanged();this.#t()}if(u.displayReadyCapability)u.displayReadyCapability.reject(d);else if(u.opListReadCapability)u.opListReadCapability.reject(d);else throw d}})};c()}_abortOperatorList({intentState:e,reason:n,force:r=!1}){if(e.streamReader){if(e.streamReaderCancelTimeout&&(clearTimeout(e.streamReaderCancelTimeout),e.streamReaderCancelTimeout=null),!r){if(e.renderTasks.size>0)return;if(n instanceof B3){let i=s0t;n.extraDelay>0&&n.extraDelay<1e3&&(i+=n.extraDelay),e.streamReaderCancelTimeout=setTimeout(()=>{e.streamReaderCancelTimeout=null,this._abortOperatorList({intentState:e,reason:n,force:!0})},i);return}}if(e.streamReader.cancel(new $c(n.message)).catch(()=>{}),e.streamReader=null,!this._transport.destroyed){for(const[i,s]of this._intentStates)if(s===e){this._intentStates.delete(i);break}this.cleanup()}}}get stats(){return this._stats}}var Bd,Wo,mc,wh,aT,Sh,Ch,Ms,jw,dve,fve,Yy,Bg,zw;const _r=class _r{constructor({name:e=null,port:n=null,verbosity:r=Kmt()}={}){Nl(this,Ms);Nl(this,Bd,Promise.withResolvers());Nl(this,Wo,null);Nl(this,mc,null);Nl(this,wh,null);if(this.name=e,this.destroyed=!1,this.verbosity=r,n){if(vr(_r,Ch).has(n))throw new Error("Cannot use more than one PDFWorker per port.");vr(_r,Ch).set(n,this),Ol(this,Ms,dve).call(this,n)}else Ol(this,Ms,fve).call(this)}get promise(){return vr(this,Bd).promise}get port(){return vr(this,mc)}get messageHandler(){return vr(this,Wo)}destroy(){this.destroyed=!0,vr(this,wh)?.terminate(),Ys(this,wh,null),vr(_r,Ch).delete(vr(this,mc)),Ys(this,mc,null),vr(this,Wo)?.destroy(),Ys(this,Wo,null)}static create(e){const n=vr(this,Ch).get(e?.port);
166if(n){if(n._pendingDestroy)throw new Error("PDFWorker.create - the worker is being destroyed.\nPlease remember to await `PDFDocumentLoadingTask.destroy()`-calls.");return n}return new _r(e)}static get workerSrc(){if(Dh.workerSrc)return Dh.workerSrc;throw new Error('No "GlobalWorkerOptions.workerSrc" specified.')}static get _setupFakeWorkerGlobal(){return Zt(this,"_setupFakeWorkerGlobal",(async()=>vr(this,Bg,zw)?vr(this,Bg,zw):(await import(this.workerSrc)).WorkerMessageHandler)())}};Bd=new WeakMap,Wo=new WeakMap,mc=new WeakMap,wh=new WeakMap,aT=new WeakMap,Sh=new WeakMap,Ch=new WeakMap,Ms=new WeakSet,jw=function(){vr(this,Bd).resolve(),vr(this,Wo).send("configure",{verbosity:this.verbosity})},dve=function(e){Ys(this,mc,e),Ys(this,Wo,new Wy("main","worker",e)),vr(this,Wo).on("ready",()=>{}),Ol(this,Ms,jw).call(this)},fve=function(){if(vr(_r,Sh)||vr(_r,Bg,zw)){Ol(this,Ms,Yy).call(this);return}let{workerSrc:e}=_r;try{_r._isSameOrigin(window.location,e)||(e=_r._createCDNWrapper(new URL(e,window.location).href));const n=new Worker(e,{type:"module"}),r=new Wy("main","worker",n),i=()=>{s.abort(),r.destroy(),n.terminate(),this.destroyed?vr(this,Bd).reject(new Error("Worker was destroyed")):Ol(this,Ms,Yy).call(this)},s=new AbortController;n.addEventListener("error",()=>{vr(this,wh)||i()},{signal:s.signal}),r.on("test",o=>{if(s.abort(),this.destroyed||!o){i();return}Ys(this,Wo,r),Ys(this,mc,n),Ys(this,wh,n),Ol(this,Ms,jw).call(this)}),r.on("ready",o=>{if(s.abort(),this.destroyed){i();return}try{a()}catch{Ol(this,Ms,Yy).call(this)}});const a=()=>{const o=new Uint8Array;r.send("test",o,[o.buffer])};a();return}catch{F3("The worker has been disabled.")}Ol(this,Ms,Yy).call(this)},Yy=function(){vr(_r,Sh)||(Vt("Setting up fake worker."),Ys(_r,Sh,!0)),_r._setupFakeWorkerGlobal.then(e=>{if(this.destroyed){vr(this,Bd).reject(new Error("Worker was destroyed"));return}const n=new ggt;Ys(this,mc,n);const r=`fake${JV(_r,aT)._++}`,i=new Wy(r+"_worker",r,n);e.setup(i,n),Ys(this,Wo,new Wy(r,r+"_worker",n)),Ol(this,Ms,jw).call(this)}).catch(e=>{vr(this,Bd).reject(new Error(`Setting up fake worker failed: "${e.message}".`))})},Bg=new WeakSet,zw=function(){try{return globalThis.pdfjsWorker?.WorkerMessageHandler||null}catch{return null}},Nl(_r,Bg),Nl(_r,aT,0),Nl(_r,Sh,!1),Nl(_r,Ch,new WeakMap),Ss&&(Ys(_r,Sh,!0),Dh.workerSrc||="./pdf.worker.mjs"),_r._isSameOrigin=(e,n)=>{const r=URL.parse(e);if(!r?.origin||r.origin==="null")return!1;const i=new URL(n,r);return r.origin===i.origin},_r._createCDNWrapper=e=>{const n=`await import("${e}");`;return URL.createObjectURL(new Blob([n],{type:"text/javascript"}))},_r.fromPort=e=>{if(igt("`PDFWorker.fromPort` - please use `PDFWorker.create` instead."),!e?.port)throw new Error("PDFWorker.fromPort - invalid method signature.");return _r.create(e)};let i0=_r;class l0t{#e=new Map;#t=new Map;#r=new Map;#n=new Map;#i=null;constructor(e,n,r,i,s,a){this.messageHandler=e,this.loadingTask=n,this.commonObjs=new cve,this.fontLoader=new dgt({ownerDocument:i.ownerDocument,styleElement:i.styleElement}),this.loadingParams=i.loadingParams,this._params=i,this.canvasFactory=s.canvasFactory,this.filterFactory=s.filterFactory,this.cMapReaderFactory=s.cMapReaderFactory,this.standardFontDataFactory=s.standardFontDataFactory,this.wasmFactory=s.wasmFactory,this.destroyed=!1,this.destroyCapability=null,this._networkStream=r,this._fullReader=null,this._lastProgress=null,this.downloadInfoCapability=Promise.withResolvers(),this.enableHWA=a,this.setupMessageHandler()}#s(e,n=null){const r=this.#e.get(e);if(r)return r;const i=this.messageHandler.sendWithPromise(e,n);return this.#e.set(e,i),i}get annotationStorage(){return Zt(this,"annotationStorage",new YF)}getRenderingIntent(e,n=Kl.ENABLE,r=null,i=!1,s=!1){let a=ka.DISPLAY,o=R9;switch(e){case"any":a=ka.ANY;break;case"display":break;case"print":a=ka.PRINT;break;default:Vt(`getRenderingIntent - invalid intent: ${e}`)}const l=a&ka.PRINT&&r instanceof Qbe?r:this.annotationStorage;switch(n){case Kl.DISABLE:a+=ka.ANNOTATIONS_DISABLE;break;case Kl.ENABLE:break;case Kl.ENABLE_FORMS:a+=ka.ANNOTATIONS_FORMS;break;case Kl.ENABLE_STORAGE:a+=ka.ANNOTATIONS_STORAGE,o=l.serializable;break;default:Vt(`getRenderingIntent - invalid annotationMode: ${n}`)}i&&(a+=ka.IS_EDITING),s&&(a+=ka.OPLIST);const{ids:u,hash:c}=l.modifiedIds,d=[a,o.hash,c];return{renderingIntent:a,cacheKey:d.join("_"),annotationStorageSerializable:o,modifiedIds:u}}destroy(){if(this.destroyCapability)return this.destroyCapability.promise;this.destroyed=!0,this.destroyCapability=Promise.withResolvers(),this.#i?.reject(new Error("Worker was destroyed during onPassword callback"));const e=[];for(const r of this.#t.values())e.push(r._destroy());this.#t.clear(),this.#r.clear(),this.#n.clear(),this.hasOwnProperty("annotationStorage")&&this.annotationStorage.resetModified();
vendor: 19,784 bytes, line 166
166const n=this.messageHandler.sendWithPromise("Terminate",null);return e.push(n),Promise.all(e).then(()=>{this.commonObjs.clear(),this.fontLoader.clear(),this.#e.clear(),this.filterFactory.destroy(),Nv.cleanup(),this._networkStream?.cancelAllRequests(new $c("Worker was terminated.")),this.messageHandler?.destroy(),this.messageHandler=null,this.destroyCapability.resolve()},this.destroyCapability.reject),this.destroyCapability.promise}setupMessageHandler(){const{messageHandler:e,loadingTask:n}=this;e.on("GetReader",(r,i)=>{Cn(this._networkStream,"GetReader - no `IPDFStream` instance available."),this._fullReader=this._networkStream.getFullReader(),this._fullReader.onProgress=s=>{this._lastProgress={loaded:s.loaded,total:s.total}},i.onPull=()=>{this._fullReader.read().then(function({value:s,done:a}){if(a){i.close();return}Cn(s instanceof ArrayBuffer,"GetReader - expected an ArrayBuffer."),i.enqueue(new Uint8Array(s),1,[s])}).catch(s=>{i.error(s)})},i.onCancel=s=>{this._fullReader.cancel(s),i.ready.catch(a=>{if(!this.destroyed)throw a})}}),e.on("ReaderHeadersReady",async r=>{await this._fullReader.headersReady;const{isStreamingSupported:i,isRangeSupported:s,contentLength:a}=this._fullReader;return(!i||!s)&&(this._lastProgress&&n.onProgress?.(this._lastProgress),this._fullReader.onProgress=o=>{n.onProgress?.({loaded:o.loaded,total:o.total})}),{isStreamingSupported:i,isRangeSupported:s,contentLength:a}}),e.on("GetRangeReader",(r,i)=>{Cn(this._networkStream,"GetRangeReader - no `IPDFStream` instance available.");const s=this._networkStream.getRangeReader(r.begin,r.end);if(!s){i.close();return}i.onPull=()=>{s.read().then(function({value:a,done:o}){if(o){i.close();return}Cn(a instanceof ArrayBuffer,"GetRangeReader - expected an ArrayBuffer."),i.enqueue(new Uint8Array(a),1,[a])}).catch(a=>{i.error(a)})},i.onCancel=a=>{s.cancel(a),i.ready.catch(o=>{if(!this.destroyed)throw o})}}),e.on("GetDoc",({pdfInfo:r})=>{this._numPages=r.numPages,this._htmlForXfa=r.htmlForXfa,delete r.htmlForXfa,n._capability.resolve(new a0t(r,this))}),e.on("DocException",r=>{n._capability.reject(Js(r))}),e.on("PasswordRequest",r=>{this.#i=Promise.withResolvers();try{if(!n.onPassword)throw Js(r);const i=s=>{s instanceof Error?this.#i.reject(s):this.#i.resolve({password:s})};n.onPassword(i,r.code)}catch(i){this.#i.reject(i)}return this.#i.promise}),e.on("DataLoaded",r=>{n.onProgress?.({loaded:r.length,total:r.length}),this.downloadInfoCapability.resolve(r)}),e.on("StartRenderPage",r=>{if(this.destroyed)return;this.#t.get(r.pageIndex)._startRenderPage(r.transparency,r.cacheKey)}),e.on("commonobj",([r,i,s])=>{if(this.destroyed||this.commonObjs.has(r))return null;switch(i){case"Font":if("error"in s){const c=s.error;Vt(`Error during font loading: ${c}`),this.commonObjs.resolve(r,c);break}const a=new Yn(s),o=this._params.pdfBug&&globalThis.FontInspector?.enabled?(c,d)=>globalThis.FontInspector.fontAdded(c,d):null,l=new fgt(a,o,s.extra,s.charProcOperatorList);this.fontLoader.bind(l).catch(()=>e.sendWithPromise("FontFallback",{id:r})).finally(()=>{!l.fontExtraProperties&&l.data&&l.clearData(),this.commonObjs.resolve(r,l)});break;case"CopyLocalImage":const{imageRef:u}=s;Cn(u,"The imageRef must be defined.");for(const c of this.#t.values())for(const[,d]of c.objs)if(d?.ref===u)return d.dataLen?(this.commonObjs.resolve(r,structuredClone(d)),d.dataLen):null;break;case"FontPath":case"Image":case"Pattern":this.commonObjs.resolve(r,s);break;default:throw new Error(`Got unknown common object type ${i}`)}return null}),e.on("obj",([r,i,s,a])=>{if(this.destroyed)return;const o=this.#t.get(i);if(!o.objs.has(r)){if(o._intentStates.size===0){a?.bitmap?.close();return}switch(s){case"Image":case"Pattern":o.objs.resolve(r,a);break;default:throw new Error(`Got unknown object type ${s}`)}}}),e.on("DocProgress",r=>{this.destroyed||n.onProgress?.({loaded:r.loaded,total:r.total})}),e.on("FetchBinaryData",async r=>{if(this.destroyed)throw new Error("Worker was destroyed.");const i=this[r.type];if(!i)throw new Error(`${r.type} not initialized, see the \`useWorkerFetch\` parameter.`);return i.fetch(r)})}getData(){return this.messageHandler.sendWithPromise("GetData",null)}saveDocument(){this.annotationStorage.size<=0&&Vt("saveDocument called while `annotationStorage` is empty, please use the getData-method instead.");const{map:e,transfer:n}=this.annotationStorage.serializable;return this.messageHandler.sendWithPromise("SaveDocument",{isPureXfa:!!this._htmlForXfa,numPages:this._numPages,annotationStorage:e,filename:this._fullReader?.filename??null},n).finally(()=>{this.annotationStorage.resetModified()})}getPage(e){if(!Number.isInteger(e)||e<=0||e>this._numPages)return Promise.reject(new Error("Invalid page request."));const n=e-1,r=this.#r.get(n);if(r)return r;const i=this.messageHandler.sendWithPromise("GetPage",{pageIndex:n}).then(s=>{if(this.destroyed)throw new Error("Transport destroyed");s.refStr&&this.#n.set(s.refStr,e);const a=new o0t(n,s,this,this._params.pdfBug);return this.#t.set(n,a),a});return this.#r.set(n,i),i}getPageIndex(e){return N9(e)?this.messageHandler.sendWithPromise("GetPageIndex",{num:e.num,gen:e.gen}):Promise.reject(new Error("Invalid pageIndex request."))}getAnnotations(e,n){return this.messageHandler.sendWithPromise("GetAnnotations",{pageIndex:e,intent:n})}getFieldObjects(){return this.#s("GetFieldObjects")}hasJSActions(){return this.#s("HasJSActions")}getCalculationOrderIds(){return this.messageHandler.sendWithPromise("GetCalculationOrderIds",null)}getDestinations(){return this.messageHandler.sendWithPromise("GetDestinations",null)}getDestination(e){return typeof e!="string"?Promise.reject(new Error("Invalid destination request.")):this.messageHandler.sendWithPromise("GetDestination",{id:e})}getPageLabels(){return this.messageHandler.sendWithPromise("GetPageLabels",null)}getPageLayout(){return this.messageHandler.sendWithPromise("GetPageLayout",null)}getPageMode(){return this.messageHandler.sendWithPromise("GetPageMode",null)}getViewerPreferences(){return this.messageHandler.sendWithPromise("GetViewerPreferences",null)}getOpenAction(){return this.messageHandler.sendWithPromise("GetOpenAction",null)}getAttachments(){return this.messageHandler.sendWithPromise("GetAttachments",null)}getAnnotationsByType(e,n){return this.messageHandler.sendWithPromise("GetAnnotationsByType",{types:e,pageIndexesToSkip:n})}getDocJSActions(){return this.#s("GetDocJSActions")}getPageJSActions(e){return this.messageHandler.sendWithPromise("GetPageJSActions",{pageIndex:e})}getStructTree(e){return this.messageHandler.sendWithPromise("GetStructTree",{pageIndex:e})}getOutline(){return this.messageHandler.sendWithPromise("GetOutline",null)}getOptionalContentConfig(e){return this.#s("GetOptionalContentConfig").then(n=>new Hgt(n,e))}getPermissions(){return this.messageHandler.sendWithPromise("GetPermissions",null)}getMetadata(){const e="GetMetadata",n=this.#e.get(e);if(n)return n;const r=this.messageHandler.sendWithPromise(e,null).then(i=>({info:i[0],metadata:i[1]?new Fgt(i[1]):null,contentDispositionFilename:this._fullReader?.filename??null,contentLength:this._fullReader?.contentLength??null}));return this.#e.set(e,r),r}getMarkInfo(){return this.messageHandler.sendWithPromise("GetMarkInfo",null)}async startCleanup(e=!1){if(!this.destroyed){await this.messageHandler.sendWithPromise("Cleanup",null);for(const n of this.#t.values())if(!n.cleanup())throw new Error(`startCleanup: Page ${n.pageNumber} is currently rendering.`);this.commonObjs.clear(),e||this.fontLoader.clear(),this.#e.clear(),this.filterFactory.destroy(!0),Nv.cleanup()}}cachedPageNumber(e){if(!N9(e))return null;const n=e.gen===0?`${e.num}R`:`${e.num}R${e.gen}`;return this.#n.get(n)??null}}class u0t{#e=null;onContinue=null;onError=null;constructor(e){this.#e=e}get promise(){return this.#e.capability.promise}cancel(e=0){this.#e.cancel(null,e)}get separateAnnots(){const{separateAnnots:e}=this.#e.operatorList;if(!e)return!1;const{annotationCanvasMap:n}=this.#e;return e.form||e.canvas&&n?.size>0}}class lg{#e=null;static#t=new WeakSet;constructor({callback:e,params:n,objs:r,commonObjs:i,annotationCanvasMap:s,operatorList:a,pageIndex:o,canvasFactory:l,filterFactory:u,useRequestAnimationFrame:c=!1,pdfBug:d=!1,pageColors:h=null,enableHWA:m=!1,operationsFilter:g=null}){this.callback=e,this.params=n,this.objs=r,this.commonObjs=i,this.annotationCanvasMap=s,this.operatorListIdx=null,this.operatorList=a,this._pageIndex=o,this.canvasFactory=l,this.filterFactory=u,this._pdfBug=d,this.pageColors=h,this.running=!1,this.graphicsReadyCallback=null,this.graphicsReady=!1,this._useRequestAnimationFrame=c===!0&&typeof window<"u",this.cancelled=!1,this.capability=Promise.withResolvers(),this.task=new u0t(this),this._cancelBound=this.cancel.bind(this),this._continueBound=this._continue.bind(this),this._scheduleNextBound=this._scheduleNext.bind(this),this._nextBound=this._next.bind(this),this._canvas=n.canvas,this._canvasContext=n.canvas?null:n.canvasContext,this._enableHWA=m,this._dependencyTracker=n.dependencyTracker,this._operationsFilter=g}get completed(){return this.capability.promise.catch(function(){})}initializeGraphics({transparency:e=!1,optionalContentConfig:n}){if(this.cancelled)return;if(this._canvas){if(lg.#t.has(this._canvas))throw new Error("Cannot use the same canvas during multiple render() operations. Use different canvas or ensure previous operations were cancelled or completed.");lg.#t.add(this._canvas)}this._pdfBug&&globalThis.StepperManager?.enabled&&(this.stepper=globalThis.StepperManager.create(this._pageIndex),this.stepper.init(this.operatorList),this.stepper.nextBreakPoint=this.stepper.getNextBreakPoint());const{viewport:r,transform:i,background:s,dependencyTracker:a}=this.params,o=this._canvasContext||this._canvas.getContext("2d",{alpha:!1,willReadFrequently:!this._enableHWA});this.gfx=new Tg(o,this.commonObjs,this.objs,this.canvasFactory,this.filterFactory,{optionalContentConfig:n},this.annotationCanvasMap,this.pageColors,a),this.gfx.beginDrawing({transform:i,viewport:r,transparency:e,background:s}),this.operatorListIdx=0,this.graphicsReady=!0,this.graphicsReadyCallback?.()}cancel(e=null,n=0){this.running=!1,this.cancelled=!0,this.gfx?.endDrawing(),this.#e&&(window.cancelAnimationFrame(this.#e),this.#e=null),lg.#t.delete(this._canvas),e||=new B3(`Rendering cancelled, page ${this._pageIndex+1}`,n),this.callback(e),this.task.onError?.(e)}operatorListChanged(){if(!this.graphicsReady){this.graphicsReadyCallback||=this._continueBound;return}this.gfx.dependencyTracker?.growOperationsCount(this.operatorList.fnArray.length),this.stepper?.updateOperatorList(this.operatorList),!this.running&&this._continue()}_continue(){this.running=!0,!this.cancelled&&(this.task.onContinue?this.task.onContinue(this._scheduleNextBound):this._scheduleNext())}_scheduleNext(){this._useRequestAnimationFrame?this.#e=window.requestAnimationFrame(()=>{this.#e=null,this._nextBound().catch(this._cancelBound)}):Promise.resolve().then(this._nextBound).catch(this._cancelBound)}async _next(){this.cancelled||(this.operatorListIdx=this.gfx.executeOperatorList(this.operatorList,this.operatorListIdx,this._continueBound,this.stepper,this._operationsFilter),this.operatorListIdx===this.operatorList.argsArray.length&&(this.running=!1,this.operatorList.lastChunk&&(this.gfx.endDrawing(),lg.#t.delete(this._canvas),this.callback())))}}const hve="5.4.296",pve="f56dc8601";class Ia{#e=null;#t=null;#r;#n=null;#i=!1;#s=!1;#a=null;#o;#u=null;#l=null;static#f=null;static get _keyboardManager(){return Zt(this,"_keyboardManager",new rE([[["Escape","mac+Escape"],Ia.prototype._hideDropdownFromKeyboard],[[" ","mac+ "],Ia.prototype._colorSelectFromKeyboard],[["ArrowDown","ArrowRight","mac+ArrowDown","mac+ArrowRight"],Ia.prototype._moveToNext],[["ArrowUp","ArrowLeft","mac+ArrowUp","mac+ArrowLeft"],Ia.prototype._moveToPrevious],[["Home","mac+Home"],Ia.prototype._moveToBeginning],[["End","mac+End"],Ia.prototype._moveToEnd]]))}constructor({editor:e=null,uiManager:n=null}){e?(this.#s=!1,this.#a=e):this.#s=!0,this.#l=e?._uiManager||n,this.#o=this.#l._eventBus,this.#r=e?.color?.toUpperCase()||this.#l?.highlightColors.values().next().value||"#FFFF98",Ia.#f||=Object.freeze({blue:"pdfjs-editor-colorpicker-blue",green:"pdfjs-editor-colorpicker-green",pink:"pdfjs-editor-colorpicker-pink",red:"pdfjs-editor-colorpicker-red",yellow:"pdfjs-editor-colorpicker-yellow"})}renderButton(){const e=this.#e=document.createElement("button");e.className="colorPicker",e.tabIndex="0",e.setAttribute("data-l10n-id","pdfjs-editor-colorpicker-button"),e.ariaHasPopup="true",this.#a&&(e.ariaControls=`${this.#a.id}_colorpicker_dropdown`);const n=this.#l._signal;e.addEventListener("click",this.#p.bind(this),{signal:n}),e.addEventListener("keydown",this.#g.bind(this),{signal:n});const r=this.#t=document.createElement("span");return r.className="swatch",r.ariaHidden="true",r.style.backgroundColor=this.#r,e.append(r),e}renderMainDropdown(){const e=this.#n=this.#d();return e.ariaOrientation="horizontal",e.ariaLabelledBy="highlightColorPickerLabel",e}#d(){const e=document.createElement("div"),n=this.#l._signal;e.addEventListener("contextmenu",Ya,{signal:n}),e.className="dropdown",e.role="listbox",e.ariaMultiSelectable="false",e.ariaOrientation="vertical",e.setAttribute("data-l10n-id","pdfjs-editor-colorpicker-dropdown"),this.#a&&(e.id=`${this.#a.id}_colorpicker_dropdown`);for(const[r,i]of this.#l.highlightColors){const s=document.createElement("button");s.tabIndex="0",s.role="option",s.setAttribute("data-color",i),s.title=r,s.setAttribute("data-l10n-id",Ia.#f[r]);const a=document.createElement("span");s.append(a),a.className="swatch",a.style.backgroundColor=i,s.ariaSelected=i===this.#r,s.addEventListener("click",this.#h.bind(this,i),{signal:n}),e.append(s)}return e.addEventListener("keydown",this.#g.bind(this),{signal:n}),e}#h(e,n){n.stopPropagation(),this.#o.dispatch("switchannotationeditorparams",{source:this,type:En.HIGHLIGHT_COLOR,value:e}),this.updateColor(e)}_colorSelectFromKeyboard(e){if(e.target===this.#e){this.#p(e);return}const n=e.target.getAttribute("data-color");n&&this.#h(n,e)}_moveToNext(e){if(!this.#m){this.#p(e);return}if(e.target===this.#e){this.#n.firstChild?.focus();return}e.target.nextSibling?.focus()}_moveToPrevious(e){if(e.target===this.#n?.firstChild||e.target===this.#e){this.#m&&this._hideDropdownFromKeyboard();return}this.#m||this.#p(e),e.target.previousSibling?.focus()}_moveToBeginning(e){if(!this.#m){this.#p(e);return}this.#n.firstChild?.focus()}_moveToEnd(e){if(!this.#m){this.#p(e);return}this.#n.lastChild?.focus()}#g(e){Ia._keyboardManager.exec(this,e)}#p(e){if(this.#m){this.hideDropdown();return}if(this.#i=e.detail===0,this.#u||(this.#u=new AbortController,window.addEventListener("pointerdown",this.#c.bind(this),{signal:this.#l.combinedSignal(this.#u)})),this.#e.ariaExpanded="true",this.#n){this.#n.classList.remove("hidden");return}const n=this.#n=this.#d();this.#e.append(n)}#c(e){this.#n?.contains(e.target)||this.hideDropdown()}hideDropdown(){this.#n?.classList.add("hidden"),this.#e.ariaExpanded="false",this.#u?.abort(),this.#u=null}get#m(){return this.#n&&!this.#n.classList.contains("hidden")}_hideDropdownFromKeyboard(){if(!this.#s){if(!this.#m){this.#a?.unselect();return}this.hideDropdown(),this.#e.focus({preventScroll:!0,focusVisible:this.#i})}}updateColor(e){if(this.#t&&(this.#t.style.backgroundColor=e),!this.#n)return;const n=this.#l.highlightColors.values();for(const r of this.#n.children)r.ariaSelected=n.next().value===e.toUpperCase()}destroy(){this.#e?.remove(),this.#e=null,this.#t=null,this.#n?.remove(),this.#n=null}}class Ov{#e=null;#t=null;#r=null;static#n=null;constructor(e){this.#t=e,this.#r=e._uiManager,Ov.#n||=Object.freeze({freetext:"pdfjs-editor-color-picker-free-text-input",ink:"pdfjs-editor-color-picker-ink-input"})}renderButton(){if(this.#e)return this.#e;const{editorType:e,colorType:n,colorValue:r}=this.#t,i=this.#e=document.createElement("input");return i.type="color",i.value=r||"#000000",i.className="basicColorPicker",i.tabIndex=0,i.setAttribute("data-l10n-id",Ov.#n[e]),i.addEventListener("input",()=>{this.#r.updateParams(n,i.value)},{signal:this.#r._signal}),i}update(e){this.#e&&(this.#e.value=e)}destroy(){this.#e?.remove(),this.#e=null}hideDropdown(){}}function zZ(t){return Math.floor(Math.max(0,Math.min(1,t))*255).toString(16).padStart(2,"0")}function Ry(t){return Math.max(0,Math.min(255,255*t))}class VZ{static CMYK_G([e,n,r,i]){return["G",1-Math.min(1,.3*e+.59*r+.11*n+i)]}static G_CMYK([e]){return["CMYK",0,0,0,1-e]}static G_RGB([e]){return["RGB",e,e,e]}static G_rgb([e]){return e=Ry(e),[e,e,e]}static G_HTML([e]){const n=zZ(e);return`#${n}${n}${n}`}static RGB_G([e,n,r]){return["G",.3*e+.59*n+.11*r]}static RGB_rgb(e){return e.map(Ry)}static RGB_HTML(e){return`#${e.map(zZ).join("")}`}static T_HTML(){return"#00000000"}static T_rgb(){return[null]}static CMYK_RGB([e,n,r,i]){return["RGB",1-Math.min(1,e+i),1-Math.min(1,r+i),1-Math.min(1,n+i)]}static CMYK_rgb([e,n,r,i]){return[Ry(1-Math.min(1,e+i)),Ry(1-Math.min(1,r+i)),Ry(1-Math.min(1,n+i))]}static CMYK_HTML(e){const n=this.CMYK_RGB(e).slice(1);return this.RGB_HTML(n)}static RGB_CMYK([e,n,r]){const i=1-e,s=1-n,a=1-r,o=Math.min(i,s,a);return["CMYK",i,s,a,o]}}class c0t{create(e,n,r=!1){if(e<=0||n<=0)throw new Error("Invalid SVG dimensions");const i=this._createSVG("svg:svg");return i.setAttribute("version","1.1"),r||(i.setAttribute("width",`${e}px`),i.setAttribute("height",`${n}px`)),i.setAttribute("preserveAspectRatio","none"),i.setAttribute("viewBox",`0 0 ${e} ${n}`),i}createElement(e){if(typeof e!="string")throw new Error("Invalid SVG element type");return this._createSVG(e)}_createSVG(e){er("Abstract method `_createSVG` called.")}}class kv extends c0t{_createSVG(e){return document.createElementNS(ac,e)}}const d0t=9,np=new WeakSet,f0t=new Date().getTimezoneOffset()*60*1e3;class qZ{static create(e){switch(e.data.annotationType){case Xr.LINK:return new tB(e);case Xr.TEXT:return new p0t(e);case Xr.WIDGET:switch(e.data.fieldType){case"Tx":return new m0t(e);case"Btn":return e.data.radioButton?new mve(e):e.data.checkBox?new y0t(e):new b0t(e);case"Ch":return new v0t(e);case"Sig":return new g0t(e)}return new Hp(e);case Xr.POPUP:return new I9(e);case Xr.FREETEXT:return new gve(e);case Xr.LINE:return new _0t(e);case Xr.SQUARE:return new x0t(e);case Xr.CIRCLE:return new w0t(e);case Xr.POLYLINE:return new yve(e);case Xr.CARET:return new C0t(e);case Xr.INK:return new nB(e);case Xr.POLYGON:return new S0t(e);case Xr.HIGHLIGHT:return new bve(e);case Xr.UNDERLINE:return new T0t(e);case Xr.SQUIGGLY:return new A0t(e);case Xr.STRIKEOUT:return new R0t(e);case Xr.STAMP:return new vve(e);case Xr.FILEATTACHMENT:return new N0t(e);default:return new Dr(e)}}}class Dr{#e=null;#t=!1;#r=null;constructor(e,{isRenderable:n=!1,ignoreBorder:r=!1,createQuadrilaterals:i=!1}={}){this.isRenderable=n,this.data=e.data,this.layer=e.layer,this.linkService=e.linkService,this.downloadManager=e.downloadManager,this.imageResourcesPath=e.imageResourcesPath,this.renderForms=e.renderForms,this.svgFactory=e.svgFactory,this.annotationStorage=e.annotationStorage,this.enableComment=e.enableComment,this.enableScripting=e.enableScripting,this.hasJSActions=e.hasJSActions,this._fieldObjects=e.fieldObjects,this.parent=e.parent,n&&(this.container=this._createContainer(r)),i&&this._createQuadrilaterals()}static _hasPopupData({contentsObj:e,richText:n}){return!!(e?.str||n?.str)}get _isEditable(){return this.data.isEditable}get hasPopupData(){return Dr._hasPopupData(this.data)||this.enableComment&&!!this.commentText}get commentData(){const{data:e}=this,n=this.annotationStorage?.getEditor(e.id);return n?n.getData():e}get hasCommentButton(){return this.enableComment&&this.hasPopupElement}
vendor: 4,485 bytes, line 166
166get commentButtonPosition(){const e=this.annotationStorage?.getEditor(this.data.id);if(e)return e.commentButtonPositionInPage;const{quadPoints:n,inkLists:r,rect:i}=this.data;let s=-1/0,a=-1/0;if(n?.length>=8){for(let o=0;o<n.length;o+=8)n[o+1]>a?(a=n[o+1],s=n[o+2]):n[o+1]===a&&(s=Math.max(s,n[o+2]));return[s,a]}if(r?.length>=1){for(const o of r)for(let l=0,u=o.length;l<u;l+=2)o[l+1]>a?(a=o[l+1],s=o[l]):o[l+1]===a&&(s=Math.max(s,o[l]));if(s!==1/0)return[s,a]}return i?[i[2],i[3]]:null}_normalizePoint(e){const{page:{view:n},viewport:{rawDims:{pageWidth:r,pageHeight:i,pageX:s,pageY:a}}}=this.parent;return e[1]=n[3]-e[1]+n[1],e[0]=100*(e[0]-s)/r,e[1]=100*(e[1]-a)/i,e}get commentText(){const{data:e}=this;return this.annotationStorage.getRawValue(`${Tv}${e.id}`)?.popup?.contents||e.contentsObj?.str||""}set commentText(e){const{data:n}=this,r={deleted:!e,contents:e||""};this.annotationStorage.updateEditor(n.id,{popup:r})||this.annotationStorage.setValue(`${Tv}${n.id}`,{id:n.id,annotationType:n.annotationType,pageIndex:this.parent.page._pageIndex,popup:r,popupRef:n.popupRef,modificationDate:new Date}),e||this.removePopup()}removePopup(){(this.#r?.popup||this.popup)?.remove(),this.#r=this.popup=null}updateEdited(e){if(!this.container)return;e.rect&&(this.#e||={rect:this.data.rect.slice(0)});const{rect:n,popup:r}=e;n&&this.#n(n);let i=this.#r?.popup||this.popup;!i&&r?.text&&(this._createPopup(r),i=this.#r.popup),i&&(i.updateEdited(e),r?.deleted&&(i.remove(),this.#r=null,this.popup=null))}resetEdited(){this.#e&&(this.#n(this.#e.rect),this.#r?.popup.resetEdited(),this.#e=null)}#n(e){const{container:{style:n},data:{rect:r,rotation:i},parent:{viewport:{rawDims:{pageWidth:s,pageHeight:a,pageX:o,pageY:l}}}}=this;r?.splice(0,4,...e),n.left=`${100*(e[0]-o)/s}%`,n.top=`${100*(a-e[3]+l)/a}%`,i===0?(n.width=`${100*(e[2]-e[0])/s}%`,n.height=`${100*(e[3]-e[1])/a}%`):this.setRotation(i)}_createContainer(e){const{data:n,parent:{page:r,viewport:i}}=this,s=document.createElement("section");s.setAttribute("data-annotation-id",n.id),!(this instanceof Hp)&&!(this instanceof tB)&&(s.tabIndex=0);const{style:a}=s;if(a.zIndex=this.parent.zIndex,this.parent.zIndex+=2,n.alternativeText&&(s.title=n.alternativeText),n.noRotate&&s.classList.add("norotate"),!n.rect||this instanceof I9){const{rotation:b}=n;return!n.hasOwnCanvas&&b!==0&&this.setRotation(b,s),s}const{width:o,height:l}=this;if(!e&&n.borderStyle.width>0){a.borderWidth=`${n.borderStyle.width}px`;const b=n.borderStyle.horizontalCornerRadius,v=n.borderStyle.verticalCornerRadius;if(b>0||v>0){const x=`calc(${b}px * var(--total-scale-factor)) / calc(${v}px * var(--total-scale-factor))`;a.borderRadius=x}else if(this instanceof mve){const x=`calc(${o}px * var(--total-scale-factor)) / calc(${l}px * var(--total-scale-factor))`;a.borderRadius=x}switch(n.borderStyle.style){case Qm.SOLID:a.borderStyle="solid";break;case Qm.DASHED:a.borderStyle="dashed";break;case Qm.BEVELED:Vt("Unimplemented border style: beveled");break;case Qm.INSET:Vt("Unimplemented border style: inset");break;case Qm.UNDERLINE:a.borderBottomStyle="solid";break}const E=n.borderColor||null;E?(this.#t=!0,a.borderColor=ut.makeHexColor(E[0]|0,E[1]|0,E[2]|0)):a.borderWidth=0}const u=ut.normalizeRect([n.rect[0],r.view[3]-n.rect[1]+r.view[1],n.rect[2],r.view[3]-n.rect[3]+r.view[1]]),{pageWidth:c,pageHeight:d,pageX:h,pageY:m}=i.rawDims;a.left=`${100*(u[0]-h)/c}%`,a.top=`${100*(u[1]-m)/d}%`;const{rotation:g}=n;return n.hasOwnCanvas||g===0?(a.width=`${100*o/c}%`,a.height=`${100*l/d}%`):this.setRotation(g,s),s}setRotation(e,n=this.container){if(!this.data.rect)return;const{pageWidth:r,pageHeight:i}=this.parent.viewport.rawDims;let{width:s,height:a}=this;e%180!==0&&([s,a]=[a,s]),n.style.width=`${100*s/r}%`,n.style.height=`${100*a/i}%`,n.setAttribute("data-main-rotation",(360-e)%360)}get _commonActions(){const e=(n,r,i)=>{const s=i.detail[n],a=s[0],o=s.slice(1);i.target.style[r]=VZ[`${a}_HTML`](o),this.annotationStorage.setValue(this.data.id,{[r]:VZ[`${a}_rgb`](o)})};return Zt(this,"_commonActions",{display:n=>{const{display:r}=n.detail,i=r%2===1;this.container.style.visibility=i?"hidden":"visible",this.annotationStorage.setValue(this.data.id,{noView:i,noPrint:r===1||r===2})},print:n=>{this.annotationStorage.setValue(this.data.id,{noPrint:!n.detail.print})},hidden:n=>{const{hidden:r}=n.detail;this.container.style.visibility=r?"hidden":"visible",this.annotationStorage.setValue(this.data.id,{noPrint:r,noView:r})},focus:n=>{setTimeout(()=>
vendor: 8,896 bytes, line 166
166n.target.focus({preventScroll:!1}),0)},userName:n=>{n.target.title=n.detail.userName},readonly:n=>{n.target.disabled=n.detail.readonly},required:n=>{this._setRequired(n.target,n.detail.required)},bgColor:n=>{e("bgColor","backgroundColor",n)},fillColor:n=>{e("fillColor","backgroundColor",n)},fgColor:n=>{e("fgColor","color",n)},textColor:n=>{e("textColor","color",n)},borderColor:n=>{e("borderColor","borderColor",n)},strokeColor:n=>{e("strokeColor","borderColor",n)},rotation:n=>{const r=n.detail.rotation;this.setRotation(r),this.annotationStorage.setValue(this.data.id,{rotation:r})}})}_dispatchEventFromSandbox(e,n){const r=this._commonActions;for(const i of Object.keys(n.detail))(e[i]||r[i])?.(n)}_setDefaultPropertiesFromJS(e){if(!this.enableScripting)return;const n=this.annotationStorage.getRawValue(this.data.id);if(!n)return;const r=this._commonActions;for(const[i,s]of Object.entries(n)){const a=r[i];if(a){const o={detail:{[i]:s},target:e};a(o),delete n[i]}}}_createQuadrilaterals(){if(!this.container)return;const{quadPoints:e}=this.data;if(!e)return;const[n,r,i,s]=this.data.rect.map(b=>Math.fround(b));if(e.length===8){const[b,v,E,x]=e.subarray(2,6);if(i===b&&s===v&&n===E&&r===x)return}const{style:a}=this.container;let o;if(this.#t){const{borderColor:b,borderWidth:v}=a;a.borderWidth=0,o=["url('data:image/svg+xml;utf8,",'<svg xmlns="http://www.w3.org/2000/svg"',' preserveAspectRatio="none" viewBox="0 0 1 1">',`<g fill="transparent" stroke="${b}" stroke-width="${v}">`],this.container.classList.add("hasBorder")}const l=i-n,u=s-r,{svgFactory:c}=this,d=c.createElement("svg");d.classList.add("quadrilateralsContainer"),d.setAttribute("width",0),d.setAttribute("height",0),d.role="none";const h=c.createElement("defs");d.append(h);const m=c.createElement("clipPath"),g=`clippath_${this.data.id}`;m.setAttribute("id",g),m.setAttribute("clipPathUnits","objectBoundingBox"),h.append(m);for(let b=2,v=e.length;b<v;b+=8){const E=e[b],x=e[b+1],_=e[b+2],S=e[b+3],A=c.createElement("rect"),R=(_-n)/l,T=(s-x)/u,O=(E-_)/l,I=(x-S)/u;A.setAttribute("x",R),A.setAttribute("y",T),A.setAttribute("width",O),A.setAttribute("height",I),m.append(A),o?.push(`<rect vector-effect="non-scaling-stroke" x="${R}" y="${T}" width="${O}" height="${I}"/>`)}this.#t&&(o.push("</g></svg>')"),a.backgroundImage=o.join("")),this.container.append(d),this.container.style.clipPath=`url(#${g})`}_createPopup(e=null){const{data:n}=this;let r,i;e?(r={str:e.text},i=e.date):(r=n.contentsObj,i=n.modificationDate);const s=this.#r=new I9({data:{color:n.color,titleObj:n.titleObj,modificationDate:i,contentsObj:r,richText:n.richText,parentRect:n.rect,borderStyle:0,id:`popup_${n.id}`,rotation:n.rotation,noRotate:!0},linkService:this.linkService,parent:this.parent,elements:[this]});this.parent._commentManager||this.parent.div.append(s.render())}get hasPopupElement(){return!!(this.#r||this.popup||this.data.popupRef)}get extraPopupElement(){return this.#r}render(){er("Abstract method `AnnotationElement.render` called")}_getElementsByName(e,n=null){const r=[];if(this._fieldObjects){const i=this._fieldObjects[e];if(i)for(const{page:s,id:a,exportValues:o}of i){if(s===-1||a===n)continue;const l=typeof o=="string"?o:null,u=document.querySelector(`[data-element-id="${a}"]`);if(u&&!np.has(u)){Vt(`_getElementsByName - element not allowed: ${a}`);continue}r.push({id:a,exportValue:l,domElement:u})}return r}for(const i of document.getElementsByName(e)){const{exportValue:s}=i,a=i.getAttribute("data-element-id");a!==n&&np.has(i)&&r.push({id:a,exportValue:s,domElement:i})}return r}show(){this.container&&(this.container.hidden=!1),this.popup?.maybeShow()}hide(){this.container&&(this.container.hidden=!0),this.popup?.forceHide()}getElementsToTriggerPopup(){return this.container}addHighlightArea(){const e=this.getElementsToTriggerPopup();if(Array.isArray(e))for(const n of e)n.classList.add("highlightArea");else e.classList.add("highlightArea")}_editOnDoubleClick(){if(!this._isEditable)return;const{annotationEditorType:e,data:{id:n}}=this;this.container.addEventListener("dblclick",()=>{this.linkService.eventBus?.dispatch("switchannotationeditormode",{source:this,mode:e,editId:n,mustEnterInEditMode:!0})})}get width(){return this.data.rect[2]-this.data.rect[0]}get height(){return this.data.rect[3]-this.data.rect[1]}}class h0t extends Dr{constructor(e){super(e,{isRenderable:!0,ignoreBorder:!0}),this.editor=e.editor}render(){return this.container.className="editorAnnotation",this.container}createOrUpdatePopup(){const{editor:e}=this;e.hasComment&&(this._createPopup(e.comment),this.extraPopupElement.popup.renderCommentButton())}get hasCommentButton(){return this.enableComment&&this.editor.hasComment}get commentButtonPosition(){return this.editor.commentButtonPositionInPage}get commentText(){return this.editor.comment.text}set commentText(e){this.editor.comment=e,e||this.removePopup()}get commentData(){return this.editor.getData()}remove(){this.container.remove(),this.container=null,this.removePopup()}}class tB extends Dr{constructor(e,n=null){super(e,{isRenderable:!0,ignoreBorder:!!n?.ignoreBorder,createQuadrilaterals:!0}),this.isTooltipOnly=e.data.isTooltipOnly}render(){const{data:e,linkService:n}=this,r=document.createElement("a");r.setAttribute("data-element-id",e.id);let i=!1;return e.url?(n.addLinkAttributes(r,e.url,e.newWindow),i=!0):e.action?(this._bindNamedAction(r,e.action,e.overlaidText),i=!0):e.attachment?(this.#t(r,e.attachment,e.overlaidText,e.attachmentDest),i=!0):e.setOCGState?(this.#r(r,e.setOCGState,e.overlaidText),i=!0):e.dest?(this._bindLink(r,e.dest,e.overlaidText),i=!0):(e.actions&&(e.actions.Action||e.actions["Mouse Up"]||e.actions["Mouse Down"])&&this.enableScripting&&this.hasJSActions&&(this._bindJSAction(r,e),i=!0),e.resetForm?(this._bindResetFormAction(r,e.resetForm),i=!0):this.isTooltipOnly&&!i&&(this._bindLink(r,""),i=!0)),this.container.classList.add("linkAnnotation"),i&&this.container.append(r),this.container}#e(){this.container.setAttribute("data-internal-link","")}_bindLink(e,n,r=""){e.href=this.linkService.getDestinationHash(n),e.onclick=()=>(n&&this.linkService.goToDestination(n),!1),(n||n==="")&&this.#e(),r&&(e.title=r)}_bindNamedAction(e,n,r=""){e.href=this.linkService.getAnchorUrl(""),e.onclick=()=>(this.linkService.executeNamedAction(n),!1),r&&(e.title=r),this.#e()}#t(e,n,r="",i=null){e.href=this.linkService.getAnchorUrl(""),n.description?e.title=n.description:r&&(e.title=r),e.onclick=()=>(this.downloadManager?.openOrDownloadData(n.content,n.filename,i),!1),this.#e()}#r(e,n,r=""){e.href=this.linkService.getAnchorUrl(""),e.onclick=()=>(this.linkService.executeSetOCGState(n),!1),r&&(e.title=r),this.#e()}_bindJSAction(e,n){e.href=this.linkService.getAnchorUrl("");const r=new Map([["Action","onclick"],["Mouse Up","onmouseup"],["Mouse Down","onmousedown"]]);for(const i of Object.keys(n.actions)){const s=r.get(i);s&&(e[s]=()=>(this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:n.id,name:i}}),!1))}n.overlaidText&&(e.title=n.overlaidText),e.onclick||(e.onclick=()=>!1),this.#e()}_bindResetFormAction(e,n){const r=e.onclick;if(r||(e.href=this.linkService.getAnchorUrl("")),this.#e(),!this._fieldObjects){Vt('_bindResetFormAction - "resetForm" action not supported, ensure that the `fieldObjects` parameter is provided.'),r||(e.onclick=()=>!1);return}e.onclick=()=>{r?.();const{fields:i,refs:s,include:a}=n,o=[];if(i.length!==0||s.length!==0){const c=new Set(s);for(const d of i){const h=this._fieldObjects[d]||[];for(const{id:m}of h)c.add(m)}for(const d of Object.values(this._fieldObjects))for(const h of d)c.has(h.id)===a&&o.push(h)}else for(const c of Object.values(this._fieldObjects))o.push(...c);const l=this.annotationStorage,u=[];for(const c of o){const{id:d}=c;switch(u.push(d),c.type){case"text":{const m=c.defaultValue||"";l.setValue(d,{value:m});break}case"checkbox":case"radiobutton":{const m=c.defaultValue===c.exportValues;l.setValue(d,{value:m});break}case"combobox":case"listbox":{const m=c.defaultValue||"";l.setValue(d,{value:m});break}default:continue}const h=document.querySelector(`[data-element-id="${d}"]`);if(h){if(!np.has(h)){Vt(`_bindResetFormAction - element not allowed: ${d}`);continue}}else continue;h.dispatchEvent(new Event("resetform"))}return this.enableScripting&&this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:"app",ids:u,name:"ResetForm"}}),!1}}}class p0t extends Dr{constructor(e){super(e,{isRenderable:!0})}render(){this.container.classList.add("textAnnotation");const e=document.createElement("img");return e.src=this.imageResourcesPath+"annotation-"+this.data.name.toLowerCase()+".svg",e.setAttribute("data-l10n-id","pdfjs-text-annotation-type"),e.setAttribute("data-l10n-args",JSON.stringify({type:this.data.name})),!this.data.popupRef&&this.hasPopupData&&this._createPopup(),this.container.append(e),this.container}}
vendor: 2,156 bytes, line 166
166class Hp extends Dr{render(){return this.container}showElementAndHideCanvas(e){this.data.hasOwnCanvas&&(e.previousSibling?.nodeName==="CANVAS"&&(e.previousSibling.hidden=!0),e.hidden=!1)}_getKeyModifier(e){return zi.platform.isMac?e.metaKey:e.ctrlKey}_setEventListener(e,n,r,i,s){r.includes("mouse")?e.addEventListener(r,a=>{this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:this.data.id,name:i,value:s(a),shift:a.shiftKey,modifier:this._getKeyModifier(a)}})}):e.addEventListener(r,a=>{if(r==="blur"){if(!n.focused||!a.relatedTarget)return;n.focused=!1}else if(r==="focus"){if(n.focused)return;n.focused=!0}s&&this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:this.data.id,name:i,value:s(a)}})})}_setEventListeners(e,n,r,i){for(const[s,a]of r)(a==="Action"||this.data.actions?.[a])&&((a==="Focus"||a==="Blur")&&(n||={focused:!1}),this._setEventListener(e,n,s,a,i),a==="Focus"&&!this.data.actions?.Blur?this._setEventListener(e,n,"blur","Blur",null):a==="Blur"&&!this.data.actions?.Focus&&this._setEventListener(e,n,"focus","Focus",null))}_setBackgroundColor(e){const n=this.data.backgroundColor||null;e.style.backgroundColor=n===null?"transparent":ut.makeHexColor(n[0],n[1],n[2])}_setTextStyle(e){const n=["left","center","right"],{fontColor:r}=this.data.defaultAppearanceData,i=this.data.defaultAppearanceData.fontSize||d0t,s=e.style;let a;const o=2,l=u=>Math.round(10*u)/10;if(this.data.multiLine){const u=Math.abs(this.data.rect[3]-this.data.rect[1]-o),c=Math.round(u/(V4*i))||1,d=u/c;a=Math.min(i,l(d/V4))}else{const u=Math.abs(this.data.rect[3]-this.data.rect[1]-o);a=Math.min(i,l(u/V4))}s.fontSize=`calc(${a}px * var(--total-scale-factor))`,s.color=ut.makeHexColor(r[0],r[1],r[2]),this.data.textAlignment!==null&&(s.textAlign=n[this.data.textAlignment])}_setRequired(e,n){n?e.setAttribute("required",!0):e.removeAttribute("required"),e.setAttribute("aria-required",n)}}class m0t extends Hp{constructor(e){const n=e.renderForms||e.data.hasOwnCanvas||!e.data.hasAppearance&&!!e.data.fieldValue;super(e,{isRenderable:n})}setPropertyOnSiblings(e,n,r,i){const s=this.annotationStorage;
vendor: 4,336 bytes, lines 166-167
166for(const a of this._getElementsByName(e.name,e.id))a.domElement&&(a.domElement[n]=r),s.setValue(a.id,{[i]:r})}render(){const e=this.annotationStorage,n=this.data.id;this.container.classList.add("textWidgetAnnotation");let r=null;if(this.renderForms){const i=e.getValue(n,{value:this.data.fieldValue});let s=i.value||"";const a=e.getValue(n,{charLimit:this.data.maxLen}).charLimit;a&&s.length>a&&(s=s.slice(0,a));let o=i.formattedValue||this.data.textContent?.join(` 167`)||null;o&&this.data.comb&&(o=o.replaceAll(/\s+/g,""));const l={userValue:s,formattedValue:o,lastCommittedValue:null,commitKey:1,focused:!1};this.data.multiLine?(r=document.createElement("textarea"),r.textContent=o??s,this.data.doNotScroll&&(r.style.overflowY="hidden")):(r=document.createElement("input"),r.type=this.data.password?"password":"text",r.setAttribute("value",o??s),this.data.doNotScroll&&(r.style.overflowX="hidden")),this.data.hasOwnCanvas&&(r.hidden=!0),np.add(r),r.setAttribute("data-element-id",n),r.disabled=this.data.readOnly,r.name=this.data.fieldName,r.tabIndex=0;const{datetimeFormat:u,datetimeType:c,timeStep:d}=this.data,h=!!c&&this.enableScripting;u&&(r.title=u),this._setRequired(r,this.data.required),a&&(r.maxLength=a),r.addEventListener("input",g=>{e.setValue(n,{value:g.target.value}),this.setPropertyOnSiblings(r,"value",g.target.value,"value"),l.formattedValue=null}),r.addEventListener("resetform",g=>{const b=this.data.defaultFieldValue??"";r.value=l.userValue=b,l.formattedValue=null});let m=g=>{const{formattedValue:b}=l;b!=null&&(g.target.value=b),g.target.scrollLeft=0};if(this.enableScripting&&this.hasJSActions){r.addEventListener("focus",b=>{if(l.focused)return;const{target:v}=b;if(h&&(v.type=c,d&&(v.step=d)),l.userValue){const E=l.userValue;if(h)if(c==="time"){const x=new Date(E),_=[x.getHours(),x.getMinutes(),x.getSeconds()];v.value=_.map(S=>S.toString().padStart(2,"0")).join(":")}else v.value=new Date(E-f0t).toISOString().split(c==="date"?"T":".",1)[0];else v.value=E}l.lastCommittedValue=v.value,l.commitKey=1,this.data.actions?.Focus||(l.focused=!0)}),r.addEventListener("updatefromsandbox",b=>{this.showElementAndHideCanvas(b.target);const v={value(E){l.userValue=E.detail.value??"",h||e.setValue(n,{value:l.userValue.toString()}),E.target.value=l.userValue},formattedValue(E){const{formattedValue:x}=E.detail;l.formattedValue=x,x!=null&&E.target!==document.activeElement&&(E.target.value=x);const _={formattedValue:x};h&&(_.value=x),e.setValue(n,_)},selRange(E){E.target.setSelectionRange(...E.detail.selRange)},charLimit:E=>{const{charLimit:x}=E.detail,{target:_}=E;if(x===0){_.removeAttribute("maxLength");return}_.setAttribute("maxLength",x);let S=l.userValue;!S||S.length<=x||(S=S.slice(0,x),_.value=l.userValue=S,e.setValue(n,{value:S}),this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:n,name:"Keystroke",value:S,willCommit:!0,commitKey:1,selStart:_.selectionStart,selEnd:_.selectionEnd}}))}};this._dispatchEventFromSandbox(v,b)}),r.addEventListener("keydown",b=>{l.commitKey=1;let v=-1;if(b.key==="Escape"?v=0:b.key==="Enter"&&!this.data.multiLine?v=2:b.key==="Tab"&&(l.commitKey=3),v===-1)return;const{value:E}=b.target;l.lastCommittedValue!==E&&(l.lastCommittedValue=E,l.userValue=E,this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:n,name:"Keystroke",value:E,willCommit:!0,commitKey:v,selStart:b.target.selectionStart,selEnd:b.target.selectionEnd}}))});const g=m;m=null,r.addEventListener("blur",b=>{if(!l.focused||!b.relatedTarget)return;this.data.actions?.Blur||(l.focused=!1);const{target:v}=b;let{value:E}=v;if(h){if(E&&c==="time"){const x=E.split(":").map(_=>parseInt(_,10));E=new Date(2e3,0,1,x[0],x[1],x[2]||0).valueOf(),v.step=""}else E.includes("T")||(E=`${E}T00:00`),E=new Date(E).valueOf();v.type="text"}l.userValue=E,l.lastCommittedValue!==E&&this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:n,name:"Keystroke",value:E,willCommit:!0,commitKey:l.commitKey,selStart:b.target.selectionStart,selEnd:b.target.selectionEnd}}),g(b)}),this.data.actions?.Keystroke&&r.addEventListener("beforeinput",b=>{l.lastCommittedValue=null;const{data:v,target:E}=b,{value:x,selectionStart:_,selectionEnd:S}=E;let A=_,R=S;switch(b.inputType){case"deleteWordBackward":{const T=x.substring(0,_).match(/\w*[^\
vendor: 4,184 bytes, line 167
167w]*$/);T&&(A-=T[0].length);break}case"deleteWordForward":{const T=x.substring(_).match(/^[^\w]*\w*/);T&&(R+=T[0].length);break}case"deleteContentBackward":_===S&&(A-=1);break;case"deleteContentForward":_===S&&(R+=1);break}b.preventDefault(),this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:n,name:"Keystroke",value:x,change:v||"",willCommit:!1,selStart:A,selEnd:R}})}),this._setEventListeners(r,l,[["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"]],b=>b.target.value)}if(m&&r.addEventListener("blur",m),this.data.comb){const b=(this.data.rect[2]-this.data.rect[0])/a;r.classList.add("comb"),r.style.letterSpacing=`calc(${b}px * var(--total-scale-factor) - 1ch)`}}else r=document.createElement("div"),r.textContent=this.data.fieldValue,r.style.verticalAlign="middle",r.style.display="table-cell",this.data.hasOwnCanvas&&(r.hidden=!0);return this._setTextStyle(r),this._setBackgroundColor(r),this._setDefaultPropertiesFromJS(r),this.container.append(r),this.container}}class g0t extends Hp{constructor(e){super(e,{isRenderable:!!e.data.hasOwnCanvas})}}class y0t extends Hp{constructor(e){super(e,{isRenderable:e.renderForms})}render(){const e=this.annotationStorage,n=this.data,r=n.id;let i=e.getValue(r,{value:n.exportValue===n.fieldValue}).value;typeof i=="string"&&(i=i!=="Off",e.setValue(r,{value:i})),this.container.classList.add("buttonWidgetAnnotation","checkBox");const s=document.createElement("input");return np.add(s),s.setAttribute("data-element-id",r),s.disabled=n.readOnly,this._setRequired(s,this.data.required),s.type="checkbox",s.name=n.fieldName,i&&s.setAttribute("checked",!0),s.setAttribute("exportValue",n.exportValue),s.tabIndex=0,s.addEventListener("change",a=>{const{name:o,checked:l}=a.target;for(const u of this._getElementsByName(o,r)){const c=l&&u.exportValue===n.exportValue;u.domElement&&(u.domElement.checked=c),e.setValue(u.id,{value:c})}e.setValue(r,{value:l})}),s.addEventListener("resetform",a=>{const o=n.defaultFieldValue||"Off";a.target.checked=o===n.exportValue}),this.enableScripting&&this.hasJSActions&&(s.addEventListener("updatefromsandbox",a=>{const o={value(l){l.target.checked=l.detail.value!=="Off",e.setValue(r,{value:l.target.checked})}};this._dispatchEventFromSandbox(o,a)}),this._setEventListeners(s,null,[["change","Validate"],["change","Action"],["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"]],a=>a.target.checked)),this._setBackgroundColor(s),this._setDefaultPropertiesFromJS(s),this.container.append(s),this.container}}class mve extends Hp{constructor(e){super(e,{isRenderable:e.renderForms})}render(){this.container.classList.add("buttonWidgetAnnotation","radioButton");const e=this.annotationStorage,n=this.data,r=n.id;let i=e.getValue(r,{value:n.fieldValue===n.buttonValue}).value;if(typeof i=="string"&&(i=i!==n.buttonValue,e.setValue(r,{value:i})),i)for(const a of this._getElementsByName(n.fieldName,r))e.setValue(a.id,{value:!1});const s=document.createElement("input");if(np.add(s),s.setAttribute("data-element-id",r),s.disabled=n.readOnly,this._setRequired(s,this.data.required),s.type="radio",s.name=n.fieldName,i&&s.setAttribute("checked",!0),s.tabIndex=0,s.addEventListener("change",a=>{const{name:o,checked:l}=a.target;for(const u of this._getElementsByName(o,r))e.setValue(u.id,{value:!1});e.setValue(r,{value:l})}),s.addEventListener("resetform",a=>{const o=n.defaultFieldValue;a.target.checked=o!=null&&o===n.buttonValue}),this.enableScripting&&this.hasJSActions){const a=n.buttonValue;s.addEventListener("updatefromsandbox",o=>{const l={value:u=>{const c=a===u.detail.value;for(const d of this._getElementsByName(u.target.name)){const h=c&&d.id===r;d.domElement&&(d.domElement.checked=h),e.setValue(d.id,{value:h})}}};this._dispatchEventFromSandbox(l,o)}),this._setEventListeners(s,null,[["change","Validate"],["change","Action"],["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"]],o=>o.target.checked)}
vendor: 4,569 bytes, line 167
167return this._setBackgroundColor(s),this._setDefaultPropertiesFromJS(s),this.container.append(s),this.container}}class b0t extends tB{constructor(e){super(e,{ignoreBorder:e.data.hasAppearance})}render(){const e=super.render();e.classList.add("buttonWidgetAnnotation","pushButton");const n=e.lastChild;return this.enableScripting&&this.hasJSActions&&n&&(this._setDefaultPropertiesFromJS(n),n.addEventListener("updatefromsandbox",r=>{this._dispatchEventFromSandbox({},r)})),e}}class v0t extends Hp{constructor(e){super(e,{isRenderable:e.renderForms})}render(){this.container.classList.add("choiceWidgetAnnotation");const e=this.annotationStorage,n=this.data.id,r=e.getValue(n,{value:this.data.fieldValue}),i=document.createElement("select");np.add(i),i.setAttribute("data-element-id",n),i.disabled=this.data.readOnly,this._setRequired(i,this.data.required),i.name=this.data.fieldName,i.tabIndex=0;let s=this.data.combo&&this.data.options.length>0;this.data.combo||(i.size=this.data.options.length,this.data.multiSelect&&(i.multiple=!0)),i.addEventListener("resetform",c=>{const d=this.data.defaultFieldValue;for(const h of i.options)h.selected=h.value===d});for(const c of this.data.options){const d=document.createElement("option");d.textContent=c.displayValue,d.value=c.exportValue,r.value.includes(c.exportValue)&&(d.setAttribute("selected",!0),s=!1),i.append(d)}let a=null;if(s){const c=document.createElement("option");c.value=" ",c.setAttribute("hidden",!0),c.setAttribute("selected",!0),i.prepend(c),a=()=>{c.remove(),i.removeEventListener("input",a),a=null},i.addEventListener("input",a)}const o=c=>{const d=c?"value":"textContent",{options:h,multiple:m}=i;return m?Array.prototype.filter.call(h,g=>g.selected).map(g=>g[d]):h.selectedIndex===-1?null:h[h.selectedIndex][d]};let l=o(!1);const u=c=>{const d=c.target.options;return Array.prototype.map.call(d,h=>({displayValue:h.textContent,exportValue:h.value}))};return this.enableScripting&&this.hasJSActions?(i.addEventListener("updatefromsandbox",c=>{const d={value(h){a?.();const m=h.detail.value,g=new Set(Array.isArray(m)?m:[m]);for(const b of i.options)b.selected=g.has(b.value);e.setValue(n,{value:o(!0)}),l=o(!1)},multipleSelection(h){i.multiple=!0},remove(h){const m=i.options,g=h.detail.remove;m[g].selected=!1,i.remove(g),m.length>0&&Array.prototype.findIndex.call(m,v=>v.selected)===-1&&(m[0].selected=!0),e.setValue(n,{value:o(!0),items:u(h)}),l=o(!1)},clear(h){for(;i.length!==0;)i.remove(0);e.setValue(n,{value:null,items:[]}),l=o(!1)},insert(h){const{index:m,displayValue:g,exportValue:b}=h.detail.insert,v=i.children[m],E=document.createElement("option");E.textContent=g,E.value=b,v?v.before(E):i.append(E),e.setValue(n,{value:o(!0),items:u(h)}),l=o(!1)},items(h){const{items:m}=h.detail;for(;i.length!==0;)i.remove(0);for(const g of m){const{displayValue:b,exportValue:v}=g,E=document.createElement("option");E.textContent=b,E.value=v,i.append(E)}i.options.length>0&&(i.options[0].selected=!0),e.setValue(n,{value:o(!0),items:u(h)}),l=o(!1)},indices(h){const m=new Set(h.detail.indices);for(const g of h.target.options)g.selected=m.has(g.index);e.setValue(n,{value:o(!0)}),l=o(!1)},editable(h){h.target.disabled=!h.detail.editable}};this._dispatchEventFromSandbox(d,c)}),i.addEventListener("input",c=>{const d=o(!0),h=o(!1);e.setValue(n,{value:d}),c.preventDefault(),this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:n,name:"Keystroke",value:l,change:h,changeEx:d,willCommit:!1,commitKey:1,keyDown:!1}})}),this._setEventListeners(i,null,[["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"],["input","Action"],["input","Validate"]],c=>c.target.value)):i.addEventListener("input",function(c){e.setValue(n,{value:o(!0)})}),this.data.combo&&this._setTextStyle(i),this._setBackgroundColor(i),this._setDefaultPropertiesFromJS(i),this.container.append(i),this.container}}class I9 extends Dr{constructor(e){const{data:n,elements:r,parent:i}=e,s=!!i._commentManager;if(super(e,{isRenderable:!s&&Dr._hasPopupData(n)}),this.elements=r,s&&Dr._hasPopupData(n)){const a=this.popup=this.#e();for(const o of r)o.popup=a}else this.popup=null}#e(){return new E0t({container:this.container,color:this.data.color,titleObj:this.data.titleObj,modificationDate:this.data.modificationDate||this.data.creationDate,contentsObj:this.data.contentsObj,richText:this.data.richText,rect:this.data.rect,parentRect:this.data.parentRect||null,parent:this.parent,elements:this.elements,open:this.data.open,c
vendor: 26,647 bytes, lines 167-169
167ommentManager:this.parent._commentManager})}render(){const{container:e}=this;e.classList.add("popupAnnotation"),e.role="comment";const n=this.popup=this.#e(),r=[];for(const i of this.elements)i.popup=n,i.container.ariaHasPopup="dialog",r.push(i.data.id),i.addHighlightArea();return this.container.setAttribute("aria-controls",r.map(i=>`${zF}${i}`).join(",")),this.container}}class E0t{#e=null;#t=this.#V.bind(this);#r=this.#B.bind(this);#n=this.#M.bind(this);#i=this.#_.bind(this);#s=null;#a=null;#o=null;#u=null;#l=null;#f=null;#d=null;#h=!1;#g=null;#p=null;#c=null;#m=null;#y=null;#v=null;#b=null;#S=null;#x=null;#E=null;#T=!1;#w=null;#C=null;constructor({container:e,color:n,elements:r,titleObj:i,modificationDate:s,contentsObj:a,richText:o,parent:l,rect:u,parentRect:c,open:d,commentManager:h=null}){this.#a=e,this.#x=i,this.#o=a,this.#S=o,this.#f=l,this.#s=n,this.#b=u,this.#d=c,this.#l=r,this.#e=h,this.#w=r[0],this.#u=cC.toDateObject(s),this.trigger=r.flatMap(m=>m.getElementsToTriggerPopup()),h?this.renderCommentButton():(this.#O(),this.#a.hidden=!0,d&&this.#_())}#O(){if(this.#p)return;this.#p=new AbortController;const{signal:e}=this.#p;for(const n of this.trigger)n.addEventListener("click",this.#i,{signal:e}),n.addEventListener("pointerenter",this.#n,{signal:e}),n.addEventListener("pointerleave",this.#r,{signal:e}),n.classList.add("popupTriggerArea");for(const n of this.#l)n.container?.addEventListener("keydown",this.#t,{signal:e})}#R(){const e=this.#l.find(n=>n.hasCommentButton);e&&(this.#y=e._normalizePoint(e.commentButtonPosition))}renderCommentButton(){if(this.#m||(this.#y||this.#R(),!this.#y))return;const{signal:e}=this.#p=new AbortController,n=!!this.#w.extraPopupElement,r=()=>{this.#e.toggleCommentPopup(this,!0,void 0,!n)},i=()=>{this.#e.toggleCommentPopup(this,!1,!0,!n)},s=()=>{this.#e.toggleCommentPopup(this,!1,!1)};if(n){this.#m=this.#w.container;for(const a of this.trigger)a.ariaHasPopup="dialog",a.ariaControls="commentPopup",a.addEventListener("keydown",this.#t,{signal:e}),a.addEventListener("click",r,{signal:e}),a.addEventListener("pointerenter",i,{signal:e}),a.addEventListener("pointerleave",s,{signal:e}),a.classList.add("popupTriggerArea")}else{const a=this.#m=document.createElement("button");a.className="annotationCommentButton";const o=this.#w.container;a.style.zIndex=o.style.zIndex+1,a.tabIndex=0,a.ariaHasPopup="dialog",a.ariaControls="commentPopup",a.setAttribute("data-l10n-id","pdfjs-show-comment-button"),this.#$(),this.#N(),a.addEventListener("keydown",this.#t,{signal:e}),a.addEventListener("click",r,{signal:e}),a.addEventListener("pointerenter",i,{signal:e}),a.addEventListener("pointerleave",s,{signal:e}),o.after(a)}}#N(){if(this.#w.extraPopupElement&&!this.#w.editor)return;this.renderCommentButton();const[e,n]=this.#y,{style:r}=this.#m;r.left=`calc(${e}%)`,r.top=`calc(${n}% - var(--comment-button-dim))`}#$(){this.#w.extraPopupElement||(this.renderCommentButton(),this.#m.style.backgroundColor=this.commentButtonColor||"")}get commentButtonColor(){const{color:e,opacity:n}=this.#w.commentData;return e?this.#f._commentManager.makeCommentColor(e,n):null}focusCommentButton(){setTimeout(()=>{this.#m?.focus()},0)}getData(){const{richText:e,color:n,opacity:r,creationDate:i,modificationDate:s}=this.#w.commentData;return{contentsObj:{str:this.comment},richText:e,color:n,opacity:r,creationDate:i,modificationDate:s}}get elementBeforePopup(){return this.#m}get comment(){return this.#C||=this.#w.commentText,this.#C}set comment(e){e!==this.comment&&(this.#w.commentText=this.#C=e)}get parentBoundingClientRect(){return this.#w.layer.getBoundingClientRect()}setCommentButtonStates({selected:e,hasPopup:n}){this.#m&&(this.#m.classList.toggle("selected",e),this.#m.ariaExpanded=n)}setSelectedCommentButton(e){this.#m.classList.toggle("selected",e)}get commentPopupPosition(){if(this.#v)return this.#v;const{x:e,y:n,height:r}=this.#m.getBoundingClientRect(),{x:i,y:s,width:a,height:o}=this.#w.layer.getBoundingClientRect();return[(e-i)/a,(n+r-s)/o]}set commentPopupPosition(e){this.#v=e}hasDefaultPopupPosition(){return this.#v===null}get commentButtonPosition(){return this.#y}get commentButtonWidth(){return this.#m.getBoundingClientRect().width/this.parentBoundingClientRect.width}editComment(e){const[n,r]=this.#v||this.commentButtonPosition.map(u=>u/100),i=this.parentBoundingClientRect,{x:s,y:a,width:o,height:l}=i;this.#e.showDialog(null,this,s+n*o,a+r*l,{...e,parentDimensions:i})}render(){if(this.#g)return;const e=this.#g=document.createElement("div");if(e.className="popup",this.#s){const r=e.style.outlineColor=ut.makeHexColor(...this.#s);e.style.backgroundColor=`color-mix(in srgb, ${r} 30%, white)`}const n=document.createElement("span");if(n.className="header",this.#x?.str){const r=document.createElement("span");r.className="title",n.append(r),{dir:r.dir,str:r.textContent}=this.#x}if(e.append(n),this.#u){const r=document.createElement("time");r.className="popupDate",r.setAttribute("data-l10n-id","pdfjs-annotation-date-time-string"),r.setAttribute("data-l10n-args",JSON.stringify({dateObj:this.#u.valueOf()})),r.dateTime=this.#u.toISOString(),n.append(r)}qF({html:this.#I||this.#o.str,dir:this.#o?.dir,className:"popupContent"},e),this.#a.append(e)}get#I(){const e=this.#S,n=this.#o;return e?.str&&(!n?.str||n.str===e.str)&&this.#S.html||null}get#D(){return this.#I?.attributes?.style?.fontSize||0}get#F(){return this.#I?.attributes?.style?.color||null}#P(e){const n=[],r={str:e,html:{name:"div",attributes:{dir:"auto"},children:[{name:"p",children:n}]}},i={style:{color:this.#F,fontSize:this.#D?`calc(${this.#D}px * var(--total-scale-factor))`:""}};for(const s of e.split(` 168`))n.push({name:"span",value:s,attributes:i});return r}#V(e){e.altKey||e.shiftKey||e.ctrlKey||e.metaKey||(e.key==="Enter"||e.key==="Escape"&&this.#h)&&this.#_()}updateEdited({rect:e,popup:n,deleted:r}){if(this.#e){r?(this.remove(),this.#C=null):n&&(n.deleted?this.remove():(this.#$(),this.#C=n.text)),e&&(this.#y=null,this.#R(),this.#N());return}if(r||n?.deleted){this.remove();return}this.#O(),this.#E||={contentsObj:this.#o,richText:this.#S},e&&(this.#c=null),n&&n.text&&(this.#S=this.#P(n.text),this.#u=cC.toDateObject(n.date),this.#o=null),this.#g?.remove(),this.#g=null}resetEdited(){this.#E&&({contentsObj:this.#o,richText:this.#S}=this.#E,this.#E=null,this.#g?.remove(),this.#g=null,this.#c=null)}remove(){if(this.#p?.abort(),this.#p=null,this.#g?.remove(),this.#g=null,this.#T=!1,this.#h=!1,this.#m?.remove(),this.#m=null,this.trigger)for(const e of this.trigger)e.classList.remove("popupTriggerArea")}#A(){if(this.#c!==null)return;const{page:{view:e},viewport:{rawDims:{pageWidth:n,pageHeight:r,pageX:i,pageY:s}}}=this.#f;let a=!!this.#d,o=a?this.#d:this.#b;for(const g of this.#l)if(!o||ut.intersect(g.data.rect,o)!==null){o=g.data.rect,a=!0;break}const l=ut.normalizeRect([o[0],e[3]-o[1]+e[1],o[2],e[3]-o[3]+e[1]]),c=a?o[2]-o[0]+5:0,d=l[0]+c,h=l[1];this.#c=[100*(d-i)/n,100*(h-s)/r];const{style:m}=this.#a;m.left=`${this.#c[0]}%`,m.top=`${this.#c[1]}%`}#_(){if(this.#e){this.#e.toggleCommentPopup(this,!1);return}this.#h=!this.#h,this.#h?(this.#M(),this.#a.addEventListener("click",this.#i),this.#a.addEventListener("keydown",this.#t)):(this.#B(),this.#a.removeEventListener("click",this.#i),this.#a.removeEventListener("keydown",this.#t))}#M(){this.#g||this.render(),this.isVisible?this.#h&&this.#a.classList.add("focused"):(this.#A(),this.#a.hidden=!1,this.#a.style.zIndex=parseInt(this.#a.style.zIndex)+1e3)}#B(){this.#a.classList.remove("focused"),!(this.#h||!this.isVisible)&&(this.#a.hidden=!0,this.#a.style.zIndex=parseInt(this.#a.style.zIndex)-1e3)}forceHide(){this.#T=this.isVisible,this.#T&&(this.#a.hidden=!0)}maybeShow(){this.#e||(this.#O(),this.#T&&(this.#g||this.#M(),this.#T=!1,this.#a.hidden=!1))}get isVisible(){return this.#e?!1:this.#a.hidden===!1}}class gve extends Dr{constructor(e){super(e,{isRenderable:!0,ignoreBorder:!0}),this.textContent=e.data.textContent,this.textPosition=e.data.textPosition,this.annotationEditorType=zt.FREETEXT}render(){if(this.container.classList.add("freeTextAnnotation"),this.textContent){const e=document.createElement("div");e.classList.add("annotationTextContent"),e.setAttribute("role","comment");for(const n of this.textContent){const r=document.createElement("span");r.textContent=n,e.append(r)}this.container.append(e)}return!this.data.popupRef&&this.hasPopupData&&this._createPopup(),this._editOnDoubleClick(),this.container}}class _0t extends Dr{#e=null;constructor(e){super(e,{isRenderable:!0,ignoreBorder:!0})}render(){this.container.classList.add("lineAnnotation");const{data:e,width:n,height:r}=this,i=this.svgFactory.create(n,r,!0),s=this.#e=this.svgFactory.createElement("svg:line");return s.setAttribute("x1",e.rect[2]-e.lineCoordinates[0]),s.setAttribute("y1",e.rect[3]-e.lineCoordinates[1]),s.setAttribute("x2",e.rect[2]-e.lineCoordinates[2]),s.setAttribute("y2",e.rect[3]-e.lineCoordinates[3]),s.setAttribute("stroke-width",e.borderStyle.width||1),s.setAttribute("stroke","transparent"),s.setAttribute("fill","transparent"),i.append(s),this.container.append(i),!e.popupRef&&this.hasPopupData&&this._createPopup(),this.container}getElementsToTriggerPopup(){return this.#e}addHighlightArea(){this.container.classList.add("highlightArea")}}class x0t extends Dr{#e=null;constructor(e){super(e,{isRenderable:!0,ignoreBorder:!0})}render(){this.container.classList.add("squareAnnotation");const{data:e,width:n,height:r}=this,i=this.svgFactory.create(n,r,!0),s=e.borderStyle.width,a=this.#e=this.svgFactory.createElement("svg:rect");return a.setAttribute("x",s/2),a.setAttribute("y",s/2),a.setAttribute("width",n-s),a.setAttribute("height",r-s),a.setAttribute("stroke-width",s||1),a.setAttribute("stroke","transparent"),a.setAttribute("fill","transparent"),i.append(a),this.container.append(i),!e.popupRef&&this.hasPopupData&&this._createPopup(),this.container}getElementsToTriggerPopup(){return this.#e}addHighlightArea(){this.container.classList.add("highlightArea")}}class w0t extends Dr{#e=null;constructor(e){super(e,{isRenderable:!0,ignoreBorder:!0})}render(){this.container.classList.add("circleAnnotation");const{data:e,width:n,height:r}=this,i=this.svgFactory.create(n,r,!0),s=e.borderStyle.width,a=this.#e=this.svgFactory.createElement("svg:ellipse");return a.setAttribute("cx",n/2),a.setAttribute("cy",r/2),a.setAttribute("rx",n/2-s/2),a.setAttribute("ry",r/2-s/2),a.setAttribute("stroke-width",s||1),a.setAttribute("stroke","transparent"),a.setAttribute("fill","transparent"),i.append(a),this.container.append(i),!e.popupRef&&this.hasPopupData&&this._createPopup(),this.container}getElementsToTriggerPopup(){return this.#e}addHighlightArea(){this.container.classList.add("highlightArea")}}class yve extends Dr{#e=null;constructor(e){super(e,{isRenderable:!0,ignoreBorder:!0}),this.containerClassName="polylineAnnotation",this.svgElementName="svg:polyline"}render(){this.container.classList.add(this.containerClassName);const{data:{rect:e,vertices:n,borderStyle:r,popupRef:i},width:s,height:a}=this;if(!n)return this.container;const o=this.svgFactory.create(s,a,!0);let l=[];for(let c=0,d=n.length;c<d;c+=2){const h=n[c]-e[0],m=e[3]-n[c+1];l.push(`${h},${m}`)}l=l.join(" ");const u=this.#e=this.svgFactory.createElement(this.svgElementName);return u.setAttribute("points",l),u.setAttribute("stroke-width",r.width||1),u.setAttribute("stroke","transparent"),u.setAttribute("fill","transparent"),o.append(u),this.container.append(o),!i&&this.hasPopupData&&this._createPopup(),this.container}getElementsToTriggerPopup(){return this.#e}addHighlightArea(){this.container.classList.add("highlightArea")}}class S0t extends yve{constructor(e){super(e),this.containerClassName="polygonAnnotation",this.svgElementName="svg:polygon"}}class C0t extends Dr{constructor(e){super(e,{isRenderable:!0,ignoreBorder:!0})}render(){return this.container.classList.add("caretAnnotation"),!this.data.popupRef&&this.hasPopupData&&this._createPopup(),this.container}}class nB extends Dr{#e=null;#t=[];constructor(e){super(e,{isRenderable:!0,ignoreBorder:!0}),this.containerClassName="inkAnnotation",this.svgElementName="svg:polyline",this.annotationEditorType=this.data.it==="InkHighlight"?zt.HIGHLIGHT:zt.INK}#r(e,n){switch(e){case 90:return{transform:`rotate(90) translate(${-n[0]},${n[1]}) scale(1,-1)`,width:n[3]-n[1],height:n[2]-n[0]};case 180:return{transform:`rotate(180) translate(${-n[2]},${n[1]}) scale(1,-1)`,width:n[2]-n[0],height:n[3]-n[1]};case 270:return{transform:`rotate(270) translate(${-n[2]},${n[3]}) scale(1,-1)`,width:n[3]-n[1],height:n[2]-n[0]};default:return{transform:`translate(${-n[0]},${n[3]}) scale(1,-1)`,width:n[2]-n[0],height:n[3]-n[1]}}}render(){this.container.classList.add(this.containerClassName);const{data:{rect:e,rotation:n,inkLists:r,borderStyle:i,popupRef:s}}=this,{transform:a,width:o,height:l}=this.#r(n,e),u=this.svgFactory.create(o,l,!0),c=this.#e=this.svgFactory.createElement("svg:g");u.append(c),c.setAttribute("stroke-width",i.width||1),c.setAttribute("stroke-linecap","round"),c.setAttribute("stroke-linejoin","round"),c.setAttribute("stroke-miterlimit",10),c.setAttribute("stroke","transparent"),c.setAttribute("fill","transparent"),c.setAttribute("transform",a);for(let d=0,h=r.length;d<h;d++){const m=this.svgFactory.createElement(this.svgElementName);this.#t.push(m),m.setAttribute("points",r[d].join(",")),c.append(m)}return!s&&this.hasPopupData&&this._createPopup(),this.container.append(u),this._editOnDoubleClick(),this.container}updateEdited(e){super.updateEdited(e);const{thickness:n,points:r,rect:i}=e,s=this.#e;if(n>=0&&s.setAttribute("stroke-width",n||1),r)for(let a=0,o=this.#t.length;a<o;a++)this.#t[a].setAttribute("points",r[a].join(","));if(i){const{transform:a,width:o,height:l}=this.#r(this.data.rotation,i);s.parentElement.setAttribute("viewBox",`0 0 ${o} ${l}`),s.setAttribute("transform",a)}}getElementsToTriggerPopup(){return this.#t}addHighlightArea(){this.container.classList.add("highlightArea")}}class bve extends Dr{constructor(e){super(e,{isRenderable:!0,ignoreBorder:!0,createQuadrilaterals:!0}),this.annotationEditorType=zt.HIGHLIGHT}render(){const{data:{overlaidText:e,popupRef:n}}=this;if(!n&&this.hasPopupData&&this._createPopup(),this.container.classList.add("highlightAnnotation"),this._editOnDoubleClick(),e){const r=document.createElement("mark");r.classList.add("overlaidText"),r.textContent=e,this.container.append(r)}return this.container}}class T0t extends Dr{constructor(e){super(e,{isRenderable:!0,ignoreBorder:!0,createQuadrilaterals:!0})}render(){const{data:{overlaidText:e,popupRef:n}}=this;if(!n&&this.hasPopupData&&this._createPopup(),this.container.classList.add("underlineAnnotation"),e){const r=document.createElement("u");r.classList.add("overlaidText"),r.textContent=e,this.container.append(r)}return this.container}}class A0t extends Dr{constructor(e){super(e,{isRenderable:!0,ignoreBorder:!0,createQuadrilaterals:!0})}render(){const{data:{overlaidText:e,popupRef:n}}=this;if(!n&&this.hasPopupData&&this._createPopup(),this.container.classList.add("squigglyAnnotation"),e){const r=document.createElement("u");r.classList.add("overlaidText"),r.textContent=e,this.container.append(r)}return this.container}}class R0t extends Dr{constructor(e){super(e,{isRenderable:!0,ignoreBorder:!0,createQuadrilaterals:!0})}render(){const{data:{overlaidText:e,popupRef:n}}=this;if(!n&&this.hasPopupData&&this._createPopup(),this.container.classList.add("strikeoutAnnotation"),e){const r=document.createElement("s");r.classList.add("overlaidText"),r.textContent=e,this.container.append(r)}return this.container}}class vve extends Dr{constructor(e){super(e,{isRenderable:!0,ignoreBorder:!0}),this.annotationEditorType=zt.STAMP}render(){return this.container.classList.add("stampAnnotation"),this.container.setAttribute("role","img"),!this.data.popupRef&&this.hasPopupData&&this._createPopup(),this._editOnDoubleClick(),this.container}}class N0t extends Dr{#e=null;constructor(e){super(e,{isRenderable:!0});const{file:n}=this.data;this.filename=n.filename,this.content=n.content,this.linkService.eventBus?.dispatch("fileattachmentannotation",{source:this,...n})}render(){this.container.classList.add("fileAttachmentAnnotation");const{container:e,data:n}=this;let r;n.hasAppearance||n.fillAlpha===0?r=document.createElement("div"):(r=document.createElement("img"),r.src=`${this.imageResourcesPath}annotation-${/paperclip/i.test(n.name)?"paperclip":"pushpin"}.svg`,n.fillAlpha&&n.fillAlpha<1&&(r.style=`filter: opacity(${Math.round(n.fillAlpha*100)}%);`)),r.addEventListener("dblclick",this.#t.bind(this)),this.#e=r;const{isMac:i}=zi.platform;return e.addEventListener("keydown",s=>{s.key==="Enter"&&(i?s.metaKey:s.ctrlKey)&&this.#t()}),!n.popupRef&&this.hasPopupData?this._createPopup():r.classList.add("popupTriggerArea"),e.append(r),e}getElementsToTriggerPopup(){return this.#e}addHighlightArea(){this.container.classList.add("highlightArea")}#t(){this.downloadManager?.openOrDownloadData(this.content,this.filename)}}let rB=class Eve{#e=null;#t=null;#r=null;#n=new Map;#i=null;#s=null;constructor({div:e,accessibilityManager:n,annotationCanvasMap:r,annotationEditorUIManager:i,page:s,viewport:a,structTreeLayer:o,commentManager:l,linkService:u,annotationStorage:c}){this.div=e,this.#e=n,this.#t=r,this.#i=o||null,this.#s=u||null,this.#r=c||new YF,this.page=s,this.viewport=a,this.zIndex=0,this._annotationEditorUIManager=i,this._commentManager=l||null}hasEditableAnnotations(){return this.#n.size>0}async#a(e,n,r){const i=e.firstChild||e,s=i.id=`${zF}${n}`,a=await this.#i?.getAriaAttributes(s);if(a)for(const[o,l]of a)i.setAttribute(o,l);r?r.at(-1).container.after(e):(this.div.append(e),this.#e?.moveElementInDOM(this.div,e,i,!1))}async render(e){const{annotations:n}=e,r=this.div;lf(r,this.viewport);const i=new Map,s={data:null,layer:r,linkService:this.#s,downloadManager:e.downloadManager,imageResourcesPath:e.imageResourcesPath||"",renderForms:e.renderForms!==!1,svgFactory:new kv,annotationStorage:this.#r,enableComment:e.enableComment===!0,enableScripting:e.enableScripting===!0,hasJSActions:e.hasJSActions,fieldObjects:e.fieldObjects,parent:this,elements:null};for(const a of n){if(a.noHTML)continue;const o=a.annotationType===Xr.POPUP;if(o){const c=i.get(a.id);if(!c)continue;s.elements=c}else if(a.rect[2]===a.rect[0]||a.rect[3]===a.rect[1])continue;s.data=a;const l=qZ.create(s);if(!l.isRenderable)continue;if(!o&&a.popupRef){const c=i.get(a.popupRef);c?c.push(l):i.set(a.popupRef,[l])}const u=l.render();a.hidden&&(u.style.visibility="hidden"),await this.#a(u,a.id,s.elements),l.extraPopupElement?.popup?.renderCommentButton(),l._isEditable&&(this.#n.set(l.data.id,l),this._annotationEditorUIManager?.renderAnnotationElement(l))}this.#o()}async addLinkAnnotations(e){const n={data:null,layer:this.div,linkService:this.#s,svgFactory:new kv,parent:this};for(const r of e){r.borderStyle||=Eve._defaultBorderStyle,n.data=r;const i=qZ.create(n);if(!i.isRenderable)continue;const s=i.render();await this.#a(s,r.id,null)}}update({viewport:e}){const n=this.div;this.viewport=e,lf(n,{rotation:e.rotation}),this.#o(),n.hidden=!1}#o(){if(!this.#t)return;const e=this.div;for(const[n,r]of this.#t){const i=e.querySelector(`[data-annotation-id="${n}"]`);if(!i)continue;r.className="annotationContent";const{firstChild:s}=i;s?s.nodeName==="CANVAS"?s.replaceWith(r):s.classList.contains("annotationContent")?s.after(r):s.before(r):i.append(r);const a=this.#n.get(n);a&&(a._hasNoCanvas?(this._annotationEditorUIManager?.setMissingCanvas(n,i.id,r),a._hasNoCanvas=!1):a.canvas=r)}this.#t.clear()}getEditableAnnotations(){return Array.from(this.#n.values())}getEditableAnnotation(e){return this.#n.get(e)}addFakeAnnotation(e){const{div:n}=this,{id:r,rotation:i}=e,s=new h0t({data:{id:r,rect:e.getPDFRect(),rotation:i},editor:e,layer:n,parent:this,enableComment:!!this._commentManager,linkService:this.#s,annotationStorage:this.#r}),a=s.render();return n.append(a),this.#e?.moveElementInDOM(n,a,a,!1),s.createOrUpdatePopup(),s}static get _defaultBorderStyle(){return Zt(this,"_defaultBorderStyle",Object.freeze({width:1,rawWidth:1,style:Qm.SOLID,dashArray:[3],horizontalCornerRadius:0,verticalCornerRadius:0}))}};const Dx=/\r\n?|\n/g;class Pi extends Rt{#e="";#t=`${this.id}-editor`;#r=null;#n;_colorPicker=null;static _freeTextDefaultContent="";static _internalPadding=0;static _defaultColor=null;static _defaultFontSize=10;static get _keyboardManager(){const e=Pi.prototype,n=s=>s.isEmpty(),r=Fc.TRANSLATE_SMALL,i=Fc.TRANSLATE_BIG;return Zt(this,"_keyboardManager",new rE([[["ctrl+s","mac+meta+s","ctrl+p","mac+meta+p"],e.commitOrRemove,{bubbles:!0}],[["ctrl+Enter","mac+meta+Enter","Escape","mac+Escape"],e.commitOrRemove],[["ArrowLeft","mac+ArrowLeft"],e._translateEmpty,{args:[-r,0],checker:n}],[["ctrl+ArrowLeft","mac+shift+ArrowLeft"],e._translateEmpty,{args:[-i,0],checker:n}],[["ArrowRight","mac+ArrowRight"],e._translateEmpty,{args:[r,0],checker:n}],[["ctrl+ArrowRight","mac+shift+ArrowRight"],e._translateEmpty,{args:[i,0],checker:n}],[["ArrowUp","mac+ArrowUp"],e._translateEmpty,{args:[0,-r],checker:n}],[["ctrl+ArrowUp","mac+shift+ArrowUp"],e._translateEmpty,{args:[0,-i],checker:n}],[["ArrowDown","mac+ArrowDown"],e._translateEmpty,{args:[0,r],checker:n}],[["ctrl+ArrowDown","mac+shift+ArrowDown"],e._translateEmpty,{args:[0,i],checker:n}]]))}static _type="freetext";static _editorType=zt.FREETEXT;constructor(e){super({...e,name:"freeTextEditor"}),this.color=e.color||Pi._defaultColor||Rt._defaultLineColor,this.#n=e.fontSize||Pi._defaultFontSize,this.annotationElementId||this._uiManager.a11yAlert("pdfjs-editor-freetext-added-alert")}static initialize(e,n){Rt.initialize(e,n);const r=getComputedStyle(document.documentElement);this._internalPadding=parseFloat(r.getPropertyValue("--freetext-padding"))}static updateDefaultParams(e,n){switch(e){case En.FREETEXT_SIZE:Pi._defaultFontSize=n;break;case En.FREETEXT_COLOR:Pi._defaultColor=n;break}}updateParams(e,n){switch(e){case En.FREETEXT_SIZE:this.#i(n);break;case En.FREETEXT_COLOR:this.#s(n);break}}static get defaultPropertiesToUpdate(){return[[En.FREETEXT_SIZE,Pi._defaultFontSize],[En.FREETEXT_COLOR,Pi._defaultColor||Rt._defaultLineColor]]}get propertiesToUpdate(){return[[En.FREETEXT_SIZE,this.#n],[En.FREETEXT_COLOR,this.color]]}get toolbarButtons(){return this._colorPicker||=new Ov(this),[["colorPicker",this._colorPicker]]}get colorType(){return En.FREETEXT_COLOR}#i(e){const n=i=>{this.editorDiv.style.fontSize=`calc(${i}px * var(--total-scale-factor))`,this.translate(0,-(i-this.#n)*this.parentScale),this.#n=i,this.#o()},r=this.#n;this.addCommands({cmd:n.bind(this,e),undo:n.bind(this,r),post:this._uiManager.updateUI.bind(this._uiManager,this),mustExec:!0,type:En.FREETEXT_SIZE,overwriteIfSameType:!0,keepUndo:!0})}onUpdatedColor(){this.editorDiv.style.color=this.color,this._colorPicker?.update(this.color),super.onUpdatedColor()}#s(e){const n=i=>{this.color=i,this.onUpdatedColor()},r=this.color;this.addCommands({cmd:n.bind(this,e),undo:n.bind(this,r),post:this._uiManager.updateUI.bind(this._uiManager,this),mustExec:!0,type:En.FREETEXT_COLOR,overwriteIfSameType:!0,keepUndo:!0})}_translateEmpty(e,n){this._uiManager.translateSelectedEditors(e,n,!0)}getInitialTranslation(){const e=this.parentScale;return[-Pi._internalPadding*e,-(Pi._internalPadding+this.#n)*e]}rebuild(){this.parent&&(super.rebuild(),this.div!==null&&(this.isAttachedToDOM||this.parent.add(this)))}enableEditMode(){if(!super.enableEditMode())return!1;this.overlayDiv.classList.remove("enabled"),this.editorDiv.contentEditable=!0,this._isDraggable=!1,this.div.removeAttribute("aria-activedescendant"),this.#r=new AbortController;const e=this._uiManager.combinedSignal(this.#r);return this.editorDiv.addEventListener("keydown",this.editorDivKeydown.bind(this),{signal:e}),this.editorDiv.addEventListener("focus",this.editorDivFocus.bind(this),{signal:e}),this.editorDiv.addEventListener("blur",this.editorDivBlur.bind(this),{signal:e}),this.editorDiv.addEventListener("input",this.editorDivInput.bind(this),{signal:e}),this.editorDiv.addEventListener("paste",this.editorDivPaste.bind(this),{signal:e}),!0}disableEditMode(){return super.disableEditMode()?(this.overlayDiv.classList.add("enabled"),this.editorDiv.contentEditable=!1,this.div.setAttribute("aria-activedescendant",this.#t),this._isDraggable=!0,this.#r?.abort(),this.#r=null,this.div.focus({preventScroll:!0}),this.isEditing=!1,this.parent.div.classList.add("freetextEditing"),!0):!1}focusin(e){this._focusEventsAllowed&&(super.focusin(e),e.target!==this.editorDiv&&this.editorDiv.focus())}onceAdded(e){this.width||(this.enableEditMode(),e&&this.editorDiv.focus(),this._initialOptions?.isCentered&&this.center(),this._initialOptions=null)}isEmpty(){return!this.editorDiv||this.editorDiv.innerText.trim()===""}remove(){this.isEditing=!1,this.parent&&(this.parent.setEditingState(!0),this.parent.div.classList.add("freetextEditing")),super.remove()}#a(){const e=[];this.editorDiv.normalize();let n=null;for(const r of this.editorDiv.childNodes)n?.nodeType===Node.TEXT_NODE&&r.nodeName==="BR"||(e.push(Pi.#u(r)),n=r);return e.join(` 169`)}#o(){const[e,n]=this.parentDimensions;let r;if(this.isAttachedToDOM)r=this.div.getBoundingClientRect();else{const{currentLayer:i,div:s}=this,a=s.style.display,o=s.classList.contains("hidden");s.classList.remove("hidden"),s.style.display="hidden",i.div.append(this.div),r=s.getBoundingClientRect(),s.remove(),s.style.display=a,s.classList.toggle("hidden",o)}this.rotation%180===this.parentRotation%180?(this.width=r.width/e,this.height=r.height/n):(this.width=r.height/e,this.height=r.width/n),this.fixAndSetPosition()}commit(){if(!this.isInEditMode())return;super.commit(),this.disableEditMode();const e=this.#e,n=this.#e=this.#a().trimEnd();if(e===n)return;const r=i=>{if(this.#e=i,!i){this.remove();return}this.#l(),this._uiManager.rebuild(this),this.#o()};this.addCommands({cmd:()=>{r(n)},undo:()=>{r(e)},mustExec:!1}),this.#o()}shouldGetKeyboardEvents(){return this.isInEditMode()}enterInEditMode(){this.enableEditMode(),this.editorDiv.focus()}keydown(e){e.target===this.div&&e.key==="Enter"&&(this.enterInEditMode(),e.preventDefault())}editorDivKeydown(e){Pi._keyboardManager.exec(this,e)}editorDivFocus(e){this.isEditing=!0}editorDivBlur(e){this.isEditing=!1}editorDivInput(e){this.parent.div.classList.toggle("freetextEditing",this.isEmpty())}disableEditing(){this.editorDiv.setAttribute("role","comment"),this.editorDiv.removeAttribute("aria-multiline")}enableEditing(){this.editorDiv.setAttribute("role","textbox"),this.editorDiv.setAttribute("aria-multiline",!0)}get canChangeContent(){return!0}
vendor: 4,560 bytes, lines 169-175
169render(){if(this.div)return this.div;let e,n;(this._isCopy||this.annotationElementId)&&(e=this.x,n=this.y),super.render(),this.editorDiv=document.createElement("div"),this.editorDiv.className="internal",this.editorDiv.setAttribute("id",this.#t),this.editorDiv.setAttribute("data-l10n-id","pdfjs-free-text2"),this.editorDiv.setAttribute("data-l10n-attrs","default-content"),this.enableEditing(),this.editorDiv.contentEditable=!0;const{style:r}=this.editorDiv;if(r.fontSize=`calc(${this.#n}px * var(--total-scale-factor))`,r.color=this.color,this.div.append(this.editorDiv),this.overlayDiv=document.createElement("div"),this.overlayDiv.classList.add("overlay","enabled"),this.div.append(this.overlayDiv),this._isCopy||this.annotationElementId){const[i,s]=this.parentDimensions;if(this.annotationElementId){const{position:a}=this._initialData;let[o,l]=this.getInitialTranslation();[o,l]=this.pageTranslationToScreen(o,l);const[u,c]=this.pageDimensions,[d,h]=this.pageTranslation;let m,g;switch(this.rotation){case 0:m=e+(a[0]-d)/u,g=n+this.height-(a[1]-h)/c;break;case 90:m=e+(a[0]-d)/u,g=n-(a[1]-h)/c,[o,l]=[l,-o];break;case 180:m=e-this.width+(a[0]-d)/u,g=n-(a[1]-h)/c,[o,l]=[-o,-l];break;case 270:m=e+(a[0]-d-this.height*c)/u,g=n+(a[1]-h-this.width*u)/c,[o,l]=[-l,o];break}this.setAt(m*i,g*s,o,l)}else this._moveAfterPaste(e,n);this.#l(),this._isDraggable=!0,this.editorDiv.contentEditable=!1}else this._isDraggable=!1,this.editorDiv.contentEditable=!0;return this.div}static#u(e){return(e.nodeType===Node.TEXT_NODE?e.nodeValue:e.innerText).replaceAll(Dx,"")}editorDivPaste(e){const n=e.clipboardData||window.clipboardData,{types:r}=n;if(r.length===1&&r[0]==="text/plain")return;e.preventDefault();const i=Pi.#d(n.getData("text")||"").replaceAll(Dx,` 170`);if(!i)return;const s=window.getSelection();if(!s.rangeCount)return;this.editorDiv.normalize(),s.deleteFromDocument();const a=s.getRangeAt(0);if(!i.includes(` 171`)){a.insertNode(document.createTextNode(i)),this.editorDiv.normalize(),s.collapseToStart();return}const{startContainer:o,startOffset:l}=a,u=[],c=[];if(o.nodeType===Node.TEXT_NODE){const m=o.parentElement;if(c.push(o.nodeValue.slice(l).replaceAll(Dx,"")),m!==this.editorDiv){let g=u;for(const b of this.editorDiv.childNodes){if(b===m){g=c;continue}g.push(Pi.#u(b))}}u.push(o.nodeValue.slice(0,l).replaceAll(Dx,""))}else if(o===this.editorDiv){let m=u,g=0;for(const b of this.editorDiv.childNodes)g++===l&&(m=c),m.push(Pi.#u(b))}this.#e=`${u.join(` 172`)}${i}${c.join(` 173`)}`,this.#l();const d=new Range;let h=Math.sumPrecise(u.map(m=>m.length));for(const{firstChild:m}of this.editorDiv.childNodes)if(m.nodeType===Node.TEXT_NODE){const g=m.nodeValue.length;if(h<=g){d.setStart(m,h),d.setEnd(m,h);break}h-=g}s.removeAllRanges(),s.addRange(d)}#l(){if(this.editorDiv.replaceChildren(),!!this.#e)for(const e of this.#e.split(` 174`)){const n=document.createElement("div");n.append(e?document.createTextNode(e):document.createElement("br")),this.editorDiv.append(n)}}#f(){return this.#e.replaceAll("Â "," ")}static#d(e){return e.replaceAll(" ","Â ")}get contentDiv(){return this.editorDiv}getPDFRect(){const e=Pi._internalPadding*this.parentScale;return this.getRect(e,e)}static async deserialize(e,n,r){let i=null;if(e instanceof gve){const{data:{defaultAppearanceData:{fontSize:a,fontColor:o},rect:l,rotation:u,id:c,popupRef:d,richText:h,contentsObj:m,creationDate:g,modificationDate:b},textContent:v,textPosition:E,parent:{page:{pageNumber:x}}}=e;if(!v||v.length===0)return null;i=e={annotationType:zt.FREETEXT,color:Array.from(o),fontSize:a,value:v.join(` 175`),position:E,pageIndex:x-1,rect:l.slice(0),rotation:u,annotationElementId:c,id:c,deleted:!1,popupRef:d,comment:m?.str||null,richText:h,creationDate:g,modificationDate:b}}const s=await super.deserialize(e,n,r);return s.#n=e.fontSize,s.color=ut.makeHexColor(...e.color),s.#e=Pi.#d(e.value),s._initialData=i,e.comment&&s.setCommentData(e),s}serialize(e=!1){if(this.isEmpty())return null;if(this.deleted)return this.serializeDeleted();const n=Rt._colorManager.convert(this.isAttachedToDOM?getComputedStyle(this.editorDiv).color:this.color),r=Object.assign(super.serialize(e),{color:n,fontSize:this.#n,value:this.#f()});return this.addComment(r),e?(r.isCopy=!0,r):this.annotationElementId&&!this.#h(r)?null:(r.id=this.annotationElementId,r)}#h(e){const{value:n,fontSize:r,color:i,pageIndex:s}=this._initialData;return this.hasEditedComment||this._hasBeenMoved||e.value!==n||e.fontSize!==r||e.color.some((a,o)=>a!==i[o])||e.pageIndex!==s}renderAnnotationElement(e){const n=super.renderAnnotationElement(e);
vendor: 2,568 bytes, lines 175-176
175if(!n)return null;const{style:r}=n;r.fontSize=`calc(${this.#n}px * var(--total-scale-factor))`,r.color=this.color,n.replaceChildren();for(const i of this.#e.split(` 176`)){const s=document.createElement("div");s.append(i?document.createTextNode(i):document.createElement("br")),n.append(s)}return e.updateEdited({rect:this.getPDFRect(),popup:this._uiManager.hasCommentManager()||this.hasEditedComment?this.comment:{text:this.#e}}),n}resetAnnotationElement(e){super.resetAnnotationElement(e),e.resetEdited()}}class lt{static PRECISION=1e-4;toSVGPath(){er("Abstract method `toSVGPath` must be implemented.")}get box(){er("Abstract getter `box` must be implemented.")}serialize(e,n){er("Abstract method `serialize` must be implemented.")}static _rescale(e,n,r,i,s,a){a||=new Float32Array(e.length);for(let o=0,l=e.length;o<l;o+=2)a[o]=n+e[o]*i,a[o+1]=r+e[o+1]*s;return a}static _rescaleAndSwap(e,n,r,i,s,a){a||=new Float32Array(e.length);for(let o=0,l=e.length;o<l;o+=2)a[o]=n+e[o+1]*i,a[o+1]=r+e[o]*s;return a}static _translate(e,n,r,i){i||=new Float32Array(e.length);for(let s=0,a=e.length;s<a;s+=2)i[s]=n+e[s],i[s+1]=r+e[s+1];return i}static svgRound(e){return Math.round(e*1e4)}static _normalizePoint(e,n,r,i,s){switch(s){case 90:return[1-n/r,e/i];case 180:return[1-e/r,1-n/i];case 270:return[n/r,1-e/i];default:return[e/r,n/i]}}static _normalizePagePoint(e,n,r){switch(r){case 90:return[1-n,e];case 180:return[1-e,1-n];case 270:return[n,1-e];default:return[e,n]}}static createBezierPoints(e,n,r,i,s,a){return[(e+5*r)/6,(n+5*i)/6,(5*r+s)/6,(5*i+a)/6,(r+s)/2,(i+a)/2]}}class Eh{#e;#t=[];#r;#n;#i=[];#s=new Float32Array(18);#a;#o;#u;#l;#f;#d;#h=[];static#g=8;static#p=2;static#c=Eh.#g+Eh.#p;constructor({x:e,y:n},r,i,s,a,o=0){this.#e=r,this.#d=s*i,this.#n=a,this.#s.set([NaN,NaN,NaN,NaN,e,n],6),this.#r=o,this.#l=Eh.#g*i,this.#u=Eh.#c*i,this.#f=i,this.#h.push(e,n)}isEmpty(){return isNaN(this.#s[8])}#m(){const e=this.#s.subarray(4,6),n=this.#s.subarray(16,18),[r,i,s,a]=this.#e;return[(this.#a+(e[0]-n[0])/2-r)/s,(this.#o+(e[1]-n[1])/2-i)/a,(this.#a+(n[0]-e[0])/2-r)/s,(this.#o+(n[1]-e[1])/2-i)/a]}add({x:e,y:n}){this.#a=e,this.#o=n;const[r,i,s,a]=this.#e;let[o,l,u,c]=this.#s.subarray(8,12);const d=e-u,h=n-c,m=Math.hypot(d,h);if(m<this.#u)return!1;const g=m-this.#l,b=g/m,v=b*d,E=b*h;let x=o,_=l;o=u,l=c,u+=v,c+=E,this.#h?.push(e,n);const S=-E/g,A=v/g,R=S*this.#d,T=A*this.#d;return this.#s.set(this.#s.subarray(2,8),0),this.#s.set([u+R,c+T],4),this.#s.set(this.#s.subarray(14,18),12),this.#s.set([u-R,c-T],16),isNaN(this.#s[6])?(this.#i.length===0&&(this.#s.set([o+R,l
vendor: 4,217 bytes, line 176
176+T],2),this.#i.push(NaN,NaN,NaN,NaN,(o+R-r)/s,(l+T-i)/a),this.#s.set([o-R,l-T],14),this.#t.push(NaN,NaN,NaN,NaN,(o-R-r)/s,(l-T-i)/a)),this.#s.set([x,_,o,l,u,c],6),!this.isEmpty()):(this.#s.set([x,_,o,l,u,c],6),Math.abs(Math.atan2(_-l,x-o)-Math.atan2(E,v))<Math.PI/2?([o,l,u,c]=this.#s.subarray(2,6),this.#i.push(NaN,NaN,NaN,NaN,((o+u)/2-r)/s,((l+c)/2-i)/a),[o,l,x,_]=this.#s.subarray(14,18),this.#t.push(NaN,NaN,NaN,NaN,((x+o)/2-r)/s,((_+l)/2-i)/a),!0):([x,_,o,l,u,c]=this.#s.subarray(0,6),this.#i.push(((x+5*o)/6-r)/s,((_+5*l)/6-i)/a,((5*o+u)/6-r)/s,((5*l+c)/6-i)/a,((o+u)/2-r)/s,((l+c)/2-i)/a),[u,c,o,l,x,_]=this.#s.subarray(12,18),this.#t.push(((x+5*o)/6-r)/s,((_+5*l)/6-i)/a,((5*o+u)/6-r)/s,((5*l+c)/6-i)/a,((o+u)/2-r)/s,((l+c)/2-i)/a),!0))}toSVGPath(){if(this.isEmpty())return"";const e=this.#i,n=this.#t;if(isNaN(this.#s[6])&&!this.isEmpty())return this.#y();const r=[];r.push(`M${e[4]} ${e[5]}`);for(let i=6;i<e.length;i+=6)isNaN(e[i])?r.push(`L${e[i+4]} ${e[i+5]}`):r.push(`C${e[i]} ${e[i+1]} ${e[i+2]} ${e[i+3]} ${e[i+4]} ${e[i+5]}`);this.#b(r);for(let i=n.length-6;i>=6;i-=6)isNaN(n[i])?r.push(`L${n[i+4]} ${n[i+5]}`):r.push(`C${n[i]} ${n[i+1]} ${n[i+2]} ${n[i+3]} ${n[i+4]} ${n[i+5]}`);return this.#v(r),r.join(" ")}#y(){const[e,n,r,i]=this.#e,[s,a,o,l]=this.#m();return`M${(this.#s[2]-e)/r} ${(this.#s[3]-n)/i} L${(this.#s[4]-e)/r} ${(this.#s[5]-n)/i} L${s} ${a} L${o} ${l} L${(this.#s[16]-e)/r} ${(this.#s[17]-n)/i} L${(this.#s[14]-e)/r} ${(this.#s[15]-n)/i} Z`}#v(e){const n=this.#t;e.push(`L${n[4]} ${n[5]} Z`)}#b(e){const[n,r,i,s]=this.#e,a=this.#s.subarray(4,6),o=this.#s.subarray(16,18),[l,u,c,d]=this.#m();e.push(`L${(a[0]-n)/i} ${(a[1]-r)/s} L${l} ${u} L${c} ${d} L${(o[0]-n)/i} ${(o[1]-r)/s}`)}newFreeDrawOutline(e,n,r,i,s,a){return new _ve(e,n,r,i,s,a)}getOutlines(){const e=this.#i,n=this.#t,r=this.#s,[i,s,a,o]=this.#e,l=new Float32Array((this.#h?.length??0)+2);for(let d=0,h=l.length-2;d<h;d+=2)l[d]=(this.#h[d]-i)/a,l[d+1]=(this.#h[d+1]-s)/o;if(l[l.length-2]=(this.#a-i)/a,l[l.length-1]=(this.#o-s)/o,isNaN(r[6])&&!this.isEmpty())return this.#S(l);const u=new Float32Array(this.#i.length+24+this.#t.length);let c=e.length;for(let d=0;d<c;d+=2){if(isNaN(e[d])){u[d]=u[d+1]=NaN;continue}u[d]=e[d],u[d+1]=e[d+1]}c=this.#E(u,c);for(let d=n.length-6;d>=6;d-=6)for(let h=0;h<6;h+=2){if(isNaN(n[d+h])){u[c]=u[c+1]=NaN,c+=2;continue}u[c]=n[d+h],u[c+1]=n[d+h+1],c+=2}return this.#x(u,c),this.newFreeDrawOutline(u,l,this.#e,this.#f,this.#r,this.#n)}#S(e){const n=this.#s,[r,i,s,a]=this.#e,[o,l,u,c]=this.#m(),d=new Float32Array(36);return d.set([NaN,NaN,NaN,NaN,(n[2]-r)/s,(n[3]-i)/a,NaN,NaN,NaN,NaN,(n[4]-r)/s,(n[5]-i)/a,NaN,NaN,NaN,NaN,o,l,NaN,NaN,NaN,NaN,u,c,NaN,NaN,NaN,NaN,(n[16]-r)/s,(n[17]-i)/a,NaN,NaN,NaN,NaN,(n[14]-r)/s,(n[15]-i)/a],0),this.newFreeDrawOutline(d,e,this.#e,this.#f,this.#r,this.#n)}#x(e,n){const r=this.#t;return e.set([NaN,NaN,NaN,NaN,r[4],r[5]],n),n+=6}#E(e,n){const r=this.#s.subarray(4,6),i=this.#s.subarray(16,18),[s,a,o,l]=this.#e,[u,c,d,h]=this.#m();return e.set([NaN,NaN,NaN,NaN,(r[0]-s)/o,(r[1]-a)/l,NaN,NaN,NaN,NaN,u,c,NaN,NaN,NaN,NaN,d,h,NaN,NaN,NaN,NaN,(i[0]-s)/o,(i[1]-a)/l],n),n+=24}}class _ve extends lt{#e;#t=new Float32Array(4);#r;#n;#i;#s;#a;constructor(e,n,r,i,s,a){super(),this.#a=e,this.#i=n,this.#e=r,this.#s=i,this.#r=s,this.#n=a,this.firstPoint=[NaN,NaN],this.lastPoint=[NaN,NaN],this.#o(a);const[o,l,u,c]=this.#t;for(let d=0,h=e.length;d<h;d+=2)e[d]=(e[d]-o)/u,e[d+1]=(e[d+1]-l)/c;for(let d=0,h=n.length;d<h;d+=2)n[d]=(n[d]-o)/u,n[d+1]=(n[d+1]-l)/c}toSVGPath(){const e=[`M${this.#a[4]} ${this.#a[5]}`];for(let n=6,r=this.#a.length;n<r;n+=6){if(isNaN(this.#a[n])){e.push(`L${this.#a[n+4]} ${this.#a[n+5]}`);continue}e.push(`C${this.#a[n]} ${this.#a[n+1]} ${this.#a[n+2]} ${this.#a[n+3]} ${this.#a[n+4]} ${this.#a[n+5]}`)}return e.push("Z"),e.join(" ")}serialize([e,n,r,i],s){const a=r-e,o=i-n;let l,u;switch(s){case 0:l=lt._rescale(this.#a,e,i,a,-o),u=lt._rescale(this.#i,e,i,a,-o);break;case 90:l=lt._rescaleAndSwap(this.#a,e,n,a,o),u=lt._rescaleAndSwap(this.#i,e,n,a,o);break;case 180:l=lt._rescale(this.#a,r,n,-a,o),u=lt._rescale(this.#i,r,n,-a,o);break;case 270:l=lt._rescaleAndSwap(this.#a,r,i,-a,-o),u=lt._rescaleAndSwap(this.#i,r,i,-a,-o);break}
vendor: 5,566 bytes, line 176
176return{outline:Array.from(l),points:[Array.from(u)]}}#o(e){const n=this.#a;let r=n[4],i=n[5];const s=[r,i,r,i];let a=r,o=i,l=r,u=i;const c=e?Math.max:Math.min,d=new Float32Array(4);for(let m=6,g=n.length;m<g;m+=6){const b=n[m+4],v=n[m+5];isNaN(n[m])?(ut.pointBoundingBox(b,v,s),o>v?(a=b,o=v):o===v&&(a=c(a,b)),u<v?(l=b,u=v):u===v&&(l=c(l,b))):(d[0]=d[1]=1/0,d[2]=d[3]=-1/0,ut.bezierBoundingBox(r,i,...n.slice(m,m+6),d),ut.rectBoundingBox(d[0],d[1],d[2],d[3],s),o>d[1]?(a=d[0],o=d[1]):o===d[1]&&(a=c(a,d[0])),u<d[3]?(l=d[2],u=d[3]):u===d[3]&&(l=c(l,d[2]))),r=b,i=v}const h=this.#t;h[0]=s[0]-this.#r,h[1]=s[1]-this.#r,h[2]=s[2]-s[0]+2*this.#r,h[3]=s[3]-s[1]+2*this.#r,this.firstPoint=[a,o],this.lastPoint=[l,u]}get box(){return this.#t}newOutliner(e,n,r,i,s,a=0){return new Eh(e,n,r,i,s,a)}getNewOutline(e,n){const[r,i,s,a]=this.#t,[o,l,u,c]=this.#e,d=s*u,h=a*c,m=r*u+o,g=i*c+l,b=this.newOutliner({x:this.#i[0]*d+m,y:this.#i[1]*h+g},this.#e,this.#s,e,this.#n,n??this.#r);for(let v=2;v<this.#i.length;v+=2)b.add({x:this.#i[v]*d+m,y:this.#i[v+1]*h+g});return b.getOutlines()}}class M9{#e;#t;#r;#n=[];#i=[];constructor(e,n=0,r=0,i=!0){const s=[1/0,1/0,-1/0,-1/0],a=10**-4;for(const{x:b,y:v,width:E,height:x}of e){const _=Math.floor((b-n)/a)*a,S=Math.ceil((b+E+n)/a)*a,A=Math.floor((v-n)/a)*a,R=Math.ceil((v+x+n)/a)*a,T=[_,A,R,!0],O=[S,A,R,!1];this.#n.push(T,O),ut.rectBoundingBox(_,A,S,R,s)}const o=s[2]-s[0]+2*r,l=s[3]-s[1]+2*r,u=s[0]-r,c=s[1]-r;let d=i?-1/0:1/0,h=1/0;const m=this.#n.at(i?-1:-2),g=[m[0],m[2]];for(const b of this.#n){const[v,E,x,_]=b;!_&&i?E<h?(h=E,d=v):E===h&&(d=Math.max(d,v)):_&&!i&&(E<h?(h=E,d=v):E===h&&(d=Math.min(d,v))),b[0]=(v-u)/o,b[1]=(E-c)/l,b[2]=(x-c)/l}this.#e=new Float32Array([u,c,o,l]),this.#t=[d,h],this.#r=g}getOutlines(){this.#n.sort((n,r)=>n[0]-r[0]||n[1]-r[1]||n[2]-r[2]);const e=[];for(const n of this.#n)n[3]?(e.push(...this.#l(n)),this.#o(n)):(this.#u(n),e.push(...this.#l(n)));return this.#s(e)}#s(e){const n=[],r=new Set;for(const a of e){const[o,l,u]=a;n.push([o,l,a],[o,u,a])}n.sort((a,o)=>a[1]-o[1]||a[0]-o[0]);for(let a=0,o=n.length;a<o;a+=2){const l=n[a][2],u=n[a+1][2];l.push(u),u.push(l),r.add(l),r.add(u)}const i=[];let s;for(;r.size>0;){const a=r.values().next().value;let[o,l,u,c,d]=a;r.delete(a);let h=o,m=l;for(s=[o,u],i.push(s);;){let g;if(r.has(c))g=c;else if(r.has(d))g=d;else break;r.delete(g),[o,l,u,c,d]=g,h!==o&&(s.push(h,m,o,m===l?l:u),h=o),m=m===l?u:l}s.push(h,m)}return new O0t(i,this.#e,this.#t,this.#r)}#a(e){const n=this.#i;let r=0,i=n.length-1;for(;r<=i;){const s=r+i>>1,a=n[s][0];if(a===e)return s;a<e?r=s+1:i=s-1}return i+1}#o([,e,n]){const r=this.#a(e);this.#i.splice(r,0,[e,n])}#u([,e,n]){const r=this.#a(e);for(let i=r;i<this.#i.length;i++){const[s,a]=this.#i[i];if(s!==e)break;if(s===e&&a===n){this.#i.splice(i,1);return}}for(let i=r-1;i>=0;i--){const[s,a]=this.#i[i];if(s!==e)break;if(s===e&&a===n){this.#i.splice(i,1);return}}}#l(e){const[n,r,i]=e,s=[[n,r,i]],a=this.#a(i);for(let o=0;o<a;o++){const[l,u]=this.#i[o];for(let c=0,d=s.length;c<d;c++){const[,h,m]=s[c];if(!(u<=h||m<=l)){if(h>=l){if(m>u)s[c][1]=u;else{if(d===1)return[];s.splice(c,1),c--,d--}continue}s[c][2]=l,m>u&&s.push([n,u,m])}}}return s}}class O0t extends lt{#e;#t;constructor(e,n,r,i){super(),this.#t=e,this.#e=n,this.firstPoint=r,this.lastPoint=i}toSVGPath(){const e=[];for(const n of this.#t){let[r,i]=n;e.push(`M${r} ${i}`);for(let s=2;s<n.length;s+=2){const a=n[s],o=n[s+1];a===r?(e.push(`V${o}`),i=o):o===i&&(e.push(`H${a}`),r=a)}e.push("Z")}return e.join(" ")}serialize([e,n,r,i],s){const a=[],o=r-e,l=i-n;for(const u of this.#t){const c=new Array(u.length);for(let d=0;d<u.length;d+=2)c[d]=e+u[d]*o,c[d+1]=i-u[d+1]*l;a.push(c)}return a}get box(){return this.#e}get classNamesForOutlining(){return["highlightOutline"]}}class D9 extends Eh{newFreeDrawOutline(e,n,r,i,s,a){return new k0t(e,n,r,i,s,a)}}class k0t extends _ve{newOutliner(e,n,r,i,s,a=0){return new D9(e,n,r,i,s,a)}}class Qr extends Rt{#e=null;#t=0;#r;#n=null;#i=null;#s=null;#a=null;#o=0;#u=null;#l=null;#f=null;#d=!1;#h=null;#g=null;#p=null;#c="";#m;#y="";static _defaultColor=null;static _defaultOpacity=1;static _defaultThickness=12;static _type="highlight";static _editorType=zt.HIGHLIGHT;static _freeHighlightId=-1;static _freeHighlight=null;static _freeHighlightClipId="";static get _keyboardManager(){const e=Qr.prototype;return Zt(this,"_keyboardManager",new rE([[["ArrowLeft","mac+ArrowLeft"],e._moveCaret,{args:[0]}],[["ArrowRight","mac+ArrowRight"],e._moveCaret,{args:[1]}],[["ArrowUp","mac+ArrowUp"],e._moveCaret,{args:[2]}],[["ArrowDown","mac+ArrowDown"],e._moveCaret,{args:[3]}]]))}constructor(e){super({...e,name:"highlightEditor"}),this.color=e.color||Qr._defaultColor,this.#m=e.thickness||Qr._defaultThickness,this.opacity=e.opacity||Qr._defaultOpacity,this.#r=e.boxes||null,this.#y=e.methodOfCreation||"",this.#c=e.text||"",this._isDraggable=!1,this.defaultL10nId="pdfjs-editor-highlight-editor",e.highlightId>-1?(this.#d=!0,this.#b(e),this.#w()):this.#r&&(this.#e=e.anchorNode,this.#t=e.anchorOffset,this.#a=e.focusNode,this.#o=e.focusOffset,this.#v(),this.#w(),this.rotate(this.rotation)),this.annotationElementId||this._uiManager.a11yAlert("pdfjs-editor-highlight-added-alert")}get telemetryInitialData(){return{action:"added",type:this.#d?"free_highlight":"highlight",color:this._uiManager.getNonHCMColorName(this.color),thickness:this.#m,methodOfCreation:this.#y}}get telemetryFinalData(){return{type:"highlight",color:this._uiManager.getNonHCMColorName(this.color)}}static computeTelemetryFinalData(e){return{numberOfColors:e.get("
176color").size}}#v(){const e=new M9(this.#r,.001);this.#l=e.getOutlines(),[this.x,this.y,this.width,this.height]=this.#l.box;const n=new M9(this.#r,.0025,.001,this._uiManager.direction==="ltr");this.#s=n.getOutlines();const{firstPoint:r}=this.#l;this.#h=[(r[0]-this.x)/this.width,(r[1]-this.y)/this.height];const{lastPoint:i}=this.#s;this.#g=[(i[0]-this.x)/this.width,(i[1]-this.y)/this.height]}#b({highlightOutlines:e,highlightId:n,clipPathId:r}){this.#l=e;const i=1.5;if(this.#s=e.getNewOutline(this.#m/2+i,.0025),n>=0)this.#f=n,this.#n=r,this.parent.drawLayer.finalizeDraw(n,{bbox:e.box,path:{d:e.toSVGPath()}}),this.#p=this.parent.drawLayer.drawOutline({rootClass:{highlightOutline:!0,free:!0},bbox:this.#s.box,path:{d:this.#s.toSVGPath()}},!0);else if(this.parent){const d=this.parent.viewport.rotation;this.parent.drawLayer.updateProperties(this.#f,{bbox:Qr.#C(this.#l.box,(d-this.rotation+360)%360),path:{d:e.toSVGPath()}}),this.parent.drawLayer.updateProperties(this.#p,{bbox:Qr.#C(this.#s.box,d),path:{d:this.#s.toSVGPath()}})}const[s,a,o,l]=e.box;switch(this.rotation){case 0:this.x=s,this.y=a,this.width=o,this.height=l;break;case 90:{const[d,h]=this.parentDimensions;this.x=a,this.y=1-s,this.width=o*h/d,this.height=l*d/h;break}case 180:this.x=1-s,this.y=1-a,this.width=o,this.height=l;break;case 270:{const[d,h]=this.parentDimensions;this.x=1-a,this.y=s,this.width=o*h/d,this.height=l*d/h;break}}const{firstPoint:u}=e;this.#h=[(u[0]-s)/o,(u[1]-a)/l];const{lastPoint:c}=this.#s;this.#g=[(c[0]-s)/o,(c[1]-a)/l]}static initialize(e,n){Rt.initialize(e,n),Qr._defaultColor||=n.highlightColors?.values().next().value||"#fff066"}static updateDefaultParams(e,n){switch(e){case En.HIGHLIGHT_COLOR:Qr._defaultColor=n;break;case En.HIGHLIGHT_THICKNESS:Qr._defaultThickness=n;break}}translateInPage(e,n){}get toolbarPosition(){return this.#g}get commentButtonPosition(){return this.#h}updateParams(e,n){switch(e){case En.HIGHLIGHT_COLOR:this.#S(n);break;case En.HIGHLIGHT_THICKNESS:this.#x(n);break}}static get defaultPropertiesToUpdate(){return[[En.HIGHLIGHT_COLOR,Qr._defaultColor],[En.HIGHLIGHT_THICKNESS,Qr._defaultThickness]]}get propertiesToUpdate(){return[[En.HIGHLIGHT_COLOR,this.color||Qr._defaultColor],[En.HIGHLIGHT_THICKNESS,this.#m||Qr._defaultThickness],[En.HIGHLIGHT_FREE,this.#d]]}onUpdatedColor(){this.parent?.drawLayer.updateProperties(this.#f,{root:{fill:this.color,"fill-opacity":this.opacity}}),this.#i?.updateColor(this.color),super.onUpdatedColor()}#S(e){const n=(s,a)=>{this.color=s,this.opacity=a,this.onUpdatedColor()},r=this.color,i=this.opacity;this.addCommands({cmd:n.bind(this,e,Qr._defaultOpacity),undo:n.bind(this,r,i),post:this._uiManager.updateUI.bind(this._uiManager,this),mustExec:!0,type:En.HIGHLIGHT_COLOR,overwriteIfSameType:!0,keepUndo:!0}),this._reportTelemetry({action:"color_changed",color:this._uiManager.getNonHCMColorName(e)},!0)}#x(e){const n=this.#m,r=i=>{this.#m=i,this.#E(i)};this.addCommands({cmd:r.bind(this,e),undo:r.bind(this,n),post:this._uiManager.updateUI.bind(this._uiManager,this),mustExec:!0,type:En.INK_THICKNESS,overwriteIfSameType:!0,keepUndo:!0}),this._reportTelemetry({action:"thickness_changed",thickness:e},!0)}get toolbarButtons(){return this._uiManager.highlightColors?[["colorPicker",this.#i=new Ia({editor:this})]]:super.toolbarButtons}disableEditing(){super.disableEditing(),this.div.classList.toggle("disabled",!0)}enableEditing(){super.enableEditing(),this.div.classList.toggle("disabled",!1)}fixAndSetPosition(){return super.fixAndSetPosition(this.#N())}getBaseTranslation(){return[0,0]}getRect(e,n){return super.getRect(e,n,this.#N())}onceAdded(e){this.annotationElementId||this.parent.addUndoableEditor(this),e&&this.div.focus()}remove(){this.#T(),this._reportTelemetry({action:"deleted"}),super.remove()}rebuild(){this.parent&&(super.rebuild(),this.div!==null&&(this.#w(),this.isAttachedToDOM||this.parent.add(this)))}setParent(e){let n=!1;this.parent&&!e?this.#T():e&&(this.#w(e),n=!this.parent&&this.div?.classList.contains("selectedEditor")),super.setParent(e),this.show(this._isVisible),n&&this.select()}#E(e){this.#d&&(this.#b({highlightOutlines:this.#l.getNewOutline(e/2)}),this.fixAndSetPosition(),this.setDims(this.width,this.height))}#T(){this.#f===null||!this.parent||(this.parent.drawLayer.remove(this.#f),this.#f=null,this.parent.drawLayer.remove(this.#p),this.#p=null)}#w(e=this.parent){this.#f===null&&({id:this.#f,clipPathId:this.#n}=e.drawLayer.draw({bbox:this.#l.box,root:{viewBox:"0 0 1 1",fill:this.color,"fill-opacity":this.opacity},rootClass:{highlight:!0,free:this.#d},path:{d:this.#l.toSVGPath()}},!1,!0),this.#p=e.drawLayer.drawOutline({rootClass:{highlightOutline:!0,free:this.#d},bbox:this.#s.box,path:{d:this.#s.toSVGPath()}},this.#d),this.#u&&(this.#u.style.clipPath=this.#n))}static#C([e,n,r,i],s){switch(s){case 90:return[1-n-i,e,i,r];case 180:return[1-e-r,1-n-i,r,i];case 270:return[n,1-e-r,i,r]}return[e,n,r,i]}rotate(e){const{drawLayer:n}=this.parent;let r;this.#d?(e=(e-this.rotation+360)%360,r=Qr.#C(this.#l.box,e)):r=Qr.#C([this.x,this.y,this.width,this.height],e),n.updateProperties(this.#f,{bbox:r,root:{"data-main-rotation":e}}),n.updateProperties(this.#p,{bbox:Qr.#C(this.#s.box,e),root:{"data-main-rotation":e}})}
vendor: 37,487 bytes, line 176
176render(){if(this.div)return this.div;const e=super.render();this.#c&&(e.setAttribute("aria-label",this.#c),e.setAttribute("role","mark")),this.#d?e.classList.add("free"):this.div.addEventListener("keydown",this.#O.bind(this),{signal:this._uiManager._signal});const n=this.#u=document.createElement("div");return e.append(n),n.setAttribute("aria-hidden","true"),n.className="internal",n.style.clipPath=this.#n,this.setDims(this.width,this.height),Kbe(this,this.#u,["pointerover","pointerleave"]),this.enableEditing(),e}pointerover(){this.isSelected||this.parent?.drawLayer.updateProperties(this.#p,{rootClass:{hovered:!0}})}pointerleave(){this.isSelected||this.parent?.drawLayer.updateProperties(this.#p,{rootClass:{hovered:!1}})}#O(e){Qr._keyboardManager.exec(this,e)}_moveCaret(e){switch(this.parent.unselect(this),e){case 0:case 2:this.#R(!0);break;case 1:case 3:this.#R(!1);break}}#R(e){if(!this.#e)return;const n=window.getSelection();e?n.setPosition(this.#e,this.#t):n.setPosition(this.#a,this.#o)}select(){super.select(),this.#p&&this.parent?.drawLayer.updateProperties(this.#p,{rootClass:{hovered:!1,selected:!0}})}unselect(){super.unselect(),this.#p&&(this.parent?.drawLayer.updateProperties(this.#p,{rootClass:{selected:!1}}),this.#d||this.#R(!1))}get _mustFixPosition(){return!this.#d}show(e=this._isVisible){super.show(e),this.parent&&(this.parent.drawLayer.updateProperties(this.#f,{rootClass:{hidden:!e}}),this.parent.drawLayer.updateProperties(this.#p,{rootClass:{hidden:!e}}))}#N(){return this.#d?this.rotation:0}#$(){if(this.#d)return null;const[e,n]=this.pageDimensions,[r,i]=this.pageTranslation,s=this.#r,a=new Float32Array(s.length*8);let o=0;for(const{x:l,y:u,width:c,height:d}of s){const h=l*e+r,m=(1-u)*n+i;a[o]=a[o+4]=h,a[o+1]=a[o+3]=m,a[o+2]=a[o+6]=h+c*e,a[o+5]=a[o+7]=m-d*n,o+=8}return a}#I(e){return this.#l.serialize(e,this.#N())}static startHighlighting(e,n,{target:r,x:i,y:s}){const{x:a,y:o,width:l,height:u}=r.getBoundingClientRect(),c=new AbortController,d=e.combinedSignal(c),h=m=>{c.abort(),this.#F(e,m)};window.addEventListener("blur",h,{signal:d}),window.addEventListener("pointerup",h,{signal:d}),window.addEventListener("pointerdown",Ir,{capture:!0,passive:!1,signal:d}),window.addEventListener("contextmenu",Ya,{signal:d}),r.addEventListener("pointermove",this.#D.bind(this,e),{signal:d}),this._freeHighlight=new D9({x:i,y:s},[a,o,l,u],e.scale,this._defaultThickness/2,n,.001),{id:this._freeHighlightId,clipPathId:this._freeHighlightClipId}=e.drawLayer.draw({bbox:[0,0,1,1],root:{viewBox:"0 0 1 1",fill:this._defaultColor,"fill-opacity":this._defaultOpacity},rootClass:{highlight:!0,free:!0},path:{d:this._freeHighlight.toSVGPath()}},!0,!0)}static#D(e,n){this._freeHighlight.add(n)&&e.drawLayer.updateProperties(this._freeHighlightId,{path:{d:this._freeHighlight.toSVGPath()}})}static#F(e,n){this._freeHighlight.isEmpty()?e.drawLayer.remove(this._freeHighlightId):e.createAndAddNewEditor(n,!1,{highlightId:this._freeHighlightId,highlightOutlines:this._freeHighlight.getOutlines(),clipPathId:this._freeHighlightClipId,methodOfCreation:"main_toolbar"}),this._freeHighlightId=-1,this._freeHighlight=null,this._freeHighlightClipId=""}static async deserialize(e,n,r){let i=null;if(e instanceof bve){const{data:{quadPoints:g,rect:b,rotation:v,id:E,color:x,opacity:_,popupRef:S,richText:A,contentsObj:R,creationDate:T,modificationDate:O},parent:{page:{pageNumber:I}}}=e;i=e={annotationType:zt.HIGHLIGHT,color:Array.from(x),opacity:_,quadPoints:g,boxes:null,pageIndex:I-1,rect:b.slice(0),rotation:v,annotationElementId:E,id:E,deleted:!1,popupRef:S,richText:A,comment:R?.str||null,creationDate:T,modificationDate:O}}else if(e instanceof nB){const{data:{inkLists:g,rect:b,rotation:v,id:E,color:x,borderStyle:{rawWidth:_},popupRef:S,richText:A,contentsObj:R,creationDate:T,modificationDate:O},parent:{page:{pageNumber:I}}}=e;i=e={annotationType:zt.HIGHLIGHT,color:Array.from(x),thickness:_,inkLists:g,boxes:null,pageIndex:I-1,rect:b.slice(0),rotation:v,annotationElementId:E,id:E,deleted:!1,popupRef:S,richText:A,comment:R?.str||null,creationDate:T,modificationDate:O}}const{color:s,quadPoints:a,inkLists:o,opacity:l}=e,u=await super.deserialize(e,n,r);u.color=ut.makeHexColor(...s),u.opacity=l||1,o&&(u.#m=e.thickness),u._initialData=i,e.comment&&u.setCommentData(e);const[c,d]=u.pageDimensions,[h,m]=u.pageTranslation;if(a){const g=u.#r=[];for(let b=0;b<a.length;b+=8)g.push({x:(a[b]-h)/c,y:1-(a[b+1]-m)/d,width:(a[b+2]-a[b])/c,height:(a[b+1]-a[b+5])/d});u.#v(),u.#w(),u.rotate(u.rotation)}else if(o){u.#d=!0;const g=o[0],b={x:g[0]-h,y:d-(g[1]-m)},v=new D9(b,[0,0,c,d],1,u.#m/2,!0,.001);for(let _=0,S=g.length;_<S;_+=2)b.x=g[_]-h,b.y=d-(g[_+1]-m),v.add(b);const{id:E,clipPathId:x}=n.drawLayer.draw({bbox:[0,0,1,1],root:{viewBox:"0 0 1 1",fill:u.color,"fill-opacity":u._defaultOpacity},rootClass:{highlight:!0,free:!0},path:{d:v.toSVGPath()}},!0,!0);u.#b({highlightOutlines:v.getOutlines(),highlightId:E,clipPathId:x}),u.#w(),u.rotate(u.parentRotation)}return u}serialize(e=!1){if(this.isEmpty()||e)return null;if(this.deleted)return this.serializeDeleted();const n=Rt._colorManager.convert(this._uiManager.getNonHCMColor(this.color)),r=super.serialize(e);return Object.assign(r,{color:n,opacity:this.opacity,thickness:this.#m,quadPoints:this.#$(),outlines:this.#I(r.rect)}),this.addComment(r),this.annotationElementId&&!this.#P(r)?null:(r.id=this.annotationElementId,r)}#P(e){const{color:n}=this._initialData;return this.hasEditedComment||e.color.some((r,i)=>r!==n[i])}renderAnnotationElement(e){return this.deleted?(e.hide(),null):(e.updateEdited({rect:this.getPDFRect(),popup:this.comment}),null)}static canCreateNewEmptyEditor(){return!1}}class xve{#e=Object.create(null);updateProperty(e,n){this[e]=n,this.updateSVGProperty(e,n)}updateProperties(e){if(e)for(const[n,r]of Object.entries(e))n.startsWith("_")||this.updateProperty(n,r)}updateSVGProperty(e,n){this.#e[e]=n}toSVGProperties(){const e=this.#e;return this.#e=Object.create(null),{root:e}}reset(){this.#e=Object.create(null)}updateAll(e=this){this.updateProperties(e)}clone(){er("Not implemented")}}class Pt extends Rt{#e=null;#t;_colorPicker=null;_drawId=null;static _currentDrawId=-1;static _currentParent=null;static#r=null;static#n=null;static#i=null;static#s=NaN;static#a=null;static#o=null;static#u=NaN;static _INNER_MARGIN=3;constructor(e){super(e),this.#t=e.mustBeCommitted||!1,this._addOutlines(e)}onUpdatedColor(){this._colorPicker?.update(this.color),super.onUpdatedColor()}_addOutlines(e){e.drawOutlines&&(this.#l(e),this.#h())}#l({drawOutlines:e,drawId:n,drawingOptions:r}){this.#e=e,this._drawingOptions||=r,this.annotationElementId||this._uiManager.a11yAlert(`pdfjs-editor-${this.editorType}-added-alert`),n>=0?(this._drawId=n,this.parent.drawLayer.finalizeDraw(n,e.defaultProperties)):this._drawId=this.#f(e,this.parent),this.#c(e.box)}#f(e,n){const{id:r}=n.drawLayer.draw(Pt._mergeSVGProperties(this._drawingOptions.toSVGProperties(),e.defaultSVGProperties),!1,!1);return r}static _mergeSVGProperties(e,n){const r=new Set(Object.keys(e));for(const[i,s]of Object.entries(n))r.has(i)?Object.assign(e[i],s):e[i]=s;return e}static getDefaultDrawingOptions(e){er("Not implemented")}static get typesMap(){er("Not implemented")}static get isDrawer(){return!0}static get supportMultipleDrawings(){return!1}static updateDefaultParams(e,n){const r=this.typesMap.get(e);r&&this._defaultDrawingOptions.updateProperty(r,n),this._currentParent&&(Pt.#r.updateProperty(r,n),this._currentParent.drawLayer.updateProperties(this._currentDrawId,this._defaultDrawingOptions.toSVGProperties()))}updateParams(e,n){const r=this.constructor.typesMap.get(e);r&&this._updateProperty(e,r,n)}static get defaultPropertiesToUpdate(){const e=[],n=this._defaultDrawingOptions;for(const[r,i]of this.typesMap)e.push([r,n[i]]);return e}get propertiesToUpdate(){const e=[],{_drawingOptions:n}=this;for(const[r,i]of this.constructor.typesMap)e.push([r,n[i]]);return e}_updateProperty(e,n,r){const i=this._drawingOptions,s=i[n],a=o=>{i.updateProperty(n,o);const l=this.#e.updateProperty(n,o);l&&this.#c(l),this.parent?.drawLayer.updateProperties(this._drawId,i.toSVGProperties()),e===this.colorType&&this.onUpdatedColor()};this.addCommands({cmd:a.bind(this,r),undo:a.bind(this,s),post:this._uiManager.updateUI.bind(this._uiManager,this),mustExec:!0,type:e,overwriteIfSameType:!0,keepUndo:!0})}_onResizing(){this.parent?.drawLayer.updateProperties(this._drawId,Pt._mergeSVGProperties(this.#e.getPathResizingSVGProperties(this.#p()),{bbox:this.#m()}))}_onResized(){this.parent?.drawLayer.updateProperties(this._drawId,Pt._mergeSVGProperties(this.#e.getPathResizedSVGProperties(this.#p()),{bbox:this.#m()}))}_onTranslating(e,n){this.parent?.drawLayer.updateProperties(this._drawId,{bbox:this.#m()})}_onTranslated(){this.parent?.drawLayer.updateProperties(this._drawId,Pt._mergeSVGProperties(this.#e.getPathTranslatedSVGProperties(this.#p(),this.parentDimensions),{bbox:this.#m()}))}_onStartDragging(){this.parent?.drawLayer.updateProperties(this._drawId,{rootClass:{moving:!0}})}_onStopDragging(){this.parent?.drawLayer.updateProperties(this._drawId,{rootClass:{moving:!1}})}commit(){super.commit(),this.disableEditMode(),this.disableEditing()}disableEditing(){super.disableEditing(),this.div.classList.toggle("disabled",!0)}enableEditing(){super.enableEditing(),this.div.classList.toggle("disabled",!1)}getBaseTranslation(){return[0,0]}get isResizable(){return!0}onceAdded(e){this.annotationElementId||this.parent.addUndoableEditor(this),this._isDraggable=!0,this.#t&&(this.#t=!1,this.commit(),this.parent.setSelected(this),e&&this.isOnScreen&&this.div.focus())}remove(){this.#d(),super.remove()}rebuild(){this.parent&&(super.rebuild(),this.div!==null&&(this.#h(),this.#c(this.#e.box),this.isAttachedToDOM||this.parent.add(this)))}setParent(e){let n=!1;this.parent&&!e?(this._uiManager.removeShouldRescale(this),this.#d()):e&&(this._uiManager.addShouldRescale(this),this.#h(e),n=!this.parent&&this.div?.classList.contains("selectedEditor")),super.setParent(e),n&&this.select()}#d(){this._drawId===null||!this.parent||(this.parent.drawLayer.remove(this._drawId),this._drawId=null,this._drawingOptions.reset())}#h(e=this.parent){if(!(this._drawId!==null&&this.parent===e)){if(this._drawId!==null){this.parent.drawLayer.updateParent(this._drawId,e.drawLayer);return}this._drawingOptions.updateAll(),this._drawId=this.#f(this.#e,e)}}#g([e,n,r,i]){const{parentDimensions:[s,a],rotation:o}=this;switch(o){case 90:return[n,1-e,r*(a/s),i*(s/a)];case 180:return[1-e,1-n,r,i];case 270:return[1-n,e,r*(a/s),i*(s/a)];default:return[e,n,r,i]}}#p(){const{x:e,y:n,width:r,height:i,parentDimensions:[s,a],rotation:o}=this;switch(o){case 90:return[1-n,e,r*(s/a),i*(a/s)];case 180:return[1-e,1-n,r,i];case 270:return[n,1-e,r*(s/a),i*(a/s)];default:return[e,n,r,i]}}#c(e){[this.x,this.y,this.width,this.height]=this.#g(e),this.div&&(this.fixAndSetPosition(),this.setDims()),this._onResized()}#m(){const{x:e,y:n,width:r,height:i,rotation:s,parentRotation:a,parentDimensions:[o,l]}=this;switch((s*4+a)/90){case 1:return[1-n-i,e,i,r];case 2:return[1-e-r,1-n-i,r,i];case 3:return[n,1-e-r,i,r];case 4:return[e,n-r*(o/l),i*(l/o),r*(o/l)];case 5:return[1-n,e,r*(o/l),i*(l/o)];case 6:return[1-e-i*(l/o),1-n,i*(l/o),r*(o/l)];case 7:return[n-r*(o/l),1-e-i*(l/o),r*(o/l),i*(l/o)];case 8:return[e-r,n-i,r,i];case 9:return[1-n,e-r,i,r];case 10:return[1-e,1-n,r,i];case 11:return[n-i,1-e,i,r];case 12:return[e-i*(l/o),n,i*(l/o),r*(o/l)];case 13:return[1-n-r*(o/l),e-i*(l/o),r*(o/l),i*(l/o)];case 14:return[1-e,1-n-r*(o/l),i*(l/o),r*(o/l)];case 15:return[n,1-e,r*(o/l),i*(l/o)];default:return[e,n,r,i]}}rotate(){this.parent&&this.parent.drawLayer.updateProperties(this._drawId,Pt._mergeSVGProperties({bbox:this.#m()},this.#e.updateRotation((this.parentRotation-this.rotation+360)%360)))}onScaleChanging(){this.parent&&this.#c(this.#e.updateParentDimensions(this.parentDimensions,this.parent.scale))}static onScaleChangingWhenDrawing(){}render(){if(this.div)return this.div;let e,n;this._isCopy&&(e=this.x,n=this.y);const r=super.render();r.classList.add("draw");const i=document.createElement("div");return r.append(i),i.setAttribute("aria-hidden","true"),i.className="internal",this.setDims(),this._uiManager.addShouldRescale(this),this.disableEditing(),this._isCopy&&this._moveAfterPaste(e,n),r}static createDrawerInstance(e,n,r,i,s){er("Not implemented")}static startDrawing(e,n,r,i){const{target:s,offsetX:a,offsetY:o,pointerId:l,pointerType:u}=i;if(Pt.#a&&Pt.#a!==u)return;const{viewport:{rotation:c}}=e,{width:d,height:h}=s.getBoundingClientRect(),m=Pt.#n=new AbortController,g=e.combinedSignal(m);if(Pt.#s||=l,Pt.#a??=u,window.addEventListener("pointerup",b=>{Pt.#s===b.pointerId?this._endDraw(b):Pt.#o?.delete(b.pointerId)},{signal:g}),window.addEventListener("pointercancel",b=>{Pt.#s===b.pointerId?this._currentParent.endDrawingSession():Pt.#o?.delete(b.pointerId)},{signal:g}),window.addEventListener("pointerdown",b=>{Pt.#a===b.pointerType&&((Pt.#o||=new Set).add(b.pointerId),Pt.#r.isCancellable()&&(Pt.#r.removeLastElement(),Pt.#r.isEmpty()?this._currentParent.endDrawingSession(!0):this._endDraw(null)))},{capture:!0,passive:!1,signal:g}),window.addEventListener("contextmenu",Ya,{signal:g}),s.addEventListener("pointermove",this._drawMove.bind(this),{signal:g}),s.addEventListener("touchmove",b=>{b.timeStamp===Pt.#u&&Ir(b)},{signal:g}),e.toggleDrawing(),n._editorUndoBar?.hide(),Pt.#r){e.drawLayer.updateProperties(this._currentDrawId,Pt.#r.startNew(a,o,d,h,c));return}n.updateUIForDefaultProperties(this),Pt.#r=this.createDrawerInstance(a,o,d,h,c),Pt.#i=this.getDefaultDrawingOptions(),this._currentParent=e,{id:this._currentDrawId}=e.drawLayer.draw(this._mergeSVGProperties(Pt.#i.toSVGProperties(),Pt.#r.defaultSVGProperties),!0,!1)}static _drawMove(e){if(Pt.#u=-1,!Pt.#r)return;const{offsetX:n,offsetY:r,pointerId:i}=e;if(Pt.#s===i){if(Pt.#o?.size>=1){this._endDraw(e);return}this._currentParent.drawLayer.updateProperties(this._currentDrawId,Pt.#r.add(n,r)),Pt.#u=e.timeStamp,Ir(e)}}static _cleanup(e){e&&(this._currentDrawId=-1,this._currentParent=null,Pt.#r=null,Pt.#i=null,Pt.#a=null,Pt.#u=NaN),Pt.#n&&(Pt.#n.abort(),Pt.#n=null,Pt.#s=NaN,Pt.#o=null)}static _endDraw(e){const n=this._currentParent;if(n){if(n.toggleDrawing(!0),this._cleanup(!1),e?.target===n.div&&n.drawLayer.updateProperties(this._currentDrawId,Pt.#r.end(e.offsetX,e.offsetY)),this.supportMultipleDrawings){const r=Pt.#r,i=this._currentDrawId,s=r.getLastElement();n.addCommands({cmd:()=>{n.drawLayer.updateProperties(i,r.setLastElement(s))},undo:()=>{n.drawLayer.updateProperties(i,r.removeLastElement())},mustExec:!1,type:En.DRAW_STEP});return}this.endDrawing(!1)}}static endDrawing(e){const n=this._currentParent;if(!n)return null;if(n.toggleDrawing(!0),n.cleanUndoStack(En.DRAW_STEP),!Pt.#r.isEmpty()){const{pageDimensions:[r,i],scale:s}=n,a=n.createAndAddNewEditor({offsetX:0,offsetY:0},!1,{drawId:this._currentDrawId,drawOutlines:Pt.#r.getOutlines(r*s,i*s,s,this._INNER_MARGIN),drawingOptions:Pt.#i,mustBeCommitted:!e});return this._cleanup(!0),a}return n.drawLayer.remove(this._currentDrawId),this._cleanup(!0),null}createDrawingOptions(e){}static deserializeDraw(e,n,r,i,s,a){er("Not implemented")}static async deserialize(e,n,r){const{rawDims:{pageWidth:i,pageHeight:s,pageX:a,pageY:o}}=n.viewport,l=this.deserializeDraw(a,o,i,s,this._INNER_MARGIN,e),u=await super.deserialize(e,n,r);return u.createDrawingOptions(e),u.#l({drawOutlines:l}),u.#h(),u.onScaleChanging(),u.rotate(),u}serializeDraw(e){const[n,r]=this.pageTranslation,[i,s]=this.pageDimensions;return this.#e.serialize([n,r,i,s],e)}renderAnnotationElement(e){return e.updateEdited({rect:this.getPDFRect()}),null}static canCreateNewEmptyEditor(){return!1}}class I0t{#e=new Float64Array(6);#t;#r;#n;#i;#s;#a="";#o=0;#u=new aE;#l;#f;constructor(e,n,r,i,s,a){this.#l=r,this.#f=i,this.#n=s,this.#i=a,[e,n]=this.#d(e,n);const o=this.#t=[NaN,NaN,NaN,NaN,e,n];this.#s=[e,n],this.#r=[{line:o,points:this.#s}],this.#e.set(o,0)}updateProperty(e,n){e==="stroke-width"&&(this.#i=n)}#d(e,n){return lt._normalizePoint(e,n,this.#l,this.#f,this.#n)}isEmpty(){return!this.#r||this.#r.length===0}isCancellable(){return this.#s.length<=10}add(e,n){[e,n]=this.#d(e,n);const[r,i,s,a]=this.#e.subarray(2,6),o=e-s,l=n-a;return Math.hypot(this.#l*o,this.#f*l)<=2?null:(this.#s.push(e,n),isNaN(r)?(this.#e.set([s,a,e,n],2),this.#t.push(NaN,NaN,NaN,NaN,e,n),{path:{d:this.toSVGPath()}}):(isNaN(this.#e[0])&&this.#t.splice(6,6),this.#e.set([r,i,s,a,e,n],0),this.#t.push(...lt.createBezierPoints(r,i,s,a,e,n)),{path:{d:this.toSVGPath()}}))}end(e,n){const r=this.add(e,n);return r||(this.#s.length===2?{path:{d:this.toSVGPath()}}:null)}startNew(e,n,r,i,s){this.#l=r,this.#f=i,this.#n=s,[e,n]=this.#d(e,n);const a=this.#t=[NaN,NaN,NaN,NaN,e,n];this.#s=[e,n];const o=this.#r.at(-1);return o&&(o.line=new Float32Array(o.line),o.points=new Float32Array(o.points)),this.#r.push({line:a,points:this.#s}),this.#e.set(a,0),this.#o=0,this.toSVGPath(),null}getLastElement(){return this.#r.at(-1)}setLastElement(e){return this.#r?(this.#r.push(e),this.#t=e.line,this.#s=e.points,this.#o=0,{path:{d:this.toSVGPath()}}):this.#u.setLastElement(e)}removeLastElement(){if(!this.#r)return this.#u.removeLastElement();this.#r.pop(),this.#a="";for(let e=0,n=this.#r.length;e<n;e++){const{line:r,points:i}=this.#r[e];this.#t=r,this.#s=i,this.#o=0,this.toSVGPath()}return{path:{d:this.#a}}}toSVGPath(){const e=lt.svgRound(this.#t[4]),n=lt.svgRound(this.#t[5]);if(this.#s.length===2)return this.#a=`${this.#a} M ${e} ${n} Z`,this.#a;if(this.#s.length<=6){const i=this.#a.lastIndexOf("M");this.#a=`${this.#a.slice(0,i)} M ${e} ${n}`,this.#o=6}if(this.#s.length===4){const i=lt.svgRound(this.#t[10]),s=lt.svgRound(this.#t[11]);return this.#a=`${this.#a} L ${i} ${s}`,this.#o=12,this.#a}const r=[];this.#o===0&&(r.push(`M ${e} ${n}`),this.#o=6);for(let i=this.#o,s=this.#t.length;i<s;i+=6){const[a,o,l,u,c,d]=this.#t.slice(i,i+6).map(lt.svgRound);r.push(`C${a} ${o} ${l} ${u} ${c} ${d}`)}return this.#a+=r.join(" "),this.#o=this.#t.length,this.#a}getOutlines(e,n,r,i){const s=this.#r.at(-1);return s.line=new Float32Array(s.line),s.points=new Float32Array(s.points),this.#u.build(this.#r,e,n,r,this.#n,this.#i,i),this.#e=null,this.#t=null,this.#r=null,this.#a=null,this.#u}get defaultSVGProperties(){return{root:{viewBox:"0 0 10000 10000"},rootClass:{draw:!0},bbox:[0,0,1,1]}}}class aE extends lt{#e;#t=0;#r;#n;#i;#s;#a;#o;#u;build(e,n,r,i,s,a,o){this.#i=n,this.#s=r,this.#a=i,this.#o=s,this.#u=a,this.#r=o??0,this.#n=e,this.#d()}get thickness(){return this.#u}setLastElement(e){return this.#n.push(e),{path:{d:this.toSVGPath()}}}removeLastElement(){return this.#n.pop(),{path:{d:this.toSVGPath()}}}toSVGPath(){const e=[];for(const{line:n}of this.#n){if(e.push(`M${lt.svgRound(n[4])} ${lt.svgRound(n[5])}`),n.length===6){e.push("Z");continue}if(n.length===12&&isNaN(n[6])){e.push(`L${lt.svgRound(n[10])} ${lt.svgRound(n[11])}`);continue}for(let r=6,i=n.length;r<i;r+=6){const[s,a,o,l,u,c]=n.subarray(r,r+6).map(lt.svgRound);e.push(`C${s} ${a} ${o} ${l} ${u} ${c}`)}}return e.join("")}serialize([e,n,r,i],s){const a=[],o=[],[l,u,c,d]=this.#f();let h,m,g,b,v,E,x,_,S;switch(this.#o){case 0:S=lt._rescale,h=e,m=n+i,g=r,b=-i,v=e+l*r,E=n+(1-u-d)*i,x=e+(l+c)*r,_=n+(1-u)*i;break;case 90:S=lt._rescaleAndSwap,h=e,m=n,g=r,b=i,v=e+u*r,E=n+l*i,x=e+(u+d)*r,_=n+(l+c)*i;break;case 180:S=lt._rescale,h=e+r,m=n,g=-r,b=i,v=e+(1-l-c)*r,E=n+u*i,x=e+(1-l)*r,_=n+(u+d)*i;break;case 270:S=lt._rescaleAndSwap,h=e+r,m=n+i,g=-r,b=-i,v=e+(1-u-d)*r,E=n+(1-l-c)*i,x=e+(1-u)*r,_=n+(1-l)*i;break}for(const{line:A,points:R}of this.#n)a.push(S(A,h,m,g,b,s?new Array(A.length):null)),o.push(S(R,h,m,g,b,s?new Array(R.length):null));return{lines:a,points:o,rect:[v,E,x,_]}}static deserialize(e,n,r,i,s,{paths:{lines:a,points:o},rotation:l,thickness:u}){const c=[];let d,h,m,g,b;switch(l){case 0:b=lt._rescale,d=-e/r,h=n/i+1,m=1/r,g=-1/i;break;case 90:b=lt._rescaleAndSwap,d=-n/i,h=-e/r,m=1/i,g=1/r;break;case 180:b=lt._rescale,d=e/r+1,h=-n/i,m=-1/r,g=1/i;break;case 270:b=lt._rescaleAndSwap,d=n/i+1,h=e/r+1,m=-1/i,g=-1/r;break}if(!a){a=[];for(const E of o){const x=E.length;if(x===2){a.push(new Float32Array([NaN,NaN,NaN,NaN,E[0],E[1]]));continue}if(x===4){a.push(new Float32Array([NaN,NaN,NaN,NaN,E[0],E[1],NaN,NaN,NaN,NaN,E[2],E[3]]));continue}const _=new Float32Array(3*(x-2));a.push(_);let[S,A,R,T]=E.subarray(0,4);_.set([NaN,NaN,NaN,NaN,S,A],0);for(let O=4;O<x;O+=2){const I=E[O],D=E[O+1];_.set(lt.createBezierPoints(S,A,R,T,I,D),(O-2)*3),[S,A,R,T]=[R,T,I,D]}}}for(let E=0,x=a.length;E<x;E++)c.push({line:b(a[E].map(_=>_??NaN),d,h,m,g),points:b(o[E].map(_=>_??NaN),d,h,m,g)});const v=new this.prototype.constructor;return v.build(c,r,i,1,l,u,s),v}#l(e=this.#u){const n=this.#r+e/2*this.#a;return this.#o%180===0?[n/this.#i,n/this.#s]:[n/this.#s,n/this.#i]}#f(){const[e,n,r,i]=this.#e,[s,a]=this.#l(0);return[e+s,n+a,r-2*s,i-2*a]}#d(){const e=this.#e=new Float32Array([1/0,1/0,-1/0,-1/0]);for(const{line:i}of this.#n){if(i.length<=12){for(let o=4,l=i.length;o<l;o+=6)ut.pointBoundingBox(i[o],i[o+1],e);continue}let s=i[4],a=i[5];for(let o=6,l=i.length;o<l;o+=6){const[u,c,d,h,m,g]=i.subarray(o,o+6);ut.bezierBoundingBox(s,a,u,c,d,h,m,g,e),s=m,a=g}}const[n,r]=this.#l();e[0]=is(e[0]-n,0,1),e[1]=is(e[1]-r,0,1),e[2]=is(e[2]+n,0,1),e[3]=is(e[3]+r,0,1),e[2]-=e[0],e[3]-=e[1]}get box(){return this.#e}updateProperty(e,n){return e==="stroke-width"?this.#h(n):null}#h(e){const[n,r]=this.#l();this.#u=e;const[i,s]=this.#l(),[a,o]=[i-n,s-r],l=this.#e;return l[0]-=a,l[1]-=o,l[2]+=2*a,l[3]+=2*o,l}updateParentDimensions([e,n],r){const[i,s]=this.#l();this.#i=e,this.#s=n,this.#a=r;const[a,o]=this.#l(),l=a-i,u=o-s,c=this.#e;return c[0]-=l,c[1]-=u,c[2]+=2*l,c[3]+=2*u,c}updateRotation(e){return this.#t=e,{path:{transform:this.rotationTransform}}}get viewBox(){return this.#e.map(lt.svgRound).join(" ")}get defaultProperties(){const[e,n]=this.#e;return{root:{viewBox:this.viewBox},path:{"transform-origin":`${lt.svgRound(e)} ${lt.svgRound(n)}`}}}get rotationTransform(){const[,,e,n]=this.#e;let r=0,i=0,s=0,a=0,o=0,l=0;switch(this.#t){case 90:i=n/e,s=-e/n,o=e;break;case 180:r=-1,a=-1,o=e,l=n;break;case 270:i=-n/e,s=e/n,l=n;break;default:return""}return`matrix(${r} ${i} ${s} ${a} ${lt.svgRound(o)} ${lt.svgRound(l)})`}getPathResizingSVGProperties([e,n,r,i]){const[s,a]=this.#l(),[o,l,u,c]=this.#e;if(Math.abs(u-s)<=lt.PRECISION||Math.abs(c-a)<=lt.PRECISION){const b=e+r/2-(o+u/2),v=n+i/2-(l+c/2);return{path:{"transform-origin":`${lt.svgRound(e)} ${lt.svgRound(n)}`,transform:`${this.rotationTransform} translate(${b} ${v})`}}}const d=(r-2*s)/(u-2*s),h=(i-2*a)/(c-2*a),m=u/r,g=c/i;return{path:{"transform-origin":`${lt.svgRound(o)} ${lt.svgRound(l)}`,transform:`${this.rotationTransform} scale(${m} ${g}) translate(${lt.svgRound(s)} ${lt.svgRound(a)}) scale(${d} ${h}) translate(${lt.svgRound(-s)} ${lt.svgRound(-a)})`}}}getPathResizedSVGProperties([e,n,r,i]){const[s,a]=this.#l(),o=this.#e,[l,u,c,d]=o;if(o[0]=e,o[1]=n,o[2]=r,o[3]=i,Math.abs(c-s)<=lt.PRECISION||Math.abs(d-a)<=lt.PRECISION){const v=e+r/2-(l+c/2),E=n+i/2-(u+d/2);for(const{line:x,points:_}of this.#n)lt._translate(x,v,E,x),lt._translate(_,v,E,_);return{root:{viewBox:this.viewBox},path:{"transform-origin":`${lt.svgRound(e)} ${lt.svgRound(n)}`,transform:this.rotationTransform||null,d:this.toSVGPath()}}}const h=(r-2*s)/(c-2*s),m=(i-2*a)/(d-2*a),g=-h*(l+s)+e+s,b=-m*(u+a)+n+a;if(h!==1||m!==1||g!==0||b!==0)for(const{line:v,points:E}of this.#n)lt._rescale(v,g,b,h,m,v),lt._rescale(E,g,b,h,m,E);return{root:{viewBox:this.viewBox},path:{"transform-origin":`${lt.svgRound(e)} ${lt.svgRound(n)}`,transform:this.rotationTransform||null,d:this.toSVGPath()}}}getPathTranslatedSVGProperties([e,n],r){const[i,s]=r,a=this.#e,o=e-a[0],l=n-a[1];if(this.#i===i&&this.#s===s)for(const{line:u,points:c}of this.#n)lt._translate(u,o,l,u),lt._translate(c,o,l,c);else{const u=this.#i/i,c=this.#s/s;this.#i=i,this.#s=s;for(const{line:d,points:h}of this.#n)lt._rescale(d,o,l,u,c,d),lt._rescale(h,o,l,u,c,h);a[2]*=u,a[3]*=c}return a[0]=e,a[1]=n,{root:{viewBox:this.viewBox},path:{d:this.toSVGPath(),"transform-origin":`${lt.svgRound(e)} ${lt.svgRound(n)}`}}}get defaultSVGProperties(){const e=this.#e;return{root:{viewBox:this.viewBox},rootClass:{draw:!0},path:{d:this.toSVGPath(),"transform-origin":`${lt.svgRound(e[0])} ${lt.svgRound(e[1])}`,transform:this.rotationTransform||null},bbox:e}}}class j3 extends xve{constructor(e){super(),this._viewParameters=e,super.updateProperties({fill:"none",stroke:Rt._defaultLineColor,"stroke-opacity":1,"stroke-width":1,"stroke-linecap":"round","stroke-linejoin":"round","stroke-miterlimit":10})}updateSVGProperty(e,n){e==="stroke-width"&&(n??=this["stroke-width"],n*=this._viewParameters.realScale),super.updateSVGProperty(e,n)}clone(){const e=new j3(this._viewParameters);return e.updateAll(this),e}}class iB extends Pt{static _type="ink";static _editorType=zt.INK;static _defaultDrawingOptions=null;constructor(e){super({...e,name:"inkEditor"}),this._willKeepAspectRatio=!0,this.defaultL10nId="pdfjs-editor-ink-editor"}static initialize(e,n){Rt.initialize(e,n),this._defaultDrawingOptions=new j3(n.viewParameters)}static getDefaultDrawingOptions(e){const n=this._defaultDrawingOptions.clone();return n.updateProperties(e),n}static get supportMultipleDrawings(){return!0}static get typesMap(){return Zt(this,"typesMap",new Map([[En.INK_THICKNESS,"stroke-width"],[En.INK_COLOR,"stroke"],[En.INK_OPACITY,"stroke-opacity"]]))}static createDrawerInstance(e,n,r,i,s){return new I0t(e,n,r,i,s,this._defaultDrawingOptions["stroke-width"])}static deserializeDraw(e,n,r,i,s,a){return aE.deserialize(e,n,r,i,s,a)}static async deserialize(e,n,r){let i=null;if(e instanceof nB){const{data:{inkLists:a,rect:o,rotation:l,id:u,color:c,opacity:d,borderStyle:{rawWidth:h},popupRef:m,richText:g,contentsObj:b,creationDate:v,modificationDate:E},parent:{page:{pageNumber:x}}}=e;i=e={annotationType:zt.INK,color:Array.from(c),thickness:h,opacity:d,paths:{points:a},boxes:null,pageIndex:x-1,rect:o.slice(0),rotation:l,annotationElementId:u,id:u,deleted:!1,popupRef:m,richText:g,comment:b?.str||null,creationDate:v,modificationDate:E}}const s=await super.deserialize(e,n,r);return s._initialData=i,e.comment&&s.setCommentData(e),s}get toolbarButtons(){return this._colorPicker||=new Ov(this),[["colorPicker",this._colorPicker]]}get colorType(){return En.INK_COLOR}get color(){return this._drawingOptions.stroke}get opacity(){return this._drawingOptions["stroke-opacity"]}onScaleChanging(){if(!this.parent)return;super.onScaleChanging();const{_drawId:e,_drawingOptions:n,parent:r}=this;n.updateSVGProperty("stroke-width"),r.drawLayer.updateProperties(e,n.toSVGProperties())}static onScaleChangingWhenDrawing(){const e=this._currentParent;e&&(super.onScaleChangingWhenDrawing(),this._defaultDrawingOptions.updateSVGProperty("stroke-width"),e.drawLayer.updateProperties(this._currentDrawId,this._defaultDrawingOptions.toSVGProperties()))}createDrawingOptions({color:e,thickness:n,opacity:r}){this._drawingOptions=iB.getDefaultDrawingOptions({stroke:ut.makeHexColor(...e),"stroke-width":n,"stroke-opacity":r})}serialize(e=!1){if(this.isEmpty())return null;if(this.deleted)return this.serializeDeleted();const{lines:n,points:r}=this.serializeDraw(e),{_drawingOptions:{stroke:i,"stroke-opacity":s,"stroke-width":a}}=this,o=Object.assign(super.serialize(e),{color:Rt._colorManager.convert(i),opacity:s,thickness:a,paths:{lines:n,points:r}});return this.addComment(o),e?(o.isCopy=!0,o):this.annotationElementId&&!this.#e(o)?null:(o.id=this.annotationElementId,o)}#e(e){const{color:n,thickness:r,opacity:i,pageIndex:s}=this._initialData;return this.hasEditedComment||this._hasBeenMoved||this._hasBeenResized||e.color.some((a,o)=>a!==n[o])||e.thickness!==r||e.opacity!==i||e.pageIndex!==s}renderAnnotationElement(e){if(this.deleted)return e.hide(),null;const{points:n,rect:r}=this.serializeDraw(!1);return e.updateEdited({rect:r,thickness:this._drawingOptions["stroke-width"],points:n,popup:this.comment}),null}}class P9 extends aE{toSVGPath(){let e=super.toSVGPath();return e.endsWith("Z")||(e+="Z"),e}}const Px=8,Ny=3;class dh{static#e={maxDim:512,sigmaSFactor:.02,sigmaR:25,kernelSize:16};static#t(e,n,r,i){return r-=e,i-=n,r===0?i>0?0:4:r===1?i+6:2-i}static#r=new Int32Array([0,1,-1,1,-1,0,-1,-1,0,-1,1,-1,1,0,1,1]);static#n(e,n,r,i,s,a,o){const l=this.#t(r,i,s,a);for(let u=0;u<8;u++){const c=(-u+l-o+16)%8,d=this.#r[2*c],h=this.#r[2*c+1];if(e[(r+d)*n+(i+h)]!==0)return c}return-1}static#i(e,n,r,i,s,a,o){const l=this.#t(r,i,s,a);for(let u=0;u<8;u++){const c=(u+l+o+16)%8,d=this.#r[2*c],h=this.#r[2*c+1];if(e[(r+d)*n+(i+h)]!==0)return c}return-1}static#s(e,n,r,i){const s=e.length,a=new Int32Array(s);for(let c=0;c<s;c++)a[c]=e[c]<=i?1:0;for(let c=1;c<r-1;c++)a[c*n]=a[c*n+n-1]=0;for(let c=0;c<n;c++)a[c]=a[n*r-1-c]=0;let o=1,l;const u=[];for(let c=1;c<r-1;c++){l=1;for(let d=1;d<n-1;d++){const h=c*n+d,m=a[h];if(m===0)continue;let g=c,b=d;if(m===1&&a[h-1]===0)o+=1,b-=1;else if(m>=1&&a[h+1]===0)o+=1,b+=1,m>1&&(l=m);else{m!==1&&(l=Math.abs(m));continue}const v=[d,c],E=b===d+1,x={isHole:E,points:v,id:o,parent:0};u.push(x);let _;for(const P of u)if(P.id===l){_=P;break}_?_.isHole?x.parent=E?_.parent:l:x.parent=E?l:_.parent:x.parent=E?l:0;const S=this.#n(a,n,c,d,g,b,0);if(S===-1){a[h]=-o,a[h]!==1&&(l=Math.abs(a[h]));continue}let A=this.#r[2*S],R=this.#r[2*S+1];const T=c+A,O=d+R;g=T,b=O;let I=c,D=d;for(;;){const P=this.#i(a,n,I,D,g,b,1);A=this.#r[2*P],R=this.#r[2*P+1];const B=I+A,L=D+R;v.push(L,B);const $=I*n+D;if(a[$+1]===0?a[$]=-o:a[$]===1&&(a[$]=o),B===c&&L===d&&I===T&&D===O){a[h]!==1&&(l=Math.abs(a[h]));break}else g=I,b=D,I=B,D=L}}}return u}static#a(e,n,r,i){if(r-n<=4){for(let T=n;T<r-2;T+=2)i.push(e[T],e[T+1]);return}const s=e[n],a=e[n+1],o=e[r-4]-s,l=e[r-3]-a,u=Math.hypot(o,l),c=o/u,d=l/u,h=c*a-d*s,m=l/o,g=1/u,b=Math.atan(m),v=Math.cos(b),E=Math.sin(b),x=g*(Math.abs(v)+Math.abs(E)),_=g*(1-x+x**2),S=Math.max(Math.atan(Math.abs(E+v)*_),Math.atan(Math.abs(E-v)*_));let A=0,R=n;for(let T=n+2;T<r-2;T+=2){const O=Math.abs(h-c*e[T+1]+d*e[T]);O>A&&(R=T,A=O)}A>(u*S)**2?(this.#a(e,n,R+2,i),this.#a(e,R,r,i)):i.push(s,a)}static#o(e){const n=[],r=e.length;return this.#a(e,0,r,n),n.push(e[r-2],e[r-1]),n.length<=4?null:n}static#u(e,n,r,i,s,a){const o=new Float32Array(a**2),l=-2*i**2,u=a>>1;for(let b=0;b<a;b++){const v=(b-u)**2;for(let E=0;E<a;E++)o[b*a+E]=Math.exp((v+(E-u)**2)/l)}const c=new Float32Array(256),d=-2*s**2;for(let b=0;b<256;b++)c[b]=Math.exp(b**2/d);const h=e.length,m=new Uint8Array(h),g=new Uint32Array(256);for(let b=0;b<r;b++)for(let v=0;v<n;v++){const E=b*n+v,x=e[E];let _=0,S=0;for(let R=0;R<a;R++){const T=b+R-u;if(!(T<0||T>=r))for(let O=0;O<a;O++){const I=v+O-u;if(I<0||I>=n)continue;const D=e[T*n+I],P=o[R*a+O]*c[Math.abs(D-x)];_+=D*P,S+=P}}const A=m[E]=Math.round(_/S);g[A]++}return[m,g]}static#l(e){const n=new Uint32Array(256);for(const r of e)n[r]++;return n}static#f(e){const n=e.length,r=new Uint8ClampedArray(n>>2);let i=-1/0,s=1/0;for(let o=0,l=r.length;o<l;o++){const u=r[o]=e[o<<2];i=Math.max(i,u),s=Math.min(s,u)}const a=255/(i-s);for(let o=0,l=r.length;o<l;o++)r[o]=(r[o]-s)*a;return r}static#d(e){let n,r=-1/0,i=-1/0;const s=e.findIndex(l=>l!==0);let a=s,o=s;for(n=s;n<256;n++){const l=e[n];l>r&&(n-a>i&&(i=n-a,o=n-1),r=l,a=n)}for(n=o-1;n>=0&&!(e[n]>e[n+1]);n--);return n}static#h(e){const n=e,{width:r,height:i}=e,{maxDim:s}=this.#e;let a=r,o=i;if(r>s||i>s){let h=r,m=i,g=Math.log2(Math.max(r,i)/s);const b=Math.floor(g);g=g===b?b-1:b;for(let E=0;E<g;E++){a=Math.ceil(h/2),o=Math.ceil(m/2);const x=new OffscreenCanvas(a,o);x.getContext("2d").drawImage(e,0,0,h,m,0,0,a,o),h=a,m=o,e!==n&&e.close(),e=x.transferToImageBitmap()}const v=Math.min(s/a,s/o);a=Math.round(a*v),o=Math.round(o*v)}const u=new OffscreenCanvas(a,o).getContext("2d",{willReadFrequently:!0});u.fillStyle="white",u.fillRect(0,0,a,o),u.filter="grayscale(1)",u.drawImage(e,0,0,e.width,e.height,0,0,a,o);const c=u.getImageData(0,0,a,o).data;return[this.#f(c),a,o]}static extractContoursFromText(e,{fontFamily:n,fontStyle:r,fontWeight:i},s,a,o,l){let u=new OffscreenCanvas(1,1),c=u.getContext("2d",{alpha:!1});const d=200,h=c.font=`${r} ${i} ${d}px ${n}`,{actualBoundingBoxLeft:m,actualBoundingBoxRight:g,actualBoundingBoxAscent:b,actualBoundingBoxDescent:v,fontBoundingBoxAscent:E,fontBoundingBoxDescent:x,width:_}=c.measureText(e),S=1.5,A=Math.ceil(Math.max(Math.abs(m)+Math.abs(g)||0,_)*S),R=Math.ceil(Math.max(Math.abs(b)+Math.abs(v)||d,Math.abs(E)+Math.abs(x)||d)*S);u=new OffscreenCanvas(A,R),c=u.getContext("2d",{alpha:!0,willReadFrequently:!0}),c.font=h,c.filter="grayscale(1)",c.fillStyle="white",c.fillRect(0,0,A,R),c.fillStyle="black",c.fillText(e,A*(S-1)/2,R*(3-S)/2);const T=this.#f(c.getImageData(0,0,A,R).data),O=this.#l(T),I=this.#d(O),D=this.#s(T,A,R,I);return this.processDrawnLines({lines:{curves:D,width:A,height:R},pageWidth:s,pageHeight:a,rotation:o,innerMargin:l,mustSmooth:!0,areContours:!0})}static process(e,n,r,i,s){const[a,o,l]=this.#h(e),[u,c]=this.#u(a,o,l,Math.hypot(o,l)*this.#e.sigmaSFactor,this.#e.sigmaR,this.#e.kernelSize),d=this.#d(c),h=this.#s(u,o,l,d);return this.processDrawnLines({lines:{curves:h,width:o,height:l},pageWidth:n,pageHeight:r,rotation:i,innerMargin:s,mustSmooth:!0,areContours:!0})}static processDrawnLines({lines:e,pageWidth:n,pageHeight:r,rotation:i,innerMargin:s,mustSmooth:a,areContours:o}){i%180!==0&&([n,r]=[r,n]);const{curves:l,width:u,height:c}=e,d=e.thickness??0,h=[],m=Math.min(n/u,r/c),g=m/n,b=m/r,v=[];for(const{points:x}of l){const _=a?this.#o(x):x;if(!_)continue;v.push(_);const S=_.length,A=new Float32Array(S),R=new Float32Array(3*(S===2?2:S-2));if(h.push({line:R,points:A}),S===2){A[0]=_[0]*g,A[1]=_[1]*b,R.set([NaN,NaN,NaN,NaN,A[0],A[1]],0);continue}let[T,O,I,D]=_;T*=g,O*=b,I*=g,D*=b,A.set([T,O,I,D],0),R.set([NaN,NaN,NaN,NaN,T,O],0);for(let P=4;P<S;P+=2){const B=A[P]=_[P]*g,L=A[P+1]=_[P+1]*b;R.set(lt.createBezierPoints(T,O,I,D,B,L),(P-2)*3),[T,O,I,D]=[I,D,B,L]}}if(h.length===0)return null;const E=o?new P9:new aE;return E.build(h,n,r,1,i,o?0:d,s),{outline:E,newCurves:v,areContours:o,thickness:d,width:u,height:c}}static async compressSignature({outlines:e,areContours:n,thickness:r,width:i,height:s}){let a=1/0,o=-1/0,l=0;for(const _ of e){l+=_.length;for(let S=2,A=_.length;S<A;S++){const R=_[S]-_[S-2];a=Math.min(a,R),o=Math.max(o,R)}}let u;a>=-128&&o<=127?u=Int8Array:a>=-32768&&o<=32767?u=Int16Array:u=Int32Array;const c=e.length,d=Px+Ny*c,h=new Uint32Array(d);let m=0;h[m++]=d*Uint32Array.BYTES_PER_ELEMENT+(l-2*c)*u.BYTES_PER_ELEMENT,h[m++]=0,h[m++]=i,h[m++]=s,h[m++]=n?0:1,h[m++]=Math.max(0,Math.floor(r??0)),h[m++]=c,h[m++]=u.BYTES_PER_ELEMENT;for(const _ of e)h[m++]=_.length-2,h[m++]=_[0],h[m++]=_[1];const g=new CompressionStream("deflate-raw"),b=g.writable.getWriter();await b.ready,b.write(h);const v=u.prototype.constructor;for(const _ of e){const S=new v(_.length-2);for(let A=2,R=_.length;A<R;A++)S[A-2]=_[A]-_[A-2];b.write(S)}b.close();const E=await new Response(g.readable).arrayBuffer(),x=new Uint8Array(E);return jbe(x)}static async decompressSignature(e){try{const n=rgt(e),{readable:r,writable:i}=new DecompressionStream("deflate-raw"),s=i.getWriter();await s.ready,s.write(n).then(async()=>{await s.ready,await s.close()}).catch(()=>{});let a=null,o=0;for await(const _ of r)a||=new Uint8Array(new Uint32Array(_.buffer,0,4)[0]),a.set(_,o),o+=_.length;const l=new Uint32Array(a.buffer,0,a.length>>2),u=l[1];if(u!==0)throw new Error(`Invalid version: ${u}`);const c=l[2],d=l[3],h=l[4]===0,m=l[5],g=l[6],b=l[7],v=[],E=(Px+Ny*g)*Uint32Array.BYTES_PER_ELEMENT;let x;switch(b){case Int8Array.BYTES_PER_ELEMENT:x=new Int8Array(a.buffer,E);break;case Int16Array.BYTES_PER_ELEMENT:x=new Int16Array(a.buffer,E);break;case Int32Array.BYTES_PER_ELEMENT:x=new Int32Array(a.buffer,E);break}o=0;for(let _=0;_<g;_++){const S=l[Ny*_+Px],A=new Float32Array(S+2);v.push(A);for(let R=0;R<Ny-1;R++)A[R]=l[Ny*_+Px+R+1];for(let R=0;R<S;R++)A[R+2]=A[R]+x[o++]}return{areContours:h,thickness:m,outlines:v,width:c,height:d}}catch(n){return Vt(`decompressSignature: ${n}`),null}}}class sB extends xve{constructor(){super(),super.updateProperties({fill:Rt._defaultLineColor,"stroke-width":0})}clone(){const e=new sB;return e.updateAll(this),e}}class aB extends j3{constructor(e){super(e),super.updateProperties({stroke:Rt._defaultLineColor,"stroke-width":1})}clone(){const e=new aB(this._viewParameters);return e.updateAll(this),e}}class $l extends Pt{#e=!1;#t=null;#r=null;#n=null;static _type="signature";static _editorType=zt.SIGNATURE;static _defaultDrawingOptions=null;constructor(e){super({...e,mustBeCommitted:!0,name:"signatureEditor"}),this._willKeepAspectRatio=!0,this.#r=e.signatureData||null,this.#t=null,this.defaultL10nId="pdfjs-editor-signature-editor1"}static initialize(e,n){Rt.initialize(e,n),this._defaultDrawingOptions=new sB,this._defaultDrawnSignatureOptions=new aB(n.viewParameters)}static getDefaultDrawingOptions(e){const n=this._defaultDrawingOptions.clone();return n.updateProperties(e),n}static get supportMultipleDrawings(){return!1}static get typesMap(){return Zt(this,"typesMap",new Map)}static get isDrawer(){return!1}get telemetryFinalData(){return{type:"signature",hasDescription:!!this.#t}}static computeTelemetryFinalData(e){const n=e.get("hasDescription");return{hasAltText:n.get(!0)??0,hasNoAltText:n.get(!1)??0}}get isResizable(){return!0}onScaleChanging(){this._drawId!==null&&super.onScaleChanging()}
vendor: 5,520 bytes, line 176
176render(){if(this.div)return this.div;let e,n;const{_isCopy:r}=this;if(r&&(this._isCopy=!1,e=this.x,n=this.y),super.render(),this._drawId===null)if(this.#r){const{lines:i,mustSmooth:s,areContours:a,description:o,uuid:l,heightInPage:u}=this.#r,{rawDims:{pageWidth:c,pageHeight:d},rotation:h}=this.parent.viewport,m=dh.processDrawnLines({lines:i,pageWidth:c,pageHeight:d,rotation:h,innerMargin:$l._INNER_MARGIN,mustSmooth:s,areContours:a});this.addSignature(m,u,o,l)}else this.div.setAttribute("data-l10n-args",JSON.stringify({description:""})),this.div.hidden=!0,this._uiManager.getSignature(this);else this.div.setAttribute("data-l10n-args",JSON.stringify({description:this.#t||""}));return r&&(this._isCopy=!0,this._moveAfterPaste(e,n)),this.div}setUuid(e){this.#n=e,this.addEditToolbar()}getUuid(){return this.#n}get description(){return this.#t}set description(e){this.#t=e,this.div&&(this.div.setAttribute("data-l10n-args",JSON.stringify({description:e})),super.addEditToolbar().then(n=>{n?.updateEditSignatureButton(e)}))}getSignaturePreview(){const{newCurves:e,areContours:n,thickness:r,width:i,height:s}=this.#r,a=Math.max(i,s),o=dh.processDrawnLines({lines:{curves:e.map(l=>({points:l})),thickness:r,width:i,height:s},pageWidth:a,pageHeight:a,rotation:0,innerMargin:0,mustSmooth:!1,areContours:n});return{areContours:n,outline:o.outline}}get toolbarButtons(){return this._uiManager.signatureManager?[["editSignature",this._uiManager.signatureManager]]:super.toolbarButtons}addSignature(e,n,r,i){const{x:s,y:a}=this,{outline:o}=this.#r=e;this.#e=o instanceof P9,this.description=r;let l;this.#e?l=$l.getDefaultDrawingOptions():(l=$l._defaultDrawnSignatureOptions.clone(),l.updateProperties({"stroke-width":o.thickness})),this._addOutlines({drawOutlines:o,drawingOptions:l});const[,u]=this.pageDimensions;let c=n/u;c=c>=1?.5:c,this.width*=c/this.height,this.width>=1&&(c*=.9/this.width,this.width=.9),this.height=c,this.setDims(),this.x=s,this.y=a,this.center(),this._onResized(),this.onScaleChanging(),this.rotate(),this._uiManager.addToAnnotationStorage(this),this.setUuid(i),this._reportTelemetry({action:"pdfjs.signature.inserted",data:{hasBeenSaved:!!i,hasDescription:!!r}}),this.div.hidden=!1}getFromImage(e){const{rawDims:{pageWidth:n,pageHeight:r},rotation:i}=this.parent.viewport;return dh.process(e,n,r,i,$l._INNER_MARGIN)}getFromText(e,n){const{rawDims:{pageWidth:r,pageHeight:i},rotation:s}=this.parent.viewport;return dh.extractContoursFromText(e,n,r,i,s,$l._INNER_MARGIN)}getDrawnSignature(e){const{rawDims:{pageWidth:n,pageHeight:r},rotation:i}=this.parent.viewport;return dh.processDrawnLines({lines:e,pageWidth:n,pageHeight:r,rotation:i,innerMargin:$l._INNER_MARGIN,mustSmooth:!1,areContours:!1})}createDrawingOptions({areContours:e,thickness:n}){e?this._drawingOptions=$l.getDefaultDrawingOptions():(this._drawingOptions=$l._defaultDrawnSignatureOptions.clone(),this._drawingOptions.updateProperties({"stroke-width":n}))}serialize(e=!1){if(this.isEmpty())return null;const{lines:n,points:r}=this.serializeDraw(e),{_drawingOptions:{"stroke-width":i}}=this,s=Object.assign(super.serialize(e),{isSignature:!0,areContours:this.#e,color:[0,0,0],thickness:this.#e?0:i});return this.addComment(s),e?(s.paths={lines:n,points:r},s.uuid=this.#n,s.isCopy=!0):s.lines=n,this.#t&&(s.accessibilityData={type:"Figure",alt:this.#t}),s}static deserializeDraw(e,n,r,i,s,a){return a.areContours?P9.deserialize(e,n,r,i,s,a):aE.deserialize(e,n,r,i,s,a)}static async deserialize(e,n,r){const i=await super.deserialize(e,n,r);return i.#e=e.areContours,i.description=e.accessibilityData?.alt||"",i.#n=e.uuid,i}}class M0t extends Rt{#e=null;#t=null;#r=null;#n=null;#i=null;#s="";#a=null;#o=!1;#u=null;#l=!1;#f=!1;static _type="stamp";static _editorType=zt.STAMP;constructor(e){super({...e,name:"stampEditor"}),this.#n=e.bitmapUrl,this.#i=e.bitmapFile,this.defaultL10nId="pdfjs-editor-stamp-editor"}static initialize(e,n){Rt.initialize(e,n)}static isHandlingMimeForPasting(e){return dC.includes(e)}static paste(e,n){n.pasteEditor({mode:zt.STAMP},{bitmapFile:e.getAsFile()})}altTextFinish(){this._uiManager.useNewAltTextFlow&&(this.div.hidden=!1),super.altTextFinish()}get telemetryFinalData(){return{type:"stamp",hasAltText:!!this.altTextData?.altText}}static computeTelemetryFinalData(e){const n=e.get("hasAltText");return{hasAltText:n.get(!0)??0,hasNoAltText:n.get(!1)??0}}#d(e,n=!1){if(!e){this.remove();return}this.#e=e.bitmap,n||(this.#t=e.id,this.#l=e.isSvg),e.file&&(this.#s=e.file.name),this.#p()}#h(){if(this.#r=null,this._uiManager.enableWaiting(!1),!!this.#a){if(this._uiManager.useNewAltTextWhenAddingImage&&this._uiManager.useNewAltTextFlow&&this.#e){this.addEditToolbar().then(()=>{this._editToolbar.hide(),this._uiManager.editAltText(this,!0)});return}if(!this._uiManager.useNewAltTextWhenAddingImage&&this._uiManager.useNewAltTextFlow&&this.#e){this._reportTelemetry({action:"pdfjs.image.image_added",data:{alt_text_modal:!1,alt_text_type:"empty"}});try{this.mlGuessAltText()}catch{}}this.div.focus()}}async mlGuessAltText(e=null,n=!0){if(this.hasAltTextData())return null;const{mlManager:r}=this._uiManager;if(!r)throw new Error("No ML.");if(!await r.isEnabledFor("altText"))throw new Error("ML isn't enabled for alt text.");const{data:i,width:s,height:a}=e||this.copyCanvas(null,null,!0).imageData,o=await r.guess({name:"altText",request:{data:i,width:s,height:a,channels:i.length/(s*a)}});if(!o)throw new Error("No response from the AI service.");if(o.error)throw new Error("Error from the AI service.");
vendor: 21,990 bytes, line 176
176if(o.cancel)return null;if(!o.output)throw new Error("No valid response from the AI service.");const l=o.output;return await this.setGuessedAltText(l),n&&!this.hasAltTextData()&&(this.altTextData={alt:l,decorative:!1}),l}#g(){if(this.#t){this._uiManager.enableWaiting(!0),this._uiManager.imageManager.getFromId(this.#t).then(r=>this.#d(r,!0)).finally(()=>this.#h());return}if(this.#n){const r=this.#n;this.#n=null,this._uiManager.enableWaiting(!0),this.#r=this._uiManager.imageManager.getFromUrl(r).then(i=>this.#d(i)).finally(()=>this.#h());return}if(this.#i){const r=this.#i;this.#i=null,this._uiManager.enableWaiting(!0),this.#r=this._uiManager.imageManager.getFromFile(r).then(i=>this.#d(i)).finally(()=>this.#h());return}const e=document.createElement("input");e.type="file",e.accept=dC.join(",");const n=this._uiManager._signal;this.#r=new Promise(r=>{e.addEventListener("change",async()=>{if(!e.files||e.files.length===0)this.remove();else{this._uiManager.enableWaiting(!0);const i=await this._uiManager.imageManager.getFromFile(e.files[0]);this._reportTelemetry({action:"pdfjs.image.image_selected",data:{alt_text_modal:this._uiManager.useNewAltTextFlow}}),this.#d(i)}r()},{signal:n}),e.addEventListener("cancel",()=>{this.remove(),r()},{signal:n})}).finally(()=>this.#h()),e.click()}remove(){this.#t&&(this.#e=null,this._uiManager.imageManager.deleteId(this.#t),this.#a?.remove(),this.#a=null,this.#u&&(clearTimeout(this.#u),this.#u=null)),super.remove()}rebuild(){if(!this.parent){this.#t&&this.#g();return}super.rebuild(),this.div!==null&&(this.#t&&this.#a===null&&this.#g(),this.isAttachedToDOM||this.parent.add(this))}onceAdded(e){this._isDraggable=!0,e&&this.div.focus()}isEmpty(){return!(this.#r||this.#e||this.#n||this.#i||this.#t||this.#o)}get toolbarButtons(){return[["altText",this.createAltText()]]}get isResizable(){return!0}render(){if(this.div)return this.div;let e,n;return this._isCopy&&(e=this.x,n=this.y),super.render(),this.div.hidden=!0,this.createAltText(),this.#o||(this.#e?this.#p():this.#g()),this._isCopy&&this._moveAfterPaste(e,n),this._uiManager.addShouldRescale(this),this.div}setCanvas(e,n){const{id:r,bitmap:i}=this._uiManager.imageManager.getFromCanvas(e,n);n.remove(),r&&this._uiManager.imageManager.isValidId(r)&&(this.#t=r,i&&(this.#e=i),this.#o=!1,this.#p())}_onResized(){this.onScaleChanging()}onScaleChanging(){if(!this.parent)return;this.#u!==null&&clearTimeout(this.#u);const e=200;this.#u=setTimeout(()=>{this.#u=null,this.#m()},e)}#p(){const{div:e}=this;let{width:n,height:r}=this.#e;const[i,s]=this.pageDimensions,a=.75;if(this.width)n=this.width*i,r=this.height*s;else if(n>a*i||r>a*s){const l=Math.min(a*i/n,a*s/r);n*=l,r*=l}this._uiManager.enableWaiting(!1);const o=this.#a=document.createElement("canvas");o.setAttribute("role","img"),this.addContainer(o),this.width=n/i,this.height=r/s,this.setDims(),this._initialOptions?.isCentered?this.center():this.fixAndSetPosition(),this._initialOptions=null,(!this._uiManager.useNewAltTextWhenAddingImage||!this._uiManager.useNewAltTextFlow||this.annotationElementId)&&(e.hidden=!1),this.#m(),this.#f||(this.parent.addUndoableEditor(this),this.#f=!0),this._reportTelemetry({action:"inserted_image"}),this.#s&&this.div.setAttribute("aria-description",this.#s),this.annotationElementId||this._uiManager.a11yAlert("pdfjs-editor-stamp-added-alert")}copyCanvas(e,n,r=!1){e||(e=224);const{width:i,height:s}=this.#e,a=new hl;let o=this.#e,l=i,u=s,c=null;if(n){if(i>n||s>n){const R=Math.min(n/i,n/s);l=Math.floor(i*R),u=Math.floor(s*R)}c=document.createElement("canvas");const h=c.width=Math.ceil(l*a.sx),m=c.height=Math.ceil(u*a.sy);this.#l||(o=this.#c(h,m));const g=c.getContext("2d");g.filter=this._uiManager.hcmFilter;let b="white",v="#cfcfd8";this._uiManager.hcmFilter!=="none"?v="black":agt.isDarkMode&&(b="#8f8f9d",v="#42414d");const E=15,x=E*a.sx,_=E*a.sy,S=new OffscreenCanvas(x*2,_*2),A=S.getContext("2d");A.fillStyle=b,A.fillRect(0,0,x*2,_*2),A.fillStyle=v,A.fillRect(0,0,x,_),A.fillRect(x,_,x,_),g.fillStyle=g.createPattern(S,"repeat"),g.fillRect(0,0,h,m),g.drawImage(o,0,0,o.width,o.height,0,0,h,m)}let d=null;if(r){let h,m;if(a.symmetric&&o.width<e&&o.height<e)h=o.width,m=o.height;else if(o=this.#e,i>e||s>e){const v=Math.min(e/i,e/s);h=Math.floor(i*v),m=Math.floor(s*v),this.#l||(o=this.#c(h,m))}const b=new OffscreenCanvas(h,m).getContext("2d",{willReadFrequently:!0});b.drawImage(o,0,0,o.width,o.height,0,0,h,m),d={width:h,height:m,data:b.getImageData(0,0,h,m).data}}return{canvas:c,width:l,height:u,imageData:d}}#c(e,n){const{width:r,height:i}=this.#e;let s=r,a=i,o=this.#e;for(;s>2*e||a>2*n;){const l=s,u=a;s>2*e&&(s=s>=16384?Math.floor(s/2)-1:Math.ceil(s/2)),a>2*n&&(a=a>=16384?Math.floor(a/2)-1:Math.ceil(a/2));const c=new OffscreenCanvas(s,a);c.getContext("2d").drawImage(o,0,0,l,u,0,0,s,a),o=c.transferToImageBitmap()}return o}#m(){const[e,n]=this.parentDimensions,{width:r,height:i}=this,s=new hl,a=Math.ceil(r*e*s.sx),o=Math.ceil(i*n*s.sy),l=this.#a;if(!l||l.width===a&&l.height===o)return;l.width=a,l.height=o;const u=this.#l?this.#e:this.#c(a,o),c=l.getContext("2d");c.filter=this._uiManager.hcmFilter,c.drawImage(u,0,0,u.width,u.height,0,0,a,o)}#y(e){if(e){if(this.#l){const i=this._uiManager.imageManager.getSvgUrl(this.#t);if(i)return i}const n=document.createElement("canvas");return{width:n.width,height:n.height}=this.#e,n.getContext("2d").drawImage(this.#e,0,0),n.toDataURL()}if(this.#l){const[n,r]=this.pageDimensions,i=Math.round(this.width*n*tp.PDF_TO_CSS_UNITS),s=Math.round(this.height*r*tp.PDF_TO_CSS_UNITS),a=new OffscreenCanvas(i,s);return a.getContext("2d").drawImage(this.#e,0,0,this.#e.width,this.#e.height,0,0,i,s),a.transferToImageBitmap()}return structuredClone(this.#e)}static async deserialize(e,n,r){let i=null,s=!1;if(e instanceof vve){const{data:{rect:b,rotation:v,id:E,structParent:x,popupRef:_,richText:S,contentsObj:A,creationDate:R,modificationDate:T},container:O,parent:{page:{pageNumber:I}},canvas:D}=e;let P,B;D?(delete e.canvas,{id:P,bitmap:B}=r.imageManager.getFromCanvas(O.id,D),D.remove()):(s=!0,e._hasNoCanvas=!0);const L=(await n._structTree.getAriaAttributes(`${zF}${E}`))?.get("aria-label")||"";i=e={annotationType:zt.STAMP,bitmapId:P,bitmap:B,pageIndex:I-1,rect:b.slice(0),rotation:v,annotationElementId:E,id:E,deleted:!1,accessibilityData:{decorative:!1,altText:L},isSvg:!1,structParent:x,popupRef:_,richText:S,comment:A?.str||null,creationDate:R,modificationDate:T}}const a=await super.deserialize(e,n,r),{rect:o,bitmap:l,bitmapUrl:u,bitmapId:c,isSvg:d,accessibilityData:h}=e;s?(r.addMissingCanvas(e.id,a),a.#o=!0):c&&r.imageManager.isValidId(c)?(a.#t=c,l&&(a.#e=l)):a.#n=u,a.#l=d;const[m,g]=a.pageDimensions;return a.width=(o[2]-o[0])/m,a.height=(o[3]-o[1])/g,h&&(a.altTextData=h),a._initialData=i,e.comment&&a.setCommentData(e),a.#f=!!i,a}serialize(e=!1,n=null){if(this.isEmpty())return null;if(this.deleted)return this.serializeDeleted();const r=Object.assign(super.serialize(e),{bitmapId:this.#t,isSvg:this.#l});if(this.addComment(r),e)return r.bitmapUrl=this.#y(!0),r.accessibilityData=this.serializeAltText(!0),r.isCopy=!0,r;const{decorative:i,altText:s}=this.serializeAltText(!1);if(!i&&s&&(r.accessibilityData={type:"Figure",alt:s}),this.annotationElementId){const o=this.#v(r);return o.isSame?null:(o.isSameAltText?delete r.accessibilityData:r.accessibilityData.structParent=this._initialData.structParent??-1,r.id=this.annotationElementId,delete r.bitmapId,r)}if(n===null)return r;n.stamps||=new Map;const a=this.#l?(r.rect[2]-r.rect[0])*(r.rect[3]-r.rect[1]):null;if(!n.stamps.has(this.#t))n.stamps.set(this.#t,{area:a,serialized:r}),r.bitmap=this.#y(!1);else if(this.#l){const o=n.stamps.get(this.#t);a>o.area&&(o.area=a,o.serialized.bitmap.close(),o.serialized.bitmap=this.#y(!1))}return r}#v(e){const{pageIndex:n,accessibilityData:{altText:r}}=this._initialData,i=e.pageIndex===n,s=(e.accessibilityData?.alt||"")===r;return{isSame:!this.hasEditedComment&&!this._hasBeenMoved&&!this._hasBeenResized&&i&&s,isSameAltText:s}}renderAnnotationElement(e){return this.deleted?(e.hide(),null):(e.updateEdited({rect:this.getPDFRect(),popup:this.comment}),null)}}class zl{#e;#t=!1;#r=null;#n=null;#i=null;#s=new Map;#a=!1;#o=!1;#u=!1;#l=null;#f=null;#d=null;#h=null;#g=null;#p=-1;#c;static _initialized=!1;static#m=new Map([Pi,iB,M0t,Qr,$l].map(e=>[e._editorType,e]));constructor({uiManager:e,pageIndex:n,div:r,structTreeLayer:i,accessibilityManager:s,annotationLayer:a,drawLayer:o,textLayer:l,viewport:u,l10n:c}){const d=[...zl.#m.values()];if(!zl._initialized){zl._initialized=!0;for(const h of d)h.initialize(c,e)}e.registerEditorTypes(d),this.#c=e,this.pageIndex=n,this.div=r,this.#e=s,this.#r=a,this.viewport=u,this.#d=l,this.drawLayer=o,this._structTree=i,this.#c.addLayer(this)}get isEmpty(){return this.#s.size===0}get isInvisible(){return this.isEmpty&&this.#c.getMode()===zt.NONE}updateToolbar(e){this.#c.updateToolbar(e)}updateMode(e=this.#c.getMode()){switch(this.#E(),e){case zt.NONE:this.div.classList.toggle("nonEditing",!0),this.disableTextSelection(),this.togglePointerEvents(!1),this.toggleAnnotationLayerPointerEvents(!0),this.disableClick();return;case zt.INK:this.disableTextSelection(),this.togglePointerEvents(!0),this.enableClick();break;case zt.HIGHLIGHT:this.enableTextSelection(),this.togglePointerEvents(!1),this.disableClick();break;default:this.disableTextSelection(),this.togglePointerEvents(!0),this.enableClick()}this.toggleAnnotationLayerPointerEvents(!1);const{classList:n}=this.div;if(n.toggle("nonEditing",!1),e===zt.POPUP)n.toggle("commentEditing",!0);else{n.toggle("commentEditing",!1);for(const r of zl.#m.values())n.toggle(`${r._type}Editing`,e===r._editorType)}this.div.hidden=!1}hasTextLayer(e){return e===this.#d?.div}setEditingState(e){this.#c.setEditingState(e)}addCommands(e){this.#c.addCommands(e)}cleanUndoStack(e){this.#c.cleanUndoStack(e)}toggleDrawing(e=!1){this.div.classList.toggle("drawing",!e)}togglePointerEvents(e=!1){this.div.classList.toggle("disabled",!e)}toggleAnnotationLayerPointerEvents(e=!1){this.#r?.div.classList.toggle("disabled",!e)}get#y(){return this.#s.size!==0?this.#s.values():this.#c.getEditors(this.pageIndex)}async enable(){this.#u=!0,this.div.tabIndex=0,this.togglePointerEvents(!0),this.div.classList.toggle("nonEditing",!1),this.#g?.abort(),this.#g=null;const e=new Set;for(const r of this.#y)r.enableEditing(),r.show(!0),r.annotationElementId&&(this.#c.removeChangedExistingAnnotation(r),e.add(r.annotationElementId));const n=this.#r;if(n)for(const r of n.getEditableAnnotations()){if(r.hide(),this.#c.isDeletedAnnotationElement(r.data.id)||e.has(r.data.id))continue;const i=await this.deserialize(r);i&&(this.addOrRebuild(i),i.enableEditing())}this.#u=!1,this.#c._eventBus.dispatch("editorsrendered",{source:this,pageNumber:this.pageIndex+1})}disable(){if(this.#o=!0,this.div.tabIndex=-1,this.togglePointerEvents(!1),this.div.classList.toggle("nonEditing",!0),this.#d&&!this.#g){this.#g=new AbortController;const r=this.#c.combinedSignal(this.#g);this.#d.div.addEventListener("pointerdown",i=>{const{clientX:a,clientY:o,timeStamp:l}=i,u=this.#p;if(l-u>500){this.#p=l;return}this.#p=-1;const{classList:c}=this.div;c.toggle("getElements",!0);const d=document.elementsFromPoint(a,o);if(c.toggle("getElements",!1),!this.div.contains(d[0]))return;let h;const m=new RegExp(`^${Tv}[0-9]+$`);for(const b of d)if(m.test(b.id)){h=b.id;break}if(!h)return;const g=this.#s.get(h);g?.annotationElementId===null&&(i.stopPropagation(),i.preventDefault(),g.dblclick(i))},{signal:r,capture:!0})}const e=this.#r;if(e){const r=new Map,i=new Map;for(const a of this.#y){if(a.disableEditing(),!a.annotationElementId){a.updateFakeAnnotationElement(e);continue}if(a.serialize()!==null){r.set(a.annotationElementId,a);continue}else i.set(a.annotationElementId,a);this.getEditableAnnotation(a.annotationElementId)?.show(),a.remove()}const s=e.getEditableAnnotations();for(const a of s){const{id:o}=a.data;if(this.#c.isDeletedAnnotationElement(o)){a.updateEdited({deleted:!0});continue}let l=i.get(o);if(l){l.resetAnnotationElement(a),l.show(!1),a.show();continue}l=r.get(o),l&&(this.#c.addChangedExistingAnnotation(l),l.renderAnnotationElement(a)&&l.show(!1)),a.show()}}this.#E(),this.isEmpty&&(this.div.hidden=!0);const{classList:n}=this.div;for(const r of zl.#m.values())n.remove(`${r._type}Editing`);this.disableTextSelection(),this.toggleAnnotationLayerPointerEvents(!0),this.#o=!1}getEditableAnnotation(e){return this.#r?.getEditableAnnotation(e)||null}setActiveEditor(e){this.#c.getActive()!==e&&this.#c.setActiveEditor(e)}enableTextSelection(){if(this.div.tabIndex=-1,this.#d?.div&&!this.#h){this.#h=new AbortController;const e=this.#c.combinedSignal(this.#h);this.#d.div.addEventListener("pointerdown",this.#v.bind(this),{signal:e}),this.#d.div.classList.add("highlighting")}}disableTextSelection(){this.div.tabIndex=0,this.#d?.div&&this.#h&&(this.#h.abort(),this.#h=null,this.#d.div.classList.remove("highlighting"))}#v(e){this.#c.unselectAll();const{target:n}=e;if(n===this.#d.div||(n.getAttribute("role")==="img"||n.classList.contains("endOfContent"))&&this.#d.div.contains(n)){const{isMac:r}=zi.platform;if(e.button!==0||e.ctrlKey&&r)return;this.#c.showAllEditors("highlight",!0,!0),this.#d.div.classList.add("free"),this.toggleDrawing(),Qr.startHighlighting(this,this.#c.direction==="ltr",{target:this.#d.div,x:e.x,y:e.y}),this.#d.div.addEventListener("pointerup",()=>{this.#d.div.classList.remove("free"),this.toggleDrawing(!0)},{once:!0,signal:this.#c._signal}),e.preventDefault()}}enableClick(){if(this.#n)return;this.#n=new AbortController;const e=this.#c.combinedSignal(this.#n);this.div.addEventListener("pointerdown",this.pointerdown.bind(this),{signal:e});const n=this.pointerup.bind(this);this.div.addEventListener("pointerup",n,{signal:e}),this.div.addEventListener("pointercancel",n,{signal:e})}disableClick(){this.#n?.abort(),this.#n=null}attach(e){this.#s.set(e.id,e);const{annotationElementId:n}=e;n&&this.#c.isDeletedAnnotationElement(n)&&this.#c.removeDeletedAnnotationElement(e)}detach(e){this.#s.delete(e.id),this.#e?.removePointerInTextLayer(e.contentDiv),!this.#o&&e.annotationElementId&&this.#c.addDeletedAnnotationElement(e)}remove(e){this.detach(e),this.#c.removeEditor(e),e.div.remove(),e.isAttachedToDOM=!1}changeParent(e){e.parent!==this&&(e.parent&&e.annotationElementId&&(this.#c.addDeletedAnnotationElement(e.annotationElementId),Rt.deleteAnnotationElement(e),e.annotationElementId=null),this.attach(e),e.parent?.detach(e),e.setParent(this),e.div&&e.isAttachedToDOM&&(e.div.remove(),this.div.append(e.div)))}add(e){if(!(e.parent===this&&e.isAttachedToDOM)){if(this.changeParent(e),this.#c.addEditor(e),this.attach(e),!e.isAttachedToDOM){const n=e.render();this.div.append(n),e.isAttachedToDOM=!0}e.fixAndSetPosition(),e.onceAdded(!this.#u),this.#c.addToAnnotationStorage(e),e._reportTelemetry(e.telemetryInitialData)}}moveEditorInDOM(e){if(!e.isAttachedToDOM)return;const{activeElement:n}=document;e.div.contains(n)&&!this.#i&&(e._focusEventsAllowed=!1,this.#i=setTimeout(()=>{this.#i=null,e.div.contains(document.activeElement)?e._focusEventsAllowed=!0:(e.div.addEventListener("focusin",()=>{e._focusEventsAllowed=!0},{once:!0,signal:this.#c._signal}),n.focus())},0)),e._structTreeParentId=this.#e?.moveElementInDOM(this.div,e.div,e.contentDiv,!0)}addOrRebuild(e){e.needsToBeRebuilt()?(e.parent||=this,e.rebuild(),e.show()):this.add(e)}addUndoableEditor(e){const n=()=>e._uiManager.rebuild(e),r=()=>{e.remove()};this.addCommands({cmd:n,undo:r,mustExec:!1})}getEditorByUID(e){for(const n of this.#s.values())if(n.uid===e)return n;return null}getNextId(){return this.#c.getId()}get#b(){return zl.#m.get(this.#c.getMode())}combinedSignal(e){return this.#c.combinedSignal(e)}#S(e){const n=this.#b;return n?new n.prototype.constructor(e):null}canCreateNewEmptyEditor(){return this.#b?.canCreateNewEmptyEditor()}async pasteEditor(e,n){this.updateToolbar(e),await this.#c.updateMode(e.mode);const{offsetX:r,offsetY:i}=this.#x(),s=this.getNextId(),a=this.#S({parent:this,id:s,x:r,y:i,uiManager:this.#c,isCentered:!0,...n});a&&this.add(a)}async deserialize(e){return await zl.#m.get(e.annotationType??e.annotationEditorType)?.deserialize(e,this,this.#c)||null}createAndAddNewEditor(e,n,r={}){const i=this.getNextId(),s=this.#S({parent:this,id:i,x:e.offsetX,y:e.offsetY,uiManager:this.#c,isCentered:n,...r});return s&&this.add(s),s}get boundingClientRect(){return this.div.getBoundingClientRect()}#x(){const{x:e,y:n,width:r,height:i}=this.boundingClientRect,s=Math.max(0,e),a=Math.max(0,n),o=Math.min(window.innerWidth,e+r),l=Math.min(window.innerHeight,n+i),u=(s+o)/2-e,c=(a+l)/2-n,[d,h]=this.viewport.rotation%180===0?[u,c]:[c,u];return{offsetX:d,offsetY:h}}addNewEditor(e={}){this.createAndAddNewEditor(this.#x(),!0,e)}setSelected(e){this.#c.setSelected(e)}toggleSelected(e){this.#c.toggleSelected(e)}unselect(e){this.#c.unselect(e)}pointerup(e){const{isMac:n}=zi.platform;if(e.button!==0||e.ctrlKey&&n||e.target!==this.div||!this.#a||(this.#a=!1,this.#b?.isDrawer&&this.#b.supportMultipleDrawings))return;if(!this.#t){this.#t=!0;return}const r=this.#c.getMode();if(r===zt.STAMP||r===zt.SIGNATURE){this.#c.unselectAll();return}this.createAndAddNewEditor(e,!1)}pointerdown(e){if(this.#c.getMode()===zt.HIGHLIGHT&&this.enableTextSelection(),this.#a){this.#a=!1;return}const{isMac:n}=zi.platform;if(e.button!==0||e.ctrlKey&&n||e.target!==this.div)return;if(this.#a=!0,this.#b?.isDrawer){this.startDrawingSession(e);return}const r=this.#c.getActive();this.#t=!r||r.isEmpty()}startDrawingSession(e){if(this.div.focus({preventScroll:!0}),this.#l){this.#b.startDrawing(this,this.#c,!1,e);return}this.#c.setCurrentDrawingSession(this),this.#l=new AbortController;const n=this.#c.combinedSignal(this.#l);this.div.addEventListener("blur",({relatedTarget:r})=>{r&&!this.div.contains(r)&&(this.#f=null,this.commitOrRemove())},{signal:n}),this.#b.startDrawing(this,this.#c,!1,e)}pause(e){if(e){const{activeElement:n}=document;this.div.contains(n)&&(this.#f=n);return}this.#f&&setTimeout(()=>{this.#f?.focus(),this.#f=null},0)}endDrawingSession(e=!1){return this.#l?(this.#c.setCurrentDrawingSession(null),this.#l.abort(),this.#l=null,this.#f=null,this.#b.endDrawing(e)):null}findNewParent(e,n,r){const i=this.#c.findParent(n,r);return i===null||i===this?!1:(i.changeParent(e),!0)}commitOrRemove(){return this.#l?(this.endDrawingSession(),!0):!1}onScaleChanging(){this.#l&&this.#b.onScaleChangingWhenDrawing(this)}destroy(){this.commitOrRemove(),this.#c.getActive()?.parent===this&&(this.#c.commitOrRemove(),this.#c.setActiveEditor(null)),this.#i&&(clearTimeout(this.#i),this.#i=null);for(const e of this.#s.values())this.#e?.removePointerInTextLayer(e.contentDiv),e.setParent(null),e.isAttachedToDOM=!1,e.div.remove();this.div=null,this.#s.clear(),this.#c.removeLayer(this)}#E(){for(const e of this.#s.values())e.isEmpty()&&e.remove()}render({viewport:e}){this.viewport=e,lf(this.div,e);for(const n of this.#c.getEditors(this.pageIndex))this.add(n),n.rebuild();this.updateMode()}update({viewport:e}){this.#c.commitOrRemove(),this.#E();const n=this.viewport.rotation,r=e.rotation;if(this.viewport=e,lf(this.div,{rotation:r}),n!==r)for(const i of this.#s.values())i.rotate(r)}get pageDimensions(){const{pageWidth:e,pageHeight:n}=this.viewport.rawDims;return[e,n]}get scale(){return this.#c.viewParameters.realScale}}class Li{#e=null;#t=new Map;#r=new Map;static#n=0;constructor({pageIndex:e}){this.pageIndex=e}setParent(e){if(!this.#e){this.#e=e;return}if(this.#e!==e){if(this.#t.size>0)for(const n of this.#t.values())n.remove(),e.append(n);this.#e=e}}static get _svgFactory(){return Zt(this,"_svgFactory",new kv)}static#i(e,[n,r,i,s]){const{style:a}=e;a.top=`${100*r}%`,a.left=`${100*n}%`,a.width=`${100*i}%`,a.height=`${100*s}%`}#s(){const e=Li._svgFactory.create(1,1,!0);return this.#e.append(e),e.setAttribute("aria-hidden",!0),e}#a(e,n){const r=Li._svgFactory.createElement("clipPath");e.append(r);const i=`clip_${n}`;r.setAttribute("id",i),r.setAttribute("clipPathUnits","objectBoundingBox");const s=Li._svgFactory.createElement("use");return r.append(s),s.setAttribute("href",`#${n}`),s.classList.add("clip"),i}#o(e,n){for(const[r,i]of Object.entries(n))i===null?e.removeAttribute(r):e.setAttribute(r,i)}draw(e,n=!1,r=!1){const i=Li.#n++,s=this.#s(),a=Li._svgFactory.createElement("defs");s.append(a);const o=Li._svgFactory.createElement("path");a.append(o);const l=`path_p${this.pageIndex}_${i}`;o.setAttribute("id",l),o.setAttribute("vector-effect","non-scaling-stroke"),n&&this.#r.set(i,o);const u=r?this.#a(a,l):null,c=Li._svgFactory.createElement("use");return s.append(c),c.setAttribute("href",`#${l}`),this.updateProperties(s,e),this.#t.set(i,s),{id:i,clipPathId:`url(#${u})`}}drawOutline(e,n){const r=Li.#n++,i=this.#s(),s=Li._svgFactory.createElement("defs");i.append(s);const a=Li._svgFactory.createElement("path");s.append(a);const o=`path_p${this.pageIndex}_${r}`;a.setAttribute("id",o),a.setAttribute("vector-effect","non-scaling-stroke");let l;if(n){const d=Li._svgFactory.createElement("mask");s.append(d),l=`mask_p${this.pageIndex}_${r}`,d.setAttribute("id",l),d.setAttribute("maskUnits","objectBoundingBox");const h=Li._svgFactory.createElement("rect");d.append(h),h.setAttribute("width","1"),h.setAttribute("height","1"),h.setAttribute("fill","white");const m=Li._svgFactory.createElement("use");d.append(m),m.setAttribute("href",`#${o}`),m.setAttribute("stroke","none"),m.setAttribute("fill","black"),m.setAttribute("fill-rule","nonzero"),m.classList.add("mask")}const u=Li._svgFactory.createElement("use");i.append(u),u.setAttribute("href",`#${o}`),l&&u.setAttribute("mask",`url(#${l})`);const c=u.cloneNode();return i.append(c),u.classList.add("mainOutline"),c.classList.add("secondaryOutline"),this.updateProperties(i,e),this.#t.set(r,i),r}finalizeDraw(e,n){this.#r.delete(e),this.updateProperties(e,n)}updateProperties(e,n){if(!n)return;const{root:r,bbox:i,rootClass:s,path:a}=n,o=typeof e=="number"?this.#t.get(e):e;
176if(o){if(r&&this.#o(o,r),i&&Li.#i(o,i),s){const{classList:l}=o;for(const[u,c]of Object.entries(s))l.toggle(u,c)}if(a){const u=o.firstChild.firstChild;this.#o(u,a)}}}updateParent(e,n){if(n===this)return;const r=this.#t.get(e);r&&(n.#e.append(r),this.#t.delete(e),n.#t.set(e,r))}remove(e){this.#r.delete(e),this.#e!==null&&(this.#t.get(e).remove(),this.#t.delete(e))}destroy(){this.#e=null;for(const e of this.#t.values())e.remove();this.#t.clear(),this.#r.clear()}}globalThis._pdfjsTestingUtils={HighlightOutliner:M9};globalThis.pdfjsLib={AbortException:$c,AnnotationEditorLayer:zl,AnnotationEditorParamsType:En,AnnotationEditorType:zt,AnnotationEditorUIManager:Fc,AnnotationLayer:rB,AnnotationMode:Kl,AnnotationType:Xr,applyOpacity:Wbe,build:pve,ColorPicker:Ia,createValidAbsoluteUrl:HF,CSSConstants:Gbe,DOMSVGFactory:kv,DrawLayer:Li,FeatureTest:zi,fetchData:Z0,findContrastColor:Ybe,getDocument:ZF,getFilenameFromUrl:zbe,getPdfFilenameFromUrl:Vbe,getRGB:J0,getUuid:jF,getXfaPageViewport:qbe,GlobalWorkerOptions:Dh,ImageKind:xb,InvalidPDFException:uC,isDataScheme:nE,isPdfFile:H3,isValidExplicitDest:Zbe,MathClamp:is,noContextMenu:Ya,normalizeUnicode:Ube,OPS:r0,OutputScale:hl,PasswordResponses:Bbe,PDFDataRangeTransport:eB,PDFDateString:cC,PDFWorker:i0,PermissionFlag:Fbe,PixelsPerInch:tp,RenderingCancelledException:B3,renderRichText:qF,ResponseException:Av,setLayerDimensions:lf,shadow:Zt,SignatureExtractor:dh,stopEvent:Ir,SupportedImageMimeTypes:dC,TextLayer:Nv,TouchManager:iE,updateUrlHash:UF,Util:ut,VerbosityLevel:J2,version:hve,XfaLayer:VF};const D0t=Object.freeze(Object.defineProperty({__proto__:null,AbortException:$c,AnnotationEditorLayer:zl,AnnotationEditorParamsType:En,AnnotationEditorType:zt,AnnotationEditorUIManager:Fc,AnnotationLayer:rB,AnnotationMode:Kl,AnnotationType:Xr,CSSConstants:Gbe,ColorPicker:Ia,DOMSVGFactory:kv,DrawLayer:Li,FeatureTest:zi,GlobalWorkerOptions:Dh,ImageKind:xb,InvalidPDFException:uC,MathClamp:is,OPS:r0,OutputScale:hl,PDFDataRangeTransport:eB,PDFDateString:cC,PDFWorker:i0,PasswordResponses:Bbe,PermissionFlag:Fbe,PixelsPerInch:tp,RenderingCancelledException:B3,ResponseException:Av,SignatureExtractor:dh,SupportedImageMimeTypes:dC,TextLayer:Nv,TouchManager:iE,Util:ut,VerbosityLevel:J2,XfaLayer:VF,applyOpacity:Wbe,build:pve,createValidAbsoluteUrl:HF,fetchData:Z0,findContrastColor:Ybe,getDocument:ZF,getFilenameFromUrl:zbe,getPdfFilenameFromUrl:Vbe,getRGB:J0,getUuid:jF,getXfaPageViewport:qbe,isDataScheme:nE,isPdfFile:H3,isValidExplicitDest:Zbe,noContextMenu:Ya,normalizeUnicode:Ube,renderRichText:qF,setLayerDimensions:lf,shadow:Zt,stopEvent:Ir,updateUrlHash:UF,version:hve},Symbol.toStringTag,{value:"Module"}));var GZ=Object.prototype.hasOwnProperty;function WZ(t,e,n){for(n of t.keys())if(Ph(n,e))return n}function Ph(t,e){var n,r,i;if(t===e)return!0;if(t&&e&&(n=t.constructor)===e.constructor){if(n===Date)return t.getTime()===e.getTime();if(n===RegExp)return t.toString()===e.toString();if(n===Array){if((r=t.length)===e.length)for(;r--&&Ph(t[r],e[r]););return r===-1}if(n===Set){if(t.size!==e.size)return!1;for(r of t)if(i=r,i&&typeof i=="object"&&(i=WZ(e,i),!i)||!e.has(i))return!1;return!0}if(n===Map){if(t.size!==e.size)return!1;for(r of t)if(i=r[0],i&&typeof i=="object"&&(i=WZ(e,i),!i)||!Ph(r[1],e.get(i)))return!1;return!0}if(n===ArrayBuffer)t=new Uint8Array(t),e=new Uint8Array(e);else if(n===DataView){if((r=t.byteLength)===e.byteLength)for(;r--&&t.getInt8(r)===e.getInt8(r););return r===-1}if(ArrayBuffer.isView(t)){if((r=t.byteLength)===e.byteLength)for(;r--&&t[r]===e[r];);return r===-1}if(!n||typeof t=="object"){r=0;for(n in t)if(GZ.call(t,n)&&++r&&!GZ.call(e,n)||!(n in e)||!Ph(t[n],e[n]))return!1;return Object.keys(e).length===r}}return t!==t&&e!==e}function oE(t){let e=!1;return{promise:new Promise((r,i)=>{t.then(s=>!e&&r(s)).catch(s=>!e&&i(s))}),cancel(){e=!0}}}const P0t=["onCopy","onCut","onPaste"],L0t=["onCompositionEnd","onCompositionStart","onCompositionUpdate"],$0t=["onFocus","onBlur"],F0t=["onInput","onInvalid","onReset","onSubmit"],B0t=["onLoad","onError"],H0t=["onKeyDown","onKeyPress","onKeyUp"],U0t=["onAbort","onCanPlay","onCanPlayThrough","onDurationChange","onEmptied","onEncrypted","onEnded","onError","onLoadedData","onLoadedMetadata","onLoadStart","onPause","onPlay","onPlaying","onProgress","onRateChange","onSeeked","onSeeking","onStalled","onSuspend","onTimeUpdate","onVolumeChange","onWaiting"],j0t=["onClick","onContextMenu","onDoubleClick","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp"],z0t=["onDrag","onDragEnd","onDragEnter","onDragExit","onDragLeave","onDragOver","onDragStart","onDrop"],V0t=["onSelect"],q0t=["onTouchCancel","onTouchEnd","onTouchMove","onTouchStart"],G0t=["onPointerDown","onPointerMove","onPointerUp","onPointerCancel","onGotPointerCapture","onLostPointerCapture","onPointerEnter","onPointerLeave","onPointerOver","onPointerOut"],W0t=["onScroll"],Y0t=["onWheel"],K0t=["onAnimationStart","onAnimationEnd","onAnimationIteration"],X0t=["onTransitionEnd"],Q0t=["onToggle"],Z0t=["onChange"],J0t=[...P0t,...L0t,...$0t,...F0t,...B0t,...H0t,...U0t,...j0t,...z0t,...V0t,...q0t,...G0t,...W0t,...Y0t,...K0t,...X0t,...Z0t,...Q0t];function wve(t,e){const n={};for(const r of J0t){const i=t[r];
176i&&(e?n[r]=(s=>i(s,e(r))):n[r]=i)}return n}var e1t="Invariant failed";function Zn(t,e){if(!t)throw new Error(e1t)}var Z4,YZ;function t1t(){if(YZ)return Z4;YZ=1;var t=function(){};return Z4=t,Z4}var n1t=t1t();const ds=ys(n1t),Sve=C.createContext(null),r1t="noopener noreferrer nofollow";class i1t{constructor(){this.externalLinkEnabled=!0,this.externalLinkRel=void 0,this.externalLinkTarget=void 0,this.isInPresentationMode=!1,this.pdfDocument=void 0,this.pdfViewer=void 0}setDocument(e){this.pdfDocument=e}setViewer(e){this.pdfViewer=e}setExternalLinkRel(e){this.externalLinkRel=e}setExternalLinkTarget(e){this.externalLinkTarget=e}setHash(){}setHistory(){}get pagesCount(){return this.pdfDocument?this.pdfDocument.numPages:0}get page(){return Zn(this.pdfViewer),this.pdfViewer.currentPageNumber||0}set page(e){Zn(this.pdfViewer),this.pdfViewer.currentPageNumber=e}get rotation(){return 0}set rotation(e){}addLinkAttributes(e,n,r){e.href=n,e.rel=this.externalLinkRel||r1t,e.target=r?"_blank":this.externalLinkTarget||""}goToDestination(e){return new Promise(n=>{Zn(this.pdfDocument),Zn(e),typeof e=="string"?this.pdfDocument.getDestination(e).then(n):Array.isArray(e)?n(e):e.then(n)}).then(n=>{Zn(Array.isArray(n));const r=n[0];new Promise(i=>{Zn(this.pdfDocument),r instanceof Object?this.pdfDocument.getPageIndex(r).then(s=>{i(s)}).catch(()=>{Zn(!1)}):typeof r=="number"?i(r):Zn(!1)}).then(i=>{const s=i+1;Zn(this.pdfViewer),Zn(s>=1&&s<=this.pagesCount),this.pdfViewer.scrollPageIntoView({dest:n,pageIndex:i,pageNumber:s})})})}goToPage(e){const n=e-1;Zn(this.pdfViewer),Zn(e>=1&&e<=this.pagesCount),this.pdfViewer.scrollPageIntoView({pageIndex:n,pageNumber:e})}goToXY(){}cachePageRef(){}getDestinationHash(){return"#"}getAnchorUrl(){return"#"}executeNamedAction(){}executeSetOCGState(){}isPageVisible(){return!0}isPageCached(){return!0}navigateTo(e){this.goToDestination(e)}}function Ng({children:t,type:e}){return j.jsx("div",{className:`react-pdf__message react-pdf__message--${e}`,children:t})}const KZ={NEED_PASSWORD:1,INCORRECT_PASSWORD:2};function s1t(t,e){switch(e.type){case"RESOLVE":return{value:e.value,error:void 0};case"REJECT":return{value:!1,error:e.error};case"RESET":return{value:void 0,error:void 0};default:return t}}function s0(){return C.useReducer(s1t,{value:void 0,error:void 0})}const z3=typeof window<"u",Cve=z3&&window.location.protocol==="file:";function a1t(t){return typeof t<"u"}function rh(t){return a1t(t)&&t!==null}function o1t(t){return typeof t=="string"}function l1t(t){return t instanceof ArrayBuffer}function u1t(t){return Zn(z3),t instanceof Blob}function L9(t){return o1t(t)&&/^data:/.test(t)}function XZ(t){Zn(L9(t));const[e="",n=""]=t.split(",");return e.split(";").indexOf("base64")!==-1?atob(n):unescape(n)}function c1t(){return z3&&window.devicePixelRatio||1}const Tve="On Chromium based browsers, you can use --allow-file-access-from-files flag for debugging purposes.";function QZ(){ds(!Cve,`Loading PDF as base64 strings/URLs may not work on protocols other than HTTP/HTTPS. ${Tve}`)}function d1t(){ds(!Cve,`Loading PDF.js worker may not work on protocols other than HTTP/HTTPS. ${Tve}`)}function rp(t){t?.cancel&&t.cancel()}function $9(t,e){return Object.defineProperty(t,"width",{get(){return this.getViewport({scale:e}).width},configurable:!0}),Object.defineProperty(t,"height",{get(){return this.getViewport({scale:e}).height},configurable:!0}),Object.defineProperty(t,"originalWidth",{get(){return this.getViewport({scale:1}).width},configurable:!0}),Object.defineProperty(t,"originalHeight",{get(){return this.getViewport({scale:1}).height},configurable:!0}),t}function Ave(t){return t.name==="AbortException"||t.name==="RenderingCancelledException"}function f1t(t){return new Promise((e,n)=>{const r=new FileReader;r.onload=()=>{if(!r.result)return n(new Error("Error while reading a file."));e(r.result)},r.onerror=i=>{if(!i.target)return n(new Error("Error while reading a file."));const{error:s}=i.target;if(!s)return n(new Error("Error while reading a file."));switch(s.code){case s.NOT_FOUND_ERR:return n(new Error("Error while reading a file: File not found."));case s.SECURITY_ERR:return n(new Error("Error while reading a file: Security error."));case s.ABORT_ERR:return n(new Error("Error while reading a file: Aborted."));default:return n(new Error("Error while reading a file."))}},r.readAsArrayBuffer(t)})}const{PDFDataRangeTransport:h1t}=D0t,p1t=(t,e)=>{switch(e){case KZ.NEED_PASSWORD:{const n=prompt("Enter the password to open this PDF file.");t(n);break}case KZ.INCORRECT_PASSWORD:{const n=prompt("Invalid password. Please try again.");t(n);break}}};function ZZ(t){return typeof t=="object"&&t!==null&&("data"in t||"range"in t||"url"in t)}const uMt=C.forwardRef(function({children:e,className:n,error:r="Failed to load PDF file.",externalLinkRel:i,externalLinkTarget:s,file:a,inputRef:o,imageResourcesPath:l,loading:u="Loading PDFâ¦",noData:c="No PDF file specified.",onItemClick:d,onLoadError:h,onLoadProgress:m,onLoadSuccess:g,onPassword:b=p1t,onSourceError:v,onSourceSuccess:E,options:x,renderMode:_,rotate:S,scale:A,...R},T){const[O,I]=s0(),{value:D,error:P}=O,[B,L]=s0(),{value:$,error:q}=B,F=C.useRef(new i1t),G=C.useRef([]),H=C.useRef(void 0),K=C.useRef(void 0);a&&a!==H.current&&ZZ(a)&&(ds(!Ph(a,H.current),`File prop passed to <Document /> changed, but it's equal to previous one. This might result in unnecessary reloads. Consider memoizing the value passed to "file" prop.`),H.current=a),x&&x!==K.current&&(ds(!Ph(x,K.current),`Options prop passed to <Document /> changed, but it's equal to previous one. This might result in unnecessary reloads. Consider memoizing the value passed to "options" prop.`),K.current=x);const V=C.useRef({scrollPageIntoView:Ne=>{const{dest:Fe,pageNumber:Le,pageIndex:ze=Le-1}=Ne;if(d){d({dest:Fe,pageIndex:ze,pageNumber:Le});return}const qe=G.current[ze];
176if(qe){qe.scrollIntoView();return}ds(!1,`An internal link leading to page ${Le} was clicked, but neither <Document> was provided with onItemClick nor it was able to find the page within itself. Either provide onItemClick to <Document> and handle navigating by yourself or ensure that all pages are rendered within <Document>.`)}});C.useImperativeHandle(T,()=>({linkService:F,pages:G,viewer:V}),[]);function Y(){E&&E()}function Z(){P&&(ds(!1,P.toString()),v&&v(P))}function W(){I({type:"RESET"})}C.useEffect(W,[a,I]);const Q=C.useCallback(async()=>{if(!a)return null;if(typeof a=="string")return L9(a)?{data:XZ(a)}:(QZ(),{url:a});if(a instanceof h1t)return{range:a};if(l1t(a))return{data:a};if(z3&&u1t(a))return{data:await f1t(a)};if(Zn(typeof a=="object"),Zn(ZZ(a)),"url"in a&&typeof a.url=="string"){if(L9(a.url)){const{url:Ne,...Fe}=a;return{data:XZ(Ne),...Fe}}QZ()}return a},[a]);C.useEffect(()=>{const Ne=oE(Q());return Ne.promise.then(Fe=>{I({type:"RESOLVE",value:Fe})}).catch(Fe=>{I({type:"REJECT",error:Fe})}),()=>{rp(Ne)}},[Q,I]),C.useEffect(()=>{if(!(typeof D>"u")){if(D===!1){Z();return}Y()}},[D]);function re(){$&&(g&&g($),G.current=new Array($.numPages),F.current.setDocument($))}function se(){q&&(ds(!1,q.toString()),h&&h(q))}C.useEffect(function(){L({type:"RESET"})},[L,D]),C.useEffect(function(){if(!D)return;const Fe=x?{...D,...x}:D,Le=ZF(Fe);m&&(Le.onProgress=m),b&&(Le.onPassword=b);const ze=Le;return ze.promise.then(qe=>{ze.destroyed||L({type:"RESOLVE",value:qe})}).catch(qe=>{ze.destroyed||L({type:"REJECT",error:qe})}),()=>{ze.destroy()}},[x,L,D]),C.useEffect(()=>{if(!(typeof $>"u")){if($===!1){se();return}re()}},[$]),C.useEffect(function(){F.current.setViewer(V.current),F.current.setExternalLinkRel(i),F.current.setExternalLinkTarget(s)},[i,s]);const J=C.useCallback((Ne,Fe)=>{G.current[Ne]=Fe},[]),ae=C.useCallback(Ne=>{delete G.current[Ne]},[]),ge=C.useMemo(()=>({imageResourcesPath:l,linkService:F.current,onItemClick:d,pdf:$,registerPage:J,renderMode:_,rotate:S,scale:A,unregisterPage:ae}),[l,d,$,J,_,S,A,ae]),ve=C.useMemo(()=>wve(R,()=>$),[R,$]);function Re(){function Ne(Le){return!!Le?.pdf}if(!Ne(ge))throw new Error("pdf is undefined");const Fe=typeof e=="function"?e(ge):e;return j.jsx(Sve.Provider,{value:ge,children:Fe})}function xe(){return a?$==null?j.jsx(Ng,{type:"loading",children:typeof u=="function"?u():u}):$===!1?j.jsx(Ng,{type:"error",children:typeof r=="function"?r():r}):Re():j.jsx(Ng,{type:"no-data",children:typeof c=="function"?c():c})}return j.jsx("div",{className:Va("react-pdf__Document",n),ref:o,...ve,children:xe()})});function Rve(){return C.useContext(Sve)}function Nve(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=t.filter(Boolean);if(n.length<=1){var r=n[0];return r||null}return function(s){for(var a=0,o=n;a<o.length;a++){var l=o[a];typeof l=="function"?l(s):l&&(l.current=s)}}}const Ove=C.createContext(null);function V3(){return C.useContext(Ove)}function m1t(){const t=Rve(),e=V3();Zn(e);const n={...t,...e},{filterAnnotations:r,imageResourcesPath:i,linkService:s,onGetAnnotationsError:a,onGetAnnotationsSuccess:o,onRenderAnnotationLayerError:l,onRenderAnnotationLayerSuccess:u,page:c,pdf:d,renderForms:h,rotate:m,scale:g=1}=n;Zn(d),Zn(c),Zn(s);const[b,v]=s0(),{value:E,error:x}=b,_=C.useRef(null);ds(Number.parseInt(window.getComputedStyle(document.body).getPropertyValue("--react-pdf-annotation-layer"),10)===1,"AnnotationLayer styles not found. Read more: https://github.com/wojtekmaj/react-pdf#support-for-annotations");function S(){E&&o&&o(E)}function A(){x&&(ds(!1,x.toString()),a&&a(x))}C.useEffect(function(){v({type:"RESET"})},[v,c]),C.useEffect(function(){if(!c)return;const D=oE(c.getAnnotations()),P=D;return D.promise.then(B=>{v({type:"RESOLVE",value:B})}).catch(B=>{v({type:"REJECT",error:B})}),()=>{rp(P)}},[v,c]),C.useEffect(()=>{if(E!==void 0){if(E===!1){A();return}S()}},[E]);function R(){u&&u()}function T(I){ds(!1,`${I}`),l&&l(I)}const O=C.useMemo(()=>c.getViewport({scale:g,rotation:m}),[c,m,g]);return C.useEffect(function(){if(!d||!c||!s||!E)return;const{current:D}=_;if(!D)return;const P=O.clone({dontFlip:!0}),B={accessibilityManager:null,annotationCanvasMap:null,annotationEditorUIManager:null,annotationStorage:d.annotationStorage,commentManager:null,div:D,l10n:null,linkService:s,page:c,structTreeLayer:null,viewport:P},L={annotations:r?r({annotations:E}):E,annotationStorage:d.annotationStorage,div:D,imageResourcesPath:i,linkService:s,page:c,renderForms:h,viewport:P};D.innerHTML="";try{new rB(B).render(L),R()}catch($){T($)}return()=>{}},[E,r,i,s,c,d,h,O]),j.jsx("div",{className:Va("react-pdf__Page__annotations","annotationLayer"),ref:_})}const kve={Document:null,DocumentFragment:null,Part:"group",Sect:"group",Div:"group",Aside:"note",NonStruct:"none",P
176:null,H:"heading",Title:null,FENote:"note",Sub:"group",Lbl:null,Span:null,Em:null,Strong:null,Link:"link",Annot:"note",Form:"form",Ruby:null,RB:null,RT:null,RP:null,Warichu:null,WT:null,WP:null,L:"list",LI:"listitem",LBody:null,Table:"table",TR:"row",TH:"columnheader",TD:"cell",THead:"columnheader",TBody:null,TFoot:null,Caption:null,Figure:"figure",Formula:null,Artifact:null},g1t=/^H(\d+)$/;function y1t(t){return t in kve}function q3(t){return"children"in t}function Ive(t){return q3(t)?t.children.length===1&&0 in t.children&&"id"in t.children[0]:!1}function b1t(t){const e={};if(q3(t)){const{role:n}=t,r=n.match(g1t);if(r)e.role="heading",e["aria-level"]=Number(r[1]);else if(y1t(n)){const i=kve[n];i&&(e.role=i)}}return e}function Mve(t){const e={};if(q3(t)){if(t.alt!==void 0&&(e["aria-label"]=t.alt),t.lang!==void 0&&(e.lang=t.lang),Ive(t)){const[n]=t.children;if(n){const r=Mve(n);return{...e,...r}}}}else"id"in t&&(e["aria-owns"]=t.id);return e}function v1t(t){return t?{...b1t(t),...Mve(t)}:null}function Dve({className:t,node:e}){const n=C.useMemo(()=>v1t(e),[e]),r=C.useMemo(()=>!q3(e)||Ive(e)?null:e.children.map((i,s)=>j.jsx(Dve,{node:i},s)),[e]);return j.jsx("span",{className:t,...n,children:r})}function E1t(){const t=V3();Zn(t);const{onGetStructTreeError:e,onGetStructTreeSuccess:n}=t,[r,i]=s0(),{value:s,error:a}=r,{customTextRenderer:o,page:l}=t;function u(){s&&n&&n(s)}function c(){a&&(ds(!1,a.toString()),e&&e(a))}return C.useEffect(function(){i({type:"RESET"})},[i,l]),C.useEffect(function(){if(o||!l)return;const h=oE(l.getStructTree()),m=h;return h.promise.then(g=>{i({type:"RESOLVE",value:g})}).catch(g=>{i({type:"REJECT",error:g})}),()=>rp(m)},[o,l,i]),C.useEffect(()=>{if(s!==void 0){if(s===!1){c();return}u()}},[s]),s?j.jsx(Dve,{className:"react-pdf__Page__structTree structTree",node:s}):null}const JZ=Kl;function _1t(t){const e=V3();Zn(e);const n={...e,...t},{_className:r,canvasBackground:i,devicePixelRatio:s=c1t(),onRenderError:a,onRenderSuccess:o,page:l,renderForms:u,renderTextLayer:c,pageColors:d,rotate:h,scale:m}=n,{canvasRef:g}=t;Zn(l);const b=C.useRef(null);function v(){l&&o&&o($9(l,m))}function E(A){Ave(A)||(ds(!1,A.toString()),a&&a(A))}const x=C.useMemo(()=>l.getViewport({scale:m*s,rotation:h}),[s,l,h,m]),_=C.useMemo(()=>l.getViewport({scale:m,rotation:h}),[l,h,m]);C.useEffect(function(){if(!l)return;l.cleanup();const{current:R}=b;if(!R)return;R.width=x.width,R.height=x.height,R.style.width=`${Math.floor(_.width)}px`,R.style.height=`${Math.floor(_.height)}px`,R.style.visibility="hidden";const T={annotationMode:u?JZ.ENABLE_FORMS:JZ.ENABLE,canvas:R,canvasContext:R.getContext("2d",{alpha:!1}),pageColors:d,viewport:x};i&&(T.background=i);const O=l.render(T),I=O;return O.promise.then(()=>{R.style.visibility="",v()}).catch(E),()=>rp(I)},[i,l,d,u,x,_]);const S=C.useCallback(()=>{const{current:A}=b;A&&(A.width=0,A.height=0)},[]);return C.useEffect(()=>S,[S]),j.jsx("canvas",{className:`${r}__canvas`,dir:"ltr",ref:Nve(g,b),style:{display:"block",userSelect:"none"},children:c?j.jsx(E1t,{}):null})}function x1t(t){return"str"in t}const w1t=new Set(["base","embed","iframe","link","meta","object","script","style","template"]),S1t=new Set(["action","formaction","href","poster","src","xlink:href"]);function C1t(t){let e="";for(const n of t){const r=n.charCodeAt(0);r<=32||r===127||(e+=n.toLowerCase())}return e.startsWith("javascript:")||e.startsWith("vbscript:")}function T1t(t){return t.nodeType===Node.ELEMENT_NODE}function Pve(t){return T1t(t)&&t instanceof HTMLElement}function A1t(t){return Pve(t)&&w1t.has(t.tagName.toLowerCase())}function R1t(t){const e=document.createElement(t.tagName.toLowerCase());return Array.from(t.attributes).forEach(n=>{const r=n.name.toLowerCase();r.startsWith("on")||r==="srcdoc"||S1t.has(r)&&C1t(n.value)||e.setAttribute(n.name,n.value)}),Array.from(t.childNodes).forEach(n=>{e.append(Lve(n))}),e}function Lve(t){var e;return Pve(t)&&!A1t(t)?R1t(t):document.createTextNode((e=t.textContent)!==null&&e!==void 0?e:"")}function N1t(t,e){const n=document.createElement("template");n.innerHTML=e;const r=document.createDocumentFragment();
176Array.from(n.content.childNodes).forEach(i=>{r.append(Lve(i))}),t.replaceChildren(r)}function O1t(){const t=V3();Zn(t);const{customTextRenderer:e,onGetTextError:n,onGetTextSuccess:r,onRenderTextLayerError:i,onRenderTextLayerSuccess:s,page:a,pageIndex:o,pageNumber:l,rotate:u,scale:c}=t;Zn(a);const[d,h]=s0(),{value:m,error:g}=d,b=C.useRef(null);ds(Number.parseInt(window.getComputedStyle(document.body).getPropertyValue("--react-pdf-text-layer"),10)===1,"TextLayer styles not found. Read more: https://github.com/wojtekmaj/react-pdf#support-for-text-layer");function v(){m&&r&&r(m)}function E(){g&&(ds(!1,g.toString()),n&&n(g))}C.useEffect(function(){h({type:"RESET"})},[a,h]),C.useEffect(function(){if(!a)return;const O=oE(a.getTextContent()),I=O;return O.promise.then(D=>{h({type:"RESOLVE",value:D})}).catch(D=>{h({type:"REJECT",error:D})}),()=>rp(I)},[a,h]),C.useEffect(()=>{if(m!==void 0){if(m===!1){E();return}v()}},[m]);const x=C.useCallback(()=>{s&&s()},[s]),_=C.useCallback(T=>{Ave(T)||(ds(!1,T.toString()),i&&i(T))},[i]);function S(){const T=b.current;T&&T.classList.add("selecting")}function A(){const T=b.current;T&&T.classList.remove("selecting")}const R=C.useMemo(()=>a.getViewport({scale:c,rotation:u}),[a,u,c]);return C.useLayoutEffect(function(){if(!a||!m)return;const{current:O}=b;if(!O)return;O.innerHTML="";const I=a.streamTextContent({includeMarkedContent:!0}),D={container:O,textContentSource:I,viewport:R},P=new Nv(D),B=P;return P.render().then(()=>{const L=document.createElement("div");L.className="endOfContent",O.append(L);const $=O.querySelectorAll('[role="presentation"]');if(e){let q=0;m.items.forEach((F,G)=>{if(!x1t(F))return;const H=$[q];if(!H)return;const K=e({pageIndex:o,pageNumber:l,itemIndex:G,...F});N1t(H,K),q+=F.str&&F.hasEOL?2:1})}x()}).catch(_),()=>rp(B)},[e,_,x,a,o,l,m,R]),j.jsx("div",{className:Va("react-pdf__Page__textContent","textLayer"),onMouseUp:A,onMouseDown:S,ref:b})}const eJ=1;function cMt(t){const n={...Rve(),...t},{_className:r="react-pdf__Page",_enableRegisterUnregisterPage:i=!0,canvasBackground:s,canvasRef:a,children:o,className:l,customRenderer:u,customTextRenderer:c,devicePixelRatio:d,error:h="Failed to load the page.",filterAnnotations:m,height:g,inputRef:b,loading:v="Loading pageâ¦",noData:E="No page specified.",onGetAnnotationsError:x,onGetAnnotationsSuccess:_,onGetStructTreeError:S,onGetStructTreeSuccess:A,onGetTextError:R,onGetTextSuccess:T,onLoadError:O,onLoadSuccess:I,onRenderAnnotationLayerError:D,onRenderAnnotationLayerSuccess:P,onRenderError:B,onRenderSuccess:L,onRenderTextLayerError:$,onRenderTextLayerSuccess:q,pageColors:F,pageIndex:G,pageNumber:H,pdf:K,registerPage:V,renderAnnotationLayer:Y=!0,renderForms:Z=!1,renderMode:W="canvas",renderTextLayer:Q=!0,rotate:re,scale:se=eJ,unregisterPage:J,width:ae,...ge}=n,[ve,Re]=s0(),{value:xe,error:Ne}=ve,Fe=C.useRef(null);Zn(K);const Le=rh(H)?H-1:G??null,ze=H??(rh(G)?G+1:null),qe=re??(xe?xe.rotate:null),_t=C.useMemo(()=>{if(!xe)return null;let Oe=1;const Ye=se??eJ;if(ae||g){const rt=xe.getViewport({scale:1,rotation:qe});ae?Oe=ae/rt.width:g&&(Oe=g/rt.height)}return Ye*Oe},[g,xe,qe,se,ae]);C.useEffect(function(){return()=>{rh(Le)&&i&&J&&J(Le)}},[i,K,Le,J]);function Ot(){if(I){if(!xe||!_t)return;I($9(xe,_t))}if(i&&V){if(!rh(Le)||!Fe.current)return;V(Le,Fe.current)}}function Lt(){Ne&&(ds(!1,Ne.toString()),O&&O(Ne))}C.useEffect(function(){Re({type:"RESET"})},[Re,K,Le]),C.useEffect(function(){if(!K||!ze)return;const Ye=oE(K.getPage(ze)),rt=Ye;return Ye.promise.then(Ut=>{Re({type:"RESOLVE",value:Ut})}).catch(Ut=>{Re({type:"REJECT",error:Ut})}),()=>rp(rt)},[Re,K,ze]),C.useEffect(()=>{if(xe!==void 0){if(xe===!1){Lt();return}Ot()}},[xe,_t]);const ue=C.useMemo(()=>rh(Le)&&ze&&rh(qe)&&rh(_t)?{_className:r,canvasBackground:s,customTextRenderer:c,devicePixelRatio:d,filterAnnotations:m,onGetAnnotationsError:x,onGetAnnotationsSuccess:_,onGetStructTreeError:S,onGetStructTreeSuccess:A,onGetTextError:R,onGetTextSuccess:T,onRenderAnnotationLayerError:D,onRenderAnnotationLayerSuccess:P,onRenderError:B,onRenderSuccess:L,onRenderTextLayerError:$,onRenderTextLayerSuccess:q,page:xe,pageColors:F,pageIndex:Le,pageNumber:ze,renderForms:Z,renderTextLayer:Q,rotate:qe,scale:_t}:null,[r,s,c,d,m,x,_,S,A,R,T,D,P,B,L,$,q,xe,F,Le,ze,Z,Q,qe,_t]),te=C.useMemo(()=>wve(ge,()=>xe&&(_t?$9(xe,_t):void 0)),[ge,xe,_t]),de=`${Le}@${_t}/${qe}`;
176function be(){switch(W){case"custom":return Zn(u),j.jsx(u,{},`${de}_custom`);case"none":return null;default:return j.jsx(_1t,{canvasRef:a},`${de}_canvas`)}}function ce(){return Q?j.jsx(O1t,{},`${de}_text`):null}function ne(){return Y?j.jsx(m1t,{},`${de}_annotations`):null}function fe(){function Oe(rt){return!!rt?.page}if(!Oe(ue))throw new Error("page is undefined");const Ye=typeof o=="function"?o(ue):o;return j.jsxs(Ove.Provider,{value:ue,children:[be(),ce(),ne(),Ye]})}function X(){return ze?K===null||xe===void 0||xe===null?j.jsx(Ng,{type:"loading",children:typeof v=="function"?v():v}):K===!1||xe===!1?j.jsx(Ng,{type:"error",children:typeof h=="function"?h():h}):fe():j.jsx(Ng,{type:"no-data",children:typeof E=="function"?E():E})}return j.jsx("div",{className:Va(r,l),"data-page-number":ze,ref:Nve(b,Fe),style:{"--scale-round-x":"1px","--scale-round-y":"1px","--scale-factor":"1","--user-unit":`${_t}`,"--total-scale-factor":"calc(var(--scale-factor) * var(--user-unit))",backgroundColor:s||"white",position:"relative",minWidth:"min-content",minHeight:"min-content"},...te,children:X()})}d1t();Dh.workerSrc="pdf.worker.mjs";function F9(t,e){for(let n=0,r=t.length;n<r;n++)if(e.apply(e,[t[n],n,t]))return t[n]}function tJ(t){return typeof t=="function"||Object.prototype.toString.call(t)==="[object Function]"}function Ky(t){return typeof t=="number"&&!isNaN(t)}function os(t){return parseInt(t,10)}function Og(t,e,n){if(t[e])return new Error(`Invalid prop ${e} passed to ${n} - do not set this, set it on the child.`)}var J4=["Moz","Webkit","O","ms"];function k1t(t="transform"){var e,n;if(typeof window>"u")return"";const r=(n=(e=window.document)==null?void 0:e.documentElement)==null?void 0:n.style;if(!r||t in r)return"";for(let i=0;i<J4.length;i++)if($ve(t,J4[i])in r)return J4[i];return""}function $ve(t,e){return e?`${e}${I1t(t)}`:t}function I1t(t){let e="",n=!0;for(let r=0;r<t.length;r++)n?(e+=t[r].toUpperCase(),n=!1):t[r]==="-"?n=!0:e+=t[r];return e}var M1t=k1t(),eO="";function D1t(t,e){var n;eO||(eO=(n=F9(["matches","webkitMatchesSelector","mozMatchesSelector","msMatchesSelector","oMatchesSelector"],function(i){return tJ(t[i])}))!=null?n:"");const r=t[eO];return tJ(r)?!!r.call(t,e):!1}function nJ(t,e,n){let r=t;do{if(D1t(r,e))return!0;if(r===n)return!1;r=r.parentNode}while(r);return!1}function tO(t,e,n,r){if(!t)return;const i={capture:!0,...r},s=n;t.addEventListener?t.addEventListener(e,s,i):t.attachEvent?t.attachEvent("on"+e,s):t["on"+e]=s}function ih(t,e,n,r){if(!t)return;const i={capture:!0,...r},s=n;t.removeEventListener?t.removeEventListener(e,s,i):t.detachEvent?t.detachEvent("on"+e,s):t["on"+e]=null}function P1t(t){let e=t.clientHeight;const n=t.ownerDocument.defaultView.getComputedStyle(t);return e+=os(n.borderTopWidth),e+=os(n.borderBottomWidth),e}function L1t(t){let e=t.clientWidth;const n=t.ownerDocument.defaultView.getComputedStyle(t);return e+=os(n.borderLeftWidth),e+=os(n.borderRightWidth),e}function $1t(t){let e=t.clientHeight;const n=t.ownerDocument.defaultView.getComputedStyle(t);return e-=os(n.paddingTop),e-=os(n.paddingBottom),e}function F1t(t){let e=t.clientWidth;const n=t.ownerDocument.defaultView.getComputedStyle(t);return e-=os(n.paddingLeft),e-=os(n.paddingRight),e}function B1t(t,e,n){const i=e===e.ownerDocument.body?{left:0,top:0}:e.getBoundingClientRect(),s=(t.clientX+e.scrollLeft-i.left)/n,a=(t.clientY+e.scrollTop-i.top)/n;return{x:s,y:a}}function H1t(t,e){const n=Fve(t,e,"px");return{[$ve("transform",M1t)]:n}}function U1t(t,e){return Fve(t,e,"")}function Fve({x:t,y:e},n,r){let i=`translate(${t}${r},${e}${r})`;if(n){const s=`${typeof n.x=="string"?n.x:n.x+r}`,a=`${typeof n.y=="string"?n.y:n.y+r}`;i=`translate(${s}, ${a})`+i}return i}function j1t(t,e){return t.targetTouches&&F9(t.targetTouches,n=>e===n.identifier)||t.changedTouches&&F9(t.changedTouches,n=>e===n.identifier)}function z1t(t){if(t.targetTouches&&t.targetTouches[0])return t.targetTouches[0].identifier;if(t.changedTouches&&t.changedTouches[0])return t.changedTouches[0].identifier}function V1t(t){if(!t)return;let e=t.getElementById("react-draggable-style-el");e||(e=t.createElement("style"),e.type="text/css",e.id="react-draggable-style-el",e.innerHTML=`.react-draggable-transparent-selection *::-moz-selection {all: inherit;} 177`,e.innerHTML+=`.react-draggable-transparent-selection *::selection {all: inherit;} 178`,t.getElementsByTagName("head")[0].appendChild(e)),t.body&&q1t(t.body,"react-draggable-transparent-selection")}function rJ(t){window.requestAnimationFrame?window.requestAnimationFrame(()=>{iJ(t)}):iJ(t)}function iJ(t){if(t)try{t.body&&G1t(t.body,"react-draggable-transparent-selection");const e=t.selection;if(e)e.empty();else{const n=(t.defaultView||window).getSelection();n&&n.type!=="Caret"&&n.removeAllRanges()}}catch{}}function q1t(t,e){t.classList?t.classList.add(e):t.className.match(new RegExp(`(?:^|\\s)${e}(?!\\S)`))||(t.className+=` ${e}`)}function G1t(t,e){t.classList?t.classList.remove(e):t.className=t.className.replace(new RegExp(`(?:^|\\s)${e}(?!\\S)`,"g"),"")}function W1t(t,e,n){if(!t.props.bounds)return[e,n];let{bounds:r}=t.props;r=typeof r=="string"?r:X1t(r);const i=oB(t);if(typeof r=="string"){const{ownerDocument:s}=i,a=s.defaultView;if(!a)throw new Error("Cannot resolve the owner window of the draggable node.");let o;if(r==="parent"?o=i.parentNode:o=i.getRootNode().querySelector(r),!(o instanceof a.HTMLElement))throw new Error('Bounds selector "'+r+'" could not find an element.');const l=o,u=a.getComputedStyle(i),c=a.getComputedStyle(l);r={left:-i.offsetLeft+os(c.paddingLeft)+os(u.marginLeft),top:-i.offsetTop+os(c.paddingTop)+os(u.marginTop),right:F1t(l)-L1t(i)-i.offsetLeft+os(c.paddingRight)-os(u.marginRight),bottom:$1t(l)-P1t(i)-i.offsetTop+os(c.paddingBottom)-os(u.marginBottom)}}return Ky(r.right)&&(e=Math.min(e,r.right)),Ky(r.bottom)&&(n=Math.min(n,r.bottom)),Ky(r.left)&&(e=Math.max(e,r.left)),Ky(r.top)&&
178(n=Math.max(n,r.top)),[e,n]}function sJ(t,e,n){const r=Math.round(e/t[0])*t[0],i=Math.round(n/t[1])*t[1];return[r,i]}function Y1t(t){return t.props.axis==="both"||t.props.axis==="x"}function K1t(t){return t.props.axis==="both"||t.props.axis==="y"}function nO(t,e,n){const r=typeof e=="number"?j1t(t,e):null;if(typeof e=="number"&&!r)return null;const i=oB(n),s=n.props.offsetParent||i.offsetParent||i.ownerDocument.body;return B1t(r||t,s,n.props.scale)}function rO(t,e,n){const r=!Ky(t.lastX),i=oB(t);return r?{node:i,deltaX:0,deltaY:0,lastX:e,lastY:n,x:e,y:n}:{node:i,deltaX:e-t.lastX,deltaY:n-t.lastY,lastX:t.lastX,lastY:t.lastY,x:e,y:n}}function iO(t,e){const n=t.props.scale;return{node:e.node,x:t.state.x+e.deltaX/n,y:t.state.y+e.deltaY/n,deltaX:e.deltaX/n,deltaY:e.deltaY/n,lastX:t.state.x,lastY:t.state.y}}function X1t(t){return{left:t.left,top:t.top,right:t.right,bottom:t.bottom}}function oB(t){const e=t.findDOMNode();if(!e)throw new Error("<DraggableCore>: Unmounted during event!");return e}function Q1t(...t){}var zo={touch:{start:"touchstart",move:"touchmove",stop:"touchend"},mouse:{start:"mousedown",move:"mousemove",stop:"mouseup"}},Td=zo.mouse,e1=class extends C.Component{constructor(){super(...arguments),this.dragging=!1,this.lastX=NaN,this.lastY=NaN,this.touchIdentifier=null,this.mounted=!1,this.handleDragStart=t=>{if(this.props.onMouseDown(t),!this.props.allowAnyClick&&(typeof t.button=="number"&&t.button!==0||t.ctrlKey))return!1;const e=this.findDOMNode();if(!e||!e.ownerDocument||!e.ownerDocument.body)throw new Error("<DraggableCore> not mounted on DragStart!");const{ownerDocument:n}=e;if(this.props.disabled||!(t.target instanceof n.defaultView.Node)||this.props.handle&&!nJ(t.target,this.props.handle,e)||this.props.cancel&&nJ(t.target,this.props.cancel,e))return;t.type==="touchstart"&&!this.props.allowMobileScroll&&t.preventDefault();const r=z1t(t);this.touchIdentifier=r;const i=nO(t,r,this);if(i==null)return;const{x:s,y:a}=i,o=rO(this,s,a);Q1t("calling",this.props.onStart),!(this.props.onStart(t,o)===!1||this.mounted===!1)&&(this.props.enableUserSelectHack&&V1t(n),this.dragging=!0,this.lastX=s,this.lastY=a,tO(n,Td.move,this.handleDrag),tO(n,Td.stop,this.handleDragStop))},this.handleDrag=t=>{const e=nO(t,this.touchIdentifier,this);if(e==null)return;let{x:n,y:r}=e;if(Array.isArray(this.props.grid)){let a=n-this.lastX,o=r-this.lastY;if([a,o]=sJ(this.props.grid,a,o),!a&&!o)return;n=this.lastX+a,r=this.lastY+o}const i=rO(this,n,r);if(this.props.onDrag(t,i)===!1||this.mounted===!1){try{this.handleDragStop(new MouseEvent("mouseup"))}catch{const a=document.createEvent("MouseEvents");a.initMouseEvent("mouseup",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),this.handleDragStop(a)}return}this.lastX=n,this.lastY=r},this.handleDragStop=t=>{if(!this.dragging)return;const e=nO(t,this.touchIdentifier,this);if(e==null)return;let{x:n,y:r}=e;if(Array.isArray(this.props.grid)){let o=n-this.lastX||0,l=r-this.lastY||0;[o,l]=sJ(this.props.grid,o,l),n=this.lastX+o,r=this.lastY+l}const i=rO(this,n,r);if(this.props.onStop(t,i)===!1||this.mounted===!1)return!1;const a=this.findDOMNode();a&&this.props.enableUserSelectHack&&rJ(a.ownerDocument),this.dragging=!1,this.lastX=NaN,this.lastY=NaN,a&&(ih(a.ownerDocument,Td.move,this.handleDrag),ih(a.ownerDocument,Td.stop,this.handleDragStop))},this.onMouseDown=t=>(Td=zo.mouse,this.handleDragStart(t)),this.onMouseUp=t=>(Td=zo.mouse,this.handleDragStop(t)),this.onTouchStart=t=>(Td=zo.touch,this.handleDragStart(t)),this.onTouchEnd=t=>(Td=zo.touch,this.handleDragStop(t))}componentDidMount(){this.mounted=!0;const t=this.findDOMNode();t&&tO(t,zo.touch.start,this.onTouchStart,{passive:!1})}componentWillUnmount(){this.mounted=!1;const t=this.findDOMNode();if(t){const{ownerDocument:e}=t;ih(e,zo.mouse.move,this.handleDrag),ih(e,zo.touch.move,this.handleDrag),ih(e,zo.mouse.stop,this.handleDragStop),ih(e,zo.touch.stop,this.handleDragStop),ih(t,zo.touch.start,this.onTouchStart,{passive:!1}),this.props.enableUserSelectHack&&rJ(e)}}findDOMNode(){var t;if((t=this.props)!=null&&t.nodeRef)return this.props.nodeRef.current;const e=x7;return typeof e.findDOMNode=="function"?e.findDOMNode(this):null}render(){return C.cloneElement(C.Children.only(this.props.children),{onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp,onTouchEnd:this.onTouchEnd})}};e1.displayName="DraggableCore";e1.propTypes={allowAnyClick:oe.bool,allowMobileScroll:oe.bool,children:oe.node.isRequired,disabled:oe.bool,enableUserSelectHack:oe.bool,offsetParent:function(t,e){if(t[e]&&t[e].nodeType!==1)throw new Error("Draggable's offsetParent must be a DOM Node.")},grid:oe.arrayOf(oe.number),handle:oe.string,cancel:oe.string,nodeRef:oe.object,onStart:
178oe.func,onDrag:oe.func,onStop:oe.func,onMouseDown:oe.func,scale:oe.number,className:Og,style:Og,transform:Og};e1.defaultProps={allowAnyClick:!1,allowMobileScroll:!1,disabled:!1,enableUserSelectHack:!0,onStart:function(){},onDrag:function(){},onStop:function(){},onMouseDown:function(){},scale:1};var G3=class extends C.Component{constructor(t){super(t),this.onDragStart=(e,n)=>{if(this.props.onStart(e,iO(this,n))===!1)return!1;this.setState({dragging:!0,dragged:!0})},this.onDrag=(e,n)=>{if(!this.state.dragging)return!1;const r=iO(this,n),i={x:r.x,y:r.y,slackX:0,slackY:0};if(this.props.bounds){const{x:a,y:o}=i;i.x+=this.state.slackX,i.y+=this.state.slackY;const[l,u]=W1t(this,i.x,i.y);i.x=l,i.y=u,i.slackX=this.state.slackX+(a-i.x),i.slackY=this.state.slackY+(o-i.y),r.x=i.x,r.y=i.y,r.deltaX=i.x-this.state.x,r.deltaY=i.y-this.state.y}if(this.props.onDrag(e,r)===!1)return!1;this.setState(i)},this.onDragStop=(e,n)=>{if(!this.state.dragging||this.props.onStop(e,iO(this,n))===!1)return!1;const i={dragging:!1,slackX:0,slackY:0};if(!!this.props.position){const{x:a,y:o}=this.props.position;i.x=a,i.y=o}this.setState(i)},this.state={dragging:!1,dragged:!1,x:t.position?t.position.x:t.defaultPosition.x,y:t.position?t.position.y:t.defaultPosition.y,prevPropsPosition:{...t.position},slackX:0,slackY:0,isElementSVG:!1},t.position&&!(t.onDrag||t.onStop)&&console.warn("A `position` was applied to this <Draggable>, without drag handlers. This will make this component effectively undraggable. Please attach `onDrag` or `onStop` handlers so you can adjust the `position` of this element.")}static getDerivedStateFromProps({position:t},{prevPropsPosition:e}){return t&&(!e||t.x!==e.x||t.y!==e.y)?{x:t.x,y:t.y,prevPropsPosition:{...t}}:null}componentDidMount(){typeof window.SVGElement<"u"&&this.findDOMNode()instanceof window.SVGElement&&this.setState({isElementSVG:!0})}componentWillUnmount(){this.state.dragging&&this.setState({dragging:!1})}findDOMNode(){var t;if((t=this.props)!=null&&t.nodeRef)return this.props.nodeRef.current;const e=x7;return typeof e.findDOMNode=="function"?e.findDOMNode(this):null}render(){const{axis:t,bounds:e,children:n,defaultPosition:r,defaultClassName:i,defaultClassNameDragging:s,defaultClassNameDragged:a,position:o,positionOffset:l,scale:u,...c}=this.props;let d={},h=null;const g=!!!o||this.state.dragging,b=o||r,v={x:Y1t(this)&&g?this.state.x:b.x,y:K1t(this)&&g?this.state.y:b.y};this.state.isElementSVG?h=U1t(v,l):d=H1t(v,l);const E=C.Children.only(n),x=Va(E.props.className||"",i,{[s]:this.state.dragging,[a]:this.state.dragged});return C.createElement(e1,{...c,onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop},C.cloneElement(E,{className:x,style:{...E.props.style,...d},transform:h}))}};G3.displayName="Draggable";G3.propTypes={...e1.propTypes,axis:oe.oneOf(["both","x","y","none"]),bounds:oe.oneOfType([oe.shape({left:oe.number,right:oe.number,top:oe.number,bottom:oe.number}),oe.string,oe.oneOf([!1])]),defaultClassName:oe.string,defaultClassNameDragging:oe.string,defaultClassNameDragged:oe.string,defaultPosition:oe.shape({x:oe.number,y:oe.number}),positionOffset:oe.shape({x:oe.oneOfType([oe.number,oe.string]),y:oe.oneOfType([oe.number,oe.string])}),position:oe.shape({x:oe.number,y:oe.number}),className:Og,style:Og,transform:Og};G3.defaultProps={...e1.defaultProps,axis:"both",bounds:!1,defaultClassName:"react-draggable",defaultClassNameDragging:"react-draggable-dragging",defaultClassNameDragged:"react-draggable-dragged",defaultPosition:{x:0,y:0},scale:1};var Z1t=G3,di=function(){return di=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},di.apply(this,arguments)},aJ={width:"100%",height:"10px",top:"0px",left:"0px",cursor:"row-resize"},oJ={width:"10px",height:"100%",top:"0px",left:"0px",cursor:"col-resize"},Lx={width:"20px",height:"20px",position:"absolute",zIndex:1},J1t={top:di(di({},aJ),{top:"-5px"}),right:di(di({},oJ),{left:void 0,right:"-5px"}),bottom:di(di({},aJ),{top:void 0,bottom:"-5px"}),left:di(di({},oJ),{left:"-5px"}),topRight:di(di({},Lx),{right:"-10px",top:"-10px",cursor:"ne-resize"}),bottomRight:di(di({},Lx),{right:"-10px",bottom:"-10px",cursor:"se-resize"}),bottomLeft:di(di({},Lx),{left:"-10px",bottom:"-10px",cursor:"sw-resize"}),topLeft:di(di({},Lx),{left:"-10px",top:"-10px",cursor:"nw-resize"})},eyt=C.memo(function(t){var e=t.onResizeStart,n=t.direction,r=t.children,i=t.replaceStyles,s=t.className,a=C.useCallback(function(u){e(u,n)},[e,n]),o=C.useCallback(function(u){e(u,n)},[e,n]),l=C.useMemo(function(){return di(di({position:"absolute",userSelect:"none"},J1t[n]),i??{})},[i,n]);return j.jsx("div",{className:s||void 0,style:l,onMouseDown:a,onTouchStart:o,children:r})}),tyt=(function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(r[s]=i[s])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}
vendor: 14,820 bytes, line 178
178e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),Fl=function(){return Fl=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},Fl.apply(this,arguments)},nyt={width:"auto",height:"auto"},$x=function(t,e,n){return Math.max(Math.min(t,n),e)},lJ=function(t,e,n){var r=Math.round(t/e);return r*e+n*(r-1)},Vm=function(t,e){return new RegExp(t,"i").test(e)},Fx=function(t){return!!(t.touches&&t.touches.length)},ryt=function(t){return!!((t.clientX||t.clientX===0)&&(t.clientY||t.clientY===0))},uJ=function(t,e,n){n===void 0&&(n=0);var r=e.reduce(function(s,a,o){return Math.abs(a-t)<Math.abs(e[s]-t)?o:s},0),i=Math.abs(e[r]-t);return n===0||i<n?e[r]:t},sO=function(t){return t=t.toString(),t==="auto"||t.endsWith("px")||t.endsWith("%")||t.endsWith("vh")||t.endsWith("vw")||t.endsWith("vmax")||t.endsWith("vmin")?t:"".concat(t,"px")},Bx=function(t,e,n,r){if(t&&typeof t=="string"){if(t.endsWith("px"))return Number(t.replace("px",""));if(t.endsWith("%")){var i=Number(t.replace("%",""))/100;return e*i}if(t.endsWith("vw")){var i=Number(t.replace("vw",""))/100;return n*i}if(t.endsWith("vh")){var i=Number(t.replace("vh",""))/100;return r*i}}return t},iyt=function(t,e,n,r,i,s,a){return r=Bx(r,t.width,e,n),i=Bx(i,t.height,e,n),s=Bx(s,t.width,e,n),a=Bx(a,t.height,e,n),{maxWidth:typeof r>"u"?void 0:Number(r),maxHeight:typeof i>"u"?void 0:Number(i),minWidth:typeof s>"u"?void 0:Number(s),minHeight:typeof a>"u"?void 0:Number(a)}},syt=function(t){return Array.isArray(t)?t:[t,t]},ayt=["as","ref","style","className","grid","gridGap","snap","bounds","boundsByDirection","size","defaultSize","minWidth","minHeight","maxWidth","maxHeight","lockAspectRatio","lockAspectRatioExtraWidth","lockAspectRatioExtraHeight","enable","handleStyles","handleClasses","handleWrapperStyle","handleWrapperClass","children","onResizeStart","onResize","onResizeStop","handleComponent","scale","resizeRatio","snapGap"],cJ="__resizable_base__",oyt=(function(t){tyt(e,t);function e(n){var r,i,s,a,o=t.call(this,n)||this;return o.ratio=1,o.resizable=null,o.parentLeft=0,o.parentTop=0,o.resizableLeft=0,o.resizableRight=0,o.resizableTop=0,o.resizableBottom=0,o.targetLeft=0,o.targetTop=0,o.delta={width:0,height:0},o.appendBase=function(){if(!o.resizable||!o.window)return null;var l=o.parentNode;if(!l)return null;var u=o.window.document.createElement("div");return u.style.width="100%",u.style.height="100%",u.style.position="absolute",u.style.transform="scale(0, 0)",u.style.left="0",u.style.flex="0 0 100%",u.classList?u.classList.add(cJ):u.className+=cJ,l.appendChild(u),u},o.removeBase=function(l){var u=o.parentNode;u&&u.removeChild(l)},o.state={isResizing:!1,width:(i=(r=o.propsSize)===null||r===void 0?void 0:r.width)!==null&&i!==void 0?i:"auto",height:(a=(s=o.propsSize)===null||s===void 0?void 0:s.height)!==null&&a!==void 0?a:"auto",direction:"right",original:{x:0,y:0,width:0,height:0},backgroundStyle:{height:"100%",width:"100%",backgroundColor:"rgba(0,0,0,0)",cursor:"auto",opacity:0,position:"fixed",zIndex:9999,top:"0",left:"0",bottom:"0",right:"0"},flexBasis:void 0},o.onResizeStart=o.onResizeStart.bind(o),o.onMouseMove=o.onMouseMove.bind(o),o.onMouseUp=o.onMouseUp.bind(o),o}return Object.defineProperty(e.prototype,"parentNode",{get:function(){return this.resizable?this.resizable.parentNode:null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"window",{get:function(){return!this.resizable||!this.resizable.ownerDocument?null:this.resizable.ownerDocument.defaultView},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"propsSize",{get:function(){return this.props.size||this.props.defaultSize||nyt},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"size",{get:function(){var n=0,r=0;if(this.resizable&&this.window){var i=this.resizable.offsetWidth,s=this.resizable.offsetHeight,a=this.resizable.style.position;a!=="relative"&&(this.resizable.style.position="relative"),n=this.resizable.style.width!=="auto"?this.resizable.offsetWidth:i,r=this.resizable.style.height!=="auto"?this.resizable.offsetHeight:s,this.resizable.style.position=a}return{width:n,height:r}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"sizeStyle",{get:function(){var n=this,r=this.props.size,i=function(o){var l;if(typeof n.state[o]>"u"||n.state[o]==="auto")return"auto";if(n.propsSize&&n.propsSize[o]&&(!((l=n.propsSize[o])===null||l===void 0)&&l.toString().endsWith("%"))){if(n.state[o].toString().endsWith("%"))return n.state[o].toString();var u=n.getParentSize(),c=Number(n.state[o].toString().replace("px","")),d=c/u[o]*100;return"".concat(d,"%")}return sO(n.state[o])},s=r&&typeof r.width<"u"&&!this.state.isResizing?sO(r.width):i("width"),a=r&&typeof r.height<"u"&&!this.state.isResizing?sO(r.height):i("height");return{width:s,height:a}},enumerable:!1,configurable:!0}),e.prototype.getParentSize=function(){if(!this.parentNode)return this.window?{width:this.window.innerWidth,height:this.window.innerHeight}:{width:0,height:0};var n=this.appendBase();if(!n)return{width:0,height:0};var r=!1,i=this.parentNode.style.flexWrap;i!=="wrap"&&(r=!0,this.parentNode.style.flexWrap="wrap"),n.style.position="relative",n.style.minWidth="100%",n.style.minHeight="100%";var s={width:n.offsetWidth,height:n.offsetHeight};return r&&(this.parentNode.style.flexWrap=i),this.removeBase(n),s},e.prototype.bindEvents=function(){this.window&&(this.window.addEventListener("mouseup",this.onMouseUp),this.window.addEventListener("mousemove",this.onMouseMove),this.window.addEventListener("mouseleave",this.onMouseUp),this.window.addEventListener("touchmove",this.onMouseMove,{capture:!0,passive:!1}),this.window.addEventListener("touchend",this.onMouseUp))},e.prototype.unbindEvents=function(){this.window&&(this.window.removeEventListener("mouseup",this.onMouseUp),this.window.removeEventListener("mousemove",this.onMouseMove),this.window.removeEventListener("mouseleave",this.onMouseUp),this.window.removeEventListener("touchmove",this.onMouseMove,!0),this.window.removeEventListener("touchend",this.onMouseUp))},e.prototype.componentDidMount=function(){if(!(!this.resizable||!this.window)){var n=this.window.getComputedStyle(this.resizable);this.setState({width:this.state.width||this.size.width,height:this.state.height||this.size.height,flexBasis:n.flexBasis!=="auto"?n.flexBasis:void 0})}},e.prototype.componentWillUnmount=function(){this.window&&this.unbindEvents()},e.prototype.createSizeForCssProperty=function(n,r){var i=this.propsSize&&this.propsSize[r];return this.state[r]==="auto"&&this.state.original[r]===n&&(typeof i>"u"||i==="auto")?"auto":n},e.prototype.calculateNewMaxFromBoundary=function(n,r){var i=this.props.boundsByDirection,s=this.state.direction,a=i&&Vm("left",s),o=i&&Vm("top",s),l,u;if(this.props.bounds==="parent"){var c=this.parentNode;c&&(l=a?this.resizableRight-this.parentLeft:c.offsetWidth+(this.parentLeft-this.resizableLeft),u=o?this.resizableBottom-this.parentTop:c.offsetHeight+(this.parentTop-this.resizableTop))}else this.props.bounds==="window"?this.window&&(l=a?this.resizableRight:this.window.innerWidth-this.resizableLeft,u=o?this.resizableBottom:this.window.innerHeight-this.resizableTop):this.props.bounds&&(l=a?this.resizableRight-this.targetLeft:this.props.bounds.offsetWidth+(this.targetLeft-this.resizableLeft),u=o?this.resizableBottom-this.targetTop:this.props.bounds.offsetHeight+(this.targetTop-this.resizableTop));return l&&Number.isFinite(l)&&(n=n&&n<l?n:l),u&&Number.isFinite(u)&&(r=r&&r<u?r:u),{maxWidth:n,maxHeight:r}},e.prototype.calculateNewSizeFromDirection=function(n,r){var i=this.props.scale||1,s=syt(this.props.resizeRatio||1),a=s[0],o=s[1],l=this.state,u=l.direction,c=l.original,d=this.props,h=d.lockAspectRatio,m=d.lockAspectRatioExtraHeight,g=d.lockAspectRatioExtraWidth,b=c.width,v=c.height,E=m||0,x=g||0;return Vm("right",u)&&(b=c.width+(n-c.x)*a/i,h&&(v=(b-x)/this.ratio+E)),Vm("left",u)&&(b=c.width-(n-c.x)*a/i,h&&(v=(b-x)/this.ratio+E)),Vm("bottom",u)&&(v=c.height+(r-c.y)*o/i,h&&(b=(v-E)*this.ratio+x)),Vm("top",u)&&(v=c.height-(r-c.y)*o/i,h&&(b=(v-E)*this.ratio+x)),{newWidth:b,newHeight:v}},e.prototype.calculateNewSizeFromAspectRatio=function(n,r,i,s){var a=this.props,o=a.lockAspectRatio,l=a.lockAspectRatioExtraHeight,u=a.lockAspectRatioExtraWidth,c=typeof s.width>"u"?10:s.width,d=typeof i.width>"u"||i.width<0?n:i.width,h=typeof s.height>"u"?10:s.height,m=typeof i.height>"u"||i.height<0?r:i.height,g=l||0,b=u||0;if(o){var v=(h-g)*this.ratio+b,E=(m-g)*this.ratio+b,x=(c-b)/this.ratio+g,_=(d-b)/this.ratio+g,S=Math.max(c,v),A=Math.min(d,E),R=Math.max(h,x),T=Math.min(m,_);n=$x(n,S,A),r=$x(r,R,T)}else n=$x(n,c,d),r=$x(r,h,m);return{newWidth:n,newHeight:r}},e.prototype.setBoundingClientRect=function(){var n=1/(this.props.scale||1);if(this.props.bounds==="parent"){var r=this.parentNode;if(r){var i=r.getBoundingClientRect();this.parentLeft=i.left*n,this.parentTop=i.top*n}}if(this.props.bounds&&typeof this.props.bounds!="string"){var s=this.props.bounds.getBoundingClientRect();this.targetLeft=s.left*n,this.targetTop=s.top*n}if(this.resizable){var a=this.resizable.getBoundingClientRect(),o=a.left,l=a.top,u=a.right,c=a.bottom;this.resizableLeft=o*n,this.resizableRight=u*n,this.resizableTop=l*n,this.resizableBottom=c*n}},e.prototype.onResizeStart=function(n,r){if(!(!this.resizable||!this.window)){var i=0,s=0;if(n.nativeEvent&&ryt(n.nativeEvent)?(i=n.nativeEvent.clientX,s=n.nativeEvent.clientY):n.nativeEvent&&Fx(n.nativeEvent)&&(i=n.nativeEvent.touches[0].clientX,s=n.nativeEvent.touches[0].clientY),this.props.onResizeStart&&this.resizable){var a=this.props.onResizeStart(n,r,this.resizable);if(a===!1)return}this.props.size&&(typeof this.props.size.height<"u"&&this.props.size.height!==this.state.height&&this.setState({height:this.props.size.height}),typeof this.props.size.width<"u"&&this.props.size.width!==this.state.width&&this.setState({width:this.props.size.width})),this.ratio=typeof this.props.lockAspectRatio=="number"?this.props.lockAspectRatio:this.size.width/this.size.height;var o,l=this.window.getComputedStyle(this.resizable);if(l.flexBasis!=="auto"){var u=this.parentNode;if(u){var c=this.window.getComputedStyle(u).flexDirection;this.flexDir=c.startsWith("row")?"row":"column",o=l.flexBasis}}this.setBoundingClientRect(),this.bindEvents();var d={original:{x:i,y:s,width:this.size.width,height:this.size.height},isResizing:!0,backgroundStyle:Fl(Fl({},this.state.backgroundStyle),{cursor:this.window.getComputedStyle(n.target).cursor||"auto"}),direction:r,flexBasis:o};this.setState(d)}},e.prototype.onMouseMove=function(n){var r=this;if(!(!this.state.isResizing||!this.resizable||!this.window)){if(this.window.TouchEvent&&Fx(n))try{n.preventDefault(),n.stopPropagation()}catch{}var i=this.props,s=i.maxWidth,a=i.maxHeight,o=i.minWidth,l=i.minHeight,u=Fx(n)?n.touches[0].clientX:n.clientX,c=Fx(n)?n.touches[0].clientY:n.clientY,d=this.state,h=d.direction,m=d.original,g=d.width,b=d.height,v=this.getParentSize(),E=iyt(v,this.window.innerWidth,this.window.innerHeight,s,a,o,l);s=E.maxWidth,a=E.maxHeight,o=E.minWidth,l=E.minHeight;var x=this.calculateNewSizeFromDirection(u,c),_=x.newHeight,S=x.newWidth,A=this.calculateNewMaxFromBoundary(s,a);this.props.snap&&this.props.snap.x&&(S=uJ(S,this.props.snap.x,this.props.snapGap)),this.props.snap&&this.props.snap.y&&(_=uJ(_,this.props.snap.y,this.props.snapGap));var R=this.calculateNewSizeFromAspectRatio(S,_,{width:A.maxWidth,height:A.maxHeight},{width:o,height:l});if(S=R.newWidth,_=R.newHeight,this.props.grid){var T=lJ(S,this.props.grid[0],this.props.gridGap?this.props.gridGap[0]:0),O=lJ(_,this.props.grid[1],this.props.gridGap?this.props.gridGap[1]:0),I=this.props.snapGap||0,D=I===0||Math.abs(T-S)<=I?T:S,P=I===0||Math.abs(O-_)<=I?O:_;S=D,_=P}var B={width:S-m.width,height:_-m.height};if(this.delta=B,g&&typeof g=="string"){if(g.endsWith("%")){var L=S/v.width*100;S="".concat(L,"%")}else if(g.endsWith("vw")){var $=S/this.window.innerWidth*100;S="".concat($,"vw")}else if(g.endsWith("vh")){var q=S/this.window.innerHeight*100;S="".concat(q,"vh")}}if(b&&typeof b=="string"){if(b.endsWith("%")){var L=_/v.height*100;_="".concat(L,"%")}else if(b.endsWith("vw")){var $=_/this.window.innerWidth*100;_="".concat($,"vw")}else if(b.endsWith("vh")){var q=_/this.window.innerHeight*100;_="".concat(q,"vh")}}var F={width:this.createSizeForCssProperty(S,"width"),height:this.createSizeForCssProperty(_,"height")};this.flexDir==="row"?F.flexBasis=F.width:this.flexDir==="column"&&(F.flexBasis=F.height);var G=this.state.width!==F.width,H=this.state.height!==F.height,K=this.state.flexBasis!==F.flexBasis,V=G||H||K;V&&ks.flushSync(function(){r.setState(F)}),this.props.onResize&&V&&this.props.onResize(n,h,this.resizable,B)}},e.prototype.onMouseUp=function(n){var r,i,s=this.state,a=s.isResizing,o=s.direction;s.original,!(!a||!this.resizable)&&(this.props.onResizeStop&&this.props.onResizeStop(n,o,this.resizable,this.delta),this.props.size&&this.setState({width:(r=this.props.size.width)!==null&&r!==void 0?r:"auto",height:(i=this.props.size.height)!==null&&i!==void 0?i:"auto"}),this.unbindEvents(),this.setState({isResizing:!1,backgroundStyle:Fl(Fl({},this.state.backgroundStyle),{cursor:"auto"})}))},e.prototype.updateSize=function(n){var r,i;this.setState({width:(r=n.width)!==null&&r!==void 0?r:"auto",height:(i=n.height)!==null&&i!==void 0?i:"auto"})},e.prototype.renderResizer=function(){var n=this,r=this.props,i=r.enable,s=r.handleStyles,a=r.handleClasses,o=r.handleWrapperStyle,l=r.handleWrapperClass,u=r.handleComponent;if(!i)return null;var c=Object.keys(i).map(function(d){return i[d]!==!1?j.jsx(eyt,{direction:d,onResizeStart:n.onResizeStart,replaceStyles:s&&s[d],className:a&&a[d],children:u&&u[d]?u[d]:null},d):null});return j.jsx("div",{className:l,style:o,children:c})},e.prototype.render=function(){var n=this,r=Object.keys(this.props).reduce(function(a,o){return ayt.indexOf(o)!==-1||(a[o]=n.props[o]),a},{}),i=Fl(Fl(Fl({position:"relative",userSelect:this.state.isResizing?"none":"auto"},this.props.style),this.sizeStyle),{maxWidth:this.props.maxWidth,maxHeight:this.props.maxHeight,minWidth:this.props.minWidth,minHeight:this.props.minHeight,boxSizing:"border-box",flexShrink:0});this.state.flexBasis&&(i.flexBasis=this.state.flexBasis);var s=this.props.as||"div";return j.jsxs(s,Fl({style:i,className:this.props.className},r,{ref:function(a){a&&(n.resizable=a)},children:[this.state.isResizing&&j.jsx("div",{style:this.state.backgroundStyle}),this.props.children,this.renderResizer()]}))},e.defaultProps={as:"div",onResizeStart:function(){},onResize:function(){},onResizeStop:function(){},enable:{top:!0,right:!0,bottom:!0,left:!0,topRight:!0,bottomRight:!0,bottomLeft:!0,topLeft:!0},style:{}
vendor: 4,376 bytes, line 178
178,grid:[1,1],gridGap:[0,0],lockAspectRatio:!1,lockAspectRatioExtraWidth:0,lockAspectRatioExtraHeight:0,scale:1,resizeRatio:1,snapGap:0},e})(C.PureComponent);var B9=function(t,e){return B9=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var i in r)r.hasOwnProperty(i)&&(n[i]=r[i])},B9(t,e)};function lyt(t,e){B9(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}var Si=function(){return Si=Object.assign||function(e){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(e[s]=n[s])}return e},Si.apply(this,arguments)};function uyt(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n}var cyt={width:"auto",height:"auto",display:"inline-block",position:"absolute",top:0,left:0},dyt=function(t){return{bottom:t,bottomLeft:t,bottomRight:t,left:t,right:t,top:t,topLeft:t,topRight:t}},dMt=(function(t){lyt(e,t);function e(n){var r=t.call(this,n)||this;return r.resizingPosition={x:0,y:0},r.offsetFromParent={left:0,top:0},r.resizableElement={current:null},r.originalPosition={x:0,y:0},r.state={resizing:!1,bounds:{top:0,right:0,bottom:0,left:0},maxWidth:n.maxWidth,maxHeight:n.maxHeight},r.onResizeStart=r.onResizeStart.bind(r),r.onResize=r.onResize.bind(r),r.onResizeStop=r.onResizeStop.bind(r),r.onDragStart=r.onDragStart.bind(r),r.onDrag=r.onDrag.bind(r),r.onDragStop=r.onDragStop.bind(r),r.getMaxSizesFromProps=r.getMaxSizesFromProps.bind(r),r}return e.prototype.componentDidMount=function(){this.updateOffsetFromParent();var n=this.offsetFromParent,r=n.left,i=n.top,s=this.getDraggablePosition(),a=s.x,o=s.y;this.draggable.setState({x:a-r,y:o-i}),this.forceUpdate()},e.prototype.getDraggablePosition=function(){var n=this.draggable.state,r=n.x,i=n.y;return{x:r,y:i}},e.prototype.getParent=function(){return this.resizable&&this.resizable.parentNode},e.prototype.getParentSize=function(){return this.resizable.getParentSize()},e.prototype.getMaxSizesFromProps=function(){var n=typeof this.props.maxWidth>"u"?Number.MAX_SAFE_INTEGER:this.props.maxWidth,r=typeof this.props.maxHeight>"u"?Number.MAX_SAFE_INTEGER:this.props.maxHeight;return{maxWidth:n,maxHeight:r}},e.prototype.getSelfElement=function(){return this.resizable&&this.resizable.resizable},e.prototype.getOffsetHeight=function(n){var r=this.props.scale;switch(this.props.bounds){case"window":return window.innerHeight/r;case"body":return document.body.offsetHeight/r;default:return n.offsetHeight}},e.prototype.getOffsetWidth=function(n){var r=this.props.scale;switch(this.props.bounds){case"window":return window.innerWidth/r;case"body":return document.body.offsetWidth/r;default:return n.offsetWidth}},e.prototype.onDragStart=function(n,r){if(this.props.onDragStart&&this.props.onDragStart(n,r)===!1)return!1;var i=this.getDraggablePosition();if(this.originalPosition=i,!!this.props.bounds){var s=this.getParent(),a=this.props.scale,o;if(this.props.bounds==="parent")o=s;else if(this.props.bounds==="body"){var l=s.getBoundingClientRect(),u=l.left,c=l.top,d=document.body.getBoundingClientRect(),h=-(u-s.offsetLeft*a-d.left)/a,m=-(c-s.offsetTop*a-d.top)/a,g=(document.body.offsetWidth-this.resizable.size.width*a)/a+h,b=(document.body.offsetHeight-this.resizable.size.height*a)/a+m;return this.setState({bounds:{top:m,right:g,bottom:b,left:h}})}else if(this.props.bounds==="window"){if(!this.resizable)return;var v=s.getBoundingClientRect(),E=v.left,x=v.top,_=-(E-s.offsetLeft*a)/a,S=-(x-s.offsetTop*a)/a,g=(window.innerWidth-this.resizable.size.width*a)/a+_,b=(window.innerHeight-this.resizable.size.height*a)/a+S;return this.setState({bounds:{top:S,right:g,bottom:b,left:_}})}else typeof this.props.bounds=="string"?o=document.querySelector(this.props.bounds):this.props.bounds instanceof HTMLElement&&(o=this.props.bounds);if(!(!(o instanceof HTMLElement)||!(s instanceof HTMLElement))){var A=o.getBoundingClientRect(),R=A.left,T=A.top,O=s.getBoundingClientRect(),I=O.left,D=O.top,P=(R-I)/a,B=T-D;if(this.resizable){this.updateOffsetFromParent();var L=this.offsetFromParent;
vendor: 5,056 bytes, line 178
178this.setState({bounds:{top:B-L.top,right:P+(o.offsetWidth-this.resizable.size.width)-L.left/a,bottom:B+(o.offsetHeight-this.resizable.size.height)-L.top,left:P-L.left/a}})}}}},e.prototype.onDrag=function(n,r){if(this.props.onDrag){var i=this.offsetFromParent,s=i.left,a=i.top;if(!this.props.dragAxis||this.props.dragAxis==="both")return this.props.onDrag(n,Si(Si({},r),{x:r.x+s,y:r.y+a}));if(this.props.dragAxis==="x")return this.props.onDrag(n,Si(Si({},r),{x:r.x+s,y:this.originalPosition.y+a,deltaY:0}));if(this.props.dragAxis==="y")return this.props.onDrag(n,Si(Si({},r),{x:this.originalPosition.x+s,y:r.y+a,deltaX:0}))}},e.prototype.onDragStop=function(n,r){if(this.props.onDragStop){var i=this.offsetFromParent,s=i.left,a=i.top;if(!this.props.dragAxis||this.props.dragAxis==="both")return this.props.onDragStop(n,Si(Si({},r),{x:r.x+s,y:r.y+a}));if(this.props.dragAxis==="x")return this.props.onDragStop(n,Si(Si({},r),{x:r.x+s,y:this.originalPosition.y+a,deltaY:0}));if(this.props.dragAxis==="y")return this.props.onDragStop(n,Si(Si({},r),{x:this.originalPosition.x+s,y:r.y+a,deltaX:0}))}},e.prototype.onResizeStart=function(n,r,i){if(this.props.onResizeStart&&this.props.onResizeStart(n,r,i)===!1)return!1;n.stopPropagation(),this.setState({resizing:!0});var s=this.props.scale,a=this.offsetFromParent,o=this.getDraggablePosition();if(this.resizingPosition={x:o.x+a.left,y:o.y+a.top},this.originalPosition=o,this.props.bounds){var l=this.getParent(),u=void 0;this.props.bounds==="parent"?u=l:this.props.bounds==="body"?u=document.body:this.props.bounds==="window"?u=window:typeof this.props.bounds=="string"?u=document.querySelector(this.props.bounds):this.props.bounds instanceof HTMLElement&&(u=this.props.bounds);var c=this.getSelfElement();if(c instanceof Element&&(u instanceof HTMLElement||u===window)&&l instanceof HTMLElement){var d=this.getMaxSizesFromProps(),h=d.maxWidth,m=d.maxHeight,g=this.getParentSize();if(h&&typeof h=="string")if(h.endsWith("%")){var b=Number(h.replace("%",""))/100;h=g.width*b}else h.endsWith("px")&&(h=Number(h.replace("px","")));if(m&&typeof m=="string")if(m.endsWith("%")){var b=Number(m.replace("%",""))/100;m=g.height*b}else m.endsWith("px")&&(m=Number(m.replace("px","")));var v=c.getBoundingClientRect(),E=v.left,x=v.top,_=this.props.bounds==="window"?{left:0,top:0}:u.getBoundingClientRect(),S=_.left,A=_.top,R=this.getOffsetWidth(u),T=this.getOffsetHeight(u),O=r.toLowerCase().endsWith("left"),I=r.toLowerCase().endsWith("right"),D=r.startsWith("top"),P=r.startsWith("bottom");if((O||D)&&this.resizable){var B=(E-S)/s+this.resizable.size.width;this.setState({maxWidth:B>Number(h)?h:B})}if(I||this.props.lockAspectRatio&&!O&&!D){var B=R+(S-E)/s;this.setState({maxWidth:B>Number(h)?h:B})}if((D||O)&&this.resizable){var B=(x-A)/s+this.resizable.size.height;this.setState({maxHeight:B>Number(m)?m:B})}if(P||this.props.lockAspectRatio&&!D&&!O){var B=T+(A-x)/s;this.setState({maxHeight:B>Number(m)?m:B})}}}else this.setState({maxWidth:this.props.maxWidth,maxHeight:this.props.maxHeight})},e.prototype.onResize=function(n,r,i,s){var a=this,o={x:this.originalPosition.x,y:this.originalPosition.y},l=-s.width,u=-s.height,c=["top","left","topLeft","bottomLeft","topRight"];c.includes(r)&&(r==="bottomLeft"?o.x+=l:(r==="topRight"||(o.x+=l),o.y+=u));var d=this.draggable.state;(o.x!==d.x||o.y!==d.y)&&ks.flushSync(function(){a.draggable.setState(o)}),this.updateOffsetFromParent();var h=this.offsetFromParent,m=this.getDraggablePosition().x+h.left,g=this.getDraggablePosition().y+h.top;this.resizingPosition={x:m,y:g},this.props.onResize&&this.props.onResize(n,r,i,s,{x:m,y:g})},e.prototype.onResizeStop=function(n,r,i,s){this.setState({resizing:!1});var a=this.getMaxSizesFromProps(),o=a.maxWidth,l=a.maxHeight;this.setState({maxWidth:o,maxHeight:l}),this.props.onResizeStop&&this.props.onResizeStop(n,r,i,s,this.resizingPosition)},e.prototype.updateSize=function(n){this.resizable&&this.resizable.updateSize({width:n.width,height:n.height})},e.prototype.updatePosition=function(n){this.draggable.setState(n)},e.prototype.updateOffsetFromParent=function(){var n=this.props.scale,r=this.getParent(),i=this.getSelfElement();if(!r||i===null)return{top:0,left:0};var s=r.getBoundingClientRect(),a=s.left,o=s.top,l=i.getBoundingClientRect(),u=this.getDraggablePosition(),c=r.scrollLeft,d=r.scrollTop;this.offsetFromParent={left:l.left-a+c-u.x*n,top:l.top-o+d-u.y*n}},e.prototype.render=function(){var n=this,r=this.props,i=r.disableDragging,s=r.style,a=r.dragHandleClassName,o=r.position,l=r.onMouseDown,u=r.onMouseUp,c=r.dragAxis,d=r.dragGrid,h=r.bounds,m=r.enableUserSelectHack,g=r.cancel,b=r.children;r.onResizeStart,r.onResize,r.onResizeStop,r.onDragStart,r.onDrag,r.onDragStop;var v=r.resizeHandleStyles,E=r.resizeHandleClasses,x=r.resizeHandleComponent,_=r.enableResizing,S=r.resizeGrid,A=r.resizeHandleWrapperClass,R=r.resizeHandleWrapperStyle,T=r.scale,O=r.allowAnyClick,I=r.dragPositionOffset,D=uyt(r,["disableDragging","style","dragHandleClassName","position","onMouseDown","onMouseUp","dragAxis","dragGrid","boun
178ds","enableUserSelectHack","cancel","children","onResizeStart","onResize","onResizeStop","onDragStart","onDrag","onDragStop","resizeHandleStyles","resizeHandleClasses","resizeHandleComponent","enableResizing","resizeGrid","resizeHandleWrapperClass","resizeHandleWrapperStyle","scale","allowAnyClick","dragPositionOffset"]),P=this.props.default?Si({},this.props.default):void 0;delete D.default;var B=i||a?{cursor:"auto"}:{cursor:"move"},L=Si(Si(Si({},cyt),B),s),$=this.offsetFromParent,q=$.left,F=$.top,G;o&&(G={x:o.x-q,y:o.y-F});var H=this.state.resizing?void 0:G,K=this.state.resizing?"both":c;return C.createElement(Z1t,{ref:function(V){V&&(n.draggable=V)},handle:a?".".concat(a):void 0,defaultPosition:P,onMouseDown:l,onMouseUp:u,onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop,axis:K,disabled:i,grid:d,bounds:h?this.state.bounds:void 0,position:H,enableUserSelectHack:m,cancel:g,scale:T,allowAnyClick:O,nodeRef:this.resizableElement,positionOffset:I},C.createElement(oyt,Si({},D,{ref:function(V){V&&(n.resizable=V,n.resizableElement.current=V.resizable)},defaultSize:P,size:this.props.size,enable:typeof _=="boolean"?dyt(_):_,onResizeStart:this.onResizeStart,onResize:this.onResize,onResizeStop:this.onResizeStop,style:L,minWidth:this.props.minWidth,minHeight:this.props.minHeight,maxWidth:this.state.resizing?this.state.maxWidth:this.props.maxWidth,maxHeight:this.state.resizing?this.state.maxHeight:this.props.maxHeight,grid:S,handleWrapperClass:A,handleWrapperStyle:R,lockAspectRatio:this.props.lockAspectRatio,lockAspectRatioExtraWidth:this.props.lockAspectRatioExtraWidth,lockAspectRatioExtraHeight:this.props.lockAspectRatioExtraHeight,handleStyles:v,handleClasses:E,handleComponent:x,scale:this.props.scale}),b))},e.defaultProps={maxWidth:Number.MAX_SAFE_INTEGER,maxHeight:Number.MAX_SAFE_INTEGER,scale:1,onResizeStart:function(){},onResize:function(){},onResizeStop:function(){},onDragStart:function(){},onDrag:function(){},onDragStop:function(){}},e})(C.PureComponent);function Bve(t,e,n){const r=t.slice();return r.splice(n<0?r.length+n:n,0,r.splice(e,1)[0]),r}function fyt(t,e){return t.reduce((n,r,i)=>{const s=e.get(r);return s&&(n[i]=s),n},Array(t.length))}function Hx(t){return t!==null&&t>=0}function hyt(t,e){if(t===e)return!0;if(t.length!==e.length)return!1;for(let n=0;n<t.length;n++)if(t[n]!==e[n])return!1;return!0}function pyt(t){return typeof t=="boolean"?{draggable:t,droppable:t}:t}const Hve=t=>{let{rects:e,activeIndex:n,overIndex:r,index:i}=t;const s=Bve(e,r,n),a=e[i],o=s[i];return!o||!a?null:{x:o.left-a.left,y:o.top-a.top,scaleX:o.width/a.width,scaleY:o.height/a.height}},Ux={scaleX:1,scaleY:1},fMt=t=>{var e;let{activeIndex:n,activeNodeRect:r,index:i,rects:s,overIndex:a}=t;const o=(e=s[n])!=null?e:r;if(!o)return null;if(i===n){const u=s[a];return u?{x:0,y:n<a?u.top+u.height-(o.top+o.height):u.top-o.top,...Ux}:null}const l=myt(s,i,n);return i>n&&i<=a?{x:0,y:-o.height-l,...Ux}:i<n&&i>=a?{x:0,y:o.height+l,...Ux}:{x:0,y:0,...Ux}};function myt(t,e,n){const r=t[e],i=t[e-1],s=t[e+1];return r?n<e?i?r.top-(i.top+i.height):s?s.top-(r.top+r.height):0:s?s.top-(r.top+r.height):i?r.top-(i.top+i.height):0:0}const Uve="Sortable",jve=U.createContext({activeIndex:-1,containerId:Uve,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:Hve,disabled:{draggable:!1,droppable:!1}});function hMt(t){let{children:e,id:n,items:r,strategy:i=Hve,disabled:s=!1}=t;const{active:a,dragOverlay:o,droppableRects:l,over:u,measureDroppableContainers:c}=$be(),d=Q2(Uve,n),h=o.rect!==null,m=C.useMemo(()=>r.map(R=>typeof R=="object"&&"id"in R?R.id:R),[r]),g=a!=null,b=a?m.indexOf(a.id):-1,v=u?m.indexOf(u.id):-1,E=C.useRef(m),x=!hyt(m,E.current),_=v!==-1&&b===-1||x,S=pyt(s);dl(()=>{x&&g&&c(m)},[x,m,g,c]),C.useEffect(()=>{E.current=m},[m]);const A=C.useMemo(()=>({activeIndex:b,containerId:d,disabled:S,disableTransforms:_,items:m,overIndex:v,useDragOverlay:h,sortedRects:fyt(m,l),strategy:i}),[b,d,S.draggable,S.droppable,_,m,v,l,h,i]);return U.createElement(jve.Provider,{value:A},e)}const gyt=t=>{let{id:e,items:n,activeIndex:r,overIndex:i}=t;return Bve(n,r,i).indexOf(e)},yyt=t=>{let{containerId:e,isSorting:n,wasDragging:r,index:i,items:s,newIndex:a,previousItems:o,previousContainerId:l,transition:u}=t;return!u||!r||o!==s&&i===a?!1:n?!0:a!==i&&e===l},byt={duration:200,easing:"ease"},zve="transform",vyt=ep.Transition.toString({property:zve,duration:0,easing:"linear"}),Eyt={roleDescription:"sortable"};function _yt(t){let{disabled:e,index:n,node:r,rect:i}=t;const[s,a]=C.useState(null),o=C.useRef(n);return dl(()=>{if(!e&&n!==o.current&&r.current){const l=i.current;if(l){const u=Q0(r.current,{ignoreTransform:!0}),c={x:l.left-u.left,y:l.top-u.top,scaleX:l.width/u.width,scaleY:l.height/u.height};(c.x||c.y)&&a(c)}}n!==o.current&&(o.current=n)},[e,n,r,i]),C.useEffect(()=>{s&&a(null)},[s]),s}function pMt(t){let{animateLayoutChanges:e=yyt,attributes:n,disabled:r,data:i,getNewIndex:s=gyt,id:a,strategy:o,resizeObserverConfig:l,transition:u=byt}=t;const{items:c,containerId:d,activeIndex:h,disabled:m,disableTransforms:g,sortedRects:b,overIndex:v,useDragOverlay:E,strategy:x}=C.useContext(jve),_=xyt(r,m),S=c.indexOf(a),A=C.useMemo(()=>({sortable:{containerId:d,index:S,items:c},...i}),[d,i,S,c]),R=C.useMemo(()=>c.slice(c.indexOf(a)),[c,a]),{rect:T,node:O,isOver:I,setNodeRef:D}=Pmt({id:a,data:A,disabled:_.droppable,resizeObserverConfig:{updateMeasurementsFor:R,...l}}),{active:P,activatorEvent:B,activeNodeRect:L,attributes:$,setNodeRef:q,listeners:F,isDragging:G,over:H,setA
178ctivatorNodeRef:K,transform:V}=Imt({id:a,data:A,attributes:{...Eyt,...n},disabled:_.draggable}),Y=Ept(D,q),Z=!!P,W=Z&&!g&&Hx(h)&&Hx(v),Q=!E&&G,re=Q&&W?V:null,J=W?re??(o??x)({rects:b,activeNodeRect:L,activeIndex:h,overIndex:v,index:S}):null,ae=Hx(h)&&Hx(v)?s({id:a,items:c,activeIndex:h,overIndex:v}):S,ge=P?.id,ve=C.useRef({activeId:ge,items:c,newIndex:ae,containerId:d}),Re=c!==ve.current.items,xe=e({active:P,containerId:d,isDragging:G,isSorting:Z,id:a,index:S,items:c,newIndex:ve.current.newIndex,previousItems:ve.current.items,previousContainerId:ve.current.containerId,transition:u,wasDragging:ve.current.activeId!=null}),Ne=_yt({disabled:!xe,index:S,node:O,rect:T});return C.useEffect(()=>{Z&&ve.current.newIndex!==ae&&(ve.current.newIndex=ae),d!==ve.current.containerId&&(ve.current.containerId=d),c!==ve.current.items&&(ve.current.items=c)},[Z,ae,d,c]),C.useEffect(()=>{if(ge===ve.current.activeId)return;if(ge!=null&&ve.current.activeId==null){ve.current.activeId=ge;return}const Le=setTimeout(()=>{ve.current.activeId=ge},50);return()=>clearTimeout(Le)},[ge]),{active:P,activeIndex:h,attributes:$,data:A,rect:T,index:S,newIndex:ae,items:c,isOver:I,isSorting:Z,isDragging:G,listeners:F,node:O,overIndex:v,over:H,setNodeRef:Y,setActivatorNodeRef:K,setDroppableNodeRef:D,setDraggableNodeRef:q,transform:Ne??J,transition:Fe()};function Fe(){if(Ne||Re&&ve.current.newIndex===S)return vyt;if(!(Q&&!M3(B)||!u)&&(Z||xe))return ep.Transition.toString({...u,property:zve})}}function xyt(t,e){var n,r;return typeof t=="boolean"?{draggable:t,droppable:!1}:{draggable:(n=t?.draggable)!=null?n:e.draggable,droppable:(r=t?.droppable)!=null?r:e.droppable}}function hC(t){if(!t)return!1;const e=t.data.current;return!!(e&&"sortable"in e&&typeof e.sortable=="object"&&"containerId"in e.sortable&&"items"in e.sortable&&"index"in e.sortable)}const wyt=[Sn.Down,Sn.Right,Sn.Up,Sn.Left],mMt=(t,e)=>{let{context:{active:n,collisionRect:r,droppableRects:i,droppableContainers:s,over:a,scrollableAncestors:o}}=e;if(wyt.includes(t.code)){if(t.preventDefault(),!n||!r)return;const l=[];s.getEnabled().forEach(d=>{if(!d||d!=null&&d.disabled)return;const h=i.get(d.id);if(h)switch(t.code){case Sn.Down:r.top<h.top&&l.push(d);break;case Sn.Up:r.top>h.top&&l.push(d);break;case Sn.Left:r.left>h.left&&l.push(d);break;case Sn.Right:r.left<h.left&&l.push(d);break}});const u=Lpt({collisionRect:r,droppableRects:i,droppableContainers:l});let c=vbe(u,"id");if(c===a?.id&&u.length>1&&(c=u[1].id),c!=null){const d=s.get(n.id),h=s.get(c),m=h?i.get(h.id):null,g=h?.node.current;if(g&&m&&d&&h){const v=D3(g).some((R,T)=>o[T]!==R),E=Vve(d,h),x=Syt(d,h),_=v||!E?{x:0,y:0}:{x:x?r.width-m.width:0,y:x?r.height-m.height:0},S={x:m.left,y:m.top};return _.x&&_.y?S:Sv(S,_)}}}};function Vve(t,e){return!hC(t)||!hC(e)?!1:t.data.current.sortable.containerId===e.data.current.sortable.containerId}function Syt(t,e){return!hC(t)||!hC(e)||!Vve(t,e)?!1:t.data.current.sortable.index<e.data.current.sortable.index}function Cyt(t,e){return(function(n,r){return Object.prototype.hasOwnProperty.call(n,r)})(t,e)?t[e]:void 0}function Tyt(t){return new Promise(((e,n)=>{if((function(a){if(URL.prototype)try{return new URL(a,location.href),!1}catch(o){if(o instanceof Error&&o.name==="TypeError")return!0;throw o}})(t))throw new Error(Gve);const r=document.createElement("script"),i=()=>{var a;return(a=r.parentNode)===null||a===void 0?void 0:a.removeChild(r)},s=document.head||document.getElementsByTagName("head")[0];r.onload=()=>{i(),e()},r.onerror=()=>{i(),n(new Error(H9))},r.async=!0,r.src=t,s.appendChild(r)}))}function Ayt(){const t=window,e="__fpjs_p_l_b",n=t[e];if((function(r,i){var s;const a=(s=Object.getOwnPropertyDescriptor)===null||s===void 0?void 0:s.call(Object,r,i);a?.configurable?delete r[i]:a&&!a.writable||(r[i]=void 0)})(t,e),typeof n?.load!="function")throw new Error(U9);return n}const gMt={default:"endpoint"};function Ryt(t,e){return(Array.isArray(t)?t:[t]).map((n=>(function(r,i){const s=encodeURIComponent;return r.replace(/<[^<>]+>/g,(a=>a==="<version>"?"3":a==="<apiKey>"?s(i):a==="<loaderVersion>"?s(kyt):a))})(String(n),e)))}const qve="Blocked by CSP",Gve="The endpoint parameter is not a valid URL";function Nyt(t){return(function(e,n,r,i){const s=document,a="securitypolicyviolation";let o;const l=c=>{const d=new URL(e,location.href),{blockedURI:h}=c;h!==d.href&&h!==d.protocol.slice(0,-1)&&h!==d.origin||(o=c,u())};s.addEventListener(a,l);const u=()=>s.removeEventListener(a,l);return Promise.resolve().then(n).then((c=>(u(),c)),(c=>new Promise((d=>{const h=new MessageChannel;h.port1.onmessage=()=>d(),h.port2.postMessage(null)})).then((()=>
178{if(u(),o)return r(o);throw c}))))})(t,(()=>Tyt(t)),(()=>{throw new Error(qve)})).then(Ayt)}function yMt(t){var e,n;const{picked:r,rest:i}=(function(c,d){const h={},m={};for(const[g,b]of Object.entries(c))d.includes(g)?h[g]=b:m[g]=b;return{picked:h,rest:m}})(t,["scriptUrlPattern","token","apiKey"]),s=r.token,a=(e=r.apiKey)!==null&&e!==void 0?e:s,o=(n=Cyt(t,"scriptUrlPattern"))!==null&&n!==void 0?n:Wve.scriptUrl,[l,u]=(function(){const c=[],d=()=>{c.push({time:new Date,state:document.visibilityState})},h=(m=document,g="visibilitychange",b=d,m.addEventListener(g,b,v),()=>m.removeEventListener(g,b,v));var m,g,b,v;return d(),[c,h]})();return Promise.resolve().then((()=>{if(!a||typeof a!="string")throw new Error(Oyt);return(function(c,d){const h=[],[g,b]=(function(x){const _=(function(R){const T=[...R];return{current:()=>T[0],postpone(){const O=T.shift();O!==void 0&&T.push(O)},exclude(){T.shift()}}})(x),S=(function(R,T){let O=0;return()=>Math.random()*Math.min(T,R*Math.pow(2,O++))})(100,3e3),A=new Set;return[_.current(),(R,T)=>{let O;const I=T instanceof Error?T.message:"";if(I===qve||I===Gve)_.exclude(),O=0;else if(I===U9)_.exclude();else if(I===H9){const P=Date.now()-R.getTime()<50,B=_.current();B&&P&&!A.has(B)&&(A.add(B),O=0),_.postpone()}else _.postpone();const D=_.current();return D===void 0?void 0:[D,O??R.getTime()+S()-Date.now()]}]})(c);let v;if(g===void 0)return Promise.reject(new TypeError("The list of script URL patterns is empty"));const E=x=>{const _=new Date,S=R=>h.push({url:x,startedAt:_,finishedAt:new Date,error:R}),A=d(x);return A.then((()=>S()),S),A.catch((R=>{if(v!=null||(v=R),h.length>=5)throw v;const T=b(_,R);if(!T)throw v;const[O,I]=T;return(D=I,new Promise((P=>setTimeout(P,D)))).then((()=>E(O)));var D}))};return E(g).then((x=>[x,h]))})(Ryt(o,a),Nyt)})).catch((c=>{throw u(),(function(d){return d instanceof Error&&d.message===U9?new Error(H9):d})(c)})).then((([c,d])=>(u(),c.load({...i,ldi:{attempts:d,visibilityStates:l}}))))}const Oyt="API key required";var kyt="3.12.9";const H9="Failed to load the JS script of the agent",U9="9319",Wve={scriptUrl:"https://fpnpmcdn.net/v<version>/<apiKey>/loader_v<loaderVersion>.js"},bMt=Wve.scriptUrl;var Iyt=Object.defineProperty,Myt=(t,e,n)=>e in t?Iyt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,oc=(t,e,n)=>Myt(t,typeof e!="symbol"?e+"":e,n);let Dyt=class Yve{constructor(e=new Map){this.map=e}clone(){return new Yve(new Map(this.map))}increment(e){const n=this.map.get(e)??0;this.map.set(e,n+1)}decrement(e,n){let r=this.map.get(e);r!==void 0&&(r-=1,this.map.set(e,r),r===0&&n())}},jx=class{constructor(){oc(this,"map",new Map)}getOrCreate(e){let n=this.map.get(e);return n===void 0&&(n=new Set,this.map.set(e,n)),n}get(e){return this.map.get(e)}use(e,n){const r=this.get(e);r!==void 0&&n(r)}delete(e){return this.map.delete(e)}};function kg(t,e){return e(t),t}function lB(){}const Kve="cell";function dJ(t,e){return t===e}const W3=new Map;let Pyt=class{constructor(e={}){oc(this,"subscriptions",new jx),oc(this,"singletonSubscriptions",new Map),oc(this,"graph",new jx),oc(this,"state",new Map),oc(this,"distinctNodes",new Map),oc(this,"executionMaps",new Map),oc(this,"definitionRegistry",new Set),oc(this,"combinedCells",[]);for(const n of Object.getOwnPropertySymbols(e))this.state.set(n,e[n])}cellInstance(e,n=!0,r=Symbol()){return this.state.has(r)||this.state.set(r,e),n!==!1&&!this.distinctNodes.has(r)&&this.distinctNodes.set(r,n===!0?dJ:n),r}signalInstance(e=!0,n=Symbol()){return e!==!1&&this.distinctNodes.set(n,e===!0?dJ:e),n}sub(e,n){this.register(e);const r=this.subscriptions.getOrCreate(e);return r.add(n),()=>r.delete(n)}singletonSub(e,n){return this.register(e),n===void 0?this.singletonSubscriptions.delete(e):this.singletonSubscriptions.set(e,n),()=>this.singletonSubscriptions.delete(e)}resetSingletonSubs(){this.singletonSubscriptions.clear()}subMultiple(e,n){const r=this.signalInstance();return this.connect({map:i=>(...s)=>{i(s)},sink:r,sources:e}),this.sub(r,n)}pubIn(e){var n;const r=Reflect.ownKeys(e),i=this.getExecutionMap(r),s=i.refCount.clone(),a=i.participatingNodes.slice(),o=new Map(this.state),l=u=>{this.graph.use(u,c=>{for(const{sources:d,sink:h}
178of c)d.has(u)&&s.decrement(h,()=>{a.splice(a.indexOf(h),1),l(h)})})};for(;;){const u=a.shift();if(u===void 0)break;const c=u;let d=!1;const h=m=>{const g=this.distinctNodes.get(c);if(g!=null&&g(o.get(c),m)){d=!1;return}d=!0,o.set(c,m),this.state.has(c)&&this.state.set(c,m)};if(Object.prototype.hasOwnProperty.call(e,c)?h(e[c]):i.projections.use(c,m=>{for(const g of m){const b=[...Array.from(g.sources),...Array.from(g.pulls)].map(v=>o.get(v));g.map(h)(...b)}}),d){const m=o.get(c);this.inContext(()=>{this.subscriptions.use(c,g=>{for(const b of g)b(m)})}),(n=this.singletonSubscriptions.get(c))==null||n(m)}else l(c)}}connect({sources:e,pulls:n=[],map:r,sink:i}){const s={map:r,pulls:new Set(n),sink:this.register(i),sources:new Set(e)};for(const a of[...e,...n])this.register(a),this.graph.getOrCreate(a).add(s);this.executionMaps.clear()}pub(e,n){this.pubIn({[e]:n})}pipe(e,...n){return this.combineOperators(...n)(e)}transformer(...e){return n=>kg(this.signalInstance(),r=>(this.link(this.pipe(r,...e),n),r))}link(e,n){this.connect({map:r=>i=>{r(i)},sink:n,sources:[e]})}combine(...e){return kg(this.signalInstance(),n=>{this.connect({map:r=>(...i)=>{r(i)},sink:n,sources:e})})}combineCells(...e){const n=this.combinedCells.find(i=>e.length===i.sources.length&&e.every((s,a)=>s===i.sources[a]));if(n)return n.cell;const r=this.cellInstance(e.map(i=>this.getValue(i)),!0);return this.connect({map:i=>(...s)=>{i(s)},sink:r,sources:e}),this.combinedCells.push({sources:e,cell:r}),r}getValue(e){return this.register(e),this.state.get(e)}getValues(e){return e.map(n=>this.getValue(n))}register(e){const n=W3.get(e);return n===void 0||this.definitionRegistry.has(e)?e:(this.definitionRegistry.add(e),kg(n.type===Kve?this.cellInstance(n.initial,n.distinct,e):this.signalInstance(n.distinct,e),r=>{this.inContext(()=>{n.init(this,r)})}))}inContext(e){return e()}changeWith(e,n,r){this.connect({sources:[n],pulls:[e],sink:e,map:i=>(s,a)=>{i(r(a,s))}})}calculateExecutionMap(e){const n=[],r=new Set,i=new jx,s=new Dyt,a=new jx,o=(l,u=0)=>{s.increment(l),!r.has(l)&&(this.register(l),i.use(l,c=>{u=Math.max(...Array.from(c).map(d=>n.indexOf(d)))+1}),this.graph.use(l,c=>{for(const d of c)d.sources.has(l)?(a.getOrCreate(d.sink).add(d),o(d.sink,u)):i.getOrCreate(d.sink).add(l)}),r.add(l),n.splice(u,0,l))};return e.forEach(o),{participatingNodes:n,pendingPulls:i,projections:a,refCount:s}}getExecutionMap(e){let n=e;if(e.length===1){n=e[0];const i=this.executionMaps.get(n);if(i!==void 0)return i}else for(const[i,s]of this.executionMaps.entries())if(Array.isArray(i)&&i.length===e.length&&i.every(a=>e.includes(a)))return s;const r=this.calculateExecutionMap(e);return this.executionMaps.set(n,r),r}combineOperators(...e){return n=>{for(const r of e)n=r(n,this);return n}}};function Nt(t,e=lB,n=!0){return kg(Symbol(),r=>{W3.set(r,{type:Kve,distinct:n,initial:t,init:e})})}function ya(t=lB,e=!1){return kg(Symbol(),n=>{W3.set(n,{type:"signal",distinct:e,init:t})})}function lE(t=lB){return kg(Symbol(),e=>{W3.set(e,{type:"signal",distinct:!1,init:t})})}const Xve=C.createContext(null);function Y3(){const t=C.useContext(Xve);if(t===null)throw new Error("useRealm must be used within a RealmContextProvider");return t}function Up(t){const e=Y3();e.register(t);const n=C.useCallback(r=>e.sub(t,r),[e,t]);return C.useSyncExternalStore(n,()=>e.getValue(t),()=>e.getValue(t))}function t1(...t){const e=Y3(),n=C.useMemo(()=>e.combineCells.apply(e,t),[e,...t]);return Up(n)}function vo(t){const e=Y3();return e.register(t),C.useCallback(n=>{e.pub(t,n)},[e,t])}function j9(t){return(e,n)=>{const r=n.signalInstance();return n.connect({map:i=>s=>{i(t(s))},sink:r,sources:[e]}),r}}function Ui(...t){return(e,n)=>{const r=n.signalInstance();return n.connect({map:i=>(...s)=>{i(s)},pulls:t,sink:r,sources:[e]}),r}}function uE(t){return(e,n)=>{const r=n.signalInstance();return n.connect({map:i=>s=>{t(s)&&i(s)},sink:r,sources:[e]}),r}}function Qve(t,e){return(n,r)=>{const i=r.signalInstance();return r.connect({map:s=>a=>{s(e=t(e,a))},sink:i,sources:[n]}),i}}function Lyt(t,e){return e(t),t}function Ig(){}function cE(t){return function(e){return{init:n=>{var r;return(r=t.init)==null?void 0:r.call(t,n,e)},postInit:n=>{var r;return(r=t.postInit)==null?void 0:r.call(t,n,e)},update:n=>{var r;return(r=t.update)==null?void 0:r.call(t,n,e)}}}}function $yt({children:t,plugins:e}){const n=U.useMemo(()=>Lyt(new Pyt,r=>{var i,s;for(const a of e)(i=a.init)==null||i.call(a,r);for(const a of e)(s=a.postInit)==null||s.call(a,r)}),[]);return U.useEffect(()=>{var r;for(const i of e)(r=i.update)==null||r.call(i,n)}),U.createElement(Xve.Provider,{value:n},t)}const Zve=C.createContext(null);function Fyt(t,e){return{getTheme:function(){return e??null}}}function Tu(){const t=C.useContext(Zve);
178return t==null&&(function(e,...n){const r=new URL("https://lexical.dev/docs/error"),i=new URLSearchParams;i.append("code",e);for(const s of n)i.append("v",s);throw r.search=i.toString(),Error(`Minified Lexical error #${e}; visit ${r.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)})(8),t}function Ve(t,...e){const n=new URL("https://lexical.dev/docs/error"),r=new URLSearchParams;r.append("code",t);for(const i of e)r.append("v",i);throw n.search=r.toString(),Error(`Minified Lexical error #${t}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}const El=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0,Byt=El&&"documentMode"in document?document.documentMode:null,ql=El&&/Mac|iPod|iPhone|iPad/.test(navigator.platform),ip=El&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent),pC=!(!El||!("InputEvent"in window)||Byt)&&"getTargetRanges"in new window.InputEvent("input"),Iv=El&&/Version\/[\d.]+.*Safari/.test(navigator.userAgent),a0=El&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,Hyt=El&&/Android/.test(navigator.userAgent),Jve=El&&/^(?=.*Chrome).*/i.test(navigator.userAgent),fJ=El&&Hyt&&Jve,mC=El&&/AppleWebKit\/[\d.]+/.test(navigator.userAgent)&&!Jve;function e2e(...t){const e=[];for(const n of t)if(n&&typeof n=="string")for(const[r]of n.matchAll(/\S+/g))e.push(r);return e}const Uyt=1,jyt=3,zyt=9,Vyt=11,sp=0,t2e=1,o0=2,qyt=0,Gyt=1,Wyt=2,gC=4,yC=8,uB=128,Yyt=1792|(112|(3|gC|yC)|uB),cB=1,dB=2,fB=3,hB=4,pB=5,mB=6,K3=Iv||a0||mC?"Â ":"â",Bc=` 179 180`,Kyt=ip?"Â ":K3,ap={bold:1,capitalize:1024,code:16,highlight:uB,italic:2,lowercase:256,strikethrough:gC,subscript:32,superscript:64,underline:yC,uppercase:512},Xyt={directionless:1,unmergeable:2},hJ={center:dB,end:mB,justify:hB,left:cB,right:fB,start:pB},Qyt={[dB]:"center",[mB]:"end",[hB]:"justify",[cB]:"left",[fB]:"right",[pB]:"start"},Zyt={normal:0,segmented:2,token:1},Jyt={[qyt]:"normal",[Wyt]:"segmented",[Gyt]:"token"},pJ="$config";function n2e(t,e,n,r,i,s){let a=t.getFirstChild();for(;a!==null;){const o=a.__key;a.__parent===e&&(Me(a)&&n2e(a,o,n,r,i,s),n.has(o)||s.delete(o),i.push(o)),a=a.getNextSibling()}}const ebt=100;let z9=!1,gB=0;function tbt(t){gB=t.timeStamp}function aO(t,e,n){const r=t.nodeName==="BR",i=e.__lexicalLineBreak;return i&&(t===i||r&&t.previousSibling===i)||r&&cA(t,n)!==void 0}function nbt(t,e,n){const r=pl(Oo(n));let i=null,s=null;r!==null&&r.anchorNode===t&&(i=r.anchorOffset,s=r.focusOffset);const a=t.nodeValue;a!==null&&$B(e,a,i,s,!1)}function rbt(t,e,n){if(He(t)){const r=t.anchor.getNode();if(r.is(n)&&t.format!==r.getFormat())return!1}return Yc(e)&&n.isAttached()}function ibt(t,e,n,r){for(let i=t;i&&!Zbt(i);i=yE(i)){const s=cA(i,e);if(s!==void 0){const a=hi(s,n);if(a)return Mn(a)||!jr(i)?void 0:[i,a]}else if(i===r)return[r,X2e(n)]}}function r2e(t,e,n){z9=!0;const r=performance.now()-gB>ebt;try{Ba(t,(()=>{const i=Xe()||(function(h){return h.getEditorState().read((()=>{const m=Xe();return m!==null?m.clone():null}))})(t),s=new Map,a=t.getRootElement(),o=t._editorState,l=t._blockCursorElement;let u=!1,c="";for(let h=0;h<e.length;h++){const m=e[h],g=m.type,b=m.target,v=ibt(b,t,o,a);if(!v)continue;const[E,x]=v;if(g==="characterData")r&&Qe(x)&&Yc(b)&&rbt(i,b,x)&&nbt(b,x,t);else if(g==="childList"){u=!0;const _=m.addedNodes;for(let R=0;R<_.length;R++){const T=_[R],O=Y2e(T),I=T.parentNode;if(I!=null&&T!==l&&O===null&&!aO(T,I,t)){if(ip){const D=(jr(T)?T.innerText:null)||T.nodeValue;D&&(c+=D)}I.removeChild(T)}}const S=m.removedNodes,A=S.length;if(A>0){let R=0;for(let T=0;T<A;T++){const O=S[T];(aO(O,b,t)||l===O)&&(b.appendChild(O),R++)}A!==R&&s.set(E,x)}}}if(s.size>0)for(const[h,m]of s)m.reconcileObservedMutation(h,t);const d=n.takeRecords();if(d.length>0){for(let h=0;h<d.length;h++){const m=d[h],g=m.addedNodes,b=m.target;for(let v=0;v<g.length;v++){const E=g[v],x=E.parentNode;x==null||E.nodeName!=="BR"||aO(E,b,t)||x.removeChild(E)}}n.takeRecords()}i!==null&&(u&&Vi(i),ip&&eEe(t)&&i.insertRawText(c))}))}finally{z9=!1}}function i2e(t){const e=t._observer;e!==null&&r2e(t,e.takeRecords(),e)}function s2e(t){(function(e){gB===0&&Oo(e).addEventListener("textInput",tbt,!0)})(t),t._observer=new MutationObserver(((e,n)=>{r2e(t,e,n)}
180))}function sbt(t){const e=new Map,n=new Set;for(let r=typeof t=="function"?t:t.replace;r.prototype&&r.prototype.getType!==void 0;r=Object.getPrototypeOf(r)){const{ownNodeConfig:i}=jB(r);if(i&&i.stateConfigs)for(const s of i.stateConfigs){let a;"stateConfig"in s?(a=s.stateConfig,s.flat&&n.add(a.key)):a=s,e.set(a.key,a)}}return{flatKeys:n,sharedConfigMap:e}}let abt=class a2e{constructor(e,n,r=void 0,i=new Map,s=void 0){this.node=e,this.sharedNodeState=n,this.unknownState=r,this.knownState=i;const{sharedConfigMap:a}=this.sharedNodeState,o=s!==void 0?s:(function(l,u,c){let d=c.size;if(u)for(const h in u){const m=l.get(h);m&&c.has(m)||d++}return d})(a,r,i);this.size=o}getValue(e){const n=this.knownState.get(e);if(n!==void 0)return n;this.sharedNodeState.sharedConfigMap.set(e.key,e);let r=e.defaultValue;if(this.unknownState&&e.key in this.unknownState){const i=this.unknownState[e.key];i!==void 0&&(r=e.parse(i)),this.updateFromKnown(e,r)}return r}getInternalState(){return[this.unknownState,this.knownState]}toJSON(){const e={...this.unknownState},n={};for(const[r,i]of this.knownState)r.isEqual(i,r.defaultValue)?delete e[r.key]:e[r.key]=r.unparse(i);for(const r of this.sharedNodeState.flatKeys)r in e&&(n[r]=e[r],delete e[r]);return mJ(e)&&(n.$=e),n}getWritable(e){if(this.node===e)return this;const{sharedNodeState:n,unknownState:r}=this,i=new Map(this.knownState);return new a2e(e,n,(function(s,a,o){let l;if(o)for(const[u,c]of Object.entries(o)){const d=s.get(u);d?a.has(d)||a.set(d,d.parse(c)):(l=l||{},l[u]=c)}return l})(n.sharedConfigMap,i,r),i,this.size)}updateFromKnown(e,n){const r=e.key;this.sharedNodeState.sharedConfigMap.set(r,e);const{knownState:i,unknownState:s}=this;i.has(e)||s&&r in s||(s&&(delete s[r],this.unknownState=mJ(s)),this.size++),i.set(e,n)}updateFromUnknown(e,n){const r=this.sharedNodeState.sharedConfigMap.get(e);r?this.updateFromKnown(r,r.parse(n)):(this.unknownState=this.unknownState||{},e in this.unknownState||this.size++,this.unknownState[e]=n)}updateFromJSON(e){const{knownState:n}=this;for(const r of n.keys())n.set(r,r.defaultValue);if(this.size=n.size,this.unknownState=void 0,e)for(const[r,i]of Object.entries(e))this.updateFromUnknown(r,i)}};function obt(t){const e=t.getWritable(),n=e.__state?e.__state.getWritable(e):new abt(e,o2e(e));return e.__state=n,n}function o2e(t){return t.__state?t.__state.sharedNodeState:q2e(HB(),t.getType()).sharedNodeState}function mJ(t){if(t)for(const e in t)return t}function gJ(t,e,n){for(const[r,i]of e.knownState){if(t.has(r.key))continue;t.add(r.key);const s=n?n.getValue(r):r.defaultValue;if(s!==i&&!r.isEqual(s,i))return!0}return!1}function yJ(t,e,n){const{unknownState:r}=e,i=n?n.unknownState:void 0;if(r){for(const[s,a]of Object.entries(r))if(!t.has(s)&&(t.add(s),a!==(i?i[s]:void 0)))return!0}return!1}function bJ(t,e){const n=t.__state;return n&&n.node===t?n.getWritable(e):n}function vJ(t,e){const n=t.__mode,r=t.__format,i=t.__style,s=e.__mode,a=e.__format,o=e.__style,l=t.__state,u=e.__state;return(n===null||n===s)&&(r===null||r===a)&&(i===null||i===o)&&(t.__state===null||l===u||(function(c,d){if(c===d)return!0;if(c&&d&&c.size!==d.size)return!1;const h=new Set;return!(c&&gJ(h,c,d)||d&&gJ(h,d,c)||c&&yJ(h,c,d)||d&&yJ(h,d,c))})(l,u))}function EJ(t,e){const n=t.mergeWithSibling(e),r=Pr()._normalizedNodes;return r.add(t.__key),r.add(e.__key),n}function _J(t){let e,n,r=t;if(r.__text!==""||!r.isSimpleText()||r.isUnmergeable()){for(;(e=r.getPreviousSibling())!==null&&Qe(e)&&e.isSimpleText()&&!e.isUnmergeable();){if(e.__text!==""){if(vJ(e,r)){r=EJ(e,r);break}break}e.remove()}for(;(n=r.getNextSibling())!==null&&Qe(n)&&n.isSimpleText()&&!n.isUnmergeable();){if(n.__text!==""){if(vJ(r,n)){r=EJ(r,n);break}break}n.remove()}}else r.remove()}function op(t){return xJ(t.anchor),xJ(t.focus),t}function xJ(t){for(;t.type==="element";){const e=t.getNode(),n=t.offset;let r,i;if(n===e.getChildrenSize()?(r=e.getChildAtIndex(n-1),i=!0):(r=e.getChildAtIndex(n),i=!1),Qe(r)){t.set(r.__key,i?r.getTextContentSize():0,"text",!0);break}if(!Me(r))break;t.set(r.__key,i?r.getChildrenSize():0,"element",!0)}}
180let lp,ps,Mv,X3,V9,q9,up,ol,G9,Dv,Ni="",Bl=null,Hl="",pc="",Jm=!1,bC=!1;function vC(t,e){const n=up.get(t);if(e!==null){const r=X9(t);r.parentNode===e&&e.removeChild(r)}if(ol.has(t)||ps._keyToDOMMap.delete(t),Me(n)){const r=_C(n,up);W9(r,0,r.length-1,null)}n!==void 0&&FB(Dv,Mv,X3,n,"destroyed")}function W9(t,e,n,r){let i=e;for(;i<=n;++i){const s=t[i];s!==void 0&&vC(s,r)}}function sh(t,e){t.setProperty("text-align",e)}const lbt="40px";function l2e(t,e){const n=lp.theme.indent;if(typeof n=="string"){const i=t.classList.contains(n);e>0&&!i?t.classList.add(n):e<1&&i&&t.classList.remove(n)}const r=getComputedStyle(t).getPropertyValue("--lexical-indent-base-value")||lbt;t.style.setProperty("padding-inline-start",e===0?"":`calc(${e} * ${r})`)}function u2e(t,e){const n=t.style;e===0?sh(n,""):e===cB?sh(n,"left"):e===dB?sh(n,"center"):e===fB?sh(n,"right"):e===hB?sh(n,"justify"):e===pB?sh(n,"start"):e===mB&&sh(n,"end")}function Y9(t,e){const n=(function(r){const i=r.__dir;if(i!==null)return i;if(pi(r))return null;const s=r.getParentOrThrow();return pi(s)&&s.__dir===null?"auto":null})(e);n!==null?t.dir=n:t.removeAttribute("dir")}function EC(t,e){const n=ol.get(t);n===void 0&&Ve(60);const r=n.createDOM(lp,ps);if((function(i,s,a){const o=a._keyToDOMMap;(function(l,u,c){const d=`__lexicalKey_${u._key}`;l[d]=c})(s,a,i),o.set(i,s)})(t,r,ps),Qe(n)?r.setAttribute("data-lexical-text","true"):Mn(n)&&r.setAttribute("data-lexical-decorator","true"),Me(n)){const i=n.__indent,s=n.__size;if(Y9(r,n),i!==0&&l2e(r,i),s!==0){const o=s-1;K9(_C(n,ol),n,0,o,n.getDOMSlot(r))}const a=n.__format;a!==0&&u2e(r,a),n.isInline()||c2e(null,n,r),dA(n)&&(Ni+=Bc,pc+=Bc)}else{const i=n.getTextContent();if(Mn(n)){const s=n.decorate(ps,lp);s!==null&&d2e(t,s),r.contentEditable="false"}Ni+=i,pc+=i}return e!==null&&e.insertChild(r),FB(Dv,Mv,X3,n,"created"),r}function K9(t,e,n,r,i){const s=Ni;Ni="";let a=n;for(;a<=r;++a){EC(t[a],i);const o=ol.get(t[a]);o!==null&&Qe(o)&&(Bl===null&&(Bl=o.getFormat()),Hl===""&&(Hl=o.getStyle()))}dA(e)&&(Ni+=Bc),i.element.__lexicalTextContent=Ni,Ni=s+Ni}function wJ(t,e){if(t){const n=t.__last;if(n){const r=e.get(n);if(r)return ou(r)?"line-break":Mn(r)&&r.isInline()?"decorator":null}return"empty"}return null}function c2e(t,e,n){const r=wJ(t,up),i=wJ(e,ol);r!==i&&e.getDOMSlot(n).setManagedLineBreak(i)}function ubt(t,e,n){var r;Bl=null,Hl="",(function(i,s,a){const o=Ni,l=i.__size,u=s.__size;Ni="";const c=a.element;if(l===1&&u===1){const d=i.__first,h=s.__first;if(d===h)Xy(d,c);else{const g=X9(d),b=EC(h,null);try{c.replaceChild(b,g)}catch(v){if(typeof v=="object"&&v!=null){const E=`${v.toString()} Parent: ${c.tagName}, new child: {tag: ${b.tagName} key: ${h}}, old child: {tag: ${g.tagName}, key: ${d}}.`;throw new Error(E)}throw v}vC(d,null)}const m=ol.get(h);Qe(m)&&(Bl===null&&(Bl=m.getFormat()),Hl===""&&(Hl=m.getStyle()))}else{const d=_C(i,up),h=_C(s,ol);if(d.length!==l&&Ve(227),h.length!==u&&Ve(228),l===0)u!==0&&K9(h,s,0,u-1,a);else if(u===0){if(l!==0){const m=a.after==null&&a.before==null&&a.element.__lexicalLineBreak==null;W9(d,0,l-1,m?null:c),m&&(c.textContent="")}}else(function(m,g,b,v,E,x){const _=v-1,S=E-1;let A,R,T=x.getFirstChild(),O=0,I=0;for(;O<=_&&I<=S;){const B=g[O],L=b[I];if(B===L)T=oO(Xy(L,x.element)),O++,I++;else{A===void 0&&(A=new Set(g)),R===void 0&&(R=new Set(b));const q=R.has(B),F=A.has(L);if(q)if(F){const G=cp(ps,L);G===T?T=oO(Xy(L,x.element)):(x.withBefore(T).insertChild(G),Xy(L,x.element)),O++,I++}else EC(L,x.withBefore(T)),I++;else T=oO(X9(B)),vC(B,x.element),O++}const $=ol.get(L);$!==null&&Qe($)&&(Bl===null&&(Bl=$.getFormat()),Hl===""&&(Hl=$.getStyle()))}const D=O>_,P=I>S;if(D&&!P){const B=b[S+1],L=B===void 0?null:ps.getElementByKey(B);K9(b,m,I,S,x.withBefore(L))}else P&&!D&&W9(g,O,_,x.element)})(s,d,h,l,u,a)}dA(s)&&(Ni+=Bc),c.__lexicalTextContent=Ni,Ni=o+Ni})(t,e,e.getDOMSlot(n)),r=e,Bl==null||Bl===r.__textFormat||bC||r.setTextFormat(Bl),(function(i){Hl===""||Hl===i.__textStyle||bC||i.setTextStyle(Hl)})(e)}function _C(t,e){const n=[];let r=t.__first;for(;r!==null;){const i=e.get(r);i===void 0&&Ve(101),n.push(r),r=i.__next}return n}function Xy(t,e){const n=up.get(t);let r=ol.get(t);n!==void 0&&r!==void 0||Ve(61);const i=Jm||q9.has(t)||V9.has(t),s=cp(ps,t);if(n===r&&!i){if(Me(n)){const a=s.__lexicalTextContent;a!==void 0&&(Ni+=a,pc+=a)}else{const a=n.getTextContent();pc+=a,Ni+=a}return s}if(n!==r&&i&&FB(Dv,Mv,X3,r,"updated"),r.updateDOM(n,s,lp)){const a=EC(t,null);return e===null&&Ve(62),e.replaceChild(a,s),vC(t,null),a}if(Me(n)&&Me(r)){const a=r.__indent;(Jm||a!==n.__indent)&&l2e(s,a);const o=r.__format;if((Jm||o!==n.__format)&&u2e(s,o),i&&(ubt(n,r,s),pi(r)||r.isInline()||c2e(n,r,s)),dA(r)&&(Ni+=Bc,pc+=Bc),(Jm||r.__dir!==n.__dir)&&(Y9(s,r),pi(r)&&!Jm))for(const l of r.getChildren())Me(l)&&Y9(cp(
180ps,l.getKey()),l)}else{const a=r.getTextContent();if(Mn(r)){const o=r.decorate(ps,lp);o!==null&&d2e(t,o)}Ni+=a,pc+=a}if(!bC&&pi(r)&&r.__cachedText!==pc){const a=r.getWritable();a.__cachedText=pc,r=a}return s}function d2e(t,e){let n=ps._pendingDecorators;const r=ps._decorators;if(n===null){if(r[t]===e)return;n=K2e(ps)}n[t]=e}function oO(t){let e=t.nextSibling;return e!==null&&e===ps._blockCursorElement&&(e=e.nextSibling),e}function cbt(t,e,n,r,i,s){Ni="",pc="",Jm=r===o0,ps=n,lp=n._config,Mv=n._nodes,X3=ps._listeners.mutation,V9=i,q9=s,up=t._nodeMap,ol=e._nodeMap,bC=e._readOnly,G9=new Map(n._keyToDOMMap);const a=new Map;return Dv=a,Xy("root",null),ps=void 0,Mv=void 0,V9=void 0,q9=void 0,up=void 0,ol=void 0,lp=void 0,G9=void 0,Dv=void 0,a}function X9(t){const e=G9.get(t);return e===void 0&&Ve(75,t),e}function Mt(t){return{type:t}}const yB=Mt("SELECTION_CHANGE_COMMAND"),dbt=Mt("SELECTION_INSERT_CLIPBOARD_NODES_COMMAND"),f2e=Mt("CLICK_COMMAND"),Lh=Mt("DELETE_CHARACTER_COMMAND"),Mg=Mt("INSERT_LINE_BREAK_COMMAND"),Pv=Mt("INSERT_PARAGRAPH_COMMAND"),Dg=Mt("CONTROLLED_TEXT_INSERTION_COMMAND"),Q3=Mt("PASTE_COMMAND"),Q9=Mt("REMOVE_TEXT_COMMAND"),Lv=Mt("DELETE_WORD_COMMAND"),$v=Mt("DELETE_LINE_COMMAND"),xc=Mt("FORMAT_TEXT_COMMAND"),Z3=Mt("UNDO_COMMAND"),J3=Mt("REDO_COMMAND"),h2e=Mt("KEYDOWN_COMMAND"),p2e=Mt("KEY_ARROW_RIGHT_COMMAND"),fbt=Mt("MOVE_TO_END"),bB=Mt("KEY_ARROW_LEFT_COMMAND"),hbt=Mt("MOVE_TO_START"),vB=Mt("KEY_ARROW_UP_COMMAND"),EB=Mt("KEY_ARROW_DOWN_COMMAND"),xC=Mt("KEY_ENTER_COMMAND"),_B=Mt("KEY_SPACE_COMMAND"),m2e=Mt("KEY_BACKSPACE_COMMAND"),eA=Mt("KEY_ESCAPE_COMMAND"),g2e=Mt("KEY_DELETE_COMMAND"),xB=Mt("KEY_TAB_COMMAND"),y2e=Mt("INSERT_TAB_COMMAND"),wC=Mt("INDENT_CONTENT_COMMAND"),Z9=Mt("OUTDENT_CONTENT_COMMAND"),b2e=Mt("DROP_COMMAND"),pbt=Mt("FORMAT_ELEMENT_COMMAND"),v2e=Mt("DRAGSTART_COMMAND"),E2e=Mt("DRAGOVER_COMMAND"),mbt=Mt("DRAGEND_COMMAND"),tA=Mt("COPY_COMMAND"),wB=Mt("CUT_COMMAND"),J9=Mt("SELECT_ALL_COMMAND"),gbt=Mt("CLEAR_EDITOR_COMMAND"),ybt=Mt("CLEAR_HISTORY_COMMAND"),Qy=Mt("CAN_REDO_COMMAND"),Zy=Mt("CAN_UNDO_COMMAND"),_2e=Mt("FOCUS_COMMAND"),x2e=Mt("BLUR_COMMAND"),bbt=Mt("KEY_MODIFIER_COMMAND"),ec=Object.freeze({}),eL=30,tL=[["keydown",function(t,e){if(Sb=t.timeStamp,w2e=t.key,!e.isComposing()&&!at(e,h2e,t)&&t.key!=null){if(lO&&QJ(t))return Ba(e,(()=>{zx(e,uO)})),lO=!1,void(uO="");if((function(n){return jn(n,"ArrowRight",{shiftKey:"any"})})(t))at(e,p2e,t);else if((function(n){return jn(n,"ArrowRight",lc)})(t))at(e,fbt,t);else if((function(n){return jn(n,"ArrowLeft",{shiftKey:"any"})})(t))at(e,bB,t);else if((function(n){return jn(n,"ArrowLeft",lc)})(t))at(e,hbt,t);else if((function(n){return jn(n,"ArrowUp",{altKey:"any",shiftKey:"any"})})(t))at(e,vB,t);else if((function(n){return jn(n,"ArrowDown",{altKey:"any",shiftKey:"any"})})(t))at(e,EB,t);else if((function(n){return jn(n,"Enter",{altKey:"any",ctrlKey:"any",metaKey:"any",shiftKey:!0})})(t))Cb=!0,at(e,xC,t);else if((function(n){return n.key===" "})(t))at(e,_B,t);else if((function(n){return ql&&jn(n,"o",{ctrlKey:!0})})(t))t.preventDefault(),Cb=!0,at(e,Mg,!0);else if((function(n){return jn(n,"Enter",{altKey:"any",ctrlKey:"any",metaKey:"any"})})(t))Cb=!1,at(e,xC,t);else if((function(n){return jn(n,"Backspace",{shiftKey:"any"})||ql&&jn(n,"h",{ctrlKey:!0})})(t))QJ(t)?at(e,m2e,t):(t.preventDefault(),at(e,Lh,!0));else if((function(n){return n.key==="Escape"})(t))at(e,eA,t);else if((function(n){return jn(n,"Delete",{})||ql&&jn(n,"d",{ctrlKey:!0})})(t))(function(n){return n.key==="Delete"})(t)?at(e,g2e,t):(t.preventDefault(),at(e,Lh,!1));else if((function(n){return jn(n,"Backspace",XJ)})(t))t.preventDefault(),at(e,Lv,!0);else if((function(n){return jn(n,"Delete",XJ)})(t))t.preventDefault(),at(e,Lv,!1);else if((function(n){return ql&&jn(n,"Backspace",{metaKey:!0})})(t))t.preventDefault(),at(e,$v,!0);else if((function(n){return ql&&(jn(n,"Delete",{metaKey:!0})||jn(n,"k",{ctrlKey:!0}))})(t))t.preventDefault(),at(e,$v,!1);else if((function(n){return jn(n,"b",lc)})(t))t.preventDefault(),at(e,xc,"bold");else if((function(n){return jn(n,"u",lc)})(t))t.preventDefault(),at(e,xc,"underline");else if((function(n){return jn(n,"i",lc)})(t))t.preventDefault(),at(e,xc,"italic");else if((function(n){return jn(n,"Tab",{shiftKey:"any"})})(t))at(e,xB,t);else if((function(n){return jn(n,"z",lc)})(t))t.preventDefault(),at(e,Z3,void 0);else if((function(n){return ql?jn(n,"z",{metaKey:!0,shiftKey:!0}):jn(n,"y",{ctrlKey:!0})||jn(n,"z",{ctrlKey:!0,shiftKey:!0})})(t))t.preventDefault(),at(e,J3,void 0);else{const n=e._editorState._selection;n===null||He(n)?ZJ(t)&&(t.preventDefault(),at(e,J9,t)):(function(r){return jn(r,"c",lc)})(t)?(t.preventDefault(),at(e,tA,t)):(function(r){return jn(r,"x",lc)})(t)?(t.preventDefault(),at(e,wB,t)):ZJ(t)&&(t.preventDefault(),at(e,J9,t))}(function(n){return n.ctrlKey||n.shiftKey||n.altKey||n.metaKey})(t)&&at(e,bbt,t)}}],["pointerdown",function(t,e){const n=t.target,r=t.pointerType;i1(n)&&r!=="touch"&&r!=="pen"&&t.button===0&&Ba(e,(()=>{WJ(n)||(rL=!0)}))}],["compositionstart",function(t,e){Ba(e,(()=>{const n=Xe();if(He(n)&&!e.isComposing()){const r=n.anchor,i=n.anchor.getNode();Zi(r.key),(t.timeStamp<Sb+eL||r.type==="element"||!n.isCollapsed()||i.getFormat()!==n.format||Qe(i)&&i.getStyle()!==n.style)&&at(e,Dg,Kyt)}}
180))}],["compositionend",function(t,e){ip?Oy=!0:a0||!Iv&&!mC?Ba(e,(()=>{zx(e,t.data)})):(lO=!0,uO=t.data)}],["input",function(t,e){t.stopPropagation(),Ba(e,(()=>{if(jr(t.target)&&WJ(t.target))return;const n=Xe(),r=t.data,i=R2e(t);if(r!=null&&He(n)&&T2e(n,i,r,t.timeStamp,!1)){Oy&&(zx(e,r),Oy=!1);const s=n.anchor.getNode(),a=pl(Oo(e));if(a===null)return;const o=n.isBackward(),l=o?n.anchor.offset:n.focus.offset,u=o?n.focus.offset:n.anchor.offset;pC&&!n.isCollapsed()&&Qe(s)&&a.anchorNode!==null&&s.getTextContent().slice(0,l)+r+s.getTextContent().slice(l+u)===J2e(a.anchorNode)||at(e,Dg,r);const c=r.length;ip&&c>1&&t.inputType==="insertCompositionText"&&!e.isComposing()&&(n.anchor.offset-=c),Iv||a0||mC||!e.isComposing()||(Sb=0,Zi(null))}else LB(!1,e,r!==null?r:void 0),Oy&&(zx(e,r||void 0),Oy=!1);(function(){us();const s=Pr();i2e(s)})()}),{event:t}),eg=null}],["click",function(t,e){Ba(e,(()=>{const n=Xe(),r=pl(Oo(e)),i=zp();if(r){if(He(n)){const s=n.anchor,a=s.getNode();if(s.type==="element"&&s.offset===0&&n.isCollapsed()&&!pi(a)&&Kn().getChildrenSize()===1&&a.getTopLevelElementOrThrow().isEmpty()&&i!==null&&n.is(i))r.removeAllRanges(),n.dirty=!0;else if(t.detail===3&&!n.isCollapsed()&&a!==n.focus.getNode()){const o=(function(l,u){let c=l;for(;c!==Kn()&&c!=null;){if(u(c))return c;c=c.getParent()}return null})(a,(l=>Me(l)&&!l.isInline()));Me(o)&&o.select(0)}}else if(t.pointerType==="touch"||t.pointerType==="pen"){const s=r.anchorNode;(jr(s)||Yc(s))&&Vi(CB(i,r,e,t))}}at(e,f2e,t)}))}],["cut",ec],["copy",ec],["dragstart",ec],["dragover",ec],["dragend",ec],["paste",ec],["focus",ec],["blur",ec],["drop",ec]];pC&&tL.push(["beforeinput",(t,e)=>(function(n,r){const i=n.inputType,s=R2e(n);i==="deleteCompositionText"||ip&&eEe(r)||i!=="insertCompositionText"&&Ba(r,(()=>{const a=Xe();if(i==="deleteContentBackward"){if(a===null){const m=zp();if(!He(m))return;Vi(m.clone())}if(He(a)){const m=a.anchor.key===a.focus.key;if(o=n.timeStamp,w2e==="MediaLast"&&o<Sb+eL&&r.isComposing()&&m){if(Zi(null),Sb=0,setTimeout((()=>{Ba(r,(()=>{Zi(null)}))}),eL),He(a)){const g=a.anchor.getNode();g.markDirty(),Qe(g)||Ve(142),A2e(a,g)}}else{Zi(null),n.preventDefault();const g=a.anchor.getNode(),b=g.getTextContent(),v=g.canInsertTextAfter(),E=a.anchor.offset===0&&a.focus.offset===b.length;let x=fJ&&m&&!E&&v;if(x&&a.isCollapsed()&&(x=!Mn(lL(a.anchor,!0))),!x){at(r,Lh,!0);const _=Xe();fJ&&He(_)&&_.isCollapsed()&&(fh=_,setTimeout((()=>fh=null)))}}return}}var o;if(!He(a))return;const l=n.data;eg!==null&&LB(!1,r,eg),a.dirty&&eg===null||!a.isCollapsed()||pi(a.anchor.getNode())||s===null||a.applyDOMRange(s),eg=null;const u=a.anchor,c=a.focus,d=u.getNode(),h=c.getNode();if(i!=="insertText"&&i!=="insertTranspose")switch(n.preventDefault(),i){case"insertFromYank":case"insertFromDrop":case"insertReplacementText":at(r,Dg,n);break;case"insertFromComposition":Zi(null),at(r,Dg,n);break;case"insertLineBreak":Zi(null),at(r,Mg,!1);break;case"insertParagraph":Zi(null),Cb&&!a0?(Cb=!1,at(r,Mg,!1)):at(r,Pv,void 0);break;case"insertFromPaste":case"insertFromPasteAsQuotation":at(r,Q3,n);break;case"deleteByComposition":(function(m,g){return m!==g||Me(m)||Me(g)||!$h(m)||!$h(g)})(d,h)&&at(r,Q9,n);break;case"deleteByDrag":case"deleteByCut":at(r,Q9,n);break;case"deleteContent":at(r,Lh,!1);break;case"deleteWordBackward":at(r,Lv,!0);break;
180case"deleteWordForward":at(r,Lv,!1);break;case"deleteHardLineBackward":case"deleteSoftLineBackward":at(r,$v,!0);break;case"deleteContentForward":case"deleteHardLineForward":case"deleteSoftLineForward":at(r,$v,!1);break;case"formatStrikeThrough":at(r,xc,"strikethrough");break;case"formatBold":at(r,xc,"bold");break;case"formatItalic":at(r,xc,"italic");break;case"formatUnderline":at(r,xc,"underline");break;case"historyUndo":at(r,Z3,void 0);break;case"historyRedo":at(r,J3,void 0)}else{if(l===` 181`)n.preventDefault(),at(r,Mg,!1);else if(l===Bc)n.preventDefault(),at(r,Pv,void 0);else if(l==null&&n.dataTransfer){const m=n.dataTransfer.getData("text/plain");n.preventDefault(),a.insertRawText(m)}else l!=null&&T2e(a,s,l,n.timeStamp,!0)?(n.preventDefault(),at(r,Dg,l)):eg=l;S2e=n.timeStamp}}))})(t,e)]);let Sb=0,w2e=null,S2e=0,eg=null;const SC=new WeakMap;let nL=!1,rL=!1,Cb=!1,Oy=!1,lO=!1,uO="",fh=null,C2e=[0,"",0,"root",0];function T2e(t,e,n,r,i){const s=t.anchor,a=t.focus,o=s.getNode(),l=Pr(),u=pl(Oo(l)),c=u!==null?u.anchorNode:null,d=s.key,h=l.getElementByKey(d),m=n.length;return d!==a.key||!Qe(o)||(!i&&(!pC||S2e<r+50)||o.isDirty()&&m<2||Q2e(n))&&s.offset!==a.offset&&!o.isComposing()||cc(o)||o.isDirty()&&m>1||(i||!pC)&&h!==null&&!o.isComposing()&&c!==l0(h)||u!==null&&e!==null&&(!e.collapsed||e.startContainer!==u.anchorNode||e.startOffset!==u.anchorOffset)||o.getFormat()!==t.format||o.getStyle()!==t.style||(function(g,b){if(b.isSegmented())return!0;if(!g.isCollapsed())return!1;const v=g.anchor.offset,E=b.getParentOrThrow(),x=$h(b);return v===0?!b.canInsertTextBefore()||!E.canInsertTextBefore()&&!b.isComposing()||x||(function(_){const S=_.getPreviousSibling();return(Qe(S)||Me(S)&&S.isInline())&&!S.canInsertTextAfter()})(b):v===b.getTextContentSize()&&(!b.canInsertTextAfter()||!E.canInsertTextAfter()&&!b.isComposing()||x)})(t,o)}function SJ(t,e){return Yc(t)&&t.nodeValue!==null&&e!==0&&e!==t.nodeValue.length}function CJ(t,e,n){const{anchorNode:r,anchorOffset:i,focusNode:s,focusOffset:a}=t;nL&&(nL=!1,SJ(r,i)&&SJ(s,a)&&!fh)||Ba(e,(()=>{if(!n)return void Vi(null);if(!gE(e,r,s))return;let o=Xe();if(fh&&He(o)&&o.isCollapsed()){const l=o.anchor,u=fh.anchor;(l.key===u.key&&l.offset===u.offset+1||l.offset===1&&u.getNode().is(l.getNode().getPreviousSibling()))&&(o=fh.clone(),Vi(o))}if(fh=null,He(o)){const l=o.anchor,u=l.getNode();if(o.isCollapsed()){t.type==="Range"&&t.anchorNode===t.focusNode&&(o.dirty=!0);const c=Oo(e).event,d=c?c.timeStamp:performance.now(),[h,m,g,b,v]=C2e,E=Kn(),x=e.isComposing()===!1&&E.getTextContent()==="";if(d<v+200&&l.offset===g&&l.key===b)Vw(o,h,m);else if(l.type==="text")Qe(u)||Ve(141),A2e(o,u);else if(l.type==="element"&&!x){Me(u)||Ve(259);const _=l.getNode();_.isEmpty()?(function(S,A){const R=A.getTextFormat(),T=A.getTextStyle();Vw(S,R,T)})(o,_):Vw(o,0,"")}}else{const c=l.key,d=o.focus.key,h=o.getNodes(),m=h.length,g=o.isBackward(),b=g?a:i,v=g?i:a,E=g?d:c,x=g?c:d;let _=Yyt,S=!1;for(let A=0;A<m;A++){const R=h[A],T=R.getTextContentSize();if(Qe(R)&&T!==0&&!(A===0&&R.__key===E&&b===T||A===m-1&&R.__key===x&&v===0)&&(S=!0,_&=R.getFormat(),_===0))break}o.format=S?_:0}}at(e,yB,void 0)}))}function Vw(t,e,n){t.format===e&&t.style===n||(t.format=e,t.style=n,t.dirty=!0)}function A2e(t,e){Vw(t,e.getFormat(),e.getStyle())}function R2e(t){if(!t.getTargetRanges)return null;const e=t.getTargetRanges();return e.length===0?null:e[0]}function zx(t,e){const n=t._compositionKey;if(Zi(null),n!==null&&e!=null){if(e===""){const r=hi(n),i=l0(t.getElementByKey(n));return void(i!==null&&i.nodeValue!==null&&Qe(r)&&$B(r,i.nodeValue,null,null,!0))}if(e[e.length-1]===` 182`){const r=Xe();if(He(r)){const i=r.focus;return r.anchor.set(i.key,i.offset,i.type),void at(t,xC,null)}}}LB(!0,t,e)}function N2e(t){let e=t.__lexicalEventHandles;return e===void 0&&(e=[],t.__lexicalEventHandles=e),e}const Pg=new Map;function O2e(t){const e=Xbt(t.target);if(e===null)return;const n=DB(e.anchorNode);if(n===null)return;rL&&(rL=!1,Ba(n,(()=>{const l=zp(),u=e.anchorNode;(jr(u)||Yc(u))&&Vi(CB(l,e,n,t))})));const r=PB(n),i=r[r.length-1],s=i._key,a=Pg.get(s),o=a||i;o!==n&&CJ(e,o,!1),CJ(e,n,!0),n!==i?Pg.set(s,n):a&&Pg.delete(s)}function TJ(t){t._lexicalHandled=!0}function AJ(t){return t._lexicalHandled===!0}function vbt(t){const e=t.ownerDocument,n=SC.get(e);if(n===void 0)return;const r=n-1;r>=0||Ve(164),SC.set(e,r),r===0&&e.removeEventListener("selectionchange",O2e);const i=uA(t);
182MB(i)?((function(a){if(a._parentEditor!==null){const o=PB(a),l=o[o.length-1]._key;Pg.get(l)===a&&Pg.delete(l)}else Pg.delete(a._key)})(i),t.__lexicalEditor=null):i&&Ve(198);const s=N2e(t);for(let a=0;a<s.length;a++)s[a]();t.__lexicalEventHandles=[]}function iL(t,e,n){us();const r=t.__key,i=t.getParent();if(i===null)return;const s=(function(o){const l=Xe();if(!He(l)||!Me(o))return l;const{anchor:u,focus:c}=l,d=u.getNode(),h=c.getNode();return uL(d,o)&&u.set(o.__key,0,"element"),uL(h,o)&&c.set(o.__key,0,"element"),l})(t);let a=!1;if(He(s)&&e){const o=s.anchor,l=s.focus;o.key===r&&(AC(o,t,i,t.getPreviousSibling(),t.getNextSibling()),a=!0),l.key===r&&(AC(l,t,i,t.getPreviousSibling(),t.getNextSibling()),a=!0)}else ss(s)&&e&&t.isSelected()&&t.selectPrevious();if(He(s)&&e&&!a){const o=t.getIndexWithinParent();Fh(t),TC(s,i,o,-1)}else Fh(t);n||ms(i)||i.canBeEmpty()||!i.isEmpty()||iL(i,e),e&&s&&pi(i)&&i.isEmpty()&&i.selectEnd()}class n1{static getType(){const{ownNodeType:e}=jB(this);return e===void 0&&Ve(64,this.name),e}static clone(e){Ve(65,this.name)}$config(){return{}}config(e,n){const r=n.extends||Object.getPrototypeOf(this.constructor);return Object.assign(n,{extends:r,type:e}),{[e]:n}}afterCloneFrom(e){this.__key===e.__key?(this.__parent=e.__parent,this.__next=e.__next,this.__prev=e.__prev,this.__state=e.__state):e.__state&&(this.__state=e.__state.getWritable(this))}constructor(e){this.__type=this.constructor.getType(),this.__parent=null,this.__prev=null,this.__next=null,Object.defineProperty(this,"__state",{configurable:!0,enumerable:!1,value:void 0,writable:!0}),W2e(this,e)}getType(){return this.__type}isInline(){Ve(137,this.constructor.name)}isAttached(){let e=this.__key;for(;e!==null;){if(e==="root")return!0;const n=hi(e);if(n===null)break;e=n.__parent}return!1}isSelected(e){const n=e||Xe();if(n==null)return!1;const r=n.getNodes().some((i=>i.__key===this.__key));if(Qe(this))return r;if(He(n)&&n.anchor.type==="element"&&n.focus.type==="element"){if(n.isCollapsed())return!1;const i=this.getParent();if(Mn(this)&&this.isInline()&&i){const s=n.isBackward()?n.focus:n.anchor;if(i.is(s.getNode())&&s.offset===i.getChildrenSize()&&this.is(i.getLastChild()))return!1}}return r}getKey(){return this.__key}getIndexWithinParent(){const e=this.getParent();if(e===null)return-1;let n=e.getFirstChild(),r=0;for(;n!==null;){if(this.is(n))return r;r++,n=n.getNextSibling()}return-1}getParent(){const e=this.getLatest().__parent;return e===null?null:hi(e)}getParentOrThrow(){const e=this.getParent();return e===null&&Ve(66,this.__key),e}getTopLevelElement(){let e=this;for(;e!==null;){const n=e.getParent();if(ms(n))return Me(e)||e===this&&Mn(e)||Ve(194),e;e=n}return null}getTopLevelElementOrThrow(){const e=this.getTopLevelElement();return e===null&&Ve(67,this.__key),e}getParents(){const e=[];let n=this.getParent();for(;n!==null;)e.push(n),n=n.getParent();return e}getParentKeys(){const e=[];let n=this.getParent();for(;n!==null;)e.push(n.__key),n=n.getParent();return e}getPreviousSibling(){const e=this.getLatest().__prev;return e===null?null:hi(e)}getPreviousSiblings(){const e=[],n=this.getParent();if(n===null)return e;let r=n.getFirstChild();for(;r!==null&&!r.is(this);)e.push(r),r=r.getNextSibling();return e}getNextSibling(){const e=this.getLatest().__next;return e===null?null:hi(e)}getNextSiblings(){const e=[];let n=this.getNextSibling();for(;n!==null;)e.push(n),n=n.getNextSibling();return e}getCommonAncestor(e){const n=Me(this)?this:this.getParent(),r=Me(e)?e:e.getParent(),i=n&&r?Ww(n,r):null;return i?i.commonAncestor:null}is(e){return e!=null&&this.__key===e.__key}isBefore(e){const n=Ww(this,e);return n!==null&&(n.type==="descendant"||(n.type==="branch"?oEe(n)===-1:(n.type!=="same"&&n.type!=="ancestor"&&Ve(279),!1)))}isParentOf(e){const n=Ww(this,e);return n!==null&&n.type==="ancestor"}getNodesBetween(e){const n=this.isBefore(e),r=[],i=new Set;let s=this;for(;s!==null;){const a=s.__key;if(i.has(a)||(i.add(a),r.push(s)),s===e)break;const o=Me(s)?n?s.getFirstChild():s.getLastChild():null;if(o!==null){s=o;continue}const l=n?s.getNextSibling():s.getPreviousSibling();if(l!==null){s=l;continue}const u=s.getParentOrThrow();if(i.has(u.__key)||r.push(u),u===e)break;let c=null,d=u;do{if(d===null&&Ve(68),c=n?d.getNextSibling():d.getPreviousSibling(),d=d.getParent(),d===null)break;c!==null||i.has(d.__key)||r.push(d)}while(c===null);s=c}return n||r.reverse(),r}isDirty(){const e=Pr()._dirtyLeaves;return e!==null&&e.has(this.__key)}getLatest(){const e=hi(this.__key);return e===null&&Ve(113),e}getWritable(){us();const e=Tf(),n=Pr(),r=e._nodeMap,i=this.__key,s=this.getLatest(),a=n._cloneNotNeeded,o=Xe();if(o!==null&&o.setCachedNodes(null),a.has(i))return NC(s),s;const l=UB(s);return a.add(i),NC(l),r.set(i,l),l}getTextContent(){return""}getTextContentSize(){return this.getTextContent().length}createDOM(e,n){Ve(70)}updateDOM(e,n,r){Ve(71)}exportDOM(e){return{element:this.createDOM(e._config,e)}}exportJSON(){const e=this.__state?this.__state.toJSON():void 0;return{type:this.__type,version:1,...e}}static importJSON(e){Ve(18,this.name)}updateFromJSON(e){return(function(n,r){const i=n.getWritable(),s=r.$;let a=s;for(const o of o2e(i).flatKeys)o in r&&(a!==void 0&&a!==s||(a={...s}),a[o]=r[o]);return(i.__state||a)&&obt(n).updateFromJSON(a),i})(this,e)}static transform(){return null}remove(e){iL(this,!0,e)}replace(e,n){us();let r=Xe();r!==null&&(r=r.clone()),mO(this,e);const i=this.getLatest(),s=this.__key,a=e.__key,o=e.getWritable(),l=this.getParentOrThrow().getWritable(),u=l.__size;Fh(o);const c=i.getPreviousSibling(),d=i.getNextSibling(),h=i.__prev,m=i.__next,g=i.__parent;if(iL(i,!1,!0),c===null?l.__first=a:c.getWritable().__next=a,o.__prev=h,d===null?l.__last=a:d.getWritable().__prev=a,o.__next=m,o.__parent=g,l.__size=u,n&&(Me(this)&&Me(o)||Ve(139),this.getChildren().forEac
182h((b=>{o.append(b)}))),He(r)){Vi(r);const b=r.anchor,v=r.focus;b.key===s&&kJ(b,o),v.key===s&&kJ(v,o)}return jd()===s&&Zi(a),o}insertAfter(e,n=!0){us(),mO(this,e);const r=this.getWritable(),i=e.getWritable(),s=i.getParent(),a=Xe();let o=!1,l=!1;if(s!==null){const m=e.getIndexWithinParent();if(Fh(i),He(a)){const g=s.__key,b=a.anchor,v=a.focus;o=b.type==="element"&&b.key===g&&b.offset===m+1,l=v.type==="element"&&v.key===g&&v.offset===m+1}}const u=this.getNextSibling(),c=this.getParentOrThrow().getWritable(),d=i.__key,h=r.__next;if(u===null?c.__last=d:u.getWritable().__prev=d,c.__size++,r.__next=d,i.__next=h,i.__prev=r.__key,i.__parent=r.__parent,n&&He(a)){const m=this.getIndexWithinParent();TC(a,c,m+1);const g=c.__key;o&&a.anchor.set(g,m+2,"element"),l&&a.focus.set(g,m+2,"element")}return e}insertBefore(e,n=!0){us(),mO(this,e);const r=this.getWritable(),i=e.getWritable(),s=i.__key;Fh(i);const a=this.getPreviousSibling(),o=this.getParentOrThrow().getWritable(),l=r.__prev,u=this.getIndexWithinParent();a===null?o.__first=s:a.getWritable().__next=s,o.__size++,r.__prev=s,i.__prev=l,i.__next=r.__key,i.__parent=r.__parent;const c=Xe();return n&&He(c)&&TC(c,this.getParentOrThrow(),u),e}isParentRequired(){return!1}createParentElementNode(){return ti()}selectStart(){return this.selectPrevious()}selectEnd(){return this.selectNext(0,0)}selectPrevious(e,n){us();const r=this.getPreviousSibling(),i=this.getParentOrThrow();if(r===null)return i.select(0,0);if(Me(r))return r.select();if(!Qe(r)){const s=r.getIndexWithinParent()+1;return i.select(s,s)}return r.select(e,n)}selectNext(e,n){us();const r=this.getNextSibling(),i=this.getParentOrThrow();if(r===null)return i.select();if(Me(r))return r.select(0,0);if(!Qe(r)){const s=r.getIndexWithinParent();return i.select(s,s)}return r.select(e,n)}markDirty(){this.getWritable()}reconcileObservedMutation(e,n){this.markDirty()}}class dE extends n1{static getType(){return"linebreak"}static clone(e){return new dE(e.__key)}constructor(e){super(e)}getTextContent(){return` 183`}createDOM(){return document.createElement("br")}updateDOM(){return!1}isInline(){return!0}static importDOM(){return{br:e=>(function(n){const r=n.parentElement;if(r!==null&&OC(r)){const i=r.firstChild;if(i===n||i.nextSibling===n&&Vx(i)){const s=r.lastChild;if(s===n||s.previousSibling===n&&Vx(s))return!0}}return!1})(e)||(function(n){const r=n.parentElement;if(r!==null&&OC(r)){const i=r.firstChild;if(i===n||i.nextSibling===n&&Vx(i))return!1;const s=r.lastChild;if(s===n||s.previousSibling===n&&Vx(s))return!0}return!1})(e)?null:{conversion:Ebt,priority:0}}}static importJSON(e){return uf().updateFromJSON(e)}}function Ebt(t){return{node:uf()}}function uf(){return Au(new dE)}function ou(t){return t instanceof dE}function Vx(t){return Yc(t)&&/^( |\t|\r?\n)+$/.test(t.textContent||"")}function cO(t,e){return 16&e?"code":e&uB?"mark":32&e?"sub":64&e?"sup":null}function dO(t,e){return 1&e?"strong":2&e?"em":"span"}function k2e(t,e,n,r,i){const s=r.classList;let a=Lg(i,"base");a!==void 0&&s.add(...a),a=Lg(i,"underlineStrikethrough");let o=!1;const l=e&yC&&e&gC;a!==void 0&&(n&yC&&n&gC?(o=!0,l||s.add(...a)):l&&s.remove(...a));for(const u in ap){const c=ap[u];if(a=Lg(i,u),a!==void 0)if(n&c){if(o&&(u==="underline"||u==="strikethrough")){e&c&&s.remove(...a);continue}e&c&&(!l||u!=="underline")&&u!=="strikethrough"||s.add(...a)}else e&c&&s.remove(...a)}}function I2e(t,e,n){const r=e.firstChild,i=n.isComposing(),s=t+(i?K3:"");if(r==null)e.textContent=s;else{const a=r.nodeValue;if(a!==s)if(i||ip){const[o,l,u]=(function(c,d){const h=c.length,m=d.length;let g=0,b=0;for(;g<h&&g<m&&c[g]===d[g];)g++;for(;b+g<h&&b+g<m&&c[h-b-1]===d[m-b-1];)b++;return[g,h-g-b,d.slice(g,m-b)]})(a,s);l!==0&&r.deleteData(o,l),r.insertData(o,u)}else r.nodeValue=s}}function RJ(t,e,n,r,i,s){I2e(i,t,e);const a=s.theme.text;a!==void 0&&k2e(0,0,r,t,a)}function qx(t,e){const n=document.createElement(e);return n.appendChild(t),n}class Wc extends n1{static getType(){return"text"}static clone(e){return new Wc(e.__text,e.__key)}afterCloneFrom(e){super.afterCloneFrom(e),this.__text=e.__text,this.__format=e.__format,this.__style=e.__style,this.__mode=e.__mode,this.__detail=e.__detail}constructor(e="",n){super(n),this.__text=e,this.__format=0,this.__style="",this.__mode=0,this.__detail=0}getFormat(){return this.getLatest().__format}getDetail(){return this.getLatest().__detail}getMode(){const e=this.getLatest();return Jyt[e.__mode]}getStyle(){return this.getLatest().__style}isToken(){return this.getLatest().__mode===1}isComposing(){return this.__key===jd()}isSegmented(){return this.getLatest().__mode===2}isDirectionless(){return!!(1&this.getLatest().__detail)}isUnmergeable(){return!!(2&this.getLatest().__detail)}hasFormat(e){const n=ap[e];return!!(this.getFormat()&n)}isSimpleText(){return this.__type==="text"&&this.__mode===0}getTextContent(){return this.getLatest().__text}getFormatFlags(e,n){return RC(this.getLatest().__format,e,n)}canHaveFormat(){return!0}isInline(){return!0}createDOM(e,n){const r=this.__format,i=cO(0,r),s=dO(0,r),a=i===null?s:i,o=document.createElement(a);let l=o;
183this.hasFormat("code")&&o.setAttribute("spellcheck","false"),i!==null&&(l=document.createElement(s),o.appendChild(l)),RJ(l,this,0,r,this.__text,e);const u=this.__style;return u!==""&&(o.style.cssText=u),o}updateDOM(e,n,r){const i=this.__text,s=e.__format,a=this.__format,o=cO(0,s),l=cO(0,a),u=dO(0,s),c=dO(0,a);if((o===null?u:o)!==(l===null?c:l))return!0;if(o===l&&u!==c){const b=n.firstChild;b==null&&Ve(48);const v=document.createElement(c);return RJ(v,this,0,a,i,r),n.replaceChild(v,b),!1}let d=n;l!==null&&o!==null&&(d=n.firstChild,d==null&&Ve(49)),I2e(i,d,this);const h=r.theme.text;h!==void 0&&s!==a&&k2e(0,s,a,d,h);const m=e.__style,g=this.__style;return m!==g&&(n.style.cssText=g),!1}static importDOM(){return{"#text":()=>({conversion:Sbt,priority:0}),b:()=>({conversion:xbt,priority:0}),code:()=>({conversion:tc,priority:0}),em:()=>({conversion:tc,priority:0}),i:()=>({conversion:tc,priority:0}),mark:()=>({conversion:tc,priority:0}),s:()=>({conversion:tc,priority:0}),span:()=>({conversion:_bt,priority:0}),strong:()=>({conversion:tc,priority:0}),sub:()=>({conversion:tc,priority:0}),sup:()=>({conversion:tc,priority:0}),u:()=>({conversion:tc,priority:0})}}static importJSON(e){return xr().updateFromJSON(e)}updateFromJSON(e){return super.updateFromJSON(e).setTextContent(e.text).setFormat(e.format).setDetail(e.detail).setMode(e.mode).setStyle(e.style)}
vendor: 3,966 bytes, line 183
183exportDOM(e){let{element:n}=super.exportDOM(e);return jr(n)||Ve(132),n.style.whiteSpace="pre-wrap",this.hasFormat("lowercase")?n.style.textTransform="lowercase":this.hasFormat("uppercase")?n.style.textTransform="uppercase":this.hasFormat("capitalize")&&(n.style.textTransform="capitalize"),this.hasFormat("bold")&&(n=qx(n,"b")),this.hasFormat("italic")&&(n=qx(n,"i")),this.hasFormat("strikethrough")&&(n=qx(n,"s")),this.hasFormat("underline")&&(n=qx(n,"u")),{element:n}}exportJSON(){return{detail:this.getDetail(),format:this.getFormat(),mode:this.getMode(),style:this.getStyle(),text:this.getTextContent(),...super.exportJSON()}}selectionTransform(e,n){}setFormat(e){const n=this.getWritable();return n.__format=typeof e=="string"?ap[e]:e,n}setDetail(e){const n=this.getWritable();return n.__detail=typeof e=="string"?Xyt[e]:e,n}setStyle(e){const n=this.getWritable();return n.__style=e,n}toggleFormat(e){const n=RC(this.getFormat(),e,null);return this.setFormat(n)}toggleDirectionless(){const e=this.getWritable();return e.__detail^=1,e}toggleUnmergeable(){const e=this.getWritable();return e.__detail^=2,e}setMode(e){const n=Zyt[e];if(this.__mode===n)return this;const r=this.getWritable();return r.__mode=n,r}setTextContent(e){if(this.__text===e)return this;const n=this.getWritable();return n.__text=e,n}select(e,n){us();let r=e,i=n;const s=Xe(),a=this.getTextContent(),o=this.__key;if(typeof a=="string"){const l=a.length;r===void 0&&(r=l),i===void 0&&(i=l)}else r=0,i=0;if(!He(s))return L2e(o,r,o,i,"text","text");{const l=jd();l!==s.anchor.key&&l!==s.focus.key||Zi(o),s.setTextNodeRange(this,r,this,i)}return s}selectStart(){return this.select(0,0)}selectEnd(){const e=this.getTextContentSize();return this.select(e,e)}spliceText(e,n,r,i){const s=this.getWritable(),a=s.__text,o=r.length;let l=e;l<0&&(l=o+l,l<0&&(l=0));const u=Xe();if(i&&He(u)){const d=e+o;u.setTextNodeRange(s,d,s,d)}const c=a.slice(0,l)+r+a.slice(l+n);return s.__text=c,s}canInsertTextBefore(){return!0}canInsertTextAfter(){return!0}splitText(...e){us();const n=this.getLatest(),r=n.getTextContent();if(r==="")return[];const i=n.__key,s=jd(),a=r.length;e.sort(((O,I)=>O-I)),e.push(a);const o=[],l=e.length;for(let O=0,I=0;O<a&&I<=l;I++){const D=e[I];D>O&&(o.push(r.slice(O,D)),O=D)}const u=o.length;if(u===1)return[n];const c=o[0],d=n.getParent();let h;const m=n.getFormat(),g=n.getStyle(),b=n.__detail;let v=!1,E=null,x=null;const _=Xe();if(He(_)){const[O,I]=_.isBackward()?[_.focus,_.anchor]:[_.anchor,_.focus];O.type==="text"&&O.key===i&&(E=O),I.type==="text"&&I.key===i&&(x=I)}n.isSegmented()?(h=xr(c),h.__format=m,h.__style=g,h.__detail=b,h.__state=bJ(n,h),v=!0):h=n.setTextContent(c);const S=[h];for(let O=1;O<u;O++){const I=xr(o[O]);I.__format=m,I.__style=g,I.__detail=b,I.__state=bJ(n,I);const D=I.__key;s===i&&Zi(D),S.push(I)}const A=E?E.offset:null,R=x?x.offset:null;let T=0;for(const O of S){if(!E&&!x)break;const I=T+O.getTextContentSize();if(E!==null&&A!==null&&A<=I&&A>=T&&(E.set(O.getKey(),A-T,"text"),A<I&&(E=null)),x!==null&&R!==null&&R<=I&&R>=T){x.set(O.getKey(),R-T,"text");break}T=I}if(d!==null){(function(D){const P=D.getPreviousSibling(),B=D.getNextSibling();P!==null&&NC(P),B!==null&&NC(B)})(this);const O=d.getWritable(),I=this.getIndexWithinParent();v?(O.splice(I,0,S),this.remove()):O.splice(I,1,S),He(_)&&TC(_,d,I,u-1)}return S}mergeWithSibling(e){const n=e===this.getPreviousSibling();n||e===this.getNextSibling()||Ve(50);const r=this.__key,i=e.__key,s=this.__text,a=s.length;jd()===i&&Zi(r);const o=Xe();if(He(o)){const d=o.anchor,h=o.focus;d!==null&&d.key===i&&FJ(d,n,r,e,a),h!==null&&h.key===i&&FJ(h,n,r,e,a)}const l=e.__text,u=n?l+s:s+l;this.setTextContent(u);const c=this.getWritable();return e.remove(),c}isTextEntity(){return!1}}function _bt(t){return{forChild:SB(t.style),node:null}}function xbt(t){const e=t,n=e.style.fontWeight==="normal";return{forChild:SB(e.style,n?void 0:"bold"),node:null}}const NJ=new WeakMap;function wbt(t){if(!jr(t))return!1;
183if(t.nodeName==="PRE")return!0;const e=t.style.whiteSpace;return typeof e=="string"&&e.startsWith("pre")}function Sbt(t){const e=t;t.parentElement===null&&Ve(129);let n=e.textContent||"";if((function(r){let i,s=r.parentNode;const a=[r];for(;s!==null&&(i=NJ.get(s))===void 0&&!wbt(s);)a.push(s),s=s.parentNode;const o=i===void 0?s:i;for(let l=0;l<a.length;l++)NJ.set(a[l],o);return o})(e)!==null){const r=n.split(/(\r?\n|\t)/),i=[],s=r.length;for(let a=0;a<s;a++){const o=r[a];o===` 184`||o===`\r 185`?i.push(uf()):o===" "?i.push(hE()):o!==""&&i.push(xr(o))}return{node:i}}if(n=n.replace(/\r/g,"").replace(/[ \t\n]+/g," "),n==="")return{node:null};if(n[0]===" "){let r=e,i=!0;for(;r!==null&&(r=OJ(r,!1))!==null;){const s=r.textContent||"";if(s.length>0){/[ \t\n]$/.test(s)&&(n=n.slice(1)),i=!1;break}}i&&(n=n.slice(1))}if(n[n.length-1]===" "){let r=e,i=!0;for(;r!==null&&(r=OJ(r,!0))!==null;)if((r.textContent||"").replace(/^( |\t|\r?\n)+/,"").length>0){i=!1;break}i&&(n=n.slice(0,n.length-1))}return n===""?{node:null}:{node:xr(n)}}function OJ(t,e){let n=t;for(;;){let r;for(;(r=e?n.nextSibling:n.previousSibling)===null;){const s=n.parentElement;if(s===null)return null;n=s}if(n=r,jr(n)){const s=n.style.display;if(s===""&&!fL(n)||s!==""&&!s.startsWith("inline"))return null}let i=n;for(;(i=e?n.firstChild:n.lastChild)!==null;)n=i;if(Yc(n))return n;if(n.nodeName==="BR")return null}}const Cbt={code:"code",em:"italic",i:"italic",mark:"highlight",s:"strikethrough",strong:"bold",sub:"subscript",sup:"superscript",u:"underline"};function tc(t){const e=Cbt[t.nodeName.toLowerCase()];return e===void 0?{node:null}:{forChild:SB(t.style,e),node:null}}function xr(t=""){return Au(new Wc(t))}function Qe(t){return t instanceof Wc}function SB(t,e){const n=t.fontWeight,r=t.textDecoration.split(" "),i=n==="700"||n==="bold",s=r.includes("line-through"),a=t.fontStyle==="italic",o=r.includes("underline"),l=t.verticalAlign;return u=>(Qe(u)&&(i&&!u.hasFormat("bold")&&u.toggleFormat("bold"),s&&!u.hasFormat("strikethrough")&&u.toggleFormat("strikethrough"),a&&!u.hasFormat("italic")&&u.toggleFormat("italic"),o&&!u.hasFormat("underline")&&u.toggleFormat("underline"),l!=="sub"||u.hasFormat("subscript")||u.toggleFormat("subscript"),l!=="super"||u.hasFormat("superscript")||u.toggleFormat("superscript"),e&&!u.hasFormat(e)&&u.toggleFormat(e)),u)}class fE extends Wc{static getType(){return"tab"}static clone(e){return new fE(e.__key)}constructor(e){super(" ",e),this.__detail=2}static importDOM(){return null}createDOM(e){const n=super.createDOM(e),r=Lg(e.theme,"tab");return r!==void 0&&n.classList.add(...r),n}static importJSON(e){return hE().updateFromJSON(e)}setTextContent(e){return e!==" "&&e!==""&&Ve(126),super.setTextContent(" ")}spliceText(e,n,r,i){return r===""&&n===0||r===" "&&n===1||Ve(286),this}setDetail(e){return e!==2&&Ve(127),this}setMode(e){return e!=="normal"&&Ve(128),this}canInsertTextBefore(){return!1}canInsertTextAfter(){return!1}}function hE(){return Au(new fE)}function M2e(t){return t instanceof fE}class Tbt{constructor(e,n,r){this._selection=null,this.key=e,this.offset=n,this.type=r}is(e){return this.key===e.key&&this.offset===e.offset&&this.type===e.type}isBefore(e){return this.key===e.key?this.offset<e.offset:aEe(za(yu(this,"next")),za(yu(e,"next")))<0}getNode(){const e=hi(this.key);return e===null&&Ve(20),e}set(e,n,r,i){const s=this._selection,a=this.key;i&&this.key===e&&this.offset===n&&this.type===r||(this.key=e,this.offset=n,this.type=r,pE()||(jd()===a&&Zi(e),s!==null&&(s.setCachedNodes(null),s.dirty=!0)))}}function mu(t,e,n){return new Tbt(t,e,n)}function fO(t,e){let n=e.__key,r=t.offset,i="element";if(Qe(e)){i="text";const s=e.getTextContentSize();r>s&&(r=s)}else if(!Me(e)){const s=e.getNextSibling();if(Qe(s))n=s.__key,r=0,i="text";else{const a=e.getParent();a&&(n=a.__key,r=e.getIndexWithinParent()+1)}}t.set(n,r,i)}function kJ(t,e){if(Me(e)){const n=e.getLastDescendant();Me(n)||Qe(n)?fO(t,n):fO(t,e)}else fO(t,e)}class nA{constructor(e){this._cachedNodes=null,this._nodes=e,this.dirty=!1}getCachedNodes(){return this._cachedNodes}setCachedNodes(e){this._cachedNodes=e}is(e){if(!ss(e))return!1;const n=this._nodes,r=e._nodes;return n.size===r.size&&Array.from(n).every((i=>r.has(i)))}isCollapsed(){return!1}isBackward(){return!1}getStartEndPoints(){return null}add(e){this.dirty=!0,this._nodes.add(e),this._cachedNodes=null}delete(e){this.dirty=!0,this._nodes.delete(e),this._cachedNodes=null}clear(){this.dirty=!0,this._nodes.clear(),this._cachedNodes=null}has(e){return this._nodes.has(e)}clone(){return new nA(new Set(this._nodes))}extract(){return this.getNodes()}insertRawText(e){}insertText(){}insertNodes(e){const n=this.getNodes(),r=n.length,i=n[r-1];let s;if(Qe(i))s=i.select();else{const a=i.getIndexWithinParent()+1;s=i.getParentOrThrow().select(a,a)}s.insertNodes(e);for(let a=0;a<r;a++)n[a].remove()}getNodes(){const e=this._cachedNodes;if(e!==null)return e;const n=this._nodes,r=[];for(const i of n){const s=hi(i);s!==null&&r.push(s)}return pE()||(this._cachedNodes=r),r}getTextContent(){const e=this.getNodes();let n="";for(let r=0;r<e.length;r++)n+=e[r].getTextContent();return n}deleteNodes(){const e=this.getNodes();if((Xe()||zp())===this&&e[0]){const n=ki(e[0],"next");lEe(df(n,n))}for(const n of e)n.remove()}}function He(t){return t instanceof jp}class jp{constructor(e,n,r,i){this.anchor=e,this.focus=n,e._selection=this,n._selection=this,this._cachedNodes=null,this.format=r,this.style=i,this.dirty=!1}getCachedNodes(){return this._cachedNodes}setCachedNodes(e){this._cachedNodes=e}is(e){return!!He(e)&&this.anchor.is(e.anchor)&&this.focus.is(e.focus)&&this.format===e.format&&this.style===e.style}isCollapsed(){return this.anchor.is(this.focus)}getNodes(){const e=this._cachedNodes;if(e!==null)return e;const n=(function(r){const i=[],[s,a]=r.getTextSlices();s&&i.push(s.caret.origin);const o=new Set,l=new Set;for(const u of r)if(Co(u)){const{origin:c}=u;i.length===0?o.add(c):(l.add(c),i.push(c))}else{const{origin:c}=u;Me(c)&&l.has(c)||i.push(c)}if(a&&i.push(a.caret.origin),u0(r.focus)&&Me(r.focus.origin)&&r.focus.getNodeAtCaret()===null)for(let u=ko(r.focus.origin,"previous");Co(u)&&o.has(u.origin)&&!u.origin.isEmpty()&&u.origin.is(i[i.length-1]);u=fA(u))o.delete(u.origin),i.pop();for(;i.length>1;){const u=i[i.length-1];if(!Me(u)||l.has(u)||u.isEmpty()||o.has(u))break;i.pop()}
185if(i.length===0&&r.isCollapsed()){const u=za(r.anchor),c=za(r.anchor.getFlipped()),d=m=>lu(m)?m.origin:m.getNodeAtCaret(),h=d(u)||d(c)||(r.anchor.getNodeAtCaret()?u.origin:c.origin);i.push(h)}return i})(cEe(iee(this),"next"));return pE()||(this._cachedNodes=n),n}setTextNodeRange(e,n,r,i){this.anchor.set(e.__key,n,"text"),this.focus.set(r.__key,i,"text")}getTextContent(){const e=this.getNodes();if(e.length===0)return"";const n=e[0],r=e[e.length-1],i=this.anchor,s=this.focus,a=i.isBefore(s),[o,l]=sL(this);let u="",c=!0;for(let d=0;d<e.length;d++){const h=e[d];if(Me(h)&&!h.isInline())c||(u+=` 186`),c=!h.isEmpty();else if(c=!1,Qe(h)){let m=h.getTextContent();h===n?h===r?i.type==="element"&&s.type==="element"&&s.offset!==i.offset||(m=o<l?m.slice(o,l):m.slice(l,o)):m=a?m.slice(o):m.slice(l):h===r&&(m=a?m.slice(0,l):m.slice(0,o)),u+=m}else!Mn(h)&&!ou(h)||h===r&&this.isCollapsed()||(u+=h.getTextContent())}return u}applyDOMRange(e){const n=Pr(),r=n.getEditorState()._selection,i=P2e(e.startContainer,e.startOffset,e.endContainer,e.endOffset,n,r);if(i===null)return;const[s,a]=i;this.anchor.set(s.key,s.offset,s.type,!0),this.focus.set(a.key,a.offset,a.type,!0),op(this)}clone(){const e=this.anchor,n=this.focus;return new jp(mu(e.key,e.offset,e.type),mu(n.key,n.offset,n.type),this.format,this.style)}toggleFormat(e){this.format=RC(this.format,e,null),this.dirty=!0}setFormat(e){this.format=e,this.dirty=!0}setStyle(e){this.style=e,this.dirty=!0}hasFormat(e){const n=ap[e];return!!(this.format&n)}insertRawText(e){const n=e.split(/(\r?\n|\t)/),r=[],i=n.length;for(let s=0;s<i;s++){const a=n[s];a===` 187`||a===`\r 188`?r.push(uf()):a===" "?r.push(hE()):r.push(xr(a))}this.insertNodes(r)}insertText(e){const n=this.anchor,r=this.focus,i=this.format,s=this.style;let a=n,o=r;!this.isCollapsed()&&r.isBefore(n)&&(a=r,o=n),a.type==="element"&&(function(v,E,x,_){const S=v.getNode(),A=S.getChildAtIndex(v.offset),R=xr();if(R.setFormat(x),R.setStyle(_),oA(A))A.splice(0,0,[R]);else{const T=pi(S)?ti().append(R):R;A===null?S.append(T):A.insertBefore(T)}v.is(E)&&E.set(R.__key,0,"text"),v.set(R.__key,0,"text")})(a,o,i,s),o.type==="element"&&pp(o,za(yu(o,"next")));const l=a.offset;let u=o.offset;const c=this.getNodes(),d=c.length;let h=c[0];Qe(h)||Ve(26);const m=h.getTextContent().length,g=h.getParentOrThrow();let b=c[d-1];if(d===1&&o.type==="element"&&(u=m,o.set(a.key,u,"text")),this.isCollapsed()&&l===m&&(cc(h)||!h.canInsertTextAfter()||!g.canInsertTextAfter()&&h.getNextSibling()===null)){let v=h.getNextSibling();if(Qe(v)&&v.canInsertTextBefore()&&!cc(v)||(v=xr(),v.setFormat(i),v.setStyle(s),g.canInsertTextAfter()?h.insertAfter(v):g.insertAfter(v)),v.select(0,0),h=v,e!=="")return void this.insertText(e)}else if(this.isCollapsed()&&l===0&&(cc(h)||!h.canInsertTextBefore()||!g.canInsertTextBefore()&&h.getPreviousSibling()===null)){let v=h.getPreviousSibling();if(Qe(v)&&!cc(v)||(v=xr(),v.setFormat(i),g.canInsertTextBefore()?h.insertBefore(v):g.insertBefore(v)),v.select(),h=v,e!=="")return void this.insertText(e)}else if(h.isSegmented()&&l!==m){const v=xr(h.getTextContent());v.setFormat(i),h.replace(v),h=v}else if(!this.isCollapsed()&&e!==""){const v=b.getParent();if(!g.canInsertTextBefore()||!g.canInsertTextAfter()||Me(v)&&(!v.canInsertTextBefore()||!v.canInsertTextAfter()))return this.insertText(""),D2e(this.anchor,this.focus,null),void this.insertText(e)}if(d===1){if($h(h)){const _=xr(e);return _.select(),void h.replace(_)}const v=h.getFormat(),E=h.getStyle();if(l!==u||v===i&&E===s){if(M2e(h)){const _=xr(e);return _.setFormat(i),_.setStyle(s),_.select(),void h.replace(_)}}else{if(h.getTextContent()!==""){const _=xr(e);if(_.setFormat(i),_.setStyle(s),_.select(),l===0)h.insertBefore(_,!1);else{const[S]=h.splitText(l);S.insertAfter(_,!1)}return void(_.isComposing()&&this.anchor.type==="text"&&(this.anchor.offset-=e.length))}h.setFormat(i),h.setStyle(s)}const x=u-l;h=h.spliceText(l,x,e,!0),h.getTextContent()===""?h.remove():this.anchor.type==="text"&&(h.isComposing()?this.anchor.offset-=e.length:(this.format=v,this.style=E))}else{const v=new Set([...h.getParentKeys(),...b.getParentKeys()]),E=Me(h)?h:h.getParentOrThrow();let x=Me(b)?b:b.getParentOrThrow(),_=b;if(!E.is(x)&&x.isInline())do _=x,x=x.getParentOrThrow();while(x.isInline());if(o.type==="text"&&(u!==0||b.getTextContent()==="")||o.type==="element"&&b.getIndexWithinParent()<u)if(Qe(b)&&!$h(b)&&u!==b.getTextContentSize()){if(b.isSegmented()){const O=xr(b.getTextContent());b.replace(O),b=O}pi(o.getNode())||o.type!=="text"||(b=b.spliceText(0,u,"")),v.add(b.__key)}else{const O=b.getParentOrThrow();O.canBeEmpty()||O.getChildrenSize()!==1?b.remove():O.remove()}else v.add(b.__key);const S=x.getChildren(),A=new Set(c),R=E.is(x),T=E.isInline()&&h.getNextSibling()===null?E:h;for(let O=S.length-1;O>=0;O--){const I=S[O];if(I.is(h)||Me(I)&&I.isParentOf(h))break;I.isAttached()&&(!A.has(I)||I.is(_)?R||T.insertAfter(I,!1):I.remove())}if(!R){let O=x,I=null;for(;O!==null;){const D=O.getChildren(),P=D.length;(P===0||D[P-1].is(I))&&(v.delete(O.__key),I=O),O=O.getParent()}}if($h(h))if(l===m)h.select();else{const O=xr(e);O.select(),h.replace(O)}else h=h.spliceText(l,m-l,e,!0),h.getTextContent()===""?h.remove():h.isComposing()&&this.anchor.type==="text"&&(this.anchor.offset-=e.length);for(let O=1;O<d;O++){const I=c[O],D=I.__key;v.has(D)||I.remove()}}}removeText(){const e=Xe()===this;Yw(this,avt(iee(this))),e&&Xe()!==this&&Vi(this)}formatText(e,n=null){if(this.isCollapsed())return this.toggleFormat(e),void Zi(null);const r=this.getNodes(),i=[];for(const S of r)Qe(S)&&i.push(S);const s=S=>{r.forEach((A=>{if(Me(A)){const R=A.getFormatFlags(e,S);A.setTextFormat(R)}}))},a=i.length;if(a===0)return this.toggleFormat(e),Zi(null),void s(n);const o=this.anchor,l=this.focus,u=this.isBackward(),c=u?l:o,d=u?o:l;let h=0,m=i[0],g=c.type==="element"?0:c.offset;if(c.type==="text"&&g===m.getTextContentSize()&&(h=1,m=i[1],g=0),m==null)return;const b=m.getFormatFlags(e,n);s(b);const v=a-1;let E=i[v];const x=d.type==="text"?d.offset:E.getTextContentSize();if(m.is(E)){if(g===x)return;if(cc(m)||g===0&&x===m.getTextContentSize())m.setFormat(b);else{const S=m.splitText(g,x),A=g===0?S[0]:S[1];A.setFormat(b),c.type==="text"&&c.set(A.__key,0,"text"),d.type==="text"&&d.set(A.__key,x-g,"text")}return void(this.format=b)}g===0||cc(m)||([,m]=m.splitText(g),g=0),m.setFormat(b);const _=E.getFormatFlags(e,b);x>0&&(x===E.getTextContentSize()||cc(E)||([E]=E.splitText(x)),E.setFormat(_));for(let S=h+1;S<v;S++){const A=i[S],R=A.getFormatFlags(e,_);A.setFormat(R)}c.type==="text"&&c.set(m.__key,g,"text"),d.type==="text"&&d.set(E.__key,x,"text"),this.format=b|_}insertNodes(e){if(e.length===0)return;if(this.isCollapsed()||this.removeText(),this.anchor.key==="root"){this.insertParagraph();const g=Xe();
188return He(g)||Ve(134),g.insertNodes(e)}const n=(this.isBackward()?this.focus:this.anchor).getNode(),r=yO(n,Eo),i=e[e.length-1];if(Me(r)&&"__language"in r){if("__language"in e[0])this.insertText(e[0].getTextContent());else{const g=hO(this);r.splice(g,0,e),i.selectEnd()}return}if(!e.some((g=>(Me(g)||Mn(g))&&!g.isInline()))){Me(r)||Ve(211,n.constructor.name,n.getType());const g=hO(this);return r.splice(g,0,e),void i.selectEnd()}const s=(function(g){const b=ti();let v=null;for(let E=0;E<g.length;E++){const x=g[E],_=ou(x);if(_||Mn(x)&&x.isInline()||Me(x)&&x.isInline()||Qe(x)||x.isParentRequired()){if(v===null&&(v=x.createParentElementNode(),b.append(v),_))continue;v!==null&&v.append(x)}else b.append(x),v=null}return b})(e),a=s.getLastDescendant(),o=s.getChildren(),l=!Me(r)||!r.isEmpty()?this.insertParagraph():null,u=o[o.length-1];let c=o[0];var d;Me(d=c)&&Eo(d)&&!d.isEmpty()&&Me(r)&&(!r.isEmpty()||r.canMergeWhenEmpty())&&(Me(r)||Ve(211,n.constructor.name,n.getType()),r.append(...c.getChildren()),c=o[1]),c&&(r===null&&Ve(212,n.constructor.name,n.getType()),(function(g,b,v){const E=b.getParentOrThrow().getLastChild();let x=b;const _=[b];for(;x!==E;)x.getNextSibling()||Ve(140),x=x.getNextSibling(),_.push(x);let S=g;for(const A of _)S=S.insertAfter(A)})(r,c));const h=yO(a,Eo);l&&Me(h)&&(l.canMergeWhenEmpty()||Eo(u))&&(h.append(...l.getChildren()),l.remove()),Me(r)&&r.isEmpty()&&r.remove(),a.selectEnd();const m=Me(r)?r.getLastChild():null;ou(m)&&h!==r&&m.remove()}insertParagraph(){if(this.anchor.key==="root"){const a=ti();return Kn().splice(this.anchor.offset,0,[a]),a.select(),a}const e=hO(this),n=yO(this.anchor.getNode(),Eo);Me(n)||Ve(213);const r=n.getChildAtIndex(e),i=r?[r,...r.getNextSiblings()]:[],s=n.insertNewAfter(this,!1);return s?(s.append(...i),s.selectStart(),s):null}insertLineBreak(e){const n=uf();if(this.insertNodes([n]),e){const r=n.getParentOrThrow(),i=n.getIndexWithinParent();r.select(i,i)}}extract(){const e=this.getNodes(),n=e.length,r=n-1,i=this.anchor,s=this.focus;let a=e[0],o=e[r];const[l,u]=sL(this);if(n===0)return[];if(n===1){if(Qe(a)&&!this.isCollapsed()){const d=l>u?u:l,h=l>u?l:u,m=a.splitText(d,h),g=d===0?m[0]:m[1];return g!=null?[g]:[]}return[a]}const c=i.isBefore(s);if(Qe(a)){const d=c?l:u;d===a.getTextContentSize()?e.shift():d!==0&&([,a]=a.splitText(d),e[0]=a)}if(Qe(o)){const d=o.getTextContent().length,h=c?u:l;h===0?e.pop():h!==d&&([o]=o.splitText(h),e[r]=o)}return e}modify(e,n,r){if(BJ(this,e,n,r))return;const i=e==="move",s=Pr(),a=pl(Oo(s));if(!a)return;const o=s._blockCursorElement,l=s._rootElement,u=this.focus.getNode();if(l===null||o===null||!Me(u)||u.isInline()||u.canBeEmpty()||cL(o,s,l),this.dirty){let c=cp(s,this.anchor.key),d=cp(s,this.focus.key);this.anchor.type==="text"&&(c=l0(c)),this.focus.type==="text"&&(d=l0(d)),c&&d&&F2e(a,c,this.anchor.offset,d,this.focus.offset)}if((function(c,d,h,m){c.modify(d,h,m)})(a,e,n?"backward":"forward",r),a.rangeCount>0){const c=a.getRangeAt(0),d=this.anchor.getNode(),h=pi(d)?d:Wbt(d);if(this.applyDOMRange(c),this.dirty=!0,!i){const m=this.getNodes(),g=[];let b=!1;for(let v=0;v<m.length;v++){const E=m[v];uL(E,h)?g.push(E):b=!0}if(b&&g.length>0)if(n){const v=g[0];Me(v)?v.selectStart():v.getParentOrThrow().selectStart()}else{const v=g[g.length-1];Me(v)?v.selectEnd():v.getParentOrThrow().selectEnd()}a.anchorNode===c.startContainer&&a.anchorOffset===c.startOffset||(function(v){const E=v.focus,x=v.anchor,_=x.key,S=x.offset,A=x.type;x.set(E.key,E.offset,E.type,!0),E.set(_,S,A,!0)})(this)}}r==="lineboundary"&&BJ(this,e,n,r,"decorators")}forwardDeletion(e,n,r){if(!r&&(e.type==="element"&&Me(n)&&e.offset===n.getChildrenSize()||e.type==="text"&&e.offset===n.getTextContentSize())){const i=n.getParent(),s=n.getNextSibling()||(i===null?null:i.getNextSibling());if(Me(s)&&s.isShadowRoot())return!0}return!1}deleteCharacter(e){const n=this.isCollapsed();if(this.isCollapsed()){const r=this.anchor;let i=r.getNode();if(this.forwardDeletion(r,i,e))return;const s=GB(yu(r,e?"previous":"next"));if(s.getTextSlices().every((o=>o===null||o.distance===0))){let o={type:"initial"};for(const l of s.iterNodeCarets("shadowRoot"))if(Co(l)){if(!l.origin.isInline()){if(l.origin.isShadowRoot()){if(o.type==="merge-block")break;
188if(Me(s.anchor.origin)&&s.anchor.origin.isEmpty()){const u=za(l);Yw(this,df(u,u)),s.anchor.origin.remove()}return}o.type!=="merge-next-block"&&o.type!=="merge-block"||(o={block:o.block,caret:l,type:"merge-block"})}}else{if(o.type==="merge-block")break;if(u0(l)){if(Me(l.origin)){if(l.origin.isInline()){if(!l.origin.isParentOf(s.anchor.origin))break}else o={block:l.origin,type:"merge-next-block"};continue}if(Mn(l.origin)){if(!l.origin.isIsolated())if(o.type==="merge-next-block"&&(l.origin.isKeyboardSelectable()||!l.origin.isInline())&&Me(s.anchor.origin)&&s.anchor.origin.isEmpty()){s.anchor.origin.remove();const u=$2e();u.add(l.origin.getKey()),Vi(u)}else l.origin.remove();return}break}}if(o.type==="merge-block"){const{caret:l,block:u}=o;return Yw(this,df(!l.origin.isEmpty()&&u.isEmpty()?bE(ki(u,l.direction)):s.anchor,l)),this.removeText()}}const a=this.focus;if(this.modify("extend",e,"character"),this.isCollapsed()){if(e&&r.offset===0&&MJ(this,r.getNode()))return}else{const o=a.type==="text"?a.getNode():null;if(i=r.type==="text"?r.getNode():null,o!==null&&o.isSegmented()){const l=a.offset,u=o.getTextContentSize();if(o.is(i)||e&&l!==u||!e&&l!==0)return void DJ(o,e,l)}else if(i!==null&&i.isSegmented()){const l=r.offset,u=i.getTextContentSize();if(i.is(o)||e&&l!==0||!e&&l!==u)return void DJ(i,e,l)}(function(l,u){const c=l.anchor,d=l.focus,h=c.getNode(),m=d.getNode();if(h===m&&c.type==="text"&&d.type==="text"){const g=c.offset,b=d.offset,v=g<b,E=v?g:b,x=v?b:g,_=x-1;E!==_&&(function(S){return!(Q2e(S)||Abt(S))})(h.getTextContent().slice(E,x))&&(u?d.set(d.key,_,d.type):c.set(c.key,_,c.type))}})(this,e)}}if(this.removeText(),e&&!n&&this.isCollapsed()&&this.anchor.type==="element"&&this.anchor.offset===0){const r=this.anchor.getNode();r.isEmpty()&&pi(r.getParent())&&r.getPreviousSibling()===null&&MJ(this,r)}}deleteLine(e){this.isCollapsed()&&this.modify("extend",e,"lineboundary"),this.isCollapsed()?this.deleteCharacter(e):this.removeText()}deleteWord(e){if(this.isCollapsed()){const n=this.anchor,r=n.getNode();if(this.forwardDeletion(n,r,e))return;this.modify("extend",e,"word")}this.removeText()}isBackward(){return this.focus.isBefore(this.anchor)}getStartEndPoints(){return[this.anchor,this.focus]}}function ss(t){return t instanceof nA}function IJ(t){const e=t.offset;if(t.type==="text")return e;const n=t.getNode();return e===n.getChildrenSize()?n.getTextContent().length:0}function sL(t){const e=t.getStartEndPoints();if(e===null)return[0,0];const[n,r]=e;return n.type==="element"&&r.type==="element"&&n.key===r.key&&n.offset===r.offset?[0,0]:[IJ(n),IJ(r)]}function MJ(t,e){for(let n=e;n;n=n.getParent()){if(Me(n)){if(n.collapseAtStart(t))return!0;if(ms(n))break}if(n.getPreviousSibling())break}return!1}const Abt=(()=>{try{const t=new RegExp("\\p{Emoji}","u"),e=t.test.bind(t);if(e("â¤ï¸")&&e("#ï¸â£")&&e("ð"))return e}catch{}return()=>!1})();function DJ(t,e,n){const r=t,i=r.getTextContent().split(/(?=\s)/g),s=i.length;let a=0,o=0;for(let u=0;u<s;u++){const c=u===s-1;if(o=a,a+=i[u].length,e&&a===n||a>n||c){i.splice(u,1),c&&(o=void 0);break}}const l=i.join("").trim();l===""?r.remove():(r.setTextContent(l),r.select(o,o))}function PJ(t,e,n,r){let i,s=e;if(jr(t)){let a=!1;const o=t.childNodes,l=o.length,u=r._blockCursorElement;s===l&&(a=!0,s=l-1);let c=o[s],d=!1;if(c===u)c=o[s+1],d=!0;else if(u!==null){const h=u.parentNode;t===h&&e>Array.prototype.indexOf.call(h.children,u)&&s--}if(i=ug(c),Qe(i))s=uu(i,a?"next":"previous");else{let h=ug(t);if(h===null)return null;if(Me(h)){const m=r.getElementByKey(h.getKey());m===null&&Ve(214),[h,s]=h.getDOMSlot(m).resolveChildIndex(h,m,t,e),Me(h)||Ve(215),a&&s>=h.getChildrenSize()&&(s=Math.max(0,h.getChildrenSize()-1));let b=h.getChildAtIndex(s);if(Me(b)&&(function(v,E,x){const _=v.getParent();return x===null||_===null||!_.canBeEmpty()||_!==x.getNode()})(b,0,n)){const v=a?b.getLastDescendant():b.getFirstDescendant();v===null?h=b:(b=v,h=Me(b)?b:b.getParentOrThrow()),s=0}Qe(b)?(i=b,h=null,s=uu(b,a?"next":"previous")):b!==h&&a&&!d&&(Me(h)||Ve(216),s=Math.min(h.getChildrenSize(),s+1))}else{const m=h.getIndexWithinParent();s=e===0&&Mn(h)&&ug(t)===h?m:m+1,h=h.getParentOrThrow()}if(Me(h))return mu(h.__key,s,"element")}}else i=ug(t);
188return Qe(i)?mu(i.__key,uu(i,s,"clamp"),"text"):null}function LJ(t,e,n){const r=t.offset,i=t.getNode();if(r===0){const s=i.getPreviousSibling(),a=i.getParent();if(e){if((n||!e)&&s===null&&Me(a)&&a.isInline()){const o=a.getPreviousSibling();Qe(o)&&t.set(o.__key,o.getTextContent().length,"text")}}else Me(s)&&!n&&s.isInline()?t.set(s.__key,s.getChildrenSize(),"element"):Qe(s)&&t.set(s.__key,s.getTextContent().length,"text")}else if(r===i.getTextContent().length){const s=i.getNextSibling(),a=i.getParent();if(e&&Me(s)&&s.isInline())t.set(s.__key,0,"element");else if((n||e)&&s===null&&Me(a)&&a.isInline()&&!a.canInsertTextAfter()){const o=a.getNextSibling();Qe(o)&&t.set(o.__key,0,"text")}}}function D2e(t,e,n){if(t.type==="text"&&e.type==="text"){const r=t.isBefore(e),i=t.is(e);LJ(t,r,i),LJ(e,!r,i),i&&e.set(t.key,t.offset,t.type);const s=Pr();if(s.isComposing()&&s._compositionKey!==t.key&&He(n)){const a=n.anchor,o=n.focus;t.set(a.key,a.offset,a.type,!0),e.set(o.key,o.offset,o.type,!0)}}}function P2e(t,e,n,r,i,s){if(t===null||n===null||!gE(i,t,n))return null;const a=PJ(t,e,He(s)?s.anchor:null,i);if(a===null)return null;const o=PJ(n,r,He(s)?s.focus:null,i);if(o===null)return null;if(a.type==="element"&&o.type==="element"){const l=ug(t),u=ug(n);if(Mn(l)&&Mn(u))return null}return D2e(a,o,s),[a,o]}function CC(t){return Me(t)&&!t.isInline()}function L2e(t,e,n,r,i,s){const a=Tf(),o=new jp(mu(t,e,i),mu(n,r,s),0,"");return o.dirty=!0,a._selection=o,o}function rA(){const t=mu("root",0,"element"),e=mu("root",0,"element");return new jp(t,e,0,"")}function $2e(){return new nA(new Set)}function CB(t,e,n,r){const i=n._window;if(i===null)return null;const s=r||i.event,a=s?s.type:void 0,o=a==="selectionchange",l=!z9&&(o||a==="beforeinput"||a==="compositionstart"||a==="compositionend"||a==="click"&&s&&s.detail===3||a==="drop"||a===void 0);let u,c,d,h;if(He(t)&&!l)return t.clone();if(e===null)return null;if(u=e.anchorNode,c=e.focusNode,d=e.anchorOffset,h=e.focusOffset,o&&He(t)&&!gE(n,u,c))return t.clone();const m=P2e(u,d,c,h,n,t);if(m===null)return null;const[g,b]=m;return new jp(g,b,He(t)?t.format:0,He(t)?t.style:"")}function Xe(){return Tf()._selection}function zp(){return Pr()._editorState._selection}function TC(t,e,n,r=1){const i=t.anchor,s=t.focus,a=i.getNode(),o=s.getNode();if(!e.is(a)&&!e.is(o))return;const l=e.__key;if(t.isCollapsed()){const u=i.offset;if(n<=u&&r>0||n<u&&r<0){const c=Math.max(0,u+r);i.set(l,c,"element"),s.set(l,c,"element"),$J(t)}}else{const u=t.isBackward(),c=u?s:i,d=c.getNode(),h=u?i:s,m=h.getNode();if(e.is(d)){const g=c.offset;(n<=g&&r>0||n<g&&r<0)&&c.set(l,Math.max(0,g+r),"element")}if(e.is(m)){const g=h.offset;(n<=g&&r>0||n<g&&r<0)&&h.set(l,Math.max(0,g+r),"element")}}$J(t)}function $J(t){const e=t.anchor,n=e.offset,r=t.focus,i=r.offset,s=e.getNode(),a=r.getNode();if(t.isCollapsed()){if(!Me(s))return;const o=s.getChildrenSize(),l=n>=o,u=l?s.getChildAtIndex(o-1):s.getChildAtIndex(n);if(Qe(u)){let c=0;l&&(c=u.getTextContentSize()),e.set(u.__key,c,"text"),r.set(u.__key,c,"text")}}else{if(Me(s)){const o=s.getChildrenSize(),l=n>=o,u=l?s.getChildAtIndex(o-1):s.getChildAtIndex(n);if(Qe(u)){let c=0;l&&(c=u.getTextContentSize()),e.set(u.__key,c,"text")}}if(Me(a)){const o=a.getChildrenSize(),l=i>=o,u=l?a.getChildAtIndex(o-1):a.getChildAtIndex(i);if(Qe(u)){let c=0;l&&(c=u.getTextContentSize()),r.set(u.__key,c,"text")}}}}function AC(t,e,n,r,i){let s=null,a=0,o=null;r!==null?(s=r.__key,Qe(r)?(a=r.getTextContentSize(),o="text"):Me(r)&&(a=r.getChildrenSize(),o="element")):i!==null&&(s=i.__key,Qe(i)?o="text":Me(i)&&(o="element")),s!==null&&o!==null?t.set(s,a,o):(a=e.getIndexWithinParent(),a===-1&&(a=n.getChildrenSize()),t.set(n.__key,a,"element"))}function FJ(t,e,n,r,i){t.type==="text"?t.set(n,t.offset+(e?0:i),"text"):t.offset>r.getIndexWithinParent()&&t.set(t.key,t.offset-1,"element")}function F2e(t,e,n,r,i){try{t.setBaseAndExtent(e,n,r,i)}catch{}}function Rbt(t,e,n,r,i,s,a){const o=r.anchorNode,l=r.focusNode,u=r.anchorOffset,c=r.focusOffset,d=document.activeElement;if(i.has(Dbt)&&d!==s||d!==null&&IB(d))return;if(!He(e))return void(t!==null&&gE(n,o,l)&&r.removeAllRanges());
188const h=e.anchor,m=e.focus,g=h.key,b=m.key,v=cp(n,g),E=cp(n,b),x=h.offset,_=m.offset,S=e.format,A=e.style,R=e.isCollapsed();let T=v,O=E,I=!1;if(h.type==="text"){T=l0(v);const q=h.getNode();I=q.getFormat()!==S||q.getStyle()!==A}else He(t)&&t.anchor.type==="text"&&(I=!0);var D,P,B,L,$;if(m.type==="text"&&(O=l0(E)),T!==null&&O!==null&&(R&&(t===null||I||He(t)&&(t.format!==S||t.style!==A))&&(D=S,P=A,B=x,L=g,$=performance.now(),C2e=[D,P,B,L,$]),u!==x||c!==_||o!==T||l!==O||r.type==="Range"&&R||(d!==null&&s.contains(d)||s.focus({preventScroll:!0}),h.type==="element"))){if(F2e(r,T,x,O,_),!i.has(Pbt)&&e.isCollapsed()&&s!==null&&s===document.activeElement){const q=He(e)&&e.anchor.type==="element"?T.childNodes[x]||null:r.rangeCount>0?r.getRangeAt(0):null;if(q!==null){let F;if(q instanceof Text){const G=document.createRange();G.selectNode(q),F=G.getBoundingClientRect()}else F=q.getBoundingClientRect();(function(G,H,K){const V=tEe(K),Y=BB(V);if(V===null||Y===null)return;let{top:Z,bottom:W}=H,Q=0,re=0,se=K;for(;se!==null;){const J=se===V.body;if(J)Q=0,re=Oo(G).innerHeight;else{const ge=se.getBoundingClientRect();Q=ge.top,re=ge.bottom}let ae=0;if(Z<Q?ae=-(Q-Z):W>re&&(ae=W-re),ae!==0)if(J)Y.scrollBy(0,ae);else{const ge=se.scrollTop;se.scrollTop+=ae;const ve=se.scrollTop-ge;Z-=ve,W-=ve}if(J)break;se=yE(se)}})(n,F,s)}}nL=!0}}function iA(t){let e=Xe()||zp();e===null&&(e=Kn().selectEnd()),e.insertNodes(t)}function hO(t){let e=t;t.isCollapsed()||e.removeText();const n=Xe();He(n)&&(e=n),He(e)||Ve(161);const r=e.anchor;let i=r.getNode(),s=r.offset;for(;!Eo(i);){const a=i;if([i,s]=Nbt(i,s),a.is(i))break}return s}function Nbt(t,e){const n=t.getParent();if(!n){const i=ti();return Kn().append(i),i.select(),[Kn(),0]}if(Qe(t)){const i=t.splitText(e);if(i.length===0)return[n,t.getIndexWithinParent()];const s=e===0?0:1;return[n,i[0].getIndexWithinParent()+s]}if(!Me(t)||e===0)return[n,t.getIndexWithinParent()];const r=t.getChildAtIndex(e);if(r){const i=new jp(mu(t.__key,e,"element"),mu(t.__key,e,"element"),0,""),s=t.insertNewAfter(i);s&&s.append(r,...r.getNextSiblings())}return[n,t.getIndexWithinParent()+1]}function BJ(t,e,n,r,i="decorators-and-blocks"){if(e==="move"&&r==="character"&&!t.isCollapsed()){const[c,d]=n===t.isBackward()?[t.focus,t.anchor]:[t.anchor,t.focus];return d.set(c.key,c.offset,c.type),!0}const s=yu(t.focus,n?"previous":"next"),a=r==="lineboundary",o=e==="move";let l=s,u=i==="decorators-and-blocks";if(!uEe(l)){for(const c of l){u=!1;const{origin:d}=c;if(!Mn(d)||d.isIsolated()||(l=c,!a||!d.isInline()))break}if(u)for(const c of GB(s).iterNodeCarets(e==="extend"?"shadowRoot":"root")){if(Co(c))c.origin.isInline()||(l=c);else{if(Me(c.origin))continue;Mn(c.origin)&&!c.origin.isInline()&&(l=c)}break}}if(l===s)return!1;if(o&&!a&&Mn(l.origin)&&l.origin.isKeyboardSelectable()){const c=$2e();return c.add(l.origin.getKey()),Vi(c),!0}return l=za(l),o&&pp(t.anchor,l),pp(t.focus,l),u||!a}let Bi=null,Hi=null,la=!1,pO=!1,qw=0;const HJ={characterData:!0,childList:!0,subtree:!0};function pE(){return la||Bi!==null&&Bi._readOnly}function us(){la&&Ve(13)}function B2e(){qw>99&&Ve(14)}function Tf(){return Bi===null&&Ve(195,H2e()),Bi}function Pr(){return Hi===null&&Ve(196,H2e()),Hi}function H2e(){let t=0;const e=new Set,n=lA.version;if(typeof window<"u")for(const i of document.querySelectorAll("[contenteditable]")){const s=uA(i);if(MB(s))t++;else if(s){let a=String(s.constructor.version||"<0.17.1");a===n&&(a+=" (separately built, likely a bundler configuration issue)"),e.add(a)}}let r=` Detected on the page: ${t} compatible editor(s) with version ${n}`;return e.size&&(r+=` and incompatible editors with versions ${Array.from(e).join(", ")}`),r}function Obt(){return Hi}function UJ(t,e,n){const r=e.__type,i=q2e(t,r);let s=n.get(r);s===void 0&&(s=Array.from(i.transforms),n.set(r,s));const a=s.length;for(let o=0;o<a&&(s[o](e),e.isAttached());o++);}function jJ(t,e){return t!==void 0&&t.__key!==e&&t.isAttached()}function U2e(t,e){if(!e)return;const n=t._updateTags;let r=e;Array.isArray(e)||(r=[e]);for(const i of r)n.add(i)}function kbt(t){return TB(t,Pr()._nodes)}function TB(t,e){const n=t.type,r=e.get(n);r===void 0&&Ve(17,n);const i=r.klass;t.type!==i.getType()&&Ve(18,i.name);const s=i.importJSON(t),a=t.children;if(Me(s)&&Array.isArray(a))for(let o=0;o<a.length;o++){const l=TB(a[o],e);s.append(l)}return s}function zJ(t,e,n){const r=Bi,i=la,s=Hi;Bi=e,la=!0,Hi=t;try{return n()}finally{Bi=r,la=i,Hi=s}}function yc(t,e){const n=t._pendingEditorState,r=t._rootElement,i=t._headless||r===null;if(n===null)return;const s=t._editorState,a=s._selection,o=n._selection,l=t._dirtyType!==sp,u=Bi,c=la,d=Hi,h=t._updating,m=t._observer;let g=null;if(t._pendingEditorState=null,t._editorState=n,!i&&l&&m!==null){Hi=t,Bi=n,la=!1,t._updating=!0;try{const R=t._dirtyType,T=t._dirtyElements,O=t._dirtyLeaves;m.disconnect(),g=cbt(s,n,t,R,T,O)}catch(R){if(R instanceof Error&&t._onError(R),pO)throw R;return V2e(t,null,r,n),s2e(t),t._dirtyType=o0,pO=!0,yc(t,s),void(pO=!1)}finally{m.observe(r,HJ),t._updating=h,Bi=u,la=c,Hi=d}}n._readOnly||(n._readOnly=!0);const b=t._dirtyLeaves,v=t._dirtyElements,E=t._normalizedNodes,x=t._updateTags,_=t._deferred;l&&(t._dirtyType=sp,t._cloneNotNeeded.clear(),t._dirtyLeaves=new Set,t._dirtyElements=new Map,t._normalizedNodes=new Set,t._updateTags=new Set),(function(R,T){const O=R._decorators;let I=R._pendingDecorators||O;const D=T._nodeMap;let P;for(P in I)D.has(P)||(I===O&&(I=K2e(R)),delete I[P])})(t,n);const S=i?null:pl(Oo(t));if(t._editable&&S!==null&&(l||o===null||o.dirty)&&r!==null&&!x.has(Lbt)){Hi=t,Bi=n;try{if(m!==null&&m.disconnect(),l||o===null||o.dirty){const R=t._blockCursorElement;R!==null&&cL(R,t,r),Rbt(a,o,t,S,x,r)}(function(R,T,O){let I=R._blockCursorElement;if(He(O)&&O.isCollapsed()&&O.anchor.type==="element"&&T.contains(document.activeElement)){const D=O.anchor,P=D.getNode(),B=D.offset;let L=!1,$=null;if(B===P.getChildrenSize())gO(P.getChildAtIndex(B-1))&&(L=!0);else{const q=P.getChildAtIndex(B);if(q!==null&&gO(q)){const F=q.getPreviousSibling();(F===null||gO(F))&&(L=!0,$=R.getElementByKey(q.__key))}}if(L){const q=R.getElementByKey(P.__key);return I===null&&(R._blockCursorElement=I=(function(F){const G=F.theme,H=document.createElement("div");H.contentEditable="false",H.setAttribute("data-lexical-cursor","true");let K=G.blockCursor;if(K!==void 0){if(typeof K=="string"){const V=e2e(K);K=G.blockCursor=V}K!==void 0&&H.classList.add(...K)}return H})(R._config)),T.style.caretColor="transparent",void($===null?q.appendChild(I):q.insertBefore(I,$))}}I!==null&&cL(I,R,T)})(t,r,o)}finally{m!==null&&m.observe(r,HJ),Hi=d,Bi=u}}g!==null&&(function(R,T,O,I,D){const P=Array.from(R._listeners.mutation),B=P.length;for(let L=0;L<B;L++){const[$,q]=P[L];for(const F of q){const G=T.get(F);G!==void 0&&$(G,{dirtyLeaves:I,prevEditorState:D,updateTags:O})}}})(t,g,x,b,s),He(o)||o===null||a!==null&&a.is(o)||t.dispatchCommand(yB,void 0);const A=t._pendingDecorators;A!==null&&(t._decorators=A,t._pendingDecorators=null,Tb("decorator",t,!0,A)),(function(R,T,O){const I=YJ(T),D=YJ(O);I!==D&&Tb("textcontent",R,!0,D)})(t,e||s,n),Tb("update",t,!0,{dirtyElements:v,dirtyLeaves:b,editorState:n,mutatedNodes:g,normalizedNodes:E,prevEditorState:e||s,tags:x}),(function(R,T){if(R._deferred=[],T.length!==0){const O=R._updating;R._updating=!0;try{for(let I=0;I<T.length;I++)T[I]()}finally{R._updating=O}}})(t,_),(function(R){const T=R._updates;if(T.length!==0){const O=T.shift();if(O){const[I,D]=O;sA(R,I,D)}}})(t)}function Tb(t,e,n,...r){const i=e._updating;e._updating=n;try{const s=Array.from(e._listeners[t]);for(let a=0;a<s.length;a++)s[a].apply(null,r)}finally{e._updating=i}}function VJ(t,e){const n=t._updates;let r=e||!1;for(;n.length!==0;){const i=n.shift();if(i){const[s,a]=i,o=t._pendingEditorState;let l;a!==void 0&&(l=a.onUpdate,a.skipTransforms&&(r=!0),a.discrete&&(o===null&&Ve(191),o._flushSync=!0),l&&t._deferred.push(l),U2e(t,a.tag)),o==null?sA(t,s,a):s()}}return r}function sA(t,e,n){const r=t._updateTags;let i,s=!1,a=!1;
188n!==void 0&&(i=n.onUpdate,U2e(t,n.tag),s=n.skipTransforms||!1,a=n.discrete||!1),i&&t._deferred.push(i);const o=t._editorState;let l=t._pendingEditorState,u=!1;(l===null||l._readOnly)&&(l=t._pendingEditorState=j2e(l||o),u=!0),l._flushSync=a;const c=Bi,d=la,h=Hi,m=t._updating;Bi=l,la=!1,t._updating=!0,Hi=t;const g=t._headless||t.getRootElement()===null;OB(null);try{u&&(g?o._selection!==null&&(l._selection=o._selection.clone()):l._selection=(function(x,_){const S=x.getEditorState()._selection,A=pl(Oo(x));return He(S)||S==null?CB(S,A,x,_):S.clone()})(t,n&&n.event||null));const v=t._compositionKey;e(),s=VJ(t,s),(function(x,_){const S=_.getEditorState()._selection,A=x._selection;if(He(A)){const R=A.anchor,T=A.focus;let O;if(R.type==="text"&&(O=R.getNode(),O.selectionTransform(S,A)),T.type==="text"){const I=T.getNode();O!==I&&I.selectionTransform(S,A)}}})(l,t),t._dirtyType!==sp&&(s?(function(x,_){const S=_._dirtyLeaves,A=x._nodeMap;for(const R of S){const T=A.get(R);Qe(T)&&T.isAttached()&&T.isSimpleText()&&!T.isUnmergeable()&&_J(T)}})(l,t):(function(x,_){const S=_._dirtyLeaves,A=_._dirtyElements,R=x._nodeMap,T=jd(),O=new Map;let I=S,D=I.size,P=A,B=P.size;for(;D>0||B>0;){if(D>0){_._dirtyLeaves=new Set;for(const L of I){const $=R.get(L);Qe($)&&$.isAttached()&&$.isSimpleText()&&!$.isUnmergeable()&&_J($),$!==void 0&&jJ($,T)&&UJ(_,$,O),S.add(L)}if(I=_._dirtyLeaves,D=I.size,D>0){qw++;continue}}_._dirtyLeaves=new Set,_._dirtyElements=new Map,P.delete("root")&&P.set("root",!0);for(const L of P){const $=L[0],q=L[1];if(A.set($,q),!q)continue;const F=R.get($);F!==void 0&&jJ(F,T)&&UJ(_,F,O)}I=_._dirtyLeaves,D=I.size,P=_._dirtyElements,B=P.size,qw++}_._dirtyLeaves=S,_._dirtyElements=A})(l,t),VJ(t),(function(x,_,S,A){const R=x._nodeMap,T=_._nodeMap,O=[];for(const[I]of A){const D=T.get(I);D!==void 0&&(D.isAttached()||(Me(D)&&n2e(D,I,R,T,O,A),R.has(I)||A.delete(I),O.push(I)))}for(const I of O)T.delete(I);for(const I of S){const D=T.get(I);D===void 0||D.isAttached()||(R.has(I)||S.delete(I),T.delete(I))}})(o,l,t._dirtyLeaves,t._dirtyElements)),v!==t._compositionKey&&(l._flushSync=!0);const E=l._selection;if(He(E)){const x=l._nodeMap,_=E.anchor.key,S=E.focus.key;x.get(_)!==void 0&&x.get(S)!==void 0||Ve(19)}else ss(E)&&E._nodes.size===0&&(l._selection=null)}catch(v){return v instanceof Error&&t._onError(v),t._pendingEditorState=o,t._dirtyType=o0,t._cloneNotNeeded.clear(),t._dirtyLeaves=new Set,t._dirtyElements.clear(),void yc(t)}finally{Bi=c,la=d,Hi=h,t._updating=m,qw=0}t._dirtyType!==sp||t._deferred.length>0||(function(v,E){const x=E.getEditorState()._selection,_=v._selection;if(_!==null){if(_.dirty||!_.is(x))return!0}else if(x!==null)return!0;return!1})(l,t)?l._flushSync?(l._flushSync=!1,yc(t)):u&&Ubt((()=>{yc(t)})):(l._flushSync=!1,u&&(r.clear(),t._deferred=[],t._pendingEditorState=null))}function Ba(t,e,n){Hi===t&&n===void 0?e():sA(t,e,n)}class Ab{constructor(e,n,r){this.element=e,this.before=n||null,this.after=r||null}withBefore(e){return new Ab(this.element,e,this.after)}withAfter(e){return new Ab(this.element,this.before,e)}withElement(e){return this.element===e?this:new Ab(e,this.before,this.after)}insertChild(e){const n=this.before||this.getManagedLineBreak();return n!==null&&n.parentElement!==this.element&&Ve(222),this.element.insertBefore(e,n),this}removeChild(e){return e.parentElement!==this.element&&Ve(223),this.element.removeChild(e),this}replaceChild(e,n){return n.parentElement!==this.element&&Ve(224),this.element.replaceChild(e,n),this}getFirstChild(){const e=this.after?this.after.nextSibling:this.element.firstChild;return e===this.before||e===this.getManagedLineBreak()?null:e}getManagedLineBreak(){return this.element.__lexicalLineBreak||null}setManagedLineBreak(e){if(e===null)this.removeManagedLineBreak();else{const n=e==="decorator"&&(a0||Iv);this.insertManagedLineBreak(n)}}removeManagedLineBreak(){const e=this.getManagedLineBreak();if(e){const n=this.element,r=e.nodeName==="IMG"?e.nextSibling:null;r&&n.removeChild(r),n.removeChild(e),n.__lexicalLineBreak=void 0}}insertManagedLineBreak(e){const n=this.getManagedLineBreak();if(n){if(e===(n.nodeName==="IMG"))return;this.removeManagedLineBreak()}
188const r=this.element,i=this.before,s=document.createElement("br");if(r.insertBefore(s,i),e){const a=document.createElement("img");a.setAttribute("data-lexical-linebreak","true"),a.style.cssText="display: inline !important; border: 0px !important; margin: 0px !important;",a.alt="",r.insertBefore(a,s),r.__lexicalLineBreak=a}else r.__lexicalLineBreak=s}getFirstChildOffset(){let e=0;for(let n=this.after;n!==null;n=n.previousSibling)e++;return e}resolveChildIndex(e,n,r,i){if(r===this.element){const l=this.getFirstChildOffset();return[e,Math.min(l+e.getChildrenSize(),Math.max(l,i))]}const s=qJ(n,r);s.push(i);const a=qJ(n,this.element);let o=e.getIndexWithinParent();for(let l=0;l<a.length;l++){const u=s[l],c=a[l];if(u===void 0||u<c)break;if(u>c){o+=1;break}}return[e.getParentOrThrow(),o]}}function qJ(t,e){const n=[];let r=e;for(;r!==t&&r!==null;r=r.parentNode){let i=0;for(let s=r.previousSibling;s!==null;s=s.previousSibling)i++;n.push(i)}return r!==t&&Ve(225),n.reverse()}class No extends n1{constructor(e){super(e),this.__first=null,this.__last=null,this.__size=0,this.__format=0,this.__style="",this.__indent=0,this.__dir=null,this.__textFormat=0,this.__textStyle=""}afterCloneFrom(e){super.afterCloneFrom(e),this.__key===e.__key&&(this.__first=e.__first,this.__last=e.__last,this.__size=e.__size),this.__indent=e.__indent,this.__format=e.__format,this.__style=e.__style,this.__dir=e.__dir,this.__textFormat=e.__textFormat,this.__textStyle=e.__textStyle}getFormat(){return this.getLatest().__format}getFormatType(){const e=this.getFormat();return Qyt[e]||""}getStyle(){return this.getLatest().__style}getIndent(){return this.getLatest().__indent}getChildren(){const e=[];let n=this.getFirstChild();for(;n!==null;)e.push(n),n=n.getNextSibling();return e}getChildrenKeys(){const e=[];let n=this.getFirstChild();for(;n!==null;)e.push(n.__key),n=n.getNextSibling();return e}getChildrenSize(){return this.getLatest().__size}isEmpty(){return this.getChildrenSize()===0}isDirty(){const e=Pr()._dirtyElements;return e!==null&&e.has(this.__key)}isLastChild(){const e=this.getLatest(),n=this.getParentOrThrow().getLastChild();return n!==null&&n.is(e)}getAllTextNodes(){const e=[];let n=this.getFirstChild();for(;n!==null;){if(Qe(n)&&e.push(n),Me(n)){const r=n.getAllTextNodes();e.push(...r)}n=n.getNextSibling()}return e}getFirstDescendant(){let e=this.getFirstChild();for(;Me(e);){const n=e.getFirstChild();if(n===null)break;e=n}return e}getLastDescendant(){let e=this.getLastChild();for(;Me(e);){const n=e.getLastChild();if(n===null)break;e=n}return e}getDescendantByIndex(e){const n=this.getChildren(),r=n.length;if(e>=r){const s=n[r-1];return Me(s)&&s.getLastDescendant()||s||null}const i=n[e];return Me(i)&&i.getFirstDescendant()||i||null}getFirstChild(){const e=this.getLatest().__first;return e===null?null:hi(e)}getFirstChildOrThrow(){const e=this.getFirstChild();return e===null&&Ve(45,this.__key),e}getLastChild(){const e=this.getLatest().__last;return e===null?null:hi(e)}getLastChildOrThrow(){const e=this.getLastChild();return e===null&&Ve(96,this.__key),e}getChildAtIndex(e){const n=this.getChildrenSize();let r,i;if(e<n/2){for(r=this.getFirstChild(),i=0;r!==null&&i<=e;){if(i===e)return r;r=r.getNextSibling(),i++}return null}for(r=this.getLastChild(),i=n-1;r!==null&&i>=e;){if(i===e)return r;r=r.getPreviousSibling(),i--}return null}getTextContent(){let e="";const n=this.getChildren(),r=n.length;for(let i=0;i<r;i++){const s=n[i];e+=s.getTextContent(),Me(s)&&i!==r-1&&!s.isInline()&&(e+=Bc)}return e}getTextContentSize(){let e=0;const n=this.getChildren(),r=n.length;for(let i=0;i<r;i++){const s=n[i];e+=s.getTextContentSize(),Me(s)&&i!==r-1&&!s.isInline()&&(e+=Bc.length)}return e}getDirection(){return this.getLatest().__dir}getTextFormat(){return this.getLatest().__textFormat}hasFormat(e){if(e!==""){const n=hJ[e];return!!(this.getFormat()&n)}return!1}hasTextFormat(e){const n=ap[e];return!!(this.getTextFormat()&n)}getFormatFlags(e,n){return RC(this.getLatest().__textFormat,e,n)}getTextStyle(){return this.getLatest().__textStyle}select(e,n){us();const r=Xe();let i=e,s=n;const a=this.getChildrenSize();if(!this.canBeEmpty()){if(e===0&&n===0){const l=this.getFirstChild();if(Qe(l)||Me(l))return l.select(0,0)}else if(!(e!==void 0&&e!==a||n!==void 0&&n!==a)){const l=this.getLastChild();if(Qe(l)||Me(l))return l.select()}}i===void 0&&(i=a),s===void 0&&(s=a);const o=this.__key;return He(r)?(r.anchor.set(o,i,"element"),r.focus.set(o,s,"element"),r.dirty=!0,r):L2e(o,i,o,s,"element","element")}selectStart(){const e=this.getFirstDescendant();return e?e.selectStart():this.select()}selectEnd(){const e=this.getLastDescendant();return e?e.selectEnd():this.select()}clear(){const e=this.getWritable();
188return this.getChildren().forEach((n=>n.remove())),e}append(...e){return this.splice(this.getChildrenSize(),0,e)}setDirection(e){const n=this.getWritable();return n.__dir=e,n}setFormat(e){return this.getWritable().__format=e!==""?hJ[e]:0,this}setStyle(e){return this.getWritable().__style=e||"",this}setTextFormat(e){const n=this.getWritable();return n.__textFormat=e,n}setTextStyle(e){const n=this.getWritable();return n.__textStyle=e,n}setIndent(e){return this.getWritable().__indent=e,this}splice(e,n,r){const i=r.length,s=this.getChildrenSize(),a=this.getWritable();e+n<=s||Ve(226,String(e),String(n),String(s));const o=a.__key,l=[],u=[],c=this.getChildAtIndex(e+n);let d=null,h=s-n+i;if(e!==0)if(e===s)d=this.getLastChild();else{const g=this.getChildAtIndex(e);g!==null&&(d=g.getPreviousSibling())}if(n>0){let g=d===null?this.getFirstChild():d.getNextSibling();for(let b=0;b<n;b++){g===null&&Ve(100);const v=g.getNextSibling(),E=g.__key;Fh(g.getWritable()),u.push(E),g=v}}let m=d;for(let g=0;g<i;g++){const b=r[g];m!==null&&b.is(m)&&(d=m=m.getPreviousSibling());const v=b.getWritable();v.__parent===o&&h--,Fh(v);const E=b.__key;if(m===null)a.__first=E,v.__prev=null;else{const x=m.getWritable();x.__next=E,v.__prev=x.__key}b.__key===o&&Ve(76),v.__parent=o,l.push(E),m=b}if(e+n===s)m!==null&&(m.getWritable().__next=null,a.__last=m.__key);else if(c!==null){const g=c.getWritable();if(m!==null){const b=m.getWritable();g.__prev=m.__key,b.__next=c.__key}else g.__prev=null}if(a.__size=h,u.length){const g=Xe();if(He(g)){const b=new Set(u),v=new Set(l),{anchor:E,focus:x}=g;GJ(E,b,v)&&AC(E,E.getNode(),this,d,c),GJ(x,b,v)&&AC(x,x.getNode(),this,d,c),h!==0||this.canBeEmpty()||ms(this)||this.remove()}}return a}getDOMSlot(e){return new Ab(e)}exportDOM(e){const{element:n}=super.exportDOM(e);if(jr(n)){const r=this.getIndent();r>0&&(n.style.paddingInlineStart=40*r+"px");const i=this.getDirection();i&&(n.dir=i)}return{element:n}}exportJSON(){const e={children:[],direction:this.getDirection(),format:this.getFormatType(),indent:this.getIndent(),...super.exportJSON()},n=this.getTextFormat(),r=this.getTextStyle();return n!==0&&(e.textFormat=n),r!==""&&(e.textStyle=r),e}updateFromJSON(e){return super.updateFromJSON(e).setFormat(e.format).setIndent(e.indent).setDirection(e.direction).setTextFormat(e.textFormat||0).setTextStyle(e.textStyle||"")}insertNewAfter(e,n){return null}canIndent(){return!0}collapseAtStart(e){return!1}excludeFromCopy(e){return!1}canReplaceWith(e){return!0}canInsertAfter(e){return!0}canBeEmpty(){return!0}canInsertTextBefore(){return!0}canInsertTextAfter(){return!0}isInline(){return!1}isShadowRoot(){return!1}canMergeWith(e){return!1}extractWithChild(e,n,r){return!1}canMergeWhenEmpty(){return!1}reconcileObservedMutation(e,n){const r=this.getDOMSlot(e);let i=r.getFirstChild();for(let s=this.getFirstChild();s;s=s.getNextSibling()){const a=n.getElementByKey(s.getKey());a!==null&&(i==null?(r.insertChild(a),i=a):i!==a&&r.replaceChild(a,i),i=i.nextSibling)}}}function Me(t){return t instanceof No}function GJ(t,e,n){let r=t.getNode();for(;r;){const i=r.__key;if(e.has(i)&&!n.has(i))return!0;r=r.getParent()}return!1}class AB extends n1{decorate(e,n){Ve(47)}isIsolated(){return!1}isInline(){return!0}isKeyboardSelectable(){return!0}}function Mn(t){return t instanceof AB}class mE extends No{static getType(){return"root"}static clone(){return new mE}constructor(){super("root"),this.__cachedText=null}getTopLevelElementOrThrow(){Ve(51)}getTextContent(){const e=this.__cachedText;return!pE()&&Pr()._dirtyType!==sp||e===null?super.getTextContent():e}remove(){Ve(52)}replace(e){Ve(53)}insertBefore(e){Ve(54)}insertAfter(e){Ve(55)}updateDOM(e,n){return!1}splice(e,n,r){for(const i of r)Me(i)||Mn(i)||Ve(282);return super.splice(e,n,r)}static importJSON(e){return Kn().updateFromJSON(e)}collapseAtStart(){return!0}}function pi(t){return t instanceof mE}function j2e(t){return new aA(new Map(t._nodeMap))}function RB(){return new aA(new Map([["root",new mE]]))}function z2e(t){const e=t.exportJSON(),n=t.constructor;if(e.type!==n.getType()&&Ve(130,n.name),Me(t)){const r=e.children;Array.isArray(r)||Ve(59,n.name);const i=t.getChildren();for(let s=0;s<i.length;s++){const a=z2e(i[s]);r.push(a)}}return e}class aA{constructor(e,n){this._nodeMap=e,this._selection=n||null,this._flushSync=!1,this._readOnly=!1}isEmpty(){return this._nodeMap.size===1&&this._selection===null}read(e,n){return zJ(n&&n.editor||null,this,e)}clone(e){const n=new aA(this._nodeMap,e===void 0?this._selection:e);return n._readOnly=!0,n}toJSON(){return zJ(null,this,(()=>({root:z2e(Kn())})))}}const aL="historic",Ibt="history-push",Gw="history-merge",Mbt="paste",Dbt="collaboration",Pbt="skip-scroll-into-view",Lbt="skip-dom-selection";class NB extends No{static getType(){return"artificial"}createDOM(e){return document.createElement("div")}}class r1 extends No{static getType(){return"paragraph"}static clone(e){return new r1(e.__key)}createDOM(e){const n=document.createElement("p"),r=Lg(e.theme,"paragraph");return r!==void 0&&n.classList.add(...r),n}updateDOM(e,n,r){return!1}static importDOM(){return{p:e=>({conversion:$bt,priority:0})}}exportDOM(e){const{element:n}=super.exportDOM(e);if(jr(n)){this.isEmpty()&&n.append(document.createElement("br"));const r=this.getFormatType();r&&(n.style.textAlign=r)}return{element:n}}static importJSON(e){return ti().updateFromJSON(e)}exportJSON(){return{...super.exportJSON(),textFormat:this.getTextFormat(),textStyle:this.getTextStyle()}}insertNewAfter(e,n){const r=ti();r.setTextFormat(e.format),r.setTextStyle(e.style);const i=this.getDirection();return r.setDirection(i),r.setFormat(this.getFormatType()),r.setStyle(this.getStyle()),this.insertAfter(r,n),r}collapseAtStart(){const e=this.getChildren();if(e.length===0||Qe(e[0])&&e[0].getTextContent().trim()===""){if(this.getNextSibling()!==null)return this.selectNext(),this.remove(),!0;if(this.getPreviousSibling()!==null)return this.selectPrevious(),this.remove(),!0}return!1}}function $bt(t){const e=ti();return t.style&&(e.setFormat(t.style.textAlign),rEe(t,e)),{node:e}}function ti(){return Au(new r1)}function oA(t){return t instanceof r1}const xn=0,Rs=1,Fbt=3,cf=4;function V2e(t,e,n,r){const i=t._keyToDOMMap;i.clear(),t._editorState=RB(),t._pendingEditorState=r,t._compositionKey=null,t._dirtyType=sp,t._cloneNotNeeded.clear(),t._dirtyLeaves=new Set,t._dirtyElements.clear(),t._normalizedNodes=new Set,t._updateTags=new Set,t._updates=[],t._blockCursorElement=null;const s=t._observer;s!==null&&(s.disconnect(),t._observer=null),e!==null&&(e.textContent=""),n!==null&&(n.textContent="",i.set("root",n))}function Bbt(t){const e=t||{},n=Obt(),r=e.theme||{},i=t===void 0?n:e.parentEditor||null,s=e.disableEvents||!1,a=RB(),o=e.namespace||(i!==null?i._config.namespace:Z2e()),l=e.editorState,u=[mE,Wc,dE,fE,r1,NB,...e.nodes||[]],{onError:c,html:d}=e,h=e.editable===void 0||e.editable;let m;if(t===void 0&&n!==null)m=n._nodes;else{m=new Map;for(let b=0;b<u.length;b++){let v=u[b],E=null,x=null;if(typeof v!="function"){const T=v;v=T.replace,E=T.with,x=T.withKlass||null}const{ownNodeConfig:_}=jB(v),S=v.getType(),A=v.transform(),R=new Set;_&&_.$transform&&R.add(_.$transform),A!==null&&R.add(A),m.set(S,{exportDOM:d&&d.export?d.export.get(v):void 0,klass:v,replace:E,replaceWithKlass:x,sharedNodeState:sbt(u[b]),transforms:R})}}const g=new lA(a,i,m,{disableEvents:s,namespace:o,theme:r},c||console.error,(function(b,v){const E=new Map,x=new Set,_=S=>
188{Object.keys(S).forEach((A=>{let R=E.get(A);R===void 0&&(R=[],E.set(A,R)),R.push(S[A])}))};return b.forEach((S=>{const A=S.klass.importDOM;if(A==null||x.has(A))return;x.add(A);const R=A.call(S.klass);R!==null&&_(R)})),v&&_(v),E})(m,d?d.import:void 0),h,t);return l!==void 0&&(g._pendingEditorState=l,g._dirtyType=o0),g}class lA{constructor(e,n,r,i,s,a,o,l){this._createEditorArgs=l,this._parentEditor=n,this._rootElement=null,this._editorState=e,this._pendingEditorState=null,this._compositionKey=null,this._deferred=[],this._keyToDOMMap=new Map,this._updates=[],this._updating=!1,this._listeners={decorator:new Set,editable:new Set,mutation:new Map,root:new Set,textcontent:new Set,update:new Set},this._commands=new Map,this._config=i,this._nodes=r,this._decorators={},this._pendingDecorators=null,this._dirtyType=sp,this._cloneNotNeeded=new Set,this._dirtyLeaves=new Set,this._dirtyElements=new Map,this._normalizedNodes=new Set,this._updateTags=new Set,this._observer=null,this._key=Z2e(),this._onError=s,this._htmlConversions=a,this._editable=o,this._headless=n!==null&&n._headless,this._window=null,this._blockCursorElement=null}isComposing(){return this._compositionKey!=null}registerUpdateListener(e){const n=this._listeners.update;return n.add(e),()=>{n.delete(e)}}registerEditableListener(e){const n=this._listeners.editable;return n.add(e),()=>{n.delete(e)}}registerDecoratorListener(e){const n=this._listeners.decorator;return n.add(e),()=>{n.delete(e)}}registerTextContentListener(e){const n=this._listeners.textcontent;return n.add(e),()=>{n.delete(e)}}registerRootListener(e){const n=this._listeners.root;return e(this._rootElement,null),n.add(e),()=>{e(null,this._rootElement),n.delete(e)}}registerCommand(e,n,r){r===void 0&&Ve(35);const i=this._commands;i.has(e)||i.set(e,[new Set,new Set,new Set,new Set,new Set]);const s=i.get(e);s===void 0&&Ve(36,String(e));const a=s[r];return a.add(n),()=>{a.delete(n),s.every((o=>o.size===0))&&i.delete(e)}}registerMutationListener(e,n,r){const i=this.resolveRegisteredNodeAfterReplacements(this.getRegisteredNode(e)).klass,s=this._listeners.mutation;let a=s.get(n);a===void 0&&(a=new Set,s.set(n,a)),a.add(i);const o=r&&r.skipInitialization;return o!==void 0&&o||this.initializeMutationListener(n,i),()=>{a.delete(i),a.size===0&&s.delete(n)}}getRegisteredNode(e){const n=this._nodes.get(e.getType());return n===void 0&&Ve(37,e.name),n}resolveRegisteredNodeAfterReplacements(e){for(;e.replaceWithKlass;)e=this.getRegisteredNode(e.replaceWithKlass);return e}initializeMutationListener(e,n){const r=this._editorState,i=tee(r).get(n.getType());if(!i)return;const s=new Map;for(const a of i.keys())s.set(a,"created");s.size>0&&e(s,{dirtyLeaves:new Set,prevEditorState:r,updateTags:new Set(["registerMutationListener"])})}registerNodeTransformToKlass(e,n){const r=this.getRegisteredNode(e);return r.transforms.add(n),r}registerNodeTransform(e,n){const r=this.registerNodeTransformToKlass(e,n),i=[r],s=r.replaceWithKlass;if(s!=null){const a=this.registerNodeTransformToKlass(s,n);i.push(a)}return(function(a,o){const l=tee(a.getEditorState()),u=[];for(const c of o){const d=l.get(c);d&&u.push(d)}u.length!==0&&a.update((()=>{for(const c of u)for(const d of c.keys()){const h=hi(d);h&&h.markDirty()}}),a._pendingEditorState===null?{tag:Gw}:void 0)})(this,i.map((a=>a.klass.getType()))),()=>{i.forEach((a=>a.transforms.delete(n)))}}hasNode(e){return this._nodes.has(e.getType())}hasNodes(e){return e.every(this.hasNode.bind(this))}dispatchCommand(e,n){return at(this,e,n)}getDecorators(){return this._decorators}getRootElement(){return this._rootElement}getKey(){return this._key}setRootElement(e){const n=this._rootElement;if(e!==n){const r=Lg(this._config.theme,"root"),i=this._pendingEditorState||this._editorState;if(this._rootElement=e,V2e(this,n,e,i),n!==null&&(this._config.disableEvents||vbt(n),r!=null&&n.classList.remove(...r)),e!==null){const s=BB(e),a=e.style;a.userSelect="text",a.whiteSpace="pre-wrap",a.wordBreak="break-word",e.setAttribute("data-lexical-editor","true"),this._window=s,this._dirtyType=o0,s2e(this),this._updateTags.add(Gw),yc(this),this._config.disableEvents||(function(o,l){const u=o.ownerDocument,c=SC.get(u);(c===void 0||c<1)&&u.addEventListener("selectionchange",O2e),SC.set(u,(c||0)+1),o.__lexicalEditor=l;const d=N2e(o);for(let h=0;h<tL.length;h++){const[m,g]=tL[h],b=typeof g=="function"?v=>{AJ(v)||(TJ(v),(l.isEditable()||m==="click")&&g(v,l))}:v=>{if(AJ(v))return;TJ(v);const E=l.isEditable();switch(m){case"cut":return E&&at(l,wB,v);case"copy":return at(l,tA,v);case"paste":return E&&at(l,Q3,v);case"dragstart":return E&&at(l,v2e,v);case"dragover":return E&&at(l,E2e,v);case"dragend":return E&&at(l,mbt,v);case"focus":return E&&at(l,_2e,v);case"blur":return E&&at(l,x2e,v);case"drop":return E&&at(l,b2e,v)}};o.addEventListener(m,b),d.push((()=>{o.removeEventListener(m,b)}))}})(e,this),r!=null&&e.classList.add(...r)}else this._window=null,this._updateTags.add(Gw),yc(this);Tb("root",this,!1,e,n)}}getElementByKey(e){return this._keyToDOMMap.get(e)||null}getEditorState(){return this._editorState}setEditorState(e,n){e.isEmpty()&&Ve(38);let r=e;r._readOnly&&(r=j2e(e),r._selection=e._selection?e._selection.clone():null),i2e(this);
188const i=this._pendingEditorState,s=this._updateTags,a=n!==void 0?n.tag:null;i===null||i.isEmpty()||(a!=null&&s.add(a),yc(this)),this._pendingEditorState=r,this._dirtyType=o0,this._dirtyElements.set("root",!1),this._compositionKey=null,a!=null&&s.add(a),this._updating||yc(this)}parseEditorState(e,n){return(function(r,i,s){const a=RB(),o=Bi,l=la,u=Hi,c=i._dirtyElements,d=i._dirtyLeaves,h=i._cloneNotNeeded,m=i._dirtyType;i._dirtyElements=new Map,i._dirtyLeaves=new Set,i._cloneNotNeeded=new Set,i._dirtyType=0,Bi=a,la=!1,Hi=i,OB(null);try{const g=i._nodes;TB(r.root,g),s&&s(),a._readOnly=!0}catch(g){g instanceof Error&&i._onError(g)}finally{i._dirtyElements=c,i._dirtyLeaves=d,i._cloneNotNeeded=h,i._dirtyType=m,Bi=o,la=l,Hi=u}return a})(typeof e=="string"?JSON.parse(e):e,this,n)}read(e){return yc(this),this.getEditorState().read(e,{editor:this})}update(e,n){(function(r,i,s){r._updating?r._updates.push([i,s]):sA(r,i,s)})(this,e,n)}focus(e,n={}){const r=this._rootElement;r!==null&&(r.setAttribute("autocapitalize","off"),Ba(this,(()=>{const i=Xe(),s=Kn();i!==null?i.dirty||Vi(i.clone()):s.getChildrenSize()!==0&&(n.defaultSelection==="rootStart"?s.selectStart():s.selectEnd()),qbt("focus"),Gbt((()=>{r.removeAttribute("autocapitalize"),e&&e()}))})),this._pendingEditorState===null&&r.removeAttribute("autocapitalize"))}blur(){const e=this._rootElement;e!==null&&e.blur();const n=pl(this._window);n!==null&&n.removeAllRanges()}isEditable(){return this._editable}setEditable(e){this._editable!==e&&(this._editable=e,Tb("editable",this,!0,e))}toJSON(){return{editorState:this._editorState.toJSON()}}}lA.version="0.35.0+prod.esm";let oL=null;function OB(t){oL=t}let Hbt=1;function q2e(t,e){const n=kB(t,e);return n===void 0&&Ve(30,e),n}function kB(t,e){return t._nodes.get(e)}const Ubt=typeof queueMicrotask=="function"?queueMicrotask:t=>{Promise.resolve().then(t)};function WJ(t){return Mn(gu(t))}function IB(t){const e=document.activeElement;if(!jr(e))return!1;const n=e.nodeName;return Mn(gu(t))&&(n==="INPUT"||n==="TEXTAREA"||e.contentEditable==="true"&&uA(e)==null)}function gE(t,e,n){const r=t.getRootElement();try{return r!==null&&r.contains(e)&&r.contains(n)&&e!==null&&!IB(e)&&DB(e)===t}catch{return!1}}function MB(t){return t instanceof lA}function DB(t){let e=t;for(;e!=null;){const n=uA(e);if(MB(n))return n;e=yE(e)}return null}function uA(t){return t?t.__lexicalEditor:null}function $h(t){return M2e(t)||t.isToken()}function cc(t){return $h(t)||t.isSegmented()}function Yc(t){return i1(t)&&t.nodeType===jyt}function jbt(t){return i1(t)&&t.nodeType===zyt}function l0(t){let e=t;for(;e!=null;){if(Yc(e))return e;e=e.firstChild}return null}function RC(t,e,n){const r=ap[e];if(n!==null&&(t&r)==(n&r))return t;let i=t^r;return e==="subscript"?i&=-65:e==="superscript"?i&=-33:e==="lowercase"?(i&=-513,i&=-1025):e==="uppercase"?(i&=-257,i&=-1025):e==="capitalize"&&(i&=-257,i&=-513),i}function G2e(t){return Qe(t)||ou(t)||Mn(t)}function W2e(t,e){const n=(function(){const a=oL;return oL=null,a})();if((e=e||n&&n.__key)!=null)return void(t.__key=e);us(),B2e();const r=Pr(),i=Tf(),s=""+Hbt++;i._nodeMap.set(s,t),Me(t)?r._dirtyElements.set(s,!0):r._dirtyLeaves.add(s),r._cloneNotNeeded.add(s),r._dirtyType=t2e,t.__key=s}function Fh(t){const e=t.getParent();if(e!==null){const n=t.getWritable(),r=e.getWritable(),i=t.getPreviousSibling(),s=t.getNextSibling(),a=s!==null?s.__key:null,o=i!==null?i.__key:null,l=i!==null?i.getWritable():null,u=s!==null?s.getWritable():null;i===null&&(r.__first=a),s===null&&(r.__last=o),l!==null&&(l.__next=a),u!==null&&(u.__prev=o),n.__prev=null,n.__next=null,n.__parent=null,r.__size--}}function NC(t){B2e();const e=t.getLatest(),n=e.__parent,r=Tf(),i=Pr(),s=r._nodeMap,a=i._dirtyElements;n!==null&&(function(l,u,c){let d=l;for(;d!==null;){if(c.has(d))return;const h=u.get(d);if(h===void 0)break;c.set(d,!1),d=h.__parent}})(n,s,a);const o=e.__key;i._dirtyType=t2e,Me(t)?a.set(o,!0):i._dirtyLeaves.add(o)}function Zi(t){us();const e=Pr(),n=e._compositionKey;if(t!==n){if(e._compositionKey=t,n!==null){const r=hi(n);r!==null&&r.getWritable()}if(t!==null){const r=hi(t);r!==null&&r.getWritable()}}}
188function jd(){return pE()?null:Pr()._compositionKey}function hi(t,e){const n=(e||Tf())._nodeMap.get(t);return n===void 0?null:n}function Y2e(t,e){const n=cA(t,Pr());return n!==void 0?hi(n,e):null}function cA(t,e){return t[`__lexicalKey_${e._key}`]}function gu(t,e){let n=t;for(;n!=null;){const r=Y2e(n,e);if(r!==null)return r;n=yE(n)}return null}function K2e(t){const e=t._decorators,n=Object.assign({},e);return t._pendingDecorators=n,n}function YJ(t){return t.read((()=>Kn().getTextContent()))}function Kn(){return X2e(Tf())}function X2e(t){return t._nodeMap.get("root")}function Vi(t){us();const e=Tf();t!==null&&(t.dirty=!0,t.setCachedNodes(null)),e._selection=t}function ug(t){const e=Pr(),n=(function(r,i){let s=r;for(;s!=null;){const a=cA(s,i);if(a!==void 0)return a;s=yE(s)}return null})(t,e);return n===null?t===e.getRootElement()?hi("root"):null:hi(n)}function Q2e(t){return/[\uD800-\uDBFF][\uDC00-\uDFFF]/g.test(t)}function PB(t){const e=[];let n=t;for(;n!==null;)e.push(n),n=n._parentEditor;return e}function Z2e(){return Math.random().toString(36).replace(/[^a-z]+/g,"").substring(0,5)}function J2e(t){return Yc(t)?t.nodeValue:null}function LB(t,e,n){const r=pl(Oo(e));if(r===null)return;const i=r.anchorNode;let{anchorOffset:s,focusOffset:a}=r;if(i!==null){let o=J2e(i);const l=gu(i);if(o!==null&&Qe(l)){if(o===K3&&n){const u=n.length;o=n,s=u,a=u}o!==null&&$B(l,o,s,a,t)}}}function $B(t,e,n,r,i){let s=t;if(s.isAttached()&&(i||!s.isDirty())){const a=s.isComposing();let o=e;(a||i)&&e[e.length-1]===K3&&(o=e.slice(0,-1));const l=s.getTextContent();if(i||o!==l){if(o===""){if(Zi(null),Iv||a0||mC)s.remove();else{const b=Pr();setTimeout((()=>{b.update((()=>{s.isAttached()&&s.remove()}))}),20)}return}const u=s.getParent(),c=zp(),d=s.getTextContentSize(),h=jd(),m=s.getKey();if(s.isToken()||h!==null&&m===h&&!a||He(c)&&(u!==null&&!u.canInsertTextBefore()&&c.anchor.offset===0||c.anchor.key===t.__key&&c.anchor.offset===0&&!s.canInsertTextBefore()&&!a||c.focus.key===t.__key&&c.focus.offset===d&&!s.canInsertTextAfter()&&!a))return void s.markDirty();const g=Xe();if(!He(g)||n===null||r===null)return void KJ(s,o,g);if(g.setTextNodeRange(s,n,s,r),s.isSegmented()){const b=xr(s.getTextContent());s.replace(b),s=b}KJ(s,o,g)}}}function KJ(t,e,n){if(t.setTextContent(e),He(n)){const r=t.getKey();for(const i of["anchor","focus"]){const s=n[i];s.type==="text"&&s.key===r&&(s.offset=uu(t,s.offset,"clamp"))}}}function Gx(t,e,n){const r=e[n]||!1;return r==="any"||r===t[n]}function zbt(t,e){return Gx(t,e,"altKey")&&Gx(t,e,"ctrlKey")&&Gx(t,e,"shiftKey")&&Gx(t,e,"metaKey")}function jn(t,e,n){return zbt(t,n)&&t.key.toLowerCase()===e.toLowerCase()}const lc={ctrlKey:!ql,metaKey:ql},XJ={altKey:ql,ctrlKey:!ql};function QJ(t){return t.key==="Backspace"}function ZJ(t){return jn(t,"a",lc)}function Vbt(t){const e=Kn();if(He(t)){const n=t.anchor,r=t.focus,i=n.getNode().getTopLevelElementOrThrow().getParentOrThrow();return n.set(i.getKey(),0,"element"),r.set(i.getKey(),i.getChildrenSize(),"element"),op(t),t}{const n=e.select(0,e.getChildrenSize());return Vi(op(n)),n}}function Lg(t,e){t.__lexicalClassNameCache===void 0&&(t.__lexicalClassNameCache={});const n=t.__lexicalClassNameCache,r=n[e];if(r!==void 0)return r;const i=t[e];if(typeof i=="string"){const s=e2e(i);return n[e]=s,s}return i}function FB(t,e,n,r,i){if(n.size===0)return;const s=r.__type,a=r.__key,o=e.get(s);o===void 0&&Ve(33,s);const l=o.klass;let u=t.get(l);u===void 0&&(u=new Map,t.set(l,u));const c=u.get(a),d=c==="destroyed"&&i==="created";(c===void 0||d)&&u.set(a,d?"updated":i)}function JJ(t,e,n){const r=t.getParent();let i=n,s=t;return r!==null&&(e&&n===0?(i=s.getIndexWithinParent(),s=r):e||n!==s.getChildrenSize()||(i=s.getIndexWithinParent()+1,s=r)),s.getChildAtIndex(e?i-1:i)}function lL(t,e){const n=t.offset;if(t.type==="element")return JJ(t.getNode(),e,n);{const r=t.getNode();if(e&&n===0||!e&&n===r.getTextContentSize()){const i=e?r.getPreviousSibling():r.getNextSibling();return i===null?JJ(r.getParentOrThrow(),e,r.getIndexWithinParent()+(e?0:1)):i}}return null}function eEe(t){const e=Oo(t).event,n=e&&e.inputType;return n==="insertFromPaste"||n==="insertFromPasteAsQuotation"}function at(t,e,n){return(function(r,i,s){const a=PB(r);for(let o=4;o>=0;o--)for(let l=0;l<a.length;l++){const u=a[l],c=u._commands.get(i);if(c!==void 0){const d=c[o];if(d!==void 0){const h=Array.from(d),m=h.length;let g=!1;if(Ba(u,(()=>{for(let b=0;b<m;b++)if(h[b](s,r))return void(g=!0)})),g)return g}}}return!1})(t,e,n)}function dA(t){return!pi(t)&&!t.isLastChild()&&!t.isInline()}function cp(t,e){const n=t._keyToDOMMap.get(e);return n===void 0&&Ve(75,e),n}function yE(t){const e=t.assignedSlot||t.parentElement;return dL(e)?e.host:e}function tEe(t){return jbt(t)?t:jr(t)?t.ownerDocument:null}function qbt(t){us(),Pr()._updateTags.add(t)}function Gbt(t){us(),Pr()._deferred.push(t)}function uL(t,e){let n=t.getParent();for(;n!==null;){if(n.is(e))return!0;n=n.getParent()}return!1}function BB(t){const e=tEe(t);return e?e.defaultView:null}function Oo(t){const e=t._window;return e===null&&Ve(78),e}function Wbt(t){let e=t.getParentOrThrow();for(;e!==null;){if(ms(e))return e;e=e.getParentOrThrow()}return e}function ms(t){return pi(t)||Me(t)&&t.isShadowRoot()}function Ybt(t){const e=t.constructor.clone(t);return W2e(e,null),e.afterCloneFrom(t),e}function Au(t){const e=Pr(),n=t.getType(),r=kB(e,n);r===void 0&&Ve(200,t.constructor.name,n);const{replace:i,replaceWithKlass:s}=r;if(i!==null){const a=i(t),o=a.constructor;return s!==null?a instanceof s||Ve(201,s.name,s.getType(),o.name,o.getType(),t.constructor.name,n):a instanceof t.constructor&&o!==t.constructor||Ve(202,o.name,o.getType(),t.constructor.name,n),a.__key===t.__key&&Ve(203,t.constructor.name,n,o.name,o.getType()),a}return t}function mO(t,e){!pi(t.getParent())||Me(e)||Mn(e)||Ve(99)}function Kbt(t){const e=hi(t);return e===null&&Ve(63,t),e}function gO(t){return(Mn(t)||Me(t)&&!t.canBeEmpty())&&!t.isInline()}function cL(t,e,n){n.style.removeProperty("caret-color"),e._blockCursorElement=null;const r=t.parentElement;r!==null&&r.removeChild(t)}function pl(t){return El?(t||window).getSelection():null}function Xbt(t){const e=BB(t);return e?e.getSelection():null}function nEe(t){return jr(t)&&t.tagName==="A"}function jr(t){return i1(t)&&t.nodeType===Uyt}function i1(t){return typeof t=="object"&&t!==null&&"nodeType"in t&&typeof t.nodeType=="number"}function dL(t){return i1(t)&&t.nodeType===Vyt}function fL(t){const e=new RegExp(/^(a|abbr|acronym|b|cite|code|del|em|i|ins|kbd|label|mark|output|q|ruby|s|samp|span|strong|sub|sup|time|u|tt|var|#text)$/,"i");return t.nodeName.match(e)!==null}function OC(t){const e=new RegExp(/^(address|article|aside|blockquote|canvas|dd|div|dl|dt|fieldset|figcaption|figure|footer|form|h1|h2|h3|h4|h5|h6|header|hr|li|main|nav|noscript|ol|p|pre|section|table|td|tfoot|ul|video)$/,"i");return t.nodeName.match(e)!==null}function Eo(t){if(Mn(t)&&!t.isInline())return!0;
vendor: 8,560 bytes, line 188
188if(!Me(t)||ms(t))return!1;const e=t.getFirstChild(),n=e===null||ou(e)||Qe(e)||e.isInline();return!t.isInline()&&t.canBeEmpty()!==!1&&n}function yO(t,e){let n=t;for(;n!==null&&n.getParent()!==null&&!e(n);)n=n.getParentOrThrow();return e(n)?n:null}function HB(){return Pr()}const eee=new WeakMap,Qbt=new Map;function tee(t){if(!t._readOnly&&t.isEmpty())return Qbt;t._readOnly||Ve(192);let e=eee.get(t);return e||(e=(function(n){const r=new Map;for(const[i,s]of n._nodeMap){const a=s.__type;let o=r.get(a);o||(o=new Map,r.set(a,o)),o.set(i,s)}return r})(t),eee.set(t,e)),e}function UB(t){const e=t.constructor.clone(t);return e.afterCloneFrom(t),e}function rEe(t,e){const n=parseInt(t.style.paddingInlineStart,10)||0,r=Math.round(n/40);e.setIndent(r)}function Zbt(t){return t.__lexicalUnmanaged===!0}function ky(t,e){return(function(n,r){return Object.prototype.hasOwnProperty.call(n,r)})(t,e)&&t[e]!==n1[e]}function jB(t){const e=pJ in t.prototype?t.prototype[pJ]():void 0,n=(function(a){return a===AB||a===No||a===n1})(t),r=!n&&ky(t,"getType")?t.getType():void 0;let i,s=r;if(e)if(r)i=e[r];else for(const[a,o]of Object.entries(e))s=a,i=o;if(!n&&s&&(ky(t,"getType")||(t.getType=()=>s),ky(t,"clone")||(t.clone=a=>(OB(a),new t)),ky(t,"importJSON")||(t.importJSON=i&&i.$importJSON||(a=>new t().updateFromJSON(a))),!ky(t,"importDOM")&&i)){const{importDOM:a}=i;a&&(t.importDOM=()=>a)}return{ownNodeConfig:i,ownNodeType:s}}const Jbt={next:"previous",previous:"next"};class zB{constructor(e){this.origin=e}[Symbol.iterator](){return sEe({hasNext:u0,initial:this.getAdjacentCaret(),map:e=>e,step:e=>e.getAdjacentCaret()})}getAdjacentCaret(){return ki(this.getNodeAtCaret(),this.direction)}getSiblingCaret(){return ki(this.origin,this.direction)}remove(){const e=this.getNodeAtCaret();return e&&e.remove(),this}replaceOrInsert(e,n){const r=this.getNodeAtCaret();return e.is(this.origin)||e.is(r)||(r===null?this.insert(e):r.replace(e,n)),this}splice(e,n,r="next"){const i=r===this.direction?n:Array.from(n).reverse();let s=this;const a=this.getParentAtCaret(),o=new Map;for(let l=s.getAdjacentCaret();l!==null&&o.size<e;l=l.getAdjacentCaret()){const u=l.origin.getWritable();o.set(u.getKey(),u)}for(const l of i){if(o.size>0){const u=s.getNodeAtCaret();if(u){if(o.delete(u.getKey()),o.delete(l.getKey()),!(u.is(l)||s.origin.is(l))){const c=l.getParent();c&&c.is(a)&&l.remove(),u.replace(l)}}else u===null&&Ve(263,Array.from(o).join(" "))}else s.insert(l);s=ki(l,this.direction)}for(const l of o.values())l.remove();return this}}class Fv extends zB{type="child";getLatest(){const e=this.origin.getLatest();return e===this.origin?this:ko(e,this.direction)}getParentCaret(e="root"){return ki(VB(this.getParentAtCaret(),e),this.direction)}getFlipped(){const e=Vp(this.direction);return ki(this.getNodeAtCaret(),e)||ko(this.origin,e)}getParentAtCaret(){return this.origin}getChildCaret(){return this}isSameNodeCaret(e){return e instanceof Fv&&this.direction===e.direction&&this.origin.is(e.origin)}isSamePointCaret(e){return this.isSameNodeCaret(e)}}const evt={root:pi,shadowRoot:ms};function Vp(t){return Jbt[t]}function VB(t,e="root"){return evt[e](t)?null:t}class dp extends zB{type="sibling";getLatest(){const e=this.origin.getLatest();return e===this.origin?this:ki(e,this.direction)}getSiblingCaret(){return this}getParentAtCaret(){return this.origin.getParent()}getChildCaret(){return Me(this.origin)?ko(this.origin,this.direction):null}getParentCaret(e="root"){return ki(VB(this.getParentAtCaret(),e),this.direction)}getFlipped(){const e=Vp(this.direction);return ki(this.getNodeAtCaret(),e)||ko(this.origin.getParentOrThrow(),e)}isSamePointCaret(e){return e instanceof dp&&this.direction===e.direction&&this.origin.is(e.origin)}isSameNodeCaret(e){return(e instanceof dp||e instanceof fp)&&this.direction===e.direction&&this.origin.is(e.origin)}}class fp extends zB{type="text";constructor(e,n){super(e),this.offset=n}getLatest(){const e=this.origin.getLatest();return e===this.origin?this:hp(e,this.direction,this.offset)}getParentAtCaret(){return this.origin.getParent()}getChildCaret(){return null}getParentCaret(e="root"){return ki(VB(this.getParentAtCaret(),e),this.direction)}getFlipped(){return hp(this.origin,Vp(this.direction),this.offset)}isSamePointCaret(e){return e instanceof fp&&this.direction===e.direction&&this.origin.is(e.origin)&&this.offset===e.offset}isSameNodeCaret(e){return(e instanceof dp||e instanceof fp)&&this.direction===e.direction&&this.origin.is(e.origin)}getSiblingCaret(){return ki(this.origin,this.direction)}}function lu(t){return t instanceof fp}function u0(t){return t instanceof dp}function Co(t){return t instanceof Fv}const tvt={next:class extends fp{direction="next";getNodeAtCaret(){return this.origin.getNextSibling()}insert(t){return this.origin.insertAfter(t),this}},previous:class extends fp{direction="previous";getNodeAtCaret(){return this.origin.getPreviousSibling()}insert(t){return this.origin.insertBefore(t),this}}},nvt={next:class extends dp{direction="next";getNodeAtCaret(){return this.origin.getNextSibling()}insert(t){return this.origin.insertAfter(t),this}},previous:class extends dp{direction="previous";getNodeAtCaret(){return this.origin.getPreviousSibling()}insert(t){return this.origin.insertBefore(t),this}}},rvt={next:class extends Fv{direction="next";getNodeAtCaret(){return this.origin.getFirstChild()}insert(t){return this.origin.splice(0,0,[t]),this}},previous:class extends Fv{direction="previous";getNodeAtCaret(){return this.origin.getLastChild()}insert(t){return this.origin.splice(this.origin.getChildrenSize(),0,[t]),this}}};function ki(t,e){return t?new nvt[e](t):null}function hp(t,e,n){return t?new tvt[e](t,uu(t,n)):null}function uu(t,e,n="error"){const r=t.getTextContentSize();let i=e==="next"?r:e==="previous"?0:e;return(i<0||i>r)&&(n!=="clamp"&&(function(s,...a){const o=new URL("https://lexical.dev/docs/error"),l=new URLSearchParams;l.append("code",s);for(const u of a)l.append("v",u);o.search=l.toString(),console.warn(`Minified Lexical warning #${s}; visit ${o.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)})(284,String(e),String(r),t.getKey()),i=i<0?0:r),i}function nee(t,e){return new svt(t,e)}function ko(t,e){return Me(t)?new rvt[e](t):null}function ivt(t){return t&&t.getChildCaret()||t}function fA(t){return t&&ivt(t.getAdjacentCaret())}class qB{type="node-caret-range";constructor(e,n,r){this.anchor=e,this.focus=n,this.direction=r}getLatest(){const e=this.anchor.getLatest(),n=this.focus.getLatest();return e===this.anchor&&n===this.focus?this:new qB(e,n,this.direction)}isCollapsed(){return this.anchor.isSamePointCaret(this.focus)}getTextSlices(){const e=i=>{const s=this[i].getLatest();return lu(s)?(function(a,o){const{direction:l,origin:u}=a,c=uu(u,o==="focus"?Vp(l):l);return nee(a,c-a.offset)})(s,i):null},n=e("anchor"),r=e("focus");if(n&&r){const{caret:i}=n,{caret:s}=r;if(i.isSameNodeCaret(s))return[nee(i,s.offset-i.offset),null]}return[n,r]}iterNodeCarets(e="root"){const n=lu(this.anchor)?this.anchor.getSiblingCaret():this.anchor.getLatest(),r=this.focus.getLatest(),i=lu(r),s=a=>a.isSameNodeCaret(r)?null:fA(a)||a.getParentCaret(e);return sEe({hasNext:a=>a!==null&&!(i&&r.isSameNodeCaret(a)),initial:n.isSameNodeCaret(r)?null:s(n),map:a=>a,step:s})}[Symbol.iterator](){return this.iterNodeCarets("root")}}class svt{type="slice";constructor(e,n){this.caret=e,this.distance=n}getSliceIndices(){const{distance:e,caret:{offset:n}}=this,r=n+e;return r<n?[r,n]:[n,r]}getTextContent(){const[e,n]=this.getSliceIndices();return this.caret.origin.getTextContent().slice(e,n)}getTextContentSize(){return Math.abs(this.distance)}removeTextSlice(){const{caret:{origin:e,direction:n}}=this,[r,i]=this.getSliceIndices(),s=e.getTextContent();return hp(e.setTextContent(s.slice(0,r)+s.slice(i)),n,r)}}function GB(t){return df(t,ki(Kn(),t.direction))}function iEe(t){return df(t,t)}function df(t,e){return t.direction!==e.direction&&Ve(265),new qB(t,e,t.direction)}function sEe(t){const{initial:e,hasNext:n,step:r,map:i}=t;let s=e;return{[Symbol.iterator](){return this},next(){if(!n(s))return{done:!0,value:void 0};const a={done:!1,value:i(s)};return s=r(s),a}}}function aEe(t,e){const n=Ww(t.origin,e.origin);switch(n===null&&Ve(275,t.origin.getKey(),e.origin.getKey()),n.type){case"same":{const r=t.type==="text",i=e.type==="text";return r&&i?(function(s,a){return Math.sign(s-a)})(t.offset,e.offset):t.type===e.type?0:r?-1:i?1:t.type==="child"?-1:1}case"ancestor":return t.type==="child"?-1:1;
188case"descendant":return e.type==="child"?1:-1;case"branch":return oEe(n)}}function oEe(t){const{a:e,b:n}=t,r=e.__key,i=n.__key;let s=e,a=n;for(;s&&a;s=s.getNextSibling(),a=a.getNextSibling()){if(s.__key===i)return-1;if(a.__key===r)return 1}return s===null?1:-1}function Wx(t,e){return e.is(t)}function ree(t){return Me(t)?[t.getLatest(),null]:[t.getParent(),t.getLatest()]}function Ww(t,e){if(t.is(e))return{commonAncestor:t,type:"same"};const n=new Map;for(let[r,i]=ree(t);r;i=r,r=r.getParent())n.set(r,i);for(let[r,i]=ree(e);r;i=r,r=r.getParent()){const s=n.get(r);if(s!==void 0)return s===null?(Wx(t,r)||Ve(276),{commonAncestor:r,type:"ancestor"}):i===null?(Wx(e,r)||Ve(277),{commonAncestor:r,type:"descendant"}):((Me(s)||Wx(t,s))&&(Me(i)||Wx(e,i))&&r.is(s.getParent())&&r.is(i.getParent())||Ve(278),{a:s,b:i,commonAncestor:r,type:"branch"})}return null}function yu(t,e){const{type:n,key:r,offset:i}=t,s=Kbt(t.key);return n==="text"?(Qe(s)||Ve(266,s.getType(),r),hp(s,e,i)):(Me(s)||Ve(267,s.getType(),r),ovt(s,t.offset,e))}function pp(t,e){const{origin:n,direction:r}=e,i=r==="next";lu(e)?t.set(n.getKey(),e.offset,"text"):u0(e)?Qe(n)?t.set(n.getKey(),uu(n,r),"text"):t.set(n.getParentOrThrow().getKey(),n.getIndexWithinParent()+(i?1:0),"element"):(Co(e)&&Me(n)||Ve(268),t.set(n.getKey(),i?0:n.getChildrenSize(),"element"))}function lEe(t){const e=Xe(),n=He(e)?e:rA();return Yw(n,t),Vi(n),n}function Yw(t,e){pp(t.anchor,e.anchor),pp(t.focus,e.focus)}function iee(t){const{anchor:e,focus:n}=t,r=yu(e,"next"),i=yu(n,"next"),s=aEe(r,i)<=0?"next":"previous";return df(Hc(r,s),Hc(i,s))}function bE(t){const{direction:e,origin:n}=t,r=ki(n,Vp(e)).getNodeAtCaret();return r?ki(r,e):ko(n.getParentOrThrow(),e)}function see(t,e="root"){const n=[t];for(let r=Co(t)?t.getParentCaret(e):t.getSiblingCaret();r!==null;r=r.getParentCaret(e))n.push(bE(r));return n}function bO(t){return!!t&&t.origin.isAttached()}function avt(t,e="removeEmptySlices"){if(t.isCollapsed())return t;const n="root",r="next";let i=e;const s=cEe(t,r),a=see(s.anchor,n),o=see(s.focus.getFlipped(),n),l=new Set,u=[];for(const g of s.iterNodeCarets(n))if(Co(g))l.add(g.origin.getKey());else if(u0(g)){const{origin:b}=g;Me(b)&&!l.has(b.getKey())||u.push(b)}for(const g of u)g.remove();for(const g of s.getTextSlices()){if(!g)continue;const{origin:b}=g.caret,v=b.getTextContentSize(),E=bE(ki(b,r)),x=b.getMode();if(Math.abs(g.distance)===v&&i==="removeEmptySlices"||x==="token"&&g.distance!==0)E.remove();else if(g.distance!==0){i="removeEmptySlices";let _=g.removeTextSlice();const S=g.caret.origin;if(x==="segmented"){const A=_.origin,R=xr(A.getTextContent()).setStyle(A.getStyle()).setFormat(A.getFormat());E.replaceOrInsert(R),_=hp(R,r,_.offset)}S.is(a[0].origin)&&(a[0]=_),S.is(o[0].origin)&&(o[0]=_.getFlipped())}}let c,d;for(const g of a)if(bO(g)){c=za(g);break}for(const g of o)if(bO(g)){d=za(g);break}const h=(function(g,b,v){if(!g||!b)return null;const E=g.getParentAtCaret(),x=b.getParentAtCaret();if(!E||!x)return null;const _=E.getParents().reverse();_.push(E);const S=x.getParents().reverse();S.push(x);const A=Math.min(_.length,S.length);let R;for(R=0;R<A&&_[R]===S[R];R++);const T=(D,P)=>{let B;for(let L=R;L<D.length;L++){const $=D[L];if(ms($))return;!B&&P($)&&(B=$)}return B},O=T(_,Eo),I=O&&T(S,(D=>v.has(D.getKey())&&Eo(D)));return O&&I?[O,I]:null})(c,d,l);if(h){const[g,b]=h;ko(g,"previous").splice(0,b.getChildren()),b.remove()}const m=[c,d,...a,...o].find(bO);if(m)return iEe(Hc(za(m),t.direction));Ve(269,JSON.stringify(a.map((g=>g.origin.__key))))}function za(t){const e=(function(i){let s=i;for(;Co(s);){const a=fA(s);if(!Co(a))break;s=a}return s})(t.getLatest()),{direction:n}=e;if(Qe(e.origin))return lu(e)?e:hp(e.origin,n,n);const r=e.getAdjacentCaret();return u0(r)&&Qe(r.origin)?hp(r.origin,n,Vp(n)):e}function uEe(t){return lu(t)&&t.offset!==uu(t.origin,t.direction)}function Hc(t,e){return t.direction===e?t:t.getFlipped()}function cEe(t,e){return t.direction===e?t:df(Hc(t.focus,e),Hc(t.anchor,e))}function ovt(t,e,n){let r=ko(t,"next");for(let i=0;i<e;i++){const s=r.getAdjacentCaret();if(s===null)break;r=s}return Hc(r,n)}function lvt(t){const{origin:e,offset:n,direction:r}=t;if(n===uu(e,r))return t.getSiblingCaret();if(n===uu(e,Vp(r)))return bE(t.getSiblingCaret());const[i]=e.splitText(n);return Qe(i)||Ve(281),Hc(ki(i,"next"),r)}function uvt(t,e){return!0}function cvt(t,{$copyElementNode:e=Ybt,$splitTextPointCaretNext:n=lvt,rootMode:r="shadowRoot",$shouldSplit:i=uvt}={}){if(lu(t))return n(t);const s=t.getParentCaret(r);if(s){const{origin:a}=s;if(Co(t)&&(!a.canBeEmpty()||!i(a,"first")))return bE(s);const o=(function(l){const u=[];for(let c=l.getAdjacentCaret();c;c=c.getAdjacentCaret())u.push(c.origin);return u})(t);(o.length>0||a.canBeEmpty()&&i(a,"last"))&&s.insert(e(a).splice(0,0,o))}return s}function dvt(t,...e){const n=new URL("https://lexical.dev/docs/error"),r=new URLSearchParams;r.append("code",t);for(const i of e)r.append("v",i);throw n.search=r.toString(),Error(`Minified Lexical error #${t}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}const hL=new Map;function dEe(t){const e={};if(!t)return e;const n=t.split(";");for(const r of n)if(r!==""){const[i,s]=r.split(/:([^]+)/);i&&s&&(e[i.trim()]=s.trim())}return e}function aee(t){let e=hL.get(t);return e===void 0&&(e=dEe(t),hL.set(t,e)),e}function fEe(t){const e=HB().getElementByKey(t.getKey());if(e===null)return null;const n=e.ownerDocument.defaultView;return n===null?null:n.getComputedStyle(e)}function hEe(t){return fEe(pi(t)?t:t.getParentOrThrow())}function oee(t){const e=hEe(t);return e!==null&&e.direction==="rtl"}function pEe(t,e){const n=t.getStartEndPoints();if(e.isSelected(t)&&!cc(e)&&n!==null){const[r,i]=n,s=t.isBackward(),a=r.getNode(),o=i.getNode(),l=e.is(a),u=e.is(o);if(l||u){const[c,d]=sL(t),h=a.is(o),m=e.is(s?o:a),g=e.is(s?a:o);let b,v=0;h?(v=c>d?d:c,b=c>d?c:d):m?(v=s?d:c,b=void 0):g&&(v=0,b=s?c:d),e.__text=e.__text.slice(v,b)}}return e}function lee(t){if(t.type==="text")return t.offset===t.getNode().getTextContentSize();const e=t.getNode();return Me(e)||dvt(177),t.offset===e.getChildrenSize()}function fvt(t){const e=t.getStyle(),n=dEe(e);hL.set(e,n)}function hvt(t,e){const n=t.getFormatType(),r=t.getIndent();n!==e.getFormatType()&&e.setFormat(n),r!==e.getIndent()&&e.setIndent(r)}function pvt(t,e,n=hvt){if(t===null)return;const r=t.getStartEndPoints(),i=new Map;let s=null;if(r){const[a,o]=r;s=rA(),s.anchor.set(a.key,a.offset,a.type),s.focus.set(o.key,o.offset,o.type);const l=vO(a.getNode(),Eo),u=vO(o.getNode(),Eo);Me(l)&&i.set(l.getKey(),l),Me(u)&&i.set(u.getKey(),u)}for(const a of t.getNodes())if(Me(a)&&Eo(a))i.set(a.getKey(),a);else if(r===null){const o=vO(a,Eo);Me(o)&&i.set(o.getKey(),o)}
188for(const[a,o]of i){const l=e();n(o,l),o.replace(l,!0),s&&(a===s.anchor.key&&s.anchor.set(l.getKey(),s.anchor.offset,s.anchor.type),a===s.focus.key&&s.focus.set(l.getKey(),s.focus.offset,s.focus.type))}s&&t.is(Xe())&&Vi(s)}function mEe(t){const e=gEe(t);return e!==null&&e.writingMode==="vertical-rl"}function gEe(t){const e=t.anchor.getNode();return Me(e)?fEe(e):hEe(e)}function uee(t,e){let n=mEe(t)?!e:e;yEe(t)&&(n=!n);const r=yu(t.focus,n?"previous":"next");if(uEe(r))return!1;for(const i of GB(r)){if(Co(i))return!i.origin.isInline();if(!Me(i.origin)){if(Mn(i.origin))return!0;break}}return!1}function mvt(t,e,n,r){t.modify(e?"extend":"move",n,r)}function yEe(t){const e=gEe(t);return e!==null&&e.direction==="rtl"}function cee(t,e,n){const r=yEe(t);let i;i=mEe(t)||r?!n:n,mvt(t,e,i,"character")}function vO(t,e){let n=t;for(;n!==null&&n.getParent()!==null&&!e(n);)n=n.getParentOrThrow();return e(n)?n:null}function bEe(t,...e){const n=new URL("https://lexical.dev/docs/error"),r=new URLSearchParams;r.append("code",t);for(const i of e)r.append("v",i);throw n.search=r.toString(),Error(`Minified Lexical error #${t}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}const hA=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0,gvt=hA&&"documentMode"in document?document.documentMode:null,yvt=hA&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent);!(!hA||!("InputEvent"in window)||gvt)&&"getTargetRanges"in new window.InputEvent("input");function vEe(...t){const e=[];for(const n of t)if(n&&typeof n=="string")for(const[r]of n.matchAll(/\S+/g))e.push(r);return e}function _l(...t){return()=>{for(let e=t.length-1;e>=0;e--)t[e]();t.length=0}}const bvt=hA,vvt=yvt;function pA(t,...e){const n=vEe(...e);n.length>0&&t.classList.add(...n)}function EEe(t,...e){const n=vEe(...e);n.length>0&&t.classList.remove(...n)}function _Ee(t,e){let n=t;for(;n!=null;){if(n instanceof e)return n;n=n.getParent()}return null}function pL(t){const e=ll(t,(n=>Me(n)&&!n.isInline()));return Me(e)||bEe(4,t.__key),e}const ll=(t,e)=>{let n=t;for(;n!==Kn()&&n!=null;){if(e(n))return n;n=n.getParent()}return null};function Evt(t){const e=Xe()||zp();let n;if(He(e))n=yu(e.focus,"next");else{if(e!=null){const a=e.getNodes(),o=a[a.length-1];o&&(n=ki(o,"next"))}n=n||ko(Kn(),"previous").getFlipped().insert(ti())}const r=_vt(t,n),i=fA(r),s=Co(i)?za(i):r;return lEe(iEe(s)),t.getLatest()}function _vt(t,e,n){let r=Hc(e,"next");for(let i=r;i;i=cvt(i,n))r=i;return lu(r)&&bEe(283),r.insert(t.isInline()?ti().append(t):t),Hc(ki(t.getLatest(),"next"),e.direction)}function xvt(t,e){const n=e();return t.replace(n),n.append(t),n}function zd(t,e){return t!==null&&Object.getPrototypeOf(t).constructor.name===e.name}function wvt(t,e){const n=[];for(let r=0;r<t.length;r++){const i=e(t[r]);i!==null&&n.push(i)}return n}let EO=!(vvt||!bvt)&&void 0;function Svt(t){let e=1;if((function(){if(EO===void 0){const n=document.createElement("div");n.style.cssText="position: absolute; opacity: 0; width: 100px; left: -1000px;",document.body.appendChild(n);const r=n.getBoundingClientRect();n.style.setProperty("zoom","2"),EO=n.getBoundingClientRect().width===r.width,document.body.removeChild(n)}return EO})())for(;t;)e*=Number(window.getComputedStyle(t).getPropertyValue("zoom")),t=t.parentElement;return e}const Yx=0,mL=1,gL=2,Go=0,Cvt=1,dee=2,Tvt=3,Avt=4;function Rvt(t,e,n,r,i){if(t===null||n.size===0&&r.size===0&&!i)return Go;const s=e._selection,a=t._selection;if(i)return Cvt;if(!(He(s)&&He(a)&&a.isCollapsed()&&s.isCollapsed()))return Go;const o=(function(E,x,_){const S=E._nodeMap,A=[];for(const R of x){const T=S.get(R);T!==void 0&&A.push(T)}for(const[R,T]of _){if(!T)continue;const O=S.get(R);O===void 0||pi(O)||A.push(O)}return A})(e,n,r);if(o.length===0)return Go;if(o.length>1){const E=e._nodeMap,x=E.get(s.anchor.key),_=E.get(a.anchor.key);return x&&_&&!t._nodeMap.has(x.__key)&&Qe(x)&&x.__text.length===1&&s.anchor.offset===1?dee:Go}const l=o[0],u=t._nodeMap.get(l.__key);if(!Qe(u)||!Qe(l)||u.__mode!==l.__mode)return Go;const c=u.__text,d=l.__text;if(c===d)return Go;const h=s.anchor,m=a.anchor;if(h.key!==m.key||h.type!=="text")return Go;const g=h.offset,b=m.offset,v=d.length-c.length;return v===1&&b===g-1?dee:v===-1&&b===g+1?Tvt:v===-1&&b===g?Avt:Go}function Nvt(t,e){let n=Date.now(),r=Go;return(i,s,a,o,l,u)=>{const c=Date.now();if(u.has(aL))return r=Go,n=c,gL;const d=Rvt(i,s,o,l,t.isComposing()),h=(()=>{const m=a===null||a.editor===t,g=u.has(Ibt);if(!g&&m&&u.has(Gw))return Yx;if(i===null)return mL;const b=s._selection;return o.size>0||l.size>0?g===!1&&d!==Go&&d===r&&c<n+e&&m||o.size===1&&(function(v,E,x){const _=E._nodeMap.get(v),S=x._nodeMap.get(v),A=E._selection,R=x._selection;return!(He(A)&&He(R)&&A.anchor.type==="element"&&A.focus.type==="element"&&R.anch
188or.type==="text"&&R.focus.type==="text"||!Qe(_)||!Qe(S)||_.__parent!==S.__parent)&&JSON.stringify(E.read((()=>_.exportJSON())))===JSON.stringify(x.read((()=>S.exportJSON())))})(Array.from(o)[0],i,s)?Yx:mL:b!==null?Yx:gL})();return n=c,r=d,h}}function fee(t){t.undoStack=[],t.redoStack=[],t.current=null}function Ovt(t,e,n){const r=Nvt(t,n);return _l(t.registerCommand(Z3,(()=>((function(s,a){const o=a.redoStack,l=a.undoStack;if(l.length!==0){const u=a.current,c=l.pop();u!==null&&(o.push(u),s.dispatchCommand(Qy,!0)),l.length===0&&s.dispatchCommand(Zy,!1),a.current=c||null,c&&c.editor.setEditorState(c.editorState,{tag:aL})}})(t,e),!0)),xn),t.registerCommand(J3,(()=>((function(s,a){const o=a.redoStack,l=a.undoStack;if(o.length!==0){const u=a.current;u!==null&&(l.push(u),s.dispatchCommand(Zy,!0));const c=o.pop();o.length===0&&s.dispatchCommand(Qy,!1),a.current=c||null,c&&c.editor.setEditorState(c.editorState,{tag:aL})}})(t,e),!0)),xn),t.registerCommand(gbt,(()=>(fee(e),!1)),xn),t.registerCommand(ybt,(()=>(fee(e),t.dispatchCommand(Qy,!1),t.dispatchCommand(Zy,!1),!0)),xn),t.registerUpdateListener((({editorState:s,prevEditorState:a,dirtyLeaves:o,dirtyElements:l,tags:u})=>{const c=e.current,d=e.redoStack,h=e.undoStack,m=c===null?null:c.editorState;if(c!==null&&s===m)return;const g=r(a,s,c,o,l,u);if(g===mL)d.length!==0&&(e.redoStack=[],t.dispatchCommand(Qy,!1)),c!==null&&(h.push({...c}),t.dispatchCommand(Zy,!0));else if(g===gL)return;e.current={editor:t,editorState:s}})))}function xEe(){return{current:null,redoStack:[],undoStack:[]}}function kvt({delay:t,externalHistoryState:e}){const[n]=Tu();return(function(r,i,s=1e3){const a=C.useMemo((()=>i||xEe()),[i]);C.useEffect((()=>Ovt(r,a,s)),[s,r,a])})(n,e,t),null}function Ivt(t,e){const n=e.body?e.body.childNodes:[];let r=[];const i=[];for(let s=0;s<n.length;s++){const a=n[s];if(!SEe.has(a.nodeName)){const o=CEe(a,t,i,!1);o!==null&&(r=r.concat(o))}}return(function(s){for(const a of s)a.getNextSibling()instanceof NB&&a.insertAfter(uf());for(const a of s){const o=a.getChildren();for(const l of o)a.insertBefore(l);a.remove()}})(i),r}function Mvt(t,e){if(typeof document>"u"||typeof window>"u"&&global.window===void 0)throw new Error("To use $generateHtmlFromNodes in headless mode please initialize a headless browser implementation such as JSDom before calling this function.");const n=document.createElement("div"),r=Kn().getChildren();for(let i=0;i<r.length;i++)wEe(t,r[i],n,e);return n.innerHTML}function wEe(t,e,n,r=null){let i=r===null||e.isSelected(r);const s=Me(e)&&e.excludeFromCopy("html");let a=e;if(r!==null){let m=UB(e);m=Qe(m)&&r!==null?pEe(r,m):m,a=m}const o=Me(a)?a.getChildren():[],l=kB(t,a.getType());let u;u=l&&l.exportDOM!==void 0?l.exportDOM(t,a):a.exportDOM(t);const{element:c,after:d}=u;if(!c)return!1;const h=document.createDocumentFragment();for(let m=0;m<o.length;m++){const g=o[m],b=wEe(t,g,h,r);!i&&Me(e)&&b&&e.extractWithChild(g,r,"html")&&(i=!0)}if(i&&!s){if((jr(c)||dL(c))&&c.append(h),n.append(c),d){const m=d.call(a,c);m&&(dL(c)?c.replaceChildren(m):c.replaceWith(m))}}else n.append(h);return i}const SEe=new Set(["STYLE","SCRIPT"]);function CEe(t,e,n,r,i=new Map,s){let a=[];if(SEe.has(t.nodeName))return a;let o=null;const l=(function(g,b){const{nodeName:v}=g,E=b._htmlConversions.get(v.toLowerCase());let x=null;if(E!==void 0)for(const _ of E){const S=_(g);S!==null&&(x===null||(x.priority||0)<=(S.priority||0))&&(x=S)}return x!==null?x.conversion:null})(t,e),u=l?l(t):null;let c=null;if(u!==null){c=u.after;const g=u.node;if(o=Array.isArray(g)?g[g.length-1]:g,o!==null){for(const[,b]of i)if(o=b(o,s),!o)break;o&&a.push(...Array.isArray(g)?g:[o])}u.forChild!=null&&i.set(t.nodeName,u.forChild)}const d=t.childNodes;let h=[];const m=(o==null||!ms(o))&&(o!=null&&CC(o)||r);for(let g=0;g<d.length;g++)h.push(...CEe(d[g],e,n,m,new Map(i),o));return c!=null&&(h=c(h)),OC(t)&&(h=Dvt(t,h,m?()=>{const g=new NB;return n.push(g),g}:ti)),o==null?h.length>0?a=a.concat(h):OC(t)&&(function(g){return g.nextSibling==null||g.previousSibling==null?!1:fL(g.nextSibling)&&fL(g.previousSibling)})(t)&&(a=a.concat(uf())):Me(o)&&o.append(...h),a}function Dvt(t,e,n){const r=t.style.textAlign,i=[];let s=[];for(let a=0;a<e.length;a++){const o=e[a];if(CC(o))r&&!o.getFormat()&&o.setFormat(r),i.push(o);else if(s.push(o),a===e.length-1||a<e.length-1&&CC(e[a+1])){const l=n();
188l.setFormat(r),l.append(...s),i.push(l),s=[]}}return i}function kC(t,...e){const n=new URL("https://lexical.dev/docs/error"),r=new URLSearchParams;r.append("code",t);for(const i of e)r.append("v",i);throw n.search=r.toString(),Error(`Minified Lexical error #${t}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}function Pvt(t,e=Xe()){return e==null&&kC(166),He(e)&&e.isCollapsed()||e.getNodes().length===0?"":Mvt(t,e)}function Lvt(t,e=Xe()){return e==null&&kC(166),He(e)&&e.isCollapsed()||e.getNodes().length===0?null:JSON.stringify($vt(t,e))}function hee(t,e,n){const r=t.getData("application/x-lexical-editor");if(r)try{const o=JSON.parse(r);if(o.namespace===n._config.namespace&&Array.isArray(o.nodes))return pee(n,Fvt(o.nodes),e)}catch{}const i=t.getData("text/html"),s=t.getData("text/plain");if(i&&s!==i)try{const o=new DOMParser().parseFromString((function(l){return window.trustedTypes&&window.trustedTypes.createPolicy?window.trustedTypes.createPolicy("lexical",{createHTML:u=>u}).createHTML(l):l})(i),"text/html");return pee(n,Ivt(n,o),e)}catch{}const a=s||t.getData("text/uri-list");if(a!=null)if(He(e)){const o=a.split(/(\r?\n|\t)/);o[o.length-1]===""&&o.pop();for(let l=0;l<o.length;l++){const u=Xe();if(He(u)){const c=o[l];c===` 189`||c===`\r 190`?u.insertParagraph():c===" "?u.insertNodes([hE()]):u.insertText(c)}}}else e.insertRawText(a)}function pee(t,e,n){t.dispatchCommand(dbt,{nodes:e,selection:n})||(n.insertNodes(e),(function(r){if(He(r)&&r.isCollapsed()){const i=r.anchor;let s=null;const a=yu(i,"previous");if(a)if(lu(a))s=a.origin;else{const o=df(a,ko(Kn(),"next").getFlipped());for(const l of o){if(Qe(l.origin)){s=l.origin;break}if(Me(l.origin)&&!l.origin.isInline())break}}if(s&&Qe(s)){const o=s.getFormat(),l=s.getStyle();r.format===o&&r.style===l||(r.format=o,r.style=l,r.dirty=!0)}}})(n))}function TEe(t,e,n,r=[]){let i=e===null||n.isSelected(e);const s=Me(n)&&n.excludeFromCopy("html");let a=n;if(e!==null){let u=UB(n);u=Qe(u)&&e!==null?pEe(e,u):u,a=u}const o=Me(a)?a.getChildren():[],l=(function(u){const c=u.exportJSON(),d=u.constructor;if(c.type!==d.getType()&&kC(58,d.name),Me(u)){const h=c.children;Array.isArray(h)||kC(59,d.name)}return c})(a);if(Qe(a)){const u=a.__text;u.length>0?l.text=u:i=!1}for(let u=0;u<o.length;u++){const c=o[u],d=TEe(t,e,c,l.children);!i&&Me(n)&&d&&n.extractWithChild(c,e,"clone")&&(i=!0)}if(i&&!s)r.push(l);else if(Array.isArray(l.children))for(let u=0;u<l.children.length;u++){const c=l.children[u];r.push(c)}return i}function $vt(t,e){const n=[],r=Kn().getChildren();for(let i=0;i<r.length;i++)TEe(t,e,r[i],n);return{namespace:t._config.namespace,nodes:n}}function Fvt(t){const e=[];for(let n=0;n<t.length;n++){const r=t[n],i=kbt(r);Qe(i)&&fvt(i),e.push(i)}return e}let qm=null;async function mee(t,e,n){if(qm!==null)return!1;if(e!==null)return new Promise(((u,c)=>{t.update((()=>{u(gee(t,e,n))}))}));const r=t.getRootElement(),i=t._window||window,s=window.document,a=pl(i);if(r===null||a===null)return!1;const o=s.createElement("span");o.style.cssText="position: fixed; top: -1000px;",o.append(s.createTextNode("#")),r.append(o);const l=new Range;return l.setStart(o,0),l.setEnd(o,1),a.removeAllRanges(),a.addRange(l),new Promise(((u,c)=>{const d=t.registerCommand(tA,(h=>(zd(h,ClipboardEvent)&&(d(),qm!==null&&(window.clearTimeout(qm),qm=null),u(gee(t,h,n))),!0)),cf);qm=window.setTimeout((()=>{d(),qm=null,u(!1)}),50),s.execCommand("copy"),o.remove()}))}function gee(t,e,n){if(n===void 0){const i=pl(t._window);if(!i)return!1;const s=i.anchorNode,a=i.focusNode;if(s!==null&&a!==null&&!gE(t,s,a))return!1;const o=Xe();if(o===null)return!1;n=Hvt(o)}e.preventDefault();const r=e.clipboardData;return r!==null&&(Uvt(r,n),!0)}const Bvt=[["text/html",Pvt],["application/x-lexical-editor",Lvt]];
190function Hvt(t=Xe()){const e={"text/plain":t?t.getTextContent():""};if(t){const n=HB();for(const[r,i]of Bvt){const s=i(n,t);s!==null&&(e[r]=s)}}return e}function Uvt(t,e){for(const n in e){const r=e[n];r!==void 0&&t.setData(n,r)}}function yee(t,e){if(document.caretRangeFromPoint!==void 0){const n=document.caretRangeFromPoint(t,e);return n===null?null:{node:n.startContainer,offset:n.startOffset}}if(document.caretPositionFromPoint!=="undefined"){const n=document.caretPositionFromPoint(t,e);return n===null?null:{node:n.offsetNode,offset:n.offset}}return null}const s1=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0,jvt=s1&&"documentMode"in document?document.documentMode:null,zvt=!(!s1||!("InputEvent"in window)||jvt)&&"getTargetRanges"in new window.InputEvent("input"),Vvt=s1&&/Version\/[\d.]+.*Safari/.test(navigator.userAgent),bee=s1&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,qvt=s1&&/^(?=.*Chrome).*/i.test(navigator.userAgent),Gvt=s1&&/AppleWebKit\/[\d.]+/.test(navigator.userAgent)&&!qvt,vee=Mt("DRAG_DROP_PASTE_FILE");class mA extends No{static getType(){return"heading"}static clone(e){return new mA(e.__tag,e.__key)}constructor(e,n){super(n),this.__tag=e}getTag(){return this.__tag}setTag(e){const n=this.getWritable();return this.__tag=e,n}createDOM(e){const n=this.__tag,r=document.createElement(n),i=e.theme.heading;if(i!==void 0){const s=i[n];pA(r,s)}return r}updateDOM(e,n,r){return e.__tag!==this.__tag}static importDOM(){return{h1:e=>({conversion:Gm,priority:0}),h2:e=>({conversion:Gm,priority:0}),h3:e=>({conversion:Gm,priority:0}),h4:e=>({conversion:Gm,priority:0}),h5:e=>({conversion:Gm,priority:0}),h6:e=>({conversion:Gm,priority:0}),p:e=>{const n=e.firstChild;return n!==null&&Eee(n)?{conversion:()=>({node:null}),priority:3}:null},span:e=>Eee(e)?{conversion:n=>({node:Jy("h1")}),priority:3}:null}}exportDOM(e){const{element:n}=super.exportDOM(e);if(jr(n)){this.isEmpty()&&n.append(document.createElement("br"));const r=this.getFormatType();r&&(n.style.textAlign=r);const i=this.getDirection();i&&(n.dir=i)}return{element:n}}static importJSON(e){return Jy(e.tag).updateFromJSON(e)}updateFromJSON(e){return super.updateFromJSON(e).setTag(e.tag)}exportJSON(){return{...super.exportJSON(),tag:this.getTag()}}insertNewAfter(e,n=!0){const r=e?e.anchor.offset:0,i=this.getLastDescendant(),s=!i||e&&e.anchor.key===i.getKey()&&r===i.getTextContentSize()||!e?ti():Jy(this.getTag()),a=this.getDirection();if(s.setDirection(a),this.insertAfter(s,n),r===0&&!this.isEmpty()&&e){const o=ti();o.select(),this.replace(o,!0)}return s}collapseAtStart(){const e=this.isEmpty()?ti():Jy(this.getTag());
190return this.getChildren().forEach((n=>e.append(n))),this.replace(e),!0}extractWithChild(){return!0}}function Eee(t){return t.nodeName.toLowerCase()==="span"&&t.style.fontSize==="26pt"}function Gm(t){const e=t.nodeName.toLowerCase();let n=null;return e!=="h1"&&e!=="h2"&&e!=="h3"&&e!=="h4"&&e!=="h5"&&e!=="h6"||(n=Jy(e),t.style!==null&&(rEe(t,n),n.setFormat(t.style.textAlign))),{node:n}}function Jy(t="h1"){return Au(new mA(t))}function yL(t){return t instanceof mA}function Kx(t){let e=null;if(zd(t,DragEvent)?e=t.dataTransfer:zd(t,ClipboardEvent)&&(e=t.clipboardData),e===null)return[!1,[],!1];const n=e.types,r=n.includes("Files"),i=n.includes("text/html")||n.includes("text/plain");return[r,Array.from(e.files),i]}function _ee(t){const e=Xe();if(!He(e))return!1;const n=new Set,r=e.getNodes();for(let i=0;i<r.length;i++){const s=r[i],a=s.getKey();if(n.has(a))continue;const o=ll(s,(u=>Me(u)&&!u.isInline()));if(o===null)continue;const l=o.getKey();o.canIndent()&&!n.has(l)&&(n.add(l),t(o))}return n.size>0}function xee(t){const e=gu(t);return Mn(e)}function _O(t){for(const e of["lowercase","uppercase","capitalize"])t.hasFormat(e)&&t.toggleFormat(e)}function Wvt(t){return _l(t.registerCommand(f2e,(e=>{const n=Xe();return!!ss(n)&&(n.clear(),!0)}),xn),t.registerCommand(Lh,(e=>{const n=Xe();return He(n)?(n.deleteCharacter(e),!0):!!ss(n)&&(n.deleteNodes(),!0)}),xn),t.registerCommand(Lv,(e=>{const n=Xe();return!!He(n)&&(n.deleteWord(e),!0)}),xn),t.registerCommand($v,(e=>{const n=Xe();return!!He(n)&&(n.deleteLine(e),!0)}),xn),t.registerCommand(Dg,(e=>{const n=Xe();if(typeof e=="string")n!==null&&n.insertText(e);else{if(n===null)return!1;const r=e.dataTransfer;if(r!=null)hee(r,n,t);else if(He(n)){const i=e.data;return i&&n.insertText(i),!0}}return!0}),xn),t.registerCommand(Q9,(()=>{const e=Xe();return!!He(e)&&(e.removeText(),!0)}),xn),t.registerCommand(xc,(e=>{const n=Xe();return!!He(n)&&(n.formatText(e),!0)}),xn),t.registerCommand(pbt,(e=>{const n=Xe();if(!He(n)&&!ss(n))return!1;const r=n.getNodes();for(const i of r){const s=ll(i,(a=>Me(a)&&!a.isInline()));s!==null&&s.setFormat(e)}return!0}),xn),t.registerCommand(Mg,(e=>{const n=Xe();return!!He(n)&&(n.insertLineBreak(e),!0)}),xn),t.registerCommand(Pv,(()=>{const e=Xe();return!!He(e)&&(e.insertParagraph(),!0)}),xn),t.registerCommand(y2e,(()=>(iA([hE()]),!0)),xn),t.registerCommand(wC,(()=>_ee((e=>{const n=e.getIndent();e.setIndent(n+1)}))),xn),t.registerCommand(Z9,(()=>_ee((e=>{const n=e.getIndent();n>0&&e.setIndent(Math.max(0,n-1))}))),xn),t.registerCommand(vB,(e=>{const n=Xe();if(ss(n)){const r=n.getNodes();if(r.length>0)return r[0].selectPrevious(),!0}else if(He(n)){const r=lL(n.focus,!0);if(!e.shiftKey&&Mn(r)&&!r.isIsolated()&&!r.isInline())return r.selectPrevious(),e.preventDefault(),!0}return!1}),xn),t.registerCommand(EB,(e=>{const n=Xe();if(ss(n)){const r=n.getNodes();if(r.length>0)return r[0].selectNext(0,0),!0}else if(He(n)){if((function(i){const s=i.focus;return s.key==="root"&&s.offset===Kn().getChildrenSize()})(n))return e.preventDefault(),!0;const r=lL(n.focus,!1);if(!e.shiftKey&&Mn(r)&&!r.isIsolated()&&!r.isInline())return r.selectNext(),e.preventDefault(),!0}return!1}),xn),t.registerCommand(bB,(e=>{const n=Xe();if(ss(n)){const r=n.getNodes();if(r.length>0)return e.preventDefault(),oee(r[0])?r[0].selectNext(0,0):r[0].selectPrevious(),!0}if(!He(n))return!1;if(uee(n,!0)){const r=e.shiftKey;return e.preventDefault(),cee(n,r,!0),!0}return!1}),xn),t.registerCommand(p2e,(e=>{const n=Xe();if(ss(n)){const i=n.getNodes();if(i.length>0)return e.preventDefault(),oee(i[0])?i[0].selectPrevious():i[0].selectNext(0,0),!0}if(!He(n))return!1;const r=e.shiftKey;return!!uee(n,!1)&&(e.preventDefault(),cee(n,r,!1),!0)}),xn),t.registerCommand(m2e,(e=>{if(xee(e.target))return!1;const n=Xe();if(He(n)){if((function(r){if(!r.isCollapsed())return!1;const{anchor:i}=r;if(i.offset!==0)return!1;const s=i.getNode();if(pi(s))return!1;const a=pL(s);return a.getIndent()>0&&(a.is(s)||s.is(a.getFirstDescendant()))})(n))return e.preventDefault(),t.dispatchCommand(Z9,void 0);if(bee&&navigator.language==="ko-KR")return!1}else if(!ss(n))return!1;
190return e.preventDefault(),t.dispatchCommand(Lh,!0)}),xn),t.registerCommand(g2e,(e=>{if(xee(e.target))return!1;const n=Xe();return!(!He(n)&&!ss(n))&&(e.preventDefault(),t.dispatchCommand(Lh,!1))}),xn),t.registerCommand(xC,(e=>{const n=Xe();if(!He(n))return!1;if(_O(n),e!==null){if((bee||Vvt||Gvt)&&zvt)return!1;if(e.preventDefault(),e.shiftKey)return t.dispatchCommand(Mg,!1)}return t.dispatchCommand(Pv,void 0)}),xn),t.registerCommand(eA,(()=>{const e=Xe();return!!He(e)&&(t.blur(),!0)}),xn),t.registerCommand(b2e,(e=>{const[,n]=Kx(e);if(n.length>0){const i=yee(e.clientX,e.clientY);if(i!==null){const{offset:s,node:a}=i,o=gu(a);if(o!==null){const l=rA();if(Qe(o))l.anchor.set(o.getKey(),s,"text"),l.focus.set(o.getKey(),s,"text");else{const c=o.getParentOrThrow().getKey(),d=o.getIndexWithinParent()+1;l.anchor.set(c,d,"element"),l.focus.set(c,d,"element")}const u=op(l);Vi(u)}t.dispatchCommand(vee,n)}return e.preventDefault(),!0}const r=Xe();return!!He(r)}),xn),t.registerCommand(v2e,(e=>{const[n]=Kx(e),r=Xe();return!(n&&!He(r))}),xn),t.registerCommand(E2e,(e=>{const[n]=Kx(e),r=Xe();if(n&&!He(r))return!1;const i=yee(e.clientX,e.clientY);if(i!==null){const s=gu(i.node);Mn(s)&&e.preventDefault()}return!0}),xn),t.registerCommand(J9,(()=>(Vbt(),!0)),xn),t.registerCommand(tA,(e=>(mee(t,zd(e,ClipboardEvent)?e:null),!0)),xn),t.registerCommand(wB,(e=>((async function(n,r){await mee(r,zd(n,ClipboardEvent)?n:null),r.update((()=>{const i=Xe();He(i)?i.removeText():ss(i)&&i.getNodes().forEach((s=>s.remove()))}))})(e,t),!0)),xn),t.registerCommand(Q3,(e=>{const[,n,r]=Kx(e);return n.length>0&&!r?(t.dispatchCommand(vee,n),!0):i1(e.target)&&IB(e.target)?!1:Xe()!==null&&((function(i,s){i.preventDefault(),s.update((()=>{const a=Xe(),o=zd(i,InputEvent)||zd(i,KeyboardEvent)?null:i.clipboardData;o!=null&&a!==null&&hee(o,a,s)}),{tag:Mbt})})(e,t),!0)}),xn),t.registerCommand(_B,(e=>{const n=Xe();return He(n)&&_O(n),!1}),xn),t.registerCommand(xB,(e=>{const n=Xe();return He(n)&&_O(n),!1}),xn))}AEe.peek=Jvt;var Yvt=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"],Kvt={canContainEols:["highlight"],enter:{highlight:Xvt},exit:{highlight:Qvt}};function Xvt(t){this.enter({type:"highlight",children:[]},t)}function Qvt(t){this.exit(t)}var Zvt={unsafe:[{character:"=",inConstruct:"phrasing",notInConstruct:Yvt}],handlers:{highlight:AEe}};function AEe(t,e,n,r){const s=n.createTracker(r),a=n.enter("highlight");let o=s.move("==");return o+=s.move(n.containerPhrasing(t,{before:o,after:"=",...s.current()})),o+=s.move("=="),a(),o}function Jvt(){return"="}const e2t=["AElig","AMP","Aacute","Acirc","Agrave","Aring","Atilde","Auml","COPY","Ccedil","ETH","Eacute","Ecirc","Egrave","Euml","GT","Iacute","Icirc","Igrave","Iuml","LT","Ntilde","Oacute","Ocirc","Ograve","Oslash","Otilde","Ouml","QUOT","REG","THORN","Uacute","Ucirc","Ugrave","Uuml","Yacute","aacute","acirc","acute","aelig","agrave","amp","aring","atilde","auml","brvbar","ccedil","cedil","cent","copy","curren","deg","divide","eacute","ecirc","egrave","eth","euml","frac12","frac14","frac34","gt","iacute","icirc","iexcl","igrave","iquest","iuml","laquo","lt","macr","micro","middot","nbsp","not","ntilde","oacute","ocirc","ograve","ordf","ordm","oslash","otilde","ouml","para","plusmn","pound","quot","raquo","reg","sect","shy","sup1","
190sup2","sup3","szlig","thorn","times","uacute","ucirc","ugrave","uml","uuml","yacute","yen","yuml"],wee={0:"�",128:"â¬",130:"â",131:"Æ",132:"â",133:"â¦",134:"â ",135:"â¡",136:"Ë",137:"â°",138:"Å ",139:"â¹",140:"Å",142:"Ž",145:"â",146:"â",147:"â",148:"â",149:"â¢",150:"â",151:"â",152:"Ë",153:"â¢",154:"Å¡",155:"âº",156:"Å",158:"ž",159:"Ÿ"};function REe(t){const e=typeof t=="string"?t.charCodeAt(0):t;return e>=48&&e<=57}function t2t(t){const e=typeof t=="string"?t.charCodeAt(0):t;return e>=97&&e<=102||e>=65&&e<=70||e>=48&&e<=57}function n2t(t){const e=typeof t=="string"?t.charCodeAt(0):t;return e>=97&&e<=122||e>=65&&e<=90}function See(t){return n2t(t)||REe(t)}const r2t=["","Named character references must be terminated by a semicolon","Numeric character references must be terminated by a semicolon","Named character references cannot be empty","Numeric character references cannot be empty","Named character references must be known","Numeric character references cannot be disallowed","Numeric character references cannot be outside the permissible Unicode range"];function i2t(t,e){const n=e||{},r=typeof n.additional=="string"?n.additional.charCodeAt(0):n.additional,i=[];let s=0,a=-1,o="",l,u;n.position&&("start"in n.position||"indent"in n.position?(u=n.position.indent,l=n.position.start):l=n.position);let c=(l?l.line:0)||1,d=(l?l.column:0)||1,h=g(),m;for(s--;++s<=t.length;)if(m===10&&(d=(u?u[a]:0)||1),m=t.charCodeAt(s),m===38){const E=t.charCodeAt(s+1);if(E===9||E===10||E===12||E===32||E===38||E===60||Number.isNaN(E)||r&&E===r){o+=String.fromCharCode(m),d++;continue}const x=s+1;let _=x,S=x,A;if(E===35){S=++_;const L=t.charCodeAt(S);L===88||L===120?(A="hexadecimal",S=++_):A="decimal"}else A="named";let R="",T="",O="";const I=A==="named"?See:A==="decimal"?REe:t2t;for(S--;++S<=t.length;){const L=t.charCodeAt(S);if(!I(L))break;O+=String.fromCharCode(L),A==="named"&&e2t.includes(O)&&(R=O,T=Zb(O))}let D=t.charCodeAt(S)===59;if(D){S++;const L=A==="named"?Zb(O):!1;L&&(R=O,T=L)}let P=1+S-x,B="";if(!(!D&&n.nonTerminated===!1))if(!O)A!=="named"&&b(4,P);else if(A==="named"){if(D&&!T)b(5,1);else if(R!==O&&(S=_+R.length,P=1+S-_,D=!1),!D){const L=R?1:3;if(n.attribute){const $=t.charCodeAt(S);$===61?(b(L,P),T=""):See($)?T="":b(L,P)}else b(L,P)}B=T}else{D||b(2,P);let L=Number.parseInt(O,A==="hexadecimal"?16:10);if(s2t(L))b(7,P),B="�";else if(L in wee)b(6,P),B=wee[L];else{let $="";a2t(L)&&b(6,P),L>65535&&(L-=65536,$+=String.fromCharCode(L>>>10|55296),L=56320|L&1023),B=$+String.fromCharCode(L)}}if(B){v(),h=g(),s=S-1,d+=S-x+1,i.push(B);const L=g();L.offset++,n.reference&&n.reference.call(n.referenceContext||void 0,B,{start:h,end:L},t.slice(x-1,S)),h=L}else O=t.slice(x-1,S),o+=O,d+=O.length,s=S-1}else m===10&&(c++,a++,d=0),Number.isNaN(m)?v():(o+=String.fromCharCode(m),d++);return i.join("");function g(){return{line:c,column:d,offset:s+((l?l.offset:0)||0)}}function b(E,x){let _;n.warning&&(_=g(),_.column+=x,_.offset+=x,n.warning.call(n.warningContext||void 0,r2t[E],_,E))}function v(){o&&(i.push(o),n.text&&n.text.call(n.textContext||void 0,o,{start:h,end:g()}),o="")}}function s2t(t){return t>=55296&&t<=57343||t>1114111}function a2t(t){return t>=1&&t<=8||t===11||t>=13&&t<=31||t>=127&&t<=159||t>=64976&&t<=65007||(t&65535)===65535||(t&65535)===65534}const o2t=/["&'<>`]/g,l2t=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,u2t=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,c2t=/[|\\{}()[\]^$+*?.]/g,Cee=new WeakMap;function d2t(t,e){if(t=t.replace(e.subset?f2t(e.subset):o2t,r),e.subset||e.escapeOnly)return t;return t.replace(l2t,n).replace(u2t,r);function n(i,s,a){return e.format((i.charCodeAt(0)-55296)*1024+i.charCodeAt(1)-56320+65536,a.charCodeAt(s+2),e)}function r(i,s,a){return e.format(i.charCodeAt(0),a.charCodeAt(s+1),e)}}function f2t(t){let e=Cee.get(t);return e||(e=h2t(t),Cee.set(t,e)),e}function h2t(t){const e=[];let n=-1;for(;++n<t.length;)e.push(t[n].replace(c2t,"\\$&"));return new RegExp("(?:"+e.join("|")+")","g")}function p2t(t){return"&#x"+t.toString(16).toUpperCase()+";"}function m2t(t,e){return d2t(t,Object.assign({format:p2t},e))}const NEe=" ";function g2t(){return{canContainEols:["mdxJsxTextElement"],enter
190:{mdxJsxFlowTag:r,mdxJsxFlowTagClosingMarker:i,mdxJsxFlowTagAttribute:d,mdxJsxFlowTagExpressionAttribute:h,mdxJsxFlowTagAttributeValueLiteral:t,mdxJsxFlowTagAttributeValueExpression:t,mdxJsxFlowTagSelfClosingMarker:a,mdxJsxTextTag:r,mdxJsxTextTagClosingMarker:i,mdxJsxTextTagAttribute:d,mdxJsxTextTagExpressionAttribute:h,mdxJsxTextTagAttributeValueLiteral:t,mdxJsxTextTagAttributeValueExpression:t,mdxJsxTextTagSelfClosingMarker:a},exit:{mdxJsxFlowTagClosingMarker:o,mdxJsxFlowTagNamePrimary:l,mdxJsxFlowTagNameMember:u,mdxJsxFlowTagNameLocal:c,mdxJsxFlowTagExpressionAttribute:m,mdxJsxFlowTagExpressionAttributeValue:n,mdxJsxFlowTagAttributeNamePrimary:g,mdxJsxFlowTagAttributeNameLocal:b,mdxJsxFlowTagAttributeValueLiteral:v,mdxJsxFlowTagAttributeValueLiteralValue:n,mdxJsxFlowTagAttributeValueExpression:E,mdxJsxFlowTagAttributeValueExpressionValue:n,mdxJsxFlowTagSelfClosingMarker:x,mdxJsxFlowTag:_,mdxJsxTextTagClosingMarker:o,mdxJsxTextTagNamePrimary:l,mdxJsxTextTagNameMember:u,mdxJsxTextTagNameLocal:c,mdxJsxTextTagExpressionAttribute:m,mdxJsxTextTagExpressionAttributeValue:n,mdxJsxTextTagAttributeNamePrimary:g,mdxJsxTextTagAttributeNameLocal:b,mdxJsxTextTagAttributeValueLiteral:v,mdxJsxTextTagAttributeValueLiteralValue:n,mdxJsxTextTagAttributeValueExpression:E,mdxJsxTextTagAttributeValueExpressionValue:n,mdxJsxTextTagSelfClosingMarker:x,mdxJsxTextTag:_}};function t(){this.buffer()}function e(T){return{line:T.line,column:T.column,offset:T.offset}}function n(T){this.config.enter.data.call(this,T),this.config.exit.data.call(this,T)}function r(T){const O={name:void 0,attributes:[],close:!1,selfClosing:!1,start:T.start,end:T.end};this.data.mdxJsxTagStack||(this.data.mdxJsxTagStack=[]),this.data.mdxJsxTag=O,this.buffer()}function i(T){if(this.data.mdxJsxTagStack.length===0)throw new Pn("Unexpected closing slash `/` in tag, expected an open tag first",{start:T.start,end:T.end},"mdast-util-mdx-jsx:unexpected-closing-slash")}function s(T){if(this.data.mdxJsxTag.close)throw new Pn("Unexpected attribute in closing tag, expected the end of the tag",{start:T.start,end:T.end},"mdast-util-mdx-jsx:unexpected-attribute")}function a(T){if(this.data.mdxJsxTag.close)throw new Pn("Unexpected self-closing slash `/` in closing tag, expected the end of the tag",{start:T.start,end:T.end},"mdast-util-mdx-jsx:unexpected-self-closing-slash")}function o(){const T=this.data.mdxJsxTag;T.close=!0}function l(T){const O=this.data.mdxJsxTag;O.name=this.sliceSerialize(T)}function u(T){const O=this.data.mdxJsxTag;O.name+="."+this.sliceSerialize(T)}function c(T){const O=this.data.mdxJsxTag;O.name+=":"+this.sliceSerialize(T)}function d(T){const O=this.data.mdxJsxTag;s.call(this,T),O.attributes.push({type:"mdxJsxAttribute",name:"",value:null,position:{start:e(T.start),end:void 0}})}function h(T){const O=this.data.mdxJsxTag;s.call(this,T),O.attributes.push({type:"mdxJsxExpressionAttribute",value:"",position:{start:e(T.start),end:void 0}}),this.buffer()}function m(T){const O=this.data.mdxJsxTag,I=O.attributes[O.attributes.length-1];I.type;const D=T.estree;I.value=this.resume(),I.position,I.position.end=e(T.end),D&&(I.data={estree:D})}function g(T){const O=this.data.mdxJsxTag,I=O.attributes[O.attributes.length-1];I.type,I.name=this.sliceSerialize(T),I.position,I.position.end=e(T.end)}function b(T){const O=this.data.mdxJsxTag,I=O.attributes[O.attributes.length-1];I.type,I.name+=":"+this.sliceSerialize(T),I.position,I.position.end=e(T.end)}function v(T){const O=this.data.mdxJsxTag,I=O.attributes[O.attributes.length-1];I.value=i2t(this.resume(),{nonTerminated:!1}),I.position,I.position.end=e(T.end)}function E(T){const O=this.data.mdxJsxTag,I=O.attributes[O.attributes.length-1];I.type;const D={type:"mdxJsxAttributeValueExpression",value:this.resume()},P=T.estree;P&&(D.data={estree:P}),I.value=D,I.position,I.position.end=e(T.end)}function x(){const T=this.data.mdxJsxTag;T.selfClosing=!0}function _(T){const O=this.data.mdxJsxTag,I=this.data.mdxJsxTagStack,D=I[I.length-1];if(O.close&&D.name!==O.name)throw new Pn("Unexpected closing tag `"+R(O)+"`, expected corresponding closing tag for `"+R(D)+"` ("+vc(D)+")",{start:T.start,end:T.end},"mdast-util-mdx-jsx:end-tag-mismatch");this.resume(),O.close?I.pop():this.enter({type:T.type==="mdxJsxTextTag"?"mdxJsxTextElement":"mdxJsxFlowElement",name:O.name||null,attributes:O.attributes,children:[]},T,S),O.selfClosing||O.close?this.exit(T,A):I.push(O)}function S(T,O){const I=this.data.mdxJsxTagStack,D=I[I.length-1],P=T?" before the end of `"+T.type+"`":"",B=T?{start:T.start,end:T.end}:void 0;throw new Pn("Expected a closing tag for `"+R(D)+"` ("+vc({start:O.start,end:O.end})+")"+P,B,"mdast-util-mdx-jsx:end-tag-mismatch")}function A(T,O){const I=this.data.mdxJsxTag;throw new Pn("Expected the closing tag `"+R(I)+"` either after the end of `"+O.type+"` ("+vc(O.end)+") or another opening tag after the start of `"+O.type+"` ("+vc(O.start)+")",{start:T.start,end:T.end},"mdast-util-mdx-jsx:end-tag-mismatch")}function R(T){return"<"+(T.close?"/":"")+(T.name||"")+">"}}function y2t(t){const e={},n=e.quote||'"',r=e.quoteSmart||!1,i=e.tightSelfClosing||!1,s=e.printWidth||Number.POSITIVE_INFINITY,a=n==='"'?"'":'"';if(n!=='"'&&n!=="'")throw new Error("Cannot serialize attribute values with `"+n+"` for `options.quote`, expected `\"`, or `'`");return o.peek=v2t,{handlers:{mdxJsxFlowElement:o,mdxJsxTextElement:o},unsafe:[{character:"<",inConstruct:["phrasing"]},{atBreak:!0,character:"<"}],fences:!0,resourceLink:!0}
190;function o(l,u,c,d){const h=l.type==="mdxJsxFlowElement",m=l.name?!l.children||l.children.length===0:!1,g=OEe(c),b=kEe(g),v=c.createTracker(d),E=c.createTracker(d),x=[],_=(h?b:"")+"<"+(l.name||""),S=c.enter(l.type);if(v.move(_),E.move(_),l.attributes&&l.attributes.length>0){if(!l.name)throw new Error("Cannot serialize fragment w/ attributes");let I=-1;for(;++I<l.attributes.length;){const D=l.attributes[I];let P;if(D.type==="mdxJsxExpressionAttribute")P="{"+(D.value||"")+"}";else{if(!D.name)throw new Error("Cannot serialize attribute w/o name");const B=D.value,L=D.name;let $="";if(B!=null)if(typeof B=="object")$="{"+(B.value||"")+"}";else{const q=r&&MS(B,n)>MS(B,a)?a:n;$=q+m2t(B,{subset:[q]})+q}P=L+($?"=":"")+$}x.push(P)}}let A=!1;const R=x.join(" ");h&&(/\r?\n|\r/.test(R)||v.current().now.column+R.length+(m?i?2:3:1)>s)&&(A=!0);let T=v,O=_;if(A){T=E;let I=-1;for(;++I<x.length;)x[I]=b+NEe+x[I];O+=T.move(` 191`+x.join(` 192`)+` 193`+b)}else R&&(O+=T.move(" "+R));return m&&(O+=T.move((i||A?"":" ")+"/")),O+=T.move(">"),l.children&&l.children.length>0&&(l.type==="mdxJsxTextElement"?O+=T.move(c.containerPhrasing(l,{...T.current(),before:">",after:"<"})):(T.shift(2),O+=T.move(` 194`),O+=T.move(b2t(l,c,T.current())),O+=T.move(` 195`))),m||(O+=T.move((h?b:"")+"</"+(l.name||"")+">")),S(),O}}function b2t(t,e,n){const r=e.indexStack,i=t.children,s=e.createTracker(n),a=kEe(OEe(e)),o=[];let l=-1;for(r.push(-1);++l<i.length;){const u=i[l];r[r.length-1]=l;const c={before:` 196`,after:` 197`,...s.current()},d=e.handle(u,t,e,c),h=u.type==="mdxJsxFlowElement"?d:e.indentLines(d,function(m,g,b){return(b?"":a)+m});o.push(s.move(h)),u.type!=="list"&&(e.bulletLastUsed=void 0),l<i.length-1&&o.push(s.move(` 198 199`))}return r.pop(),o.join("")}function OEe(t){let e=0,n=t.stack.length;for(;--n>-1;){const r=t.stack[n];if(r==="blockquote"||r==="listItem")break;r==="mdxJsxFlowElement"&&e++}return e}function kEe(t){return NEe.repeat(t)}function v2t(){return"<"}var E2t={};let bL,IEe,MEe,DEe,PEe=!0;typeof process<"u"&&({FORCE_COLOR:bL,NODE_DISABLE_COLORS:IEe,NO_COLOR:MEe,TERM:DEe}=E2t||{},PEe=process.stdout&&process.stdout.isTTY);const wn={enabled:!IEe&&MEe==null&&DEe!=="dumb"&&(bL!=null&&bL!=="0"||PEe),reset:rr(0,0),bold:rr(1,22),dim:rr(2,22),italic:rr(3,23),underline:rr(4,24),inverse:rr(7,27),hidden:rr(8,28),strikethrough:rr(9,29),black:rr(30,39),red:rr(31,39),green:rr(32,39),yellow:rr(33,39),blue:rr(34,39),magenta:rr(35,39),cyan:rr(36,39),white:rr(37,39),gray:rr(90,39),grey:rr(90,39),bgBlack:rr(40,49),bgRed:rr(41,49),bgGreen:rr(42,49),bgYellow:rr(43,49),bgBlue:rr(44,49),bgMagenta:rr(45,49),bgCyan:rr(46,49),bgWhite:rr(47,49)};function Tee(t,e){let n=0,r,i="",s="";for(;n<t.length;n++)r=t[n],i+=r.open,s+=r.close,~e.indexOf(r.close)&&(e=e.replace(r.rgx,r.close+r.open));return i+e+s}function _2t(t,e){let n={has:t,keys:e};return n.reset=wn.reset.bind(n),n.bold=wn.bold.bind(n),n.dim=wn.dim.bind(n),n.italic=wn.italic.bind(n),n.underline=wn.underline.bind(n),n.inverse=wn.inverse.bind(n),n.hidden=wn.hidden.bind(n),n.strikethrough=wn.strikethrough.bind(n),n.black=wn.black.bind(n),n.red=wn.red.bind(n),n.green=wn.green.bind(n),n.yellow=wn.yellow.bind(n),n.blue=wn.blue.bind(n),n.magenta=wn.magenta.bind(n),n.cyan=wn.cyan.bind(n),n.white=wn.white.bind(n),n.gray=wn.gray.bind(n),n.grey=wn.grey.bind(n),n.bgBlack=wn.bgBlack.bind(n),n.bgRed=wn.bgRed.bind(n),n.bgGreen=wn.bgGreen.bind(n),n.bgYellow=wn.bgYellow.bind(n),n.bgBlue=wn.bgBlue.bind(n),n.bgMagenta=wn.bgMagenta.bind(n),n.bgCyan=wn.bgCyan.bind(n),n.bgWhite=wn.bgWhite.bind(n),n}function rr(t,e){let n={open:`\x1B[${t}m`,close:`\x1B[${e}m`,rgx:new RegExp(`\\x1b\\[${e}m`,"g")};return function(r){return this!==void 0&&this.has!==void 0?(~this.has.indexOf(t)||(this.has.push(t),this.keys.push(n)),r===void 0?this:wn.enabled?Tee(this.keys,r+""):r+""):r===void 0?_2t([t],[n]):wn.enabled?Tee([n],r+""):r+""}}function Af(){}Af.prototype={diff:function(e,n){var r,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},s=i.callback;typeof i=="function"&&(s=i,i={}),this.options=i;var a=this;function o(S){return s?(setTimeout(function(){s(void 0,S)},0),!0):S}e=this.castInput(e),n=this.castInput(n),e=this.removeEmpty(this.tokenize(e)),n=this.removeEmpty(this.tokenize(n));var l=n.length,u=e.length,c=1,d=l+u;i.maxEditLength&&(d=Math.min(d,i.maxEditLength));var h=(r=i.timeout)!==null&&r!==void 0?r:1/0,m=Date.now()+h,g=[{oldPos:-1,lastComponent:void 0}],b=this.extractCommon(g[0],n,e,0);if(g[0].oldPos+1>=u&&b+1>=l)return o([{value:this.join(n),count:n.length}]);var v=-1/0,E=1/0;function x(){for(var S=Math.max(v,-c);S<=Math.min(E,c);S+=2){var A=void 0,R=g[S-1],T=g[S+1];R&&(g[S-1]=void 0);var O=!1;if(T){var I=T.oldPos-S;O=T&&0<=I&&I<l}var D=R&&R.oldPos+1<u;if(!O&&!D){g[S]=void 0;continue}if(!D||O&&R.oldPos+1<T.oldPos?A=a.addToPath(T,!0,void 0,0):A=a.addToPath(R,void 0,!0,1),b=a.extractCommon(A,n,e,S),A.oldPos+1>=u&&b+1>=l)return o(x2t(a,A.lastComponent,n,e,a.useLongestToken));g[S]=A,A.oldPos+1>=u&&(E=Math.min(E,S-1)),b+1>=l&&(v=Math.max(v,S+1))}c++}if(s)(function S(){setTimeout(function(){if(c>d||Date.now()>m)return s();x()||S()},0)})();else for(;c<=d&&Date.now()<=m;){var _=x();if(_)return _}},addToPath:function(e,n,r,i){var s=e.lastComponent;return s&&s.added===n&&s.removed===r?{oldPos:e.oldPos+i,lastComponent:{count:s.count+1,added:n,removed:r,previousComponent:s.previousComponent}}:{oldPos:e.oldPos+i,lastComponent:{count:1,added:n,removed:r,previousComponent:s}}},extractCommon:function(e,n,r,i){for(var s=n.length,a=r.length,o=e.oldPos,l=o-i,u=0;l+1<s&&o+1<a&&this.equals(n[l+1],r[o+1]);)l++,o++,u++;return u&&(e.lastComponent={count:u,previousComponent:e.lastComponent}),e.oldPos=o,l},equals:function(e,n){return this.options.comparator?this.options.comparator(e,n):e===n||this.options.ignoreCase&&e.toLowerCase()===n.toLowerCase()},removeEmpty:function(e){for(var n=[],r=0;r<e.length;r++)e[r]&&n.push(e[r]);return n},castInput:function(e){return e},tokenize:function(e){return e.split("")},join:function(e){return e.join("")}};function x2t(t,e,n,r,i){for(var s=[],a;e;)s.push(e),a=e.previousComponent,delete e.previousComponent,e=a;s.reverse();for(var o=0,l=s.length,u=0,c=0;o<l;o++){var d=s[o];if(d.removed){if(d.value=t.join(r.slice(c,c+d.count)),c+=d.count,o&&s[o-1].added){var m=s[o-1];s[o-1]=s[o],s[o]=m}}else{if(!d.added&&i){var h=n.slice(u,u+d.count);h=h.map(function(b,v){var E=r[c+v];return E.length>b.length?E:b}),d.value=t.join(h)}else d.value=t.join(n.slice(u,u+d.count));u+=d.count,d.added||(c+=d.count)}
199}var g=s[l-1];return l>1&&typeof g.value=="string"&&(g.added||g.removed)&&t.equals("",g.value)&&(s[l-2].value+=g.value,s.pop()),s}var Aee=/^[A-Za-z\xC0-\u02C6\u02C8-\u02D7\u02DE-\u02FF\u1E00-\u1EFF]+$/,Ree=/\S/,LEe=new Af;LEe.equals=function(t,e){return this.options.ignoreCase&&(t=t.toLowerCase(),e=e.toLowerCase()),t===e||this.options.ignoreWhitespace&&!Ree.test(t)&&!Ree.test(e)};LEe.tokenize=function(t){for(var e=t.split(/([^\S\r\n]+|[()[\]{}'"\r\n]|\b)/),n=0;n<e.length-1;n++)!e[n+1]&&e[n+2]&&Aee.test(e[n])&&Aee.test(e[n+2])&&(e[n]+=e[n+2],e.splice(n+1,2),n--);return e};var $Ee=new Af;$Ee.tokenize=function(t){this.options.stripTrailingCr&&(t=t.replace(/\r\n/g,` 200`));var e=[],n=t.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?e[e.length-1]+=i:(this.options.ignoreWhitespace&&(i=i.trim()),e.push(i))}return e};var w2t=new Af;w2t.tokenize=function(t){return t.split(/(\S.+?[.!?])(?=\s+|$)/)};var S2t=new Af;S2t.tokenize=function(t){return t.split(/([{}:;,]|\s+)/)};function Kw(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Kw=function(e){return typeof e}:Kw=function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Kw(t)}var C2t=Object.prototype.toString,Bv=new Af;Bv.useLongestToken=!0;Bv.tokenize=$Ee.tokenize;Bv.castInput=function(t){var e=this.options,n=e.undefinedReplacement,r=e.stringifyReplacer,i=r===void 0?function(s,a){return typeof a>"u"?n:a}:r;return typeof t=="string"?t:JSON.stringify(vL(t,null,null,i),i," ")};Bv.equals=function(t,e){return Af.prototype.equals.call(Bv,t.replace(/,([\r\n])/g,"$1"),e.replace(/,([\r\n])/g,"$1"))};function vL(t,e,n,r,i){e=e||[],n=n||[],r&&(t=r(i,t));var s;for(s=0;s<e.length;s+=1)if(e[s]===t)return n[s];var a;if(C2t.call(t)==="[object Array]"){for(e.push(t),a=new Array(t.length),n.push(a),s=0;s<t.length;s+=1)a[s]=vL(t[s],e,n,r,i);return e.pop(),n.pop(),a}if(t&&t.toJSON&&(t=t.toJSON()),Kw(t)==="object"&&t!==null){e.push(t),a={},n.push(a);var o=[],l;for(l in t)t.hasOwnProperty(l)&&o.push(l);for(o.sort(),s=0;s<o.length;s+=1)l=o[s],a[l]=vL(t[l],e,n,r,l);e.pop(),n.pop()}else a=t;return a}var EL=new Af;EL.tokenize=function(t){return t.slice()};EL.join=EL.removeEmpty=function(t){return t};wn.red,wn.grey,wn.green;wn.dim().italic;wn.dim("â");wn.dim("·");wn.dim("âµ");function IC(t){t=t.replace(/\r?\n/g,` 201`);let e=t.match(/^[ \t]*(?=\S)/gm),n=0,r=1/0,i=(e||[]).length;for(;n<i;n++)r=Math.min(r,e[n].length);return i&&r?t.replace(new RegExp(`^[ \\t]{${r}}`,"gm"),""):t}class T2t extends Error{constructor(e={}
201){super(e.message),this.name="Assertion",this.code="ERR_ASSERTION",Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor),this.details=e.details||!1,this.generated=!!e.generated,this.operator=e.operator,this.expects=e.expects,this.actual=e.actual}}function To(t,e,n,r,i,s,a){if(t)return;let o=a||s;if(a instanceof Error)throw a;let l=i;throw new T2t({actual:e,expects:n,operator:r,message:o,details:l,generated:!a})}function A2t(t,e){To(!!t,!1,!0,"ok",!1,"Expected value to be truthy",e)}function Uc(t,e){To(!t,!0,!1,"not",!1,"Expected value to be falsey",e)}Uc.ok=Uc;Uc.equal=function(t,e,n){To(!Ph(t,e),t,e,"not.equal",!1,"Expected values not to be deeply equal",n)};Uc.type=function(t,e,n){let r=typeof t;To(r!==e,r,e,"not.type",!1,`Expected "${r}" not to be "${e}"`,n)};Uc.instance=function(t,e,n){let r="`"+(e.name||e.constructor.name)+"`";To(!(t instanceof e),t,e,"not.instance",!1,`Expected value not to be an instance of ${r}`,n)};Uc.snapshot=function(t,e,n){t=IC(t),e=IC(e),To(t!==e,t,e,"not.snapshot",!1,"Expected value not to match snapshot",n)};Uc.fixture=function(t,e,n){t=IC(t),e=IC(e),To(t!==e,t,e,"not.fixture",!1,"Expected value not to match fixture",n)};Uc.match=function(t,e,n){typeof e=="string"?To(!t.includes(e),t,e,"not.match",!1,`Expected value not to include "${e}" substring`,n):To(!e.test(t),t,e,"not.match",!1,`Expected value not to match \`${String(e)}\` pattern`,n)};Uc.throws=function(t,e,n){!n&&typeof e=="string"&&(n=e,e=null);try{t()}catch(r){typeof e=="function"?To(!e(r),!0,!1,"not.throws",!1,"Expected function not to throw matching exception",n):e instanceof RegExp?To(!e.test(r.message),!0,!1,"not.throws",!1,`Expected function not to throw exception matching \`${String(e)}\` pattern`,n):e||To(!1,!0,!1,"not.throws",!1,"Expected function not to throw",n)}};const rs={eof:null,exclamationMark:33,dash:45,equalsTo:61,greaterThan:62},Nee={attentionSideAfter:2},dc={data:"data",lineEnding:"lineEnding",linePrefix:"linePrefix",characterEscape:"characterEscape"};var Iy="highlightSequenceTemporary",Oee="highlightSequence",R2t="highlight",N2t="highlightText";function O2t(){const t={name:"highlight",tokenize:n,resolveAll:e};return{text:{[rs.equalsTo]:t},insideSpan:{null:[t]},attentionMarkers:{null:[rs.equalsTo]}};function e(r,i){let s=-1;for(;++s<r.length;)if(r[s][0]==="enter"&&r[s][1].type===Iy&&r[s][1]._close){let a=s;for(;a--;)if(r[a][0]==="exit"&&r[a][1].type===Iy&&r[a][1]._open&&r[s][1].end.offset-r[s][1].start.offset===r[a][1].end.offset-r[a][1].start.offset){r[s][1].type=Oee,r[a][1].type=Oee;const o={type:R2t,start:Object.assign({},r[a][1].start),end:Object.assign({},r[s][1].end)},l={type:N2t,start:Object.assign({},r[a][1].end),end:Object.assign({},r[s][1].start)},u=[["enter",o,i],["enter",r[a][1],i],["exit",r[a][1],i],["enter",l,i]],c=i.parser.constructs.insideSpan.null;c&&hs(u,u.length,0,S2(c,r.slice(a+1,s),i)),hs(u,u.length,0,[["exit",l,i],["enter",r[s][1],i],["exit",r[s][1],i],["exit",o,i]]),hs(r,a-1,s-a+3,u),s=a+u.length-2;break}}for(s=-1;++s<r.length;)r[s][1].type===Iy&&(r[s][1].type=dc.data);return r}function n(r,i,s){const a=this.previous,o=this.events;let l=0;return u;function u(d){return A2t(d===rs.equalsTo,"expected `=`"),a===rs.equalsTo&&o[o.length-1][1].type!==dc.characterEscape?s(d):(r.enter(Iy),c(d))}function c(d){const h=nf(a);if(d===rs.equalsTo)return l>1?s(d):(r.consume(d),l++,c);if(l<2)return s(d);const m=r.exit(Iy),g=nf(d);return m._open=!g||g===Nee.attentionSideAfter&&!!h,m._close=!h||h===Nee.attentionSideAfter&&!!g,i(d)}}}const k2t={}.hasOwnProperty,I2t=Symbol("continue"),xO=Symbol("exit"),M2t=Symbol("skip");function D2t(t,e){let n,r;typeof e=="function"?n=e:e&&typeof e=="object"&&(e.enter&&(n=e.enter),e.leave&&(r=e.leave)),i(t,void 0,void 0,[])();function i(s,a,o,l){return wO(s)&&(u.displayName="node ("+s.type+")"),u;function u(){const c=n?kee(n(s,a,o,l)):[];if(c[0]===xO)return c;if(c[0]!==M2t){let d;for(d in s)if(k2t.call(s,d)&&s[d]&&typeof s[d]=="object"&&d!=="data"&&d!=="position"){const h=l.concat(s),m=s[d];if(Array.isArray(m)){const g=m;let b=0;for(;b>-1&&b<g.length;){const v=g[b];if(wO(v)){const E=i(v,d,b,h)();if(E[0]===xO)return E;b=typeof E[1]=="number"?E[1]:b+1}else b++}}else if(wO(m)){const g=i(m,d,void 0,h)();if(g[0]===xO)return g}}}return r?kee(r(s,a,o,l)):c}}}function kee(t){return Array.isArray(t)?t:typeof t=="number"?[I2t,t]:[t]}function wO(t){return!!(t&&typeof t=="object"&&"type"in t&&typeof t.type=="string"&&t.type.length>0)}function P2t(t,e){const n=e.prefix||"",r=e.suffix||"",i=Object.assign({},e.acornOptions),s=[],a=[],o=i.onComment,l=i.onToken;
201let u=!1,c,d;const h=Object.assign({},i,{onComment:s,preserveParens:!0});l&&(h.onToken=a);const m=L2t(t,e.tokenTypes),g=m.value,b=n+g+r,v=Iee(g);if(v&&!e.allowEmpty)throw new Pn("Unexpected empty expression",{place:x(0),ruleId:"unexpected-empty-expression",source:"micromark-extension-mdx-expression"});try{c=e.expression&&!v?e.acorn.parseExpressionAt(b,0,h):e.acorn.parse(b,h)}catch(_){const S=_,A=x(S.pos);S.message=String(S.message).replace(/ \(\d+:\d+\)$/,""),S.pos=A.offset,S.loc={line:A.line,column:A.column-1},d=S,u=S.raisedAt>=n.length+g.length||S.message==="Unterminated comment"}if(c&&e.expression&&!v)if(Iee(b.slice(c.end,b.length-r.length)))c={type:"Program",start:0,end:n.length+g.length,body:[{type:"ExpressionStatement",expression:c,start:0,end:n.length+g.length}],sourceType:"module",comments:[]};else{const _=x(c.end),S=new Error("Unexpected content after expression");S.pos=_.offset,S.loc={line:_.line,column:_.column-1},d=S,c=void 0}if(c){if(c.comments=s,D2t(c,function(_,S,A,R){let T=R[R.length-1],O=S;_.type==="ParenthesizedExpression"&&T&&O&&(typeof A=="number"&&(T=T[O],O=A),T[O]=_.expression),E(_)}),Array.isArray(o))o.push(...s);else if(typeof o=="function")for(const _ of s)o(_.type==="Block",_.value,_.start,_.end,_.loc.start,_.loc.end);for(const _ of a)_.end<=n.length||_.start-n.length>=g.length||(E(_),Array.isArray(l)?l.push(_):l(_))}return{estree:c,error:d,swallow:u};function E(_){const S=x(_.start),A=x(_.end);_.start=S.offset,_.end=A.offset,_.loc={start:{line:S.line,column:S.column-1,offset:S.offset},end:{line:A.line,column:A.column-1,offset:A.offset}},_.range=[_.start,_.end]}function x(_){let S=_-n.length;S<0?S=0:S>g.length&&(S=g.length);let A=$2t(m.stops,S);return A||(A={line:e.start.line,column:e.start.column,offset:e.start.offset}),A}}function Iee(t){return/^\s*$/.test(t.replace(/\/\*[\s\S]*?\*\//g,"").replace(/\/\/[^\r\n]*(\r\n|\n|\r)/g,""))}function L2t(t,e){const n={value:"",stops:[]};let r=-1;for(;++r<t.length;){const i=t[r];if(i[0]==="enter"){const s=i[1].type;if(s==="lineEnding"||e.includes(s)){const a=i[2].sliceStream(i[1]);for(;a.length>0&&a[0]===-1;)a.shift();const o=F2t(a);n.stops.push([n.value.length,i[1].start]),n.value+=o,n.stops.push([n.value.length,i[1].end])}}}return n}function $2t(t,e){let n=0;for(;n<t.length&&t[n][0]<=e;)n+=1;if(n===0)return;const[r,i]=t[n-1],s=e-r;return{line:i.line,column:i.column+s,offset:i.offset+s}}function F2t(t){let e=-1;const n=[];let r;for(;++e<t.length;){const i=t[e];let s;if(typeof i=="string")s=i;else switch(i){case-5:{s="\r";break}case-4:{s=` 202`;break}case-3:{s=`\r 203`;break}case-2:{s=" ";break}case-1:{if(r)continue;s=" ";break}default:s=String.fromCharCode(i)}r=i===-2,n.push(s)}return n.join("")}function SO(t){const e=t||{},n=e.loc||{},r=e.range||[void 0,void 0],i=Mee(n.start,r[0]||e.start),s=Mee(n.end,r[1]||e.end);if(i&&s)return{start:i,end:s}}function Mee(t,e){if(t&&typeof t=="object"){const n="line"in t?CO(t.line):void 0,r="column"in t?CO(t.column):void 0;if(n&&r!==void 0)return{line:n,column:r+1,offset:CO(e)}}}function CO(t){return typeof t=="number"&&t>-1?t:void 0}const B2t=2,cg="https://github.com/micromark/micromark-extension-mdx-expression/tree/main/packages/micromark-extension-mdx-expression",H2t="#unexpected-end-of-file-in-expression-expected-a-corresponding-closing-brace-for-",U2t="#unexpected-lazy-line-in-expression-in-container-expected-line-to-be-prefixed",Dee="#unexpected-type-in-code-expected-an-object-spread-spread",j2t="#unexpected-extra-content-in-spread-only-a-single-spread-is-supported",z2t="#could-not-parse-expression-with-acorn";function Pee(t,e,n,r,i,s,a,o,l,u,c){const d=this,h=this.events.length+3;let m=0,g,b;return v;function v(S){return t.enter(n),t.enter(r),t.consume(S),t.exit(r),g=d.now(),E}function E(S){if(S===null){if(b)throw b;const A=new Pn("Unexpected end of file in expression, expected a corresponding closing brace for `{`",{place:d.now(),ruleId:"unexpected-eof",source:"micromark-extension-mdx-expression"});throw A.url=cg+H2t,A}if(pt(S))return t.enter("lineEnding"),t.consume(S),t.exit("lineEnding"),_;if(S===125&&m===0){const A=s?V2t.call(d,s,a,i,h,g,u||!1,l||!1):{type:"ok",estree:void 0};if(A.type==="ok"){t.enter(r),t.consume(S),t.exit(r);const R=t.exit(n);return o&&A.estree&&Object.assign(R,{estree:A.estree}),e}return b=A.message,t.enter(i),t.consume(S),x}return t.enter(i),x(S)}function x(S){return S===125&&m===0||S===null||pt(S)?(t.exit(i),E(S)):(S===123&&!s?m+=1:S===125&&(m-=1),t.consume(S),x)}function _(S){const A=d.now();if(A.line!==g.line&&!c&&d.parser.lazy[A.line]){const R=new Pn("Unexpected lazy line in expression in container, expected line to be prefixed with `>` when in a block quote, whitespace when in a list, etc",{place:d.now(),ruleId:"unex
203pected-lazy",source:"micromark-extension-mdx-expression"});throw R.url=cg+U2t,R}return en(S)?gn(t,E,"linePrefix",B2t+1)(S):E(S)}}function V2t(t,e,n,r,i,s,a){const o=P2t(this.events.slice(r),{acorn:t,tokenTypes:[n],acornOptions:e,start:i,expression:!0,allowEmpty:s,prefix:a?"({":"",suffix:a?"})":""}),l=o.estree;if(a&&l){const u=l.body[0];if(u.type!=="ExpressionStatement"||u.expression.type!=="ObjectExpression"){const c=SO(u),d=new Pn("Unexpected `"+u.type+"` in code: expected an object spread (`{...spread}`)",{place:c.start,ruleId:"non-spread",source:"micromark-extension-mdx-expression"});throw d.url=cg+Dee,d}if(u.expression.properties[1]){const c=SO(u.expression.properties[1]),d=new Pn("Unexpected extra content in spread: only a single spread is supported",{place:c.start,ruleId:"spread-extra",source:"micromark-extension-mdx-expression"});throw d.url=cg+j2t,d}if(u.expression.properties[0]&&u.expression.properties[0].type!=="SpreadElement"){const c=SO(u.expression.properties[0]),d=new Pn("Unexpected `"+u.expression.properties[0].type+"` in code: only spread elements are supported",{place:c.start,ruleId:"non-spread",source:"micromark-extension-mdx-expression"});throw d.url=cg+Dee,d}}if(o.error){const u=new Pn("Could not parse expression with acorn",{cause:o.error,place:{line:o.error.loc.line,column:o.error.loc.column+1,offset:o.error.pos},ruleId:"acorn",source:"micromark-extension-mdx-expression"});return u.url=cg+z2t,{type:"nok",message:u}}return{type:"ok",estree:l}}const Lee="https://github.com/micromark/micromark-extension-mdx-jsx";function FEe(t,e,n,r,i,s,a,o,l,u,c,d,h,m,g,b,v,E,x,_,S,A,R,T,O,I,D,P,B,L,$,q){const F=this;let G,H;return K;function K(X){return t.enter(o),t.enter(l),t.consume(X),t.exit(l),V}function V(X){return An(X)?n(X):(G=Y,be(X))}function Y(X){if(X===47)return t.enter(u),t.consume(X),t.exit(u),G=Z,be;if(X===62)return de(X);if(X!==null&&X>=0&&Bo(X))return t.enter(d),t.enter(h),t.consume(X),W;fe(X,"before name","a character that can start a name, such as a letter, `$`, or `_`"+(X===33?" (note: to create a comment in MDX, use `{/* text */}`)":""))}function Z(X){if(X===62)return de(X);if(X!==null&&X>=0&&Bo(X))return t.enter(d),t.enter(h),t.consume(X),W;fe(X,"before name","a character that can start a name, such as a letter, `$`, or `_`"+(X===42||X===47?" (note: JS comments in JSX tags are not supported in MDX)":""))}function W(X){if(X!==null&&X>=0&&dy(X,{jsx:!0}))return t.consume(X),W;if(X===46||X===47||X===58||X===62||X===123||An(X)||Ts(X))return t.exit(h),G=Q,be(X);fe(X,"in name","a name character such as letters, digits, `$`, or `_`; whitespace before attributes; or the end of the tag"+(X===64?" (note: to create a link in MDX, use `[text](url)`)":""))}function Q(X){if(X===46)return t.enter(m),t.consume(X),t.exit(m),G=re,be;if(X===58)return t.enter(b),t.consume(X),t.exit(b),G=ae,be;if(X===47||X===62||X===123||X!==null&&X>=0&&Bo(X))return t.exit(d),Re(X);fe(X,"after name","a character that can start an attribute name, such as a letter, `$`, or `_`; whitespace before attributes; or the end of the tag")}function re(X){if(X!==null&&X>=0&&Bo(X))return t.enter(g),t.consume(X),se;fe(X,"before member name","a character that can start an attribute name, such as a letter, `$`, or `_`; whitespace before attributes; or the end of the tag")}function se(X){if(X!==null&&X>=0&&dy(X,{jsx:!0}))return t.consume(X),se;if(X===46||X===47||X===62||X===123||An(X)||Ts(X))return t.exit(g),G=J,be(X);fe(X,"in member name","a name character such as letters, digits, `$`, or `_`; whitespace before attributes; or the end of the tag"+(X===64?" (note: to create a link in MDX, use `[text](url)`)":""))}function J(X){if(X===46)return t.enter(m),t.consume(X),t.exit(m),G=re,be;if(X===47||X===62||X===123||X!==null&&X>=0&&Bo(X))return t.exit(d),Re(X);fe(X,"after member name","a character that can start an attribute name, such as a letter, `$`, or `_`; whitespace before attributes; or the end of the tag")}function ae(X){if(X!==null&&X>=0&&Bo(X))return t.enter(v),t.consume(X),ge;fe(X,"before local name","a character that can start a name, such as a letter, `$`, or `_`"+(X===43||X!==null&&X>46&&X<58?" (note: to create a link in MDX, use `[text](url)`)":""))}function ge(X){if(X!==null&&X>=0&&dy(X,{jsx:!0}))return t.consume(X),ge;if(X===47||X===62||X===123||An(X)||Ts(X))return t.exit(v),G=ve,be(X);
vendor: 4,330 bytes, line 203
203fe(X,"in local name","a name character such as letters, digits, `$`, or `_`; whitespace before attributes; or the end of the tag")}function ve(X){if(X===47||X===62||X===123||X!==null&&X>=0&&Bo(X))return t.exit(d),Re(X);fe(X,"after local name","a character that can start an attribute name, such as a letter, `$`, or `_`; whitespace before attributes; or the end of the tag")}function Re(X){if(X===47)return t.enter(c),t.consume(X),t.exit(c),G=te,be;if(X===62)return de(X);if(X===123)return Pee.call(F,t,xe,E,x,_,r,i,s,!0,!1,a)(X);if(X!==null&&X>=0&&Bo(X))return t.enter(S),t.enter(A),t.enter(R),t.consume(X),Ne;fe(X,"before attribute name","a character that can start an attribute name, such as a letter, `$`, or `_`; whitespace before attributes; or the end of the tag")}function xe(X){return G=Re,be(X)}function Ne(X){if(X!==null&&X>=0&&dy(X,{jsx:!0}))return t.consume(X),Ne;if(X===47||X===58||X===61||X===62||X===123||An(X)||Ts(X))return t.exit(R),G=Fe,be(X);fe(X,"in attribute name","an attribute name character such as letters, digits, `$`, or `_`; `=` to initialize a value; whitespace before attributes; or the end of the tag")}function Fe(X){if(X===58)return t.enter(T),t.consume(X),t.exit(T),G=Le,be;if(X===61)return t.exit(A),t.enter(I),t.consume(X),t.exit(I),G=_t,be;if(X===47||X===62||X===123||An(X)||Ts(X)||X!==null&&X>=0&&Bo(X))return t.exit(A),t.exit(S),G=Re,be(X);fe(X,"after attribute name","a character that can start an attribute name, such as a letter, `$`, or `_`; `=` to initialize a value; or the end of the tag")}function Le(X){if(X!==null&&X>=0&&Bo(X))return t.enter(O),t.consume(X),ze;fe(X,"before local attribute name","a character that can start an attribute name, such as a letter, `$`, or `_`; `=` to initialize a value; or the end of the tag")}function ze(X){if(X!==null&&X>=0&&dy(X,{jsx:!0}))return t.consume(X),ze;if(X===47||X===61||X===62||X===123||An(X)||Ts(X))return t.exit(O),t.exit(A),G=qe,be(X);fe(X,"in local attribute name","an attribute name character such as letters, digits, `$`, or `_`; `=` to initialize a value; whitespace before attributes; or the end of the tag")}function qe(X){if(X===61)return t.enter(I),t.consume(X),t.exit(I),G=_t,be;if(X===47||X===62||X===123||X!==null&&X>=0&&Bo(X))return t.exit(S),Re(X);fe(X,"after local attribute name","a character that can start an attribute name, such as a letter, `$`, or `_`; `=` to initialize a value; or the end of the tag")}function _t(X){if(X===34||X===39)return t.enter(D),t.enter(P),t.consume(X),t.exit(P),H=X,Lt;if(X===123)return Pee.call(F,t,Ot,L,$,q,r,i,s,!1,!1,a)(X);fe(X,"before attribute value","a character that can start an attribute value, such as `\"`, `'`, or `{`"+(X===60?" (note: to use an element or fragment as a prop value in MDX, use `{<element />}`)":""))}function Ot(X){return t.exit(S),G=Re,be(X)}function Lt(X){return X===null&&fe(X,"in attribute value","a corresponding closing quote `"+String.fromCodePoint(H)+"`"),X===H?(t.enter(P),t.consume(X),t.exit(P),t.exit(D),t.exit(S),H=void 0,G=Re,be):pt(X)?(G=Lt,be(X)):(t.enter(B),ue(X))}function ue(X){return X===null||X===H||pt(X)?(t.exit(B),Lt(X)):(t.consume(X),ue)}function te(X){if(X===62)return de(X);fe(X,"after self-closing slash","`>` to end the tag"+(X===42||X===47?" (note: JS comments in JSX tags are not supported in MDX)":""))}function de(X){return t.enter(l),t.consume(X),t.exit(l),t.exit(o),e}function be(X){return pt(X)?(t.enter("lineEnding"),t.consume(X),t.exit("lineEnding"),ne):en(X)||Ts(X)?(t.enter("esWhitespace"),ce(X)):G(X)}function ce(X){return pt(X)?(t.exit("esWhitespace"),be(X)):en(X)||Ts(X)?(t.consume(X),ce):(t.exit("esWhitespace"),G(X))}function ne(X){if(!a&&F.parser.lazy[F.now().line]){const Oe=new Pn("Unexpected lazy line in container, expected line to be prefixed with `>` when in a block quote, whitespace when in a list, etc",F.now(),"micromark-extension-mdx-jsx:unexpected-lazy");throw Oe.url=Lee+"#unexpected-lazy-line-in-container-expected-line-to-be",Oe}return be(X)}function fe(X,Oe,Ye){const rt=new Pn("Unexpected "+(X===null?"end of file":"character `"+(X===96?"` ` `":String.fromCodePoint(X))+"` ("+q2t(X)+")")+" "+Oe+", expected "+Ye,F.now(),"micromark-extension-mdx-jsx:unexpected-"+(X===null?"eof":"character"));throw rt.url=Lee+(X===null?"#unexpected-end-of-file-at-expected-expect":"#unexpected-character-at-ex
203pected-expect"),rt}}function q2t(t){return"U+"+t.toString(16).toUpperCase().padStart(4,"0")}function G2t(t,e){return{name:"mdxJsxTextTag",tokenize:n};function n(r,i,s){return FEe.call(this,r,i,s,t,e.acornOptions,e.addResult,!0,"mdxJsxTextTag","mdxJsxTextTagMarker","mdxJsxTextTagClosingMarker","mdxJsxTextTagSelfClosingMarker","mdxJsxTextTagName","mdxJsxTextTagNamePrimary","mdxJsxTextTagNameMemberMarker","mdxJsxTextTagNameMember","mdxJsxTextTagNamePrefixMarker","mdxJsxTextTagNameLocal","mdxJsxTextTagExpressionAttribute","mdxJsxTextTagExpressionAttributeMarker","mdxJsxTextTagExpressionAttributeValue","mdxJsxTextTagAttribute","mdxJsxTextTagAttributeName","mdxJsxTextTagAttributeNamePrimary","mdxJsxTextTagAttributeNamePrefixMarker","mdxJsxTextTagAttributeNameLocal","mdxJsxTextTagAttributeInitializerMarker","mdxJsxTextTagAttributeValueLiteral","mdxJsxTextTagAttributeValueLiteralMarker","mdxJsxTextTagAttributeValueLiteralValue","mdxJsxTextTagAttributeValueExpression","mdxJsxTextTagAttributeValueExpressionMarker","mdxJsxTextTagAttributeValueExpressionValue")}}function W2t(t,e){return{concrete:!0,name:"mdxJsxFlowTag",tokenize:n};function n(r,i,s){const a=this;return o;function o(d){return l(d)}function l(d){return FEe.call(a,r,u,s,t,e.acornOptions,e.addResult,!1,"mdxJsxFlowTag","mdxJsxFlowTagMarker","mdxJsxFlowTagClosingMarker","mdxJsxFlowTagSelfClosingMarker","mdxJsxFlowTagName","mdxJsxFlowTagNamePrimary","mdxJsxFlowTagNameMemberMarker","mdxJsxFlowTagNameMember","mdxJsxFlowTagNamePrefixMarker","mdxJsxFlowTagNameLocal","mdxJsxFlowTagExpressionAttribute","mdxJsxFlowTagExpressionAttributeMarker","mdxJsxFlowTagExpressionAttributeValue","mdxJsxFlowTagAttribute","mdxJsxFlowTagAttributeName","mdxJsxFlowTagAttributeNamePrimary","mdxJsxFlowTagAttributeNamePrefixMarker","mdxJsxFlowTagAttributeNameLocal","mdxJsxFlowTagAttributeInitializerMarker","mdxJsxFlowTagAttributeValueLiteral","mdxJsxFlowTagAttributeValueLiteralMarker","mdxJsxFlowTagAttributeValueLiteralValue","mdxJsxFlowTagAttributeValueExpression","mdxJsxFlowTagAttributeValueExpressionMarker","mdxJsxFlowTagAttributeValueExpressionValue")(d)}function u(d){return en(d)?gn(r,c,"whitespace")(d):c(d)}function c(d){const h=a.parser.constructs.flow[123],m=Array.isArray(h)?h:h?[h]:[];let g;for(const b of m)if(b.name==="mdxFlowExpression"){g=b;break}return d===60?o(d):d===123&&g?r.attempt(g,c,s)(d):d===null||pt(d)?i(d):s(d)}}}function Y2t(t){const e={},n=e.acorn;let r;if(n){if(!n.parse||!n.parseExpressionAt)throw new Error("Expected a proper `acorn` instance passed in as `options.acorn`");r=Object.assign({ecmaVersion:2024,sourceType:"module"},e.acornOptions,{locations:!0})}else if(e.acornOptions||e.addResult)throw new Error("Expected an `acorn` instance passed in as `options.acorn`");return{flow:{60:W2t(n||void 0,{acornOptions:r,addResult:e.addResult||void 0})},text:{60:G2t(n||void 0,{acornOptions:r,addResult:e.addResult||void 0})}}}function K2t(){return{disable:{null:["autolink","codeIndented","htmlFlow","htmlText"]}}}const X2t=["mdxJsxTextElement","mdxJsxFlowElement"];function BEe(t){return X2t.includes(t.type)&&Q2t.includes(t.name.toLowerCase())}const Q2t=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","input","ins","kbd","label","legend","li","link","main","map","mark","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr"];function Z2t(t,e){const n=$ee(t),r=$ee(e),i={...n,...r};return J2t(i)}function $ee(t){const e={};return t.split(";").filter(r=>r.trim()!=="").forEach(r=>{const[i,s]=r.split(":").map(a=>a.trim());e[i]=s}
203),e}function J2t(t){return Object.entries(t).map(([e,n])=>`${e}: ${n}`).join("; ")}function eEt(t){return t.children instanceof Array}function tEt({root:t,visitors:e,jsxComponentDescriptors:n,jsxIsAvailable:r,addImportStatements:i=!0}){let s=null;const a=new Set,o=new Map;e=e.sort((E,x)=>(x.priority??0)-(E.priority??0)),d(t,null);function l(E,x){a.add(E),x&&o.set(E,{...x})}function u(E,x){if(s===null)return s=x,s;if(!eEt(E))throw new Error("Attempting to append children to a non-parent");const _=E.children,S=_.at(-1);if(S){const A=e.find(R=>{var T;return(T=R.shouldJoin)==null?void 0:T.call(R,S,x)});if(A){const R=A.join(S,x);return _.splice(_.length-1,1,R),R}}return _.push(x),x}function c(E,x){E.getChildren().forEach(_=>{d(_,x)})}function d(E,x,_=null){var S;const A=e.find((R,T)=>{var O;return _?.has(T)?!1:(O=R.testLexicalNode)==null?void 0:O.call(R,E)});if(!A)throw new Error(`no lexical visitor found for ${E.getType()}`,{cause:E});(S=A.visitLexicalNode)==null||S.call(A,{lexicalNode:E,mdastParent:x,actions:{addAndStepInto(R,T={},O=!0){const I={type:R,...T,...O?{children:[]}:{}};u(x,I),Me(E)&&O&&c(E,I)},appendToParent:u,visitChildren:c,visit:d,registerReferredComponent:l,nextVisitor(){d(E,x,(_??new Set).add(e.indexOf(A)))}}})}if(s===null)throw new Error("traversal ended with no root element");const h=new Map,m=new Map;for(const E of a){const x=n.find(_=>_.name===E)??o.get(E)??n.find(_=>_.name==="*");if(!x)throw new Error(`Component ${E} is used but not imported`);if(x.source)if(x.defaultExport)m.set(E,x.source);else{const{source:_}=x,S=h.get(_);S?S.push(E):h.set(_,[E])}}if(!i){for(const[E,x]of h.entries()){const _=x.filter(S=>o.has(S));_.length>0?h.set(E,_):h.delete(E)}for(const E of m.keys())o.has(E)||m.delete(E)}const g=Array.from(h).map(([E,x])=>({type:"mdxjsEsm",value:`import { ${x.join(", ")} } from '${E}'`}));g.push(...Array.from(m).map(([E,x])=>({type:"mdxjsEsm",value:`import ${E} from '${x}'`})));const b=s,v=b.children.find(E=>E.type==="yaml");return v?b.children.splice(b.children.indexOf(v)+1,0,...g):b.children.unshift(...g),Xw(b,[]),HEe(b),r||UEe(b),b}function HEe(t){if("children"in t&&t.children.length>0){if(BEe(t)&&t.children.length===1){const e=t.children[0];e.type==="mdxJsxTextElement"&&e.name==="span"&&(e.attributes.forEach(n=>{if(n.type==="mdxJsxAttribute"){const r=t.attributes.find(i=>i.type==="mdxJsxAttribute"&&i.name===n.name);if(r)if(n.name==="className"){const i=new Set([...r.value.split(" "),...n.value.split(" ")]);r.value=Array.from(i).join(" ")}else n.name==="style"&&(r.value=Z2t(r.value,n.value));else t.attributes.push(n)}}),t.children=e.children)}t.children.forEach(e=>{HEe(e)})}}function UEe(t){if(Object.hasOwn(t,"children")){const e=t,n=[];e.children.forEach(r=>{r.type==="mdxJsxTextElement"&&r.name==="u"?n.push({type:"html",value:"<u>"},...r.children,{type:"html",value:"</u>"}):(n.push(r),UEe(r))}),e.children=n}}const Fee=/\s+$/,Bee=/^\s+/;function Xw(t,e){if(t.type==="strong"||t.type==="emphasis"){const n=t.children.at(-1);if(n?.type==="text"){const i=Fee.exec(n.value);if(i){n.value=n.value.replace(Fee,"");const s=e.at(-1);s&&(s.children.splice(s.children.indexOf(t)+1,0,{type:"text",value:i[0]}),Xw(s,e.slice(0,-1)))}}const r=t.children.at(0);if(r?.type==="text"){const i=Bee.exec(r.value);if(i){r.value=r.value.replace(Bee,"");const s=e.at(-1);s&&(s.children.splice(s.children.indexOf(t),0,{type:"text",value:i[0]}),Xw(s,e.slice(0,-1)))}}}if("children"in t&&t.children.length>0){const n=t;n.children.forEach(r=>{Xw(r,[...e,n])})}}function nEt({root:t,toMarkdownOptions:e,toMarkdownExtensions:n,visitors:r,jsxComponentDescriptors:i,jsxIsAvailable:s}){return zhe(tEt({root:t,visitors:r,jsxComponentDescriptors:i,jsxIsAvailable:s}),{extensions:n,...e})+` 204`}function My(t){return t.children instanceof Array}class _L extends Error{constructor(e,n){super(e),this.name="MarkdownParseError",this.cause=n}}class xL extends Error{constructor(e){super(e),this.name="UnrecognizedMarkdownConstructError"}}function rEt(t){const e=new Map;return t.type!=="root"?{importDeclarations:{}}:(t.children.filter(r=>r.type==="mdxjsEsm").filter(r=>
204r.value.startsWith("import ")).forEach(r=>{var i,s;(((s=(i=r.data)==null?void 0:i.estree)==null?void 0:s.body)??[]).forEach(a=>{a.type==="ImportDeclaration"&&a.specifiers.forEach(o=>{e.set(o.local.name,{source:`${a.source.value}`,defaultExport:o.type==="ImportDefaultSpecifier"})})})}),{importDeclarations:Object.fromEntries(e.entries())})}function iEt({root:t,markdown:e,visitors:n,syntaxExtensions:r,mdastExtensions:i,...s}){var a;let o;try{o=Nfe(e,{extensions:r,mdastExtensions:i})}catch(l){throw l instanceof Error?new _L(`Error parsing markdown: ${l.message}`,l):new _L(`Error parsing markdown: ${l}`,l)}o.children.length===0&&o.children.push({type:"paragraph",children:[]}),((a=o.children.at(-1))==null?void 0:a.type)!=="paragraph"&&o.children.push({type:"paragraph",children:[]}),sEt({root:t,mdastRoot:o,visitors:n,...s})}function sEt({root:t,mdastRoot:e,visitors:n,...r}){const i=new WeakMap,s=new WeakMap,a=rEt(e);n=n.sort((u,c)=>(c.priority??0)-(u.priority??0));function o(u,c){if(!My(u))throw new Error("Attempting to visit children of a non-parent");u.children.forEach(d=>{l(d,c,u)})}function l(u,c,d,h=null){const m=n.find((g,b)=>h?.has(b)?!1:typeof g.testNode=="string"?g.testNode===u.type:g.testNode(u,r));if(!m)try{throw new xL(`Unsupported markdown syntax: ${zhe(u)}`)}catch{throw new xL(`Parsing of the following markdown structure failed: ${JSON.stringify({type:u.type,name:"name"in u?u.name:"N/A"})}`)}m.visitNode({mdastNode:u,lexicalParent:c,mdastParent:d,descriptors:r,metaData:a,actions:{visitChildren:o,nextVisitor(){l(u,c,d,(h??new Set).add(n.indexOf(m)))},addAndStepInto(g){c.append(g),My(u)&&o(u,g)},addFormatting(g,b){b||My(u)&&(b=u),b&&i.set(b,g|(i.get(d)??0))},removeFormatting(g,b){b||My(u)&&(b=u),b&&i.set(b,g^(i.get(d)??0))},getParentFormatting(){return i.get(d)??0},addStyle(g,b){b||My(u)&&(b=u),b&&s.set(b,g)},getParentStyle(){return s.get(d)??""}}})}l(e,t,null)}var aEt=Object.defineProperty,oEt=(t,e,n)=>e in t?aEt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,TO=(t,e,n)=>(oEt(t,typeof e!="symbol"?e+"":e,n),n);const Hee="generic-html";class vE extends No{constructor(e,n,r,i){super(i),TO(this,"__tag"),TO(this,"__nodeType"),TO(this,"__attributes"),this.__tag=e,this.__nodeType=n,this.__attributes=r}static getType(){return Hee}static clone(e){return new vE(e.__tag,e.__nodeType,e.__attributes,e.__key)}getTag(){return this.__tag}getNodeType(){return this.__nodeType}getAttributes(){return this.__attributes}updateAttributes(e){const n=this.getWritable();n.__attributes=e}getStyle(){var e;return(e=this.__attributes.find(n=>n.name==="style"))==null?void 0:e.value}createDOM(){const e=this.__tag,n=document.createElement(e);return this.__attributes.forEach(r=>{n.setAttribute(r.name,r.value)}),n}updateDOM(){return!1}static importDOM(){return{}}exportDOM(e){const{element:n}=super.exportDOM(e);return{element:n}}static importJSON(e){const n=jEe(e.tag,e.mdxType,e.attributes);return n.setFormat(e.format),n.setIndent(e.indent),n.setDirection(e.direction),n}exportJSON(){return{...super.exportJSON(),tag:this.getTag(),attributes:this.__attributes,mdxType:this.__nodeType,type:Hee,version:1}}extractWithChild(){return!0}isInline(){return this.__nodeType==="mdxJsxTextElement"}}function jEe(t,e,n){return Au(new vE(t,e,n))}function lEt(t){return t instanceof vE}const uEt={testLexicalNode:lEt,visitLexicalNode({actions:t,lexicalNode:e}){t.addAndStepInto("mdxJsxTextElement",{name:e.getTag(),type:e.getNodeType(),attributes:e.getAttributes()})},priority:-100},cEt={testLexicalNode:ou,visitLexicalNode:({mdastParent:t,actions:e})=>{e.appendToParent(t,{type:"text",value:` 205`})}},dEt={testLexicalNode:oA,visitLexicalNode:({actions:t})=>{t.addAndStepInto("paragraph")}},fEt={testLexicalNode:pi,visitLexicalNode:({actions:t})=>{t.addAndStepInto("root")}},Rb=1,Nb=2,Qw=4,Ob=8,WB=16,Zw=32,Jw=64,eS=128;function Uee(t){return t.type==="text"}const hEt=["u","span","sub","sup"],pEt={shouldJoin:(t,e)=>{if(["text","emphasis","strong","highlight"].includes(t.type))return t.type===e.type;if(t.type==="mdxJsxTextElement"&&e.type==="mdxJsxTextElement"&&hEt.includes(e.name)){const n=e;return t.name===n.name&&JSON.stringify(t.attributes)===JSON.stringify(n.attributes)}return!1},join(t,e){return Uee(t)&&Uee(e)?{type:"text",value:t.value+e.value}:{...t,children:[...t.children,...e.children]}},testLexicalNode:Qe,visitLexicalNode:({lexicalNode:t,mdastParent:e,actions:n})=>{const r=t.getPreviousSibling(),i=Qe(r)?r.getFormat():0,s=t.getTextContent(),a=t.getFormat(),o=t.getStyle();let l=e;
205if(o&&(l=n.appendToParent(l,{type:"mdxJsxTextElement",name:"span",children:[],attributes:[{type:"mdxJsxAttribute",name:"style",value:o}]})),i&a&Ob&&(l=n.appendToParent(l,{type:"mdxJsxTextElement",name:"u",children:[],attributes:[]})),i&a&Jw&&(l=n.appendToParent(l,{type:"mdxJsxTextElement",name:"sup",children:[],attributes:[]})),i&a&Zw&&(l=n.appendToParent(l,{type:"mdxJsxTextElement",name:"sub",children:[],attributes:[]})),i&a&Nb&&(l=n.appendToParent(l,{type:"emphasis",children:[]})),i&a&Rb&&(l=n.appendToParent(l,{type:"strong",children:[]})),i&a&Qw&&(l=n.appendToParent(l,{type:"delete",children:[]})),i&a&eS&&(l=n.appendToParent(l,{type:"highlight",children:[]})),a&Ob&&!(i&Ob)&&(l=n.appendToParent(l,{type:"mdxJsxTextElement",name:"u",children:[],attributes:[]})),a&Jw&&!(i&Jw)&&(l=n.appendToParent(l,{type:"mdxJsxTextElement",name:"sup",children:[],attributes:[]})),a&Zw&&!(i&Zw)&&(l=n.appendToParent(l,{type:"mdxJsxTextElement",name:"sub",children:[],attributes:[]})),a&Nb&&!(i&Nb)&&(l=n.appendToParent(l,{type:"emphasis",children:[]})),a&Rb&&!(i&Rb)&&(l=n.appendToParent(l,{type:"strong",children:[]})),a&Qw&&!(i&Qw)&&(l=n.appendToParent(l,{type:"delete",children:[]})),a&eS&&!(i&eS)&&(l=n.appendToParent(l,{type:"highlight",children:[]})),a&WB){n.appendToParent(l,{type:"inlineCode",value:s});return}n.appendToParent(l,{type:"text",value:s})}},mEt={testNode:"break",visitNode:function({lexicalParent:t}){t.append(uf())}};function Xx(t,e){return[{testNode:n=>n.type==="mdxJsxTextElement"&&n.name===t,visitNode({actions:n,mdastNode:r,lexicalParent:i}){n.addFormatting(e),n.visitChildren(r,i)}},{testNode:n=>n.type==="html"&&n.value===`<${t}>`,visitNode({actions:n,mdastParent:r}){n.addFormatting(e,r)}},{testNode:n=>n.type==="html"&&n.value===`</${t}>`,visitNode({actions:n,mdastParent:r}){n.removeFormatting(e,r)}}]}const gEt={testNode:"delete",visitNode({mdastNode:t,actions:e,lexicalParent:n}){e.addFormatting(Qw),e.visitChildren(t,n)}},yEt={testNode:"highlight",visitNode({mdastNode:t,actions:e,lexicalParent:n}){e.addFormatting(eS),e.visitChildren(t,n)}},bEt={testNode:"inlineCode",visitNode({mdastNode:t,actions:e}){e.addAndStepInto(xr(t.value).setFormat(e.getParentFormatting()|WB))}},vEt={testNode:"emphasis",visitNode({mdastNode:t,actions:e,lexicalParent:n}){e.addFormatting(Nb),e.visitChildren(t,n)}},EEt={testNode:"strong",visitNode({mdastNode:t,actions:e,lexicalParent:n}){e.addFormatting(Rb),e.visitChildren(t,n)}},_Et=[vEt,EEt,...Xx("u",Ob),...Xx("code",WB),bEt,gEt,yEt,...Xx("sup",Jw),...Xx("sub",Zw)],xEt={testNode:BEe,visitNode:function({mdastNode:t,actions:e,lexicalParent:n}){t.name==="span"&&t.attributes.length===1&&t.attributes[0].type==="mdxJsxAttribute"&&t.attributes[0].name==="style"?(e.addStyle(t.attributes[0].value,t),e.visitChildren(t,n)):e.addAndStepInto(jEe(t.name,t.type,t.attributes))},priority:-100},wEt=["listitem","quote","admonition"],SEt={testNode:"paragraph",visitNode:function({mdastNode:t,lexicalParent:e,actions:n}){wEt.includes(e.getType())?n.visitChildren(t,e):n.addAndStepInto(ti())}},CEt={testNode:"root",visitNode({actions:t,mdastNode:e,lexicalParent:n}
205){t.visitChildren(e,n)}},TEt={testNode:"text",visitNode({mdastNode:t,actions:e}){const n=xr(t.value);n.setFormat(e.getParentFormatting());const r=e.getParentStyle();r!==""&&n.setStyle(r),e.addAndStepInto(n)}},AEt=()=>U.createElement(kvt,{externalHistoryState:Up(n_t)});function REt(t){return{canContainEols:["comment"],enter:{comment(e){this.buffer()}},exit:{comment(e){this.resume()}}}}const jee=(t,e,n)=>{return r;function r(g){return t.enter("comment"),t.consume(g),i}function i(g){return g===rs.exclamationMark?(t.consume(g),s):n(g)}function s(g){return g===rs.dash?(t.consume(g),a):n(g)}function a(g){return g===rs.dash?(t.consume(g),o):n(g)}function o(g){return g===rs.greaterThan?n(g):pt(g)?c(g):(t.enter(dc.data),g===rs.dash?(t.consume(g),l):u(g))}function l(g){return g===rs.greaterThan?n(g):u(g)}function u(g){return g===rs.eof?n(g):g===rs.dash?(t.consume(g),h):pt(g)?(t.exit(dc.data),c(g)):(t.consume(g),u)}function c(g){return t.enter(dc.lineEnding),t.consume(g),t.exit(dc.lineEnding),gn(t,d,dc.linePrefix)}function d(g){return pt(g)?c(g):(t.enter(dc.data),u(g))}function h(g){return g===rs.dash?(t.consume(g),m):u(g)}function m(g){return g===rs.greaterThan?(t.exit(dc.data),t.enter("commentEnd"),t.consume(g),t.exit("commentEnd"),t.exit("comment"),e(g)):g===rs.dash?(t.consume(g),m):u(g)}},NEt={flow:{60:{tokenize:jee,concrete:!0}},text:{60:{tokenize:jee}}},OEt="_bold_1tncs_10",kEt="_italic_1tncs_14",IEt="_underline_1tncs_18",MEt="_strikethrough_1tncs_34",DEt="_underlineStrikethrough_1tncs_38",PEt="_subscript_1tncs_42",LEt="_superscript_1tncs_47",$Et="_code_1tncs_52",FEt="_nestedListItem_1tncs_59",BEt="_listitem_1tncs_69",HEt="_listItemChecked_1tncs_73",UEt="_listItemUnchecked_1tncs_74",jEt="_admonitionDanger_1tncs_151",zEt="_admonitionInfo_1tncs_152",VEt="_admonitionNote_1tncs_153",qEt="_admonitionTip_1tncs_154",GEt="_admonitionCaution_1tncs_155",Ki={bold:OEt,italic:kEt,underline:IEt,strikethrough:MEt,underlineStrikethrough:DEt,subscript:PEt,superscript:LEt,code:$Et,nestedListItem:FEt,listitem:BEt,listItemChecked:HEt,listItemUnchecked:UEt,admonitionDanger:jEt,admonitionInfo:zEt,admonitionNote:VEt,admonitionTip:qEt,admonitionCaution:GEt},YB={text:{bold:Ki.bold,italic:Ki.italic,underline:Ki.underline,code:Ki.code,strikethrough:Ki.strikethrough,subscript:Ki.subscript,superscript:Ki.superscript,underlineStrikethrough:Ki.underlineStrikethrough},list:{listitem:Ki.listitem,listitemChecked:Ki.listItemChecked,listitemUnchecked:Ki.listItemUnchecked,nested:{listitem:Ki.nestedListItem}},admonition:{danger:Ki.admonitionDanger,info:Ki.admonitionInfo,note:Ki.admonitionNote,tip:Ki.admonitionTip,caution:Ki.admonitionCaution}},zEe=Mt("NESTED_EDITOR_UPDATED_COMMAND"),Rf=Nt(null),mi=Nt(null),wL=Nt(""),SL=Nt(!0),mp=Nt(!1,t=>{t.sub(t.pipe(mp,Ui(Rf)),([e,n])=>{n?.setEditable(!e)})}),CL=Nt(""),zee=Nt(!1),Hv=Nt(!1),VEe=Nt(0),MC=Nt(null),TL=ya(t=>{t.link(t.pipe(MC,uE(e=>e!==null)),TL)}),qEe=ya(t=>{t.sub(t.pipe(qEe,Ui(mi)),([e,n])=>{n?.dispatchCommand(xc,e)})}),c0=Nt(null,t=>{t.sub(t.pipe(c0,Ui(mi)),([e,n])=>{if(!e||!n)return;const r=e.anchor.getNode();let i=r.getKey()==="root"?r:ll(r,o=>{const l=o.getParent();return l!==null&&ms(l)});i??(i=r.getTopLevelElementOrThrow());const s=i.getKey();if(n.getElementByKey(s)!==null){const o=yL(i)?i.getTag():i.getType();t.pub(r_t,o)}})}),GEe=Nt(""),gp=Nt(""),DC=Nt(!1),gA=ya(t=>{t.link(gp,gA),t.sub(GEe,e=>{t.pubIn({[DC]:!0,[gp]:e})})}),AL=ya(t=>{t.link(t.pipe(gA,Ui(OL),uE(([,e])=>!e),j9(([e])=>e)),AL)},!0),WEe=Nt([]),YEe=Nt([]),KEe=Nt([]),XEe=Nt([]),KB=Nt([]),XB=Nt([]),PC=Nt({}),QEe=Nt(!1),QB=Nt([]),WEt=Nt([]),YEt=Nt([]),ZB=Nt(null),KEt=Nt(null),ZEe=Nt(null),JB=ba(YEe),LC=ba(WEe),RL=ba(KEe),NL=ba(XEe),eH=ba(KB),JEe=ba(XB),OL=Nt(!1),tH=ya(t=>{t.sub(t.pipe(tH,Ui(gp,Rf,Hv),uE(([e,n])=>e.trim()!==n.trim())),([e,,n,r])=>{t.pub(OL,!0),n?.update(()=>{Kn().clear(),nH(t,Kn(),e),r?n.focus():Vi(null)},{onUpdate:()=>{t.pub(OL,!1)}})})}),e_e=ya(t=>{t.sub(t.pipe(e_e,Ui(mi,Hv)),([e,n,r])=>{n?.update(()=>{const i=Xe();if(i!==null){const s={children:[],append(a){this.children.push(a)},getType(){return i.getNodes()[0].getType()}};nH(t,s,e),iA(s.children)}r?n.focus():Vi(null)})})});function t_e(){return Qve((t,[e,n])=>(t.forEach(r=>{if(!r)throw new Error("You have a subscription that does not return a teardown");r()}),n?e.map(r=>r(n)):[]),[])}const XEt=Nt(null),n_e=Nt([],t=>{t.pipe(t.combine(n_e,mi),t_e())}),r_e=Nt([],t=>{t.pipe(t.combine(r_e,Rf),t_e())}),QEt=Nt(null,Ig,(t,e)=>!!(t&&e&&t.editorRef===e.editorRef)),kL=ya(),qp=Nt(t=>{throw new Error(`No icon component for ${t}`)});function ba(t,e){return ya((n,r)=>{n.changeWith(t,r,(i,s)=>{Array.isArray(s)||(s=[s]);let a=i;for(const o of s)i.includes(o)||(a=[...a,o]);return a}),e?.(n,r)})}function i_e(t){const e=Xe();He(e)&&t.pubIn({[c0]:e,[VEe]:e.format})}const ZEt=ba(r_e,(t,e)=>{t.pub(e,[n=>n.registerCommand(yB,(r,i)=>(t.pubIn({[mi]:i,[Hv]:!0}),i._parentEditor===null&&i.getEditorState().read(()=>{t.pub(QEt,{rootNode:Kn(),editorType:"lexical",editorRef:i})}),i_e(t),!1),cf),n=>n.registerUpdateListener(({dirtyElements:r,dirtyLeaves:i,editorState:s})=>{if(t.getValue(MC)!==null||r.size===0&&i.size===0)return;let o;s.read(()=>{Kn().getLastChild()instanceof AB&&n.update(()=>{Kn().append(ti())},{discrete:!0}),o=nEt({root:Kn(),visitors:t.getValue(KB),jsxComponentDescriptors:t.getValue(QB),toMarkdownExtensions:t.getValue(XB),toMarkdownOptions:t.getValue(PC),jsxIsAvailable:t.getValue(QEe)})}),t.pub(gp,o.trim()),t.pub(DC,!1)}),n=>n.registerCommand(_2e,()=>(t.pub(Hv,!0),!1),cf)])}),$C=ba(n_e,(t,e)=>{t.pub(e,[n=>n.registerUpdateListener(({editorState:r})=>{r.read(()=>{i_e(t)})}),n=>n.registerCommand(x2e,r=>{var i;const s=t.getValue(Rf);return s&&!((i=s.getRootElement())!=null&&i.contains(r.relatedTarget))&&t.pubIn({[Hv]:!1,[kL]:r}),!1},cf)])});function nH(t,e,n){try{iEt({root:e,visitors:t.getValue(WEe),mdastExtensions:t.getValue(XEe),markdown:n,syntaxExtensions:t.getValue(KEe),jsxComponentDescriptors:t.getValue(QB),directiveDescriptors:t.getValue(WEt),codeBlockEditorDescriptors:t.getValue(YEt)}),t.pub(MC,null)}catch(r){if(r instanceof _L||r instanceof xL)t.pubIn({[gp]:n,[MC]:{error:r.message,source:n}});else throw r}}const s_e=Nt([]),yA=ba(s_e),a_e=Nt([]),JEt=ba(a_e),o_e=Nt([]),e_t=ba(o_e),l_e=Nt([]);ba(l_e);const t_t=Nt([]),u_e=ba(t_t),n_t=Nt(xEe()),r_t=Nt("");ya();const i_t=ya(t=>{t.sub(t.pipe(i_t,Ui(mi)),([e,n])=>{n?.update(()=>{const r=Xe();He(r)&&(pvt(r,e),setTimeout(()=>{n.focus()}))})})}),s_t=ya(t=>{t.sub(t.pipe(s_t,Ui(mi)),([e,n])=>{n?.focus(()=>{n.getEditorState().read(()=>{const r=Xe();He(r)&&(n.update(()=>{const i=e();i.isInline()?(iA([i]),ms(i.getParentOrThrow())&&xvt(i,ti).selectEnd()):Evt(i),setTimeout(()=>{"select"in i&&typeof i.select=="function"&&i.select()})}),setTimeout(()=>{n.dispatchCommand(zEe,void 0)}))})},{defaultSelection:"rootEnd"})})}),Uv=Nt("rich-text",t=>{function e(){return Qve((n,r)=>({current:n.next,next:r}),{current:"rich-text",next:"rich-text"})}t.sub(t.pipe(Uv,e(),Ui(jv)),([{current:n},r])=>{(n==="source"||n==="diff")&&t.pub(tH,r)}),t.sub(t.pipe(Uv,e(),uE(n=>n.current==="rich-text"),Ui(mi)),([,n])=>{n?.dispatchCommand(zEe,void 0)})}),jv=Nt("",t=>{t.link(gp,jv),t.link(jv,gA)},!0),a_t=Nt([]),c_e=ba(a_t),d_e=Nt(()=>{throw new Error("No translation function provided")}),Vee=Nt(YB),o_t=cE({init(t,e){const n=e?.initialMarkdown??"";t.register(ZEt),t.register($C),t.register(gA),t.register(jv),t.pubIn({[GEe]:e?.trim?n.trim():n,[qp]:e?.iconComponentFor,[LC]:[CEt,SEt,TEt,mEt,..._Et],[JB]:[r1,Wc,vE],[eH]:[fEt,dEt,pEt,cEt,uEt],[wL]:e?.contentEditableClassName,[SL]:e?.spellCheck,[PC]:e?.toMarkdownOptions,[zee]:e?.autoFocus,[CL]:e?.placeholder,[mp]:e?.readOnly,[d_e]:e?.translation,[NL]:[Ahe(),Kvt],[RL]:[epe(),O2t()],[JEe]:[y2t(),Rhe(),Zvt],[Vee]:e?.lexicalTheme??YB}),t.singletonSub(TL,e?.onError),t.singletonSub(AL,r=>{e?.onChange(r,t.getValue(DC))}),t.singletonSub(kL,e?.onBlur),e?.suppressHtmlProcessing||t.pubIn({[NL]:[g2t(),REt()],[RL]:[Y2t(),K2t(),NEt],[LC]:xEt}),e?.suppressSharedHistory||t.pub(yA,AEt)},postInit(t,e){const n=Bbt({editable:e?.readOnly!==!0,namespace:e?.lexicalEditorNamespace??"MDXEditor",nodes:[...t.getValue(YEe),...e?.additionalLexicalNodes??[]],onError:r=>{throw r},theme:t.getValue(Vee)});e?.editorState!==null&&n.update(()=>{const r=e?.initialMarkdown.trim()??"";nH(t,Kn(),r);const i=e?.autoFocus;if(i){if(i===!0){setTimeout(()=>{n.focus(Ig,{defaultSelection:"rootStart"})});return}setTimeout(()=>{n.focus(Ig,{defaultSelection:i.defaultSelection??"rootStart"})})}}),t.pub(Rf,n),t.pub(mi,n)},update(t,e){t.pubIn({[wL]:e?.contentEditableClassName,[SL]:e?.spellCheck,[PC]:e?.toMarkdownOptions,[zee]:e?.autoFocus,[CL]:e?.placeholder,[mp]:e?.readOnly}),t.singletonSub(AL,n=>{e?.onChange(n,t.getValue(DC))}),t.singletonSub(kL,e?.onBlur),t.singletonSub(TL,e?.onError)}});function Nf(){return Up(d_e)}
205function l_t(){return Kn().getTextContent()}function u_t(t,e=!0){if(t)return!1;let n=l_t();return e&&(n=n.trim()),n===""}function c_t(t){if(!u_t(t,!1))return!1;const e=Kn().getChildren(),n=e.length;if(n>1)return!1;for(let r=0;r<n;r++){const i=e[r];if(Mn(i))return!1;if(Me(i)){if(!oA(i)||i.__indent!==0)return!1;const s=i.getChildren(),a=s.length;for(let o=0;o<a;o++){const l=s[r];if(!Qe(l))return!1}}}return!0}function f_e(t){return()=>c_t(t)}const h_e=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0?C.useLayoutEffect:C.useEffect;function d_t({editor:t,ariaActiveDescendant:e,ariaAutoComplete:n,ariaControls:r,ariaDescribedBy:i,ariaErrorMessage:s,ariaExpanded:a,ariaInvalid:o,ariaLabel:l,ariaLabelledBy:u,ariaMultiline:c,ariaOwns:d,ariaRequired:h,autoCapitalize:m,className:g,id:b,role:v="textbox",spellCheck:E=!0,style:x,tabIndex:_,"data-testid":S,...A},R){const[T,O]=C.useState(t.isEditable()),I=C.useCallback((P=>{P&&P.ownerDocument&&P.ownerDocument.defaultView?t.setRootElement(P):t.setRootElement(null)}),[t]),D=C.useMemo((()=>(function(...P){return B=>{P.forEach((L=>{typeof L=="function"?L(B):L!=null&&(L.current=B)}))}})(R,I)),[I,R]);return h_e((()=>(O(t.isEditable()),t.registerEditableListener((P=>{O(P)})))),[t]),j.jsx("div",{"aria-activedescendant":T?e:void 0,"aria-autocomplete":T?n:"none","aria-controls":T?r:void 0,"aria-describedby":i,...s!=null?{"aria-errormessage":s}:{},"aria-expanded":T&&v==="combobox"?!!a:void 0,...o!=null?{"aria-invalid":o}:{},"aria-label":l,"aria-labelledby":u,"aria-multiline":c,"aria-owns":T?d:void 0,"aria-readonly":!T||void 0,"aria-required":h,autoCapitalize:m,className:g,contentEditable:T,"data-testid":S,id:b,ref:D,role:v,spellCheck:E,style:x,tabIndex:_,...A})}const f_t=C.forwardRef(d_t);function qee(t){return t.getEditorState().read(f_e(t.isComposing()))}const h_t=C.forwardRef(p_t);function p_t(t,e){const{placeholder:n,...r}=t,[i]=Tu();return j.jsxs(j.Fragment,{children:[j.jsx(f_t,{editor:i,...r,ref:e}),n!=null&&j.jsx(m_t,{editor:i,content:n})]})}function m_t({content:t,editor:e}){const n=(function(a){const[o,l]=C.useState((()=>qee(a)));return h_e((()=>{function u(){const c=qee(a);l(c)}return u(),_l(a.registerUpdateListener((()=>{u()})),a.registerEditableListener((()=>{u()})))}),[a]),o})(e),[r,i]=C.useState(e.isEditable());if(C.useLayoutEffect((()=>(i(e.isEditable()),e.registerEditableListener((a=>{i(a)})))),[e]),!n)return null;let s=null;return typeof t=="function"?s=t(r):t!==null&&(s=t),s===null?null:j.jsx("div",{"aria-hidden":!0,children:s})}function IL(t,e){return IL=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},IL(t,e)}var Gee={error:null},g_t=(function(t){var e,n;function r(){for(var s,a=arguments.length,o=new Array(a),l=0;l<a;l++)o[l]=arguments[l];return(s=t.call.apply(t,[this].concat(o))||this).state=Gee,s.resetErrorBoundary=function(){for(var u,c=arguments.length,d=new Array(c),h=0;h<c;h++)d[h]=arguments[h];s.props.onReset==null||(u=s.props).onReset.apply(u,d),s.reset()},s}n=t,(e=r).prototype=Object.create(n.prototype),e.prototype.constructor=e,IL(e,n),r.getDerivedStateFromError=function(s){return{error:s}};var i=r.prototype;return i.reset=function(){this.setState(Gee)},i.componentDidCatch=function(s,a){var o,l;(o=(l=this.props).onError)==null||o.call(l,s,a)},i.componentDidUpdate=function(s,a){var o,l,u,c,d=this.state.error,h=this.props.resetKeys;d!==null&&a.error!==null&&((u=s.resetKeys)===void 0&&(u=[]),(c=h)===void 0&&(c=[]),u.length!==c.length||u.some((function(m,g){return!Object.is(m,c[g])})))&&((o=(l=this.props).onResetKeysChange)==null||o.call(l,s.resetKeys,h),this.reset())},i.render=function(){var s=this.state.error,a=this.props,o=a.fallbackRender,l=a.FallbackComponent,u=a.fallback;if(s!==null){var c={error:s,resetErrorBoundary:this.resetErrorBoundary};if(C.isValidElement(u))return u;if(typeof o=="function")return o(c);if(l)return C.createElement(l,c);throw new Error("react-error-boundary requires either a fallback, fallbackRender, or FallbackComponent prop")}return this.props.children},r})(C.Component);function y_t({children:t,onError:e}){return j.jsx(g_t,{fallback:j.jsx("div",{style:{border:"1px solid #f00",color:"#f00",padding:"8px"},children:"An error was thrown."}),onError:e,children:t})}const b_t=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0?C.useLayoutEffect:C.useEffect;function v_t(t){return{initialValueFn:()=>t.isEditable(),subscribe:e=>
205t.registerEditableListener(e)}}function E_t(){return(function(t){const[e]=Tu(),n=C.useMemo((()=>t(e)),[e,t]),[r,i]=C.useState((()=>n.initialValueFn())),s=C.useRef(r);return b_t((()=>{const{initialValueFn:a,subscribe:o}=n,l=a();return s.current!==l&&(s.current=l,i(l)),o((u=>{s.current=u,i(u)}))}),[n,t]),r})(v_t)}function __t(t){const e=window.location.origin,n=r=>{if(r.origin!==e)return;const i=t.getRootElement();if(document.activeElement!==i)return;const s=r.data;if(typeof s=="string"){let a;try{a=JSON.parse(s)}catch{return}if(a&&a.protocol==="nuanria_messaging"&&a.type==="request"){const o=a.payload;if(o&&o.functionId==="makeChanges"){const l=o.args;if(l){const[u,c,d,h,m,g]=l;t.update((()=>{const b=Xe();if(He(b)){const v=b.anchor;let E=v.getNode(),x=0,_=0;if(Qe(E)&&u>=0&&c>=0&&(x=u,_=u+c,b.setTextNodeRange(E,x,E,_)),x===_&&d===""||(b.insertRawText(d),E=v.getNode()),Qe(E)){x=h,_=h+m;const S=E.getTextContentSize();x=x>S?S:x,_=_>S?S:_,b.setTextNodeRange(E,x,E,_)}r.stopImmediatePropagation()}}))}}}}};return window.addEventListener("message",n,!0),()=>{window.removeEventListener("message",n,!0)}}const ML=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0?C.useLayoutEffect:C.useEffect;function Wee(t){return t.getEditorState().read(f_e(t.isComposing()))}function x_t({contentEditable:t,placeholder:e=null,ErrorBoundary:n}){const[r]=Tu(),i=(function(s,a){const[o,l]=C.useState((()=>s.getDecorators()));return ML((()=>s.registerDecoratorListener((u=>{ks.flushSync((()=>{l(u)}))}))),[s]),C.useEffect((()=>{l(s.getDecorators())}),[s]),C.useMemo((()=>{const u=[],c=Object.keys(o);for(let d=0;d<c.length;d++){const h=c[d],m=j.jsx(a,{onError:b=>s._onError(b),children:j.jsx(C.Suspense,{fallback:null,children:o[h]})}),g=s.getElementByKey(h);g!==null&&u.push(ks.createPortal(m,g,h))}return u}),[a,o,s])})(r,n);return(function(s){ML((()=>_l(Wvt(s),__t(s))),[s])})(r),j.jsxs(j.Fragment,{children:[t,j.jsx(w_t,{content:e}),i]})}function w_t({content:t}){const[e]=Tu(),n=(function(i){const[s,a]=C.useState((()=>Wee(i)));return ML((()=>{function o(){const l=Wee(i);a(l)}return o(),_l(i.registerUpdateListener((()=>{o()})),i.registerEditableListener((()=>{o()})))}),[i]),s})(e),r=E_t();return n?typeof t=="function"?t(r):t:null}const S_t={undo:U.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},U.createElement("path",{d:"M7.202 18.5V17H14.3788C15.4224 17 16.3205 16.6554 17.073 15.9663C17.8257 15.2773 18.202 14.4263 18.202 13.4135C18.202 12.4007 17.8257 11.5512 17.073 10.8652C16.3205 10.1794 15.4224 9.8365 14.3788 9.8365H7.35775L10.1402 12.6193L9.0865 13.673L4.5 9.0865L9.0865 4.5L10.1402 5.55375L7.35775 8.3365H14.3788C15.8416 8.3365 17.0945 8.82467 18.1375 9.801C19.1805 10.7773 19.702 11.9815 19.702 13.4135C19.702 14.8455 19.1805 16.0513 18.1375 17.0308C17.0945 18.0103 15.8416 18.5 14.3788 18.5H7.202Z",fill:"currentColor"})),redo:U.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},U.createElement("path",{d:"M9.6211 18.5C8.15827 18.5 6.90535 18.0103 5.86235 17.0308C4.81935 16.0513 4.29785 14.8455 4.29785 13.4135C4.29785 11.9815 4.81935 10.7773 5.86235 9.801C6.90535 8.82467 8.15827 8.3365 9.6211 8.3365H16.6421L13.8596 5.55375L14.9134 4.5L19.4999 9.0865L14.9134 13.673L13.8596 12.6193L16.6421 9.8365H9.6211C8.57744 9.8365 7.67935 10.1794 6.92685 10.8652C6.17418 11.5512 5.79785 12.4007 5.79785 13.4135C5.79785 14.4263 6.17418 15.2773 6.92685 15.9663C7.67935 16.6554 8.57744 17 9.6211 17H16.7979V18.5H9.6211Z",fill:"currentColor"})),format_bold:U.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},U.createElement("path",{d:"M7.33838 18.625V5.375H12.1999C13.219 5.375 14.1405 5.69233 14.9644 6.327C15.788 6.9615 16.1999 7.816 16.1999 8.8905C16.1999 9.63783 16.0194 10.2471 15.6584 10.7182C15.2975 11.1894 14.9088 11.5314 14.4921 11.7442C15.005 11.9211 15.4947 12.2708 15.9614 12.7933C16.428 13.3158 16.6614 14.0193 16.6614 14.9038C16.6614 16.1819 16.1902 17.1217 15.2479 17.723C14.3055 18.3243 13.3562 18.625 12.3999 18.625H7.33838ZM9.48838 16.6328H12.3191C13.1063 16.6328 13.6627 16.4142 13.9884 15.977C14.314 15.5398 14.4769 15.1206 14.4769 14.7192C14.4769 14.3179 14.314 13.8987 13.9884 13.4615C13.6627 13.0243 13.0909 12.8058 12.2729 12.8058H9.48838V16.6328ZM9.48838 10.875H12.0826C12.6903 10.875 13.172 10.7013 13.5279 10.3538C13.8835 10.0064 14.0614 9.59042 14.0614 9.10575C14.0614 8.59042 13.8733 8.16925 13.4971 7.84225C13.1208 7.51542 12.6595 7.352 12.1134 7.352H9.48838V10.875Z",fill:"currentColor"})),format_italic:U.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},U.createElement("path",{d:"M5.39404 18.625V16.8173H9.21129L12.4518 7.18275H8.63454V5.375H17.7883V7.18275H14.2785L11.0383 16.8173H14.5478V18.625H5.39404Z",fill:"currentColor"})),format_underlined:U.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},U.createElement("path",{d:"M5.34619 22.125V20.625H18.6537V22.125H5.34619ZM11.9999 18.5287C10.4448 18.5287 9.23102 18.0566 8.35869 17.1125C7.48619 16.1683 7.04994 14.9032 7.04994 13.3172V5.41345H8.90369V13.4095C8.90369 14.4198 9.17228 15.2295 9.70944 15.8385C10.2466 16.4475 11.0101 16.752 11.9999 16.752C12.9898 16.752 13.7533 16.4475 14.2904 15.8385C14.8276 15.2295 15.0962 14.4198 15.0962 13.4095V5.41345H16.9499V13.3172C16.9499 14.9032 16.5137 16.1683 15.6412 17.1125C14.7689 18.0566 13.5551 18.5287 11.9999 18.5287Z",fill:"currentColor"})),format_highlight:U.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.75",strokeLinecap:"round",strokeLinejoin:"round"},U.createElement("path",{d:"m9 11-6 6v3h9l3-3"}),U.createElement("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"})),code:U.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},U.createElement("path",{d:"M7.99994 17.6537L2.34619 11.9999L7.99994 6.34619L9.06919 7.41544L4.46919 12.0154L9.05369 16.5999L7.99994 17.6537ZM15.9999 17.6537L14.9307 16.5844L19.5307 11.9844L14.9462 7.39994L15.9999 6.34619L21.6537 11.9999L15.9999 17.6537Z",fill:"currentColor"})),strikeThrough:U.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},U.createElement("path",{d:"M12.15 19.6923C10.9732 19.6923 9.9315 19.359 9.025 18.6923C8.11867 18.0256 7.45525 17.1128 7.03475 15.9538L8.6385 15.2635C8.91667 16.0444 9.3545 16.6867 9.952 17.1905C10.5493 17.6944 11.2923 17.9463 12.1808 17.9463C12.9578 17.9463 13.6744 17.7508 14.3307 17.3598C14.9872 16.9686 15.3155 16.3487 15.3155 15.5C15.3155 15.123 15.2555 14.7968 15.1355 14.5213C15.0157 14.2456 14.8462 13.9885 14.627 13.75H16.677C16.7987 13.9705 16.8932 14.2256 16.9605 14.5153C17.0278 14.8051 17.0615 15.1334 17.0615 15.5C17.0615 16.8372 16.5747 17.8702 15.601 18.599C14.6272 19.3279 13.4768 19.6923 12.15 19.6923ZM2.25 11.75V10.25H21.75V11.75H2.25ZM12.05 4.19629C13.0475 4.19629 13.9123 4.42704 14.6443 4.88854C15.3763 5.35004 15.9673 6.05896 16.4173 7.01529L14.823 7.73079C14.6218 7.26029 14.2978 6.84462 13.851 6.48379C13.4042 6.12279 12.8141 5.94229 12.0808 5.94229C11.2244 5.94229 10.5392 6.16221 10.025 6.60204C9.51083 7.04171 9.264 7.59104 9.2845 8.25004H7.5385C7.50133 7.16421 7.89783 6.21712 8.728 5.40879C9.558 4.60046 10.6653 4.19629 12.05 4.19629Z",fill:"currentColor"})),superscript:U.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},U.createElement("path",{d:"M16.6924 8V6.2115C16.6924 5.95383 16.7786 5.73875 16.9511 5.56625C17.1235 5.39392 17.3385 5.30775 17.5961 5.30775H19.5001V4.38475H16.6924V3.5H19.4809C19.7385 3.5 19.9536 3.58625 20.1261 3.75875C20.2985 3.93108 20.3846 4.14617 20.3846 4.404V5.2885C20.3846 5.54617 20.2985 5.76125 20.1261 5.93375C19.9536 6.10608 19.7385 6.19225 19.4809 6.19225H17.5771V7.1155H20.3846V8H16.6924ZM4.44238 18.5L8.84638 11.6287L4.77713 5.30775H6.74438L9.95963 10.404H10.0214L13.2501 5.30775H15.2329L11.1194
20511.6287L15.5579 18.5H13.5751L10.0214 12.9308H9.95963L6.42513 18.5H4.44238Z",fill:"currentColor"})),subscript:U.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},U.createElement("path",{d:"M16.6924 20.5V18.7115C16.6924 18.4538 16.7786 18.2387 16.9511 18.0662C17.1235 17.8939 17.3385 17.8077 17.5961 17.8077H19.5001V16.8845H16.6924V16H19.4809C19.7385 16 19.9536 16.0863 20.1261 16.2587C20.2985 16.4311 20.3846 16.6461 20.3846 16.9038V17.7885C20.3846 18.0462 20.2985 18.2612 20.1261 18.4337C19.9536 18.6061 19.7385 18.6923 19.4809 18.6923H17.5771V19.6152H20.3846V20.5H16.6924ZM4.44238 18.6923L8.84638 11.8212L4.77713 5.5H6.74438L9.95963 10.5962H10.0214L13.2501 5.5H15.2329L11.1194 11.8212L15.5579 18.6923H13.5751L10.0214 13.123H9.95963L6.42513 18.6923H4.44238Z",fill:"currentColor"})),format_list_bulleted:U.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},U.createElement("path",{d:"M9.30775 18.75V17.25H20.5V18.75H9.30775ZM9.30775 12.75V11.25H20.5V12.75H9.30775ZM9.30775 6.75005V5.25005H20.5V6.75005H9.30775ZM5.1635 19.6635C4.706 19.6635 4.31442 19.5006 3.98875 19.1748C3.66292 18.8491 3.5 18.4575 3.5 18C3.5 17.5425 3.66292 17.151 3.98875 16.8253C4.31442 16.4995 4.706 16.3365 5.1635 16.3365C5.621 16.3365 6.01258 16.4995 6.33825 16.8253C6.66408 17.151 6.827 17.5425 6.827 18C6.827 18.4575 6.66408 18.8491 6.33825 19.1748C6.
20501258 19.5006 5.621 19.6635 5.1635 19.6635ZM5.1635 13.6635C4.706 13.6635 4.31442 13.5006 3.98875 13.1748C3.66292 12.8491 3.5 12.4575 3.5 12C3.5 11.5425 3.66292 11.151 3.98875 10.8253C4.31442 10.4995 4.706 10.3365 5.1635 10.3365C5.621 10.3365 6.01258 10.4995 6.33825 10.8253C6.66408 11.151 6.827 11.5425 6.827 12C6.827 12.4575 6.66408 12.8491 6.33825 13.1748C6.01258 13.5006 5.621 13.6635 5.1635 13.6635ZM5.1635 7.66355C4.706 7.66355 4.31442 7.50063 3.98875 7.1748C3.66292 6.84913 3.5 6.45755 3.5 6.00005C3.5 5.54255 3.66292 5.15096 3.98875 4.8253C4.31442 4.49946 4.706 4.33655 5.1635 4.33655C5.621 4.33655 6.01258 4.49946 6.33825 4.8253C6.66408 5.15096 6.827 5.54255 6.827 6.00005C6.827 6.45755 6.66408 6.84913 6.33825 7.1748C6.01258 7.50063 5.621 7.66355 5.1635 7.66355Z",fill:"currentColor"})),format_list_numbered:U.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},U.createElement("path",{d:"M3.5 21.5V20.3078H6V19.25H4.5V18.0577H6V17H3.5V15.8077H6.34625C6.58592 15.8077 6.78683 15.8888 6.949 16.051C7.11117 16.2132 7.19225 16.4141 7.19225 16.6538V17.8462C7.19225 18.0859 7.11117 18.2868 6.949 18.449C6.78683 18.6112 6.58592 18.6923 6.34625 18.6923C6.58592 18.6923 6.78683 18.7733 6.949 18.9355C7.11117 19.0977 7.19225 19.2987 7.19225 19.5385V20.6538C7.19225 20.8936 7.11117 21.0946 6.949 21.2568C6.78683 21.4189 6.58592 21.5 6.34625 21.5H3.5ZM3.5 14.8463V12.25C3.5 12.0103 3.58108 11.8093 3.74325 11.647C3.90542 11.4848 4.10642 11.4038 4.34625 11.4038H6V10.3462H3.5V9.15375H6.34625C6.58592 9.15375 6.78683 9.23483 6.949 9.397C7.11117 9.55933 7.19225 9.76033 7.19225 10V11.75C7.19225 11.9897 7.11117 12.1907 6.949 12.353C6.78683 12.5152 6.58592 12.5963 6.34625 12.5963H4.69225V13.6538H7.19225V14.8463H3.5ZM5 8.19225V3.69225H3.5V2.5H6.19225V8.19225H5ZM9.30775 18.75V17.25H20.5V18.75H9.30775ZM9.30775 12.75V11.25H20.5V12.75H9.30775ZM9.30775 6.75V5.25H20.5V6.75H9.30775Z",fill:"currentColor"})),format_list_checked:U.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},U.createElement("path",{d:"M5.69425 18.452L2.5 15.2578L3.54425 14.2135L5.66925 16.3385L9.91925 12.0885L10.9635 13.1578L5.69425 18.452ZM5.69425 10.8365L2.5 7.64227L3.54425 6.59802L5.66925 8.72302L9.91925 4.47302L10.9635 5.54227L5.69425 10.8365ZM13.0095 16.5578V15.0578H21.5095V16.5578H13.0095ZM13.0095 8.94227V7.44227H21.5095V8.94227H13.0095Z",fill:"currentColor"})),link:U.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},U.createElement("path",{d:"M10.8077 16.5385H7.0385C5.78283 16.5385 4.7125 16.096 3.8275 15.211C2.9425 14.3262 2.5 13.256 2.5 12.0005C2.5 10.745 2.9425 9.67471 3.8275 8.78955C4.7125 7.90421 5.78283 7.46155 7.0385 7.46155H10.8077V8.96155H7.0385C6.19867 8.96155 5.48233 9.25805 4.8895 9.85105C4.2965 10.444 4 11.1604 4 12C4 12.8397 4.2965 13.556 4.8895 14.149C5.48233 14.742 6.19867 15.0385 7.0385 15.0385H10.8077V16.5385ZM8.25 12.75V11.25H15.75V12.75H8.25ZM13.1923 16.5385V15.0385H16.9615C17.8013 15.0385 18.5177 14.742 19.1105 14.149C19.7035 13.556 20 12.8397 20 12C20 11.1604 19.7035 10.444 19.1105 9.85105C18.5177 9.25805 17.8013 8.96155 16.9615 8.96155H13.1923V7.46155H16.9615C18.2172 7.46155 19.2875 7.90405 20.1725 8.78905C21.0575 9.67388 21.5 10.744 21.5 11.9995C21.5 13.255 21.0575 14.3254 20.1725 15.2105C19.2875 16.0959 18.2172 16.5385 16.9615 16.5385H13.1923Z",fill:"currentColor"})),add_photo:U.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},U.createElement("path",{d:"M5.11537 20.5C4.6182 20.5 4.19262 20.323 3.83862 19.969C3.48462 19.615 3.30762 19.1894 3.30762 18.6922V5.30773C3.30762 4.81056 3.48462 4.38498 3.83862 4.03098C4.19262 3.67698 4.6182 3.49998 5.11537 3.49998H13.8076V4.99998H5.11537C5.02553 4.99998 4.95178 5.02881 4.89412 5.08648C4.83645 5.14415 4.80762 5.2179 4.80762 5.30773V18.6922C4.80762 18.7821 4.83645 18.8558 4.89412 18.9135C4.95178 18.9711 5.02553 19 5.11537 19H18.4999C18.5895 19 18.6633 18.9711 18.7211 18.9135C18.7788 18.8558 18.8076 18.7821 18.8076 18.6922V9.99998H20.3076V18.6922C20.3076 19.1894 20.1306 19.615 19.7766 19.969C19.4226 20.323 18.997 20.5 18.4999 20.5H5.11537ZM17.1921 8.61523V6.61523H15.1921V5.11548H17.1921V3.11548H18.6921V5.11548H20.6921V6.61523H18.6921V8.61523H17.1921ZM6.55762 16.75H17.1344L13.8459 12.3655L11.0384 16.0192L9.03837 13.4615L6.55762 16.75Z",fill:"currentColor"})),table:U.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},U.createElement("path",{d:"M3.5 18.6923V5.30775C3.5 4.81058 3.677 4.385 4.031 4.031C4.385 3.677 4.81058 3.5 5.30775 3.5H18.6923C19.1894 3.5 19.615 3.677 19.969 4.031C20.323 4.385 20.5 4.81058 20.5 5.30775V18.6923C20.5 19.1894 20.323 19.615 19.969 19.969C19.615 20.323 19.1894 20.5 18.6923 20.5H5.30775C4.81058 20.5 4.385 20.323 4.031 19.969C3.677 19.615 3.5 19.1894 3.5 18.6923ZM5 9.077H19V5.30775C19 5.21792 18.9712 5.14417 18.9135 5.0865C18.8558 5.02883 18.7821 5 18.6923 5H5.30775C5.21792 5 5.14417 5.02883 5.0865 5.0865C5.02883 5.14417 5 5.21792 5 5.30775V9.077ZM10.1615 14.0385H13.8385V10.577H10.1615V14.0385ZM10.1615 19H13.8385V15.5385H10.1615V19ZM5 14.0385H8.6615V10.577H5V14.0385ZM15.3385 14.0385H19V10.577H15.3385V14.0385ZM5.30775 19H8.661
2055V15.5385H5V18.6923C5 18.7821 5.02883 18.8558 5.0865 18.9135C5.14417 18.9712 5.21792 19 5.30775 19ZM15.3385 19H18.6923C18.7821 19 18.8558 18.9712 18.9135 18.9135C18.9712 18.8558 19 18.7821 19 18.6923V15.5385H15.3385V19Z",fill:"currentColor"})),horizontal_rule:U.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},U.createElement("path",{d:"M4.5 12.75V11.25H19.5V12.75H4.5Z",fill:"currentColor"})),frontmatter:U.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},U.createElement("path",{d:"M4.5 8.75V7.25H8.5V8.75H4.5Z",fill:"currentColor"}),U.createElement("path",{d:"M4.5 14.75V13.25H8.5V14.75H4.5Z",fill:"currentColor"}),U.createElement("path",{d:"M9.5 8.75V7.25H13.5V8.75H9.5Z",fill:"currentColor"}),U.createElement("path",{d:"M9.5 14.75V13.25H13.5V14.75H9.5Z",fill:"currentColor"}),U.createElement("path",{d:"M14.5 8.75V7.25H18.5V8.75H14.5Z",fill:"currentColor"}),U.createElement("path",{d:"M14.5 14.75V13.25H18.5V14.75H14.5Z",fill:"currentColor"})),frame_source:U.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},U.createElement("path",{d:"M8.6 15.2443L5.35575 12L8.6 8.75575L9.64425 9.825L7.46925 12L9.64425 14.175L8.6 15.2443ZM15.4 15.2443L14.3558 14.175L16.5307 12L14.3558 9.825L15.4 8.75575L18.6443 12L15.4 15.2443ZM5.30775 20.5C4.80258 20.5 4.375 20.325 4.025 19.975C3.675 19.625 3.5 19.1974 3.5 18.6923V15H5V18.6923C5 18.7692 5.03208 18.8398 5.09625 18.9038C5.16025 18.9679 5.23075 19 5.30775 19H9V20.5H5.30775ZM15 20.5V19H18.6923C18.7692 19 18.8398 18.9679 18.9038 18.9038C18.9679 18.8398 19 18.7692 19 18.6923V15H20.5V18.6923C20.5 19.1974 20.325 19.625 19.975 19.975C19.625 20.325 19.1974 20.5 18.6923 20.5H15ZM3.5 9V5.30775C3.5 4.80258 3.675 4.375 4.025 4.025C4.375 3.675 4.80258 3.5 5.30775 3.5H9V5H5.30775C5.23075 5 5.16025 5.03208 5.09625 5.09625C5.03208 5.16025 5 5.23075 5 5.30775V9H3.5ZM19 9V5.30775C19 5.23075 18.9679 5.16025 18.9038 5.09625C18.8398 5.03208 18.7692 5 18.6923 5H15V3.5H18.6923C19.1974 3.5 19.625 3.675 19.975 4.025C20.325 4.375 20.5 4.80258 20.5 5.30775V9H19Z",fill:"currentColor"})),arrow_drop_down:U.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},U.createElement("path",{d:"M11.9999 14.6537L7.59619 10.25H16.4037L11.9999 14.6537Z",fill:"currentColor"})),admonition:U.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},U.createElement("path",{d:"M12.0001 21.4C11.7654 21.4 11.5385 21.3548 11.3193 21.2645C11.1002 21.174 10.9002 21.0435 10.7193 20.873L3.1271 13.2807C2.9566 13.0999 2.8261 12.8999 2.7356 12.6807C2.64526 12.4616 2.6001 12.2346 2.6001 12C2.6001 11.7653 2.64526 11.5358 2.7356 11.3115C2.8261 11.0871 2.9566 10.8897 3.1271 10.7192L10.7193 3.12698C10.9002 2.94614 11.1002 2.81314 11.3193 2.72798C11.5385 2.64264 11.7654 2.59998 12.0001 2.59998C12.2348 2.59998 12.4643 2.64264 12.6886 2.72798C12.9129 2.81314 13.1103 2.94614 13.2808 3.12698L20.8731 10.7192C21.0539 10.8897 21.1869 11.0871 21.2721 11.3115C21.3574 11.5358 21.4001 11.7653 21.4001 12C21.4001 12.2346 21.3574 12.4616 21.2721 12.6807C21.1869 12.8999 21.0539 13.0999 20.8731 13.2807L13.2808 20.873C13.1103 21.0435 12.9129 21.174 12.6886 21.2645C12.4643 21.3548 12.2348 21.4 12.0001 21.4ZM12.2213 19.8037L19.8039 12.2212C19.8552 12.1699 19.8808 12.0961 19.8808 12C19.8808 11.9038 19.8552 11.8301 19.8039 11.7787L12.2213 4.19623C12.17 4.14489 12.0963 4.11923 12.0001 4.11923C11.9039 4.11923 11.8302 4.14489 11.7788 4.19623L4.19635 11.7787C4.14501 11.8301 4.11935 11.9038 4.11935 12C4.11935 12.0961 4.14501 12.1699 4.19635 12.2212L11.7788 19.8037C11.8302 19.8551 11.9039 19.8807 12.0001 19.8807C12.0963 19.8807 12.17 19.8551 12.2213 19.8037ZM11.2501 13.0865H12.7501V7.47123H11.2501V13.0865ZM12.0001 15.702C12.2258 15.702 12.4168 15.6237 12.5731 15.4672C12.7296 15.3109 12.8078 15.1199 12.8078 14.8942C12.8078 14.6686 12.7296 14.4776 12.5731 14.3212C12.4168 14.1647 12.2258 14.0865 12.0001 14.0865C11.7744 14.0865 11.5834 14.1647 11.4271 14.3212C11.2706 14.4776 11.1923 14.6686 11.1923 14.8942C11.1923 15.1199 11.2706 15.3109 11.4271 15.4672C11.5834 15.6237 11.7744 15.702 12.0001 15.702Z",fill:"currentColor"})),sandpack:U.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},U.createElement("path",{d:"M12.9999 22.5C12.4947 22.5 12.0671 22.325 11.7171 21.975C11.3671 21.625 11.1921 21.1974 11.1921 20.6922V7.30775C11.1921 6.80258 11.3671 6.375 11.7171 6.025C12.0671 5.675 12.4947 5.5 12.9999 5.5H16.3844C16.8895 5.5 17.3171 5.675 17.6671 6.025C18.0171 6.375 18.1921 6.80258 18.1921 7.30775V20.6922C18.1921 21.1974 18.0171 21.625 17.6671 21.975C17.3171 22.325 16.8895 22.5 16.3844 22.5H12.9999ZM12.6921 7.30775V20.6922C12.6921 20.7692 12.7242 20.8398 12.7884 20.9038C12.8524 20.9679 12.9229 21 12.9999 21H16.3844C16.4614 21 16.5319 20.9679 16.5959 20.9038C16.66 20.8398 16.6921 20.7692 16.6921 20.6922V7.30775C16.6921 7.23075 16.66 7.16025 16.5959 7.09625C16.5319 7.03208 16.4614 7 16.3844 7H12.9999C12.9229 7 12.8524 7.03208 12.7884 7.09625C12.7242 7.16025 12.6921 7.23075 12.6921 7.30775ZM6.61537 18.5C6.1102 18.5 5.
20568262 18.325 5.33262 17.975C4.98262 17.625 4.80762 17.1974 4.80762 16.6923V3.30775C4.80762 2.80258 4.98262 2.375 5.33262 2.025C5.68262 1.675 6.1102 1.5 6.61537 1.5H9.99987C10.505 1.5 10.9326 1.675 11.2826 2.025C11.6326 2.375 11.8076 2.80258 11.8076 3.30775V16.6923C11.8076 17.1974 11.6326 17.625 11.2826 17.975C10.9326 18.325 10.505 18.5 9.99987 18.5H6.61537ZM6.30762 3.30775V16.6923C6.30762 16.7692 6.3397 16.8398 6.40387 16.9038C6.46787 16.9679 6.53837 17 6.61537 17H9.99987C10.0769 17 10.1474 16.9679 10.2114 16.9038C10.2755 16.8398 10.3076 16.7692 10.3076 16.6923V3.30775C10.3076 3.23075 10.2755 3.16025 10.2114 3.09625C10.1474 3.03208 10.0769 3 9.99987 3H6.61537C6.53837 3 6.46787 3.03208 6.40387 3.09625C6.3397 3.16025 6.30762 3.23075 6.30762 3.30775Z",fill:"currentColor"})),rich_text:U.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},U.createElement("path",{d:"M5.30775 20.5C4.80258 20.5 4.375 20.325 4.025 19.975C3.675 19.625 3.5 19.1974 3.5 18.6923V5.30775C3.5 4.80258 3.675 4.375 4.025 4.025C4.375 3.675 4.80258 3.5 5.30775 3.5H18.6923C19.1974 3.5 19.625 3.675 19.975 4.025C20.325 4.375 20.5 4.80258 20.5 5.30775V18.6923C20.5 19.1974 20.325 19.625 19.975 19.975C19.625 20.325 19.1974 20.5 18.6923 20.5H5.30775ZM5.30775 19H18.6923C18.7692 19 18.8398 18.9679 18.9038 18.9038C18.9679 18.8398 19 18.7692 19 18.6923V5.30775C19 5.23075 18.9679 5.16025 18.9038 5.09625C18.8398 5.03208 18.7692 5 18.6923 5H5.30775C5.23075 5 5.16025 5.03208 5.09625 5.09625C5.03208 5.16025 5 5.23075 5 5.30775V18.6923C5 18.7692 5.03208 18.8398 5.09625 18.9038C5.16025 18.9679 5.23075 19 5.30775 19ZM6.75 17H17.3268L14 12.3655L11.2308 16.0192L9 13.4615L6.75 17Z",fill:"currentColor"}),U.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6 12V6.5H9.1925C9.5925 6.5 9.9425 6.65 10.2425 6.95C10.5425 7.25 10.6925 7.6 10.6925 8V8.6925C10.6925 9.03733 10.605 9.32675 10.43 9.56075C10.255 9.79458 10.0168 9.97817 9.7155 10.1115L10.6155 12H9.404L8.504 10.1925H7.1925V12H6ZM9.1925 9H7.1925V7.6925H9.1925C9.26933 7.6925 9.33983 7.7245 9.404 7.7885C9.468 7.85267 9.5 7.92317 9.5 8V8.6925C9.5 8.76933 9.468 8.83983 9.404 8.904C9.33983 8.968 9.26933 9 9.1925 9Z",fill:"currentColor"}),U.createElement("path",{d:"M12.5 7H17.5V8.25H12.5V7Z",fill:"currentColor"}),U.createElement("path",{d:"M12.5 9.25H17.5V10.5H12.5V9.25Z",fill:"currentColor"})),difference:U.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},U.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.30775 20.5C4.80258 20.5 4.375 20.325 4.025 19.975C3.675 19.625 3.5 19.1974 3.5 18.6923V5.30775C3.5 4.80258 3.675 4.375 4.025 4.025C4.375 3.675 4.80258 3.5 5.30775 3.5H18.6923C19.1974 3.5 19.625 3.675 19.975 4.025C20.325 4.375 20.5 4.80258 20.5 5.30775V18.6923C20.5 19.1974 20.325 19.625 19.975 19.975C19.625 20.325 19.1974 20.5 18.6923 20.5H5.30775ZM18.6923 19H5.30775C5.23075 19 5.16025 18.9679 5.09625 18.9038C5.03208 18.8398 5 18.7692 5 18.6923V5.30775C5 5.23075 5.03208 5.16025 5.09625 5.09625C5.16025 5.03208 5.23075 5 5.30775 5H18.6923C18.7692 5 18.8398 5.03208 18.9038 5.09625C18.9679 5.16025 19 5.23075 19 5.30775V18.6923C19 18.7692 18.9679 18.8398 18.9038 18.9038C18.8398 18.9679 18.7692 19 18.6923 19Z",fill:"currentColor"}),U.createElement("rect",{x:"9",y:"10",width:"5.5",height:"1.5",fill:"currentColor"}),U.createElement("rect",{x:"9",y:"15",width:"5.5",height:"1.5",fill:"currentColor"}),U.createElement("rect",{x:"11",y:"8",width:"1.5",height:"5.5",fill:"currentColor"})),markdown:U.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},U.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.30775 20.5C4.80258 20.5 4.375 20.325 4.025 19.975C3.675 19.625 3.5 19.1974 3.5 18.6923V5.30775C3.5 4.80258 3.675 4.375 4.025 4.025C4.375 3.675 4.80258 3.5 5.30775 3.5H18.6923C19.1974 3.5 19.625 3.675 19.975 4.025C20.325 4.375 20.5 4.80258 20.5 5.30775V18.6923C20.5 19.1974 20.325 19.625 19.975 19.975C19.625 20.325 19.1974 20.5 18.6923 20.5H5.30775ZM18.6923 19H5.30775C5.23075 19 5.16025 18.9679 5.09625 18.9038C5.03208 18.8398 5 18.7692 5 18.6923V5.30775C5 5.23075 5.03208 5.16025 5.09625 5.09625C5.16025 5.03208 5.23075 5 5.30775 5H18.6923C18.7692 5 18.8398 5.03208 18.9038 5.09625C18.9679 5.16025 19 5.23075 19 5.30775V18.6923C19 18.7692 18.9679 18.8398 18.9038 18.9038C18.8398 18.9679 18.7692 19 18.6923 19Z",fill:"currentColor"}),U.createElement("path",{d:"M13 15H11.5V11L9.5 14L7.5 11V15H6V8H7.5L9.5 11L11.5 8H13V15Z",fill:"currentColor"}),U.createElement("path",{d:"M15.9921 15.5833L13.2886 12.8797L14.0546 12.1137L15.4504 13.5016V7.99597L16.5336 7.99993V13.5016L17.9296 12.1137L18.6954 12.8797L15.9921 15.5833Z",fill:"currentColor"})),open_in_new:U.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},U.createElement("path",{d:"M5.30775 20.5C4.80258 20.5 4.375 20.325 4.025 19.975C3.675 19.625 3.5 19.1974 3.5 18.6923V5.30775C3.5 4.80258 3.675 4.375 4.025 4.025C4.375 3.675 4.80258 3.5 5.30775 3.5H11.6152V5H5.30775C5.23075 5 5.16025 5.03208 5.09625 5.09625C5.03208 5.16025 5 5.23075 5 5.30775V18.6923C5 18.7692 5.03208 18.8398 5.09625 18.9038C5.16025 18.9679 5.23075 19 5.30775 19H18.6923C18.7692 19 18.8398 18.9679 18.9038 18.9038C18.9679 18.8398 19 18.7692 19 18.6923V12.3848H20.5V18.6923C20.5 19.1974 20.325 19.625 19.975 19.975C19.625 20.325 19.1974 20.5 18.6923 20.5H5.30775ZM9.71925 15.3345L8.6655 14.2808L17.9462 5H14V3.5H20.5V10H19V6.05375L9.71925 15.3345Z",fill:"currentColor"})),link_off:U.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},U.createElement("path",{d:"M18.8843 16.1038L17.7498 14.9385C18.4228 14.7552 18.9661 14.3946 19.3796 13.8568C19.7931 13.319 19.9998 12.7 19.9998 12C19.9998 11.1604 19.705 10.444 19.1153 9.85105C18.5255 9.25805 17.8139 8.96155 16.9806 8.96155H13.1728V7.46155H16.9806C18.2293 7.46155 19.2947 7.90422 20.1768 8.78955C21.0588 9.67472 21.4998 10.7449 21.4998 12C21.4998 12.8859 21.262 13.6951 20.7863 14.4278C20.3107 15.1606 19.6767 15.7193 18.8843 16.1038ZM15.5806 12.75L14.0806 11.25H15.7306V12.75H15.5806ZM20.1461 22.2538L1.74609 3.8538L2.79984 2.80005L21.1998 21.2L20.1461 22.2538ZM10.8268 16.5386H7.03834C5.78318 16.5386 4.71301 16.0959 3.82784 15.2105C2.94251 14.3254 2.49984 13.2552 2.49984 12C2.49984 10.8885 2.85784 9.91322 3.57384 9.07405C4.28984 8.23505 5.18826 7.72838 6.26909 7.55405H6.49984L7.90759 8.96155H7.03834C6.19851 8.96155 5.48218 9.25805 4.88934 9.85105C4.29634 10.444 3.99984 11.1604 3.99984 12C3.99984 12.8397 4.29634 13.556 4.88934 14.149C5.48218 14.742 6.19851 15.0385 7.03834 15.0385H10.8268V16.5386ZM8.26909 12.75V11.25H10.2113L11.6863 12.75H8.26909Z",fill:"currentColor"})),edit:U.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},U.createElement("path",{d:"M5 19H6.2615L16.498 8.7635L15.2365 7.502L5 17.7385V19ZM3.5 20.5V17.1155L16.6905 3.93075C16.8417 3.79342 17.0086 3.68733 17.1913 3.6125C17.3741 3.5375 17.5658 3.5 17.7663 3.5C17.9668 3.5 18.1609 3.53558 18.3488 3.60675C18.5367 3.67792 18.7032 3.79108 18.848 3.94625L20.0693 5.
20518275C20.2244 5.32758 20.335 5.49425 20.401 5.68275C20.467 5.87125 20.5 6.05975 20.5 6.24825C20.5 6.44942 20.4657 6.64133 20.397 6.824C20.3283 7.00683 20.2191 7.17383 20.0693 7.325L6.8845 20.5H3.5ZM15.8562 8.14375L15.2365 7.502L16.498 8.7635L15.8562 8.14375Z",fill:"currentColor"})),content_copy:U.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},U.createElement("path",{d:"M9.05775 17.5C8.55258 17.5 8.125 17.325 7.775 16.975C7.425 16.625 7.25 16.1974 7.25 15.6923V4.30775C7.25 3.80258 7.425 3.375 7.775 3.025C8.125 2.675 8.55258 2.5 9.05775 2.5H17.4423C17.9474 2.5 18.375 2.675 18.725 3.025C19.075 3.375 19.25 3.80258 19.25 4.30775V15.6923C19.25 16.1974 19.075 16.625 18.725 16.975C18.375 17.325 17.9474 17.5 17.4423 17.5H9.05775ZM9.05775 16H17.4423C17.5192 16 17.5898 15.9679 17.6538 15.9038C17.7179 15.8398 17.75 15.7692 17.75 15.6923V4.30775C17.75 4.23075 17.7179 4.16025 17.6538 4.09625C17.5898 4.03208 17.5192 4 17.4423 4H9.05775C8.98075 4 8.91025 4.03208 8.84625 4.09625C8.78208 4.16025 8.75 4.23075 8.75 4.30775V15.6923C8.75 15.7692 8.78208 15.8398 8.84625 15.9038C8.91025 15.9679 8.98075 16 9.05775 16ZM5.55775 21C5.05258 21 4.625 20.825 4.275 20.475C3.925 20.125 3.75 19.6974 3.75 19.1923V6.30775H5.25V19.1923C5.25 19.2693 5.28208 19.3398 5.34625 19.4038C5.41025 19.4679 5.48075 19.5 5.55775 19.5H15.4423V21H5.55775Z",fill:"currentColor"})),more_horiz:U.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},U.createElement("path",{d:"M6.23096 13.5C5.81846 13.5 5.46537 13.3531 5.17171 13.0592C4.87787 12.7656 4.73096 12.4125 4.73096 12C4.73096 11.5875 4.87787 11.2344 5.17171 10.9408C5.46537 10.6469 5.81846 10.5 6.23096 10.5C6.64346 10.5 6.99662 10.6469 7.29046 10.9408C7.58412 11.2344 7.73096 11.5875 7.73096 12C7.73096 12.4125 7.58412 12.7656 7.29046 13.0592C6.99662 13.3531 6.64346 13.5 6.23096 13.5ZM12.0002 13.5C11.5877 13.5 11.2346 13.3531 10.941 13.0592C10.6471 12.7656 10.5002 12.4125 10.5002 12C10.5002 11.5875 10.6471 11.2344 10.941 10.9408C11.2346 10.6469 11.5877 10.5 12.0002 10.5C12.4127 10.5 12.7658 10.6469 13.0595 10.9408C13.3533 11.2344 13.5002 11.5875 13.5002 12C13.5002 12.4125 13.3533 12.7656 13.0595 13.0592C12.7658 13.3531 12.4127 13.5 12.0002 13.5ZM17.7695 13.5C17.357 13.5 17.0038 13.3531 16.71 13.0592C16.4163 12.7656 16.2695 12.4125 16.2695 12C16.2695 11.5875 16.4163 11.2344 16.71 10.9408C17.0038 10.6469 17.357 10.5 17.7695 10.5C18.182 10.5 18.535 10.6469 18.8287 10.9408C19.1225 11.2344 19.2695 11.5875 19.2695 12C19.2695 12.4125 19.1225 12.7656 18.8287 13.0592C18.535 13.3531 18.182 13.5 17.7695 13.5Z",fill:"currentColor"})),more_vert:U.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},U.createElement("path",{d:"M12 19.2692C11.5875 19.2692 11.2344 19.1223 10.9408 18.8285C10.6469 18.5348 10.5 18.1817 10.5 17.7692C10.5 17.3567 10.6469 17.0035 10.9408 16.7097C11.2344 16.416 11.5875 16.2692 12 16.2692C12.4125 16.2692 12.7656 16.416 13.0592 16.7097C13.3531 17.0035 13.5 17.3567 13.5 17.7692C13.5 18.1817 13.3531 18.5348 13.0592 18.8285C12.7656 19.1223 12.4125 19.2692 12 19.2692ZM12 13.5C11.5875 13.5 11.2344 13.353 10.9408 13.0592C10.6469 12.7655 10.5 12.4125 10.5 12C10.5 11.5875 10.6469 11.2344 10.9408 10.9407C11.2344 10.6469 11.5875 10.5 12 10.5C12.4125 10.5 12.7656 10.6469 13.0592 10.9407C13.3531 11.2344 13.5 11.5875 13.5 12C13.5 12.4125 13.3531 12.7655 13.0592 13.0592C12.7656 13.353 12.4125 13.5 12 13.5ZM12 7.73071C11.5875 7.73071 11.2344 7.58388 10.9408 7.29021C10.6469 6.99638 10.5 6.64321 10.5 6.23071C10.5 5.81821 10.6469 5.46513 10.9408 5.17146C11.2344 4.87763 11.5875 4.73071 12 4.73071C12.4125 4.73071 12.7656 4.87763 13.0592 5.17146C13.3531 5.46513 13.5 5.81821 13.5 6.23071C13.5 6.64321 13.3531 6.99638 13.0592 7.29021C12.7656 7.58388 12.4125 7.73071 12 7.73071Z",fill:"currentColor"})),close:U.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},U.createElement("path",{d:"M6.39994 18.6538L5.34619 17.6L10.9462 12L5.34619 6.4L6.39994 5.34625L11.9999 10.9463L17.5999 5.34625L18.6537 6.4L13.0537 12L18.6537 17.6L17.5999 18.6538L11.9999 13.0538L6.39994 18.6538Z",fill:"currentColor"})),settings:U.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},U.createElement("path",{d:"M9.69225 21.5L9.3115 18.4538C9.04367 18.3641 8.769 18.2385 8.4875 18.077C8.20617 17.9153 7.95459 17.7422 7.73275 17.5577L4.9115 18.75L2.604 14.75L5.04425 12.9058C5.02125 12.7571 5.00492 12.6077 4.99525 12.4578C4.98559 12.3078 4.98075 12.1583 4.98075 12.0095C4.98075 11.8673 4.98559 11.7228 4.99525 11.576C5.00492 11.4292 5.02125 11.2686 5.04425 11.0943L2.604 9.25L4.9115 5.26925L7.723 6.452C7.96417 6.261 8.22159 6.08633 8.49525 5.928C8.76892 5.76967 9.03784 5.64242 9.302 5.54625L9.69225 2.5H14.3078L14.6885 5.55575C14.9885 5.66475 15.2599 5.792 15.5028 5.9375C15.7458 6.083 15.991 6.2545 16.2385 6.452L19.0885 5.26925L21.396 9.25L18.9173 11.123C18.9531 11.2845 18.9727 11.4355 18.976 11.576C18.9792 11.7163 18.9808 11.8577 18.9808 12C18.9808 12.1358 18.9775 12.274 18.971 12.4145C18.9647 12.5548 18.9417 12.7154 18.902 12.8963L21.3615 14.75L19.0538 18.75L16.2385 17.548C15.99
2051 17.7455 15.7384 17.9202 15.4808 18.072C15.2231 18.224 14.959 18.3481 14.6885 18.4443L14.3078 21.5H9.69225ZM11 20H12.9655L13.325 17.3212C13.8353 17.1879 14.3017 16.9985 14.724 16.753C15.1465 16.5073 15.5539 16.1916 15.9463 15.8057L18.4308 16.85L19.4155 15.15L17.2463 13.5155C17.3296 13.2565 17.3863 13.0026 17.4163 12.7537C17.4464 12.5051 17.4615 12.2538 17.4615 12C17.4615 11.7397 17.4464 11.4884 17.4163 11.2463C17.3863 11.0039 17.3296 10.7564 17.2463 10.5038L19.4345 8.85L18.45 7.15L15.9365 8.2095C15.6018 7.85183 15.2009 7.53583 14.7338 7.2615C14.2664 6.98717 13.7937 6.79292 13.3155 6.67875L13 4H11.0155L10.6845 6.66925C10.1743 6.78975 9.70325 6.97433 9.27125 7.223C8.83909 7.47183 8.42684 7.79233 8.0345 8.1845L5.55 7.15L4.5655 8.85L6.725 10.4595C6.64167 10.6968 6.58334 10.9437 6.55 11.2C6.51667 11.4563 6.5 11.7262 6.5 12.0095C6.5 12.2698 6.51667 12.525 6.55 12.775C6.58334 13.025 6.6385 13.2718 6.7155 13.5155L4.5655 15.15L5.55 16.85L8.025 15.8C8.4045 16.1897 8.81025 16.5089 9.24225 16.7578C9.67442 17.0064 10.152 17.1974 10.675 17.3307L11 20ZM12.0115 15C12.8435 15 13.5515 14.708 14.1355 14.124C14.7195 13.54 15.0115 12.832 15.0115 12C15.0115 11.168 14.7195 10.46 14.1355 9.876C13.5515 9.292 12.8435 9 12.0115 9C11.1692 9 10.4586 9.292 9.87975 9.876C9.30092 10.46 9.0115 11.168 9.0115 12C9.0115 12.832 9.30092 13.54 9.87975 14.124C10.4586 14.708 11.1692 15 12.0115 15Z",fill:"currentColor"})),delete_big:U.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},U.createElement("path",{d:"M7.30775 20.5C6.80908 20.5 6.38308 20.3234 6.02975 19.9702C5.67658 19.6169 5.5 19.1909 5.5 18.6922V5.99998H4.5V4.49998H9V3.61548H15V4.49998H19.5V5.99998H18.5V18.6922C18.5 19.1974 18.325 19.625 17.975 19.975C17.625 20.325 17.1974 20.5 16.6923 20.5H7.30775ZM17 5.99998H7V18.6922C7 18.7821 7.02883 18.8558 7.0865 18.9135C7.14417 18.9711 7.21792 19 7.30775 19H16.6923C16.7692 19 16.8398 18.9679 16.9038 18.9037C16.9679 18.8397 17 18.7692 17 18.6922V5.99998ZM9.404 17H10.9037V7.99998H9.404V17ZM13.0962 17H14.596V7.99998H13.0962V17Z",fill:"currentColor"})),delete_small:U.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},U.createElement("path",{d:"M7.30775 20.5C6.80908 20.5 6.38308 20.3234 6.02975 19.9702C5.67658 19.6169 5.5 19.1909 5.5 18.6922V5.99998H4.5V4.49998H9V3.61548H15V4.49998H19.5V5.99998H18.5V18.6922C18.5 19.1974 18.325 19.625 17.975 19.975C17.625 20.325 17.1974 20.5 16.6923 20.5H7.30775ZM17 5.99998H7V18.6922C7 18.7821 7.02883 18.8558 7.0865 18.9135C7.14417 18.9711 7.21792 19 7.30775 19H16.6923C16.7692 19 16.8398 18.9679 16.9038 18.9037C16.9679 18.8397 17 18.7692 17 18.6922V5.99998ZM9.404 17H10.9037V7.99998H9.404V17ZM13.0962 17H14.596V7.99998H13.0962V17Z",fill:"currentColor"})),format_align_center:U.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},U.createElement("path",{d:"M3.5 20.5V19H20.5V20.5H3.5ZM7.5 16.625V15.125H16.5V16.625H7.5ZM3.5 12.75V11.25H20.5V12.75H3.5ZM7.5 8.875V7.375H16.5V8.875H7.5ZM3.5 5V3.5H20.5V5H3.5Z",fill:"currentColor"})),format_align_left:U.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},U.createElement("path",{d:"M3.5 20.5V19H20.5V20.5H3.5ZM3.5 16.625V15.125H14.5V16.625H3.5ZM3.5 12.75V11.25H20.5V12.75H3.5ZM3.5 8.875V7.375H14.5V8.875H3.5ZM3.5 5V3.5H20.5V5H3.5Z",fill:"currentColor"})),format_align_right:U.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},U.createElement("path",{d:"M3.5 5V3.5H20.5V5H3.5ZM9.5 8.875V7.375H20.5V8.875H9.5ZM3.5 12.75V11.25H20.5V12.75H3.5ZM9.5 16.625V15.125H20.5V16.625H9.5ZM3.5 20.5V19H20.5V20.5H3.5Z",fill:"currentColor"})),add_row:U.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},U.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.025 10.2077C4.375 9.85775 4.80258 9.68275 5.30775 9.68275H6.5V11.1827H5.30775C5.21792 11.1827 5.14417 11.2116 5.0865 11.2693C5.02883 11.3269 5 11.4007 5 11.4905V16.1923C5 16.2821 5.02883 16.3558 5.0865 16.4135C5.14417 16.4712 5.21792 16.5 5.30775 16.5H18.6923C18.7821 16.5 18.8558 16.4712 18.9135 16.4135C18.9712 16.3558 19 16.2821 19 16.1923V11.4905C19 11.4007 18.9712 11.3269 18.9135 11.2693C18.8558 11.2116 18.7821 11.1827 18.6923 11.1827H17.6923V9.68275H18.6923C19.1974 9.68275 19.625 9.85775 19.975 10.2077C20.325 10.5577 20.5 10.9853 20.5 11.4905V16.1923C20.5 16.6974 20.325 17.125 19.975 17.475C19.625 17.825 19.1974 18 18.6923 18H5.30775C4.80258 18 4.375 17.825 4.025 17.475C3.675 17.125 3.5 16.6974 3.5 16.1923V11.4905C3.5 10.9853 3.675 10.5577 4.025 10.2077Z",fill:"currentColor"}),U.createElement("path",{d:"M11.3848 9.68275V7.5H12.8848V9.68275H15V11.1827H12.8848V13.2307H11.3848V11.1827H9.26925V9.68275H11.3848Z",fill:"currentColor"})),add_column:U.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},U.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.70775 4.025C9.35775 4.375 9.18275 4.80258 9.18275 5.30775V6.5H10.6827V5.30775C10.6827 5.21792 10.7116 5.14417 10.7693 5.0865C10.8269 5.02883 10.9007 5 10.9905 5H15.6923C15.7821 5 15.8558 5.02883 15.9135 5.0865C15.9712 5.14417 16 5.21792 16 5.30775V18.6923C16 18.7821 15.9712 18.8558 15.9135 18.9135C15.8558 18.9712 15.7821 19 15.6923 19H10.9905C10.9007 19 10.8269 18.9712 10.7693 18.9135C10.7116 18.8558 10.6827 18.7821 10.6827 18.6923V17.6923H9.18275V18.6923C9.18275 19.1974 9.35775 19.625 9.70775 19.975C10.0577 20.325 10.4853 20.5 10.9905 20.5H15.6923C16.1974 20.5 16.625 20.325 16.975 19.975C17.325 19.625 17.5 19.1974 17.5 18.6923V5.30775C17.5 4.80258 17.325 4.375 16.975 4.025C16.625 3.675 16.1974 3.5 15.6923 3.5H10.9905C10.4853 3.5 10.0577 3.675 9.70775 4.025Z",fill:"currentColor"}),U.createElement("path",{d:"M9.18275 11.3848H7V12.8848H9.18275V15H10.6827V12.8848H12.7307V11.3848H10.6827V9.26925H9.18275V11.3848Z",fill:"currentColor"})),insert_col_left:U.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},U.createElement("path",{d:"M13.0001 20.1152H8.67713H8.75388H8.69238H13.0001ZM7.19238 19.8075C7.19238 20.3127 7.36738 20.7402 7.71738 21.0902C8.06738 21.4402 8.49497 21.6152 9.00013 21.6152H12.6924C13.1975 21.6152 13.6251 21.4402 13.9751 21.0902C14.3251 20.7402 14.5001 20.3127 14.5001 19.8075V10.423H13.0001V19.8075C13.0001 19.8973 12.9713 19.9711 12.9136 20.0287C12.856 20.0864 12.7822 20.1152 12.6924 20.1152H9.00013C8.9103 20.1152 8.83655 20.0864 8.77888 20.0287C8.72122 19.9711 8.69238 19.8973 8.69238 19.8075V4.69223C8.26422 4.74357 7.90722 4.93299 7.62138 5.26048C7.33538 5.58798 7.19238 5.97548 7.19238 6.42298V19.8075ZM13.0001 2.49998V4.61523H10.8846V6.11523H13.0001V8.23073H14.5001V6.11523H16.6154V4.61523H14.5001V2.49998H13.0001Z",fill:"currentColor"})),insert_row_above:U.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},U.createElement("path",{d:"M20.1152 9.99987V14.3229V14.2461V14.3076V9.99987ZM19.8075 15.8076C20.3127 15.8076 20.7402 15.6326 21.0902 15.2826C21.4402 14.9326 21.6152 14.505 21.6152 13.9999V10.3076C21.6152 9.80245 21.4402 9.37487 21.0902 9.02487C20.7402 8.67487 20.3127 8.49987 19.8075 8.49987H10.423V9.99987H19.8075C19.8973 9.99987 19.9711 10.0287 20.0287 10.0864C20.0864 10.144 20.1152 10.2178 20.1152 10.3076V13.9999C20.1152 14.0897 20.0864 14.1635 20.0287 14.2211C19.9711 14.2788 19.8973 14.3076 19.8075 14.3076H4.69223C4.74357 14.7358 4.93299 15.0928 5.26048 15.3786C5.58798 15.6646 5.97548 15.8076 6.42298 15.8076H19.8075ZM2.49998 9.99987H4.61523V12.1154H6.11523V9.99987H8.23073V8.49987H6.11523V6.38462H4.61523V8.49987H2.49998V9.99987Z",fill:"currentColor"})),insert_row_below:U.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},U.createElement("path",{d:"M20.1152 14.1924V9.86939V9.94614V9.88464V14.1924ZM19.8075 8.38464C20.3127 8.38464 20.7402 8.55964 21.0902 8.90964C21.4402 9.25964 21.6152 9.68723 21.6152 10.1924V13.8846C21.6152 14.3898 21.4402 14.8174 21.0902 15.1674C20.7402 15.5174 20.3127 15.6924 19.8075 15.6924H10.423V14.1924H19.8075C19.8973 14.1924 19.9711 14.1636 20.0287 14.1059C20.0864 14.0482 20.1152 13.9745 20.1152 13.8846V10.1924C20.1152 10.1026 20.0864 10.0288 20.0287 9.97114C19.9711 9.91348 19.8973 9.88464 19.8075 9.88464H4.69223C4.74357 9.45648 4.93299 9.09948 5.26048 8.81364C5.58798 8.52764 5.97548 8.38464 6.42298 8.38464H19.8075ZM2.49998 14.1924H4.61523V12.0769H6.11523V14.1924H8.23073V15.6924H6.11523V1
2057.8076H4.61523V15.6924H2.49998V14.1924Z",fill:"currentColor"})),insert_col_right:U.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},U.createElement("path",{d:"M10.8075 20.1152H15.1305H15.0537H15.1152H10.8075ZM16.6152 19.8075C16.6152 20.3127 16.4402 20.7402 16.0902 21.0902C15.7402 21.4402 15.3127 21.6152 14.8075 21.6152H11.1152C10.6101 21.6152 10.1825 21.4402 9.83248 21.0902C9.48248 20.7402 9.30748 20.3127 9.30748 19.8075V10.423H10.8075V19.8075C10.8075 19.8973 10.8363 19.9711 10.894 20.0287C10.9517 20.0864 11.0254 20.1152 11.1152 20.1152H14.8075C14.8973 20.1152 14.9711 20.0864 15.0287 20.0287C15.0864 19.9711 15.1152 19.8973 15.1152 19.8075V4.69223C15.5434 4.74357 15.9004 4.93299 16.1862 5.26048C16.4722 5.58798 16.6152 5.97548 16.6152 6.42298V19.8075ZM10.8075 2.49998V4.61523H12.923V6.11523H10.8075V8.23073H9.30748V6.11523H7.19223V4.61523H9.30748V2.49998H10.8075Z",fill:"currentColor"})),check:U.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},U.createElement("path",{d:"M9.54983 17.6537L4.21533 12.3192L5.28433 11.25L9.54983 15.5155L18.7153 6.34998L19.7843 7.41923L9.54983 17.6537Z",fill:"currentColor"}))},C_t="_editorRoot_1e2ox_53",T_t="_editorWrapper_1e2ox_155",A_t="_toolbarRoot_1e2ox_162",R_t="_readOnlyToolbarRoot_1e2ox_189",N_t="_toolbarToggleItem_1e2ox_208",O_t="_toolbarGroupOfGroups_1e2ox_219",k_t="_toolbarToggleSingleGroup_1e2ox_224",I_t="_toolbarButton_1e2ox_239",M_t="_contentEditable_1e2ox_380",D_t="_primaryButton_1e2ox_507",P_t="_secondaryButton_1e2ox_508",L_t="_linkDialogEditForm_1e2ox_541",$_t="_linkDialogAnchor_1e2ox_587",F_t="_linkDialogPopoverContent_1e2ox_601",B_t="_popoverArrow_1e2ox_650",H_t="_linkDialogPreviewAnchor_1e2ox_654",U_t="_tooltipTrigger_1e2ox_677",j_t="_tooltipContent_1e2ox_681",z_t="_actionButton_1e2ox_695",V_t="_placeholder_1e2ox_1106",q_t="_rootContentEditableWrapper_1e2ox_1119",G_t="_downshiftInputWrapper_1e2ox_1129",W_t="_downshiftInput_1e2ox_1129",Y_t="_downshiftAutocompleteContainer_1e2ox_1160",K_t="_textInput_1e2ox_1206",X_t="_multiFieldForm_1e2ox_1214",Q_t="_formField_1e2ox_1220",Z_t="_popupContainer_1e2ox_1240",tn={editorRoot:C_t,editorWrapper:T_t,toolbarRoot:A_t,readOnlyToolbarRoot:R_t,toolbarToggleItem:N_t,toolbarGroupOfGroups:O_t,toolbarToggleSingleGroup:k_t,toolbarButton:I_t,contentEditable:M_t,primaryButton:D_t,secondaryButton:P_t,linkDialogEditForm:L_t,linkDialogAnchor:$_t,linkDialogPopoverContent:F_t,popoverArrow:B_t,linkDialogPreviewAnchor:H_t,tooltipTrigger:U_t,tooltipContent:j_t,actionButton:z_t,placeholder:V_t,rootContentEditableWrapper:q_t,downshiftInputWrapper:G_t,downshiftInput:W_t,downshiftAutocompleteContainer:Y_t,textInput:K_t,multiFieldForm:X_t,formField:Q_t,popupContainer:Z_t},J_t=new Set(["http:","https:","mailto:","sms:","tel:"]);class Of extends No{static getType(){return"link"}static clone(e){return new Of(e.__url,{rel:e.__rel,target:e.__target,title:e.__title},e.__key)}constructor(e="",n={},r){super(r);const{target:i=null,rel:s=null,title:a=null}=n;this.__url=e,this.__target=i,this.__rel=s,this.__title=a}createDOM(e){const n=document.createElement("a");return this.updateLinkDOM(null,n,e),pA(n,e.theme.link),n}updateLinkDOM(e,n,r){if(nEe(n)){e&&e.__url===this.__url||(n.href=this.sanitizeUrl(this.__url));for(const i of["target","rel","title"]){const s=`__${i}`,a=this[s];e&&e[s]===a||(a?n[i]=a:n.removeAttribute(i))}}}updateDOM(e,n,r){return this.updateLinkDOM(e,n,r),!1}static importDOM(){return{a:e=>({conversion:ext,priority:1})}}static importJSON(e){return ff().updateFromJSON(e)}updateFromJSON(e){return super.updateFromJSON(e).setURL(e.url).setRel(e.rel||null).setTarget(e.target||null).setTitle(e.title||null)}sanitizeUrl(e){e=Xee(e);try{const n=new URL(Xee(e));if(!J_t.has(n.protocol))return"about:blank"}catch{return e}return e}exportJSON(){return{...super.exportJSON(),rel:this.getRel(),target:this.getTarget(),title:this.getTitle(),url:this.getURL()}}getURL(){return this.getLatest().__url}setURL(e){const n=this.getWritable();return n.__url=e,n}getTarget(){return this.getLatest().__target}setTarget(e){const n=this.getWritable();return n.__target=e,n}
205getRel(){return this.getLatest().__rel}setRel(e){const n=this.getWritable();return n.__rel=e,n}getTitle(){return this.getLatest().__title}setTitle(e){const n=this.getWritable();return n.__title=e,n}insertNewAfter(e,n=!0){const r=ff(this.__url,{rel:this.__rel,target:this.__target,title:this.__title});return this.insertAfter(r,n),r}canInsertTextBefore(){return!1}canInsertTextAfter(){return!1}canBeEmpty(){return!1}isInline(){return!0}extractWithChild(e,n,r){if(!He(n))return!1;const i=n.anchor.getNode(),s=n.focus.getNode();return this.isParentOf(i)&&this.isParentOf(s)&&n.getTextContent().length>0}isEmailURI(){return this.__url.startsWith("mailto:")}isWebSiteURI(){return this.__url.startsWith("https://")||this.__url.startsWith("http://")}}function ext(t){let e=null;if(nEe(t)){const n=t.textContent;(n!==null&&n!==""||t.children.length>0)&&(e=ff(t.getAttribute("href")||"",{rel:t.getAttribute("rel"),target:t.getAttribute("target"),title:t.getAttribute("title")}))}return{node:e}}function ff(t="",e){return Au(new Of(t,e))}function La(t){return t instanceof Of}let bA=class p_e extends Of{constructor(e="",n={},r){super(e,n,r),this.__isUnlinked=n.isUnlinked!==void 0&&n.isUnlinked!==null&&n.isUnlinked}static getType(){return"autolink"}static clone(e){return new p_e(e.__url,{isUnlinked:e.__isUnlinked,rel:e.__rel,target:e.__target,title:e.__title},e.__key)}getIsUnlinked(){return this.__isUnlinked}setIsUnlinked(e){const n=this.getWritable();return n.__isUnlinked=e,n}createDOM(e){return this.__isUnlinked?document.createElement("span"):super.createDOM(e)}updateDOM(e,n,r){return super.updateDOM(e,n,r)||e.__isUnlinked!==this.__isUnlinked}static importJSON(e){return DL().updateFromJSON(e)}updateFromJSON(e){return super.updateFromJSON(e).setIsUnlinked(e.isUnlinked||!1)}static importDOM(){return null}exportJSON(){return{...super.exportJSON(),isUnlinked:this.__isUnlinked}}insertNewAfter(e,n=!0){const r=this.getParentOrThrow().insertNewAfter(e,n);if(Me(r)){const i=DL(this.__url,{isUnlinked:this.__isUnlinked,rel:this.__rel,target:this.__target,title:this.__title});return r.append(i),i}return null}};function DL(t="",e){return Au(new bA(t,e))}function Xl(t){return t instanceof bA}const d0=Mt("TOGGLE_LINK_COMMAND");function Yee(t,e){if(t.type==="element"){const n=t.getNode();return Me(n)||(function(r,...i){const s=new URL("https://lexical.dev/docs/error"),a=new URLSearchParams;a.append("code",r);for(const o of i)a.append("v",o);throw s.search=a.toString(),Error(`Minified Lexical error #${r}; visit ${s.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)})(252),n.getChildren()[t.offset+e]||null}return null}function AO(t,e={}){const{target:n,title:r}=e,i=e.rel===void 0?"noreferrer":e.rel,s=Xe();if(s===null||!He(s)&&!ss(s))return;if(ss(s)){const u=s.getNodes();return u.length===0?void 0:void u.forEach((c=>{if(t===null){const d=ll(c,(h=>!Xl(h)&&La(h)));d&&(d.insertBefore(c),d.getChildren().length===0&&d.remove())}else{const d=ll(c,(h=>!Xl(h)&&La(h)));if(d)d.setURL(t),n!==void 0&&d.setTarget(n),i!==void 0&&d.setRel(i);else{const h=ff(t,{rel:i,target:n});c.insertBefore(h),h.append(c)}}}))}const a=s.extract();if(t===null)return void a.forEach((u=>{const c=ll(u,(d=>!Xl(d)&&La(d)));if(c){const d=c.getChildren();for(let h=0;h<d.length;h++)c.insertBefore(d[h]);c.remove()}}));const o=new Set,l=u=>{o.has(u.getKey())||(o.add(u.getKey()),u.setURL(t),n!==void 0&&u.setTarget(n),i!==void 0&&u.setRel(i),r!==void 0&&u.setTitle(r))};if(a.length===1){const u=Kee(a[0],La);if(u!==null)return l(u)}(function(u){const c=Xe();if(!He(c))return u();const d=op(c),h=d.isBackward(),m=Yee(d.anchor,h?-1:0),g=Yee(d.focus,h?0:-1);if(u(),m||g){const b=Xe();if(He(b)){const v=b.clone();if(m){const E=m.getParent();E&&v.anchor.set(E.getKey(),m.getIndexWithinParent()+(h?1:0),"element")}if(g){const E=g.getParent();E&&v.focus.set(E.getKey(),g.getIndexWithinParent()+(h?0:1),"element")}Vi(op(v))}}})((()=>{let u=null;for(const c of a){if(!c.isAttached())continue;const d=Kee(c,La);if(d){l(d);continue}if(Me(c)){if(!c.isInline())continue;if(La(c)){if(!(Xl(c)||u!==null&&u.getParentOrThrow().isParentOf(c))){l(c),u=c;continue}for(const m of c.getChildren())c.insertBefore(m);c.remove();continue}}const h=c.getPreviousSibling();La(h)&&h.is(u)?h.append(c):(u=ff(t,{rel:i,target:n,title:r}),c.insertAfter(u),u.append(c))}}))}function Kee(t,e){let n=t;for(;n!==null&&n.getParent()!==null&&!e(n);)n=n.getParentOrThrow();return e(n)?n:null}const txt=/^\+?[0-9\s()-]{5,}$/;function Xee(t){return t.match(/^[a-z][a-z0-9+.-]*:/i)||t.match(/^[/#.]/)?t:t.includes("@")?`mailto:${t}`:txt.test(t)?`tel:${t}`:`https://${t}`}function Vd(t,...e){const n=new URL("https://lexical.dev/docs/error"),r=new URLSearchParams;r.append("code",t);for(const i of e)r.append("v",i);throw n.search=r.toString(),Error(`Minified Lexical error #${t}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}function zv(t){let e=1,n=t.getParent();for(;n!=null;){if(Yt(n)){const r=n.getParent();if(Ft(r)){e++,n=r.getParent();continue}Vd(40)}return e}return e}function PL(t){let e=t.getParent();Ft(e)||Vd(40);let n=e;for(;n!==null;)n=n.getParent(),Ft(n)&&(e=n);return e}function m_e(t){let e=[];const n=t.getChildren().filter(Yt);for(let r=0;r<n.length;r++){const i=n[r],s=i.getFirstChild();Ft(s)?e=e.concat(m_e(s)):e.push(i)}return e}function Ql(t){return Yt(t)&&Ft(t.getFirstChild())}function Qee(t){return pa().append(t)}function g_e(t,e){return Yt(t)&&(e.length===0||e.length===1&&t.is(e[0])&&t.getChildrenSize()===0)}function LL(t){const e=Xe();if(e!==null){let n=e.getNodes();if(He(e)){const i=e.getStartEndPoints();i===null&&Vd(143);const[s]=i,a=s.getNode(),o=a.getParent();if(ms(a)){const l=a.getFirstChild();if(l)n=l.selectStart().getNodes();else{const u=ti();a.append(u),n=u.select().getNodes()}}else if(g_e(a,n)){const l=ua(t);if(ms(o)){a.replace(l);const u=pa();Me(a)&&(u.setFormat(a.getFormatType()),u.setIndent(a.getIndent())),l.append(u)}else if(Yt(a)){const u=a.getParentOrThrow();yp(l,u.getChildren()),u.replace(l)}return}}const r=new Set;for(let i=0;i<n.length;i++){const s=n[i];if(Me(s)&&s.isEmpty()&&!Yt(s)&&!r.has(s.getKey())){Zee(s,t);continue}let a=G2e(s)?s.getParent():Yt(s)&&s.isEmpty()?s:null;for(;a!=null;){const o=a.getKey();if(Ft(a)){if(!r.has(o)){const l=ua(t);yp(l,a.getChildren()),a.replace(l),r.add(o)}break}{const l=a.getParent();
vendor: 2,514 bytes, line 205
205if(ms(l)&&!r.has(o)){r.add(o),Zee(a,t);break}a=l}}}}}function yp(t,e){t.splice(t.getChildrenSize(),0,e)}function Zee(t,e){if(Ft(t))return t;const n=t.getPreviousSibling(),r=t.getNextSibling(),i=pa();let s;if(yp(i,t.getChildren()),Ft(n)&&e===n.getListType())n.append(i),Ft(r)&&e===r.getListType()&&(yp(n,r.getChildren()),r.remove()),s=n;else if(Ft(r)&&e===r.getListType())r.getFirstChildOrThrow().insertBefore(i),s=r;else{const a=ua(e);a.append(i),t.replace(a),s=a}return i.setFormat(t.getFormatType()),i.setIndent(t.getIndent()),t.remove(),s}function rH(t,e){const n=t.getLastChild(),r=e.getFirstChild();n&&r&&Ql(n)&&Ql(r)&&(rH(n.getFirstChild(),r.getFirstChild()),r.remove());const i=e.getChildren();i.length>0&&t.append(...i),e.remove()}function nxt(){const t=Xe();if(He(t)){const e=new Set,n=t.getNodes(),r=t.anchor.getNode();if(g_e(r,n))e.add(PL(r));else for(let i=0;i<n.length;i++){const s=n[i];if(G2e(s)){const a=_Ee(s,a1);a!=null&&e.add(PL(a))}}for(const i of e){let s=i;const a=m_e(i);for(const o of a){const l=ti().setTextStyle(t.style).setTextFormat(t.format);yp(l,o.getChildren()),s.insertAfter(l),s=l,o.__key===t.anchor.key&&pp(t.anchor,za(ko(l,"next"))),o.__key===t.focus.key&&pp(t.focus,za(ko(l,"next"))),o.remove()}i.remove()}}}function y_e(t){const e=t.getListType()!=="check";let n=t.getStart();for(const r of t.getChildren())Yt(r)&&(r.getValue()!==n&&r.setValue(n),e&&r.getLatest().__checked!=null&&r.setChecked(void 0),Ft(r.getFirstChild())||n++)}function rxt(t){const e=new Set;if(Ql(t)||e.has(t.getKey()))return;const n=t.getParent(),r=t.getNextSibling(),i=t.getPreviousSibling();if(Ql(r)&&Ql(i)){const s=i.getFirstChild();if(Ft(s)){s.append(t);const a=r.getFirstChild();Ft(a)&&(yp(s,a.getChildren()),r.remove(),e.add(r.getKey()))}}else if(Ql(r)){const s=r.getFirstChild();if(Ft(s)){const a=s.getFirstChild();a!==null&&a.insertBefore(t)}}else if(Ql(i)){const s=i.getFirstChild();Ft(s)&&s.append(t)}else if(Ft(n)){const s=pa().setTextFormat(t.getTextFormat()).setTextStyle(t.getTextStyle()),a=ua(n.getListType()).setTextFormat(n.getTextFormat()).setTextStyle(n.getTextStyle());s.append(a),a.append(t),i?i.insertAfter(s):r?r.insertBefore(s):n.append(s)}}function ixt(t){if(Ql(t))return;const e=t.getParent(),n=e?e.getParent():void 0;if(Ft(n?n.getParent():void 0)&&Yt(n)&&Ft(e)){const r=e?e.getFirstChild():void 0,i=e?e.getLastChild():void 0;if(t.is(r))n.insertBefore(t),e.isEmpty()&&n.remove();else if(t.is(i))n.insertAfter(t),e.isEmpty()&&n.remove();else{const s=e.getListType(),a=pa(),o=ua(s);
205a.append(o),t.getPreviousSiblings().forEach((c=>o.append(c)));const l=pa(),u=ua(s);l.append(u),yp(u,t.getNextSiblings()),n.insertBefore(a),n.insertAfter(l),n.replace(t)}}}function sxt(){const t=Xe();if(!He(t)||!t.isCollapsed())return!1;const e=t.anchor.getNode();if(!Yt(e)||e.getChildrenSize()!==0)return!1;const n=PL(e),r=e.getParent();Ft(r)||Vd(40);const i=r.getParent();let s;if(ms(i))s=ti(),n.insertAfter(s);else{if(!Yt(i))return!1;s=pa(),i.insertAfter(s)}s.setTextStyle(t.style).setTextFormat(t.format).select();const a=e.getNextSiblings();if(a.length>0){const o=ua(r.getListType());if(Yt(s)){const l=pa();l.append(o),s.insertAfter(l)}else s.insertAfter(o);o.append(...a)}return(function(o){let l=o;for(;l.getNextSibling()==null&&l.getPreviousSibling()==null;){const u=l.getParent();if(u==null||!Yt(u)&&!Ft(u))break;l=u}l.remove()})(e),!0}function FC(...t){const e=[];for(const n of t)if(n&&typeof n=="string")for(const[r]of n.matchAll(/\S+/g))e.push(r);return e}class a1 extends No{$config(){return this.config("listitem",{$transform:e=>{if(e.__checked==null)return;const n=e.getParent();Ft(n)&&n.getListType()!=="check"&&e.getChecked()!=null&&e.setChecked(void 0)},extends:No,importDOM:{li:()=>({conversion:axt,priority:0})}})}constructor(e=1,n=void 0,r){super(r),this.__value=e===void 0?1:e,this.__checked=n}afterCloneFrom(e){super.afterCloneFrom(e),this.__value=e.__value,this.__checked=e.__checked}createDOM(e){const n=document.createElement("li");return this.updateListItemDOM(null,n,e),n}updateListItemDOM(e,n,r){const i=this.getParent();Ft(i)&&i.getListType()==="check"&&(function(o,l,u,c){Ft(l.getFirstChild())?(o.removeAttribute("role"),o.removeAttribute("tabIndex"),o.removeAttribute("aria-checked")):(o.setAttribute("role","checkbox"),o.setAttribute("tabIndex","-1"),u&&l.__checked===u.__checked||o.setAttribute("aria-checked",l.getChecked()?"true":"false"))})(n,this,e),n.value=this.__value,(function(o,l,u){const c=[],d=[],h=l.list,m=h?h.listitem:void 0;let g;if(h&&h.nested&&(g=h.nested.listitem),m!==void 0&&c.push(...FC(m)),h){const b=u.getParent(),v=Ft(b)&&b.getListType()==="check",E=u.getChecked();v&&!E||d.push(h.listitemUnchecked),v&&E||d.push(h.listitemChecked),v&&c.push(E?h.listitemChecked:h.listitemUnchecked)}if(g!==void 0){const b=FC(g);u.getChildren().some((v=>Ft(v)))?c.push(...b):d.push(...b)}d.length>0&&EEe(o,...d),c.length>0&&pA(o,...c)})(n,r.theme,this);const s=e?e.__style:"",a=this.__style;s!==a&&(a===""?n.removeAttribute("style"):n.style.cssText=a),(function(o,l,u){const c=aee(l.__textStyle);for(const d in c)o.style.setProperty(`--listitem-marker-${d}`,c[d]);if(u)for(const d in aee(u.__textStyle))d in c||o.style.removeProperty(`--listitem-marker-${d}`)})(n,this,e)}updateDOM(e,n,r){const i=n;return this.updateListItemDOM(e,i,r),!1}updateFromJSON(e){return super.updateFromJSON(e).setValue(e.value).setChecked(e.checked)}exportDOM(e){const n=this.createDOM(e._config),r=this.getFormatType();r&&(n.style.textAlign=r);const i=this.getDirection();return i&&(n.dir=i),{element:n}}exportJSON(){return{...super.exportJSON(),checked:this.getChecked(),value:this.getValue()}}append(...e){for(let n=0;n<e.length;n++){const r=e[n];if(Me(r)&&this.canMergeWith(r)){const i=r.getChildren();this.append(...i),r.remove()}else super.append(r)}return this}replace(e,n){if(Yt(e))return super.replace(e);this.setIndent(0);const r=this.getParentOrThrow();if(!Ft(r))return e;if(r.__first===this.getKey())r.insertBefore(e);else if(r.__last===this.getKey())r.insertAfter(e);else{const i=ua(r.getListType());let s=this.getNextSibling();for(;s;){const a=s;s=s.getNextSibling(),i.append(a)}r.insertAfter(e),e.insertAfter(i)}
205return n&&(Me(e)||Vd(139),this.getChildren().forEach((i=>{e.append(i)}))),this.remove(),r.getChildrenSize()===0&&r.remove(),e}insertAfter(e,n=!0){const r=this.getParentOrThrow();if(Ft(r)||Vd(39),Yt(e))return super.insertAfter(e,n);const i=this.getNextSiblings();if(r.insertAfter(e,n),i.length!==0){const s=ua(r.getListType());i.forEach((a=>s.append(a))),e.insertAfter(s,n)}return e}remove(e){const n=this.getPreviousSibling(),r=this.getNextSibling();super.remove(e),n&&r&&Ql(n)&&Ql(r)&&(rH(n.getFirstChild(),r.getFirstChild()),r.remove())}insertNewAfter(e,n=!0){const r=pa().updateFromJSON(this.exportJSON()).setChecked(!this.getChecked()&&void 0);return this.insertAfter(r,n),r}collapseAtStart(e){const n=ti();this.getChildren().forEach((a=>n.append(a)));const r=this.getParentOrThrow(),i=r.getParentOrThrow(),s=Yt(i);if(r.getChildrenSize()===1)if(s)r.remove(),i.select();else{r.insertBefore(n),r.remove();const a=e.anchor,o=e.focus,l=n.getKey();a.type==="element"&&a.getNode().is(this)&&a.set(l,a.offset,"element"),o.type==="element"&&o.getNode().is(this)&&o.set(l,o.offset,"element")}else r.insertBefore(n),this.remove();return!0}getValue(){return this.getLatest().__value}setValue(e){const n=this.getWritable();return n.__value=e,n}getChecked(){const e=this.getLatest();let n;const r=this.getParent();return Ft(r)&&(n=r.getListType()),n==="check"?!!e.__checked:void 0}setChecked(e){const n=this.getWritable();return n.__checked=e,n}toggleChecked(){const e=this.getWritable();return e.setChecked(!e.__checked)}getIndent(){const e=this.getParent();if(e===null||!this.isAttached())return this.getLatest().__indent;let n=e.getParentOrThrow(),r=0;for(;Yt(n);)n=n.getParentOrThrow().getParentOrThrow(),r++;return r}setIndent(e){typeof e!="number"&&Vd(117),(e=Math.floor(e))>=0||Vd(199);let n=this.getIndent();for(;n!==e;)n<e?(rxt(this),n++):(ixt(this),n--);return this}canInsertAfter(e){return Yt(e)}canReplaceWith(e){return Yt(e)}canMergeWith(e){return Yt(e)||oA(e)}extractWithChild(e,n){if(!He(n))return!1;const r=n.anchor.getNode(),i=n.focus.getNode();return this.isParentOf(r)&&this.isParentOf(i)&&this.getTextContent().length===n.getTextContent().length}isParentRequired(){return!0}createParentElementNode(){return ua("bullet")}canMergeWhenEmpty(){return!0}}function axt(t){if(t.classList.contains("task-list-item")){for(const n of t.children)if(n.tagName==="INPUT")return oxt(n)}const e=t.getAttribute("aria-checked");return{node:pa(e==="true"||e!=="false"&&void 0)}}function oxt(t){return t.getAttribute("type")!=="checkbox"?{node:null}:{node:pa(t.hasAttribute("checked"))}}function pa(t){return Au(new a1(void 0,t))}function Yt(t){return t instanceof a1}class o1 extends No{$config(){return this.config("list",{$transform:e=>{(function(n){const r=n.getNextSibling();Ft(r)&&n.getListType()===r.getListType()&&rH(n,r)})(e),y_e(e)},extends:No,importDOM:{ol:()=>({conversion:ete,priority:0}),ul:()=>({conversion:ete,priority:0})}})}constructor(e="number",n=1,r){super(r);const i=uxt[e]||e;this.__listType=i,this.__tag=i==="number"?"ol":"ul",this.__start=n}afterCloneFrom(e){super.afterCloneFrom(e),this.__listType=e.__listType,this.__tag=e.__tag,this.__start=e.__start}getTag(){return this.getLatest().__tag}setListType(e){const n=this.getWritable();return n.__listType=e,n.__tag=e==="number"?"ol":"ul",n}getListType(){return this.getLatest().__listType}getStart(){return this.getLatest().__start}setStart(e){const n=this.getWritable();return n.__start=e,n}createDOM(e,n){const r=this.__tag,i=document.createElement(r);return this.__start!==1&&i.setAttribute("start",String(this.__start)),i.__lexicalListType=this.__listType,Jee(i,e.theme,this),i}updateDOM(e,n,r){return e.__tag!==this.__tag||(Jee(n,r.theme,this),!1)}updateFromJSON(e){return super.updateFromJSON(e).setListType(e.listType).setStart(e.start)}exportDOM(e){const n=this.createDOM(e._config,e);return jr(n)&&(this.__start!==1&&n.setAttribute("start",String(this.__start)),this.__listType==="check"&&n.setAttribute("__lexicalListType","check")),{element:n}}exportJSON(){return{...super.exportJSON(),listType:this.getListType(),start:this.getStart(),tag:this.getTag()}}canBeEmpty(){return!1}canIndent(){return!1}splice(e,n,r){let i=r;for(let s=0;s<r.length;s++){const a=r[s];Yt(a)||(i===r&&(i=[...r]),i[s]=pa().append(!Me(a)||Ft(a)||a.isInline()?a:xr(a.getTextContent())))}return super.splice(e,n,i)}extractWithChild(e){return Yt(e)}}function Jee(t,e,n){const r=[],i=[],s=e.list;if(s!==void 0){const a=s[`${n.__tag}Depth`]||[],o=zv(n)-1,l=o%a.length,u=a[l],c=s[n.__tag];let d;const h=s.nested,m=s.checklist;if(h!==void 0&&h.list&&(d=h.list),c!==void 0&&r.push(c),m!==void 0&&n.__listType==="check"&&r.push(m),u!==void 0){r.push(...FC(u));for(let g=0;g<a.length;g++)g!==l&&i.push(n.__tag+g)}if(d!==void 0){const g=FC(d);o>1?r.push(...g):i.push(...g)}}i.length>0&&EEe(t,...i),r.length>0&&pA(t,...r)}function lxt(t){const e=[];for(let n=0;n<t.length;n++){const r=t[n];if(Yt(r)){e.push(r);const i=r.getChildren();i.length>
2051&&i.forEach((s=>{Ft(s)&&e.push(Qee(s))}))}else e.push(Qee(r))}return e}function ete(t){const e=t.nodeName.toLowerCase();let n=null;return e==="ol"?n=ua("number",t.start):e==="ul"&&(n=(function(r){if(r.getAttribute("__lexicallisttype")==="check"||r.classList.contains("contains-task-list"))return!0;for(const i of r.childNodes)if(jr(i)&&i.hasAttribute("aria-checked"))return!0;return!1})(t)?ua("check"):ua("bullet")),{after:lxt,node:n}}const uxt={ol:"number",ul:"bullet"};function ua(t="number",e=1){return Au(new o1(t,e))}function Ft(t){return t instanceof o1}const b_e=Mt("INSERT_CHECK_LIST_COMMAND");function cxt(t){return _l(t.registerCommand(b_e,(()=>(LL("check"),!0)),Rs),t.registerCommand(EB,(e=>rte(e,t,!1)),Rs),t.registerCommand(vB,(e=>rte(e,t,!0)),Rs),t.registerCommand(eA,(()=>{if($L()!=null){const e=t.getRootElement();return e?.focus(),!0}return!1}),Rs),t.registerCommand(_B,(e=>{const n=$L();return!(n==null||!t.isEditable())&&(t.update((()=>{const r=gu(n);Yt(r)&&(e.preventDefault(),r.toggleChecked())})),!0)}),Rs),t.registerCommand(bB,(e=>t.getEditorState().read((()=>{const n=Xe();if(He(n)&&n.isCollapsed()){const{anchor:r}=n,i=r.type==="element";if(i||r.offset===0){const s=r.getNode(),a=ll(s,(o=>Me(o)&&!o.isInline()));if(Yt(a)){const o=a.getParent();if(Ft(o)&&o.getListType()==="check"&&(i||a.getFirstDescendant()===s)){const l=t.getElementByKey(a.__key);if(l!=null&&document.activeElement!==l)return l.focus(),e.preventDefault(),!0}}}}return!1}))),Rs),t.registerRootListener(((e,n)=>{e!==null&&(e.addEventListener("click",tte),e.addEventListener("pointerdown",nte)),n!==null&&(n.removeEventListener("click",tte),n.removeEventListener("pointerdown",nte))})))}function v_e(t,e){const n=t.target;if(!jr(n))return;const r=n.firstChild;if(jr(r)&&(r.tagName==="UL"||r.tagName==="OL"))return;const i=n.parentNode;if(!i||i.__lexicalListType!=="check")return;const s=n.getBoundingClientRect(),a=Svt(n),o=t.clientX/a,l=window.getComputedStyle?window.getComputedStyle(n,"::before"):{width:"0px"},u=parseFloat(l.width),c=t.pointerType==="touch"?32:0;(n.dir==="rtl"?o<s.right+c&&o>s.right-u-c:o>s.left-c&&o<s.left+u+c)&&e()}function tte(t){v_e(t,(()=>{if(jr(t.target)){const e=t.target,n=DB(e);n!=null&&n.isEditable()&&n.update((()=>{const r=gu(e);Yt(r)&&(e.focus(),r.toggleChecked())}))}}))}function nte(t){v_e(t,(()=>{t.preventDefault()}))}function $L(){const t=document.activeElement;return jr(t)&&t.tagName==="LI"&&t.parentNode!=null&&t.parentNode.__lexicalListType==="check"?t:null}function rte(t,e,n){const r=$L();return r!=null&&e.update((()=>{const i=gu(r);if(!Yt(i))return;const s=(function(a,o){let l=o?a.getPreviousSibling():a.getNextSibling(),u=a;for(;l==null&&Yt(u);)u=u.getParentOrThrow().getParent(),u!=null&&(l=o?u.getPreviousSibling():u.getNextSibling());for(;Yt(l);){const c=o?l.getLastChild():l.getFirstChild();if(!Ft(c))return l;l=o?c.getLastChild():c.getFirstChild()}return null})(i,n);if(s!=null){s.selectStart();const a=e.getElementByKey(s.__key);a!=null&&(t.preventDefault(),setTimeout((()=>{a.focus()}),0))}})),!1}const dxt=Mt("UPDATE_LIST_START_COMMAND"),E_e=Mt("INSERT_UNORDERED_LIST_COMMAND"),__e=Mt("INSERT_ORDERED_LIST_COMMAND"),x_e=Mt("REMOVE_LIST_COMMAND");function fxt(t){return _l(t.registerCommand(__e,(()=>(LL("number"),!0)),Rs),t.registerCommand(dxt,(e=>{const{listNodeKey:n,newStart:r}=e,i=hi(n);return!!Ft(i)&&(i.getListType()==="number"&&(i.setStart(r),y_e(i)),!0)}),Rs),t.registerCommand(E_e,(()=>(LL("bullet"),!0)),Rs),t.registerCommand(x_e,(()=>(nxt(),!0)),Rs),t.registerCommand(Pv,(()=>sxt()),Rs),t.registerNodeTransform(a1,(e=>{const n=e.getFirstChild();if(n){if(Qe(n)){const r=n.getStyle(),i=n.getFormat();e.getTextStyle()!==r&&e.setTextStyle(r),e.getTextFormat()!==i&&e.setTextFormat(i)}}else{const r=Xe();He(r)&&(r.style!==e.getTextStyle()||r.format!==e.getTextFormat())&&r.isCollapsed()&&e.is(r.anchor.getNode())&&e.setTextStyle(r.style).setTextFormat(r.format)}})),t.registerNodeTransform(Wc,(e=>{const n=e.getParent();if(Yt(n)&&e.is(n.getFirstChild())){const r=e.getStyle(),i=e.getFormat();r===n.getTextStyle()&&i===n.getTextFormat()||n.setTextStyle(r).setTextFormat(i)}})))}function hxt(t){const e=n=>{const r=n.getParent();if(Ft(n.getFirstChild())||!Ft(r))return;const i=ll(n,(s=>Yt(s)&&Ft(s.getParent())&&Yt(s.getPreviousSibling())));if(i===null&&n.getIndent()>0)n.setIndent(0);else if(Yt(i)){const s=i.getPreviousSibling();if(Yt(s)){const a=(function(l){let u=l,c=u.getFirstChild();for(;Ft(c);){const d=c.getLastChild();if(!Yt(d))break;u=d,c=u.getFirstChild()}return u})(s),o=a.getParent();if(Ft(o)){const l=zv(o);l+1<zv(r)&&n.setIndent(l)}}}};return t.registerNodeTransform(o1,(n=>{const r=[n];for(;r.length>0;){const i=r.shift();if(Ft(i)){for(const s of i.getChildren())if(Yt(s)){e(s);const a=s.getFirstChild();Ft(a)&&r.push(a)}}}}))}function pxt(t){try{const e=t.anchor,n=t.focus,r=t.anchor.getNode(),i=t.focus.getNode();return r===i?r:t.isBackward()?lee(n)?r:i:lee(e)?r:i}catch{return null}}const mxt=["transform","perspective","filter","backdrop-filter","contain","container-type"],gxt=["layout","paint","strict","content"];function yxt(t){let e=t?.parentElement;for(;e;){const n=window.getComputedStyle(e),i=n.willChange.split(",").map(a=>a.trim()).some(a=>mxt.includes(a));if(n.transform!=="none"||n.perspective!=="none"||n.filter!=="none"||n.backdropFilter!=="none"||gxt.includes(n.contain)||n.containerType!=="normal"||n.contentVisibility==="auto"||i)return e;e=e.parentElement}return null}function w_e(t){const e=Xe(),n=window.getSelection(),r=document.activeElement,i=t.getRootElement();if(e!==null&&n!==null&&i!==null&&i.contains(n.anchorNode)&&t.isEditable()){const s=n.getRangeAt(0);let a;
205if(n.isCollapsed){let l=n.anchorNode;l?.nodeType==3&&(l=l.parentNode),a=l.getBoundingClientRect(),a.width=0}else if(n.anchorNode===i){let l=i;for(;l.firstElementChild!=null;)l=l.firstElementChild;a=l.getBoundingClientRect()}else a=s.getBoundingClientRect();const o=yxt(i);if(o){const l=o.getBoundingClientRect();return{top:Math.round(a.top-l.top),left:Math.round(a.left-l.left),width:Math.round(a.width),height:Math.round(a.height)}}return{top:Math.round(a.top),left:Math.round(a.left),width:Math.round(a.width),height:Math.round(a.height)}}else if(r?.className!=="link-input")return null;return null}function bxt(t,e){let n="";return t.getEditorState().read(()=>{const r=Xe();if(!r||!He(r)||r.isCollapsed())return;const i=r.getNodes();if(i.length===0)return;const s=new Set;i.forEach(l=>{let u=l;for(;u;){if(yL(u)||Yt(u)||u.getType()==="paragraph"||u.getType()==="quote"){Me(u)&&s.add(u);break}u=u.getParent()}});const a=s.size>0?Array.from(s):i;function o(l){if(yL(l)){const u=parseInt(l.getTag().replace("h","")),d=l.getChildren().map(h=>o(h)).join("");return"#".repeat(u)+" "+d+` 206 207`}else if(Yt(l)){const u=l.getParent(),c=u&&Ft(u)&&u.getListType()==="number"?"1. ":"- ",h=l.getChildren().map(m=>o(m)).join("");return c+h+` 208`}else{if(Ft(l))return l.getChildren().map(c=>o(c)).join("")+` 209`;if(Qe(l)){let u=l.getTextContent();const c=l.getFormat();return c&16?`\`${u}\``:(c&1&&(u=`**${u}**`),c&2&&(u=`*${u}*`),c&4&&(u=`~~${u}~~`),u)}else if(La(l)){const u=l.getURL(),c=l.getTitle(),h=l.getChildren().map(m=>o(m)).join("");return c?`[${h}](${u} "${c}")`:`[${h}](${u})`}else if(Me(l))return l.getChildren().map(c=>o(c)).join("")}return l.getTextContent()}n=a.map(l=>o(l)).join("")}),n.trim()}const vxt=({children:t})=>{const e=Up(Rf),n=U.useMemo(()=>[e,Fyt(null,YB)],[e]);return U.createElement(Zve.Provider,{value:n},t)},Ext=()=>{const t=Nf(),e=vo(ZEe),n=vo(XEt),r=d=>{n(d),e(d?{current:d}:null)},[i,s,a,o,l,u,c]=t1(wL,SL,s_e,a_e,l_e,CL,o_e);return U.createElement(U.Fragment,null,o.map((d,h)=>U.createElement(d,{key:h})),U.createElement(S_e,{wrappers:l},U.createElement("div",{className:Oi(tn.rootContentEditableWrapper,"mdxeditor-root-contenteditable")},U.createElement(x_t,{contentEditable:U.createElement("div",{ref:r},U.createElement(h_t,{className:Oi(tn.contentEditable,i),ariaLabel:t("contentArea.editableMarkdown","editable markdown"),spellCheck:s})),placeholder:U.createElement("div",{className:Oi(tn.contentEditable,tn.placeholder,i)},U.createElement("p",null,u)),ErrorBoundary:y_t}))),a.map((d,h)=>U.createElement(d,{key:h})),c.map((d,h)=>U.createElement(d,{key:h})))},_xt={listItemIndent:"one"},xxt=t=>S_t[t];function wxt(t,e,n={}){let r=e;for(const[i,s]of Object.entries(n))r=r.replaceAll(`{{${i}}}`,String(s));return r}const S_e=({wrappers:t,children:e})=>{if(t.length===0)return U.createElement(U.Fragment,null,e);const n=t[0];return U.createElement(n,null,U.createElement(S_e,{wrappers:t.slice(1)},e))},Sxt=({children:t,className:e,overlayContainer:n})=>{const r=U.useRef(null),i=U.useRef(null),s=vo(ZB),a=vo(KEt);return U.useEffect(()=>{const o=document.createElement("div");return o.classList.add("mdxeditor-popup-container",tn.editorRoot,tn.popupContainer,...(e??"").trim().split(" ").filter(Boolean)),(n??document.body).appendChild(o),r.current=o,s(r),a(i),()=>{o.remove()}},[e,r,n,s,a]),U.createElement("div",{className:Oi("mdxeditor",tn.editorRoot,tn.editorWrapper,e),ref:i},t)},Cxt=({mdxRef:t})=>{const e=Y3();return U.useImperativeHandle(t,()=>({getMarkdown:()=>{const n=e.getValue(Uv);return n==="source"||n==="diff"?e.getValue(jv):e.getValue(gp)},setMarkdown:n=>{e.pub(tH,n)},insertMarkdown:n=>{e.pub(e_e,n)},focus:(n,r)=>{var i;(i=e.getValue(Rf))==null||i.focus(n,r)},getContentEditableHTML:()=>{var n;return((n=e.getValue(ZEe))==null?void 0:n.current.innerHTML)??""},getSelectionMarkdown:()=>{const n=e.getValue(Uv);if(n==="source"||n==="diff")return"";const r=e.getValue(mi);return r?(e.getValue(KB),e.getValue(XB),e.getValue(PC),e.getValue(QB),e.getValue(QEe),bxt(r)):""}}),[e]),null},_Mt=U.forwardRef((t,e)=>U.createElement($yt,{plugins:[o_t({contentEditableClassName:t.contentEditableClassName??"",spellCheck:t.spell
209Check??!0,initialMarkdown:t.markdown,onChange:t.onChange??Ig,onBlur:t.onBlur??Ig,toMarkdownOptions:t.toMarkdownOptions??_xt,autoFocus:t.autoFocus??!1,placeholder:t.placeholder??"",readOnly:!!t.readOnly,iconComponentFor:t.iconComponentFor??xxt,suppressHtmlProcessing:t.suppressHtmlProcessing??!1,onError:t.onError??Ig,translation:t.translation??wxt,trim:t.trim??!0,lexicalTheme:t.lexicalTheme,..."editorState"in t?{editorState:t.editorState}:{},suppressSharedHistory:t.suppressSharedHistory??!1,additionalLexicalNodes:t.additionalLexicalNodes??[],lexicalEditorNamespace:t.lexicalEditorNamespace??"MDXEditor"}),...t.plugins??[]]},U.createElement(Sxt,{className:t.className,overlayContainer:t.overlayContainer},U.createElement(vxt,null,U.createElement(Ext,null))),U.createElement(Cxt,{mdxRef:e}))),Txt=typeof window<"u"&&typeof window.document.createElement<"u",FL=Txt&&(()=>{var t;const e=(t=navigator.userAgentData)==null?void 0:t.platform;return e?/mac/i.test(e):/Mac|iPod|iPhone|iPad/.test(navigator.userAgent)})(),Axt={testNode:"list",visitNode:function({mdastNode:t,lexicalParent:e,actions:n}){const r=t.children.some(s=>typeof s.checked=="boolean")?"check":t.ordered?"number":"bullet",i=ua(r);if(Yt(e)){const s=pa();s.append(i),e.insertAfter(s)}else e.append(i);n.visitChildren(t,i)}},Rxt={testNode:"listItem",visitNode({mdastNode:t,actions:e,lexicalParent:n}){const r=n.getListType()==="check"?t.checked??!1:void 0;e.addAndStepInto(pa(r))}},Nxt={testLexicalNode:Ft,visitLexicalNode:({lexicalNode:t,actions:e})=>{e.addAndStepInto("list",{ordered:t.getListType()==="number",spread:!1})}},Oxt={testLexicalNode:Yt,visitLexicalNode:({lexicalNode:t,mdastParent:e,actions:n})=>{const r=t.getChildren(),i=r[0];if(r.length===1&&Ft(i)){const s=e.children.at(-1);s?n.visitChildren(t,s):n.visitChildren(i,e)}else{const s=t.getParent(),a=n.appendToParent(e,{type:"listItem",checked:s.getListType()==="check"?!!t.getChecked():void 0,spread:!1,children:[]});let o=null;for(const l of t.getChildren())Qe(l)||ou(l)||l.isInline()&&(Me(l)||Mn(l))?(o??(o=n.appendToParent(a,{type:"paragraph",children:[]})),n.visit(l,o)):(o=null,n.visit(l,a))}}};function kxt(t,e){return _l(t.registerCommand(xB,(n=>{const r=Xe();if(!He(r))return!1;n.preventDefault();const i=(function(s){const a=s.getNodes();if(wvt(a,(h=>CC(h)&&h.canIndent()?h:null)).length>0)return!0;const o=s.anchor,l=s.focus,u=l.isBefore(o)?l:o,c=u.getNode(),d=pL(c);if(d.canIndent()){const h=d.getKey();let m=rA();if(m.anchor.set(h,0,"element"),m.focus.set(h,0,"element"),m=op(m),m.anchor.is(u))return!0}return!1})(r)?n.shiftKey?Z9:wC:y2e;return t.dispatchCommand(i,void 0)}),xn),t.registerCommand(wC,(()=>{if(e==null)return!1;const n=Xe();if(!He(n))return!1;const r=n.getNodes().map((i=>pL(i).getIndent()));return Math.max(...r)+1>=e}),cf))}function ite({maxIndent:t}){const[e]=Tu();return C.useEffect((()=>kxt(e,t)),[e,t]),null}function ste(){const[t]=Tu();return C.useEffect((()=>cxt(t)),[t]),null}function ate({hasStrictIndent:t=!1}){const[e]=Tu();return C.useEffect((()=>{if(!e.hasNodes([o1,a1]))throw new Error("ListPlugin: ListNode and/or ListItemNode not registered on editor")}),[e]),C.useEffect((()=>{if(t)return hxt(e)}),[e,t]),(function(n){C.useEffect((()=>fxt(n)),[n])})(e),null}const Ixt=new Map([["number",__e],["bullet",E_e],["check",b_e],["",x_e]]),BL=Nt("",t=>{t.sub(t.pipe(c0,Ui(mi)),([e,n])=>{if(!e||!n)return;const r=e.anchor.getNode();let i=r.getKey()==="root"?r:ll(r,o=>{const l=o.getParent();return l!==null&&ms(l)});i??(i=r.getTopLevelElementOrThrow());const s=i.getKey();if(n.getElementByKey(s)!==null)if(Ft(i)){const o=_Ee(r,o1),l=o?o.getListType():i.getListType();t.pub(BL,l)}else t.pub(BL,"")})}),C_e=ya(t=>{t.sub(t.pipe(C_e,Ui(mi)),([e,n])=>{n?.dispatchCommand(Ixt.get(e),void 0)})}),xMt=cE({init(t){var e;(e=t.getValue(Rf))==null||e.registerCommand(wC,()=>!Dxt(7),cf),t.pubIn({[c_e]:"lists",[NL]:Vhe(),[RL]:tpe(),[LC]:[Axt,Rxt],[JB]:[a1,o1],[eH]:[Nxt,Oxt],[JEe]:qhe(),[yA]:[ite,ate,ste],[u_e]:[ite,ate,ste]})}});function Mxt(t){const e=t.getNodes();return e.length===0?new Set([t.anchor.getNode().getParentOrThrow(),t.focus.getNode().getParentOrThrow()]):new Set(e.map(n=>Me(n)?n:n.getParentOrThrow()))}function Dxt(t){const e=Xe();if(!He(e))return!1;const n=Mxt(e);let r=0;for(const i of n)if(Ft(i))r=Math.max(zv(i)+1,r);else if(Yt(i)){const s=i.getParent();if(s?.getChildren().length===1){const a=s.getParent();if(Yt(a)&&a.getChildren().length===1)return!1}if(!Ft(s))throw new Error("ListMaxIndentLevelPlugin: A ListItemNode must have a ListNode for a parent.");r=Math.max(zv(s)+1,r)}return r<=t}var Pxt="Separator",ote="horizontal",Lxt=["horizontal","vertical"],T_e=C.forwardRef((t,e)=>{const{decorative:n,orientation:r=ote,...i}=t,s=$xt(r)?r:ote,o=n?{role:"none"}:{"aria-orientation":s==="vertical"?s:void 0,role:"separator"};return j.jsx(wt.div,{"data-orientation":s,...o,...i,ref:e})});T_e.displayName=Pxt;function $xt(t){return Lxt.includes(t)}var Fxt=T_e,A_e="Toggle",R_e=C.forwardRef((t,e)=>
209{const{pressed:n,defaultPressed:r,onPressedChange:i,...s}=t,[a,o]=fa({prop:n,onChange:i,defaultProp:r??!1,caller:A_e});return j.jsx(wt.button,{type:"button","aria-pressed":a,"data-state":a?"on":"off","data-disabled":t.disabled?"":void 0,...s,ref:e,onClick:tt(t.onClick,()=>{t.disabled||o(!a)})})});R_e.displayName=A_e;var kf="ToggleGroup",[N_e,O_e]=Ji(kf,[xu]),k_e=xu(),iH=U.forwardRef((t,e)=>{const{type:n,...r}=t;if(n==="single"){const i=r;return j.jsx(Bxt,{...i,ref:e})}if(n==="multiple"){const i=r;return j.jsx(Hxt,{...i,ref:e})}throw new Error(`Missing prop \`type\` expected on \`${kf}\``)});iH.displayName=kf;var[I_e,M_e]=N_e(kf),Bxt=U.forwardRef((t,e)=>{const{value:n,defaultValue:r,onValueChange:i=()=>{},...s}=t,[a,o]=fa({prop:n,defaultProp:r??"",onChange:i,caller:kf});return j.jsx(I_e,{scope:t.__scopeToggleGroup,type:"single",value:U.useMemo(()=>a?[a]:[],[a]),onItemActivate:o,onItemDeactivate:U.useCallback(()=>o(""),[o]),children:j.jsx(D_e,{...s,ref:e})})}),Hxt=U.forwardRef((t,e)=>{const{value:n,defaultValue:r,onValueChange:i=()=>{},...s}=t,[a,o]=fa({prop:n,defaultProp:r??[],onChange:i,caller:kf}),l=U.useCallback(c=>o((d=[])=>[...d,c]),[o]),u=U.useCallback(c=>o((d=[])=>d.filter(h=>h!==c)),[o]);return j.jsx(I_e,{scope:t.__scopeToggleGroup,type:"multiple",value:a,onItemActivate:l,onItemDeactivate:u,children:j.jsx(D_e,{...s,ref:e})})});iH.displayName=kf;var[Uxt,jxt]=N_e(kf),D_e=U.forwardRef((t,e)=>{const{__scopeToggleGroup:n,disabled:r=!1,rovingFocus:i=!0,orientation:s,dir:a,loop:o=!0,...l}=t,u=k_e(n),c=Op(a),d={role:"group",dir:c,...l};return j.jsx(Uxt,{scope:n,rovingFocus:i,disabled:r,children:i?j.jsx($2,{asChild:!0,...u,orientation:s,dir:c,loop:o,children:j.jsx(wt.div,{...d,ref:e})}):j.jsx(wt.div,{...d,ref:e})})}),BC="ToggleGroupItem",P_e=U.forwardRef((t,e)=>{const n=M_e(BC,t.__scopeToggleGroup),r=jxt(BC,t.__scopeToggleGroup),i=k_e(t.__scopeToggleGroup),s=n.value.includes(t.value),a=r.disabled||t.disabled,o={...t,pressed:s,disabled:a},l=U.useRef(null);return r.rovingFocus?j.jsx(j0,{asChild:!0,...i,focusable:!a,active:s,ref:l,children:j.jsx(lte,{...o,ref:e})}):j.jsx(lte,{...o,ref:e})});P_e.displayName=BC;var lte=U.forwardRef((t,e)=>{const{__scopeToggleGroup:n,value:r,...i}=t,s=M_e(BC,n),a={role:"radio","aria-checked":t.pressed,"aria-pressed":void 0},o=s.type==="single"?a:void 0;return j.jsx(R_e,{...o,...i,ref:e,onPressedChange:l=>{l?s.onItemActivate(r):s.onItemDeactivate(r)}})}),zxt=iH,Vxt=P_e,sH="Toolbar",[qxt]=Ji(sH,[xu,O_e]),aH=xu(),L_e=O_e(),[Gxt,$_e]=qxt(sH),F_e=C.forwardRef((t,e)=>{const{__scopeToolbar:n,orientation:r="horizontal",dir:i,loop:s=!0,...a}=t,o=aH(n),l=Op(i);return j.jsx(Gxt,{scope:n,orientation:r,dir:l,children:j.jsx($2,{asChild:!0,...o,orientation:r,dir:l,loop:s,children:j.jsx(wt.div,{role:"toolbar","aria-orientation":r,dir:l,...a,ref:e})})})});F_e.displayName=sH;var B_e="ToolbarSeparator",H_e=C.forwardRef((t,e)=>{const{__scopeToolbar:n,...r}=t,i=$_e(B_e,n);return j.jsx(Fxt,{orientation:i.orientation==="horizontal"?"vertical":"horizontal",...r,ref:e})});H_e.displayName=B_e;var Wxt="ToolbarButton",oH=C.forwardRef((t,e)=>{const{__scopeToolbar:n,...r}=t,i=aH(n);return j.jsx(j0,{asChild:!0,...i,focusable:!t.disabled,children:j.jsx(wt.button,{type:"button",...r,ref:e})})});oH.displayName=Wxt;var Yxt="ToolbarLink",Kxt=C.forwardRef((t,e)=>{const{__scopeToolbar:n,...r}=t,i=aH(n);return j.jsx(j0,{asChild:!0,...i,focusable:!0,children:j.jsx(wt.a,{...r,ref:e,onKeyDown:tt(t.onKeyDown,s=>{s.key===" "&&s.currentTarget.click()})})})});Kxt.displayName=Yxt;var U_e="ToolbarToggleGroup",j_e=C.forwardRef((t,e)=>{const{__scopeToolbar:n,...r}=t,i=$_e(U_e,n),s=L_e(n);return j.jsx(zxt,{"data-orientation":i.orientation,dir:i.dir,...s,...r,ref:e,rovingFocus:!1})});j_e.displayName=U_e;var Xxt="ToolbarToggleItem",z_e=C.forwardRef((t,e)=>{const{__scopeToolbar:n,...r}=t,i=L_e(n),s={__scopeToolbar:t.__scopeToolbar};return j.jsx(oH,{asChild:!0,...s,children:j.jsx(Vxt,{...i,...r,ref:e})})});z_e.displayName=Xxt;var Qxt=F_e,Zxt=H_e,Jxt=oH,lH=j_e,ewt=z_e;const twt={testNode:"link",visitNode({mdastNode:t,actions:e}){e.addAndStepInto(ff(t.url,{title:t.title}))}},nwt={testLexicalNode:La,visitLexicalNode:({lexicalNode:t,actions:e})=>{e.addAndStepInto("link",{url:t.getURL(),title:t.getTitle()})}};function rwt({validateUrl:t,attributes:e}){const[n]=Tu();return C.useEffect((()=>
209{if(!n.hasNodes([Of]))throw new Error("LinkPlugin: LinkNode not registered on editor");return _l(n.registerCommand(d0,(r=>{if(r===null)return AO(r),!0;if(typeof r=="string")return!(t!==void 0&&!t(r))&&(AO(r,e),!0);{const{url:i,target:s,rel:a,title:o}=r;return AO(i,{...e,rel:a,target:s,title:o}),!0}}),Rs),t!==void 0?n.registerCommand(Q3,(r=>{const i=Xe();if(!He(i)||i.isCollapsed()||!zd(r,ClipboardEvent)||r.clipboardData===null)return!1;const s=r.clipboardData.getData("text");return!!t(s)&&!i.getNodes().some((a=>Me(a)))&&(n.dispatchCommand(d0,{...e,url:s}),r.preventDefault(),!0)}),Rs):()=>{})}),[n,t,e]),null}function ute(t,e=(n=>n)){return n=>{const r=t.exec(n);return r===null?null:{index:r.index,length:r[0].length,text:r[0],url:e(r[0])}}}function V_e(t,e){for(let n=0;n<e.length;n++){const r=e[n](t);if(r)return r}return null}const iwt=/[.,;\s]/;function HC(t){return iwt.test(t)}function q_e(t){return HC(t[t.length-1])}function HL(t){return HC(t[0])}function G_e(t){let e=t.getPreviousSibling();return Me(e)&&(e=e.getLastDescendant()),e===null||ou(e)||Qe(e)&&q_e(e.getTextContent())}function W_e(t){let e=t.getNextSibling();return Me(e)&&(e=e.getFirstDescendant()),e===null||ou(e)||Qe(e)&&HL(e.getTextContent())}function swt(t,e,n,r){return(t>0?HC(n[t-1]):G_e(r[0]))?e<n.length?HC(n[e]):W_e(r[r.length-1]):!1}function awt(t,e,n){const r=[],i=[],s=[];let a=0,o=0;const l=[...t];for(;l.length>0;){const u=l[0],c=u.getTextContent().length,d=o;o+c<=e?(r.push(u),a+=c):d>=n?s.push(u):i.push(u),o+=c,l.shift()}return[a,r,i,s]}function owt(t,e,n,r){const i=DL(r.url,r.attributes);if(t.length===1){let s,a=t[0];e===0?[s,a]=a.splitText(n):[,s,a]=a.splitText(e,n);const o=xr(r.text);return o.setFormat(s.getFormat()),o.setDetail(s.getDetail()),o.setStyle(s.getStyle()),i.append(o),s.replace(i),a}if(t.length>1){const s=t[0];let a,o=s.getTextContent().length;e===0?a=s:[,a]=s.splitText(e);const l=[];let u;for(let m=1;m<t.length;m++){const g=t[m],b=g.getTextContent().length,v=o;if(v<n)if(o+b<=n)l.push(g);else{const[E,x]=g.splitText(n-v);l.push(E),u=x}o+=b}const c=Xe(),d=c?c.getNodes().find(Qe):void 0,h=xr(a.getTextContent());return h.setFormat(a.getFormat()),h.setDetail(a.getDetail()),h.setStyle(a.getStyle()),i.append(h,...l),d&&d===a&&(He(c)?h.select(c.anchor.offset,c.focus.offset):ss(c)&&h.select(0,h.getTextContent().length)),a.replace(i),u}}function RO(t,e,n){const r=t.getChildren(),i=r.length;for(let l=0;l<i;l++){const u=r[l];if(!Qe(u)||!u.isSimpleText())return tS(t),void n(null,t.getURL())}const s=t.getTextContent(),a=V_e(s,e);if(a===null||a.text!==s||!G_e(t)||!W_e(t))return tS(t),void n(null,t.getURL());const o=t.getURL();if(o!==a.url&&(t.setURL(a.url),n(a.url,o)),a.attributes){const l=t.getRel();l!==a.attributes.rel&&(t.setRel(a.attributes.rel||null),n(a.attributes.rel||null,l));const u=t.getTarget();u!==a.attributes.target&&(t.setTarget(a.attributes.target||null),n(a.attributes.target||null,u))}}function tS(t){const e=t.getChildren();for(let n=e.length-1;n>=0;n--)t.insertAfter(e[n]);return t.remove(),e.map((n=>n.getLatest()))}function lwt(t,e,n){C.useEffect((()=>{t.hasNodes([bA])||(function(i,...s){const a=new URL("https://lexical.dev/docs/error"),o=new URLSearchParams;o.append("code",i);for(const l of s)o.append("v",l);throw a.search=o.toString(),Error(`Minified Lexical error #${i}; visit ${a.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)})(77);const r=(i,s)=>{n&&n(i,s)};return _l(t.registerNodeTransform(Wc,(i=>{const s=i.getParentOrThrow(),a=i.getPreviousSibling();if(Xl(s)&&!s.getIsUnlinked())RO(s,e,r);else if(!La(s)){if(i.isSimpleText()&&(HL(i.getTextContent())||!Xl(a))){const o=(function(l){const u=[l];let c=l.getNextSibling();for(;c!==null&&Qe(c)&&c.isSimpleText()&&(u.push(c),!/[\s]/.test(c.getTextContent()));)c=c.getNextSibling();return u})(i);(function(l,u,c){let d=[...l];const h=d.map((v=>v.getTextContent())).join("");let m,g=h,b=0;for(;(m=V_e(g,u))&&m!==null;){const v=m.index,E=v+m.length;if(swt(b+v,b+E,h,d)){const[x,,_,S]=awt(d,b+v,b+E),A=owt(_,b+v-x,b+E-x,m);d=A?[A,...S]:S,c(m.url,null),b=0}else b+=E;g=g.substring(E)}})(o,e,r)}(function(o,l,u){const c=o.getPreviousSibling(),d=o.getNextSibling(),h=o.getTextContent();var m;!Xl(c)||c.getIsUnlinked()||HL(h)&&(m=h,!(c.isEmailURI()?/^\.[a-zA-Z]{2,}/.test(m):/^\.[a-zA-Z0-9]{1,}/.test(m)))||(c.append(o),RO(c,l,u),u(null,c.getURL())),!Xl(d)||d.getIsUnlinked()||q_e(h)||
209(tS(d),RO(d,l,u),u(null,d.getURL()))})(i,e,r)}})),t.registerCommand(d0,(i=>{const s=Xe();return i!==null||!He(s)||s.extract().forEach((a=>{const o=a.getParent();Xl(o)&&(o.setIsUnlinked(!o.getIsUnlinked()),o.markDirty())})),!1}),Rs))}),[t,e,n])}function uwt({matchers:t,onChange:e}){const[n]=Tu();return lwt(n,t,e),null}const cwt=/((https?:\/\/(www\.)?)|(www\.))[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b([-a-zA-Z0-9()@:%_+.~#?&//=]*)/,dwt=/(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))/,fwt=[ute(cwt,t=>t.startsWith("http")?t:`https://${t}`),ute(dwt,t=>`mailto:${t}`)],hwt=()=>U.createElement(uwt,{matchers:fwt}),pwt=Nt(!1),wMt=cE({init(t,e){const n=!!e?.disableAutoLink,r=e?.validateUrl?{validateUrl:e.validateUrl}:{},i=()=>U.createElement(U.Fragment,null,U.createElement(rwt,{...r}),n?null:U.createElement(hwt,null));t.pubIn({[c_e]:"link",[LC]:twt,[JB]:[Of,bA],[eH]:nwt,[pwt]:n,[u_e]:i,[yA]:i})}});var EE=t=>t.type==="checkbox",_h=t=>t instanceof Date,na=t=>t==null;const Y_e=t=>typeof t=="object";var gi=t=>!na(t)&&!Array.isArray(t)&&Y_e(t)&&!_h(t),K_e=t=>gi(t)&&t.target?EE(t.target)?t.target.checked:t.target.value:t,mwt=t=>t.substring(0,t.search(/\.\d+(\.|$)/))||t,X_e=(t,e)=>t.has(mwt(e)),gwt=t=>{const e=t.constructor&&t.constructor.prototype;return gi(e)&&e.hasOwnProperty("isPrototypeOf")},uH=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function li(t){if(t instanceof Date)return new Date(t);const e=typeof FileList<"u"&&t instanceof FileList;if(uH&&(t instanceof Blob||e))return t;const n=Array.isArray(t);if(!n&&!(gi(t)&&gwt(t)))return t;const r=n?[]:Object.create(Object.getPrototypeOf(t));for(const i in t)Object.prototype.hasOwnProperty.call(t,i)&&(r[i]=li(t[i]));return r}var vA=t=>/^\w*$/.test(t),wr=t=>t===void 0,cH=t=>Array.isArray(t)?t.filter(Boolean):[],dH=t=>cH(t.replace(/["|']|\]/g,"").split(/\.|\[/)),st=(t,e,n)=>{if(!e||!gi(t))return n;const r=(vA(e)?[e]:dH(e)).reduce((i,s)=>na(i)?i:i[s],t);return wr(r)||r===t?wr(t[e])?n:t[e]:r},$a=t=>typeof t=="boolean",Os=t=>typeof t=="function",sr=(t,e,n)=>{let r=-1;const i=vA(e)?[e]:dH(e),s=i.length,a=s-1;for(;++r<s;){const o=i[r];let l=n;if(r!==a){const u=t[o];l=gi(u)||Array.isArray(u)?u:isNaN(+i[r+1])?{}:[]}if(o==="__proto__"||o==="constructor"||o==="prototype")return;t[o]=l,t=t[o]}};const UC={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},Xo={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},nc={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},Q_e=U.createContext(null);Q_e.displayName="HookFormControlContext";const fH=()=>U.useContext(Q_e);var Z_e=(t,e,n,r=!0)=>{const i={defaultValues:e._defaultValues};for(const s in t)Object.defineProperty(i,s,{get:()=>{const a=s;return e._proxyFormState[a]!==Xo.all&&(e._proxyFormState[a]=!r||Xo.all),n&&(n[a]=!0),t[a]}});return i};const hH=typeof window<"u"?U.useLayoutEffect:U.useEffect;function ywt(t){const e=fH(),{control:n=e,disabled:r,name:i,exact:s}=t||{},[a,o]=U.useState(n._formState),l=U.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1});return hH(()=>n._subscribe({name:i,formState:l.current,exact:s,callback:u=>{!r&&o({...n._formState,...u})}}),[i,r,s]),U.useEffect(()=>{l.current.isValid&&n._setValid(!0)},[n]),U.useMemo(()=>Z_e(a,n,l.current,!1),[a,n])}var Ha=t=>typeof t=="string",UL=(t,e,n,r,i)=>Ha(t)?(r&&e.watch.add(t),st(n,t,i)):Array.isArray(t)?t.map(s=>(r&&e.watch.add(s),st(n,s))):(r&&(e.watchAll=!0),n),jL=t=>na(t)||!Y_e(t);function Qo(t,e,n=new WeakSet){if(jL(t)||jL(e))return Object.is(t,e);if(_h(t)&&_h(e))return Object.is(t.getTime(),e.getTime());const r=Object.keys(t),i=Object.keys(e);if(r.length!==i.length)return!1;if(n.has(t)||n.has(e))return!0;n.add(t),n.add(e);for(const s of r){const a=t[s];if(!i.includes(s))return!1;if(s!=="ref"){const o=e[s];if(_h(a)&&_h(o)||gi(a)&&gi(o)||Array.isArray(a)&&Array.isArray(o)?!Qo(a,o,n):!Object.is(a,o))return!1}}return!0}function bwt(t){const e=fH(),{control:n=e,name:r,defaultValue:i,disabled:s,exact:a,compute:o}=t||{},l=U.useRef(i),u=U.useRef(o),c=U.useRef(void 0),d=U.useRef(n),h=U.useRef(r);u.current=o;const[m,g]=U.useState(()=>{const S=n._getWatch(r,l.current);return u.current?u.current(S):S}),b=U.useCallback(S=>{const A=UL(r,n._names,S||n._formValues,!1,l.current);return u.current?u.current(A):A},[n._formValues,n._names,r]),v=U.useCallback(S=>{if(!s){const A=UL(r,n._names,S||n._formValues,!1,l.current);if(u.current){const R=u.current(A);Qo(R,c.current)||(g(R),c.current=R)}else g(A)}},[n._formValues,n._names,s,r]);hH(()=>((d.current!==n||!Qo(h.current,r))&&(d.current=n,h.current=r,v()),n._subscribe({name:r,formState:{values:!0},exact:a,callback:S=>{v(S.values)}})),[n,a,r,v]),U.useEffect(()=>n._removeUnmounted());const E=d.current!==n,x=h.current,_=U.useMemo(()=>
vendor: 5,533 bytes, line 209
209{if(s)return null;const S=!E&&!Qo(x,r);return E||S?b():null},[s,E,r,x,b]);return _!==null?_:m}function vwt(t){const e=fH(),{name:n,disabled:r,control:i=e,shouldUnregister:s,defaultValue:a,exact:o=!0}=t,l=X_e(i._names.array,n),u=U.useMemo(()=>st(i._formValues,n,st(i._defaultValues,n,a)),[i,n,a]),c=bwt({control:i,name:n,defaultValue:u,exact:o}),d=ywt({control:i,name:n,exact:o}),h=U.useRef(t),m=U.useRef(void 0),g=U.useRef(i.register(n,{...t.rules,value:c,...$a(t.disabled)?{disabled:t.disabled}:{}}));h.current=t;const b=U.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!st(d.errors,n)},isDirty:{enumerable:!0,get:()=>!!st(d.dirtyFields,n)},isTouched:{enumerable:!0,get:()=>!!st(d.touchedFields,n)},isValidating:{enumerable:!0,get:()=>!!st(d.validatingFields,n)},error:{enumerable:!0,get:()=>st(d.errors,n)}}),[d,n]),v=U.useCallback(S=>g.current.onChange({target:{value:K_e(S),name:n},type:UC.CHANGE}),[n]),E=U.useCallback(()=>g.current.onBlur({target:{value:st(i._formValues,n),name:n},type:UC.BLUR}),[n,i._formValues]),x=U.useCallback(S=>{const A=st(i._fields,n);A&&A._f&&S&&(A._f.ref={focus:()=>Os(S.focus)&&S.focus(),select:()=>Os(S.select)&&S.select(),setCustomValidity:R=>Os(S.setCustomValidity)&&S.setCustomValidity(R),reportValidity:()=>Os(S.reportValidity)&&S.reportValidity()})},[i._fields,n]),_=U.useMemo(()=>({name:n,value:c,...$a(r)||d.disabled?{disabled:d.disabled||r}:{},onChange:v,onBlur:E,ref:x}),[n,r,d.disabled,v,E,x,c]);return U.useEffect(()=>{const S=i._options.shouldUnregister||s,A=m.current;A&&A!==n&&!l&&i.unregister(A),i.register(n,{...h.current.rules,...$a(h.current.disabled)?{disabled:h.current.disabled}:{}});const R=(T,O)=>{const I=st(i._fields,T);I&&I._f&&(I._f.mount=O)};if(R(n,!0),S){const T=li(st(i._options.defaultValues,n,h.current.defaultValue));sr(i._defaultValues,n,T),wr(st(i._formValues,n))&&sr(i._formValues,n,T)}return!l&&i.register(n),m.current=n,()=>{(l?S&&!i._state.action:S)?i.unregister(n):R(n,!1)}},[n,i,l,s]),U.useEffect(()=>{i._setDisabledField({disabled:r,name:n})},[r,n,i]),U.useMemo(()=>({field:_,formState:d,fieldState:b}),[_,d,b])}const Ewt=t=>t.render(vwt(t)),_wt=U.createContext(null);_wt.displayName="HookFormContext";var xwt=(t,e,n,r,i)=>e?{...n[t],types:{...n[t]&&n[t].types?n[t].types:{},[r]:i||!0}}:{},kb=t=>Array.isArray(t)?t:[t],cte=()=>{let t=[];return{get observers(){return t},next:i=>{for(const s of t)s.next&&s.next(i)},subscribe:i=>(t.push(i),{unsubscribe:()=>{t=t.filter(s=>s!==i)}}),unsubscribe:()=>{t=[]}}};function J_e(t,e){const n={};for(const r in t)if(t.hasOwnProperty(r)){const i=t[r],s=e[r];if(i&&gi(i)&&s){const a=J_e(i,s);gi(a)&&(n[r]=a)}else t[r]&&(n[r]=s)}return n}var ws=t=>gi(t)&&!Object.keys(t).length,pH=t=>t.type==="file",jC=t=>{if(!uH)return!1;const e=t?t.ownerDocument:0;return t instanceof(e&&e.defaultView?e.defaultView.HTMLElement:HTMLElement)},exe=t=>t.type==="select-multiple",mH=t=>t.type==="radio",wwt=t=>mH(t)||EE(t),NO=t=>jC(t)&&t.isConnected;function Swt(t,e){const n=e.slice(0,-1).length;let r=0;for(;r<n;)t=wr(t)?r++:t[e[r++]];return t}function Cwt(t){for(const e in t)if(t.hasOwnProperty(e)&&!wr(t[e]))return!1;return!0}function ui(t,e){const n=Array.isArray(e)?e:vA(e)?[e]:dH(e),r=n.length===1?t:Swt(t,n),i=n.length-1,s=n[i];return r&&delete r[s],i!==0&&(gi(r)&&ws(r)||Array.isArray(r)&&Cwt(r))&&ui(t,n.slice(0,-1)),t}var Twt=t=>{for(const e in t)if(Os(t[e]))return!0;return!1};function txe(t){return Array.isArray(t)||gi(t)&&!Twt(t)}function zL(t,e={}){for(const n in t){const r=t[n];txe(r)?(e[n]=Array.isArray(r)?[]:{},zL(r,e[n])):wr(r)||(e[n]=!0)}return e}function tg(t,e,n){n||(n=zL(e));for(const r in t){const i=t[r];if(txe(i))wr(e)||jL(n[r])?n[r]=zL(i,Array.isArray(i)?[]:{}):tg(i,na(e)?{}:e[r],n[r]);else{const s=e[r];n[r]=!Qo(i,s)}}return n}const dte={value:!1,isValid:!1},fte={value:!0,isValid:!0};var nxe=t=>{if(Array.isArray(t)){if(t.length>1){const e=t.filter(n=>n&&n.checked&&!n.disabled).map(n=>n.value);return{value:e,isValid:!!e.length}}return t[0].checked&&!t[0].disabled?t[0].attributes&&!wr(t[0].attributes.value)?wr(t[0].value)||t[0].value===""?fte:{value:t[0].value,isValid:!0}:fte:dte}return dte},rxe=(t,{valueAsNumber:e,valueAsDate:n,setValueAs:r})=>wr(t)?t:e?t===""?NaN:t&&+t:n&&Ha(t)?new Date(t):r?r(t):t;const hte={isValid:!1,value:null};var ixe=t=>Array.isArray(t)?t.reduce((e,n)=>n&&n.checked&&!n.disabled?{isValid:!0,value:n.value}:e,hte):hte;function pte(t){const e=t.ref;return pH(e)?e.files:mH(e)?ixe(t.refs).value:exe(e)?[...e.selectedOptions].map(({value:n})=>n):EE(e)?nxe(t.refs).value:rxe(wr(e.value)?t.ref.value:e.value,t)}var Awt=(t,e,n,r)=>{const i={};for(const s of t){const a=st(e,s);a&&sr(i,s,a._f)}return{criteriaMode:n,names:[...t],fields:i,shouldUseNativeValidation:r}},zC=t=>t instanceof RegExp,Dy=t=>wr(t)?t:zC(t)?t.source:gi(t)?zC(t.value)?t.value.source:t.value:t,mte=t=>({isOnSubmit:!t||t===Xo.onSubmit,isOnBlur:t===Xo.onBlur,isOnChange:t===Xo.onChange,isOnAll:t===Xo.all,isOnTouch:t===Xo.onTouched});const gte="AsyncFunction";var Rwt=t=>!!t&&!!t.validate&&!!(Os(t.validate)&&t.validate.constructor.name===gte||gi(t.validate)&&Object.values(t.validate).find(e=>e.constructor.name===gte)),Nwt=t=>t.mount&&(t.required||t.min||t.max||t.maxLength||t.minLength||t.pattern||t.validate),yte=(t,e,n)=>!n&&(e.watchAll||e.watch.has(t)||[...e.watch].some(r=>t.startsWith(r)&&/^\.\w+/.test(t.slice(r.length))));const Ib=(t,e,n,r)=>{for(const i of n||Object.keys(t)){const s=st(t,i);if(s){const{_f:a,...o}=s;if(a){if(a.refs&&a.refs[0]&&e(a.refs[0],i)&&!r)return!0;
vendor: 4,172 bytes, line 209
209if(a.ref&&e(a.ref,a.name)&&!r)return!0;if(Ib(o,e))break}else if(gi(o)&&Ib(o,e))break}}};function bte(t,e,n){const r=st(t,n);if(r||vA(n))return{error:r,name:n};const i=n.split(".");for(;i.length;){const s=i.join("."),a=st(e,s),o=st(t,s);if(a&&!Array.isArray(a)&&n!==s)return{name:n};if(o&&o.type)return{name:s,error:o};if(o&&o.root&&o.root.type)return{name:`${s}.root`,error:o.root};i.pop()}return{name:n}}var Owt=(t,e,n,r)=>{n(t);const{name:i,...s}=t;return ws(s)||Object.keys(s).length>=Object.keys(e).length||Object.keys(s).find(a=>e[a]===(!r||Xo.all))},kwt=(t,e,n)=>!t||!e||t===e||kb(t).some(r=>r&&(n?r===e:r.startsWith(e)||e.startsWith(r))),Iwt=(t,e,n,r,i)=>i.isOnAll?!1:!n&&i.isOnTouch?!(e||t):(n?r.isOnBlur:i.isOnBlur)?!t:(n?r.isOnChange:i.isOnChange)?t:!0,Mwt=(t,e)=>!cH(st(t,e)).length&&ui(t,e),Dwt=(t,e,n)=>{const r=kb(st(t,n));return sr(r,"root",e[n]),sr(t,n,r),t};function vte(t,e,n="validate"){if(Ha(t)||Array.isArray(t)&&t.every(Ha)||$a(t)&&!t)return{type:n,message:Ha(t)?t:"",ref:e}}var Wm=t=>gi(t)&&!zC(t)?t:{value:t,message:""},Ete=async(t,e,n,r,i,s)=>{const{ref:a,refs:o,required:l,maxLength:u,minLength:c,min:d,max:h,pattern:m,validate:g,name:b,valueAsNumber:v,mount:E}=t._f,x=st(n,b);if(!E||e.has(b))return{};const _=o?o[0]:a,S=B=>{i&&_.reportValidity&&(_.setCustomValidity($a(B)?"":B||""),_.reportValidity())},A={},R=mH(a),T=EE(a),O=R||T,I=(v||pH(a))&&wr(a.value)&&wr(x)||jC(a)&&a.value===""||x===""||Array.isArray(x)&&!x.length,D=xwt.bind(null,b,r,A),P=(B,L,$,q=nc.maxLength,F=nc.minLength)=>{const G=B?L:$;A[b]={type:B?q:F,message:G,ref:a,...D(B?q:F,G)}};if(s?!Array.isArray(x)||!x.length:l&&(!O&&(I||na(x))||$a(x)&&!x||T&&!nxe(o).isValid||R&&!ixe(o).isValid)){const{value:B,message:L}=Ha(l)?{value:!!l,message:l}:Wm(l);if(B&&(A[b]={type:nc.required,message:L,ref:_,...D(nc.required,L)},!r))return S(L),A}if(!I&&(!na(d)||!na(h))){let B,L;const $=Wm(h),q=Wm(d);if(!na(x)&&!isNaN(x)){const F=a.valueAsNumber||x&&+x;na($.value)||(B=F>$.value),na(q.value)||(L=F<q.value)}else{const F=a.valueAsDate||new Date(x),G=V=>new Date(new Date().toDateString()+" "+V),H=a.type=="time",K=a.type=="week";Ha($.value)&&x&&(B=H?G(x)>G($.value):K?x>$.value:F>new Date($.value)),Ha(q.value)&&x&&(L=H?G(x)<G(q.value):K?x<q.value:F<new Date(q.value))}if((B||L)&&(P(!!B,$.message,q.message,nc.max,nc.min),!r))return S(A[b].message),A}if((u||c)&&!I&&(Ha(x)||s&&Array.isArray(x))){const B=Wm(u),L=Wm(c),$=!na(B.value)&&x.length>+B.value,q=!na(L.value)&&x.length<+L.value;if(($||q)&&(P($,B.message,L.message),!r))return S(A[b].message),A}if(m&&!I&&Ha(x)){const{value:B,message:L}=Wm(m);if(zC(B)&&!x.match(B)&&(A[b]={type:nc.pattern,message:L,ref:a,...D(nc.pattern,L)},!r))return S(L),A}if(g){if(Os(g)){const B=await g(x,n),L=vte(B,_);if(L&&(A[b]={...L,...D(nc.validate,L.message)},!r))return S(L.message),A}else if(gi(g)){let B={};for(const L in g){if(!ws(B)&&!r)break;const $=vte(await g[L](x,n),_,L);$&&(B={...$,...D(L,$.message)},S($.message),r&&(A[b]=B))}if(!ws(B)&&(A[b]={ref:_,...B},!r))return A}}return S(!0),A};const Pwt={mode:Xo.onSubmit,reValidateMode:Xo.onChange,shouldFocusError:!0};function Lwt(t={}){let e={...Pwt,...t},n={submitCount:0,isDirty:!1,isReady:!1,isLoading:Os(e.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1},r={},i=gi(e.defaultValues)||gi(e.values)?li(e.defaultValues||e.values)||{}:{},s=e.shouldUnregister?{}:li(i),a={action:!1,mount:!1,watch:!1,keepIsValid:!1},o={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set},l,u=0;const c={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},d={...c};let h={...d};const m={array:cte(),state:cte()},g=e.criteriaMode===Xo.all,b=ue=>te=>{clearTimeout(u),u=setTimeout(ue,te)},v=async ue=>{if(!a.keepIsValid&&!e.disabled&&(d.isValid||h.isValid||ue)){let te;e.resolver?(te=ws((await O()).errors),E()):te=await D(r,!0),te!==n.isValid&&m.state.next({isValid:te})}},E=(ue,te)=>{!e.disabled&&(d.isValidating||d.validatingFields||h.isValidating||h.validatingFields)&&((ue||Array.from(o.mount)).forEac
vendor: 4,723 bytes, line 209
209h(de=>{de&&(te?sr(n.validatingFields,de,te):ui(n.validatingFields,de))}),m.state.next({validatingFields:n.validatingFields,isValidating:!ws(n.validatingFields)}))},x=(ue,te=[],de,be,ce=!0,ne=!0)=>{if(be&&de&&!e.disabled){if(a.action=!0,ne&&Array.isArray(st(r,ue))){const fe=de(st(r,ue),be.argA,be.argB);ce&&sr(r,ue,fe)}if(ne&&Array.isArray(st(n.errors,ue))){const fe=de(st(n.errors,ue),be.argA,be.argB);ce&&sr(n.errors,ue,fe),Mwt(n.errors,ue)}if((d.touchedFields||h.touchedFields)&&ne&&Array.isArray(st(n.touchedFields,ue))){const fe=de(st(n.touchedFields,ue),be.argA,be.argB);ce&&sr(n.touchedFields,ue,fe)}(d.dirtyFields||h.dirtyFields)&&(n.dirtyFields=tg(i,s)),m.state.next({name:ue,isDirty:B(ue,te),dirtyFields:n.dirtyFields,errors:n.errors,isValid:n.isValid})}else sr(s,ue,te)},_=(ue,te)=>{sr(n.errors,ue,te),m.state.next({errors:n.errors})},S=ue=>{n.errors=ue,m.state.next({errors:n.errors,isValid:!1})},A=(ue,te,de,be)=>{const ce=st(r,ue);if(ce){const ne=st(s,ue,wr(de)?st(i,ue):de);wr(ne)||be&&be.defaultChecked||te?sr(s,ue,te?ne:pte(ce._f)):q(ue,ne),a.mount&&!a.action&&v()}},R=(ue,te,de,be,ce)=>{let ne=!1,fe=!1;const X={name:ue};if(!e.disabled){if(!de||be){(d.isDirty||h.isDirty)&&(fe=n.isDirty,n.isDirty=X.isDirty=B(),ne=fe!==X.isDirty);const Oe=Qo(st(i,ue),te);fe=!!st(n.dirtyFields,ue),Oe?ui(n.dirtyFields,ue):sr(n.dirtyFields,ue,!0),X.dirtyFields=n.dirtyFields,ne=ne||(d.dirtyFields||h.dirtyFields)&&fe!==!Oe}if(de){const Oe=st(n.touchedFields,ue);Oe||(sr(n.touchedFields,ue,de),X.touchedFields=n.touchedFields,ne=ne||(d.touchedFields||h.touchedFields)&&Oe!==de)}ne&&ce&&m.state.next(X)}return ne?X:{}},T=(ue,te,de,be)=>{const ce=st(n.errors,ue),ne=(d.isValid||h.isValid)&&$a(te)&&n.isValid!==te;if(e.delayError&&de?(l=b(()=>_(ue,de)),l(e.delayError)):(clearTimeout(u),l=null,de?sr(n.errors,ue,de):ui(n.errors,ue)),(de?!Qo(ce,de):ce)||!ws(be)||ne){const fe={...be,...ne&&$a(te)?{isValid:te}:{},errors:n.errors,name:ue};n={...n,...fe},m.state.next(fe)}},O=async ue=>(E(ue,!0),await e.resolver(s,e.context,Awt(ue||o.mount,r,e.criteriaMode,e.shouldUseNativeValidation))),I=async ue=>{const{errors:te}=await O(ue);if(E(ue),ue)for(const de of ue){const be=st(te,de);be?sr(n.errors,de,be):ui(n.errors,de)}else n.errors=te;return te},D=async(ue,te,de={valid:!0})=>{for(const be in ue){const ce=ue[be];if(ce){const{_f:ne,...fe}=ce;if(ne){const X=o.array.has(ne.name),Oe=ce._f&&Rwt(ce._f);Oe&&d.validatingFields&&E([ne.name],!0);const Ye=await Ete(ce,o.disabled,s,g,e.shouldUseNativeValidation&&!te,X);if(Oe&&d.validatingFields&&E([ne.name]),Ye[ne.name]&&(de.valid=!1,te||t.shouldUseNativeValidation))break;!te&&(st(Ye,ne.name)?X?Dwt(n.errors,Ye,ne.name):sr(n.errors,ne.name,Ye[ne.name]):ui(n.errors,ne.name))}!ws(fe)&&await D(fe,te,de)}}return de.valid},P=()=>{for(const ue of o.unMount){const te=st(r,ue);te&&(te._f.refs?te._f.refs.every(de=>!NO(de)):!NO(te._f.ref))&&ae(ue)}o.unMount=new Set},B=(ue,te)=>!e.disabled&&(ue&&te&&sr(s,ue,te),!Qo(Y(),i)),L=(ue,te,de)=>UL(ue,o,{...a.mount?s:wr(te)?i:Ha(ue)?{[ue]:te}:te},de,te),$=ue=>cH(st(a.mount?s:i,ue,e.shouldUnregister?st(i,ue,[]):[])),q=(ue,te,de={})=>{const be=st(r,ue);let ce=te;if(be){const ne=be._f;ne&&(!ne.disabled&&sr(s,ue,rxe(te,ne)),ce=jC(ne.ref)&&na(te)?"":te,exe(ne.ref)?[...ne.ref.options].forEach(fe=>fe.selected=ce.includes(fe.value)):ne.refs?EE(ne.ref)?ne.refs.forEach(fe=>{(!fe.defaultChecked||!fe.disabled)&&(Array.isArray(ce)?fe.checked=!!ce.find(X=>X===fe.value):fe.checked=ce===fe.value||!!ce)}):ne.refs.forEach(fe=>fe.checked=fe.value===ce):pH(ne.ref)?ne.ref.value="":(ne.ref.value=ce,ne.ref.type||m.state.next({name:ue,values:li(s)})))}(de.shouldDirty||de.shouldTouch)&&R(ue,ce,de.shouldTouch,de.shouldDirty,!0),de.shouldValidate&&V(ue)},F=(ue,te,de)=>{for(const be in te){if(!te.hasOwnProperty(be))return;const ce=te[be],ne=ue+"."+be,fe=st(r,ne);(o.array.has(ue)||gi(ce)||fe&&!fe._f)&&!_h(ce)?F(ne,ce,de):q(ne,ce,de)}},G=(ue,te,de={})=>{const be=st(r,ue),ce=o.array.has(ue),ne=li(te);sr(s,ue,ne),ce?(m.array.next({name:ue,values:li(s)}),(d.isDirty||d.dirtyFields||h.isDirty||h.dirtyFields)&&de.shouldDirty&&m.state.next({name:ue,dirtyFields:tg(i,s),isDirty:B(ue,ne)})):be&&!be._f&&!na(ne)?F(ue,ne,de):q(ue,ne,de),yte(ue,o)?m.state.next({...n,name:ue,values:li(s)}):m.state.next({name:a.mount?ue:void 0,values:li(s)})},H=async ue=>{a.mount=!0;const te=ue.target;let de=te.name,be=!0;const ce=st(r,de),ne=Oe=>{be=Number.isNaN(Oe)||_h(Oe)&&isNaN(Oe.getTime())||Qo(Oe,st(s,de,Oe))},fe=mte(e.mode),X=mte(e.reValidateMode);if(ce){let Oe,Ye;const rt=te.type?pte(ce._f):K_e(ue),Ut=ue.type===UC.BLUR||ue.type===UC.FOCUS_OUT,Kt=!Nwt(ce._f)&&!e.resolver&&!st(n.errors,de)&&!ce._f.deps||Iwt(Ut,st(n.touchedFields,de),n.isSubmitted,X,fe),It=yte(de,o,Ut);
vendor: 8,568 bytes, line 209
209sr(s,de,rt),Ut?(!te||!te.readOnly)&&(ce._f.onBlur&&ce._f.onBlur(ue),l&&l(0)):ce._f.onChange&&ce._f.onChange(ue);const Tn=R(de,rt,Ut),qt=!ws(Tn)||It;if(!Ut&&m.state.next({name:de,type:ue.type,values:li(s)}),Kt)return(d.isValid||h.isValid)&&(e.mode==="onBlur"?Ut&&v():Ut||v()),qt&&m.state.next({name:de,...It?{}:Tn});if(!Ut&&It&&m.state.next({...n}),e.resolver){const{errors:or}=await O([de]);if(E([de]),ne(rt),be){const tr=bte(n.errors,r,de),xt=bte(or,r,tr.name||de);Oe=xt.error,de=xt.name,Ye=ws(or)}}else E([de],!0),Oe=(await Ete(ce,o.disabled,s,g,e.shouldUseNativeValidation))[de],E([de]),ne(rt),be&&(Oe?Ye=!1:(d.isValid||h.isValid)&&(Ye=await D(r,!0)));be&&(ce._f.deps&&(!Array.isArray(ce._f.deps)||ce._f.deps.length>0)&&V(ce._f.deps),T(de,Ye,Oe,Tn))}},K=(ue,te)=>{if(st(n.errors,te)&&ue.focus)return ue.focus(),1},V=async(ue,te={})=>{let de,be;const ce=kb(ue);if(e.resolver){const ne=await I(wr(ue)?ue:ce);de=ws(ne),be=ue?!ce.some(fe=>st(ne,fe)):de}else ue?(be=(await Promise.all(ce.map(async ne=>{const fe=st(r,ne);return await D(fe&&fe._f?{[ne]:fe}:fe)}))).every(Boolean),!(!be&&!n.isValid)&&v()):be=de=await D(r);return m.state.next({...!Ha(ue)||(d.isValid||h.isValid)&&de!==n.isValid?{}:{name:ue},...e.resolver||!ue?{isValid:de}:{},errors:n.errors}),te.shouldFocus&&!be&&Ib(r,K,ue?ce:o.mount),be},Y=(ue,te)=>{let de={...a.mount?s:i};return te&&(de=J_e(te.dirtyFields?n.dirtyFields:n.touchedFields,de)),wr(ue)?de:Ha(ue)?st(de,ue):ue.map(be=>st(de,be))},Z=(ue,te)=>({invalid:!!st((te||n).errors,ue),isDirty:!!st((te||n).dirtyFields,ue),error:st((te||n).errors,ue),isValidating:!!st(n.validatingFields,ue),isTouched:!!st((te||n).touchedFields,ue)}),W=ue=>{ue&&kb(ue).forEach(te=>ui(n.errors,te)),m.state.next({errors:ue?n.errors:{}})},Q=(ue,te,de)=>{const be=(st(r,ue,{_f:{}})._f||{}).ref,ce=st(n.errors,ue)||{},{ref:ne,message:fe,type:X,...Oe}=ce;sr(n.errors,ue,{...Oe,...te,ref:be}),m.state.next({name:ue,errors:n.errors,isValid:!1}),de&&de.shouldFocus&&be&&be.focus&&be.focus()},re=(ue,te)=>Os(ue)?m.state.subscribe({next:de=>"values"in de&&ue(L(void 0,te),de)}):L(ue,te,!0),se=ue=>m.state.subscribe({next:te=>{kwt(ue.name,te.name,ue.exact)&&Owt(te,ue.formState||d,_t,ue.reRenderRoot)&&ue.callback({values:{...s},...n,...te,defaultValues:i})}}).unsubscribe,J=ue=>(a.mount=!0,h={...h,...ue.formState},se({...ue,formState:{...c,...ue.formState}})),ae=(ue,te={})=>{for(const de of ue?kb(ue):o.mount)o.mount.delete(de),o.array.delete(de),te.keepValue||(ui(r,de),ui(s,de)),!te.keepError&&ui(n.errors,de),!te.keepDirty&&ui(n.dirtyFields,de),!te.keepTouched&&ui(n.touchedFields,de),!te.keepIsValidating&&ui(n.validatingFields,de),!e.shouldUnregister&&!te.keepDefaultValue&&ui(i,de);m.state.next({values:li(s)}),m.state.next({...n,...te.keepDirty?{isDirty:B()}:{}}),!te.keepIsValid&&v()},ge=({disabled:ue,name:te})=>{if($a(ue)&&a.mount||ue||o.disabled.has(te)){const ce=o.disabled.has(te)!==!!ue;ue?o.disabled.add(te):o.disabled.delete(te),ce&&a.mount&&!a.action&&v()}},ve=(ue,te={})=>{let de=st(r,ue);const be=$a(te.disabled)||$a(e.disabled);return sr(r,ue,{...de||{},_f:{...de&&de._f?de._f:{ref:{name:ue}},name:ue,mount:!0,...te}}),o.mount.add(ue),de?ge({disabled:$a(te.disabled)?te.disabled:e.disabled,name:ue}):A(ue,!0,te.value),{...be?{disabled:te.disabled||e.disabled}:{},...e.progressive?{required:!!te.required,min:Dy(te.min),max:Dy(te.max),minLength:Dy(te.minLength),maxLength:Dy(te.maxLength),pattern:Dy(te.pattern)}:{},name:ue,onChange:H,onBlur:H,ref:ce=>{if(ce){ve(ue,te),de=st(r,ue);const ne=wr(ce.value)&&ce.querySelectorAll&&ce.querySelectorAll("input,select,textarea")[0]||ce,fe=wwt(ne),X=de._f.refs||[];if(fe?X.find(Oe=>Oe===ne):ne===de._f.ref)return;sr(r,ue,{_f:{...de._f,...fe?{refs:[...X.filter(NO),ne,...Array.isArray(st(i,ue))?[{}]:[]],ref:{type:ne.type,name:ue}}:{ref:ne}}}),A(ue,!1,void 0,ne)}else de=st(r,ue,{}),de._f&&(de._f.mount=!1),(e.shouldUnregister||te.shouldUnregister)&&!(X_e(o.array,ue)&&a.action)&&o.unMount.add(ue)}}},Re=()=>e.shouldFocusError&&Ib(r,K,o.mount),xe=ue=>{$a(ue)&&(m.state.next({disabled:ue}),Ib(r,(te,de)=>{const be=st(r,de);be&&(te.disabled=be._f.disabled||ue,Array.isArray(be._f.refs)&&be._f.refs.forEach(ce=>{ce.disabled=be._f.disabled||ue}))},0,!1))},Ne=(ue,te)=>async de=>{let be;de&&(de.preventDefault&&de.preventDefault(),de.persist&&de.persist());let ce=li(s);if(m.state.next({isSubmitting:!0}),e.resolver){const{errors:ne,values:fe}=await O();E(),n.errors=ne,ce=li(fe)}else await D(r);if(o.disabled.size)for(const ne of o.disabled)ui(ce,ne);if(ui(n.errors,"root"),ws(n.errors)){m.state.next({errors:{}});try{await ue(ce,de)}catch(ne){be=ne}}else te&&await te({...n.errors},de),Re(),setTimeout(Re);if(m.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:ws(n.errors)&&!be,submitCount:n.submitCount+1,errors:n.errors}),be)throw be},Fe=(ue,te={})=>{st(r,ue)&&(wr(te.defaultValue)?G(ue,li(st(i,ue))):(G(ue,te.defaultValue),sr(i,ue,li(te.defaultValue))),te.keepTouched||ui(n.touchedFields,ue),te.keepDirty||(ui(n.dirtyFields,ue),n.isDirty=te.defaultValue?B(ue,li(st(i,ue))):B()),te.keepError||(ui(n.errors,ue),d.isValid&&v()),m.state.next({...n}))},Le=(ue,te={})=>{const de=ue?li(ue):i,be=li(de),ce=ws(ue),ne=ce?i:be;if(te.keepDefaultValues||(i=de),!te.keepValues){if(te.keepDirtyValues){const fe=new Set([...o.mount,...Object.keys(tg(i,s))]);for(const X of Array.from(fe)){const Oe=st(n.dirtyFields,X),Ye=st(s,X),rt=st(ne,X);Oe&&!wr(Ye)?sr(ne,X,Ye):!Oe&&!wr(rt)&&G(X,rt)}}else{if(uH&&wr(ue))for(const fe of o.mount){const X=st(r,fe);if(X&&X._f){const Oe=Array.isArray(X._f.refs)?X._f.refs[0]:X._f.ref;if(jC(Oe)){const Ye=Oe.closest("form");if(Ye){Ye.reset();break}}}}if(te.keepFieldsRef)for(const fe of o.mount)G(fe,st(ne,fe));else r={}}s=e.shouldUnregister?te.keepDefaultValues?li(i):{}:li(ne),m.array.next({values:{...ne}}),m.state.next({values:{...ne}})}o={mount:te.keepDirtyValues?o.mount:new Set,unMount:new Set,array:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},a.mount=!d.isValid||!!te.keepIsValid||!!te.keepDirtyValues||!e.shouldUnregister&&!ws(ne),a.watch=!!e.shouldUnregister,a.keepIsValid=!!te.keepIsValid,a.action=!1,te.keepErrors||(n.errors={}),m.state.next({submitCount:te.keepSubmitCount?n.submitCount:0,isDirty:ce?!1:te.keepDirty?n.isDirty:!!(te.keepDefaultValues&&!Qo(ue,i)),isSubmitted:te.keepIsSubmitted?n.isSubmitted:!1,dirtyFields:ce?{}:te.keepDirtyValues?te.keepDefaultValues&&s?tg(i,s):n.dirtyFields:te.keepDefaultValues&&ue?tg(i,ue):te.keepDirty?n.dirtyFields:{},touchedFields:te.keepTouched?n.touchedFields:{},errors:te.keepErrors?n.errors:{},isSubmitSuccessful:te.keepIsSubmitSuccessful?n.isSubmitSuccessful:!1,isSubmitting:!1,defaultValues:i})},ze=(ue,te)=>Le(Os(ue)?ue(s):ue,{...e.resetOptions,...te}),qe=(ue,te={})=>{const de=st(r,ue),be=de&&de._f;if(be){const ce=be.refs?be.refs[0]:be.ref;ce.focus&&setTimeout(()=>{ce.focus(),te.shouldSelect&&Os(ce.select)&&ce.select()})}},_t=ue=>{n={...n,...ue}},Lt={control:{register:ve,unregister:ae,getFieldState:Z,handleSubmit:Ne,setError:Q,_subscribe:se,_runSchema:O,_updateIsValidating:E,_focusError:Re,_getWatch:L,_getDirty:B,_setValid:v,_setFieldArray:x,_setDisabledField:ge,_setErrors:S,_getFieldArray:$,_reset:Le,_resetDefaultValues:()=>Os(e.defaultValues)&&e.defaultValues().then(ue=>{ze(ue,e.resetOptions),m.state.next({isLoading:!1})}),_removeUnmounted:P,_disableForm:xe,_subjects:m,_proxyFormState:d,get _fields(){return r},get _formValues(){return s},get _state(){return a},set _state(ue){a=ue},get _defaultValues(){return i},get _names(){return o},set _names(ue){o=ue},get _formState(){return n},get _options(){return e},set _options(ue){e={...e,...ue}}},subscribe:J,trigger:V,register:ve,handleSubmit:Ne,watch:re,setValue:G,getValues:Y,reset:ze,resetField:Fe,clearErrors:W,unregister:ae,setError:Q,setFocus:qe,getFieldState:Z};return{...Lt,formControl:Lt}}function $wt(t={}){const e=U.useRef(void 0),n=U.useRef(void 0),[r,i]=U.useState({isDirty:!1,isValidating:!1,isLoading:Os(t.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:t.errors||{},disabled:t.disabled||!1,isReady:!1,defaultValues:Os(t.defaultValues)?void 0:t.defaultValues});if(!e.current)if(t.formControl)e.current={...t.formControl,formState:r},t.defaultValues&&!Os(t.defaultValues)&&t.formControl.reset(t.defaultValues,t.resetOptions);else{const{formControl:a,...o}=Lwt(t);e.current={...o,formState:r}}const s=e.current.control;return s._options=t,hH(()=>{const a=s._subscribe({formState:s._proxyFormState,callback:()=>i({...s._formState}
209),reRenderRoot:!0});return i(o=>({...o,isReady:!0})),s._formState.isReady=!0,a},[s]),U.useEffect(()=>s._disableForm(t.disabled),[s,t.disabled]),U.useEffect(()=>{t.mode&&(s._options.mode=t.mode),t.reValidateMode&&(s._options.reValidateMode=t.reValidateMode)},[s,t.mode,t.reValidateMode]),U.useEffect(()=>{t.errors&&(s._setErrors(t.errors),s._focusError())},[s,t.errors]),U.useEffect(()=>{t.shouldUnregister&&s._subjects.state.next({values:s._getWatch()})},[s,t.shouldUnregister]),U.useEffect(()=>{if(s._proxyFormState.isDirty){const a=s._getDirty();a!==r.isDirty&&s._subjects.state.next({isDirty:a})}},[s,r.isDirty]),U.useEffect(()=>{var a;t.values&&!Qo(t.values,n.current)?(s._reset(t.values,{keepFieldsRef:!0,...s._options.resetOptions}),!((a=s._options.resetOptions)===null||a===void 0)&&a.keepIsValid||s._setValid(),n.current=t.values,i(o=>({...o}))):s._resetDefaultValues()},[s,t.values]),U.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()}),e.current.formState=U.useMemo(()=>Z_e(r,s),[s,r]),e.current}function ra(t,e){if(t==null)return{};var n={};for(var r in t)if({}.hasOwnProperty.call(t,r)){if(e.indexOf(r)!==-1)continue;n[r]=t[r]}return n}function nt(){return nt=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)({}).hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},nt.apply(null,arguments)}var OO={exports:{}},Wn={};var _te;function Fwt(){if(_te)return Wn;_te=1;var t=60103,e=60106,n=60107,r=60108,i=60114,s=60109,a=60110,o=60112,l=60113,u=60120,c=60115,d=60116,h=60121,m=60122,g=60117,b=60129,v=60131;if(typeof Symbol=="function"&&Symbol.for){var E=Symbol.for;t=E("react.element"),e=E("react.portal"),n=E("react.fragment"),r=E("react.strict_mode"),i=E("react.profiler"),s=E("react.provider"),a=E("react.context"),o=E("react.forward_ref"),l=E("react.suspense"),u=E("react.suspense_list"),c=E("react.memo"),d=E("react.lazy"),h=E("react.block"),m=E("react.server.block"),g=E("react.fundamental"),b=E("react.debug_trace_mode"),v=E("react.legacy_hidden")}function x(L){if(typeof L=="object"&&L!==null){var $=L.$$typeof;switch($){case t:switch(L=L.type,L){case n:case i:case r:case l:case u:return L;default:switch(L=L&&L.$$typeof,L){case a:case o:case d:case c:case s:return L;default:return $}}case e:return $}}}var _=s,S=t,A=o,R=n,T=d,O=c,I=e,D=i,P=r,B=l;return Wn.ContextConsumer=a,Wn.ContextProvider=_,Wn.Element=S,Wn.ForwardRef=A,Wn.Fragment=R,Wn.Lazy=T,Wn.Memo=O,Wn.Portal=I,Wn.Profiler=D,Wn.StrictMode=P,Wn.Suspense=B,Wn.isAsyncMode=function(){return!1},Wn.isConcurrentMode=function(){return!1},Wn.isContextConsumer=function(L){return x(L)===a},Wn.isContextProvider=function(L){return x(L)===s},Wn.isElement=function(L){return typeof L=="object"&&L!==null&&L.$$typeof===t},Wn.isForwardRef=function(L){return x(L)===o},Wn.isFragment=function(L){return x(L)===n},Wn.isLazy=function(L){return x(L)===d},Wn.isMemo=function(L){return x(L)===c},Wn.isPortal=function(L){return x(L)===e},Wn.isProfiler=function(L){return x(L)===i},Wn.isStrictMode=function(L){return x(L)===r},Wn.isSuspense=function(L){return x(L)===l},Wn.isValidElementType=function(L){return typeof L=="string"||typeof L=="function"||L===n||L===i||L===b||L===r||L===l||L===u||L===v||typeof L=="object"&&L!==null&&(L.$$typeof===d||L.$$typeof===c||L.$$typeof===s||L.$$typeof===a||L.$$typeof===o||L.$$typeof===g||L.$$typeof===h||L[0]===m)},Wn.typeOf=x,Wn}var xte;function Bwt(){return xte||(xte=1,OO.exports=Fwt()),OO.exports}Bwt();let wte=t=>typeof t=="object"&&t!=null&&t.nodeType===1,Ste=(t,e)=>(!e||t!=="hidden")&&t!=="visible"&&t!=="clip",kO=(t,e)=>{if(t.clientHeight<t.scrollHeight||t.clientWidth<t.scrollWidth){let n=getComputedStyle(t,null);return Ste(n.overflowY,e)||Ste(n.overflowX,e)||(r=>{let i=(s=>{if(!s.ownerDocument||!s.ownerDocument.defaultView)return null;try{return s.ownerDocument.defaultView.frameElement}catch{return null}})(r);return!!i&&(i.clientHeight<r.scrollHeight||i.clientWidth<r.scrollWidth)})(t)}return!1},Qx=(t,e,n,r,i,s,a,o)=>s<t&&a>e||s>t&&a<e?0:s<=t&&o<=n||a>=e&&o>=n?s-t-r:a>e&&o<n||s<t&&o>n?a-e+i:0,Hwt=t=>{let e=t.parentElement;return e??(t.getRootNode().host||null)};var Uwt=(t,e)=>{var n,r,i,s,a,o;if(typeof document>"u")return[];let{inline:l,boundary:u,skipOverflowHiddenElements:c}=e,d=typeof u=="function"?u:B=>B!==u;if(!wte(t))throw new TypeError("Invalid target");let h=document.scrollingElement||document.documentElement,m=[],g=t;for(;wte(g)&&d(g);){if(g=Hwt(g),g===h){m.push(g);break}g!=null&&g===document.body&&kO(g)&&!kO(document.documentElement)||g!=null&&kO(g,c)&&m.push(g)}
vendor: 17,069 bytes, line 209
209let b=(r=(n=window.visualViewport)==null?void 0:n.width)!=null?r:innerWidth,v=(s=(i=window.visualViewport)==null?void 0:i.height)!=null?s:innerHeight,E=(a=window.scrollX)!=null?a:pageXOffset,x=(o=window.scrollY)!=null?o:pageYOffset,{height:_,width:S,top:A,right:R,bottom:T,left:O}=t.getBoundingClientRect(),I=A,D=l==="center"?O+S/2:l==="end"?R:O,P=[];for(let B=0;B<m.length;B++){let L=m[B],{height:$,width:q,top:F,right:G,bottom:H,left:K}=L.getBoundingClientRect();if(A>=0&&O>=0&&T<=v&&R<=b&&A>=F&&T<=H&&O>=K&&R<=G)return P;let V=getComputedStyle(L),Y=parseInt(V.borderLeftWidth,10),Z=parseInt(V.borderTopWidth,10),W=parseInt(V.borderRightWidth,10),Q=parseInt(V.borderBottomWidth,10),re=0,se=0,J="offsetWidth"in L?L.offsetWidth-L.clientWidth-Y-W:0,ae="offsetHeight"in L?L.offsetHeight-L.clientHeight-Z-Q:0,ge="offsetWidth"in L?L.offsetWidth===0?0:q/L.offsetWidth:0,ve="offsetHeight"in L?L.offsetHeight===0?0:$/L.offsetHeight:0;if(h===L)re=Qx(x,x+v,v,Z,Q,x+I,x+I+_,_),se=l==="start"?D:l==="center"?D-b/2:l==="end"?D-b:Qx(E,E+b,b,Y,W,E+D,E+D+S,S),re=Math.max(0,re+x),se=Math.max(0,se+E);else{re=Qx(F,H,$,Z,Q+ae,I,I+_,_),se=l==="start"?D-K-Y:l==="center"?D-(K+q/2)+J/2:l==="end"?D-G+W+J:Qx(K,G,q,Y,W+J,D,D+S,S);let{scrollLeft:Re,scrollTop:xe}=L;re=Math.max(0,Math.min(xe+re/ve,L.scrollHeight-$/ve+ae)),se=Math.max(0,Math.min(Re+se/ge,L.scrollWidth-q/ge+J)),I+=xe-re,D+=Re-se}P.push({el:L,top:re,left:se})}return P},jwt=0;function sxe(){}function zwt(t,e){if(t){var n=Uwt(t,{boundary:e});n.forEach(function(r){var i=r.el,s=r.top,a=r.left;i.scrollTop=s,i.scrollLeft=a})}}function Cte(t,e,n){var r=t===e||e instanceof n.Node&&t.contains&&t.contains(e);return r}function axe(t,e){var n;function r(){n&&clearTimeout(n)}function i(){for(var s=arguments.length,a=new Array(s),o=0;o<s;o++)a[o]=arguments[o];r(),n=setTimeout(function(){n=null,t.apply(void 0,a)},e)}return i.cancel=r,i}function rc(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return function(r){for(var i=arguments.length,s=new Array(i>1?i-1:0),a=1;a<i;a++)s[a-1]=arguments[a];return e.some(function(o){return o&&o.apply(void 0,[r].concat(s)),r.preventDownshiftDefault||r.hasOwnProperty("nativeEvent")&&r.nativeEvent.preventDownshiftDefault})}}function Zx(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return function(r){e.forEach(function(i){typeof i=="function"?i(r):i&&(i.current=r)})}}function Vwt(){return String(jwt++)}function qwt(t){var e=t.isOpen,n=t.resultCount,r=t.previousResultCount;return e?n?n!==r?n+" result"+(n===1?" is":"s are")+" available, use up and down arrow keys to navigate. Press Enter key to select.":"":"No results are available.":""}function VL(t,e){return Object.keys(t).reduce(function(n,r){return n[r]=oxe(e,r)?e[r]:t[r],n},{})}function oxe(t,e){return t[e]!==void 0}function Gwt(t){var e=t.key,n=t.keyCode;return n>=37&&n<=40&&e.indexOf("Arrow")!==0?"Arrow"+e:e}function Jx(t,e,n,r,i){if(i===void 0&&(i=!0),n===0)return-1;var s=n-1;(typeof e!="number"||e<0||e>=n)&&(e=t>0?-1:s+1);var a=e+t;a<0?a=i?s:0:a>s&&(a=i?0:s);var o=Vv(t,a,n,r,i);return o===-1?e>=n?-1:e:o}function Vv(t,e,n,r,i){var s=r(e);if(!s||!s.hasAttribute("disabled"))return e;if(t>0){for(var a=e+1;a<n;a++)if(!r(a).hasAttribute("disabled"))return a}else for(var o=e-1;o>=0;o--)if(!r(o).hasAttribute("disabled"))return o;return i?t>0?Vv(1,0,n,r,!1):Vv(-1,n-1,n,r,!1):-1}function Tte(t,e,n,r){return r===void 0&&(r=!0),e.some(function(i){return i&&(Cte(i,t,n)||r&&Cte(i,n.document.activeElement,n))})}var Wwt=axe(function(t){lxe(t).textContent=""},500);function Ywt(t,e){var n=lxe(e);t&&(n.textContent=t,Wwt(e))}function lxe(t){t===void 0&&(t=document);var e=t.getElementById("a11y-status-message");return e||(e=t.createElement("div"),e.setAttribute("id","a11y-status-message"),e.setAttribute("role","status"),e.setAttribute("aria-live","polite"),e.setAttribute("aria-relevant","additions text"),Object.assign(e.style,{border:"0",clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:"0",position:"absolute",width:"1px"}),t.body.appendChild(e),e)}var Kwt=["isInitialMount","highlightedIndex","items","environment"],uxe={highlightedIndex:-1,isOpen:!1,selectedItem:null,inputValue:""};function Xwt(t,e,n){var r=t.props,i=t.type,s={};Object.keys(e).forEach(function(a){Qwt(a,t,e,n),n[a]!==e[a]&&(s[a]=n[a])}),r.onStateChange&&Object.keys(s).length&&r.onStateChange(nt({type:i},s))}function Qwt(t,e,n,r){var i=e.props,s=e.type,a="on"+gH(t)+"Change";i[a]&&r[t]!==void 0&&r[t]!==n[t]&&i[a](nt({type:s},r))}function Zwt(t,e){return e.changes}function Jwt(t){var e=t.selectedItem,n=t.itemToString;return e?n(e)+" has been selected.":""}var eSt=axe(function(t,e){Ywt(t(),e)},200),tSt=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?C.useLayoutEffect:C.useEffect;function nSt(t){var e=t.id,n=e===void 0?"downshift-"+Vwt():e,r=t.labelId,i=t.menuId,s=t.getItemId,a=t.toggleButtonId,o=t.inputId,l=C.useRef({labelId:r||n+"-label",menuId:i||n+"-menu",getItemId:s||function(u){return n+"-item-"+u},toggleButtonId:a||n+"-toggle-button",inputId:o||n+"-input"});return l.current}function rSt(t,e,n,r){var i,s;if(t===void 0){if(e===void 0)throw new Error(r);i=n[e],s=e}else s=e===void 0?n.indexOf(t):e,i=t;return[i,s]}function iSt(t){return t?String(t):""}function gH(t){return""+t.slice(0,1).toUpperCase()+t.slice(1)}function cxe(t){var e=C.useRef(t);return e.current=t,e}function sSt(t,e,n){var r=C.useRef(),i=C.useRef(),s=C.useCallback(function(h,m){i.current=m,h=VL(h,m.props);var g=t(h,m),b=m.props.stateReducer(h,nt({},m,{changes:g}));return b},[t]),a=C.useReducer(s,e),o=a[0],l=a[1],u=cxe(n),c=C.useCallback(function(h){return l(nt({props:u.current},h))},[u]),d=i.current;return C.useEffect(function(){d&&r.current&&r.current!==o&&Xwt(d,VL(r.current,d.props),o),r.current=o},[o,n,d]),[o,c]}var Mb={itemToString:iSt,stateReducer:Zwt,getA11ySelectionMessage:Jwt,scrollIntoView:zwt,environment:typeof window>"u"?{}:window};function nu(t,e,n){n===void 0&&(n=uxe);var r=t["default"+gH(e)];return r!==void 0?r:n[e]}function ew(t,e,n){n===void 0&&(n=uxe);var r=t[e];if(r!==void 0)return r;var i=t["initial"+gH(e)];return i!==void 0?i:nu(t,e,n)}function aSt(t){var e=ew(t,"selectedItem"),n=ew(t,"isOpen"),r=ew(t,"highlightedIndex"),i=ew(t,"inputValue");return{highlightedIndex:r<0&&e&&n?t.items.indexOf(e):r,isOpen:n,selectedItem:e,inputValue:i}}function Db(t,e,n){var r=t.items,i=t.initialHighlightedIndex,s=t.defaultHighlightedIndex,a=e.selectedItem,o=e.highlightedIndex;return r.length===0?-1:i!==void 0&&o===i?i:s!==void 0?s:a?r.indexOf(a):n===0?-1:n<0?r.length-1:0}function oSt(t,e,n,r){var i=C.useRef({isMouseDown:!1,isTouchMove:!1});return C.useEffect(function(){if(n?.addEventListener!=null){var s=function(){i.current.isMouseDown=!0},a=function(d){i.current.isMouseDown=!1,t&&!Tte(d.target,e.map(function(h){return h.current}),n)&&r()},o=function(){i.current.isTouchMove=!1},l=function(){i.current.isTouchMove=!0},u=function(d){t&&!i.current.isTouchMove&&!Tte(d.target,e.map(function(h){return h.current}),n,!1)&&r()};return n.addEventListener("mousedown",s),n.addEventListener("mouseup",a),n.addEventListener("touchstart",o),n.addEventListener("touchmove",l),n.addEventListener("touchend",u),function(){n.removeEventListener("mousedown",s),n.removeEventListener("mouseup",a),n.removeEventListener("touchstart",o),n.removeEventListener("touchmove",l),n.removeEventListener("touchend",u)}}},[t,n]),i}var lSt=function(){return sxe};function Ate(t,e,n){var r=n.isInitialMount,i=n.highlightedIndex,s=n.items,a=n.environment,o=ra(n,Kwt);C.useEffect(function(){r||eSt(function(){return t(nt({highlightedIndex:i,highlightedItem:s[i],resultCount:s.length},o))},a.document)},e)}function uSt(t){var e=t.highlightedIndex,n=t.isOpen,r=t.itemRefs,i=t.getItemNodeFromIndex,s=t.menuElement,a=t.scrollIntoView,o=C.useRef(!0);return tSt(function(){e<0||!n||!Object.keys(r.current).length||(o.current===!1?o.current=!0:a(i(e),s))},[e]),o}var cSt=sxe;function Rte(t,e,n){var r;n===void 0&&(n=!0);var i=((r=t.items)==null?void 0:r.length)&&e>=0;return nt({isOpen:!1,highlightedIndex:-1},i&&nt({selectedItem:t.items[e],isOpen:nu(t,"isOpen"),highlightedIndex:nu(t,"highlightedIndex")},n&&{inputValue:t.itemToString(t.items[e])}))}function dSt(t,e,n){var r=e.type,i=e.props,s;switch(r){case n.ItemMouseMove:s={highlightedIndex:e.disabled?-1:e.index};break;case n.MenuMouseLeave:s={highlightedIndex:-1};break;case n.ToggleButtonClick:case n.FunctionToggleMenu:s={isOpen:!t.isOpen,highlightedIndex:t.isOpen?-1:Db(i,t,0)};break;case n.FunctionOpenMenu:s={isOpen:!0,highlightedIndex:Db(i,t,0)};break;case n.FunctionCloseMenu:s={isOpen:!1};break;case n.FunctionSetHighlightedIndex:s={highlightedIndex:e.highlightedIndex};break;case n.FunctionSetInputValue:s={inputValue:e.inputValue};break;case n.FunctionReset:s={highlightedIndex:nu(i,"highlightedIndex"),isOpen:nu(i,"isOpen"),selectedItem:nu(i,"selectedItem"),inputValue:nu(i,"inputValue")};break;default:throw new Error("Reducer called without proper action type.")}return nt({},t,s)}oe.array.isRequired,oe.func,oe.func,oe.func,oe.number,oe.number,oe.number,oe.bool,oe.bool,oe.bool,oe.any,oe.any,oe.any,oe.string,oe.string,oe.string,oe.func,oe.string,oe.func,oe.func,oe.func,oe.func,oe.func,oe.shape({addEventListener:oe.func,removeEventListener:oe.func,document:oe.shape({getElementById:oe.func,activeElement:oe.any,body:oe.any})});function fSt(t){var e=t.isOpen,n=t.resultCount,r=t.previousResultCount;return e?n?n!==r?"".concat(n," result").concat(n===1?" is":"s are"," available, use up and down arrow keys to navigate. Press Enter or Space Bar keys to select."):"":"No results are available.":""}bo(bo({},Mb),{getA11yStatusMessage:fSt});var yH=0,bH=1,vH=2,EH=3,_H=4,xH=5,wH=6,SH=7,CH=8,VC=9,TH=10,dxe=11,fxe=12,AH=13,hxe=14,pxe=15,mxe=16,gxe=17,yxe=18,RH=19,bxe=20,vxe=21,NH=22,Exe=Object.freeze({__proto__:null,InputKeyDownArrowDown:yH,InputKeyDownArrowUp:bH,InputKeyDownEscape:vH,InputKeyDownHome:EH,InputKeyDownEnd:_H,InputKeyDownPageUp:xH,InputKeyDownPageDown:wH,InputKeyDownEnter:SH,InputChange:CH,InputBlur:VC,InputFocus:TH,MenuMouseLeave:dxe,ItemMouseMove:fxe,ItemClick:AH,ToggleButtonClick:hxe,FunctionToggleMenu:pxe,FunctionOpenMenu:mxe,FunctionCloseMenu:gxe,FunctionSetHighlightedIndex:yxe,FunctionSelectItem:RH,FunctionSetInputValue:bxe,FunctionReset:vxe,ControlledPropUpdatedSelectedItem:NH});function hSt(t){var e=aSt(t),n=e.selectedItem,r=e.inputValue;return r===""&&n&&t.defaultInputValue===void 0&&t.initialInputValue===void 0&&t.inputValue===void 0&&(r=t.itemToString(n)),nt({},e,{inputValue:r})}oe.array.isRequired,oe.func,oe.func,oe.func,oe.func,oe.number,oe.number,oe.number,oe.bool,oe.bool,oe.bool,oe.any,oe.any,oe.any,oe.string,oe.string,oe.string,oe.string,oe.string,oe.string,oe.func,oe.string,oe.string,oe.func,oe.func,oe.func,oe.func,oe.func,oe.func,oe.shape({addEventListener:oe.func,removeEventListener:oe.func,document:oe.shape({getElementById:oe.func,activeElement:oe.any,body:oe.any})});function pSt(t,e,n){var r=C.useRef(),i=sSt(t,e,n),s=i[0],a=i[1];return C.useEffect(function(){oxe(n,"selectedItem")&&(n.selectedItemChanged(r.current,n.selectedItem)&&a({type:NH,inputValue:n.itemToString(n.selectedItem)}),r.current=s.selectedItem===r.current?n.selectedItem:s.selectedItem)},[s.selectedItem,n.selectedItem]),[VL(s,n),a]}var mSt=nt({},Mb,{selectedItemChanged:function(e,n){return e!==n},getA11yStatusMessage:qwt});function gSt(t,e){var n,r=e.type,i=e.props,s=e.altKey,a;switch(r){case AH:a={isOpen:nu(i,"isOpen"),highlightedIndex:nu(i,"highlightedIndex"),selectedItem:i.items[e.index],inputValue:i.itemToString(i.items[e.index])};break;case yH:t.isOpen?a={highlightedIndex:Jx(1,t.highlightedIndex,i.items.length,e.getItemNodeFromIndex,!0)}:a={highlightedIndex:s&&t.selectedItem==null?-1:Db(i,t,1,e.getItemNodeFromIndex),isOpen:i.items.length>=0};break;case bH:t.isOpen?s?a=Rte(i,t.highlightedIndex):a={highlightedIndex:Jx(-1,t.highlightedIndex,i.items.length,e.getItemNodeFromIndex,!0)}:a={highlightedIndex:Db(i,t,-1,e.getItemNodeFromIndex),isOpen:i.items.length>=0};break;case SH:a=Rte(i,t.highlightedIndex);break;case vH:a=nt({isOpen:!1,highlightedIndex:-1},!t.isOpen&&{selectedItem:null,inputValue:""});break;case xH:a={highlightedIndex:Jx(-10,t.highlightedIndex,i.items.length,e.getItemNodeFromIndex,!1)};break;case wH:a={highlightedIndex:Jx(10,t.highlightedIndex,i.items.length,e.getItemNodeFromIndex,!1)};break;case EH:a={highlightedIndex:Vv(1,0,i.items.length,e.getItemNodeFromIndex,!1)};break;case _H:a={highlightedIndex:Vv(-1,i.items.length-1,i.items.length,e.getItemNodeFromIndex,!1)};break;case VC:a=nt({isOpen:!1,highlightedIndex:-1},t.highlightedIndex>=0&&((n=i.items)==null?void 0:n.length)&&e.selectItem&&{selectedItem:i.items[t.highlightedIndex],inputValue:i.itemToString(i.items[t.highlightedIndex])});break;case CH:a={isOpen:!0,highlightedIndex:nu(i,"highlightedIndex"),inputValue:e.inputValue};break;case TH:a={isOpen:!0,highlightedIndex:Db(i,t,0)};break;case RH:a={selectedItem:e.selectedItem,inputValue:i.itemToString(e.selectedItem)};break;case NH:a={inputValue:e.inputValue};break;default:return dSt(t,e,Exe)}return nt({},t,a)}var ySt=["onMouseLeave","refKey","ref"],bSt=["item","index","refKey","ref","onMouseMove","onMouseDown","onClick","onPress","disabled"],vSt=["onClick","onPress","refKey","ref"],ESt=["onKeyDown","onChange","onInput","onFocus","onBlur","onChangeText","refKey","ref"];_xe.stateChangeTypes=Exe;function _xe(t){t===void 0&&(t={});var e=nt({},mSt,t),n=e.initialIsOpen,r=e.defaultIsOpen,i=e.items,s=e.scrollIntoView,a=e.environment,o=e.getA11yStatusMessage,l=e.getA11ySelectionMessage,u=e.itemToString,c=hSt(e),d=pSt(gSt,c,e),h=d[0],m=d[1],g=h.isOpen,b=h.highlightedIndex,v=h.selectedItem,E=h.inputValue,x=C.useRef(null),_=C.useRef({}),S=C.useRef(null),A=C.useRef(null),R=C.useRef(!0),T=nSt(e),O=C.useRef(),I=cxe({state:h,props:e}),D=C.useCallback(function(J){return _.current[T.getItemId(J)]},[T]);Ate(o,[g,b,E,i],nt({isInitialMount:R.current,previousResultCount:O.current,items:i,environment:a,itemToString:u},h)),Ate(l,[v],nt({isInitialMount:R.current,previousResultCount:O.current,items:i,environment:a,itemToString:u},h));var P=uSt({menuElement:x.current,highlightedIndex:b,isOpen:g,itemRefs:_,scrollIntoView:s,getItemNodeFromIndex:D});cSt({isInitialMount:R.current}),C.useEffect(function(){var J=n||r||g;J&&S.current&&S.current.focus()},[]),C.useEffect(function(){R.current||(O.current=i.length)});var B=oSt(g,[S,x,A],a,function(){m({type:VC,selectItem:!1})}),L=lSt();C.useEffect(function(){return R.current=!1,function(){R.current=!0}},[]),C.useEffect(function(){var J;if(!g)_.current={};else if(((J=a.document)==null?void 0:J.activeElement)!==S.current){var ae;S==null||(ae=S.current)==null||ae.focus()}},[g,a]);var $=C.useMemo(function(){return{ArrowDown:function(ae){ae.preventDefault(),m({type:yH,altKey:ae.altKey,getItemNodeFromIndex:D})},ArrowUp:function(ae){ae.preventDefault(),m({type:bH,altKey:ae.altKey,getItemNodeFromIndex:D})},Home:function(ae){I.current.state.isOpen&&(ae.preventDefault(),m({type:EH,getItemNodeFromIndex:D}))},End:function(ae){I.current.state.isOpen&&(ae.preventDefault(),m({type:_H,getItemNodeFromIndex:D}))},Escape:function(ae){var ge=I.current.state;(ge.isOpen||ge.inputValue||ge.selectedItem||ge.highlightedIndex>-1)&&(ae.preventDefault(),m({type:vH}))},Enter:function(ae){var ge=I.current.state;!ge.isOpen||ae.which===229||(ae.preventDefault(),m({type:SH,getItemNodeFromIndex:D}))},PageUp:function(ae){I.current.state.isOpen&&(ae.preventDefault(),m({type:xH,getItemNodeFromIndex:D}))},PageDown:function(ae){I.current.state.isOpen&&(ae.preventDefault(),m({type:wH,getItemNodeFromIndex:D}))}}},[m,I,D]),q=C.useCallback(function(J){return nt({id:T.labelId,htmlFor:T.inputId},J)},[T]),F=C.useCallback(function(J,ae){var ge,ve=J===void 0?{}:J,Re=ve.onMouseLeave,xe=ve.refKey,Ne=xe===void 0?"ref":xe,Fe=ve.ref,Le=ra(ve,ySt),ze=ae===void 0?{}:ae;return ze.suppressRefError,nt((ge={},ge[Ne]=Zx(Fe,function(qe){x.current=qe}),ge.id=T.menuId,ge.role="listbox",ge["aria-labelledby"]=Le&&Le["aria-label"]?void 0:""+T.labelId,ge.onMouseLeave=rc(Re,function(){m({type:dxe})}),ge),Le)},[m,L,T]),G=C.useCallback(function(J){var ae,ge,ve=J===void 0?{}:J,Re=ve.item,xe=ve.index,Ne=ve.refKey,Fe=Ne===void 0?"ref":Ne,Le=ve.ref,ze=ve.onMouseMove,qe=ve.onMouseDown,_t=ve.onClick;ve.onPress;var Ot=ve.disabled,Lt=ra(ve,bSt),ue=I.current,te=ue.props,de=ue.state,be=rSt(Re,xe,te.items,"Pass either item or index to getItemProps!"),ce=be[1],ne="onClick",fe=_t,X=function(){ce!==de.highlightedIndex&&(P.current=!1,m({type:fxe,index:ce,disabled:Ot}))},Oe=function(){m({type:AH,index:ce})},Ye=function(Ut){return Ut.preventDefault()};return nt((ae={},ae[Fe]=Zx(Le,function(rt){rt&&(_.current[T.getItemId(ce)]=rt)}),ae.disabled=Ot,ae.role="option",ae["aria-selected"]=""+(ce===de.highlightedIndex),ae.id=T.getItemId(ce),ae),!Ot&&(ge={},ge[ne]=rc(fe,Oe),ge),{onMouseMove:rc(ze,X),onMouseDown:rc(qe,Ye)},Lt)},[m,I,P,T]),H=C.useCallback(function(J){var ae,ge=J===void 0?{}:J,ve=ge.onClick;ge.onPress;
209var Re=ge.refKey,xe=Re===void 0?"ref":Re,Ne=ge.ref,Fe=ra(ge,vSt),Le=I.current.state,ze=function(){m({type:hxe})};return nt((ae={},ae[xe]=Zx(Ne,function(qe){A.current=qe}),ae["aria-controls"]=T.menuId,ae["aria-expanded"]=Le.isOpen,ae.id=T.toggleButtonId,ae.tabIndex=-1,ae),!Fe.disabled&&nt({},{onClick:rc(ve,ze)}),Fe)},[m,I,T]),K=C.useCallback(function(J,ae){var ge,ve=J===void 0?{}:J,Re=ve.onKeyDown,xe=ve.onChange,Ne=ve.onInput,Fe=ve.onFocus,Le=ve.onBlur;ve.onChangeText;var ze=ve.refKey,qe=ze===void 0?"ref":ze,_t=ve.ref,Ot=ra(ve,ESt),Lt=ae===void 0?{}:ae;Lt.suppressRefError;var ue=I.current.state,te=function(Ye){var rt=Gwt(Ye);rt&&$[rt]&&$[rt](Ye)},de=function(Ye){m({type:CH,inputValue:Ye.target.value})},be=function(Ye){if(ue.isOpen&&!B.current.isMouseDown){var rt=Ye.relatedTarget===null&&a.document.activeElement!==a.document.body;m({type:VC,selectItem:!rt})}},ce=function(){ue.isOpen||m({type:TH})},ne="onChange",fe={};if(!Ot.disabled){var X;fe=(X={},X[ne]=rc(xe,Ne,de),X.onKeyDown=rc(Re,te),X.onBlur=rc(Le,be),X.onFocus=rc(Fe,ce),X)}return nt((ge={},ge[qe]=Zx(_t,function(Oe){S.current=Oe}),ge["aria-activedescendant"]=ue.isOpen&&ue.highlightedIndex>-1?T.getItemId(ue.highlightedIndex):"",ge["aria-autocomplete"]="list",ge["aria-controls"]=T.menuId,ge["aria-expanded"]=ue.isOpen,ge["aria-labelledby"]=Ot&&Ot["aria-label"]?void 0:""+T.labelId,ge.autoComplete="off",ge.id=T.inputId,ge.role="combobox",ge.value=ue.inputValue,ge),fe,Ot)},[L,I,T,$,m,B,a]),V=C.useCallback(function(){m({type:pxe})},[m]),Y=C.useCallback(function(){m({type:gxe})},[m]),Z=C.useCallback(function(){m({type:mxe})},[m]),W=C.useCallback(function(J){m({type:yxe,highlightedIndex:J})},[m]),Q=C.useCallback(function(J){m({type:RH,selectedItem:J})},[m]),re=C.useCallback(function(J){m({type:bxe,inputValue:J})},[m]),se=C.useCallback(function(){m({type:vxe})},[m]);return{getItemProps:G,getLabelProps:q,getMenuProps:F,getInputProps:K,getToggleButtonProps:H,toggleMenu:V,openMenu:Z,closeMenu:Y,setHighlightedIndex:W,setInputValue:re,selectItem:Q,reset:se,highlightedIndex:b,isOpen:g,selectedItem:v,inputValue:E}}oe.array,oe.array,oe.array,oe.func,oe.func,oe.func,oe.number,oe.number,oe.number,oe.func,oe.func,oe.string,oe.string,oe.shape({addEventListener:oe.func,removeEventListener:oe.func,document:oe.shape({getElementById:oe.func,activeElement:oe.any,body:oe.any})});Mb.itemToString,Mb.stateReducer,Mb.environment;const Nte=20,_St=t=>t.suggestions.length>0?U.createElement(xSt,{...t}):U.createElement("input",{className:tn.textInput,size:40,autoFocus:!0,...t.register(t.inputName)}),xSt=({autofocus:t,suggestions:e,control:n,inputName:r,placeholder:i,initialInputValue:s,setValue:a})=>{const[o,l]=U.useState(e.slice(0,Nte)),u=Up(qp),c=e.length>0,{isOpen:d,getToggleButtonProps:h,getMenuProps:m,getInputProps:g,highlightedIndex:b,getItemProps:v,selectedItem:E}=_xe({initialInputValue:s,onInputValueChange({inputValue:_=""}){a(r,_),_=_.toLowerCase()||"";const S=[];for(const A of e)if(A.toLowerCase().includes(_)&&(S.push(A),S.length>=Nte))break;l(S)},items:o,itemToString(_){return _??""}}),x=d&&o.length>0;return U.createElement("div",{className:tn.downshiftAutocompleteContainer},U.createElement("div",{"data-visible-dropdown":x,className:tn.downshiftInputWrapper},U.createElement(Ewt,{name:r,control:n,render:({field:_})=>{const S=g();return U.createElement("input",{...S,name:_.name,placeholder:i,className:tn.downshiftInput,size:30,"data-editor-dialog":!0,autoFocus:t})}}),c&&U.createElement("button",{"aria-label":"toggle menu",type:"button",...h()},u("arrow_drop_down"))),U.createElement("div",{className:tn.downshiftAutocompleteContainer},U.createElement("ul",{...m(),"data-visible":x},o.map((_,S)=>U.createElement("li",{"data-selected":E===_,"data-highlighted":b===S,key:`${_}${S}`,...v({item:_,index:S})},_)))))},OH=U.forwardRef(({title:t,children:e},n)=>{const r=Up(ZB);return U.createElement(mge,{delayDuration:100},U.createElement(gge,null,U.createElement(yge,{ref:n,asChild:!0},U.createElement("span",{className:tn.tooltipTrigger},e)),U.createElement(bge,{container:r?.current},U.createElement(vge,{className:Oi(tn.tooltipContent),sideOffset:10},t))))});function wSt({url:t,title:e,text:n,onSubmit:r,onCancel:i,linkAutocompleteSuggestions:s,showLinkTitleField:a,showAnchorTextField:o}){const{register:l,handleSubmit:u,control:c,setValue:d,reset:h}=$wt({values:{url:t,title:e,text:n}}),m=Nf();return U.createElement("form",{onSubmit:g=>{u(r)(g),g.stopPropagation(),g.preventDefault()},onReset:g=>{g.stopPropagation(),i()},onKeyDown:g=>{g.key==="Escape"&&(g.stopPropagation(),i())},className:Oi(tn.multiFieldForm,tn.linkDialogEditForm)},U.createElement("div",{className:tn.formField}
209,U.createElement("label",{htmlFor:"link-url"},m("createLink.url","URL")),U.createElement(_St,{register:l,initialInputValue:t,inputName:"url",suggestions:s,setValue:d,control:c,placeholder:m("createLink.urlPlaceholder","Select or paste an URL"),autofocus:!0})),o?U.createElement("div",{className:tn.formField},U.createElement("label",{htmlFor:"link-text",title:m("createLink.textTooltip","The text to be displayed for the link")},m("createLink.text","Anchor text")),U.createElement("input",{id:"link-text",className:tn.textInput,size:40,...l("text")})):null,a?U.createElement("div",{className:tn.formField},U.createElement("label",{htmlFor:"link-title",title:m("createLink.titleTooltip","The link's title attribute, shown on hover")},m("createLink.title","Link title")),U.createElement("input",{id:"link-title",className:tn.textInput,size:40,...l("title")})):null,U.createElement("div",{style:{display:"flex",justifyContent:"flex-end",gap:"var(--spacing-2)"}},U.createElement("button",{type:"submit",title:m("createLink.saveTooltip","Set URL"),"aria-label":m("createLink.saveTooltip","Set URL"),className:Oi(tn.primaryButton)},m("dialogControls.save","Save")),U.createElement("button",{type:"reset",title:m("createLink.cancelTooltip","Cancel change"),"aria-label":m("createLink.cancelTooltip","Cancel change"),className:Oi(tn.secondaryButton)},m("dialogControls.cancel","Cancel"))))}const SSt=()=>{const[t,e,n,r,i,s,a]=t1(ZB,mi,qp,ea,Axe,Rxe,Oxe),o=vo(xxe),l=vo(wxe),u=vo(Sxe),c=vo(Cxe),d=vo(Txe);U.useEffect(()=>{const E=()=>{e?.getEditorState().read(()=>{o(!0)})};return window.addEventListener("resize",E),window.addEventListener("scroll",E),()=>{window.removeEventListener("resize",E),window.removeEventListener("scroll",E)}},[e,o]);const[h,m]=U.useState(!1),g=Nf();if(r.type==="inactive")return null;const b=r.rectangle,v=r.type==="preview"&&r.url.startsWith("http");return U.createElement(Ult,{open:!0},U.createElement(jlt,{"data-visible":r.type==="edit",className:tn.linkDialogAnchor,style:{to
209p:`${b.top}px`,left:`${b.left}px`,width:`${b.width}px`,height:`${b.height}px`}}),U.createElement(zlt,{container:t?.current},U.createElement(Vlt,{className:Oi(tn.linkDialogPopoverContent),sideOffset:5,onOpenAutoFocus:E=>{E.preventDefault()},key:r.linkNodeKey},r.type==="edit"&&U.createElement(wSt,{url:r.url,title:r.title,text:r.text,onSubmit:l,onCancel:u.bind(null),linkAutocompleteSuggestions:i,showLinkTitleField:a,showAnchorTextField:r.withAnchorText}),r.type==="preview"&&U.createElement(U.Fragment,null,U.createElement("a",{className:tn.linkDialogPreviewAnchor,href:r.url,...v?{target:"_blank",rel:"noreferrer"}:{},onClick:E=>{s!==null&&(E.preventDefault(),s(r.url))},title:v?g("linkPreview.open","Open {{url}} in new window",{url:r.url}):r.url},U.createElement("span",null,r.url),v&&n("open_in_new")),U.createElement(IO,{onClick:()=>{c()},title:g("linkPreview.edit","Edit link URL"),"aria-label":g("linkPreview.edit","Edit link URL")},n("edit")),U.createElement(mge,null,U.createElement(gge,{open:h},U.createElement(yge,{asChild:!0},U.createElement(IO,{title:g("linkPreview.copyToClipboard","Copy to clipboard"),"aria-label":g("linkPreview.copyToClipboard","Copy to clipboard"),onClick:()=>{window.navigator.clipboard.writeText(r.url).then(()=>{m(!0),setTimeout(()=>{m(!1)},1e3)})}},n(h?"check":"content_copy"))),U.createElement(bge,{container:t?.current},U.createElement(vge,{className:Oi(tn.tooltipContent),sideOffset:5},g("linkPreview.copied","Copied!"),U.createElement(pQe,null))))),U.createElement(IO,{title:g("linkPreview.remove","Remove link"),"aria-label":g("linkPreview.remove","Remove link"),onClick:()=>{d()}},n("link_off"))),U.createElement(qlt,{className:tn.popoverArrow}))))},IO=U.forwardRef(({className:t,...e},n)=>U.createElement("button",{className:Oi(tn.actionButton,t),ref:n,...e}));function qL(t){if(!t)return null;const e=pxt(t);if(e===null)return null;const n=e.getParent();return La(n)?n:La(e)?e:null}const xxe=ya(),ea=Nt({type:"inactive"},t=>{t.pub($C,e=>e.registerCommand(eA,()=>t.getValue(ea).type==="preview"?(t.pub(ea,{type:"inactive"}),!0):!1,Rs)),t.sub(t.pipe(Uv),e=>{e!=="rich-text"&&t.pub(ea,{type:"inactive"})}),t.pub($C,e=>e.registerCommand(h2e,n=>{if(n.key==="k"&&(FL?n.metaKey:n.ctrlKey)&&!t.getValue(mp)){const r=Xe();return He(r)?(t.pub(kH),n.stopPropagation(),n.preventDefault(),!0):!1}return!1},Fbt)),t.sub(t.pipe(Cxe,Ui(ea,mi)),([,e,n])=>{if(e.type==="preview")setTimeout(()=>{n?.getEditorState().read(()=>{const r=hi(e.linkNodeKey),i=La(r)?r.getTextContent().length>0&&r.getChildrenSize()<=1:!1,s=i&&r?r.getTextContent():"";t.pub(ea,{type:"edit",initialUrl:e.url,url:e.url,title:e.title,text:s,withAnchorText:i,linkNodeKey:e.linkNodeKey,rectangle:e.rectangle})})});else throw new Error("Cannot switch to edit mode when not in preview mode")}),t.sub(t.pipe(wxe,Ui(mi,ea,c0)),([e,n,r,i])=>{var s,a,o;const l=((s=e.text)==null?void 0:s.trim())??"",u=((a=e.url)==null?void 0:a.trim())??"",c=((o=e.title)==null?void 0:o.trim())??"";if(u!==""){if(i?.isCollapsed()){const d=l||c||u;n?.update(()=>{const h=qL(i);if(h)if(Xl(h)){const m=ff(u,{title:c});m.append(xr(l)),h.replace(m),m.select()}else h.setURL(u),h.setTitle(c),Ote(h.getFirstChild(),l);else{const m=ff(u,{title:c});m.append(xr(d)),iA([m]),m.select()}},{discrete:!0})}else n?.update(()=>{Ote(i?.anchor.getNode(),l)}),n?.dispatchCommand(d0,{url:u,title:c});t.pub(ea,{type:"preview",linkNodeKey:r.linkNodeKey,rectangle:r.rectangle,title:c,url:u})}else r.type==="edit"&&r.initialUrl!==""&&n?.dispatchCommand(d0,null),t.pub(ea,{type:"inactive"})}),t.link(t.pipe(Sxe,Ui(ea,mi),j9(([,e,n])=>{if(e.type==="edit")return n?.focus(),e.initialUrl===""?{type:"inactive"}:{type:"preview",url:e.initialUrl,linkNodeKey:e.linkNodeKey,rectangle:e.rectangle};throw new Error("Cannot cancel edit when not in edit mode")})),ea),t.link(t.pipe(t.combine(c0,xxe),Ui(mi,ea,mp),j9(([[e],n,r,i])=>{if(He(e)&&n&&!i){const s=qL(e);if(!e.isCollapsed())return{type:"inactive"};if(s){const a=w_e(n);return a?{type:"preview",url:s.getURL(),linkNodeKey:s.getKey(),title:s.getTitle(),rectangle:a}:{type:"inactive"}}else return{type:"inactive"}}else return{type:"inactive"}})),ea)}),wxe=ya(),Sxe=lE();lE();const Cxe=lE(),Txe=lE(t=>{t.sub(t.pipe(Txe,Ui(mi)),([,e])=>{e?.dispatchCommand(d0,null)})}),kH=lE(t=>{t.sub(t.pipe(kH,Ui(c0,mi),uE(([,e])=>He(e))),([,e,n])=>{n?.focus(()=>{setTimeout(()=>{n.getEditorState().read(()=>{const r=qL(e),i=w_e(n),s=r?.getURL()??"",a=r?.getURL()??"",o=r?.getTitle()??"",l=r?.getKey()??"",u=r?r.getTextContent().length>0&&r.getChildrenSize()<=1:!!e?.isCollapsed(),c=u&&r?r.getTextContent():"";t.pub(ea,{type:"edit",initialUrl:s,url:a,title:o,text:c,withAnchorText:u,linkNodeKey:l,rectangle:i})})})})})}),Axe=Nt([]),Rxe=Nt(null),Nxe=Nt(null,t=>{t.pub($C,e=>{function n(r){const[i,s]=t.getValues([mp,Nxe]);!i||s===null||e.update(()=>{const a=gu(r.target);if(a!==null){const o=ll(a,l=>l instanceof Of);o!==null&&s(r,o,o.getURL())}})}return e.registerRootListener((r,i)=>{r&&r.addEventListener("click",n),i&&i.removeEventListener("click",n)})})});function Ote(t,e){Qe(t)&&e&&(t.setTextContent(e),t.selectStart())}const Oxe=Nt(!0),SMt=cE({init(t,e){t.pub(yA,e?.LinkDialog??SSt),t.pub(Rxe,e?.onClickLinkCallback??null),t.pub(Nxe,e?.onReadOnlyClickLinkCallback??null),t.pub(Oxe,e?.showLinkTitleField??!0)},update(t,e={}){t.pub(Axe,e.linkAutocompleteSuggestions??[])}});function IH(t,e){return U.forwardRef((n,r)=>{const i=Oi(e.className,n.className);return U.createElement(t,{...e,...n,className:i,ref:r})})}function CSt(t){return({title:e,children:n,...r})=>U.createElement(t,{...r},U.createElement(OH,{title:e},n))}const TSt=({readOnly:t,children:e,className:n})=>U.createElement(Qxt,{className:Oi("mdxeditor-toolbar",tn.toolbarRoot,{[tn.readOnlyToolbarRoot]:t},n),...t?{tabIndex:-1}:{}},e),ASt=IH(Jxt,{className:tn.toolbarButton,"data-toolbar-item":!0}),RSt=CSt(ASt),kxe=IH(ewt,{className:tn.toolbarToggleItem,"data-toolbar-item":!0});IH(lH,{type:"single",className:tn.toolbarToggleSingleGroup});const Ixe=U.forwardRef(({on:t,title:e,children:n,disabled:r,...i},s)=>U.createElement(lH,{type:"single",className:tn.toolbarToggleSingleGroup,...i,value:t?"on":"off",ref:s},U.createElement(kxe,{"aria-label":e,value:"on",disabled:r},U.createElement(OH,{title:e},n)))),NSt=({items:t})=>U.createElement("div",{className:tn.toolbarGroupOfGroups},t.map((e,n)=>U.createElement(Ixe,{key:n,title:e.title,on:e.active,onValueChange:r=>{e.onChange(r==="on")},disabled:e.disabled},e.contents))),OSt=({value:t,onChange:e,className:n,ggClassName:r,items:i})=>{const s=Nf();return U.createElement("div",{className:Oi(tn.toolbarGroupOfGroups,r)},U.createElement(lH,{"aria-label":s("toolbar.toggleGroup","toggle group"),type:"single",className:Oi(tn.toolbarToggleSingleGroup,n),onValueChange:e,value:t||"",onFocus:a=>{a.preventDefault()}},i.map((a,o)=>U.createElement(kxe,{key:o,"aria-label":a.title,value:a.value},U.createElement(OH,{title:a.title},a.contents)))))},CMt=Zxt,MO=Nt(()=>null),DO=Nt(""),kte=()=>"This is an empty toolbar. Pass `{toolbarContents: () => { return <>toolbar components</> }}` to the toolbarPlugin to customize it.",TMt=cE({init(t,e){const n=e?.toolbarPosition==="bottom"?e_t:JEt;t.pubIn({[MO]:e?.toolbarContents??kte,[DO]:e?.toolbarClassName??"",[n]:()=>{const[r,i,s]=t1(MO,mp,DO);return U.createElement(TSt,{className:s,readOnly:i},r())}})},update(t,e){t.pub(MO,e?.toolbarContents??kte),t.pub(DO,e?.toolbarClassName??"")}}),PO=({format:t,addTitle:e,removeTitle:n,icon:r,formatName:i})=>{const[s,a]=t1(VEe,qp),o=vo(qEe),l=(s&t)!==0;return U.createElement(Ixe,{title:l?n:e,on:l,onValueChange:()=>{o(i)}},a(r))},AMt=({options:t})=>{const e=Nf(),n=typeof t>"u";return U.createElement("div",{className:tn.toolbarGroupOfGroups},n||t.includes("Bold")?U.createElement(PO,{format:Rb,addTitle:e("toolbar.bold","Bold"),removeTitle:e("toolbar.removeBold","Remove bold"),icon:"format_bold",formatName:"bold"}):null,n||t.includes("Italic")?U.createElement(PO,{format:Nb,addTitle:e("toolbar.italic","Italic"),removeTitle:e("toolbar.removeItalic","Remove italic"),icon:"format_italic",formatName:"italic"}):null,n||t.includes("Underline")?U.createElement(PO,{format:Ob,addTitle:e("toolbar.underline","Underline"),removeTitle:e("toolbar.removeUnderline","Remove underline"),icon:"format_underlined",formatName:"underline"}):null)},RMt=()=>{const t=vo(kH),e=Up(qp),n=Nf();return U.createElement(RSt,{"aria-label":n("toolbar.link","Create link"),title:n("toolbar.link","Create link"),onClick:r=>{t()}},e("link"))},kSt={bullet:"format_list_bulleted",number:"format_list_numbered",check:"format_list_checked"},NMt=({options:t=["bullet","number","check"]})=>{const[e,n]=t1(BL,qp),r=vo(C_e),i=Nf(),s={bullet:i("toolbar.bulletedList","Bulleted list"),number:i("toolbar.numberedList","Numbered list"),check:i("toolbar.checkList","Check list")},a=t.map(o=>
vendor: 10,643 bytes, line 209
209({value:o,title:s[o],contents:n(kSt[o])}));return U.createElement(OSt,{value:e||"",items:a,onChange:r})},OMt=()=>{const[t,e]=t1(qp,mi),[n,r]=U.useState(!1),[i,s]=U.useState(!1),a=Nf();return U.useEffect(()=>{if(e)return _l(e.registerCommand(Zy,o=>(r(o),!1),cf),e.registerCommand(Qy,o=>(s(o),!1),cf))},[e]),U.createElement(NSt,{items:[{title:a("toolbar.undo","Undo {{shortcut}}",{shortcut:FL?"âZ":"Ctrl+Z"}),disabled:!n,contents:t("undo"),active:!1,onChange:()=>e?.dispatchCommand(Z3,void 0)},{title:a("toolbar.redo","Redo {{shortcut}}",{shortcut:FL?"âY":"Ctrl+Y"}),disabled:!i,contents:t("redo"),active:!1,onChange:()=>e?.dispatchCommand(J3,void 0)}]})};function vi(t){if(typeof t=="string"||typeof t=="number")return""+t;let e="";if(Array.isArray(t))for(let n=0,r;n<t.length;n++)(r=vi(t[n]))!==""&&(e+=(e&&" ")+r);else for(let n in t)t[n]&&(e+=(e&&" ")+n);return e}var ISt={value:()=>{}};function EA(){for(var t=0,e=arguments.length,n={},r;t<e;++t){if(!(r=arguments[t]+"")||r in n||/[\s.]/.test(r))throw new Error("illegal type: "+r);n[r]=[]}return new nS(n)}function nS(t){this._=t}function MSt(t,e){return t.trim().split(/^|\s+/).map(function(n){var r="",i=n.indexOf(".");if(i>=0&&(r=n.slice(i+1),n=n.slice(0,i)),n&&!e.hasOwnProperty(n))throw new Error("unknown type: "+n);return{type:n,name:r}})}nS.prototype=EA.prototype={constructor:nS,on:function(t,e){var n=this._,r=MSt(t+"",n),i,s=-1,a=r.length;if(arguments.length<2){for(;++s<a;)if((i=(t=r[s]).type)&&(i=DSt(n[i],t.name)))return i;return}if(e!=null&&typeof e!="function")throw new Error("invalid callback: "+e);for(;++s<a;)if(i=(t=r[s]).type)n[i]=Ite(n[i],t.name,e);else if(e==null)for(i in n)n[i]=Ite(n[i],t.name,null);return this},copy:function(){var t={},e=this._;for(var n in e)t[n]=e[n].slice();return new nS(t)},call:function(t,e){if((i=arguments.length-2)>0)for(var n=new Array(i),r=0,i,s;r<i;++r)n[r]=arguments[r+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(s=this._[t],r=0,i=s.length;r<i;++r)s[r].value.apply(e,n)},apply:function(t,e,n){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var r=this._[t],i=0,s=r.length;i<s;++i)r[i].value.apply(e,n)}};function DSt(t,e){for(var n=0,r=t.length,i;n<r;++n)if((i=t[n]).name===e)return i.value}function Ite(t,e,n){for(var r=0,i=t.length;r<i;++r)if(t[r].name===e){t[r]=ISt,t=t.slice(0,r).concat(t.slice(r+1));break}return n!=null&&t.push({name:e,value:n}),t}var GL="http://www.w3.org/1999/xhtml";const Mte={svg:"http://www.w3.org/2000/svg",xhtml:GL,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function _A(t){var e=t+="",n=e.indexOf(":");return n>=0&&(e=t.slice(0,n))!=="xmlns"&&(t=t.slice(n+1)),Mte.hasOwnProperty(e)?{space:Mte[e],local:t}:t}function PSt(t){return function(){var e=this.ownerDocument,n=this.namespaceURI;return n===GL&&e.documentElement.namespaceURI===GL?e.createElement(t):e.createElementNS(n,t)}}function LSt(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function Mxe(t){var e=_A(t);return(e.local?LSt:PSt)(e)}function $St(){}function MH(t){return t==null?$St:function(){return this.querySelector(t)}}function FSt(t){typeof t!="function"&&(t=MH(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i<n;++i)for(var s=e[i],a=s.length,o=r[i]=new Array(a),l,u,c=0;c<a;++c)(l=s[c])&&(u=t.call(l,l.__data__,c,s))&&("__data__"in l&&(u.__data__=l.__data__),o[c]=u);return new Ka(r,this._parents)}function BSt(t){return t==null?[]:Array.isArray(t)?t:Array.from(t)}function HSt(){return[]}function Dxe(t){return t==null?HSt:function(){return this.querySelectorAll(t)}}function USt(t){return function(){return BSt(t.apply(this,arguments))}}function jSt(t){typeof t=="function"?t=USt(t):t=Dxe(t);for(var e=this._groups,n=e.length,r=[],i=[],s=0;s<n;++s)for(var a=e[s],o=a.length,l,u=0;u<o;++u)(l=a[u])&&(r.push(t.call(l,l.__data__,u,a)),i.push(l));return new Ka(r,i)}function Pxe(t){return function(){return this.matches(t)}}function Lxe(t){return function(e){return e.matches(t)}}var zSt=Array.prototype.find;function VSt(t){return function(){return zSt.call(this.children,t)}}function qSt(){return this.firstElementChild}function GSt(t){return this.select(t==null?qSt:VSt(typeof t=="function"?t:Lxe(t)))}var WSt=Array.prototype.filter;function YSt(){return Array.from(this.children)}function KSt(t){return function(){return WSt.call(this.children,t)}}function XSt(t){return this.selectAll(t==null?YSt:KSt(typeof t=="function"?t:Lxe(t)))}function QSt(t){typeof t!="function"&&(t=Pxe(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i<n;++i)for(var s=e[i],a=s.length,o=r[i]=[],l,u=0;u<a;++u)(l=s[u])&&t.call(l,l.__data__,u,s)&&o.push(l);return new Ka(r,this._parents)}function $xe(t){return new Array(t.length)}function ZSt(){return new Ka(this._enter||this._groups.map($xe),this._parents)}function qC(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}qC.prototype={constructor:qC,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};function JSt(t){return function(){return t}}function eCt(t,e,n,r,i,s){for(var a=0,o,l=e.length,u=s.length;a<u;++a)(o=e[a])?(o.__data__=s[a],r[a]=o):n[a]=new qC(t,s[a]);for(;a<l;++a)(o=e[a])&&(i[a]=o)}function tCt(t,e,n,r,i,s,a){var o,l,u=new Map,c=e.length,d=s.length,h=new Array(c),m;for(o=0;o<c;++o)(l=e[o])&&(h[o]=m=a.call(l,l.__data__,o,e)+"",u.has(m)?i[o]=l:u.set(m,l));for(o=0;o<d;++o)m=a.call(t,s[o],o,s)+"",(l=u.get(m))?(r[o]=l,l.__data__=s[o],u.delete(m)):n[o]=new qC(t,s[o]);for(o=0;o<c;++o)(l=e[o])&&u.get(h[o])===l&&(i[o]=l)}function nCt(t){return t.__data__}function rCt(t,e){if(!arguments.length)return Array.from(this,nCt);var n=e?tCt:eCt,r=this._parents,i=this._groups;typeof t!="function"&&(t=JSt(t));for(var s=i.length,a=new Array(s),o=new Array(s),l=new Array(s),u=0;u<s;++u){var c=r[u],d=i[u],h=d.length,m=iCt(t.call(c,c&&c.__data__,u,r)),g=m.length,b=o[u]=new Array(g),v=a[u]=new Array(g),E=l[u]=new Array(h);n(c,d,b,v,E,m,e);for(var x=0,_=0,S,A;x<g;++x)if(S=b[x]){for(x>=_&&(_=x+1);!(A=v[_])&&++_<g;);S._next=A||null}}return a=new Ka(a,r),a._enter=o,a._exit=l,a}function iCt(t){return typeof t=="object"&&"length"in t?t:Array.from(t)}function sCt(){return new Ka(this._exit||this._groups.map($xe),this._parents)}function aCt(t,e,n){var r=this.enter(),i=this,s=this.exit();return typeof t=="function"?(r=t(r),r&&(r=r.selection())):r=r.append(t+""),e!=null&&(i=e(i),i&&(i=i.selection())),n==null?s.remove():n(s),r&&i?r.merge(i).order():i}function oCt(t){for(var e=t.selection?t.selection():t,n=this._groups,r=e._groups,i=n.length,s=r.length,a=Math.min(i,s),o=new Array(i),l=0;l<a;++l)for(var u=n[l],c=r[l],d=u.length,h=o[l]=new Array(d),m,g=0;g<d;++g)(m=u[g]||c[g])&&(h[g]=m);for(;l<i;++l)o[l]=n[l];return new Ka(o,this._parents)}function lCt(){for(var t=this._groups,e=-1,n=t.length;++e<n;)for(var r=t[e],i=r.length-1,s=r[i],a;--i>=0;)(a=r[i])&&(s&&a.compareDocumentPosition(s)^4&&s.parentNode.insertBefore(a,s),s=a);return this}function uCt(t){t||(t=cCt);function e(d,h){return d&&h?t(d.__data__,h.__data__):!d-!h}for(var n=this._groups,r=n.length,i=new Array(r),s=0;s<r;++s){for(var a=n[s],o=a.length,l=i[s]=new Array(o),u,c=0;c<o;++c)(u=a[c])&&(l[c]=u);l.sort(e)}return new Ka(i,this._parents).order()}function cCt(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}function dCt(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this}function fCt(){return Array.from(this)}function hCt(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var r=t[e],i=0,s=r.length;i<s;++i){var a=r[i];if(a)return a}return null}function pCt(){let t=0;for(const e of this)++t;return t}function mCt(){return!this.node()}function gCt(t){for(var e=this._groups,n=0,r=e.length;n<r;++n)for(var i=e[n],s=0,a=i.length,o;s<a;++s)(o=i[s])&&t.call(o,o.__data__,s,i);return this}function yCt(t){return function(){this.removeAttribute(t)}}function bCt(t){return function(){this.removeAttributeNS(t.space,t.local)}}function vCt(t,e){return function(){this.setAttribute(t,e)}}function ECt(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function _Ct(t,e){return function(){var n=e.apply(this,arguments);n==null?this.removeAttribute(t):this.setAttribute(t,n)}}function xCt(t,e){return function(){var n=e.apply(this,arguments);n==null?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,n)}}function wCt(t,e){var n=_A(t);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((e==null?n.local?bCt:yCt:typeof e=="function"?n.local?xCt:_Ct:n.local?ECt:vCt)(n,e))}function Fxe(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function SCt(t){return function(){this.style.removeProperty(t)}}function CCt(t,e,n){return function(){this.style.setProperty(t,e,n)}}function TCt(t,e,n){return function(){var r=e.apply(this,arguments);r==null?this.style.removeProperty(t):this.style.setProperty(t,r,n)}}function ACt(t,e,n){return arguments.length>1?this.each((e==null?SCt:typeof e=="function"?TCt:CCt)(t,e,n??"")):f0(this.node(),t)}function f0(t,e){return t.style.getPropertyValue(e)||Fxe(t).getComputedStyle(t,null).getPropertyValue(e)}function RCt(t){return function(){delete this[t]}}function NCt(t,e){return function(){this[t]=e}}function OCt(t,e){return function(){var n=e.apply(this,arguments);n==null?delete this[t]:this[t]=n}}function kCt(t,e){return arguments.length>1?this.each((e==null?RCt:typeof e=="function"?OCt:NCt)(t,e)):this.node()[t]}function Bxe(t){return t.trim().split(/^|\s+/)}function DH(t){return t.classList||new Hxe(t)}function Hxe(t){this._node=t,this._names=Bxe(t.getAttribute("class")||"")}Hxe.prototype={add:function(t){var e=this._names.indexOf(t);e<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var e=this._names.indexOf(t);e>=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};function Uxe(t,e){for(var n=DH(t),r=-1,i=e.length;++r<i;)n.add(e[r])}function jxe(t,e){for(var n=DH(t),r=-1,i=e.length;++r<i;)n.remove(e[r])}function ICt(t){return function(){Uxe(this,t)}}function MCt(t){return function(){jxe(this,t)}}function DCt(t,e){return function(){(e.apply(this,arguments)?Uxe:jxe)(this,t)}}function PCt(t,e){var n=Bxe(t+"");
vendor: 4,074 bytes, line 209
209if(arguments.length<2){for(var r=DH(this.node()),i=-1,s=n.length;++i<s;)if(!r.contains(n[i]))return!1;return!0}return this.each((typeof e=="function"?DCt:e?ICt:MCt)(n,e))}function LCt(){this.textContent=""}function $Ct(t){return function(){this.textContent=t}}function FCt(t){return function(){var e=t.apply(this,arguments);this.textContent=e??""}}function BCt(t){return arguments.length?this.each(t==null?LCt:(typeof t=="function"?FCt:$Ct)(t)):this.node().textContent}function HCt(){this.innerHTML=""}function UCt(t){return function(){this.innerHTML=t}}function jCt(t){return function(){var e=t.apply(this,arguments);this.innerHTML=e??""}}function zCt(t){return arguments.length?this.each(t==null?HCt:(typeof t=="function"?jCt:UCt)(t)):this.node().innerHTML}function VCt(){this.nextSibling&&this.parentNode.appendChild(this)}function qCt(){return this.each(VCt)}function GCt(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function WCt(){return this.each(GCt)}function YCt(t){var e=typeof t=="function"?t:Mxe(t);return this.select(function(){return this.appendChild(e.apply(this,arguments))})}function KCt(){return null}function XCt(t,e){var n=typeof t=="function"?t:Mxe(t),r=e==null?KCt:typeof e=="function"?e:MH(e);return this.select(function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)})}function QCt(){var t=this.parentNode;t&&t.removeChild(this)}function ZCt(){return this.each(QCt)}function JCt(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function eTt(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function tTt(t){return this.select(t?eTt:JCt)}function nTt(t){return arguments.length?this.property("__data__",t):this.node().__data__}function rTt(t){return function(e){t.call(this,e,this.__data__)}}function iTt(t){return t.trim().split(/^|\s+/).map(function(e){var n="",r=e.indexOf(".");return r>=0&&(n=e.slice(r+1),e=e.slice(0,r)),{type:e,name:n}})}function sTt(t){return function(){var e=this.__on;if(e){for(var n=0,r=-1,i=e.length,s;n<i;++n)s=e[n],(!t.type||s.type===t.type)&&s.name===t.name?this.removeEventListener(s.type,s.listener,s.options):e[++r]=s;++r?e.length=r:delete this.__on}}}function aTt(t,e,n){return function(){var r=this.__on,i,s=rTt(e);if(r){for(var a=0,o=r.length;a<o;++a)if((i=r[a]).type===t.type&&i.name===t.name){this.removeEventListener(i.type,i.listener,i.options),this.addEventListener(i.type,i.listener=s,i.options=n),i.value=e;return}}this.addEventListener(t.type,s,n),i={type:t.type,name:t.name,value:e,listener:s,options:n},r?r.push(i):this.__on=[i]}}function oTt(t,e,n){var r=iTt(t+""),i,s=r.length,a;if(arguments.length<2){var o=this.node().__on;if(o){for(var l=0,u=o.length,c;l<u;++l)for(i=0,c=o[l];i<s;++i)if((a=r[i]).type===c.type&&a.name===c.name)return c.value}return}for(o=e?aTt:sTt,i=0;i<s;++i)this.each(o(r[i],e,n));return this}function zxe(t,e,n){var r=Fxe(t),i=r.CustomEvent;typeof i=="function"?i=new i(e,n):(i=r.document.createEvent("Event"),n?(i.initEvent(e,n.bubbles,n.cancelable),i.detail=n.detail):i.initEvent(e,!1,!1)),t.dispatchEvent(i)}function lTt(t,e){return function(){return zxe(this,t,e)}}function uTt(t,e){return function(){return zxe(this,t,e.apply(this,arguments))}}function cTt(t,e){return this.each((typeof e=="function"?uTt:lTt)(t,e))}function*dTt(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var r=t[e],i=0,s=r.length,a;i<s;++i)(a=r[i])&&(yield a)}var Vxe=[null];function Ka(t,e){this._groups=t,this._parents=e}function _E(){return new Ka([[document.documentElement]],Vxe)}function fTt(){return this}Ka.prototype=_E.prototype={constructor:Ka,select:FSt,selectAll:jSt,selectChild:GSt,selectChildren:XSt,filter:QSt,data:rCt,enter:ZSt,exit:sCt,join:aCt,merge:oCt,selection:fTt,order:lCt,sort:uCt,call:dCt,nodes:fCt,node:hCt,size:pCt,empty:mCt,each:gCt,attr:wCt,style:ACt,property:kCt,classed:PCt,text:BCt,html:zCt,raise:qCt,lower:WCt,append:YCt,insert:XCt,remove:ZCt,clone:tTt,datum:nTt,on:oTt,dispatch:cTt,[Symbol.iterator]:dTt};
vendor: 4,851 bytes, line 209
209function Ua(t){return typeof t=="string"?new Ka([[document.querySelector(t)]],[document.documentElement]):new Ka([[t]],Vxe)}function hTt(t){let e;for(;e=t.sourceEvent;)t=e;return t}function Ko(t,e){if(t=hTt(t),e===void 0&&(e=t.currentTarget),e){var n=e.ownerSVGElement||e;if(n.createSVGPoint){var r=n.createSVGPoint();return r.x=t.clientX,r.y=t.clientY,r=r.matrixTransform(e.getScreenCTM().inverse()),[r.x,r.y]}if(e.getBoundingClientRect){var i=e.getBoundingClientRect();return[t.clientX-i.left-e.clientLeft,t.clientY-i.top-e.clientTop]}}return[t.pageX,t.pageY]}const pTt={passive:!1},qv={capture:!0,passive:!1};function LO(t){t.stopImmediatePropagation()}function $g(t){t.preventDefault(),t.stopImmediatePropagation()}function qxe(t){var e=t.document.documentElement,n=Ua(t).on("dragstart.drag",$g,qv);"onselectstart"in e?n.on("selectstart.drag",$g,qv):(e.__noselect=e.style.MozUserSelect,e.style.MozUserSelect="none")}function Gxe(t,e){var n=t.document.documentElement,r=Ua(t).on("dragstart.drag",null);e&&(r.on("click.drag",$g,qv),setTimeout(function(){r.on("click.drag",null)},0)),"onselectstart"in n?r.on("selectstart.drag",null):(n.style.MozUserSelect=n.__noselect,delete n.__noselect)}const tw=t=>()=>t;function WL(t,{sourceEvent:e,subject:n,target:r,identifier:i,active:s,x:a,y:o,dx:l,dy:u,dispatch:c}){Object.defineProperties(this,{type:{value:t,enumerable:!0,configurable:!0},sourceEvent:{value:e,enumerable:!0,configurable:!0},subject:{value:n,enumerable:!0,configurable:!0},target:{value:r,enumerable:!0,configurable:!0},identifier:{value:i,enumerable:!0,configurable:!0},active:{value:s,enumerable:!0,configurable:!0},x:{value:a,enumerable:!0,configurable:!0},y:{value:o,enumerable:!0,configurable:!0},dx:{value:l,enumerable:!0,configurable:!0},dy:{value:u,enumerable:!0,configurable:!0},_:{value:c}})}WL.prototype.on=function(){var t=this._.on.apply(this._,arguments);return t===this._?this:t};function mTt(t){return!t.ctrlKey&&!t.button}function gTt(){return this.parentNode}function yTt(t,e){return e??{x:t.x,y:t.y}}function bTt(){return navigator.maxTouchPoints||"ontouchstart"in this}function Wxe(){var t=mTt,e=gTt,n=yTt,r=bTt,i={},s=EA("start","drag","end"),a=0,o,l,u,c,d=0;function h(S){S.on("mousedown.drag",m).filter(r).on("touchstart.drag",v).on("touchmove.drag",E,pTt).on("touchend.drag touchcancel.drag",x).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function m(S,A){if(!(c||!t.call(this,S,A))){var R=_(this,e.call(this,S,A),S,A,"mouse");R&&(Ua(S.view).on("mousemove.drag",g,qv).on("mouseup.drag",b,qv),qxe(S.view),LO(S),u=!1,o=S.clientX,l=S.clientY,R("start",S))}}function g(S){if($g(S),!u){var A=S.clientX-o,R=S.clientY-l;u=A*A+R*R>d}i.mouse("drag",S)}function b(S){Ua(S.view).on("mousemove.drag mouseup.drag",null),Gxe(S.view,u),$g(S),i.mouse("end",S)}function v(S,A){if(t.call(this,S,A)){var R=S.changedTouches,T=e.call(this,S,A),O=R.length,I,D;for(I=0;I<O;++I)(D=_(this,T,S,A,R[I].identifier,R[I]))&&(LO(S),D("start",S,R[I]))}}function E(S){var A=S.changedTouches,R=A.length,T,O;for(T=0;T<R;++T)(O=i[A[T].identifier])&&($g(S),O("drag",S,A[T]))}function x(S){var A=S.changedTouches,R=A.length,T,O;for(c&&clearTimeout(c),c=setTimeout(function(){c=null},500),T=0;T<R;++T)(O=i[A[T].identifier])&&(LO(S),O("end",S,A[T]))}function _(S,A,R,T,O,I){var D=s.copy(),P=Ko(I||R,A),B,L,$;if(($=n.call(S,new WL("beforestart",{sourceEvent:R,target:h,identifier:O,active:a,x:P[0],y:P[1],dx:0,dy:0,dispatch:D}),T))!=null)return B=$.x-P[0]||0,L=$.y-P[1]||0,function q(F,G,H){var K=P,V;switch(F){case"start":i[O]=q,V=a++;break;case"end":delete i[O],--a;case"drag":P=Ko(H||G,A),V=a;break}D.call(F,S,new WL(F,{sourceEvent:G,subject:$,target:h,identifier:O,active:V,x:P[0]+B,y:P[1]+L,dx:P[0]-K[0],dy:P[1]-K[1],dispatch:D}),T)}}return h.filter=function(S){return arguments.length?(t=typeof S=="function"?S:tw(!!S),h):t},h.container=function(S){return arguments.length?(e=typeof S=="function"?S:tw(S),h):e},h.subject=function(S){return arguments.length?(n=typeof S=="function"?S:tw(S),h):n},h.touchable=function(S){return arguments.length?(r=typeof S=="function"?S:tw(!!S),h):r},h.on=function(){var S=s.on.apply(s,arguments);return S===s?h:S},h.clickDistance=function(S){return arguments.length?(d=(S=+S)*S,h):Math.sqrt(d)},h}function PH(t,e,n){t.prototype=e.prototype=n,n.constructor=t}function Yxe(t,e){var n=Object.create(t.prototype);for(var r in e)n[r]=e[r];return n}function xE(){}var Gv=.7,GC=1/Gv,Fg="\\s*([+-]?\\d+)\\s*",Wv="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",cu="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",vTt=/^#([0-9a-f]{3,8})$/,ETt=new RegExp(`^rgb\\(${Fg},${Fg},${Fg}\\)$`),_Tt=new RegExp(`^rgb\\(${cu},${cu},${cu}\\)$`),xTt=new RegExp(`^rgba\\(${Fg},${Fg},${Fg},${Wv}\\)$`),wTt=new RegExp(`^rgba\\(${cu},${cu},${cu},${Wv}\\)$`),STt=new RegExp(`^hsl\\(${Wv},${cu},${cu}
209\\)$`),CTt=new RegExp(`^hsla\\(${Wv},${cu},${cu},${Wv}\\)$`),Dte={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};PH(xE,bp,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:Pte,formatHex:Pte,formatHex8:TTt,formatHsl:ATt,formatRgb:Lte,toString:Lte});function Pte(){return this.rgb().formatHex()}function TTt(){return this.rgb().formatHex8()}function ATt(){return Kxe(this).formatHsl()}function Lte(){return this.rgb().formatRgb()}function bp(t){var e,n;return t=(t+"").trim().toLowerCase(),(e=vTt.exec(t))?(n=e[1].length,e=parseInt(e[1],16),n===6?$te(e):n===3?new ia(e>>8&15|e>>4&240,e>>4&15|e&240,(e&15)<<4|e&15,1):n===8?nw(e>>24&255,e>>16&255,e>>8&255,(e&255)/255):n===4?nw(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|e&240,((e&15)<<4|e&15)/255):null):(e=ETt.exec(t))?new ia(e[1],e[2],e[3],1):(e=_Tt.exec(t))?new ia(e[1]*255/100,e[2]*255/100,e[3]*255/100,1):(e=xTt.exec(t))?nw(e[1],e[2],e[3],e[4]):(e=wTt.exec(t))?nw(e[1]*255/100,e[2]*255/100,e[3]*255/100,e[4]):(e=STt.exec(t))?Hte(e[1],e[2]/100,e[3]/100,1):(e=CTt.exec(t))?Hte(e[1],e[2]/100,e[3]/100,e[4]):Dte.hasOwnProperty(t)?$te(Dte[t]):t==="transparent"?new ia(NaN,NaN,NaN,0):null}function $te(t){return new ia(t>>16&255,t>>8&255,t&255,1)}function nw(t,e,n,r){return r<=0&&(t=e=n=NaN),new ia(t,e,n,r)}function RTt(t){return t instanceof xE||(t=bp(t)),t?(t=t.rgb(),new ia(t.r,t.g,t.b,t.opacity)):new ia}function YL(t,e,n,r){return arguments.length===1?RTt(t):new ia(t,e,n,r??1)}function ia(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}PH(ia,YL,Yxe(xE,{brighter(t){return t=t==null?GC:Math.pow(GC,t),new ia(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=t==null?Gv:Math.pow(Gv,t),new ia(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new ia(Bh(this.r),Bh(this.g),Bh(this.b),WC(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:Fte,formatHex:Fte,formatHex8:NTt,formatRgb:Bte,toString:Bte}));function Fte(){return`#${xh(this.r)}${xh(this.g)}${xh(this.b)}`}function NTt(){return`#${xh(this.r)}${xh(this.g)}${xh(this.b)}${xh((isNaN(this.opacity)?1:this.opacity)*255)}`}function Bte(){const t=WC(this.opacity);return`${t===1?"rgb(":"rgba("}${Bh(this.r)}, ${Bh(this.g)}, ${Bh(this.b)}${t===1?")":`, ${t})`}`}function WC(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function Bh(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function xh(t){return t=Bh(t),(t<16?"0":"")+t.toString(16)}function Hte(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new Zo(t,e,n,r)}function Kxe(t){if(t instanceof Zo)return new Zo(t.h,t.s,t.l,t.opacity);if(t instanceof xE||(t=bp(t)),!t)return new Zo;if(t instanceof Zo)return t;t=t.rgb();var e=t.r/255,n=t.g/255,r=t.b/255,i=Math.min(e,n,r),s=Math.max(e,n,r),a=NaN,o=s-i,l=(s+i)/2;return o?(e===s?a=(n-r)/o+(n<r)*6:n===s?a=(r-e)/o+2:a=(e-n)/o+4,o/=l<.5?s+i:2-s-i,a*=60):o=l>0&&l<1?0:a,new Zo(a,o,l,t.opacity)}function OTt(t,e,n,r){return arguments.length===1?Kxe(t):new Zo(t,e,n,r??1)}function Zo(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}PH(Zo,OTt,Yxe(xE,{brighter(t){return t=t==null?GC:Math.pow(GC,t),new Zo(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=t==null?Gv:Math.pow(Gv,t),new Zo(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+(this.h<0)*360,e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*e,i=2*n-r;return new ia($O(t>=240?t-240:t+120,i,r),$O(t,i,r),$O(t<120?t+240:t-120,i,r),this.opacity)},clamp(){return new Zo(Ute(this.h),rw(this.s),rw(this.l),WC(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 t=WC(this.opacity);return`${t===1?"hsl(":"hsla("}${Ute(this.h)}, ${rw(this.s)*100}%, ${rw(this.l)*100}%${t===1?")":`, ${t})`}`}}));function Ute(t){return t=(t||0)%360,t<0?t+360:t}
vendor: 5,668 bytes, line 209
209function rw(t){return Math.max(0,Math.min(1,t||0))}function $O(t,e,n){return(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)*255}const LH=t=>()=>t;function kTt(t,e){return function(n){return t+n*e}}function ITt(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(r){return Math.pow(t+r*e,n)}}function MTt(t){return(t=+t)==1?Xxe:function(e,n){return n-e?ITt(e,n,t):LH(isNaN(e)?n:e)}}function Xxe(t,e){var n=e-t;return n?kTt(t,n):LH(isNaN(t)?e:t)}const YC=(function t(e){var n=MTt(e);function r(i,s){var a=n((i=YL(i)).r,(s=YL(s)).r),o=n(i.g,s.g),l=n(i.b,s.b),u=Xxe(i.opacity,s.opacity);return function(c){return i.r=a(c),i.g=o(c),i.b=l(c),i.opacity=u(c),i+""}}return r.gamma=t,r})(1);function DTt(t,e){e||(e=[]);var n=t?Math.min(e.length,t.length):0,r=e.slice(),i;return function(s){for(i=0;i<n;++i)r[i]=t[i]*(1-s)+e[i]*s;return r}}function PTt(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)}function LTt(t,e){var n=e?e.length:0,r=t?Math.min(n,t.length):0,i=new Array(r),s=new Array(n),a;for(a=0;a<r;++a)i[a]=Pb(t[a],e[a]);for(;a<n;++a)s[a]=e[a];return function(o){for(a=0;a<r;++a)s[a]=i[a](o);return s}}function $Tt(t,e){var n=new Date;return t=+t,e=+e,function(r){return n.setTime(t*(1-r)+e*r),n}}function Gl(t,e){return t=+t,e=+e,function(n){return t*(1-n)+e*n}}function FTt(t,e){var n={},r={},i;(t===null||typeof t!="object")&&(t={}),(e===null||typeof e!="object")&&(e={});for(i in e)i in t?n[i]=Pb(t[i],e[i]):r[i]=e[i];return function(s){for(i in n)r[i]=n[i](s);return r}}var KL=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,FO=new RegExp(KL.source,"g");function BTt(t){return function(){return t}}function HTt(t){return function(e){return t(e)+""}}function Qxe(t,e){var n=KL.lastIndex=FO.lastIndex=0,r,i,s,a=-1,o=[],l=[];for(t=t+"",e=e+"";(r=KL.exec(t))&&(i=FO.exec(e));)(s=i.index)>n&&(s=e.slice(n,s),o[a]?o[a]+=s:o[++a]=s),(r=r[0])===(i=i[0])?o[a]?o[a]+=i:o[++a]=i:(o[++a]=null,l.push({i:a,x:Gl(r,i)})),n=FO.lastIndex;return n<e.length&&(s=e.slice(n),o[a]?o[a]+=s:o[++a]=s),o.length<2?l[0]?HTt(l[0].x):BTt(e):(e=l.length,function(u){for(var c=0,d;c<e;++c)o[(d=l[c]).i]=d.x(u);return o.join("")})}function Pb(t,e){var n=typeof e,r;return e==null||n==="boolean"?LH(e):(n==="number"?Gl:n==="string"?(r=bp(e))?(e=r,YC):Qxe:e instanceof bp?YC:e instanceof Date?$Tt:PTt(e)?DTt:Array.isArray(e)?LTt:typeof e.valueOf!="function"&&typeof e.toString!="function"||isNaN(e)?FTt:Gl)(t,e)}var jte=180/Math.PI,XL={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function Zxe(t,e,n,r,i,s){var a,o,l;return(a=Math.sqrt(t*t+e*e))&&(t/=a,e/=a),(l=t*n+e*r)&&(n-=t*l,r-=e*l),(o=Math.sqrt(n*n+r*r))&&(n/=o,r/=o,l/=o),t*r<e*n&&(t=-t,e=-e,l=-l,a=-a),{translateX:i,translateY:s,rotate:Math.atan2(e,t)*jte,skewX:Math.atan(l)*jte,scaleX:a,scaleY:o}}var iw;function UTt(t){const e=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(t+"");return e.isIdentity?XL:Zxe(e.a,e.b,e.c,e.d,e.e,e.f)}function jTt(t){return t==null||(iw||(iw=document.createElementNS("http://www.w3.org/2000/svg","g")),iw.setAttribute("transform",t),!(t=iw.transform.baseVal.consolidate()))?XL:(t=t.matrix,Zxe(t.a,t.b,t.c,t.d,t.e,t.f))}function Jxe(t,e,n,r){function i(u){return u.length?u.pop()+" ":""}function s(u,c,d,h,m,g){if(u!==d||c!==h){var b=m.push("translate(",null,e,null,n);g.push({i:b-4,x:Gl(u,d)},{i:b-2,x:Gl(c,h)})}else(d||h)&&m.push("translate("+d+e+h+n)}function a(u,c,d,h){u!==c?(u-c>180?c+=360:c-u>180&&(u+=360),h.push({i:d.push(i(d)+"rotate(",null,r)-2,x:Gl(u,c)})):c&&d.push(i(d)+"rotate("+c+r)}function o(u,c,d,h){u!==c?h.push({i:d.push(i(d)+"skewX(",null,r)-2,x:Gl(u,c)}):c&&d.push(i(d)+"skewX("+c+r)}function l(u,c,d,h,m,g){if(u!==d||c!==h){var b=m.push(i(m)+"scale(",null,",",null,")");g.push({i:b-4,x:Gl(u,d)},{i:b-2,x:Gl(c,h)})}else(d!==1||h!==1)&&m.push(i(m)+"scale("+d+","+h+")")}return function(u,c){var d=[],h=[];return u=t(u),c=t(c),s(u.translateX,u.translateY,c.translateX,c.translateY,d,h),a(u.rotate,c.rotate,d,h),o(u.skewX,c.skewX,d,h),l(u.scaleX,u.scaleY,c.scaleX,c.scaleY,d,h),u=c=null,function(m){for(var g=-1,b=h.length,v;++g<b;)d[(v=h[g]).i]=v.x(m);return d.join("")}}}var zTt=Jxe(UTt,"px, ","px)","deg)"),VTt=Jxe(jTt,", ",")",")"),qTt=1e-12;function zte(t){return((t=Math.exp(t))+1/t)/2}function GTt(t){return((t=Math.exp(t))-1/t)/2}function WTt(t){return((t=Math.exp(2*t))-1)/(t+1)}const rS=(function t(e,n,r){function i(s,a){var o=s[0],l=s[1],u=s[2],c=a[0],d=a[1],h=a[2],m=c-o,g=d-l,b=m*m+g*g,v,E;if(b<qTt)E=Math.log(h/u)/e,v=function(T){return[o+T*m,l+T*g,u*Math.exp(e*T*E)]};else{var x=Math.sqrt(b),_=(h*h-u*u+r*b)/(2*u*n*x),S=(h*h-u*u-r*b)/(2*h*n*x),A=Math.log(Math.sqrt(_*_+1)-_),R=Math.log(Math.sqrt(S*S+1)-S);E=(R-A)/e,v=function(T){var O=T*E,I=zte(A),D=u/(n*x)*(I*WTt(e*O+A)-GTt(A));return[o+D*m,l+D*g,u*I/zte(e*O+A)]}}return v.duration=E*1e3*e/Math.SQRT2,v}return i.rho=function(s){var a=Math.max(.001,+s),o=a*a,l=o*o;return t(a,o,l)},i})(Math.SQRT2,2,4);var h0=0,eb=0,Py=0,ewe=1e3,KC,tb,XC=0,vp=0,xA=0,Yv=typeof performance=="object"&&performance.now?performance:Date,twe=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function $H(){return vp||(twe(YTt),vp=Yv.now()+xA)}function YTt(){vp=0}function QC(){this._call=this._time=this._next=null}QC.prototype=nwe.prototype={constructor:QC,restart:function(t,e,n){if(typeof t!="function")throw new TypeError("callback is not a function");n=(n==null?$H():+n)+(e==null?0:+e),!this._next&&tb!==this&&(tb?tb._next=this:KC=this,tb=this),this._call=t,this._time=n,QL()},stop:function(){this._call&&(this._call=null,this._time=1/0,QL())}};function nwe(t,e,n){var r=new QC;return r.restart(t,e,n),r}
vendor: 7,964 bytes, line 209
209function KTt(){$H(),++h0;for(var t=KC,e;t;)(e=vp-t._time)>=0&&t._call.call(void 0,e),t=t._next;--h0}function Vte(){vp=(XC=Yv.now())+xA,h0=eb=0;try{KTt()}finally{h0=0,QTt(),vp=0}}function XTt(){var t=Yv.now(),e=t-XC;e>ewe&&(xA-=e,XC=t)}function QTt(){for(var t,e=KC,n,r=1/0;e;)e._call?(r>e._time&&(r=e._time),t=e,e=e._next):(n=e._next,e._next=null,e=t?t._next=n:KC=n);tb=t,QL(r)}function QL(t){if(!h0){eb&&(eb=clearTimeout(eb));var e=t-vp;e>24?(t<1/0&&(eb=setTimeout(Vte,t-Yv.now()-xA)),Py&&(Py=clearInterval(Py))):(Py||(XC=Yv.now(),Py=setInterval(XTt,ewe)),h0=1,twe(Vte))}}function qte(t,e,n){var r=new QC;return e=e==null?0:+e,r.restart(i=>{r.stop(),t(i+e)},e,n),r}var ZTt=EA("start","end","cancel","interrupt"),JTt=[],rwe=0,Gte=1,ZL=2,iS=3,Wte=4,JL=5,sS=6;function wA(t,e,n,r,i,s){var a=t.__transition;if(!a)t.__transition={};else if(n in a)return;e3t(t,n,{name:e,index:r,group:i,on:ZTt,tween:JTt,time:s.time,delay:s.delay,duration:s.duration,ease:s.ease,timer:null,state:rwe})}function FH(t,e){var n=xl(t,e);if(n.state>rwe)throw new Error("too late; already scheduled");return n}function Ru(t,e){var n=xl(t,e);if(n.state>iS)throw new Error("too late; already running");return n}function xl(t,e){var n=t.__transition;if(!n||!(n=n[e]))throw new Error("transition not found");return n}function e3t(t,e,n){var r=t.__transition,i;r[e]=n,n.timer=nwe(s,0,n.time);function s(u){n.state=Gte,n.timer.restart(a,n.delay,n.time),n.delay<=u&&a(u-n.delay)}function a(u){var c,d,h,m;if(n.state!==Gte)return l();for(c in r)if(m=r[c],m.name===n.name){if(m.state===iS)return qte(a);m.state===Wte?(m.state=sS,m.timer.stop(),m.on.call("interrupt",t,t.__data__,m.index,m.group),delete r[c]):+c<e&&(m.state=sS,m.timer.stop(),m.on.call("cancel",t,t.__data__,m.index,m.group),delete r[c])}if(qte(function(){n.state===iS&&(n.state=Wte,n.timer.restart(o,n.delay,n.time),o(u))}),n.state=ZL,n.on.call("start",t,t.__data__,n.index,n.group),n.state===ZL){for(n.state=iS,i=new Array(h=n.tween.length),c=0,d=-1;c<h;++c)(m=n.tween[c].value.call(t,t.__data__,n.index,n.group))&&(i[++d]=m);i.length=d+1}}function o(u){for(var c=u<n.duration?n.ease.call(null,u/n.duration):(n.timer.restart(l),n.state=JL,1),d=-1,h=i.length;++d<h;)i[d].call(t,c);n.state===JL&&(n.on.call("end",t,t.__data__,n.index,n.group),l())}function l(){n.state=sS,n.timer.stop(),delete r[e];for(var u in r)return;delete t.__transition}}function aS(t,e){var n=t.__transition,r,i,s=!0,a;if(n){e=e==null?null:e+"";for(a in n){if((r=n[a]).name!==e){s=!1;continue}i=r.state>ZL&&r.state<JL,r.state=sS,r.timer.stop(),r.on.call(i?"interrupt":"cancel",t,t.__data__,r.index,r.group),delete n[a]}s&&delete t.__transition}}function t3t(t){return this.each(function(){aS(this,t)})}function n3t(t,e){var n,r;return function(){var i=Ru(this,t),s=i.tween;if(s!==n){r=n=s;for(var a=0,o=r.length;a<o;++a)if(r[a].name===e){r=r.slice(),r.splice(a,1);break}}i.tween=r}}function r3t(t,e,n){var r,i;if(typeof n!="function")throw new Error;return function(){var s=Ru(this,t),a=s.tween;if(a!==r){i=(r=a).slice();for(var o={name:e,value:n},l=0,u=i.length;l<u;++l)if(i[l].name===e){i[l]=o;break}l===u&&i.push(o)}s.tween=i}}function i3t(t,e){var n=this._id;if(t+="",arguments.length<2){for(var r=xl(this.node(),n).tween,i=0,s=r.length,a;i<s;++i)if((a=r[i]).name===t)return a.value;return null}return this.each((e==null?n3t:r3t)(n,t,e))}function BH(t,e,n){var r=t._id;return t.each(function(){var i=Ru(this,r);(i.value||(i.value={}))[e]=n.apply(this,arguments)}),function(i){return xl(i,r).value[e]}}function iwe(t,e){var n;return(typeof e=="number"?Gl:e instanceof bp?YC:(n=bp(e))?(e=n,YC):Qxe)(t,e)}function s3t(t){return function(){this.removeAttribute(t)}}function a3t(t){return function(){this.removeAttributeNS(t.space,t.local)}}function o3t(t,e,n){var r,i=n+"",s;return function(){var a=this.getAttribute(t);return a===i?null:a===r?s:s=e(r=a,n)}}function l3t(t,e,n){var r,i=n+"",s;return function(){var a=this.getAttributeNS(t.space,t.local);return a===i?null:a===r?s:s=e(r=a,n)}}function u3t(t,e,n){var r,i,s;return function(){var a,o=n(this),l;return o==null?void this.removeAttribute(t):(a=this.getAttribute(t),l=o+"",a===l?null:a===r&&l===i?s:(i=l,s=e(r=a,o)))}}function c3t(t,e,n){var r,i,s;return function(){var a,o=n(this),l;return o==null?void this.removeAttributeNS(t.space,t.local):(a=this.getAttributeNS(t.space,t.local),l=o+"",a===l?null:a===r&&l===i?s:(i=l,s=e(r=a,o)))}}function d3t(t,e){var n=_A(t),r=n==="transform"?VTt:iwe;return this.attrTween(t,typeof e=="function"?(n.local?c3t:u3t)(n,r,BH(this,"attr."+t,e)):e==null?(n.local?a3t:s3t)(n):(n.local?l3t:o3t)(n,r,e))}function f3t(t,e){return function(n){this.setAttribute(t,e.call(this,n))}}function h3t(t,e){return function(n){this.setAttributeNS(t.space,t.local,e.call(this,n))}}function p3t(t,e){var n,r;function i(){var s=e.apply(this,arguments);return s!==r&&(n=(r=s)&&h3t(t,s)),n}return i._value=e,i}function m3t(t,e){var n,r;function i(){var s=e.apply(this,arguments);return s!==r&&(n=(r=s)&&f3t(t,s)),n}return i._value=e,i}function g3t(t,e){var n="attr."+t;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(e==null)return this.tween(n,null);if(typeof e!="function")throw new Error;var r=_A(t);return this.tween(n,(r.local?p3t:m3t)(r,e))}function y3t(t,e){return function(){FH(this,t).delay=+e.apply(this,arguments)}}function b3t(t,e){return e=+e,function(){FH(this,t).delay=e}}function v3t(t){var e=this._id;return arguments.length?this.each((typeof t=="function"?y3t:b3t)(e,t)):xl(this.node(),e).delay}function E3t(t,e){return function(){Ru(this,t).duration=+e.apply(this,arguments)}}function _3t(t,e){return e=+e,function(){Ru(this,t).duration=e}}function x3t(t){var e=this._id;return arguments.length?this.each((typeof t=="function"?E3t:_3t)(e,t)):xl(this.node(),e).duration}function w3t(t,e){if(typeof e!="function")throw new Error;return function(){Ru(this,t).ease=e}}function S3t(t){var e=this._id;return arguments.length?this.each(w3t(e,t)):xl(this.node(),e).ease}function C3t(t,e){return function(){var n=e.apply(this,arguments);if(typeof n!="function")throw new Error;Ru(this,t).ease=n}}function T3t(t){if(typeof t!="function")throw new Error;return this.each(C3t(this._id,t))}function A3t(t){typeof t!="function"&&(t=Pxe(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i<n;++i)for(var s=e[i],a=s.length,o=r[i]=[],l,u=0;u<a;++u)(l=s[u])&&t.call(l,l.__data__,u,s)&&o.push(l);return new jc(r,this._parents,this._name,this._id)}function R3t(t){if(t._id!==this._id)throw new Error;for(var e=this._groups,n=t._groups,r=e.length,i=n.length,s=Math.min(r,i),a=new Array(r),o=0;o<s;++o)for(var l=e[o],u=n[o],c=l.length,d=a[o]=new Array(c),h,m=0;m<c;++m)(h=l[m]||u[m])&&(d[m]=h);for(;o<r;++o)a[o]=e[o];return new jc(a,this._parents,this._name,this._id)}function N3t(t){return(t+"").trim().split(/^|\s+/).every(function(e){var n=e.indexOf(".");return n>=0&&(e=e.slice(0,n)),!e||e==="start"})}function O3t(t,e,n){var r,i,s=N3t(e)?FH:Ru;return function(){var a=s(this,t),o=a.on;o!==r&&(i=(r=o).copy()).on(e,n),a.on=i}}function k3t(t,e){var n=this._id;return arguments.length<2?xl(this.node(),n).on.on(t):this.each(O3t(n,t,e))}function I3t(t){return function(){var e=this.parentNode;for(var n in this.__transition)if(+n!==t)return;e&&e.removeChild(this)}}function M3t(){return this.on("end.remove",I3t(this._id))}function D3t(t){var e=this._name,n=this._id;typeof t!="function"&&(t=MH(t));for(var r=this._groups,i=r.length,s=new Array(i),a=0;a<i;++a)for(var o=r[a],l=o.length,u=s[a]=new Array(l),c,d,h=0;h<l;++h)(c=o[h])&&(d=t.call(c,c.__data__,h,o))&&("__data__"in c&&(d.__data__=c.__data__),u[h]=d,wA(u[h],e,n,h,u,xl(c,n)));return new jc(s,this._parents,e,n)}function P3t(t){var e=this._name,n=this._id;typeof t!="function"&&(t=Dxe(t));for(var r=this._groups,i=r.length,s=[],a=[],o=0;o<i;++o)for(var l=r[o],u=l.length,c,d=0;d<u;++d)if(c=l[d]){for(var h=t.call(c,c.__data__,d,l),m,g=xl(c,n),b=0,v=h.length;b<v;++b)(m=h[b])&&wA(m,e,n,b,h,g);s.push(h),a.push(c)}
vendor: 14,153 bytes, line 209
209return new jc(s,a,e,n)}var L3t=_E.prototype.constructor;function $3t(){return new L3t(this._groups,this._parents)}function F3t(t,e){var n,r,i;return function(){var s=f0(this,t),a=(this.style.removeProperty(t),f0(this,t));return s===a?null:s===n&&a===r?i:i=e(n=s,r=a)}}function swe(t){return function(){this.style.removeProperty(t)}}function B3t(t,e,n){var r,i=n+"",s;return function(){var a=f0(this,t);return a===i?null:a===r?s:s=e(r=a,n)}}function H3t(t,e,n){var r,i,s;return function(){var a=f0(this,t),o=n(this),l=o+"";return o==null&&(l=o=(this.style.removeProperty(t),f0(this,t))),a===l?null:a===r&&l===i?s:(i=l,s=e(r=a,o))}}function U3t(t,e){var n,r,i,s="style."+e,a="end."+s,o;return function(){var l=Ru(this,t),u=l.on,c=l.value[s]==null?o||(o=swe(e)):void 0;(u!==n||i!==c)&&(r=(n=u).copy()).on(a,i=c),l.on=r}}function j3t(t,e,n){var r=(t+="")=="transform"?zTt:iwe;return e==null?this.styleTween(t,F3t(t,r)).on("end.style."+t,swe(t)):typeof e=="function"?this.styleTween(t,H3t(t,r,BH(this,"style."+t,e))).each(U3t(this._id,t)):this.styleTween(t,B3t(t,r,e),n).on("end.style."+t,null)}function z3t(t,e,n){return function(r){this.style.setProperty(t,e.call(this,r),n)}}function V3t(t,e,n){var r,i;function s(){var a=e.apply(this,arguments);return a!==i&&(r=(i=a)&&z3t(t,a,n)),r}return s._value=e,s}function q3t(t,e,n){var r="style."+(t+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(e==null)return this.tween(r,null);if(typeof e!="function")throw new Error;return this.tween(r,V3t(t,e,n??""))}function G3t(t){return function(){this.textContent=t}}function W3t(t){return function(){var e=t(this);this.textContent=e??""}}function Y3t(t){return this.tween("text",typeof t=="function"?W3t(BH(this,"text",t)):G3t(t==null?"":t+""))}function K3t(t){return function(e){this.textContent=t.call(this,e)}}function X3t(t){var e,n;function r(){var i=t.apply(this,arguments);return i!==n&&(e=(n=i)&&K3t(i)),e}return r._value=t,r}function Q3t(t){var e="text";if(arguments.length<1)return(e=this.tween(e))&&e._value;if(t==null)return this.tween(e,null);if(typeof t!="function")throw new Error;return this.tween(e,X3t(t))}function Z3t(){for(var t=this._name,e=this._id,n=awe(),r=this._groups,i=r.length,s=0;s<i;++s)for(var a=r[s],o=a.length,l,u=0;u<o;++u)if(l=a[u]){var c=xl(l,e);wA(l,t,n,u,a,{time:c.time+c.delay+c.duration,delay:0,duration:c.duration,ease:c.ease})}return new jc(r,this._parents,t,n)}function J3t(){var t,e,n=this,r=n._id,i=n.size();return new Promise(function(s,a){var o={value:a},l={value:function(){--i===0&&s()}};n.each(function(){var u=Ru(this,r),c=u.on;c!==t&&(e=(t=c).copy(),e._.cancel.push(o),e._.interrupt.push(o),e._.end.push(l)),u.on=e}),i===0&&s()})}var eAt=0;function jc(t,e,n,r){this._groups=t,this._parents=e,this._name=n,this._id=r}function awe(){return++eAt}var ic=_E.prototype;jc.prototype={constructor:jc,select:D3t,selectAll:P3t,selectChild:ic.selectChild,selectChildren:ic.selectChildren,filter:A3t,merge:R3t,selection:$3t,transition:Z3t,call:ic.call,nodes:ic.nodes,node:ic.node,size:ic.size,empty:ic.empty,each:ic.each,on:k3t,attr:d3t,attrTween:g3t,style:j3t,styleTween:q3t,text:Y3t,textTween:Q3t,remove:M3t,tween:i3t,delay:v3t,duration:x3t,ease:S3t,easeVarying:T3t,end:J3t,[Symbol.iterator]:ic[Symbol.iterator]};function tAt(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}var nAt={time:null,delay:0,duration:250,ease:tAt};function rAt(t,e){for(var n;!(n=t.__transition)||!(n=n[e]);)if(!(t=t.parentNode))throw new Error(`transition ${e} not found`);return n}function iAt(t){var e,n;t instanceof jc?(e=t._id,t=t._name):(e=awe(),(n=nAt).time=$H(),t=t==null?null:t+"");for(var r=this._groups,i=r.length,s=0;s<i;++s)for(var a=r[s],o=a.length,l,u=0;u<o;++u)(l=a[u])&&wA(l,t,e,u,a,n||rAt(l,e));return new jc(r,this._parents,t,e)}_E.prototype.interrupt=t3t;_E.prototype.transition=iAt;const sw=t=>()=>t;function sAt(t,{sourceEvent:e,target:n,transform:r,dispatch:i}){Object.defineProperties(this,{type:{value:t,enumerable:!0,configurable:!0},sourceEvent:{value:e,enumerable:!0,configurable:!0},target:{value:n,enumerable:!0,configurable:!0},transform:{value:r,enumerable:!0,configurable:!0},_:{value:i}})}function wc(t,e,n){this.k=t,this.x=e,this.y=n}wc.prototype={constructor:wc,scale:function(t){return t===1?this:new wc(this.k*t,this.x,this.y)},translate:function(t,e){return t===0&e===0?this:new wc(this.k,this.x+this.k*t,this.y+this.k*e)},apply:function(t){return[t[0]*this.k+this.x,t[1]*this.k+this.y]},applyX:function(t){return t*this.k+this.x},applyY:function(t){return t*this.k+this.y},invert:function(t){return[(t[0]-this.x)/this.k,(t[1]-this.y)/this.k]},invertX:function(t){return(t-this.x)/this.k},invertY:function(t){return(t-this.y)/this.k},rescaleX:function(t){return t.copy().domain(t.range().map(this.invertX,this).map(t.invert,t))},rescaleY:function(t){return t.copy().domain(t.range().map(this.invertY,this).map(t.invert,t))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var SA=new wc(1,0,0);owe.prototype=wc.prototype;function owe(t){for(;!t.__zoom;)if(!(t=t.parentNode))return SA;return t.__zoom}function BO(t){t.stopImmediatePropagation()}function Ly(t){t.preventDefault(),t.stopImmediatePropagation()}function aAt(t){return(!t.ctrlKey||t.type==="wheel")&&!t.button}function oAt(){var t=this;return t instanceof SVGElement?(t=t.ownerSVGElement||t,t.hasAttribute("viewBox")?(t=t.viewBox.baseVal,[[t.x,t.y],[t.x+t.width,t.y+t.height]]):[[0,0],[t.width.baseVal.value,t.height.baseVal.value]]):[[0,0],[t.clientWidth,t.clientHeight]]}function Yte(){return this.__zoom||SA}function lAt(t){return-t.deltaY*(t.deltaMode===1?.05:t.deltaMode?1:.002)*(t.ctrlKey?10:1)}function uAt(){return navigator.maxTouchPoints||"ontouchstart"in this}function cAt(t,e,n){var r=t.invertX(e[0][0])-n[0][0],i=t.invertX(e[1][0])-n[1][0],s=t.invertY(e[0][1])-n[0][1],a=t.invertY(e[1][1])-n[1][1];return t.translate(i>r?(r+i)/2:Math.min(0,r)||Math.max(0,i),a>s?(s+a)/2:Math.min(0,s)||Math.max(0,a))}function lwe(){var t=aAt,e=oAt,n=cAt,r=lAt,i=uAt,s=[0,1/0],a=[[-1/0,-1/0],[1/0,1/0]],o=250,l=rS,u=EA("start","zoom","end"),c,d,h,m=500,g=150,b=0,v=10;function E($){$.property("__zoom",Yte).on("wheel.zoom",O,{passive:!1}).on("mousedown.zoom",I).on("dblclick.zoom",D).filter(i).on("touchstart.zoom",P).on("touchmove.zoom",B).on("touchend.zoom touchcancel.zoom",L).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}E.transform=function($,q,F,G){var H=$.selection?$.selection():$;H.property("__zoom",Yte),$!==H?A($,q,F,G):H.interrupt().each(function(){R(this,arguments).event(G).start().zoom(null,typeof q=="function"?q.apply(this,arguments):q).end()})},E.scaleBy=function($,q,F,G){E.scaleTo($,function(){var H=this.__zoom.k,K=typeof q=="function"?q.apply(this,arguments):q;return H*K},F,G)},E.scaleTo=function($,q,F,G){E.transform($,function(){var H=e.apply(this,arguments),K=this.__zoom,V=F==null?S(H):typeof F=="function"?F.apply(this,arguments):F,Y=K.invert(V),Z=typeof q=="function"?q.apply(this,arguments):q;return n(_(x(K,Z),V,Y),H,a)},F,G)},E.translateBy=function($,q,F,G){E.transform($,function(){return n(this.__zoom.translate(typeof q=="function"?q.apply(this,arguments):q,typeof F=="function"?F.apply(this,arguments):F),e.apply(this,arguments),a)},null,G)},E.translateTo=function($,q,F,G,H){E.transform($,function(){var K=e.apply(this,arguments),V=this.__zoom,Y=G==null?S(K):typeof G=="function"?G.apply(this,arguments):G;return n(SA.translate(Y[0],Y[1]).scale(V.k).translate(typeof q=="function"?-q.apply(this,arguments):-q,typeof F=="function"?-F.apply(this,arguments):-F),K,a)},G,H)};function x($,q){return q=Math.max(s[0],Math.min(s[1],q)),q===$.k?$:new wc(q,$.x,$.y)}function _($,q,F){var G=q[0]-F[0]*$.k,H=q[1]-F[1]*$.k;return G===$.x&&H===$.y?$:new wc($.k,G,H)}function S($){return[(+$[0][0]+ +$[1][0])/2,(+$[0][1]+ +$[1][1])/2]}function A($,q,F,G){$.on("start.zoom",function(){R(this,arguments).event(G).start()}).on("interrupt.zoom end.zoom",function(){R(this,arguments).event(G).end()}).tween("zoom",function(){var H=this,K=arguments,V=R(H,K).event(G),Y=e.apply(H,K),Z=F==null?S(Y):typeof F=="function"?F.apply(H,K):F,W=Math.max(Y[1][0]-Y[0][0],Y[1][1]-Y[0][1]),Q=H.__zoom,re=typeof q=="function"?q.apply(H,K):q,se=l(Q.invert(Z).concat(W/Q.k),re.invert(Z).concat(W/re.k));return function(J){if(J===1)J=re;else{var ae=se(J),ge=W/ae[2];J=new wc(ge,Z[0]-ae[0]*ge,Z[1]-ae[1]*ge)}V.zoom(null,J)}})}function R($,q,F){return!F&&$.__zooming||new T($,q)}function T($,q){this.that=$,this.args=q,this.active=0,this.sourceEvent=null,this.extent=e.apply($,q),this.taps=0}T.prototype={event:function($){return $&&(this.sourceEvent=$),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function($,q){return this.mouse&&$!=="mouse"&&(this.mouse[1]=q.invert(this.mouse[0])),this.touch0&&$!=="touch"&&(this.touch0[1]=q.invert(this.touch0[0])),this.touch1&&$!=="touch"&&(this.touch1[1]=q.invert(this.touch1[0])),this.that.__zoom=q,this.emit("zoom"),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit("end")),this},emit:function($){var q=Ua(this.that).datum();u.call($,this.that,new sAt($,{sourceEvent:this.sourceEvent,target:E,transform:this.that.__zoom,dispatch:u}),q)}};function O($,...q){if(!t.apply(this,arguments))return;var F=R(this,q).event($),G=this.__zoom,H=Math.max(s[0],Math.min(s[1],G.k*Math.pow(2,r.apply(this,arguments)))),K=Ko($);if(F.wheel)(F.mouse[0][0]!==K[0]||F.mouse[0][1]!==K[1])&&(F.mouse[1]=G.invert(F.mouse[0]=K)),clearTimeout(F.wheel);else{if(G.k===H)return;F.mouse=[K,G.invert(K)],aS(this),F.start()}Ly($),F.wheel=setTimeout(V,g),F.zoom("mouse",n(_(x(G,H),F.mouse[0],F.mouse[1]),F.extent,a));function V(){F.wheel=null,F.end()}}function I($,...q){if(h||!t.apply(this,arguments))return;var F=$.currentTarget,G=R(this,q,!0).event($),H=Ua($.view).on("mousemove.zoom",Z,!0).on("mouseup.zoom",W,!0),K=Ko($,F),V=$.clientX,Y=$.clientY;qxe($.view),BO($),G.mouse=[K,this.__zoom.invert(K)],aS(this),G.start();function Z(Q){if(Ly(Q),!G.moved){var re=Q.clientX-V,se=Q.clientY-Y;G.moved=re*re+se*se>b}G.event(Q).zoom("mouse",n(_(G.that.__zoom,G.mouse[0]=Ko(Q,F),G.mouse[1]),G.extent,a))}function W(Q){H.on("mousemove.zoom mouseup.zoom",null),Gxe(Q.view,G.moved),Ly(Q),G.event(Q).end()}}function D($,...q){if(t.apply(this,arguments)){var F=this.__zoom,G=Ko($.changedTouches?$.changedTouches[0]:$,this),H=F.invert(G),K=F.k*($.shiftKey?.5:2),V=n(_(x(F,K),G,H),e.apply(this,q),a);Ly($),o>0?Ua(this).transition().duration(o).call(A,V,G,$):Ua(this).call(E.transform,V,G,$)}}function P($,...q){if(t.apply(this,arguments)){var F=$.touches,G=F.length,H=R(this,q,$.changedTouches.length===G).event($),K,V,Y,Z;for(BO($),V=0;V<G;++V)Y=F[V],Z=Ko(Y,this),Z=[Z,this.__zoom.invert(Z),Y.identifier],H.touch0?!H.touch1&&H.touch0[2]!==Z[2]&&(H.touch1=Z,H.taps=0):(H.touch0=Z,K=!0,H.taps=1+!!c);c&&(c=clearTimeout(c)),K&&(H.taps<2&&(d=Z[0],c=setTimeout(function(){c=null},m)),aS(this),H.start())}}function B($,...q){if(this.__zooming){var F=R(this,q).event($),G=$.changedTouches,H=G.length,K,V,Y,Z;for(Ly($),K=0;K<H;++K)V=G[K],Y=Ko(V,this),F.touch0&&F.touch0[2]===V.identifier?F.touch0[0]=Y:F.touch1&&F.touch1[2]===V.identifier&&(F.touch1[0]=Y);if(V=F.that.__zoom,F.touch1){var W=F.touch0[0],Q=F.touch0[1],re=F.touch1[0],se=F.touch1[1],J=(J=re[0]-W[0])*J+(J=re[1]-W[1])*J,ae=(ae=se[0]-Q[0])*ae+(ae=se[1]-Q[1])*ae;V=x(V,Math.sqrt(J/ae)),Y=[(W[0]+re[0])/2,(W[1]+re[1])/2],Z=[(Q[0]+se[0])/2,(Q[1]+se[1])/2]}else if(F.touch0)Y=F.touch0[0],Z=F.touch0[1];else return;F.zoom("touch",n(_(V,Y,Z),F.extent,a))}}function L($,...q){if(this.__zooming){var F=R(this,q).event($),G=$.changedTouches,H=G.length,K,V;for(BO($),h&&clearTimeout(h),h=setTimeout(function(){h=null},m),K=0;K<H;++K)V=G[K],F.touch0&&F.touch0[2]===V.identifier?delete F.touch0:F.touch1&&F.touch1[2]===V.identifier&&delete F.touch1;if(F.touch1&&!F.touch0&&(F.touch0=F.touch1,delete F.touch1),F.touch0)F.touch0[1]=this.__zoom.invert(F.touch0[0]);else if(F.end(),F.taps===2&&(V=Ko(V,this),Math.hypot(d[0]-V[0],d[1]-V[1])<v)){var Y=Ua(this).on("dblclick.zoom");Y&&Y.apply(this,arguments)}}}return E.wheelDelta=function($){return arguments.length?(r=typeof $=="function"?$:sw(+$),E):r},E.filter=function($){return arguments.length?(t=typeof $=="function"?$:sw(!!$),E):t},E.touchable=function($){return arguments.length?(i=typeof $=="function"?$:sw(!!$),E):i},E.extent=function($){return arguments.length?(e=typeof $=="function"?$:sw([[+$[0][0],+$[0][1]],[+$[1][0],+$[1][1]]]),E):e},E.scaleExtent=function($){return arguments.length?(s[0]=+$[0],s[1]=+$[1],E):[s[0],s[1]]},E.translateExtent=function($){return arguments.length?(a[0][0]=+$[0][0],a[1][0]=+$[1][0],a[0][1]=+$[0][1],a[1][1]=+$[1][1],E):[[a[0][0],a[0][1]],[a[1][0],a[1][1]]]},E.constrain=function($){return arguments.length?(n=$,E):n},E.duration=function($){return arguments.length?(o=+$,E):o},E.interpolate=function($){return arguments.length?(l=$,E):l},E.on=function(){var $=u.on.apply(u,arguments);return $===u?E:$},E.clickDistance=function($){return arguments.length?(b=($=+$)*$,E):Math.sqrt(b)},E.tapDistance=function($){return arguments.length?(v=+$,E):v},E}const bu={error001:()=>"[React Flow]: Seems like you have not used zustand provider as an ancestor. Help: https://reactflow.dev/error#001",error002:()=>"It looks like you've created a new nodeTypes or edgeTypes object. If this wasn't on purpose please define the nodeTypes/edgeTypes outside of the component or memoize them.",error003:t=>`Node type "${t}" not found. Using fallback type "default".`,error004:()=>"The React Flow parent container needs a width and a height to render the graph.",error005:()=>"Only child nodes can use a parent extent.",error006:()=>"Can't create edge. An edge needs a source and a target.",error007:t=>`The old edge with id=${t} does not exist.`,error009:t=>`Marker type "${t}" doesn't exist.`,error008:(t,{id:e,sourceHandle:n,targetHandle:r})=>`Couldn't create edge for ${t} handle id: "${t==="source"?n:r}", edge id: ${e}.`,error010:()=>"Handle: No node id found. Make sure to only use a Handle inside a custom Node.",error011:t=>`Edge type "${t}" not found. Using fallback type "default".`,error012:t=>
209`Node with id "${t}" does not exist, it may have been removed. This can happen when a node is deleted before the "onNodeClick" handler is called.`,error013:(t="react")=>`It seems that you haven't loaded the styles. Please import '@xyflow/${t}/dist/style.css' or base.css to make sure everything is working properly.`,error014:()=>"useNodeConnections: No node ID found. Call useNodeConnections inside a custom Node or provide a node ID.",error015:()=>"It seems that you are trying to drag a node that is not initialized. Please use onNodesChange as explained in the docs."},Kv=[[Number.NEGATIVE_INFINITY,Number.NEGATIVE_INFINITY],[Number.POSITIVE_INFINITY,Number.POSITIVE_INFINITY]],uwe=["Enter"," ","Escape"],cwe={"node.a11yDescription.default":"Press enter or space to select a node. Press delete to remove it and escape to cancel.","node.a11yDescription.keyboardDisabled":"Press enter or space to select a node. You can then use the arrow keys to move the node around. Press delete to remove it and escape to cancel.","node.a11yDescription.ariaLiveMessage":({direction:t,x:e,y:n})=>`Moved selected node ${t}. New position, x: ${e}, y: ${n}`,"edge.a11yDescription.default":"Press enter or space to select an edge. You can then press delete to remove it or escape to cancel.","controls.ariaLabel":"Control Panel","controls.zoomIn.ariaLabel":"Zoom In","controls.zoomOut.ariaLabel":"Zoom Out","controls.fitView.ariaLabel":"Fit View","controls.interactive.ariaLabel":"Toggle Interactivity","minimap.ariaLabel":"Mini Map","handle.ariaLabel":"Handle"};var p0;(function(t){t.Strict="strict",t.Loose="loose"})(p0||(p0={}));var Hh;(function(t){t.Free="free",t.Vertical="vertical",t.Horizontal="horizontal"})(Hh||(Hh={}));var Xv;(function(t){t.Partial="partial",t.Full="full"})(Xv||(Xv={}));const dwe={inProgress:!1,isValid:null,from:null,fromHandle:null,fromPosition:null,fromNode:null,to:null,toHandle:null,toPosition:null,toNode:null,pointer:null};var Fd;(function(t){t.Bezier="default",t.Straight="straight",t.Step="step",t.SmoothStep="smoothstep",t.SimpleBezier="simplebezier"})(Fd||(Fd={}));var ZC;(function(t){t.Arrow="arrow",t.ArrowClosed="arrowclosed"})(ZC||(ZC={}));var kt;(function(t){t.Left="left",t.Top="top",t.Right="right",t.Bottom="bottom"})(kt||(kt={}));const Kte={[kt.Left]:kt.Right,[kt.Right]:kt.Left,[kt.Top]:kt.Bottom,[kt.Bottom]:kt.Top};function fwe(t){return t===null?null:t?"valid":"invalid"}const hwe=t=>"id"in t&&"source"in t&&"target"in t,dAt=t=>"id"in t&&"position"in t&&!("source"in t)&&!("target"in t),HH=t=>"id"in t&&"internals"in t&&!("source"in t)&&!("target"in t),wE=(t,e=[0,0])=>{const{width:n,height:r}=Kc(t),i=t.origin??e,s=n*i[0],a=r*i[1];return{x:t.position.x-s,y:t.position.y-a}},fAt=(t,e={nodeOrigin:[0,0]})=>{if(t.length===0)return{x:0,y:0,width:0,height:0};const n=t.reduce((r,i)=>{const s=typeof i=="string";let a=!e.nodeLookup&&!s?i:void 0;e.nodeLookup&&(a=s?e.nodeLookup.get(i):HH(i)?i:e.nodeLookup.get(i.id));const o=a?JC(a,e.nodeOrigin):{x:0,y:0,x2:0,y2:0};return CA(r,o)},{x:1/0,y:1/0,x2:-1/0,y2:-1/0});return TA(n)},SE=(t,e={})=>{let n={x:1/0,y:1/0,x2:-1/0,y2:-1/0},r=!1;return t.forEach(i=>{(e.filter===void 0||e.filter(i))&&(n=CA(n,JC(i)),r=!0)}),r?TA(n):{x:0,y:0,width:0,height:0}},UH=(t,e,[n,r,i]=[0,0,1],s=!1,a=!1)=>{const o={...TE(e,[n,r,i]),width:e.width/i,height:e.height/i},l=[];for(const u of t.values()){const{measured:c,selectable:d=!0,hidden:h=!1}=u;if(a&&!d||h)continue;const m=c.width??u.width??u.initialWidth??null,g=c.height??u.height??u.initialHeight??null,b=Qv(o,g0(u)),v=(m??0)*(g??0),E=s&&b>0;(!u.internals.handleBounds||E||b>=v||u.dragging)&&l.push(u)}return l},hAt=(t,e)=>{const n=new Set;return t.forEach(r=>{n.add(r.id)}),e.filter(r=>n.has(r.source)||n.has(r.target))};function pAt(t,e){const n=new Map,r=e?.nodes?new Set(e.nodes.map(i=>i.id)):null;return t.forEach(i=>{i.measured.width&&i.measured.height&&(e?.includeHiddenNodes||!i.hidden)&&(!r||r.has(i.id))&&n.set(i.id,i)}),n}
209async function mAt({nodes:t,width:e,height:n,panZoom:r,minZoom:i,maxZoom:s},a){if(t.size===0)return Promise.resolve(!0);const o=pAt(t,a),l=SE(o),u=jH(l,e,n,a?.minZoom??i,a?.maxZoom??s,a?.padding??.1);return await r.setViewport(u,{duration:a?.duration,ease:a?.ease,interpolate:a?.interpolate}),Promise.resolve(!0)}function pwe({nodeId:t,nextPosition:e,nodeLookup:n,nodeOrigin:r=[0,0],nodeExtent:i,onError:s}){const a=n.get(t),o=a.parentId?n.get(a.parentId):void 0,{x:l,y:u}=o?o.internals.positionAbsolute:{x:0,y:0},c=a.origin??r;let d=a.extent||i;if(a.extent==="parent"&&!a.expandParent)if(!o)s?.("005",bu.error005());else{const m=o.measured.width,g=o.measured.height;m&&g&&(d=[[l,u],[l+m,u+g]])}else o&&y0(a.extent)&&(d=[[a.extent[0][0]+l,a.extent[0][1]+u],[a.extent[1][0]+l,a.extent[1][1]+u]]);const h=y0(d)?Ep(e,d,a.measured):e;return(a.measured.width===void 0||a.measured.height===void 0)&&s?.("015",bu.error015()),{position:{x:h.x-l+(a.measured.width??0)*c[0],y:h.y-u+(a.measured.height??0)*c[1]},positionAbsolute:h}}async function gAt({nodesToRemove:t=[],edgesToRemove:e=[],nodes:n,edges:r,onBeforeDelete:i}){const s=new Set(t.map(h=>h.id)),a=[];for(const h of n){if(h.deletable===!1)continue;const m=s.has(h.id),g=!m&&h.parentId&&a.find(b=>b.id===h.parentId);(m||g)&&a.push(h)}const o=new Set(e.map(h=>h.id)),l=r.filter(h=>h.deletable!==!1),c=hAt(a,l);for(const h of l)o.has(h.id)&&!c.find(g=>g.id===h.id)&&c.push(h);if(!i)return{edges:c,nodes:a};const d=await i({nodes:a,edges:c});return typeof d=="boolean"?d?{edges:c,nodes:a}:{edges:[],nodes:[]}:d}const m0=(t,e=0,n=1)=>Math.min(Math.max(t,e),n),Ep=(t={x:0,y:0},e,n)=>({x:m0(t.x,e[0][0],e[1][0]-(n?.width??0)),y:m0(t.y,e[0][1],e[1][1]-(n?.height??0))});function mwe(t,e,n){const{width:r,height:i}=Kc(n),{x:s,y:a}=n.internals.positionAbsolute;return Ep(t,[[s,a],[s+r,a+i]],e)}const Xte=(t,e,n)=>t<e?m0(Math.abs(t-e),1,e)/e:t>n?-m0(Math.abs(t-n),1,e)/e:0,gwe=(t,e,n=15,r=40)=>{const i=Xte(t.x,r,e.width-r)*n,s=Xte(t.y,r,e.height-r)*n;return[i,s]},CA=(t,e)=>({x:Math.min(t.x,e.x),y:Math.min(t.y,e.y),x2:Math.max(t.x2,e.x2),y2:Math.max(t.y2,e.y2)}),e7=({x:t,y:e,width:n,height:r})=>({x:t,y:e,x2:t+n,y2:e+r}),TA=({x:t,y:e,x2:n,y2:r})=>({x:t,y:e,width:n-t,height:r-e}),g0=(t,e=[0,0])=>{const{x:n,y:r}=HH(t)?t.internals.positionAbsolute:wE(t,e);return{x:n,y:r,width:t.measured?.width??t.width??t.initialWidth??0,height:t.measured?.height??t.height??t.initialHeight??0}},JC=(t,e=[0,0])=>{const{x:n,y:r}=HH(t)?t.internals.positionAbsolute:wE(t,e);return{x:n,y:r,x2:n+(t.measured?.width??t.width??t.initialWidth??0),y2:r+(t.measured?.height??t.height??t.initialHeight??0)}},ywe=(t,e)=>TA(CA(e7(t),e7(e))),Qv=(t,e)=>{const n=Math.max(0,Math.min(t.x+t.width,e.x+e.width)-Math.max(t.x,e.x)),r=Math.max(0,Math.min(t.y+t.height,e.y+e.height)-Math.max(t.y,e.y));return Math.ceil(n*r)},Qte=t=>nl(t.width)&&nl(t.height)&&nl(t.x)&&nl(t.y),nl=t=>!isNaN(t)&&isFinite(t),yAt=(t,e)=>{},CE=(t,e=[1,1])=>({x:e[0]*Math.round(t.x/e[0]),y:e[1]*Math.round(t.y/e[1])}),TE=({x:t,y:e},[n,r,i],s=!1,a=[1,1])=>{const o={x:(t-n)/i,y:(e-r)/i};return s?CE(o,a):o},eT=({x:t,y:e},[n,r,i])=>({x:t*i+n,y:e*i+r});function Ym(t,e){if(typeof t=="number")return Math.floor((e-e/(1+t))*.5);if(typeof t=="string"&&t.endsWith("px")){const n=parseFloat(t);if(!Number.isNaN(n))return Math.floor(n)}if(typeof t=="string"&&t.endsWith("%")){const n=parseFloat(t);if(!Number.isNaN(n))return Math.floor(e*n*.01)}return console.error(`[React Flow] The padding value "${t}" is invalid. Please provide a number or a string with a valid unit (px or %).`),0}function bAt(t,e,n){if(typeof t=="string"||typeof t=="number"){const r=Ym(t,n),i=Ym(t,e);return{top:r,right:i,bottom:r,left:i,x:i*2,y:r*2}}if(typeof t=="object"){const r=Ym(t.top??t.y??0,n),i=Ym(t.bottom??t.y??0,n),s=Ym(t.left??t.x??0,e),a=Ym(t.right??t.x??0,e);return{top:r,right:a,bottom:i,left:s,x:s+a,y:r+i}}return{top:0,right:0,bottom:0,left:0,x:0,y:0}}function vAt(t,e,n,r,i,s){const{x:a,y:o}=eT(t,[e,n,r]),{x:l,y:u}=eT({x:t.x+t.width,y:t.y+t.height},[e,n,r]),c=i-l,d=s-u;return{left:Math.floor(a),top:Math.floor(o),right:Math.floor(c),bottom:Math.floor(d)}}const jH=(t,e,n,r,i,s)=>{const a=bAt(s,e,n),o=(e-a.x)/t.width,l=(n-a.y)/t.height,u=Math.min(o,l),c=m0(u,r,i),d=t.x+t.width/2,h=t.y+t.height/2,m=e/2-d*c,g=n/2-h*c,b=vAt(t,m,g,c,e,n),v={left:Math.min(b.left-a.left,0),top:Math.min(b.top-a.top,0),right:Math.min(b.right-a.right,0),bottom:Math.min(b.bottom-a.bottom,0)};return{x:m-v.left+v.right,y:g-v.top+v.bottom,zoom:c}},Zv=()=>typeof navigator<"u"&&navigator?.userAgent?.indexOf("Mac")>=0;function y0(t){return t!=null&&t!=="parent"}function Kc(t){return{width:t.measured?.width??t.width??t.initialWidth??0,height:t.measured?.height??t.height??t.initialHeight??0}}function bwe(t){return(t.measured?.width??t.width??t.initialWidth)!==void 0&&(t.measured?.height??t.height??t.initialHeight)!==void 0}function vwe(t,e={width:0,height:0},n,r,i){const s={...t},a=r.get(n);if(a){const o=a.origin||i;s.x+=a.internals.positionAbsolute.x-(e.width??0)*o[0],s.y+=a.internals.positionAbsolute.y-(e.height??0)*o[1]}return s}function Zte(t,e){if(t.size!==e.size)return!1;for(const n of t)if(!e.has(n))return!1;return!0}function EAt(){let t,e;return{promise:new Promise((r,i)=>{t=r,e=i}),resolve:t,reject:e}}function _At(t){return{...cwe,...t||{}}}
209function Lb(t,{snapGrid:e=[0,0],snapToGrid:n=!1,transform:r,containerBounds:i}){const{x:s,y:a}=rl(t),o=TE({x:s-(i?.left??0),y:a-(i?.top??0)},r),{x:l,y:u}=n?CE(o,e):o;return{xSnapped:l,ySnapped:u,...o}}const zH=t=>({width:t.offsetWidth,height:t.offsetHeight}),Ewe=t=>t?.getRootNode?.()||window?.document,xAt=["INPUT","SELECT","TEXTAREA"];function _we(t){const e=t.composedPath?.()?.[0]||t.target;return e?.nodeType!==1?!1:xAt.includes(e.nodeName)||e.hasAttribute("contenteditable")||!!e.closest(".nokey")}const xwe=t=>"clientX"in t,rl=(t,e)=>{const n=xwe(t),r=n?t.clientX:t.touches?.[0].clientX,i=n?t.clientY:t.touches?.[0].clientY;return{x:r-(e?.left??0),y:i-(e?.top??0)}},Jte=(t,e,n,r,i)=>{const s=e.querySelectorAll(`.${t}`);return!s||!s.length?null:Array.from(s).map(a=>{const o=a.getBoundingClientRect();return{id:a.getAttribute("data-handleid"),type:t,nodeId:i,position:a.getAttribute("data-handlepos"),x:(o.left-n.left)/r,y:(o.top-n.top)/r,...zH(a)}})};function wwe({sourceX:t,sourceY:e,targetX:n,targetY:r,sourceControlX:i,sourceControlY:s,targetControlX:a,targetControlY:o}){const l=t*.125+i*.375+a*.375+n*.125,u=e*.125+s*.375+o*.375+r*.125,c=Math.abs(l-t),d=Math.abs(u-e);return[l,u,c,d]}function aw(t,e){return t>=0?.5*t:e*25*Math.sqrt(-t)}function ene({pos:t,x1:e,y1:n,x2:r,y2:i,c:s}){switch(t){case kt.Left:return[e-aw(e-r,s),n];case kt.Right:return[e+aw(r-e,s),n];case kt.Top:return[e,n-aw(n-i,s)];case kt.Bottom:return[e,n+aw(i-n,s)]}}function Swe({sourceX:t,sourceY:e,sourcePosition:n=kt.Bottom,targetX:r,targetY:i,targetPosition:s=kt.Top,curvature:a=.25}){const[o,l]=ene({pos:n,x1:t,y1:e,x2:r,y2:i,c:a}),[u,c]=ene({pos:s,x1:r,y1:i,x2:t,y2:e,c:a}),[d,h,m,g]=wwe({sourceX:t,sourceY:e,targetX:r,targetY:i,sourceControlX:o,sourceControlY:l,targetControlX:u,targetControlY:c});return[`M${t},${e} C${o},${l} ${u},${c} ${r},${i}`,d,h,m,g]}function Cwe({sourceX:t,sourceY:e,targetX:n,targetY:r}){const i=Math.abs(n-t)/2,s=n<t?n+i:n-i,a=Math.abs(r-e)/2,o=r<e?r+a:r-a;return[s,o,i,a]}function wAt({sourceNode:t,targetNode:e,selected:n=!1,zIndex:r=0,elevateOnSelect:i=!1,zIndexMode:s="basic"}){if(s==="manual")return r;const a=i&&n?r+1e3:r,o=Math.max(t.parentId||i&&t.selected?t.internals.z:0,e.parentId||i&&e.selected?e.internals.z:0);return a+o}function SAt({sourceNode:t,targetNode:e,width:n,height:r,transform:i}){const s=CA(JC(t),JC(e));s.x===s.x2&&(s.x2+=1),s.y===s.y2&&(s.y2+=1);const a={x:-i[0]/i[2],y:-i[1]/i[2],width:n/i[2],height:r/i[2]};return Qv(a,TA(s))>0}const CAt=({source:t,sourceHandle:e,target:n,targetHandle:r})=>`xy-edge__${t}${e||""}-${n}${r||""}`,TAt=(t,e)=>e.some(n=>n.source===t.source&&n.target===t.target&&(n.sourceHandle===t.sourceHandle||!n.sourceHandle&&!t.sourceHandle)&&(n.targetHandle===t.targetHandle||!n.targetHandle&&!t.targetHandle)),AAt=(t,e,n={})=>{if(!t.source||!t.target)return e;const r=n.getEdgeId||CAt;let i;return hwe(t)?i={...t}:i={...t,id:r(t)},TAt(i,e)?e:(i.sourceHandle===null&&delete i.sourceHandle,i.targetHandle===null&&delete i.targetHandle,e.concat(i))};function Twe({sourceX:t,sourceY:e,targetX:n,targetY:r}){const[i,s,a,o]=Cwe({sourceX:t,sourceY:e,targetX:n,targetY:r});return[`M ${t},${e}L ${n},${r}`,i,s,a,o]}const tne={[kt.Left]:{x:-1,y:0},[kt.Right]:{x:1,y:0},[kt.Top]:{x:0,y:-1},[kt.Bottom]:{x:0,y:1}},RAt=({source:t,sourcePosition:e=kt.Bottom,target:n})=>e===kt.Left||e===kt.Right?t.x<n.x?{x:1,y:0}:{x:-1,y:0}:t.y<n.y?{x:0,y:1}:{x:0,y:-1},nne=(t,e)=>Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2));function NAt({source:t,sourcePosition:e=kt.Bottom,target:n,targetPosition:r=kt.Top,center:i,offset:s,stepPosition:a}){const o=tne[e],l=tne[r],u={x:t.x+o.x*s,y:t.y+o.y*s},c={x:n.x+l.x*s,y:n.y+l.y*s},d=RAt({source:u,sourcePosition:e,target:c}),h=d.x!==0?"x":"y",m=d[h];let g=[],b,v;const E={x:0,y:0},x={x:0,y:0},[,,_,S]=Cwe({sourceX:t.x,sourceY:t.y,targetX:n.x,targetY:n.y});if(o[h]*l[h]===-1){h==="x"?(b=i.x??u.x+(c.x-u.x)*a,v=i.y??(u.y+c.y)/2):(b=i.x??(u.x+c.x)/2,v=i.y??u.y+(c.y-u.y)*a);const R=[{x:b,y:u.y},{x:b,y:c.y}],T=[{x:u.x,y:v},{x:c.x,y:v}];o[h]===m?g=h==="x"?R:T:g=h==="x"?T:R}else{const R=[{x:u.x,y:c.y}],T=[{x:c.x,y:u.y}];if(h==="x"?g=o.x===m?T:R:g=o.y===m?R:T,e===r){const B=Math.abs(t[h]-n[h]);if(B<=s){const L=Math.min(s-1,s-B);o[h]===m?E[h]=(u[h]>t[h]?-1:1)*L:x[h]=(c[h]>n[h]?-1:1)*L}}if(e!==r){const B=h==="x"?"y":"x",L=o[h]===l[B],$=u[B]>c[B],q=u[B]<c[B];(o[h]===1&&(!L&&$||L&&q)||o[h]!==1&&(!L&&q||L&&$))&&(g=h==="x"?R:T)}const O={x:u.x+E.x,y:u.y+E.y},I={x:c.x+x.x,y:c.y+x.y},D=Math.max(Math.abs(O.x-g[0].x),Math.abs(I.x-g[0].x)),P=Math.max(Math.abs(O.y-g[0].y),Math.abs(I.y-g[0].y));D>=P?(b=(O.x+I.x)/2,v=g[0].y):(b=g[0].x,v=(O.y+I.y)/2)}
209return[[t,{x:u.x+E.x,y:u.y+E.y},...g,{x:c.x+x.x,y:c.y+x.y},n],b,v,_,S]}function OAt(t,e,n,r){const i=Math.min(nne(t,e)/2,nne(e,n)/2,r),{x:s,y:a}=e;if(t.x===s&&s===n.x||t.y===a&&a===n.y)return`L${s} ${a}`;if(t.y===a){const u=t.x<n.x?-1:1,c=t.y<n.y?1:-1;return`L ${s+i*u},${a}Q ${s},${a} ${s},${a+i*c}`}const o=t.x<n.x?1:-1,l=t.y<n.y?-1:1;return`L ${s},${a+i*l}Q ${s},${a} ${s+i*o},${a}`}function t7({sourceX:t,sourceY:e,sourcePosition:n=kt.Bottom,targetX:r,targetY:i,targetPosition:s=kt.Top,borderRadius:a=5,centerX:o,centerY:l,offset:u=20,stepPosition:c=.5}){const[d,h,m,g,b]=NAt({source:{x:t,y:e},sourcePosition:n,target:{x:r,y:i},targetPosition:s,center:{x:o,y:l},offset:u,stepPosition:c});return[d.reduce((E,x,_)=>{let S="";return _>0&&_<d.length-1?S=OAt(d[_-1],x,d[_+1],a):S=`${_===0?"M":"L"}${x.x} ${x.y}`,E+=S,E},""),h,m,g,b]}function rne(t){return t&&!!(t.internals.handleBounds||t.handles?.length)&&!!(t.measured.width||t.width||t.initialWidth)}function kAt(t){const{sourceNode:e,targetNode:n}=t;if(!rne(e)||!rne(n))return null;const r=e.internals.handleBounds||ine(e.handles),i=n.internals.handleBounds||ine(n.handles),s=sne(r?.source??[],t.sourceHandle),a=sne(t.connectionMode===p0.Strict?i?.target??[]:(i?.target??[]).concat(i?.source??[]),t.targetHandle);if(!s||!a)return t.onError?.("008",bu.error008(s?"target":"source",{id:t.id,sourceHandle:t.sourceHandle,targetHandle:t.targetHandle})),null;const o=s?.position||kt.Bottom,l=a?.position||kt.Top,u=_p(e,s,o),c=_p(n,a,l);return{sourceX:u.x,sourceY:u.y,targetX:c.x,targetY:c.y,sourcePosition:o,targetPosition:l}}function ine(t){if(!t)return null;const e=[],n=[];for(const r of t)r.width=r.width??1,r.height=r.height??1,r.type==="source"?e.push(r):r.type==="target"&&n.push(r);return{source:e,target:n}}function _p(t,e,n=kt.Left,r=!1){const i=(e?.x??0)+t.internals.positionAbsolute.x,s=(e?.y??0)+t.internals.positionAbsolute.y,{width:a,height:o}=e??Kc(t);if(r)return{x:i+a/2,y:s+o/2};switch(e?.position??n){case kt.Top:return{x:i+a/2,y:s};case kt.Right:return{x:i+a,y:s+o/2};case kt.Bottom:return{x:i+a/2,y:s+o};case kt.Left:return{x:i,y:s+o/2}}}function sne(t,e){return t&&(e?t.find(n=>n.id===e):t[0])||null}function n7(t,e){return t?typeof t=="string"?t:`${e?`${e}__`:""}${Object.keys(t).sort().map(r=>`${r}=${t[r]}`).join("&")}`:""}function IAt(t,{id:e,defaultColor:n,defaultMarkerStart:r,defaultMarkerEnd:i}){const s=new Set;return t.reduce((a,o)=>([o.markerStart||r,o.markerEnd||i].forEach(l=>{if(l&&typeof l=="object"){const u=n7(l,e);s.has(u)||(a.push({id:u,color:l.color||n,...l}),s.add(u))}}),a),[]).sort((a,o)=>a.id.localeCompare(o.id))}const Awe=1e3,MAt=10,VH={nodeOrigin:[0,0],nodeExtent:Kv,elevateNodesOnSelect:!0,zIndexMode:"basic",defaults:{}},DAt={...VH,checkEquality:!0};function qH(t,e){const n={...t};for(const r in e)e[r]!==void 0&&(n[r]=e[r]);return n}function PAt(t,e,n){const r=qH(VH,n);for(const i of t.values())if(i.parentId)WH(i,t,e,r);else{const s=wE(i,r.nodeOrigin),a=y0(i.extent)?i.extent:r.nodeExtent,o=Ep(s,a,Kc(i));i.internals.positionAbsolute=o}}function LAt(t,e){if(!t.handles)return t.measured?e?.internals.handleBounds:void 0;const n=[],r=[];for(const i of t.handles){const s={id:i.id,width:i.width??1,height:i.height??1,nodeId:t.id,x:i.x,y:i.y,position:i.position,type:i.type};i.type==="source"?n.push(s):i.type==="target"&&r.push(s)}return{source:n,target:r}}function GH(t){return t==="manual"}function r7(t,e,n,r={}){const i=qH(DAt,r),s={i:0},a=new Map(e),o=i?.elevateNodesOnSelect&&!GH(i.zIndexMode)?Awe:0;let l=t.length>0;e.clear(),n.clear();for(const u of t){let c=a.get(u.id);if(i.checkEquality&&u===c?.internals.userNode)e.set(u.id,c);else{const d=wE(u,i.nodeOrigin),h=y0(u.extent)?u.extent:i.nodeExtent,m=Ep(d,h,Kc(u));c={...i.defaults,...u,measured:{width:u.measured?.width,height:u.measured?.height},internals:{positionAbsolute:m,handleBounds:LAt(u,c),z:Rwe(u,o,i.zIndexMode),userNode:u}},e.set(u.id,c)}(c.measured===void 0||c.measured.width===void 0||c.measured.height===void 0)&&!c.hidden&&(l=!1),u.parentId&&WH(c,e,n,r,s)}return l}function $At(t,e){if(!t.parentId)return;const n=e.get(t.parentId);n?n.set(t.id,t):e.set(t.parentId,new Map([[t.id,t]]))}function WH(t,e,n,r,i){const{elevateNodesOnSelect:s,nodeOrigin:a,nodeExtent:o,zIndexMode:l}=qH(VH,r),u=t.parentId,c=e.get(u);if(!c){console.warn(`Parent node ${u} not found. Please make sure that parent nodes are in front of their child nodes in the nodes array.`);return}$At(t,n),i&&!c.parentId&&c.internals.rootParentIndex===void 0&&l==="auto"&&(c.internals.rootParentIndex=++i.i,c.internals.z=c.internals.z+i.i
vendor: 10,615 bytes, line 209
209*MAt),i&&c.internals.rootParentIndex!==void 0&&(i.i=c.internals.rootParentIndex);const d=s&&!GH(l)?Awe:0,{x:h,y:m,z:g}=FAt(t,c,a,o,d,l),{positionAbsolute:b}=t.internals,v=h!==b.x||m!==b.y;(v||g!==t.internals.z)&&e.set(t.id,{...t,internals:{...t.internals,positionAbsolute:v?{x:h,y:m}:b,z:g}})}function Rwe(t,e,n){const r=nl(t.zIndex)?t.zIndex:0;return GH(n)?r:r+(t.selected?e:0)}function FAt(t,e,n,r,i,s){const{x:a,y:o}=e.internals.positionAbsolute,l=Kc(t),u=wE(t,n),c=y0(t.extent)?Ep(u,t.extent,l):u;let d=Ep({x:a+c.x,y:o+c.y},r,l);t.extent==="parent"&&(d=mwe(d,l,e));const h=Rwe(t,i,s),m=e.internals.z??0;return{x:d.x,y:d.y,z:m>=h?m+1:h}}function YH(t,e,n,r=[0,0]){const i=[],s=new Map;for(const a of t){const o=e.get(a.parentId);if(!o)continue;const l=s.get(a.parentId)?.expandedRect??g0(o),u=ywe(l,a.rect);s.set(a.parentId,{expandedRect:u,parent:o})}return s.size>0&&s.forEach(({expandedRect:a,parent:o},l)=>{const u=o.internals.positionAbsolute,c=Kc(o),d=o.origin??r,h=a.x<u.x?Math.round(Math.abs(u.x-a.x)):0,m=a.y<u.y?Math.round(Math.abs(u.y-a.y)):0,g=Math.max(c.width,Math.round(a.width)),b=Math.max(c.height,Math.round(a.height)),v=(g-c.width)*d[0],E=(b-c.height)*d[1];(h>0||m>0||v||E)&&(i.push({id:l,type:"position",position:{x:o.position.x-h+v,y:o.position.y-m+E}}),n.get(l)?.forEach(x=>{t.some(_=>_.id===x.id)||i.push({id:x.id,type:"position",position:{x:x.position.x+h,y:x.position.y+m}})})),(c.width<a.width||c.height<a.height||h||m)&&i.push({id:l,type:"dimensions",setAttributes:!0,dimensions:{width:g+(h?d[0]*h-v:0),height:b+(m?d[1]*m-E:0)}})}),i}function BAt(t,e,n,r,i,s,a){const o=r?.querySelector(".xyflow__viewport");let l=!1;if(!o)return{changes:[],updatedInternals:l};const u=[],c=window.getComputedStyle(o),{m22:d}=new window.DOMMatrixReadOnly(c.transform),h=[];for(const m of t.values()){const g=e.get(m.id);if(!g)continue;if(g.hidden){e.set(g.id,{...g,internals:{...g.internals,handleBounds:void 0}}),l=!0;continue}const b=zH(m.nodeElement),v=g.measured.width!==b.width||g.measured.height!==b.height;if(!!(b.width&&b.height&&(v||!g.internals.handleBounds||m.force))){const x=m.nodeElement.getBoundingClientRect(),_=y0(g.extent)?g.extent:s;let{positionAbsolute:S}=g.internals;g.parentId&&g.extent==="parent"?S=mwe(S,b,e.get(g.parentId)):_&&(S=Ep(S,_,b));const A={...g,measured:b,internals:{...g.internals,positionAbsolute:S,handleBounds:{source:Jte("source",m.nodeElement,x,d,g.id),target:Jte("target",m.nodeElement,x,d,g.id)}}};e.set(g.id,A),g.parentId&&WH(A,e,n,{nodeOrigin:i,zIndexMode:a}),l=!0,v&&(u.push({id:g.id,type:"dimensions",dimensions:b}),g.expandParent&&g.parentId&&h.push({id:g.id,parentId:g.parentId,rect:g0(A,i)}))}}if(h.length>0){const m=YH(h,e,n,i);u.push(...m)}return{changes:u,updatedInternals:l}}async function HAt({delta:t,panZoom:e,transform:n,translateExtent:r,width:i,height:s}){if(!e||!t.x&&!t.y)return Promise.resolve(!1);const a=await e.setViewportConstrained({x:n[0]+t.x,y:n[1]+t.y,zoom:n[2]},[[0,0],[i,s]],r),o=!!a&&(a.x!==n[0]||a.y!==n[1]||a.k!==n[2]);return Promise.resolve(o)}function ane(t,e,n,r,i,s){let a=i;const o=r.get(a)||new Map;r.set(a,o.set(n,e)),a=`${i}-${t}`;const l=r.get(a)||new Map;if(r.set(a,l.set(n,e)),s){a=`${i}-${t}-${s}`;const u=r.get(a)||new Map;r.set(a,u.set(n,e))}}function Nwe(t,e,n){t.clear(),e.clear();for(const r of n){const{source:i,target:s,sourceHandle:a=null,targetHandle:o=null}=r,l={edgeId:r.id,source:i,target:s,sourceHandle:a,targetHandle:o},u=`${i}-${a}--${s}-${o}`,c=`${s}-${o}--${i}-${a}`;ane("source",l,c,t,i,a),ane("target",l,u,t,s,o),e.set(r.id,r)}}function Owe(t,e){if(!t.parentId)return!1;const n=e.get(t.parentId);return n?n.selected?!0:Owe(n,e):!1}function one(t,e,n){let r=t;do{if(r?.matches?.(e))return!0;if(r===n)return!1;r=r?.parentElement}while(r);return!1}function UAt(t,e,n,r){const i=new Map;for(const[s,a]of t)if((a.selected||a.id===r)&&(!a.parentId||!Owe(a,t))&&(a.draggable||e&&typeof a.draggable>"u")){const o=t.get(s);o&&i.set(s,{id:s,position:o.position||{x:0,y:0},distance:{x:n.x-o.internals.positionAbsolute.x,y:n.y-o.internals.positionAbsolute.y},extent:o.extent,parentId:o.parentId,origin:o.origin,expandParent:o.expandParent,internals:{positionAbsolute:o.internals.positionAbsolute||{x:0,y:0}},measured:{width:o.measured.width??0,height:o.measured.height??0}})}return i}function HO({nodeId:t,dragItems:e,nodeLookup:n,dragging:r=!0}){const i=[];for(const[a,o]of e){const l=n.get(a)?.internals.userNode;l&&i.push({...l,position:o.position,dragging:r})}if(!t)return[i[0],i];const s=n.get(t)?.internals.userNode;return[s?{...s,position:e.get(t)?.position||s.position,dragging:r}:i[0],i]}function jAt({dragItems:t,snapGrid:e,x:n,y:r}){const i=t.values().next().value;if(!i)return null;const s={x:n-i.distance.x,y:r-i.distance.y},a=CE(s,e);return{x:a.x-s.x,y:a.y-s.y}}function zAt({onNodeMouseDown:t,getStoreItems:e,onDragStart:n,onDrag:r,onDragStop:i}){let s={x:null,y:null},a=0,o=new Map,l=!1,u={x:0,y:0},c=null,d=!1,h=null,m=!1,g=!1,b=null;function v({noDragClassName:x,handleSelector:_,domNode:S,isSelectable:A,nodeId:R,nodeClickDistance:T=0}){h=Ua(S);function O({x:B,y:L}){const{nodeLookup:$,nodeExtent:q,snapGrid:F,snapToGrid:G,nodeOrigin:H,onNodeDrag:K,onSelectionDrag:V,onError:Y,updateNodePositions:Z}=e();s={x:B,y:L};let W=!1;const Q=o.size>1,re=Q&&q?e7(SE(o)):null,se=Q&&G?jAt({dragItems:o,snapGrid:F,x:B,y:L}):null;for(const[J,ae]of o){if(!$.has(J))continue;let ge={x:B-ae.distance.x,y:L-ae.distance.y};G&&(ge=se?{x:Math.round(ge.x+se.x),y:Math.round(ge.y+se.y)}:CE(ge,F));let ve=null;if(Q&&q&&!ae.extent&&re){const{positionAbsolute:Ne}=ae.internals,Fe=Ne.x-re.x+q[0][0],Le=Ne.x+ae.measured.width-re.x2+q[1][0],ze=Ne.y-re.y+q[0][1],qe=Ne.y+ae.measured.height-re.y2+q[1][1];ve=[[Fe,ze],[Le,qe]]}const{position:Re,positionAbsolute:xe}=pwe({nodeId:J,nextPosition:ge,nodeLookup:$,nodeExtent:ve||q,nodeOrigin:H,onError:Y});W=W||ae.position.x!==Re.x||ae.position.y!==Re.y,ae.position=Re,ae.internals.positionAbsolute=xe}if(g=g||W,!!W&&(Z(o,!0),b&&(r||K||!R&&V))){const[J,ae]=HO({nodeId:R,dragItems:o,nodeLookup:$});r?.(b,o,J,ae),K?.(b,J,ae),R||V?.(b,ae)}}async function I(){if(!c)return;const{transform:B,panBy:L,autoPanSpeed:$,autoPanOnNodeDrag:q}=e();if(!q){l=!1,cancelAnimationFrame(a);return}const[F,G]=gwe(u,c,$);(F!==0||G!==0)&&(s.x=(s.x??0)-F/B[2],s.y=(s.y??0)-G/B[2],await L({x:F,y:G})&&O(s)),a=requestAnimationFrame(I)}function D(B){const{nodeLookup:L,multiSelectionActive:$,nodesDraggable:q,transform:F,snapGrid:G,snapToGrid:H,selectNodesOnDrag:K,onNodeDragStart:V,onSelectionDragStart:Y,unselectNodesAndEdges:Z}=e();d=!0,(!K||!A)&&!$&&R&&(L.get(R)?.selected||Z()),A&&K&&R&&t?.(R);const W=Lb(B.sourceEvent,{transform:F,snapGrid:G,snapToGrid:H,containerBounds:c});if(s=W,o=UAt(L,q,W,R),o.size>0&&(n||V||!R&&Y)){const[Q,re]=HO({nodeId:R,dragItems:o,nodeLookup:L});n?.(B.sourceEvent,o,Q,re),V?.(B.sourceEvent,Q,re),R||Y?.(B.sourceEvent,re)}}const P=Wxe().clickDistance(T).on("start",B=>{const{domNode:L,nodeDragThreshold:$,transform:q,snapGrid:F,snapToGrid:G}=e();c=L?.getBoundingClientRect()||null,m=!1,g=!1,b=B.sourceEvent,$===0&&D(B),s=Lb(B.sourceEvent,{transform:q,snapGrid:F,snapToGrid:G,containerBounds:c}),u=rl(B.sourceEvent,c)}).on("drag",B=>{const{autoPanOnNodeDrag:L,transform:$,snapGrid:q,snapToGrid:F,nodeDragThreshold:G,nodeLookup:H}=e(),K=Lb(B.sourceEvent,{transform:$,snapGrid:q,snapToGrid:F,containerBounds:c});if(b=B.sourceEvent,(B.sourceEvent.type==="touchmove"&&B.sourceEvent.touches.length>1||R&&!H.has(R))&&(m=!0),!m){if(!l&&L&&d&&(l=!0,I()),!d){const V=rl(B.sourceEvent,c),Y=V.x-u.x,Z=V.y-u.y;Math.sqrt(Y*Y+Z*Z)>G&&D(B)}(s.x!==K.xSnapped||s.y!==K.ySnapped)&&o&&d&&(u=rl(B.sourceEvent,c),O(K))}}).on("end",B=>{if(!(!d||m)&&(l=!1,d=!1,cancelAnimationFrame(a),o.size>0)){const{nodeLookup:L,updateNodePositions:$,onNodeDragStop:q,onSelectionDragStop:F}=e();if(g&&($(o,!1),g=!1),i||q||!R&&F){const[G,H]=HO({nodeId:R,dragItems:o,nodeLookup:L,dragging:!1});i?.(B.sourceEvent,o,G,H),q?.(B.sourceEvent,G,H),R||F?.(B.sourceEvent,H)}}}).filter(B=>{const L=B.target;return!B.button&&(!x||!one(L,`.${x}`,S))&&(!_||one(L,_,S))});h.call(P)}function E(){h?.on(".drag",null)}return{update:v,destroy:E}}function VAt(t,e,n){const r=[],i={x:t.x-n,y:t.y-n,width:n*2,height:n*2};for(const s of e.values())Qv(i,g0(s))>0&&r.push(s);return r}const qAt=250;function GAt(t,e,n,r){let i=[],s=1/0;const a=VAt(t,n,e+qAt);for(const o of a){const l=[...o.internals.handleBounds?.source??[],...o.internals.handleBounds?.target??[]];for(const u of l){if(r.nodeId===u.nodeId&&r.type===u.type&&r.id===u.id)continue;const{x:c,y:d}=_p(o,u,u.position,!0),h=Math.sqrt(Math.pow(c-t.x,2)+Math.pow(d-t.y,2));h>e||(h<s?(i=[{...u,x:c,y:d}],s=h):h===s&&i.push({...u,x:c,y:d}))}}if(!i.length)return null;if(i.length>1){const o=r.type==="source"?"target":"source";return i.find(l=>l.type===o)??i[0]}return i[0]}function kwe(t,e,n,r,i,s=!1){const a=r.get(t);if(!a)return null;const o=i==="strict"?a.internals.handleBounds?.[e]:[...a.internals.handleBounds?.source??[],...a.internals.handleBounds?.target??[]],l=(n?o?.find(u=>u.id===n):o?.[0])??null;return l&&s?{...l,..._p(a,l,l.position,!0)}:l}function Iwe(t,e){return t||(e?.classList.contains("target")?"target":e?.classList.contains("source")?"source":null)}function WAt(t,e){let n=null;return e?n=!0:t&&!e&&(n=!1),n}const Mwe=()=>!0;function YAt(t,{connectionMode:e,connectionRadius:n,handleId:r,nodeId:i,edgeUpdaterType:s,isTarget:a,domNode:o,nodeLookup:l,lib:u,autoPanOnConnect:c,flowId:d,panBy:h,cancelConnection:m,onConnectStart:g,onConnect:b,onConnectEnd:v,isValidConnection:E=Mwe,onReconnectEnd:x,updateConnection:_,getTransform:S,getFromHandle:A,autoPanSpeed:R,dragThreshold:T=1,handleDomNode:O}){const I=Ewe(t.target);let D=0,P;const{x:B,y:L}=rl(t),$=Iwe(s,O),q=o?.getBoundingClientRect();let F=!1;if(!q||!$)return;const G=kwe(i,$,r,l,e);if(!G)return;let H=rl(t,q),K=!1,V=null,Y=!1,Z=null;function W(){if(!c||!q)return;const[Re,xe]=gwe(H,q,R);h({x:Re,y:xe}),D=requestAnimationFrame(W)}const Q={...G,nodeId:i,type:$,position:G.position},re=l.get(i);let J={inProgress:!0,isValid:null,from:_p(re,Q,kt.Left,!0),fromHandle:Q,fromPosition:Q.position,fromNode:re,to:H,toHandle:null,toPosition:Kte[Q.position],toNode:null,pointer:H};function ae(){F=!0,_(J),g?.(t,{nodeId:i,handleId:r,handleType:$})}T===0&&ae();function ge(Re){if(!F){const{x:qe,y:_t}=rl(Re),Ot=qe-B,Lt=_t-L;if(!(Ot*Ot+Lt*Lt>T*T))return;ae()}if(!A()||!Q){ve(Re);return}const xe=S();H=rl(Re,q),P=GAt(TE(H,xe,!1,[1,1]),n,l,Q),K||(W(),K=!0);const Ne=Dwe(Re,{handle:P,connectionMode:e,fromNodeId:i,fromHandleId:r,fromType:a?"target":"source",isValidConnection:E,doc:I,lib:u,flowId:d,nodeLookup:l});
209Z=Ne.handleDomNode,V=Ne.connection,Y=WAt(!!P,Ne.isValid);const Fe=l.get(i),Le=Fe?_p(Fe,Q,kt.Left,!0):J.from,ze={...J,from:Le,isValid:Y,to:Ne.toHandle&&Y?eT({x:Ne.toHandle.x,y:Ne.toHandle.y},xe):H,toHandle:Ne.toHandle,toPosition:Y&&Ne.toHandle?Ne.toHandle.position:Kte[Q.position],toNode:Ne.toHandle?l.get(Ne.toHandle.nodeId):null,pointer:H};_(ze),J=ze}function ve(Re){if(!("touches"in Re&&Re.touches.length>0)){if(F){(P||Z)&&V&&Y&&b?.(V);const{inProgress:xe,...Ne}=J,Fe={...Ne,toPosition:J.toHandle?J.toPosition:null};v?.(Re,Fe),s&&x?.(Re,Fe)}m(),cancelAnimationFrame(D),K=!1,Y=!1,V=null,Z=null,I.removeEventListener("mousemove",ge),I.removeEventListener("mouseup",ve),I.removeEventListener("touchmove",ge),I.removeEventListener("touchend",ve)}}I.addEventListener("mousemove",ge),I.addEventListener("mouseup",ve),I.addEventListener("touchmove",ge),I.addEventListener("touchend",ve)}function Dwe(t,{handle:e,connectionMode:n,fromNodeId:r,fromHandleId:i,fromType:s,doc:a,lib:o,flowId:l,isValidConnection:u=Mwe,nodeLookup:c}){const d=s==="target",h=e?a.querySelector(`.${o}-flow__handle[data-id="${l}-${e?.nodeId}-${e?.id}-${e?.type}"]`):null,{x:m,y:g}=rl(t),b=a.elementFromPoint(m,g),v=b?.classList.contains(`${o}-flow__handle`)?b:h,E={handleDomNode:v,isValid:!1,connection:null,toHandle:null};if(v){const x=Iwe(void 0,v),_=v.getAttribute("data-nodeid"),S=v.getAttribute("data-handleid"),A=v.classList.contains("connectable"),R=v.classList.contains("connectableend");if(!_||!x)return E;const T={source:d?_:r,sourceHandle:d?S:i,target:d?r:_,targetHandle:d?i:S};E.connection=T;const I=A&&R&&(n===p0.Strict?d&&x==="source"||!d&&x==="target":_!==r||S!==i);E.isValid=I&&u(T),E.toHandle=kwe(_,x,S,c,n,!0)}return E}const i7={onPointerDown:YAt,isValid:Dwe};function KAt({domNode:t,panZoom:e,getTransform:n,getViewScale:r}){const i=Ua(t);function s({translateExtent:o,width:l,height:u,zoomStep:c=1,pannable:d=!0,zoomable:h=!0,inversePan:m=!1}){const g=_=>{if(_.sourceEvent.type!=="wheel"||!e)return;const S=n(),A=_.sourceEvent.ctrlKey&&Zv()?10:1,R=-_.sourceEvent.deltaY*(_.sourceEvent.deltaMode===1?.05:_.sourceEvent.deltaMode?1:.002)*c,T=S[2]*Math.pow(2,R*A);e.scaleTo(T)};let b=[0,0];const v=_=>{(_.sourceEvent.type==="mousedown"||_.sourceEvent.type==="touchstart")&&(b=[_.sourceEvent.clientX??_.sourceEvent.touches[0].clientX,_.sourceEvent.clientY??_.sourceEvent.touches[0].clientY])},E=_=>{const S=n();if(_.sourceEvent.type!=="mousemove"&&_.sourceEvent.type!=="touchmove"||!e)return;const A=[_.sourceEvent.clientX??_.sourceEvent.touches[0].clientX,_.sourceEvent.clientY??_.sourceEvent.touches[0].clientY],R=[A[0]-b[0],A[1]-b[1]];b=A;const T=r()*Math.max(S[2],Math.log(S[2]))*(m?-1:1),O={x:S[0]-R[0]*T,y:S[1]-R[1]*T},I=[[0,0],[l,u]];e.setViewportConstrained({x:O.x,y:O.y,zoom:S[2]},I,o)},x=lwe().on("start",v).on("zoom",d?E:null).on("zoom.wheel",h?g:null);i.call(x,{})}function a(){i.on("zoom",null)}return{update:s,destroy:a,pointer:Ko}}const AA=t=>({x:t.x,y:t.y,zoom:t.k}),UO=({x:t,y:e,zoom:n})=>SA.translate(t,e).scale(n),dg=(t,e)=>t.target.closest(`.${e}`),Pwe=(t,e)=>e===2&&Array.isArray(t)&&t.includes(2),XAt=t=>((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2,jO=(t,e=0,n=XAt,r=()=>{})=>{const i=typeof e=="number"&&e>0;return i||r(),i?t.transition().duration(e).ease(n).on("end",r):t},Lwe=t=>{const e=t.ctrlKey&&Zv()?10:1;return-t.deltaY*(t.deltaMode===1?.05:t.deltaMode?1:.002)*e};function QAt({zoomPanValues:t,noWheelClassName:e,d3Selection:n,d3Zoom:r,panOnScrollMode:i,panOnScrollSpeed:s,zoomOnPinch:a,onPanZoomStart:o,onPanZoom:l,onPanZoomEnd:u}){return c=>{if(dg(c,e))return c.ctrlKey&&c.preventDefault(),!1;c.preventDefault(),c.stopImmediatePropagation();const d=n.property("__zoom").k||1;if(c.ctrlKey&&a){const v=Ko(c),E=Lwe(c),x=d*Math.pow(2,E);r.scaleTo(n,x,v,c);return}const h=c.deltaMode===1?20:1;let m=i===Hh.Vertical?0:c.deltaX*h,g=i===Hh.Horizontal?0:c.deltaY*h;!Zv()&&c.shiftKey&&i!==Hh.Vertical&&(m=c.deltaY*h,g=0),r.translateBy(n,-(m/d)*s,-(g/d)*s,{internal:!0});const b=AA(n.property("__zoom"));clearTimeout(t.panScrollTimeout),t.isPanScrolling?(l?.(c,b),t.panScrollTimeout=setTimeout(()=>{u?.(c,b),t.isPanScrolling=!1},150)):(t.isPanScrolling=!0,o?.(c,b))}}function ZAt({noWheelClassName:t,preventScrolling:e,d3ZoomHandler:n}){return function(r,i){const s=r.type==="wheel",a=!e&&s&&!r.ctrlKey,o=dg(r,t);if(r.ctrlKey&&s&&o&&r.preventDefault(),a||o)return null;r.preventDefault(),n.call(this,r,i)}}function JAt({zoomPanValues:t,onDraggingChange:e,onPanZoomStart:n}){return r=>{if(r.sourceEvent?.internal)return;const i=AA(r.transform);
209t.mouseButton=r.sourceEvent?.button||0,t.isZoomingOrPanning=!0,t.prevViewport=i,r.sourceEvent?.type==="mousedown"&&e(!0),n&&n?.(r.sourceEvent,i)}}function e5t({zoomPanValues:t,panOnDrag:e,onPaneContextMenu:n,onTransformChange:r,onPanZoom:i}){return s=>{t.usedRightMouseButton=!!(n&&Pwe(e,t.mouseButton??0)),s.sourceEvent?.sync||r([s.transform.x,s.transform.y,s.transform.k]),i&&!s.sourceEvent?.internal&&i?.(s.sourceEvent,AA(s.transform))}}function t5t({zoomPanValues:t,panOnDrag:e,panOnScroll:n,onDraggingChange:r,onPanZoomEnd:i,onPaneContextMenu:s}){return a=>{if(!a.sourceEvent?.internal&&(t.isZoomingOrPanning=!1,s&&Pwe(e,t.mouseButton??0)&&!t.usedRightMouseButton&&a.sourceEvent&&s(a.sourceEvent),t.usedRightMouseButton=!1,r(!1),i)){const o=AA(a.transform);t.prevViewport=o,clearTimeout(t.timerId),t.timerId=setTimeout(()=>{i?.(a.sourceEvent,o)},n?150:0)}}}function n5t({zoomActivationKeyPressed:t,zoomOnScroll:e,zoomOnPinch:n,panOnDrag:r,panOnScroll:i,zoomOnDoubleClick:s,userSelectionActive:a,noWheelClassName:o,noPanClassName:l,lib:u,connectionInProgress:c}){return d=>{const h=t||e,m=n&&d.ctrlKey,g=d.type==="wheel";if(d.button===1&&d.type==="mousedown"&&(dg(d,`${u}-flow__node`)||dg(d,`${u}-flow__edge`)))return!0;if(!r&&!h&&!i&&!s&&!n||a||c&&!g||dg(d,o)&&g||dg(d,l)&&(!g||i&&g&&!t)||!n&&d.ctrlKey&&g)return!1;if(!n&&d.type==="touchstart"&&d.touches?.length>1)return d.preventDefault(),!1;if(!h&&!i&&!m&&g||!r&&(d.type==="mousedown"||d.type==="touchstart")||Array.isArray(r)&&!r.includes(d.button)&&d.type==="mousedown")return!1;const b=Array.isArray(r)&&r.includes(d.button)||!d.button||d.button<=1;return(!d.ctrlKey||g)&&b}}function r5t({domNode:t,minZoom:e,maxZoom:n,translateExtent:r,viewport:i,onPanZoom:s,onPanZoomStart:a,onPanZoomEnd:o,onDraggingChange:l}){const u={isZoomingOrPanning:!1,usedRightMouseButton:!1,prevViewport:{},mouseButton:0,timerId:void 0,panScrollTimeout:void 0,isPanScrolling:!1},c=t.getBoundingClientRect(),d=lwe().scaleExtent([e,n]).translateExtent(r),h=Ua(t).call(d);x({x:i.x,y:i.y,zoom:m0(i.zoom,e,n)},[[0,0],[c.width,c.height]],r);const m=h.on("wheel.zoom"),g=h.on("dblclick.zoom");d.wheelDelta(Lwe);function b(P,B){return h?new Promise(L=>{d?.interpolate(B?.interpolate==="linear"?Pb:rS).transform(jO(h,B?.duration,B?.ease,()=>L(!0)),P)}):Promise.resolve(!1)}function v({noWheelClassName:P,noPanClassName:B,onPaneContextMenu:L,userSelectionActive:$,panOnScroll:q,panOnDrag:F,panOnScrollMode:G,panOnScrollSpeed:H,preventScrolling:K,zoomOnPinch:V,zoomOnScroll:Y,zoomOnDoubleClick:Z,zoomActivationKeyPressed:W,lib:Q,onTransformChange:re,connectionInProgress:se,paneClickDistance:J,selectionOnDrag:ae}){$&&!u.isZoomingOrPanning&&E();const ge=q&&!W&&!$;d.clickDistance(ae?1/0:!nl(J)||J<0?0:J);const ve=ge?QAt({zoomPanValues:u,noWheelClassName:P,d3Selection:h,d3Zoom:d,panOnScrollMode:G,panOnScrollSpeed:H,zoomOnPinch:V,onPanZoomStart:a,onPanZoom:s,onPanZoomEnd:o}):ZAt({noWheelClassName:P,preventScrolling:K,d3ZoomHandler:m});if(h.on("wheel.zoom",ve,{passive:!1}),!$){const xe=JAt({zoomPanValues:u,onDraggingChange:l,onPanZoomStart:a});d.on("start",xe);const Ne=e5t({zoomPanValues:u,panOnDrag:F,onPaneContextMenu:!!L,onPanZoom:s,onTransformChange:re});d.on("zoom",Ne);const Fe=t5t({zoomPanValues:u,panOnDrag:F,panOnScroll:q,onPaneContextMenu:L,onPanZoomEnd:o,onDraggingChange:l});d.on("end",Fe)}const Re=n5t({zoomActivationKeyPressed:W,panOnDrag:F,zoomOnScroll:Y,panOnScroll:q,zoomOnDoubleClick:Z,zoomOnPinch:V,userSelectionActive:$,noPanClassName:B,noWheelClassName:P,lib:Q,connectionInProgress:se});d.filter(Re),Z?h.on("dblclick.zoom",g):h.on("dblclick.zoom",null)}function E(){d.on("zoom",null)}async function x(P,B,L){const $=UO(P),q=d?.constrain()($,B,L);return q&&await b(q),new Promise(F=>F(q))}async function _(P,B){const L=UO(P);return await b(L,B),new Promise($=>$(L))}function S(P){if(h){const B=UO(P),L=h.property("__zoom");(L.k!==P.zoom||L.x!==P.x||L.y!==P.y)&&d?.transform(h,B,null,{sync:!0})}}function A(){const P=h?owe(h.node()):{x:0,y:0,k:1};return{x:P.x,y:P.y,zoom:P.k}}function R(P,B){return h?new Promise(L=>{d?.interpolate(B?.interpolate==="linear"?Pb:rS).scaleTo(jO(h,B?.duration,B?.ease,()=>L(!0)),P)}):Promise.resolve(!1)}function T(P,B){return h?new Promise(L=>{d?.interpolate(B?.interpolate==="linear"?Pb:rS).scaleBy(jO(h,B?.duration,B?.ease,()=>L(!0)),P)}):Promise.resolve(!1)}function O(P){d?.scaleExtent(P)}function I(P){d?.translateExtent(P)}function D(P){const B=!nl(P)||P<0?0:P;d?.clickDistance(B)}return{update:v,destroy:E,setViewport:_,setViewportConstrained:x,getViewport:A,scaleTo:R,scaleBy:T,setScaleExtent:O,setTranslateExtent:I,syncViewport:S,setClickDistance:D}}var b0;(function(t){t.Line="line",t.Handle="handle"})(b0||(b0={}));function i5t({width:t,prevWidth:e,height:n,prevHeight:r,affectsX:i,affectsY:s}){const a=t-e,o=n-r,l=[a>0?1:a<0?-1:0,o>0?1:o<0?-1:0];return a&&i&&(l[0]=l[0]*-1),o&&s&&(l[1]=l[1]*-1),l}function lne(t){const e=t.includes("right")||t.includes("left"),n=t.includes("bottom")||t.includes("top"),r=t.includes("left"),i=t.includes("top");return{isHorizontal:e,isVertical:n,affectsX:r,affectsY:i}}function Ad(t,e){return Math.max(0,e-t)}function Rd(t,e){return Math.max(0,t-e)}function ow(t,e,n){return Math.max(0,e-t,t-n)}function une(t,e){return t?!e:e}function s5t(t,e,n,r,i,s,a,o){let{affectsX:l,affectsY:u}=e;const{isHorizontal:c,isVertical:d}=e,h=c&&d,{xSnapped:m,ySnapped:g}=n,{minWidth:b,maxWidth:v,minHeight:E,maxHeight:x}=r,{x:_,y:S,width:A,height:R,aspectRatio:T}=t;let O=Math.floor(c?m-t.pointerX:0),I=Math.floor(d?g-t.pointerY:0);const D=A+(l?-O:O),P=R+(u?-I:I),B=-s[0]*A,L=-s[1]*R;
209let $=ow(D,b,v),q=ow(P,E,x);if(a){let H=0,K=0;l&&O<0?H=Ad(_+O+B,a[0][0]):!l&&O>0&&(H=Rd(_+D+B,a[1][0])),u&&I<0?K=Ad(S+I+L,a[0][1]):!u&&I>0&&(K=Rd(S+P+L,a[1][1])),$=Math.max($,H),q=Math.max(q,K)}if(o){let H=0,K=0;l&&O>0?H=Rd(_+O,o[0][0]):!l&&O<0&&(H=Ad(_+D,o[1][0])),u&&I>0?K=Rd(S+I,o[0][1]):!u&&I<0&&(K=Ad(S+P,o[1][1])),$=Math.max($,H),q=Math.max(q,K)}if(i){if(c){const H=ow(D/T,E,x)*T;if($=Math.max($,H),a){let K=0;!l&&!u||l&&!u&&h?K=Rd(S+L+D/T,a[1][1])*T:K=Ad(S+L+(l?O:-O)/T,a[0][1])*T,$=Math.max($,K)}if(o){let K=0;!l&&!u||l&&!u&&h?K=Ad(S+D/T,o[1][1])*T:K=Rd(S+(l?O:-O)/T,o[0][1])*T,$=Math.max($,K)}}if(d){const H=ow(P*T,b,v)/T;if(q=Math.max(q,H),a){let K=0;!l&&!u||u&&!l&&h?K=Rd(_+P*T+B,a[1][0])/T:K=Ad(_+(u?I:-I)*T+B,a[0][0])/T,q=Math.max(q,K)}if(o){let K=0;!l&&!u||u&&!l&&h?K=Ad(_+P*T,o[1][0])/T:K=Rd(_+(u?I:-I)*T,o[0][0])/T,q=Math.max(q,K)}}}I=I+(I<0?q:-q),O=O+(O<0?$:-$),i&&(h?D>P*T?I=(une(l,u)?-O:O)/T:O=(une(l,u)?-I:I)*T:c?(I=O/T,u=l):(O=I*T,l=u));const F=l?_+O:_,G=u?S+I:S;return{width:A+(l?-O:O),height:R+(u?-I:I),x:s[0]*O*(l?-1:1)+F,y:s[1]*I*(u?-1:1)+G}}const $we={width:0,height:0,x:0,y:0},a5t={...$we,pointerX:0,pointerY:0,aspectRatio:1};function o5t(t){return[[0,0],[t.measured.width,t.measured.height]]}function l5t(t,e,n){const r=e.position.x+t.position.x,i=e.position.y+t.position.y,s=t.measured.width??0,a=t.measured.height??0,o=n[0]*s,l=n[1]*a;return[[r-o,i-l],[r+s-o,i+a-l]]}function u5t({domNode:t,nodeId:e,getStoreItems:n,onChange:r,onEnd:i}){const s=Ua(t);let a={controlDirection:lne("bottom-right"),boundaries:{minWidth:0,minHeight:0,maxWidth:Number.MAX_VALUE,maxHeight:Number.MAX_VALUE},resizeDirection:void 0,keepAspectRatio:!1};function o({controlPosition:u,boundaries:c,keepAspectRatio:d,resizeDirection:h,onResizeStart:m,onResize:g,onResizeEnd:b,shouldResize:v}){let E={...$we},x={...a5t};a={boundaries:c,resizeDirection:h,keepAspectRatio:d,controlDirection:lne(u)};let _,S=null,A=[],R,T,O,I=!1;const D=Wxe().on("start",P=>{const{nodeLookup:B,transform:L,snapGrid:$,snapToGrid:q,nodeOrigin:F,paneDomNode:G}=n();if(_=B.get(e),!_)return;S=G?.getBoundingClientRect()??null;const{xSnapped:H,ySnapped:K}=Lb(P.sourceEvent,{transform:L,snapGrid:$,snapToGrid:q,containerBounds:S});E={width:_.measured.width??0,height:_.measured.height??0,x:_.position.x??0,y:_.position.y??0},x={...E,pointerX:H,pointerY:K,aspectRatio:E.width/E.height},R=void 0,_.parentId&&(_.extent==="parent"||_.expandParent)&&(R=B.get(_.parentId),T=R&&_.extent==="parent"?o5t(R):void 0),A=[],O=void 0;for(const[V,Y]of B)if(Y.parentId===e&&(A.push({id:V,position:{...Y.position},extent:Y.extent}),Y.extent==="parent"||Y.expandParent)){const Z=l5t(Y,_,Y.origin??F);O?O=[[Math.min(Z[0][0],O[0][0]),Math.min(Z[0][1],O[0][1])],[Math.max(Z[1][0],O[1][0]),Math.max(Z[1][1],O[1][1])]]:O=Z}m?.(P,{...E})}).on("drag",P=>
209{const{transform:B,snapGrid:L,snapToGrid:$,nodeOrigin:q}=n(),F=Lb(P.sourceEvent,{transform:B,snapGrid:L,snapToGrid:$,containerBounds:S}),G=[];if(!_)return;const{x:H,y:K,width:V,height:Y}=E,Z={},W=_.origin??q,{width:Q,height:re,x:se,y:J}=s5t(x,a.controlDirection,F,a.boundaries,a.keepAspectRatio,W,T,O),ae=Q!==V,ge=re!==Y,ve=se!==H&&ae,Re=J!==K&≥if(!ve&&!Re&&!ae&&!ge)return;if((ve||Re||W[0]===1||W[1]===1)&&(Z.x=ve?se:E.x,Z.y=Re?J:E.y,E.x=Z.x,E.y=Z.y,A.length>0)){const Le=se-H,ze=J-K;for(const qe of A)qe.position={x:qe.position.x-Le+W[0]*(Q-V),y:qe.position.y-ze+W[1]*(re-Y)},G.push(qe)}if((ae||ge)&&(Z.width=ae&&(!a.resizeDirection||a.resizeDirection==="horizontal")?Q:E.width,Z.height=ge&&(!a.resizeDirection||a.resizeDirection==="vertical")?re:E.height,E.width=Z.width,E.height=Z.height),R&&_.expandParent){const Le=W[0]*(Z.width??0);Z.x&&Z.x<Le&&(E.x=Le,x.x=x.x-(Z.x-Le));const ze=W[1]*(Z.height??0);Z.y&&Z.y<ze&&(E.y=ze,x.y=x.y-(Z.y-ze))}const xe=i5t({width:E.width,prevWidth:V,height:E.height,prevHeight:Y,affectsX:a.controlDirection.affectsX,affectsY:a.controlDirection.affectsY}),Ne={...E,direction:xe};v?.(P,Ne)!==!1&&(I=!0,g?.(P,Ne),r(Z,G))}).on("end",P=>{I&&(b?.(P,{...E}),i?.({...E}),I=!1)});s.call(D)}function l(){s.on(".drag",null)}return{update:o,destroy:l}}var zO={exports:{}},VO={};var cne;function c5t(){if(cne)return VO;cne=1;var t=t2(),e=kce();function n(u,c){return u===c&&(u!==0||1/u===1/c)||u!==u&&c!==c}var r=typeof Object.is=="function"?Object.is:n,i=e.useSyncExternalStore,s=t.useRef,a=t.useEffect,o=t.useMemo,l=t.useDebugValue;return VO.useSyncExternalStoreWithSelector=function(u,c,d,h,m){var g=s(null);if(g.current===null){var b={hasValue:!1,value:null};g.current=b}else b=g.current;g=o(function(){function E(R){if(!x){if(x=!0,_=R,R=h(R),m!==void 0&&b.hasValue){var T=b.value;if(m(T,R))return S=T}return S=R}if(T=S,r(_,R))return T;var O=h(R);return m!==void 0&&m(T,O)?(_=R,T):(_=R,S=O)}var x=!1,_,S,A=d===void 0?null:d;return[function(){return E(c())},A===null?void 0:function(){return E(A())}]},[c,d,h,m]);var v=i(u,g[0],g[1]);return a(function(){b.hasValue=!0,b.value=v},[v]),l(v),v},VO}var dne;function d5t(){return dne||(dne=1,zO.exports=c5t()),zO.exports}var f5t=d5t();const h5t=ys(f5t),p5t={LEGACY:!1},fne=t=>{let e;const n=new Set,r=(c,d)=>{const h=typeof c=="function"?c(e):c;if(!Object.is(h,e)){const m=e;e=d??(typeof h!="object"||h===null)?h:Object.assign({},e,h),n.forEach(g=>g(e,m))}},i=()=>e,l={setState:r,getState:i,getInitialState:()=>u,subscribe:c=>(n.add(c),()=>n.delete(c)),destroy:()=>{(p5t?"production":void 0)!=="production"&&console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),n.clear()}},u=e=t(r,i,l);return l},m5t=t=>t?fne(t):fne,{useDebugValue:g5t}=U,{useSyncExternalStoreWithSelector:y5t}=h5t,b5t=t=>t;function Fwe(t,e=b5t,n){const r=y5t(t.subscribe,t.getState,t.getServerState||t.getInitialState,e,n);return g5t(r),r}const hne=(t,e)=>{const n=m5t(t),r=(i,s=e)=>Fwe(n,i,s);return Object.assign(r,n),r},v5t=(t,e)=>t?hne(t,e):hne;function Cr(t,e){if(Object.is(t,e))return!0;if(typeof t!="object"||t===null||typeof e!="object"||e===null)return!1;if(t instanceof Map&&e instanceof Map){if(t.size!==e.size)return!1;for(const[r,i]of t)if(!Object.is(i,e.get(r)))return!1;return!0}if(t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(const r of t)if(!e.has(r))return!1;return!0}const n=Object.keys(t);if(n.length!==Object.keys(e).length)return!1;for(const r of n)if(!Object.prototype.hasOwnProperty.call(e,r)||!Object.is(t[r],e[r]))return!1;return!0}const RA=C.createContext(null),E5t=RA.Provider,Bwe=bu.error001();function Rn(t,e){const n=C.useContext(RA);if(n===null)throw new Error(Bwe);return Fwe(n,t,e)}function Tr(){const t=C.useContext(RA);if(t===null)throw new Error(Bwe);return C.useMemo(()=>({getState:t.getState,setState:t.setState,subscribe:t.subscribe}),[t])}const pne={display:"none"},_5t={position:"absolute",width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0px, 0px, 0px, 0px)",clipPath:"inset(100%)"}
vendor: 4,266 bytes, line 209
209,Hwe="react-flow__node-desc",Uwe="react-flow__edge-desc",x5t="react-flow__aria-live",w5t=t=>t.ariaLiveMessage,S5t=t=>t.ariaLabelConfig;function C5t({rfId:t}){const e=Rn(w5t);return j.jsx("div",{id:`${x5t}-${t}`,"aria-live":"assertive","aria-atomic":"true",style:_5t,children:e})}function T5t({rfId:t,disableKeyboardA11y:e}){const n=Rn(S5t);return j.jsxs(j.Fragment,{children:[j.jsx("div",{id:`${Hwe}-${t}`,style:pne,children:e?n["node.a11yDescription.default"]:n["node.a11yDescription.keyboardDisabled"]}),j.jsx("div",{id:`${Uwe}-${t}`,style:pne,children:n["edge.a11yDescription.default"]}),!e&&j.jsx(C5t,{rfId:t})]})}const NA=C.forwardRef(({position:t="top-left",children:e,className:n,style:r,...i},s)=>{const a=`${t}`.split("-");return j.jsx("div",{className:vi(["react-flow__panel",n,...a]),style:r,ref:s,...i,children:e})});NA.displayName="Panel";function A5t({proOptions:t,position:e="bottom-right"}){return t?.hideAttribution?null:j.jsx(NA,{position:e,className:"react-flow__attribution","data-message":"Please only hide this attribution when you are subscribed to React Flow Pro: https://pro.reactflow.dev",children:j.jsx("a",{href:"https://reactflow.dev",target:"_blank",rel:"noopener noreferrer","aria-label":"React Flow attribution",children:"React Flow"})})}const R5t=t=>{const e=[],n=[];for(const[,r]of t.nodeLookup)r.selected&&e.push(r.internals.userNode);for(const[,r]of t.edgeLookup)r.selected&&n.push(r);return{selectedNodes:e,selectedEdges:n}},lw=t=>t.id;function N5t(t,e){return Cr(t.selectedNodes.map(lw),e.selectedNodes.map(lw))&&Cr(t.selectedEdges.map(lw),e.selectedEdges.map(lw))}function O5t({onSelectionChange:t}){const e=Tr(),{selectedNodes:n,selectedEdges:r}=Rn(R5t,N5t);return C.useEffect(()=>{const i={nodes:n,edges:r};t?.(i),e.getState().onSelectionChangeHandlers.forEach(s=>s(i))},[n,r,t]),null}const k5t=t=>!!t.onSelectionChangeHandlers;function I5t({onSelectionChange:t}){const e=Rn(k5t);return t||e?j.jsx(O5t,{onSelectionChange:t}):null}const jwe=[0,0],M5t={x:0,y:0,zoom:1},D5t=["nodes","edges","defaultNodes","defaultEdges","onConnect","onConnectStart","onConnectEnd","onClickConnectStart","onClickConnectEnd","nodesDraggable","autoPanOnNodeFocus","nodesConnectable","nodesFocusable","edgesFocusable","edgesReconnectable","elevateNodesOnSelect","elevateEdgesOnSelect","minZoom","maxZoom","nodeExtent","onNodesChange","onEdgesChange","elementsSelectable","connectionMode","snapGrid","snapToGrid","translateExtent","connectOnClick","defaultEdgeOptions","fitView","fitViewOptions","onNodesDelete","onEdgesDelete","onDelete","onNodeDrag","onNodeDragStart","onNodeDragStop","onSelectionDrag","onSelectionDragStart","onSelectionDragStop","onMoveStart","onMove","onMoveEnd","noPanClassName","nodeOrigin","autoPanOnConnect","autoPanOnNodeDrag","onError","connectionRadius","isValidConnection","selectNodesOnDrag","nodeDragThreshold","connectionDragThreshold","onBeforeDelete","debug","autoPanSpeed","ariaLabelConfig","zIndexMode"],mne=[...D5t,"rfId"],P5t=t=>({setNodes:t.setNodes,setEdges:t.setEdges,setMinZoom:t.setMinZoom,setMaxZoom:t.setMaxZoom,setTranslateExtent:t.setTranslateExtent,setNodeExtent:t.setNodeExtent,reset:t.reset,setDefaultNodesAndEdges:t.setDefaultNodesAndEdges}),gne={translateExtent:Kv,nodeOrigin:jwe,minZoom:.5,maxZoom:2,elementsSelectable:!0,noPanClassName:"nopan",rfId:"1"};function L5t(t){const{setNodes:e,setEdges:n,setMinZoom:r,setMaxZoom:i,setTranslateExtent:s,setNodeExtent:a,reset:o,setDefaultNodesAndEdges:l}=Rn(P5t,Cr),u=Tr();C.useEffect(()=>(l(t.defaultNodes,t.defaultEdges),()=>{c.current=gne,o()}),[]);const c=C.useRef(gne);return C.useEffect(()=>{for(const d of mne){const h=t[d],m=c.current[d];h!==m&&(typeof t[d]>"u"||(d==="nodes"?e(h):d==="edges"?n(h):d==="minZoom"?r(h):d==="maxZoom"?i(h):d==="translateExtent"?s(h):d==="nodeExtent"?a(h):d==="ariaLabelConfig"?u.setState({ariaLabelConfig:_At(h)}):d==="fitView"?u.setState({fitViewQueued:h}):d==="fitViewOptions"?u.setState({fitViewOptions:h}):u.setState({[d]:h})))}c.current=t},mne.map(d=>t[d])),null}function yne(){return typeof window>"u"||!window.matchMedia?null:window.matchMedia("(prefers-color-scheme: dark)")}function $5t(t){const[e,n]=C.useState(t==="system"?null:t);return C.useEffect(()=>{if(t!=="system"){n(t);return}const r=yne(),i=()=>
209n(r?.matches?"dark":"light");return i(),r?.addEventListener("change",i),()=>{r?.removeEventListener("change",i)}},[t]),e!==null?e:yne()?.matches?"dark":"light"}const bne=typeof document<"u"?document:null;function Jv(t=null,e={target:bne,actInsideInputWithModifier:!0}){const[n,r]=C.useState(!1),i=C.useRef(!1),s=C.useRef(new Set([])),[a,o]=C.useMemo(()=>{if(t!==null){const u=(Array.isArray(t)?t:[t]).filter(d=>typeof d=="string").map(d=>d.replace("+",` 210`).replace(` 211 212`,` 213+`).split(` 214`)),c=u.reduce((d,h)=>d.concat(...h),[]);return[u,c]}return[[],[]]},[t]);return C.useEffect(()=>{const l=e?.target??bne,u=e?.actInsideInputWithModifier??!0;if(t!==null){const c=m=>{if(i.current=m.ctrlKey||m.metaKey||m.shiftKey||m.altKey,(!i.current||i.current&&!u)&&_we(m))return!1;const b=Ene(m.code,o);if(s.current.add(m[b]),vne(a,s.current,!1)){const v=m.composedPath?.()?.[0]||m.target,E=v?.nodeName==="BUTTON"||v?.nodeName==="A";e.preventDefault!==!1&&(i.current||!E)&&m.preventDefault(),r(!0)}},d=m=>{const g=Ene(m.code,o);vne(a,s.current,!0)?(r(!1),s.current.clear()):s.current.delete(m[g]),m.key==="Meta"&&s.current.clear(),i.current=!1},h=()=>{s.current.clear(),r(!1)};return l?.addEventListener("keydown",c),l?.addEventListener("keyup",d),window.addEventListener("blur",h),window.addEventListener("contextmenu",h),()=>{l?.removeEventListener("keydown",c),l?.removeEventListener("keyup",d),window.removeEventListener("blur",h),window.removeEventListener("contextmenu",h)}}},[t,r]),n}function vne(t,e,n){return t.filter(r=>n||r.length===e.size).some(r=>r.every(i=>e.has(i)))}function Ene(t,e){return e.includes(t)?"code":"key"}const F5t=()=>{const t=Tr();return C.useMemo(()=>({zoomIn:e=>{const{panZoom:n}=t.getState();return n?n.scaleBy(1.2,{duration:e?.duration}):Promise.resolve(!1)},zoomOut:e=>{const{panZoom:n}=t.getState();return n?n.scaleBy(1/1.2,{duration:e?.duration}):Promise.resolve(!1)},zoomTo:(e,n)=>{const{panZoom:r}=t.getState();return r?r.scaleTo(e,{duration:n?.duration}):Promise.resolve(!1)},getZoom:()=>t.getState().transform[2],setViewport:async(e,n)=>{const{transform:[r,i,s],panZoom:a}=t.getState();return a?(await a.setViewport({x:e.x??r,y:e.y??i,zoom:e.zoom??s},n),Promise.resolve(!0)):Promise.resolve(!1)},getViewport:()=>{const[e,n,r]=t.getState().transform;return{x:e,y:n,zoom:r}},setCenter:async(e,n,r)=>t.getState().setCenter(e,n,r),fitBounds:async(e,n)=>{const{width:r,height:i,minZoom:s,maxZoom:a,panZoom:o}=t.getState(),l=jH(e,r,i,s,a,n?.padding??.1);return o?(await o.setViewport(l,{duration:n?.duration,ease:n?.ease,interpolate:n?.interpolate}),Promise.resolve(!0)):Promise.resolve(!1)},screenToFlowPosition:(e,n={})=>
vendor: 11,576 bytes, line 214
214{const{transform:r,snapGrid:i,snapToGrid:s,domNode:a}=t.getState();if(!a)return e;const{x:o,y:l}=a.getBoundingClientRect(),u={x:e.x-o,y:e.y-l},c=n.snapGrid??i,d=n.snapToGrid??s;return TE(u,r,d,c)},flowToScreenPosition:e=>{const{transform:n,domNode:r}=t.getState();if(!r)return e;const{x:i,y:s}=r.getBoundingClientRect(),a=eT(e,n);return{x:a.x+i,y:a.y+s}}}),[])};function zwe(t,e){const n=[],r=new Map,i=[];for(const s of t)if(s.type==="add"){i.push(s);continue}else if(s.type==="remove"||s.type==="replace")r.set(s.id,[s]);else{const a=r.get(s.id);a?a.push(s):r.set(s.id,[s])}for(const s of e){const a=r.get(s.id);if(!a){n.push(s);continue}if(a[0].type==="remove")continue;if(a[0].type==="replace"){n.push({...a[0].item});continue}const o={...s};for(const l of a)B5t(l,o);n.push(o)}return i.length&&i.forEach(s=>{s.index!==void 0?n.splice(s.index,0,{...s.item}):n.push({...s.item})}),n}function B5t(t,e){switch(t.type){case"select":{e.selected=t.selected;break}case"position":{typeof t.position<"u"&&(e.position=t.position),typeof t.dragging<"u"&&(e.dragging=t.dragging);break}case"dimensions":{typeof t.dimensions<"u"&&(e.measured={...t.dimensions},t.setAttributes&&((t.setAttributes===!0||t.setAttributes==="width")&&(e.width=t.dimensions.width),(t.setAttributes===!0||t.setAttributes==="height")&&(e.height=t.dimensions.height))),typeof t.resizing=="boolean"&&(e.resizing=t.resizing);break}}}function H5t(t,e){return zwe(t,e)}function U5t(t,e){return zwe(t,e)}function oh(t,e){return{id:t,type:"select",selected:e}}function fg(t,e=new Set,n=!1){const r=[];for(const[i,s]of t){const a=e.has(i);!(s.selected===void 0&&!a)&&s.selected!==a&&(n&&(s.selected=a),r.push(oh(s.id,a)))}return r}function _ne({items:t=[],lookup:e}){const n=[],r=new Map(t.map(i=>[i.id,i]));for(const[i,s]of t.entries()){const a=e.get(s.id),o=a?.internals?.userNode??a;o!==void 0&&o!==s&&n.push({id:s.id,item:s,type:"replace"}),o===void 0&&n.push({item:s,type:"add",index:i})}for(const[i]of e)r.get(i)===void 0&&n.push({id:i,type:"remove"});return n}function xne(t){return{id:t.id,type:"remove"}}const wne=t=>dAt(t),j5t=t=>hwe(t);function Vwe(t){return C.forwardRef(t)}const z5t=typeof window<"u"?C.useLayoutEffect:C.useEffect;function Sne(t){const[e,n]=C.useState(BigInt(0)),[r]=C.useState(()=>V5t(()=>n(i=>i+BigInt(1))));return z5t(()=>{const i=r.get();i.length&&(t(i),r.reset())},[e]),r}function V5t(t){let e=[];return{get:()=>e,reset:()=>{e=[]},push:n=>{e.push(n),t()}}}const qwe=C.createContext(null);function q5t({children:t}){const e=Tr(),n=C.useCallback(o=>{const{nodes:l=[],setNodes:u,hasDefaultNodes:c,onNodesChange:d,nodeLookup:h,fitViewQueued:m,onNodesChangeMiddlewareMap:g}=e.getState();let b=l;for(const E of o)b=typeof E=="function"?E(b):E;let v=_ne({items:b,lookup:h});for(const E of g.values())v=E(v);c&&u(b),v.length>0?d?.(v):m&&window.requestAnimationFrame(()=>{const{fitViewQueued:E,nodes:x,setNodes:_}=e.getState();E&&_(x)})},[]),r=Sne(n),i=C.useCallback(o=>{const{edges:l=[],setEdges:u,hasDefaultEdges:c,onEdgesChange:d,edgeLookup:h}=e.getState();let m=l;for(const g of o)m=typeof g=="function"?g(m):g;c?u(m):d&&d(_ne({items:m,lookup:h}))},[]),s=Sne(i),a=C.useMemo(()=>({nodeQueue:r,edgeQueue:s}),[]);return j.jsx(qwe.Provider,{value:a,children:t})}function G5t(){const t=C.useContext(qwe);if(!t)throw new Error("useBatchContext must be used within a BatchProvider");return t}const W5t=t=>!!t.panZoom;function KH(){const t=F5t(),e=Tr(),n=G5t(),r=Rn(W5t),i=C.useMemo(()=>{const s=d=>e.getState().nodeLookup.get(d),a=d=>{n.nodeQueue.push(d)},o=d=>{n.edgeQueue.push(d)},l=d=>{const{nodeLookup:h,nodeOrigin:m}=e.getState(),g=wne(d)?d:h.get(d.id),b=g.parentId?vwe(g.position,g.measured,g.parentId,h,m):g.position,v={...g,position:b,width:g.measured?.width??g.width,height:g.measured?.height??g.height};return g0(v)},u=(d,h,m={replace:!1})=>{a(g=>g.map(b=>{if(b.id===d){const v=typeof h=="function"?h(b):h;return m.replace&&wne(v)?v:{...b,...v}}return b}))},c=(d,h,m={replace:!1})=>{o(g=>g.map(b=>{if(b.id===d){const v=typeof h=="function"?h(b):h;return m.replace&&j5t(v)?v:{...b,...v}}return b}))};return{getNodes:()=>e.getState().nodes.map(d=>({...d})),getNode:d=>s(d)?.internals.userNode,getInternalNode:s,getEdges:()=>{const{edges:d=[]}=e.getState();return d.map(h=>({...h}))},getEdge:d=>e.getState().edgeLookup.get(d),setNodes:a,setEdges:o,addNodes:d=>{const h=Array.isArray(d)?d:[d];n.nodeQueue.push(m=>[...m,...h])},addEdges:d=>{const h=Array.isArray(d)?d:[d];n.edgeQueue.push(m=>[...m,...h])},toObject:()=>{const{nodes:d=[],edges:h=[],transform:m}=e.getState(),[g,b,v]=m;return{nodes:d.map(E=>({...E})),edges:h.map(E=>({...E})),viewport:{x:g,y:b,zoom:v}}},deleteElements:async({nodes:d=[],edges:h=[]})=>{const{nodes:m,edges:g,onNodesDelete:b,onEdgesDelete:v,triggerNodeChanges:E,triggerEdgeChanges:x,onDelete:_,onBeforeDelete:S}=e.getState(),{nodes:A,edges:R}=await gAt({nodesToRemove:d,edgesToRemove:h,nodes:m,edges:g,onBeforeDelete:S}),T=R.length>0,O=A.length>0;if(T){const I=R.map(xne);v?.(R),x(I)}if(O){const I=A.map(xne);b?.(A),E(I)}return(O||T)&&_?.({nodes:A,edges:R}),{deletedNodes:A,deletedEdges:R}},getIntersectingNodes:(d,h=!0,m)=>{const g=Qte(d),b=g?d:l(d),v=m!==void 0;return b?(m||e.getState().nodes).filter(E=>{const x=e.getState().nodeLookup.get(E.id);if(x&&!g&&(E.id===d.id||!x.internals.positionAbsolute))return!1;const _=g0(v?E:x),S=Qv(_,b);return h&&S>0||S>=_.width*_.height||S>=b.width*b.height}):[]},isNodeIntersecting:(d,h,m=!0)=>{const b=Qte(d)?d:l(d);if(!b)return!1;const v=Qv(b,h);return m&&v>0||v>=h.width*h.height||v>=b.width*b.height},updateNode:u,updateNodeData:(d,h,m={replace:!1})=>{u(d,g=>{const b=typeof h=="function"?h(g):h;return m.replace?{...g,data:b}:{...g,data:{...g.data,...b}}},m)},updateEdge:c,updateEdgeData:(d,h,m={replace:!1})=>{c(d,g=>{const b=typeof h=="function"?h(g):h;return m.replace?{...g,data:b}:{...g,data:{...g.data,...b}}},m)},getNodesBounds:d=>{const{nodeLookup:h,nodeOrigin:m}=e.getState();return fAt(d,{nodeLookup:h,nodeOrigin:m})},getHandleConnections:({type:d,id:h,nodeId:m})=>Array.from(e.getState().connectionLookup.get(`${m}-${d}${h?`-${h}`:""}`)?.values()??[]),getNodeConnections:({type:d,handleId:h,nodeId:m})=>Array.from(e.getState().connectionLookup.get(`${m}${d?h?`-${d}-${h}`:`-${d}`:""}`)?.values()??[]),fitView:async d=>{const h=e.getState().fitViewResolver??EAt();return e.setState({fitViewQueued:!0,fitViewOptions:d,fitViewResolver:h}),n.nodeQueue.push(m=>[...m]),h.promise}}},[]);return C.useMemo(()=>({...i,...t,viewportInitialized:r}),[r])}const Cne=t=>t.selected,Y5t=typeof window<"u"?window:void 0;function K5t({deleteKeyCode:t,multiSelectionKeyCode:e}){const n=Tr(),{deleteElements:r}=KH(),i=Jv(t,{actInsideInputWithModifier:!1}),s=Jv(e,{target:Y5t});C.useEffect(()=>{if(i){const{edges:a,nodes:o}=n.getState();r({nodes:o.filter(Cne),edges:a.filter(Cne)}),n.setState({nodesSelectionActive:!1})}},[i]),C.useEffect(()=>{n.setState({multiSelectionActive:s})},[s])}function X5t(t){const e=Tr();C.useEffect(()=>{const n=()=>{if(!t.current||!(t.current.checkVisibility?.()??!0))return!1;const r=zH(t.current);(r.height===0||r.width===0)&&e.getState().onError?.("004",bu.error004()),e.setState({width:r.width||500,height:r.height||500})};if(t.current){n(),window.addEventListener("resize",n);const r=new ResizeObserver(()=>n());return r.observe(t.current),()=>{window.removeEventListener("resize",n),r&&t.current&&r.unobserve(t.current)}}},[])}const OA={position:"absolute",width:"100%",height:"100%",top:0,left:0},Q5t=t=>({userSelectionActive:t.userSelectionActive,lib:t.lib,connectionInProgress:t.connection.inProgress});function Z5t({onPaneContextMenu:t,zoomOnScroll:e=!0,zoomOnPinch:n=!0,panOnScroll:r=!1,panOnScrollSpeed:i=.5,panOnScrollMode:s=Hh.Free,zoomOnDoubleClick:a=!0,panOnDrag:o=!0,defaultViewport:l,translateExtent:u,minZoom:c,maxZoom:d,zoomActivationKeyCode:h,preventScrolling:m=!0,children:g,noWheelClassName:b,noPanClassName:v,onViewportChange:E,isControlledViewport:x,paneClickDistance:_,selectionOnDrag:S}){const A=Tr(),R=C.useRef(null),{userSelectionActive:T,lib:O,connectionInProgress:I}=Rn(Q5t,Cr),D=Jv(h),P=C.useRef();X5t(R);const B=C.useCallback(L=>{E?.({x:L[0],y:L[1],zoom:L[2]}),x||A.setState({transform:L})},[E,x]);return C.useEffect(()=>{if(R.current){P.current=r5t({domNode:R.current,minZoom:c,maxZoom:d,translateExtent:u,viewport:l,onDraggingChange:F=>A.setState(G=>G.paneDragging===F?G:{paneDragging:F}),onPanZoomStart:(F,G)=>{const{onViewportChangeStart:H,onMoveStart:K}=A.getState();K?.(F,G),H?.(G)},onPanZoom:(F,G)=>{const{onViewportChange:H,onMove:K}=A.getState();K?.(F,G),H?.(G)},onPanZoomEnd:(F,G)=>{const{onViewportChangeEnd:H,onMoveEnd:K}=A.getState();K?.(F,G),H?.(G)}});const{x:L,y:$,zoom:q}=P.current.getViewport();return A.setState({panZoom:P.current,transform:[L,$,q],domNode:R.current.closest(".react-flow")}),()=>{P.current?.destroy()}}},[]),C.useEffect(()=>{P.current?.update({onPaneContextMenu:t,zoomOnScroll:e,zoomOnPinch:n,panOnScroll:r,panOnScrollSpeed:i,panOnScrollMode:s,zoomOnDoubleClick:a,panOnDrag:o,zoomActivationKeyPressed:D,preventScrolling:m,noPanClassName:v,userSelectionActive:T,noWheelClassName:b,lib:O,onTransformChange:B,connectionInProgress:I,selectionOnDrag:S,paneClickDistance:_})},[t,e,n,r,i,s,a,o,D,m,v,T,b,O,B,I,S,_]),j.jsx("div",{className:"react-flow__renderer",ref:R,style:OA,children:g})}const J5t=t=>({userSelectionActive:t.userSelectionActive,userSelectionRect:t.userSelectionRect});function eRt(){const{userSelectionActive:t,userSelectionRect:e}=Rn(J5t,Cr);return t&&e?j.jsx("div",{className:"react-flow__selection react-flow__container",style:{width:e.width,height:e.height,transform:`translate(${e.x}px, ${e.y}px)`}}):null}const qO=(t,e)=>n=>{n.target===e.current&&t?.(n)},tRt=t=>({userSelectionActive:t.userSelectionActive,elementsSelectable:t.elementsSelectable,connectionInProgress:t.connection.inProgress,dragging:t.paneDragging});function nRt({isSelecting:t,selectionKeyPressed:e,selectionMode:n=Xv.Full,panOnDrag:r,paneClickDistance:i,selectionOnDrag:s,onSelectionStart:a,onSelectionEnd:o,onPaneClick:l,onPaneContextMenu:u,onPaneScroll:c,onPaneMouseEnter:d,onPaneMouseMove:h,onPaneMouseLeave:m,children:g}){const b=Tr(),{userSelectionActive:v,elementsSelectable:E,dragging:x,connectionInProgress:_}=Rn(tRt,Cr),S=E&&(t||v),A=C.useRef(null),R=C.useRef(),T=C.useRef(new Set),O=C.useRef(new Set),I=C.useRef(!1),D=H=>{if(I.current||_){I.current=!1;return}l?.(H),b.getState().resetSelectedElements(),b.setState({nodesSelectionActive:!1})},P=H=>{if(Array.isArray(r)&&r?.includes(2)){H.preventDefault();return}u?.(H)},B=c?H=>c(H):void 0,L=H=>{I.current&&(H.stopPropagation(),I.current=!1)},$=H=>{const{domNode:K}=b.getState();if(R.current=K?.getBoundingClientRect(),!R.current)return;const V=H.target===A.current;if(!V&&!!H.target.closest(".nokey")||!t||!(s&&V||e)||H.button!==0||!H.isPrimary)return;H.target?.setPointerCapture?.(H.pointerId),I.current=!1;const{x:W,y:Q}=rl(H.nativeEvent,R.current);b.setState({userSelectionRect:{width:0,height:0,startX:W,startY:Q,x:W,y:Q}}),V||(H.stopPropagation(),H.preventDefault())},q=H=>{const{userSelectionRect:K,transform:V,nodeLookup:Y,edgeLookup:Z,connectionLookup:W,triggerNodeChanges:Q,triggerEdgeChanges:re,defaultEdgeOptions:se,resetSelectedElements:J}=b.getState();if(!R.current||!K)return;const{x:ae,y:ge}=rl(H.nativeEvent,R.current),{startX:ve,startY:Re}=K;if(!I.current){const ze=e?0:i;if(Math.hypot(ae-ve,ge-Re)<=ze)return;J(),a?.(H)}I.current=!0;const xe={startX:ve,startY:Re,x:ae<ve?ae:ve,y:ge<Re?ge:Re,width:Math.abs(ae-ve),height:Math.abs(ge-Re)},Ne=T.current,Fe=O.current;
214T.current=new Set(UH(Y,xe,V,n===Xv.Partial,!0).map(ze=>ze.id)),O.current=new Set;const Le=se?.selectable??!0;for(const ze of T.current){const qe=W.get(ze);if(qe)for(const{edgeId:_t}of qe.values()){const Ot=Z.get(_t);Ot&&(Ot.selectable??Le)&&O.current.add(_t)}}if(!Zte(Ne,T.current)){const ze=fg(Y,T.current,!0);Q(ze)}if(!Zte(Fe,O.current)){const ze=fg(Z,O.current);re(ze)}b.setState({userSelectionRect:xe,userSelectionActive:!0,nodesSelectionActive:!1})},F=H=>{H.button===0&&(H.target?.releasePointerCapture?.(H.pointerId),!v&&H.target===A.current&&b.getState().userSelectionRect&&D?.(H),b.setState({userSelectionActive:!1,userSelectionRect:null}),I.current&&(o?.(H),b.setState({nodesSelectionActive:T.current.size>0})))},G=r===!0||Array.isArray(r)&&r.includes(0);return j.jsxs("div",{className:vi(["react-flow__pane",{draggable:G,dragging:x,selection:t}]),onClick:S?void 0:qO(D,A),onContextMenu:qO(P,A),onWheel:qO(B,A),onPointerEnter:S?void 0:d,onPointerMove:S?q:h,onPointerUp:S?F:void 0,onPointerDownCapture:S?$:void 0,onClickCapture:S?L:void 0,onPointerLeave:m,ref:A,style:OA,children:[g,j.jsx(eRt,{})]})}function s7({id:t,store:e,unselect:n=!1,nodeRef:r}){const{addSelectedNodes:i,unselectNodesAndEdges:s,multiSelectionActive:a,nodeLookup:o,onError:l}=e.getState(),u=o.get(t);if(!u){l?.("012",bu.error012(t));return}e.setState({nodesSelectionActive:!1}),u.selected?(n||u.selected&&a)&&(s({nodes:[u],edges:[]}),requestAnimationFrame(()=>r?.current?.blur())):i([t])}function Gwe({nodeRef:t,disabled:e=!1,noDragClassName:n,handleSelector:r,nodeId:i,isSelectable:s,nodeClickDistance:a}){const o=Tr(),[l,u]=C.useState(!1),c=C.useRef();return C.useEffect(()=>{c.current=zAt({getStoreItems:()=>o.getState(),onNodeMouseDown:d=>{s7({id:d,store:o,nodeRef:t})},onDragStart:()=>{u(!0)},onDragStop:()=>{u(!1)}})},[]),C.useEffect(()=>{if(!(e||!t.current||!c.current))return c.current.update({noDragClassName:n,handleSelector:r,domNode:t.current,isSelectable:s,nodeId:i,nodeClickDistance:a}),()=>{c.current?.destroy()}},[n,r,e,s,t,i,a]),l}const rRt=t=>e=>e.selected&&(e.draggable||t&&typeof e.draggable>"u");function Wwe(){const t=Tr();return C.useCallback(n=>{const{nodeExtent:r,snapToGrid:i,snapGrid:s,nodesDraggable:a,onError:o,updateNodePositions:l,nodeLookup:u,nodeOrigin:c}=t.getState(),d=new Map,h=rRt(a),m=i?s[0]:5,g=i?s[1]:5,b=n.direction.x*m*n.factor,v=n.direction.y*g*n.factor;for(const[,E]of u){if(!h(E))continue;let x={x:E.internals.positionAbsolute.x+b,y:E.internals.positionAbsolute.y+v};i&&(x=CE(x,s));const{position:_,positionAbsolute:S}=pwe({nodeId:E.id,nextPosition:x,nodeLookup:u,nodeExtent:r,nodeOrigin:c,onError:o});E.position=_,E.internals.positionAbsolute=S,d.set(E.id,E)}l(d)},[])}const XH=C.createContext(null),iRt=XH.Provider;XH.Consumer;const Ywe=()=>C.useContext(XH),sRt=t=>({connectOnClick:t.connectOnClick,noPanClassName:t.noPanClassName,rfId:t.rfId}),aRt=(t,e,n)=>r=>{const{connectionClickStartHandle:i,connectionMode:s,connection:a}=r,{fromHandle:o,toHandle:l,isValid:u}=a,c=l?.nodeId===t&&l?.id===e&&l?.type===n;return{connectingFrom:o?.nodeId===t&&o?.id===e&&o?.type===n,connectingTo:c,clickConnecting:i?.nodeId===t&&i?.id===e&&i?.type===n,isPossibleEndHandle:s===p0.Strict?o?.type!==n:t!==o?.nodeId||e!==o?.id,connectionInProcess:!!o,clickConnectionInProcess:!!i,valid:c&&u}};function oRt({type:t="source",position:e=kt.Top,isValidConnection:n,isConnectable:r=!0,isConnectableStart:i=!0,isConnectableEnd:s=!0,id:a,onConnect:o,children:l,className:u,onMouseDown:c,onTouchStart:d,...h},m){const g=a||null,b=t==="target",v=Tr(),E=Ywe(),{connectOnClick:x,noPanClassName:_,rfId:S}=Rn(sRt,Cr),{connectingFrom:A,connectingTo:R,clickConnecting:T,isPossibleEndHandle:O,connectionInProcess:I,clickConnectionInProcess:D,valid:P}=Rn(aRt(E,g,t),Cr);E||v.getState().onError?.("010",bu.error010());const B=q=>{const{defaultEdgeOptions:F,onConnect:G,hasDefaultEdges:H}=v.getState(),K={...F,...q};if(H){const{edges:V,setEdges:Y}=v.getState();Y(AAt(K,V))}G?.(K),o?.(K)},L=q=>{if(!E)return;const F=xwe(q.nativeEvent);if(i&&(F&&q.button===0||!F)){const G=v.getState();
vendor: 19,021 bytes, line 214
214i7.onPointerDown(q.nativeEvent,{handleDomNode:q.currentTarget,autoPanOnConnect:G.autoPanOnConnect,connectionMode:G.connectionMode,connectionRadius:G.connectionRadius,domNode:G.domNode,nodeLookup:G.nodeLookup,lib:G.lib,isTarget:b,handleId:g,nodeId:E,flowId:G.rfId,panBy:G.panBy,cancelConnection:G.cancelConnection,onConnectStart:G.onConnectStart,onConnectEnd:(...H)=>v.getState().onConnectEnd?.(...H),updateConnection:G.updateConnection,onConnect:B,isValidConnection:n||((...H)=>v.getState().isValidConnection?.(...H)??!0),getTransform:()=>v.getState().transform,getFromHandle:()=>v.getState().connection.fromHandle,autoPanSpeed:G.autoPanSpeed,dragThreshold:G.connectionDragThreshold})}F?c?.(q):d?.(q)},$=q=>{const{onClickConnectStart:F,onClickConnectEnd:G,connectionClickStartHandle:H,connectionMode:K,isValidConnection:V,lib:Y,rfId:Z,nodeLookup:W,connection:Q}=v.getState();if(!E||!H&&!i)return;if(!H){F?.(q.nativeEvent,{nodeId:E,handleId:g,handleType:t}),v.setState({connectionClickStartHandle:{nodeId:E,type:t,id:g}});return}const re=Ewe(q.target),se=n||V,{connection:J,isValid:ae}=i7.isValid(q.nativeEvent,{handle:{nodeId:E,id:g,type:t},connectionMode:K,fromNodeId:H.nodeId,fromHandleId:H.id||null,fromType:H.type,isValidConnection:se,flowId:Z,doc:re,lib:Y,nodeLookup:W});ae&&J&&B(J);const ge=structuredClone(Q);delete ge.inProgress,ge.toPosition=ge.toHandle?ge.toHandle.position:null,G?.(q,ge),v.setState({connectionClickStartHandle:null})};return j.jsx("div",{"data-handleid":g,"data-nodeid":E,"data-handlepos":e,"data-id":`${S}-${E}-${g}-${t}`,className:vi(["react-flow__handle",`react-flow__handle-${e}`,"nodrag",_,u,{source:!b,target:b,connectable:r,connectablestart:i,connectableend:s,clickconnecting:T,connectingfrom:A,connectingto:R,valid:P,connectionindicator:r&&(!I||O)&&(I||D?s:i)}]),onMouseDown:L,onTouchStart:L,onClick:x?$:void 0,ref:m,...h,children:l})}const tT=C.memo(Vwe(oRt));function lRt({data:t,isConnectable:e,sourcePosition:n=kt.Bottom}){return j.jsxs(j.Fragment,{children:[t?.label,j.jsx(tT,{type:"source",position:n,isConnectable:e})]})}function uRt({data:t,isConnectable:e,targetPosition:n=kt.Top,sourcePosition:r=kt.Bottom}){return j.jsxs(j.Fragment,{children:[j.jsx(tT,{type:"target",position:n,isConnectable:e}),t?.label,j.jsx(tT,{type:"source",position:r,isConnectable:e})]})}function cRt(){return null}function dRt({data:t,isConnectable:e,targetPosition:n=kt.Top}){return j.jsxs(j.Fragment,{children:[j.jsx(tT,{type:"target",position:n,isConnectable:e}),t?.label]})}const nT={ArrowUp:{x:0,y:-1},ArrowDown:{x:0,y:1},ArrowLeft:{x:-1,y:0},ArrowRight:{x:1,y:0}},Tne={input:lRt,default:uRt,output:dRt,group:cRt};function fRt(t){return t.internals.handleBounds===void 0?{width:t.width??t.initialWidth??t.style?.width,height:t.height??t.initialHeight??t.style?.height}:{width:t.width??t.style?.width,height:t.height??t.style?.height}}const hRt=t=>{const{width:e,height:n,x:r,y:i}=SE(t.nodeLookup,{filter:s=>!!s.selected});return{width:nl(e)?e:null,height:nl(n)?n:null,userSelectionActive:t.userSelectionActive,transformString:`translate(${t.transform[0]}px,${t.transform[1]}px) scale(${t.transform[2]}) translate(${r}px,${i}px)`}};function pRt({onSelectionContextMenu:t,noPanClassName:e,disableKeyboardA11y:n}){const r=Tr(),{width:i,height:s,transformString:a,userSelectionActive:o}=Rn(hRt,Cr),l=Wwe(),u=C.useRef(null);C.useEffect(()=>{n||u.current?.focus({preventScroll:!0})},[n]);const c=!o&&i!==null&&s!==null;if(Gwe({nodeRef:u,disabled:!c}),!c)return null;const d=t?m=>{const g=r.getState().nodes.filter(b=>b.selected);t(m,g)}:void 0,h=m=>{Object.prototype.hasOwnProperty.call(nT,m.key)&&(m.preventDefault(),l({direction:nT[m.key],factor:m.shiftKey?4:1}))};return j.jsx("div",{className:vi(["react-flow__nodesselection","react-flow__container",e]),style:{transform:a},children:j.jsx("div",{ref:u,className:"react-flow__nodesselection-rect",onContextMenu:d,tabIndex:n?void 0:-1,onKeyDown:n?void 0:h,style:{width:i,height:s}})})}const Ane=typeof window<"u"?window:void 0,mRt=t=>({nodesSelectionActive:t.nodesSelectionActive,userSelectionActive:t.userSelectionActive});function Kwe({children:t,onPaneClick:e,onPaneMouseEnter:n,onPaneMouseMove:r,onPaneMouseLeave:i,onPaneContextMenu:s,onPaneScroll:a,paneClickDistance:o,deleteKeyCode:l,selectionKeyCode:u,selectionOnDrag:c,selectionMode:d,onSelectionStart:h,onSelectionEnd:m,multiSelectionKeyCode:g,panActivationKeyCode:b,zoomActivationKeyCode:v,elementsSelectable:E,zoomOnScroll:x,zoomOnPinch:_,panOnScroll:S,panOnScrollSpeed:A,panOnScrollMode:R,zoomOnDoubleClick:T,panOnDrag:O,defaultViewport:I,translateExtent:D,minZoom:P,maxZoom:B,preventScrolling:L,onSelectionContextMenu:$,noWheelClassName:q,noPanClassName:F,disableKeyboardA11y:G,onViewportChange:H,isControlledViewport:K}){const{nodesSelectionActive:V,userSelectionActive:Y}=Rn(mRt,Cr),Z=Jv(u,{target:Ane}),W=Jv(b,{target:Ane}),Q=W||O,re=W||S,se=c&&Q!==!0,J=Z||Y||se;return K5t({deleteKeyCode:l,multiSelectionKeyCode:g}),j.jsx(Z5t,{onPaneContextMenu:s,elementsSelectable:E,zoomOnScroll:x,zoomOnPinch:_,panOnScroll:re,panOnScrollSpeed:A,panOnScrollMode:R,zoomOnDoubleClick:T,panOnDrag:!Z&&Q,defaultViewport:I,translateExtent:D,minZoom:P,maxZoom:B,zoomActivationKeyCode:v,preventScrolling:L,noWheelClassName:q,noPanClassName:F,onViewportChange:H,isControlledViewport:K,paneClickDistance:o,selectionOnDrag:se,children:j.jsxs(nRt,{onSelectionStart:h,onSelectionEnd:m,onPaneClick:e,onPaneMouseEnter:n,onPaneMouseMove:r,onPaneMouseLeave:i,onPaneContextMenu:s,onPaneScroll:a,panOnDrag:Q,isSelecting:!!J,selectionMode:d,selectionKeyPressed:Z,paneClickDistance:o,selectionOnDrag:se,children:[t,V&&j.jsx(pRt,{onSelectionContextMenu:$,noPanClassName:F,disableKeyboardA11y:G})]})})}Kwe.displayName="FlowRenderer";const gRt=C.memo(Kwe),yRt=t=>e=>t?UH(e.nodeLookup,{x:0,y:0,width:e.width,height:e.height},e.transform,!0).map(n=>n.id):Array.from(e.nodeLookup.keys());function bRt(t){return Rn(C.useCallback(yRt(t),[t]),Cr)}const vRt=t=>t.updateNodeInternals;function ERt(){const t=Rn(vRt),[e]=C.useState(()=>typeof ResizeObserver>"u"?null:new ResizeObserver(n=>{const r=new Map;n.forEach(i=>{const s=i.target.getAttribute("data-id");r.set(s,{id:s,nodeElement:i.target,force:!0})}),t(r)}));return C.useEffect(()=>()=>{e?.disconnect()},[e]),e}function _Rt({node:t,nodeType:e,hasDimensions:n,resizeObserver:r}){const i=Tr(),s=C.useRef(null),a=C.useRef(null),o=C.useRef(t.sourcePosition),l=C.useRef(t.targetPosition),u=C.useRef(e),c=n&&!!t.internals.handleBounds;return C.useEffect(()=>{s.current&&!t.hidden&&(!c||a.current!==s.current)&&(a.current&&r?.unobserve(a.current),r?.observe(s.current),a.current=s.current)},[c,t.hidden]),C.useEffect(()=>()=>{a.current&&(r?.unobserve(a.current),a.current=null)},[]),C.useEffect(()=>{if(s.current){const d=u.current!==e,h=o.current!==t.sourcePosition,m=l.current!==t.targetPosition;(d||h||m)&&(u.current=e,o.current=t.sourcePosition,l.current=t.targetPosition,i.getState().updateNodeInternals(new Map([[t.id,{id:t.id,nodeElement:s.current,force:!0}]])))}},[t.id,e,t.sourcePosition,t.targetPosition]),s}function xRt({id:t,onClick:e,onMouseEnter:n,onMouseMove:r,onMouseLeave:i,onContextMenu:s,onDoubleClick:a,nodesDraggable:o,elementsSelectable:l,nodesConnectable:u,nodesFocusable:c,resizeObserver:d,noDragClassName:h,noPanClassName:m,disableKeyboardA11y:g,rfId:b,nodeTypes:v,nodeClickDistance:E,onError:x}){const{node:_,internals:S,isParent:A}=Rn(ae=>{const ge=ae.nodeLookup.get(t),ve=ae.parentLookup.has(t);return{node:ge,internals:ge.internals,isParent:ve}},Cr);let R=_.type||"default",T=v?.[R]||Tne[R];T===void 0&&(x?.("003",bu.error003(R)),R="default",T=v?.default||Tne.default);const O=!!(_.draggable||o&&typeof _.draggable>"u"),I=!!(_.selectable||l&&typeof _.selectable>"u"),D=!!(_.connectable||u&&typeof _.connectable>"u"),P=!!(_.focusable||c&&typeof _.focusable>"u"),B=Tr(),L=bwe(_),$=_Rt({node:_,nodeType:R,hasDimensions:L,resizeObserver:d}),q=Gwe({nodeRef:$,disabled:_.hidden||!O,noDragClassName:h,handleSelector:_.dragHandle,nodeId:t,isSelectable:I,nodeClickDistance:E}),F=Wwe();if(_.hidden)return null;const G=Kc(_),H=fRt(_),K=I||O||e||n||r||i,V=n?ae=>n(ae,{...S.userNode}):void 0,Y=r?ae=>r(ae,{...S.userNode}):void 0,Z=i?ae=>i(ae,{...S.userNode}):void 0,W=s?ae=>s(ae,{...S.userNode}):void 0,Q=a?ae=>a(ae,{...S.userNode}):void 0,re=ae=>{const{selectNodesOnDrag:ge,nodeDragThreshold:ve}=B.getState();I&&(!ge||!O||ve>0)&&s7({id:t,store:B,nodeRef:$}),e&&e(ae,{...S.userNode})},se=ae=>{if(!(_we(ae.nativeEvent)||g)){if(uwe.includes(ae.key)&&I){const ge=ae.key==="Escape";s7({id:t,store:B,unselect:ge,nodeRef:$})}else if(O&&_.selected&&Object.prototype.hasOwnProperty.call(nT,ae.key)){ae.preventDefault();const{ariaLabelConfig:ge}=B.getState();B.setState({ariaLiveMessage:ge["node.a11yDescription.ariaLiveMessage"]({direction:ae.key.replace("Arrow","").toLowerCase(),x:~~S.positionAbsolute.x,y:~~S.positionAbsolute.y})}),F({direction:nT[ae.key],factor:ae.shiftKey?4:1})}}},J=()=>{if(g||!$.current?.matches(":focus-visible"))return;const{transform:ae,width:ge,height:ve,autoPanOnNodeFocus:Re,setCenter:xe}=B.getState();if(!Re)return;UH(new Map([[t,_]]),{x:0,y:0,width:ge,height:ve},ae,!0).length>0||xe(_.position.x+G.width/2,_.position.y+G.height/2,{zoom:ae[2]})};return j.jsx("div",{className:vi(["react-flow__node",`react-flow__node-${R}`,{[m]:O},_.className,{selected:_.selected,selectable:I,parent:A,draggable:O,dragging:q}]),ref:$,style:{zIndex:S.z,transform:`translate(${S.positionAbsolute.x}px,${S.positionAbsolute.y}px)`,pointerEvents:K?"all":"none",visibility:L?"visible":"hidden",..._.style,...H},"data-id":t,"data-testid":`rf__node-${t}`,onMouseEnter:V,onMouseMove:Y,onMouseLeave:Z,onContextMenu:W,onClick:re,onDoubleClick:Q,onKeyDown:P?se:void 0,tabIndex:P?0:void 0,onFocus:P?J:void 0,role:_.ariaRole??(P?"group":void 0),"aria-roledescription":"node","aria-describedby":g?void 0:`${Hwe}-${b}`,"aria-label":_.ariaLabel,..._.domAttributes,children:j.jsx(iRt,{value:t,children:j.jsx(T,{id:t,data:_.data,type:R,positionAbsoluteX:S.positionAbsolute.x,positionAbsoluteY:S.positionAbsolute.y,selected:_.selected??!1,selectable:I,draggable:O,deletable:_.deletable??!0,isConnectable:D,sourcePosition:_.sourcePosition,targetPosition:_.targetPosition,dragging:q,dragHandle:_.dragHandle,zIndex:S.z,parentId:_.parentId,...G})})})}var wRt=C.memo(xRt);const SRt=t=>({nodesDraggable:t.nodesDraggable,nodesConnectable:t.nodesConnectable,nodesFocusable:t.nodesFocusable,elementsSelectable:t.elementsSelectable,onError:t.onError});function Xwe(t){const{nodesDraggable:e,nodesConnectable:n,nodesFocusable:r,elementsSelectable:i,onError:s}=Rn(SRt,Cr),a=bRt(t.onlyRenderVisibleElements),o=ERt();return j.jsx("div",{className:"react-flow__nodes",style:OA,children:a.map(l=>j.jsx(wRt,{id:l,nodeTypes:t.nodeTypes,nodeExtent:t.nodeExtent,onClick:t.onNodeClick,onMouseEnter:t.onNodeMouseEnter,onMouseMove:t.onNodeMouseMove,onMouseLeave:t.onNodeMouseLeave,onContextMenu:t.onNodeContextMenu,onDoubleClick:t.onNodeDoubleClick,noDragClassName:t.noDragClassName,noPanClassName:t.noPanClassName,rfId:t.rfId,disableKeyboardA11y:t.disableKeyboardA11y,resizeObserver:o,nodesDraggable:e,nodesConnectable:n,nodesFocusable:r,elementsSelectable:i,nodeClickDistance:t.nodeClickDistance,onError:s},l))})}Xwe.displayName="NodeRenderer";const CRt=C.memo(Xwe);function TRt(t){return Rn(C.useCallback(n=>{if(!t)return n.edges.map(i=>i.id);const r=[];if(n.width&&n.height)for(const i of n.edges){const s=n.nodeLookup.get(i.source),a=n.nodeLookup.get(i.target);s&&a&&SAt({sourceNode:s,targetNode:a,width:n.width,height:n.height,transform:n.transform})&&r.push(i.id)}return r},[t]),Cr)}const ARt=({color:t="none",strokeWidth:e=1})=>{const n={strokeWidth:e,...t&&{stroke:t}};return j.jsx("polyline",{className:"arrow",style:n,strokeLinecap:"round",fill:"none",strokeLinejoin:"round",points:"-5,-4 0,0 -5,4"})},RRt=({color:t="none",strokeWidth:e=1})=>{const n={strokeWidth:e,...t&&{stroke:t,fill:t}};return j.jsx("polyline",{className:"arrowclosed",style:n,strokeLinecap:"round",strokeLinejoin:"round",points:"-5,-4 0,0 -5,4 -5,-4"})},Rne={[ZC.Arrow]:ARt,[ZC.ArrowClosed]:RRt};function NRt(t){const e=Tr();return C.useMemo(()=>Object.prototype.hasOwnProperty.call(Rne,t)?Rne[t]:(e.getState().onError?.("009",bu.error009(t)),null),[t])}const ORt=({id:t,type:e,color:n,width:r=12.5,height:i=12.5,markerUnits:s="strokeWidth",strokeWidth:a,orient:o="auto-start-reverse"})=>{const l=NRt(e);return l?j.jsx("marker",{className:"react-flow__arrowhead",id:t,markerWidth:`${r}`,markerHeight:`${i}`,viewBox:"-10 -10 20 20",markerUnits:s,orient:o,refX:"0",refY:"0",children:j.jsx(l,{color:n,strokeWidth:a})}):null},Qwe=({defaultColor:t,rfId:e})=>{const n=Rn(s=>s.edges),r=Rn(s=>s.defaultEdgeOptions),i=C.useMemo(()=>IAt(n,{id:e,defaultColor:t,defaultMarkerStart:r?.markerStart,defaultMarkerEnd:r?.markerEnd}),[n,r,e,t]);return i.length?j.jsx("svg",{className:"react-flow__marker","aria-hidden":"true",children:j.jsx("defs",{children:i.map(s=>j.jsx(ORt,{id:s.id,type:s.type,color:s.color,width:s.width,height:s.height,markerUnits:s.markerUnits,strokeWidth:s.strokeWidth,orient:s.orient},s.id))})}):null};Qwe.displayName="MarkerDefinitions";var kRt=C.memo(Qwe);function Zwe({x:t,y:e,label:n,labelStyle:r,labelShowBg:i=!0,labelBgStyle:s,labelBgPadding:a=[2,4],labelBgBorderRadius:o=2,children:l,className:u,...c}){const[d,h]=C.useState({x:1,y:0,width:0,height:0}),m=vi(["react-flow__edge-textwrapper",u]),g=C.useRef(null);return C.useEffect(()=>{if(g.current){const b=g.current.getBBox();h({x:b.x,y:b.y,width:b.width,height:b.height})}},[n]),n?j.jsxs("g",{transform:`translate(${t-d.width/2} ${e-d.height/2})`,className:m,visibility:d.width?"visible":"hidden",...c,children:[i&&j.jsx("rect",{width:d.width+2*a[0],x:-a[0],y:-a[1],height:d.height+2*a[1],className:"react-flow__edge-textbg",style:s,rx:o,ry:o}),j.jsx("text",{className:"react-flow__edge-text",y:d.height/2,dy:"0.3em",ref:g,style:r,children:n}),l]}):null}Zwe.displayName="EdgeText";const IRt=C.memo(Zwe);function kA({path:t,labelX:e,labelY:n,label:r,labelStyle:i,labelShowBg:s,labelBgStyle:a,labelBgPadding:o,labelBgBorderRadius:l,interactionWidth:u=20,...c}){return j.jsxs(j.Fragment,{children:[j.jsx("path",{...c,d:t,fill:"none",className:vi(["react-flow__edge-path",c.className])}),u?j.jsx("path",{d:t,fill:"none",strokeOpacity:0,strokeWidth:u,className:"react-flow__edge-interaction"}):null,r&&nl(e)&&nl(n)?j.jsx(IRt,{x:e,y:n,label:r,labelStyle:i,labelShowBg:s,labelBgStyle:a,labelBgPadding:o,labelBgBorderRadius:l}):null]})}function Nne({pos:t,x1:e,y1:n,x2:r,y2:i}){return t===kt.Left||t===kt.Right?[.5*(e+r),n]:[e,.5*(n+i)]}function Jwe({sourceX:t,sourceY:e,sourcePosition:n=kt.Bottom,targetX:r,targetY:i,targetPosition:s=kt.Top}){const[a,o]=Nne({pos:n,x1:t,y1:e,x2:r,y2:i}),[l,u]=Nne({pos:s,x1:r,y1:i,x2:t,y2:e}),[c,d,h,m]=wwe({sourceX:t,sourceY:e,targetX:r,targetY:i,sourceControlX:a,sourceControlY:o,targetControlX:l,targetControlY:u});return[`M${t},${e} C${a},${o} ${l},${u} ${r},${i}`,c,d,h,m]}function eSe(t){return C.memo(({id:e,sourceX:n,sourceY:r,targetX:i,targetY:s,sourcePosition:a,targetPosition:o,label:l,labelStyle:u,labelShowBg:c,labelBgStyle:d,labelBgPadding:h,labelBgBorderRadius:m,style:g,markerEnd:b,markerStart:v,interactionWidth:E})=>{const[x,_,S]=Jwe({sourceX:n,sourceY:r,sourcePosition:a,targetX:i,targetY:s,targetPosition:o}),A=t.isInternal?void 0:e;return j.jsx(kA,{id:A,path:x,labelX:_,labelY:S,label:l,labelStyle:u,labelShowBg:c,labelBgStyle:d,labelBgPadding:h,labelBgBorderRadius:m,style:g,markerEnd:b,markerStart:v,interactionWidth:E})})}const MRt=eSe({isInternal:!1}),tSe=eSe({isInternal:!0});MRt.displayName="SimpleBezierEdge";tSe.displayName="SimpleBezierEdgeInternal";function nSe(t){return C.memo(({id:e,sourceX:n,sourceY:r,targetX:i,targetY:s,label:a,labelStyle:o,labelShowBg:l,labelBgStyle:u,labelBgPadding:c,labelBgBorderRadius:d,style:h,sourcePosition:m=kt.Bottom,targetPosition:g=kt.Top,markerEnd:b,markerStart:v,pathOptions:E,interactionWidth:x})=>{const[_,S,A]=t7({sourceX:n,sourceY:r,sourcePosition:m,targetX:i,targetY:s,targetPosition:g,borderRadius:E?.borderRadius,offset:E?.offset,stepPosition:E?.stepPosition}),R=t.isInternal?void 0:e;return j.jsx(kA,{id:R,path:_,labelX:S,labelY:A,label:a,labelStyle:o,labelShowBg:l,labelBgStyle:u,labelBgPadding:c,labelBgBorderRadius:d,style:h,markerEnd:b,markerStart:v,interactionWidth:x})})}const rSe=nSe({isInternal:!1}),iSe=nSe({isInternal:!0});rSe.displayName="SmoothStepEdge";iSe.displayName="SmoothStepEdgeInternal";function sSe(t){return C.memo(({id:e,...n})=>{const r=t.isInternal?void 0:e;return j.jsx(rSe,{...n,id:r,pathOptions:C.useMemo(()=>({borderRadius:0,offset:n.pathOptions?.offset}),[n.pathOptions?.offset])})})}const DRt=sSe({isInternal:!1}),aSe=sSe({isInternal:!0});DRt.displayName="StepEdge";aSe.displayName="StepEdgeInternal";function oSe(t){return C.memo(({id:e,sourceX:n,sourceY:r,targetX:i,targetY:s,label:a,labelStyle:o,labelShowBg:l,labelBgStyle:u,labelBgPadding:c,labelBgBorderRadius:d,style:h,markerEnd:m,markerStart:g,interactionWidth:b})=>{const[v,E,x]=Twe({sourceX:n,sourceY:r,targetX:i,targetY:s}),_=t.isInternal?void 0:e;return j.jsx(kA,{id:_,path:v,labelX:E,labelY:x,label:a,labelStyle:o,labelShowBg:l,labelBgStyle:u,labelBgPadding:c,labelBgBorderRadius:d,style:h,markerEnd:m,markerStart:g,interactionWidth:b})})}const PRt=oSe({isInternal:!1}),lSe=oSe({isInternal:!0});PRt.displayName="StraightEdge";lSe.displayName="StraightEdgeInternal";function uSe(t){return C.memo(({id:e,sourceX:n,sourceY:r,targetX:i,targetY:s,sourcePosition:a=kt.Bottom,targetPosition:o=kt.Top,label:l,labelStyle:u,labelShowBg:c,labelBgStyle:d,labelBgPadding:h,labelBgBorderRadius:m,style:g,markerEnd:b,markerStart:v,pathOptions:E,interactionWidth:x})=>{const[_,S,A]=Swe({sourceX:n,sourceY:r,sourcePosition:a,targetX:i,targetY:s,targetPosition:o,curvature:E?.curvature}),R=t.isInternal?void 0:e;return j.jsx(kA,{id:R,path:_,labelX:S,labelY:A,label:l,labelStyle:u,labelShowBg:c,labelBgStyle:d,labelBgPadding:h,labelBgBorderRadius:m,style:g,markerEnd:b,markerStart:v,interactionWidth:x})})}const LRt=uSe({isInternal:!1}),cSe=uSe({isInternal:!0});LRt.displayName="BezierEdge";cSe.displayName="BezierEdgeInternal";const One={default:cSe,straight:lSe,step:aSe,smoothstep:iSe,simplebezier:tSe},kne={sourceX:null,sourceY:null,targetX:null,targetY:null,sourcePosition:null,targetPosition:null},$Rt=(t,e,n)=>n===kt.Left?t-e:n===kt.Right?t+e:t,FRt=(t,e,n)=>n===kt.Top?t-e:n===kt.Bottom?t+e:t,Ine="react-flow__edgeupdater";function Mne({position:t,centerX:e,centerY:n,radius:r=10,onMouseDown:i,onMouseEnter:s,onMouseOut:a,type:o}){return j.jsx("circle",{onMouseDown:i,onMouseEnter:s,onMouseOut:a,className:vi([Ine,`${Ine}-${o}`]),cx:$Rt(e,r,t),cy:FRt(n,r,t),r,stroke:"transparent",fill:"transparent"})}function BRt({isReconnectable:t,reconnectRadius:e,edge:n,sourceX:r,sourceY:i,targetX:s,targetY:a,sourcePosition:o,targetPosition:l,onReconnect:u,onReconnectStart:c,onReconnectEnd:d,setReconnecting:h,setUpdateHover:m}){const g=Tr(),b=(S,A)=>{if(S.button!==0)return;
214const{autoPanOnConnect:R,domNode:T,connectionMode:O,connectionRadius:I,lib:D,onConnectStart:P,cancelConnection:B,nodeLookup:L,rfId:$,panBy:q,updateConnection:F}=g.getState(),G=A.type==="target",H=(Y,Z)=>{h(!1),d?.(Y,n,A.type,Z)},K=Y=>u?.(n,Y),V=(Y,Z)=>{h(!0),c?.(S,n,A.type),P?.(Y,Z)};i7.onPointerDown(S.nativeEvent,{autoPanOnConnect:R,connectionMode:O,connectionRadius:I,domNode:T,handleId:A.id,nodeId:A.nodeId,nodeLookup:L,isTarget:G,edgeUpdaterType:A.type,lib:D,flowId:$,cancelConnection:B,panBy:q,isValidConnection:(...Y)=>g.getState().isValidConnection?.(...Y)??!0,onConnect:K,onConnectStart:V,onConnectEnd:(...Y)=>g.getState().onConnectEnd?.(...Y),onReconnectEnd:H,updateConnection:F,getTransform:()=>g.getState().transform,getFromHandle:()=>g.getState().connection.fromHandle,dragThreshold:g.getState().connectionDragThreshold,handleDomNode:S.currentTarget})},v=S=>b(S,{nodeId:n.target,id:n.targetHandle??null,type:"target"}),E=S=>b(S,{nodeId:n.source,id:n.sourceHandle??null,type:"source"}),x=()=>m(!0),_=()=>m(!1);return j.jsxs(j.Fragment,{children:[(t===!0||t==="source")&&j.jsx(Mne,{position:o,centerX:r,centerY:i,radius:e,onMouseDown:v,onMouseEnter:x,onMouseOut:_,type:"source"}),(t===!0||t==="target")&&j.jsx(Mne,{position:l,centerX:s,centerY:a,radius:e,onMouseDown:E,onMouseEnter:x,onMouseOut:_,type:"target"})]})}function HRt({id:t,edgesFocusable:e,edgesReconnectable:n,elementsSelectable:r,onClick:i,onDoubleClick:s,onContextMenu:a,onMouseEnter:o,onMouseMove:l,onMouseLeave:u,reconnectRadius:c,onReconnect:d,onReconnectStart:h,onReconnectEnd:m,rfId:g,edgeTypes:b,noPanClassName:v,onError:E,disableKeyboardA11y:x}){let _=Rn(xe=>xe.edgeLookup.get(t));const S=Rn(xe=>xe.defaultEdgeOptions);_=S?{...S,..._}:_;let A=_.type||"default",R=b?.[A]||One[A];R===void 0&&(E?.("011",bu.error011(A)),A="default",R=b?.default||One.default);const T=!!(_.focusable||e&&typeof _.focusable>"u"),O=typeof d<"u"&&(_.reconnectable||n&&typeof _.reconnectable>"u"),I=!!(_.selectable||r&&typeof _.selectable>"u"),D=C.useRef(null),[P,B]=C.useState(!1),[L,$]=C.useState(!1),q=Tr(),{zIndex:F,sourceX:G,sourceY:H,targetX:K,targetY:V,sourcePosition:Y,targetPosition:Z}=Rn(C.useCallback(xe=>{const Ne=xe.nodeLookup.get(_.source),Fe=xe.nodeLookup.get(_.target);if(!Ne||!Fe)return{zIndex:_.zIndex,...kne};const Le=kAt({id:t,sourceNode:Ne,targetNode:Fe,sourceHandle:_.sourceHandle||null,targetHandle:_.targetHandle||null,connectionMode:xe.connectionMode,onError:E});return{zIndex:wAt({selected:_.selected,zIndex:_.zIndex,sourceNode:Ne,targetNode:Fe,elevateOnSelect:xe.elevateEdgesOnSelect,zIndexMode:xe.zIndexMode}),...Le||kne}},[_.source,_.target,_.sourceHandle,_.targetHandle,_.selected,_.zIndex]),Cr),W=C.useMemo(()=>_.markerStart?`url('#${n7(_.markerStart,g)}')`:void 0,[_.markerStart,g]),Q=C.useMemo(()=>_.markerEnd?`url('#${n7(_.markerEnd,g)}')`:void 0,[_.markerEnd,g]);if(_.hidden||G===null||H===null||K===null||V===null)return null;const re=xe=>{const{addSelectedEdges:Ne,unselectNodesAndEdges:Fe,multiSelectionActive:Le}=q.getState();I&&(q.setState({nodesSelectionActive:!1}),_.selected&&Le?(Fe({nodes:[],edges:[_]}),D.current?.blur()):Ne([t])),i&&i(xe,_)},se=s?xe=>{s(xe,{..._})}:void 0,J=a?xe=>{a(xe,{..._})}:void 0,ae=o?xe=>{o(xe,{..._})}:void 0,ge=l?xe=>{l(xe,{..._})}:void 0,ve=u?xe=>{u(xe,{..._})}:void 0,Re=xe=>{if(!x&&uwe.includes(xe.key)&&I){const{unselectNodesAndEdges:Ne,addSelectedEdges:Fe}=q.getState();xe.key==="Escape"?(D.current?.blur(),Ne({edges:[_]})):Fe([t])}};return j.jsx("svg",{style:{zIndex:F},children:j.jsxs("g",{className:vi(["react-flow__edge",`react-flow__edge-${A}`,_.className,v,{selected:_.selected,animated:_.animated,inactive:!I&&!i,updating:P,selectable:I}]),onClick:re,onDoubleClick:se,onContextMenu:J,onMouseEnter:ae,onMouseMove:ge,onMouseLeave:ve,onKeyDown:T?Re:void 0,tabIndex:T?0:void 0,role:_.ariaRole??(T?"group":"img"),"aria-roledescription":"edge","data-id":t,"data-testid":`rf__edge-${t}`,"aria-label":_.ariaLabel===null?void 0:_.ariaLabel||`Edge from ${_.source} to ${_.target}`,"aria-describedby":T?`${Uwe}-${g}`:void 0,ref:D,..._.domAttributes,children:[!L&&j.jsx(R,{id:t,source:_.source,target:_.target,type:_.type,selected:_.selected,animated:_.animated,selectable:I,deletable:_.deletable??!0,label:_.label,labelStyle:_.labelStyle,labelShowBg:_.labelShowBg,labelBgStyle:_.labelBgStyle,labelBgPadding:_.labelBgPadding,labelBgBorderRadius:_.labelBgBorderRadius,sourceX:G,sourceY:H,targetX:K,targetY:V,sourcePosition:Y,targetPosition:Z,data:_.data,style:_.style,sourceHandleId:_.sourceHandle,targetHandleId:_.targetHandle,markerStart:W,markerEnd:Q,pathOptions:"pathOptions"in _?_.pathOptions:void 0,interactionWidth:_.interactionWidth}),O&&j.jsx(BRt,{edge:_,isReconnectable:O,reconnectRadius:c,onReconnect:d,onReconnectStart:h,onReconnectEnd:m,sourceX:G,sourceY:H,targetX:K,targetY:V,sourcePosition:Y,targetPosition:Z,setUpdateHover:B,setReconnecting:$})]})})}var URt=C.memo(HRt);const jRt=t=>({edgesFocusable:t.edgesFocusable,edgesReconnectable:t.edgesReconnectable,elementsSelectable:t.elementsSelectable,connectionMode:t.connectionMode,onError:t.onError});function dSe({defaultMarkerColor:t,onlyRenderVisibleElements:e,rfId:n,edgeTypes:r,noPanClassName:i,onReconnect:s,onEdgeContextMenu:a,onEdgeMouseEnter:o,onEdgeMouseMove:l,onEdgeMouseLeave:u,onEdgeClick:c,reconnectRadius:d,onEdgeDoubleClick:h,onReconnectStart:m,onReconnectEnd:g,disableKeyboardA11y:b}){const{edgesFocusable:v,edgesReconnectable:E,elementsSelectable:x,onError:_}=Rn(jRt,Cr),S=TRt(e);return j.jsxs("div",{className:"react-flow__edges",children:[j.jsx(kRt,{defaultColor:t,rfId:n}),S.map(A=>j.jsx(URt,{id:A,edgesFocusable:v,edgesReconnectable:E,elementsSelectable:x,noPanClassName:i,onReconnect:s,onContextMenu:a,onMouseEnter:o,onMouseMove:l,onMouseLeave:u,onClick:c,reconnectRadius:d,onDoubleClick:h,onReconnectStart:m,onReconnectEnd:g,rfId:n,onError:_,edgeTypes:r,disableKeyboardA11y:b},A))]})}dSe.displayName="EdgeRenderer";const zRt=C.memo(dSe),VRt=t=>`translate(${t.transform[0]}px,${t.transform[1]}px) scale(${t.transform[2]})`;function qRt({children:t}){const e=Rn(VRt);return j.jsx("div",{className:"react-flow__viewport xyflow__viewport react-flow__container",style:{transform:e},children:t})}function GRt(t){const e=KH(),n=C.useRef(!1);C.useEffect(()=>{!n.current&&e.viewportInitialized&&t&&(setTimeout(()=>t(e),1),n.current=!0)}
214,[t,e.viewportInitialized])}const WRt=t=>t.panZoom?.syncViewport;function YRt(t){const e=Rn(WRt),n=Tr();return C.useEffect(()=>{t&&(e?.(t),n.setState({transform:[t.x,t.y,t.zoom]}))},[t,e]),null}function KRt(t){return t.connection.inProgress?{...t.connection,to:TE(t.connection.to,t.transform)}:{...t.connection}}function XRt(t){return KRt}function QRt(t){const e=XRt();return Rn(e,Cr)}const ZRt=t=>({nodesConnectable:t.nodesConnectable,isValid:t.connection.isValid,inProgress:t.connection.inProgress,width:t.width,height:t.height});function JRt({containerStyle:t,style:e,type:n,component:r}){const{nodesConnectable:i,width:s,height:a,isValid:o,inProgress:l}=Rn(ZRt,Cr);return!(s&&i&&l)?null:j.jsx("svg",{style:t,width:s,height:a,className:"react-flow__connectionline react-flow__container",children:j.jsx("g",{className:vi(["react-flow__connection",fwe(o)]),children:j.jsx(fSe,{style:e,type:n,CustomComponent:r,isValid:o})})})}const fSe=({style:t,type:e=Fd.Bezier,CustomComponent:n,isValid:r})=>{const{inProgress:i,from:s,fromNode:a,fromHandle:o,fromPosition:l,to:u,toNode:c,toHandle:d,toPosition:h,pointer:m}=QRt();if(!i)return;if(n)return j.jsx(n,{connectionLineType:e,connectionLineStyle:t,fromNode:a,fromHandle:o,fromX:s.x,fromY:s.y,toX:u.x,toY:u.y,fromPosition:l,toPosition:h,connectionStatus:fwe(r),toNode:c,toHandle:d,pointer:m});let g="";const b={sourceX:s.x,sourceY:s.y,sourcePosition:l,targetX:u.x,targetY:u.y,targetPosition:h};switch(e){case Fd.Bezier:[g]=Swe(b);break;case Fd.SimpleBezier:[g]=Jwe(b);break;case Fd.Step:[g]=t7({...b,borderRadius:0});break;case Fd.SmoothStep:[g]=t7(b);break;default:[g]=Twe(b)}return j.jsx("path",{d:g,fill:"none",className:"react-flow__connection-path",style:t})};fSe.displayName="ConnectionLine";const eNt={};function Dne(t=eNt){C.useRef(t),Tr(),C.useEffect(()=>{},[t])}function tNt(){Tr(),C.useRef(!1),C.useEffect(()=>{},[])}function hSe({nodeTypes:t,edgeTypes:e,onInit:n,onNodeClick:r,onEdgeClick:i,onNodeDoubleClick:s,onEdgeDoubleClick:a,onNodeMouseEnter:o,onNodeMouseMove:l,onNodeMouseLeave:u,onNodeContextMenu:c,onSelectionContextMenu:d,onSelectionStart:h,onSelectionEnd:m,connectionLineType:g,connectionLineStyle:b,connectionLineComponent:v,connectionLineContainerStyle:E,selectionKeyCode:x,selectionOnDrag:_,selectionMode:S,multiSelectionKeyCode:A,panActivationKeyCode:R,zoomActivationKeyCode:T,deleteKeyCode:O,onlyRenderVisibleElements:I,elementsSelectable:D,defaultViewport:P,translateExtent:B,minZoom:L,maxZoom:$,preventScrolling:q,defaultMarkerColor:F,zoomOnScroll:G,zoomOnPinch:H,panOnScroll:K,panOnScrollSpeed:V,panOnScrollMode:Y,zoomOnDoubleClick:Z,panOnDrag:W,onPaneClick:Q,onPaneMouseEnter:re,onPaneMouseMove:se,onPaneMouseLeave:J,onPaneScroll:ae,onPaneContextMenu:ge,paneClickDistance:ve,nodeClickDistance:Re,onEdgeContextMenu:xe,onEdgeMouseEnter:Ne,onEdgeMouseMove:Fe,onEdgeMouseLeave:Le,reconnectRadius:ze,onReconnect:qe,onReconnectStart:_t,onReconnectEnd:Ot,noDragClassName:Lt,noWheelClassName:ue,noPanClassName:te,disableKeyboardA11y:de,nodeExtent:be,rfId:ce,viewport:ne,onViewportChange:fe}){return Dne(t),Dne(e),tNt(),GRt(n),YRt(ne),j.jsx(gRt,{onPaneClick:Q,onPaneMouseEnter:re,onPaneMouseMove:se,onPaneMouseLeave:J,onPaneContextMenu:ge,onPaneScroll:ae,paneClickDistance:ve,deleteKeyCode:O,selectionKeyCode:x,selectionOnDrag:_,selectionMode:S,onSelectionStart:h,onSelectionEnd:m,multiSelectionKeyCode:A,panActivationKeyCode:R,zoomActivationKeyCode:T,elementsSelectable:D,zoomOnScroll:G,zoomOnPinch:H,zoomOnDoubleClick:Z,panOnScroll:K,panOnScrollSpeed:V,panOnScrollMode:Y,panOnDrag:W,defaultViewport:P,translateExtent:B,minZoom:L,maxZoom:$,onSelectionContextMenu:d,preventScrolling:q,noDragClassName:Lt,noWheelClassName:ue,noPanClassName:te,disableKeyboardA11y:de,onViewportChange:fe,isControlledViewport:!!ne,children:j.jsxs(qRt,{children:[j.jsx(zRt,{edgeTypes:e,onEdgeClick:i,onEdgeDoubleClick:a,onReconnect:qe,onReconnectStart:_t,onReconnectEnd:Ot,onlyRenderVisibleElements:I,onEdgeContextMenu:xe,onEdgeMouseEnter:Ne,onEdgeMouseMove:Fe,onEdgeMouseLeave:Le,reconnectRadius:ze,defaultMarkerColor:F,noPanClassName:te,disableKeyboardA11y:de,rfId:ce}),j.jsx(JRt,{style:b,type:g,component:v,containerStyle:E}),j.jsx("div",{className:"react-flow__edgelabel-renderer"}),j.jsx(CRt,{nodeTypes:t,onNodeClick:r,onNodeDoubleClick:s,onNodeMouseEnter:o,onNodeMouseMove:l,onNodeMouseLeave:u,onNodeContextMenu:c,nodeClickDistance:Re,onlyRenderVisibleElements:I,noPanClassName:te,noDragClassName:Lt,disableKeyboardA11y:de,nodeExtent:be,rfId:ce}),j.jsx("div",{className:"react-flow__viewport-portal"})]})})}hSe.displayName="GraphView";const nNt=C.memo(hSe),Pne=({nodes:t,edges:e,defaultNodes:n,defaultEdges:r,width:i,height:s,fitView:a,fitViewOptions:o,minZoom:l=.5,maxZoom:u=2,nodeOrigin:c,nodeExtent:d,zIndexMode:h="basic"}={})=>{const m=new Map,g=new Map,b=new Map,v=new Map,E=r??e??[],x=n??t??[],_=c??[0,0],S=d??Kv;Nwe(b,v,E);const A=r7(x,m,g,{nodeOrigin:_,nodeExtent:S,zIndexMode:h});let R=[0,0,1];if(a&&i&&s){const T=SE(m,{filter:P=>!!((P.width||P.initialWidth)&&(P.height||P.initialHeight))}),{x:O,y:I,zoom:D}=jH(T,i,s,l,u,o?.padding??.1);R=[O,I,D]}return{rfId:"1",width:i??0,height:s??0,transform:R,nodes:x,nodesInitialized:A,nodeLookup:m,parentLookup:g,edges:E,edgeLookup:v,connectionLookup:b,onNodesChange:null,onEdgesChange:null,hasDefaultNodes:n!==void 0,hasDefaultEdges:r!==void 0,panZoom:null,minZoom:l,maxZoom:u,translateExtent:Kv,nodeExtent:S,nodesSelectionActive:!1,userSelectionActive:!1,userSelectionRect:null,connectionMode:p0.Strict,domNode:null,paneDragging:!1,noPanClassName:"nopan",nodeOrigin:_,nodeDragThreshold:1,connectionDragThreshold:1,snapGrid:[15,15],snapToGri
vendor: 16,188 bytes, line 214
214d:!1,nodesDraggable:!0,nodesConnectable:!0,nodesFocusable:!0,edgesFocusable:!0,edgesReconnectable:!0,elementsSelectable:!0,elevateNodesOnSelect:!0,elevateEdgesOnSelect:!0,selectNodesOnDrag:!0,multiSelectionActive:!1,fitViewQueued:a??!1,fitViewOptions:o,fitViewResolver:null,connection:{...dwe},connectionClickStartHandle:null,connectOnClick:!0,ariaLiveMessage:"",autoPanOnConnect:!0,autoPanOnNodeDrag:!0,autoPanOnNodeFocus:!0,autoPanSpeed:15,connectionRadius:20,onError:yAt,isValidConnection:void 0,onSelectionChangeHandlers:[],lib:"react",debug:!1,ariaLabelConfig:cwe,zIndexMode:h,onNodesChangeMiddlewareMap:new Map,onEdgesChangeMiddlewareMap:new Map}},rNt=({nodes:t,edges:e,defaultNodes:n,defaultEdges:r,width:i,height:s,fitView:a,fitViewOptions:o,minZoom:l,maxZoom:u,nodeOrigin:c,nodeExtent:d,zIndexMode:h})=>v5t((m,g)=>{async function b(){const{nodeLookup:v,panZoom:E,fitViewOptions:x,fitViewResolver:_,width:S,height:A,minZoom:R,maxZoom:T}=g();E&&(await mAt({nodes:v,width:S,height:A,panZoom:E,minZoom:R,maxZoom:T},x),_?.resolve(!0),m({fitViewResolver:null}))}return{...Pne({nodes:t,edges:e,width:i,height:s,fitView:a,fitViewOptions:o,minZoom:l,maxZoom:u,nodeOrigin:c,nodeExtent:d,defaultNodes:n,defaultEdges:r,zIndexMode:h}),setNodes:v=>{const{nodeLookup:E,parentLookup:x,nodeOrigin:_,elevateNodesOnSelect:S,fitViewQueued:A,zIndexMode:R}=g(),T=r7(v,E,x,{nodeOrigin:_,nodeExtent:d,elevateNodesOnSelect:S,checkEquality:!0,zIndexMode:R});A&&T?(b(),m({nodes:v,nodesInitialized:T,fitViewQueued:!1,fitViewOptions:void 0})):m({nodes:v,nodesInitialized:T})},setEdges:v=>{const{connectionLookup:E,edgeLookup:x}=g();Nwe(E,x,v),m({edges:v})},setDefaultNodesAndEdges:(v,E)=>{if(v){const{setNodes:x}=g();x(v),m({hasDefaultNodes:!0})}if(E){const{setEdges:x}=g();x(E),m({hasDefaultEdges:!0})}},updateNodeInternals:v=>{const{triggerNodeChanges:E,nodeLookup:x,parentLookup:_,domNode:S,nodeOrigin:A,nodeExtent:R,debug:T,fitViewQueued:O,zIndexMode:I}=g(),{changes:D,updatedInternals:P}=BAt(v,x,_,S,A,R,I);P&&(PAt(x,_,{nodeOrigin:A,nodeExtent:R,zIndexMode:I}),O?(b(),m({fitViewQueued:!1,fitViewOptions:void 0})):m({}),D?.length>0&&(T&&console.log("React Flow: trigger node changes",D),E?.(D)))},updateNodePositions:(v,E=!1)=>{const x=[];let _=[];const{nodeLookup:S,triggerNodeChanges:A,connection:R,updateConnection:T,onNodesChangeMiddlewareMap:O}=g();for(const[I,D]of v){const P=S.get(I),B=!!(P?.expandParent&&P?.parentId&&D?.position),L={id:I,type:"position",position:B?{x:Math.max(0,D.position.x),y:Math.max(0,D.position.y)}:D.position,dragging:E};if(P&&R.inProgress&&R.fromNode.id===P.id){const $=_p(P,R.fromHandle,kt.Left,!0);T({...R,from:$})}B&&P.parentId&&x.push({id:I,parentId:P.parentId,rect:{...D.internals.positionAbsolute,width:D.measured.width??0,height:D.measured.height??0}}),_.push(L)}if(x.length>0){const{parentLookup:I,nodeOrigin:D}=g(),P=YH(x,S,I,D);_.push(...P)}for(const I of O.values())_=I(_);A(_)},triggerNodeChanges:v=>{const{onNodesChange:E,setNodes:x,nodes:_,hasDefaultNodes:S,debug:A}=g();if(v?.length){if(S){const R=H5t(v,_);x(R)}A&&console.log("React Flow: trigger node changes",v),E?.(v)}},triggerEdgeChanges:v=>{const{onEdgesChange:E,setEdges:x,edges:_,hasDefaultEdges:S,debug:A}=g();if(v?.length){if(S){const R=U5t(v,_);x(R)}A&&console.log("React Flow: trigger edge changes",v),E?.(v)}},addSelectedNodes:v=>{const{multiSelectionActive:E,edgeLookup:x,nodeLookup:_,triggerNodeChanges:S,triggerEdgeChanges:A}=g();if(E){const R=v.map(T=>oh(T,!0));S(R);return}S(fg(_,new Set([...v]),!0)),A(fg(x))},addSelectedEdges:v=>{const{multiSelectionActive:E,edgeLookup:x,nodeLookup:_,triggerNodeChanges:S,triggerEdgeChanges:A}=g();if(E){const R=v.map(T=>oh(T,!0));A(R);return}A(fg(x,new Set([...v]))),S(fg(_,new Set,!0))},unselectNodesAndEdges:({nodes:v,edges:E}={})=>{const{edges:x,nodes:_,nodeLookup:S,triggerNodeChanges:A,triggerEdgeChanges:R}=g(),T=v||_,O=E||x,I=[];for(const P of T){if(!P.selected)continue;const B=S.get(P.id);B&&(B.selected=!1),I.push(oh(P.id,!1))}const D=[];for(const P of O)P.selected&&D.push(oh(P.id,!1));A(I),R(D)},setMinZoom:v=>{const{panZoom:E,maxZoom:x}=g();E?.setScaleExtent([v,x]),m({minZoom:v})},setMaxZoom:v=>{const{panZoom:E,minZoom:x}=g();E?.setScaleExtent([x,v]),m({maxZoom:v})},setTranslateExtent:v=>{g().panZoom?.setTranslateExtent(v),m({translateExtent:v})},resetSelectedElements:()=>{const{edges:v,nodes:E,triggerNodeChanges:x,triggerEdgeChanges:_,elementsSelectable:S}=g();if(!S)return;const A=E.reduce((T,O)=>O.selected?[...T,oh(O.id,!1)]:T,[]),R=v.reduce((T,O)=>O.selected?[...T,oh(O.id,!1)]:T,[]);x(A),_(R)},setNodeExtent:v=>{const{nodes:E,nodeLookup:x,parentLookup:_,nodeOrigin:S,elevateNodesOnSelect:A,nodeExtent:R,zIndexMode:T}=g();v[0][0]===R[0][0]&&v[0][1]===R[0][1]&&v[1][0]===R[1][0]&&v[1][1]===R[1][1]||(r7(E,x,_,{nodeOrigin:S,nodeExtent:v,elevateNodesOnSelect:A,checkEquality:!1,zIndexMode:T}),m({nodeExtent:v}))},panBy:v=>{const{transform:E,width:x,height:_,panZoom:S,translateExtent:A}=g();return HAt({delta:v,panZoom:S,transform:E,translateExtent:A,width:x,height:_})},setCenter:async(v,E,x)=>{const{width:_,height:S,maxZoom:A,panZoom:R}=g();if(!R)return Promise.resolve(!1);const T=typeof x?.zoom<"u"?x.zoom:A;return await R.setViewport({x:_/2-v*T,y:S/2-E*T,zoom:T},{duration:x?.duration,ease:x?.ease,interpolate:x?.interpolate}),Promise.resolve(!0)},cancelConnection:()=>{m({connection:{...dwe}})},updateConnection:v=>{m({connection:v})},reset:()=>m({...Pne()})}},Object.is);function iNt({initialNodes:t,initialEdges:e,defaultNodes:n,defaultEdges:r,initialWidth:i,initialHeight:s,initialMinZoom:a,initialMaxZoom:o,initialFitViewOptions:l,fitView:u,nodeOrigin:c,nodeExtent:d,zIndexMode:h,children:m}){const[g]=C.useState(()=>rNt({nodes:t,edges:e,defaultNodes:n,defaultEdges:r,width:i,height:s,fitView:u,minZoom:a,maxZoom:o,fitViewOptions:l,nodeOrigin:c,nodeExtent:d,zIndexMode:h}));return j.jsx(E5t,{value:g,children:j.jsx(q5t,{children:m})})}function sNt({children:t,nodes:e,edges:n,defaultNodes:r,defaultEdges:i,width:s,height:a,fitView:o,fitViewOptions:l,minZoom:u,maxZoom:c,nodeOrigin:d,nodeExtent:h,zIndexMode:m}){return C.useContext(RA)?j.jsx(j.Fragment,{children:t}):j.jsx(iNt,{initialNodes:e,initialEdges:n,defaultNodes:r,defaultEdges:i,initialWidth:s,initialHeight:a,fitView:o,initialFitViewOptions:l,initialMinZoom:u,initialMaxZoom:c,nodeOrigin:d,nodeExtent:h,zIndexMode:m,children:t})}const aNt={width:"100%",height:"100%",overflow:"hidden",position:"relative",zIndex:0};function oNt({nodes:t,edges:e,defaultNodes:n,defaultEdges:r,className:i,nodeTypes:s,edgeTypes:a,onNodeClick:o,onEdgeClick:l,onInit:u,onMove:c,onMoveStart:d,onMoveEnd:h,onConnect:m,onConnectStart:g,onConnectEnd:b,onClickConnectStart:v,onClickConnectEnd:E,onNodeMouseEnter:x,onNodeMouseMove:_,onNodeMouseLeave:S,onNodeContextMenu:A,onNodeDoubleClick:R,onNodeDragStart:T,onNodeDrag:O,onNodeDragStop:I,onNodesDelete:D,onEdgesDelete:P,onDelete:B,onSelectionChange:L,onSelectionDragStart:$,onSelectionDrag:q,onSelectionDragStop:F,onSelectionContextMenu:G,onSelectionStart:H,onSelectionEnd:K,onBeforeDelete:V,connectionMode:Y,connectionLineType:Z=Fd.Bezier,connectionLineStyle:W,connectionLineComponent:Q,connectionLineContainerStyle:re,deleteKeyCode:se="Backspace",selectionKeyCode:J="Shift",selectionOnDrag:ae=!1,selectionMode:ge=Xv.Full,panActivationKeyCode:ve="Space",multiSelectionKeyCode:Re=Zv()?"Meta":"Control",zoomActivationKeyCode:xe=Zv()?"Meta":"Control",snapToGrid:Ne,snapGrid:Fe,onlyRenderVisibleElements:Le=!1,selectNodesOnDrag:ze,nodesDraggable:qe,autoPanOnNodeFocus:_t,nodesConnectable:Ot,nodesFocusable:Lt,nodeOrigin:ue=jwe,edgesFocusable:te,edgesReconnectable:de,elementsSelectable:be=!0,defaultViewport:ce=M5t,minZoom:ne=.5,maxZoom:fe=2,translateExtent:X=Kv,preventScrolling:Oe=!0,nodeExtent:Ye,defaultMarkerColor:rt="#b1b1b7",zoomOnScroll:Ut=!0,zoomOnPinch:Kt=!0,panOnScroll:It=!1,panOnScrollSpeed:Tn=.5,panOnScrollMode:qt=Hh.Free,zoomOnDoubleClick:or=!0,panOnDrag:tr=!0,onPaneClick:xt,onPaneMouseEnter:Bt,onPaneMouseMove:bt,onPaneMouseLeave:yt,onPaneScroll:rn,onPaneContextMenu:vt,paneClickDistance:ni=1,nodeClickDistance:qr=0,children:lr,onReconnect:ur,onReconnectStart:Gr,onReconnectEnd:Rr,onEdgeContextMenu:vs,onEdgeDoubleClick:he,onEdgeMouseEnter:Ee,onEdgeMouseMove:Te,onEdgeMouseLeave:Ue,reconnectRadius:Ge=10,onNodesChange:ot,onEdgesChange:Ze,noDragClassName:Je="nodrag",noWheelClassName:it="nowheel",noPanClassName:ht="nopan",fitView:Tt,fitViewOptions:gt,connectOnClick:yn,attributionPosition:ln,proOptions:cr,defaultEdgeOptions:gr,elevateNodesOnSelect:yr=!0,elevateEdgesOnSelect:un=!1,disableKeyboardA11y:Wr=!1,autoPanOnConnect:es,autoPanOnNodeDrag:nr,autoPanSpeed:va,connectionRadius:Es,isValidConnection:Ea,onError:Hs,style:Po,id:Sl,nodeDragThreshold:Ou,connectionDragThreshold:cn,viewport:Nr,onViewportChange:_a,width:_i,height:dn,colorMode:ku="light",debug:Xp,onScroll:Zc,ariaLabelConfig:ME,zIndexMode:Mf="basic",...XA},Us){const Df=Sl||"1",DE=$5t(ku),h1=C.useCallback(Iu=>{Iu.currentTarget.scrollTo({top:0,left:0,behavior:"instant"}),Zc?.(Iu)},[Zc]);return j.jsx("div",{"data-testid":"rf__wrapper",...XA,onScroll:h1,style:{...Po,...aNt},ref:Us,className:vi(["react-flow",i,DE]),id:Sl,role:"application",children:j.jsxs(sNt,{nodes:t,edges:e,width:_i,height:dn,fitView:Tt,fitViewOptions:gt,minZoom:ne,maxZoom:fe,nodeOrigin:ue,nodeExtent:Ye,zIndexMode:Mf,children:[j.jsx(nNt,{onInit:u,onNodeClick:o,onEdgeClick:l,onNodeMouseEnter:x,onNodeMouseMove:_,onNodeMouseLeave:S,onNodeContextMenu:A,onNodeDoubleClick:R,nodeTypes:s,edgeTypes:a,connectionLineType:Z,connectionLineStyle:W,connectionLineComponent:Q,connectionLineContainerStyle:re,selectionKeyCode:J,selectionOnDrag:ae,selectionMode:ge,deleteKeyCode:se,multiSelectionKeyCode:Re,panActivationKeyCode:ve,zoomActivationKeyCode:xe,onlyRenderVisibleElements:Le,defaultViewport:ce,translateExtent:X,minZoom:ne,maxZoom:fe,preventScrolling:Oe,zoomOnScroll:Ut,zoomOnPinch:Kt,zoomOnDoubleClick:or,panOnScroll:It,panOnScrollSpeed:Tn,panOnScrollMode:qt,panOnDrag:tr,onPaneClick:xt,onPaneMouseEnter:Bt,onPaneMouseMove:bt,onPaneMouseLeave:yt,onPaneScroll:rn,onPaneContextMenu:vt,paneClickDistance:ni,nodeClickDistance:qr,onSelectionContextMenu:G,onSelectionStart:H,onSelectionEnd:K,onReconnect:ur,onReconnectStart:Gr,onReconnectEnd:Rr,onEdgeContextMenu:vs,onEdgeDoubleClick:he,onEdgeMouseEnter:Ee,onEdgeMouseMove:Te,onEdgeMouseLeave:Ue,reconnectRadius:Ge,defaultMarkerColor:rt,noDragClassName:Je,noWheelClassName:it,noPanClassName:ht,rfId:Df,disableKeyboardA11y:Wr,nodeExtent:Ye,viewport:Nr,onViewportChange:_a}),j.jsx(L5t,{nodes:t,edges:e,defaultNodes:n,defaultEdges:r,onConnect:m,onConnectStart:g,onConnectEnd:b,onClickConnectStart:v,onClickConnectEnd:E,nodesDraggable:qe,autoPanOnNodeFocus:_t,nodesConnectable:Ot,nodesFocusable:Lt,edgesFocusable:te,edgesReconnectable:de,elementsSelectable:be,elevateNodesOnSelect:yr,elevateEdgesOnSelect:un,minZoom:ne,maxZoom:fe,nodeExtent:Ye,onNodesChange:ot,onEdgesChange:Ze,snapToGrid:Ne,snapGrid:Fe,connectionMode:Y,translateExtent:X,connectOnClick:yn,defaultEdgeOptions:gr,fitView:Tt,fitViewOptions:gt,onNodesDelete:D,onEdgesDelete:P,onDelete:B,onNodeDragStart:T,onNodeDrag:O,onNodeDragStop:I,onSelectionDrag:q,onSelectionDragStart:$,onSelectionDragStop:F,onMove:c,onMoveStart:d,onMoveEnd:h,noPanClassName:ht,nodeOrigin:ue,rfId:Df,autoPanOnConnect:es,autoPanOnNodeDrag:nr,autoPanSpeed:va,onError:Hs,connectionRadius:Es,isValidConnection:Ea,selectNodesOnDrag:ze,nodeDragThreshold:Ou,connectionDragThreshold:cn,onBeforeDelete:V,debug:Xp,ariaLabelConfig:ME,zIndexMode:Mf}),j.jsx(I5t,{onSelectionChange:L}),lr,j.jsx(A5t,{proOptions:cr,position:ln}),j.jsx(T5t,{rfId:Df,disableKeyboardA11y:Wr})]})})}var kMt=Vwe(oNt);function lNt({dimensions:t,lineWidth:e,variant:n,className:r}){return j.jsx("path",{strokeWidth:e,d:`M${t[0]/2} 0 V${t[1]} M0 ${t[1]/2} H${t[0]}`,className:vi(["react-flow__background-pattern",n,r])})}function uNt({radius:t,className:e}){return j.jsx("circle",{cx:t,cy:t,r:t,className:vi(["react-flow__background-pattern","dots",e])})}var Zd;(function(t){t.Lines="lines",t.Dots="dots",t.Cross="cross"})(Zd||(Zd={}));const cNt={[Zd.Dots]:1,[Zd.Lines]:1,[Zd.Cross]:6},dNt=t=>({transform:t.transform,patternId:`pattern-${t.rfId}`});function pSe({id:t,variant:e=Zd.Dots,gap:n=20,size:r,lineWidth:i=1,offset:s=0,color:a,bgColor:o,style:l,className:u,patternClassName:c}){const d=C.useRef(null),{transform:h,patternId:m}=Rn(dNt,Cr),g=r||cNt[e],b=e===Zd.Dots,v=e===Zd.Cross,E=Array.isArray(n)?n:[n,n],x=[E[0]*h[2]||1,E[1]*h[2]||1],_=g*h[2],S=Array.isArray(s)?s:[s,s],A=v?[_,_]:x,R=[S[0]*h[2]||1+A[0]/2,S[1]*h[2]||1+A[1]/2],T=`${m}${t||""}`;return j.jsxs("svg",{className:vi(["react-flow__background",u]),style:{...l,...OA,"--xy-background-color-props":o,"--xy-background-pattern-color-props":a},ref:d,"data-testid":"rf__background",children:[j.jsx("pattern",{id:T,x:h[0]%x[0],y:h[1]%x[1],width:x[0],height:x[1],patternUnits:"userSpaceOnUse",patternTransform:`translate(-${R[0]},-${R[1]})`,children:b?j.jsx(uNt,{radius:_/2,className:c}):j.jsx(lNt,{dimensions:A,lineWidth:i,variant:e,className:c})}),j.jsx("rect",{x:"0",y:"0",width:"100%",height:"100%",fill:`url(#${T})`})]})}pSe.displayName="Background";const IMt=C.memo(pSe);function fNt(){return j.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",children:j.jsx("path",{d:"M32 18.133H18.133V32h-4.266V18.133H0v-4.266h13.867V0h4.266v13.867H32z"})})}function hNt(){return j.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 5",children:j.jsx("path",{d:"M0 0h32v4.2H0z"})})}function pNt(){return j.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 30",children:j.jsx("path",{d:"M3.692 4.63c0-.53.4-.938.939-.938h5.215V0H4.708C2.13 0 0 2.054 0 4.63v5.216h3.692V4.631zM27.354 0h-5.2v3.692h5.17c.53 0 .984.4.984.939v5.215H32V4.631A4.624 4.624 0 0027.354 0zm.954 24.83c0 .532-.4.94-.939.94h-5.215v3.768h5.215c2.577 0 4.631-2.13 4.631-4.707v-5.139h-3.692v5.139zm-23.677.94c-.531 0-.939-.4-.939-.94v-5.138H0v5.139c0 2.577 2.13 4.707 4.708 4.707h5.138V25.77H4.631z"})})}function mNt(){return j.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 25 32",children:j.jsx("path",{d:"M21.333 10.667H19.81V7.619C19.81 3.429 16.38 0 12.19 0 8 0 4.571 3.429 4.571 7.619v3.048H3.048A3.056 3.056 0 000 13.714v15.238A3.056 3.056 0 003.048 32h18.285a3.056 3.056 0 003.048-3.048V13.714a3.056 3.056 0 00-3.048-3.047zM12.19 24.533a3.056 3.056 0 01-3.047-3.047 3.056 3.056 0 013.047-3.048 3.056 3.056 0 013.048 3.048 3.056 3.056 0 01-3.048 3.047zm4.724-13.866H7.467V7.619c0-2.59 2.133-4.724 4.723-4.724 2.591 0 4.724 2.133 4.724 4.724v3.048z"})})}function gNt(){return j.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 25 32",children:j.jsx("path",{d:"M21.333 10.667H19.81V7.619C19.81 3.429 16.38 0 12.19 0c-4.114 1.828-1.37 2.133.305 2.438 1.676.305 4.42 2.59 4.42 5.181v3.048H3.047A3.056 3.056 0 000 13.714v15.238A3.056 3.056 0 003.048 32h18.285a3.056 3.056 0 003.048-3.048V13.714a3.056 3.056 0 00-3.048-3.047zM12.19 24.533a3.056 3.056 0 01-3.047-3.047 3.056 3.056 0 013.047-3.048 3.056 3.056 0 013.048 3.048 3.056 3.056 0 01-3.048 3.047z"})})}function uw({children:t,className:e,...n}){return j.jsx("button",{type:"button",className:vi(["react-flow__controls-button",e]),...n,children:t})}const yNt=t=>({isInteractive:t.nodesDraggable||t.nodesConnectable||t.elementsSelectable,minZoomReached:t.transform[2]<=t.minZoom,maxZoomReached:t.transform[2]>=t.maxZoom,ariaLabelConfig:t.ariaLabelConfig});function mSe({style:t,showZoom:e=!0,showFitView:n=!0,showInteractive:r=!0,fitViewOptions:i,onZoomIn:s,onZoomOut:a,onFitView:o,onInteractiveChange:l,className:u,children:c,position:d="bottom-left",orientation:h="vertical","aria-label":m}){const g=Tr(),{isInteractive:b,minZoomReached:v,maxZoomReached:E,ariaLabelConfig:x}=Rn(yNt,Cr),{zoomIn:_,zoomOut:S,fitView:A}=KH(),R=()=>{_(),s?.()},T=()=>{S(),a?.()},O=()=>{A(i),o?.()},I=()=>{g.setState({nodesDraggable:!b,nodesConnectable:!b,elementsSelectable:!b}),l?.(!b)},D=h==="horizontal"?"horizontal":"vertical";return j.jsxs(NA,{className:vi(["react-flow__controls",D,u]),position:d,style:t,"data-testid":"rf__controls","aria-label":m??x["controls.ariaLabel"],children:[e&&j.jsxs(j.Fragment,{children:[j.jsx(u
214w,{onClick:R,className:"react-flow__controls-zoomin",title:x["controls.zoomIn.ariaLabel"],"aria-label":x["controls.zoomIn.ariaLabel"],disabled:E,children:j.jsx(fNt,{})}),j.jsx(uw,{onClick:T,className:"react-flow__controls-zoomout",title:x["controls.zoomOut.ariaLabel"],"aria-label":x["controls.zoomOut.ariaLabel"],disabled:v,children:j.jsx(hNt,{})})]}),n&&j.jsx(uw,{className:"react-flow__controls-fitview",onClick:O,title:x["controls.fitView.ariaLabel"],"aria-label":x["controls.fitView.ariaLabel"],children:j.jsx(pNt,{})}),r&&j.jsx(uw,{className:"react-flow__controls-interactive",onClick:I,title:x["controls.interactive.ariaLabel"],"aria-label":x["controls.interactive.ariaLabel"],children:b?j.jsx(gNt,{}):j.jsx(mNt,{})}),c]})}mSe.displayName="Controls";C.memo(mSe);function bNt({id:t,x:e,y:n,width:r,height:i,style:s,color:a,strokeColor:o,strokeWidth:l,className:u,borderRadius:c,shapeRendering:d,selected:h,onClick:m}){const{background:g,backgroundColor:b}=s||{},v=a||g||b;return j.jsx("rect",{className:vi(["react-flow__minimap-node",{selected:h},u]),x:e,y:n,rx:c,ry:c,width:r,height:i,style:{fill:v,stroke:o,strokeWidth:l},shapeRendering:d,onClick:m?E=>m(E,t):void 0})}const vNt=C.memo(bNt),ENt=t=>t.nodes.map(e=>e.id),GO=t=>t instanceof Function?t:()=>t;function _Nt({nodeStrokeColor:t,nodeColor:e,nodeClassName:n="",nodeBorderRadius:r=5,nodeStrokeWidth:i,nodeComponent:s=vNt,onClick:a}){const o=Rn(ENt,Cr),l=GO(e),u=GO(t),c=GO(n),d=typeof window>"u"||window.chrome?"crispEdges":"geometricPrecision";return j.jsx(j.Fragment,{children:o.map(h=>j.jsx(wNt,{id:h,nodeColorFunc:l,nodeStrokeColorFunc:u,nodeClassNameFunc:c,nodeBorderRadius:r,nodeStrokeWidth:i,NodeComponent:s,onClick:a,shapeRendering:d},h))})}function xNt({id:t,nodeColorFunc:e,nodeStrokeColorFunc:n,nodeClassNameFunc:r,nodeBorderRadius:i,nodeStrokeWidth:s,shapeRendering:a,NodeComponent:o,onClick:l}){const{node:u,x:c,y:d,width:h,height:m}=Rn(g=>{const b=g.nodeLookup.get(t);if(!b)return{node:void 0,x:0,y:0,width:0,height:0};const v=b.internals.userNode,{x:E,y:x}=b.internals.positionAbsolute,{width:_,height:S}=Kc(v);return{node:v,x:E,y:x,width:_,height:S}},Cr);return!u||u.hidden||!bwe(u)?null:j.jsx(o,{x:c,y:d,width:h,height:m,style:u.style,selected:!!u.selected,className:r(u),color:e(u),borderRadius:i,strokeColor:n(u),strokeWidth:s,shapeRendering:a,onClick:l,id:u.id})}const wNt=C.memo(xNt);var SNt=C.memo(_Nt);const CNt=200,TNt=150,ANt=t=>!t.hidden,RNt=t=>{const e={x:-t.transform[0]/t.transform[2],y:-t.transform[1]/t.transform[2],width:t.width/t.transform[2],height:t.height/t.transform[2]};return{viewBB:e,boundingRect:t.nodeLookup.size>0?ywe(SE(t.nodeLookup,{filter:ANt}),e):e,rfId:t.rfId,panZoom:t.panZoom,translateExtent:t.translateExtent,flowWidth:t.width,flowHeight:t.height,ariaLabelConfig:t.ariaLabelConfig}},NNt="react-flow__minimap-desc";function gSe({style:t,className:e,nodeStrokeColor:n,nodeColor:r,nodeClassName:i="",nodeBorderRadius:s=5,nodeStrokeWidth:a,nodeComponent:o,bgColor:l,maskColor:u,maskStrokeColor:c,maskStrokeWidth:d,position:h="bottom-right",onClick:m,onNodeClick:g,pannable:b=!1,zoomable:v=!1,ariaLabel:E,inversePan:x,zoomStep:_=1,offsetScale:S=5}){const A=Tr(),R=C.useRef(null),{boundingRect:T,viewBB:O,rfId:I,panZoom:D,translateExtent:P,flowWidth:B,flowHeight:L,ariaLabelConfig:$}=Rn(RNt,Cr),q=t?.width??CNt,F=t?.height??TNt,G=T.width/q,H=T.height/F,K=Math.max(G,H),V=K*q,Y=K*F,Z=S*K,W=T.x-(V-T.width)/2-Z,Q=T.y-(Y-T.height)/2-Z,re=V+Z*2,se=Y+Z*2,J=`${NNt}-${I}`,ae=C.useRef(0),ge=C.useRef();ae.current=K,C.useEffect(()=>{if(R.current&&D)return ge.current=KAt({domNode:R.current,panZoom:D,getTransform:()=>A.getState().transform,getViewScale:()=>ae.current}),()=>{ge.current?.destroy()}},[D]),C.useEffect(()=>{ge.current?.update({translateExtent:P,width:B,height:L,inversePan:x,pannable:b,zoomStep:_,zoomable:v})},[b,v,x,_,P,B,L]);const ve=m?Ne=>{const[Fe,Le]=ge.current?.pointer(Ne)||[0,0];m(Ne,{x:Fe,y:Le})}:void 0,Re=g?C.useCallback((Ne,Fe)=>{const Le=A.getState().nodeLookup.get(Fe).internals.userNode;g(Ne,Le)},[]):void 0,xe=E??$["minimap.ariaLabel"];return j.jsx(NA,{position:h,style:{...t,"--xy-minimap-background-color-props":typeof l=="string"?l:void 0,"--xy-minimap-mask-background-color-props":typeof u=="string"?u:void 0,"--xy-minimap-mask-stroke-color-props":typeof c=="string"?c:void 0,"--xy-minimap-mask-stroke-width-props":typeof d=="number"?d*K:void 0,"--xy-minimap-node-background-color-props":typeof r=="string"?r:void 0,"--xy-minimap-node-stroke-color-props":typeof n=="string"?n:void 0,"--xy-minimap-node-stroke-width-props":typeof a=="number"?a:void 0},className:vi(["react-flow__minimap",e]),"data-testid":"rf__minimap",children:j.jsxs("svg",{width:q,height:F,viewB
214ox:`${W} ${Q} ${re} ${se}`,className:"react-flow__minimap-svg",role:"img","aria-labelledby":J,ref:R,onClick:ve,children:[xe&&j.jsx("title",{id:J,children:xe}),j.jsx(SNt,{onClick:Re,nodeColor:r,nodeStrokeColor:n,nodeBorderRadius:s,nodeClassName:i,nodeStrokeWidth:a,nodeComponent:o}),j.jsx("path",{className:"react-flow__minimap-mask",d:`M${W-Z},${Q-Z}h${re+Z*2}v${se+Z*2}h${-re-Z*2}z 215 M${O.x},${O.y}h${O.width}v${O.height}h${-O.width}z`,fillRule:"evenodd",pointerEvents:"none"})]})})}gSe.displayName="MiniMap";C.memo(gSe);const ONt=t=>e=>t?`${Math.max(1/e.transform[2],1)}`:void 0,kNt={[b0.Line]:"right",[b0.Handle]:"bottom-right"};function INt({nodeId:t,position:e,variant:n=b0.Handle,className:r,style:i=void 0,children:s,color:a,minWidth:o=10,minHeight:l=10,maxWidth:u=Number.MAX_VALUE,maxHeight:c=Number.MAX_VALUE,keepAspectRatio:d=!1,resizeDirection:h,autoScale:m=!0,shouldResize:g,onResizeStart:b,onResize:v,onResizeEnd:E}){const x=Ywe(),_=typeof t=="string"?t:x,S=Tr(),A=C.useRef(null),R=n===b0.Handle,T=Rn(C.useCallback(ONt(R&&m),[R,m]),Cr),O=C.useRef(null),I=e??kNt[n];C.useEffect(()=>{if(!(!A.current||!_))return O.current||(O.current=u5t({domNode:A.current,nodeId:_,getStoreItems:()=>
215{const{nodeLookup:P,transform:B,snapGrid:L,snapToGrid:$,nodeOrigin:q,domNode:F}=S.getState();return{nodeLookup:P,transform:B,snapGrid:L,snapToGrid:$,nodeOrigin:q,paneDomNode:F}},onChange:(P,B)=>{const{triggerNodeChanges:L,nodeLookup:$,parentLookup:q,nodeOrigin:F}=S.getState(),G=[],H={x:P.x,y:P.y},K=$.get(_);if(K&&K.expandParent&&K.parentId){const V=K.origin??F,Y=P.width??K.measured.width??0,Z=P.height??K.measured.height??0,W={id:K.id,parentId:K.parentId,rect:{width:Y,height:Z,...vwe({x:P.x??K.position.x,y:P.y??K.position.y},{width:Y,height:Z},K.parentId,$,V)}},Q=YH([W],$,q,F);G.push(...Q),H.x=P.x?Math.max(V[0]*Y,P.x):void 0,H.y=P.y?Math.max(V[1]*Z,P.y):void 0}if(H.x!==void 0&&H.y!==void 0){const V={id:_,type:"position",position:{...H}};G.push(V)}if(P.width!==void 0&&P.height!==void 0){const Y={id:_,type:"dimensions",resizing:!0,setAttributes:h?h==="horizontal"?"width":"height":!0,dimensions:{width:P.width,height:P.height}};G.push(Y)}for(const V of B){const Y={...V,type:"position"};G.push(Y)}L(G)},onEnd:({width:P,height:B})=>{const L={id:_,type:"dimensions",resizing:!1,dimensions:{width:P,height:B}};S.getState().triggerNodeChanges([L])}})),O.current.update({controlPosition:I,boundaries:{minWidth:o,minHeight:l,maxWidth:u,maxHeight:c},keepAspectRatio:d,resizeDirection:h,onResizeStart:b,onResize:v,onResizeEnd:E,shouldResize:g}),()=>{O.current?.destroy()}},[I,o,l,u,c,d,b,v,E,g]);const D=I.split("-");return j.jsx("div",{className:vi(["react-flow__resize-control","nodrag",...D,n,r]),ref:A,style:{...i,scale:T,...a&&{[R?"backgroundColor":"borderColor"]:a}},children:s})}C.memo(INt);function QH(t){throw new Error('Could not dynamically require "'+t+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var WO,Lne;function MNt(){if(Lne)return WO;Lne=1;function t(){this.__data__=[],this.size=0}return WO=t,WO}var YO,$ne;function l1(){if($ne)return YO;$ne=1;function t(e,n){return e===n||e!==e&&n!==n}return YO=t,YO}var KO,Fne;function IA(){if(Fne)return KO;Fne=1;var t=l1();function e(n,r){for(var i=n.length;i--;)if(t(n[i][0],r))return i;return-1}return KO=e,KO}var XO,Bne;function DNt(){if(Bne)return XO;Bne=1;var t=IA(),e=Array.prototype,n=e.splice;function r(i){var s=this.__data__,a=t(s,i);if(a<0)return!1;var o=s.length-1;return a==o?s.pop():n.call(s,a,1),--this.size,!0}return XO=r,XO}var QO,Hne;function PNt(){if(Hne)return QO;Hne=1;var t=IA();function e(n){var r=this.__data__,i=t(r,n);return i<0?void 0:r[i][1]}return QO=e,QO}var ZO,Une;function LNt(){if(Une)return ZO;Une=1;var t=IA();function e(n){return t(this.__data__,n)>-1}return ZO=e,ZO}var JO,jne;function $Nt(){if(jne)return JO;jne=1;var t=IA();function e(n,r){var i=this.__data__,s=t(i,n);return s<0?(++this.size,i.push([n,r])):i[s][1]=r,this}return JO=e,JO}var e6,zne;function MA(){if(zne)return e6;zne=1;var t=MNt(),e=DNt(),n=PNt(),r=LNt(),i=$Nt();function s(a){var o=-1,l=a==null?0:a.length;for(this.clear();++o<l;){var u=a[o];this.set(u[0],u[1])}}return s.prototype.clear=t,s.prototype.delete=e,s.prototype.get=n,s.prototype.has=r,s.prototype.set=i,e6=s,e6}var t6,Vne;function FNt(){if(Vne)return t6;Vne=1;var t=MA();function e(){this.__data__=new t,this.size=0}return t6=e,t6}var n6,qne;function BNt(){if(qne)return n6;qne=1;function t(e){var n=this.__data__,r=n.delete(e);return this.size=n.size,r}return n6=t,n6}var r6,Gne;function HNt(){if(Gne)return r6;Gne=1;function t(e){return this.__data__.get(e)}return r6=t,r6}var i6,Wne;function UNt(){if(Wne)return i6;Wne=1;function t(e){return this.__data__.has(e)}return i6=t,i6}var s6,Yne;function ySe(){if(Yne)return s6;Yne=1;var t=typeof V_=="object"&&V_&&V_.Object===Object&&V_;return s6=t,s6}var a6,Kne;function wl(){if(Kne)return a6;Kne=1;var t=ySe(),e=typeof self=="object"&&self&&self.Object===Object&&self,n=t||e||Function("return this")();return a6=n,a6}var o6,Xne;function u1(){if(Xne)return o6;Xne=1;var t=wl(),e=t.Symbol;return o6=e,o6}var l6,Qne;function jNt(){if(Qne)return l6;Qne=1;var t=u1(),e=Object.prototype,n=e.hasOwnProperty,r=e.toString,i=t?t.toStringTag:void 0;function s(a){var o=n.call(a,i),l=a[i];try{a[i]=void 0;var u=!0}catch{}var c=r.call(a);return u&&(o?a[i]=l:delete a[i]),c}return l6=s,l6}var u6,Zne;function zNt(){if(Zne)return u6;Zne=1;var t=Object.prototype,e=t.toString;function n(r){return e.call(r)}return u6=n,u6}var c6,Jne;function Gp(){if(Jne)return c6;Jne=1;
vendor: 4,469 bytes, line 215
215var t=u1(),e=jNt(),n=zNt(),r="[object Null]",i="[object Undefined]",s=t?t.toStringTag:void 0;function a(o){return o==null?o===void 0?i:r:s&&s in Object(o)?e(o):n(o)}return c6=a,c6}var d6,ere;function Mo(){if(ere)return d6;ere=1;function t(e){var n=typeof e;return e!=null&&(n=="object"||n=="function")}return d6=t,d6}var f6,tre;function AE(){if(tre)return f6;tre=1;var t=Gp(),e=Mo(),n="[object AsyncFunction]",r="[object Function]",i="[object GeneratorFunction]",s="[object Proxy]";function a(o){if(!e(o))return!1;var l=t(o);return l==r||l==i||l==n||l==s}return f6=a,f6}var h6,nre;function VNt(){if(nre)return h6;nre=1;var t=wl(),e=t["__core-js_shared__"];return h6=e,h6}var p6,rre;function qNt(){if(rre)return p6;rre=1;var t=VNt(),e=(function(){var r=/[^.]+$/.exec(t&&t.keys&&t.keys.IE_PROTO||"");return r?"Symbol(src)_1."+r:""})();function n(r){return!!e&&e in r}return p6=n,p6}var m6,ire;function bSe(){if(ire)return m6;ire=1;var t=Function.prototype,e=t.toString;function n(r){if(r!=null){try{return e.call(r)}catch{}try{return r+""}catch{}}return""}return m6=n,m6}var g6,sre;function GNt(){if(sre)return g6;sre=1;var t=AE(),e=qNt(),n=Mo(),r=bSe(),i=/[\\^$.*+?()[\]{}|]/g,s=/^\[object .+?Constructor\]$/,a=Function.prototype,o=Object.prototype,l=a.toString,u=o.hasOwnProperty,c=RegExp("^"+l.call(u).replace(i,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function d(h){if(!n(h)||e(h))return!1;var m=t(h)?c:s;return m.test(r(h))}return g6=d,g6}var y6,are;function WNt(){if(are)return y6;are=1;function t(e,n){return e?.[n]}return y6=t,y6}var b6,ore;function Wp(){if(ore)return b6;ore=1;var t=GNt(),e=WNt();function n(r,i){var s=e(r,i);return t(s)?s:void 0}return b6=n,b6}var v6,lre;function ZH(){if(lre)return v6;lre=1;var t=Wp(),e=wl(),n=t(e,"Map");return v6=n,v6}var E6,ure;function DA(){if(ure)return E6;ure=1;var t=Wp(),e=t(Object,"create");return E6=e,E6}var _6,cre;function YNt(){if(cre)return _6;cre=1;var t=DA();function e(){this.__data__=t?t(null):{},this.size=0}return _6=e,_6}var x6,dre;function KNt(){if(dre)return x6;dre=1;function t(e){var n=this.has(e)&&delete this.__data__[e];return this.size-=n?1:0,n}return x6=t,x6}var w6,fre;function XNt(){if(fre)return w6;fre=1;var t=DA(),e="__lodash_hash_undefined__",n=Object.prototype,r=n.hasOwnProperty;function i(s){var a=this.__data__;if(t){var o=a[s];return o===e?void 0:o}return r.call(a,s)?a[s]:void 0}return w6=i,w6}var S6,hre;function QNt(){if(hre)return S6;hre=1;var t=DA(),e=Object.prototype,n=e.hasOwnProperty;function r(i){var s=this.__data__;return t?s[i]!==void 0:n.call(s,i)}return S6=r,S6}var C6,pre;function ZNt(){if(pre)return C6;pre=1;var t=DA(),e="__lodash_hash_undefined__";function n(r,i){var s=this.__data__;return this.size+=this.has(r)?0:1,s[r]=t&&i===void 0?e:i,this}return C6=n,C6}var T6,mre;function JNt(){if(mre)return T6;mre=1;var t=YNt(),e=KNt(),n=XNt(),r=QNt(),i=ZNt();function s(a){var o=-1,l=a==null?0:a.length;for(this.clear();++o<l;){var u=a[o];this.set(u[0],u[1])}}return s.prototype.clear=t,s.prototype.delete=e,s.prototype.get=n,s.prototype.has=r,s.prototype.set=i,T6=s,T6}var A6,gre;function e4t(){if(gre)return A6;gre=1;var t=JNt(),e=MA(),n=ZH();function r(){this.size=0,this.__data__={hash:new t,map:new(n||e),string:new t}}return A6=r,A6}var R6,yre;function t4t(){if(yre)return R6;yre=1;function t(e){var n=typeof e;return n=="string"||n=="number"||n=="symbol"||n=="boolean"?e!=="__proto__":e===null}return R6=t,R6}var N6,bre;function PA(){if(bre)return N6;bre=1;var t=t4t();function e(n,r){var i=n.__data__;return t(r)?i[typeof r=="string"?"string":"hash"]:i.map}return N6=e,N6}var O6,vre;function n4t(){if(vre)return O6;vre=1;var t=PA();function e(n){var r=t(this,n).delete(n);return this.size-=r?1:0,r}return O6=e,O6}var k6,Ere;function r4t(){if(Ere)return k6;Ere=1;var t=PA();function e(n){return t(this,n).get(n)}return k6=e,k6}var I6,_re;function i4t(){if(_re)return I6;_re=1;var t=PA();function e(n){return t(this,n).has(n)}return I6=e,I6}var M6,xre;function s4t(){if(xre)return M6;xre=1;var t=PA();function e(n,r){var i=t(this,n),s=i.size;return i.set(n,r),this.size+=i.size==s?0:1,this}return M6=e,M6}var D6,wre;function JH(){if(wre)return D6;wre=1;var t=e4t(),e=n4t(),n=r4t(),r=i4t(),i=s4t();function s(a){var o=-1,l=a==null?0:a.length;for(this.clear();++o<l;){var u=a[o];this.set(u[0],u[1])}}return s.prototype.clear=t,s.prototype.delete=e,s.prototype.get=n,s.prototype.has=r,s.prototype.set=i,D6=s,D6}var P6,Sre;
vendor: 9,370 bytes, line 215
215function a4t(){if(Sre)return P6;Sre=1;var t=MA(),e=ZH(),n=JH(),r=200;function i(s,a){var o=this.__data__;if(o instanceof t){var l=o.__data__;if(!e||l.length<r-1)return l.push([s,a]),this.size=++o.size,this;o=this.__data__=new n(l)}return o.set(s,a),this.size=o.size,this}return P6=i,P6}var L6,Cre;function LA(){if(Cre)return L6;Cre=1;var t=MA(),e=FNt(),n=BNt(),r=HNt(),i=UNt(),s=a4t();function a(o){var l=this.__data__=new t(o);this.size=l.size}return a.prototype.clear=e,a.prototype.delete=n,a.prototype.get=r,a.prototype.has=i,a.prototype.set=s,L6=a,L6}var $6,Tre;function eU(){if(Tre)return $6;Tre=1;function t(e,n){for(var r=-1,i=e==null?0:e.length;++r<i&&n(e[r],r,e)!==!1;);return e}return $6=t,$6}var F6,Are;function vSe(){if(Are)return F6;Are=1;var t=Wp(),e=(function(){try{var n=t(Object,"defineProperty");return n({},"",{}),n}catch{}})();return F6=e,F6}var B6,Rre;function $A(){if(Rre)return B6;Rre=1;var t=vSe();function e(n,r,i){r=="__proto__"&&t?t(n,r,{configurable:!0,enumerable:!0,value:i,writable:!0}):n[r]=i}return B6=e,B6}var H6,Nre;function FA(){if(Nre)return H6;Nre=1;var t=$A(),e=l1(),n=Object.prototype,r=n.hasOwnProperty;function i(s,a,o){var l=s[a];(!(r.call(s,a)&&e(l,o))||o===void 0&&!(a in s))&&t(s,a,o)}return H6=i,H6}var U6,Ore;function RE(){if(Ore)return U6;Ore=1;var t=FA(),e=$A();function n(r,i,s,a){var o=!s;s||(s={});for(var l=-1,u=i.length;++l<u;){var c=i[l],d=a?a(s[c],r[c],c,s,r):void 0;d===void 0&&(d=r[c]),o?e(s,c,d):t(s,c,d)}return s}return U6=n,U6}var j6,kre;function o4t(){if(kre)return j6;kre=1;function t(e,n){for(var r=-1,i=Array(e);++r<e;)i[r]=n(r);return i}return j6=t,j6}var z6,Ire;function Nu(){if(Ire)return z6;Ire=1;function t(e){return e!=null&&typeof e=="object"}return z6=t,z6}var V6,Mre;function l4t(){if(Mre)return V6;Mre=1;var t=Gp(),e=Nu(),n="[object Arguments]";function r(i){return e(i)&&t(i)==n}return V6=r,V6}var q6,Dre;function NE(){if(Dre)return q6;Dre=1;var t=l4t(),e=Nu(),n=Object.prototype,r=n.hasOwnProperty,i=n.propertyIsEnumerable,s=t((function(){return arguments})())?t:function(a){return e(a)&&r.call(a,"callee")&&!i.call(a,"callee")};return q6=s,q6}var G6,Pre;function Ei(){if(Pre)return G6;Pre=1;var t=Array.isArray;return G6=t,G6}var nb={exports:{}},W6,Lre;function u4t(){if(Lre)return W6;Lre=1;function t(){return!1}return W6=t,W6}nb.exports;var $re;function c1(){return $re||($re=1,(function(t,e){var n=wl(),r=u4t(),i=e&&!e.nodeType&&e,s=i&&!0&&t&&!t.nodeType&&t,a=s&&s.exports===i,o=a?n.Buffer:void 0,l=o?o.isBuffer:void 0,u=l||r;t.exports=u})(nb,nb.exports)),nb.exports}var Y6,Fre;function BA(){if(Fre)return Y6;Fre=1;var t=9007199254740991,e=/^(?:0|[1-9]\d*)$/;function n(r,i){var s=typeof r;return i=i??t,!!i&&(s=="number"||s!="symbol"&&e.test(r))&&r>-1&&r%1==0&&r<i}return Y6=n,Y6}var K6,Bre;function tU(){if(Bre)return K6;Bre=1;var t=9007199254740991;function e(n){return typeof n=="number"&&n>-1&&n%1==0&&n<=t}return K6=e,K6}var X6,Hre;function c4t(){if(Hre)return X6;Hre=1;var t=Gp(),e=tU(),n=Nu(),r="[object Arguments]",i="[object Array]",s="[object Boolean]",a="[object Date]",o="[object Error]",l="[object Function]",u="[object Map]",c="[object Number]",d="[object Object]",h="[object RegExp]",m="[object Set]",g="[object String]",b="[object WeakMap]",v="[object ArrayBuffer]",E="[object DataView]",x="[object Float32Array]",_="[object Float64Array]",S="[object Int8Array]",A="[object Int16Array]",R="[object Int32Array]",T="[object Uint8Array]",O="[object Uint8ClampedArray]",I="[object Uint16Array]",D="[object Uint32Array]",P={};P[x]=P[_]=P[S]=P[A]=P[R]=P[T]=P[O]=P[I]=P[D]=!0,P[r]=P[i]=P[v]=P[s]=P[E]=P[a]=P[o]=P[l]=P[u]=P[c]=P[d]=P[h]=P[m]=P[g]=P[b]=!1;function B(L){return n(L)&&e(L.length)&&!!P[t(L)]}return X6=B,X6}var Q6,Ure;function HA(){if(Ure)return Q6;Ure=1;function t(e){return function(n){return e(n)}}return Q6=t,Q6}var rb={exports:{}};rb.exports;var jre;function nU(){return jre||(jre=1,(function(t,e){var n=ySe(),r=e&&!e.nodeType&&e,i=r&&!0&&t&&!t.nodeType&&t,s=i&&i.exports===r,a=s&&n.process,o=(function(){try{var l=i&&i.require&&i.require("util").types;return l||a&&a.binding&&a.binding("util")}catch{}})();t.exports=o})(rb,rb.exports)),rb.exports}var Z6,zre;function OE(){if(zre)return Z6;zre=1;var t=c4t(),e=HA(),n=nU(),r=n&&n.isTypedArray,i=r?e(r):t;return Z6=i,Z6}var J6,Vre;function ESe(){if(Vre)return J6;Vre=1;var t=o4t(),e=NE(),n=Ei(),r=c1(),i=BA(),s=OE(),a=Object.prototype,o=a.hasOwnProperty;function l(u,c){var d=n(u),h=!d&&e(u),m=!d&&!h&&r(u),g=!d&&!h&&!m&&s(u),b=d||h||m||g,v=b?t(u.length,String):[],E=v.length;for(var x in u)(c||o.call(u,x))&&!(b&&(x=="length"||m&&(x=="offset"||x=="parent")||g&&(x=="buffer"||x=="byteLength"||x=="byteOffset")||i(x,E)))&&v.push(x);return v}return J6=l,J6}var ek,qre;function UA(){if(qre)return ek;qre=1;var t=Object.prototype;function e(n){var r=n&&n.constructor,i=typeof r=="function"&&r.prototype||t;return n===i}return ek=e,ek}var tk,Gre;function _Se(){if(Gre)return tk;Gre=1;function t(e,n){return function(r){return e(n(r))}}return tk=t,tk}var nk,Wre;function d4t(){if(Wre)return nk;Wre=1;var t=_Se(),e=t(Object.keys,Object);return nk=e,nk}var rk,Yre;function rU(){if(Yre)return rk;Yre=1;var t=UA(),e=d4t(),n=Object.prototype,r=n.hasOwnProperty;function i(s){if(!t(s))return e(s);var a=[];for(var o in Object(s))r.call(s,o)&&o!="constructor"&&a.push(o);return a}return rk=i,rk}var ik,Kre;function Xc(){if(Kre)return ik;Kre=1;var t=AE(),e=tU();function n(r){return r!=null&&e(r.length)&&!t(r)}return ik=n,ik}var sk,Xre;function If(){if(Xre)return sk;Xre=1;var t=ESe(),e=rU(),n=Xc();function r(i){return n(i)?t(i):e(i)}return sk=r,sk}var ak,Qre;function f4t(){if(Qre)return ak;Qre=1;var t=RE(),e=If();function n(r,i){return r&&t(i,e(i),r)}return ak=n,ak}var ok,Zre;function h4t(){if(Zre)return ok;Zre=1;function t(e){var n=[];if(e!=null)for(var r in Object(e))n.push(r);return n}return ok=t,ok}var lk,Jre;function p4t(){if(Jre)return lk;Jre=1;var t=Mo(),e=UA(),n=h4t(),r=Object.prototype,i=r.hasOwnProperty;function s(a){if(!t(a))return n(a);var o=e(a),l=[];for(var u in a)u=="constructor"&&(o||!i.call(a,u))||l.push(u);return l}return lk=s,lk}var uk,eie;function Yp(){if(eie)return uk;eie=1;var t=ESe(),e=p4t(),n=Xc();function r(i){return n(i)?t(i,!0):e(i)}return uk=r,uk}var ck,tie;function m4t(){if(tie)return ck;tie=1;var t=RE(),e=Yp();function n(r,i){return r&&t(i,e(i),r)}return ck=n,ck}var ib={exports:{}};ib.exports;var nie;function xSe(){return nie||(nie=1,(function(t,e){var n=wl(),r=e&&!e.nodeType&&e,i=r&&!0&&t&&!t.nodeType&&t,s=i&&i.exports===r,a=s?n.Buffer:void 0,o=a?a.allocUnsafe:void 0;function l(u,c){if(c)return u.slice();var d=u.length,h=o?o(d):new u.constructor(d);return u.copy(h),h}t.exports=l})(ib,ib.exports)),ib.exports}var dk,rie;function wSe(){if(rie)return dk;rie=1;function t(e,n){var r=-1,i=e.length;for(n||(n=Array(i));++r<i;)n[r]=e[r];return n}return dk=t,dk}var fk,iie;function SSe(){if(iie)return fk;iie=1;function t(e,n){for(var r=-1,i=e==null?0:e.length,s=0,a=[];++r<i;){var o=e[r];n(o,r,e)&&(a[s++]=o)}return a}return fk=t,fk}var hk,sie;function CSe(){if(sie)return hk;sie=1;function t(){return[]}return hk=t,hk}var pk,aie;function iU(){if(aie)return pk;aie=1;var t=SSe(),e=CSe(),n=Object.prototype,r=n.propertyIsEnumerable,i=Object.getOwnPropertySymbols,s=i?function(a){return a==null?[]:(a=Object(a),t(i(a),function(o){return r.call(a,o)}))}:e;return pk=s,pk}var mk,oie;function g4t(){if(oie)return mk;oie=1;var t=RE(),e=iU();function n(r,i){return t(r,e(r),i)}return mk=n,mk}var gk,lie;function sU(){if(lie)return gk;lie=1;function t(e,n){for(var r=-1,i=n.length,s=e.length;++r<i;)e[s+r]=n[r];return e}return gk=t,gk}var yk,uie;function jA(){if(uie)return yk;uie=1;var t=_Se(),e=t(Object.getPrototypeOf,Object);return yk=e,yk}var bk,cie;function TSe(){if(cie)return bk;cie=1;var t=sU(),e=jA(),n=iU(),r=CSe(),i=Object.getOwnPropertySymbols,s=i?function(a){for(var o=[];a;)t(o,n(a)),a=e(a);return o}:r;return bk=s,bk}var vk,die;function y4t(){if(die)return vk;die=1;var t=RE(),e=TSe();function n(r,i){return t(r,e(r),i)}return vk=n,vk}var Ek,fie;function ASe(){if(fie)return Ek;fie=1;var t=sU(),e=Ei();function n(r,i,s){var a=i(r);return e(r)?a:t(a,s(r))}return Ek=n,Ek}var _k,hie;function RSe(){if(hie)return _k;hie=1;var t=ASe(),e=iU(),n=If();function r(i){return t(i,n,e)}return _k=r,_k}var xk,pie;function b4t(){if(pie)return xk;pie=1;var t=ASe(),e=TSe(),n=Yp();function r(i){return t(i,n,e)}return xk=r,xk}var wk,mie;function v4t(){if(mie)return wk;mie=1;var t=Wp(),e=wl(),n=t(e,"DataView");return wk=n,wk}var Sk,gie;function E4t(){if(gie)return Sk;gie=1;var t=Wp(),e=wl(),n=t(e,"Promise");return Sk=n,Sk}var Ck,yie;function NSe(){if(yie)return Ck;yie=1;var t=Wp(),e=wl(),n=t(e,"Set");return Ck=n,Ck}var Tk,bie;function _4t(){if(bie)return Tk;bie=1;var t=Wp(),e=wl(),n=t(e,"WeakMap");return Tk=n,Tk}var Ak,vie;function d1(){if(vie)return Ak;vie=1;var t=v4t(),e=ZH(),n=E4t(),r=NSe(),i=_4t(),s=Gp(),a=bSe(),o="[object Map]",l="[object Object]",u="[object Promise]",c="[object Set]",d="[object WeakMap]",h="[object DataView]",m=a(t),g=a(e),b=a(n),v=a(r),E=a(i),x=s;return(t&&x(new t(new ArrayBuffer(1)))!=h||e&&x(new e)!=o||n&&x(n.resolve())!=u||r&&x(new r)!=c||i&&x(new i)!=d)&&(x=function(_){var S=s(_),A=S==l?_.constructor:void 0,R=A?a(A):"";if(R)switch(R){case m:return h;case g:return o;case b:return u;case v:return c;case E:return d}return S}),Ak=x,Ak}var Rk,Eie;
vendor: 4,838 bytes, line 215
215function x4t(){if(Eie)return Rk;Eie=1;var t=Object.prototype,e=t.hasOwnProperty;function n(r){var i=r.length,s=new r.constructor(i);return i&&typeof r[0]=="string"&&e.call(r,"index")&&(s.index=r.index,s.input=r.input),s}return Rk=n,Rk}var Nk,_ie;function OSe(){if(_ie)return Nk;_ie=1;var t=wl(),e=t.Uint8Array;return Nk=e,Nk}var Ok,xie;function aU(){if(xie)return Ok;xie=1;var t=OSe();function e(n){var r=new n.constructor(n.byteLength);return new t(r).set(new t(n)),r}return Ok=e,Ok}var kk,wie;function w4t(){if(wie)return kk;wie=1;var t=aU();function e(n,r){var i=r?t(n.buffer):n.buffer;return new n.constructor(i,n.byteOffset,n.byteLength)}return kk=e,kk}var Ik,Sie;function S4t(){if(Sie)return Ik;Sie=1;var t=/\w*$/;function e(n){var r=new n.constructor(n.source,t.exec(n));return r.lastIndex=n.lastIndex,r}return Ik=e,Ik}var Mk,Cie;function C4t(){if(Cie)return Mk;Cie=1;var t=u1(),e=t?t.prototype:void 0,n=e?e.valueOf:void 0;function r(i){return n?Object(n.call(i)):{}}return Mk=r,Mk}var Dk,Tie;function kSe(){if(Tie)return Dk;Tie=1;var t=aU();function e(n,r){var i=r?t(n.buffer):n.buffer;return new n.constructor(i,n.byteOffset,n.length)}return Dk=e,Dk}var Pk,Aie;function T4t(){if(Aie)return Pk;Aie=1;var t=aU(),e=w4t(),n=S4t(),r=C4t(),i=kSe(),s="[object Boolean]",a="[object Date]",o="[object Map]",l="[object Number]",u="[object RegExp]",c="[object Set]",d="[object String]",h="[object Symbol]",m="[object ArrayBuffer]",g="[object DataView]",b="[object Float32Array]",v="[object Float64Array]",E="[object Int8Array]",x="[object Int16Array]",_="[object Int32Array]",S="[object Uint8Array]",A="[object Uint8ClampedArray]",R="[object Uint16Array]",T="[object Uint32Array]";function O(I,D,P){var B=I.constructor;switch(D){case m:return t(I);case s:case a:return new B(+I);case g:return e(I,P);case b:case v:case E:case x:case _:case S:case A:case R:case T:return i(I,P);case o:return new B;case l:case d:return new B(I);case u:return n(I);case c:return new B;case h:return r(I)}}return Pk=O,Pk}var Lk,Rie;function ISe(){if(Rie)return Lk;Rie=1;var t=Mo(),e=Object.create,n=(function(){function r(){}return function(i){if(!t(i))return{};if(e)return e(i);r.prototype=i;var s=new r;return r.prototype=void 0,s}})();return Lk=n,Lk}var $k,Nie;function MSe(){if(Nie)return $k;Nie=1;var t=ISe(),e=jA(),n=UA();function r(i){return typeof i.constructor=="function"&&!n(i)?t(e(i)):{}}return $k=r,$k}var Fk,Oie;function A4t(){if(Oie)return Fk;Oie=1;var t=d1(),e=Nu(),n="[object Map]";function r(i){return e(i)&&t(i)==n}return Fk=r,Fk}var Bk,kie;function R4t(){if(kie)return Bk;kie=1;var t=A4t(),e=HA(),n=nU(),r=n&&n.isMap,i=r?e(r):t;return Bk=i,Bk}var Hk,Iie;function N4t(){if(Iie)return Hk;Iie=1;var t=d1(),e=Nu(),n="[object Set]";function r(i){return e(i)&&t(i)==n}return Hk=r,Hk}var Uk,Mie;function O4t(){if(Mie)return Uk;Mie=1;var t=N4t(),e=HA(),n=nU(),r=n&&n.isSet,i=r?e(r):t;return Uk=i,Uk}var jk,Die;function DSe(){if(Die)return jk;Die=1;var t=LA(),e=eU(),n=FA(),r=f4t(),i=m4t(),s=xSe(),a=wSe(),o=g4t(),l=y4t(),u=RSe(),c=b4t(),d=d1(),h=x4t(),m=T4t(),g=MSe(),b=Ei(),v=c1(),E=R4t(),x=Mo(),_=O4t(),S=If(),A=Yp(),R=1,T=2,O=4,I="[object Arguments]",D="[object Array]",P="[object Boolean]",B="[object Date]",L="[object Error]",$="[object Function]",q="[object GeneratorFunction]",F="[object Map]",G="[object Number]",H="[object Object]",K="[object RegExp]",V="[object Set]",Y="[object String]",Z="[object Symbol]",W="[object WeakMap]",Q="[object ArrayBuffer]",re="[object DataView]",se="[object Float32Array]",J="[object Float64Array]",ae="[object Int8Array]",ge="[object Int16Array]",ve="[object Int32Array]",Re="[object Uint8Array]",xe="[object Uint8ClampedArray]",Ne="[object Uint16Array]",Fe="[object Uint32Array]",Le={};Le[I]=Le[D]=Le[Q]=Le[re]=Le[P]=Le[B]=Le[se]=Le[J]=Le[ae]=Le[ge]=Le[ve]=Le[F]=Le[G]=Le[H]=Le[K]=Le[V]=Le[Y]=Le[Z]=Le[Re]=Le[xe]=Le[Ne]=Le[Fe]=!0,Le[L]=Le[$]=Le[W]=!1;function ze(qe,_t,Ot,Lt,ue,te){var de,be=_t&R,ce=_t&T,ne=_t&O;if(Ot&&(de=ue?Ot(qe,Lt,ue,te):Ot(qe)),de!==void 0)return de;if(!x(qe))return qe;var fe=b(qe);if(fe){if(de=h(qe),!be)return a(qe,de)}else{var X=d(qe),Oe=X==$||X==q;if(v(qe))return s(qe,be);if(X==H||X==I||Oe&&!ue){if(de=ce||Oe?{}:g(qe),!be)return ce?l(qe,i(de,qe)):o(qe,r(de,qe))}else{if(!Le[X])return ue?qe:{};de=m(qe,X,be)}}te||(te=new t);var Ye=te.get(qe);if(Ye)return Ye;te.set(qe,de),_(qe)?qe.forEach(function(Kt){de.add(ze(Kt,_t,Ot,Kt,qe,te))}):E(qe)&&qe.forEach(function(Kt,It){de.set(It,ze(Kt,_t,Ot,It,qe,te))});var rt=ne?ce?c:u:ce?A:S,Ut=fe?void 0:rt(qe);return e(Ut||qe,function(Kt,It){Ut&&(It=Kt,Kt=qe[It]),n(de,It,ze(Kt,_t,Ot,It,qe,te))}),de}return jk=ze,jk}var zk,Pie;function k4t(){if(Pie)return zk;Pie=1;var t=DSe(),e=4;function n(r){return t(r,e)}return zk=n,zk}var Vk,Lie;function oU(){if(Lie)return Vk;Lie=1;function t(e){return function(){return e}}return Vk=t,Vk}var qk,$ie;
vendor: 4,188 bytes, line 215
215function I4t(){if($ie)return qk;$ie=1;function t(e){return function(n,r,i){for(var s=-1,a=Object(n),o=i(n),l=o.length;l--;){var u=o[e?l:++s];if(r(a[u],u,a)===!1)break}return n}}return qk=t,qk}var Gk,Fie;function lU(){if(Fie)return Gk;Fie=1;var t=I4t(),e=t();return Gk=e,Gk}var Wk,Bie;function uU(){if(Bie)return Wk;Bie=1;var t=lU(),e=If();function n(r,i){return r&&t(r,i,e)}return Wk=n,Wk}var Yk,Hie;function M4t(){if(Hie)return Yk;Hie=1;var t=Xc();function e(n,r){return function(i,s){if(i==null)return i;if(!t(i))return n(i,s);for(var a=i.length,o=r?a:-1,l=Object(i);(r?o--:++o<a)&&s(l[o],o,l)!==!1;);return i}}return Yk=e,Yk}var Kk,Uie;function zA(){if(Uie)return Kk;Uie=1;var t=uU(),e=M4t(),n=e(t);return Kk=n,Kk}var Xk,jie;function Kp(){if(jie)return Xk;jie=1;function t(e){return e}return Xk=t,Xk}var Qk,zie;function PSe(){if(zie)return Qk;zie=1;var t=Kp();function e(n){return typeof n=="function"?n:t}return Qk=e,Qk}var Zk,Vie;function LSe(){if(Vie)return Zk;Vie=1;var t=eU(),e=zA(),n=PSe(),r=Ei();function i(s,a){var o=r(s)?t:e;return o(s,n(a))}return Zk=i,Zk}var Jk,qie;function $Se(){return qie||(qie=1,Jk=LSe()),Jk}var e8,Gie;function D4t(){if(Gie)return e8;Gie=1;var t=zA();function e(n,r){var i=[];return t(n,function(s,a,o){r(s,a,o)&&i.push(s)}),i}return e8=e,e8}var t8,Wie;function P4t(){if(Wie)return t8;Wie=1;var t="__lodash_hash_undefined__";function e(n){return this.__data__.set(n,t),this}return t8=e,t8}var n8,Yie;function L4t(){if(Yie)return n8;Yie=1;function t(e){return this.__data__.has(e)}return n8=t,n8}var r8,Kie;function FSe(){if(Kie)return r8;Kie=1;var t=JH(),e=P4t(),n=L4t();function r(i){var s=-1,a=i==null?0:i.length;for(this.__data__=new t;++s<a;)this.add(i[s])}return r.prototype.add=r.prototype.push=e,r.prototype.has=n,r8=r,r8}var i8,Xie;function $4t(){if(Xie)return i8;Xie=1;function t(e,n){for(var r=-1,i=e==null?0:e.length;++r<i;)if(n(e[r],r,e))return!0;return!1}return i8=t,i8}var s8,Qie;function BSe(){if(Qie)return s8;Qie=1;function t(e,n){return e.has(n)}return s8=t,s8}var a8,Zie;function HSe(){if(Zie)return a8;Zie=1;var t=FSe(),e=$4t(),n=BSe(),r=1,i=2;function s(a,o,l,u,c,d){var h=l&r,m=a.length,g=o.length;if(m!=g&&!(h&&g>m))return!1;var b=d.get(a),v=d.get(o);if(b&&v)return b==o&&v==a;var E=-1,x=!0,_=l&i?new t:void 0;for(d.set(a,o),d.set(o,a);++E<m;){var S=a[E],A=o[E];if(u)var R=h?u(A,S,E,o,a,d):u(S,A,E,a,o,d);if(R!==void 0){if(R)continue;x=!1;break}if(_){if(!e(o,function(T,O){if(!n(_,O)&&(S===T||c(S,T,l,u,d)))return _.push(O)})){x=!1;break}}else if(!(S===A||c(S,A,l,u,d))){x=!1;break}}return d.delete(a),d.delete(o),x}return a8=s,a8}var o8,Jie;function F4t(){if(Jie)return o8;Jie=1;function t(e){var n=-1,r=Array(e.size);return e.forEach(function(i,s){r[++n]=[s,i]}),r}return o8=t,o8}var l8,ese;function cU(){if(ese)return l8;ese=1;function t(e){var n=-1,r=Array(e.size);return e.forEach(function(i){r[++n]=i}),r}return l8=t,l8}var u8,tse;function B4t(){if(tse)return u8;tse=1;var t=u1(),e=OSe(),n=l1(),r=HSe(),i=F4t(),s=cU(),a=1,o=2,l="[object Boolean]",u="[object Date]",c="[object Error]",d="[object Map]",h="[object Number]",m="[object RegExp]",g="[object Set]",b="[object String]",v="[object Symbol]",E="[object ArrayBuffer]",x="[object DataView]",_=t?t.prototype:void 0,S=_?_.valueOf:void 0;function A(R,T,O,I,D,P,B){switch(O){case x:if(R.byteLength!=T.byteLength||R.byteOffset!=T.byteOffset)return!1;R=R.buffer,T=T.buffer;case E:return!(R.byteLength!=T.byteLength||!P(new e(R),new e(T)));case l:case u:case h:return n(+R,+T);case c:return R.name==T.name&&R.message==T.message;case m:case b:return R==T+"";case d:var L=i;case g:var $=I&a;if(L||(L=s),R.size!=T.size&&!$)return!1;var q=B.get(R);if(q)return q==T;I|=o,B.set(R,T);var F=r(L(R),L(T),I,D,P,B);return B.delete(R),F;case v:if(S)return S.call(R)==S.call(T)}return!1}return u8=A,u8}var c8,nse;function H4t(){if(nse)return c8;nse=1;var t=RSe(),e=1,n=Object.prototype,r=n.hasOwnProperty;function i(s,a,o,l,u,c){var d=o&e,h=t(s),m=h.length,g=t(a),b=g.length;if(m!=b&&!d)return!1;for(var v=m;v--;){var E=h[v];if(!(d?E in a:r.call(a,E)))return!1}var x=c.get(s),_=c.get(a);if(x&&_)return x==a&&_==s;var S=!0;c.set(s,a),c.set(a,s);for(var A=d;++v<m;){E=h[v];var R=s[E],T=a[E];
vendor: 9,099 bytes, line 215
215if(l)var O=d?l(T,R,E,a,s,c):l(R,T,E,s,a,c);if(!(O===void 0?R===T||u(R,T,o,l,c):O)){S=!1;break}A||(A=E=="constructor")}if(S&&!A){var I=s.constructor,D=a.constructor;I!=D&&"constructor"in s&&"constructor"in a&&!(typeof I=="function"&&I instanceof I&&typeof D=="function"&&D instanceof D)&&(S=!1)}return c.delete(s),c.delete(a),S}return c8=i,c8}var d8,rse;function U4t(){if(rse)return d8;rse=1;var t=LA(),e=HSe(),n=B4t(),r=H4t(),i=d1(),s=Ei(),a=c1(),o=OE(),l=1,u="[object Arguments]",c="[object Array]",d="[object Object]",h=Object.prototype,m=h.hasOwnProperty;function g(b,v,E,x,_,S){var A=s(b),R=s(v),T=A?c:i(b),O=R?c:i(v);T=T==u?d:T,O=O==u?d:O;var I=T==d,D=O==d,P=T==O;if(P&&a(b)){if(!a(v))return!1;A=!0,I=!1}if(P&&!I)return S||(S=new t),A||o(b)?e(b,v,E,x,_,S):n(b,v,T,E,x,_,S);if(!(E&l)){var B=I&&m.call(b,"__wrapped__"),L=D&&m.call(v,"__wrapped__");if(B||L){var $=B?b.value():b,q=L?v.value():v;return S||(S=new t),_($,q,E,x,S)}}return P?(S||(S=new t),r(b,v,E,x,_,S)):!1}return d8=g,d8}var f8,ise;function USe(){if(ise)return f8;ise=1;var t=U4t(),e=Nu();function n(r,i,s,a,o){return r===i?!0:r==null||i==null||!e(r)&&!e(i)?r!==r&&i!==i:t(r,i,s,a,n,o)}return f8=n,f8}var h8,sse;function j4t(){if(sse)return h8;sse=1;var t=LA(),e=USe(),n=1,r=2;function i(s,a,o,l){var u=o.length,c=u,d=!l;if(s==null)return!c;for(s=Object(s);u--;){var h=o[u];if(d&&h[2]?h[1]!==s[h[0]]:!(h[0]in s))return!1}for(;++u<c;){h=o[u];var m=h[0],g=s[m],b=h[1];if(d&&h[2]){if(g===void 0&&!(m in s))return!1}else{var v=new t;if(l)var E=l(g,b,m,s,a,v);if(!(E===void 0?e(b,g,n|r,l,v):E))return!1}}return!0}return h8=i,h8}var p8,ase;function jSe(){if(ase)return p8;ase=1;var t=Mo();function e(n){return n===n&&!t(n)}return p8=e,p8}var m8,ose;function z4t(){if(ose)return m8;ose=1;var t=jSe(),e=If();function n(r){for(var i=e(r),s=i.length;s--;){var a=i[s],o=r[a];i[s]=[a,o,t(o)]}return i}return m8=n,m8}var g8,lse;function zSe(){if(lse)return g8;lse=1;function t(e,n){return function(r){return r==null?!1:r[e]===n&&(n!==void 0||e in Object(r))}}return g8=t,g8}var y8,use;function V4t(){if(use)return y8;use=1;var t=j4t(),e=z4t(),n=zSe();function r(i){var s=e(i);return s.length==1&&s[0][2]?n(s[0][0],s[0][1]):function(a){return a===i||t(a,i,s)}}return y8=r,y8}var b8,cse;function f1(){if(cse)return b8;cse=1;var t=Gp(),e=Nu(),n="[object Symbol]";function r(i){return typeof i=="symbol"||e(i)&&t(i)==n}return b8=r,b8}var v8,dse;function dU(){if(dse)return v8;dse=1;var t=Ei(),e=f1(),n=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,r=/^\w*$/;function i(s,a){if(t(s))return!1;var o=typeof s;return o=="number"||o=="symbol"||o=="boolean"||s==null||e(s)?!0:r.test(s)||!n.test(s)||a!=null&&s in Object(a)}return v8=i,v8}var E8,fse;function q4t(){if(fse)return E8;fse=1;var t=JH(),e="Expected a function";function n(r,i){if(typeof r!="function"||i!=null&&typeof i!="function")throw new TypeError(e);var s=function(){var a=arguments,o=i?i.apply(this,a):a[0],l=s.cache;if(l.has(o))return l.get(o);var u=r.apply(this,a);return s.cache=l.set(o,u)||l,u};return s.cache=new(n.Cache||t),s}return n.Cache=t,E8=n,E8}var _8,hse;function G4t(){if(hse)return _8;hse=1;var t=q4t(),e=500;function n(r){var i=t(r,function(a){return s.size===e&&s.clear(),a}),s=i.cache;return i}return _8=n,_8}var x8,pse;function W4t(){if(pse)return x8;pse=1;var t=G4t(),e=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,n=/\\(\\)?/g,r=t(function(i){var s=[];return i.charCodeAt(0)===46&&s.push(""),i.replace(e,function(a,o,l,u){s.push(l?u.replace(n,"$1"):o||a)}),s});return x8=r,x8}var w8,mse;function VA(){if(mse)return w8;mse=1;function t(e,n){for(var r=-1,i=e==null?0:e.length,s=Array(i);++r<i;)s[r]=n(e[r],r,e);return s}return w8=t,w8}var S8,gse;function Y4t(){if(gse)return S8;gse=1;var t=u1(),e=VA(),n=Ei(),r=f1(),i=t?t.prototype:void 0,s=i?i.toString:void 0;function a(o){if(typeof o=="string")return o;if(n(o))return e(o,a)+"";if(r(o))return s?s.call(o):"";var l=o+"";return l=="0"&&1/o==-1/0?"-0":l}return S8=a,S8}var C8,yse;function VSe(){if(yse)return C8;yse=1;var t=Y4t();function e(n){return n==null?"":t(n)}return C8=e,C8}var T8,bse;function qA(){if(bse)return T8;bse=1;var t=Ei(),e=dU(),n=W4t(),r=VSe();function i(s,a){return t(s)?s:e(s,a)?[s]:n(r(s))}return T8=i,T8}var A8,vse;function kE(){if(vse)return A8;vse=1;var t=f1();function e(n){if(typeof n=="string"||t(n))return n;var r=n+"";return r=="0"&&1/n==-1/0?"-0":r}return A8=e,A8}var R8,Ese;function GA(){if(Ese)return R8;Ese=1;var t=qA(),e=kE();function n(r,i){i=t(i,r);for(var s=0,a=i.length;r!=null&&s<a;)r=r[e(i[s++])];return s&&s==a?r:void 0}return R8=n,R8}var N8,_se;function K4t(){if(_se)return N8;_se=1;var t=GA();function e(n,r,i){var s=n==null?void 0:t(n,r);return s===void 0?i:s}return N8=e,N8}var O8,xse;function X4t(){if(xse)return O8;xse=1;function t(e,n){return e!=null&&n in Object(e)}return O8=t,O8}var k8,wse;function qSe(){if(wse)return k8;wse=1;var t=qA(),e=NE(),n=Ei(),r=BA(),i=tU(),s=kE();function a(o,l,u){l=t(l,o);for(var c=-1,d=l.length,h=!1;++c<d;){var m=s(l[c]);if(!(h=o!=null&&u(o,m)))break;o=o[m]}return h||++c!=d?h:(d=o==null?0:o.length,!!d&&i(d)&&r(m,d)&&(n(o)||e(o)))}return k8=a,k8}var I8,Sse;function GSe(){if(Sse)return I8;Sse=1;var t=X4t(),e=qSe();function n(r,i){return r!=null&&e(r,i,t)}return I8=n,I8}var M8,Cse;function Q4t(){if(Cse)return M8;Cse=1;var t=USe(),e=K4t(),n=GSe(),r=dU(),i=jSe(),s=zSe(),a=kE(),o=1,l=2;function u(c,d){return r(c)&&i(d)?s(a(c),d):function(h){var m=e(h,c);return m===void 0&&m===d?n(h,c):t(d,m,o|l)}}return M8=u,M8}var D8,Tse;function WSe(){if(Tse)return D8;Tse=1;function t(e){return function(n){return n?.[e]}}return D8=t,D8}var P8,Ase;function Z4t(){if(Ase)return P8;Ase=1;var t=GA();function e(n){return function(r){return t(r,n)}}return P8=e,P8}var L8,Rse;function J4t(){if(Rse)return L8;Rse=1;var t=WSe(),e=Z4t(),n=dU(),r=kE();function i(s){return n(s)?t(r(s)):e(s)}return L8=i,L8}var $8,Nse;function Qc(){if(Nse)return $8;Nse=1;var t=V4t(),e=Q4t(),n=Kp(),r=Ei(),i=J4t();function s(a){return typeof a=="function"?a:a==null?n:typeof a=="object"?r(a)?e(a[0],a[1]):t(a):i(a)}return $8=s,$8}var F8,Ose;function YSe(){if(Ose)return F8;Ose=1;var t=SSe(),e=D4t(),n=Qc(),r=Ei();function i(s,a){var o=r(s)?t:e;return o(s,n(a,3))}return F8=i,F8}var B8,kse;function eOt(){if(kse)return B8;kse=1;var t=Object.prototype,e=t.hasOwnProperty;function n(r,i){return r!=null&&e.call(r,i)}return B8=n,B8}var H8,Ise;function KSe(){if(Ise)return H8;Ise=1;var t=eOt(),e=qSe();function n(r,i){return r!=null&&e(r,i,t)}return H8=n,H8}var U8,Mse;function tOt(){if(Mse)return U8;Mse=1;var t=rU(),e=d1(),n=NE(),r=Ei(),i=Xc(),s=c1(),a=UA(),o=OE(),l="[object Map]",u="[object Set]",c=Object.prototype,d=c.hasOwnProperty;function h(m){if(m==null)return!0;if(i(m)&&(r(m)||typeof m=="string"||typeof m.splice=="function"||s(m)||o(m)||n(m)))return!m.length;var g=e(m);if(g==l||g==u)return!m.size;if(a(m))return!t(m).length;for(var b in m)if(d.call(m,b))return!1;return!0}return U8=h,U8}var j8,Dse;function XSe(){if(Dse)return j8;Dse=1;function t(e){return e===void 0}return j8=t,j8}var z8,Pse;function QSe(){if(Pse)return z8;Pse=1;var t=zA(),e=Xc();function n(r,i){var s=-1,a=e(r)?Array(r.length):[];return t(r,function(o,l,u){a[++s]=i(o,l,u)}),a}return z8=n,z8}var V8,Lse;function ZSe(){if(Lse)return V8;Lse=1;var t=VA(),e=Qc(),n=QSe(),r=Ei();function i(s,a){var o=r(s)?t:n;return o(s,e(a,3))}return V8=i,V8}var q8,$se;function nOt(){if($se)return q8;$se=1;function t(e,n,r,i){var s=-1,a=e==null?0:e.length;for(i&&a&&(r=e[++s]);++s<a;)r=n(r,e[s],s,e);return r}return q8=t,q8}var G8,Fse;function rOt(){if(Fse)return G8;Fse=1;function t(e,n,r,i,s){return s(e,function(a,o,l){r=i?(i=!1,a):n(r,a,o,l)}),r}return G8=t,G8}var W8,Bse;function JSe(){if(Bse)return W8;Bse=1;var t=nOt(),e=zA(),n=Qc(),r=rOt(),i=Ei();function s(a,o,l){var u=i(a)?t:r,c=arguments.length<3;return u(a,n(o,4),l,c,e)}return W8=s,W8}var Y8,Hse;function iOt(){if(Hse)return Y8;Hse=1;var t=Gp(),e=Ei(),n=Nu(),r="[object String]";function i(s){return typeof s=="string"||!e(s)&&n(s)&&t(s)==r}return Y8=i,Y8}var K8,Use;function sOt(){if(Use)return K8;Use=1;var t=WSe(),e=t("length");return K8=e,K8}var X8,jse;function aOt(){if(jse)return X8;jse=1;var t="\\ud800-\\udfff",e="\\u0300-\\u036f",n="\\ufe20-\\ufe2f",r="\\u20d0-\\u20ff",i=e+n+r,s="\\ufe0e\\ufe0f",a="\\u200d",o=RegExp("["+a+t+i+s+"]");function l(u){return o.test(u)}return X8=l,X8}var Q8,zse;function oOt(){if(zse)return Q8;zse=1;var t="\\ud800-\\udfff",e="\\u0300-\\u036f",n="\\ufe20-\\ufe2f",r="\\u20d0-\\u20ff",i=e+n+r,s="\\ufe0e\\ufe0f",a="["+t+"]",o="["+i+"]",l="\\ud83c[\\udffb-\\udfff]",u="(?:"+o+"|"+l+")",c="[^"+t+"]",d="(?:\\ud83c[\\udde6-\\uddff]){2}",h="[\\ud800-\\udbff][\\udc00-\\udfff]",m="\\u200d",g=u+"?",b="["+s+"]?",v="(?:"+m+"(?:"+[c,d,h].join("|")+")"+b+g+")*",E=b+g+v,x="(?:"+[c+o+"?",o,d,h,a].join("|")+")",_=RegExp(l+"(?="+l+")|"+x+E,"g");function S(A){for(var R=_.lastIndex=0;_.test(A);)++R;return R}return Q8=S,Q8}var Z8,Vse;function lOt(){if(Vse)return Z8;Vse=1;var t=sOt(),e=aOt(),n=oOt();function r(i){return e(i)?n(i):t(i)}return Z8=r,Z8}var J8,qse;
vendor: 3,699 bytes, line 215
215function uOt(){if(qse)return J8;qse=1;var t=rU(),e=d1(),n=Xc(),r=iOt(),i=lOt(),s="[object Map]",a="[object Set]";function o(l){if(l==null)return 0;if(n(l))return r(l)?i(l):l.length;var u=e(l);return u==s||u==a?l.size:t(l).length}return J8=o,J8}var eI,Gse;function cOt(){if(Gse)return eI;Gse=1;var t=eU(),e=ISe(),n=uU(),r=Qc(),i=jA(),s=Ei(),a=c1(),o=AE(),l=Mo(),u=OE();function c(d,h,m){var g=s(d),b=g||a(d)||u(d);if(h=r(h,4),m==null){var v=d&&d.constructor;b?m=g?new v:[]:l(d)?m=o(v)?e(i(d)):{}:m={}}return(b?t:n)(d,function(E,x,_){return h(m,E,x,_)}),m}return eI=c,eI}var tI,Wse;function dOt(){if(Wse)return tI;Wse=1;var t=u1(),e=NE(),n=Ei(),r=t?t.isConcatSpreadable:void 0;function i(s){return n(s)||e(s)||!!(r&&s&&s[r])}return tI=i,tI}var nI,Yse;function fU(){if(Yse)return nI;Yse=1;var t=sU(),e=dOt();function n(r,i,s,a,o){var l=-1,u=r.length;for(s||(s=e),o||(o=[]);++l<u;){var c=r[l];i>0&&s(c)?i>1?n(c,i-1,s,a,o):t(o,c):a||(o[o.length]=c)}return o}return nI=n,nI}var rI,Kse;function fOt(){if(Kse)return rI;Kse=1;function t(e,n,r){switch(r.length){case 0:return e.call(n);case 1:return e.call(n,r[0]);case 2:return e.call(n,r[0],r[1]);case 3:return e.call(n,r[0],r[1],r[2])}return e.apply(n,r)}return rI=t,rI}var iI,Xse;function eCe(){if(Xse)return iI;Xse=1;var t=fOt(),e=Math.max;function n(r,i,s){return i=e(i===void 0?r.length-1:i,0),function(){for(var a=arguments,o=-1,l=e(a.length-i,0),u=Array(l);++o<l;)u[o]=a[i+o];o=-1;for(var c=Array(i+1);++o<i;)c[o]=a[o];return c[i]=s(u),t(r,this,c)}}return iI=n,iI}var sI,Qse;function hOt(){if(Qse)return sI;Qse=1;var t=oU(),e=vSe(),n=Kp(),r=e?function(i,s){return e(i,"toString",{configurable:!0,enumerable:!1,value:t(s),writable:!0})}:n;return sI=r,sI}var aI,Zse;function pOt(){if(Zse)return aI;Zse=1;var t=800,e=16,n=Date.now;function r(i){var s=0,a=0;return function(){var o=n(),l=e-(o-a);if(a=o,l>0){if(++s>=t)return arguments[0]}else s=0;return i.apply(void 0,arguments)}}return aI=r,aI}var oI,Jse;function tCe(){if(Jse)return oI;Jse=1;var t=hOt(),e=pOt(),n=e(t);return oI=n,oI}var lI,eae;function WA(){if(eae)return lI;eae=1;var t=Kp(),e=eCe(),n=tCe();function r(i,s){return n(e(i,s,t),i+"")}return lI=r,lI}var uI,tae;function nCe(){if(tae)return uI;tae=1;function t(e,n,r,i){for(var s=e.length,a=r+(i?1:-1);i?a--:++a<s;)if(n(e[a],a,e))return a;return-1}return uI=t,uI}var cI,nae;function mOt(){if(nae)return cI;nae=1;function t(e){return e!==e}return cI=t,cI}var dI,rae;function gOt(){if(rae)return dI;rae=1;function t(e,n,r){for(var i=r-1,s=e.length;++i<s;)if(e[i]===n)return i;return-1}return dI=t,dI}var fI,iae;function yOt(){if(iae)return fI;iae=1;var t=nCe(),e=mOt(),n=gOt();function r(i,s,a){return s===s?n(i,s,a):t(i,e,a)}return fI=r,fI}var hI,sae;function bOt(){if(sae)return hI;sae=1;var t=yOt();function e(n,r){var i=n==null?0:n.length;return!!i&&t(n,r,0)>-1}return hI=e,hI}var pI,aae;function vOt(){if(aae)return pI;aae=1;function t(e,n,r){for(var i=-1,s=e==null?0:e.length;++i<s;)if(r(n,e[i]))return!0;return!1}return pI=t,pI}var mI,oae;function EOt(){if(oae)return mI;oae=1;function t(){}return mI=t,mI}var gI,lae;function _Ot(){if(lae)return gI;lae=1;var t=NSe(),e=EOt(),n=cU(),r=1/0,i=t&&1/n(new t([,-0]))[1]==r?function(s){return new t(s)}:e;return gI=i,gI}var yI,uae;function xOt(){if(uae)return yI;uae=1;var t=FSe(),e=bOt(),n=vOt(),r=BSe(),i=_Ot(),s=cU(),a=200;function o(l,u,c){var d=-1,h=e,m=l.length,g=!0,b=[],v=b;if(c)g=!1,h=n;else if(m>=a){var E=u?null:i(l);if(E)return s(E);g=!1,h=r,v=new t}else v=u?[]:b;e:for(;++d<m;){var x=l[d],_=u?u(x):x;if(x=c||x!==0?x:0,g&&_===_){for(var S=v.length;S--;)if(v[S]===_)continue e;u&&v.push(_),b.push(x)}else h(v,_,c)||(v!==b&&v.push(_),b.push(x))}return b}return yI=o,yI}var bI,cae;
215function rCe(){if(cae)return bI;cae=1;var t=Xc(),e=Nu();function n(r){return e(r)&&t(r)}return bI=n,bI}var vI,dae;function wOt(){if(dae)return vI;dae=1;var t=fU(),e=WA(),n=xOt(),r=rCe(),i=e(function(s){return n(t(s,1,r,!0))});return vI=i,vI}var EI,fae;function SOt(){if(fae)return EI;fae=1;var t=VA();function e(n,r){return t(r,function(i){return n[i]})}return EI=e,EI}var _I,hae;function iCe(){if(hae)return _I;hae=1;var t=SOt(),e=If();function n(r){return r==null?[]:t(r,e(r))}return _I=n,_I}var xI,pae;function Do(){if(pae)return xI;pae=1;var t;if(typeof QH=="function")try{t={clone:k4t(),constant:oU(),each:$Se(),filter:YSe(),has:KSe(),isArray:Ei(),isEmpty:tOt(),isFunction:AE(),isUndefined:XSe(),keys:If(),map:ZSe(),reduce:JSe(),size:uOt(),transform:cOt(),union:wOt(),values:iCe()}}catch{}return t||(t=window._),xI=t,xI}var wI,mae;function hU(){if(mae)return wI;mae=1;var t=Do();wI=i;var e="\0",n="\0",r="�";function i(c){this._isDirected=t.has(c,"directed")?c.directed:!0,this._isMultigraph=t.has(c,"multigraph")?c.multigraph:!1,this._isCompound=t.has(c,"compound")?c.compound:!1,this._label=void 0,this._defaultNodeLabelFn=t.constant(void 0),this._defaultEdgeLabelFn=t.constant(void 0),this._nodes={}
vendor: 5,571 bytes, line 215
215,this._isCompound&&(this._parent={},this._children={},this._children[n]={}),this._in={},this._preds={},this._out={},this._sucs={},this._edgeObjs={},this._edgeLabels={}}i.prototype._nodeCount=0,i.prototype._edgeCount=0,i.prototype.isDirected=function(){return this._isDirected},i.prototype.isMultigraph=function(){return this._isMultigraph},i.prototype.isCompound=function(){return this._isCompound},i.prototype.setGraph=function(c){return this._label=c,this},i.prototype.graph=function(){return this._label},i.prototype.setDefaultNodeLabel=function(c){return t.isFunction(c)||(c=t.constant(c)),this._defaultNodeLabelFn=c,this},i.prototype.nodeCount=function(){return this._nodeCount},i.prototype.nodes=function(){return t.keys(this._nodes)},i.prototype.sources=function(){var c=this;return t.filter(this.nodes(),function(d){return t.isEmpty(c._in[d])})},i.prototype.sinks=function(){var c=this;return t.filter(this.nodes(),function(d){return t.isEmpty(c._out[d])})},i.prototype.setNodes=function(c,d){var h=arguments,m=this;return t.each(c,function(g){h.length>1?m.setNode(g,d):m.setNode(g)}),this},i.prototype.setNode=function(c,d){return t.has(this._nodes,c)?(arguments.length>1&&(this._nodes[c]=d),this):(this._nodes[c]=arguments.length>1?d:this._defaultNodeLabelFn(c),this._isCompound&&(this._parent[c]=n,this._children[c]={},this._children[n][c]=!0),this._in[c]={},this._preds[c]={},this._out[c]={},this._sucs[c]={},++this._nodeCount,this)},i.prototype.node=function(c){return this._nodes[c]},i.prototype.hasNode=function(c){return t.has(this._nodes,c)},i.prototype.removeNode=function(c){var d=this;if(t.has(this._nodes,c)){var h=function(m){d.removeEdge(d._edgeObjs[m])};delete this._nodes[c],this._isCompound&&(this._removeFromParentsChildList(c),delete this._parent[c],t.each(this.children(c),function(m){d.setParent(m)}),delete this._children[c]),t.each(t.keys(this._in[c]),h),delete this._in[c],delete this._preds[c],t.each(t.keys(this._out[c]),h),delete this._out[c],delete this._sucs[c],--this._nodeCount}return this},i.prototype.setParent=function(c,d){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(t.isUndefined(d))d=n;else{d+="";for(var h=d;!t.isUndefined(h);h=this.parent(h))if(h===c)throw new Error("Setting "+d+" as parent of "+c+" would create a cycle");this.setNode(d)}return this.setNode(c),this._removeFromParentsChildList(c),this._parent[c]=d,this._children[d][c]=!0,this},i.prototype._removeFromParentsChildList=function(c){delete this._children[this._parent[c]][c]},i.prototype.parent=function(c){if(this._isCompound){var d=this._parent[c];if(d!==n)return d}},i.prototype.children=function(c){if(t.isUndefined(c)&&(c=n),this._isCompound){var d=this._children[c];if(d)return t.keys(d)}else{if(c===n)return this.nodes();if(this.hasNode(c))return[]}},i.prototype.predecessors=function(c){var d=this._preds[c];if(d)return t.keys(d)},i.prototype.successors=function(c){var d=this._sucs[c];if(d)return t.keys(d)},i.prototype.neighbors=function(c){var d=this.predecessors(c);if(d)return t.union(d,this.successors(c))},i.prototype.isLeaf=function(c){var d;return this.isDirected()?d=this.successors(c):d=this.neighbors(c),d.length===0},i.prototype.filterNodes=function(c){var d=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});d.setGraph(this.graph());var h=this;t.each(this._nodes,function(b,v){c(v)&&d.setNode(v,b)}),t.each(this._edgeObjs,function(b){d.hasNode(b.v)&&d.hasNode(b.w)&&d.setEdge(b,h.edge(b))});var m={};function g(b){var v=h.parent(b);return v===void 0||d.hasNode(v)?(m[b]=v,v):v in m?m[v]:g(v)}return this._isCompound&&t.each(d.nodes(),function(b){d.setParent(b,g(b))}),d},i.prototype.setDefaultEdgeLabel=function(c){return t.isFunction(c)||(c=t.constant(c)),this._defaultEdgeLabelFn=c,this},i.prototype.edgeCount=function(){return this._edgeCount},i.prototype.edges=function(){return t.values(this._edgeObjs)},i.prototype.setPath=function(c,d){var h=this,m=arguments;return t.reduce(c,function(g,b){return m.length>1?h.setEdge(g,b,d):h.setEdge(g,b),b}),this},i.prototype.setEdge=function(){var c,d,h,m,g=!1,b=arguments[0];typeof b=="object"&&b!==null&&"v"in b?(c=b.v,d=b.w,h=b.name,arguments.length===2&&(m=arguments[1],g=!0)):(c=b,d=arguments[1],h=arguments[3],arguments.length>2&&(m=arguments[2],g=!0)),c=""+c,d=""+d,t.isUndefined(h)||(h=""+h);var v=o(this._isDirected,c,d,h);if(t.has(this._edgeLabels,v))return g&&(this._edgeLabels[v]=m),this;if(!t.isUndefined(h)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(c),this.setNode(d),this._edgeLabels[v]=g?m:this._defaultEdgeLabelFn(c,d,h);var E=l(this._isDirected,c,d,h);return c=E.v,d=E.w,Object.freeze(E),this._edgeObjs[v]=E,s(this._preds[d],c),s(this._sucs[c],d),this._in[d][v]=E,this._out[c][v]=E,this._edgeCount++,this},i.prototype.edge=function(c,d,h){var m=arguments.length===1?u(this._isDirected,arguments[0]):o(this._isDirected,c,d,h);return this._edgeLabels[m]},i.prototype.hasEdge=function(c,d,h){var m=arguments.length===1?u(this._isDirected,arguments[0]):o(this._isDirected,c,d,h);return t.has(this._edgeLabels,m)},i.prototype.removeEdge=function(c,d,h){var m=arguments.length===1?u(this._isDirected,arguments[0]):o(this._isDirected,c,d,h),g=this._edgeObjs[m];return g&&(c=g.v,d=g.w,delete this._edgeLabels[m],delete this._edgeObjs[m],a(this._preds[d],c),a(this._sucs[c],d),delete this._in[d][m],delete this._out[c][m],this._edgeCount--),this},i.prototype.inEdges=function(c,d){var h=this._in[c];if(h){var m=t.values(h);
215return d?t.filter(m,function(g){return g.v===d}):m}},i.prototype.outEdges=function(c,d){var h=this._out[c];if(h){var m=t.values(h);return d?t.filter(m,function(g){return g.w===d}):m}},i.prototype.nodeEdges=function(c,d){var h=this.inEdges(c,d);if(h)return h.concat(this.outEdges(c,d))};function s(c,d){c[d]?c[d]++:c[d]=1}function a(c,d){--c[d]||delete c[d]}function o(c,d,h,m){var g=""+d,b=""+h;if(!c&&g>b){var v=g;g=b,b=v}return g+r+b+r+(t.isUndefined(m)?e:m)}function l(c,d,h,m){var g=""+d,b=""+h;if(!c&&g>b){var v=g;g=b,b=v}var E={v:g,w:b};return m&&(E.name=m),E}function u(c,d){return o(c,d.v,d.w,d.name)}return wI}var SI,gae;function COt(){return gae||(gae=1,SI="2.1.8"),SI}var CI,yae;function TOt(){return yae||(yae=1,CI={Graph:hU(),version:COt()}),CI}var TI,bae;function AOt(){if(bae)return TI;bae=1;var t=Do(),e=hU();TI={write:n,read:s};function n(a){var o={options:{directed:a.isDirected(),multigraph:a.isMultigraph(),compound:a.isCompound()},nodes:r(a),edges:i(a)};return t.isUndefined(a.graph())||(o.value=t.clone(a.graph())),o}function r(a){return t.map(a.nodes(),function(o){var l=a.node(o),u=a.parent(o),c={v:o};return t.isUndefined(l)||(c.value=l),t.isUndefined(u)||(c.parent=u),c})}function i(a){return t.map(a.edges(),function(o){var l=a.edge(o),u={v:o.v,w:o.w};return t.isUndefined(o.name)||(u.name=o.name),t.isUndefined(l)||(u.value=l),u})}function s(a){var o=new e(a.options).setGraph(a.value);return t.each(a.nodes,function(l){o.setNode(l.v,l.value),l.parent&&o.setParent(l.v,l.parent)}),t.each(a.edges,function(l){o.setEdge({v:l.v,w:l.w,name:l.name},l.value)}),o}return TI}var AI,vae;function ROt(){if(vae)return AI;vae=1;var t=Do();AI=e;function e(n){var r={},i=[],s;function a(o){t.has(r,o)||(r[o]=!0,s.push(o),t.each(n.successors(o),a),t.each(n.predecessors(o),a))}return t.each(n.nodes(),function(o){s=[],a(o),s.length&&i.push(s)}),i}return AI}var RI,Eae;function sCe(){if(Eae)return RI;Eae=1;var t=Do();RI=e;function e(){this._arr=[],this._keyIndices={}}return e.prototype.size=function(){return this._arr.length},e.prototype.keys=function(){return this._arr.map(function(n){return n.key})},e.prototype.has=function(n){return t.has(this._keyIndices,n)},e.prototype.priority=function(n){var r=this._keyIndices[n];if(r!==void 0)return this._arr[r].priority},e.prototype.min=function(){if(this.size()===0)throw new Error("Queue underflow");return this._arr[0].key},e.prototype.add=function(n,r){var i=this._keyIndices;if(n=String(n),!t.has(i,n)){var s=this._arr,a=s.length;return i[n]=a,s.push({key:n,priority:r}),this._decrease(a),!0}return!1},e.prototype.removeMin=function(){this._swap(0,this._arr.length-1);var n=this._arr.pop();return delete this._keyIndices[n.key],this._heapify(0),n.key},e.prototype.decrease=function(n,r){var i=this._keyIndices[n];if(r>this._arr[i].priority)throw new Error("New priority is greater than current priority. Key: "+n+" Old: "+this._arr[i].priority+" New: "+r);this._arr[i].priority=r,this._decrease(i)},e.prototype._heapify=function(n){var r=this._arr,i=2*n,s=i+1,a=n;i<r.length&&(a=r[i].priority<r[a].priority?i:a,s<r.length&&(a=r[s].priority<r[a].priority?s:a),a!==n&&(this._swap(n,a),this._heapify(a)))},e.prototype._decrease=function(n){for(var r=this._arr,i=r[n].priority,s;n!==0&&(s=n>>1,!(r[s].priority<i));)this._swap(n,s),n=s},e.prototype._swap=function(n,r){var i=this._arr,s=this._keyIndices,a=i[n],o=i[r];i[n]=o,i[r]=a,s[o.key]=n,s[a.key]=r},RI}var NI,_ae;function aCe(){if(_ae)return NI;_ae=1;var t=Do(),e=sCe();NI=r;var n=t.constant(1);function r(s,a,o,l){return i(s,String(a),o||n,l||function(u){return s.outEdges(u)})}function i(s,a,o,l){var u={},c=new e,d,h,m=function(g){var b=g.v!==d?g.v:g.w,v=u[b],E=o(g),x=h.distance+E;if(E<0)throw new Error("dijkstra does not allow negative edge weights. Bad edge: "+g+" Weight: "+E);x<v.distance&&(v.distance=x,v.predecessor=d,c.decrease(b,x))};for(s.nodes().forEach(function(g){var b=g===a?0:Number.POSITIVE_INFINITY;u[g]={distance:b},c.add(g,b)});c.size()>0&&(d=c.removeMin(),h=u[d],h.distance!==Number.POSITIVE_INFINITY);)l(d).forEach(m);return u}return NI}var OI,xae;function NOt(){if(xae)return OI;xae=1;var t=aCe(),e=Do();OI=n;function n(r,i,s){return e.transform(r.nodes(),function(a,o){a[o]=t(r,o,i,s)},{})}return OI}var kI,wae;function oCe(){if(wae)return kI;wae=1;var t=Do();kI=e;function e(n){var r=0,i=[],s={},a=[];function o(l){var u=s[l]={onStack:!0,lowlink:r,index:r++};if(i.push(l),n.successors(l).forEach(function(h){t.has(s,h)?s[h].onStack&&(u.lowlink=Math.min(u.lowlink,s[h].index)):(o(h),u.lowlink=Math.min(u.lowlink,s[h].lowlink))}),u.lowlink===u.index){var c=[],d;do d=i.pop(),s[d].onStack=!1,c.push(d);while(l!==d);a.push(c)}}
215return n.nodes().forEach(function(l){t.has(s,l)||o(l)}),a}return kI}var II,Sae;function OOt(){if(Sae)return II;Sae=1;var t=Do(),e=oCe();II=n;function n(r){return t.filter(e(r),function(i){return i.length>1||i.length===1&&r.hasEdge(i[0],i[0])})}return II}var MI,Cae;function kOt(){if(Cae)return MI;Cae=1;var t=Do();MI=n;var e=t.constant(1);function n(i,s,a){return r(i,s||e,a||function(o){return i.outEdges(o)})}function r(i,s,a){var o={},l=i.nodes();return l.forEach(function(u){o[u]={},o[u][u]={distance:0},l.forEach(function(c){u!==c&&(o[u][c]={distance:Number.POSITIVE_INFINITY})}),a(u).forEach(function(c){var d=c.v===u?c.w:c.v,h=s(c);o[u][d]={distance:h,predecessor:u}})}),l.forEach(function(u){var c=o[u];l.forEach(function(d){var h=o[d];l.forEach(function(m){var g=h[u],b=c[m],v=h[m],E=g.distance+b.distance;E<v.distance&&(v.distance=E,v.predecessor=b.predecessor)})})}),o}return MI}var DI,Tae;function lCe(){if(Tae)return DI;Tae=1;var t=Do();DI=e,e.CycleException=n;function e(r){var i={},s={},a=[];function o(l){if(t.has(s,l))throw new n;t.has(i,l)||(s[l]=!0,i[l]=!0,t.each(r.predecessors(l),o),delete s[l],a.push(l))}if(t.each(r.sinks(),o),t.size(i)!==r.nodeCount())throw new n;return a}function n(){}return n.prototype=new Error,DI}var PI,Aae;function IOt(){if(Aae)return PI;Aae=1;var t=lCe();PI=e;function e(n){try{t(n)}catch(r){if(r instanceof t.CycleException)return!1;throw r}return!0}return PI}var LI,Rae;function uCe(){if(Rae)return LI;Rae=1;var t=Do();LI=e;function e(r,i,s){t.isArray(i)||(i=[i]);var a=(r.isDirected()?r.successors:r.neighbors).bind(r),o=[],l={};return t.each(i,function(u){if(!r.hasNode(u))throw new Error("Graph does not have node: "+u);n(r,u,s==="post",l,a,o)}),o}function n(r,i,s,a,o,l){t.has(a,i)||(a[i]=!0,s||l.push(i),t.each(o(i),function(u){n(r,u,s,a,o,l)}),s&&l.push(i))}return LI}var $I,Nae;function MOt(){if(Nae)return $I;Nae=1;var t=uCe();$I=e;function e(n,r){return t(n,r,"post")}return $I}var FI,Oae;function DOt(){if(Oae)return FI;Oae=1;var t=uCe();FI=e;function e(n,r){return t(n,r,"pre")}return FI}var BI,kae;function POt(){if(kae)return BI;kae=1;var t=Do(),e=hU(),n=sCe();BI=r;function r(i,s){var a=new e,o={},l=new n,u;function c(h){var m=h.v===u?h.w:h.v,g=l.priority(m);if(g!==void 0){var b=s(h);b<g&&(o[m]=u,l.decrease(m,b))}}if(i.nodeCount()===0)return a;t.each(i.nodes(),function(h){l.add(h,Number.POSITIVE_INFINITY),a.setNode(h)}),l.decrease(i.nodes()[0],0);for(var d=!1;l.size()>0;){if(u=l.removeMin(),t.has(o,u))a.setEdge(u,o[u]);else{if(d)throw new Error("Input graph is not connected: "+i);d=!0}i.nodeEdges(u).forEach(c)}return a}return BI}var HI,Iae;function LOt(){return Iae||(Iae=1,HI={components:ROt(),dijkstra:aCe(),dijkstraAll:NOt(),findCycles:OOt(),floydWarshall:kOt(),isAcyclic:IOt(),postorder:MOt(),preorder:DOt(),prim:POt(),tarjan:oCe(),topsort:lCe()}),HI}var UI,Mae;function $Ot(){if(Mae)return UI;Mae=1;var t=TOt();return UI={Graph:t.Graph,json:AOt(),alg:LOt(),version:t.version},UI}var jI,Dae;function ml(){if(Dae)return jI;Dae=1;var t;if(typeof QH=="function")try{t=$Ot()}catch{}return t||(t=window.graphlib),jI=t,jI}var zI,Pae;
vendor: 3,061 bytes, line 215
215function FOt(){if(Pae)return zI;Pae=1;var t=DSe(),e=1,n=4;function r(i){return t(i,e|n)}return zI=r,zI}var VI,Lae;function YA(){if(Lae)return VI;Lae=1;var t=l1(),e=Xc(),n=BA(),r=Mo();function i(s,a,o){if(!r(o))return!1;var l=typeof a;return(l=="number"?e(o)&&n(a,o.length):l=="string"&&a in o)?t(o[a],s):!1}return VI=i,VI}var qI,$ae;function BOt(){if($ae)return qI;$ae=1;var t=WA(),e=l1(),n=YA(),r=Yp(),i=Object.prototype,s=i.hasOwnProperty,a=t(function(o,l){o=Object(o);var u=-1,c=l.length,d=c>2?l[2]:void 0;for(d&&n(l[0],l[1],d)&&(c=1);++u<c;)for(var h=l[u],m=r(h),g=-1,b=m.length;++g<b;){var v=m[g],E=o[v];(E===void 0||e(E,i[v])&&!s.call(o,v))&&(o[v]=h[v])}return o});return qI=a,qI}var GI,Fae;function HOt(){if(Fae)return GI;Fae=1;var t=Qc(),e=Xc(),n=If();function r(i){return function(s,a,o){var l=Object(s);if(!e(s)){var u=t(a,3);s=n(s),a=function(d){return u(l[d],d,l)}}var c=i(s,a,o);return c>-1?l[u?s[c]:c]:void 0}}return GI=r,GI}var WI,Bae;function UOt(){if(Bae)return WI;Bae=1;var t=/\s/;function e(n){for(var r=n.length;r--&&t.test(n.charAt(r)););return r}return WI=e,WI}var YI,Hae;function jOt(){if(Hae)return YI;Hae=1;var t=UOt(),e=/^\s+/;function n(r){return r&&r.slice(0,t(r)+1).replace(e,"")}return YI=n,YI}var KI,Uae;function zOt(){if(Uae)return KI;Uae=1;var t=jOt(),e=Mo(),n=f1(),r=NaN,i=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,a=/^0o[0-7]+$/i,o=parseInt;function l(u){if(typeof u=="number")return u;if(n(u))return r;if(e(u)){var c=typeof u.valueOf=="function"?u.valueOf():u;u=e(c)?c+"":c}if(typeof u!="string")return u===0?u:+u;u=t(u);var d=s.test(u);return d||a.test(u)?o(u.slice(2),d?2:8):i.test(u)?r:+u}return KI=l,KI}var XI,jae;function cCe(){if(jae)return XI;jae=1;var t=zOt(),e=1/0,n=17976931348623157e292;function r(i){if(!i)return i===0?i:0;if(i=t(i),i===e||i===-e){var s=i<0?-1:1;return s*n}return i===i?i:0}return XI=r,XI}var QI,zae;function VOt(){if(zae)return QI;zae=1;var t=cCe();function e(n){var r=t(n),i=r%1;return r===r?i?r-i:r:0}return QI=e,QI}var ZI,Vae;function qOt(){if(Vae)return ZI;Vae=1;var t=nCe(),e=Qc(),n=VOt(),r=Math.max;function i(s,a,o){var l=s==null?0:s.length;if(!l)return-1;var u=o==null?0:n(o);return u<0&&(u=r(l+u,0)),t(s,e(a,3),u)}return ZI=i,ZI}var JI,qae;function GOt(){if(qae)return JI;qae=1;var t=HOt(),e=qOt(),n=t(e);return JI=n,JI}var eM,Gae;function dCe(){if(Gae)return eM;Gae=1;var t=fU();function e(n){var r=n==null?0:n.length;return r?t(n,1):[]}return eM=e,eM}var tM,Wae;function WOt(){if(Wae)return tM;Wae=1;var t=lU(),e=PSe(),n=Yp();function r(i,s){return i==null?i:t(i,e(s),n)}return tM=r,tM}var nM,Yae;function YOt(){if(Yae)return nM;Yae=1;function t(e){var n=e==null?0:e.length;return n?e[n-1]:void 0}return nM=t,nM}var rM,Kae;function KOt(){if(Kae)return rM;Kae=1;var t=$A(),e=uU(),n=Qc();function r(i,s){var a={};return s=n(s,3),e(i,function(o,l,u){t(a,l,s(o,l,u))}),a}return rM=r,rM}var iM,Xae;function pU(){if(Xae)return iM;Xae=1;var t=f1();function e(n,r,i){for(var s=-1,a=n.length;++s<a;){var o=n[s],l=r(o);if(l!=null&&(u===void 0?l===l&&!t(l):i(l,u)))var u=l,c=o}return c}return iM=e,iM}
vendor: 3,043 bytes, line 215
215var sM,Qae;function XOt(){if(Qae)return sM;Qae=1;function t(e,n){return e>n}return sM=t,sM}var aM,Zae;function QOt(){if(Zae)return aM;Zae=1;var t=pU(),e=XOt(),n=Kp();function r(i){return i&&i.length?t(i,n,e):void 0}return aM=r,aM}var oM,Jae;function fCe(){if(Jae)return oM;Jae=1;var t=$A(),e=l1();function n(r,i,s){(s!==void 0&&!e(r[i],s)||s===void 0&&!(i in r))&&t(r,i,s)}return oM=n,oM}var lM,eoe;function ZOt(){if(eoe)return lM;eoe=1;var t=Gp(),e=jA(),n=Nu(),r="[object Object]",i=Function.prototype,s=Object.prototype,a=i.toString,o=s.hasOwnProperty,l=a.call(Object);function u(c){if(!n(c)||t(c)!=r)return!1;var d=e(c);if(d===null)return!0;var h=o.call(d,"constructor")&&d.constructor;return typeof h=="function"&&h instanceof h&&a.call(h)==l}return lM=u,lM}var uM,toe;function hCe(){if(toe)return uM;toe=1;function t(e,n){if(!(n==="constructor"&&typeof e[n]=="function")&&n!="__proto__")return e[n]}return uM=t,uM}var cM,noe;function JOt(){if(noe)return cM;noe=1;var t=RE(),e=Yp();function n(r){return t(r,e(r))}return cM=n,cM}var dM,roe;function e6t(){if(roe)return dM;roe=1;var t=fCe(),e=xSe(),n=kSe(),r=wSe(),i=MSe(),s=NE(),a=Ei(),o=rCe(),l=c1(),u=AE(),c=Mo(),d=ZOt(),h=OE(),m=hCe(),g=JOt();function b(v,E,x,_,S,A,R){var T=m(v,x),O=m(E,x),I=R.get(O);if(I){t(v,x,I);return}var D=A?A(T,O,x+"",v,E,R):void 0,P=D===void 0;if(P){var B=a(O),L=!B&&l(O),$=!B&&!L&&h(O);D=O,B||L||$?a(T)?D=T:o(T)?D=r(T):L?(P=!1,D=e(O,!0)):$?(P=!1,D=n(O,!0)):D=[]:d(O)||s(O)?(D=T,s(T)?D=g(T):(!c(T)||u(T))&&(D=i(O))):P=!1}P&&(R.set(O,D),S(D,O,_,A,R),R.delete(O)),t(v,x,D)}return dM=b,dM}var fM,ioe;function t6t(){if(ioe)return fM;ioe=1;var t=LA(),e=fCe(),n=lU(),r=e6t(),i=Mo(),s=Yp(),a=hCe();function o(l,u,c,d,h){l!==u&&n(u,function(m,g){if(h||(h=new t),i(m))r(l,u,g,c,o,d,h);else{var b=d?d(a(l,g),m,g+"",l,u,h):void 0;b===void 0&&(b=m),e(l,g,b)}},s)}return fM=o,fM}var hM,soe;function n6t(){if(soe)return hM;soe=1;var t=WA(),e=YA();function n(r){return t(function(i,s){var a=-1,o=s.length,l=o>1?s[o-1]:void 0,u=o>2?s[2]:void 0;for(l=r.length>3&&typeof l=="function"?(o--,l):void 0,u&&e(s[0],s[1],u)&&(l=o<3?void 0:l,o=1),i=Object(i);++a<o;){var c=s[a];c&&r(i,c,a,l)}return i})}return hM=n,hM}var pM,aoe;function r6t(){if(aoe)return pM;aoe=1;var t=t6t(),e=n6t(),n=e(function(r,i,s){t(r,i,s)});return pM=n,pM}var mM,ooe;function pCe(){if(ooe)return mM;ooe=1;function t(e,n){return e<n}return mM=t,mM}var gM,loe;function i6t(){if(loe)return gM;loe=1;var t=pU(),e=pCe(),n=Kp();function r(i){return i&&i.length?t(i,n,e):void 0}return gM=r,gM}var yM,uoe;function s6t(){if(uoe)return yM;uoe=1;var t=pU(),e=Qc(),n=pCe();function r(i,s){return i&&i.length?t(i,e(s,2),n):void 0}return yM=r,yM}var bM,coe;function a6t(){if(coe)return bM;coe=1;var t=wl(),e=function(){return t.Date.now()};return bM=e,bM}var vM,doe;function o6t(){if(doe)return vM;doe=1;var t=FA(),e=qA(),n=BA(),r=Mo(),i=kE();function s(a,o,l,u){if(!r(a))return a;o=e(o,a);for(var c=-1,d=o.length,h=d-1,m=a;m!=null&&++c<d;){var g=i(o[c]),b=l;if(g==="__proto__"||g==="constructor"||g==="prototype")return a;
vendor: 4,220 bytes, line 215
215if(c!=h){var v=m[g];b=u?u(v,g,m):void 0,b===void 0&&(b=r(v)?v:n(o[c+1])?[]:{})}t(m,g,b),m=m[g]}return a}return vM=s,vM}var EM,foe;function l6t(){if(foe)return EM;foe=1;var t=GA(),e=o6t(),n=qA();function r(i,s,a){for(var o=-1,l=s.length,u={};++o<l;){var c=s[o],d=t(i,c);a(d,c)&&e(u,n(c,i),d)}return u}return EM=r,EM}var _M,hoe;function u6t(){if(hoe)return _M;hoe=1;var t=l6t(),e=GSe();function n(r,i){return t(r,i,function(s,a){return e(r,a)})}return _M=n,_M}var xM,poe;function c6t(){if(poe)return xM;poe=1;var t=dCe(),e=eCe(),n=tCe();function r(i){return n(e(i,void 0,t),i+"")}return xM=r,xM}var wM,moe;function d6t(){if(moe)return wM;moe=1;var t=u6t(),e=c6t(),n=e(function(r,i){return r==null?{}:t(r,i)});return wM=n,wM}var SM,goe;function f6t(){if(goe)return SM;goe=1;var t=Math.ceil,e=Math.max;function n(r,i,s,a){for(var o=-1,l=e(t((i-r)/(s||1)),0),u=Array(l);l--;)u[a?l:++o]=r,r+=s;return u}return SM=n,SM}var CM,yoe;function h6t(){if(yoe)return CM;yoe=1;var t=f6t(),e=YA(),n=cCe();function r(i){return function(s,a,o){return o&&typeof o!="number"&&e(s,a,o)&&(a=o=void 0),s=n(s),a===void 0?(a=s,s=0):a=n(a),o=o===void 0?s<a?1:-1:n(o),t(s,a,o,i)}}return CM=r,CM}var TM,boe;function p6t(){if(boe)return TM;boe=1;var t=h6t(),e=t();return TM=e,TM}var AM,voe;function m6t(){if(voe)return AM;voe=1;function t(e,n){var r=e.length;for(e.sort(n);r--;)e[r]=e[r].value;return e}return AM=t,AM}var RM,Eoe;function g6t(){if(Eoe)return RM;Eoe=1;var t=f1();function e(n,r){if(n!==r){var i=n!==void 0,s=n===null,a=n===n,o=t(n),l=r!==void 0,u=r===null,c=r===r,d=t(r);if(!u&&!d&&!o&&n>r||o&&l&&c&&!u&&!d||s&&l&&c||!i&&c||!a)return 1;if(!s&&!o&&!d&&n<r||d&&i&&a&&!s&&!o||u&&i&&a||!l&&a||!c)return-1}return 0}return RM=e,RM}var NM,_oe;function y6t(){if(_oe)return NM;_oe=1;var t=g6t();function e(n,r,i){for(var s=-1,a=n.criteria,o=r.criteria,l=a.length,u=i.length;++s<l;){var c=t(a[s],o[s]);if(c){if(s>=u)return c;var d=i[s];return c*(d=="desc"?-1:1)}}return n.index-r.index}return NM=e,NM}var OM,xoe;function b6t(){if(xoe)return OM;xoe=1;var t=VA(),e=GA(),n=Qc(),r=QSe(),i=m6t(),s=HA(),a=y6t(),o=Kp(),l=Ei();function u(c,d,h){d.length?d=t(d,function(b){return l(b)?function(v){return e(v,b.length===1?b[0]:b)}:b}):d=[o];var m=-1;d=t(d,s(n));var g=r(c,function(b,v,E){var x=t(d,function(_){return _(b)});return{criteria:x,index:++m,value:b}});return i(g,function(b,v){return a(b,v,h)})}return OM=u,OM}var kM,woe;function v6t(){if(woe)return kM;woe=1;var t=fU(),e=b6t(),n=WA(),r=YA(),i=n(function(s,a){if(s==null)return[];var o=a.length;return o>1&&r(s,a[0],a[1])?a=[]:o>2&&r(a[0],a[1],a[2])&&(a=[a[0]]),e(s,t(a,1),[])});return kM=i,kM}var IM,Soe;function E6t(){if(Soe)return IM;Soe=1;var t=VSe(),e=0;function n(r){var i=++e;return t(r)+i}return IM=n,IM}var MM,Coe;function _6t(){if(Coe)return MM;Coe=1;function t(e,n,r){for(var i=-1,s=e.length,a=n.length,o={};++i<s;){var l=i<a?n[i]:void 0;r(o,e[i],l)}return o}return MM=t,MM}var DM,Toe;function x6t(){if(Toe)return DM;Toe=1;var t=FA(),e=_6t();function n(r,i){return e(r||[],i||[],t)}return DM=n,DM}var PM,Aoe;function Ar(){if(Aoe)return PM;Aoe=1;var t;if(typeof QH=="function")try{t={cloneDeep:FOt(),constant:oU(),defaults:BOt(),each:$Se(),filter:YSe(),find:GOt(),flatten:dCe(),forEach:LSe(),forIn:WOt(),has:KSe(),isUndefined:XSe(),last:YOt(),map:ZSe(),mapValues:KOt(),max:QOt(),merge:r6t(),min:i6t(),minBy:s6t(),now:a6t(),pick:d6t(),range:p6t(),reduce:JSe(),sortBy:v6t(),uniqueId:E6t(),values:iCe(),zipObject:x6t()}}catch{}return t||(t=window._),PM=t,PM}var LM,Roe;function w6t(){if(Roe)return LM;Roe=1,LM=t;function t(){var r={};r._next=r._prev=r,this._sentinel=r}t.prototype.dequeue=function(){var r=this._sentinel,i=r._prev;if(i!==r)return e(i),i},t.prototype.enqueue=function(r){var i=this._sentinel;r._prev&&r._next&&e(r),r._next=i._next,i._next._prev=r,i._next=r,r._prev=i},t.prototype.toString=function(){for(var r=[],i=this._sentinel,s=i._prev;s!==i;)r.push(JSON.stringify(s,n)),s=s._prev;return"["+r.join(", ")+"]"};function e(r){r._prev._next=r._next,r._next._prev=r._prev,delete r._next,delete r._prev}function n(r,i){if(r!=="_next"&&r!=="_prev")return i}return LM}var $M,Noe;function S6t(){if(Noe)return $M;Noe=1;var t=Ar(),e=ml().Graph,n=w6t();$M=i;var r=t.constant(1);
vendor: 4,231 bytes, line 215
215function i(u,c){if(u.nodeCount()<=1)return[];var d=o(u,c||r),h=s(d.graph,d.buckets,d.zeroIdx);return t.flatten(t.map(h,function(m){return u.outEdges(m.v,m.w)}),!0)}function s(u,c,d){for(var h=[],m=c[c.length-1],g=c[0],b;u.nodeCount();){for(;b=g.dequeue();)a(u,c,d,b);for(;b=m.dequeue();)a(u,c,d,b);if(u.nodeCount()){for(var v=c.length-2;v>0;--v)if(b=c[v].dequeue(),b){h=h.concat(a(u,c,d,b,!0));break}}}return h}function a(u,c,d,h,m){var g=m?[]:void 0;return t.forEach(u.inEdges(h.v),function(b){var v=u.edge(b),E=u.node(b.v);m&&g.push({v:b.v,w:b.w}),E.out-=v,l(c,d,E)}),t.forEach(u.outEdges(h.v),function(b){var v=u.edge(b),E=b.w,x=u.node(E);x.in-=v,l(c,d,x)}),u.removeNode(h.v),g}function o(u,c){var d=new e,h=0,m=0;t.forEach(u.nodes(),function(v){d.setNode(v,{v,in:0,out:0})}),t.forEach(u.edges(),function(v){var E=d.edge(v.v,v.w)||0,x=c(v),_=E+x;d.setEdge(v.v,v.w,_),m=Math.max(m,d.node(v.v).out+=x),h=Math.max(h,d.node(v.w).in+=x)});var g=t.range(m+h+3).map(function(){return new n}),b=h+1;return t.forEach(d.nodes(),function(v){l(g,b,d.node(v))}),{graph:d,buckets:g,zeroIdx:b}}function l(u,c,d){d.out?d.in?u[d.out-d.in+c].enqueue(d):u[u.length-1].enqueue(d):u[0].enqueue(d)}return $M}var FM,Ooe;function C6t(){if(Ooe)return FM;Ooe=1;var t=Ar(),e=S6t();FM={run:n,undo:i};function n(s){var a=s.graph().acyclicer==="greedy"?e(s,o(s)):r(s);t.forEach(a,function(l){var u=s.edge(l);s.removeEdge(l),u.forwardName=l.name,u.reversed=!0,s.setEdge(l.w,l.v,u,t.uniqueId("rev"))});function o(l){return function(u){return l.edge(u).weight}}}function r(s){var a=[],o={},l={};function u(c){t.has(l,c)||(l[c]=!0,o[c]=!0,t.forEach(s.outEdges(c),function(d){t.has(o,d.w)?a.push(d):u(d.w)}),delete o[c])}return t.forEach(s.nodes(),u),a}function i(s){t.forEach(s.edges(),function(a){var o=s.edge(a);if(o.reversed){s.removeEdge(a);var l=o.forwardName;delete o.reversed,delete o.forwardName,s.setEdge(a.w,a.v,o,l)}})}return FM}var BM,koe;function ca(){if(koe)return BM;koe=1;var t=Ar(),e=ml().Graph;BM={addDummyNode:n,simplify:r,asNonCompoundGraph:i,successorWeights:s,predecessorWeights:a,intersectRect:o,buildLayerMatrix:l,normalizeRanks:u,removeEmptyRanks:c,addBorderNode:d,maxRank:h,partition:m,time:g,notime:b};function n(v,E,x,_){var S;do S=t.uniqueId(_);while(v.hasNode(S));return x.dummy=E,v.setNode(S,x),S}function r(v){var E=new e().setGraph(v.graph());return t.forEach(v.nodes(),function(x){E.setNode(x,v.node(x))}),t.forEach(v.edges(),function(x){var _=E.edge(x.v,x.w)||{weight:0,minlen:1},S=v.edge(x);E.setEdge(x.v,x.w,{weight:_.weight+S.weight,minlen:Math.max(_.minlen,S.minlen)})}),E}function i(v){var E=new e({multigraph:v.isMultigraph()}).setGraph(v.graph());return t.forEach(v.nodes(),function(x){v.children(x).length||E.setNode(x,v.node(x))}),t.forEach(v.edges(),function(x){E.setEdge(x,v.edge(x))}),E}function s(v){var E=t.map(v.nodes(),function(x){var _={};return t.forEach(v.outEdges(x),function(S){_[S.w]=(_[S.w]||0)+v.edge(S).weight}),_});return t.zipObject(v.nodes(),E)}function a(v){var E=t.map(v.nodes(),function(x){var _={};return t.forEach(v.inEdges(x),function(S){_[S.v]=(_[S.v]||0)+v.edge(S).weight}),_});return t.zipObject(v.nodes(),E)}function o(v,E){var x=v.x,_=v.y,S=E.x-x,A=E.y-_,R=v.width/2,T=v.height/2;if(!S&&!A)throw new Error("Not possible to find intersection inside of the rectangle");var O,I;return Math.abs(A)*R>Math.abs(S)*T?(A<0&&(T=-T),O=T*S/A,I=T):(S<0&&(R=-R),O=R,I=R*A/S),{x:x+O,y:_+I}}function l(v){var E=t.map(t.range(h(v)+1),function(){return[]});return t.forEach(v.nodes(),function(x){var _=v.node(x),S=_.rank;t.isUndefined(S)||(E[S][_.order]=x)}),E}function u(v){var E=t.min(t.map(v.nodes(),function(x){return v.node(x).rank}));t.forEach(v.nodes(),function(x){var _=v.node(x);t.has(_,"rank")&&(_.rank-=E)})}function c(v){var E=t.min(t.map(v.nodes(),function(A){return v.node(A).rank})),x=[];t.forEach(v.nodes(),function(A){var R=v.node(A).rank-E;x[R]||(x[R]=[]),x[R].push(A)});var _=0,S=v.graph().nodeRankFactor;t.forEach(x,function(A,R){t.isUndefined(A)&&R%S!==0?--_:_&&t.forEach(A,function(T){v.node(T).rank+=_})})}function d(v,E,x,_){var S={width:0,height:0};return arguments.length>=4&&(S.rank=x,S.order=_),n(v,"border",S,E)}function h(v){return t.max(t.map(v.nodes(),function(E){var x=v.n
vendor: 8,773 bytes, line 215
215ode(E).rank;if(!t.isUndefined(x))return x}))}function m(v,E){var x={lhs:[],rhs:[]};return t.forEach(v,function(_){E(_)?x.lhs.push(_):x.rhs.push(_)}),x}function g(v,E){var x=t.now();try{return E()}finally{console.log(v+" time: "+(t.now()-x)+"ms")}}function b(v,E){return E()}return BM}var HM,Ioe;function T6t(){if(Ioe)return HM;Ioe=1;var t=Ar(),e=ca();HM={run:n,undo:i};function n(s){s.graph().dummyChains=[],t.forEach(s.edges(),function(a){r(s,a)})}function r(s,a){var o=a.v,l=s.node(o).rank,u=a.w,c=s.node(u).rank,d=a.name,h=s.edge(a),m=h.labelRank;if(c!==l+1){s.removeEdge(a);var g,b,v;for(v=0,++l;l<c;++v,++l)h.points=[],b={width:0,height:0,edgeLabel:h,edgeObj:a,rank:l},g=e.addDummyNode(s,"edge",b,"_d"),l===m&&(b.width=h.width,b.height=h.height,b.dummy="edge-label",b.labelpos=h.labelpos),s.setEdge(o,g,{weight:h.weight},d),v===0&&s.graph().dummyChains.push(g),o=g;s.setEdge(o,u,{weight:h.weight},d)}}function i(s){t.forEach(s.graph().dummyChains,function(a){var o=s.node(a),l=o.edgeLabel,u;for(s.setEdge(o.edgeObj,l);o.dummy;)u=s.successors(a)[0],s.removeNode(a),l.points.push({x:o.x,y:o.y}),o.dummy==="edge-label"&&(l.x=o.x,l.y=o.y,l.width=o.width,l.height=o.height),a=u,o=s.node(a)})}return HM}var UM,Moe;function rT(){if(Moe)return UM;Moe=1;var t=Ar();UM={longestPath:e,slack:n};function e(r){var i={};function s(a){var o=r.node(a);if(t.has(i,a))return o.rank;i[a]=!0;var l=t.min(t.map(r.outEdges(a),function(u){return s(u.w)-r.edge(u).minlen}));return(l===Number.POSITIVE_INFINITY||l===void 0||l===null)&&(l=0),o.rank=l}t.forEach(r.sources(),s)}function n(r,i){return r.node(i.w).rank-r.node(i.v).rank-r.edge(i).minlen}return UM}var jM,Doe;function mCe(){if(Doe)return jM;Doe=1;var t=Ar(),e=ml().Graph,n=rT().slack;jM=r;function r(o){var l=new e({directed:!1}),u=o.nodes()[0],c=o.nodeCount();l.setNode(u,{});for(var d,h;i(l,o)<c;)d=s(l,o),h=l.hasNode(d.v)?n(o,d):-n(o,d),a(l,o,h);return l}function i(o,l){function u(c){t.forEach(l.nodeEdges(c),function(d){var h=d.v,m=c===h?d.w:h;!o.hasNode(m)&&!n(l,d)&&(o.setNode(m,{}),o.setEdge(c,m,{}),u(m))})}return t.forEach(o.nodes(),u),o.nodeCount()}function s(o,l){return t.minBy(l.edges(),function(u){if(o.hasNode(u.v)!==o.hasNode(u.w))return n(l,u)})}function a(o,l,u){t.forEach(o.nodes(),function(c){l.node(c).rank+=u})}return jM}var zM,Poe;function A6t(){if(Poe)return zM;Poe=1;var t=Ar(),e=mCe(),n=rT().slack,r=rT().longestPath,i=ml().alg.preorder,s=ml().alg.postorder,a=ca().simplify;zM=o,o.initLowLimValues=d,o.initCutValues=l,o.calcCutValue=c,o.leaveEdge=m,o.enterEdge=g,o.exchangeEdges=b;function o(_){_=a(_),r(_);var S=e(_);d(S),l(S,_);for(var A,R;A=m(S);)R=g(S,_,A),b(S,_,A,R)}function l(_,S){var A=s(_,_.nodes());A=A.slice(0,A.length-1),t.forEach(A,function(R){u(_,S,R)})}function u(_,S,A){var R=_.node(A),T=R.parent;_.edge(A,T).cutvalue=c(_,S,A)}function c(_,S,A){var R=_.node(A),T=R.parent,O=!0,I=S.edge(A,T),D=0;return I||(O=!1,I=S.edge(T,A)),D=I.weight,t.forEach(S.nodeEdges(A),function(P){var B=P.v===A,L=B?P.w:P.v;if(L!==T){var $=B===O,q=S.edge(P).weight;if(D+=$?q:-q,E(_,A,L)){var F=_.edge(A,L).cutvalue;D+=$?-F:F}}}),D}function d(_,S){arguments.length<2&&(S=_.nodes()[0]),h(_,{},1,S)}function h(_,S,A,R,T){var O=A,I=_.node(R);return S[R]=!0,t.forEach(_.neighbors(R),function(D){t.has(S,D)||(A=h(_,S,A,D,R))}),I.low=O,I.lim=A++,T?I.parent=T:delete I.parent,A}function m(_){return t.find(_.edges(),function(S){return _.edge(S).cutvalue<0})}function g(_,S,A){var R=A.v,T=A.w;S.hasEdge(R,T)||(R=A.w,T=A.v);var O=_.node(R),I=_.node(T),D=O,P=!1;O.lim>I.lim&&(D=I,P=!0);var B=t.filter(S.edges(),function(L){return P===x(_,_.node(L.v),D)&&P!==x(_,_.node(L.w),D)});return t.minBy(B,function(L){return n(S,L)})}function b(_,S,A,R){var T=A.v,O=A.w;_.removeEdge(T,O),_.setEdge(R.v,R.w,{}),d(_),l(_,S),v(_,S)}function v(_,S){var A=t.find(_.nodes(),function(T){return!S.node(T).parent}),R=i(_,A);R=R.slice(1),t.forEach(R,function(T){var O=_.node(T).parent,I=S.edge(T,O),D=!1;I||(I=S.edge(O,T),D=!0),S.node(T).rank=S.node(O).rank+(D?I.minlen:-I.minlen)})}function E(_,S,A){return _.hasEdge(S,A)}function x(_,S,A){return A.low<=S.lim&&S.lim<=A.lim}return zM}var VM,Loe;function R6t(){if(Loe)return VM;Loe=1;var t=rT(),e=t.longestPath,n=mCe(),r=A6t();VM=i;function i(l){switch(l.graph().ranker){case"network-simplex":o(l);break;case"tight-tree":a(l);break;case"longest-path":s(l);break;default:o(l)}}var s=e;function a(l){e(l),n(l)}function o(l){r(l)}return VM}var qM,$oe;function N6t(){if($oe)return qM;$oe=1;var t=Ar();qM=e;function e(i){var s=r(i);t.forEach(i.graph().dummyChains,function(a){for(var o=i.node(a),l=o.edgeObj,u=n(i,s,l.v,l.w),c=u.path,d=u.lca,h=0,m=c[h],g=!0;a!==l.w;){if(o=i.node(a),g){for(;(m=c[h])!==d&&i.node(m).maxRank<o.rank;)h++;m===d&&(g=!1)}if(!g){for(;h<c.length-1&&i.node(m=c[h+1]).minRank<=o.rank;)h++;m=c[h]}i.setParent(a,m),a=i.successors(a)[0]}})}function n(i,s,a,o){var l=[],u=[],c=Math.min(s[a].low,s[o].low),d=Math.max(s[a].lim,s[o].lim),h,m;h=a;do h=i.parent(h),l.push(h);while(h&&(s[h].low>c||d>s[h].lim));for(m=h,h=o;(h=i.parent(h))!==m;)u.push(h);return{path:l.concat(u.reverse()),lca:m}}function r(i){var s={},a=0;function o(l){var u=a;t.forEach(i.children(l),o),s[l]={low:u,lim:a++}}return t.forEach(i.children(),o),s}return qM}var GM,Foe;function O6t(){if(Foe)return GM;Foe=1;var t=Ar(),e=ca();GM={run:n,cleanup:a};function n(o){var l=e.addDummyNode(o,"root",{},"_root"),u=i(o),c=t.max(t.values(u))-1,d=2*c+1;o.graph().nestingRoot=l,t.forEach(o.edges(),function(m){o.edge(m).minlen*=d});var h=s(o)+1;t.forEach(o.children(),function(m){r(o,l,d,h,c,u,m)}),o.graph().nodeRankFactor=d}function r(o,l,u,c,d,h,m){var g=o.children(m);if(!g.length){m!==l&&o.setEdge(l,m,{weight:0,minlen:u});return}var b=e.addBorderNode(o,"_bt"),v=e.addBorderNode(o,"_bb"),E=o.node(m);o.setParent(b,m),E.borderTop=b,o.setParent(v,m),E.borderBottom=v,t.forEach(g,function(x){r(o,l,u,c,d,h,x);var _=o.node(x),S=_.borderTop?_.borderTop:x,A=_.borderBottom?_.borderBottom:x,R=_.borderTop?c:2*c,T=S!==A?1:d-h[m]+1;o.setEdge(b,S,{weight:R,minlen:T,nestingEdge:!0}),o.setEdge(A,v,{weight:R,minlen:T,nestingEdge:!0})}),o.parent(m)||o.setEdge(l,b,{weight:0,minlen:d+h[m]})}function i(o){var l={};function u(c,d){var h=o.children(c);h&&h.length&&t.forEach(h,function(m){u(m,d+1)}),l[c]=d}return t.forEach(o.children(),function(c){u(c,1)}),l}function s(o){return t.reduce(o.edges(),function(l,u){return l+o.edge(u).weight},0)}function a(o){var l=o.graph();o.removeNode(l.nestingRoot),delete l.nestingRoot,t.forEach(o.edges(),function(u){var c=o.edge(u);c.nestingEdge&&o.removeEdge(u)})}return GM}var WM,Boe;function k6t(){if(Boe)return WM;Boe=1;var t=Ar(),e=ca();WM=n;function n(i){function s(a){var o=i.children(a),l=i.node(a);if(o.length&&t.forEach(o,s),t.has(l,"minRank")){l.borderLeft=[],l.borderRight=[];for(var u=l.minRank,c=l.maxRank+1;u<c;++u)r(i,"borderLeft","_bl",a,l,u),r(i,"borderRight","_br",a,l,u)}}t.forEach(i.children(),s)}function r(i,s,a,o,l,u){var c={width:0,height:0,rank:u,borderType:s},d=l[s][u-1],h=e.addDummyNode(i,"border",c,a);l[s][u]=h,i.setParent(h,o),d&&i.setEdge(d,h,{weight:1})}return WM}var YM,Hoe;function I6t(){if(Hoe)return YM;Hoe=1;var t=Ar();YM={adjust:e,undo:n};function e(u){var c=u.graph().rankdir.toLowerCase();(c==="lr"||c==="rl")&&r(u)}function n(u){var c=u.graph().rankdir.toLowerCase();(c==="bt"||c==="rl")&&s(u),(c==="lr"||c==="rl")&&(o(u),r(u))}function r(u){t.forEach(u.nodes(),function(c){i(u.node(c))}),t.forEach(u.edges(),function(c){i(u.edge(c))})}function i(u){var c=u.width;u.width=u.height,u.height=c}function s(u){t.forEach(u.nodes(),function(c){a(u.node(c))}),t.forEach(u.edges(),function(c){var d=u.edge(c);t.forEach(d.points,a),t.has(d,"y")&&a(d)})}function a(u){u.y=-u.y}function o(u){t.forEach(u.nodes(),function(c){l(u.node(c))}),t.forEach(u.edges(),function(c){var d=u.edge(c);t.forEach(d.points,l),t.has(d,"x")&&l(d)})}function l(u){var c=u.x;u.x=u.y,u.y=c}return YM}var KM,Uoe;function M6t(){if(Uoe)return KM;Uoe=1;var t=Ar();KM=e;function e(n){var r={},i=t.filter(n.nodes(),function(u){return!n.children(u).length}),s=t.max(t.map(i,function(u){return n.node(u).rank})),a=t.map(t.range(s+1),function(){return[]});function o(u){if(!t.has(r,u)){r[u]=!0;var c=n.node(u);a[c.rank].push(u),t.forEach(n.successors(u),o)}}var l=t.sortBy(i,function(u){return n.node(u).rank});return t.forEach(l,o),a}return KM}var XM,joe;function D6t(){if(joe)return XM;joe=1;var t=Ar();XM=e;function e(r,i){for(var s=0,a=1;a<i.length;++a)s+=n(r,i[a-1],i[a]);return s}function n(r,i,s){for(var a=t.zipObject(s,t.map(s,function(h,m){return m})),o=t.flatten(t.map(i,function(h){return t.sortBy(t.map(r.outEdges(h),function(m){return{pos:a[m.w],weight:r.edge(m).weight}}),"pos")}),!0),l=1;l<s.length;)l<<=1;var u=2*l-1;l-=1;var c=t.map(new Array(u),function(){return 0}),d=0;
vendor: 4,186 bytes, line 215
215return t.forEach(o.forEach(function(h){var m=h.pos+l;c[m]+=h.weight;for(var g=0;m>0;)m%2&&(g+=c[m+1]),m=m-1>>1,c[m]+=h.weight;d+=h.weight*g})),d}return XM}var QM,zoe;function P6t(){if(zoe)return QM;zoe=1;var t=Ar();QM=e;function e(n,r){return t.map(r,function(i){var s=n.inEdges(i);if(s.length){var a=t.reduce(s,function(o,l){var u=n.edge(l),c=n.node(l.v);return{sum:o.sum+u.weight*c.order,weight:o.weight+u.weight}},{sum:0,weight:0});return{v:i,barycenter:a.sum/a.weight,weight:a.weight}}else return{v:i}})}return QM}var ZM,Voe;function L6t(){if(Voe)return ZM;Voe=1;var t=Ar();ZM=e;function e(i,s){var a={};t.forEach(i,function(l,u){var c=a[l.v]={indegree:0,in:[],out:[],vs:[l.v],i:u};t.isUndefined(l.barycenter)||(c.barycenter=l.barycenter,c.weight=l.weight)}),t.forEach(s.edges(),function(l){var u=a[l.v],c=a[l.w];!t.isUndefined(u)&&!t.isUndefined(c)&&(c.indegree++,u.out.push(a[l.w]))});var o=t.filter(a,function(l){return!l.indegree});return n(o)}function n(i){var s=[];function a(u){return function(c){c.merged||(t.isUndefined(c.barycenter)||t.isUndefined(u.barycenter)||c.barycenter>=u.barycenter)&&r(u,c)}}function o(u){return function(c){c.in.push(u),--c.indegree===0&&i.push(c)}}for(;i.length;){var l=i.pop();s.push(l),t.forEach(l.in.reverse(),a(l)),t.forEach(l.out,o(l))}return t.map(t.filter(s,function(u){return!u.merged}),function(u){return t.pick(u,["vs","i","barycenter","weight"])})}function r(i,s){var a=0,o=0;i.weight&&(a+=i.barycenter*i.weight,o+=i.weight),s.weight&&(a+=s.barycenter*s.weight,o+=s.weight),i.vs=s.vs.concat(i.vs),i.barycenter=a/o,i.weight=o,i.i=Math.min(s.i,i.i),s.merged=!0}return ZM}var JM,qoe;function $6t(){if(qoe)return JM;qoe=1;var t=Ar(),e=ca();JM=n;function n(s,a){var o=e.partition(s,function(b){return t.has(b,"barycenter")}),l=o.lhs,u=t.sortBy(o.rhs,function(b){return-b.i}),c=[],d=0,h=0,m=0;l.sort(i(!!a)),m=r(c,u,m),t.forEach(l,function(b){m+=b.vs.length,c.push(b.vs),d+=b.barycenter*b.weight,h+=b.weight,m=r(c,u,m)});var g={vs:t.flatten(c,!0)};return h&&(g.barycenter=d/h,g.weight=h),g}function r(s,a,o){for(var l;a.length&&(l=t.last(a)).i<=o;)a.pop(),s.push(l.vs),o++;return o}function i(s){return function(a,o){return a.barycenter<o.barycenter?-1:a.barycenter>o.barycenter?1:s?o.i-a.i:a.i-o.i}}return JM}var eD,Goe;function F6t(){if(Goe)return eD;Goe=1;var t=Ar(),e=P6t(),n=L6t(),r=$6t();eD=i;function i(o,l,u,c){var d=o.children(l),h=o.node(l),m=h?h.borderLeft:void 0,g=h?h.borderRight:void 0,b={};m&&(d=t.filter(d,function(A){return A!==m&&A!==g}));var v=e(o,d);t.forEach(v,function(A){if(o.children(A.v).length){var R=i(o,A.v,u,c);b[A.v]=R,t.has(R,"barycenter")&&a(A,R)}});var E=n(v,u);s(E,b);var x=r(E,c);if(m&&(x.vs=t.flatten([m,x.vs,g],!0),o.predecessors(m).length)){var _=o.node(o.predecessors(m)[0]),S=o.node(o.predecessors(g)[0]);t.has(x,"barycenter")||(x.barycenter=0,x.weight=0),x.barycenter=(x.barycenter*x.weight+_.order+S.order)/(x.weight+2),x.weight+=2}return x}function s(o,l){t.forEach(o,function(u){u.vs=t.flatten(u.vs.map(function(c){return l[c]?l[c].vs:c}),!0)})}function a(o,l){t.isUndefined(o.barycenter)?(o.barycenter=l.barycenter,o.weight=l.weight):(o.barycenter=(o.barycenter*o.weight+l.barycenter*l.weight)/(o.weight+l.weight),o.weight+=l.weight)}return eD}var tD,Woe;function B6t(){if(Woe)return tD;Woe=1;var t=Ar(),e=ml().Graph;tD=n;function n(i,s,a){var o=r(i),l=new e({compound:!0}).setGraph({root:o}).setDefaultNodeLabel(function(u){return i.node(u)});return t.forEach(i.nodes(),function(u){var c=i.node(u),d=i.parent(u);(c.rank===s||c.minRank<=s&&s<=c.maxRank)&&(l.setNode(u),l.setParent(u,d||o),t.forEach(i[a](u),function(h){var m=h.v===u?h.w:h.v,g=l.edge(m,u),b=t.isUndefined(g)?0:g.weight;l.setEdge(m,u,{weight:i.edge(h).weight+b})}),t.has(c,"minRank")&&l.setNode(u,{borderLeft:c.borderLeft[s],borderRight:c.borderRight[s]}))}),l}function r(i){for(var s;i.hasNode(s=t.uniqueId("_root")););return s}return tD}var nD,Yoe;function H6t(){if(Yoe)return nD;Yoe=1;var t=Ar();nD=e;function e(n,r,i){var s={},a;t.forEach(i,function(o){for(var l=n.parent(o),u,c;l;){if(u=n.parent(l),u?(c=s[u],s[u]=l):(c=a,a=l),c&&c!==l){r.setEdge(c,l);return}l=u}})}return nD}var rD,Koe;function U6t(){if(Koe)return rD;Koe=1;
vendor: 4,759 bytes, line 215
215var t=Ar(),e=M6t(),n=D6t(),r=F6t(),i=B6t(),s=H6t(),a=ml().Graph,o=ca();rD=l;function l(h){var m=o.maxRank(h),g=u(h,t.range(1,m+1),"inEdges"),b=u(h,t.range(m-1,-1,-1),"outEdges"),v=e(h);d(h,v);for(var E=Number.POSITIVE_INFINITY,x,_=0,S=0;S<4;++_,++S){c(_%2?g:b,_%4>=2),v=o.buildLayerMatrix(h);var A=n(h,v);A<E&&(S=0,x=t.cloneDeep(v),E=A)}d(h,x)}function u(h,m,g){return t.map(m,function(b){return i(h,b,g)})}function c(h,m){var g=new a;t.forEach(h,function(b){var v=b.graph().root,E=r(b,v,g,m);t.forEach(E.vs,function(x,_){b.node(x).order=_}),s(b,g,E.vs)})}function d(h,m){t.forEach(m,function(g){t.forEach(g,function(b,v){h.node(b).order=v})})}return rD}var iD,Xoe;function j6t(){if(Xoe)return iD;Xoe=1;var t=Ar(),e=ml().Graph,n=ca();iD={positionX:g,findType1Conflicts:r,findType2Conflicts:i,addConflict:a,hasConflict:o,verticalAlignment:l,horizontalCompaction:u,alignCoordinates:h,findSmallestWidthAlignment:d,balance:m};function r(E,x){var _={};function S(A,R){var T=0,O=0,I=A.length,D=t.last(R);return t.forEach(R,function(P,B){var L=s(E,P),$=L?E.node(L).order:I;(L||P===D)&&(t.forEach(R.slice(O,B+1),function(q){t.forEach(E.predecessors(q),function(F){var G=E.node(F),H=G.order;(H<T||$<H)&&!(G.dummy&&E.node(q).dummy)&&a(_,F,q)})}),O=B+1,T=$)}),R}return t.reduce(x,S),_}function i(E,x){var _={};function S(R,T,O,I,D){var P;t.forEach(t.range(T,O),function(B){P=R[B],E.node(P).dummy&&t.forEach(E.predecessors(P),function(L){var $=E.node(L);$.dummy&&($.order<I||$.order>D)&&a(_,L,P)})})}function A(R,T){var O=-1,I,D=0;return t.forEach(T,function(P,B){if(E.node(P).dummy==="border"){var L=E.predecessors(P);L.length&&(I=E.node(L[0]).order,S(T,D,B,O,I),D=B,O=I)}S(T,D,T.length,I,R.length)}),T}return t.reduce(x,A),_}function s(E,x){if(E.node(x).dummy)return t.find(E.predecessors(x),function(_){return E.node(_).dummy})}function a(E,x,_){if(x>_){var S=x;x=_,_=S}var A=E[x];A||(E[x]=A={}),A[_]=!0}function o(E,x,_){if(x>_){var S=x;x=_,_=S}return t.has(E[x],_)}function l(E,x,_,S){var A={},R={},T={};return t.forEach(x,function(O){t.forEach(O,function(I,D){A[I]=I,R[I]=I,T[I]=D})}),t.forEach(x,function(O){var I=-1;t.forEach(O,function(D){var P=S(D);if(P.length){P=t.sortBy(P,function(F){return T[F]});for(var B=(P.length-1)/2,L=Math.floor(B),$=Math.ceil(B);L<=$;++L){var q=P[L];R[D]===D&&I<T[q]&&!o(_,D,q)&&(R[q]=D,R[D]=A[D]=A[q],I=T[q])}}})}),{root:A,align:R}}function u(E,x,_,S,A){var R={},T=c(E,x,_,A),O=A?"borderLeft":"borderRight";function I(B,L){for(var $=T.nodes(),q=$.pop(),F={};q;)F[q]?B(q):(F[q]=!0,$.push(q),$=$.concat(L(q))),q=$.pop()}function D(B){R[B]=T.inEdges(B).reduce(function(L,$){return Math.max(L,R[$.v]+T.edge($))},0)}function P(B){var L=T.outEdges(B).reduce(function(q,F){return Math.min(q,R[F.w]-T.edge(F))},Number.POSITIVE_INFINITY),$=E.node(B);L!==Number.POSITIVE_INFINITY&&$.borderType!==O&&(R[B]=Math.max(R[B],L))}return I(D,T.predecessors.bind(T)),I(P,T.successors.bind(T)),t.forEach(S,function(B){R[B]=R[_[B]]}),R}function c(E,x,_,S){var A=new e,R=E.graph(),T=b(R.nodesep,R.edgesep,S);return t.forEach(x,function(O){var I;t.forEach(O,function(D){var P=_[D];if(A.setNode(P),I){var B=_[I],L=A.edge(B,P);A.setEdge(B,P,Math.max(T(E,D,I),L||0))}I=D})}),A}function d(E,x){return t.minBy(t.values(x),function(_){var S=Number.NEGATIVE_INFINITY,A=Number.POSITIVE_INFINITY;return t.forIn(_,function(R,T){var O=v(E,T)/2;S=Math.max(R+O,S),A=Math.min(R-O,A)}),S-A})}function h(E,x){var _=t.values(x),S=t.min(_),A=t.max(_);t.forEach(["u","d"],function(R){t.forEach(["l","r"],function(T){var O=R+T,I=E[O],D;if(I!==x){var P=t.values(I);D=T==="l"?S-t.min(P):A-t.max(P),D&&(E[O]=t.mapValues(I,function(B){return B+D}))}})})}function m(E,x){return t.mapValues(E.ul,function(_,S){if(x)return E[x.toLowerCase()][S];var A=t.sortBy(t.map(E,S));return(A[1]+A[2])/2})}function g(E){var x=n.buildLayerMatrix(E),_=t.merge(r(E,x),i(E,x)),S={},A;t.forEach(["u","d"],function(T){A=T==="u"?x:t.values(x).reverse(),t.forEach(["l","r"],function(O){O==="r"&&(A=t.map(A,function(B){return t.values(B).reverse()}));var I=(T==="u"?E.predecessors:E.successors).bind(E),D=l(E,A,_,I),P=u(E,A,D.root,D.align,O==="r");O==="r"&&(P=t.mapValues(P,function(B){return-B})),S[T+O]=P})});var R=d(E,S);return h(S,R),m(S,E.graph().align)}function b(E,x,_){return function(S,A,R){var T=S.node(A),O=S.node(R),I=0,D;if(I+=T.width/2,t.has(T,"labelpos"))switch(T.labelpos.toLowerCase()){case"l":D=-T.width/2;break;case"r":D=T.width/2;break}if(D&&(I+=_?D:-D),D=0,I+=(T.dummy?x:E)/2,I+=(O.dummy?x:E)/2,I+=O.width/2,t.has(O,"labelpos"))switch(O.labelpos.toLowerCase()){case"l":D=O.width/2;break;case"r":D=-O.width/2;break}return D&&(I+=_?D:-D),D=0,I}}function v(E,x){return E.node(x).width}return iD}var sD,Qoe;function z6t(){if(Qoe)return sD;Qoe=1;var t=Ar(),e=ca(),n=j6t().positionX;sD=r;
vendor: 4,449 bytes, line 215
215function r(s){s=e.asNonCompoundGraph(s),i(s),t.forEach(n(s),function(a,o){s.node(o).x=a})}function i(s){var a=e.buildLayerMatrix(s),o=s.graph().ranksep,l=0;t.forEach(a,function(u){var c=t.max(t.map(u,function(d){return s.node(d).height}));t.forEach(u,function(d){s.node(d).y=l+c/2}),l+=c+o})}return sD}var aD,Zoe;function V6t(){if(Zoe)return aD;Zoe=1;var t=Ar(),e=C6t(),n=T6t(),r=R6t(),i=ca().normalizeRanks,s=N6t(),a=ca().removeEmptyRanks,o=O6t(),l=k6t(),u=I6t(),c=U6t(),d=z6t(),h=ca(),m=ml().Graph;aD=g;function g(Q,re){var se=re&&re.debugTiming?h.time:h.notime;se("layout",function(){var J=se(" buildLayoutGraph",function(){return I(Q)});se(" runLayout",function(){b(J,se)}),se(" updateInputGraph",function(){v(Q,J)})})}function b(Q,re){re(" makeSpaceForEdgeLabels",function(){D(Q)}),re(" removeSelfEdges",function(){K(Q)}),re(" acyclic",function(){e.run(Q)}),re(" nestingGraph.run",function(){o.run(Q)}),re(" rank",function(){r(h.asNonCompoundGraph(Q))}),re(" injectEdgeLabelProxies",function(){P(Q)}),re(" removeEmptyRanks",function(){a(Q)}),re(" nestingGraph.cleanup",function(){o.cleanup(Q)}),re(" normalizeRanks",function(){i(Q)}),re(" assignRankMinMax",function(){B(Q)}),re(" removeEdgeLabelProxies",function(){L(Q)}),re(" normalize.run",function(){n.run(Q)}),re(" parentDummyChains",function(){s(Q)}),re(" addBorderSegments",function(){l(Q)}),re(" order",function(){c(Q)}),re(" insertSelfEdges",function(){V(Q)}),re(" adjustCoordinateSystem",function(){u.adjust(Q)}),re(" position",function(){d(Q)}),re(" positionSelfEdges",function(){Y(Q)}),re(" removeBorderNodes",function(){H(Q)}),re(" normalize.undo",function(){n.undo(Q)}),re(" fixupEdgeLabelCoords",function(){F(Q)}),re(" undoCoordinateSystem",function(){u.undo(Q)}),re(" translateGraph",function(){$(Q)}),re(" assignNodeIntersects",function(){q(Q)}),re(" reversePoints",function(){G(Q)}),re(" acyclic.undo",function(){e.undo(Q)})}function v(Q,re){t.forEach(Q.nodes(),function(se){var J=Q.node(se),ae=re.node(se);J&&(J.x=ae.x,J.y=ae.y,re.children(se).length&&(J.width=ae.width,J.height=ae.height))}),t.forEach(Q.edges(),function(se){var J=Q.edge(se),ae=re.edge(se);J.points=ae.points,t.has(ae,"x")&&(J.x=ae.x,J.y=ae.y)}),Q.graph().width=re.graph().width,Q.graph().height=re.graph().height}var E=["nodesep","edgesep","ranksep","marginx","marginy"],x={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},_=["acyclicer","ranker","rankdir","align"],S=["width","height"],A={width:0,height:0},R=["minlen","weight","width","height","labeloffset"],T={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},O=["labelpos"];function I(Q){var re=new m({multigraph:!0,compound:!0}),se=W(Q.graph());return re.setGraph(t.merge({},x,Z(se,E),t.pick(se,_))),t.forEach(Q.nodes(),function(J){var ae=W(Q.node(J));re.setNode(J,t.defaults(Z(ae,S),A)),re.setParent(J,Q.parent(J))}),t.forEach(Q.edges(),function(J){var ae=W(Q.edge(J));re.setEdge(J,t.merge({},T,Z(ae,R),t.pick(ae,O)))}),re}function D(Q){var re=Q.graph();re.ranksep/=2,t.forEach(Q.edges(),function(se){var J=Q.edge(se);J.minlen*=2,J.labelpos.toLowerCase()!=="c"&&(re.rankdir==="TB"||re.rankdir==="BT"?J.width+=J.labeloffset:J.height+=J.labeloffset)})}function P(Q){t.forEach(Q.edges(),function(re){var se=Q.edge(re);if(se.width&&se.height){var J=Q.node(re.v),ae=Q.node(re.w),ge={rank:(ae.rank-J.rank)/2+J.rank,e:re};h.addDummyNode(Q,"edge-proxy",ge,"_ep")}})}function B(Q){var re=0;t.forEach(Q.nodes(),function(se){var J=Q.node(se);J.borderTop&&(J.minRank=Q.node(J.borderTop).rank,J.maxRank=Q.node(J.borderBottom).rank,re=t.max(re,J.maxRank))}),Q.graph().maxRank=re}function L(Q){t.forEach(Q.nodes(),function(re){var se=Q.node(re);se.dummy==="edge-proxy"&&(Q.edge(se.e).labelRank=se.rank,Q.removeNode(re))})}function $(Q){var re=Number.POSITIVE_INFINITY,se=0,J=Number.POSITIVE_INFINITY,ae=0,ge=Q.graph(),ve=ge.marginx||0,Re=ge.marginy||0;function xe(Ne){var Fe=Ne.x,Le=Ne.y,ze=Ne.width,qe=Ne.height;re=Math.min(re,Fe-ze/2),se=Math.max(se,Fe+ze/2),J=Math.min(J,Le-qe/2),ae=Math.max(ae,Le+qe/2)}t.forEach(Q.nodes(),function(Ne){xe(Q.node(Ne))}),t.forEach(Q.edges(),function(Ne){var Fe=Q.edge(Ne);t.has(Fe,"x")&&xe(Fe)}),re-=ve,J-=Re,t.forEach(Q.nodes(),function(Ne){var Fe=Q.node(Ne);Fe.x-=re,Fe.y-=J}),t.forEach(Q.edges(),function(Ne){var Fe=Q.edge(Ne);t.forEach(Fe.points,function(Le){Le.x-=re,Le.y-=J}),t.has(Fe,"x")&&(Fe.x-=re),t.has(Fe,"y")&&(Fe.y-=J)}
215),ge.width=se-re+ve,ge.height=ae-J+Re}function q(Q){t.forEach(Q.edges(),function(re){var se=Q.edge(re),J=Q.node(re.v),ae=Q.node(re.w),ge,ve;se.points?(ge=se.points[0],ve=se.points[se.points.length-1]):(se.points=[],ge=ae,ve=J),se.points.unshift(h.intersectRect(J,ge)),se.points.push(h.intersectRect(ae,ve))})}function F(Q){t.forEach(Q.edges(),function(re){var se=Q.edge(re);if(t.has(se,"x"))switch((se.labelpos==="l"||se.labelpos==="r")&&(se.width-=se.labeloffset),se.labelpos){case"l":se.x-=se.width/2+se.labeloffset;break;case"r":se.x+=se.width/2+se.labeloffset;break}})}function G(Q){t.forEach(Q.edges(),function(re){var se=Q.edge(re);se.reversed&&se.points.reverse()})}function H(Q){t.forEach(Q.nodes(),function(re){if(Q.children(re).length){var se=Q.node(re),J=Q.node(se.borderTop),ae=Q.node(se.borderBottom),ge=Q.node(t.last(se.borderLeft)),ve=Q.node(t.last(se.borderRight));se.width=Math.abs(ve.x-ge.x),se.height=Math.abs(ae.y-J.y),se.x=ge.x+se.width/2,se.y=J.y+se.height/2}}),t.forEach(Q.nodes(),function(re){Q.node(re).dummy==="border"&&Q.removeNode(re)})}function K(Q){t.forEach(Q.edges(),function(re){if(re.v===re.w){var se=Q.node(re.v);se.selfEdges||(se.selfEdges=[]),se.selfEdges.push({e:re,label:Q.edge(re)}),Q.removeEdge(re)}})}function V(Q){var re=h.buildLayerMatrix(Q);t.forEach(re,function(se){var J=0;t.forEach(se,function(ae,ge){var ve=Q.node(ae);ve.order=ge+J,t.forEach(ve.selfEdges,function(Re){h.addDummyNode(Q,"selfedge",{width:Re.label.width,height:Re.label.height,rank:ve.rank,order:ge+ ++J,e:Re.e,label:Re.label},"_se")}),delete ve.selfEdges})})}function Y(Q){t.forEach(Q.nodes(),function(re){var se=Q.node(re);if(se.dummy==="selfedge"){var J=Q.node(se.e.v),ae=J.x+J.width/2,ge=J.y,ve=se.x-ae,Re=J.height/2;Q.setEdge(se.e,se.label),Q.removeNode(re),se.label.points=[{x:ae+2*ve/3,y:ge-Re},{x:ae+5*ve/6,y:ge-Re},{x:ae+ve,y:ge},{x:ae+5*ve/6,y:ge+Re},{x:ae+2*ve/3,y:ge+Re}],se.label.x=se.x,se.label.y=se.y}})}function Z(Q,re){return t.mapValues(t.pick(Q,re),Number)}function W(Q){var re={};return t.forEach(Q,function(se,J){re[J.toLowerCase()]=se}),re}return aD}var oD,Joe;function q6t(){if(Joe)return oD;Joe=1;var t=Ar(),e=ca(),n=ml().Graph;oD={debugOrdering:r};function r(i){var s=e.buildLayerMatrix(i),a=new n({compound:!0,multigraph:!0}).setGraph({});return t.forEach(i.nodes(),function(o){a.setNode(o,{label:o}),a.setParent(o,"layer"+i.node(o).rank)}),t.forEach(i.edges(),function(o){a.setEdge(o.v,o.w,{},o.name)}),t.forEach(s,function(o,l){var u="layer"+l;a.setNode(u,{rank:"same"}),t.reduce(o,function(c,d){return a.setEdge(c,d,{style:"invis"}),d})}),a}return oD}var lD,ele;function G6t(){return ele||(ele=1,lD="0.8.5"),lD}var uD,tle;function W6t(){return tle||(tle=1,uD={graphlib:ml(),layout:V6t(),debug:q6t(),util:{time:ca().time,notime:ca().notime},version:G6t()}),uD}var Y6t=W6t();const MMt=ys(Y6t);var K6t=Object.defineProperty,iT=Object.getOwnPropertySymbols,gCe=Object.prototype.hasOwnProperty,yCe=Object.prototype.propertyIsEnumerable,nle=(t,e,n)=>e in t?K6t(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,a7=(t,e)=>{for(var n in e||(e={}))gCe.call(e,n)&&nle(t,n,e[n]);if(iT)for(var n of iT(e))yCe.call(e,n)&&nle(t,n,e[n]);return t},o7=(t,e)=>{var n={};for(var r in t)gCe.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&iT)for(var r of iT(t))e.indexOf(r)<0&&yCe.call(t,r)&&(n[r]=t[r]);return n};var xp;(t=>{const e=class pn{constructor(l,u,c,d){if(this.version=l,this.errorCorrectionLevel=u,this.modules=[],this.isFunction=[],l<pn.MIN_VERSION||l>pn.MAX_VERSION)throw new RangeError("Version value out of range");if(d<-1||d>7)throw new RangeError("Mask value out of range");this.size=l*4+17;let h=[];for(let g=0;g<this.size;g++)h.push(!1);for(let g=0;g<this.size;g++)this.modules.push(h.slice()),this.isFunction.push(h.slice());this.drawFunctionPatterns();const m=this.addEccAndInterleave(c);if(this.drawCodewords(m),d==-1){let g=1e9;for(let b=0;b<8;b++){this.applyMask(b),this.drawFormatBits(b);const v=this.getPenaltyScore();v<g&&(d=b,g=v),this.applyMask(b)}}i(0<=d&&d<=7),this.mask=d,this.applyMask(d),this.drawFormatBits(d),this.isFunction=[]}static encodeText(l,u){const c=t.QrSegment.makeSegments(l);return pn.encodeSegments(c,u)}static encodeBinary(l,u){const c=t.QrSegment.makeBytes(l);return pn.encodeSegments([c],u)}static encodeSegments(l,u,c=1,d=40,h=-1,m=!0){if(!(pn.MIN_VERSION<=c&&
vendor: 6,783 bytes, line 215
215c<=d&&d<=pn.MAX_VERSION)||h<-1||h>7)throw new RangeError("Invalid value");let g,b;for(g=c;;g++){const _=pn.getNumDataCodewords(g,u)*8,S=a.getTotalBits(l,g);if(S<=_){b=S;break}if(g>=d)throw new RangeError("Data too long")}for(const _ of[pn.Ecc.MEDIUM,pn.Ecc.QUARTILE,pn.Ecc.HIGH])m&&b<=pn.getNumDataCodewords(g,_)*8&&(u=_);let v=[];for(const _ of l){n(_.mode.modeBits,4,v),n(_.numChars,_.mode.numCharCountBits(g),v);for(const S of _.getData())v.push(S)}i(v.length==b);const E=pn.getNumDataCodewords(g,u)*8;i(v.length<=E),n(0,Math.min(4,E-v.length),v),n(0,(8-v.length%8)%8,v),i(v.length%8==0);for(let _=236;v.length<E;_^=253)n(_,8,v);let x=[];for(;x.length*8<v.length;)x.push(0);return v.forEach((_,S)=>x[S>>>3]|=_<<7-(S&7)),new pn(g,u,x,h)}getModule(l,u){return 0<=l&&l<this.size&&0<=u&&u<this.size&&this.modules[u][l]}getModules(){return this.modules}drawFunctionPatterns(){for(let c=0;c<this.size;c++)this.setFunctionModule(6,c,c%2==0),this.setFunctionModule(c,6,c%2==0);this.drawFinderPattern(3,3),this.drawFinderPattern(this.size-4,3),this.drawFinderPattern(3,this.size-4);const l=this.getAlignmentPatternPositions(),u=l.length;for(let c=0;c<u;c++)for(let d=0;d<u;d++)c==0&&d==0||c==0&&d==u-1||c==u-1&&d==0||this.drawAlignmentPattern(l[c],l[d]);this.drawFormatBits(0),this.drawVersion()}drawFormatBits(l){const u=this.errorCorrectionLevel.formatBits<<3|l;let c=u;for(let h=0;h<10;h++)c=c<<1^(c>>>9)*1335;const d=(u<<10|c)^21522;i(d>>>15==0);for(let h=0;h<=5;h++)this.setFunctionModule(8,h,r(d,h));this.setFunctionModule(8,7,r(d,6)),this.setFunctionModule(8,8,r(d,7)),this.setFunctionModule(7,8,r(d,8));for(let h=9;h<15;h++)this.setFunctionModule(14-h,8,r(d,h));for(let h=0;h<8;h++)this.setFunctionModule(this.size-1-h,8,r(d,h));for(let h=8;h<15;h++)this.setFunctionModule(8,this.size-15+h,r(d,h));this.setFunctionModule(8,this.size-8,!0)}drawVersion(){if(this.version<7)return;let l=this.version;for(let c=0;c<12;c++)l=l<<1^(l>>>11)*7973;const u=this.version<<12|l;i(u>>>18==0);for(let c=0;c<18;c++){const d=r(u,c),h=this.size-11+c%3,m=Math.floor(c/3);this.setFunctionModule(h,m,d),this.setFunctionModule(m,h,d)}}drawFinderPattern(l,u){for(let c=-4;c<=4;c++)for(let d=-4;d<=4;d++){const h=Math.max(Math.abs(d),Math.abs(c)),m=l+d,g=u+c;0<=m&&m<this.size&&0<=g&&g<this.size&&this.setFunctionModule(m,g,h!=2&&h!=4)}}drawAlignmentPattern(l,u){for(let c=-2;c<=2;c++)for(let d=-2;d<=2;d++)this.setFunctionModule(l+d,u+c,Math.max(Math.abs(d),Math.abs(c))!=1)}setFunctionModule(l,u,c){this.modules[u][l]=c,this.isFunction[u][l]=!0}addEccAndInterleave(l){const u=this.version,c=this.errorCorrectionLevel;if(l.length!=pn.getNumDataCodewords(u,c))throw new RangeError("Invalid argument");const d=pn.NUM_ERROR_CORRECTION_BLOCKS[c.ordinal][u],h=pn.ECC_CODEWORDS_PER_BLOCK[c.ordinal][u],m=Math.floor(pn.getNumRawDataModules(u)/8),g=d-m%d,b=Math.floor(m/d);let v=[];const E=pn.reedSolomonComputeDivisor(h);for(let _=0,S=0;_<d;_++){let A=l.slice(S,S+b-h+(_<g?0:1));S+=A.length;const R=pn.reedSolomonComputeRemainder(A,E);_<g&&A.push(0),v.push(A.concat(R))}let x=[];for(let _=0;_<v[0].length;_++)v.forEach((S,A)=>{(_!=b-h||A>=g)&&x.push(S[_])});return i(x.length==m),x}drawCodewords(l){if(l.length!=Math.floor(pn.getNumRawDataModules(this.version)/8))throw new RangeError("Invalid argument");let u=0;for(let c=this.size-1;c>=1;c-=2){c==6&&(c=5);for(let d=0;d<this.size;d++)for(let h=0;h<2;h++){const m=c-h,b=(c+1&2)==0?this.size-1-d:d;!this.isFunction[b][m]&&u<l.length*8&&(this.modules[b][m]=r(l[u>>>3],7-(u&7)),u++)}}i(u==l.length*8)}applyMask(l){if(l<0||l>7)throw new RangeError("Mask value out of range");for(let u=0;u<this.size;u++)for(let c=0;c<this.size;c++){let d;switch(l){case 0:d=(c+u)%2==0;break;case 1:d=u%2==0;break;case 2:d=c%3==0;break;case 3:d=(c+u)%3==0;break;case 4:d=(Math.floor(c/3)+Math.floor(u/2))%2==0;break;case 5:d=c*u%2+c*u%3==0;break;case 6:d=(c*u%2+c*u%3)%2==0;break;case 7:d=((c+u)%2+c*u%3)%2==0;break;default:throw new Error("Unreachable")}!this.isFunction[u][c]&&d&&(this.modules[u][c]=!this.modules[u][c])}}getPenaltyScore(){let l=0;for(let h=0;h<this.size;h++){let m=!1,g=0,b=[0,0,0,0,0,0,0];for(let v=0;v<this.size;v++)this.modules[h][v]==m?(g++,g==5?l+=pn.PENALTY_N1:g>5&&l++):(this.finderPenaltyAddHistory(g,b),m||(l+=this.finderPenaltyCountPatterns(b)*pn.PENALTY_N3),m=this.modules[h][v],g=1);l+=this.finderPenaltyTerminateAndCount(m,g,b)*pn.PENALTY_N3}for(let h=0;h<this.size;h++){let m=!1,g=0,b=[0,0,0,0,0,0,0];for(let v=0;v<this.size;v++)this.modules[v][h]==m?(g++,g==5?l+=pn.PENALTY_N1:g>5&&l++):(this.finderPenaltyAddHistory(g,b),m||(l+=this.finderPenaltyCountPatterns(b)*pn.PENALTY_N3),m=this.modules[v][h],g=1);l+=this.finderPenaltyTerminateAndCount(m,g,b)*pn.PENALTY_N3}for(let h=0;h<this.size-1;h++)for(let m=0;m<this.size-1;m++){const g=this.modules[h][m];g==this.modules[h][m+1]&&g==this.modules[h+1][m]&&g==this.modules[h+1][m+1]&&(l+=pn.PENALTY_N2)}let u=0;for(const h of this.modules)u=h.reduce((m,g)=>m+(g?1:0),u);const c=this.size*this.size,d=Math.ceil(Math.abs(u*20-c*10)/c)-1;return i(0<=d&&d<=9),l+=d*pn.PENALTY_N4,i(0<=l&&l<=2568888),l}getAlignmentPatternPositions(){if(this.version==1)return[];{const l=Math.floor(this.version/7)+2,u=this.version==32?26:Math.ceil((this.version*4+4)/(l*2-2))*2;let c=[6];for(let d=this.size-7;c.length<l;d-=u)c.splice(1,0,d);return c}}static getNumRawDataModules(l){if(l<pn.MIN_VERSION||l>pn.MAX_VERSION)throw new RangeError("Version number out of range");let u=(16*l+128)*l+64;if(l>=2){const c=Math.floor(l/7)+2;u-=(25*c-10)*c-55,l>=7&&(u-=36)}return i(208<=u&&u<=29648),u}static getNumDataCodewords(l,u){return Math.floor(pn.getNumRawDataModules(l)/8)-pn.ECC_CODEWORDS_PER_BLOCK[u.ordinal][l]*pn.NUM_ERROR_CORRECTION_BLOCKS[u.ordinal][l]}static reedSolomonComputeDivisor(l){if(l<1||l>255)throw new RangeError("Degree out of range");let u=[];for(let d=0;d<l-1;d++)u.push(0);u.push(1);let c=1;for(let d=0;d<l;d++){for(let h=0;h<u.length;h++)u[h]=pn.reedSolomonMultiply(u[h],c),h+1<u.length&&(u[h]^=u[h+1]);c=pn.reedSolomonMultiply(c,2)}return u}static reedSolomonComputeRemainder(l,u){let c=u.map(d=>0);for(const d of l){const h=d^c.shift();c.push(0),u.forEach((m,g)=>c[g]^=pn.reedSolomonMultiply(m,h))}return c}static reedSolomonMultiply(l,u){if(l>>>8||u>>>8)throw new RangeError("Byte out of range");let c=0;for(let d=7;d>=0;d--)c=c<<1^(c>>>7)*285,c^=(u>>>d&1)*l;return i(c>>>8==0),c}finderPenaltyCountPatterns(l){const u=l[1];i(u<=this.size*3);const c=u>0&&l[2]==u&&l[3]==u*3&&l[4]==u&&l[5]==u;return(c&&l[0]>=u*4&&l[6]>=u?1:0)+(c&&l[6]>=u*4&&l[0]>=u?1:0)}finderPenaltyTerminateAndCount(l,u,c){return l&&(this.finderPenaltyAddHistory(u,c),u=0),u+=this.size,this.finderPenaltyAddHistory(u,c),this.finderPenaltyCountPatterns(c)}finderPenaltyAddHistory(l,u){u[0]==0&&(l+=this.size),u.pop(),u.unshift(l)}};
215e.MIN_VERSION=1,e.MAX_VERSION=40,e.PENALTY_N1=3,e.PENALTY_N2=3,e.PENALTY_N3=40,e.PENALTY_N4=10,e.ECC_CODEWORDS_PER_BLOCK=[[-1,7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],[-1,13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]],e.NUM_ERROR_CORRECTION_BLOCKS=[[-1,1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],[-1,1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],[-1,1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],[-1,1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]],t.QrCode=e;function n(o,l,u){if(l<0||l>31||o>>>l)throw new RangeError("Value out of range");for(let c=l-1;c>=0;c--)u.push(o>>>c&1)}function r(o,l){return(o>>>l&1)!=0}function i(o){if(!o)throw new Error("Assertion error")}const s=class Fr{constructor(l,u,c){if(this.mode=l,this.numChars=u,this.bitData=c,u<0)throw new RangeError("Invalid argument");this.bitData=c.slice()}static makeBytes(l){let u=[];for(const c of l)n(c,8,u);return new Fr(Fr.Mode.BYTE,l.length,u)}static makeNumeric(l){if(!Fr.isNumeric(l))throw new RangeError("String contains non-numeric characters");let u=[];for(let c=0;c<l.length;){const d=Math.min(l.length-c,3);n(parseInt(l.substring(c,c+d),10),d*3+1,u),c+=d}return new Fr(Fr.Mode.NUMERIC,l.length,u)}static makeAlphanumeric(l){if(!Fr.isAlphanumeric(l))throw new RangeError("String contains unencodable characters in alphanumeric mode");let u=[],c;for(c=0;c+2<=l.length;c+=2){let d=Fr.ALPHANUMERIC_CHARSET.indexOf(l.charAt(c))*45;d+=Fr.ALPHANUMERIC_CHARSET.indexOf(l.charAt(c+1)),n(d,11,u)}return c<l.length&&n(Fr.ALPHANUMERIC_CHARSET.indexOf(l.charAt(c)),6,u),new Fr(Fr.Mode.ALPHANUMERIC,l.length,u)}static makeSegments(l){return l==""?[]:Fr.isNumeric(l)?[Fr.makeNumeric(l)]:Fr.isAlphanumeric(l)?[Fr.makeAlphanumeric(l)]:[Fr.makeBytes(Fr.toUtf8ByteArray(l))]}static makeEci(l){let u=[];if(l<0)throw new RangeError("ECI assignment value out of range");if(l<128)n(l,8,u);else if(l<16384)n(2,2,u),n(l,14,u);else if(l<1e6)n(6,3,u),n(l,21,u);else throw new RangeError("ECI assignment value out of range");return new Fr(Fr.Mode.ECI,0,u)}static isNumeric(l){return Fr.NUMERIC_REGEX.test(l)}static isAlphanumeric(l){return Fr.ALPHANUMERIC_REGEX.test(l)}getData(){return this.bitData.slice()}static getTotalBits(l,u){let c=0;for(const d of l){const h=d.mode.numCharCountBits(u);if(d.numChars>=1<<h)return 1/0;c+=4+h+d.bitData.length}return c}static toUtf8ByteArray(l){l=encodeURI(l);let u=[];for(let c=0;c<l.length;c++)l.charAt(c)!="%"?u.push(l.charCodeAt(c)):(u.push(parseInt(l.substring(c+1,c+3),16)),c+=2);return u}};s.NUMERIC_REGEX=/^[0-9]*$/,s.ALPHANUMERIC_REGEX=/^[A-Z0-9 $%*+.\/:-]*$/,s.ALPHANUMERIC_CHARSET="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:";let a=s;t.QrSegment=s})(xp||(xp={}));(t=>{(e=>{const n=class{constructor(i,s){this.ordinal=i,this.formatBits=s}};n.LOW=new n(0,1),n.MEDIUM=new n(1,0),n.QUARTILE=new n(2,3),n.HIGH=new n(3,2),e.Ecc=n})(t.QrCode||(t.QrCode={}))})(xp||(xp={}));(t=>{(e=>{const n=class{constructor(i,s){this.modeBits=i,this.numBitsCharCount=s}numCharCountBits(i){return this.numBitsCharCount[Math.floor((i+7)/17)]}};n.NUMERIC=new n(1,[10,12,14]),n.ALPHANUMERIC=new n(2,[9,11,13]),n.BYTE=new n(4,[8,16,16]),n.KANJI=new n(8,[8,10,12]),n.ECI=new n(7,[0,0,0]),e.Mode=n})(t.QrSegment||(t.QrSegment={}))})(xp||(xp={}));var hg=xp;var X6t={L:hg.QrCode.Ecc.LOW,M:hg.QrCode.Ecc.MEDIUM,Q:hg.QrCode.Ecc.QUARTILE,H:hg.QrCode.Ecc.HIGH},bCe=128,vCe="L",ECe="#FFFFFF",_Ce="#000000",xCe=!1,wCe=1,Q6t=4,Z6t=0,J6t=.1;function SCe(t,e=0){const n=[];return t.forEach(function(r,i){let s=null;r.forEach(function(a,o){if(!a&&s!==null){n.push(`M${s+e} ${i+e}h${o-s}v1H${s+e}z`),s=null;return}if(o===r.length-1){if(!a)return;s===null?n.push(`M${o+e},${i+e} h1v1H${o+e}z`):n.push(`M${s+e},${i+e} h${o+1-s}v1H${s+e}z`);return}a&&s===null&&(s=o)})}),n.join("")}function CCe(t,e){return t.slice().map((n,r)=>r<e.y||r>=e.y+e.h?n:n.map((i,s)=>s<e.x||s>=e.x+e.w?i:!1))}function ekt(t,e,n,r){if(r==null)return null;const i=t.length+n*2,s=Math.floor(e*J6t),a=i/e,o=(r.width||s)*a,l=(r.height||s)*
215a,u=r.x==null?t.length/2-o/2:r.x*a,c=r.y==null?t.length/2-l/2:r.y*a,d=r.opacity==null?1:r.opacity;let h=null;if(r.excavate){let g=Math.floor(u),b=Math.floor(c),v=Math.ceil(o+u-g),E=Math.ceil(l+c-b);h={x:g,y:b,w:v,h:E}}const m=r.crossOrigin;return{x:u,y:c,h:l,w:o,excavation:h,opacity:d,crossOrigin:m}}function tkt(t,e){return e!=null?Math.max(Math.floor(e),0):t?Q6t:Z6t}function TCe({value:t,level:e,minVersion:n,includeMargin:r,marginSize:i,imageSettings:s,size:a,boostLevel:o}){let l=U.useMemo(()=>{const g=(Array.isArray(t)?t:[t]).reduce((b,v)=>(b.push(...hg.QrSegment.makeSegments(v)),b),[]);return hg.QrCode.encodeSegments(g,X6t[e],n,void 0,void 0,o)},[t,e,n,o]);const{cells:u,margin:c,numCells:d,calculatedImageSettings:h}=U.useMemo(()=>{let m=l.getModules();const g=tkt(r,i),b=m.length+g*2,v=ekt(m,a,g,s);return{cells:m,margin:g,numCells:b,calculatedImageSettings:v}},[l,a,s,r,i]);return{qrcode:l,margin:c,cells:u,numCells:d,calculatedImageSettings:h}}var nkt=(function(){try{new Path2D().addPath(new Path2D)}catch{return!1}return!0})(),rkt=U.forwardRef(function(e,n){const r=e,{value:i,size:s=bCe,level:a=vCe,bgColor:o=ECe,fgColor:l=_Ce,includeMargin:u=xCe,minVersion:c=wCe,boostLevel:d,marginSize:h,imageSettings:m}=r,b=o7(r,["value","size","level","bgColor","fgColor","includeMargin","minVersion","boostLevel","marginSize","imageSettings"]),{style:v}=b,E=o7(b,["style"]),x=m?.src,_=U.useRef(null),S=U.useRef(null),A=U.useCallback($=>{_.current=$,typeof n=="function"?n($):n&&(n.current=$)},[n]),[R,T]=U.useState(!1),{margin:O,cells:I,numCells:D,calculatedImageSettings:P}=TCe({value:i,level:a,minVersion:c,boostLevel:d,includeMargin:u,marginSize:h,imageSettings:m,size:s});U.useEffect(()=>{if(_.current!=null){const $=_.current,q=$.getContext("2d");if(!q)return;let F=I;const G=S.current,H=P!=null&&G!==null&&G.complete&&G.naturalHeight!==0&&G.naturalWidth!==0;H&&P.excavation!=null&&(F=CCe(I,P.excavation));const K=window.devicePixelRatio||1;$.height=$.width=s*K;const V=s/D*K;q.scale(V,V),q.fillStyle=o,q.fillRect(0,0,D,D),q.fillStyle=l,nkt?q.fill(new Path2D(SCe(F,O))):I.forEach(function(Y,Z){Y.forEach(function(W,Q){W&&q.fillRect(Q+O,Z+O,1,1)})}),P&&(q.globalAlpha=P.opacity),H&&q.drawImage(G,P.x+O,P.y+O,P.w,P.h)}}),U.useEffect(()=>{T(!1)},[x]);
215const B=a7({height:s,width:s},v);let L=null;return x!=null&&(L=U.createElement("img",{src:x,key:x,style:{display:"none"},onLoad:()=>{T(!0)},ref:S,crossOrigin:P?.crossOrigin})),U.createElement(U.Fragment,null,U.createElement("canvas",a7({style:B,height:s,width:s,ref:A,role:"img"},E)),L)});rkt.displayName="QRCodeCanvas";var ikt=U.forwardRef(function(e,n){const r=e,{value:i,size:s=bCe,level:a=vCe,bgColor:o=ECe,fgColor:l=_Ce,includeMargin:u=xCe,minVersion:c=wCe,boostLevel:d,title:h,marginSize:m,imageSettings:g}=r,b=o7(r,["value","size","level","bgColor","fgColor","includeMargin","minVersion","boostLevel","title","marginSize","imageSettings"]),{margin:v,cells:E,numCells:x,calculatedImageSettings:_}=TCe({value:i,level:a,minVersion:c,boostLevel:d,includeMargin:u,marginSize:m,imageSettings:g,size:s});let S=E,A=null;g!=null&&_!=null&&(_.excavation!=null&&(S=CCe(E,_.excavation)),A=U.createElement("image",{href:g.src,height:_.h,width:_.w,x:_.x+v,y:_.y+v,preserveAspectRatio:"none",opacity:_.opacity,crossOrigin:_.crossOrigin}));const R=SCe(S,v);return U.createElement("svg",a7({height:s,width:s,viewBox:`0 0 ${x} ${x}`,ref:n,role:"img"},b),!!h&&U.createElement("title",null,h),U.createElement("path",{fill:o,d:`M0,0 h${x}v${x}H0z`,shapeRendering:"crispEdges"}),U.createElement("path",{fill:l,d:R,shapeRendering:"crispEdges"}),A)});ikt.displayName="QRCodeSVG";function skt(t,e,n){let r=i=>t(i,...e);return n===void 0?r:Object.assign(r,{lazy:n,lazyArgs:e})}function akt(t,e,n){let r=t.length-e.length;if(r===0)return t(...e);if(r===1)return skt(t,e,n);throw Error("Wrong number of arguments")}function LMt(...t){return akt(IE,t)}function IE(t,e){if(t===e||Object.is(t,e))return!0;if(typeof t!="object"||typeof e!="object"||t===null||e===null||Object.getPrototypeOf(t)!==Object.getPrototypeOf(e))return!1;if(Array.isArray(t))return okt(t,e);if(t instanceof Map)return lkt(t,e);if(t instanceof Set)return ukt(t,e);if(t instanceof Date)return t.getTime()===e.getTime();if(t instanceof RegExp)return t.toString()===e.toString();if(Object.keys(t).length!==Object.keys(e).length)return!1;for(let[n,r]of Object.entries(t))if(!(n in e)||!IE(r,e[n]))return!1;return!0}function okt(t,e){if(t.length!==e.length)return!1;for(let[n,r]of t.entries())if(!IE(r,e[n]))return!1;return!0}function lkt(t,e){if(t.size!==e.size)return!1;for(let[n,r]of t.entries())if(!e.has(n)||!IE(r,e.get(n)))return!1;return!0}function ukt(t,e){if(t.size!==e.size)return!1;let n=[...e];for(let r of t){let i=!1;for(let[s,a]of n.entries())if(IE(r,a)){i=!0,n.splice(s,1);break}if(!i)return!1}return!0}var pg=255,qd=100,sb=t=>{var{r:e,g:n,b:r,a:i}=t,s=Math.max(e,n,r),a=s-Math.min(e,n,r),o=a?s===e?(n-r)/a:s===n?2+(r-e)/a:4+(e-n)/a:0;return{h:60*(o<0?o+6:o),s:s?a/s*qd:0,v:s/pg*qd,a:i}},ACe=t=>{var{h:e,s:n,l:r,a:i}=RCe(t);return"hsla("+e+", "+n+"%, "+r+"%, "+i+")"},RCe=t=>{var{h:e,s:n,v:r,a:i}=t,s=(200-n)*r/qd;return{h:e,s:s>0&&s<200?n*r/qd/(s<=qd?s:200-s)*qd:0,l:s/2,a:i}},NCe=t=>{var{r:e,g:n,b:r}=t,i=e<<16|n<<8|r;return"#"+(s=>new Array(7-s.length).join("0")+s)(i.toString(16))},ckt=t=>{var{r:e,g:n,b:r,a:i}=t,s=typeof i=="number"&&(i*255|256).toString(16).slice(1);return""+NCe({r:e,g:n,b:r})+(s||"")},e2=t=>sb(dkt(t)),dkt=t=>{var e=t.replace("#","");/^#?/.test(t)&&e.length===3&&(t="#"+e.charAt(0)+e.charAt(0)+e.charAt(1)+e.charAt(1)+e.charAt(2)+e.charAt(2));var n=new RegExp("[A-Za-z0-9]{2}","g"),[r,i,s=0,a]=t.match(n).map(o=>parseInt(o,16));return{r,g:i,b:s,a:(a??255)/pg}},KA=t=>{var{h:e,s:n,v:r,a:i}=t,s=e/60,a=n/qd,o=r/qd,l=Math.floor(s)%6,u=s-Math.floor(s),c=pg*o*(1-a),d=pg*o*(1-a*u),h=pg*o*(1-a*(1-u));o*=pg;var m={};switch(l){case 0:m.r=o,m.g=h,m.b=c;break;case 1:m.r=d,m.g=o,m.b=c;break;case 2:m.r=c,m.g=o,m.b=h;break;case 3:m.r=c,m.g=d,m.b=o;break;case 4:m.r=h,m.g=c,m.b=o;break;case 5:m.r=o,m.g=c,m.b=d;break}return m.r=Math.round(m.r),m.g=Math.round(m.g),m.b=Math.round(m.b),nt({},m,{a:i})},fkt=t=>{var{r:e,g:n,b:r,a:i}=KA(t);return"rgba("+e+", "+n+", "+r+", "+i+")"},hkt=t=>{var{r:e,g:n,b:r}=t;return{r:e,g:n,b:r}},pkt=t=>{var{h:e,s:n,l:r}=t;return{h:e,s:n,l:r}},l7=t=>NCe(KA(t)),mkt=t=>{var{h:e,s:n,v:r}=t;return{h:e,s:n,v:r}},gkt=t=>{var{r:e,g:n,b:r}=t,i=function(c){return c<=.04045?c/12.92:Math.pow((c+.055)/1.055,2.4)},s=i(e/255),a=i(n/255),o=i(r/255),l={};return l.x=s*.4124+a*.3576+o*.1805,l.y=s*.2126+a*.7152+o*.0722,l.bri=s*.0193+a*.1192+o*.9505,l},mg=t=>{var e,n,r,i,s,a,o,l,u;return typeof t=="string"&&u7(t)?(a=e2(t),l=t):typeof t!="string"&&(a=t),a&&(r=mkt(a),s=RCe(a),i=KA(a),u=ckt(i),l=l7(a),n=pkt(s),e=hkt(i),o=gkt(e)),{rgb
215:e,hsl:n,hsv:r,rgba:i,hsla:s,hsva:a,hex:l,hexa:u,xy:o}},u7=t=>/^#?([A-Fa-f0-9]{3,4}){1,2}$/.test(t);function rle(t){var e=C.useRef(t);return C.useEffect(()=>{e.current=t}),C.useCallback((n,r)=>e.current&&e.current(n,r),[])}var $b=t=>"touches"in t,ile=t=>{!$b(t)&&t.preventDefault&&t.preventDefault()},sle=function(e,n,r){return n===void 0&&(n=0),r===void 0&&(r=1),e>r?r:e<n?n:e},ale=(t,e)=>{var n=t.getBoundingClientRect(),r=$b(e)?e.touches[0]:e;return{left:sle((r.pageX-(n.left+window.pageXOffset))/n.width),top:sle((r.pageY-(n.top+window.pageYOffset))/n.height),width:n.width,height:n.height,x:r.pageX-(n.left+window.pageXOffset),y:r.pageY-(n.top+window.pageYOffset)}},ykt=["prefixCls","className","onMove","onDown"],mU=U.forwardRef((t,e)=>{var{prefixCls:n="w-color-interactive",className:r,onMove:i,onDown:s}=t,a=ra(t,ykt),o=C.useRef(null),l=C.useRef(!1),[u,c]=C.useState(!1),d=rle(i),h=rle(s),m=x=>l.current&&!$b(x)?!1:(l.current=$b(x),!0),g=C.useCallback(x=>{if(ile(x),!!o.current){var _=$b(x)?x.touches.length>0:x.buttons>0;if(!_){c(!1);return}d?.(ale(o.current,x),x)}},[d]),b=C.useCallback(()=>c(!1),[]),v=C.useCallback(x=>{x?(window.addEventListener(l.current?"touchmove":"mousemove",g),window.addEventListener(l.current?"touchend":"mouseup",b)):(window.removeEventListener("mousemove",g),window.removeEventListener("mouseup",b),window.removeEventListener("touchmove",g),window.removeEventListener("touchend",b))},[g,b]);C.useEffect(()=>(v(u),()=>{v(!1)}),[u,g,b,v]);var E=C.useCallback(x=>{var _=document.activeElement;_?.blur(),ile(x.nativeEvent),m(x.nativeEvent)&&o.current&&(h?.(ale(o.current,x.nativeEvent),x.nativeEvent),c(!0))},[h]);return j.jsx("div",nt({},a,{className:[n,r||""].filter(Boolean).join(" "),style:nt({},a.style,{touchAction:"none"}),ref:o,tabIndex:0,onMouseDown:E,onTouchStart:E}))});mU.displayName="Interactive";var bkt=t=>{var{className:e,color:n,left:r,top:i,prefixCls:s}=t,a={position:"absolute",top:i,left:r},o={"--saturation-pointer-box-shadow":"rgb(255 255 255) 0px 0px 0px 1.5px, rgb(0 0 0 / 30%) 0px 0px 1px 1px inset, rgb(0 0 0 / 40%) 0px 0px 1px 2px",width:6,height:6,transform:"translate(-3px, -3px)",boxShadow:"var(--saturation-pointer-box-shadow)",borderRadius:"50%",backgroundColor:n};return C.useMemo(()=>j.jsx("div",{className:s+"-pointer "+(e||""),style:a,children:j.jsx("div",{className:s+"-fill",style:o})}),[i,r,n,e,s])},vkt=["prefixCls","radius","pointer","className","hue","style","hsva","onChange"],OCe=U.forwardRef((t,e)=>{var n,{prefixCls:r="w-color-saturation",radius:i=0,pointer:s,className:a,hue:o=0,style:l,hsva:u,onChange:c}=t,d=ra(t,vkt),h=nt({width:200,height:200,borderRadius:i},l,{position:"relative"}),m=C.useRef(null),g=C.useCallback(_=>{m.current=_,typeof e=="function"?e(_):e&&"current"in e&&(e.current=_)},[e]),b=C.useCallback((_,S)=>{c&&u&&c({h:u.h,s:_.left*100,v:(1-_.top)*100,a:u.a});var A=m.current;A&&A.focus()},[u,c]),v=C.useCallback(_=>{if(!(!u||!c)){var S=1,A=u.s,R=u.v,T=!1;switch(_.key){case"ArrowLeft":A=Math.max(0,u.s-S),T=!0,_.preventDefault();break;case"ArrowRight":A=Math.min(100,u.s+S),T=!0,_.preventDefault();break;case"ArrowUp":R=Math.min(100,u.v+S),T=!0,_.preventDefault();break;case"ArrowDown":R=Math.max(0,u.v-S),T=!0,_.preventDefault();break;default:return}T&&c({h:u.h,s:A,v:R,a:u.a})}},[u,c]),E=C.useMemo(()=>{if(!u)return null;var _={top:100-u.v+"%",left:u.s+"%",color:ACe(u)};return s&&typeof s=="function"?s(nt({prefixCls:r},_)):j.jsx(bkt,nt({prefixCls:r},_))},[u,s,r]),x=C.useCallback(_=>{_.target.focus()},[]);return j.jsx(mU,nt({className:[r,a||""].filter(Boolean).join(" ")},d,{style:nt({position:"absolute",inset:0,cursor:"crosshair",backgroundImage:"linear-gradient(0deg, #000, transparent), linear-gradient(90deg, #fff, hsl("+((n=u?.h)!=null?n:o)+", 100%, 50%))"},h,{outline:"none"}),ref:g,onMove:b,onDown:b,onKeyDown:v,onClick:x,children:E}))});OCe.displayName="Saturation";var Ekt=["className","prefixCls","left","top","style","fillProps"],_kt=t=>{var{className:e,prefixCls:n,left:r,top:i,style:s,fillProps:a}=t,o=ra(t,Ekt),l=nt({},s,{position:"absolute",left:r,top:i}),u=nt({width:18,height:18,boxShadow:"var(--alpha-pointer-box-shadow)",borderRadius:"50%",backgroundColor:"var(--alpha-pointer-background-color)"},a?.style,{transform:r?"translate(-9px, -1px)":"translate(-1px, -9px)"});return j.jsx("div",nt({className:n+"-pointer "+(e||""),style:l},o,{children:j.jsx("div",nt({className:n+"-fill"},a,{style:u}))}))},xkt=["prefixCls","className","hsva","background","bgProps","innerProps","pointerProps","radius","width","height","direction","style","onChange","pointer"],wkt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAMUlEQVQ4T2NkYGAQYcAP3uCTZhw1gGGYhAGBZIA/nYDCgBDAm9BGDWAAJyRCgLaBCAAgXwixzAS0pgAAAABJRU5ErkJggg==",sT=U.forwardRef((t,e)=>{var{prefixCls:n="w-color-alpha",className:r,hsva:i,background:s,bgProps:a={},innerProps:o={},pointerProps:l={},radius:u=0,width:c,height:d=16,direction:h="horizontal",style:m,onChange:g,pointer:b}=t,v=ra(t,xkt),E=I=>{g&&g(nt({},i,{a:h==="horizontal"?I.left:I.top}),I)},x=ACe(Object.assign({},i,{a:1})),_="linear-gradient(to "+(h==="horizontal"?"right":"bottom")+", rgba(244, 67, 54, 0) 0%, "+x+" 100%)",S={};h==="horizontal"?S.left=i.a*100+"%":S.top=i.a*100+"%";var A=nt({"--alpha-background-color":"#fff","--alpha-pointer-background-color":"rgb(248, 248, 248)","--alpha-pointer-box-shadow":"rgb(0 0 0 / 37%) 0px 1px 4px 0px",borderRadius:u,background:"url("+wkt+") left center",backgroundColor:"var(--alpha-background-color)"},{width:c,height:d},m,{position:"relative"}),R=C.useCallback(I=>{var D=.01,P=i.a,B=P;switch(I.key){case"ArrowLeft":h==="horizontal"&&(B=Math.max(0,P-D),I.preventDefault());break;case"ArrowRight":h==="horizontal"&&(B=Math.min(1,P+D),I.preventDefault());break;case"ArrowUp":h==="vertical"&&(B=Math.max(0,P-D),I.preventDefault());break;case"ArrowDown":h==="vertical"&&(B=Math.min(1,P+D),I.preventDefault());break;default:return}if(B!==P){var L={left:h==="horizontal"?B:i.a,top:h==="vertical"?B:i.a,width:0,height:0,x:0,y:0};g&&g(nt({},i,{a:B}),L)}},[i,h,g]),T=C.useCallback(I=>
215{I.target.focus()},[]),O=b&&typeof b=="function"?b(nt({prefixCls:n},l,S)):j.jsx(_kt,nt({},l,{prefixCls:n},S));return j.jsxs("div",nt({},v,{className:[n,n+"-"+h,r||""].filter(Boolean).join(" "),style:A,ref:e,children:[j.jsx("div",nt({},a,{style:nt({inset:0,position:"absolute",background:s||_,borderRadius:u},a.style)})),j.jsx(mU,nt({},o,{style:nt({},o.style,{inset:0,zIndex:1,position:"absolute",outline:"none"}),onMove:E,onDown:E,onClick:T,onKeyDown:R,children:O}))]}))});sT.displayName="Alpha";var Skt=["prefixCls","placement","label","value","className","style","labelStyle","inputStyle","onChange","onBlur","renderInput"],Ckt=t=>/^#?([A-Fa-f0-9]{3,4}){1,2}$/.test(t),Tkt=t=>Number(String(t).replace(/%/g,"")),gg=U.forwardRef((t,e)=>{var{prefixCls:n="w-color-editable-input",placement:r="bottom",label:i,value:s,className:a,style:o,labelStyle:l,inputStyle:u,onChange:c,onBlur:d,renderInput:h}=t,m=ra(t,Skt),[g,b]=C.useState(s),v=C.useRef(!1);C.useEffect(()=>{t.value!==g&&(v.current||b(t.value))},[t.value]);function E(T,O){var I=(O||T.target.value).trim().replace(/^#/,"");Ckt(I)&&c&&c(T,I);var D=Tkt(I);isNaN(D)||c&&c(T,D),b(I)}function x(T){v.current=!1,b(t.value),d&&d(T)}var _={};r==="bottom"&&(_.flexDirection="column"),r==="top"&&(_.flexDirection="column-reverse"),r==="left"&&(_.flexDirection="row-reverse");var S=nt({"--editable-input-label-color":"rgb(153, 153, 153)","--editable-input-box-shadow":"rgb(204 204 204) 0px 0px 0px 1px inset","--editable-input-color":"#666",position:"relative",alignItems:"center",display:"flex",fontSize:11},_,o),A=nt({width:"100%",paddingTop:2,paddingBottom:2,paddingLeft:3,paddingRight:3,fontSize:11,background:"transparent",boxSizing:"border-box",border:"none",color:"var(--editable-input-color)",boxShadow:"var(--editable-input-box-shadow)"},u),R=nt({value:g,onChange:E,onBlur:x,autoComplete:"off",onFocus:()=>v.current=!0},m,{style:A,onFocusCapture:T=>{var O=T.target;O.setSelectionRange(O.value.length,O.value.length)}});return j.jsxs("div",{className:[n,a||""].filter(Boolean).join(" "),style:S,children:[h?h(R,e):j.jsx("input",nt({ref:e},R)),i&&j.jsx("span",{style:nt({color:"var(--editable-input-label-color)",textTransform:"capitalize"},l),children:i})]})});gg.displayName="EditableInput";var Akt=["prefixCls","hsva","placement","rProps","gProps","bProps","aProps","className","style","onChange"],kCe=U.forwardRef((t,e)=>{var{prefixCls:n="w-color-editable-input-rgba",hsva:r,placement:i="bottom",rProps:s={},gProps:a={},bProps:o={},aProps:l={},className:u,style:c,onChange:d}=t,h=ra(t,Akt),m=r?KA(r):{};function g(x){var _=Number(x.target.value);_&&_>255&&(x.target.value="255"),_&&_<0&&(x.target.value="0")}var b=x=>{var _=Number(x.target.value);_&&_>100&&(x.target.value="100"),_&&_<0&&(x.target.value="0")},v=(x,_,S)=>{typeof x=="number"&&(_==="a"&&(x<0&&(x=0),x>100&&(x=100),d&&d(mg(sb(nt({},m,{a:x/100}))))),x>255&&(x=255,S.target.value="255"),x<0&&(x=0,S.target.value="0"),_==="r"&&d&&d(mg(sb(nt({},m,{r:x})))),_==="g"&&d&&d(mg(sb(nt({},m,{g:x})))),_==="b"&&d&&d(mg(sb(nt({},m,{b:x})))))},E=m.a?Math.round(m.a*100)/100:0;return j.jsxs("div",nt({ref:e,className:[n,u||""].filter(Boolean).join(" ")},h,{style:nt({fontSize:11,display:"flex"},c),children:[j.jsx(gg,nt({label:"R",value:m.r||0,onBlur:g,placement:i,onChange:(x,_)=>v(_,"r",x)},s,{style:nt({},s.style)})),j.jsx(gg,nt({label:"G",value:m.g||0,onBlur:g,placement:i,onChange:(x,_)=>v(_,"g",x)},a,{style:nt({marginLeft:5},a.style)})),j.jsx(gg,nt({label:"B",value:m.b||0,onBlur:g,placement:i,onChange:(x,_)=>v(_,"b",x)},o,{style:nt({marginLeft:5},o.style)})),l&&j.jsx(gg,nt({label:"A",value:parseInt(String(E*100),10),onBlur:b,placement:i,onChange:(x,_)=>v(_,"a",x)},l,{style:nt({marginLeft:5},l.style)}))]}))});kCe.displayName="EditableInputRGBA";var Rkt=["prefixCls","className","hue","onChange","direction"],ICe=U.forwardRef((t,e)=>{var{prefixCls:n="w-color-hue",className:r,hue:i=0,onChange:s,direction:a="horizontal"}=t,o=ra(t,Rkt);return j.jsx(sT,nt({ref:e,className:n+" "+(r||"")},o,{direction:a,background:"linear-gradient(to "+(a==="horizontal"?"right":"bottom")+", rgb(255, 0, 0) 0%, rgb(255, 255, 0) 17%, rgb(0, 255, 0) 33%, rgb(0, 255, 255) 50%, rgb(0, 0, 255) 67%, rgb(255, 0, 255) 83%, rgb(255, 0, 0) 100%)",hsva:{h:i,s:100,v:100,a:i/360},onChange:(l,u)=>{s&&s({h:a==="horizontal"?360*u.left:360*u.top})}}))});ICe.displayName="Hue";var Nkt=["prefixCls","className","color","colors","style","rectProps","onChange","addonAfter","addonBefore","rectRender"],MCe=U.forwardRef((t,e)=>{var{prefixCls:n="w-color-swatch",className:r,color:i,colors:s=[],style:a,rectProps:o={}
215,onChange:l,addonAfter:u,addonBefore:c,rectRender:d}=t,h=ra(t,Nkt),m=nt({"--swatch-background-color":"rgb(144, 19, 254)",background:"var(--swatch-background-color)",height:15,width:15,marginRight:5,marginBottom:5,cursor:"pointer",position:"relative",outline:"none",borderRadius:2},o.style),g=(b,v)=>{l&&l(e2(b),mg(e2(b)),v)};return j.jsxs("div",nt({ref:e},h,{className:[n,r||""].filter(Boolean).join(" "),style:nt({display:"flex",flexWrap:"wrap",position:"relative"},a),children:[c&&U.isValidElement(c)&&c,s&&Array.isArray(s)&&s.map((b,v)=>{var E="",x="";typeof b=="string"&&(E=b,x=b),typeof b=="object"&&b.color&&(E=b.title||b.color,x=b.color);var _=i&&i.toLocaleLowerCase()===x.toLocaleLowerCase(),S=d&&d({title:E,color:x,checked:!!_,style:nt({},m,{background:x}),onClick:R=>g(x,R)});if(S)return j.jsx(C.Fragment,{children:S},v);var A=o.children&&U.isValidElement(o.children)?U.cloneElement(o.children,{color:x,checked:_}):null;return j.jsx("div",nt({tabIndex:0,title:E,onClick:R=>g(x,R)},o,{children:A,style:nt({},m,{background:x})}),v)}),u&&U.isValidElement(u)&&u]}))});MCe.displayName="Swatch";var Okt=["prefixCls","className","onChange","width","presetColors","color","editableDisable","disableAlpha","style"],kkt=["#D0021B","#F5A623","#f8e61b","#8B572A","#7ED321","#417505","#BD10E0","#9013FE","#4A90E2","#50E3C2","#B8E986","#000000","#4A4A4A","#9B9B9B","#FFFFFF"],ole=t=>j.jsx("div",{style:{boxShadow:"rgb(0 0 0 / 60%) 0px 0px 2px",width:4,top:1,bottom:1,left:t.left,borderRadius:1,position:"absolute",backgroundColor:"#fff"}}),Ikt=U.forwardRef((t,e)=>{var{prefixCls:n="w-color-sketch",className:r,onChange:i,width:s=218,presetColors:a=kkt,color:o,editableDisable:l=!0,disableAlpha:u=!1,style:c}=t,d=ra(t,Okt),[h,m]=C.useState({h:209,s:36,v:90,a:1});C.useEffect(()=>{typeof o=="string"&&u7(o)&&m(e2(o)),typeof o=="object"&&m(o)},[o]);var g=R=>{m(R),i&&i(mg(R))},b=(R,T)=>{typeof R=="string"&&u7(R)&&/(3|6)/.test(String(R.length))&&g(e2(R))},v=R=>g(nt({},h,{a:R.a})),E=R=>g(nt({},h,R,{a:h.a})),x=nt({"--sketch-background":"rgb(255, 255, 255)","--sketch-box-shadow":"rgb(0 0 0 / 15%) 0px 0px 0px 1px, rgb(0 0 0 / 15%) 0px 8px 16px","--sketch-swatch-box-shadow":"rgb(0 0 0 / 15%) 0px 0px 0px 1px inset","--sketch-alpha-box-shadow":"rgb(0 0 0 / 15%) 0px 0px 0px 1px inset, rgb(0 0 0 / 25%) 0px 0px 4px inset","--sketch-swatch-border-top":"1px solid rgb(238, 238, 238)",background:"var(--sketch-background)",borderRadius:4,boxShadow:"var(--sketch-box-shadow)",width:s},c),_={borderRadius:2,background:fkt(h),boxShadow:"var(--sketch-alpha-box-shadow)"},S={borderTop:"var(--sketch-swatch-border-top)",paddingTop:10,paddingLeft:10},A={marginRight:10,marginBottom:10,borderRadius:3,boxShadow:"var(--sketch-swatch-box-shadow)"};return j.jsxs("div",nt({},d,{className:n+" "+(r||""),ref:e,style:x,children:[j.jsxs("div",{style:{padding:"10px 10px 8px"},children:[j.jsx(OCe,{hsva:h,style:{width:"auto",height:150},onChange:E}),j.jsxs("div",{style:{display:"flex",marginTop:4},children:[j.jsxs("div",{style:{flex:1},children:[j.jsx(ICe,{width:"auto",height:10,hue:h.h,pointer:ole,innerProps:{style:{marginLeft:1,marginRight:5}},onChange:R=>g(nt({},h,R))}),!u&&j.jsx(sT,{width:"auto",height:10,hsva:h,pointer:ole,style:{marginTop:4},innerProps:{style:{marginLeft:1,marginRight:5}},onChange:v})]}),!u&&j.jsx(sT,{width:24,height:24,hsva:h,radius:2,style:{marginLeft:4},bgProps:{style:{background:"transparent"}},innerProps:{style:_},pointer:()=>j.jsx(C.Fragment,{})})]})]}),l&&j.jsxs("div",{style:{display:"flex",margin:"0 10px 3px 10px"},children:[j.jsx(gg,{label:"Hex",value:l7(h).replace(/^#/,"").toLocaleUpperCase(),onChange:(R,T)=>b(T),style:{minWidth:58}}),j.jsx(kCe,{hsva:h,style:{marginLeft:6},aProps:u?!1:{},onChange:R=>g(R.hsva)})]}),a&&a.length>0&&j.jsx(MCe,{style:S,colors:a,color:l7(h),onChange:R=>g(R),rectProps:{style:A}})]}))});Ikt.displayName="Sketch";export{J8t as $,s8t as A,yi as B,M9e as C,P9e as D,Ykt as E,q8t as F,G8t as G,Y8t as H,W8t as I,Jce as J,Jn as K,Hle as L,m8t as M,RWe as N,Bkt as O,k9e as P,r8t as Q,Dkt as R,h8t as S,D9e as T,V8t as U,j8t as V,U8t as W,z8t as X,aIt as Y,oIt as Z,Z8t as _,U as a,BIt as a$,tIt as a0,nIt as a1,iIt as a2,rIt as a3,eIt as a4,sIt as a5,X8t as a6,Q8t as a7,O9e as a8,vge as a9,_It as aA,wIt as aB,xIt as aC,TIt as aD,pIt as aE,fIt as aF,vIt as aG,RIt as aH,NIt as aI,OIt as aJ,AIt as aK,urt as aL,zy as aM,DIt as aN,fit as aO,IIt as aP,$It as aQ,q2 as aR,LIt as aS,MIt as aT,r1e as aU,hrt as aV,frt as aW,pst as aX,crt as aY,kIt as aZ,HIt as a_,mge as aa,gge as ab,yge as ac,bge as ad,Zkt as ae,c8t as af,hRe as ag,qkt as ah,Wge as ai,ma as aj,uIt as ak,Ukt as al,wnt as am,mnt as an,dIt as ao,o8t as ap,lIt as aq,Dtt as ar,hIt as as,mIt as at,SIt as au,CIt as av,gIt as aw,yIt as ax,bIt as ay,EIt as az,zkt as b,wxe as b$,UIt as b0,VIt as b1,qIt as b2,jIt as b3,zIt as b4,FIt as b5,Pkt as b6,Xot as b7,C5e as b8,Hb as b9,uMt as bA,cMt as bB,Pmt as bC,dMt as bD,nMt as bE,rMt as bF,sMt as bG,aMt as bH,imt as bI,kbe as bJ,iMt as bK,hMt as bL,fMt as bM,Hve as bN,Bve as bO,pMt as bP,ep as bQ,e8t as bR,yMt as bS,bMt as bT,gMt as bU,lE as bV,Ui as bW,ea as bX,t1 as bY,vo as bZ,ZB as b_,GIt as ba,Ct as bb,$kt as bc,Vlt as bd,Ult as be,jlt as bf,WIt as bg,Snt as bh,Klt as bi,Xlt as bj,rnt as bk,ZIt as bl,KIt as bm,YIt as bn,JIt as bo,QIt as bp,l8t as bq,PIt as br,eMt as bs,tMt as bt,Jkt as bu,ynt as bv,cIt as bw,Imt as bx,oMt as by,Dh as bz,L4e as c,Sxe as c0,_Mt as c1,TMt as c2,RMt as c3,CMt as c4,AMt as c5,NMt as c6,OMt as c7,wMt as c8,SMt as c9,Wkt as cA,Gkt as cB,xMt as ca,mMt as cb,Obe as cc,smt as cd,Lpt as ce,MMt as cf,tT as cg,kt as ch,ZC as ci,kMt as cj,IMt as ck,a8t as cl,t8t as cm,Att as cn,wtt as co,XIt as cp,ikt as cq,Fkt as cr,LMt as cs,Ikt as ct,nnt as cu,jkt as cv,Qkt as cw,Xkt as cx,Hkt as cy,Lkt as cz,i8t as d,g7 as e,gl as f,Va as g,I9e as h,Vkt as i,j,Bde as k,N9e as l,oS as m,f8t as n,b8t as o,v8t as p,u8t as q,C as r,GY as s,d8t as t,Kkt as u,g8t as v,gT as w,E8t as x,ks as y,_8t as z}; 216//# sourceMappingURL=vendor-deps1-ZMTR3TW3.js.map
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.