@@ -1,65 +1,67 @@
const _ _vite _ _mapDeps = ( i , m = _ _vite _ _mapDeps , d = ( m . f || ( m . f = [ "assets/index2.js" , "assets/common-types.js" , "assets/index3.js" ] ) ) ) => i . map ( i => d [ i ] ) ;
function j1 ( e , t ) { for ( var r = 0 ; r < t . length ; r ++ ) { const a = t [ r ] ; if ( typeof a != "string" && ! Array . isArray ( a ) ) { for ( const o in a ) if ( o !== "default" && ! ( o in e ) ) { const s = Object . getOwnPropertyDescriptor ( a , o ) ; s && Object . defineProperty ( e , o , s . get ? s : { enumerable : ! 0 , get : ( ) => a [ o ] } ) } } } return Object . freeze ( Object . defineProperty ( e , Symbol . toStringTag , { value : "Module" } ) ) } ( function ( ) { const t = document . createElement ( "link" ) . relList ; if ( t && t . supports && t . supports ( "modulepreload" ) ) return ; for ( const o of document . querySelectorAll ( 'link[rel="modulepreload"]' ) ) a ( o ) ; new MutationObserver ( o => { for ( const s of o ) if ( s . type === "childList" ) for ( const u of s . addedNodes ) u . tagName === "LINK" && u . rel === "modulepreload" && a ( u ) } ) . observe ( document , { childList : ! 0 , subtree : ! 0 } ) ; function r ( o ) { const s = { } ; return o . integrity && ( s . integrity = o . integrity ) , o . referrerPolicy && ( s . referrerPolicy = o . referrerPolicy ) , o . crossOrigin === "use-credentials" ? s . credentials = "include" : o . crossOrigin === "anonymous" ? s . credentials = "omit" : s . credentials = "same-origin" , s } function a ( o ) { if ( o . ep ) return ; o . ep = ! 0 ; const s = r ( o ) ; fetch ( o . href , s ) } } ) ( ) ; function Qu ( e ) { return e && e . _ _esModule && Object . prototype . hasOwnProperty . call ( e , "default" ) ? e . default : e } var of = { exports : { } } , al = { } ; var LT ; function U1 ( ) { if ( LT ) return al ; LT = 1 ; var e = Symbol . for ( "react.transitional.element" ) , t = Symbol . for ( "react.fragment" ) ; function r ( a , o , s ) { var u = null ; if ( s !== void 0 && ( u = "" + s ) , o . key !== void 0 && ( u = "" + o . key ) , "key" in o ) { s = { } ; for ( var d in o ) d !== "key" && ( s [ d ] = o [ d ] ) } else s = o ; return o = s . ref , { $$typeof : e , type : a , key : u , ref : o !== void 0 ? o : null , props : s } } return al . Fragment = t , al . jsx = r , al . jsxs = r , al } var DT ; function F1 ( ) { return DT || ( DT = 1 , of . exports = U1 ( ) ) , of . exports } var g = F1 ( ) , lf = { exports : { } } , Ne = { } ; var MT ; function B1 ( ) { if ( MT ) return Ne ; MT = 1 ; var e = Symbol . for ( "react.transitional.element" ) , t = Symbol . for ( "react.portal" ) , r = Symbol . for ( "react.fragment" ) , a = Symbol . for ( "react.strict_mode" ) , o = Symbol . for ( "react.profiler" ) , s = Symbol . for ( "react.consumer" ) , u = Symbol . for ( "react.context" ) , d = Symbol . for ( "react.forward_ref" ) , p = Symbol . for ( "react.suspense" ) , f = Symbol . for ( "react.memo" ) , h = Symbol . for ( "react.lazy" ) , b = Symbol . for ( "react.activity" ) , v = Symbol . iterator ; function E ( U ) { return U === null || typeof U != "object" ? null : ( U = v && U [ v ] || U [ "@@iterator" ] , typeof U == "function" ? U : null ) } var w = { isMounted : function ( ) { return ! 1 } , enqueueForceUpdate : function ( ) { } , enqueueReplaceState : function ( ) { } , enqueueSetState : function ( ) { } } , T = Object . assign , k = { } ; function A ( U , J , I ) { this . props = U , this . context = J , this . refs = k , this . updater = I || w } A . prototype . isReactComponent = { } , A . prototype . setState = function ( U , J ) { if ( typeof U != "object" && typeof U != "function" && U != 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 , U , J , "setState" ) } , A . prototype . forceUpdate = function ( U ) { this . updater . enqueueForceUpdate ( this , U , "forceUpdate" ) } ; function _ ( ) { } _ . prototype = A . prototype ; function R ( U , J , I ) { this . props = U , this . context = J , this . refs = k , this . updater = I || w } var L = R . prototype = new _ ; L . constructor = R , T ( L , A . prototype ) , L . isPureReactComponent = ! 0 ; var j = Array . isArray ; function D ( ) { } var z = { H : null , A : null , T : null , S : null } , F = Object . prototype . hasOwnProperty ; function V ( U , J , I ) { var ue = I . ref ; return { $$typeof : e , type : U , key : J , ref : ue !== void 0 ? ue : null , props : I } } function M ( U , J ) { return V ( U . type , J , U . props ) } function H ( U ) { return typeof U == "object" && U !== null && U . $$typeof === e } function K ( U ) { var J = { "=" : "=0" , ":" : "=2" } ; return "$" + U . replace ( /[=:]/g , function ( I ) { return J [ I ] } ) } var Z = /\/+/g ; function te ( U , J ) { return typeof U == "object" && U !== null && U . key != null ? K ( "" + U . key ) : J . toString ( 36 ) } function Q ( U ) { switch ( U . status ) { case "fulfilled" : return U . value ; case "rejected" : throw U . reason ; default : switch ( typeof U . status == "string" ? U . then ( D , D ) : ( U . status = "pending" , U . then ( function ( J ) { U . status === "pending" && ( U . status = "fulfilled" , U . value = J ) } , function ( J ) { U . status === "pending" && ( U . status = "rejected" , U . reason = J ) } ) ) , U . status ) { case "fulfilled" : return U . value ; case "rejected" : throw U . reason } } throw U } function P ( U , J , I , ue , fe ) { var de = typeof U ; ( de === "undefined" || de === "boolean" ) && ( U = null ) ; var le = ! 1 ; if ( U === null ) le = ! 0 ; else switch ( de ) { case "bigint" : case "string" : case "number" : le = ! 0 ; break ; case "object" : switch ( U . $$typeof ) { case e : case t : le = ! 0 ; break ; case h : return le = U . _init , P ( le ( U . _payload ) , J , I , ue , fe ) } } if ( le ) return fe = fe ( U ) , le = ue === "" ? "." + te ( U , 0 ) : ue , j ( fe ) ? ( I = "" , le != null && ( I = le . replace ( Z , "$&/" ) + "/" ) , P ( fe , J , I , "" , function ( Re ) { return Re } ) ) : fe != null && ( H ( fe ) && ( fe = M ( fe , I + ( fe . key == null || U && U . key === fe . key ? "" : ( "" + fe . key ) . replace ( Z , "$&/" ) + "/" ) + le ) ) , J . push ( fe ) ) , 1 ; le = 0 ; var we = ue === "" ? "." : ue + ":" ; if ( j ( U ) ) for ( var me = 0 ; me < U . length ; me ++ ) ue = U [ me ] , de = we + te ( ue , me ) , le += P ( ue , J , I , de , fe ) ; else if ( me = E ( U ) , typeof me == "function" ) for ( U = me . call ( U ) , me = 0 ; ! ( ue = U . next ( ) ) . done ; ) ue = ue . value , de = we + te ( ue , me ++ ) , le += P ( ue , J , I , de , fe ) ; else if ( de === "object" ) { if ( typeof U . then == "function" ) return P ( Q ( U ) , J , I , ue , fe ) ; throw J = String ( U ) , Error ( "Objects are not valid as a React child (found: " + ( J === "[object Object]" ? "object with keys {" + Object . keys ( U ) . join ( ", " ) + "}" : J ) + " ) . If you meant to render a collection of children , use an ar Line truncated
function xL ( e , t ) { for ( var r = 0 ; r < t . length ; r ++ ) { const a = t [ r ] ; if ( typeof a != "string" && ! Array . isArray ( a ) ) { for ( const o in a ) if ( o !== "default" && ! ( o in e ) ) { const s = Object . getOwnPropertyDescriptor ( a , o ) ; s && Object . defineProperty ( e , o , s . get ? s : { enumerable : ! 0 , get : ( ) => a [ o ] } ) } } } return Object . freeze ( Object . defineProperty ( e , Symbol . toStringTag , { value : "Module" } ) ) } ( function ( ) { const t = document . createElement ( "link" ) . relList ; if ( t && t . supports && t . supports ( "modulepreload" ) ) return ; for ( const o of document . querySelectorAll ( 'link[rel="modulepreload"]' ) ) a ( o ) ; new MutationObserver ( o => { for ( const s of o ) if ( s . type === "childList" ) for ( const u of s . addedNodes ) u . tagName === "LINK" && u . rel === "modulepreload" && a ( u ) } ) . observe ( document , { childList : ! 0 , subtree : ! 0 } ) ; function r ( o ) { const s = { } ; return o . integrity && ( s . integrity = o . integrity ) , o . referrerPolicy && ( s . referrerPolicy = o . referrerPolicy ) , o . crossOrigin === "use-credentials" ? s . credentials = "include" : o . crossOrigin === "anonymous" ? s . credentials = "omit" : s . credentials = "same-origin" , s } function a ( o ) { if ( o . ep ) return ; o . ep = ! 0 ; const s = r ( o ) ; fetch ( o . href , s ) } } ) ( ) ; function ic ( e ) { return e && e . _ _esModule && Object . prototype . hasOwnProperty . call ( e , "default" ) ? e . default : e } var gf = { exports : { } } , ul = { } ; var YT ; function wL ( ) { if ( YT ) return ul ; YT = 1 ; var e = Symbol . for ( "react.transitional.element" ) , t = Symbol . for ( "react.fragment" ) ; function r ( a , o , s ) { var u = null ; if ( s !== void 0 && ( u = "" + s ) , o . key !== void 0 && ( u = "" + o . key ) , "key" in o ) { s = { } ; for ( var c in o ) c !== "key" && ( s [ c ] = o [ c ] ) } else s = o ; return o = s . ref , { $$typeof : e , type : a , key : u , ref : o !== void 0 ? o : null , props : s } } return ul . Fragment = t , ul . jsx = r , ul . jsxs = r , ul } var WT ; function TL ( ) { return WT || ( WT = 1 , gf . exports = wL ( ) ) , gf . exports } var g = TL ( ) , mf = { exports : { } } , Re = { } ; var KT ; function AL ( ) { if ( KT ) return Re ; KT = 1 ; var e = Symbol . for ( "react.transitional.element" ) , t = Symbol . for ( "react.portal" ) , r = Symbol . for ( "react.fragment" ) , a = Symbol . for ( "react.strict_mode" ) , o = Symbol . for ( "react.profiler" ) , s = Symbol . for ( "react.consumer" ) , u = Symbol . for ( "react.context" ) , c = Symbol . for ( "react.forward_ref" ) , p = Symbol . for ( "react.suspense" ) , f = Symbol . for ( "react.memo" ) , m = Symbol . for ( "react.lazy" ) , h = Symbol . for ( "react.activity" ) , v = Symbol . iterator ; function E ( F ) { return F === null || typeof F != "object" ? null : ( F = v && F [ v ] || F [ "@@iterator" ] , typeof F == "function" ? F : null ) } var x = { isMounted : function ( ) { return ! 1 } , enqueueForceUpdate : function ( ) { } , enqueueReplaceState : function ( ) { } , enqueueSetState : function ( ) { } } , w = Object . assign , k = { } ; function A ( F , z , C ) { this . props = F , this . context = z , this . refs = k , this . updater = C || x } A . prototype . isReactComponent = { } , A . prototype . setState = function ( F , z ) { if ( typeof F != "object" && typeof F != "function" && F != 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 , F , z , "setState" ) } , A . prototype . forceUpdate = function ( F ) { this . updater . enqueueForceUpdate ( this , F , "forceUpdate" ) } ; function N ( ) { } N . prototype = A . prototype ; function _ ( F , z , C ) { this . props = F , this . context = z , this . refs = k , this . updater = C || x } var D = _ . prototype = new N ; D . constructor = _ , w ( D , A . prototype ) , D . isPureReactComponent = ! 0 ; var U = Array . isArray ; function L ( ) { } var j = { H : null , A : null , T : null , S : null } , P = Object . prototype . hasOwnProperty ; function Y ( F , z , C ) { var ie = C . ref ; return { $$typeof : e , type : F , key : z , ref : ie !== void 0 ? ie : null , props : C } } function M ( F , z ) { return Y ( F . type , z , F . props ) } function q ( F ) { return typeof F == "object" && F !== null && F . $$typeof === e } function K ( F ) { var z = { "=" : "=0" , ":" : "=2" } ; return "$" + F . replace ( /[=:]/g , function ( C ) { return z [ C ] } ) } var J = /\/+/g ; function Q ( F , z ) { return typeof F == "object" && F !== null && F . key != null ? K ( "" + F . key ) : z . toString ( 36 ) } function ee ( F ) { switch ( F . status ) { case "fulfilled" : return F . value ; case "rejected" : throw F . reason ; default : switch ( typeof F . status == "string" ? F . then ( L , L ) : ( F . status = "pending" , F . then ( function ( z ) { F . status === "pending" && ( F . status = "fulfilled" , F . value = z ) } , function ( z ) { F . status === "pending" && ( F . status = "rejected" , F . reason = z ) } ) ) , F . status ) { case "fulfilled" : return F . value ; case "rejected" : throw F . reason } } throw F } function B ( F , z , C , ie , re ) { var ce = typeof F ; ( ce === "undefined" || ce === "boolean" ) && ( F = null ) ; var se = ! 1 ; if ( F === null ) se = ! 0 ; else switch ( ce ) { case "bigint" : case "string" : case "number" : se = ! 0 ; break ; case "object" : switch ( F . $$typeof ) { case e : case t : se = ! 0 ; break ; case m : return se = F . _init , B ( se ( F . _payload ) , z , C , ie , re ) } } if ( se ) return re = re ( F ) , se = ie === "" ? "." + Q ( F , 0 ) : ie , U ( re ) ? ( C = "" , se != null && ( C = se . replace ( J , "$&/" ) + "/" ) , B ( re , z , C , "" , function ( ke ) { return ke } ) ) : re != null && ( q ( re ) && ( re = M ( re , C + ( re . key == null || F && F . key === re . key ? "" : ( "" + re . key ) . replace ( J , "$&/" ) + "/" ) + se ) ) , z . push ( re ) ) , 1 ; se = 0 ; var he = ie === "" ? "." : ie + ":" ; if ( U ( F ) ) for ( var ge = 0 ; ge < F . length ; ge ++ ) ie = F [ ge ] , ce = he + Q ( ie , ge ) , se += B ( ie , z , C , ce , re ) ; else if ( ge = E ( F ) , typeof ge == "function" ) for ( F = ge . call ( F ) , ge = 0 ; ! ( ie = F . next ( ) ) . done ; ) ie = ie . value , ce = he + Q ( ie , ge ++ ) , se += B ( ie , z , C , ce , re ) ; else if ( ce === "object" ) { if ( typeof F . then == "function" ) return B ( ee ( F ) , z , C , ie , re ) ; throw z = String ( F ) , Error ( "Objects are not valid as a React child (found: " + ( z === "[object Object]" ? "object with keys {" + Object . keys ( F ) . join ( ", " ) + "}" : z ) + " ) . If you meant to render a collection of children , use an arra Line truncated
at ` )?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return `
` +qe+n+dt}var q n=!1;function Y n(n,i){if(!n||q n)return"";q n=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var c ={DetermineComponentFrameRoot:function(){try{if(i){var o e=function(){throw Error()};if(Object.defineProperty(o e.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(o e,[])}catch(e e){var X=e e}Reflect.construct(n,[],o e)}else{try{o e.call()}catch(e e){X=e e}n.call(o e.prototype)}}else{try{throw Error()}catch(e e){X=e e}(o e=n())&&typeof o e.catch=="function"&&o e.catch(function(){})}}catch(e e){if(e e&&X &&typeof e e.stack=="string")return[e e.stack,X .stack]}return[null,null]}};c .DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var m =Object.getOwnPropertyDescriptor(c .DetermineComponentFrameRoot,"name");m &&m .configurable&&Object.defineProperty(c .DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var y=c .DetermineComponentFrameRoot(),x =y[0],N =y[1];if(x &&N ){var B=x .split( `
` ),Y=N .split( `
` );for(m=c=0;c<B .length&&!B[c ].includes("DetermineComponentFrameRoot");)c ++;for(;m<Y .length&&!Y[m ].includes("DetermineComponentFrameRoot");)m ++;if(c ===B .length||m ===Y .length)for(c=B .length-1,m=Y .length-1;1<=c &&0<=m &&B[c ]!==Y[m ];)m --;for(;1<=c &&0<=m;c --,m --)if(B[c ]!==Y[m ]){if(c !==1||m !==1)do if(c --,m --,0>m ||B[c ]!==Y[m ]){var r e= `
` +B[c ].replace(" at new "," at ");return n.displayName&&r e.includes("<anonymous>")&&(r e=r e.replace("<anonymous>",n.displayName)),r e}while(1<=c &&0<=m );break}}}finally{q n=!1,Error.prepareStackTrace=l}return(l=n?n.displayName||n.name:"")?st(l):""}function C r(n,i){switch(n.tag){case 26:case 27:case 5:return st(n.type);case 16:return st("Lazy");case 13:return n.child!==i&&i!==null?st("Suspense Fallback"):st("Suspense");case 19:return st("SuspenseList");case 0:case 15:return Y n(n.type,!1);case 11:return Y n(n.type.render,!1);case 1:return Y n(n.type,!0);case 31:return st("Activity");default:return""}}function q l(n){try{var i="",l=null;do i+=C r(n,l),l=n,n=n.return;while(n);return i}catch(c ){return `
Error generating stack : ` +c .message+ `
` +c.stack}}var Wa=Object.prototype.hasOwnProperty,Ka=e.unstable_scheduleCallback,po=e.unstable_cancelCallback,Hc=e.unstable_shouldYield,Vc=e.unstable_requestPaint,zt=e.unstable_now,qc=e.unstable_getCurrentPriorityLevel,ae=e.unstable_ImmediatePriority,pe=e.unstable_UserBlockingPriority,ke=e.unstable_NormalPriority,Me=e.unstable_LowPriority,We=e.unstable_IdlePriority,nn=e.log,or=e.unstable_setDisableYieldValue,Pt=null,vt=null;function Vt(n){if(typeof nn=="function"&&or(n),vt&&typeof vt.setStrictMode=="function")try{vt.setStrictMode(Pt,n)}catch{}}var tt=Math.clz32?Math.clz32:xO,Or=Math.log,In=Math.LN2;function xO(n){return n>>>=0,n===0?32:31-(Or(n)/In|0)|0}var Yl=256,Wl=262144,Kl=4194304;function ma(n){var i=n&42;if(i!==0)return i;switch(n&-n){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 n&261888;case 262144:case 524288:case 1048576:case 2097152:return n&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return n&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return n}}function Xl(n,i,l){var c=n.pendingLanes;if(c===0)return 0;var m=0,y=n.suspendedLanes,x=n.pingedLanes;n=n.warmLanes;var N=c&134217727;return N!==0?(c=N&~y,c!==0?m=ma(c):(x&=N,x!==0?m=ma(x):l||(l=N&~n,l!==0&&(m=ma(l))))):(N=c&~y,N!==0?m=ma(N):x!==0?m=ma(x):l||(l=c&~n,l!==0&&(m=ma(l)))),m===0?0:i!==0&&i!==m&&(i&y)===0&&(y=m&-m,l=i&-i,y>=l||y===32&&(l&4194048)!==0)?i:m}function fo(n,i){return(n.pendingLanes&~(n.suspendedLanes&~n.pingedLanes)&i)===0}function wO(n,i){switch(n){case 1:case 2:case 4:case 8:case 64:return i+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 i+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 Uv(){var n=Kl;return Kl<<=1,(Kl&62914560)===0&&(Kl=4194304),n}function Yc(n){for(var i=[],l=0;31>l;l++)i.push(n);return i}function go(n,i){n.pendingLanes|=i,i!==268435456&&(n.suspendedLanes=0,n.pingedLanes=0,n.warmLanes=0)}function TO(n,i,l,c,m,y){var x=n.pendingLanes;n.pendingLanes=l,n.suspendedLanes=0,n.pingedLanes=0,n.warmLanes=0,n.expiredLanes&=l,n.entangledLanes&=l,n.errorRecoveryDisabledLanes&=l,n.shellSuspendCounter=0;var N=n.entanglements,B=n.expirationTimes,Y=n.hiddenUpdates;for(l=x&~l;0<l;){var re=31-tt(l),oe=1<<re;N[re]=0,B[re]=-1;var X=Y[re];if(X!==null)for(Y[re]=null,re=0;re<X.length;re++){var ee=X[re];ee!==null&&(ee.lane&=-536870913)}l&=~oe}c!==0&&Fv(n,c,0),y!==0&&m===0&&n.tag!==0&&(n.suspendedLanes|=y&~(x&~i))}function Fv(n,i,l){n.pendingLanes|=i,n.suspendedLanes&=~i;var c=31-tt(i);n.entangledLanes|=i,n.entanglements[c]=n.entanglements[c]|1073741824|l&261930}function Bv(n,i){var l=n.entangledLanes|=i;for(n=n.entanglements;l;){var c=31-tt(l),m=1<<c;m&i|n[c]&i&&(n[c]|=i),l&=~m}}function zv(n,i){var l=i&-i;return l=(l&42)!==0?1:Wc(l),(l&(n.suspendedLanes|i))!==0?0:l}function Wc(n){switch(n){case 2:n=1;break;case 8:n=4;break;case 32:n=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:n=128;break;case 268435456:n=134217728;break;default:n=0}return n}function Kc(n){return n&=-n,2<n?8<n?(n&134217727)!==0?32:268435456:8:2}function Pv(){var n=W.p;return n!==0?n:(n=window.event,n===void 0?32:kT(n.type))}function $ v(n,i){var l=W.p;try{return W.p=n,i()}finally{W.p=l}}var Ir=Math.random().toString(36).slice(2),kt="__reactFiber $ "+Ir,qt="__reactProps $ "+Ir,Xa="__reactContainer $ "+Ir,Xc="__reactEvents $ "+Ir,AO="__reactListeners $ "+Ir,kO="__reactHandles $ "+Ir,Gv="__reactResources $ "+Ir,mo="__reactMarker $ "+Ir;function Zc(n){delete n[kt],delete n[qt],delete n[Xc],delete n[AO],delete n[kO]}function Za(n){var i=n[kt];if(i)return i;for(var l=n.parentNode;l;){if(i=l[Xa]||l[kt]){if(l=i.alternate,i.child!==null||l!==null&&l.child!==null)for(n=cT(n);n!==null;){if(l=n[kt])return l;n=cT(n)}return i}n=l,l=n.parentNode}return null}function Qa(n){if(n=n[kt]||n[Xa]){var i=n.tag;if(i===5||i===6||i===13||i===31||i===26||i===27||i===3)return n}return null}function ho(n){var i=n.tag;if(i===5||i===26||i===27||i===6)return n.stateNode;throw Error(a(33))}function Ja(n){var i=n[Gv];return i||(i=n[Gv]={hoistableStyles:new Map,hoistableScripts:new Map}),i}function wt(n){n[mo]=!0}var Hv=new Set,Vv={};function ha(n,i){ei(n,i),ei(n+"Capture",i)}function ei(n,i){for(Vv[n]=i,n=0;n<i.length;n++)Hv.add(i[n])}var _O=RegExp("^[:A-Z_a-z \\ u00C0- \\ u00D6 \\ u00D8- \\ u00F6 \\ u00F8- \\ u02FF \\ u0370- \\ u037D \\ u037F- \\ u1FFF \\ u200C- \\ u20
Line truncated
` ).replace(a1,"")}function eT(n,i){return i=Jw(i),Jw(n)===i}function Je(n,i,l,c,m,y){switch(l){case"children":typeof c=="string"?i==="body"||i==="textarea"&&c===""||ni(n,c):(typeof c=="number"||typeof c=="bigint")&&i!=="body"&&ni(n,""+c);break;case"className":Ql(n,"class",c);break;case"tabIndex":Ql(n,"tabindex",c);break;case"dir":case"role":case"viewBox":case"width":case"height":Ql(n,l,c);break;case"style":eS(n,c,y);break;case"data":if(i!=="object"){Ql(n,"data",c);break}case"src":case"href":if(c===""&&(i!=="a"||l!=="href")){n.removeAttribute(l);break}if(c==null||typeof c=="function"||typeof c=="symbol"||typeof c=="boolean"){n.removeAttribute(l);break}c=es(""+c),n.setAttribute(l,c);break;case"action":case"formAction":if(typeof c=="function"){n.setAttribute(l,"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 y=="function"&&(l==="formAction"?(i!=="input"&&Je(n,i,"name",m.name,m,null),Je(n,i,"formEncType",m.formEncType,m,null),Je(n,i,"formMethod",m.formMethod,m,null),Je(n,i,"formTarget",m.formTarget,m,null)):(Je(n,i,"encType",m.encType,m,null),Je(n,i,"method",m.method,m,null),Je(n,i,"target",m.target,m,null)));if(c==null||typeof c=="symbol"||typeof c=="boolean"){n.removeAttribute(l);break}c=es(""+c),n.setAttribute(l,c);break;case"onClick":c!=null&&(n.onclick=sr);break;case"onScroll":c!=null&&Ue("scroll",n);break;case"onScrollEnd":c!=null&&Ue("scrollend",n);break;case"dangerouslySetInnerHTML":if(c!=null){if(typeof c!="object"||!("__html"in c))throw Error(a(61));if(l=c.__html,l!=null){if(m.children!=null)throw Error(a(60));n.innerHTML=l}}break;case"multiple":n.multiple=c&&typeof c!="function"&&typeof c!="symbol";break;case"muted":n.muted=c&&typeof c!="function"&&typeof c!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(c==null||typeof c=="function"||typeof c=="boolean"||typeof c=="symbol"){n.removeAttribute("xlink:href");break}l=es(""+c),n.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",l);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":c!=null&&typeof c!="function"&&typeof c!="symbol"?n.setAttribute(l,""+c):n.removeAttribute(l);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":c&&typeof c!="function"&&typeof c!="symbol"?n.setAttribute(l,""):n.removeAttribute(l);break;case"capture":case"download":c===!0?n.setAttribute(l,""):c!==!1&&c!=null&&typeof c!="function"&&typeof c!="symbol"?n.setAttribute(l,c):n.removeAttribute(l);break;case"cols":case"rows":case"size":case"span":c!=null&&typeof c!="function"&&typeof c!="symbol"&&!isNaN(c)&&1<=c?n.setAttribute(l,c):n.removeAttribute(l);break;case"rowSpan":case"start":c==null||typeof c=="function"||typeof c=="symbol"||isNaN(c)?n.removeAttribute(l):n.setAttribute(l,c);break;case"popover":Ue("beforetoggle",n),Ue("toggle",n),Zl(n,"popover",c);break;case"xlinkActuate":lr(n,"http://www.w3.org/1999/xlink","xlink:actuate",c);break;case"xlinkArcrole":lr(n,"http://www.w3.org/1999/xlink","xlink:arcrole",c);break;case"xlinkRole":lr(n,"http://www.w3.org/1999/xlink","xlink:role",c);break;case"xlinkShow":lr(n,"http://www.w3.org/1999/xlink","xlink:show",c);break;case"xlinkTitle":lr(n,"http://www.w3.org/1999/xlink","xlink:title",c);break;case"xlinkType":lr(n,"http://www.w3.org/1999/xlink","xlink:type",c);break;case"xmlBase":lr(n,"http://www.w3.org/XML/1998/namespace","xml:base",c);break;case"xmlLang":lr(n,"http://www.w3.org/XML/1998/namespace","xml:lang",c);break;case"xmlSpace":lr(n,"http://www.w3.org/XML/1998/namespace","xml:space",c);break;case"is":Zl(n,"is",c);break;case"innerText":case"textContent":break;default:(!(2<l.length)||l[0]!=="o"&&l[0]!=="O"||l[1]!=="n"&&l[1]!=="N")&&(l=IO.get(l)||l,Zl(n,l,c))}}function Pp(n,i,l,c,m,y){switch(l){case"style":eS(n,c,y);break;case"dangerouslySetInnerHTML":if(c!=null){if(typeof c!="object"||!("__html"in c))throw Error(a(61));if(l=c.__html,l!=null){if(m.children!=null)throw Error(a(60));n.innerHTML=l}}break;case"children":typeof c=="string"?ni(n,c):(typeof c=="number"||typeof c=="bigint")&&ni(n,""+c);break;case"onScroll":c!=null&&Ue("scroll",n);break;case"onScrollEnd":c!=null&&Ue("scrollend",n);break;case"onClick":c!=null&&(n.onclick=sr);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"inne
Line truncated
` ,f="/",h="*",b="",v="comment",E="declaration";function w(k,A){if(typeof k!="string")throw new TypeError("First argument must be a string");if(!k)return[];A=A||{};var _=1,R=1;function L(te){var Q=te.match(t);Q&&(_+=Q.length);var P=te.lastIndexOf(p);R=~P?te.length-P:R+te.length}function j(){var te={line:_,column:R};return function(Q){return Q.position=new D(te),V(),Q}}function D(te){this.start=te,this.end={line:_,column:R},this.source=A.source}D.prototype.content=k;function z(te){var Q=new Error(A.source+":"+_+":"+R+": "+te);if(Q.reason=te,Q.filename=A.source,Q.line=_,Q.column=R,Q.source=k,!A.silent)throw Q}function F(te){var Q=te.exec(k);if(Q){var P=Q[0];return L(P),k=k.slice(P.length),Q}}function V(){F(r)}function M(te){var Q;for(te=te||[];Q=H();)Q!==!1&&te.push(Q);return te}function H(){var te=j();if(!(f!=k.charAt(0)||h!=k.charAt(1))){for(var Q=2;b!=k.charAt(Q)&&(h!=k.charAt(Q)||f!=k.charAt(Q+1));)++Q;if(Q+=2,b===k.charAt(Q-1))return z("End of comment missing");var P=k.slice(2,Q-2);return R+=2,L(P),k=k.slice(Q),R+=2,te({type:v,comment:P})}}function K(){var te=j(),Q=F(a);if(Q){if(H(),!F(o))return z("property missing ':'");var P=F(s),W=te({type:E,property:T(Q[0].replace(e,b)),value:P?T(P[0].replace(e,b)):b});return F(u),W}}function Z(){var te=[];M(te);for(var Q;Q=K();)Q!==!1&&(te.push(Q),M(te));return te}return V(),Z()}function T(k){return k?k.replace(d,b):b}return mf=w,mf}var iA;function VD(){if(iA)return Di;iA=1;var e=Di&&Di.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(Di,"__esModule",{value:!0}),Di.default=r;const t=e(HD());function r(a,o){let s=null;if(!a||typeof a!="string")return s;const u=(0,t.default)(a),d=typeof o=="function";return u.forEach(p=>{if(p.type!=="declaration")return;const{property:f,value:h}=p;d?o(f,h,p):h&&(s=s||{},s[f]=h)}),s}return Di}var ll={},oA;function qD(){if(oA)return ll;oA=1,Object.defineProperty(ll,"__esModule",{value:!0}),ll.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+ $ /,t=/-([a-z])/g,r=/^[^-]+ $ /,a=/^-(webkit|moz|ms|o|khtml)-/,o=/^-(ms)-/,s=function(f){return!f||r.test(f)||e.test(f)},u=function(f,h){return h.toUpperCase()},d=function(f,h){return"".concat(h,"-")},p=function(f,h){return h===void 0&&(h={}),s(f)?f:(f=f.toLowerCase(),h.reactCompat?f=f.replace(o,d):f=f.replace(a,d),f.replace(t,u))};return ll.camelCase=p,ll}var sl,lA;function YD(){if(lA)return sl;lA=1;var e=sl&&sl.__importDefault||function(o){return o&&o.__esModule?o:{default:o}},t=e(VD()),r=qD();function a(o,s){var u={};return!o||typeof o!="string"||(0,t.default)(o,function(d,p){d&&p&&(u[(0,r.camelCase)(d,s)]=p)}),u}return a.default=a,sl=a,sl}var WD=YD();const KD=Qu(WD),M_=j_("end"),jg=j_("start");function j_(e){return t;function t(r){const a=r&&r.position&&r.position[e]||{};if(typeof a.line=="number"&&a.line>0&&typeof a.column=="number"&&a.column>0)return{line:a.line,column:a.column,offset:typeof a.offset=="number"&&a.offset>-1?a.offset:void 0}}}function XD(e){const t=jg(e),r=M_(e);if(t&&r)return{start:t,end:r}}function gl(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?sA(e.position):"start"in e||"end"in e?sA(e):"line"in e||"column"in e?Kf(e):""}function Kf(e){return uA(e&&e.line)+":"+uA(e&&e.column)}function sA(e){return Kf(e&&e.start)+"-"+Kf(e&&e.end)}function uA(e){return e&&typeof e=="number"?e:1}class Ut extends Error{constructor(t,r,a){super(),typeof r=="string"&&(a=r,r=void 0);let o="",s={},u=!1;if(r&&("line"in r&&"column"in r?s={place:r}:"start"in r&&"end"in r?s={place:r}:"type"in r?s={ancestors:[r],place:r.position}:s={...r}),typeof t=="string"?o=t:!s.cause&&t&&(u=!0,o=t.message,s.cause=t),!s.ruleId&&!s.source&&typeof a=="string"){const p=a.indexOf(":");p===-1?s.ruleId=a:(s.source=a.slice(0,p),s.ruleId=a.slice(p+1))}if(!s.place&&s.ancestors&&s.ancestors){const p=s.ancestors[s.ancestors.length-1];p&&(s.place=p.position)}const d=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=d?d.column:void 0,this.fatal=void 0,this.file="",this.message=o,this.line=d?d.line:void 0,this.name=gl(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=u&&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}}Ut.prototype.file="";Ut.prototype.name="";Ut.prototype.reason="";Ut.prototype.message="";Ut.prototype.stack="";Ut.prototype.column=void 0;Ut.prototype.line=void 0;Ut.prototype.ancestors=void 0;Ut.prototype.cause=void 0;Ut.prototype.fatal=void 0;Ut.prototype.place=void 0;Ut.prototype.ruleId=void 0;Ut.prototype.source=void 0;const Ug={}.hasOwnProperty,ZD=new Map,QD=/[A-Z]/g,JD=new Set(["table","tbody","thead","tfoot","tr"]),eM=new Set(["td","th"]),U_="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function tM(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected ` Fragment ` in options");const r=t.filePath||void 0;let a;if(
Line truncated
` +qe+n+dt}var Y n=!1;function W n(n,i){if(!n||Y n)return"";Y n=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var d ={DetermineComponentFrameRoot:function(){try{if(i){var u e=function(){throw Error()};if(Object.defineProperty(u e.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(u e,[])}catch(t e){var Z=t e}Reflect.construct(n,[],u e)}else{try{u e.call()}catch(t e){Z=t e}n.call(u e.prototype)}}else{try{throw Error()}catch(t e){Z=t e}(u e=n())&&typeof u e.catch=="function"&&u e.catch(function(){})}}catch(t e){if(t e&&Z &&typeof t e.stack=="string")return[t e.stack,Z .stack]}return[null,null]}};d .DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var b =Object.getOwnPropertyDescriptor(d .DetermineComponentFrameRoot,"name");b &&b .configurable&&Object.defineProperty(d .DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var y=d .DetermineComponentFrameRoot(),T =y[0],R =y[1];if(T &&R ){var $ =T .split(`
` ),X=R .split( `
` );for(b=d=0;d< $ .length&&! $ [d ].includes("DetermineComponentFrameRoot");)d ++;for(;b<X .length&&!X[b ].includes("DetermineComponentFrameRoot");)b ++;if(d ===$ .length||b ===X .length)for(d= $ .length-1,b=X .length-1;1<=d &&0<=b && $ [d ]!==X[b ];)b --;for(;1<=d &&0<=b;d --,b --)if($ [d ]!==X[b ]){if(d !==1||b !==1)do if(d --,b --,0>b ||$ [d ]!==X[b ]){var a e=`
` + $ [d ].replace(" at new "," at ");return n.displayName&&a e.includes("<anonymous>")&&(a e=a e.replace("<anonymous>",n.displayName)),a e}while(1<=d &&0<=b );break}}}finally{Y n=!1,Error.prepareStackTrace=l}return(l=n?n.displayName||n.name:"")?st(l):""}function I r(n,i){switch(n.tag){case 26:case 27:case 5:return st(n.type);case 16:return st("Lazy");case 13:return n.child!==i&&i!==null?st("Suspense Fallback"):st("Suspense");case 19:return st("SuspenseList");case 0:case 15:return W n(n.type,!1);case 11:return W n(n.type.render,!1);case 1:return W n(n.type,!0);case 31:return st("Activity");default:return""}}function J l(n){try{var i="",l=null;do i+=I r(n,l),l=n,n=n.return;while(n);return i}catch(d ){return`
Error generating stack : ` +d .message+ `
` +d.stack}}var Xa=Object.prototype.hasOwnProperty,Za=e.unstable_scheduleCallback,bo=e.unstable_cancelCallback,Qc=e.unstable_shouldYield,Jc=e.unstable_requestPaint,Pt=e.unstable_now,ed=e.unstable_getCurrentPriorityLevel,oe=e.unstable_ImmediatePriority,fe=e.unstable_UserBlockingPriority,_e=e.unstable_NormalPriority,Me=e.unstable_LowPriority,We=e.unstable_IdlePriority,rn=e.log,lr=e.unstable_setDisableYieldValue, $ t=null,Et=null;function qt(n){if(typeof rn=="function"&&lr(n),Et&&typeof Et.setStrictMode=="function")try{Et.setStrictMode( $ t,n)}catch{}}var tt=Math.clz32?Math.clz32:sO,Or=Math.log,Ln=Math.LN2;function sO(n){return n>>>=0,n===0?32:31-(Or(n)/Ln|0)|0}var es=256,ts=262144,ns=4194304;function ba(n){var i=n&42;if(i!==0)return i;switch(n&-n){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 n&261888;case 262144:case 524288:case 1048576:case 2097152:return n&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return n&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return n}}function rs(n,i,l){var d=n.pendingLanes;if(d===0)return 0;var b=0,y=n.suspendedLanes,T=n.pingedLanes;n=n.warmLanes;var R=d&134217727;return R!==0?(d=R&~y,d!==0?b=ba(d):(T&=R,T!==0?b=ba(T):l||(l=R&~n,l!==0&&(b=ba(l))))):(R=d&~y,R!==0?b=ba(R):T!==0?b=ba(T):l||(l=d&~n,l!==0&&(b=ba(l)))),b===0?0:i!==0&&i!==b&&(i&y)===0&&(y=b&-b,l=i&-i,y>=l||y===32&&(l&4194048)!==0)?i:b}function yo(n,i){return(n.pendingLanes&~(n.suspendedLanes&~n.pingedLanes)&i)===0}function uO(n,i){switch(n){case 1:case 2:case 4:case 8:case 64:return i+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 i+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 ZE(){var n=ns;return ns<<=1,(ns&62914560)===0&&(ns=4194304),n}function td(n){for(var i=[],l=0;31>l;l++)i.push(n);return i}function vo(n,i){n.pendingLanes|=i,i!==268435456&&(n.suspendedLanes=0,n.pingedLanes=0,n.warmLanes=0)}function cO(n,i,l,d,b,y){var T=n.pendingLanes;n.pendingLanes=l,n.suspendedLanes=0,n.pingedLanes=0,n.warmLanes=0,n.expiredLanes&=l,n.entangledLanes&=l,n.errorRecoveryDisabledLanes&=l,n.shellSuspendCounter=0;var R=n.entanglements, $ =n.expirationTimes,X=n.hiddenUpdates;for(l=T&~l;0<l;){var ae=31-tt(l),ue=1<<ae;R[ae]=0, $ [ae]=-1;var Z=X[ae];if(Z!==null)for(X[ae]=null,ae=0;ae<Z.length;ae++){var te=Z[ae];te!==null&&(te.lane&=-536870913)}l&=~ue}d!==0&&QE(n,d,0),y!==0&&b===0&&n.tag!==0&&(n.suspendedLanes|=y&~(T&~i))}function QE(n,i,l){n.pendingLanes|=i,n.suspendedLanes&=~i;var d=31-tt(i);n.entangledLanes|=i,n.entanglements[d]=n.entanglements[d]|1073741824|l&261930}function JE(n,i){var l=n.entangledLanes|=i;for(n=n.entanglements;l;){var d=31-tt(l),b=1<<d;b&i|n[d]&i&&(n[d]|=i),l&=~b}}function eS(n,i){var l=i&-i;return l=(l&42)!==0?1:nd(l),(l&(n.suspendedLanes|i))!==0?0:l}function nd(n){switch(n){case 2:n=1;break;case 8:n=4;break;case 32:n=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:n=128;break;case 268435456:n=134217728;break;default:n=0}return n}function rd(n){return n&=-n,2<n?8<n?(n&134217727)!==0?32:268435456:8:2}function tS(){var n=V.p;return n!==0?n:(n=window.event,n===void 0?32:zT(n.type))}function nS(n,i){var l=V.p;try{return V.p=n,i()}finally{V.p=l}}var Lr=Math.random().toString(36).slice(2),_t="__reactFiber $ "+Lr,Yt="__reactProps $ "+Lr,Qa="__reactContainer $ "+Lr,ad="__reactEvents $ "+Lr,dO="__reactListeners $ "+Lr,pO="__reactHandles $ "+Lr,rS="__reactResources $ "+Lr,Eo="__reactMarker $ "+Lr;function id(n){delete n[_t],delete n[Yt],delete n[ad],delete n[dO],delete n[pO]}function Ja(n){var i=n[_t];if(i)return i;for(var l=n.parentNode;l;){if(i=l[Qa]||l[_t]){if(l=i.alternate,i.child!==null||l!==null&&l.child!==null)for(n=TT(n);n!==null;){if(l=n[_t])return l;n=TT(n)}return i}n=l,l=n.parentNode}return null}function ei(n){if(n=n[_t]||n[Qa]){var i=n.tag;if(i===5||i===6||i===13||i===31||i===26||i===27||i===3)return n}return null}function So(n){var i=n.tag;if(i===5||i===26||i===27||i===6)return n.stateNode;throw Error(a(33))}function ti(n){var i=n[rS];return i||(i=n[rS]={hoistableStyles:new Map,hoistableScripts:new Map}),i}function wt(n){n[Eo]=!0}var aS=new Set,iS={};function ya(n,i){ni(n,i),ni(n+"Capture",i)}function ni(n,i){for(iS[n]=i,n=0;n<i.length;n++)aS.add(i[n])}var fO=RegExp("^[:A-Z_a-z \\ u00C0- \\ u00D6 \\ u00D8- \\ u00F6 \\ u00F8- \\ u02FF \\ u0370- \\ u037D \\ u037F- \\ u1FFF \\ u200C- \\ u20
Line truncated
` ).replace(H1,"")}function gT(n,i){return i=fT(i),fT(n)===i}function Je(n,i,l,d,b,y){switch(l){case"children":typeof d=="string"?i==="body"||i==="textarea"&&d===""||ai(n,d):(typeof d=="number"||typeof d=="bigint")&&i!=="body"&&ai(n,""+d);break;case"className":is(n,"class",d);break;case"tabIndex":is(n,"tabindex",d);break;case"dir":case"role":case"viewBox":case"width":case"height":is(n,l,d);break;case"style":gS(n,d,y);break;case"data":if(i!=="object"){is(n,"data",d);break}case"src":case"href":if(d===""&&(i!=="a"||l!=="href")){n.removeAttribute(l);break}if(d==null||typeof d=="function"||typeof d=="symbol"||typeof d=="boolean"){n.removeAttribute(l);break}d=ls(""+d),n.setAttribute(l,d);break;case"action":case"formAction":if(typeof d=="function"){n.setAttribute(l,"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 y=="function"&&(l==="formAction"?(i!=="input"&&Je(n,i,"name",b.name,b,null),Je(n,i,"formEncType",b.formEncType,b,null),Je(n,i,"formMethod",b.formMethod,b,null),Je(n,i,"formTarget",b.formTarget,b,null)):(Je(n,i,"encType",b.encType,b,null),Je(n,i,"method",b.method,b,null),Je(n,i,"target",b.target,b,null)));if(d==null||typeof d=="symbol"||typeof d=="boolean"){n.removeAttribute(l);break}d=ls(""+d),n.setAttribute(l,d);break;case"onClick":d!=null&&(n.onclick=ur);break;case"onScroll":d!=null&&Ue("scroll",n);break;case"onScrollEnd":d!=null&&Ue("scrollend",n);break;case"dangerouslySetInnerHTML":if(d!=null){if(typeof d!="object"||!("__html"in d))throw Error(a(61));if(l=d.__html,l!=null){if(b.children!=null)throw Error(a(60));n.innerHTML=l}}break;case"multiple":n.multiple=d&&typeof d!="function"&&typeof d!="symbol";break;case"muted":n.muted=d&&typeof d!="function"&&typeof d!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(d==null||typeof d=="function"||typeof d=="boolean"||typeof d=="symbol"){n.removeAttribute("xlink:href");break}l=ls(""+d),n.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",l);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":d!=null&&typeof d!="function"&&typeof d!="symbol"?n.setAttribute(l,""+d):n.removeAttribute(l);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":d&&typeof d!="function"&&typeof d!="symbol"?n.setAttribute(l,""):n.removeAttribute(l);break;case"capture":case"download":d===!0?n.setAttribute(l,""):d!==!1&&d!=null&&typeof d!="function"&&typeof d!="symbol"?n.setAttribute(l,d):n.removeAttribute(l);break;case"cols":case"rows":case"size":case"span":d!=null&&typeof d!="function"&&typeof d!="symbol"&&!isNaN(d)&&1<=d?n.setAttribute(l,d):n.removeAttribute(l);break;case"rowSpan":case"start":d==null||typeof d=="function"||typeof d=="symbol"||isNaN(d)?n.removeAttribute(l):n.setAttribute(l,d);break;case"popover":Ue("beforetoggle",n),Ue("toggle",n),as(n,"popover",d);break;case"xlinkActuate":sr(n,"http://www.w3.org/1999/xlink","xlink:actuate",d);break;case"xlinkArcrole":sr(n,"http://www.w3.org/1999/xlink","xlink:arcrole",d);break;case"xlinkRole":sr(n,"http://www.w3.org/1999/xlink","xlink:role",d);break;case"xlinkShow":sr(n,"http://www.w3.org/1999/xlink","xlink:show",d);break;case"xlinkTitle":sr(n,"http://www.w3.org/1999/xlink","xlink:title",d);break;case"xlinkType":sr(n,"http://www.w3.org/1999/xlink","xlink:type",d);break;case"xmlBase":sr(n,"http://www.w3.org/XML/1998/namespace","xml:base",d);break;case"xmlLang":sr(n,"http://www.w3.org/XML/1998/namespace","xml:lang",d);break;case"xmlSpace":sr(n,"http://www.w3.org/XML/1998/namespace","xml:space",d);break;case"is":as(n,"is",d);break;case"innerText":case"textContent":break;default:(!(2<l.length)||l[0]!=="o"&&l[0]!=="O"||l[1]!=="n"&&l[1]!=="N")&&(l=yO.get(l)||l,as(n,l,d))}}function Kp(n,i,l,d,b,y){switch(l){case"style":gS(n,d,y);break;case"dangerouslySetInnerHTML":if(d!=null){if(typeof d!="object"||!("__html"in d))throw Error(a(61));if(l=d.__html,l!=null){if(b.children!=null)throw Error(a(60));n.innerHTML=l}}break;case"children":typeof d=="string"?ai(n,d):(typeof d=="number"||typeof d=="bigint")&&ai(n,""+d);break;case"onScroll":d!=null&&Ue("scroll",n);break;case"onScrollEnd":d!=null&&Ue("scrollend",n);break;case"onClick":d!=null&&(n.onclick=ur);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"inne
Line truncated
` ,f="/",m="*",h="",v="comment",E="declaration";function x(k,A){if(typeof k!="string")throw new TypeError("First argument must be a string");if(!k)return[];A=A||{};var N=1,_=1;function D(Q){var ee=Q.match(t);ee&&(N+=ee.length);var B=Q.lastIndexOf(p);_=~B?Q.length-B:_+Q.length}function U(){var Q={line:N,column:_};return function(ee){return ee.position=new L(Q),Y(),ee}}function L(Q){this.start=Q,this.end={line:N,column:_},this.source=A.source}L.prototype.content=k;function j(Q){var ee=new Error(A.source+":"+N+":"+_+": "+Q);if(ee.reason=Q,ee.filename=A.source,ee.line=N,ee.column=_,ee.source=k,!A.silent)throw ee}function P(Q){var ee=Q.exec(k);if(ee){var B=ee[0];return D(B),k=k.slice(B.length),ee}}function Y(){P(r)}function M(Q){var ee;for(Q=Q||[];ee=q();)ee!==!1&&Q.push(ee);return Q}function q(){var Q=U();if(!(f!=k.charAt(0)||m!=k.charAt(1))){for(var ee=2;h!=k.charAt(ee)&&(m!=k.charAt(ee)||f!=k.charAt(ee+1));)++ee;if(ee+=2,h===k.charAt(ee-1))return j("End of comment missing");var B=k.slice(2,ee-2);return _+=2,D(B),k=k.slice(ee),_+=2,Q({type:v,comment:B})}}function K(){var Q=U(),ee=P(a);if(ee){if(q(),!P(o))return j("property missing ':'");var B=P(s),V=Q({type:E,property:w(ee[0].replace(e,h)),value:B?w(B[0].replace(e,h)):h});return P(u),V}}function J(){var Q=[];M(Q);for(var ee;ee=K();)ee!==!1&&(Q.push(ee),M(Q));return Q}return Y(),J()}function w(k){return k?k.replace(c,h):h}return wf=x,wf}var vA;function DM(){if(vA)return ji;vA=1;var e=ji&&ji.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(ji,"__esModule",{value:!0}),ji.default=r;const t=e(LM());function r(a,o){let s=null;if(!a||typeof a!="string")return s;const u=(0,t.default)(a),c=typeof o=="function";return u.forEach(p=>{if(p.type!=="declaration")return;const{property:f,value:m}=p;c?o(f,m,p):m&&(s=s||{},s[f]=m)}),s}return ji}var pl={},EA;function MM(){if(EA)return pl;EA=1,Object.defineProperty(pl,"__esModule",{value:!0}),pl.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+ $ /,t=/-([a-z])/g,r=/^[^-]+ $ /,a=/^-(webkit|moz|ms|o|khtml)-/,o=/^-(ms)-/,s=function(f){return!f||r.test(f)||e.test(f)},u=function(f,m){return m.toUpperCase()},c=function(f,m){return"".concat(m,"-")},p=function(f,m){return m===void 0&&(m={}),s(f)?f:(f=f.toLowerCase(),m.reactCompat?f=f.replace(o,c):f=f.replace(a,c),f.replace(t,u))};return pl.camelCase=p,pl}var fl,SA;function jM(){if(SA)return fl;SA=1;var e=fl&&fl.__importDefault||function(o){return o&&o.__esModule?o:{default:o}},t=e(DM()),r=MM();function a(o,s){var u={};return!o||typeof o!="string"||(0,t.default)(o,function(c,p){c&&p&&(u[(0,r.camelCase)(c,s)]=p)}),u}return a.default=a,fl=a,fl}var UM=jM();const FM=ic(UM),tN=nN("end"),Kg=nN("start");function nN(e){return t;function t(r){const a=r&&r.position&&r.position[e]||{};if(typeof a.line=="number"&&a.line>0&&typeof a.column=="number"&&a.column>0)return{line:a.line,column:a.column,offset:typeof a.offset=="number"&&a.offset>-1?a.offset:void 0}}}function BM(e){const t=Kg(e),r=tN(e);if(t&&r)return{start:t,end:r}}function El(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?xA(e.position):"start"in e||"end"in e?xA(e):"line"in e||"column"in e?og(e):""}function og(e){return wA(e&&e.line)+":"+wA(e&&e.column)}function xA(e){return og(e&&e.start)+"-"+og(e&&e.end)}function wA(e){return e&&typeof e=="number"?e:1}class Ft extends Error{constructor(t,r,a){super(),typeof r=="string"&&(a=r,r=void 0);let o="",s={},u=!1;if(r&&("line"in r&&"column"in r?s={place:r}:"start"in r&&"end"in r?s={place:r}:"type"in r?s={ancestors:[r],place:r.position}:s={...r}),typeof t=="string"?o=t:!s.cause&&t&&(u=!0,o=t.message,s.cause=t),!s.ruleId&&!s.source&&typeof a=="string"){const p=a.indexOf(":");p===-1?s.ruleId=a:(s.source=a.slice(0,p),s.ruleId=a.slice(p+1))}if(!s.place&&s.ancestors&&s.ancestors){const p=s.ancestors[s.ancestors.length-1];p&&(s.place=p.position)}const c=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=c?c.column:void 0,this.fatal=void 0,this.file="",this.message=o,this.line=c?c.line:void 0,this.name=El(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=u&&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}}Ft.prototype.file="";Ft.prototype.name="";Ft.prototype.reason="";Ft.prototype.message="";Ft.prototype.stack="";Ft.prototype.column=void 0;Ft.prototype.line=void 0;Ft.prototype.ancestors=void 0;Ft.prototype.cause=void 0;Ft.prototype.fatal=void 0;Ft.prototype.place=void 0;Ft.prototype.ruleId=void 0;Ft.prototype.source=void 0;const Xg={}.hasOwnProperty,zM=new Map,PM=/[A-Z]/g, $ M=new Set(["table","tbody","thead","tfoot","tr"]),GM=new Set(["td","th"]),rN="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function HM(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected ` Fragment ` in options");const r=t.filePath||void 0;
Line truncated
` ;break}case-3:{u= ` \ r
` ;break}case-2:{u=t?" ":" ";break}case-1:{if(!t&&o)continue;u=" ";break}default:u=String.fromCharCode(s)}o=s===-2,a.push(u)}return a.join("")}function uj(e){const a={constructs: $ _([ij,...(e||{}).extensions||[]]),content:o(TM),defined:[],document:o(kM),flow:o(H2),lazy:{},string:o(Y2),text:o(W2)};return a;function o(s){return u;function u(d){return oj(a,s,d)}}}function cj(e){for(;!Y_(e););return e}const EA=/[ \0 \t \n \r ]/g;function dj(){let e=1,t="",r=!0,a;return o;function o(s,u,d){const p=[];let f,h,b,v,E;for(s=t+(typeof s=="string"?s.toString():new TextDecoder(u||void 0).decode(s)),b=0,t="",r&&(s.charCodeAt(0)===65279&&b++,r=void 0);b<s.length;){if(EA.lastIndex=b,f=EA.exec(s),v=f&&f.index!==void 0?f.index:s.length,E=s.charCodeAt(v),!f){t=s.slice(b);break}if(E===10&&b===v&&a)p.push(-3),a=void 0;else switch(a&&(p.push(-5),a=void 0),b<v&&(p.push(s.slice(b,v)),e+=v-b),E){case 0:{p.push(65533),e++;break}case 9:{for(h=Math.ceil(e/4)*4,p.push(-2);e++<h;)p.push(-1);break}case 10:{p.push(-4),e=1;break}default:a=!0,e=1}b=v+1}return d&&(a&&p.push(-5),t&&p.push(t),p.push(null)),p}}const pj=/ \\ ([!-/:-@[- ` { - ~ ] ) | & ( # ( ? : \ d { 1 , 7 } | x [ \ da - f ] { 1 , 6 } ) | [ \ da - z ] { 1 , 31 } ) ; / g i ; f u n c t i o n f j ( e ) { r e t u r n e . r e p l a c e ( p j , g j ) } f u n c t i o n g j ( e , t , r ) { i f ( t ) r e t u r n t ; i f ( r . c h a r C o d e A t ( 0 ) = = = 3 5 ) { c o n s t o = r . c h a r C o d e A t ( 1 ) , s = o = = = 1 2 0 | | o = = = 8 8 ; r e t u r n G _ ( r . s l i c e ( s ? 2 : 1 ) , s ? 1 6 : 1 0 ) } r e t u r n x l ( r ) | | e } c o n s t J _ = { } . h a s O w n P r o p e r t y ; f u n c t i o n m j ( e , t , r ) { r e t u r n t & & t y p e o f t = = " o b j e c t " & & ( r = t , t = v o i d 0 ) , h j ( r ) ( c j ( u j ( r ) . d o c u m e n t ( ) . w r i t e ( d j ( ) ( e , t , ! 0 ) ) ) ) } f u n c t i o n h j ( e ) { c o n s t t = { t r a n s f o r m s : [ ] , c a n C o n t a i n E o l s : [ " e m p h a s i s " , " f r a g m e n t " , " h e a d i n g " , " p a r a g r a p h " , " s t r o n g " ] , e n t e r : { a u t o l i n k : s ( W a ) , a u t o l i n k P r o t o c o l : V , a u t o l i n k E m a i l : V , a t x H e a d i n g : s ( q n ) , b l o c k Q u o t e : s ( R e ) , c h a r a c t e r E s c a p e : V , c h a r a c t e r R e f e r e n c e : V , c o d e F e n c e d : s ( O e ) , c o d e F e n c e d F e n c e I n f o : u , c o d e F e n c e d F e n c e M e t a : u , c o d e I n d e n t e d : s ( O e , u ) , c o d e T e x t : s ( q e , u ) , c o d e T e x t D a t a : V , d a t a : V , c o d e F l o w V a l u e : V , d e f i n i t i o n : s ( d t ) , d e f i n i t i o n D e s t i n a t i o n S t r i n g : u , d e f i n i t i o n L a b e l S t r i n g : u , d e f i n i t i o n T i t l e S t r i n g : u , e m p h a s i s : s ( s t ) , h a r d B r e a k E s c a p e : s ( Y n ) , h a r d B r e a k T r a i l i n g : s ( Y n ) , h t m l F l o w : s ( C r , u ) , h t m l F l o w D a t a : V , h t m l T e x t : s ( C r , u ) , h t m l T e x t D a t a : V , i m a g e : s ( q l ) , l a b e l : u , l i n k : s ( W a ) , l i s t I t e m : s ( p o ) , l i s t I t e m V a l u e : v , l i s t O r d e r e d : s ( K a , b ) , l i s t U n o r d e r e d : s ( K a ) , p a r a g r a p h : s ( H c ) , r e f e r e n c e : I , r e f e r e n c e S t r i n g : u , r e s o u r c e D e s t i n a t i o n S t r i n g : u , r e s o u r c e T i t l e S t r i n g : u , s e t e x t H e a d i n g : s ( q n ) , s t r o n g : s ( V c ) , t h e m a t i c B r e a k : s ( q c ) } , e x i t : { a t x H e a d i n g : p ( ) , a t x H e a d i n g S e q u e n c e : j , a u t o l i n k : p ( ) , a u t o l i n k E m a i l : m e , a u t o l i n k P r o t o c o l : w e , b l o c k Q u o t e : p ( ) , c h a r a c t e r E s c a p e V a l u e : M , c h a r a c t e r R e f e r e n c e M a r k e r H e x a d e c i m a l : f e , c h a r a c t e r R e f e r e n c e M a r k e r N u m e r i c : f e , c h a r a c t e r R e f e r e n c e V a l u e : d e , c h a r a c t e r R e f e r e n c e : l e , c o d e F e n c e d : p ( k ) , c o d e F e n c e d F e n c e : T , c o d e F e n c e d F e n c e I n f o : E , c o d e F e n c e d F e n c e M e t a : w , c o d e F l o w V a l u e : M , c o d e I n d e n t e d : p ( A ) , c o d e T e x t : p ( Q ) , c o d e T e x t D a t a : M , d a t a : M , d e f i n i t i o n : p ( ) , d e f i n i t i o n D e s t i n a t i o n S t r i n g : L , d e f i n i t i o n L a b e l S t r i n g : _ , d e f i n i t i o n T i t l e S t r i n g : R , e m p h a s i s : p ( ) , h a r d B r e a k E s c a p e : p ( K ) , h a r d B r e a k T r a i l i n g : p ( K ) , h t m l F l o w : p ( Z ) , h t m l F l o w D a t a : M , h t m l T e x t : p ( t e ) , h t m l T e x t D a t a : M , i m a g e : p ( W ) , l a b e l : c e , l a b e l T e x t : n e , l i n e E n d i n g : H , l i n k : p ( P ) , l i s t I t e m : p ( ) , l i s t O r d e r e d : p ( ) , l i s t U n o r d e r e d : p ( ) , p a r a g r a p h : p ( ) , r e f e r e n c e S t r i n g : u e , r e s o u r c e D e s t i n a t i o n S t r i n g : C , r e s o u r c e T i t l e S t r i n g : U , r e s o u r c e : J , s e t e x t H e a d i n g : p ( F ) , s e t e x t H e a d i n g L i n e S e q u e n c e : z , s e t e x t H e a d i n g T e x t : D , s t r o n g : p ( ) , t h e m a t i c B r e a k : p ( ) } } ; e N ( t , ( e | | { } ) . m d a s t E x t e n s i o n s | | [ ] ) ; c o n s t r = { } ; r e t u r n a ; f u n c t i o n a ( a e ) { l e t p e = { t y p e : " r o o t " , c h i l d r e n : [ ] } ; c o n s t k e = { s t a c k : [ p e ] , t o k e n S t a c k : [ ] , c o n f i g : t , e n t e r : d , e x i t : f , b u f f e r : u , r e s u m e : h , d a t a : r } , M e = [ ] ; l e t W e = - 1 ; f o r ( ; + + W e < a e . l e n g t h ; ) i f ( a e [ W e ] [ 1 ] . t y p e = = = " l i s t O r d e r e d " | | a e [ W e ] [ 1 ] . t y p e = = = " l i s t U n o r d e r e d " ) i f ( a e [ W e ] [ 0 ] = = = " e n t e r " ) M e . p u s h ( W e ) ; e l s e { c o n s t n n = M e . p o p ( ) ; W e = o ( a e , n n , W e ) } f o r ( W e = - 1 ; + + W e < a e . l e n g t h ; ) { c o n s t n n = t [ a e [ W e ] [ 0 ] ] ; J _ . c a l l ( n n , a e [ W e ] [ 1 ] . t y p e ) & & n n [ a e [ W e ] [ 1 ] . t y p e ] . c a l l ( O b j e c t . a s s i g n ( { s l i c e S e r i a l i z e : a e [ W e ] [ 2 ] . s l i c e S e r i a l i z e } , k e ) , a e [ W e ] [ 1 ] ) } i f ( k e . t o k e n S t a c k . l e n g t h > 0 ) { c o n s t n n = k e . t o k e n S t a c k [ k e . t o k e n S t a c k . l e n g t h - 1 ] ; ( n n [ 1 ] | | v A ) . c a l l ( k e , v o i d 0 , n n [ 0 ] ) } f o r ( p e . p o s i t i o n = { s t a r t : a a ( a e . l e n g t h > 0 ? a e [ 0 ] [ 1 ] . s t a r t : { l i n e : 1 , c o l u m n : 1 , o f f s e t : 0 } ) , e n d : a a ( a e . l e n g t h > 0 ? a e [ a e . l e n g t h - 2 ] [ 1 ] . e n d : { l i n e : 1 , c o l u m n : 1 , o f f s e t : 0 } ) } , W e = - 1 ; + + W e < t . t r a n s f o r m s . l e n g t h ; ) p e = t . t r a n s f o r m s [ W e ] ( p e ) | | p e ; r e t u r n p e } f u n c t i o n o ( a e , p e , k e ) { l e t M e = p e - 1 , W e = - 1 , n n = ! 1 , o r , P t , v t , V t ; f o r ( ; + + M e < = k e ; ) { c o n s t t t = a e [ M e ] ; s w i t c h ( t t [ 1 ] . t y p e ) { c a s e " l i s t U n o r d e r e d " : c a s e " l i s t O r d e r e d " : c a s e " b l o c k Q u o t e " : { t t [ 0 ] = = = " e n t e r " ? W e + + : W e - - , V t = v o i d 0 ; b r e a k } c a s e " l i n e E n d i n g B l a n k " : { t t [ 0 ] = = = " e n t e r " & & ( o r & & ! V t & & ! W e & & ! v t & & ( v t = M e ) , V t = v o i d 0 ) ; b r e a k } c a s e " l i n e P r e f i x " : c a s e " l i s t I t e m V a l u e " : c a s e " l i s t I t e m M a r k e r " : c a s e " l i s t I t e m P r e f i x " : c a s e " l i s t I t e m P r e f i x W h i t e s p a c e " : b r e a k ; d e f a u l t : V t = v o i d 0 } i f ( ! W e & & t t [ 0 ] = = = " e n t e r " & & t t [ 1 ] . t y p e = = = " l i s t I t e m P r e f i x " | | W e = = = - 1 & & t t [ 0 ] = = = " e x i t " & & ( t t [ 1 ] . t y p e = = = " l i s t U n o r d e r e d " | | t t [ 1 ] . t y p e = = = " l i s t O r d e r e d " ) ) { i f ( o r ) { l e t O r = M e ; f o r ( P t = v o i d 0 ; O r - - ; ) { c o n s t I n = a e [ O r ] ; i f ( I n [ 1 ] . t y p e = = = " l i n e E n d i n g " | | I n [ 1 ] . t y p e = = = " l i n e E n d i n g B l a n k " ) { i f ( I n [ 0 ] = = = " e x i t " ) c o n t i n u e ; P t & & ( a e [ P t ] [ 1 ] . t y p e = " l i n e E n d i n g B l a n k " , n n = ! 0 ) , I n [ 1 ] . t y p e = " l i n e E n d i n g " , P t = O r } e l s e i f ( ! ( I n [ 1 ] . t y p e = = = " l i n e P r e f i x " | | I n [ 1 ] . t y p e = = = " b l o c k Q u o t e P r e f i x " | | I n [ 1 ] . t y p e = = = " b l o c k Q u o t e P r e f i x W h i t e s p Line truncated
` }]}function Sj (e,t){const r=t.value?t.value+ `
` :"",a={},o=t.lang?t.lang.split(/ \s +/):[];o.length>0&&(a.className=["language-"+o[0]]);let s={type:"element",tagName:"code",properties:a,children:[{type:"text",value:r}]};return t.meta&&(s.data={meta:t.meta}),e.patch(t,s),s=e.applyData(t,s),s={type:"element",tagName:"pre",properties:{},children:[s]},e.patch(t,s),s}function xj (e,t){const r={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function wj (e,t){const r={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function Tj (e,t){const r=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",a=String(t.identifier).toUpperCase(),o=Ji (a.toLowerCase()),s=e.footnoteOrder.indexOf(a);let u,d =e.footnoteCounts.get(a);d ===void 0?(d =0,e.footnoteOrder.push(a),u=e.footnoteOrder.length):u=s+1,d +=1,e.footnoteCounts.set(a,d );const p={type:"element",tagName:"a",properties:{href:"#"+r+"fn-"+o,id:r+"fnref-"+o+(d >1?"-"+d :""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(u)}]};e.patch(t,p);const f={type:"element",tagName:"sup",properties:{},children:[p]};return e.patch(t,f),e.applyData(t,f)}function Aj (e,t){const r={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function kj (e,t){if(e.options.allowDangerousHtml){const r={type:"raw",value:t.value};return e.patch(t,r),e.applyData(t,r)}}function t N(e,t){const r=t.referenceType;let a="]";if(r==="collapsed"?a+="[]":r==="full"&&(a+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+a}];const o=e.all(t),s=o[0];s&&s.type==="text"?s.value="["+s.value:o.unshift({type:"text",value:"["});const u=o[o.length-1];return u&&u.type==="text"?u.value+=a:o.push({type:"text",value:a}),o}function _j (e,t){const r=String(t.identifier).toUpperCase(),a=e.definitionById.get(r);if(!a)return t N(e,t);const o={src:Ji (a.url||""),alt:t.alt};a.title!==null&&a.title!==void 0&&(o.title=a.title);const s={type:"element",tagName:"img",properties:o,children:[]};return e.patch(t,s),e.applyData(t,s)}function Nj (e,t){const r={src:Ji (t.url)};t.alt!==null&&t.alt!==void 0&&(r.alt=t.alt),t.title!==null&&t.title!==void 0&&(r.title=t.title);const a={type:"element",tagName:"img",properties:r,children:[]};return e.patch(t,a),e.applyData(t,a)}function Rj (e,t){const r={type:"text",value:t.value.replace(/ \r ? \n | \r /g," ")};e.patch(t,r);const a={type:"element",tagName:"code",properties:{},children:[r]};return e.patch(t,a),e.applyData(t,a)}function Cj (e,t){const r=String(t.identifier).toUpperCase(),a=e.definitionById.get(r);if(!a)return t N(e,t);const o={href:Ji (a.url||"")};a.title!==null&&a.title!==void 0&&(o.title=a.title);const s={type:"element",tagName:"a",properties:o,children:e.all(t)};return e.patch(t,s),e.applyData(t,s)}function Oj (e,t){const r={href:Ji (t.url)};t.title!==null&&t.title!==void 0&&(r.title=t.title);const a={type:"element",tagName:"a",properties:r,children:e.all(t)};return e.patch(t,a),e.applyData(t,a)}function Ij (e,t,r){const a=e.all(t),o=r?Lj (r):n N(t),s={},u=[];if(typeof t.checked=="boolean"){const h =a[0];let b;h &&h .type==="element"&&h .tagName==="p"?b=h :(b ={type:"element",tagName:"p",properties:{},children:[]},a.unshift(b )),b .children.length>0&&b .children.unshift({type:"text",value:" "}),b .children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),s.className=["task-list-item"]}let d =-1;for(;++d <a.length;){const h =a[d ];(o||d !==0||h .type!=="element"||h .tagName!=="p")&&u.push({type:"text",value: `
` }),h .type==="element"&&h .tagName==="p"&&!o?u.push(...h .children):u.push(h )}const p=a[a.length-1];p&&(o||p.type!=="element"||p.tagName!=="p")&&u.push({type:"text",value: `
` });const f={type:"element",tagName:"li",properties:s,children:u};return e.patch(t,f),e.applyData(t,f)}function Lj(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const r=e.children;let a=-1;for(;!t&&++a<r.length;)t=nN(r[a])}return t}function nN(e){const t=e.spread;return t??e.children.length>1}function Dj(e,t){const r={},a=e.all(t);let o=-1;for(typeof t.start=="number"&&t.start!==1&&(r.start=t.start);++o<a.length;){const u=a[o];if(u.type==="element"&&u.tagName==="li"&&u.properties&&Array.isArray(u.properties.className)&&u.properties.className.includes("task-list-item")){r.className=["contains-task-list"];break}}const s={type:"element",tagName:t.ordered?"ol":"ul",properties:r,children:e.wrap(a,!0)};return e.patch(t,s),e.applyData(t,s)}function Mj(e,t){const r={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function jj(e,t){const r={type:"root",children:e.wrap(e.all(t))};return e.patch(t,r),e.applyData(t,r)}function Uj(e,t){const r={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function Fj(e,t){const r=e.all(t),a=r.shift(),o=[];if(a){const u={type:"element",tagName:"thead",properties:{},children:e.wrap([a],!0)};e.patch(t.children[0],u),o.push(u)}if(r.length>0){const u={type:"element",tagName:"tbody",properties:{},children:e.wrap(r,!0)},d=jg(t.children[1]),p=M_(t.children[t.children.length-1]);d&&p&&(u.position={start:d,end:p}),o.push(u)}const s={type:"element",tagName:"table",properties:{},children:e.wrap(o,!0)};return e.patch(t,s),e.applyData(t,s)}function Bj(e,t,r){const a=r?r.children:void 0,s=(a?a.indexOf(t):1)===0?"th":"td",u=r&&r.type==="table"?r.align:void 0,d=u?u.length:t.children.length;let p=-1;const f=[];for(;++p<d;){const b=t.children[p],v={},E=u?u[p]:void 0;E&&(v.align=E);let w={type:"element",tagName:s,properties:v,children:[]};b&&(w.children=e.all(b),e.patch(b,w),w=e.applyData(b,w)),f.push(w)}const h={type:"element",tagName:"tr",properties:{},children:e.wrap(f,!0)};return e.patch(t,h),e.applyData(t,h)}function zj(e,t){const r={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}const SA=9,xA=32;function Pj(e){const t=String(e),r=/ \r ? \n | \r /g;let a=r.exec(t),o=0;const s=[];for(;a;)s.push(wA(t.slice(o,a.index),o>0,!0),a[0]),o=a.index+a[0].length,a=r.exec(t);return s.push(wA(t.slice(o),o>0,!1)),s.join("")}function wA(e,t,r){let a=0,o=e.length;if(t){let s=e.codePointAt(a);for(;s===SA||s===xA;)a++,s=e.codePointAt(a)}if(r){let s=e.codePointAt(o-1);for(;s===SA||s===xA;)o--,s=e.codePointAt(o-1)}return o>a?e.slice(a,o):""}function $ j(e,t){const r={type:"text",value:Pj(String(t.value))};return e.patch(t,r),e.applyData(t,r)}function Gj(e,t){const r={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,r),e.applyData(t,r)}const Hj={blockquote:Ej,break:vj,code:Sj,delete:xj,emphasis:wj,footnoteReference:Tj,heading:Aj,html:kj,imageReference:_j,image:Nj,inlineCode:Rj,linkReference:Cj,link:Oj,listItem:Ij,list:Dj,paragraph:Mj,root:jj,strong:Uj,table:Fj,tableCell:zj,tableRow:Bj,text: $ j,thematicBreak:Gj,toml:fu,yaml:fu,definition:fu,footnoteDefinition:fu};function fu(){}const rN=-1,ic=0,hl=1,zu=2, $ g=3,Gg=4,Hg=5,Vg=6,aN=7,iN=8,TA=typeof self=="object"?self:globalThis,Vj=(e,t)=>{const r=(o,s)=>(e.set(s,o),o),a=o=>{if(e.has(o))return e.get(o);const[s,u]=t[o];switch(s){case ic:case rN:return r(u,o);case hl:{const d=r([],o);for(const p of u)d.push(a(p));return d}case zu:{const d=r({},o);for(const[p,f]of u)d[a(p)]=a(f);return d}case $ g:return r(new Date(u),o);case Gg:{const{source:d,flags:p}=u;return r(new RegExp(d,p),o)}case Hg:{const d=r(new Map,o);for(const[p,f]of u)d.set(a(p),a(f));return d}case Vg:{const d=r(new Set,o);for(const p of u)d.add(a(p));return d}case aN:{const{name:d,message:p}=u;return r(new TA[d](p),o)}case iN:return r(BigInt(u),o);case"BigInt":return r(Object(BigInt(u)),o);case"ArrayBuffer":return r(new Uint8Array(u).buffer,u);case"DataView":{const{buffer:d}=new Uint8Array(u);return r(new DataView(d),u)}}return r(new TA[s](u),o)};return a},AA=e=>Vj(new Map,e)(0),Mi="",{toString:qj}={},{keys:Yj}=Object,cl=e=>{const t=typeof e;if(t!=="object"||!e)return[ic,t];const r=qj.call(e).slice(8,-1);switch(r){case"Array":return[hl,Mi];case"Object":return[zu,Mi];case"Date":return[ $ g,Mi];case"RegExp":return[Gg,Mi];case"Map":return[Hg,Mi];case"Set":return[Vg,Mi];case"DataView":return[hl,r]}return r.includes("Array")?[hl,r]:r.includes("Error")?[aN,r]:[zu,r]},gu=([e,t])=>e===ic&&(t==="function"||t==="symbol"),Wj=(e,t,r,a)=>{const o=(u,d)=>{const p=a.push(u)-1;return r.set(d,p),p},s=u=>{if(r.has(u))return r.get(u);let[d,p]=cl(u);switch(d){case ic:{let h=u;switch(p){case"bigint":d=iN,h=u.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+p);h=null;break;case"undefined":return o([rN],u)}return o([d,h],u)}case hl:{if(p){let v=u;return p==="DataView"?v=new Uint8Array(u.buffer):p==="ArrayBuffer"&&(v=new Uint8Array(
Line truncated
` },{type:"element",tagName:"ol",properties:{},children:e.wrap(d ,!0)},{type:"text",value: `
` }]}}const o c=(function(e){if(e==null)return t U;if(typeof e=="function")return l c(e);if(typeof e=="object")return Array.isArray(e)?Qj (e):Jj (e);if(typeof e=="string")return e U(e);throw new Error("Expected function, string, or object as test")});function Qj (e){const t=[];let r=-1;for(;++r<e.length;)t[r]=o c(e[r]);return l c(a);function a(...o){let s=-1;for(;++s<t.length;)if(t[s].apply(this,o))return!0;return!1}}function Jj (e){const t=e;return l c(r);function r(a){const o=a;let s;for(s in e)if(o[s]!==t[s])return!1;return!0}}function e U(e){return l c(t);function t(r){return r&&r.type===e}}function l c(e){return t;function t(r,a,o){return!!(n U(r)&&e.call(this,r,typeof a=="number"?a:void 0,o||void 0))}}function t U(){return!0}function n U(e){return e!==null&&typeof e=="object"&&"type"in e}const o N=[],r U=!0,Qf =!1,a U="skip";function l N(e,t,r,a){let o;typeof t=="function"&&typeof r!="function"?(a=r,r=t):o=t;const s=o c(o),u=a?-1:1;d (e,void 0,[])();function d (p,f,h ){const b =p&&typeof p=="object"?p:{};if(typeof b .type=="string"){const E=typeof b .tagName=="string"?b .tagName:typeof b .name=="string"?b .name:void 0;Object.defineProperty(v,"name",{value:"node ("+(p.type+(E?"<"+E+">":""))+")"})}return v;function v(){let E=o N,w,T ,k;if((!t||s(p,f,h[h .length-1]||void 0))&&(E=i U(r(p,h )),E[0]===Qf ))return E;if("children"in p&&p.children){const A=p;if(A.children&&E[0]!==a U)for(T =(a?A.children.length:-1)+u,k=h .concat(A);T >-1&&T <A.children.length;){const _ =A.children[T ];if(w=d(_,T ,k)(),w [0]===Qf )return w;T =typeof w [1]=="number"?w [1]:T +u}}return E}}}function i U(e){return Array.isArray(e)?e:typeof e=="number"?[r U,e]:e==null?o N:[e]}function qg (e,t,r,a){let o,s,u;typeof t=="function"&&typeof r!="function"?(s=void 0,u=t,o=r):(s=t,u=r,o=a),l N(e,s,d ,o);function d (p,f){const h =f[f.length-1],b=h?h .children.indexOf(p):void 0;return u(p,b,h )}}const Jf ={}.hasOwnProperty,o U={};function l U(e,t){const r=t||o U,a=new Map,o=new Map,s=new Map,u={...Hj ,...r.handlers},d ={all:f,applyData:u U,definitionById:a,footnoteById:o,footnoteCounts:s,footnoteOrder:[],handlers:u,one:p,options:r,patch:s U,wrap:dU };return qg (e,function(h ){if(h .type==="definition"||h .type==="footnoteDefinition"){const b=h .type==="definition"?a:o,v=String(h .identifier).toUpperCase();b .has(v)||b .set(v,h )}}),d ;function p(h,b ){const v=h .type,E=d .handlers[v];if(Jf .call(d .handlers,v)&&E)return E(d,h,b );if(d .options.passThrough&&d .options.passThrough.includes(v)){if("children"in h ){const{children:T ,...k}=h ,A=P u(k);return A.children=d .all(h ),A}return P u(h )}return(d .options.unknownHandler||c U)(d,h,b )}function f(h ){const b =[];if("children"in h ){const v=h .children;let E=-1;for(;++E<v.length;){const w=d .one(v[E],h );if(w ){if(E&&v[E-1].type==="break"&&(!Array.isArray(w )&&w .type==="text"&&(w .value=_ A(w .value)),!Array.isArray(w )&&w .type==="element")){const T=w .children[0];T &&T .type==="text"&&(T .value=_ A(T .value))}Array.isArray(w )?b .push(...w ):b .push(w )}}}return b }}function s U(e,t){e.position&&(t.position=XD (e))}function u U(e,t){let r=t;if(e&&e.data){const a=e.data.hName,o=e.data.hChildren,s=e.data.hProperties;if(typeof a=="string")if(r.type==="element")r.tagName=a;else{const u="children"in r?r.children:[r];r={type:"element",tagName:a,properties:{},children:u}}r.type==="element"&&s&&Object.assign(r.properties,P u(s)),"children"in r&&r.children&&o!==null&&o!==void 0&&(r.children=o)}return r}function c U(e,t){const r=t.data||{},a="value"in t&&!(Jf .call(r,"hProperties")||Jf .call(r,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,a),e.applyData(t,a)}function dU (e,t){const r=[];let a=-1;for(t&&r.push({type:"text",value: `
` ;break}case-2:{u=t?" ":" ";break}case-1:{if(!t&&o)continue;u=" ";break}default:u=String.fromCharCode(s)}o=s===-2,a.push(u)}return a.join("")}function Qj(e){const a={constructs:sN([Wj,...(e||{}).extensions||[]]),content:o(f2),defined:[],document:o(m2),flow:o(Lj),lazy:{},string:o(jj),text:o(Uj)};return a;function o(s){return u;function u(c){return Kj(a,s,c)}}}function Jj(e){for(;!fN(e););return e}const LA=/[ \0 \t \n \r ]/g;function eU(){let e=1,t="",r=!0,a;return o;function o(s,u,c){const p=[];let f,m,h,v,E;for(s=t+(typeof s=="string"?s.toString():new TextDecoder(u||void 0).decode(s)),h=0,t="",r&&(s.charCodeAt(0)===65279&&h++,r=void 0);h<s.length;){if(LA.lastIndex=h,f=LA.exec(s),v=f&&f.index!==void 0?f.index:s.length,E=s.charCodeAt(v),!f){t=s.slice(h);break}if(E===10&&h===v&&a)p.push(-3),a=void 0;else switch(a&&(p.push(-5),a=void 0),h<v&&(p.push(s.slice(h,v)),e+=v-h),E){case 0:{p.push(65533),e++;break}case 9:{for(m=Math.ceil(e/4)*4,p.push(-2);e++<m;)p.push(-1);break}case 10:{p.push(-4),e=1;break}default:a=!0,e=1}h=v+1}return c&&(a&&p.push(-5),t&&p.push(t),p.push(null)),p}}const tU=/ \\ ([!-/:-@[- ` { - ~ ] ) | & ( # ( ? : \ d { 1 , 7 } | x [ \ da - f ] { 1 , 6 } ) | [ \ da - z ] { 1 , 31 } ) ; / g i ; f u n c t i o n n U ( e ) { r e t u r n e . r e p l a c e ( t U , r U ) } f u n c t i o n r U ( e , t , r ) { i f ( t ) r e t u r n t ; i f ( r . c h a r C o d e A t ( 0 ) = = = 3 5 ) { c o n s t o = r . c h a r C o d e A t ( 1 ) , s = o = = = 1 2 0 | | o = = = 8 8 ; r e t u r n u N ( r . s l i c e ( s ? 2 : 1 ) , s ? 1 6 : 1 0 ) } r e t u r n N l ( r ) | | e } c o n s t v N = { } . h a s O w n P r o p e r t y ; f u n c t i o n a U ( e , t , r ) { r e t u r n t & & t y p e o f t = = " o b j e c t " & & ( r = t , t = v o i d 0 ) , i U ( r ) ( J j ( Q j ( r ) . d o c u m e n t ( ) . w r i t e ( e U ( ) ( e , t , ! 0 ) ) ) ) } f u n c t i o n i U ( e ) { c o n s t t = { t r a n s f o r m s : [ ] , c a n C o n t a i n E o l s : [ " e m p h a s i s " , " f r a g m e n t " , " h e a d i n g " , " p a r a g r a p h " , " s t r o n g " ] , e n t e r : { a u t o l i n k : s ( X a ) , a u t o l i n k P r o t o c o l : Y , a u t o l i n k E m a i l : Y , a t x H e a d i n g : s ( Y n ) , b l o c k Q u o t e : s ( k e ) , c h a r a c t e r E s c a p e : Y , c h a r a c t e r R e f e r e n c e : Y , c o d e F e n c e d : s ( I e ) , c o d e F e n c e d F e n c e I n f o : u , c o d e F e n c e d F e n c e M e t a : u , c o d e I n d e n t e d : s ( I e , u ) , c o d e T e x t : s ( q e , u ) , c o d e T e x t D a t a : Y , d a t a : Y , c o d e F l o w V a l u e : Y , d e f i n i t i o n : s ( d t ) , d e f i n i t i o n D e s t i n a t i o n S t r i n g : u , d e f i n i t i o n L a b e l S t r i n g : u , d e f i n i t i o n T i t l e S t r i n g : u , e m p h a s i s : s ( s t ) , h a r d B r e a k E s c a p e : s ( W n ) , h a r d B r e a k T r a i l i n g : s ( W n ) , h t m l F l o w : s ( I r , u ) , h t m l F l o w D a t a : Y , h t m l T e x t : s ( I r , u ) , h t m l T e x t D a t a : Y , i m a g e : s ( J l ) , l a b e l : u , l i n k : s ( X a ) , l i s t I t e m : s ( b o ) , l i s t I t e m V a l u e : v , l i s t O r d e r e d : s ( Z a , h ) , l i s t U n o r d e r e d : s ( Z a ) , p a r a g r a p h : s ( Q c ) , r e f e r e n c e : C , r e f e r e n c e S t r i n g : u , r e s o u r c e D e s t i n a t i o n S t r i n g : u , r e s o u r c e T i t l e S t r i n g : u , s e t e x t H e a d i n g : s ( Y n ) , s t r o n g : s ( J c ) , t h e m a t i c B r e a k : s ( e d ) } , e x i t : { a t x H e a d i n g : p ( ) , a t x H e a d i n g S e q u e n c e : U , a u t o l i n k : p ( ) , a u t o l i n k E m a i l : g e , a u t o l i n k P r o t o c o l : h e , b l o c k Q u o t e : p ( ) , c h a r a c t e r E s c a p e V a l u e : M , c h a r a c t e r R e f e r e n c e M a r k e r H e x a d e c i m a l : r e , c h a r a c t e r R e f e r e n c e M a r k e r N u m e r i c : r e , c h a r a c t e r R e f e r e n c e V a l u e : c e , c h a r a c t e r R e f e r e n c e : s e , c o d e F e n c e d : p ( k ) , c o d e F e n c e d F e n c e : w , c o d e F e n c e d F e n c e I n f o : E , c o d e F e n c e d F e n c e M e t a : x , c o d e F l o w V a l u e : M , c o d e I n d e n t e d : p ( A ) , c o d e T e x t : p ( e e ) , c o d e T e x t D a t a : M , d a t a : M , d e f i n i t i o n : p ( ) , d e f i n i t i o n D e s t i n a t i o n S t r i n g : D , d e f i n i t i o n L a b e l S t r i n g : N , d e f i n i t i o n T i t l e S t r i n g : _ , e m p h a s i s : p ( ) , h a r d B r e a k E s c a p e : p ( K ) , h a r d B r e a k T r a i l i n g : p ( K ) , h t m l F l o w : p ( J ) , h t m l F l o w D a t a : M , h t m l T e x t : p ( Q ) , h t m l T e x t D a t a : M , i m a g e : p ( V ) , l a b e l : d e , l a b e l T e x t : n e , l i n e E n d i n g : q , l i n k : p ( B ) , l i s t I t e m : p ( ) , l i s t O r d e r e d : p ( ) , l i s t U n o r d e r e d : p ( ) , p a r a g r a p h : p ( ) , r e f e r e n c e S t r i n g : i e , r e s o u r c e D e s t i n a t i o n S t r i n g : I , r e s o u r c e T i t l e S t r i n g : F , r e s o u r c e : z , s e t e x t H e a d i n g : p ( P ) , s e t e x t H e a d i n g L i n e S e q u e n c e : j , s e t e x t H e a d i n g T e x t : L , s t r o n g : p ( ) , t h e m a t i c B r e a k : p ( ) } } ; E N ( t , ( e | | { } ) . m d a s t E x t e n s i o n s | | [ ] ) ; c o n s t r = { } ; r e t u r n a ; f u n c t i o n a ( o e ) { l e t f e = { t y p e : " r o o t " , c h i l d r e n : [ ] } ; c o n s t _ e = { s t a c k : [ f e ] , t o k e n S t a c k : [ ] , c o n f i g : t , e n t e r : c , e x i t : f , b u f f e r : u , r e s u m e : m , d a t a : r } , M e = [ ] ; l e t W e = - 1 ; f o r ( ; + + W e < o e . l e n g t h ; ) i f ( o e [ W e ] [ 1 ] . t y p e = = = " l i s t O r d e r e d " | | o e [ W e ] [ 1 ] . t y p e = = = " l i s t U n o r d e r e d " ) i f ( o e [ W e ] [ 0 ] = = = " e n t e r " ) M e . p u s h ( W e ) ; e l s e { c o n s t r n = M e . p o p ( ) ; W e = o ( o e , r n , W e ) } f o r ( W e = - 1 ; + + W e < o e . l e n g t h ; ) { c o n s t r n = t [ o e [ W e ] [ 0 ] ] ; v N . c a l l ( r n , o e [ W e ] [ 1 ] . t y p e ) & & r n [ o e [ W e ] [ 1 ] . t y p e ] . c a l l ( O b j e c t . a s s i g n ( { s l i c e S e r i a l i z e : o e [ W e ] [ 2 ] . s l i c e S e r i a l i z e } , _ e ) , o e [ W e ] [ 1 ] ) } i f ( _ e . t o k e n S t a c k . l e n g t h > 0 ) { c o n s t r n = _ e . t o k e n S t a c k [ _ e . t o k e n S t a c k . l e n g t h - 1 ] ; ( r n [ 1 ] | | D A ) . c a l l ( _ e , v o i d 0 , r n [ 0 ] ) } f o r ( f e . p o s i t i o n = { s t a r t : i a ( o e . l e n g t h > 0 ? o e [ 0 ] [ 1 ] . s t a r t : { l i n e : 1 , c o l u m n : 1 , o f f s e t : 0 } ) , e n d : i a ( o e . l e n g t h > 0 ? o e [ o e . l e n g t h - 2 ] [ 1 ] . e n d : { l i n e : 1 , c o l u m n : 1 , o f f s e t : 0 } ) } , W e = - 1 ; + + W e < t . t r a n s f o r m s . l e n g t h ; ) f e = t . t r a n s f o r m s [ W e ] ( f e ) | | f e ; r e t u r n f e } f u n c t i o n o ( o e , f e , _ e ) { l e t M e = f e - 1 , W e = - 1 , r n = ! 1 , l r , $ t , E t , q t ; f o r ( ; + + M e < = _ e ; ) { c o n s t t t = o e [ M e ] ; s w i t c h ( t t [ 1 ] . t y p e ) { c a s e " l i s t U n o r d e r e d " : c a s e " l i s t O r d e r e d " : c a s e " b l o c k Q u o t e " : { t t [ 0 ] = = = " e n t e r " ? W e + + : W e - - , q t = v o i d 0 ; b r e a k } c a s e " l i n e E n d i n g B l a n k " : { t t [ 0 ] = = = " e n t e r " & & ( l r & & ! q t & & ! W e & & ! E t & & ( E t = M e ) , q t = v o i d 0 ) ; b r e a k } c a s e " l i n e P r e f i x " : c a s e " l i s t I t e m V a l u e " : c a s e " l i s t I t e m M a r k e r " : c a s e " l i s t I t e m P r e f i x " : c a s e " l i s t I t e m P r e f i x W h i t e s p a c e " : b r e a k ; d e f a u l t : q t = v o i d 0 } i f ( ! W e & & t t [ 0 ] = = = " e n t e r " & & t t [ 1 ] . t y p e = = = " l i s t I t e m P r e f i x " | | W e = = = - 1 & & t t [ 0 ] = = = " e x i t " & & ( t t [ 1 ] . t y p e = = = " l i s t U n o r d e r e d " | | t t [ 1 ] . t y p e = = = " l i s t O r d e r e d " ) ) { i f ( l r ) { l e t O r = M e ; f o r ( $ t = v o i d 0 ; O r - - ; ) { c o n s t L n = o e [ O r ] ; i f ( L n [ 1 ] . t y p e = = = " l i n e E n d i n g " | | L n [ 1 ] . t y p e = = = " l i n e E n d i n g B l a n k " ) { i f ( L n [ 0 ] = = = " e x i t " ) c o n t i n u e ; $ t & & ( o e [ $ t ] [ 1 ] . t y p e = " l i n e E n d i n g B l a n k " , r n = ! 0 ) , L n [ 1 ] . t y p e = " l i n e E n d i n g " , $ t = O r } e l s e i f ( ! ( L n [ 1 ] . t y p e = = = " l i n e P r e f i x " | | L n [ 1 ] . t y p e = = = " b l o c k Q u o t e P r e f i x " | | L n [ 1 ] . t y p e = = = " b l o c k Q u o t e P r e f i x W h i t e s p Line truncated
` }]}function cU (e,t){const r=t.value?t.value+ `
` :"",a={},o=t.lang?t.lang.split(/ \s +/):[];o.length>0&&(a.className=["language-"+o[0]]);let s={type:"element",tagName:"code",properties:a,children:[{type:"text",value:r}]};return t.meta&&(s.data={meta:t.meta}),e.patch(t,s),s=e.applyData(t,s),s={type:"element",tagName:"pre",properties:{},children:[s]},e.patch(t,s),s}function dU (e,t){const r={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function pU (e,t){const r={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function fU (e,t){const r=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",a=String(t.identifier).toUpperCase(),o=ro (a.toLowerCase()),s=e.footnoteOrder.indexOf(a);let u,c =e.footnoteCounts.get(a);c ===void 0?(c =0,e.footnoteOrder.push(a),u=e.footnoteOrder.length):u=s+1,c +=1,e.footnoteCounts.set(a,c );const p={type:"element",tagName:"a",properties:{href:"#"+r+"fn-"+o,id:r+"fnref-"+o+(c >1?"-"+c :""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(u)}]};e.patch(t,p);const f={type:"element",tagName:"sup",properties:{},children:[p]};return e.patch(t,f),e.applyData(t,f)}function gU (e,t){const r={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function mU (e,t){if(e.options.allowDangerousHtml){const r={type:"raw",value:t.value};return e.patch(t,r),e.applyData(t,r)}}function S N(e,t){const r=t.referenceType;let a="]";if(r==="collapsed"?a+="[]":r==="full"&&(a+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+a}];const o=e.all(t),s=o[0];s&&s.type==="text"?s.value="["+s.value:o.unshift({type:"text",value:"["});const u=o[o.length-1];return u&&u.type==="text"?u.value+=a:o.push({type:"text",value:a}),o}function hU (e,t){const r=String(t.identifier).toUpperCase(),a=e.definitionById.get(r);if(!a)return S N(e,t);const o={src:ro (a.url||""),alt:t.alt};a.title!==null&&a.title!==void 0&&(o.title=a.title);const s={type:"element",tagName:"img",properties:o,children:[]};return e.patch(t,s),e.applyData(t,s)}function bU (e,t){const r={src:ro (t.url)};t.alt!==null&&t.alt!==void 0&&(r.alt=t.alt),t.title!==null&&t.title!==void 0&&(r.title=t.title);const a={type:"element",tagName:"img",properties:r,children:[]};return e.patch(t,a),e.applyData(t,a)}function yU (e,t){const r={type:"text",value:t.value.replace(/ \r ? \n | \r /g," ")};e.patch(t,r);const a={type:"element",tagName:"code",properties:{},children:[r]};return e.patch(t,a),e.applyData(t,a)}function vU (e,t){const r=String(t.identifier).toUpperCase(),a=e.definitionById.get(r);if(!a)return S N(e,t);const o={href:ro (a.url||"")};a.title!==null&&a.title!==void 0&&(o.title=a.title);const s={type:"element",tagName:"a",properties:o,children:e.all(t)};return e.patch(t,s),e.applyData(t,s)}function EU (e,t){const r={href:ro (t.url)};t.title!==null&&t.title!==void 0&&(r.title=t.title);const a={type:"element",tagName:"a",properties:r,children:e.all(t)};return e.patch(t,a),e.applyData(t,a)}function SU (e,t,r){const a=e.all(t),o=r?xU (r):x N(t),s={},u=[];if(typeof t.checked=="boolean"){const m =a[0];let h;m &&m .type==="element"&&m .tagName==="p"?h=m :(h ={type:"element",tagName:"p",properties:{},children:[]},a.unshift(h )),h .children.length>0&&h .children.unshift({type:"text",value:" "}),h .children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),s.className=["task-list-item"]}let c =-1;for(;++c <a.length;){const m =a[c ];(o||c !==0||m .type!=="element"||m .tagName!=="p")&&u.push({type:"text",value: `
` }),m .type==="element"&&m .tagName==="p"&&!o?u.push(...m .children):u.push(m )}const p=a[a.length-1];p&&(o||p.type!=="element"||p.tagName!=="p")&&u.push({type:"text",value: `
` });const f={type:"element",tagName:"li",properties:s,children:u};return e.patch(t,f),e.applyData(t,f)}function xU(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const r=e.children;let a=-1;for(;!t&&++a<r.length;)t=xN(r[a])}return t}function xN(e){const t=e.spread;return t??e.children.length>1}function wU(e,t){const r={},a=e.all(t);let o=-1;for(typeof t.start=="number"&&t.start!==1&&(r.start=t.start);++o<a.length;){const u=a[o];if(u.type==="element"&&u.tagName==="li"&&u.properties&&Array.isArray(u.properties.className)&&u.properties.className.includes("task-list-item")){r.className=["contains-task-list"];break}}const s={type:"element",tagName:t.ordered?"ol":"ul",properties:r,children:e.wrap(a,!0)};return e.patch(t,s),e.applyData(t,s)}function TU(e,t){const r={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function AU(e,t){const r={type:"root",children:e.wrap(e.all(t))};return e.patch(t,r),e.applyData(t,r)}function kU(e,t){const r={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function _U(e,t){const r=e.all(t),a=r.shift(),o=[];if(a){const u={type:"element",tagName:"thead",properties:{},children:e.wrap([a],!0)};e.patch(t.children[0],u),o.push(u)}if(r.length>0){const u={type:"element",tagName:"tbody",properties:{},children:e.wrap(r,!0)},c=Kg(t.children[1]),p=tN(t.children[t.children.length-1]);c&&p&&(u.position={start:c,end:p}),o.push(u)}const s={type:"element",tagName:"table",properties:{},children:e.wrap(o,!0)};return e.patch(t,s),e.applyData(t,s)}function NU(e,t,r){const a=r?r.children:void 0,s=(a?a.indexOf(t):1)===0?"th":"td",u=r&&r.type==="table"?r.align:void 0,c=u?u.length:t.children.length;let p=-1;const f=[];for(;++p<c;){const h=t.children[p],v={},E=u?u[p]:void 0;E&&(v.align=E);let x={type:"element",tagName:s,properties:v,children:[]};h&&(x.children=e.all(h),e.patch(h,x),x=e.applyData(h,x)),f.push(x)}const m={type:"element",tagName:"tr",properties:{},children:e.wrap(f,!0)};return e.patch(t,m),e.applyData(t,m)}function RU(e,t){const r={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}const MA=9,jA=32;function CU(e){const t=String(e),r=/ \r ? \n | \r /g;let a=r.exec(t),o=0;const s=[];for(;a;)s.push(UA(t.slice(o,a.index),o>0,!0),a[0]),o=a.index+a[0].length,a=r.exec(t);return s.push(UA(t.slice(o),o>0,!1)),s.join("")}function UA(e,t,r){let a=0,o=e.length;if(t){let s=e.codePointAt(a);for(;s===MA||s===jA;)a++,s=e.codePointAt(a)}if(r){let s=e.codePointAt(o-1);for(;s===MA||s===jA;)o--,s=e.codePointAt(o-1)}return o>a?e.slice(a,o):""}function IU(e,t){const r={type:"text",value:CU(String(t.value))};return e.patch(t,r),e.applyData(t,r)}function OU(e,t){const r={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,r),e.applyData(t,r)}const LU={blockquote:sU,break:uU,code:cU,delete:dU,emphasis:pU,footnoteReference:fU,heading:gU,html:mU,imageReference:hU,image:bU,inlineCode:yU,linkReference:vU,link:EU,listItem:SU,list:wU,paragraph:TU,root:AU,strong:kU,table:_U,tableCell:RU,tableRow:NU,text:IU,thematicBreak:OU,toml:Eu,yaml:Eu,definition:Eu,footnoteDefinition:Eu};function Eu(){}const wN=-1,pc=0,xl=1,Yu=2,tm=3,nm=4,rm=5,am=6,TN=7,AN=8,FA=typeof self=="object"?self:globalThis,DU=(e,t)=>{const r=(o,s)=>(e.set(s,o),o),a=o=>{if(e.has(o))return e.get(o);const[s,u]=t[o];switch(s){case pc:case wN:return r(u,o);case xl:{const c=r([],o);for(const p of u)c.push(a(p));return c}case Yu:{const c=r({},o);for(const[p,f]of u)c[a(p)]=a(f);return c}case tm:return r(new Date(u),o);case nm:{const{source:c,flags:p}=u;return r(new RegExp(c,p),o)}case rm:{const c=r(new Map,o);for(const[p,f]of u)c.set(a(p),a(f));return c}case am:{const c=r(new Set,o);for(const p of u)c.add(a(p));return c}case TN:{const{name:c,message:p}=u;return r(new FA[c](p),o)}case AN:return r(BigInt(u),o);case"BigInt":return r(Object(BigInt(u)),o);case"ArrayBuffer":return r(new Uint8Array(u).buffer,u);case"DataView":{const{buffer:c}=new Uint8Array(u);return r(new DataView(c),u)}}return r(new FA[s](u),o)};return a},BA=e=>DU(new Map,e)(0),Ui="",{toString:MU}={},{keys:jU}=Object,ml=e=>{const t=typeof e;if(t!=="object"||!e)return[pc,t];const r=MU.call(e).slice(8,-1);switch(r){case"Array":return[xl,Ui];case"Object":return[Yu,Ui];case"Date":return[tm,Ui];case"RegExp":return[nm,Ui];case"Map":return[rm,Ui];case"Set":return[am,Ui];case"DataView":return[xl,r]}return r.includes("Array")?[xl,r]:r.includes("Error")?[TN,r]:[Yu,r]},Su=([e,t])=>e===pc&&(t==="function"||t==="symbol"),UU=(e,t,r,a)=>{const o=(u,c)=>{const p=a.push(u)-1;return r.set(c,p),p},s=u=>{if(r.has(u))return r.get(u);let[c,p]=ml(u);switch(c){case pc:{let m=u;switch(p){case"bigint":c=AN,m=u.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+p);m=null;break;case"undefined":return o([wN],u)}return o([c,m],u)}case xl:{if(p){let v=u;return p==="DataView"?v=new Uint8Array(u.buffer):p==="ArrayBuffer"&&(v=new Uint8Array(
Line truncated
` },{type:"element",tagName:"ol",properties:{},children:e.wrap(c ,!0)},{type:"text",value: `
` }]}}const f c=(function(e){if(e==null)return H U;if(typeof e=="function")return g c(e);if(typeof e=="object")return Array.isArray(e)?PU (e): $ U (e);if(typeof e=="string")return G U(e);throw new Error("Expected function, string, or object as test")});function PU (e){const t=[];let r=-1;for(;++r<e.length;)t[r]=f c(e[r]);return g c(a);function a(...o){let s=-1;for(;++s<t.length;)if(t[s].apply(this,o))return!0;return!1}}function $ U (e){const t=e;return g c(r);function r(a){const o=a;let s;for(s in e)if(o[s]!==t[s])return!1;return!0}}function G U(e){return g c(t);function t(r){return r&&r.type===e}}function g c(e){return t;function t(r,a,o){return!!(V U(r)&&e.call(this,r,typeof a=="number"?a:void 0,o||void 0))}}function H U(){return!0}function V U(e){return e!==null&&typeof e=="object"&&"type"in e}const k N=[],q U=!0,ug =!1,Y U="skip";function _ N(e,t,r,a){let o;typeof t=="function"&&typeof r!="function"?(a=r,r=t):o=t;const s=f c(o),u=a?-1:1;c (e,void 0,[])();function c (p,f,m ){const h =p&&typeof p=="object"?p:{};if(typeof h .type=="string"){const E=typeof h .tagName=="string"?h .tagName:typeof h .name=="string"?h .name:void 0;Object.defineProperty(v,"name",{value:"node ("+(p.type+(E?"<"+E+">":""))+")"})}return v;function v(){let E=k N,x,w ,k;if((!t||s(p,f,m[m .length-1]||void 0))&&(E=W U(r(p,m )),E[0]===ug ))return E;if("children"in p&&p.children){const A=p;if(A.children&&E[0]!==Y U)for(w =(a?A.children.length:-1)+u,k=m .concat(A);w >-1&&w <A.children.length;){const N =A.children[w ];if(x=c(N,w ,k)(),x [0]===ug )return x;w =typeof x [1]=="number"?x [1]:w +u}}return E}}}function W U(e){return Array.isArray(e)?e:typeof e=="number"?[q U,e]:e==null?k N:[e]}function im (e,t,r,a){let o,s,u;typeof t=="function"&&typeof r!="function"?(s=void 0,u=t,o=r):(s=t,u=r,o=a),_ N(e,s,c ,o);function c (p,f){const m =f[f.length-1],h=m?m .children.indexOf(p):void 0;return u(p,h,m )}}const cg ={}.hasOwnProperty,K U={};function X U(e,t){const r=t||K U,a=new Map,o=new Map,s=new Map,u={...LU ,...r.handlers},c ={all:f,applyData:Q U,definitionById:a,footnoteById:o,footnoteCounts:s,footnoteOrder:[],handlers:u,one:p,options:r,patch:Z U,wrap:eF };return im (e,function(m ){if(m .type==="definition"||m .type==="footnoteDefinition"){const h=m .type==="definition"?a:o,v=String(m .identifier).toUpperCase();h .has(v)||h .set(v,m )}}),c ;function p(m,h ){const v=m .type,E=c .handlers[v];if(cg .call(c .handlers,v)&&E)return E(c,m,h );if(c .options.passThrough&&c .options.passThrough.includes(v)){if("children"in m ){const{children:w ,...k}=m ,A=W u(k);return A.children=c .all(m ),A}return W u(m )}return(c .options.unknownHandler||J U)(c,m,h )}function f(m ){const h =[];if("children"in m ){const v=m .children;let E=-1;for(;++E<v.length;){const x=c .one(v[E],m );if(x ){if(E&&v[E-1].type==="break"&&(!Array.isArray(x )&&x .type==="text"&&(x .value=P A(x .value)),!Array.isArray(x )&&x .type==="element")){const w=x .children[0];w &&w .type==="text"&&(w .value=P A(w .value))}Array.isArray(x )?h .push(...x ):h .push(x )}}}return h }}function Z U(e,t){e.position&&(t.position=BM (e))}function Q U(e,t){let r=t;if(e&&e.data){const a=e.data.hName,o=e.data.hChildren,s=e.data.hProperties;if(typeof a=="string")if(r.type==="element")r.tagName=a;else{const u="children"in r?r.children:[r];r={type:"element",tagName:a,properties:{},children:u}}r.type==="element"&&s&&Object.assign(r.properties,W u(s)),"children"in r&&r.children&&o!==null&&o!==void 0&&(r.children=o)}return r}function J U(e,t){const r=t.data||{},a="value"in t&&!(cg .call(r,"hProperties")||cg .call(r,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,a),e.applyData(t,a)}function eF (e,t){const r=[];let a=-1;for(t&&r.push({type:"text",value:`
` });++a<e.length;)a&&r.push({type:"text",value: `
` }),r.push(e[a]);return t&&e.length>0&&r.push({type:"text",value: `
` }),r}function _ A(e){let t=0,r=e.charCodeAt(t);for(;r===9||r===32;)t++,r=e.charCodeAt(t);return e.slice(t)}function N A(e,t){const r=l U(e,t),a=r.one(e,void 0),o=Zj (r),s=Array.isArray(a)?{type:"root",children:a}:a||{type:"root",children:[]};return o&&s.children.push({type:"text",value: `
` },o),s}function pU(e,t){return e&&"run"in e?async function(r,a){const o=NA(r,{file:a,...t});await e.run(o,a)}:function(r,a){return NA(r,{file:a,...e||t})}}function RA(e){if(e)throw e}var Ef,CA;function fU(){if(CA)return Ef;CA=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,r=Object.defineProperty,a=Object.getOwnPropertyDescriptor,o=function(f){return typeof Array.isArray=="function"?Array.isArray(f):t.call(f)==="[object Array]"},s=function(f){if(!f||t.call(f)!=="[object Object]")return!1;var h=e.call(f,"constructor"),b=f.constructor&&f.constructor.prototype&&e.call(f.constructor.prototype,"isPrototypeOf");if(f.constructor&&!h&&!b)return!1;var v;for(v in f);return typeof v>"u"||e.call(f,v)},u=function(f,h){r&&h.name==="__proto__"?r(f,h.name,{enumerable:!0,configurable:!0,value:h.newValue,writable:!0}):f[h.name]=h.newValue},d=function(f,h){if(h==="__proto__")if(e.call(f,h)){if(a)return a(f,h).value}else return;return f[h]};return Ef=function p(){var f,h,b,v,E,w,T=arguments[0],k=1,A=arguments.length,_=!1;for(typeof T=="boolean"&&(_=T,T=arguments[1]||{},k=2),(T==null||typeof T!="object"&&typeof T!="function")&&(T={});k<A;++k)if(f=arguments[k],f!=null)for(h in f)b=d(T,h),v=d(f,h),T!==v&&(_&&v&&(s(v)||(E=o(v)))?(E?(E=!1,w=b&&o(b)?b:[]):w=b&&s(b)?b:{},u(T,{name:h,newValue:p(_,w,v)})):typeof v<"u"&&u(T,{name:h,newValue:v}));return T},Ef}var gU=fU();const vf=Qu(gU);function eg(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function mU(){const e=[],t={run:r,use:a};return t;function r(...o){let s=-1;const u=o.pop();if(typeof u!="function")throw new TypeError("Expected function as last argument, not "+u);d(null,...o);function d(p,...f){const h=e[++s];let b=-1;if(p){u(p);return}for(;++b<o.length;)(f[b]===null||f[b]===void 0)&&(f[b]=o[b]);o=f,h?hU(h,d)(...f):u(null,...f)}}function a(o){if(typeof o!="function")throw new TypeError("Expected ` middelware ` to be a function, not "+o);return e.push(o),t}}function hU(e,t){let r;return a;function a(...u){const d=e.length>u.length;let p;d&&u.push(o);try{p=e.apply(this,u)}catch(f){const h=f;if(d&&r)throw h;return o(h)}d||(p&&p.then&&typeof p.then=="function"?p.then(s,o):p instanceof Error?o(p):s(p))}function o(u,...d){r||(r=!0,t(u,...d))}function s(u){o(null,u)}}const Qn={basename:bU,dirname:yU,extname:EU,join:vU,sep:"/"};function bU(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');Ol(e);let r=0,a=-1,o=e.length,s;if(t===void 0||t.length===0||t.length>e.length){for(;o--;)if(e.codePointAt(o)===47){if(s){r=o+1;break}}else a<0&&(s=!0,a=o+1);return a<0?"":e.slice(r,a)}if(t===e)return"";let u=-1,d=t.length-1;for(;o--;)if(e.codePointAt(o)===47){if(s){r=o+1;break}}else u<0&&(s=!0,u=o+1),d>-1&&(e.codePointAt(o)===t.codePointAt(d--)?d<0&&(a=o):(d=-1,a=u));return r===a?a=u:a<0&&(a=e.length),e.slice(r,a)}function yU(e){if(Ol(e),e.length===0)return".";let t=-1,r=e.length,a;for(;--r;)if(e.codePointAt(r)===47){if(a){t=r;break}}else a||(a=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function EU(e){Ol(e);let t=e.length,r=-1,a=0,o=-1,s=0,u;for(;t--;){const d=e.codePointAt(t);if(d===47){if(u){a=t+1;break}continue}r<0&&(u=!0,r=t+1),d===46?o<0?o=t:s!==1&&(s=1):o>-1&&(s=-1)}return o<0||r<0||s===0||s===1&&o===r-1&&o===a+1?"":e.slice(o,r)}function vU(...e){let t=-1,r;for(;++t<e.length;)Ol(e[t]),e[t]&&(r=r===void 0?e[t]:r+"/"+e[t]);return r===void 0?".":SU(r)}function SU(e){Ol(e);const t=e.codePointAt(0)===47;let r=xU(e,!t);return r.length===0&&!t&&(r="."),r.length>0&&e.codePointAt(e.length-1)===47&&(r+="/"),t?"/"+r:r}function xU(e,t){let r="",a=0,o=-1,s=0,u=-1,d,p;for(;++u<=e.length;){if(u<e.length)d=e.codePointAt(u);else{if(d===47)break;d=47}if(d===47){if(!(o===u-1||s===1))if(o!==u-1&&s===2){if(r.length<2||a!==2||r.codePointAt(r.length-1)!==46||r.codePointAt(r.length-2)!==46){if(r.length>2){if(p=r.lastIndexOf("/"),p!==r.length-1){p<0?(r="",a=0):(r=r.slice(0,p),a=r.length-1-r.lastIndexOf("/")),o=u,s=0;continue}}else if(r.length>0){r="",a=0,o=u,s=0;continue}}t&&(r=r.length>0?r+"/..":"..",a=2)}else r.length>0?r+="/"+e.slice(o+1,u):r=e.slice(o+1,u),a=u-o-1;o=u,s=0}else d===46&&s>-1?s++:s=-1}return r}function Ol(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const wU={cwd:TU};function TU(){return"/"}function tg(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function AU(e){if(typeof e=="string")e=new URL(e);else if(!tg(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received ` ' + e + "`" ) ; throw t . code = "ERR_INVALID_ARG_TYPE" , t } if ( e . protocol !== "file:" ) { const t = new TypeError ( "The URL must be of scheme file" ) ; throw t . code = "ERR_INVALID_URL_SCHEME" , t } return kU ( e ) } function kU ( e ) { if ( e . hostname !== "" ) { cons Line truncated
` :" ")+s.indentLines(s.containerFlow(a,d .current()),t?p N:mF ))),f(),p}}function mF (e,t,r){return t===0?e:p N(e,t,r)}function p N(e,t,r){return(r?"":" ")+e}const hF =["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];f N.peek=SF ;function bF (){return{canContainEols:["delete"],enter:{strikethrough:EF },exit:{strikethrough:vF }}}function yF (){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:hF }],handlers:{delete:f N}}}function EF (e){this.enter({type:"delete",children:[]},e)}function vF (e){this.exit(e)}function f N(e,t,r,a){const o=r.createTracker(a),s=r.enter("strikethrough");let u=o.move("~~");return u+=r.containerPhrasing(e,{...o.current(),before:u,after:"~"}),u+=o.move("~~"),s(),u}function SF (){return"~"}function xF (e){return e.length}function wF (e,t){const r=t||{},a=(r.align||[]).concat(),o=r.stringLength||xF ,s=[],u=[],d =[],p=[];let f=0,h =-1;for(;++h <e.length;){const T =[],k=[];let A=-1;for(e[h ].length>f&&(f=e[h ].length);++A<e[h ].length;){const _=TF (e[h ][A]);if(r.alignDelimiters!==!1){const R =o(_ );k[A]=R ,(p[A]===void 0||R >p[A])&&(p[A]=R )}T .push(_ )}u[h ]=T,d[h ]=k}let b =-1;if(typeof a=="object"&&"length"in a)for(;++b <f;)s[b ]=U A(a[b ]);else{const T=U A(a);for(;++b <f;)s[b ]=T}b =-1;const v=[],E=[];for(;++b <f;){const T =s[b ];let k="",A="";T ===99?(k=":",A=":"):T ===108?k=":":T ===114&&(A=":");let _ =r.alignDelimiters===!1?1:Math.max(1,p[b ]-k.length-A.length);const R =k+"-".repeat(_ )+A;r.alignDelimiters!==!1&&(_ =k.length+_ +A.length,_ >p[b ]&&(p[b ]=_ ),E[b ]=_ ),v[b ]=R }u.splice(1,0,v),d .splice(1,0,E),h =-1;const w =[];for(;++h <u.length;){const T =u[h ],k=d[h ];b =-1;const A=[];for(;++b <f;){const _=T[b ]||"";let R ="",L ="";if(r.alignDelimiters!==!1){const j =p[b ]-(k[b ]||0),D =s[b ];D ===114?R =" ".repeat(j ):D ===99?j %2?(R =" ".repeat(j /2+.5),L =" ".repeat(j /2-.5)):(R =" ".repeat(j /2),L=R ):L =" ".repeat(j )}r.delimiterStart!==!1&&!b &&A.push("|"),r.padding!==!1&&!(r.alignDelimiters===!1&&_ ==="")&&(r.delimiterStart!==!1||b )&&A.push(" "),r.alignDelimiters!==!1&&A.push(R ),A.push(_ ),r.alignDelimiters!==!1&&A.push(L ),r.padding!==!1&&A.push(" "),(r.delimiterEnd!==!1||b !==f-1)&&A.push("|")}w .push(r.delimiterEnd===!1?A.join("").replace(/ + $ /,""):A.join(""))}return w .join( `
` )}function TF (e){return e==null?"":String(e)}function U A(e){const t=typeof e=="string"?e.codePointAt(0):0;return t===67||t===99?99:t===76||t===108?108:t===82||t===114?114:0}function AF (e,t,r,a){const o=r.enter("blockquote"),s=r.createTracker(a);s.move("> "),s.shift(2);const u=r.indentLines(r.containerFlow(e,s.current()),kF );return o(),u}function kF (e,t,r){return">"+(r?"":" ")+e}function _F (e,t){return F A(e,t.inConstruct,!0)&&!F A(e,t.notInConstruct,!1)}function F A(e,t,r){if(typeof t=="string"&&(t=[t]),!t||t.length===0)return r;let a=-1;for(;++a<t.length;)if(e.includes(t[a]))return!0;return!1}function B A(e,t,r,a){let o=-1;for(;++o<r.unsafe.length;)if(r.unsafe[o].character=== `
` &&_F (r.stack,r.unsafe[o]))return/[ \t ]/.test(a.before)?"":" ";return ` \ \
` }function NF (e,t){const r=String(e);let a=r.indexOf(t),o=a,s=0,u=0;if(typeof t!="string")throw new TypeError("Expected substring");for(;a!==-1;)a===o?++s>u&&(u=s):s=1,o=a+t.length,a=r.indexOf(t,o);return u}function RF (e,t){return!!(t.options.fences===!1&&e.value&&!e.lang&&/[^ \r \n ]/.test(e.value)&&!/^[ \t ]*(?:[ \r \n ]| $ )|(?:^|[ \r \n ])[ \t ]* $ /.test(e.value))}function CF (e){const t=e.options.fence||" ` ";if(t!==" ` "&&t!=="~")throw new Error("Cannot serialize code with ` "+t+" ` for ` options . fence ` , expected ` ` ` ` ` or ` ~ ` ");return t}function OF (e,t,r,a){const o=CF (r),s=e.value||" ",u=o===" ` "?"GraveAccent":"Tilde";if(RF (e,r)){const b =r.enter("codeIndented"),v=r.indentLines(s,IF );return b (),v}const d =r.createTracker(a),p=o.repeat(Math.max(NF (s,o)+1,3)),f=r.enter("codeFenced");let h=d .move(p);if(e.lang){const b =r.enter( ` codeFencedLang$ { u } ` );h +=d .move(r.safe(e.lang,{before:h ,after:" ",encode:[" ` "],...d .current()})),b ()}if(e.lang&&e.meta){const b =r.enter(`codeFencedMeta${u}`);h +=d .move(" " ) , h += d . move ( r . safe ( e . meta , { before : h , after : `
` ,encode:[" ` " ] , ... d . current ( ) } ) ) , b ( ) } return h += d . move ( `
` ),s&&(h +=d .move(s+ `
` )),h +=d .move(p),f(),h }function IF (e,t,r){return(r?"":" ")+e}function Wg (e){const t=e.options.quote||'"';if(t!=='"'&&t!=="'")throw new Error("Cannot serialize title with ` "+t+" ` for ` options . quote ` , expected ` \ "`, or `'`" ) ; return t } function LF ( e , t , r , a ) { const o = Wg ( r ) , s = o === '"' ? "Quote" : "Apostrophe" , u = r . enter ( "definition" ) ; let d = r . enter ( "label" ) ; const p = r . createTracker ( a ) ; let f = p . move ( "[" ) ; return f += p . move ( r . safe ( r . associationId ( e ) , { before : f , after : "]" , ... p . current ( ) } ) ) , f += p . move ( "]: " ) , d ( ) , ! e . url || /[\0- \u007F]/ . test ( e . url ) ? ( d = r . enter ( "destinationLiteral" ) , f += p . move ( "<" ) , f += p . move ( r . safe ( e . url , { before : f , after : ">" , ... p . current ( ) } ) ) , f += p . move ( ">" ) ) : ( d = r . enter ( "destinationRaw" ) , f += p . move ( r . safe ( e . url , { before : f , after : e . title ? " " : `
` ,...p.current()}))),d (),e.title&&(d =r.enter( ` title$ { s } ` ),f+=p.move(" "+o),f+=p.move(r.safe(e.title,{before:f,after:o,...p.current()})),f+=p.move(o),d ()),u(),f}function DF (e){const t=e.options.emphasis||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize emphasis with ` "+t+" ` for ` options . emphasis ` , expected ` * ` , or ` _ ` ");return t}function w l(e){return"&#x"+e.toString(16).toUpperCase()+";"}function $ u(e,t,r){const a=W i(e),o=W i(t);return a===void 0?o===void 0?r==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:o===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:a===1?o===void 0?{inside:!1,outside:!1}:o===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:o===void 0?{inside:!1,outside:!1}:o===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}g N.peek=MF ;function g N(e,t,r,a){const o=DF (r),s=r.enter("emphasis"),u=r.createTracker(a),d =u.move(o);let p=u.move(r.containerPhrasing(e,{after:o,before:d ,...u.current()}));const f=p.charCodeAt(0),h= $ u(a.before.charCodeAt(a.before.length-1),f,o);h .inside&&(p=w l(f)+p.slice(1));const b =p.charCodeAt(p.length-1),v= $ u(a.after.charCodeAt(0),b ,o);v.inside&&(p=p.slice(0,-1)+w l(b ));const E=u.move(o);return s(),r.attentionEncodeSurroundingInfo={after:v.outside,before:h .outside},d +p+E}function MF (e,t,r){return r.options.emphasis||"*"}function jF (e,t){let r=!1;return qg (e,function(a){if("value"in a&&/ \r ? \n | \r /.test(a.value)||a.type==="break")return r=!0,Qf }),!!((!e.depth||e.depth<3)&&z g(e)&&(t.options.setext||r))}function UF (e,t,r,a){const o=Math.max(Math.min(6,e.depth||1),1),s=r.createTracker(a);if(jF (e,r)){const h =r.enter("headingSetext"),b =r.enter("phrasing"),v=r.containerPhrasing(e,{...s.current(),before: `
` }),r}function P A(e){let t=0,r=e.charCodeAt(t);for(;r===9||r===32;)t++,r=e.charCodeAt(t);return e.slice(t)}function $ A(e,t){const r=X U(e,t),a=r.one(e,void 0),o=zU (r),s=Array.isArray(a)?{type:"root",children:a}:a||{type:"root",children:[]};return o&&s.children.push({type:"text",value: `
` },o),s}function tF(e,t){return e&&"run"in e?async function(r,a){const o= $ A(r,{file:a,...t});await e.run(o,a)}:function(r,a){return $ A(r,{file:a,...e||t})}}function GA(e){if(e)throw e}var _f,HA;function nF(){if(HA)return _f;HA=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,r=Object.defineProperty,a=Object.getOwnPropertyDescriptor,o=function(f){return typeof Array.isArray=="function"?Array.isArray(f):t.call(f)==="[object Array]"},s=function(f){if(!f||t.call(f)!=="[object Object]")return!1;var m=e.call(f,"constructor"),h=f.constructor&&f.constructor.prototype&&e.call(f.constructor.prototype,"isPrototypeOf");if(f.constructor&&!m&&!h)return!1;var v;for(v in f);return typeof v>"u"||e.call(f,v)},u=function(f,m){r&&m.name==="__proto__"?r(f,m.name,{enumerable:!0,configurable:!0,value:m.newValue,writable:!0}):f[m.name]=m.newValue},c=function(f,m){if(m==="__proto__")if(e.call(f,m)){if(a)return a(f,m).value}else return;return f[m]};return _f=function p(){var f,m,h,v,E,x,w=arguments[0],k=1,A=arguments.length,N=!1;for(typeof w=="boolean"&&(N=w,w=arguments[1]||{},k=2),(w==null||typeof w!="object"&&typeof w!="function")&&(w={});k<A;++k)if(f=arguments[k],f!=null)for(m in f)h=c(w,m),v=c(f,m),w!==v&&(N&&v&&(s(v)||(E=o(v)))?(E?(E=!1,x=h&&o(h)?h:[]):x=h&&s(h)?h:{},u(w,{name:m,newValue:p(N,x,v)})):typeof v<"u"&&u(w,{name:m,newValue:v}));return w},_f}var rF=nF();const Nf=ic(rF);function dg(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function aF(){const e=[],t={run:r,use:a};return t;function r(...o){let s=-1;const u=o.pop();if(typeof u!="function")throw new TypeError("Expected function as last argument, not "+u);c(null,...o);function c(p,...f){const m=e[++s];let h=-1;if(p){u(p);return}for(;++h<o.length;)(f[h]===null||f[h]===void 0)&&(f[h]=o[h]);o=f,m?iF(m,c)(...f):u(null,...f)}}function a(o){if(typeof o!="function")throw new TypeError("Expected ` middelware ` to be a function, not "+o);return e.push(o),t}}function iF(e,t){let r;return a;function a(...u){const c=e.length>u.length;let p;c&&u.push(o);try{p=e.apply(this,u)}catch(f){const m=f;if(c&&r)throw m;return o(m)}c||(p&&p.then&&typeof p.then=="function"?p.then(s,o):p instanceof Error?o(p):s(p))}function o(u,...c){r||(r=!0,t(u,...c))}function s(u){o(null,u)}}const Jn={basename:oF,dirname:lF,extname:sF,join:uF,sep:"/"};function oF(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');Ul(e);let r=0,a=-1,o=e.length,s;if(t===void 0||t.length===0||t.length>e.length){for(;o--;)if(e.codePointAt(o)===47){if(s){r=o+1;break}}else a<0&&(s=!0,a=o+1);return a<0?"":e.slice(r,a)}if(t===e)return"";let u=-1,c=t.length-1;for(;o--;)if(e.codePointAt(o)===47){if(s){r=o+1;break}}else u<0&&(s=!0,u=o+1),c>-1&&(e.codePointAt(o)===t.codePointAt(c--)?c<0&&(a=o):(c=-1,a=u));return r===a?a=u:a<0&&(a=e.length),e.slice(r,a)}function lF(e){if(Ul(e),e.length===0)return".";let t=-1,r=e.length,a;for(;--r;)if(e.codePointAt(r)===47){if(a){t=r;break}}else a||(a=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function sF(e){Ul(e);let t=e.length,r=-1,a=0,o=-1,s=0,u;for(;t--;){const c=e.codePointAt(t);if(c===47){if(u){a=t+1;break}continue}r<0&&(u=!0,r=t+1),c===46?o<0?o=t:s!==1&&(s=1):o>-1&&(s=-1)}return o<0||r<0||s===0||s===1&&o===r-1&&o===a+1?"":e.slice(o,r)}function uF(...e){let t=-1,r;for(;++t<e.length;)Ul(e[t]),e[t]&&(r=r===void 0?e[t]:r+"/"+e[t]);return r===void 0?".":cF(r)}function cF(e){Ul(e);const t=e.codePointAt(0)===47;let r=dF(e,!t);return r.length===0&&!t&&(r="."),r.length>0&&e.codePointAt(e.length-1)===47&&(r+="/"),t?"/"+r:r}function dF(e,t){let r="",a=0,o=-1,s=0,u=-1,c,p;for(;++u<=e.length;){if(u<e.length)c=e.codePointAt(u);else{if(c===47)break;c=47}if(c===47){if(!(o===u-1||s===1))if(o!==u-1&&s===2){if(r.length<2||a!==2||r.codePointAt(r.length-1)!==46||r.codePointAt(r.length-2)!==46){if(r.length>2){if(p=r.lastIndexOf("/"),p!==r.length-1){p<0?(r="",a=0):(r=r.slice(0,p),a=r.length-1-r.lastIndexOf("/")),o=u,s=0;continue}}else if(r.length>0){r="",a=0,o=u,s=0;continue}}t&&(r=r.length>0?r+"/..":"..",a=2)}else r.length>0?r+="/"+e.slice(o+1,u):r=e.slice(o+1,u),a=u-o-1;o=u,s=0}else c===46&&s>-1?s++:s=-1}return r}function Ul(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const pF={cwd:fF};function fF(){return"/"}function pg(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function gF(e){if(typeof e=="string")e=new URL(e);else if(!pg(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received ` ' + e + "`" ) ; throw t . code = "ERR_INVALID_ARG_TYPE" , t } if ( e . protocol !== "file:" ) { const t = new TypeError ( "The URL must be of scheme file" ) ; throw t . code = "ERR_INVALID_URL_SCHEME" , t } return mF ( e ) } function mF ( e ) { if ( e . hostname !== "" ) { cons Line truncated
` :" ")+s.indentLines(s.containerFlow(a,c .current()),t?O N:aB ))),f(),p}}function aB (e,t,r){return t===0?e:O N(e,t,r)}function O N(e,t,r){return(r?"":" ")+e}const iB =["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];L N.peek=cB ;function oB (){return{canContainEols:["delete"],enter:{strikethrough:sB },exit:{strikethrough:uB }}}function lB (){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:iB }],handlers:{delete:L N}}}function sB (e){this.enter({type:"delete",children:[]},e)}function uB (e){this.exit(e)}function L N(e,t,r,a){const o=r.createTracker(a),s=r.enter("strikethrough");let u=o.move("~~");return u+=r.containerPhrasing(e,{...o.current(),before:u,after:"~"}),u+=o.move("~~"),s(),u}function cB (){return"~"}function dB (e){return e.length}function pB (e,t){const r=t||{},a=(r.align||[]).concat(),o=r.stringLength||dB ,s=[],u=[],c =[],p=[];let f=0,m =-1;for(;++m <e.length;){const w =[],k=[];let A=-1;for(e[m ].length>f&&(f=e[m ].length);++A<e[m ].length;){const N=fB (e[m ][A]);if(r.alignDelimiters!==!1){const _ =o(N );k[A]=_ ,(p[A]===void 0||_ >p[A])&&(p[A]=_ )}w .push(N )}u[m ]=w,c[m ]=k}let h =-1;if(typeof a=="object"&&"length"in a)for(;++h <f;)s[h ]=Z A(a[h ]);else{const w=Z A(a);for(;++h <f;)s[h ]=w}h =-1;const v=[],E=[];for(;++h <f;){const w =s[h ];let k="",A="";w ===99?(k=":",A=":"):w ===108?k=":":w ===114&&(A=":");let N =r.alignDelimiters===!1?1:Math.max(1,p[h ]-k.length-A.length);const _ =k+"-".repeat(N )+A;r.alignDelimiters!==!1&&(N =k.length+N +A.length,N >p[h ]&&(p[h ]=N ),E[h ]=N ),v[h ]=_ }u.splice(1,0,v),c .splice(1,0,E),m =-1;const x =[];for(;++m <u.length;){const w =u[m ],k=c[m ];h =-1;const A=[];for(;++h <f;){const N=w[h ]||"";let _ ="",D ="";if(r.alignDelimiters!==!1){const U =p[h ]-(k[h ]||0),L =s[h ];L ===114?_ =" ".repeat(U ):L ===99?U %2?(_ =" ".repeat(U /2+.5),D =" ".repeat(U /2-.5)):(_ =" ".repeat(U /2),D=_ ):D =" ".repeat(U )}r.delimiterStart!==!1&&!h &&A.push("|"),r.padding!==!1&&!(r.alignDelimiters===!1&&N ==="")&&(r.delimiterStart!==!1||h )&&A.push(" "),r.alignDelimiters!==!1&&A.push(_ ),A.push(N ),r.alignDelimiters!==!1&&A.push(D ),r.padding!==!1&&A.push(" "),(r.delimiterEnd!==!1||h !==f-1)&&A.push("|")}x .push(r.delimiterEnd===!1?A.join("").replace(/ + $ /,""):A.join(""))}return x .join( `
` )}function fB (e){return e==null?"":String(e)}function Z A(e){const t=typeof e=="string"?e.codePointAt(0):0;return t===67||t===99?99:t===76||t===108?108:t===82||t===114?114:0}function gB (e,t,r,a){const o=r.enter("blockquote"),s=r.createTracker(a);s.move("> "),s.shift(2);const u=r.indentLines(r.containerFlow(e,s.current()),mB );return o(),u}function mB (e,t,r){return">"+(r?"":" ")+e}function hB (e,t){return Q A(e,t.inConstruct,!0)&&!Q A(e,t.notInConstruct,!1)}function Q A(e,t,r){if(typeof t=="string"&&(t=[t]),!t||t.length===0)return r;let a=-1;for(;++a<t.length;)if(e.includes(t[a]))return!0;return!1}function J A(e,t,r,a){let o=-1;for(;++o<r.unsafe.length;)if(r.unsafe[o].character=== `
` &&hB (r.stack,r.unsafe[o]))return/[ \t ]/.test(a.before)?"":" ";return ` \ \
` }function bB (e,t){const r=String(e);let a=r.indexOf(t),o=a,s=0,u=0;if(typeof t!="string")throw new TypeError("Expected substring");for(;a!==-1;)a===o?++s>u&&(u=s):s=1,o=a+t.length,a=r.indexOf(t,o);return u}function yB (e,t){return!!(t.options.fences===!1&&e.value&&!e.lang&&/[^ \r \n ]/.test(e.value)&&!/^[ \t ]*(?:[ \r \n ]| $ )|(?:^|[ \r \n ])[ \t ]* $ /.test(e.value))}function vB (e){const t=e.options.fence||" ` ";if(t!==" ` "&&t!=="~")throw new Error("Cannot serialize code with ` "+t+" ` for ` options . fence ` , expected ` ` ` ` ` or ` ~ ` ");return t}function EB (e,t,r,a){const o=vB (r),s=e.value||" ",u=o===" ` "?"GraveAccent":"Tilde";if(yB (e,r)){const h =r.enter("codeIndented"),v=r.indentLines(s,SB );return h (),v}const c =r.createTracker(a),p=o.repeat(Math.max(bB (s,o)+1,3)),f=r.enter("codeFenced");let m=c .move(p);if(e.lang){const h =r.enter( ` codeFencedLang$ { u } ` );m +=c .move(r.safe(e.lang,{before:m ,after:" ",encode:[" ` "],...c .current()})),h ()}if(e.lang&&e.meta){const h =r.enter(`codeFencedMeta${u}`);m +=c .move(" " ) , m += c . move ( r . safe ( e . meta , { before : m , after : `
` ,encode:[" ` " ] , ... c . current ( ) } ) ) , h ( ) } return m += c . move ( `
` ),s&&(m +=c .move(s+ `
` )),m +=c .move(p),f(),m }function SB (e,t,r){return(r?"":" ")+e}function lm (e){const t=e.options.quote||'"';if(t!=='"'&&t!=="'")throw new Error("Cannot serialize title with ` "+t+" ` for ` options . quote ` , expected ` \ "`, or `'`" ) ; return t } function xB ( e , t , r , a ) { const o = lm ( r ) , s = o === '"' ? "Quote" : "Apostrophe" , u = r . enter ( "definition" ) ; let c = r . enter ( "label" ) ; const p = r . createTracker ( a ) ; let f = p . move ( "[" ) ; return f += p . move ( r . safe ( r . associationId ( e ) , { before : f , after : "]" , ... p . current ( ) } ) ) , f += p . move ( "]: " ) , c ( ) , ! e . url || /[\0- \u007F]/ . test ( e . url ) ? ( c = r . enter ( "destinationLiteral" ) , f += p . move ( "<" ) , f += p . move ( r . safe ( e . url , { before : f , after : ">" , ... p . current ( ) } ) ) , f += p . move ( ">" ) ) : ( c = r . enter ( "destinationRaw" ) , f += p . move ( r . safe ( e . url , { before : f , after : e . title ? " " : `
` ,...p.current()}))),c (),e.title&&(c =r.enter( ` title$ { s } ` ),f+=p.move(" "+o),f+=p.move(r.safe(e.title,{before:f,after:o,...p.current()})),f+=p.move(o),c ()),u(),f}function wB (e){const t=e.options.emphasis||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize emphasis with ` "+t+" ` for ` options . emphasis ` , expected ` * ` , or ` _ ` ");return t}function R l(e){return"&#x"+e.toString(16).toUpperCase()+";"}function K u(e,t,r){const a=Q i(e),o=Q i(t);return a===void 0?o===void 0?r==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:o===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:a===1?o===void 0?{inside:!1,outside:!1}:o===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:o===void 0?{inside:!1,outside:!1}:o===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}D N.peek=TB ;function D N(e,t,r,a){const o=wB (r),s=r.enter("emphasis"),u=r.createTracker(a),c =u.move(o);let p=u.move(r.containerPhrasing(e,{after:o,before:c ,...u.current()}));const f=p.charCodeAt(0),m=K u(a.before.charCodeAt(a.before.length-1),f,o);m .inside&&(p=R l(f)+p.slice(1));const h =p.charCodeAt(p.length-1),v=K u(a.after.charCodeAt(0),h ,o);v.inside&&(p=p.slice(0,-1)+R l(h ));const E=u.move(o);return s(),r.attentionEncodeSurroundingInfo={after:v.outside,before:m .outside},c +p+E}function TB (e,t,r){return r.options.emphasis||"*"}function AB (e,t){let r=!1;return im (e,function(a){if("value"in a&&/ \r ? \n | \r /.test(a.value)||a.type==="break")return r=!0,ug }),!!((!e.depth||e.depth<3)&&J g(e)&&(t.options.setext||r))}function kB (e,t,r,a){const o=Math.max(Math.min(6,e.depth||1),1),s=r.createTracker(a);if(AB (e,r)){const m =r.enter("headingSetext"),h =r.enter("phrasing"),v=r.containerPhrasing(e,{...s.current(),before: `
` ,after: `
` });return b (),h (),v+ `
` });return h (),m (),v+ `
` +(o===1?"=":"-").repeat(v.length-(Math.max(v.lastIndexOf(" \r "),v.lastIndexOf( `
` ))+1))}const u="#".repeat(o),d =r.enter("headingAtx"),p=r.enter("phrasing");s.move(u+" ");let f=r.containerPhrasing(e,{before:"# ",after: `
` ,...s.current()});return/^[ \t ]/.test(f)&&(f=wl(f.charCodeAt(0))+f.slice(1)),f=f?u+" "+f:u,r.options.closeAtx&&(f+=" "+u),p(),d(),f}mN.peek=FF;function mN(e){return e.value||""}function FF(){return"<"}hN.peek=BF;function hN(e,t,r,a){const o=Wg(r),s=o==='"'?"Quote":"Apostrophe",u=r.enter("image");let d=r.enter("label");const p=r.createTracker(a);let f=p.move("![");return f+=p.move(r.safe(e.alt,{before:f,after:"]",...p.current()})),f+=p.move("]("),d(),!e.url&&e.title||/[ \0 - \u 007F]/.test(e.url)?(d=r.enter("destinationLiteral"),f+=p.move("<"),f+=p.move(r.safe(e.url,{before:f,after:">",...p.current()})),f+=p.move(">")):(d=r.enter("destinationRaw"),f+=p.move(r.safe(e.url,{before:f,after:e.title?" ":")",...p.current()}))),d(),e.title&&(d=r.enter( ` title$ { s } ` ),f+=p.move(" "+o),f+=p.move(r.safe(e.title,{before:f,after:o,...p.current()})),f+=p.move(o),d()),f+=p.move(")"),u(),f}function BF(){return"!"}bN.peek=zF;function bN(e,t,r,a){const o=e.referenceType,s=r.enter("imageReference");let u=r.enter("label");const d=r.createTracker(a);let p=d.move("![");const f=r.safe(e.alt,{before:p,after:"]",...d.current()});p+=d.move(f+"]["),u();const h=r.stack;r.stack=[],u=r.enter("reference");const b=r.safe(r.associationId(e),{before:p,after:"]",...d.current()});return u(),r.stack=h,s(),o==="full"||!f||f!==b?p+=d.move(b+"]"):o==="shortcut"?p=p.slice(0,-1):p+=d.move("]"),p}function zF(){return"!"}yN.peek=PF;function yN(e,t,r){let a=e.value||"",o=" ` ",s=-1;for(;new RegExp(" ( ^ | [ ^ ` ])"+o+"([^ ` ] | $ ) ").test(a);)o+=" ` ";for(/[^ \r \n ]/.test(a)&&(/^[ \r \n ]/.test(a)&&/[ \r \n ] $ /.test(a)||/^ ` | ` $ /.test(a))&&(a=" "+a+" ");++s<r.unsafe.length;){const u=r.unsafe[s],d=r.compilePattern(u);let p;if(u.atBreak)for(;p=d.exec(a);){let f=p.index;a.charCodeAt(f)===10&&a.charCodeAt(f-1)===13&&f--,a=a.slice(0,f)+" "+a.slice(p.index+1)}}return o+a+o}function PF(){return" ` "}function EN(e,t){const r=zg(e);return!!(!t.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type===" text "&&(r===e.url||" mailto : "+r===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}vN.peek=$F;function vN(e,t,r,a){const o=Wg(r),s=o==='" ' ? "Quote" : "Apostrophe" , u = r . createTracker ( a ) ; let d , p ; if ( EN ( e , r ) ) { const h = r . stack ; r . stack = [ ] , d = r . enter ( "autolink" ) ; let b = u . move ( "<" ) ; return b += u . move ( r . containerPhrasing ( e , { before : b , after : ">" , ... u . current ( ) } ) ) , b += u . move ( ">" ) , d ( ) , r . stack = h , b } d = r . enter ( "link" ) , p = r . enter ( "label" ) ; let f = u . move ( "[" ) ; return f += u . move ( r . containerPhrasing ( e , { before : f , after : "](" , ... u . current ( ) } ) ) , f += u . move ( "](" ) , p ( ) , ! e . url && e . title || /[\0- \u007F]/ . test ( e . url ) ? ( p = r . enter ( "destinationLiteral" ) , f += u . move ( "<" ) , f += u . move ( r . safe ( e . url , { before : f , after : ">" , ... u . current ( ) } ) ) , f += u . move ( ">" ) ) : ( p = r . enter ( "destinationRaw" ) , f += u . move ( r . safe ( e . url , { before : f , after : e . title ? " " : ")" , ... u . current ( ) } ) ) ) , p ( ) , e . title && ( p = r . enter ( ` title ${ s } ` ) , f += u . move ( " " + o ) , f += u . move ( r . safe ( e . title , { before : f , after : o , ... u . current ( ) } ) ) , f += u . move ( o ) , p ( ) ) , f += u . move ( ")" ) , d ( ) , f } function $F ( e , t , r ) { return EN ( e , r ) ? "<" : "[" } SN . peek = GF ; function SN ( e , t , r , a ) { const o = e . referenceType , s = r . enter ( "linkReference" ) ; let u = r . enter ( "label" ) ; const d = r . createTracker ( a ) ; let p = d . move ( "[" ) ; const f = r . containerPhrasing ( e , { before : p , after : "]" , ... d . current ( ) } ) ; p += d . move ( f + "][" ) , u ( ) ; const h = r . stack ; r . stack = [ ] , u = r . enter ( "reference" ) ; const b = r . safe ( r . associationId ( e ) , { before : p , after : "]" , ... d . current ( ) } ) ; return u ( ) , r . stack = h , s ( ) , o === "full" || ! f || f !== b ? p += d . move ( b + "]" ) : o === "shortcut" ? p = p . slice ( 0 , - 1 ) : p += d . move ( "]" ) , p } function GF ( ) { return "[" } function Kg ( e ) { const t = e . options . bullet || "*" ; if ( t !== "*" && t !== "+" && t !== "-" ) throw new Error ( "Cannot serialize items with `" + t + "` for `options.bullet`, expected `*`, `+`, or `-`" ) ; return t } function HF ( e ) { const t = Kg ( e ) , r = e . options . bulletOther ; if ( ! r ) return t === "*" ? "-" : "*" ; if ( r !== "*" && r !== "+" && r !== "-" ) throw new Error ( "Cannot serialize items with `" + r + "` for `options.bulletOther`, expected `*`, `+`, or `-`" ) ; if ( r === t ) throw new Error ( "Expected `bullet` (`" + t + "`) and `bulletOther` (`" + r + "`) to be different" ) ; return r } function VF ( e ) { const t = e . options . bulletOrdered || "." ; if ( t !== "." && t !== ")" ) throw new Error ( "Cannot serialize items with `" + t + "` for `options.bulletOrdered`, expected `.` or `)`" ) ; return t } function xN ( e ) { const t = e . options . rule || "*" ; if ( t !== "*" && t !== "-" && t !== "_" ) throw new Error ( "Cannot serialize rules with `" + t + "` for `options.rule`, expected `*`, `-`, or `_`" ) ; return t } function qF ( e , t , r , a ) { const o = r . enter ( "list" ) , s = r . bulletCurrent ; let u = e . ordered ? VF ( r ) : Kg ( r ) ; const d = e . ordered ? u === "." ? ")" : "." : HF ( r ) ; let p = t && r . bulletLastUsed ? u === r . bulletLastUsed : ! 1 ; if ( ! e . ordered ) { const h = e . children ? e . children [ 0 ] : void 0 ; if ( ( u === "*" || u === "-" ) && h && ( ! h . children || ! h . children [ 0 ] ) && r . stack [ r . stack . length - 1 ] === "list" && r . stack [ r . stack . length - 2 ] === "listItem" && r . stack [ r . stack . length - 3 ] === "list" && r . stack [ r . stack . length - 4 ] === "listItem" && r . indexStack [ r . indexStack . length - 1 ] === 0 && r . indexStack [ r . indexStack . length - 2 ] === 0 && r . indexStack [ r . indexStack . length - 3 ] === 0 && ( p = ! 0 ) , xN ( r ) === u && h ) { let b = - 1 ; for ( ; ++ b < e . chil Line truncated
` ,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:v,table:u,tableCell:p,tableRow:d }};function u(E,w,T, k){return f(h (E,T ,k),E.align)}function d (E,w,T ,k){const A=b (E,T ,k),_ =f([A]);return _ .slice(0,_ .indexOf( `
` ))}function p(E,w,T,k){const A=T.enter("tableCell"),_=T.enter("phrasing"),R=T.containerPhrasing(E,{...k,before:s,after:s});return _(),A(),R}function f(E,w){return wF(E,{align:w,alignDelimiters:a,padding:r,stringLength:o})}function h(E,w,T){const k=E.children;let A=-1;const _=[],R=w.enter("table");for(;++A<k.length;)_[A]=b(k[A],w,T);return R(),_}function b(E,w,T){const k=E.children;let A=-1;const _=[],R=w.enter("tableRow");for(;++A<k.length;)_[A]=p(k[A],E,w,T);return R(),_}function v(E,w,T){let k=TN.inlineCode(E,w,T);return T.stack.includes("tableCell")&&(k=k.replace(/ \| /g," \\ $ &")),k}}function cB(){return{exit:{taskListCheckValueChecked:PA,taskListCheckValueUnchecked:PA,paragraph:pB}}}function dB(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:fB}}}function PA(e){const t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function pB(e){const t=this.stack[this.stack.length-2];if(t&&t.type==="listItem"&&typeof t.checked=="boolean"){const r=this.stack[this.stack.length-1];r.type;const a=r.children[0];if(a&&a.type==="text"){const o=t.children;let s=-1,u;for(;++s<o.length;){const d=o[s];if(d.type==="paragraph"){u=d;break}}u===r&&(a.value=a.value.slice(1),a.value.length===0?r.children.shift():r.position&&a.position&&typeof a.position.start.offset=="number"&&(a.position.start.column++,a.position.start.offset++,r.position.start=Object.assign({},a.position.start)))}}this.exit(e)}function fB(e,t,r,a){const o=e.children[0],s=typeof e.checked=="boolean"&&o&&o.type==="paragraph",u="["+(e.checked?"x":" ")+"] ",d=r.createTracker(a);s&&d.move(u);let p=TN.listItem(e,t,r,{...a,...d.current()});return s&&(p=p.replace(/^(?:[*+-]| \d + \. )([ \r \n ]| {1,3})/,f)),p;function f(h){return h+u}}function gB(){return[qU(),fF(),bF(),rB(),cB()]}function mB(e){return{extensions:[YU(),gF(e),yF(),uB(e),dB()]}}const hB={tokenize:xB,partial:!0},AN={tokenize:wB,partial:!0},kN={tokenize:TB,partial:!0},_N={tokenize:AB,partial:!0},bB={tokenize:kB,partial:!0},NN={name:"wwwAutolink",tokenize:vB,previous:CN},RN={name:"protocolAutolink",tokenize:SB,previous:ON},Nr={name:"emailAutolink",tokenize:EB,previous:IN},rr={};function yB(){return{text:rr}}let Da=48;for(;Da<123;)rr[Da]=Nr,Da++,Da===58?Da=65:Da===91&&(Da=97);rr[43]=Nr;rr[45]=Nr;rr[46]=Nr;rr[95]=Nr;rr[72]=[Nr,RN];rr[104]=[Nr,RN];rr[87]=[Nr,NN];rr[119]=[Nr,NN];function EB(e,t,r){const a=this;let o,s;return u;function u(b){return!ng(b)||!IN.call(a,a.previous)||Xg(a.events)?r(b):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),d(b))}function d(b){return ng(b)?(e.consume(b),d):b===64?(e.consume(b),p):r(b)}function p(b){return b===46?e.check(bB,h,f)(b):b===45||b===95||Dt(b)?(s=!0,e.consume(b),p):h(b)}function f(b){return e.consume(b),o=!0,p}function h(b){return s&&o&&Ht(a.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(b)):r(b)}}function vB(e,t,r){const a=this;return o;function o(u){return u!==87&&u!==119||!CN.call(a,a.previous)||Xg(a.events)?r(u):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(hB,e.attempt(AN,e.attempt(kN,s),r),r)(u))}function s(u){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(u)}}function SB(e,t,r){const a=this;let o="",s=!1;return u;function u(b){return(b===72||b===104)&&ON.call(a,a.previous)&&!Xg(a.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),o+=String.fromCodePoint(b),e.consume(b),d):r(b)}function d(b){if(Ht(b)&&o.length<5)return o+=String.fromCodePoint(b),e.consume(b),d;if(b===58){const v=o.toLowerCase();if(v==="http"||v==="https")return e.consume(b),p}return r(b)}function p(b){return b===47?(e.consume(b),s?f:(s=!0,p)):r(b)}function f(b){return b===null||Bu(b)||rt(b)||Fa(b)||rc(b)?r(b):e.attempt(AN,e.attempt(kN,h),r)(b)}function h(b){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(b)}}function xB(e,t,r){let a=0;return o;function o(u){return(u===87||u===119)&&a<3?(a++,e.consume(u),o):u===46&&a===3?(e.consume(u),s):r(u)}function s(u){return u===null?r(u):t(u)}}function wB(e,t,r){let a,o,s;return u;function u(f){return f===46||f===95?e.check(_N,p,d)(f):f===null||rt(f)||Fa(f)||f!==45&&rc(f)?p(f):(s=!0,e.consume(f),u)}function d(f){return f===95?a=!0:(o=a,a=void 0),e.consume(f),u}function p(f){return o||a||!s?r(f):t(f)}}function TB(e,t){let r=0,a=0;return o;function o(u){return u===40?(r++,e.consume(u),o):u===41&&a<r?s(u):u===33||u===34||u===38||u===39||u===41||u===42||u===44||u===46||u===58||u===59||u===60||u===63||u===93||u===95||u===126?e.check(_N,t,s)(u):u===null||rt(u)||Fa(u)?t(u):(e.consume(u),o)}function s(u){return u===41&&a++,e.consume(u),o}}function AB(e,t,r){return a;function a(d){return d===33||d===34||d===39||d===41||d===42||d===44||d===46||d===58||d===59||d===63||d===95||d===126?(e.consume(d),a):d===38?(e.consume(d),s):d===93?(e.consume(d),o):d===60||d===null||rt(d)||Fa(d)?t(d):r(d)}function o(d){return d===null||d===40||d===91||rt(d)||Fa(d)?t(d):a(d)}function s(d){return Ht(d)?u(d):r(d)}function u(d){re
Line truncated
` )===-1?g.jsx("code",{className:"bg-primary/10 text-primary px-1.5 py-0.5 rounded text-sm font-mono",children:h}):g.jsx("code",{className:"block font-mono",children:h}),pre:({children:f})=>g.jsx("pre",{className:"bg-muted p-4 rounded-lg text-sm overflow-auto my-4 font-mono whitespace-pre",children:f}),table:({children:f})=>g.jsx("div",{className:"overflow-auto my-4",children:g.jsx("table",{className:"w-full border-collapse text-sm",children:f})}),thead:({children:f})=>g.jsx("thead",{className:"bg-muted/50",children:f}),tr:({children:f})=>g.jsx("tr",{className:"border-b",children:f}),th:({children:f})=>g.jsx("th",{className:"px-4 py-2 text-left font-medium",children:f}),td:({children:f})=>g.jsx("td",{className:"px-4 py-2 text-muted-foreground",children:f}),hr:()=>g.jsx("hr",{className:"my-6 border-border"}),strong:({children:f})=>g.jsx("strong",{className:"font-semibold text-foreground",children:f}),em:({children:f})=>g.jsx("em",{children:f})};return r?g.jsx("main",{id:"main-content",className:"flex-1 p-8 max-w-3xl",children:s?g.jsx("div",{className:"text-muted-foreground",children:"Loading content..."}):a?g.jsx("article",{className:"prose max-w-none",children:g.jsx(uN,{remarkPlugins:[LN],components:p,children:a})}):g.jsx("div",{className:"bg-muted/50 border rounded-lg p-6",children:g.jsxs("p",{className:"text-muted-foreground",children:["Content for ",g.jsx("strong",{className:"text-primary",children:r.title})," would be displayed here."]})})}):g.jsxs("main",{className:"flex-1 p-8 max-w-3xl",children:[g.jsx("h1",{className:"text-4xl font-bold tracking-tight mb-4",children:e.site?.title||"Documentation"}),g.jsx("p",{className:"text-muted-foreground text-lg mb-8",children:e.site?.description||"Welcome to the documentation."}),g.jsx(Pi,{className:"my-8"}),g.jsx("h2",{className:"text-2xl font-semibold mb-4 text-primary",children:"Theme Configuration"}),g.jsxs("div",{className:"bg-muted/50 border rounded-lg p-4 mb-6",children:[g.jsx("p",{className:"text-sm text-muted-foreground mb-2",children:g.jsx("strong",{children:"Current theme from YAML:"})}),g.jsx("pre",{className:"text-primary text-sm",children: ` site :
` ))+1))}const u="#".repeat(o),c =r.enter("headingAtx"),p=r.enter("phrasing");s.move(u+" ");let f=r.containerPhrasing(e,{before:"# ",after: `
` ,...s.current()});return/^[ \t ]/.test(f)&&(f=Rl(f.charCodeAt(0))+f.slice(1)),f=f?u+" "+f:u,r.options.closeAtx&&(f+=" "+u),p(),c(),f}MN.peek=_B;function MN(e){return e.value||""}function _B(){return"<"}jN.peek=NB;function jN(e,t,r,a){const o=lm(r),s=o==='"'?"Quote":"Apostrophe",u=r.enter("image");let c=r.enter("label");const p=r.createTracker(a);let f=p.move("![");return f+=p.move(r.safe(e.alt,{before:f,after:"]",...p.current()})),f+=p.move("]("),c(),!e.url&&e.title||/[ \0 - \u 007F]/.test(e.url)?(c=r.enter("destinationLiteral"),f+=p.move("<"),f+=p.move(r.safe(e.url,{before:f,after:">",...p.current()})),f+=p.move(">")):(c=r.enter("destinationRaw"),f+=p.move(r.safe(e.url,{before:f,after:e.title?" ":")",...p.current()}))),c(),e.title&&(c=r.enter( ` title$ { s } ` ),f+=p.move(" "+o),f+=p.move(r.safe(e.title,{before:f,after:o,...p.current()})),f+=p.move(o),c()),f+=p.move(")"),u(),f}function NB(){return"!"}UN.peek=RB;function UN(e,t,r,a){const o=e.referenceType,s=r.enter("imageReference");let u=r.enter("label");const c=r.createTracker(a);let p=c.move("![");const f=r.safe(e.alt,{before:p,after:"]",...c.current()});p+=c.move(f+"]["),u();const m=r.stack;r.stack=[],u=r.enter("reference");const h=r.safe(r.associationId(e),{before:p,after:"]",...c.current()});return u(),r.stack=m,s(),o==="full"||!f||f!==h?p+=c.move(h+"]"):o==="shortcut"?p=p.slice(0,-1):p+=c.move("]"),p}function RB(){return"!"}FN.peek=CB;function FN(e,t,r){let a=e.value||"",o=" ` ",s=-1;for(;new RegExp(" ( ^ | [ ^ ` ])"+o+"([^ ` ] | $ ) ").test(a);)o+=" ` ";for(/[^ \r \n ]/.test(a)&&(/^[ \r \n ]/.test(a)&&/[ \r \n ] $ /.test(a)||/^ ` | ` $ /.test(a))&&(a=" "+a+" ");++s<r.unsafe.length;){const u=r.unsafe[s],c=r.compilePattern(u);let p;if(u.atBreak)for(;p=c.exec(a);){let f=p.index;a.charCodeAt(f)===10&&a.charCodeAt(f-1)===13&&f--,a=a.slice(0,f)+" "+a.slice(p.index+1)}}return o+a+o}function CB(){return" ` "}function BN(e,t){const r=Jg(e);return!!(!t.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type===" text "&&(r===e.url||" mailto : "+r===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}zN.peek=IB;function zN(e,t,r,a){const o=lm(r),s=o==='" ' ? "Quote" : "Apostrophe" , u = r . createTracker ( a ) ; let c , p ; if ( BN ( e , r ) ) { const m = r . stack ; r . stack = [ ] , c = r . enter ( "autolink" ) ; let h = u . move ( "<" ) ; return h += u . move ( r . containerPhrasing ( e , { before : h , after : ">" , ... u . current ( ) } ) ) , h += u . move ( ">" ) , c ( ) , r . stack = m , h } c = r . enter ( "link" ) , p = r . enter ( "label" ) ; let f = u . move ( "[" ) ; return f += u . move ( r . containerPhrasing ( e , { before : f , after : "](" , ... u . current ( ) } ) ) , f += u . move ( "](" ) , p ( ) , ! e . url && e . title || /[\0- \u007F]/ . test ( e . url ) ? ( p = r . enter ( "destinationLiteral" ) , f += u . move ( "<" ) , f += u . move ( r . safe ( e . url , { before : f , after : ">" , ... u . current ( ) } ) ) , f += u . move ( ">" ) ) : ( p = r . enter ( "destinationRaw" ) , f += u . move ( r . safe ( e . url , { before : f , after : e . title ? " " : ")" , ... u . current ( ) } ) ) ) , p ( ) , e . title && ( p = r . enter ( ` title ${ s } ` ) , f += u . move ( " " + o ) , f += u . move ( r . safe ( e . title , { before : f , after : o , ... u . current ( ) } ) ) , f += u . move ( o ) , p ( ) ) , f += u . move ( ")" ) , c ( ) , f } function IB ( e , t , r ) { return BN ( e , r ) ? "<" : "[" } PN . peek = OB ; function PN ( e , t , r , a ) { const o = e . referenceType , s = r . enter ( "linkReference" ) ; let u = r . enter ( "label" ) ; const c = r . createTracker ( a ) ; let p = c . move ( "[" ) ; const f = r . containerPhrasing ( e , { before : p , after : "]" , ... c . current ( ) } ) ; p += c . move ( f + "][" ) , u ( ) ; const m = r . stack ; r . stack = [ ] , u = r . enter ( "reference" ) ; const h = r . safe ( r . associationId ( e ) , { before : p , after : "]" , ... c . current ( ) } ) ; return u ( ) , r . stack = m , s ( ) , o === "full" || ! f || f !== h ? p += c . move ( h + "]" ) : o === "shortcut" ? p = p . slice ( 0 , - 1 ) : p += c . move ( "]" ) , p } function OB ( ) { return "[" } function sm ( e ) { const t = e . options . bullet || "*" ; if ( t !== "*" && t !== "+" && t !== "-" ) throw new Error ( "Cannot serialize items with `" + t + "` for `options.bullet`, expected `*`, `+`, or `-`" ) ; return t } function LB ( e ) { const t = sm ( e ) , r = e . options . bulletOther ; if ( ! r ) return t === "*" ? "-" : "*" ; if ( r !== "*" && r !== "+" && r !== "-" ) throw new Error ( "Cannot serialize items with `" + r + "` for `options.bulletOther`, expected `*`, `+`, or `-`" ) ; if ( r === t ) throw new Error ( "Expected `bullet` (`" + t + "`) and `bulletOther` (`" + r + "`) to be different" ) ; return r } function DB ( e ) { const t = e . options . bulletOrdered || "." ; if ( t !== "." && t !== ")" ) throw new Error ( "Cannot serialize items with `" + t + "` for `options.bulletOrdered`, expected `.` or `)`" ) ; return t } function $N ( e ) { const t = e . options . rule || "*" ; if ( t !== "*" && t !== "-" && t !== "_" ) throw new Error ( "Cannot serialize rules with `" + t + "` for `options.rule`, expected `*`, `-`, or `_`" ) ; return t } function MB ( e , t , r , a ) { const o = r . enter ( "list" ) , s = r . bulletCurrent ; let u = e . ordered ? DB ( r ) : sm ( r ) ; const c = e . ordered ? u === "." ? ")" : "." : LB ( r ) ; let p = t && r . bulletLastUsed ? u === r . bulletLastUsed : ! 1 ; if ( ! e . ordered ) { const m = e . children ? e . children [ 0 ] : void 0 ; if ( ( u === "*" || u === "-" ) && m && ( ! m . children || ! m . children [ 0 ] ) && r . stack [ r . stack . length - 1 ] === "list" && r . stack [ r . stack . length - 2 ] === "listItem" && r . stack [ r . stack . length - 3 ] === "list" && r . stack [ r . stack . length - 4 ] === "listItem" && r . indexStack [ r . indexStack . length - 1 ] === 0 && r . indexStack [ r . indexStack . length - 2 ] === 0 && r . indexStack [ r . indexStack . length - 3 ] === 0 && ( p = ! 0 ) , $N ( r ) === u && m ) { let h = - 1 ; for ( ; ++ h < e . chil Line truncated
` ,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:v,table:u,tableCell:p,tableRow:c }};function u(E,x, w,k){return f(m (E,w ,k),E.align)}function c (E,x,w ,k){const A=h (E,w ,k),N =f([A]);return N .slice(0,N .indexOf( `
` ))}function p(E,x,w,k){const A=w.enter("tableCell"),N=w.enter("phrasing"),_=w.containerPhrasing(E,{...k,before:s,after:s});return N(),A(),_}function f(E,x){return pB(E,{align:x,alignDelimiters:a,padding:r,stringLength:o})}function m(E,x,w){const k=E.children;let A=-1;const N=[],_=x.enter("table");for(;++A<k.length;)N[A]=h(k[A],x,w);return _(),N}function h(E,x,w){const k=E.children;let A=-1;const N=[],_=x.enter("tableRow");for(;++A<k.length;)N[A]=p(k[A],E,x,w);return _(),N}function v(E,x,w){let k=HN.inlineCode(E,x,w);return w.stack.includes("tableCell")&&(k=k.replace(/ \| /g," \\ $ &")),k}}function JB(){return{exit:{taskListCheckValueChecked:tk,taskListCheckValueUnchecked:tk,paragraph:tz}}}function ez(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:nz}}}function tk(e){const t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function tz(e){const t=this.stack[this.stack.length-2];if(t&&t.type==="listItem"&&typeof t.checked=="boolean"){const r=this.stack[this.stack.length-1];r.type;const a=r.children[0];if(a&&a.type==="text"){const o=t.children;let s=-1,u;for(;++s<o.length;){const c=o[s];if(c.type==="paragraph"){u=c;break}}u===r&&(a.value=a.value.slice(1),a.value.length===0?r.children.shift():r.position&&a.position&&typeof a.position.start.offset=="number"&&(a.position.start.column++,a.position.start.offset++,r.position.start=Object.assign({},a.position.start)))}}this.exit(e)}function nz(e,t,r,a){const o=e.children[0],s=typeof e.checked=="boolean"&&o&&o.type==="paragraph",u="["+(e.checked?"x":" ")+"] ",c=r.createTracker(a);s&&c.move(u);let p=HN.listItem(e,t,r,{...a,...c.current()});return s&&(p=p.replace(/^(?:[*+-]| \d + \. )([ \r \n ]| {1,3})/,f)),p;function f(m){return m+u}}function rz(){return[MF(),nB(),oB(),qB(),JB()]}function az(e){return{extensions:[jF(),rB(e),lB(),QB(e),ez()]}}const iz={tokenize:dz,partial:!0},VN={tokenize:pz,partial:!0},qN={tokenize:fz,partial:!0},YN={tokenize:gz,partial:!0},oz={tokenize:mz,partial:!0},WN={name:"wwwAutolink",tokenize:uz,previous:XN},KN={name:"protocolAutolink",tokenize:cz,previous:ZN},Rr={name:"emailAutolink",tokenize:sz,previous:QN},ar={};function lz(){return{text:ar}}let ja=48;for(;ja<123;)ar[ja]=Rr,ja++,ja===58?ja=65:ja===91&&(ja=97);ar[43]=Rr;ar[45]=Rr;ar[46]=Rr;ar[95]=Rr;ar[72]=[Rr,KN];ar[104]=[Rr,KN];ar[87]=[Rr,WN];ar[119]=[Rr,WN];function sz(e,t,r){const a=this;let o,s;return u;function u(h){return!fg(h)||!QN.call(a,a.previous)||um(a.events)?r(h):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),c(h))}function c(h){return fg(h)?(e.consume(h),c):h===64?(e.consume(h),p):r(h)}function p(h){return h===46?e.check(oz,m,f)(h):h===45||h===95||Mt(h)?(s=!0,e.consume(h),p):m(h)}function f(h){return e.consume(h),o=!0,p}function m(h){return s&&o&&Vt(a.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(h)):r(h)}}function uz(e,t,r){const a=this;return o;function o(u){return u!==87&&u!==119||!XN.call(a,a.previous)||um(a.events)?r(u):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(iz,e.attempt(VN,e.attempt(qN,s),r),r)(u))}function s(u){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(u)}}function cz(e,t,r){const a=this;let o="",s=!1;return u;function u(h){return(h===72||h===104)&&ZN.call(a,a.previous)&&!um(a.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),o+=String.fromCodePoint(h),e.consume(h),c):r(h)}function c(h){if(Vt(h)&&o.length<5)return o+=String.fromCodePoint(h),e.consume(h),c;if(h===58){const v=o.toLowerCase();if(v==="http"||v==="https")return e.consume(h),p}return r(h)}function p(h){return h===47?(e.consume(h),s?f:(s=!0,p)):r(h)}function f(h){return h===null||qu(h)||rt(h)||za(h)||cc(h)?r(h):e.attempt(VN,e.attempt(qN,m),r)(h)}function m(h){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(h)}}function dz(e,t,r){let a=0;return o;function o(u){return(u===87||u===119)&&a<3?(a++,e.consume(u),o):u===46&&a===3?(e.consume(u),s):r(u)}function s(u){return u===null?r(u):t(u)}}function pz(e,t,r){let a,o,s;return u;function u(f){return f===46||f===95?e.check(YN,p,c)(f):f===null||rt(f)||za(f)||f!==45&&cc(f)?p(f):(s=!0,e.consume(f),u)}function c(f){return f===95?a=!0:(o=a,a=void 0),e.consume(f),u}function p(f){return o||a||!s?r(f):t(f)}}function fz(e,t){let r=0,a=0;return o;function o(u){return u===40?(r++,e.consume(u),o):u===41&&a<r?s(u):u===33||u===34||u===38||u===39||u===41||u===42||u===44||u===46||u===58||u===59||u===60||u===63||u===93||u===95||u===126?e.check(YN,t,s)(u):u===null||rt(u)||za(u)?t(u):(e.consume(u),o)}function s(u){return u===41&&a++,e.consume(u),o}}function gz(e,t,r){return a;function a(c){return c===33||c===34||c===39||c===41||c===42||c===44||c===46||c===58||c===59||c===63||c===95||c===126?(e.consume(c),a):c===38?(e.consume(c),s):c===93?(e.consume(c),o):c===60||c===null||rt(c)||za(c)?t(c):r(c)}function o(c){return c===null||c===40||c===91||rt(c)||za(c)?t(c):a(c)}function s(c){return Vt(c)?u(c):r(c)}function u(c){re
Line truncated
` ),r=[];let a=0;for(;a<t.length;){const o=t[a].match(/^=== \s +"([^"]+)" \s * $ /);if(!o){r.push(t[a]),a++;continue}const s=o[1];for(a++;a<t.length&&t[a].trim()==="";)a++;const u=[];for(;a<t.length&&!(/^=== \s +"[^"]+" \s * $ /.test(t[a])||t[a].trim()===""&&a+1<t.length&&/^=== \s +"[^"]+" \s * $ /.test(t[a+1]));){if(t[a].startsWith(" ")||t[a].trimStart().startsWith(" ` ` ` ")){u.push(t[a].replace(/^ /," ")),a++;continue}if(u.length>0&&t[a].trim()===" "){u.push(" "),a++;continue}break}r.push(`### ${eR}${s}`),r.push(" "),r.push(...u),r.push(" " ) } return r . join ( `
` )}function $ z(e){let t=zz(e);return t=Bz(t),t=Pz(t),t}function rk(e){return e.startsWith(eR)||e.startsWith("tab:")}function Gz(e){return e.replace(/^ \u 200Btab:/,"").replace(/^tab:/,"")}function Hz(e){const t=new Set;e.matches("article.prose, main .prose, .prose, main.flex-1, #main-content")&&t.add(e),e.querySelectorAll("article.prose, main .prose, .prose").forEach(r=>t.add(r));for(const r of t)Vz(r),qz(r),Yz(r)}function Vz(e){for(const t of e.querySelectorAll("p")){const r=t.textContent?.trim()??"";(/^< \/ ?div[ \s >]/.test(r)||r==="</div>")&&t.remove()}}function qz(e){for(const t of e.querySelectorAll("ul")){if(t.classList.contains("aiui-feature-grid"))continue;const r=t.querySelector("li");if(r?.textContent?.includes("YAML-Driven")||r?.textContent?.includes("Component Slots")||r?.querySelector("strong")){t.classList.add("aiui-feature-grid","grid","grid-cols-1","md:grid-cols-2","gap-4","my-6","list-none","pl-0");for(const o of t.querySelectorAll("li"))o.classList.add("border","border-border","rounded-lg","p-4","bg-card")}}}function Yz(e){if(e.querySelector("[data-aiui-tabs]"))return;const t=Array.from(e.querySelectorAll("h3")).filter(c=>rk(c.textContent?.trim()??""));if(t.length<2)return;const r=t.map(c=>{const p=Gz(c.textContent?.trim()??""),f=[];let m=c.nextSibling;for(;m;){if(m.nodeType===Node.ELEMENT_NODE){const v=m;if(v.tagName==="H3"&&rk(v.textContent?.trim()??"")||["H1","H2"].includes(v.tagName))break}const h=m.nextSibling;f.push(m),m=h}return{heading:c,title:p,nodes:f}}),a=document.createElement("div");a.className="aiui-tabs my-6 border border-border rounded-lg overflow-hidden",a.dataset.aiuiTabs="true";const o=document.createElement("div");o.className="aiui-tab-buttons flex flex-wrap gap-0 border-b border-border bg-muted/30",a.appendChild(o);const s=document.createElement("div");s.className="aiui-tab-panels",a.appendChild(s),r.forEach((c,p)=>{const f=document.createElement("button");f.type="button",f.className=["aiui-tab-button px-4 py-2 text-sm font-medium transition-colors",p===0?"bg-background text-foreground border-b-2 border-primary":"text-muted-foreground hover:text-foreground"].join(" "),f.textContent=c.title,f.dataset.tabIndex=String(p),o.appendChild(f);const m=document.createElement("div");m.className=p===0?"aiui-tab-panel p-4 block":"aiui-tab-panel p-4 hidden",m.dataset.tabPanel=String(p);for(const h of c.nodes)m.appendChild(h);s.appendChild(m)});const u=r[0].heading;e.insertBefore(a,u);for(const c of r)c.heading.remove();o.addEventListener("click",c=>{const p=c.target.closest(".aiui-tab-button");if(!p)return;const f=p.dataset.tabIndex??"0";for(const m of o.querySelectorAll(".aiui-tab-button")){const h=m.dataset.tabIndex===f;m.classList.toggle("bg-background",h),m.classList.toggle("text-foreground",h),m.classList.toggle("border-b-2",h),m.classList.toggle("border-primary",h),m.classList.toggle("text-muted-foreground",!h)}for(const m of s.querySelectorAll(".aiui-tab-panel"))m.classList.toggle("hidden",m.dataset.tabPanel!==f),m.classList.toggle("block",m.dataset.tabPanel===f)})}function hl({config:e,routes:t,selectedItem:r}){const[a,o]=S.useState(""),[s,u]=S.useState(!1),c=S.useRef(null),p=e.site?.theme;S.useEffect(()=>{if(!r?.path){o("");return}(async()=>{u(!0);try{const h=(r.path??"").replace(/^ \/ /,"")+".md",v=await fetch( ` / $ { h } ` );if(v.ok){const E=await v.text();o( $ z(E))}else o( ` * Content for * * $ { r . title } * * not found . * ` )}catch{o( ` * Failed to load content for * * $ { r . title } * * . * ` )}finally{u(!1)}})()},[r]),S.useEffect(()=>{!a||!c.current||Hz(c.current)},[a]);const f={h1:({children:m})=>g.jsx("h1",{className:"text-3xl font-bold mt-8 mb-4",children:m}),h2:({children:m})=>g.jsx("h2",{className:"text-2xl font-semibold mt-8 mb-4 text-primary",children:m}),h3:({children:m})=>g.jsx("h3",{className:"text-xl font-semibold mt-6 mb-3",children:m}),h4:({children:m})=>g.jsx("h4",{className:"text-lg font-semibold mt-4 mb-2",children:m}),p:({children:m})=>g.jsx("p",{className:"my-3 text-muted-foreground leading-relaxed",children:m}),a:({href:m,children:h})=>g.jsx("a",{href:m,className:"text-primary hover:underline",children:h}),ul:({children:m})=>g.jsx("ul",{className:"list-disc pl-6 my-4 space-y-1",children:m}),ol:({children:m})=>g.jsx("ol",{className:"list-decimal pl-6 my-4 space-y-1",children:m}),li:({children:m})=>g.jsx("li",{className:"text-muted-foreground",children:m}),blockquote:({children:m})=>g.jsx("blockquote",{className:"border-l-4 border-primary pl-4 my-4 italic text-muted-foreground",children:m}),code:({className:m,children:h})=>!m&&String(h).indexOf( `
` )===-1?g.jsx("code",{className:"bg-primary/10 text-primary px-1.5 py-0.5 rounded text-sm font-mono",children:h}):g.jsx("code",{className: ` block font - mono text - foreground $ { m ? ? "" } ` ,children:h}),pre:({children:m})=>g.jsx("pre",{className:"bg-muted text-foreground border border-border p-4 rounded-lg text-sm overflow-auto my-4 font-mono whitespace-pre",children:m}),table:({children:m})=>g.jsx("div",{className:"overflow-auto my-4",children:g.jsx("table",{className:"w-full border-collapse text-sm",children:m})}),thead:({children:m})=>g.jsx("thead",{className:"bg-muted/50",children:m}),tr:({children:m})=>g.jsx("tr",{className:"border-b",children:m}),th:({children:m})=>g.jsx("th",{className:"px-4 py-2 text-left font-medium",children:m}),td:({children:m})=>g.jsx("td",{className:"px-4 py-2 text-muted-foreground",children:m}),hr:()=>g.jsx("hr",{className:"my-6 border-border"}),strong:({children:m})=>g.jsx("strong",{className:"font-semibold text-foreground",children:m}),em:({children:m})=>g.jsx("em",{children:m})};return r?g.jsx("main",{id:"main-content",className:"flex-1 p-8 max-w-3xl",children:s?g.jsx("div",{className:"text-muted-foreground",children:"Loading content..."}):a?g.jsx("article",{ref:c,className:"prose prose-neutral dark:prose-invert max-w-none prose-pre:bg-muted prose-pre:text-foreground prose-code:text-foreground",children:g.jsx(RN,{remarkPlugins:[JN],components:f,children:a})}):g.jsx("div",{className:"bg-muted/50 border rounded-lg p-6",children:g.jsxs("p",{className:"text-muted-foreground",children:["Content for ",g.jsx("strong",{className:"text-primary",children:r.title})," would be displayed here."]})})}):g.jsxs("main",{className:"flex-1 p-8 max-w-3xl",children:[g.jsx("h1",{className:"text-4xl font-bold tracking-tight mb-4",children:e.site?.title||"Documentation"}),g.jsx("p",{className:"text-muted-foreground text-lg mb-8",children:e.site?.description||"Welcome to the documentation."}),g.jsx(Vi,{className:"my-8"}),g.jsx("h2",{className:"text-2xl font-semibold mb-4 text-primary",children:"Theme Configuration"}),g.jsxs("div",{className:"bg-muted/50 border rounded-lg p-4 mb-6",children:[g.jsx("p",{className:"text-sm text-muted-foreground mb-2",children:g.jsx("strong",{children:"Current theme from YAML:"})}),g.jsx("pre",{className:"bg-muted text-foreground border border-border p-3 rounded-lg text-sm overflow-auto",children: ` site :
theme :
preset : "${d ?.preset||" zinc "}"
radius : "${d ?.radius||" md "}"
darkMode : $ { d ? . darkMode !== ! 1 } ` })]}),g.jsx("h3",{className:"text-lg font-medium mb-3",children:"Available Presets"}),g.jsx("div",{className:"flex flex-wrap gap-2 mb-6",children:Object.keys(Y1).map(f=>g.jsx("span",{className: ` px - 3 py - 1 rounded - full text - sm $ { f === ( d ? . preset || "zinc" ) ? "bg-primary text-primary-foreground" : "bg-muted text-muted-foreground" } ` ,children:f},f))}),g.jsxs("p",{className:"text-muted-foreground mb-4",children:[g.jsx("strong",{children:"Click any item in the sidebar"})," to navigate."]}),g.jsx("h2",{className:"text-2xl font-semibold mt-8 mb-4",children:"Routes"}),g.jsxs("p",{className:"text-muted-foreground mb-4",children:[g.jsx("span",{className:"font-medium text-primary",children:t.routes?.length||0})," routes configured."]}),g.jsx("pre",{className:"bg-muted p-4 rounded-lg text-sm overflow-auto",children:JSON.stringify(t.routes?.slice(0,3),null,2)})]})}const GA=e=>typeof e=="boolean"? ` $ { e } ` :e===0?"0":e,HA=u_,Zg=(e,t)=>r=>{var a;if(t?.variants==null)return HA(e,r?.class,r?.className);const{variants:o,defaultVariants:s}=t,u=Object.keys(o).map(f=>{const h=r?.[f],b=s?.[f];if(h===null)return null;const v=GA(h)||GA(b);return o[f][v]}),d=r&&Object.entries(r).reduce((f,h)=>{let[b,v]=h;return v===void 0||(f[b]=v),f},{}),p=t==null||(a=t.compoundVariants)===null||a===void 0?void 0:a.reduce((f,h)=>{let{class:b,className:v,...E}=h;return Object.entries(E).every(w=>{let[T,k]=w;return Array.isArray(k)?k.includes({...s,...d}[T]):{...s,...d}[T]===k})?[...f,b,v]:f},[]);return HA(e,u,p,r?.class,r?.className)},DN=Zg("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",xs:"h-6 gap-1 rounded-md px-2 text-xs has-[>svg]:px-1.5 [&_svg:not([class*='size-'])]:size-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9","icon-xs":"size-6 rounded-md [&_svg:not([class*='size-'])]:size-3","icon-sm":"size-8","icon-lg":"size-10"}},defaultVariants:{variant:"default",size:"default"}});function $ i({className:e,variant:t="default",size:r="default",asChild:a=!1,...o}){const s=a?Dg:"button";return g.jsx(s,{"data-slot":"button","data-variant":t,"data-size":r,className:be(DN({variant:t,size:r,className:e})),...o})}function _n({className:e,...t}){return g.jsx("div",{"data-slot":"card",className:be("bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-sm",e),...t})}function Bn({className:e,...t}){return g.jsx("div",{"data-slot":"card-header",className:be("@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-2 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6",e),...t})}function zn({className:e,...t}){return g.jsx("div",{"data-slot":"card-title",className:be("leading-none font-semibold",e),...t})}function Qg({className:e,...t}){return g.jsx("div",{"data-slot":"card-description",className:be("text-muted-foreground text-sm",e),...t})}function Nn({className:e,...t}){return g.jsx("div",{"data-slot":"card-content",className:be("px-6",e),...t})}function KB({className:e,...t}){return g.jsx("div",{"data-slot":"card-footer",className:be("flex items-center px-6 [.border-t]:pt-6",e),...t})}function XB({props:e}){const t=e?.title||"Statistics",r=e?.value||"0",a=e?.change||"",o=e?.changeType||"positive";return g.jsxs(_n,{className:"mb-4",children:[g.jsxs(Bn,{className:"pb-2",children:[g.jsx(Qg,{children:t}),g.jsx(zn,{className:"text-2xl",children:r})]}),a&&g.jsx(Nn,{className:"pt-0",children:g.jsx("span",{className:o==="positive"?"text-green-500 text-sm":"text-red-500 text-sm",children:a})})]})}function ZB({props:e}){const t=e?.title||"Quick Links",r=e?.links||[];return g.jsxs(_n,{className:"mb-4",children:[g.jsx(Bn,{className:"pb-2",children:g.jsx(zn,{className:"text-sm font-medium",children:t})}),g.jsx(Nn,{className:"space-y-1",children:r.map((a,o)=>g.jsx("a",{href:a.href,className:"block text-sm text-muted-foreground hover:text-foreground transition-colors",children:a.label},o))})]})}function QB({
Line truncated
` );p=b .pop()||"";for(const v of b )if(v.startsWith("data: "))try{const E=JSON.parse(v.slice(6));Ez (e,E,o)}catch{}}}catch(s){if(s.name!=="AbortError"){const u=U a.get(e);u&&A n(e,{thinkingSteps:[...u.state.thinkingSteps, ` Error : $ { s . message } ` ]})}}finally{const s=U a.get(e);s&&(s.abortController=null),A n(e,{isStreaming:!1}),o?.onEnd?.()}}function Ez (e,t,r){const a=U a.get(e);if(!a)return;const o=a.toolCallMap;switch(t.type){case"session":t.session_id&&typeof t.session_id=="string"&&r?.onSessionId?.(t.session_id);break;case"token":case"run_content":case"team_run_content":{const u=t.token??t.content??"";u&&A n(e,{currentResponse:a.state.currentResponse+u});break}case"message":case"run_completed":case"team_run_completed":{const u=t.content;u&&A n(e,{currentResponse:u});break}case"thinking":case"reasoning_step":case"team_reasoning_step":{const u=t.step;u&&A n(e,{thinkingSteps:[...a.state.thinkingSteps,u]});break}case"reasoning_started":case"team_reasoning_started":A n(e,{thinkingSteps:[...a.state.thinkingSteps,"Starting reasoning..."]});break;case"tool_call":case"tool_call_started":case"team_tool_call_started":{const u={name:t.name,description:t.description,icon:t.icon,step_number:t.step_number,status:"running",tool_call_id:t.tool_call_id,args:t.args};u.tool_call_id&&o.set(u.tool_call_id,u);const d=qA (a.state.toolCalls,u);A n(e,{toolCalls:d });break}case"tool_call_completed":case"team_tool_call_completed":{const u=t.extra_data,d =t.a2ui??u?.a2ui,p=t.elements??u?.elements,f={name:t.name,description:t.description,icon:t.icon,step_number:t.step_number,status:"done",tool_call_id:t.tool_call_id,args:t.args,formatted_result:t.formatted_result,result:t.result,surface_id:t.surface_id??u?.surface_id,a2ui:d ?.length?{messages:d ,surface_id:t.surface_id??u?.surface_id}:void 0,elements:p};f.tool_call_id&&o.set(f.tool_call_id,f);const h=qA (a.state.toolCalls,f),b =p?.length?[...a.state.pendingElements,...p]:a.state.pendingElements;A n(e,{toolCalls:h ,pendingElements:b });break}case"message_element":{const u=t.extra_data,d =t.element??u?.element;d &&A n(e,{pendingElements:[...a.state.pendingElements,d ]});break}case"error":case"run_error":case"team_run_error":{const u=t.error;u&&A n(e,{thinkingSteps:[...a.state.thinkingSteps, ` Error : $ { u } ` ]});break}case"end":case"done":case"run_cancelled":case"team_run_cancelled":break;default:gz (e,t);break}}function qA (e,t){if(t.tool_call_id){const r=e.findIndex(a=>a.tool_call_id===t.tool_call_id);if(r>=0){const a=[...e];return a[r]={...a[r],...t},a}}return[...e,t]}function UN (e={}){const{externalSessionId:t}=e,[r,a]=S.useState(()=>y u(t));S.useEffect(()=>{if(!t){a(y u(null));return}return a(y u(t)),mz (t,()=>{a(y u(t))})},[t]);const o=S.useCallback((u,d )=>{const p=t?? ` new - $ { Date . now ( ) } ` ;bz (p,u,d ,{onSessionId:f=>{e.onSessionId?.(f)},onEnd:e.onEnd})},[t,e.onSessionId,e.onEnd]),s=S.useCallback(()=>{t&&hz (t)},[t]);return{isStreaming:r.isStreaming,currentResponse:r.currentResponse,toolCalls:r.toolCalls,thinkingSteps:r.thinkingSteps,pendingElements:r.pendingElements,sendMessage:o,cancel:s}}function vz (e,t){if(e==null)return{};var r={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(t.indexOf(a)!==-1)continue;r[a]=e[a]}return r}function Sz (e,t){if(e==null)return{};var r,a,o=vz (e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(a=0;a<s.length;a++)r=s[a],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function i g(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,a=Array(t);r<t;r++)a[r]=e[r];return a}function xz (e){if(Array.isArray(e))return i g(e)}function wz (e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Tz (e,t){if(e){if(typeof e=="string")return i g(e,t);var r={}.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array $ /.test(r)?i g(e,t):void 0}}function Az (){throw new TypeError( ` Invalid attempt to spread non - iterable instance .
In order to be iterable , non - array objects must have a [ Symbol . iterator ] ( ) method . ` )}function og(e){return xz(e)||wz(e)||Tz(e)||Az()}function Tl(e){"@babel/helpers - typeof";return Tl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Tl(e)}function kz(e,t){if(Tl(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var a=r.call(e,t);if(Tl(a)!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function _z(e){var t=kz(e,"string");return Tl(t)=="symbol"?t:t+""}function FN(e,t,r){return(t=_z(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function lg(){return lg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)({}).hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},lg.apply(null,arguments)}function YA(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,a)}return r}function Gi(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?YA(Object(r),!0).forEach(function(a){FN(e,a,r[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):YA(Object(r)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(r,a))})}return e}function Nz(e){var t=e.length;if(t===0||t===1)return e;if(t===2)return[e[0],e[1],"".concat(e[0],".").concat(e[1]),"".concat(e[1],".").concat(e[0])];if(t===3)return[e[0],e[1],e[2],"".concat(e[0],".").concat(e[1]),"".concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[0]),"".concat(e[1],".").concat(e[2]),"".concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[1]),"".concat(e[0],".").concat(e[1],".").concat(e[2]),"".concat(e[0],".").concat(e[2],".").concat(e[1]),"".concat(e[1],".").concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[0],".").concat(e[1]),"".concat(e[2],".").concat(e[1],".").concat(e[0])];if(t>=4)return[e[0],e[1],e[2],e[3],"".concat(e[0],".").concat(e[1]),"".concat(e[0],".").concat(e[2]),"".concat(e[0],".").concat(e[3]),"".concat(e[1],".").concat(e[0]),"".concat(e[1],".").concat(e[2]),"".concat(e[1],".").concat(e[3]),"".concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[1]),"".concat(e[2],".").concat(e[3]),"".concat(e[3],".").concat(e[0]),"".concat(e[3],".").concat(e[1]),"".concat(e[3],".").concat(e[2]),"".concat(e[0],".").concat(e[1],".").concat(e[2]),"".concat(e[0],".").concat(e[1],".").concat(e[3]),"".concat(e[0],".").concat(e[2],".").concat(e[1]),"".concat(e[0],".").concat(e[2],".").concat(e[3]),"".concat(e[0],".").concat(e[3],".").concat(e[1]),"".concat(e[0],".").concat(e[3],".").concat(e[2]),"".concat(e[1],".").concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[0],".").concat(e[3]),"".concat(e[1],".").concat(e[2],".").concat(e[0]),"".concat(e[1],".").concat(e[2],".").concat(e[3]),"".concat(e[1],".").concat(e[3],".").concat(e[0]),"".concat(e[1],".").concat(e[3],".").concat(e[2]),"".concat(e[2],".").concat(e[0],".").concat(e[1]),"".concat(e[2],".").concat(e[0],".").concat(e[3]),"".concat(e[2],".").concat(e[1],".").concat(e[0]),"".concat(e[2],".").concat(e[1],".").concat(e[3]),"".concat(e[2],".").concat(e[3],".").concat(e[0]),"".concat(e[2],".").concat(e[3],".").concat(e[1]),"".concat(e[3],".").concat(e[0],".").concat(e[1]),"".concat(e[3],".").concat(e[0],".").concat(e[2]),"".concat(e[3],".").concat(e[1],".").concat(e[0]),"".concat(e[3],".").concat(e[1],".").concat(e[2]),"".concat(e[3],".").concat(e[2],".").concat(e[0]),"".concat(e[3],".").concat(e[2],".").concat(e[1]),"".concat(e[0],".").concat(e[1],".").concat(e[2],".").concat(e[3]),"".concat(e[0],".").concat(e[1],".").concat(e[3],".").concat(e[2]),"".concat(e[0],".").concat(e[2],".").concat(e[1],".").concat(e[3]),"".concat(e[0],".").concat(e[2],".").concat(e[3],".").concat(e[1]),"".concat(e[0],".").concat(e[3],".").concat(e[1],".").concat(e[2]),"".concat(e[0],".").concat(e[3],".").concat(e[2],".").concat(e[1]),"".concat(e[1],".").concat(e[0],".").concat(e[2],".").concat(e[3]),"".concat(e[1],".").concat(e[0],".").concat(e[3],".").concat(e[2]),"".concat(e[1],".").concat(e[2],".").concat(e[0],".").concat(e[3]),"".concat(e[1],".").concat(e[2],".").concat(e[3],".").concat(e[0]),"".concat(e[1],".").concat(e[3],".").concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[3],".").concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[0],".").concat(e[1],".").concat(e[3]),"".concat(e[2],".").concat(e[0],".").concat(e[3],".").concat(e[1]),"".concat(e[2],".").concat(e[1],".").concat(e[0],".").concat(e[3]),"".concat(e[2],".").concat(e[1],".").concat(e[3],".").concat(e[
Line truncated
` ))})}function Uz (e){var t=e.codeString,r=e.codeStyle,a=e.containerStyle,o=a===void 0?{float:"left",paddingRight:"10px"}:a,s=e.numberStyle,u=s===void 0?{}:s,d =e.startingLineNumber;return Ke.createElement("code",{style:Object.assign({},r,o)},jz ({lines:t.replace(/ \n $ /,"").split( `
` ),style:u,startingLineNumber:d }))}function Fz (e){return"".concat(e.toString().length,".25em")}function zN (e,t){return{type:"element",tagName:"span",properties:{key:"line-number--".concat(e),className:["comment","linenumber","react-syntax-highlighter-line-number"],style:t},children:[{type:"text",value:e}]}}function PN (e,t,r){var a={display:"inline-block",minWidth:Fz (r),paddingRight:"1em",textAlign:"right",userSelect:"none"},o=typeof e=="function"?e(t):e,s=o a(o a({},a),o);return s}function R u(e){var t=e.children,r=e.lineNumber,a=e.lineNumberStyle,o=e.largestLineNumber,s=e.showInlineLineNumbers,u=e.lineProps,d =u===void 0?{}:u,p=e.className,f=p===void 0?[]:p,h =e.showLineNumbers,b =e.wrapLongLines,v=e.wrapLines,E=v===void 0?!1:v,w =E?o a({},typeof d =="function"?d (r):d ):{};if(w .className=w .className?[].concat(o g(w .className.trim().split(/ \s +/)),o g(f)):f,r&&s){var T=PN (a,r,o);t.unshift(zN (r,T ))}return b&h &&(w .style=o a({display:"flex"},w .style)),{type:"element",tagName:"span",properties:w ,children:t}}function $ N (e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];e.length===void 0&&(e=[e]);for(var a=0;a<e.length;a++){var o=e[a];if(o.type==="text")r.push(R u({children:[o],className:o g(new Set(t))}));else if(o.children){var s,u=t.concat(((s=o.properties)===null||s===void 0?void 0:s.className)||[]);$ N (o.children,u).forEach(function(d ){return r.push(d )})}}return r}function Bz (e,t,r,a,o,s,u,d ,p){var f,h= $ N (e.value),b =[],v=-1,E=0;function w(j,D ){var z =arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];return R u({children:j ,lineNumber:D ,lineNumberStyle:d ,largestLineNumber:u,showInlineLineNumbers:o,lineProps:r,className:z ,showLineNumbers:a,wrapLongLines:p,wrapLines:t})}function T(j,D ){if(a&&D &&o){var z=PN(d,D ,u);j .unshift(zN(D,z ))}return j }function k(j,D ){var z =arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];return t||z .length>0?w(j,D,z):T(j,D )}for(var A=function(){var D=h [E],z=D .children[0].value,F=Mz(z );if(F ){var V=z .split(`
` );V .forEach(function(M,H ){var K=a&&b .length+s,Z ={type:"text",value:"".concat(M, `
` )};if(H===0){var te=h.slice(v+1,E).concat(Ru({children:[Z],className:D.properties.className})),Q=k(te,K);b.push(Q)}else if(H===V.length-1){var P=h[E+1]&&h[E+1].children&&h[E+1].children[0],W={type:"text",value:"".concat(M)};if(P){var ne=Ru({children:[W],className:D.properties.className});h.splice(E+1,0,ne)}else{var ce=[W],C=k(ce,K,D.properties.className);b.push(C)}}else{var U=[Z],J=k(U,K,D.properties.className);b.push(J)}}),v=E}E++};E<h.length;)A();if(v!==h.length-1){var _=h.slice(v+1,h.length);if(_&&_.length){var R=a&&b.length+s,L=k(_,R);b.push(L)}}return t?b:(f=[]).concat.apply(f,b)}function zz(e){var t=e.rows,r=e.stylesheet,a=e.useInlineStyles;return t.map(function(o,s){return BN({node:o,stylesheet:r,useInlineStyles:a,key:"code-segment-".concat(s)})})}function GN(e){return e&&typeof e.highlightAuto<"u"}function Pz(e){var t=e.astGenerator,r=e.language,a=e.code,o=e.defaultCodeValue;if(GN(t)){var s=Iz(t,r);return r==="text"?{value:o,language:"text"}:s?t.highlight(r,a):t.highlightAuto(a)}try{return r&&r!=="text"?{value:t.highlight(a,r)}:{value:o}}catch{return{value:o}}}function $ z(e,t){return function(a){var o,s,u=a.language,d=a.children,p=a.style,f=p===void 0?t:p,h=a.customStyle,b=h===void 0?{}:h,v=a.codeTagProps,E=v===void 0?{className:u?"language-".concat(u):void 0,style:oa(oa({},f['code[class*="language-"]']),f['code[class*="language-'.concat(u,'"]')])}:v,w=a.useInlineStyles,T=w===void 0?!0:w,k=a.showLineNumbers,A=k===void 0?!1:k,_=a.showInlineLineNumbers,R=_===void 0?!0:_,L=a.startingLineNumber,j=L===void 0?1:L,D=a.lineNumberContainerStyle,z=a.lineNumberStyle,F=z===void 0?{}:z,V=a.wrapLines,M=a.wrapLongLines,H=M===void 0?!1:M,K=a.lineProps,Z=K===void 0?{}:K,te=a.renderer,Q=a.PreTag,P=Q===void 0?"pre":Q,W=a.CodeTag,ne=W===void 0?"code":W,ce=a.code,C=ce===void 0?(Array.isArray(d)?d[0]:d)||"":ce,U=a.astGenerator,J=Sz(a,Lz);U=U||e;var I=A?Ke.createElement(Uz,{containerStyle:D,codeStyle:E.style||{},numberStyle:F,startingLineNumber:j,codeString:C}):null,ue=f.hljs||f['pre[class*="language-"]']||{backgroundColor:"#fff"},fe=GN(U)?"hljs":"prismjs",de=T?Object.assign({},J,{style:Object.assign({},ue,b)}):Object.assign({},J,{className:J.className?"".concat(fe," ").concat(J.className):fe,style:Object.assign({},b)});if(H?E.style=oa({whiteSpace:"pre-wrap"},E.style):E.style=oa({whiteSpace:"pre"},E.style),!U)return Ke.createElement(P,de,I,Ke.createElement(ne,E,C));(V===void 0&&te||H)&&(V=!0),te=te||zz;var le=[{type:"text",value:C}],we=Pz({astGenerator:U,language:u,code:C,defaultCodeValue:le});we.language===null&&(we.value=le);var me=(o=(s=C.match(/ \n /g))===null||s===void 0?void 0:s.length)!==null&&o!==void 0?o:0,Re=j+me,Oe=Bz(we,V,Z,A,R,j,Re,F,H);return Ke.createElement(P,de,Ke.createElement(ne,E,!R&&I,te({rows:Oe,stylesheet:f,useInlineStyles:T})))}}const Gz="modulepreload",Hz=function(e){return"/"+e},XA={},ZA=function(t,r,a){let o=Promise.resolve();if(r&&r.length>0){let p=function(f){return Promise.all(f.map(h=>Promise.resolve(h).then(b=>({status:"fulfilled",value:b}),b=>({status:"rejected",reason:b}))))};document.getElementsByTagName("link");const u=document.querySelector("meta[property=csp-nonce]"),d=u?.nonce||u?.getAttribute("nonce");o=p(r.map(f=>{if(f=Hz(f),f in XA)return;XA[f]=!0;const h=f.endsWith(".css"),b=h?'[rel="stylesheet"]':"";if(document.querySelector( ` link [ href = "${f}" ] $ { b } ` ))return;const v=document.createElement("link");if(v.rel=h?"stylesheet":Gz,h||(v.as="script"),v.crossOrigin="",v.href=f,d&&v.setAttribute("nonce",d),document.head.appendChild(v),h)return new Promise((E,w)=>{v.addEventListener("load",E),v.addEventListener("error",()=>w(new Error( ` Unable to preload CSS for $ { f } ` )))})}))}function s(u){const d=new Event("vite:preloadError",{cancelable:!0});if(d.payload=u,window.dispatchEvent(d),!d.defaultPrevented)throw u}return o.then(u=>{for(const d of u||[])d.status==="rejected"&&s(d.reason);return t().catch(s)})},Vz=["abap","abnf","actionscript","ada","agda","al","antlr4","apacheconf","apex","apl","applescript","aql","arduino","arff","armasm","arturo","asciidoc","asm6502","asmatmel","aspnet","autohotkey","autoit","avisynth","avro-idl","awk","bash","basic","batch","bbcode","bbj","bicep","birb","bison","bnf","bqn","brainfuck","brightscript","bro","bsl","c","cfscript","chaiscript","cil","cilkc","cilkcpp","clike","clojure","cmake","cobol","coffeescript","concurnas","cooklang","coq","cpp","crystal","csharp","cshtml","csp","css-extras","css","csv","cue","cypher","d","dart","dataweave","dax","dhall","diff","django","dns-zone-file","docker","dot","ebnf","editorconfig","eiffel","ejs","elixir","elm","erb","erlang","etlua","excel-formula","factor","false","firestore-security-rules","flow","fortran","fsharp","ftl","gap","gcode","gdscript","gedcom","gettext","gherkin","git","glsl","gml","gn","go-module","go","gradle","graphql","groovy","haml","handlebars","haskell","haxe","hcl","hlsl","hoon","hpkp","hsts","http","ichigojam","icon","icu-message-format","idris","iecst","ignore","inform7","ini","io","j","java","javado
Line truncated
preset : "${p ?.preset||" zinc "}"
radius : "${p ?.radius||" md "}"
darkMode : $ { p ? . darkMode !== ! 1 } ` })]}),g.jsx("h3",{className:"text-lg font-medium mb-3",children:"Available Presets"}),g.jsx("div",{className:"flex flex-wrap gap-2 mb-6",children:Object.keys(LL).map(m=>g.jsx("span",{className: ` px - 3 py - 1 rounded - full text - sm $ { m === ( p ? . preset || "zinc" ) ? "bg-primary text-primary-foreground" : "bg-muted text-muted-foreground" } ` ,children:m},m))}),g.jsxs("p",{className:"text-muted-foreground mb-4",children:[g.jsx("strong",{children:"Click any item in the sidebar"})," to navigate."]}),g.jsx("h2",{className:"text-2xl font-semibold mt-8 mb-4",children:"Routes"}),g.jsxs("p",{className:"text-muted-foreground mb-4",children:[g.jsx("span",{className:"font-medium text-primary",children:t.routes?.length||0})," routes configured."]}),g.jsx("pre",{className:"bg-muted text-foreground border border-border p-4 rounded-lg text-sm overflow-auto",children:JSON.stringify(t.routes?.slice(0,3),null,2)})]})}const ak=e=>typeof e=="boolean"? ` $ { e } ` :e===0?"0":e,ik=R_,cm=(e,t)=>r=>{var a;if(t?.variants==null)return ik(e,r?.class,r?.className);const{variants:o,defaultVariants:s}=t,u=Object.keys(o).map(f=>{const m=r?.[f],h=s?.[f];if(m===null)return null;const v=ak(m)||ak(h);return o[f][v]}),c=r&&Object.entries(r).reduce((f,m)=>{let[h,v]=m;return v===void 0||(f[h]=v),f},{}),p=t==null||(a=t.compoundVariants)===null||a===void 0?void 0:a.reduce((f,m)=>{let{class:h,className:v,...E}=m;return Object.entries(E).every(x=>{let[w,k]=x;return Array.isArray(k)?k.includes({...s,...c}[w]):{...s,...c}[w]===k})?[...f,h,v]:f},[]);return ik(e,u,p,r?.class,r?.className)},tR=cm("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",xs:"h-6 gap-1 rounded-md px-2 text-xs has-[>svg]:px-1.5 [&_svg:not([class*='size-'])]:size-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9","icon-xs":"size-6 rounded-md [&_svg:not([class*='size-'])]:size-3","icon-sm":"size-8","icon-lg":"size-10"}},defaultVariants:{variant:"default",size:"default"}});function qi({className:e,variant:t="default",size:r="default",asChild:a=!1,...o}){const s=a?Yg:"button";return g.jsx(s,{"data-slot":"button","data-variant":t,"data-size":r,className:me(tR({variant:t,size:r,className:e})),...o})}function Rn({className:e,...t}){return g.jsx("div",{"data-slot":"card",className:me("bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-sm",e),...t})}function zn({className:e,...t}){return g.jsx("div",{"data-slot":"card-header",className:me("@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-2 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6",e),...t})}function Pn({className:e,...t}){return g.jsx("div",{"data-slot":"card-title",className:me("leading-none font-semibold",e),...t})}function dm({className:e,...t}){return g.jsx("div",{"data-slot":"card-description",className:me("text-muted-foreground text-sm",e),...t})}function Cn({className:e,...t}){return g.jsx("div",{"data-slot":"card-content",className:me("px-6",e),...t})}function Wz({className:e,...t}){return g.jsx("div",{"data-slot":"card-footer",className:me("flex items-center px-6 [.border-t]:pt-6",e),...t})}function Kz({props:e}){const t=e?.title||"Statistics",r=e?.value||"0",a=e?.change||"",o=e?.changeType||"positive";return g.jsxs(Rn,{className:"mb-4",children:[g.jsxs(zn,{className:"pb-2",children:[g.jsx(dm,{children:t}),g.jsx(Pn,{className:"text-2xl",children:r})]}),a&&g.jsx(Cn,{className:"pt-0",children:g.jsx("span",{className:o==="positive"?"text-green-500 text-sm":"text-red-500 text-sm",children:a})})]})}function Xz({props:e}){const t=e?.title||"Quick Links",r=e?.links||[];return g.jsxs(Rn,{className:"mb-4",children:[g.jsx(zn,{className:"pb-2",children:g.jsx(Pn,{className:"text-sm font-medium",children:t})}),g.jsx(Cn,{className:"space-y-1",children:r.map((a,o)=>g.jsx("a",{href:a.href,className:"block text-sm text-muted-foreground hover:text-foreground transition-colors",chi
Line truncated
` );p=h .pop()||"";for(const v of h )if(v.startsWith("data: "))try{const E=JSON.parse(v.slice(6));yP (e,E,o)}catch{}}}catch(s){if(s.name!=="AbortError"){const u=B a.get(e);u&&_ n(e,{thinkingSteps:[...u.state.thinkingSteps, ` Error : $ { s . message } ` ]})}}finally{const s=B a.get(e);s&&(s.abortController=null),_ n(e,{isStreaming:!1}),o?.onEnd?.()}}function yP (e,t,r){const a=B a.get(e);if(!a)return;const o=a.toolCallMap;switch(t.type){case"session":t.session_id&&typeof t.session_id=="string"&&r?.onSessionId?.(t.session_id);break;case"token":case"run_content":case"team_run_content":{const u=t.token??t.content??"";u&&_ n(e,{currentResponse:a.state.currentResponse+u});break}case"message":case"run_completed":case"team_run_completed":{const u=t.content;u&&_ n(e,{currentResponse:u});break}case"thinking":case"reasoning_step":case"team_reasoning_step":{const u=t.step;u&&_ n(e,{thinkingSteps:[...a.state.thinkingSteps,u]});break}case"reasoning_started":case"team_reasoning_started":_ n(e,{thinkingSteps:[...a.state.thinkingSteps,"Starting reasoning..."]});break;case"tool_call":case"tool_call_started":case"team_tool_call_started":{const u={name:t.name,description:t.description,icon:t.icon,step_number:t.step_number,status:"running",tool_call_id:t.tool_call_id,args:t.args};u.tool_call_id&&o.set(u.tool_call_id,u);const c=lk (a.state.toolCalls,u);_ n(e,{toolCalls:c });break}case"tool_call_completed":case"team_tool_call_completed":{const u=t.extra_data,c =t.a2ui??u?.a2ui,p=t.elements??u?.elements,f={name:t.name,description:t.description,icon:t.icon,step_number:t.step_number,status:"done",tool_call_id:t.tool_call_id,args:t.args,formatted_result:t.formatted_result,result:t.result,surface_id:t.surface_id??u?.surface_id,a2ui:c ?.length?{messages:c ,surface_id:t.surface_id??u?.surface_id}:void 0,elements:p};f.tool_call_id&&o.set(f.tool_call_id,f);const m=lk (a.state.toolCalls,f),h =p?.length?[...a.state.pendingElements,...p]:a.state.pendingElements;_ n(e,{toolCalls:m ,pendingElements:h });break}case"message_element":{const u=t.extra_data,c =t.element??u?.element;c &&_ n(e,{pendingElements:[...a.state.pendingElements,c ]});break}case"error":case"run_error":case"team_run_error":{const u=t.error;u&&_ n(e,{thinkingSteps:[...a.state.thinkingSteps, ` Error : $ { u } ` ]});break}case"approval_required":case"approval_pending":case"run_paused":{const u=t.extra_data;if(u?.type==="approval_required"){const c=u;window.dispatchEvent(new CustomEvent("aiui:approval-required",{detail:c}))}break}case" end":case"done":case"run_cancelled":case"team_run_cancelled":break;default:fP (e,t);break}}function lk (e,t){if(t.tool_call_id){const r=e.findIndex(a=>a.tool_call_id===t.tool_call_id);if(r>=0){const a=[...e];return a[r]={...a[r],...t},a}}return[...e,t]}function aR (e={}){const{externalSessionId:t}=e,[r,a]=S.useState(()=>A u(t));S.useEffect(()=>{if(!t){a(A u(null));return}return a(A u(t)),gP (t,()=>{a(A u(t))})},[t]);const o=S.useCallback((u,c )=>{const p=t?? ` new - $ { Date . now ( ) } ` ;hP (p,u,c ,{onSessionId:f=>{e.onSessionId?.(f)},onEnd:e.onEnd})},[t,e.onSessionId,e.onEnd]),s=S.useCallback(()=>{t&&mP (t)},[t]);return{isStreaming:r.isStreaming,currentResponse:r.currentResponse,toolCalls:r.toolCalls,thinkingSteps:r.thinkingSteps,pendingElements:r.pendingElements,sendMessage:o,cancel:s}}function vP (e,t){if(e==null)return{};var r={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(t.indexOf(a)!==-1)continue;r[a]=e[a]}return r}function EP (e,t){if(e==null)return{};var r,a,o=vP (e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(a=0;a<s.length;a++)r=s[a],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function h g(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,a=Array(t);r<t;r++)a[r]=e[r];return a}function SP (e){if(Array.isArray(e))return h g(e)}function xP (e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function wP (e,t){if(e){if(typeof e=="string")return h g(e,t);var r={}.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array $ /.test(r)?h g(e,t):void 0}}function TP (){throw new TypeError( ` Invalid attempt to spread non - iterable instance .
In order to be iterable , non - array objects must have a [ Symbol . iterator ] ( ) method . ` )}function bg(e){return SP(e)||xP(e)||wP(e)||TP()}function Cl(e){"@babel/helpers - typeof";return Cl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Cl(e)}function AP(e,t){if(Cl(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var a=r.call(e,t);if(Cl(a)!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function kP(e){var t=AP(e,"string");return Cl(t)=="symbol"?t:t+""}function iR(e,t,r){return(t=kP(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function yg(){return yg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)({}).hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},yg.apply(null,arguments)}function sk(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,a)}return r}function Yi(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?sk(Object(r),!0).forEach(function(a){iR(e,a,r[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):sk(Object(r)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(r,a))})}return e}function _P(e){var t=e.length;if(t===0||t===1)return e;if(t===2)return[e[0],e[1],"".concat(e[0],".").concat(e[1]),"".concat(e[1],".").concat(e[0])];if(t===3)return[e[0],e[1],e[2],"".concat(e[0],".").concat(e[1]),"".concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[0]),"".concat(e[1],".").concat(e[2]),"".concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[1]),"".concat(e[0],".").concat(e[1],".").concat(e[2]),"".concat(e[0],".").concat(e[2],".").concat(e[1]),"".concat(e[1],".").concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[0],".").concat(e[1]),"".concat(e[2],".").concat(e[1],".").concat(e[0])];if(t>=4)return[e[0],e[1],e[2],e[3],"".concat(e[0],".").concat(e[1]),"".concat(e[0],".").concat(e[2]),"".concat(e[0],".").concat(e[3]),"".concat(e[1],".").concat(e[0]),"".concat(e[1],".").concat(e[2]),"".concat(e[1],".").concat(e[3]),"".concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[1]),"".concat(e[2],".").concat(e[3]),"".concat(e[3],".").concat(e[0]),"".concat(e[3],".").concat(e[1]),"".concat(e[3],".").concat(e[2]),"".concat(e[0],".").concat(e[1],".").concat(e[2]),"".concat(e[0],".").concat(e[1],".").concat(e[3]),"".concat(e[0],".").concat(e[2],".").concat(e[1]),"".concat(e[0],".").concat(e[2],".").concat(e[3]),"".concat(e[0],".").concat(e[3],".").concat(e[1]),"".concat(e[0],".").concat(e[3],".").concat(e[2]),"".concat(e[1],".").concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[0],".").concat(e[3]),"".concat(e[1],".").concat(e[2],".").concat(e[0]),"".concat(e[1],".").concat(e[2],".").concat(e[3]),"".concat(e[1],".").concat(e[3],".").concat(e[0]),"".concat(e[1],".").concat(e[3],".").concat(e[2]),"".concat(e[2],".").concat(e[0],".").concat(e[1]),"".concat(e[2],".").concat(e[0],".").concat(e[3]),"".concat(e[2],".").concat(e[1],".").concat(e[0]),"".concat(e[2],".").concat(e[1],".").concat(e[3]),"".concat(e[2],".").concat(e[3],".").concat(e[0]),"".concat(e[2],".").concat(e[3],".").concat(e[1]),"".concat(e[3],".").concat(e[0],".").concat(e[1]),"".concat(e[3],".").concat(e[0],".").concat(e[2]),"".concat(e[3],".").concat(e[1],".").concat(e[0]),"".concat(e[3],".").concat(e[1],".").concat(e[2]),"".concat(e[3],".").concat(e[2],".").concat(e[0]),"".concat(e[3],".").concat(e[2],".").concat(e[1]),"".concat(e[0],".").concat(e[1],".").concat(e[2],".").concat(e[3]),"".concat(e[0],".").concat(e[1],".").concat(e[3],".").concat(e[2]),"".concat(e[0],".").concat(e[2],".").concat(e[1],".").concat(e[3]),"".concat(e[0],".").concat(e[2],".").concat(e[3],".").concat(e[1]),"".concat(e[0],".").concat(e[3],".").concat(e[1],".").concat(e[2]),"".concat(e[0],".").concat(e[3],".").concat(e[2],".").concat(e[1]),"".concat(e[1],".").concat(e[0],".").concat(e[2],".").concat(e[3]),"".concat(e[1],".").concat(e[0],".").concat(e[3],".").concat(e[2]),"".concat(e[1],".").concat(e[2],".").concat(e[0],".").concat(e[3]),"".concat(e[1],".").concat(e[2],".").concat(e[3],".").concat(e[0]),"".concat(e[1],".").concat(e[3],".").concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[3],".").concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[0],".").concat(e[1],".").concat(e[3]),"".concat(e[2],".").concat(e[0],".").concat(e[3],".").concat(e[1]),"".concat(e[2],".").concat(e[1],".").concat(e[0],".").concat(e[3]),"".concat(e[2],".").concat(e[1],".").concat(e[3],".").concat(e[
Line truncated
` ))})}function jP (e){var t=e.codeString,r=e.codeStyle,a=e.containerStyle,o=a===void 0?{float:"left",paddingRight:"10px"}:a,s=e.numberStyle,u=s===void 0?{}:s,c =e.startingLineNumber;return Ke.createElement("code",{style:Object.assign({},r,o)},MP ({lines:t.replace(/ \n $ /,"").split( `
` ),style:u,startingLineNumber:c }))}function UP (e){return"".concat(e.toString().length,".25em")}function lR (e,t){return{type:"element",tagName:"span",properties:{key:"line-number--".concat(e),className:["comment","linenumber","react-syntax-highlighter-line-number"],style:t},children:[{type:"text",value:e}]}}function sR (e,t,r){var a={display:"inline-block",minWidth:UP (r),paddingRight:"1em",textAlign:"right",userSelect:"none"},o=typeof e=="function"?e(t):e,s=l a(l a({},a),o);return s}function j u(e){var t=e.children,r=e.lineNumber,a=e.lineNumberStyle,o=e.largestLineNumber,s=e.showInlineLineNumbers,u=e.lineProps,c =u===void 0?{}:u,p=e.className,f=p===void 0?[]:p,m =e.showLineNumbers,h =e.wrapLongLines,v=e.wrapLines,E=v===void 0?!1:v,x =E?l a({},typeof c =="function"?c (r):c ):{};if(x .className=x .className?[].concat(b g(x .className.trim().split(/ \s +/)),b g(f)):f,r&&s){var w=sR (a,r,o);t.unshift(lR (r,w ))}return h&m &&(x .style=l a({display:"flex"},x .style)),{type:"element",tagName:"span",properties:x ,children:t}}function uR (e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];e.length===void 0&&(e=[e]);for(var a=0;a<e.length;a++){var o=e[a];if(o.type==="text")r.push(j u({children:[o],className:b g(new Set(t))}));else if(o.children){var s,u=t.concat(((s=o.properties)===null||s===void 0?void 0:s.className)||[]);uR (o.children,u).forEach(function(c ){return r.push(c )})}}return r}function FP (e,t,r,a,o,s,u,c ,p){var f,m=uR (e.value),h =[],v=-1,E=0;function x(U,L ){var j =arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];return j u({children:U ,lineNumber:L ,lineNumberStyle:c ,largestLineNumber:u,showInlineLineNumbers:o,lineProps:r,className:j ,showLineNumbers:a,wrapLongLines:p,wrapLines:t})}function w(U,L ){if(a&&L &&o){var j=sR(c,L ,u);U .unshift(lR(L,j ))}return U }function k(U,L ){var j =arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];return t||j .length>0?x(U,L,j):w(U,L )}for(var A=function(){var L=m [E],j=L .children[0].value,P=DP(j );if(P ){var Y=j .split( `
` );Y .forEach(function(M,q ){var K=a&&h .length+s,J ={type:"text",value:"".concat(M, `
` )};if(q===0){var Q=m.slice(v+1,E).concat(ju({children:[J],className:L.properties.className})),ee=k(Q,K);h.push(ee)}else if(q===Y.length-1){var B=m[E+1]&&m[E+1].children&&m[E+1].children[0],V={type:"text",value:"".concat(M)};if(B){var ne=ju({children:[V],className:L.properties.className});m.splice(E+1,0,ne)}else{var de=[V],I=k(de,K,L.properties.className);h.push(I)}}else{var F=[J],z=k(F,K,L.properties.className);h.push(z)}}),v=E}E++};E<m.length;)A();if(v!==m.length-1){var N=m.slice(v+1,m.length);if(N&&N.length){var _=a&&h.length+s,D=k(N,_);h.push(D)}}return t?h:(f=[]).concat.apply(f,h)}function BP(e){var t=e.rows,r=e.stylesheet,a=e.useInlineStyles;return t.map(function(o,s){return oR({node:o,stylesheet:r,useInlineStyles:a,key:"code-segment-".concat(s)})})}function cR(e){return e&&typeof e.highlightAuto<"u"}function zP(e){var t=e.astGenerator,r=e.language,a=e.code,o=e.defaultCodeValue;if(cR(t)){var s=IP(t,r);return r==="text"?{value:o,language:"text"}:s?t.highlight(r,a):t.highlightAuto(a)}try{return r&&r!=="text"?{value:t.highlight(a,r)}:{value:o}}catch{return{value:o}}}function PP(e,t){return function(a){var o,s,u=a.language,c=a.children,p=a.style,f=p===void 0?t:p,m=a.customStyle,h=m===void 0?{}:m,v=a.codeTagProps,E=v===void 0?{className:u?"language-".concat(u):void 0,style:la(la({},f['code[class*="language-"]']),f['code[class*="language-'.concat(u,'"]')])}:v,x=a.useInlineStyles,w=x===void 0?!0:x,k=a.showLineNumbers,A=k===void 0?!1:k,N=a.showInlineLineNumbers,_=N===void 0?!0:N,D=a.startingLineNumber,U=D===void 0?1:D,L=a.lineNumberContainerStyle,j=a.lineNumberStyle,P=j===void 0?{}:j,Y=a.wrapLines,M=a.wrapLongLines,q=M===void 0?!1:M,K=a.lineProps,J=K===void 0?{}:K,Q=a.renderer,ee=a.PreTag,B=ee===void 0?"pre":ee,V=a.CodeTag,ne=V===void 0?"code":V,de=a.code,I=de===void 0?(Array.isArray(c)?c[0]:c)||"":de,F=a.astGenerator,z=EP(a,OP);F=F||e;var C=A?Ke.createElement(jP,{containerStyle:L,codeStyle:E.style||{},numberStyle:P,startingLineNumber:U,codeString:I}):null,ie=f.hljs||f['pre[class*="language-"]']||{backgroundColor:"#fff"},re=cR(F)?"hljs":"prismjs",ce=w?Object.assign({},z,{style:Object.assign({},ie,h)}):Object.assign({},z,{className:z.className?"".concat(re," ").concat(z.className):re,style:Object.assign({},h)});if(q?E.style=la({whiteSpace:"pre-wrap"},E.style):E.style=la({whiteSpace:"pre"},E.style),!F)return Ke.createElement(B,ce,C,Ke.createElement(ne,E,I));(Y===void 0&&Q||q)&&(Y=!0),Q=Q||BP;var se=[{type:"text",value:I}],he=zP({astGenerator:F,language:u,code:I,defaultCodeValue:se});he.language===null&&(he.value=se);var ge=(o=(s=I.match(/ \n /g))===null||s===void 0?void 0:s.length)!==null&&o!==void 0?o:0,ke=U+ge,Ie=FP(he,Y,J,A,_,U,ke,P,q);return Ke.createElement(B,ce,Ke.createElement(ne,E,!_&&C,Q({rows:Ie,stylesheet:f,useInlineStyles:w})))}}const $ P="modulepreload",GP=function(e){return"/"+e},dk={},pk=function(t,r,a){let o=Promise.resolve();if(r&&r.length>0){let p=function(f){return Promise.all(f.map(m=>Promise.resolve(m).then(h=>({status:"fulfilled",value:h}),h=>({status:"rejected",reason:h}))))};document.getElementsByTagName("link");const u=document.querySelector("meta[property=csp-nonce]"),c=u?.nonce||u?.getAttribute("nonce");o=p(r.map(f=>{if(f=GP(f),f in dk)return;dk[f]=!0;const m=f.endsWith(".css"),h=m?'[rel="stylesheet"]':"";if(document.querySelector( ` link [ href = "${f}" ] $ { h } ` ))return;const v=document.createElement("link");if(v.rel=m?"stylesheet": $ P,m||(v.as="script"),v.crossOrigin="",v.href=f,c&&v.setAttribute("nonce",c),document.head.appendChild(v),m)return new Promise((E,x)=>{v.addEventListener("load",E),v.addEventListener("error",()=>x(new Error( ` Unable to preload CSS for $ { f } ` )))})}))}function s(u){const c=new Event("vite:preloadError",{cancelable:!0});if(c.payload=u,window.dispatchEvent(c),!c.defaultPrevented)throw u}return o.then(u=>{for(const c of u||[])c.status==="rejected"&&s(c.reason);return t().catch(s)})},HP=["abap","abnf","actionscript","ada","agda","al","antlr4","apacheconf","apex","apl","applescript","aql","arduino","arff","armasm","arturo","asciidoc","asm6502","asmatmel","aspnet","autohotkey","autoit","avisynth","avro-idl","awk","bash","basic","batch","bbcode","bbj","bicep","birb","bison","bnf","bqn","brainfuck","brightscript","bro","bsl","c","cfscript","chaiscript","cil","cilkc","cilkcpp","clike","clojure","cmake","cobol","coffeescript","concurnas","cooklang","coq","cpp","crystal","csharp","cshtml","csp","css-extras","css","csv","cue","cypher","d","dart","dataweave","dax","dhall","diff","django","dns-zone-file","docker","dot","ebnf","editorconfig","eiffel","ejs","elixir","elm","erb","erlang","etlua","excel-formula","factor","false","firestore-security-rules","flow","fortran","fsharp","ftl","gap","gcode","gdscript","gedcom","gettext","gherkin","git","glsl","gml","gn","go-module","go","gradle","graphql","groovy","haml","handlebars","haskell","haxe","hcl","hlsl","hoon","hpkp","hsts","http","ichigojam","icon","icu-message-format","idris","iecst","ignore","inform7","ini","io","j","java","javadoc"
Line truncated
? |
| ( ? ! [ \ \ s \ \ S ] ) ) ) + ` ,"m"),alias:s,inside:{line:{pattern:/(.)(?=[ \s \S ]).*(?: \r \n ?| \n )?/,lookbehind:!0},prefix:{pattern:/[ \s \S ]/,alias:/ \w +/.exec(a)[0]}}}}),Object.defineProperty(t.languages.diff,"PREFIXES",{value:r})})(e)}Bt.displayName="markup-templating";Bt.aliases=[];function Bt(e){e.register(Ot),(function(t){function r(a,o){return"___"+a.toUpperCase()+o+"___"}Object.defineProperties(t.languages["markup-templating"]={},{buildPlaceholders:{value:function(a,o,s,u){if(a.language===o){var d=a.tokenStack=[];a.code=a.code.replace(s,function(p){if(typeof u=="function"&&!u(p))return p;for(var f=d.length,h;a.code.indexOf(h=r(o,f))!==-1;)++f;return d[f]=p,h}),a.grammar=t.languages.markup}}},tokenizePlaceholders:{value:function(a,o){if(a.language!==o||!a.tokenStack)return;a.grammar=t.languages[o];var s=0,u=Object.keys(a.tokenStack);function d(p){for(var f=0;f<p.length&&!(s>=u.length);f++){var h=p[f];if(typeof h=="string"||h.content&&typeof h.content=="string"){var b=u[s],v=a.tokenStack[b],E=typeof h=="string"?h:h.content,w=r(o,b),T=E.indexOf(w);if(T>-1){++s;var k=E.substring(0,T),A=new t.Token(o,t.tokenize(v,a.grammar),"language-"+o,v),_=E.substring(T+w.length),R=[];k&&R.push.apply(R,d([k])),R.push(A),_&&R.push.apply(R,d([_])),typeof h=="string"?p.splice.apply(p,[f,1].concat(R)):h.content=R}}else h.content&&d(h.content)}return p}d(a.tokens)}}})})(e)}uh.displayName="django";uh.aliases=["jinja2"];function uh(e){e.register(Bt),(function(t){t.languages.django={comment:/^ \{ #[ \s \S ]*?# \} $ /,tag:{pattern:/(^ \{ %[+-]? \s *) \w +/,lookbehind:!0,alias:"keyword"},delimiter:{pattern:/^ \{ [{%][+-]?|[+-]?[}%] \} $ /,alias:"punctuation"},string:{pattern:/("|')(?: \\ .|(?! \1 )[^ \\ \r \n ])* \1 /,greedy:!0},filter:{pattern:/( \| ) \w +/,lookbehind:!0,alias:"function"},test:{pattern:/( \b is \s +(?:not \s +)?)(?!not \b ) \w +/,lookbehind:!0,alias:"function"},function:/ \b [a-z_] \w +(?= \s * \( )/i,keyword:/ \b (?:and|as|by|else|for|if|import|in|is|loop|not|or|recursive|with|without) \b /,operator:/[-+%=]=?|!=| \* \* ?=?| \/ \/ ?=?|<[<=>]?|>[=>]?|[&|^~]/,number:/ \b \d +(?: \. \d +)? \b /,boolean:/[Ff]alse|[Nn]one|[Tt]rue/,variable:/ \b \w + \b /,punctuation:/[{}[ \] (),.:;]/};var r=/ \{ \{ [ \s \S ]*? \} \} | \{ %[ \s \S ]*?% \} | \{ #[ \s \S ]*?# \} /g,a=t.languages["markup-templating"];t.hooks.add("before-tokenize",function(o){a.buildPlaceholders(o,"django",r)}),t.hooks.add("after-tokenize",function(o){a.tokenizePlaceholders(o,"django")}),t.languages.jinja2=t.languages.django,t.hooks.add("before-tokenize",function(o){a.buildPlaceholders(o,"jinja2",r)}),t.hooks.add("after-tokenize",function(o){a.tokenizePlaceholders(o,"jinja2")})})(e)}ch.displayName="dns-zone-file";ch.aliases=["dns-zone"];function ch(e){e.languages["dns-zone-file"]={comment:/;.*/,string:{pattern:/"(?: \\ .|[^" \\ \r \n ])*"/,greedy:!0},variable:[{pattern:/(^ \$ ORIGIN[ \t ]+) \S +/m,lookbehind:!0},{pattern:/(^| \s )@(?= \s | $ )/,lookbehind:!0}],keyword:/^ \$ (?:INCLUDE|ORIGIN|TTL)(?= \s | $ )/m,class:{pattern:/(^| \s )(?:CH|CS|HS|IN)(?= \s | $ )/,lookbehind:!0,alias:"keyword"},type:{pattern:/(^| \s )(?:A|A6|AAAA|AFSDB|APL|ATMA|CAA|CDNSKEY|CDS|CERT|CNAME|DHCID|DLV|DNAME|DNSKEY|DS|EID|GID|GPOS|HINFO|HIP|IPSECKEY|ISDN|KEY|KX|LOC|MAILA|MAILB|MB|MD|MF|MG|MINFO|MR|MX|NAPTR|NB|NBSTAT|NIMLOC|NINFO|NS|NSAP|NSAP-PTR|NSEC|NSEC3|NSEC3PARAM|NULL|NXT|OPENPGPKEY|PTR|PX|RKEY|RP|RRSIG|RT|SIG|SINK|SMIMEA|SOA|SPF|SRV|SSHFP|TA|TKEY|TLSA|TSIG|TXT|UID|UINFO|UNSPEC|URI|WKS|X25)(?= \s | $ )/,lookbehind:!0,alias:"keyword"},punctuation:/[()]/},e.languages["dns-zone"]=e.languages["dns-zone-file"]}dh.displayName="docker";dh.aliases=["dockerfile"];function dh(e){(function(t){var r=/ \\ [ \r \n ](?: \s | \\ [ \r \n ]|#.*(?!.))*(?![ \s #]| \\ [ \r \n ])/.source,a=/(?:[ \t ]+(?![ \t ])(?:<SP_BS>)?|<SP_BS>)/.source.replace(/<SP_BS>/g,function(){return r}),o=/"(?:[^" \\ \r \n ]| \\ (?: \r \n |[ \s \S ]))*"|'(?:[^' \\ \r \n ]| \\ (?: \r \n |[ \s \S ]))*'/.source,s=/--[ \w -]+=(?:<STR>|(?!["'])(?:[^ \s \\ ]| \\ .)+)/.source.replace(/<STR>/g,function(){return o}),u={pattern:RegExp(o),greedy:!0},d={pattern:/(^[ \t ]*)#.*/m,lookbehind:!0,greedy:!0};function p(f,h){return f=f.replace(/<OPT>/g,function(){return s}).replace(/<SP>/g,function(){return a}),RegExp(f,h)}t.languages.docker={instruction:{pattern:/(^[ \t ]*)(?:ADD|ARG|CMD|COPY|ENTRYPOINT|ENV|EXPOSE|FROM|HEALTHCHECK|LABEL|MAINTAINER|ONBUILD|RUN|SHELL|STOPSIGNAL|USER|VOLUME|WORKDIR)(?= \s )(?: \\ .|[^ \r \n \\ ])*(?: \\ $ (?: \s |#.* $ )*(?![ \s #])(?: \\ .|[^ \r \n \\ ])*)*/im,lookbehind:!0,greedy:!0,inside:{options:{pattern:p(/(^(?:ONBUILD<SP>)? \w +<SP>)<OPT>(?:<SP><OPT>)*/.source,"i"),lookbehind:!0,greedy:!0,inside:{property:{pattern:/(^| \s )--[ \w -]+/,lookbehind:!0},string:[u,{pattern:/(=)(?!["'])(?:[^ \s \\ ]| \\ .)+/,lookbehind:!0}],operator:/ \\ $ /m,punctuation:/=/}},keyword:[{pattern:p(/(^(?:ONBUILD<SP>)?HEALTHCHECK<SP>(?:<OPT><SP>)*)(?:CMD|NONE) \b /.source,"i"),lookbehind:!0,greedy:!0},{pattern:p(/(^(?:ONBUILD<SP>)?FROM<SP>(?:<OPT><SP>)*(?!--)[^ \t \\ ]+<SP>)AS/.source,"i"),lookbehind:!0,greedy:!0},{pattern:p(/(^ONBUILD<SP>) \w +/.source,"i"),lookbehind:!0,greedy:!0},{pattern:/^ \w +/,greedy:!0}],comment:d,string:u,variable:/ \$ (?: \w +| \{ [^{}"' \\ ]* \} )/,oper
Line truncated
] ) ) ( ? : ` +(/[^ \s \\ ]/.source+'|[ ]+(?:(?![ "])|'+a+")|"+/ \\ [ \r \n ]+(?:[#;].*[ \r \n ]+)*(?![#;])/.source)+")*"),lookbehind:!0,greedy:!0,alias:"attr-value",inside:{comment:r,quoted:{pattern:RegExp(/(^| \s )/.source+a),lookbehind:!0,greedy:!0},punctuation:/ \\ $ /m,boolean:{pattern:/^(?:false|no|off|on|true|yes) $ /,greedy:!0}}},punctuation:/=/}})(e)}Ul.displayName="t4-templating";Ul.aliases=[];function Ul(e){(function(t){function r(o,s,u){return{pattern:RegExp("<#"+o+"[ \\ s \\ S]*?#>"),alias:"block",inside:{delimiter:{pattern:RegExp("^<#"+o+"|#> $ "),alias:"important"},content:{pattern:/[ \s \S ]+/,inside:s,alias:u}}}}function a(o){var s=t.languages[o],u="language-"+o;return{block:{pattern:/<#[ \s \S ]+?#>/,inside:{directive:r("@",{"attr-value":{pattern:/=(?:("|')(?: \\ [ \s \S ]|(?! \1 )[^ \\ ])* \1 |[^ \s '">=]+)/,inside:{punctuation:/^=|^["']|["'] $ /}},keyword:/ \b \w +(?= \s )/,"attr-name":/ \b \w +/}),expression:r("=",s,u),"class-feature":r(" \\ +",s,u),standard:r("",s,u)}}}}t.languages["t4-templating"]=Object.defineProperty({},"createT4",{value:a})})(e)}TE.displayName="t4-cs";TE.aliases=["t4"];function TE(e){e.register(to),e.register(Ul),e.languages.t4=e.languages["t4-cs"]=e.languages["t4-templating"].createT4("csharp")}bc.displayName="vbnet";bc.aliases=[];function bc(e){e.register(dc),e.languages.vbnet=e.languages.extend("basic",{comment:[{pattern:/(?:!|REM \b ).+/i,inside:{keyword:/^REM/i}},{pattern:/(^|[^ \\ :])'.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(^|[^"])"(?:""|[^"])*"(?!")/,lookbehind:!0,greedy:!0},keyword:/(?: \b (?:ADDHANDLER|ADDRESSOF|ALIAS|AND|ANDALSO|AS|BEEP|BLOAD|BOOLEAN|BSAVE|BYREF|BYTE|BYVAL|CALL(?: ABSOLUTE)?|CASE|CATCH|CBOOL|CBYTE|CCHAR|CDATE|CDBL|CDEC|CHAIN|CHAR|CHDIR|CINT|CLASS|CLEAR|CLNG|CLOSE|CLS|COBJ|COM|COMMON|CONST|CONTINUE|CSBYTE|CSHORT|CSNG|CSTR|CTYPE|CUINT|CULNG|CUSHORT|DATA|DATE|DECIMAL|DECLARE|DEF(?: FN| SEG|DBL|INT|LNG|SNG|STR)|DEFAULT|DELEGATE|DIM|DIRECTCAST|DO|DOUBLE|ELSE|ELSEIF|END|ENUM|ENVIRON|ERASE|ERROR|EVENT|EXIT|FALSE|FIELD|FILES|FINALLY|FOR(?: EACH)?|FRIEND|FUNCTION|GET|GETTYPE|GETXMLNAMESPACE|GLOBAL|GOSUB|GOTO|HANDLES|IF|IMPLEMENTS|IMPORTS|IN|INHERITS|INPUT|INTEGER|INTERFACE|IOCTL|IS|ISNOT|KEY|KILL|LET|LIB|LIKE|LINE INPUT|LOCATE|LOCK|LONG|LOOP|LSET|ME|MKDIR|MOD|MODULE|MUSTINHERIT|MUSTOVERRIDE|MYBASE|MYCLASS|NAME|NAMESPACE|NARROWING|NEW|NEXT|NOT|NOTHING|NOTINHERITABLE|NOTOVERRIDABLE|OBJECT|OF|OFF|ON(?: COM| ERROR| KEY| TIMER)?|OPEN|OPERATOR|OPTION(?: BASE)?|OPTIONAL|OR|ORELSE|OUT|OVERLOADS|OVERRIDABLE|OVERRIDES|PARAMARRAY|PARTIAL|POKE|PRIVATE|PROPERTY|PROTECTED|PUBLIC|PUT|RAISEEVENT|READ|READONLY|REDIM|REM|REMOVEHANDLER|RESTORE|RESUME|RETURN|RMDIR|RSET|RUN|SBYTE|SELECT(?: CASE)?|SET|SHADOWS|SHARED|SHELL|SHORT|SINGLE|SLEEP|STATIC|STEP|STOP|STRING|STRUCTURE|SUB|SWAP|SYNCLOCK|SYSTEM|THEN|THROW|TIMER|TO|TROFF|TRON|TRUE|TRY|TRYCAST|TYPE|TYPEOF|UINTEGER|ULONG|UNLOCK|UNTIL|USHORT|USING|VIEW PRINT|WAIT|WEND|WHEN|WHILE|WIDENING|WITH|WITHEVENTS|WRITE|WRITEONLY|XOR)| \B (?:#CONST|#ELSE|#ELSEIF|#END|#IF))(?: \$ | \b )/i,punctuation:/[,;:(){}]/})}AE.displayName="t4-vb";AE.aliases=[];function AE(e){e.register(Ul),e.register(bc),e.languages["t4-vb"]=e.languages["t4-templating"].createT4("vbnet")}kE.displayName="tap";kE.aliases=[];function kE(e){e.register(cc),e.languages.tap={fail:/not ok[^#{ \n \r ]*/,pass:/ok[^#{ \n \r ]*/,pragma:/pragma [+-][a-z]+/,bailout:/bail out!.*/i,version:/TAP version \d +/i,plan:/ \b \d + \. \. \d +(?: +#.*)?/,subtest:{pattern:/# Subtest(?:: .*)?/,greedy:!0},punctuation:/[{}]/,directive:/#.*/,yamlish:{pattern:/(^[ \t ]*)---[ \s \S ]*?[ \r \n ][ \t ]* \. \. \. $ /m,lookbehind:!0,inside:e.languages.yaml,alias:"language-yaml"}}}_E.displayName="tcl";_E.aliases=[];function _E(e){e.languages.tcl={comment:{pattern:/(^|[^ \\ ])#.*/,lookbehind:!0},string:{pattern:/"(?:[^" \\ \r \n ]| \\ (?: \r \n |[ \s \S ]))*"/,greedy:!0},variable:[{pattern:/( \$ )(?:::)?(?:[a-zA-Z0-9]+::)* \w +/,lookbehind:!0},{pattern:/( \$ ) \{ [^}]+ \} /,lookbehind:!0},{pattern:/(^[ \t ]*set[ \t ]+)(?:::)?(?:[a-zA-Z0-9]+::)* \w +/m,lookbehind:!0}],function:{pattern:/(^[ \t ]*proc[ \t ]+) \S +/m,lookbehind:!0},builtin:[{pattern:/(^[ \t ]*)(?:break|class|continue|error|eval|exit|for|foreach|if|proc|return|switch|while) \b /m,lookbehind:!0},/ \b (?:else|elseif) \b /],scope:{pattern:/(^[ \t ]*)(?:global|upvar|variable) \b /m,lookbehind:!0,alias:"constant"},keyword:{pattern:/(^[ \t ]*| \[ )(?:Safe_Base|Tcl|after|append|apply|array|auto_(?:execok|import|load|mkindex|qualify|reset)|automkindex_old|bgerror|binary|catch|cd|chan|clock|close|concat|dde|dict|encoding|eof|exec|expr|fblocked|fconfigure|fcopy|file(?:event|name)?|flush|gets|glob|history|http|incr|info|interp|join|lappend|lassign|lindex|linsert|list|llength|load|lrange|lrepeat|lreplace|lreverse|lsearch|lset|lsort|math(?:func|op)|memory|msgcat|namespace|open|package|parray|pid|pkg_mkIndex|platform|puts|pwd|re_syntax|read|refchan|regexp|registry|regsub|rename|scan|seek|set|socket|source|split|string|subst|tcl(?:_endOfWord|_findLibrary|startOf(?:Next|Previous)Word|test|vars|wordBreak(?:After|Before))|tell|time|tm|trace|unknown|unload|unset|update|uplevel|vwait
Line truncated
| ( ? ! [ \ \ s \ \ S ] ) ) ) + ` ,"m"),alias:s,inside:{line:{pattern:/(.)(?=[ \s \S ]).*(?: \r \n ?| \n )?/,lookbehind:!0},prefix:{pattern:/[ \s \S ]/,alias:/ \w +/.exec(a)[0]}}}}),Object.defineProperty(t.languages.diff,"PREFIXES",{value:r})})(e)}zt.displayName="markup-templating";zt.aliases=[];function zt(e){e.register(Ot),(function(t){function r(a,o){return"___"+a.toUpperCase()+o+"___"}Object.defineProperties(t.languages["markup-templating"]={},{buildPlaceholders:{value:function(a,o,s,u){if(a.language===o){var c=a.tokenStack=[];a.code=a.code.replace(s,function(p){if(typeof u=="function"&&!u(p))return p;for(var f=c.length,m;a.code.indexOf(m=r(o,f))!==-1;)++f;return c[f]=p,m}),a.grammar=t.languages.markup}}},tokenizePlaceholders:{value:function(a,o){if(a.language!==o||!a.tokenStack)return;a.grammar=t.languages[o];var s=0,u=Object.keys(a.tokenStack);function c(p){for(var f=0;f<p.length&&!(s>=u.length);f++){var m=p[f];if(typeof m=="string"||m.content&&typeof m.content=="string"){var h=u[s],v=a.tokenStack[h],E=typeof m=="string"?m:m.content,x=r(o,h),w=E.indexOf(x);if(w>-1){++s;var k=E.substring(0,w),A=new t.Token(o,t.tokenize(v,a.grammar),"language-"+o,v),N=E.substring(w+x.length),_=[];k&&_.push.apply(_,c([k])),_.push(A),N&&_.push.apply(_,c([N])),typeof m=="string"?p.splice.apply(p,[f,1].concat(_)):m.content=_}}else m.content&&c(m.content)}return p}c(a.tokens)}}})})(e)}xh.displayName="django";xh.aliases=["jinja2"];function xh(e){e.register(zt),(function(t){t.languages.django={comment:/^ \{ #[ \s \S ]*?# \} $ /,tag:{pattern:/(^ \{ %[+-]? \s *) \w +/,lookbehind:!0,alias:"keyword"},delimiter:{pattern:/^ \{ [{%][+-]?|[+-]?[}%] \} $ /,alias:"punctuation"},string:{pattern:/("|')(?: \\ .|(?! \1 )[^ \\ \r \n ])* \1 /,greedy:!0},filter:{pattern:/( \| ) \w +/,lookbehind:!0,alias:"function"},test:{pattern:/( \b is \s +(?:not \s +)?)(?!not \b ) \w +/,lookbehind:!0,alias:"function"},function:/ \b [a-z_] \w +(?= \s * \( )/i,keyword:/ \b (?:and|as|by|else|for|if|import|in|is|loop|not|or|recursive|with|without) \b /,operator:/[-+%=]=?|!=| \* \* ?=?| \/ \/ ?=?|<[<=>]?|>[=>]?|[&|^~]/,number:/ \b \d +(?: \. \d +)? \b /,boolean:/[Ff]alse|[Nn]one|[Tt]rue/,variable:/ \b \w + \b /,punctuation:/[{}[ \] (),.:;]/};var r=/ \{ \{ [ \s \S ]*? \} \} | \{ %[ \s \S ]*?% \} | \{ #[ \s \S ]*?# \} /g,a=t.languages["markup-templating"];t.hooks.add("before-tokenize",function(o){a.buildPlaceholders(o,"django",r)}),t.hooks.add("after-tokenize",function(o){a.tokenizePlaceholders(o,"django")}),t.languages.jinja2=t.languages.django,t.hooks.add("before-tokenize",function(o){a.buildPlaceholders(o,"jinja2",r)}),t.hooks.add("after-tokenize",function(o){a.tokenizePlaceholders(o,"jinja2")})})(e)}wh.displayName="dns-zone-file";wh.aliases=["dns-zone"];function wh(e){e.languages["dns-zone-file"]={comment:/;.*/,string:{pattern:/"(?: \\ .|[^" \\ \r \n ])*"/,greedy:!0},variable:[{pattern:/(^ \$ ORIGIN[ \t ]+) \S +/m,lookbehind:!0},{pattern:/(^| \s )@(?= \s | $ )/,lookbehind:!0}],keyword:/^ \$ (?:INCLUDE|ORIGIN|TTL)(?= \s | $ )/m,class:{pattern:/(^| \s )(?:CH|CS|HS|IN)(?= \s | $ )/,lookbehind:!0,alias:"keyword"},type:{pattern:/(^| \s )(?:A|A6|AAAA|AFSDB|APL|ATMA|CAA|CDNSKEY|CDS|CERT|CNAME|DHCID|DLV|DNAME|DNSKEY|DS|EID|GID|GPOS|HINFO|HIP|IPSECKEY|ISDN|KEY|KX|LOC|MAILA|MAILB|MB|MD|MF|MG|MINFO|MR|MX|NAPTR|NB|NBSTAT|NIMLOC|NINFO|NS|NSAP|NSAP-PTR|NSEC|NSEC3|NSEC3PARAM|NULL|NXT|OPENPGPKEY|PTR|PX|RKEY|RP|RRSIG|RT|SIG|SINK|SMIMEA|SOA|SPF|SRV|SSHFP|TA|TKEY|TLSA|TSIG|TXT|UID|UINFO|UNSPEC|URI|WKS|X25)(?= \s | $ )/,lookbehind:!0,alias:"keyword"},punctuation:/[()]/},e.languages["dns-zone"]=e.languages["dns-zone-file"]}Th.displayName="docker";Th.aliases=["dockerfile"];function Th(e){(function(t){var r=/ \\ [ \r \n ](?: \s | \\ [ \r \n ]|#.*(?!.))*(?![ \s #]| \\ [ \r \n ])/.source,a=/(?:[ \t ]+(?![ \t ])(?:<SP_BS>)?|<SP_BS>)/.source.replace(/<SP_BS>/g,function(){return r}),o=/"(?:[^" \\ \r \n ]| \\ (?: \r \n |[ \s \S ]))*"|'(?:[^' \\ \r \n ]| \\ (?: \r \n |[ \s \S ]))*'/.source,s=/--[ \w -]+=(?:<STR>|(?!["'])(?:[^ \s \\ ]| \\ .)+)/.source.replace(/<STR>/g,function(){return o}),u={pattern:RegExp(o),greedy:!0},c={pattern:/(^[ \t ]*)#.*/m,lookbehind:!0,greedy:!0};function p(f,m){return f=f.replace(/<OPT>/g,function(){return s}).replace(/<SP>/g,function(){return a}),RegExp(f,m)}t.languages.docker={instruction:{pattern:/(^[ \t ]*)(?:ADD|ARG|CMD|COPY|ENTRYPOINT|ENV|EXPOSE|FROM|HEALTHCHECK|LABEL|MAINTAINER|ONBUILD|RUN|SHELL|STOPSIGNAL|USER|VOLUME|WORKDIR)(?= \s )(?: \\ .|[^ \r \n \\ ])*(?: \\ $ (?: \s |#.* $ )*(?![ \s #])(?: \\ .|[^ \r \n \\ ])*)*/im,lookbehind:!0,greedy:!0,inside:{options:{pattern:p(/(^(?:ONBUILD<SP>)? \w +<SP>)<OPT>(?:<SP><OPT>)*/.source,"i"),lookbehind:!0,greedy:!0,inside:{property:{pattern:/(^| \s )--[ \w -]+/,lookbehind:!0},string:[u,{pattern:/(=)(?!["'])(?:[^ \s \\ ]| \\ .)+/,lookbehind:!0}],operator:/ \\ $ /m,punctuation:/=/}},keyword:[{pattern:p(/(^(?:ONBUILD<SP>)?HEALTHCHECK<SP>(?:<OPT><SP>)*)(?:CMD|NONE) \b /.source,"i"),lookbehind:!0,greedy:!0},{pattern:p(/(^(?:ONBUILD<SP>)?FROM<SP>(?:<OPT><SP>)*(?!--)[^ \t \\ ]+<SP>)AS/.source,"i"),lookbehind:!0,greedy:!0},{pattern:p(/(^ONBUILD<SP>) \w +/.source,"i"),lookbehind:!0,greedy:!0},{pattern:/^ \w +/,greedy:!0}],comment:c,string:u,variable:/ \$ (?: \w +| \{ [^{}"' \\ ]* \} )/,oper
Line truncated
] ) ) ( ? : ` +(/[^ \s \\ ]/.source+'|[ ]+(?:(?![ "])|'+a+")|"+/ \\ [ \r \n ]+(?:[#;].*[ \r \n ]+)*(?![#;])/.source)+")*"),lookbehind:!0,greedy:!0,alias:"attr-value",inside:{comment:r,quoted:{pattern:RegExp(/(^| \s )/.source+a),lookbehind:!0,greedy:!0},punctuation:/ \\ $ /m,boolean:{pattern:/^(?:false|no|off|on|true|yes) $ /,greedy:!0}}},punctuation:/=/}})(e)}Gl.displayName="t4-templating";Gl.aliases=[];function Gl(e){(function(t){function r(o,s,u){return{pattern:RegExp("<#"+o+"[ \\ s \\ S]*?#>"),alias:"block",inside:{delimiter:{pattern:RegExp("^<#"+o+"|#> $ "),alias:"important"},content:{pattern:/[ \s \S ]+/,inside:s,alias:u}}}}function a(o){var s=t.languages[o],u="language-"+o;return{block:{pattern:/<#[ \s \S ]+?#>/,inside:{directive:r("@",{"attr-value":{pattern:/=(?:("|')(?: \\ [ \s \S ]|(?! \1 )[^ \\ ])* \1 |[^ \s '">=]+)/,inside:{punctuation:/^=|^["']|["'] $ /}},keyword:/ \b \w +(?= \s )/,"attr-name":/ \b \w +/}),expression:r("=",s,u),"class-feature":r(" \\ +",s,u),standard:r("",s,u)}}}}t.languages["t4-templating"]=Object.defineProperty({},"createT4",{value:a})})(e)}Uv.displayName="t4-cs";Uv.aliases=["t4"];function Uv(e){e.register(io),e.register(Gl),e.languages.t4=e.languages["t4-cs"]=e.languages["t4-templating"].createT4("csharp")}Tc.displayName="vbnet";Tc.aliases=[];function Tc(e){e.register(yc),e.languages.vbnet=e.languages.extend("basic",{comment:[{pattern:/(?:!|REM \b ).+/i,inside:{keyword:/^REM/i}},{pattern:/(^|[^ \\ :])'.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(^|[^"])"(?:""|[^"])*"(?!")/,lookbehind:!0,greedy:!0},keyword:/(?: \b (?:ADDHANDLER|ADDRESSOF|ALIAS|AND|ANDALSO|AS|BEEP|BLOAD|BOOLEAN|BSAVE|BYREF|BYTE|BYVAL|CALL(?: ABSOLUTE)?|CASE|CATCH|CBOOL|CBYTE|CCHAR|CDATE|CDBL|CDEC|CHAIN|CHAR|CHDIR|CINT|CLASS|CLEAR|CLNG|CLOSE|CLS|COBJ|COM|COMMON|CONST|CONTINUE|CSBYTE|CSHORT|CSNG|CSTR|CTYPE|CUINT|CULNG|CUSHORT|DATA|DATE|DECIMAL|DECLARE|DEF(?: FN| SEG|DBL|INT|LNG|SNG|STR)|DEFAULT|DELEGATE|DIM|DIRECTCAST|DO|DOUBLE|ELSE|ELSEIF|END|ENUM|ENVIRON|ERASE|ERROR|EVENT|EXIT|FALSE|FIELD|FILES|FINALLY|FOR(?: EACH)?|FRIEND|FUNCTION|GET|GETTYPE|GETXMLNAMESPACE|GLOBAL|GOSUB|GOTO|HANDLES|IF|IMPLEMENTS|IMPORTS|IN|INHERITS|INPUT|INTEGER|INTERFACE|IOCTL|IS|ISNOT|KEY|KILL|LET|LIB|LIKE|LINE INPUT|LOCATE|LOCK|LONG|LOOP|LSET|ME|MKDIR|MOD|MODULE|MUSTINHERIT|MUSTOVERRIDE|MYBASE|MYCLASS|NAME|NAMESPACE|NARROWING|NEW|NEXT|NOT|NOTHING|NOTINHERITABLE|NOTOVERRIDABLE|OBJECT|OF|OFF|ON(?: COM| ERROR| KEY| TIMER)?|OPEN|OPERATOR|OPTION(?: BASE)?|OPTIONAL|OR|ORELSE|OUT|OVERLOADS|OVERRIDABLE|OVERRIDES|PARAMARRAY|PARTIAL|POKE|PRIVATE|PROPERTY|PROTECTED|PUBLIC|PUT|RAISEEVENT|READ|READONLY|REDIM|REM|REMOVEHANDLER|RESTORE|RESUME|RETURN|RMDIR|RSET|RUN|SBYTE|SELECT(?: CASE)?|SET|SHADOWS|SHARED|SHELL|SHORT|SINGLE|SLEEP|STATIC|STEP|STOP|STRING|STRUCTURE|SUB|SWAP|SYNCLOCK|SYSTEM|THEN|THROW|TIMER|TO|TROFF|TRON|TRUE|TRY|TRYCAST|TYPE|TYPEOF|UINTEGER|ULONG|UNLOCK|UNTIL|USHORT|USING|VIEW PRINT|WAIT|WEND|WHEN|WHILE|WIDENING|WITH|WITHEVENTS|WRITE|WRITEONLY|XOR)| \B (?:#CONST|#ELSE|#ELSEIF|#END|#IF))(?: \$ | \b )/i,punctuation:/[,;:(){}]/})}Fv.displayName="t4-vb";Fv.aliases=[];function Fv(e){e.register(Gl),e.register(Tc),e.languages["t4-vb"]=e.languages["t4-templating"].createT4("vbnet")}Bv.displayName="tap";Bv.aliases=[];function Bv(e){e.register(bc),e.languages.tap={fail:/not ok[^#{ \n \r ]*/,pass:/ok[^#{ \n \r ]*/,pragma:/pragma [+-][a-z]+/,bailout:/bail out!.*/i,version:/TAP version \d +/i,plan:/ \b \d + \. \. \d +(?: +#.*)?/,subtest:{pattern:/# Subtest(?:: .*)?/,greedy:!0},punctuation:/[{}]/,directive:/#.*/,yamlish:{pattern:/(^[ \t ]*)---[ \s \S ]*?[ \r \n ][ \t ]* \. \. \. $ /m,lookbehind:!0,inside:e.languages.yaml,alias:"language-yaml"}}}zv.displayName="tcl";zv.aliases=[];function zv(e){e.languages.tcl={comment:{pattern:/(^|[^ \\ ])#.*/,lookbehind:!0},string:{pattern:/"(?:[^" \\ \r \n ]| \\ (?: \r \n |[ \s \S ]))*"/,greedy:!0},variable:[{pattern:/( \$ )(?:::)?(?:[a-zA-Z0-9]+::)* \w +/,lookbehind:!0},{pattern:/( \$ ) \{ [^}]+ \} /,lookbehind:!0},{pattern:/(^[ \t ]*set[ \t ]+)(?:::)?(?:[a-zA-Z0-9]+::)* \w +/m,lookbehind:!0}],function:{pattern:/(^[ \t ]*proc[ \t ]+) \S +/m,lookbehind:!0},builtin:[{pattern:/(^[ \t ]*)(?:break|class|continue|error|eval|exit|for|foreach|if|proc|return|switch|while) \b /m,lookbehind:!0},/ \b (?:else|elseif) \b /],scope:{pattern:/(^[ \t ]*)(?:global|upvar|variable) \b /m,lookbehind:!0,alias:"constant"},keyword:{pattern:/(^[ \t ]*| \[ )(?:Safe_Base|Tcl|after|append|apply|array|auto_(?:execok|import|load|mkindex|qualify|reset)|automkindex_old|bgerror|binary|catch|cd|chan|clock|close|concat|dde|dict|encoding|eof|exec|expr|fblocked|fconfigure|fcopy|file(?:event|name)?|flush|gets|glob|history|http|incr|info|interp|join|lappend|lassign|lindex|linsert|list|llength|load|lrange|lrepeat|lreplace|lreverse|lsearch|lset|lsort|math(?:func|op)|memory|msgcat|namespace|open|package|parray|pid|pkg_mkIndex|platform|puts|pwd|re_syntax|read|refchan|regexp|registry|regsub|rename|scan|seek|set|socket|source|split|string|subst|tcl(?:_endOfWord|_findLibrary|startOf(?:Next|Previous)Word|test|vars|wordBreak(?:After|Before))|tell|time|tm|trace|unknown|unload|unset|update|uplevel|vwait
Line truncated
- a positive number
- less than the value passed to \ ` max \` (or ${ dv } if no \` max \` prop is set)
- less than the value passed to \ ` max \` (or ${ TE } if no \` max \` prop is set)
- \ ` null \` or \` undefined \` if the progress is indeterminate.
Defaulting to \ ` null \` . ` } var b3 = PR , y3 = GR ; function E3 ( { className : e , value : t , ... r } ) { return g . jsx ( b3 , { "data-slot" : "progress" , className : be ( "bg-primary/20 relative h-2 w-full overflow-hidden rounded-full" , e ) , ... r , children : g . jsx ( y3 , { "data-slot" : "progress-indicator" , className : "bg-primary h-full w-full flex-1 transition-all" , style : { transform : ` translateX(- ${ 100 - ( t || 0 ) } %) ` } } ) } ) } function Bl ( e ) { const t = S . useRef ( { value : e , previous : e } ) ; return S . useMemo ( ( ) => ( t . current . value !== e && ( t . current . previous = t . current . value , t . current . value = e ) , t . current . previous ) , [ e ] ) } function zl ( e ) { const [ t , r ] = S . useState ( void 0 ) ; return gt ( ( ) => { if ( e ) { r ( { width : e . offsetWidth , height : e . offsetHeight } ) ; const a = new ResizeObserver ( o => { if ( ! Array . isArray ( o ) || ! o . length ) return ; const s = o [ 0 ] ; let u , d ; if ( "borderBoxSize" in s ) { const p = s . borderBoxSize , f = Array . isArray ( p ) ? p [ 0 ] : p ; u = f . inlineSize , d = f . blockSize } else u = e . offsetWidth , d = e . offsetHeight ; r ( { width : u , height : d } ) } ) ; return a . observe ( e , { box : "border-box" } ) , ( ) => a . unobserve ( e ) } else r ( void 0 ) } , [ e ] ) , t } var Ac = "Switch" , [ v3 ] = jt ( Ac ) , [ S3 , x3 ] = v3 ( Ac ) , VR = S . forwardRef ( ( e , t ) => { const { _ _scopeSwitch : r , name : a , checked : o , defaultChecked : s , required : u , disabled : d , value : p = "on" , onCheckedChange : f , form : h , ... b } = e , [ v , E ] = S . useState ( null ) , w = _e ( t , R => E ( R ) ) , T = S . useRef ( ! 1 ) , k = v ? h || ! ! v . closest ( "form" ) : ! 0 , [ A , _ ] = en ( { prop : o , defaultProp : s ? ? ! 1 , onChange : f , caller : Ac } ) ; return g . jsxs ( S3 , { scope : r , checked : A , disabled : d , children : [ g . jsx ( Se . button , { type : "button" , role : "switch" , "aria-checked" : A , "aria-required" : u , "data-state" : KR ( A ) , "data-disabled" : d ? "" : void 0 , disabled : d , value : p , ... b , ref : w , onClick : ge ( e . onClick , R => { _ ( L => ! L ) , k && ( T . current = R . isPropagationStopped ( ) , T . current || R . stopPropagation ( ) ) } ) } ) , k && g . jsx ( WR , { control : v , bubbles : ! T . current , name : a , value : p , checked : A , required : u , disabled : d , form : h , style : { transform : "translateX(-100%)" } } ) ] } ) } ) ; VR . displayName = Ac ; var qR = "SwitchThumb" , YR = S . forwardRef ( ( e , t ) => { const { _ _scopeSwitch : r , ... a } = e , o = x3 ( qR , r ) ; return g . jsx ( Se . span , { "data-state" : KR ( o . checked ) , "data-disabled" : o . disabled ? "" : void 0 , ... a , ref : t } ) } ) ; YR . displayName = qR ; var w3 = "SwitchBubbleInput" , WR = S . forwardRef ( ( { _ _scopeSwitch : e , control : t , checked : r , bubbles : a = ! 0 , ... o } , s ) => { const u = S . useRef ( null ) , d = _e ( u , s ) , p = Bl ( r ) , f = zl ( t ) ; return S . useEffect ( ( ) => { const h = u . current ; if ( ! h ) return ; const b = window . HTMLInputElement . prototype , E = Object . getOwnPropertyDescriptor ( b , "checked" ) . set ; if ( p !== r && E ) { const w = new Event ( "click" , { bubbles : a } ) ; E . call ( h , r ) , h . dispatchEvent ( w ) } } , [ p , r , a ] ) , g . jsx ( "input" , { type : "checkbox" , "aria-hidden" : ! 0 , defaultChecked : r , ... o , tabIndex : - 1 , ref : d , style : { ... o . style , ... f , position : "absolute" , pointerEvents : "none" , opacity : 0 , margin : 0 } } ) } ) ; WR . displayName = w3 ; function KR ( e ) { return e ? "checked" : "unchecked" } var T3 = VR , A3 = YR ; function k3 ( { className : e , size : t = "default" , ... r } ) { return g . jsx ( T3 , { "data-slot" : "switch" , "data-size" : t , className : be ( "peer data-[state=checked]:bg-primary data-[state=unchecked]:bg-input focus-visible:border-ring focus-visible:ring-ring/50 dark:data-[state=unchecked]:bg-input/80 group/switch inline-flex shrink-0 items-center rounded-full border border-transparent shadow-xs transition-all outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 data-[size=default]:h-[1.15rem] data-[size=default]:w-8 data-[size=sm]:h-3.5 data-[size=sm]:w-6" , e ) , ... r , children : g . jsx ( A3 , { "data-slot" : "switch-thumb" , className : be ( "bg-background dark:data-[state=unchecked]:bg-foreground dark:data-[state=checked]:bg-primary-foreground pointer-events-none block rounded-full ring-0 transition-transform group-data-[size=default]/switch:size-4 group-data-[size=sm]/switch:size-3 data-[state=checked]:translate-x-[calc(100%-2px)] data-[state=unchecked]:translate-x-0" ) } ) } ) } var kc = "Checkbox" , [ _3 ] = jt ( kc ) , [ N3 , pv ] = _3 ( kc ) ; function R3 ( e ) { const { _ _scopeCheckbox : t , checked : r , children : a , defaultChecked : o , disabled : s , form : u , name : d , onCheckedChange : p , required : f , value : h = "on" , internal _do _not _use _render : b } = e , [ v , E ] = en ( { prop : r , defaultProp : o ? ? ! 1 , onChange : p , caller : kc } ) , [ w , T ] = S . useState ( null ) , [ k , A ] = S . useState ( null ) , _ = S . useRef ( ! 1 ) , R = w ? ! ! u || ! ! w . closest ( "form" ) : ! 0 , L = { checked : v , disabled : s , setChecked : E , control : w , setControl : T , name : d , form : u , value : h , hasConsumerStoppedPropagationRef : _ , required : f , defaultChecked : la ( o ) ? ! 1 : o , isFormControl : R , bubbleInput : k , setBubbleInput : A } ; return g . jsx ( N3 , { scope : t , ... L , children : C3 ( b ) ? b ( L ) : a } ) } var XR = "CheckboxTrigger" , ZR = S . forwardRef ( ( { _ _scopeCheckbox : e , onKeyDown : t , onClick : r , ... a } , o ) => { const { control : s , value : u , disabled : d , checked : p , required : f , setControl : h , setChecked : b , hasConsumerStoppedPropagationRef : v , isFormControl : E , bubbleInput : w } = pv ( XR , e ) , T = _e ( o , h ) , k = S . useRef ( p ) ; return S . useEffect ( ( ) => { const A = s ? . form ; if ( A ) { const _ = ( ) => b ( k . current ) ; return A . addEventListener ( "reset" , _ ) , ( ) => A . removeEventListener ( "reset" , _ ) } } , [ s , b ] ) , g . jsx ( Se . button , { type : "button" , role : "checkbox" , "aria-checked" : la ( p ) ? "mixed" : p , "aria-required" : f , "data-state" : rC ( p ) , "data-disabled" : d ? "" : void 0 , disabled : d , value : u , ... a , ref : T , onKeyDown : ge ( t , A => { A . key === "Enter" && A . preventDefault ( ) } ) , onClick : ge ( r , A => { b ( _ => la ( _ ) ? ! 0 : ! _ ) , w && E && ( v . current = A . isPropagati Line truncated
. ` .concat(OG , ` {
Defaulting to \ ` null \` . ` } var y4 = sC , v4 = cC ; function E4 ( { className : e , value : t , ... r } ) { return g . jsx ( y4 , { "data-slot" : "progress" , className : me ( "bg-primary/20 relative h-2 w-full overflow-hidden rounded-full" , e ) , ... r , children : g . jsx ( v4 , { "data-slot" : "progress-indicator" , className : "bg-primary h-full w-full flex-1 transition-all" , style : { transform : ` translateX(- ${ 100 - ( t || 0 ) } %) ` } } ) } ) } function Vl ( e ) { const t = S . useRef ( { value : e , previous : e } ) ; return S . useMemo ( ( ) => ( t . current . value !== e && ( t . current . previous = t . current . value , t . current . value = e ) , t . current . previous ) , [ e ] ) } function ql ( e ) { const [ t , r ] = S . useState ( void 0 ) ; return gt ( ( ) => { if ( e ) { r ( { width : e . offsetWidth , height : e . offsetHeight } ) ; const a = new ResizeObserver ( o => { if ( ! Array . isArray ( o ) || ! o . length ) return ; const s = o [ 0 ] ; let u , c ; if ( "borderBoxSize" in s ) { const p = s . borderBoxSize , f = Array . isArray ( p ) ? p [ 0 ] : p ; u = f . inlineSize , c = f . blockSize } else u = e . offsetWidth , c = e . offsetHeight ; r ( { width : u , height : c } ) } ) ; return a . observe ( e , { box : "border-box" } ) , ( ) => a . unobserve ( e ) } else r ( void 0 ) } , [ e ] ) , t } var Oc = "Switch" , [ S4 ] = Ut ( Oc ) , [ x4 , w4 ] = S4 ( Oc ) , pC = S . forwardRef ( ( e , t ) => { const { _ _scopeSwitch : r , name : a , checked : o , defaultChecked : s , required : u , disabled : c , value : p = "on" , onCheckedChange : f , form : m , ... h } = e , [ v , E ] = S . useState ( null ) , x = Ne ( t , _ => E ( _ ) ) , w = S . useRef ( ! 1 ) , k = v ? m || ! ! v . closest ( "form" ) : ! 0 , [ A , N ] = tn ( { prop : o , defaultProp : s ? ? ! 1 , onChange : f , caller : Oc } ) ; return g . jsxs ( x4 , { scope : r , checked : A , disabled : c , children : [ g . jsx ( be . button , { type : "button" , role : "switch" , "aria-checked" : A , "aria-required" : u , "data-state" : hC ( A ) , "data-disabled" : c ? "" : void 0 , disabled : c , value : p , ... h , ref : x , onClick : ye ( e . onClick , _ => { N ( D => ! D ) , k && ( w . current = _ . isPropagationStopped ( ) , w . current || _ . stopPropagation ( ) ) } ) } ) , k && g . jsx ( mC , { control : v , bubbles : ! w . current , name : a , value : p , checked : A , required : u , disabled : c , form : m , style : { transform : "translateX(-100%)" } } ) ] } ) } ) ; pC . displayName = Oc ; var fC = "SwitchThumb" , gC = S . forwardRef ( ( e , t ) => { const { _ _scopeSwitch : r , ... a } = e , o = w4 ( fC , r ) ; return g . jsx ( be . span , { "data-state" : hC ( o . checked ) , "data-disabled" : o . disabled ? "" : void 0 , ... a , ref : t } ) } ) ; gC . displayName = fC ; var T4 = "SwitchBubbleInput" , mC = S . forwardRef ( ( { _ _scopeSwitch : e , control : t , checked : r , bubbles : a = ! 0 , ... o } , s ) => { const u = S . useRef ( null ) , c = Ne ( u , s ) , p = Vl ( r ) , f = ql ( t ) ; return S . useEffect ( ( ) => { const m = u . current ; if ( ! m ) return ; const h = window . HTMLInputElement . prototype , E = Object . getOwnPropertyDescriptor ( h , "checked" ) . set ; if ( p !== r && E ) { const x = new Event ( "click" , { bubbles : a } ) ; E . call ( m , r ) , m . dispatchEvent ( x ) } } , [ p , r , a ] ) , g . jsx ( "input" , { type : "checkbox" , "aria-hidden" : ! 0 , defaultChecked : r , ... o , tabIndex : - 1 , ref : c , style : { ... o . style , ... f , position : "absolute" , pointerEvents : "none" , opacity : 0 , margin : 0 } } ) } ) ; mC . displayName = T4 ; function hC ( e ) { return e ? "checked" : "unchecked" } var A4 = pC , k4 = gC ; function _4 ( { className : e , size : t = "default" , ... r } ) { return g . jsx ( A4 , { "data-slot" : "switch" , "data-size" : t , className : me ( "peer data-[state=checked]:bg-primary data-[state=unchecked]:bg-input focus-visible:border-ring focus-visible:ring-ring/50 dark:data-[state=unchecked]:bg-input/80 group/switch inline-flex shrink-0 items-center rounded-full border border-transparent shadow-xs transition-all outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 data-[size=default]:h-[1.15rem] data-[size=default]:w-8 data-[size=sm]:h-3.5 data-[size=sm]:w-6" , e ) , ... r , children : g . jsx ( k4 , { "data-slot" : "switch-thumb" , className : me ( "bg-background dark:data-[state=unchecked]:bg-foreground dark:data-[state=checked]:bg-primary-foreground pointer-events-none block rounded-full ring-0 transition-transform group-data-[size=default]/switch:size-4 group-data-[size=sm]/switch:size-3 data-[state=checked]:translate-x-[calc(100%-2px)] data-[state=unchecked]:translate-x-0" ) } ) } ) } var Lc = "Checkbox" , [ N4 ] = Ut ( Lc ) , [ R4 , AE ] = N4 ( Lc ) ; function C4 ( e ) { const { _ _scopeCheckbox : t , checked : r , children : a , defaultChecked : o , disabled : s , form : u , name : c , onCheckedChange : p , required : f , value : m = "on" , internal _do _not _use _render : h } = e , [ v , E ] = tn ( { prop : r , defaultProp : o ? ? ! 1 , onChange : p , caller : Lc } ) , [ x , w ] = S . useState ( null ) , [ k , A ] = S . useState ( null ) , N = S . useRef ( ! 1 ) , _ = x ? ! ! u || ! ! x . closest ( "form" ) : ! 0 , D = { checked : v , disabled : s , setChecked : E , control : x , setControl : w , name : c , form : u , value : m , hasConsumerStoppedPropagationRef : N , required : f , defaultChecked : sa ( o ) ? ! 1 : o , isFormControl : _ , bubbleInput : k , setBubbleInput : A } ; return g . jsx ( R4 , { scope : t , ... D , children : I4 ( h ) ? h ( D ) : a } ) } var bC = "CheckboxTrigger" , yC = S . forwardRef ( ( { _ _scopeCheckbox : e , onKeyDown : t , onClick : r , ... a } , o ) => { const { control : s , value : u , disabled : c , checked : p , required : f , setControl : m , setChecked : h , hasConsumerStoppedPropagationRef : v , isFormControl : E , bubbleInput : x } = AE ( bC , e ) , w = Ne ( o , m ) , k = S . useRef ( p ) ; return S . useEffect ( ( ) => { const A = s ? . form ; if ( A ) { const N = ( ) => h ( k . current ) ; return A . addEventListener ( "reset" , N ) , ( ) => A . removeEventListener ( "reset" , N ) } } , [ s , h ] ) , g . jsx ( be . button , { type : "button" , role : "checkbox" , "aria-checked" : sa ( p ) ? "mixed" : p , "aria-required" : f , "data-state" : TC ( p ) , "data-disabled" : c ? "" : void 0 , disabled : c , value : u , ... a , ref : w , onKeyDown : ye ( t , A => { A . key === "Enter" && A . preventDefault ( ) } ) , onClick : ye ( r , A => { h ( N => sa ( N ) ? ! 0 : ! N ) , x && E && ( v . current = A . isPropagati Line truncated
. ` .concat(OH , ` {
overflow : hidden ` ).concat(a, ` ;
padding - right : ` ).concat(d ,"px ").concat(a, ` ;
padding - right : ` ).concat(c ,"px ").concat(a, ` ;
}
body [ ` ).concat(q i, ` ] {
body [ ` ).concat(X i, ` ] {
overflow : hidden ` ).concat(a, ` ;
overscroll - behavior : contain ;
` ).concat([t&&"position: relative ".concat(a,";"),r==="margin"&& `
@@ -68,41 +70,41 @@ Defaulting to \`null\`.`}var b3=PR,y3=GR;function E3({className:e,value:t,...r})
padding - right : ` ).concat(u, ` px ;
margin - left : 0 ;
margin - top : 0 ;
margin - right : ` ).concat(d ,"px ").concat(a, ` ;
` ),r==="padding"&&"padding-right: ".concat(d ,"px ").concat(a,";")].filter(Boolean).join(""), `
margin - right : ` ).concat(c ,"px ").concat(a, ` ;
` ),r==="padding"&&"padding-right: ".concat(c ,"px ").concat(a,";")].filter(Boolean).join(""), `
}
. ` ).concat(I u, ` {
right : ` ).concat(d ,"px ").concat(a, ` ;
. ` ).concat(B u, ` {
right : ` ).concat(c ,"px ").concat(a, ` ;
}
. ` ).concat(L u, ` {
margin - right : ` ).concat(d ,"px ").concat(a, ` ;
. ` ).concat(z u, ` {
margin - right : ` ).concat(c ,"px ").concat(a, ` ;
}
. ` ).concat(I u," .").concat(I u, ` {
. ` ).concat(B u," .").concat(B u, ` {
right : 0 ` ).concat(a, ` ;
}
. ` ).concat(L u," .").concat(L u, ` {
. ` ).concat(z u," .").concat(z u, ` {
margin - right : 0 ` ).concat(a, ` ;
}
body [ ` ).concat(q i, ` ] {
` ).concat(IG ,": ").concat(d , ` px ;
body [ ` ).concat(X i, ` ] {
` ).concat(LH ,": ").concat(c , ` px ;
}
` )},D k=function(){var e=parseInt(document.body.getAttribute(q i)||"0",10);return isFinite(e)?e:0},ZG =function(){S.useEffect(function(){return document.body.setAttribute(q i,(D k()+1).toString()),function(){var e=D k()-1;e<=0?document.body.removeAttribute(q i):document.body.setAttribute(q i,e.toString())}},[])},QG =function(e){var t=e.noRelative,r=e.noImportant,a=e.gapMode,o=a===void 0?"margin":a;ZG ();var s=S.useMemo(function(){return WG (o)},[o]);return S.createElement(KG ,{styles:XG (s,!t,o,r?"":"!important")})},b g=!1;if(typeof window<"u")try{var T u=Object.defineProperty({},"passive",{get:function(){return b g=!0,!0}});window.addEventListener("test",T u,T u),window.removeEventListener("test",T u,T u)}catch{b g=!1}var U i=b g?{passive:!1}:!1,JG =function(e){return e.tagName==="TEXTAREA"},YC =function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!JG (e)&&r[t]==="visible")},eH =function(e){return YC (e,"overflowY")},tH =function(e){return YC (e,"overflowX")},M k=function(e,t){var r=t.ownerDocument,a=t;do{typeof ShadowRoot<"u"&&a instanceof ShadowRoot&&(a=a.host);var o=WC (e,a);if(o){var s=KC (e,a),u=s[1],d =s[2];if(u>d )return!0}a=a.parentNode}while(a&&a!==r.body);return!1},nH =function(e){var t=e.scrollTop,r=e.scrollHeight,a=e.clientHeight;return[t,r,a]},rH =function(e){var t=e.scrollLeft,r=e.scrollWidth,a=e.clientWidth;return[t,r,a]},WC =function(e,t){return e==="v"?eH (t):tH (t)},KC =function(e,t){return e==="v"?nH (t):rH (t)},aH =function(e,t){return e==="h"&&t==="rtl"?-1:1},iH =function(e,t,r,a,o){var s=aH (e,window.getComputedStyle(t).direction),u=s*a,d =r.target,p=t.contains(d ),f=!1,h =u>0,b =0,v=0;do{if(!d )break;var E=KC (e,d ),w =E[0],T =E[1],k=E[2],A=T -k-s*w ;(w ||A)&&WC (e,d )&&(b +=A,v+=w );var _=d .parentNode;d=_ &&_ .nodeType===Node.DOCUMENT_FRAGMENT_NODE?_ .host:_ }while(!p&&d !==document.body||p&&(t.contains(d )||t===d ));return(h &&Math.abs(b )<1||!h &&Math.abs(v)<1)&&(f=!0),f},A u=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},j k=function(e){return[e.deltaX,e.deltaY]},U k=function(e){return e&&"current"in e?e.current:e},oH =function(e,t){return e[0]===t[0]&&e[1]===t[1]},lH =function(e){return `
` )},K k=function(){var e=parseInt(document.body.getAttribute(X i)||"0",10);return isFinite(e)?e:0},QH =function(){S.useEffect(function(){return document.body.setAttribute(X i,(K k()+1).toString()),function(){var e=K k()-1;e<=0?document.body.removeAttribute(X i):document.body.setAttribute(X i,e.toString())}},[])},JH =function(e){var t=e.noRelative,r=e.noImportant,a=e.gapMode,o=a===void 0?"margin":a;QH ();var s=S.useMemo(function(){return KH (o)},[o]);return S.createElement(XH ,{styles:ZH (s,!t,o,r?"":"!important")})},N g=!1;if(typeof window<"u")try{var I u=Object.defineProperty({},"passive",{get:function(){return N g=!0,!0}});window.addEventListener("test",I u,I u),window.removeEventListener("test",I u,I u)}catch{N g=!1}var B i=N g?{passive:!1}:!1,e5 =function(e){return e.tagName==="TEXTAREA"},g0 =function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!e5 (e)&&r[t]==="visible")},t5 =function(e){return g0 (e,"overflowY")},n5 =function(e){return g0 (e,"overflowX")},X k=function(e,t){var r=t.ownerDocument,a=t;do{typeof ShadowRoot<"u"&&a instanceof ShadowRoot&&(a=a.host);var o=m0 (e,a);if(o){var s=h0 (e,a),u=s[1],c =s[2];if(u>c )return!0}a=a.parentNode}while(a&&a!==r.body);return!1},r5 =function(e){var t=e.scrollTop,r=e.scrollHeight,a=e.clientHeight;return[t,r,a]},a5 =function(e){var t=e.scrollLeft,r=e.scrollWidth,a=e.clientWidth;return[t,r,a]},m0 =function(e,t){return e==="v"?t5 (t):n5 (t)},h0 =function(e,t){return e==="v"?r5 (t):a5 (t)},i5 =function(e,t){return e==="h"&&t==="rtl"?-1:1},o5 =function(e,t,r,a,o){var s=i5 (e,window.getComputedStyle(t).direction),u=s*a,c =r.target,p=t.contains(c ),f=!1,m =u>0,h =0,v=0;do{if(!c )break;var E=h0 (e,c ),x =E[0],w =E[1],k=E[2],A=w -k-s*x ;(x ||A)&&m0 (e,c )&&(h +=A,v+=x );var N=c .parentNode;c=N &&N .nodeType===Node.DOCUMENT_FRAGMENT_NODE?N .host:N }while(!p&&c !==document.body||p&&(t.contains(c )||t===c ));return(m &&Math.abs(h )<1||!m &&Math.abs(v)<1)&&(f=!0),f},O u=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Z k=function(e){return[e.deltaX,e.deltaY]},Q k=function(e){return e&&"current"in e?e.current:e},l5 =function(e,t){return e[0]===t[0]&&e[1]===t[1]},s5 =function(e){return `
. block - interactivity - ` .concat(e, ` { pointer - events : none ; }
. allow - interactivity - ` ).concat(e, ` { pointer - events : all ; }
` )},sH=0,Fi=[];function uH(e){var t=S.useRef([]),r=S.useRef([0,0]),a=S.useRef(),o=S.useState(sH++)[0],s=S.useState(qC)[0],u=S.useRef(e);S.useEffect(function(){u.current=e},[e]),S.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var T=CG([e.lockRef.current],(e.shards||[]).map(Uk),!0).filter(Boolean);return T.forEach(function(k){return k.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),T.forEach(function(k){return k.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var d=S.useCallback(function(T,k){if("touches"in T&&T.touches.length===2||T.type==="wheel"&&T.ctrlKey)return!u.current.allowPinchZoom;var A=Au(T),_=r.current,R="deltaX"in T?T.deltaX:_[0]-A[0],L="deltaY"in T?T.deltaY:_[1]-A[1],j,D=T.target,z=Math.abs(R)>Math.abs(L)?"h":"v";if("touches"in T&&z==="h"&&D.type==="range")return!1;var F=window.getSelection(),V=F&&F.anchorNode,M=V?V===D||V.contains(D):!1;if(M)return!1;var H=Mk(z,D);if(!H)return!0;if(H?j=z:(j=z==="v"?"h":"v",H=Mk(z,D)),!H)return!1;if(!a.current&&"changedTouches"in T&&(R||L)&&(a.current=j),!j)return!0;var K=a.current||j;return iH(K,k,T,K==="h"?R:L)},[]),p=S.useCallback(function(T){var k=T;if(!(!Fi.length||Fi[Fi.length-1]!==s)){var A="deltaY"in k?jk(k):Au(k),_=t.current.filter(function(j){return j.name===k.type&&(j.target===k.target||k.target===j.shadowParent)&&oH(j.delta,A)})[0];if(_&&_.should){k.cancelable&&k.preventDefault();return}if(!_){var R=(u.current.shards||[]).map(Uk).filter(Boolean).filter(function(j){return j.contains(k.target)}),L=R.length>0?d(k,R[0]):!u.current.noIsolation;L&&k.cancelable&&k.preventDefault()}}},[]),f=S.useCallback(function(T,k,A,_){var R={name:T,delta:k,target:A,should:_,shadowParent:cH(A)};t.current.push(R),setTimeout(function(){t.current=t.current.filter(function(L){return L!==R})},1)},[]),h=S.useCallback(function(T){r.current=Au(T),a.current=void 0},[]),b=S.useCallback(function(T){f(T.type,jk(T),T.target,d(T,e.lockRef.current))},[]),v=S.useCallback(function(T){f(T.type,Au(T),T.target,d(T,e.lockRef.current))},[]);S.useEffect(function(){return Fi.push(s),e.setCallbacks({onScrollCapture:b,onWheelCapture:b,onTouchMoveCapture:v}),document.addEventListener("wheel",p,Ui),document.addEventListener("touchmove",p,Ui),document.addEventListener("touchstart",h,Ui),function(){Fi=Fi.filter(function(T){return T!==s}),document.removeEventListener("wheel",p,Ui),document.removeEventListener("touchmove",p,Ui),document.removeEventListener("touchstart",h,Ui)}},[]);var E=e.removeScrollBar,w=e.inert;return S.createElement(S.Fragment,null,w?S.createElement(s,{styles:lH(o)}):null,E?S.createElement(QG,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function cH(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const dH=BG(VC,uH);var Mc=S.forwardRef(function(e,t){return S.createElement(Dc,Jn({},e,{ref:t,sideCar:dH}))});Mc.classNames=Dc.classNames;var pH=[" ","Enter","ArrowUp","ArrowDown"],fH=[" ","Enter"],za="Select",[jc,Uc,gH]=yc(za),[uo]=jt(za,[gH,so]),Fc=so(),[mH,pa]=uo(za),[hH,bH]=uo(za),XC=e=>{const{__scopeSelect:t,children:r,open:a,defaultOpen:o,onOpenChange:s,value:u,defaultValue:d,onValueChange:p,dir:f,name:h,autoComplete:b,disabled:v,required:E,form:w}=e,T=Fc(t),[k,A]=S.useState(null),[_,R]=S.useState(null),[L,j]=S.useState(!1),D=Ha(f),[z,F]=en({prop:a,defaultProp:o??!1,onChange:s,caller:za}),[V,M]=en({prop:u,defaultProp:d,onChange:p,caller:za}),H=S.useRef(null),K=k?w||!!k.closest("form"):!0,[Z,te]=S.useState(new Set),Q=Array.from(Z).map(P=>P.props.value).join(";");return g.jsx(wv,{...T,children:g.jsxs(mH,{required:E,scope:t,trigger:k,onTriggerChange:A,valueNode:_,onValueNodeChange:R,valueNodeHasChildren:L,onValueNodeHasChildrenChange:j,contentId:Rn(),value:V,onValueChange:M,open:z,onOpenChange:F,dir:D,triggerPointerDownPosRef:H,disabled:v,children:[g.jsx(jc.Provider,{scope:t,children:g.jsx(hH,{scope:e.__scopeSelect,onNativeOptionAdd:S.useCallback(P=>{te(W=>new Set(W).add(P))},[]),onNativeOptionRemove:S.useCallback(P=>{te(W=>{const ne=new Set(W);return ne.delete(P),ne})},[]),children:r})}),K?g.jsxs(y0,{"aria-hidden":!0,required:E,tabIndex:-1,name:h,autoComplete:b,value:V,onChange:P=>M(P.target.value),disabled:v,form:w,children:[V===void 0?g.jsx("option",{value:""}):null,Array.from(Z)]},Q):null]})})};XC.displayName=za;var ZC="SelectTrigger",QC=S.forwardRef((e,t)=>{const{__scopeSelect:r,disabled:a=!1,...o}=e,s=Fc(r),u=pa(ZC,r),d=u.disabled||a,p=_e(t,u.onTriggerChange),f=Uc(r),h=S.useRef("touch"),[b,v,E]=v0(T=>{const k=f().filter(R=>!R.disabled),A=k.find(R=>R.value===u.value),_=S0(k,T,A);_!==void 0&&u.onValueChange(_.value)}),w=T=>{d||(u.onOpenChange(!0),E()),T&&(u.triggerPointerDownPosRef.current={x:Math.round(T.pageX),y:Math.round(T.pageY)})};return g.jsx(Lc,{asChild:!0,...s,children:g.jsx(Se.button,{type:"button",role:"combobox","aria-controls":u.contentId,"aria-ex
Line truncated
` )},u5=0,zi=[];function c5(e){var t=S.useRef([]),r=S.useRef([0,0]),a=S.useRef(),o=S.useState(u5++)[0],s=S.useState(f0)[0],u=S.useRef(e);S.useEffect(function(){u.current=e},[e]),S.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var w=IH([e.lockRef.current],(e.shards||[]).map(Qk),!0).filter(Boolean);return w.forEach(function(k){return k.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),w.forEach(function(k){return k.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var c=S.useCallback(function(w,k){if("touches"in w&&w.touches.length===2||w.type==="wheel"&&w.ctrlKey)return!u.current.allowPinchZoom;var A=Ou(w),N=r.current,_="deltaX"in w?w.deltaX:N[0]-A[0],D="deltaY"in w?w.deltaY:N[1]-A[1],U,L=w.target,j=Math.abs(_)>Math.abs(D)?"h":"v";if("touches"in w&&j==="h"&&L.type==="range")return!1;var P=window.getSelection(),Y=P&&P.anchorNode,M=Y?Y===L||Y.contains(L):!1;if(M)return!1;var q=Xk(j,L);if(!q)return!0;if(q?U=j:(U=j==="v"?"h":"v",q=Xk(j,L)),!q)return!1;if(!a.current&&"changedTouches"in w&&(_||D)&&(a.current=U),!U)return!0;var K=a.current||U;return o5(K,k,w,K==="h"?_:D)},[]),p=S.useCallback(function(w){var k=w;if(!(!zi.length||zi[zi.length-1]!==s)){var A="deltaY"in k?Zk(k):Ou(k),N=t.current.filter(function(U){return U.name===k.type&&(U.target===k.target||k.target===U.shadowParent)&&l5(U.delta,A)})[0];if(N&&N.should){k.cancelable&&k.preventDefault();return}if(!N){var _=(u.current.shards||[]).map(Qk).filter(Boolean).filter(function(U){return U.contains(k.target)}),D=_.length>0?c(k,_[0]):!u.current.noIsolation;D&&k.cancelable&&k.preventDefault()}}},[]),f=S.useCallback(function(w,k,A,N){var _={name:w,delta:k,target:A,should:N,shadowParent:d5(A)};t.current.push(_),setTimeout(function(){t.current=t.current.filter(function(D){return D!==_})},1)},[]),m=S.useCallback(function(w){r.current=Ou(w),a.current=void 0},[]),h=S.useCallback(function(w){f(w.type,Zk(w),w.target,c(w,e.lockRef.current))},[]),v=S.useCallback(function(w){f(w.type,Ou(w),w.target,c(w,e.lockRef.current))},[]);S.useEffect(function(){return zi.push(s),e.setCallbacks({onScrollCapture:h,onWheelCapture:h,onTouchMoveCapture:v}),document.addEventListener("wheel",p,Bi),document.addEventListener("touchmove",p,Bi),document.addEventListener("touchstart",m,Bi),function(){zi=zi.filter(function(w){return w!==s}),document.removeEventListener("wheel",p,Bi),document.removeEventListener("touchmove",p,Bi),document.removeEventListener("touchstart",m,Bi)}},[]);var E=e.removeScrollBar,x=e.inert;return S.createElement(S.Fragment,null,x?S.createElement(s,{styles:s5(o)}):null,E?S.createElement(JH,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function d5(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const p5=zH(p0,c5);var $ c=S.forwardRef(function(e,t){return S.createElement(Pc,er({},e,{ref:t,sideCar:p5}))}); $ c.classNames=Pc.classNames;var f5=[" ","Enter","ArrowUp","ArrowDown"],g5=[" ","Enter"], $ a="Select",[Gc,Hc,m5]=Ac( $ a),[go]=Ut( $ a,[m5,fo]),Vc=fo(),[h5,ga]=go( $ a),[b5,y5]=go( $ a),b0=e=>{const{__scopeSelect:t,children:r,open:a,defaultOpen:o,onOpenChange:s,value:u,defaultValue:c,onValueChange:p,dir:f,name:m,autoComplete:h,disabled:v,required:E,form:x}=e,w=Vc(t),[k,A]=S.useState(null),[N,_]=S.useState(null),[D,U]=S.useState(!1),L=qa(f),[j,P]=tn({prop:a,defaultProp:o??!1,onChange:s,caller: $ a}),[Y,M]=tn({prop:u,defaultProp:c,onChange:p,caller: $ a}),q=S.useRef(null),K=k?x||!!k.closest("form"):!0,[J,Q]=S.useState(new Set),ee=Array.from(J).map(B=>B.props.value).join(";");return g.jsx(jE,{...w,children:g.jsxs(h5,{required:E,scope:t,trigger:k,onTriggerChange:A,valueNode:N,onValueNodeChange:_,valueNodeHasChildren:D,onValueNodeHasChildrenChange:U,contentId:kt(),value:Y,onValueChange:M,open:j,onOpenChange:P,dir:L,triggerPointerDownPosRef:q,disabled:v,children:[g.jsx(Gc.Provider,{scope:t,children:g.jsx(b5,{scope:e.__scopeSelect,onNativeOptionAdd:S.useCallback(B=>{Q(V=>new Set(V).add(B))},[]),onNativeOptionRemove:S.useCallback(B=>{Q(V=>{const ne=new Set(V);return ne.delete(B),ne})},[]),children:r})}),K?g.jsxs(B0,{"aria-hidden":!0,required:E,tabIndex:-1,name:m,autoComplete:h,value:Y,onChange:B=>M(B.target.value),disabled:v,form:x,children:[Y===void 0?g.jsx("option",{value:""}):null,Array.from(J)]},ee):null]})})};b0.displayName= $ a;var y0="SelectTrigger",v0=S.forwardRef((e,t)=>{const{__scopeSelect:r,disabled:a=!1,...o}=e,s=Vc(r),u=ga(y0,r),c=u.disabled||a,p=Ne(t,u.onTriggerChange),f=Hc(r),m=S.useRef("touch"),[h,v,E]=P0(w=>{const k=f().filter(_=>!_.disabled),A=k.find(_=>_.value===u.value),N= $ 0(k,w,A);N!==void 0&&u.onValueChange(N.value)}),x=w=>{c||(u.onOpenChange(!0),E()),w&&(u.triggerPointerDownPosRef.current={x:Math.round(w.pageX),y:Math.round(w.pageY)})};return g.jsx(zc,{asChild:!0,...s,children:g.jsx(be.button,{type:"button",role:"combobox","aria-controls":u.contentId,"aria-exp
Line truncated
If you want to hide the \ ` ${ t . titleName } \` , you can wrap it with our VisuallyHidden component.
For more information , see https : //radix-ui.com/primitives/docs/components/${t.docsSlug}`;return S.useEffect(()=>{e&&(document.getElementById(e)||console.error(r))},[r,e]),null},L5="DialogDescriptionWarning",D5=({contentRef:e,descriptionId:t})=>{const a=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Z0(L5).contentName}}.`;return S.useEffect(()=>{const o=e.current?.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(a))},[a,e,t]),null},M5=U0,j5=B0,U5=P0,F5=$0,B5=G0,z5=V0,P5=Y0,$5=K0;function G5({...e}){return g.jsx(M5,{"data-slot":"dialog",...e})}function H5({...e}){return g.jsx(j5,{"data-slot":"dialog-trigger",...e})}function V5({...e}){return g.jsx(U5,{"data-slot":"dialog-portal",...e})}function q5({className:e,...t}){return g.jsx(F5,{"data-slot":"dialog-overlay",className:be("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",e),...t})}function Y5({className:e,children:t,showCloseButton:r=!0,...a}){return g.jsxs(V5,{"data-slot":"dialog-portal",children:[g.jsx(q5,{}),g.jsxs(B5,{"data-slot":"dialog-content",className:be("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 outline-none sm:max-w-lg",e),...a,children:[t,r&&g.jsxs($5,{"data-slot":"dialog-close",className:"ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",children:[g.jsx(z$,{}),g.jsx("span",{className:"sr-only",children:"Close"})]})]})]})}function W5({className:e,...t}){return g.jsx("div",{"data-slot":"dialog-header",className:be("flex flex-col gap-2 text-center sm:text-left",e),...t})}function K5({className:e,...t}){return g.jsx(z5,{"data-slot":"dialog-title",className:be("text-lg leading-none font-semibold",e),...t})}function X5({className:e,...t}){return g.jsx(P5,{"data-slot":"dialog-description",className:be("text-muted-foreground text-sm",e),...t})}var Z5=Symbol("radix.slottable");function Q5(e){const t=({children:r})=>g.jsx(g.Fragment,{children:r});return t.displayName=`${e}.Slottable`,t.__radixId=Z5,t}var[Pc]=jt("Tooltip",[so]),$c=so(),Q0="TooltipProvider",J5=700,kg="tooltip.open",[e6,Iv]=Pc(Q0),J0=e=>{const{__scopeTooltip:t,delayDuration:r=J5,skipDelayDuration:a=300,disableHoverableContent:o=!1,children:s}=e,u=S.useRef(!0),d=S.useRef(!1),p=S.useRef(0);return S.useEffect(()=>{const f=p.current;return()=>window.clearTimeout(f)},[]),g.jsx(e6,{scope:t,isOpenDelayedRef:u,delayDuration:r,onOpen:S.useCallback(()=>{window.clearTimeout(p.current),u.current=!1},[]),onClose:S.useCallback(()=>{window.clearTimeout(p.current),p.current=window.setTimeout(()=>u.current=!0,a)},[a]),isPointerInTransitRef:d,onPointerInTransitChange:S.useCallback(f=>{d.current=f},[]),disableHoverableContent:o,children:s})};J0.displayName=Q0;var kl="Tooltip",[t6,Hl]=Pc(kl),eO=e=>{const{__scopeTooltip:t,children:r,open:a,defaultOpen:o,onOpenChange:s,disableHoverableContent:u,delayDuration:d}=e,p=Iv(kl,e.__scopeTooltip),f=$c(t),[h,b]=S.useState(null),v=Rn(),E=S.useRef(0),w=u??p.disableHoverableContent,T=d??p.delayDuration,k=S.useRef(!1),[A,_]=en({prop:a,defaultProp:o??!1,onChange:z=>{z?(p.onOpen(),document.dispatchEvent(new CustomEvent(kg))):p.onClose(),s?.(z)},caller:kl}),R=S.useMemo(()=>A?k.current?"delayed-open":"instant-open":"closed",[A]),L=S.useCallback(()=>{window.clearTimeout(E.current),E.current=0,k.current=!1,_(!0)},[_]),j=S.useCallback(()=>{window.clearTimeout(E.current),E.current=0,_(!1)},[_]),D=S.useCallback(()=>{window.clearTimeout(E.current),E.current=window.setTimeout(()=>{k.current=!0,_(!0),E.current=0},T)},[T,_]);return S.useEffect(()=>()=>{E.current&&(window.clearTimeout(E.current),E.current=0)},[]),g.jsx(wv,{...f,children:g.jsx(t6,{scope:t,contentId:v,open:A,stateAttribute:R,trigger:h,onTriggerChange:b,onTriggerEnter:S.useCallback(()=>{p.isOpenDelayedRef.current?D():L()},[p.isOpenDelayedRef,D,L]),onTriggerLeave:S.useCallback(()=>{w?j():(window.clearTimeout(E.current),E.current=0)},[j,w]),onOpen:L,onClose:j,disableHoverableContent:w,children:r})})};eO.displayName=kl;var _g="TooltipTrigger",tO=S.forwardRef((e,t)=>{const{__scopeTooltip:r,...a}=e,o=Hl(_g,r),s=Iv(_g,r),u=$c(r),d=S.useRef(null),p=_e(t,d,o.onTriggerChange),f=S.useRef(!1),h=S.useRef(!1),b=S.useCallback(()=>f.current=!1,[]);return S.useEffect(()=>()=>document.removeEventListener("pointerup",b),[b]),g.jsx(Lc,{asChild:!0,...u,children:g.jsx(Se.button,
Line truncated
For more information , see https : //radix-ui.com/primitives/docs/components/${t.docsSlug}`;return S.useEffect(()=>{e&&(document.getElementById(e)||console.error(r))},[r,e]),null},D6="DialogDescriptionWarning",M6=({contentRef:e,descriptionId:t})=>{const a=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${yI(D6).contentName}}.`;return S.useEffect(()=>{const o=e.current?.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(a))},[a,e,t]),null},vI=aI,j6=oI,EI=sI,SI=uI,xI=cI,U6=pI,F6=gI,B6=hI;function wI({...e}){return g.jsx(vI,{"data-slot":"dialog",...e})}function z6({...e}){return g.jsx(j6,{"data-slot":"dialog-trigger",...e})}function P6({...e}){return g.jsx(EI,{"data-slot":"dialog-portal",...e})}function $6({className:e,...t}){return g.jsx(SI,{"data-slot":"dialog-overlay",className:me("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",e),...t})}function TI({className:e,children:t,showCloseButton:r=!0,...a}){return g.jsxs(P6,{"data-slot":"dialog-portal",children:[g.jsx($6,{}),g.jsxs(xI,{"data-slot":"dialog-content",className:me("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 outline-none sm:max-w-lg",e),...a,children:[t,r&&g.jsxs(B6,{"data-slot":"dialog-close",className:"ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",children:[g.jsx(P3,{}),g.jsx("span",{className:"sr-only",children:"Close"})]})]})]})}function AI({className:e,...t}){return g.jsx("div",{"data-slot":"dialog-header",className:me("flex flex-col gap-2 text-center sm:text-left",e),...t})}function kI({className:e,...t}){return g.jsx(U6,{"data-slot":"dialog-title",className:me("text-lg leading-none font-semibold",e),...t})}function _I({className:e,...t}){return g.jsx(F6,{"data-slot":"dialog-description",className:me("text-muted-foreground text-sm",e),...t})}var G6=Symbol("radix.slottable");function H6(e){const t=({children:r})=>g.jsx(g.Fragment,{children:r});return t.displayName=`${e}.Slottable`,t.__radixId=G6,t}var[Wc]=Ut("Tooltip",[fo]),Kc=fo(),NI="TooltipProvider",V6=700,Ug="tooltip.open",[q6,VE]=Wc(NI),RI=e=>{const{__scopeTooltip:t,delayDuration:r=V6,skipDelayDuration:a=300,disableHoverableContent:o=!1,children:s}=e,u=S.useRef(!0),c=S.useRef(!1),p=S.useRef(0);return S.useEffect(()=>{const f=p.current;return()=>window.clearTimeout(f)},[]),g.jsx(q6,{scope:t,isOpenDelayedRef:u,delayDuration:r,onOpen:S.useCallback(()=>{window.clearTimeout(p.current),u.current=!1},[]),onClose:S.useCallback(()=>{window.clearTimeout(p.current),p.current=window.setTimeout(()=>u.current=!0,a)},[a]),isPointerInTransitRef:c,onPointerInTransitChange:S.useCallback(f=>{c.current=f},[]),disableHoverableContent:o,children:s})};RI.displayName=NI;var Ol="Tooltip",[Y6,Xl]=Wc(Ol),CI=e=>{const{__scopeTooltip:t,children:r,open:a,defaultOpen:o,onOpenChange:s,disableHoverableContent:u,delayDuration:c}=e,p=VE(Ol,e.__scopeTooltip),f=Kc(t),[m,h]=S.useState(null),v=kt(),E=S.useRef(0),x=u??p.disableHoverableContent,w=c??p.delayDuration,k=S.useRef(!1),[A,N]=tn({prop:a,defaultProp:o??!1,onChange:j=>{j?(p.onOpen(),document.dispatchEvent(new CustomEvent(Ug))):p.onClose(),s?.(j)},caller:Ol}),_=S.useMemo(()=>A?k.current?"delayed-open":"instant-open":"closed",[A]),D=S.useCallback(()=>{window.clearTimeout(E.current),E.current=0,k.current=!1,N(!0)},[N]),U=S.useCallback(()=>{window.clearTimeout(E.current),E.current=0,N(!1)},[N]),L=S.useCallback(()=>{window.clearTimeout(E.current),E.current=window.setTimeout(()=>{k.current=!0,N(!0),E.current=0},w)},[w,N]);return S.useEffect(()=>()=>{E.current&&(window.clearTimeout(E.current),E.current=0)},[]),g.jsx(jE,{...f,children:g.jsx(Y6,{scope:t,contentId:v,open:A,stateAttribute:_,trigger:m,onTriggerChange:h,onTriggerEnter:S.useCallback(()=>{p.isOpenDelayedRef.current?L():D()},[p.isOpenDelayedRef,L,D]),onTriggerLeave:S.useCallback(()=>{x?U():(window.clearTimeout(E.current),E.current=0)},[U,x]),onOpen:D,onClose:U,disableHoverableContent:x,children:r})})};CI.displayName=Ol;var Fg="TooltipTrigger",II=S.forwardRef((e,t)=>{const{__scopeTooltip:r,...a}=e,o=Xl(Fg,r),s=VE(Fg,r),u=Kc(r),c=S.useRef(null),p=Ne(t,c,o.onTriggerChange),f=S.useRef(!1),m=S.useRef(!1),h=S.useCallback(()=>f.current=!1,[]);return S.useEffect(()=>()=>document.removeEventListener("pointerup",h),[h]),g.jsx(zc,{asChild:!0,...u,children:g.jsx(be.button,
Line truncated
` );for(;t.length&&!t[0].trim();)t.shift();for(;t.length&&!t[t.length-1].trim();)t.pop();if(!t.length)return"";const r=Math.min(...t.filter(a=>a.trim().length>0).map(a=>a.match(/^ */)?.[0].length??0));return r===0?t.join( `
` ):t.map(a=>a.slice(r)).join( `
` )}function wV ({language:e,children:t}){const[r,a]=S.useState(!1),o=S.useCallback(async()=>{await navigator.clipboard.writeText(t),a(!0),setTimeout(()=>a(!1),2e3)},[t]);return g.jsxs("div",{className:"relative group/code my-3 rounded-lg overflow-hidden",children:[g.jsxs("div",{className:"flex items-center justify-between px-4 py-1.5 bg-[#1e1e2e] text-xs text-gray-400",children:[g.jsx("span",{children:e||"code"}),g.jsx("button",{onClick:o,className:"flex items-center gap-1 hover:text-white transition-colors",children:r?"✓ Copied":"Copy"})]}),g.jsx(KN ,{style:yP ,language:e||"text",PreTag:"div",customStyle:{margin:0,borderRadius:0,fontSize:"13px"},children:t})]})}function TV (e){const t=e.split( `
` );let r=!1,a=!1,o="",s=0;for(let u=0;u<t.length;u++){const d =t[u];if(/^[ \t ]* ` ` ` / . test ( d ) ) { r = ! r ; continue } if ( r ) continue ; const p = d . match ( /^([ \t]*)(\d+)\.[ \t]/ ) ; if ( p ) { const f = p [ 1 ] ; ! a || f !== o ? ( a = ! 0 , o = f , s = 1 ) : s ++ , t [ u ] = d . replace ( /^([ \t]*)\d+\./ , ` ${ f } ${ s } . ` ) } else d . trim ( ) === "" && a || a && /^[ \t]+\S/ . test ( d ) || a && ( a = ! 1 , s = 0 ) } return t . join ( `
` )}function vO ({content:e}){const t=TV (e);return g.jsx("div",{className:"prose prose-sm dark:prose-invert max-w-none prose-p:leading-relaxed prose-pre:p-0 prose-pre:bg-transparent",children:g.jsx(u N,{remarkPlugins:[L N],components:{ul({children:r,ordered:a,start:o}){if(a){const s=o!=null?Number(o):1;return g.jsx("ol",{start:s,style:{listStyleType:"decimal",paddingLeft:"1.5rem",margin:"0.5rem 0"},children:r})}return g.jsx("ul",{style:{listStyleType:"disc",paddingLeft:"1.5rem",margin:"0.5rem 0"},children:r})},li({children:r}){return g.jsx("li",{style:{display:"list-item",marginBottom:"0.25rem"},children:r})},code({className:r,children:a,...o}){const s=/language-( \w +)/.exec(r||""),u=xV (String(a));return!s&&!u.includes( `
` )?g.jsx("code",{className:"px-1.5 py-0.5 rounded bg-muted text-sm font-mono",...o,children:a}):g.jsx(wV,{language:s?.[1],children:u})},a({href:r,children:a}){return g.jsx("a",{href:r,target:"_blank",rel:"noopener noreferrer",className:"text-primary hover:underline",children:a})},table({children:r}){return g.jsx("div",{className:"overflow-x-auto my-3",children:g.jsx("table",{className:"min-w-full text-sm",children:r})})}},children:t})})}function AV({message:e,sessionId:t}){return e.role==="user"?g.jsx("div",{className:"flex justify-end",children:g.jsxs("div",{className:"flex gap-3 max-w-[80%]",children:[g.jsx("div",{className:"rounded-2xl px-4 py-2.5 bg-primary text-primary-foreground",children:g.jsx("p",{className:"text-sm whitespace-pre-wrap",children:e.content})}),g.jsx(Zu,{role:"user"})]})}):g.jsxs("div",{className:"flex gap-3 group",children:[g.jsx(Zu,{role:"assistant"}),g.jsxs("div",{className:"flex-1 min-w-0",children:[e.toolCalls&&e.toolCalls.length>0&&g.jsx("div",{className:"mb-2 space-y-1",children:e.toolCalls.map((a,o)=>g.jsx(EO,{toolCall:a},o))}),g.jsx(vO,{content:e.content}),e.elements&&e.elements.length>0&&g.jsx("div",{className:"mt-3 space-y-3",children:e.elements.map((a,o)=>g.jsx(jv,{element:a,className:"w-full"},o))}),e.images&&e.images.length>0&&g.jsx("div",{className:"mt-2 flex flex-wrap gap-2",children:e.images.map((a,o)=>g.jsx("img",{src:a,alt:"",className:"max-w-full rounded-md max-h-64 object-contain"},o))}),e.actions&&e.actions.length>0&&g.jsx(mV,{actions:e.actions,messageId:e.id,sessionId:t}),g.jsxs("div",{className:"mt-1 flex items-center gap-1 relative",children:[g.jsx(vV,{text:e.content}),g.jsx(SV,{messageId:e.id})]})]})]})}function kV({onSend:e,onCancel:t,isStreaming:r=!1,placeholder:a="Type a message...",enableFileUpload:o=!1}){const[s,u]=S.useState(""),[d,p]=S.useState([]),f=S.useRef(null),h=S.useRef(null),b=S.useCallback(()=>{const A=s.trim();(A||d.length>0)&&!r&&(e(A,d.length>0?d:void 0),u(""),p([]),f.current&&(f.current.style.height="auto"))},[s,d,r,e]),v=S.useCallback(A=>{const _=Array.from(A.target.files||[]);p(R=>[...R,..._]),h.current&&(h.current.value="")},[]),E=S.useCallback(()=>{h.current?.click()},[]),w=S.useCallback(A=>{p(_=>_.filter((R,L)=>L!==A))},[]),T=S.useCallback(A=>{A.key==="Enter"&&!A.shiftKey&&(A.preventDefault(),b())},[b]),k=S.useCallback(()=>{const A=f.current;A&&(A.style.height="auto",A.style.height= ` $ { Math . min ( A . scrollHeight , 200 ) } px ` )},[]);return g.jsx("div",{className:"p-4 pb-6",children:g.jsxs("div",{className:"max-w-3xl mx-auto",children:[g.jsxs("div",{className:"rounded-2xl border bg-background/80 backdrop-blur-sm shadow-lg",children:[d.length>0&&g.jsx("div",{className:"flex flex-wrap gap-1 px-4 pt-3",children:d.map((A,_)=>g.jsxs("span",{className:"inline-flex items-center gap-1 px-2 py-1 bg-muted rounded-lg text-xs",children:[g.jsx("span",{className:"truncate max-w-[100px]",children:A.name}),g.jsx("button",{type:"button",onClick:()=>w(_),className:"hover:text-destructive",children:"× "})]}, ` $ { A . name } - $ { _ } ` ))}),g.jsxs("div",{className:"flex items-end gap-2 p-2",children:[o&&g.jsxs(g.Fragment,{children:[g.jsx("input",{ref:h,type:"file",multiple:!0,onChange:v,className:"hidden",accept:"image/*,audio/*,video/*,.pdf,.doc,.docx,.txt,.csv,.json"}),g.jsx("button",{type:"button",onClick:E,className:"p-2 rounded-xl hover:bg-accent text-muted-foreground transition-colors",title:"Attach file",children:g.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:g.jsx("path",{d:"m21.44 11.05-9.19 9.19a6 6 0 0 1-8.49-8.49l8.57-8.57A4 4 0 1 1 18 8.84l-8.59 8.57a2 2 0 0 1-2.83-2.83l8.49-8.48"})})})]}),g.jsx("textarea",{ref:f,value:s,onChange:A=>u(A.target.value),onKeyDown:T,onInput:k,placeholder:a,disabled:r,rows:1,className:"flex-1 resize-none bg-transparent px-3 py-2.5 text-sm focus:outline-none disabled:opacity-50 placeholder:text-muted-foreground/60",style:{maxHeight:"200px"}}),r?g.jsx("button",{type:"button",onClick:t,className:"p-2 rounded-xl bg-destructive text-destructive-foreground hover:bg-destructive/90 transition-colors",title:"Stop",children:g.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 24 24",fill:"currentColor",children:g.jsx("rect",{x:"6",y:"6",width:"12",height:"12",rx:"2"})})}):g.jsx("button",{type:"button",onClick:b,disabled:!s.trim(),className:"p-2 rounded-xl bg-primary text-primary-foreground hover:bg-primary/90 disabled:opacity-30 disabled:cursor-not-allowed transition-colors",title:"Send",children:g.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:g.jsx("path",{d:"M5 12h14M12 5l7 7-7 7"})})})]})]}),g.jsx("p",{className:"text-[10px] text-center text-muted-foreground/50 mt-2",children:"Press Enter to send, Shift+Enter for new line"
Line truncated
` ),b=S.useCallback(async()=>{!r.trim()||s||p(r)},[r,s,p]),v=S.useCallback(()=>{a("")},[]);return g.jsxs("div",{className:"min-h-screen bg-background text-foreground flex flex-col",children:[g.jsxs("header",{className:"border-b px-6 py-4 flex items-center justify-between",children:[g.jsx("h1",{className:"text-xl font-semibold",children:t||"Playground"}),g.jsx("div",{className:"flex items-center gap-2",children:g.jsx("button",{onClick:v,className:"px-3 py-1.5 text-sm rounded-md border hover:bg-accent",children:"Clear"})})]}),g.jsxs("div",{className:"flex-1 flex",children:[g.jsxs("div",{className:"flex-1 flex flex-col border-r",children:[g.jsx("div",{className:"px-4 py-2 border-b bg-muted/30",children:g.jsx("span",{className:"text-sm font-medium text-muted-foreground",children:"Input"})}),g.jsx("div",{className:"flex-1 p-4",children:g.jsx("textarea",{value:r,onChange:E=>a(E.target.value),placeholder:"Enter your prompt here...",className:"w-full h-full resize-none bg-transparent border rounded-md p-3 focus:outline-none focus:ring-2 focus:ring-primary"})}),g.jsx("div",{className:"px-4 py-3 border-t flex justify-end gap-2",children:s?g.jsx("button",{onClick:f,className:"px-4 py-2 bg-destructive text-destructive-foreground rounded-md hover:bg-destructive/90",children:"Stop"}):g.jsx("button",{onClick:b,disabled:!r.trim(),className:"px-4 py-2 bg-primary text-primary-foreground rounded-md hover:bg-primary/90 disabled:opacity-50 disabled:cursor-not-allowed",children:"Submit"})})]}),g.jsxs("div",{className:"flex-1 flex flex-col",children:[g.jsxs("div",{className:"px-4 py-2 border-b bg-muted/30 flex items-center justify-between",children:[g.jsx("span",{className:"text-sm font-medium text-muted-foreground",children:"Output"}),s&&g.jsx("span",{className:"text-xs text-muted-foreground animate-pulse",children:"Processing..."})]}),g.jsx("div",{className:"flex-1 p-4 overflow-auto",children:h?g.jsx("div",{className:"prose prose-sm dark:prose-invert max-w-none whitespace-pre-wrap",children:h}):g.jsx("div",{className:"h-full flex items-center justify-center text-muted-foreground text-sm",children:"Output will appear here"})})]})]}),e?.features&&g.jsxs("div",{className:"border-t px-6 py-3 bg-muted/20 flex items-center gap-4 text-sm text-muted-foreground",children:[e.features.streaming&&g.jsx("span",{children:"✓ Streaming"}),e.features.reasoning&&g.jsx("span",{children:"✓ Reasoning"}),e.features.tools&&g.jsx("span",{children:"✓ Tools"})]})]})}function _u({enabled:e}){return e?g.jsx("a",{href:"#main-content",className:"sr-only focus:not-sr-only focus:absolute focus:top-4 focus:left-4 z-50 bg-primary text-primary-foreground px-4 py-2 rounded-md text-sm font-medium",children:"Skip to main content"}):null}function jV(){const[e,t]=S.useState({}),[r,a]=S.useState({}),[o,s]=S.useState({}),[u,d]=S.useState(!0),[p,f]=S.useState(null),[h,b]=S.useState(null),[v,E]=S.useState("");S.useEffect(()=>{async function L(){try{const[j,D,z]=await Promise.all([fetch("/ui-config.json"),fetch("/docs-nav.json"),fetch("/route-manifest.json")]);if(!j.ok||!D.ok||!z.ok)throw new Error("Failed to load manifests");const F=await j.json(),V=await D.json();t(F),a(V),s(await z.json());const M=F.site?.theme;K1(M?.preset||"zinc",M?.darkMode!==!1,M?.radius||"md");const H=window.location.pathname;if(H&&H!=="/"){const K=Z=>{for(const te of Z){if(te.path===H||te.path===H.replace(/^ \/ /,""))return te;if(te.children){const Q=K(te.children);if(Q)return Q}}return null};if(V.items){for(const Z of V.items)if(Z.children){const te=K(Z.children);if(te){b(te),E(te.path||te.title);break}}}}}catch(j){f(j instanceof Error?j.message:"Unknown error")}finally{d(!1)}}L()},[]),S.useEffect(()=>{const L=()=>{const j=window.location.pathname,D=F=>{for(const V of F){if(V.path===j||V.path===j.replace(/^ \/ /,""))return V;if(V.children){const M=D(V.children);if(M)return M}}return null};let z=null;if(r.items){for(const F of r.items)if(F.children&&(z=D(F.children),z))break}if(z){b(z),E(z.path||z.title);const F=e.site?.title||"Documentation",V=e.seo?.titleTemplate||"%s | %s";if(V.includes("%s")){let M=V.replace("%s",z.title);M.includes("%s")&&(M=M.replace("%s",F)),document.title=M}else document.title= ` $ { z . title } | $ { F } ` }else j==="/"&&(b(null),E(""),document.title=e.site?.title||"Documentation")};return window.addEventListener("popstate",L),()=>window.removeEventListener("popstate",L)},[r,e]);const w=(L,j,D)=>{const z=e.seo?.titleTemplate||"%s | %s",F=e.site?.title||"Documentation";if(z.includes("%s")){let Z=z.replace("%s",L);Z.includes("%s")&&(Z=Z.replace("%s",F)),document.title=Z}else document.title= ` $ { L } | $ { F } ` ;let V=document.querySelector('link[rel="canonical"]');V||(V=document.createElement("link"),V.rel="canonical",document.head.appendChild(V)),V.href=window.location.origin+j;let M=document.querySelector('meta[name="description"]');M||(M=document.createElement("meta"),M.name="description",document.head.appendChild(M)),M.content= ` $ { L } - $ { e . site ? . description || "" } ` ;let H=document.querySele
Line truncated
` )}function mq ({language:e,children:t}){const[r,a]=S.useState(!1),o=S.useCallback(async()=>{await navigator.clipboard.writeText(t),a(!0),setTimeout(()=>a(!1),2e3)},[t]);return g.jsxs("div",{className:"relative group/code my-3 rounded-lg overflow-hidden",children:[g.jsxs("div",{className:"flex items-center justify-between px-4 py-1.5 bg-[#1e1e2e] text-xs text-gray-400",children:[g.jsx("span",{children:e||"code"}),g.jsx("button",{onClick:o,className:"flex items-center gap-1 hover:text-white transition-colors",children:r?"✓ Copied":"Copy"})]}),g.jsx(hR ,{style:b $ ,language:e||"text",PreTag:"div",customStyle:{margin:0,borderRadius:0,fontSize:"13px"},children:t})]})}function hq (e){const t=e.split( `
` );let r=!1,a=!1,o="",s=0;for(let u=0;u<t.length;u++){const c =t[u];if(/^[ \t ]* ` ` ` / . test ( c ) ) { r = ! r ; continue } if ( r ) continue ; const p = c . match ( /^([ \t]*)(\d+)\.[ \t]/ ) ; if ( p ) { const f = p [ 1 ] ; ! a || f !== o ? ( a = ! 0 , o = f , s = 1 ) : s ++ , t [ u ] = c . replace ( /^([ \t]*)\d+\./ , ` ${ f } ${ s } . ` ) } else c . trim ( ) === "" && a || a && /^[ \t]+\S/ . test ( c ) || a && ( a = ! 1 , s = 0 ) } return t . join ( `
` )}function XI ({content:e}){const t=hq (e);return g.jsx("div",{className:"prose prose-sm dark:prose-invert max-w-none prose-p:leading-relaxed prose-pre:p-0 prose-pre:bg-transparent",children:g.jsx(R N,{remarkPlugins:[J N],components:{ul({children:r,ordered:a,start:o}){if(a){const s=o!=null?Number(o):1;return g.jsx("ol",{start:s,style:{listStyleType:"decimal",paddingLeft:"1.5rem",margin:"0.5rem 0"},children:r})}return g.jsx("ul",{style:{listStyleType:"disc",paddingLeft:"1.5rem",margin:"0.5rem 0"},children:r})},li({children:r}){return g.jsx("li",{style:{display:"list-item",marginBottom:"0.25rem"},children:r})},code({className:r,children:a,...o}){const s=/language-( \w +)/.exec(r||""),u=gq (String(a));return!s&&!u.includes( `
` )?g.jsx("code",{className:"px-1.5 py-0.5 rounded bg-muted text-sm font-mono",...o,children:a}):g.jsx(mq,{language:s?.[1],children:u})},a({href:r,children:a}){return g.jsx("a",{href:r,target:"_blank",rel:"noopener noreferrer",className:"text-primary hover:underline",children:a})},table({children:r}){return g.jsx("div",{className:"overflow-x-auto my-3",children:g.jsx("table",{className:"min-w-full text-sm",children:r})})}},children:t})})}function bq({message:e,sessionId:t}){return e.role==="user"?g.jsx("div",{className:"flex justify-end",children:g.jsxs("div",{className:"flex gap-3 max-w-[80%]",children:[g.jsx("div",{className:"rounded-2xl px-4 py-2.5 bg-primary text-primary-foreground",children:g.jsx("p",{className:"text-sm whitespace-pre-wrap",children:e.content})}),g.jsx(ac,{role:"user"})]})}):g.jsxs("div",{className:"flex gap-3 group",children:[g.jsx(ac,{role:"assistant"}),g.jsxs("div",{className:"flex-1 min-w-0",children:[e.toolCalls&&e.toolCalls.length>0&&g.jsx("div",{className:"mb-2 space-y-1",children:e.toolCalls.map((a,o)=>g.jsx(KI,{toolCall:a},o))}),g.jsx(XI,{content:e.content}),e.elements&&e.elements.length>0&&g.jsx("div",{className:"mt-3 space-y-3",children:e.elements.map((a,o)=>g.jsx(KE,{element:a,className:"w-full"},o))}),e.images&&e.images.length>0&&g.jsx("div",{className:"mt-2 flex flex-wrap gap-2",children:e.images.map((a,o)=>g.jsx("img",{src:a,alt:"",className:"max-w-full rounded-md max-h-64 object-contain"},o))}),e.actions&&e.actions.length>0&&g.jsx(lq,{actions:e.actions,messageId:e.id,sessionId:t}),g.jsxs("div",{className:"mt-1 flex items-center gap-1 relative",children:[g.jsx(pq,{text:e.content}),g.jsx(fq,{messageId:e.id})]})]})]})}function yq({onSend:e,onCancel:t,isStreaming:r=!1,placeholder:a="Type a message...",enableFileUpload:o=!1}){const[s,u]=S.useState(""),[c,p]=S.useState([]),f=S.useRef(null),m=S.useRef(null),h=S.useCallback(()=>{const A=s.trim();(A||c.length>0)&&!r&&(e(A,c.length>0?c:void 0),u(""),p([]),f.current&&(f.current.style.height="auto"))},[s,c,r,e]),v=S.useCallback(A=>{const N=Array.from(A.target.files||[]);p(_=>[..._,...N]),m.current&&(m.current.value="")},[]),E=S.useCallback(()=>{m.current?.click()},[]),x=S.useCallback(A=>{p(N=>N.filter((_,D)=>D!==A))},[]),w=S.useCallback(A=>{A.key==="Enter"&&!A.shiftKey&&(A.preventDefault(),h())},[h]),k=S.useCallback(()=>{const A=f.current;A&&(A.style.height="auto",A.style.height= ` $ { Math . min ( A . scrollHeight , 200 ) } px ` )},[]);return g.jsx("div",{className:"p-4 pb-6",children:g.jsxs("div",{className:"max-w-3xl mx-auto",children:[g.jsxs("div",{className:"rounded-2xl border bg-background/80 backdrop-blur-sm shadow-lg",children:[c.length>0&&g.jsx("div",{className:"flex flex-wrap gap-1 px-4 pt-3",children:c.map((A,N)=>g.jsxs("span",{className:"inline-flex items-center gap-1 px-2 py-1 bg-muted rounded-lg text-xs",children:[g.jsx("span",{className:"truncate max-w-[100px]",children:A.name}),g.jsx("button",{type:"button",onClick:()=>x(N),className:"hover:text-destructive",children:"× "})]}, ` $ { A . name } - $ { N } ` ))}),g.jsxs("div",{className:"flex items-end gap-2 p-2",children:[o&&g.jsxs(g.Fragment,{children:[g.jsx("input",{ref:m,type:"file",multiple:!0,onChange:v,className:"hidden",accept:"image/*,audio/*,video/*,.pdf,.doc,.docx,.txt,.csv,.json"}),g.jsx("button",{type:"button",onClick:E,className:"p-2 rounded-xl hover:bg-accent text-muted-foreground transition-colors",title:"Attach file",children:g.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:g.jsx("path",{d:"m21.44 11.05-9.19 9.19a6 6 0 0 1-8.49-8.49l8.57-8.57A4 4 0 1 1 18 8.84l-8.59 8.57a2 2 0 0 1-2.83-2.83l8.49-8.48"})})})]}),g.jsx("textarea",{ref:f,value:s,onChange:A=>u(A.target.value),onKeyDown:w,onInput:k,placeholder:a,disabled:r,rows:1,className:"flex-1 resize-none bg-transparent px-3 py-2.5 text-sm focus:outline-none disabled:opacity-50 placeholder:text-muted-foreground/60",style:{maxHeight:"200px"}}),r?g.jsx("button",{type:"button",onClick:t,className:"p-2 rounded-xl bg-destructive text-destructive-foreground hover:bg-destructive/90 transition-colors",title:"Stop",children:g.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 24 24",fill:"currentColor",children:g.jsx("rect",{x:"6",y:"6",width:"12",height:"12",rx:"2"})})}):g.jsx("button",{type:"button",onClick:h,disabled:!s.trim(),className:"p-2 rounded-xl bg-primary text-primary-foreground hover:bg-primary/90 disabled:opacity-30 disabled:cursor-not-allowed transition-colors",title:"Send",children:g.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:g.jsx("path",{d:"M5 12h14M12 5l7 7-7 7"})})})]})]}),g.jsx("p",{className:"text-[10px] text-center text-muted-foreground/50 mt-2",children:"Press Enter to send, Shift+Enter for new line"
Line truncated
` ),h=S.useCallback(async()=>{!r.trim()||s||p(r)},[r,s,p]),v=S.useCallback(()=>{a("")},[]);return g.jsxs("div",{className:"min-h-screen bg-background text-foreground flex flex-col",children:[g.jsxs("header",{className:"border-b px-6 py-4 flex items-center justify-between",children:[g.jsx("h1",{className:"text-xl font-semibold",children:t||"Playground"}),g.jsx("div",{className:"flex items-center gap-2",children:g.jsx("button",{onClick:v,className:"px-3 py-1.5 text-sm rounded-md border hover:bg-accent",children:"Clear"})})]}),g.jsxs("div",{className:"flex-1 flex",children:[g.jsxs("div",{className:"flex-1 flex flex-col border-r",children:[g.jsx("div",{className:"px-4 py-2 border-b bg-muted/30",children:g.jsx("span",{className:"text-sm font-medium text-muted-foreground",children:"Input"})}),g.jsx("div",{className:"flex-1 p-4",children:g.jsx("textarea",{value:r,onChange:E=>a(E.target.value),placeholder:"Enter your prompt here...",className:"w-full h-full resize-none bg-transparent border rounded-md p-3 focus:outline-none focus:ring-2 focus:ring-primary"})}),g.jsx("div",{className:"px-4 py-3 border-t flex justify-end gap-2",children:s?g.jsx("button",{onClick:f,className:"px-4 py-2 bg-destructive text-destructive-foreground rounded-md hover:bg-destructive/90",children:"Stop"}):g.jsx("button",{onClick:h,disabled:!r.trim(),className:"px-4 py-2 bg-primary text-primary-foreground rounded-md hover:bg-primary/90 disabled:opacity-50 disabled:cursor-not-allowed",children:"Submit"})})]}),g.jsxs("div",{className:"flex-1 flex flex-col",children:[g.jsxs("div",{className:"px-4 py-2 border-b bg-muted/30 flex items-center justify-between",children:[g.jsx("span",{className:"text-sm font-medium text-muted-foreground",children:"Output"}),s&&g.jsx("span",{className:"text-xs text-muted-foreground animate-pulse",children:"Processing..."})]}),g.jsx("div",{className:"flex-1 p-4 overflow-auto",children:m?g.jsx("div",{className:"prose prose-sm dark:prose-invert max-w-none whitespace-pre-wrap",children:m}):g.jsx("div",{className:"h-full flex items-center justify-center text-muted-foreground text-sm",children:"Output will appear here"})})]})]}),e?.features&&g.jsxs("div",{className:"border-t px-6 py-3 bg-muted/20 flex items-center gap-4 text-sm text-muted-foreground",children:[e.features.streaming&&g.jsx("span",{children:"✓ Streaming"}),e.features.reasoning&&g.jsx("span",{children:"✓ Reasoning"}),e.features.tools&&g.jsx("span",{children:"✓ Tools"})]})]})}function Du({enabled:e}){return e?g.jsx("a",{href:"#main-content",className:"sr-only focus:not-sr-only focus:absolute focus:top-4 focus:left-4 z-50 bg-primary text-primary-foreground px-4 py-2 rounded-md text-sm font-medium",children:"Skip to main content"}):null}function a8(){const[e,t]=S.useState({}),[r,a]=S.useState({}),[o,s]=S.useState({}),[u,c]=S.useState(!0),[p,f]=S.useState(null),[m,h]=S.useState(null),[v,E]=S.useState(""),x=(L,j)=>{const P=j.replace(/ \/ $ /,"")||"/",Y=M=>{for(const q of M){const K=(q.path??"").replace(/ \/ $ /,"");if(K===P||K===P.replace(/^ \/ /,""))return q;if(q.children){const J=Y(q.children);if(J)return J}}return null};return L.items?Y(L.items):null},w=(L,j,P,Y)=>{const M=Y??e,q=M.seo?.titleTemplate||"%s | %s",K=M.site?.title||"Documentation";if(q.includes("%s")){let V=q.replace("%s",L);V.includes("%s")&&(V=V.replace("%s",K)),document.title=V}else document.title= ` $ { L } | $ { K } ` ;let J=document.querySelector('link[rel="canonical"]');J||(J=document.createElement("link"),J.rel="canonical",document.head.appendChild(J)),J.href=window.location.origin+j;let Q=document.querySelector('meta[name="description"]');Q||(Q=document.createElement("meta"),Q.name="description",document.head.appendChild(Q)),Q.content= ` $ { L } - $ { M . site ? . description || "" } ` ;let ee=document.querySelector('meta[property="og:title"]');ee||(ee=document.createElement("meta"),ee.setAttribute("property","og:title"),document.head.appendChild(ee)),ee.content=L;let B=document.querySelector('meta[property="og:url"]');if(B||(B=document.createElement("meta"),B.setAttribute("property","og:url"),document.head.appendChild(B)),B.content=window.location.origin+j,M.seo?.twitter&&Object.entries(M.seo.twitter).forEach(([V,ne])=>{let de=document.querySelector( ` meta [ name = "twitter:${V}" ] ` );de||(de=document.createElement("meta"),de.name= ` twitter : $ { V } ` ,document.head.appendChild(de)),de.content=ne}),M.seo?.defaultImage){let V=document.querySelector('meta[property="og:image"]');V||(V=document.createElement("meta"),V.setAttribute("property","og:image"),document.head.appendChild(V)),V.content=M.seo.defaultImage}},k=L=>{h(L),E(L.path||L.title),w(L.title,L.path||"/")};S.useEffect(()=>{async function L(){try{const[j,P,Y]=await Promise.all([fetch("/ui-config.json"),fetch("/docs-nav.json"),fetch("/route-manifest.json")]);if(!j.ok||!P.ok||!Y.ok)throw new Error("Failed to load manifests");const M=await j.json(),q=await P.json();t(M),a(q),s(await Y.json());const K=M.site?.theme;ML(K?.preset||"zinc",K?.darkMode!==!1,K?.radius||"md");const J=windo
Line truncated