2024-08-31 15:27:49 +08:00
const _ _vite _ _mapDeps = ( i , m = _ _vite _ _mapDeps , d = ( m . f || ( m . f = [ "assets/dagre-CQ6OS2HX-DYsGu3t-.js" , "assets/graph-wfvmGHi_.js" , "assets/reduce-CTJy3SZl.js" , "assets/layout-CSH6SBjS.js" , "assets/min-f0setPKo.js" , "assets/json-HIXOiLO6.js" , "assets/c4Diagram-ZHOUKFWV-BjthaNQ1.js" , "assets/chunk-AIUMCIBP-BvZDkuep.js" , "assets/flowDiagram-TGP4CI55-RXvTr7QF.js" , "assets/chunk-FUIDI54P-Ddss5O9X.js" , "assets/chunk-Z2VRG6XP-Ckl9zGDI.js" , "assets/channel-Tyq7VusY.js" , "assets/erDiagram-762WSSOR-_jTx0_vS.js" , "assets/gitGraphDiagram-LGD5RUNZ-CGMlY_4O.js" , "assets/chunk-JJENOPKO-NSjpOLMA.js" , "assets/chunk-FBCX6ULS-BFhCqNEX.js" , "assets/gitGraph-F2EDSAW4-BD9uTscD.js" , "assets/ganttDiagram-GAYIUD5S-CWB9OPxk.js" , "assets/linear-wjsYoawA.js" , "assets/init-Gi6I4Gst.js" , "assets/infoDiagram-GSXZ5C4N-QVTXHa-4.js" , "assets/pieDiagram-WEX7LNAG-Bz5C_zN8.js" , "assets/arc-tm6mvXwp.js" , "assets/ordinal-Cboi1Yqb.js" , "assets/quadrantDiagram-SRYJ5FP7-DrrsNviV.js" , "assets/xychartDiagram-BZZU7QT5-B7JMd9j9.js" , "assets/requirementDiagram-V7TESSIR-B5ZNROeu.js" , "assets/sequenceDiagram-6SD7JOPP-BbHBbcIE.js" , "assets/classDiagram-MQQPYQM5-Bx8bfb-G.js" , "assets/chunk-IBIA4ERB-CxtXxwKQ.js" , "assets/classDiagram-v2-4S5WAI72-DNUq_KqM.js" , "assets/chunk-PDCO53Z4-BXE_tfu_.js" , "assets/stateDiagram-N22R6T2Y-CZHfcQEb.js" , "assets/chunk-SVGOEX7Z-DyCVxwQK.js" , "assets/stateDiagram-v2-QXVA2PVL-Bp7d-lZi.js" , "assets/journeyDiagram-35ZZFJAM-fvNOXvAQ.js" , "assets/timeline-definition-SFF34UE4-B59Fk3EN.js" , "assets/sankeyDiagram-XVFEVEVI-n1sW0XB6.js" , "assets/diagram-KYCGQLJB-CL7wMae-.js" , "assets/blockDiagram-V6UOASA5-qNoR9IPa.js" ] ) ) ) => i . map ( i => d [ i ] ) ;
2024-08-31 11:28:56 +08:00
var l4 = Object . defineProperty ; var QS = Ra => { throw TypeError ( Ra ) } ; var c4 = ( Ra , qa , Ja ) => qa in Ra ? l4 ( Ra , qa , { enumerable : ! 0 , configurable : ! 0 , writable : ! 0 , value : Ja } ) : Ra [ qa ] = Ja ; var e1 = ( Ra , qa , Ja ) => c4 ( Ra , typeof qa != "symbol" ? qa + "" : qa , Ja ) , u4 = ( Ra , qa , Ja ) => qa . has ( Ra ) || QS ( "Cannot " + Ja ) ; var JS = ( Ra , qa , Ja ) => qa . has ( Ra ) ? QS ( "Cannot add the same private member more than once" ) : qa instanceof WeakSet ? qa . add ( Ra ) : qa . set ( Ra , Ja ) ; var _E = ( Ra , qa , Ja ) => ( u4 ( Ra , qa , "access private method" ) , Ja ) ; ( function ( ) { const qa = document . createElement ( "link" ) . relList ; if ( qa && qa . supports && qa . supports ( "modulepreload" ) ) return ; for ( const td of document . querySelectorAll ( 'link[rel="modulepreload"]' ) ) ed ( td ) ; new MutationObserver ( td => { for ( const rd of td ) if ( rd . type === "childList" ) for ( const od of rd . addedNodes ) od . tagName === "LINK" && od . rel === "modulepreload" && ed ( od ) } ) . observe ( document , { childList : ! 0 , subtree : ! 0 } ) ; function Ja ( td ) { const rd = { } ; return td . integrity && ( rd . integrity = td . integrity ) , td . referrerPolicy && ( rd . referrerPolicy = td . referrerPolicy ) , td . crossOrigin === "use-credentials" ? rd . credentials = "include" : td . crossOrigin === "anonymous" ? rd . credentials = "omit" : rd . credentials = "same-origin" , rd } function ed ( td ) { if ( td . ep ) return ; td . ep = ! 0 ; const rd = Ja ( td ) ; fetch ( td . href , rd ) } } ) ( ) ; const global$1 = globalThis || void 0 || self ; / * *
2024-08-27 22:31:52 +08:00
* @ vue / shared v3 . 4.38
* ( c ) 2018 - present Yuxi ( Evan ) You and Vue contributors
* @ license MIT
2024-08-30 15:19:18 +08:00
* * //*! #__NO_SIDE_EFFECTS__ */function makeMap(Ra,qa){const Ja=new Set(Ra.split(","));return ed=>Ja.has(ed)}const EMPTY_OBJ={},EMPTY_ARR=[],NOOP=()=>{},NO=()=>!1,isOn=Ra=>Ra.charCodeAt(0)===111&&Ra.charCodeAt(1)===110&&(Ra.charCodeAt(2)>122||Ra.charCodeAt(2)<97),isModelListener=Ra=>Ra.startsWith("onUpdate:"),extend$3=Object.assign,remove$1=(Ra,qa)=>{const Ja=Ra.indexOf(qa);Ja>-1&&Ra.splice(Ja,1)},hasOwnProperty$i=Object.prototype.hasOwnProperty,hasOwn$1=(Ra,qa)=>hasOwnProperty$i.call(Ra,qa),isArray$2=Array.isArray,isMap$1=Ra=>toTypeString(Ra)==="[object Map]",isSet$1=Ra=>toTypeString(Ra)==="[object Set]",isDate$1=Ra=>toTypeString(Ra)==="[object Date]",isFunction$4=Ra=>typeof Ra=="function",isString$3=Ra=>typeof Ra=="string",isSymbol$1=Ra=>typeof Ra=="symbol",isObject$5=Ra=>Ra!==null&&typeof Ra=="object",isPromise=Ra=>(isObject$5(Ra)||isFunction$4(Ra))&&isFunction$4(Ra.then)&&isFunction$4(Ra.catch),objectToString$1=Object.prototype.toString,toTypeString=Ra=>objectToString$1.call(Ra),toRawType=Ra=>toTypeString(Ra).slice(8,-1),isPlainObject$3=Ra=>toTypeString(Ra)==="[object Object]",isIntegerKey=Ra=>isString$3(Ra)&&Ra!=="NaN"&&Ra[0]!=="-"&&""+parseInt(Ra,10)===Ra,isReservedProp=makeMap(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),cacheStringFunction=Ra=>{const qa=Object.create(null);return Ja=>qa[Ja]||(qa[Ja]=Ra(Ja))},camelizeRE=/-(\w)/g,camelize=cacheStringFunction(Ra=>Ra.replace(camelizeRE,(qa,Ja)=>Ja?Ja.toUpperCase():"")),hyphenateRE=/\B([A-Z])/g,hyphenate$1=cacheStringFunction(Ra=>Ra.replace(hyphenateRE,"-$1").toLowerCase()),capitalize$1=cacheStringFunction(Ra=>Ra.charAt(0).toUpperCase()+Ra.slice(1)),toHandlerKey=cacheStringFunction(Ra=>Ra?`on${capitalize$1(Ra)}`:""),hasChanged=(Ra,qa)=>!Object.is(Ra,qa),invokeArrayFns=(Ra,...qa)=>{for(let Ja=0;Ja<Ra.length;Ja++)Ra[Ja](...qa)},def$2=(Ra,qa,Ja,ed=!1)=>{Object.defineProperty(Ra,qa,{configurable:!0,enumerable:!1,writable:ed,value:Ja})},looseToNumber=Ra=>{const qa=parseFloat(Ra);return isNaN(qa)?Ra:qa},toNumber$3=Ra=>{const qa=isString$3(Ra)?Number(Ra):NaN;return isNaN(qa)?Ra:qa};let _globalThis;const getGlobalThis=()=>_globalThis||(_globalThis=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global$1<"u"?global$1:{});function normalizeStyle(Ra){if(isArray$2(Ra)){const qa={};for(let Ja=0;Ja<Ra.length;Ja++){const ed=Ra[Ja],td=isString$3(ed)?parseStringStyle(ed):normalizeStyle(ed);if(td)for(const rd in td)qa[rd]=td[rd]}return qa}else if(isString$3(Ra)||isObject$5(Ra))return Ra}const listDelimiterRE=/;(?![^(]*\))/g,propertyDelimiterRE=/:([^]+)/,styleCommentRE=/\/\*[^]*?\*\//g;function parseStringStyle(Ra){const qa={};return Ra.replace(styleCommentRE,"").split(listDelimiterRE).forEach(Ja=>{if(Ja){const ed=Ja.split(propertyDelimiterRE);ed.length>1&&(qa[ed[0].trim()]=ed[1].trim())}}),qa}function normalizeClass(Ra){let qa="";if(isString$3(Ra))qa=Ra;else if(isArray$2(Ra))for(let Ja=0;Ja<Ra.length;Ja++){const ed=normalizeClass(Ra[Ja]);ed&&(qa+=ed+" ")}else if(isObject$5(Ra))for(const Ja in Ra)Ra[Ja]&&(qa+=Ja+" ");return qa.trim()}function normalizeProps(Ra){if(!Ra)return null;let{class:qa,style:Ja}=Ra;return qa&&!isString$3(qa)&&(Ra.class=normalizeClass(qa)),Ja&&(Ra.style=normalizeStyle(Ja)),Ra}const specialBooleanAttrs="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",isSpecialBooleanAttr=makeMap(specialBooleanAttrs);function includeBooleanAttr(Ra){return!!Ra||Ra===""}function looseCompareArrays(Ra,qa){if(Ra.length!==qa.length)return!1;let Ja=!0;for(let ed=0;Ja&&ed<Ra.length;ed++)Ja=looseEqual(Ra[ed],qa[ed]);return Ja}function looseEqual(Ra,qa){if(Ra===qa)return!0;let Ja=isDate$1(Ra),ed=isDate$1(qa);if(Ja||ed)return Ja&&ed?Ra.getTime()===qa.getTime():!1;if(Ja=isSymbol$1(Ra),ed=isSymbol$1(qa),Ja||ed)return Ra===qa;if(Ja=isArray$2(Ra),ed=isArray$2(qa),Ja||ed)return Ja&&ed?looseCompareArrays(Ra,qa):!1;if(Ja=isObject$5(Ra),ed=isObject$5(qa),Ja||ed){if(!Ja||!ed)return!1;const td=Object.keys(Ra).length,rd=Object.keys(qa).length;if(td!
2024-08-27 22:31:52 +08:00
* @ vue / reactivity v3 . 4.38
* ( c ) 2018 - present Yuxi ( Evan ) You and Vue contributors
* @ license MIT
2024-08-31 11:28:56 +08:00
* * / l e t a c t i v e E f f e c t S c o p e ; c l a s s E f f e c t S c o p e { c o n s t r u c t o r ( q a = ! 1 ) { t h i s . d e t a c h e d = q a , t h i s . _ a c t i v e = ! 0 , t h i s . e f f e c t s = [ ] , t h i s . c l e a n u p s = [ ] , t h i s . p a r e n t = a c t i v e E f f e c t S c o p e , ! q a & & a c t i v e E f f e c t S c o p e & & ( t h i s . i n d e x = ( a c t i v e E f f e c t S c o p e . s c o p e s | | ( a c t i v e E f f e c t S c o p e . s c o p e s = [ ] ) ) . p u s h ( t h i s ) - 1 ) } g e t a c t i v e ( ) { r e t u r n t h i s . _ a c t i v e } r u n ( q a ) { i f ( t h i s . _ a c t i v e ) { c o n s t J a = a c t i v e E f f e c t S c o p e ; t r y { r e t u r n a c t i v e E f f e c t S c o p e = t h i s , q a ( ) } f i n a l l y { a c t i v e E f f e c t S c o p e = J a } } } o n ( ) { a c t i v e E f f e c t S c o p e = t h i s } o f f ( ) { a c t i v e E f f e c t S c o p e = t h i s . p a r e n t } s t o p ( q a ) { i f ( t h i s . _ a c t i v e ) { l e t J a , e d ; f o r ( J a = 0 , e d = t h i s . e f f e c t s . l e n g t h ; J a < e d ; J a + + ) t h i s . e f f e c t s [ J a ] . s t o p ( ) ; f o r ( J a = 0 , e d = t h i s . c l e a n u p s . l e n g t h ; J a < e d ; J a + + ) t h i s . c l e a n u p s [ J a ] ( ) ; i f ( t h i s . s c o p e s ) f o r ( J a = 0 , e d = t h i s . s c o p e s . l e n g t h ; J a < e d ; J a + + ) t h i s . s c o p e s [ J a ] . s t o p ( ! 0 ) ; i f ( ! t h i s . d e t a c h e d & & t h i s . p a r e n t & & ! q a ) { c o n s t t d = t h i s . p a r e n t . s c o p e s . p o p ( ) ; t d & & t d ! = = t h i s & & ( t h i s . p a r e n t . s c o p e s [ t h i s . i n d e x ] = t d , t d . i n d e x = t h i s . i n d e x ) } t h i s . p a r e n t = v o i d 0 , t h i s . _ a c t i v e = ! 1 } } } f u n c t i o n e f f e c t S c o p e ( R a ) { r e t u r n n e w E f f e c t S c o p e ( R a ) } f u n c t i o n r e c o r d E f f e c t S c o p e ( R a , q a = a c t i v e E f f e c t S c o p e ) { q a & & q a . a c t i v e & & q a . e f f e c t s . p u s h ( R a ) } f u n c t i o n g e t C u r r e n t S c o p e ( ) { r e t u r n a c t i v e E f f e c t S c o p e } f u n c t i o n o n S c o p e D i s p o s e ( R a ) { a c t i v e E f f e c t S c o p e & & a c t i v e E f f e c t S c o p e . c l e a n u p s . p u s h ( R a ) } l e t a c t i v e E f f e c t ; c l a s s R e a c t i v e E f f e c t { c o n s t r u c t o r ( q a , J a , e d , t d ) { t h i s . f n = q a , t h i s . t r i g g e r = J a , t h i s . s c h e d u l e r = e d , t h i s . a c t i v e = ! 0 , t h i s . d e p s = [ ] , t h i s . _ d i r t y L e v e l = 4 , t h i s . _ t r a c k I d = 0 , t h i s . _ r u n n i n g s = 0 , t h i s . _ s h o u l d S c h e d u l e = ! 1 , t h i s . _ d e p s L e n g t h = 0 , r e c o r d E f f e c t S c o p e ( t h i s , t d ) } g e t d i r t y ( ) { i f ( t h i s . _ d i r t y L e v e l = = = 2 | | t h i s . _ d i r t y L e v e l = = = 3 ) { t h i s . _ d i r t y L e v e l = 1 , p a u s e T r a c k i n g ( ) ; f o r ( l e t q a = 0 ; q a < t h i s . _ d e p s L e n g t h ; q a + + ) { c o n s t J a = t h i s . d e p s [ q a ] ; i f ( J a . c o m p u t e d & & ( t r i g g e r C o m p u t e d ( J a . c o m p u t e d ) , t h i s . _ d i r t y L e v e l > = 4 ) ) b r e a k } t h i s . _ d i r t y L e v e l = = = 1 & & ( t h i s . _ d i r t y L e v e l = 0 ) , r e s e t T r a c k i n g ( ) } r e t u r n t h i s . _ d i r t y L e v e l > = 4 } s e t d i r t y ( q a ) { t h i s . _ d i r t y L e v e l = q a ? 4 : 0 } r u n ( ) { i f ( t h i s . _ d i r t y L e v e l = 0 , ! t h i s . a c t i v e ) r e t u r n t h i s . f n ( ) ; l e t q a = s h o u l d T r a c k , J a = a c t i v e E f f e c t ; t r y { r e t u r n s h o u l d T r a c k = ! 0 , a c t i v e E f f e c t = t h i s , t h i s . _ r u n n i n g s + + , p r e C l e a n u p E f f e c t ( t h i s ) , t h i s . f n ( ) } f i n a l l y { p o s t C l e a n u p E f f e c t ( t h i s ) , t h i s . _ r u n n i n g s - - , a c t i v e E f f e c t = J a , s h o u l d T r a c k = q a } } s t o p ( ) { t h i s . a c t i v e & & ( p r e C l e a n u p E f f e c t ( t h i s ) , p o s t C l e a n u p E f f e c t ( t h i s ) , t h i s . o n S t o p & & t h i s . o n S t o p ( ) , t h i s . a c t i v e = ! 1 ) } } f u n c t i o n t r i g g e r C o m p u t e d ( R a ) { r e t u r n R a . v a l u e } f u n c t i o n p r e C l e a n u p E f f e c t ( R a ) { R a . _ t r a c k I d + + , R a . _ d e p s L e n g t h = 0 } f u n c t i o n p o s t C l e a n u p E f f e c t ( R a ) { i f ( R a . d e p s . l e n g t h > R a . _ d e p s L e n g t h ) { f o r ( l e t q a = R a . _ d e p s L e n g t h ; q a < R a . d e p s . l e n g t h ; q a + + ) c l e a n u p D e p E f f e c t ( R a . d e p s [ q a ] , R a ) ; R a . d e p s . l e n g t h = R a . _ d e p s L e n g t h } } f u n c t i o n c l e a n u p D e p E f f e c t ( R a , q a ) { c o n s t J a = R a . g e t ( q a ) ; J a ! = = v o i d 0 & & q a . _ t r a c k I d ! = = J a & & ( R a . d e l e t e ( q a ) , R a . s i z e = = = 0 & & R a . c l e a n u p ( ) ) } l e t s h o u l d T r a c k = ! 0 , p a u s e S c h e d u l e S t a c k = 0 ; c o n s t t r a c k S t a c k = [ ] ; f u n c t i o n p a u s e T r a c k i n g ( ) { t r a c k S t a c k . p u s h ( s h o u l d T r a c k ) , s h o u l d T r a c k = ! 1 } f u n c t i o n r e s e t T r a c k i n g ( ) { c o n s t R a = t r a c k S t a c k . p o p ( ) ; s h o u l d T r a c k = R a = = = v o i d 0 ? ! 0 : R a } f u n c t i o n p a u s e S c h e d u l i n g ( ) { p a u s e S c h e d u l e S t a c k + + } f u n c t i o n r e s e t S c h e d u l i n g ( ) { f o r ( p a u s e S c h e d u l e S t a c k - - ; ! p a u s e S c h e d u l e S t a c k & & q u e u e E f f e c t S c h e d u l e r s . l e n g t h ; ) q u e u e E f f e c t S c h e d u l e r s . s h i f t ( ) ( ) } f u n c t i o n t r a c k E f f e c t ( R a , q a , J a ) { i f ( q a . g e t ( R a ) ! = = R a . _ t r a c k I d ) { q a . s e t ( R a , R a . _ t r a c k I d ) ; c o n s t e d = R a . d e p s [ R a . _ d e p s L e n g t h ] ; e d ! = = q a ? ( e d & & c l e a n u p D e p E f f e c t ( e d , R a ) , R a . d e p s [ R a . _ d e p s L e n g t h + + ] = q a ) : R a . _ d e p s L e n g t h + + } } c o n s t q u e u e E f f e c t S c h e d u l e r s = [ ] ; f u n c t i o n t r i g g e r E f f e c t s ( R a , q a , J a ) { p a u s e S c h e d u l i n g ( ) ; f o r ( c o n s t e d o f R a . k e y s ( ) ) { l e t t d ; e d . _ d i r t y L e v e l < q a & & ( t d ? ? ( t d = R a . g e t ( e d ) = = = e d . _ t r a c k I d ) ) & & ( e d . _ s h o u l d S c h e d u l e | | ( e d . _ s h o u l d S c h e d u l e = e d . _ d i r t y L e v e l = = = 0 ) , e d . _ d i r t y L e v e l = q a ) , e d . _ s h o u l d S c h e d u l e & & ( t d ? ? ( t d = R a . g e t ( e d ) = = = e d . _ t r a c k I d ) ) & & ( e d . t r i g g e r ( ) , ( ! e d . _ r u n n i n g s | | e d . a l l o w R e c u r s e ) & & e d . _ d i r t y L e v e l ! = = 2 & & ( e d . _ s h o u l d S c h e d u l e = ! 1 , e d . s c h e d u l e r & & q u e u e E f f e c t S c h e d u l e r s . p u s h ( e d . s c h e d u l e r ) ) ) } r e s e t S c h e d u l i n g ( ) } c o n s t c r e a t e D e p = ( R a , q a ) = > { c o n s t J a = n e w M a p ; r e t u r n J a . c l e a n u p = R a , J a . c o m p u t e d = q a , J a } , t a r g e t M a p = n e w W e a k M a p , I T E R A T E _ K E Y = S y m b o l ( " " ) , M A P _ K E Y _ I T E R A T E _ K E Y = S y m b o l ( " " ) ; f u n c t i o n t r a c k ( R a , q a , J a ) { i f ( s h o u l d T r a c k & & a c t i v e E f f e c t ) { l e t e d = t a r g e t M a p . g e t ( R a ) ; e d | | t a r g e t M a p . s e t ( R a , e d = n e w M a p ) ; l e t t d = e d . g e t ( J a ) ; t d | | e d . s e t ( J a , t d = c r e a t e D e p ( ( ) = > e d . d e l e t e ( J a ) ) ) , t r a c k E f f e c t ( a c t i v e E f f e c t , t d ) } } f u n c t i o n t r i g g e r ( R a , q a , J a , e d , t d , r d ) { c o n s t o d = t a r g e t M a p . g e t ( R a ) ; i f ( ! o d )
2024-08-27 22:31:52 +08:00
* @ vue / runtime - core v3 . 4.38
* ( c ) 2018 - present Yuxi ( Evan ) You and Vue contributors
* @ license MIT
2024-08-30 15:19:18 +08:00
* * / c o n s t s t a c k = [ ] ; l e t i s W a r n i n g = ! 1 ; f u n c t i o n w a r n $ 1 ( R a , . . . q a ) { i f ( i s W a r n i n g ) r e t u r n ; i s W a r n i n g = ! 0 , p a u s e T r a c k i n g ( ) ; c o n s t J a = s t a c k . l e n g t h ? s t a c k [ s t a c k . l e n g t h - 1 ] . c o m p o n e n t : n u l l , e d = J a & & J a . a p p C o n t e x t . c o n f i g . w a r n H a n d l e r , t d = g e t C o m p o n e n t T r a c e ( ) ; i f ( e d ) c a l l W i t h E r r o r H a n d l i n g ( e d , J a , 1 1 , [ R a + q a . m a p ( r d = > { v a r o d , s d ; r e t u r n ( s d = ( o d = r d . t o S t r i n g ) = = n u l l ? v o i d 0 : o d . c a l l ( r d ) ) ! = n u l l ? s d : J S O N . s t r i n g i f y ( r d ) } ) . j o i n ( " " ) , J a & & J a . p r o x y , t d . m a p ( ( { v n o d e : r d } ) = > ` a t < $ { f o r m a t C o m p o n e n t N a m e ( J a , r d . t y p e ) } > ` ) . j o i n ( `
` ),td]);else{const rd=[ ` [ Vue warn ] : $ { Ra } ` ,...qa];td.length&&rd.push( `
` ,...formatTrace(td)),console.warn(...rd)}resetTracking(),isWarning=!1}function getComponentTrace(){let Ra=stack[stack.length-1];if(!Ra)return[];const qa=[];for(;Ra;){const Ja=qa[0];Ja&&Ja.vnode===Ra?Ja.recurseCount++:qa.push({vnode:Ra,recurseCount:0});const ed=Ra.component&&Ra.component.parent;Ra=ed&&ed.vnode}return qa}function formatTrace(Ra){const qa=[];return Ra.forEach((Ja,ed)=>{qa.push(...ed===0?[]:[ `
2024-08-31 11:28:56 +08:00
` ],...formatTraceEntry(Ja))}),qa}function formatTraceEntry({vnode:Ra,recurseCount:qa}){const Ja=qa>0? ` ... ( $ { qa } recursive calls ) ` :"",ed=Ra.component?Ra.component.parent==null:!1,td= ` at < $ { formatComponentName ( Ra . component , Ra . type , ed ) } ` ,rd=">"+Ja;return Ra.props?[td,...formatProps(Ra.props),rd]:[td+rd]}function formatProps(Ra){const qa=[],Ja=Object.keys(Ra);return Ja.slice(0,3).forEach(ed=>{qa.push(...formatProp(ed,Ra[ed]))}),Ja.length>3&&qa.push(" ..."),qa}function formatProp(Ra,qa,Ja){return isString $ 3(qa)?(qa=JSON.stringify(qa),Ja?qa:[ ` $ { Ra } = $ { qa } ` ]):typeof qa=="number"||typeof qa=="boolean"||qa==null?Ja?qa:[ ` $ { Ra } = $ { qa } ` ]:isRef(qa)?(qa=formatProp(Ra,toRaw(qa.value),!0),Ja?qa:[ ` $ { Ra } = Ref < ` ,qa,">"]):isFunction $ 4(qa)?[ ` $ { Ra } = fn$ { qa . name ? ` < ${ qa . name } > ` : "" } ` ]:(qa=toRaw(qa),Ja?qa:[ ` $ { Ra } = ` ,qa])}function callWithErrorHandling(Ra,qa,Ja,ed){try{return ed?Ra(...ed):Ra()}catch(td){handleError $ 1(td,qa,Ja)}}function callWithAsyncErrorHandling(Ra,qa,Ja,ed){if(isFunction $ 4(Ra)){const td=callWithErrorHandling(Ra,qa,Ja,ed);return td&&isPromise(td)&&td.catch(rd=>{handleError $ 1(rd,qa,Ja)}),td}if(isArray $ 2(Ra)){const td=[];for(let rd=0;rd<Ra.length;rd++)td.push(callWithAsyncErrorHandling(Ra[rd],qa,Ja,ed));return td}}function handleError $ 1(Ra,qa,Ja,ed=!0){const td=qa?qa.vnode:null;if(qa){let rd=qa.parent;const od=qa.proxy,sd= ` https : //vuejs.org/error-reference/#runtime-${Ja}`;for(;rd;){const cd=rd.ec;if(cd){for(let ud=0;ud<cd.length;ud++)if(cd[ud](Ra,od,sd)===!1)return}rd=rd.parent}const ld=qa.appContext.config.errorHandler;if(ld){pauseTracking(),callWithErrorHandling(ld,null,10,[Ra,od,sd]),resetTracking();return}}logError(Ra,Ja,td,ed)}function logError(Ra,qa,Ja,ed=!0){console.error(Ra)}let isFlushing=!1,isFlushPending=!1;const queue$2=[];let flushIndex=0;const pendingPostFlushCbs=[];let activePostFlushCbs=null,postFlushIndex=0;const resolvedPromise=Promise.resolve();let currentFlushPromise=null;function nextTick$1(Ra){const qa=currentFlushPromise||resolvedPromise;return Ra?qa.then(this?Ra.bind(this):Ra):qa}function findInsertionIndex(Ra){let qa=flushIndex+1,Ja=queue$2.length;for(;qa<Ja;){const ed=qa+Ja>>>1,td=queue$2[ed],rd=getId(td);rd<Ra||rd===Ra&&td.pre?qa=ed+1:Ja=ed}return qa}function queueJob(Ra){(!queue$2.length||!queue$2.includes(Ra,isFlushing&&Ra.allowRecurse?flushIndex+1:flushIndex))&&(Ra.id==null?queue$2.push(Ra):queue$2.splice(findInsertionIndex(Ra.id),0,Ra),queueFlush())}function queueFlush(){!isFlushing&&!isFlushPending&&(isFlushPending=!0,currentFlushPromise=resolvedPromise.then(flushJobs))}function invalidateJob(Ra){const qa=queue$2.indexOf(Ra);qa>flushIndex&&queue$2.splice(qa,1)}function queuePostFlushCb(Ra){isArray$2(Ra)?pendingPostFlushCbs.push(...Ra):(!activePostFlushCbs||!activePostFlushCbs.includes(Ra,Ra.allowRecurse?postFlushIndex+1:postFlushIndex))&&pendingPostFlushCbs.push(Ra),queueFlush()}function flushPreFlushCbs(Ra,qa,Ja=isFlushing?flushIndex+1:0){for(;Ja<queue$2.length;Ja++){const ed=queue$2[Ja];if(ed&&ed.pre){if(Ra&&ed.id!==Ra.uid)continue;queue$2.splice(Ja,1),Ja--,ed()}}}function flushPostFlushCbs(Ra){if(pendingPostFlushCbs.length){const qa=[...new Set(pendingPostFlushCbs)].sort((Ja,ed)=>getId(Ja)-getId(ed));if(pendingPostFlushCbs.length=0,activePostFlushCbs){activePostFlushCbs.push(...qa);return}for(activePostFlushCbs=qa,postFlushIndex=0;postFlushIndex<activePostFlushCbs.length;postFlushIndex++){const Ja=activePostFlushCbs[postFlushIndex];Ja.active!==!1&&Ja()}activePostFlushCbs=null,postFlushIndex=0}}const getId=Ra=>Ra.id==null?1/0:Ra.id,comparator=(Ra,qa)=>{const Ja=getId(Ra)-getId(qa);if(Ja===0){if(Ra.pre&&!qa.pre)return-1;if(qa.pre&&!Ra.pre)return 1}return Ja};function flushJobs(Ra){isFlushPending=!1,isFlushing=!0,queue$2.sort(comparator);try{for(flushIndex=0;flushIndex<queue$2.length;flushIndex++){const qa=queue$2[flushIndex];qa&&qa.active!==!1&&callWithErrorHandling(qa,qa.i,qa.i?15:14)}}finally{flushIndex=0,queue$2.length=0,flushPostFlushCbs(),isFlushing=!1,currentFlushPromise=null,(queue$2.length||pendingPostFlushCbs.length)&&flushJobs()}}let currentRenderingInstance=null,currentScopeId=null;function
2024-08-27 22:31:52 +08:00
* @ vue / runtime - dom v3 . 4.38
* ( c ) 2018 - present Yuxi ( Evan ) You and Vue contributors
* @ license MIT
2024-08-31 11:28:56 +08:00
* * /const svgNS="http:/ / www . w3 . org / 2000 / svg ",mathmlNS=" http : //www.w3.org/1998/Math/MathML",doc=typeof document<"u"?document:null,templateContainer=doc&&doc.createElement("template"),nodeOps={insert:(Ra,qa,Ja)=>{qa.insertBefore(Ra,Ja||null)},remove:Ra=>{const qa=Ra.parentNode;qa&&qa.removeChild(Ra)},createElement:(Ra,qa,Ja,ed)=>{const td=qa==="svg"?doc.createElementNS(svgNS,Ra):qa==="mathml"?doc.createElementNS(mathmlNS,Ra):Ja?doc.createElement(Ra,{is:Ja}):doc.createElement(Ra);return Ra==="select"&&ed&&ed.multiple!=null&&td.setAttribute("multiple",ed.multiple),td},createText:Ra=>doc.createTextNode(Ra),createComment:Ra=>doc.createComment(Ra),setText:(Ra,qa)=>{Ra.nodeValue=qa},setElementText:(Ra,qa)=>{Ra.textContent=qa},parentNode:Ra=>Ra.parentNode,nextSibling:Ra=>Ra.nextSibling,querySelector:Ra=>doc.querySelector(Ra),setScopeId(Ra,qa){Ra.setAttribute(qa,"")},insertStaticContent(Ra,qa,Ja,ed,td,rd){const od=Ja?Ja.previousSibling:qa.lastChild;if(td&&(td===rd||td.nextSibling))for(;qa.insertBefore(td.cloneNode(!0),Ja),!(td===rd||!(td=td.nextSibling)););else{templateContainer.innerHTML=ed==="svg"?`<svg>${Ra}</svg>`:ed==="mathml"?`<math>${Ra}</math>`:Ra;const sd=templateContainer.content;if(ed==="svg"||ed==="mathml"){const ld=sd.firstChild;for(;ld.firstChild;)sd.appendChild(ld.firstChild);sd.removeChild(ld)}qa.insertBefore(sd,Ja)}return[od?od.nextSibling:qa.firstChild,Ja?Ja.previousSibling:qa.lastChild]}},TRANSITION="transition",ANIMATION="animation",vtcKey=Symbol("_vtc"),Transition$1=(Ra,{slots:qa})=>h$2(BaseTransition,resolveTransitionProps(Ra),qa);Transition$1.displayName="Transition";const DOMTransitionPropsValidators={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},TransitionPropsValidators=Transition$1.props=extend$3({},BaseTransitionPropsValidators,DOMTransitionPropsValidators),callHook=(Ra,qa=[])=>{isArray$2(Ra)?Ra.forEach(Ja=>Ja(...qa)):Ra&&Ra(...qa)},hasExplicitCallback=Ra=>Ra?isArray$2(Ra)?Ra.some(qa=>qa.length>1):Ra.length>1:!1;function resolveTransitionProps(Ra){const qa={};for(const Wd in Ra)Wd in DOMTransitionPropsValidators||(qa[Wd]=Ra[Wd]);if(Ra.css===!1)return qa;const{name:Ja="v",type:ed,duration:td,enterFromClass:rd=`${Ja}-enter-from`,enterActiveClass:od=`${Ja}-enter-active`,enterToClass:sd=`${Ja}-enter-to`,appearFromClass:ld=rd,appearActiveClass:cd=od,appearToClass:ud=sd,leaveFromClass:_d=`${Ja}-leave-from`,leaveActiveClass:yd=`${Ja}-leave-active`,leaveToClass:gd=`${Ja}-leave-to`}=Ra,Ed=normalizeDuration(td),Td=Ed&&Ed[0],Id=Ed&&Ed[1],{onBeforeEnter:Ad,onEnter:Nd,onEnterCancelled:kd,onLeave:Rd,onLeaveCancelled:Md,onBeforeAppear:Bd=Ad,onAppear:jd=Nd,onAppearCancelled:Vd=kd}=qa,Fd=(Wd,Qd,Zd)=>{removeTransitionClass(Wd,Qd?ud:sd),removeTransitionClass(Wd,Qd?cd:od),Zd&&Zd()},Ud=(Wd,Qd)=>{Wd._isLeaving=!1,removeTransitionClass(Wd,_d),removeTransitionClass(Wd,gd),removeTransitionClass(Wd,yd),Qd&&Qd()},qd=Wd=>(Qd,Zd)=>{const Xd=Wd?jd:Nd,df=()=>Fd(Qd,Wd,Zd);callHook(Xd,[Qd,df]),nextFrame(()=>{removeTransitionClass(Qd,Wd?ld:rd),addTransitionClass(Qd,Wd?ud:sd),hasExplicitCallback(Xd)||whenTransitionEnds(Qd,ed,Td,df)})};return extend$3(qa,{onBeforeEnter(Wd){callHook(Ad,[Wd]),addTransitionClass(Wd,rd),addTransitionClass(Wd,od)},onBeforeAppear(Wd){callHook(Bd,[Wd]),addTransitionClass(Wd,ld),addTransitionClass(Wd,cd)},onEnter:qd(!1),onAppear:qd(!0),onLeave(Wd,Qd){Wd._isLeaving=!0;const Zd=()=>Ud(Wd,Qd);addTransitionClass(Wd,_d),addTransitionClass(Wd,yd),forceReflow(),nextFrame(()=>{Wd._isLeaving&&(removeTransitionClass(Wd,_d),addTransitionClass(Wd,gd),hasExplicitCallback(Rd)||whenTransitionEnds(Wd,ed,Id,Zd))}),callHook(Rd,[Wd,Zd])},onEnterCancelled(Wd){Fd(Wd,!1),callHook(kd,[Wd])},onAppearCancelled(Wd){Fd(Wd,!0),callHook(Vd,[Wd])},onLeaveCancelled(Wd){Ud(Wd),callHook(Md,[Wd])}})}function normalizeDuration(Ra){if(Ra==null)return null;if(isObject$5(Ra))return[NumberOf(Ra.enter),NumberOf(Ra.
2024-08-30 15:19:18 +08:00
` ).map(td=>{const rd=td.match(/^ \s +/);if(rd===null)return td;const[od]=rd;return od.length>=ed.length?td.slice(ed.length):td}).join( `
2024-08-31 11:28:56 +08:00
` )}let _Tokenizer $ 1=class{constructor(qa){e1(this,"options");e1(this,"rules");e1(this,"lexer");this.options=qa||_defaults $ 1}space(qa){const Ja=this.rules.block.newline.exec(qa);if(Ja&&Ja[0].length>0)return{type:"space",raw:Ja[0]}}code(qa){const Ja=this.rules.block.code.exec(qa);if(Ja){const ed=Ja[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:Ja[0],codeBlockStyle:"indented",text:this.options.pedantic?ed:rtrim $ 1(ed, `
2024-08-30 15:19:18 +08:00
` )}}}fences(qa){const Ja=this.rules.block.fences.exec(qa);if(Ja){const ed=Ja[0],td=indentCodeCompensation $ 1(ed,Ja[3]||"");return{type:"code",raw:ed,lang:Ja[2]?Ja[2].trim().replace(this.rules.inline.anyPunctuation," $ 1"):Ja[2],text:td}}}heading(qa){const Ja=this.rules.block.heading.exec(qa);if(Ja){let ed=Ja[2].trim();if(/# $ /.test(ed)){const td=rtrim $ 1(ed,"#");(this.options.pedantic||!td||/ $ /.test(td))&&(ed=td.trim())}return{type:"heading",raw:Ja[0],depth:Ja[1].length,text:ed,tokens:this.lexer.inline(ed)}}}hr(qa){const Ja=this.rules.block.hr.exec(qa);if(Ja)return{type:"hr",raw:rtrim $ 1(Ja[0], `
` )}}blockquote(qa){const Ja=this.rules.block.blockquote.exec(qa);if(Ja){let ed=rtrim $ 1(Ja[0], `
2024-08-27 22:31:52 +08:00
` ).split( `
2024-08-30 15:19:18 +08:00
` ),td="",rd="";const od=[];for(;ed.length>0;){let sd=!1;const ld=[];let cd;for(cd=0;cd<ed.length;cd++)if(/^ {0,3}>/.test(ed[cd]))ld.push(ed[cd]),sd=!0;else if(!sd)ld.push(ed[cd]);else break;ed=ed.slice(cd);const ud=ld.join( `
2024-08-31 11:28:56 +08:00
` ),_d=ud.replace(/ \n {0,3}((?:=+|-+) *)(?= \n | $ )/g, `
2024-08-30 15:19:18 +08:00
$1 ` ).replace(/^ {0,3}>[ \t ]?/gm,"");td=td? ` $ { td }
$ { ud } ` :ud,rd=rd? ` $ { rd }
2024-08-31 11:28:56 +08:00
$ { _d } ` :_d;const yd=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(_d,od,!0),this.lexer.state.top=yd,ed.length===0)break;const gd=od[od.length-1];if((gd==null?void 0:gd.type)==="code")break;if((gd==null?void 0:gd.type)==="blockquote"){const Ed=gd,Td=Ed.raw+ `
2024-08-30 15:19:18 +08:00
` +ed.join( `
2024-08-31 11:28:56 +08:00
` ),Id=this.blockquote(Td);od[od.length-1]=Id,td=td.substring(0,td.length-Ed.raw.length)+Id.raw,rd=rd.substring(0,rd.length-Ed.text.length)+Id.text;break}else if((gd==null?void 0:gd.type)==="list"){const Ed=gd,Td=Ed.raw+ `
2024-08-30 15:19:18 +08:00
` +ed.join( `
2024-08-31 11:28:56 +08:00
` ),Id=this.list(Td);od[od.length-1]=Id,td=td.substring(0,td.length-gd.raw.length)+Id.raw,rd=rd.substring(0,rd.length-Ed.raw.length)+Id.raw,ed=Td.substring(od[od.length-1].raw.length).split( `
` );continue}}return{type:"blockquote",raw:td,tokens:od,text:rd}}}list(qa){let Ja=this.rules.block.list.exec(qa);if(Ja){let ed=Ja[1].trim();const td=ed.length>1,rd={type:"list",raw:"",ordered:td,start:td?+ed.slice(0,-1):"",loose:!1,items:[]};ed=td? ` \ \ d { 1 , 9 } \ \ $ { ed . slice ( - 1 ) } ` : ` \ \ $ { ed } ` ,this.options.pedantic&&(ed=td?ed:"[*+-]");const od=new RegExp( ` ^ ( { 0 , 3 } $ { ed } ) ( ( ? : [ ] [ ^ \ \ n ] * ) ? ( ? : \ \ n | $ ) ) ` );let sd=!1;for(;qa;){let ld=!1,cd="",ud="";if(!(Ja=od.exec(qa))||this.rules.block.hr.test(qa))break;cd=Ja[0],qa=qa.substring(cd.length);let _d=Ja[2].split( `
` ,1)[0].replace(/^ \t +/,Ad=>" ".repeat(3*Ad.length)),yd=qa.split( `
` ,1)[0],gd=!_d.trim(),Ed=0;if(this.options.pedantic?(Ed=2,ud=_d.trimStart()):gd?Ed=Ja[1].length+1:(Ed=Ja[2].search(/[^ ]/),Ed=Ed>4?1:Ed,ud=_d.slice(Ed),Ed+=Ja[1].length),gd&&/^ * $ /.test(yd)&&(cd+=yd+ `
` ,qa=qa.substring(yd.length+1),ld=!0),!ld){const Ad=new RegExp( ` ^ { 0 , $ { Math . min ( 3 , Ed - 1 ) } } ( ? : [ * + - ] | \ \ d { 1 , 9 } [ . ) ] ) ( ( ? : [ ] [ ^ \ \ n ] * ) ? ( ? : \ \ n | $ ) ) ` ),Nd=new RegExp( ` ^ { 0 , $ { Math . min ( 3 , Ed - 1 ) } } ( ( ? : - * ) { 3 , } | ( ? : _ * ) { 3 , } | ( ? : \ \ * * ) { 3 , } ) ( ? : \ \ n + | $ ) ` ),kd=new RegExp( ` ^ { 0 , $ { Math . min ( 3 , Ed - 1 ) } } ( ? : \ ` \` \` |~~~) ` ) , Rd = new RegExp ( ` ^ {0, ${ Math . min ( 3 , Ed - 1 ) } }# ` ) ; for ( ; qa ; ) { const Md = qa . split ( `
` ,1)[0];if(yd=Md,this.options.pedantic&&(yd=yd.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),kd.test(yd)||Rd.test(yd)||Ad.test(yd)||Nd.test(qa))break;if(yd.search(/[^ ]/)>=Ed||!yd.trim())ud+= `
` +yd.slice(Ed);else{if(gd||_d.search(/[^ ]/)>=4||kd.test(_d)||Rd.test(_d)||Nd.test(_d))break;ud+= `
` +yd}!gd&&!yd.trim()&&(gd=!0),cd+=Md+ `
` ,qa=qa.substring(Md.length+1),_d=yd.slice(Ed)}}rd.loose||(sd?rd.loose=!0:/ \n * \n * $ /.test(cd)&&(sd=!0));let Td=null,Id;this.options.gfm&&(Td=/^ \[ [ xX] \] /.exec(ud),Td&&(Id=Td[0]!=="[ ] ",ud=ud.replace(/^ \[ [ xX] \] +/,""))),rd.items.push({type:"list_item",raw:cd,task:!!Td,checked:Id,loose:!1,text:ud,tokens:[]}),rd.raw+=cd}rd.items[rd.items.length-1].raw=rd.items[rd.items.length-1].raw.trimEnd(),rd.items[rd.items.length-1].text=rd.items[rd.items.length-1].text.trimEnd(),rd.raw=rd.raw.trimEnd();for(let ld=0;ld<rd.items.length;ld++)if(this.lexer.state.top=!1,rd.items[ld].tokens=this.lexer.blockTokens(rd.items[ld].text,[]),!rd.loose){const cd=rd.items[ld].tokens.filter(_d=>_d.type==="space"),ud=cd.length>0&&cd.some(_d=>/ \n .* \n /.test(_d.raw));rd.loose=ud}if(rd.loose)for(let ld=0;ld<rd.items.length;ld++)rd.items[ld].loose=!0;return rd}}html(qa){const Ja=this.rules.block.html.exec(qa);if(Ja)return{type:"html",block:!0,raw:Ja[0],pre:Ja[1]==="pre"||Ja[1]==="script"||Ja[1]==="style",text:Ja[0]}}def(qa){const Ja=this.rules.block.def.exec(qa);if(Ja){const ed=Ja[1].toLowerCase().replace(/ \s +/g," "),td=Ja[2]?Ja[2].replace(/^<(.*)> $ /," $ 1").replace(this.rules.inline.anyPunctuation," $ 1"):"",rd=Ja[3]?Ja[3].substring(1,Ja[3].length-1).replace(this.rules.inline.anyPunctuation," $ 1"):Ja[3];return{type:"def",tag:ed,raw:Ja[0],href:td,title:rd}}}table(qa){const Ja=this.rules.block.table.exec(qa);if(!Ja||!/[:|]/.test(Ja[2]))return;const ed=splitCells $ 1(Ja[1]),td=Ja[2].replace(/^ \| | \| * $ /g,"").split("|"),rd=Ja[3]&&Ja[3].trim()?Ja[3].replace(/ \n [ \t ]* $ /,"").split( `
2024-08-30 15:19:18 +08:00
` ):[],od={type:"table",raw:Ja[0],header:[],align:[],rows:[]};if(ed.length===td.length){for(const sd of td)/^ *-+: * $ /.test(sd)?od.align.push("right"):/^ *:-+: * $ /.test(sd)?od.align.push("center"):/^ *:-+ * $ /.test(sd)?od.align.push("left"):od.align.push(null);for(let sd=0;sd<ed.length;sd++)od.header.push({text:ed[sd],tokens:this.lexer.inline(ed[sd]),header:!0,align:od.align[sd]});for(const sd of rd)od.rows.push(splitCells $ 1(sd,od.header.length).map((ld,cd)=>({text:ld,tokens:this.lexer.inline(ld),header:!1,align:od.align[cd]})));return od}}lheading(qa){const Ja=this.rules.block.lheading.exec(qa);if(Ja)return{type:"heading",raw:Ja[0],depth:Ja[2].charAt(0)==="="?1:2,text:Ja[1],tokens:this.lexer.inline(Ja[1])}}paragraph(qa){const Ja=this.rules.block.paragraph.exec(qa);if(Ja){const ed=Ja[1].charAt(Ja[1].length-1)=== `
2024-08-31 11:28:56 +08:00
` ?Ja[1].slice(0,-1):Ja[1];return{type:"paragraph",raw:Ja[0],text:ed,tokens:this.lexer.inline(ed)}}}text(qa){const Ja=this.rules.block.text.exec(qa);if(Ja)return{type:"text",raw:Ja[0],text:Ja[0],tokens:this.lexer.inline(Ja[0])}}escape(qa){const Ja=this.rules.inline.escape.exec(qa);if(Ja)return{type:"escape",raw:Ja[0],text:escape $ 1 $ 2(Ja[1])}}tag(qa){const Ja=this.rules.inline.tag.exec(qa);if(Ja)return!this.lexer.state.inLink&&/^<a /i.test(Ja[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&/^< \/ a>/i.test(Ja[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)( \s |>)/i.test(Ja[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^< \/ (pre|code|kbd|script)( \s |>)/i.test(Ja[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:Ja[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:Ja[0]}}link(qa){const Ja=this.rules.inline.link.exec(qa);if(Ja){const ed=Ja[2].trim();if(!this.options.pedantic&&/^</.test(ed)){if(!/> $ /.test(ed))return;const od=rtrim $ 1(ed.slice(0,-1)," \\ ");if((ed.length-od.length)%2===0)return}else{const od=findClosingBracket $ 1(Ja[2],"()");if(od>-1){const ld=(Ja[0].indexOf("!")===0?5:4)+Ja[1].length+od;Ja[2]=Ja[2].substring(0,od),Ja[0]=Ja[0].substring(0,ld).trim(),Ja[3]=""}}let td=Ja[2],rd="";if(this.options.pedantic){const od=/^([^'"]*[^ \s ]) \s +(['"])(.*) \2 /.exec(td);od&&(td=od[1],rd=od[3])}else rd=Ja[3]?Ja[3].slice(1,-1):"";return td=td.trim(),/^</.test(td)&&(this.options.pedantic&&!/> $ /.test(ed)?td=td.slice(1):td=td.slice(1,-1)),outputLink $ 1(Ja,{href:td&&td.replace(this.rules.inline.anyPunctuation," $ 1"),title:rd&&rd.replace(this.rules.inline.anyPunctuation," $ 1")},Ja[0],this.lexer)}}reflink(qa,Ja){let ed;if((ed=this.rules.inline.reflink.exec(qa))||(ed=this.rules.inline.nolink.exec(qa))){const td=(ed[2]||ed[1]).replace(/ \s +/g," "),rd=Ja[td.toLowerCase()];if(!rd){const od=ed[0].charAt(0);return{type:"text",raw:od,text:od}}return outputLink $ 1(ed,rd,ed[0],this.lexer)}}emStrong(qa,Ja,ed=""){let td=this.rules.inline.emStrongLDelim.exec(qa);if(!td||td[3]&&ed.match(/[ \p {L} \p {N}]/u))return;if(!(td[1]||td[2]||"")||!ed||this.rules.inline.punctuation.exec(ed)){const od=[...td[0]].length-1;let sd,ld,cd=od,ud=0;const _d=td[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(_d.lastIndex=0,Ja=Ja.slice(-1*qa.length+od);(td=_d.exec(Ja))!=null;){if(sd=td[1]||td[2]||td[3]||td[4]||td[5]||td[6],!sd)continue;if(ld=[...sd].length,td[3]||td[4]){cd+=ld;continue}else if((td[5]||td[6])&&od%3&&!((od+ld)%3)){ud+=ld;continue}if(cd-=ld,cd>0)continue;ld=Math.min(ld,ld+cd+ud);const yd=[...td[0]][0].length,gd=qa.slice(0,od+td.index+yd+ld);if(Math.min(od,ld)%2){const Td=gd.slice(1,-1);return{type:"em",raw:gd,text:Td,tokens:this.lexer.inlineTokens(Td)}}const Ed=gd.slice(2,-2);return{type:"strong",raw:gd,text:Ed,tokens:this.lexer.inlineTokens(Ed)}}}}codespan(qa){const Ja=this.rules.inline.code.exec(qa);if(Ja){let ed=Ja[2].replace(/ \n /g," ");const td=/[^ ]/.test(ed),rd=/^ /.test(ed)&&/ $ /.test(ed);return td&&rd&&(ed=ed.substring(1,ed.length-1)),ed=escape $ 1 $ 2(ed,!0),{type:"codespan",raw:Ja[0],text:ed}}}br(qa){const Ja=this.rules.inline.br.exec(qa);if(Ja)return{type:"br",raw:Ja[0]}}del(qa){const Ja=this.rules.inline.del.exec(qa);if(Ja)return{type:"del",raw:Ja[0],text:Ja[2],tokens:this.lexer.inlineTokens(Ja[2])}}autolink(qa){const Ja=this.rules.inline.autolink.exec(qa);if(Ja){let ed,td;return Ja[2]==="@"?(ed=escape $ 1 $ 2(Ja[1]),td="mailto:"+ed):(ed=escape $ 1 $ 2(Ja[1]),td=ed),{type:"link",raw:Ja[0],text:ed,href:td,tokens:[{type:"text",raw:ed,text:ed}]}}}url(qa){var ed;let Ja;if(Ja=this.rules.inline.url.exec(qa)){let td,rd;if(Ja[2]==="@")td=escape $ 1 $ 2(Ja[0]),rd="mailto:"+td;else{let od;do od=Ja[0],Ja[0]=((ed=this.rules.inline._backpedal.exec(Ja[0]))==null?void 0:ed[0])??"";while(od!==Ja[0]);td=escape $ 1 $ 2(Ja[0]),Ja[1]==="www."?rd="http://"+Ja[0]:rd=Ja[0]}return{type:"link",raw:Ja[0],text:td,href:rd,tokens:[{type:"text",raw:td,text:td}]}}}inlineText(qa){const Ja=this.rules.inline.text.exec(qa);if(Ja){let ed;return this.lexer.state.inRawBl
] ` ).replace("lheading",lheading $ 1).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},escape $ 5=/^ \\ ([!"# $ %&'()*+, \- ./:;<=>?@ \[ \] \\ ^_ ` { | } ~ ] ) / , inlineCode$1 = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/ , br$4 = /^( {2,}|\\)\n(?!\s*$)/ , inlineText$1 = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/ , _punctuation$1 = "\\p{P}\\p{S}" , punctuation$1 = edit$1 ( /^((?![*_])[\spunctuation])/ , "u" ) . replace ( /punctuation/g , _punctuation$1 ) . getRegex ( ) , blockSkip$1 = /\[[^[\]]*?\]\([^\(\)]*?\)|`[^`]*?`|<[^<>]*?>/g , emStrongLDelim$1 = edit$1 ( /^(?:\*+(?:((?!\*)[punct])|[^\s*]))|^_+(?:((?!_)[punct])|([^\s_]))/ , "u" ) . replace ( /punct/g , _punctuation$1 ) . getRegex ( ) , emStrongRDelimAst$1 = edit$1 ( "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)[punct](\\*+)(?=[\\s]|$)|[^punct\\s](\\*+)(?!\\*)(?=[punct\\s]|$)|(?!\\*)[punct\\s](\\*+)(?=[^punct\\s])|[\\s](\\*+)(?!\\*)(?=[punct])|(?!\\*)[punct](\\*+)(?!\\*)(?=[punct])|[^punct\\s](\\*+)(?=[^punct\\s])" , "gu" ) . replace ( /punct/g , _punctuation$1 ) . getRegex ( ) , emStrongRDelimUnd$1 = edit$1 ( "^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)[punct](_+)(?=[\\s]|$)|[^punct\\s](_+)(?!_)(?=[punct\\s]|$)|(?!_)[punct\\s](_+)(?=[^punct\\s])|[\\s](_+)(?!_)(?=[punct])|(?!_)[punct](_+)(?!_)(?=[punct])" , "gu" ) . replace ( /punct/g , _punctuation$1 ) . getRegex ( ) , anyPunctuation$1 = edit$1 ( /\\([punct])/ , "gu" ) . replace ( /punct/g , _punctuation$1 ) . getRegex ( ) , autolink$1 = edit$1 ( /^<(scheme:[^\s\x00-\x1f<>]*|email)>/ ) . replace ( "scheme" , /[a-zA-Z][a-zA-Z0-9+.-]{1,31}/ ) . replace ( "email" , /[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/ ) . getRegex ( ) , _inlineComment$1 = edit$1 ( _comment$1 ) . replace ( "(?:-->|$)" , "-->" ) . getRegex ( ) , tag$1 = edit$1 ( "^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>" ) . replace ( "comment" , _inlineComment$1 ) . replace ( "attribute" , /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/ ) . getRegex ( ) , _inlineLabel$1 = /(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/ , link$1 = edit$1 ( /^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/ ) . replace ( "label" , _inlineLabel$1 ) . replace ( "href" , /<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/ ) . replace ( "title" , /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/ ) . getRegex ( ) , reflink$1 = edit$1 ( /^!?\[(label)\]\[(ref)\]/ ) . replace ( "label" , _inlineLabel$1 ) . replace ( "ref" , _blockLabel$1 ) . getRegex ( ) , nolink$1 = edit$1 ( /^!?\[(ref)\](?:\[\])?/ ) . replace ( "ref" , _blockLabel$1 ) . getRegex ( ) , reflinkSearch$1 = edit$1 ( "reflink|nolink(?!\\()" , "g" ) . replace ( "reflink" , reflink$1 ) . replace ( "nolink" , nolink$1 ) . getRegex ( ) , inlineNormal$1 = { _backpedal : noopTest$1 , anyPunctuation : anyPunctuation$1 , autolink : autolink$1 , blockSkip : blockSkip$1 , br : br$4 , code : inlineCode$1 , del : noopTest$1 , emStrongLDelim : emStrongLDelim$1 , emStrongRDelimAst : emStrongRDelimAst$1 , emStrongRDelimUnd : emStrongRDelimUnd$1 , escape : escape$5 , link : link$1 , nolink : nolink$1 , punctuation : punctuation$1 , reflink : reflink$1 , reflinkSearch : reflinkSearch$1 , tag : tag$1 , text : inlineText$1 , url : noopTest$1 } , inlinePedantic$1 = { ... inlineNormal$1 , link : edit$1 ( /^!?\[(label)\]\((.*?)\)/ ) . replace ( "label" , _inlineLabel$1 ) . getRegex ( ) , reflink : edit$1 ( /^!?\[(label)\]\s*\[([^\]]*)\]/ ) . replace ( "label" , _inlineLabel$1 ) . getRegex ( ) } , inlineGfm$1 = { ... inlineNormal$1 , escape : edit$1 ( escape$5 ) . replace ( "])" , "~|])" ) . getRegex ( ) , url : edit$1 ( /^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/ , "i" ) . replace ( "email" , /[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/ ) . getRegex ( ) , _backpedal : /(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/ , del : /^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/ , text : /^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/ } , inlineBreaks$1 = { ... inlineGfm$1 , br : edit$1 ( br$4 ) . replace ( "{2,}" , "*" ) .
2024-08-30 15:19:18 +08:00
` ),this.blockTokens(qa,this.tokens);for(let Ja=0;Ja<this.inlineQueue.length;Ja++){const ed=this.inlineQueue[Ja];this.inlineTokens(ed.src,ed.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(qa,Ja=[],ed=!1){this.options.pedantic?qa=qa.replace(/ \t /g," ").replace(/^ + $ /gm,""):qa=qa.replace(/^( *)( \t +)/gm,(sd,ld,cd)=>ld+" ".repeat(cd.length));let td,rd,od;for(;qa;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some(sd=>(td=sd.call({lexer:this},qa,Ja))?(qa=qa.substring(td.raw.length),Ja.push(td),!0):!1))){if(td=this.tokenizer.space(qa)){qa=qa.substring(td.raw.length),td.raw.length===1&&Ja.length>0?Ja[Ja.length-1].raw+= `
` :Ja.push(td);continue}if(td=this.tokenizer.code(qa)){qa=qa.substring(td.raw.length),rd=Ja[Ja.length-1],rd&&(rd.type==="paragraph"||rd.type==="text")?(rd.raw+= `
` +td.raw,rd.text+= `
` +td.text,this.inlineQueue[this.inlineQueue.length-1].src=rd.text):Ja.push(td);continue}if(td=this.tokenizer.fences(qa)){qa=qa.substring(td.raw.length),Ja.push(td);continue}if(td=this.tokenizer.heading(qa)){qa=qa.substring(td.raw.length),Ja.push(td);continue}if(td=this.tokenizer.hr(qa)){qa=qa.substring(td.raw.length),Ja.push(td);continue}if(td=this.tokenizer.blockquote(qa)){qa=qa.substring(td.raw.length),Ja.push(td);continue}if(td=this.tokenizer.list(qa)){qa=qa.substring(td.raw.length),Ja.push(td);continue}if(td=this.tokenizer.html(qa)){qa=qa.substring(td.raw.length),Ja.push(td);continue}if(td=this.tokenizer.def(qa)){qa=qa.substring(td.raw.length),rd=Ja[Ja.length-1],rd&&(rd.type==="paragraph"||rd.type==="text")?(rd.raw+= `
` +td.raw,rd.text+= `
` +td.raw,this.inlineQueue[this.inlineQueue.length-1].src=rd.text):this.tokens.links[td.tag]||(this.tokens.links[td.tag]={href:td.href,title:td.title});continue}if(td=this.tokenizer.table(qa)){qa=qa.substring(td.raw.length),Ja.push(td);continue}if(td=this.tokenizer.lheading(qa)){qa=qa.substring(td.raw.length),Ja.push(td);continue}if(od=qa,this.options.extensions&&this.options.extensions.startBlock){let sd=1/0;const ld=qa.slice(1);let cd;this.options.extensions.startBlock.forEach(ud=>{cd=ud.call({lexer:this},ld),typeof cd=="number"&&cd>=0&&(sd=Math.min(sd,cd))}),sd<1/0&&sd>=0&&(od=qa.substring(0,sd+1))}if(this.state.top&&(td=this.tokenizer.paragraph(od))){rd=Ja[Ja.length-1],ed&&(rd==null?void 0:rd.type)==="paragraph"?(rd.raw+= `
` +td.raw,rd.text+= `
` +td.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=rd.text):Ja.push(td),ed=od.length!==qa.length,qa=qa.substring(td.raw.length);continue}if(td=this.tokenizer.text(qa)){qa=qa.substring(td.raw.length),rd=Ja[Ja.length-1],rd&&rd.type==="text"?(rd.raw+= `
` +td.raw,rd.text+= `
2024-08-31 11:28:56 +08:00
` +td.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=rd.text):Ja.push(td);continue}if(qa){const sd="Infinite loop on byte: "+qa.charCodeAt(0);if(this.options.silent){console.error(sd);break}else throw new Error(sd)}}return this.state.top=!0,Ja}inline(qa,Ja=[]){return this.inlineQueue.push({src:qa,tokens:Ja}),Ja}inlineTokens(qa,Ja=[]){let ed,td,rd,od=qa,sd,ld,cd;if(this.tokens.links){const ud=Object.keys(this.tokens.links);if(ud.length>0)for(;(sd=this.tokenizer.rules.inline.reflinkSearch.exec(od))!=null;)ud.includes(sd[0].slice(sd[0].lastIndexOf("[")+1,-1))&&(od=od.slice(0,sd.index)+"["+"a".repeat(sd[0].length-2)+"]"+od.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(sd=this.tokenizer.rules.inline.blockSkip.exec(od))!=null;)od=od.slice(0,sd.index)+"["+"a".repeat(sd[0].length-2)+"]"+od.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;(sd=this.tokenizer.rules.inline.anyPunctuation.exec(od))!=null;)od=od.slice(0,sd.index)+"++"+od.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;qa;)if(ld||(cd=""),ld=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some(ud=>(ed=ud.call({lexer:this},qa,Ja))?(qa=qa.substring(ed.raw.length),Ja.push(ed),!0):!1))){if(ed=this.tokenizer.escape(qa)){qa=qa.substring(ed.raw.length),Ja.push(ed);continue}if(ed=this.tokenizer.tag(qa)){qa=qa.substring(ed.raw.length),td=Ja[Ja.length-1],td&&ed.type==="text"&&td.type==="text"?(td.raw+=ed.raw,td.text+=ed.text):Ja.push(ed);continue}if(ed=this.tokenizer.link(qa)){qa=qa.substring(ed.raw.length),Ja.push(ed);continue}if(ed=this.tokenizer.reflink(qa,this.tokens.links)){qa=qa.substring(ed.raw.length),td=Ja[Ja.length-1],td&&ed.type==="text"&&td.type==="text"?(td.raw+=ed.raw,td.text+=ed.text):Ja.push(ed);continue}if(ed=this.tokenizer.emStrong(qa,od,cd)){qa=qa.substring(ed.raw.length),Ja.push(ed);continue}if(ed=this.tokenizer.codespan(qa)){qa=qa.substring(ed.raw.length),Ja.push(ed);continue}if(ed=this.tokenizer.br(qa)){qa=qa.substring(ed.raw.length),Ja.push(ed);continue}if(ed=this.tokenizer.del(qa)){qa=qa.substring(ed.raw.length),Ja.push(ed);continue}if(ed=this.tokenizer.autolink(qa)){qa=qa.substring(ed.raw.length),Ja.push(ed);continue}if(!this.state.inLink&&(ed=this.tokenizer.url(qa))){qa=qa.substring(ed.raw.length),Ja.push(ed);continue}if(rd=qa,this.options.extensions&&this.options.extensions.startInline){let ud=1/0;const _d=qa.slice(1);let yd;this.options.extensions.startInline.forEach(gd=>{yd=gd.call({lexer:this},_d),typeof yd=="number"&&yd>=0&&(ud=Math.min(ud,yd))}),ud<1/0&&ud>=0&&(rd=qa.substring(0,ud+1))}if(ed=this.tokenizer.inlineText(rd)){qa=qa.substring(ed.raw.length),ed.raw.slice(-1)!=="_"&&(cd=ed.raw.slice(-1)),ld=!0,td=Ja[Ja.length-1],td&&td.type==="text"?(td.raw+=ed.raw,td.text+=ed.text):Ja.push(ed);continue}if(qa){const ud="Infinite loop on byte: "+qa.charCodeAt(0);if(this.options.silent){console.error(ud);break}else throw new Error(ud)}}return Ja}},_Renderer $ 1=class{constructor(qa){e1(this,"options");e1(this,"parser");this.options=qa||_defaults $ 1}space(qa){return""}code({text:qa,lang:Ja,escaped:ed}){var od;const td=(od=(Ja||"").match(/^ \S */))==null?void 0:od[0],rd=qa.replace(/ \n $ /,"")+ `
2024-08-30 15:19:18 +08:00
` ;return td?'<pre><code class="language-'+escape $ 1 $ 2(td)+'">'+(ed?rd:escape $ 1 $ 2(rd,!0))+ ` < / c o d e > < / p r e >
` :"<pre><code>"+(ed?rd:escape $ 1 $ 2(rd,!0))+ ` < / c o d e > < / p r e >
` }blockquote({tokens:qa}){return ` < blockquote >
$ { this . parser . parse ( qa ) } < / b l o c k q u o t e >
` }html({text:qa}){return qa}heading({tokens:qa,depth:Ja}){return ` < h$ { Ja } > $ { this . parser . parseInline ( qa ) } < / h $ { J a } >
` }hr(qa){return ` < hr >
` }list(qa){const Ja=qa.ordered,ed=qa.start;let td="";for(let sd=0;sd<qa.items.length;sd++){const ld=qa.items[sd];td+=this.listitem(ld)}const rd=Ja?"ol":"ul",od=Ja&&ed!==1?' start="'+ed+'"':"";return"<"+rd+od+ ` >
` +td+"</"+rd+ ` >
` }listitem(qa){let Ja="";if(qa.task){const ed=this.checkbox({checked:!!qa.checked});qa.loose?qa.tokens.length>0&&qa.tokens[0].type==="paragraph"?(qa.tokens[0].text=ed+" "+qa.tokens[0].text,qa.tokens[0].tokens&&qa.tokens[0].tokens.length>0&&qa.tokens[0].tokens[0].type==="text"&&(qa.tokens[0].tokens[0].text=ed+" "+qa.tokens[0].tokens[0].text)):qa.tokens.unshift({type:"text",raw:ed+" ",text:ed+" "}):Ja+=ed+" "}return Ja+=this.parser.parse(qa.tokens,!!qa.loose), ` < li > $ { Ja } < / l i >
` }checkbox({checked:qa}){return"<input "+(qa?'checked="" ':"")+'disabled="" type="checkbox">'}paragraph({tokens:qa}){return ` < p > $ { this . parser . parseInline ( qa ) } < / p >
` }table(qa){let Ja="",ed="";for(let rd=0;rd<qa.header.length;rd++)ed+=this.tablecell(qa.header[rd]);Ja+=this.tablerow({text:ed});let td="";for(let rd=0;rd<qa.rows.length;rd++){const od=qa.rows[rd];ed="";for(let sd=0;sd<od.length;sd++)ed+=this.tablecell(od[sd]);td+=this.tablerow({text:ed})}return td&&(td= ` < tbody > $ { td } < / t b o d y > ` ) , ` < t a b l e >
2024-08-27 22:31:52 +08:00
< thead >
2024-08-30 15:19:18 +08:00
` +Ja+ ` < / t h e a d >
` +td+ ` < / t a b l e >
` }tablerow({text:qa}){return ` < tr >
$ { qa } < / t r >
` }tablecell(qa){const Ja=this.parser.parseInline(qa.tokens),ed=qa.header?"th":"td";return(qa.align? ` < $ { ed } align = "${qa.align}" > ` : ` < $ { ed } > ` )+Ja+ ` < / $ { e d } >
2024-08-31 11:28:56 +08:00
` }strong({tokens:qa}){return ` < strong > $ { this . parser . parseInline ( qa ) } < / s t r o n g > ` } e m ( { t o k e n s : q a } ) { r e t u r n ` < e m > $ { t h i s . p a r s e r . p a r s e I n l i n e ( q a ) } < / e m > ` } c o d e s p a n ( { t e x t : q a } ) { r e t u r n ` < c o d e > $ { q a } < / c o d e > ` } b r ( q a ) { r e t u r n " < b r > " } d e l ( { t o k e n s : q a } ) { r e t u r n ` < d e l > $ { t h i s . p a r s e r . p a r s e I n l i n e ( q a ) } < / d e l > ` } l i n k ( { h r e f : q a , t i t l e : J a , t o k e n s : e d } ) { c o n s t t d = t h i s . p a r s e r . p a r s e I n l i n e ( e d ) , r d = c l e a n U r l $ 1 ( q a ) ; i f ( r d = = = n u l l ) r e t u r n t d ; q a = r d ; l e t o d = ' < a h r e f = " ' + q a + ' " ' ; r e t u r n J a & & ( o d + = ' t i t l e = " ' + J a + ' " ' ) , o d + = " > " + t d + " < / a > " , o d } i m a g e ( { h r e f : q a , t i t l e : J a , t e x t : e d } ) { c o n s t t d = c l e a n U r l $ 1 ( q a ) ; i f ( t d = = = n u l l ) r e t u r n e d ; q a = t d ; l e t r d = ` < i m g s r c = " $ { q a } " a l t = " $ { e d } " ` ; r e t u r n J a & & ( r d + = ` t i t l e = " $ { J a } " ` ) , r d + = " > " , r d } t e x t ( q a ) { r e t u r n " t o k e n s " i n q a & & q a . t o k e n s ? t h i s . p a r s e r . p a r s e I n l i n e ( q a . t o k e n s ) : q a . t e x t } } , _ T e x t R e n d e r e r $ 1 = c l a s s { s t r o n g ( { t e x t : q a } ) { r e t u r n q a } e m ( { t e x t : q a } ) { r e t u r n q a } c o d e s p a n ( { t e x t : q a } ) { r e t u r n q a } d e l ( { t e x t : q a } ) { r e t u r n q a } h t m l ( { t e x t : q a } ) { r e t u r n q a } t e x t ( { t e x t : q a } ) { r e t u r n q a } l i n k ( { t e x t : q a } ) { r e t u r n " " + q a } i m a g e ( { t e x t : q a } ) { r e t u r n " " + q a } b r ( ) { r e t u r n " " } } , _ P a r s e r $ 1 = c l a s s _ S { c o n s t r u c t o r ( q a ) { e 1 ( t h i s , " o p t i o n s " ) ; e 1 ( t h i s , " r e n d e r e r " ) ; e 1 ( t h i s , " t e x t R e n d e r e r " ) ; t h i s . o p t i o n s = q a | | _ d e f a u l t s $ 1 , t h i s . o p t i o n s . r e n d e r e r = t h i s . o p t i o n s . r e n d e r e r | | n e w _ R e n d e r e r $ 1 , t h i s . r e n d e r e r = t h i s . o p t i o n s . r e n d e r e r , t h i s . r e n d e r e r . o p t i o n s = t h i s . o p t i o n s , t h i s . r e n d e r e r . p a r s e r = t h i s , t h i s . t e x t R e n d e r e r = n e w _ T e x t R e n d e r e r $ 1 } s t a t i c p a r s e ( q a , J a ) { r e t u r n n e w _ S ( J a ) . p a r s e ( q a ) } s t a t i c p a r s e I n l i n e ( q a , J a ) { r e t u r n n e w _ S ( J a ) . p a r s e I n l i n e ( q a ) } p a r s e ( q a , J a = ! 0 ) { l e t e d = " " ; f o r ( l e t t d = 0 ; t d < q a . l e n g t h ; t d + + ) { c o n s t r d = q a [ t d ] ; i f ( t h i s . o p t i o n s . e x t e n s i o n s & & t h i s . o p t i o n s . e x t e n s i o n s . r e n d e r e r s & & t h i s . o p t i o n s . e x t e n s i o n s . r e n d e r e r s [ r d . t y p e ] ) { c o n s t s d = r d , l d = t h i s . o p t i o n s . e x t e n s i o n s . r e n d e r e r s [ s d . t y p e ] . c a l l ( { p a r s e r : t h i s } , s d ) ; i f ( l d ! = = ! 1 | | ! [ " s p a c e " , " h r " , " h e a d i n g " , " c o d e " , " t a b l e " , " b l o c k q u o t e " , " l i s t " , " h t m l " , " p a r a g r a p h " , " t e x t " ] . i n c l u d e s ( s d . t y p e ) ) { e d + = l d | | " " ; c o n t i n u e } } c o n s t o d = r d ; s w i t c h ( o d . t y p e ) { c a s e " s p a c e " : { e d + = t h i s . r e n d e r e r . s p a c e ( o d ) ; c o n t i n u e } c a s e " h r " : { e d + = t h i s . r e n d e r e r . h r ( o d ) ; c o n t i n u e } c a s e " h e a d i n g " : { e d + = t h i s . r e n d e r e r . h e a d i n g ( o d ) ; c o n t i n u e } c a s e " c o d e " : { e d + = t h i s . r e n d e r e r . c o d e ( o d ) ; c o n t i n u e } c a s e " t a b l e " : { e d + = t h i s . r e n d e r e r . t a b l e ( o d ) ; c o n t i n u e } c a s e " b l o c k q u o t e " : { e d + = t h i s . r e n d e r e r . b l o c k q u o t e ( o d ) ; c o n t i n u e } c a s e " l i s t " : { e d + = t h i s . r e n d e r e r . l i s t ( o d ) ; c o n t i n u e } c a s e " h t m l " : { e d + = t h i s . r e n d e r e r . h t m l ( o d ) ; c o n t i n u e } c a s e " p a r a g r a p h " : { e d + = t h i s . r e n d e r e r . p a r a g r a p h ( o d ) ; c o n t i n u e } c a s e " t e x t " : { l e t s d = o d , l d = t h i s . r e n d e r e r . t e x t ( s d ) ; f o r ( ; t d + 1 < q a . l e n g t h & & q a [ t d + 1 ] . t y p e = = = " t e x t " ; ) s d = q a [ + + t d ] , l d + = `
` +this.renderer.text(sd);Ja?ed+=this.renderer.paragraph({type:"paragraph",raw:ld,text:ld,tokens:[{type:"text",raw:ld,text:ld}]}):ed+=ld;continue}default:{const sd='Token with "'+od.type+'" type was not found.';if(this.options.silent)return console.error(sd),"";throw new Error(sd)}}}return ed}parseInline(qa,Ja){Ja=Ja||this.renderer;let ed="";for(let td=0;td<qa.length;td++){const rd=qa[td];if(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[rd.type]){const sd=this.options.extensions.renderers[rd.type].call({parser:this},rd);if(sd!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(rd.type)){ed+=sd||"";continue}}const od=rd;switch(od.type){case"escape":{ed+=Ja.text(od);break}case"html":{ed+=Ja.html(od);break}case"link":{ed+=Ja.link(od);break}case"image":{ed+=Ja.image(od);break}case"strong":{ed+=Ja.strong(od);break}case"em":{ed+=Ja.em(od);break}case"codespan":{ed+=Ja.codespan(od);break}case"br":{ed+=Ja.br(od);break}case"del":{ed+=Ja.del(od);break}case"text":{ed+=Ja.text(od);break}default:{const sd='Token with "'+od.type+'" type was not found.';if(this.options.silent)return console.error(sd),"";throw new Error(sd)}}}return ed}};var hS;let _Hooks $ 1=(hS=class{constructor(qa){e1(this,"options");e1(this,"block");this.options=qa||_defaults $ 1}preprocess(qa){return qa}postprocess(qa){return qa}processAllTokens(qa){return qa}provideLexer(){return this.block?_Lexer $ 1.lex:_Lexer $ 1.lexInline}provideParser(){return this.block?_Parser $ 1.parse:_Parser $ 1.parseInline}},e1(hS,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens"])),hS),Marked $ 1=class{constructor(...qa){e1(this,"defaults",_getDefaults $ 1());e1(this,"options",this.setOptions);e1(this,"parse",this.parseMarkdown(!0));e1(this,"parseInline",this.parseMarkdown(!1));e1(this,"Parser",_Parser $ 1);e1(this,"Renderer",_Renderer $ 1);e1(this,"TextRenderer",_TextRenderer $ 1);e1(this,"Lexer",_Lexer $ 1);e1(this,"Tokenizer",_Tokenizer $ 1);e1(this,"Hooks",_Hooks $ 1);this.use(...qa)}walkTokens(qa,Ja){var td,rd;let ed=[];for(const od of qa)switch(ed=ed.concat(Ja.call(this,od)),od.type){case"table":{const sd=od;for(const ld of sd.header)ed=ed.concat(this.walkTokens(ld.tokens,Ja));for(const ld of sd.rows)for(const cd of ld)ed=ed.concat(this.walkTokens(cd.tokens,Ja));break}case"list":{const sd=od;ed=ed.concat(this.walkTokens(sd.items,Ja));break}default:{const sd=od;(rd=(td=this.defaults.extensions)==null?void 0:td.childTokens)!=null&&rd[sd.type]?this.defaults.extensions.childTokens[sd.type].forEach(ld=>{const cd=sd[ld].flat(1/0);ed=ed.concat(this.walkTokens(cd,Ja))}):sd.tokens&&(ed=ed.concat(this.walkTokens(sd.tokens,Ja)))}}return ed}use(...qa){const Ja=this.defaults.extensions||{renderers:{},childTokens:{}};return qa.forEach(ed=>{const td={...ed};if(td.async=this.defaults.async||td.async||!1,ed.extensions&&(ed.extensions.forEach(rd=>{if(!rd.name)throw new Error("extension name required");if("renderer"in rd){const od=Ja.renderers[rd.name];od?Ja.renderers[rd.name]=function(...sd){let ld=rd.renderer.apply(this,sd);return ld===!1&&(ld=od.apply(this,sd)),ld}:Ja.renderers[rd.name]=rd.renderer}if("tokenizer"in rd){if(!rd.level||rd.level!=="block"&&rd.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");const od=Ja[rd.level];od?od.unshift(rd.tokenizer):Ja[rd.level]=[rd.tokenizer],rd.start&&(rd.level==="block"?Ja.startBlock?Ja.startBlock.push(rd.start):Ja.startBlock=[rd.start]:rd.level==="inline"&&(Ja.startInline?Ja.startInline.push(rd.start):Ja.startInline=[rd.start]))}"childTokens"in rd&&rd.childTokens&&(Ja.childTokens[rd.name]=rd.childTokens)}),td.extensions=Ja),ed.renderer){const rd=this.defaults.renderer||new _Renderer $ 1(this.defaults);for(const od in ed.renderer){if(!(od in rd))throw new Error( ` renderer '${od}' does not exist ` );if(["options","parser"].includes(od))continue;const sd=od,ld=ed.renderer[sd],cd=rd[sd];rd[sd]=(...ud)=>{let _d=ld.apply(rd,ud);return _d===!1&&(_d=cd.apply(rd,ud)),_d||""}}td.renderer=rd}if(ed.tokenizer){const rd=this.defaults.tokenizer||new _Tokenizer $ 1(
Please report this to https : //github.com/markedjs/marked.`,qa){const td="<p>An error occurred:</p><pre>"+escape$1$2(ed.message+"",!0)+"</pre>";return Ja?Promise.resolve(td):td}if(Ja)return Promise.reject(ed);throw ed}}};const markedInstance$1=new Marked$1;function marked$1(Ra,qa){return markedInstance$1.parse(Ra,qa)}marked$1.options=marked$1.setOptions=function(Ra){return markedInstance$1.setOptions(Ra),marked$1.defaults=markedInstance$1.defaults,changeDefaults$1(marked$1.defaults),marked$1};marked$1.getDefaults=_getDefaults$1;marked$1.defaults=_defaults$1;marked$1.use=function(...Ra){return markedInstance$1.use(...Ra),marked$1.defaults=markedInstance$1.defaults,changeDefaults$1(marked$1.defaults),marked$1};marked$1.walkTokens=function(Ra,qa){return markedInstance$1.walkTokens(Ra,qa)};marked$1.parseInline=markedInstance$1.parseInline;marked$1.Parser=_Parser$1;marked$1.parser=_Parser$1.parse;marked$1.Renderer=_Renderer$1;marked$1.TextRenderer=_TextRenderer$1;marked$1.Lexer=_Lexer$1;marked$1.lexer=_Lexer$1.lex;marked$1.Tokenizer=_Tokenizer$1;marked$1.Hooks=_Hooks$1;marked$1.parse=marked$1;marked$1.options;marked$1.setOptions;marked$1.use;marked$1.walkTokens;marked$1.parseInline;_Parser$1.parse;_Lexer$1.lex;var commonjsGlobal=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function getDefaultExportFromCjs(Ra){return Ra&&Ra.__esModule&&Object.prototype.hasOwnProperty.call(Ra,"default")?Ra.default:Ra}function getAugmentedNamespace(Ra){if(Ra.__esModule)return Ra;var qa=Ra.default;if(typeof qa=="function"){var Ja=function ed(){return this instanceof ed?Reflect.construct(qa,arguments,this.constructor):qa.apply(this,arguments)};Ja.prototype=qa.prototype}else Ja={};return Object.defineProperty(Ja,"__esModule",{value:!0}),Object.keys(Ra).forEach(function(ed){var td=Object.getOwnPropertyDescriptor(Ra,ed);Object.defineProperty(Ja,ed,td.get?td:{enumerable:!0,get:function(){return Ra[ed]}})}),Ja}var codemirror={exports:{}},hasRequiredCodemirror;function requireCodemirror(){return hasRequiredCodemirror||(hasRequiredCodemirror=1,function(Ra,qa){(function(Ja,ed){Ra.exports=ed()})(commonjsGlobal,function(){var Ja=navigator.userAgent,ed=navigator.platform,td=/gecko\/\d/i.test(Ja),rd=/MSIE \d/.test(Ja),od=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Ja),sd=/Edge\/(\d+)/.exec(Ja),ld=rd||od||sd,cd=ld&&(rd?document.documentMode||6:+(sd||od)[1]),ud=!sd&&/WebKit\//.test(Ja),_d=ud&&/Qt\/\d+\.\d+/.test(Ja),yd=!sd&&/Chrome\/(\d+)/.exec(Ja),gd=yd&&+yd[1],Ed=/Opera\//.test(Ja),Td=/Apple Computer/.test(navigator.vendor),Id=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(Ja),Ad=/PhantomJS/.test(Ja),Nd=Td&&(/Mobile\/\w+/.test(Ja)||navigator.maxTouchPoints>2),kd=/Android/.test(Ja),Rd=Nd||kd||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(Ja),Md=Nd||/Mac/.test(ed),Bd=/\bCrOS\b/.test(Ja),jd=/win/i.test(ed),Vd=Ed&&Ja.match(/Version\/(\d*\.\d*)/);Vd&&(Vd=Number(Vd[1])),Vd&&Vd>=15&&(Ed=!1,ud=!0);var Fd=Md&&(_d||Ed&&(Vd==null||Vd<12.11)),Ud=td||ld&&cd>=9;function qd(Od){return new RegExp("(^|\\s)"+Od+"(?:$|\\s)\\s*")}var Wd=function(Od,Ld){var Yd=Od.className,Kd=qd(Ld).exec(Yd);if(Kd){var pf=Yd.slice(Kd.index+Kd[0].length);Od.className=Yd.slice(0,Kd.index)+(pf?Kd[1]+pf:"")}};function Qd(Od){for(var Ld=Od.childNodes.length;Ld>0;--Ld)Od.removeChild(Od.firstChild);return Od}function Zd(Od,Ld){return Qd(Od).appendChild(Ld)}function Xd(Od,Ld,Yd,Kd){var pf=document.createElement(Od);if(Yd&&(pf.className=Yd),Kd&&(pf.style.cssText=Kd),typeof Ld=="string")pf.appendChild(document.createTextNode(Ld));else if(Ld)for(var kf=0;kf<Ld.length;++kf)pf.appendChild(Ld[kf]);return pf}function df(Od,Ld,Yd,Kd){var pf=Xd(Od,Ld,Yd,Kd);return pf.setAttribute("role","presentation"),pf}var hf;document.createRange?hf=function(Od,Ld,Yd,Kd){var pf=document.createRange();return pf.setEnd(Kd||Od,Yd),pf.setStart(Od,Ld),pf}:hf=function(Od,Ld,Yd){var Kd=document.body.createTextRange();try{Kd.moveToElementText(Od.parentNode)}catch{return Kd}return Kd.collapse(!0),Kd.moveEnd("character",Yd),Kd.moveStart("character",Ld),Kd};function gf(Od,Ld){
b ` .split(/ \n /).length!=3?function(Od){for(var Ld=0,Yd=[],Kd=Od.length;Ld<=Kd;){var pf=Od.indexOf( `
` ,Ld);pf==-1&&(pf=Od.length);var kf=Od.slice(Ld,Od.charAt(pf-1)==" \r "?pf-1:pf),Uf=kf.indexOf(" \r ");Uf!=-1?(Yd.push(kf.slice(0,Uf)),Ld+=Uf+1):(Yd.push(kf),Ld=pf+1)}return Yd}:function(Od){return Od.split(/ \r \n ?| \n /)},bh=window.getSelection?function(Od){try{return Od.selectionStart!=Od.selectionEnd}catch{return!1}}:function(Od){var Ld;try{Ld=Od.ownerDocument.selection.createRange()}catch{}return!Ld||Ld.parentElement()!=Od?!1:Ld.compareEndPoints("StartToEnd",Ld)!=0},dh=function(){var Od=Xd("div");return"oncopy"in Od?!0:(Od.setAttribute("oncopy","return;"),typeof Od.oncopy=="function")}(),Ch=null;function qh(Od){if(Ch!=null)return Ch;var Ld=Zd(Od,Xd("span","x")),Yd=Ld.getBoundingClientRect(),Kd=hf(Ld,0,1).getBoundingClientRect();return Ch=Math.abs(Yd.left-Kd.left)>1}var jh={},Gh={};function Hh(Od,Ld){arguments.length>2&&(Ld.dependencies=Array.prototype.slice.call(arguments,2)),jh[Od]=Ld}function Oh(Od,Ld){Gh[Od]=Ld}function Lh(Od){if(typeof Od=="string"&&Gh.hasOwnProperty(Od))Od=Gh[Od];else if(Od&&typeof Od.name=="string"&&Gh.hasOwnProperty(Od.name)){var Ld=Gh[Od.name];typeof Ld=="string"&&(Ld={name:Ld}),Od=Ah(Ld,Od),Od.name=Ld.name}else{if(typeof Od=="string"&&/^[ \w \- ]+ \/ [ \w \- ]+ \+ xml $ /.test(Od))return Lh("application/xml");if(typeof Od=="string"&&/^[ \w \- ]+ \/ [ \w \- ]+ \+ json $ /.test(Od))return Lh("application/json")}return typeof Od=="string"?{name:Od}:Od||{name:"null"}}function Qh(Od,Ld){Ld=Lh(Ld);var Yd=jh[Ld.name];if(!Yd)return Qh(Od,"text/plain");var Kd=Yd(Od,Ld);if(cm.hasOwnProperty(Ld.name)){var pf=cm[Ld.name];for(var kf in pf)pf.hasOwnProperty(kf)&&(Kd.hasOwnProperty(kf)&&(Kd["_"+kf]=Kd[kf]),Kd[kf]=pf[kf])}if(Kd.name=Ld.name,Ld.helperType&&(Kd.helperType=Ld.helperType),Ld.modeProps)for(var Uf in Ld.modeProps)Kd[Uf]=Ld.modeProps[Uf];return Kd}var cm={};function Gf(Od,Ld){var Yd=cm.hasOwnProperty(Od)?cm[Od]:cm[Od]={};yf(Ld,Yd)}function $ m(Od,Ld){if(Ld===!0)return Ld;if(Od.copyState)return Od.copyState(Ld);var Yd={};for(var Kd in Ld){var pf=Ld[Kd];pf instanceof Array&&(pf=pf.concat([])),Yd[Kd]=pf}return Yd}function c1(Od,Ld){for(var Yd;Od.innerMode&&(Yd=Od.innerMode(Ld),!(!Yd||Yd.mode==Od));)Ld=Yd.state,Od=Yd.mode;return Yd||{mode:Od,state:Ld}}function m1(Od,Ld,Yd){return Od.startState?Od.startState(Ld,Yd):!0}var o1=function(Od,Ld,Yd){this.pos=this.start=0,this.string=Od,this.tabSize=Ld||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=Yd};o1.prototype.eol=function(){return this.pos>=this.string.length},o1.prototype.sol=function(){return this.pos==this.lineStart},o1.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},o1.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},o1.prototype.eat=function(Od){var Ld=this.string.charAt(this.pos),Yd;if(typeof Od=="string"?Yd=Ld==Od:Yd=Ld&&(Od.test?Od.test(Ld):Od(Ld)),Yd)return++this.pos,Ld},o1.prototype.eatWhile=function(Od){for(var Ld=this.pos;this.eat(Od););return this.pos>Ld},o1.prototype.eatSpace=function(){for(var Od=this.pos;/[ \s \u 00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>Od},o1.prototype.skipToEnd=function(){this.pos=this.string.length},o1.prototype.skipTo=function(Od){var Ld=this.string.indexOf(Od,this.pos);if(Ld>-1)return this.pos=Ld,!0},o1.prototype.backUp=function(Od){this.pos-=Od},o1.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=Bf(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?Bf(this.string,this.lineStart,this.tabSize):0)},o1.prototype.indentation=function(){return Bf(this.string,null,this.tabSize)-(this.lineStart?Bf(this.string,this.lineStart,this.tabSize):0)},o1.prototype.match=function(Od,Ld,Yd){if(typeof Od=="string"){var Kd=function(Uf){return Yd?Uf.toLowerCase():Uf},pf=this.string.substr(this.pos,Od.length);if(Kd(pf)==Kd(Od))return Ld!==!1&&(this.pos+=Od.length),!0}else{var kf=this.string.slice(this.pos).match(Od);return kf&&kf.index>0?null:(kf&&Ld!==!1&&(this.pos+=kf[0].length),kf)}},o1.prototype.current=funct
` ?(Rm=Fh.appendChild(Xd("span",om[0]==" \r "?"␍":"","cm-invalidchar")),Rm.setAttribute("cm-text",om[0]),Od.col+=1):(Rm=Od.cm.options.specialCharPlaceholder(om[0]),Rm.setAttribute("cm-text",om[0]),ld&&cd<9?Fh.appendChild(Xd("span",[Rm])):Fh.appendChild(Rm),Od.col+=1);Od.map.push(Od.pos,Od.pos+1,Rm),Od.pos++}}if(Od.trailingSpace=Jf.charCodeAt(Ld.length-1)==32,Yd||Kd||pf||_h||kf||Uf){var Zm=Yd||"";Kd&&(Zm+=Kd),pf&&(Zm+=pf);var Ym=Xd("span",[Fh],Zm,kf);if(Uf)for(var r1 in Uf)Uf.hasOwnProperty(r1)&&r1!="style"&&r1!="class"&&Ym.setAttribute(r1,Uf[r1]);return Od.content.appendChild(Ym)}Od.content.appendChild(Fh)}}function Sv(Od,Ld){if(Od.length>1&&!/ /.test(Od))return Od;for(var Yd=Ld,Kd="",pf=0;pf<Od.length;pf++){var kf=Od.charAt(pf);kf==" "&&Yd&&(pf==Od.length-1||Od.charCodeAt(pf+1)==32)&&(kf=" "),Kd+=kf,Yd=kf==" "}return Kd}function s0(Od,Ld){return function(Yd,Kd,pf,kf,Uf,Jf,sh){pf=pf?pf+" cm-force-border":"cm-force-border";for(var _h=Yd.pos,Fh=_h+Kd.length;;){for(var zh=void 0,om=0;om<Ld.length&&(zh=Ld[om],!(zh.to>_h&&zh.from<=_h));om++);if(zh.to>=Fh)return Od(Yd,Kd,pf,kf,Uf,Jf,sh);Od(Yd,Kd.slice(0,zh.to-_h),pf,kf,null,Jf,sh),kf=null,Kd=Kd.slice(zh.to-_h),_h=zh.to}}}function D_(Od,Ld,Yd,Kd){var pf=!Kd&&Yd.widgetNode;pf&&Od.map.push(Od.pos,Od.pos+Ld,pf),!Kd&&Od.cm.display.input.needsContentAttribute&&(pf||(pf=Od.content.appendChild(document.createElement("span"))),pf.setAttribute("cm-marker",Yd.id)),pf&&(Od.cm.display.input.setUneditable(pf),Od.content.appendChild(pf)),Od.pos+=Ld,Od.trailingSpace=!1}function eb(Od,Ld,Yd){var Kd=Od.markedSpans,pf=Od.text,kf=0;if(!Kd){for(var Uf=1;Uf<Yd.length;Uf+=2)Ld.addToken(Ld,pf.slice(kf,kf=Yd[Uf]),T0(Yd[Uf+1],Ld.cm.options));return}for(var Jf=pf.length,sh=0,_h=1,Fh="",zh,om,im=0,Tm,Rm,zm,Xm,Zm;;){if(im==sh){Tm=Rm=zm=om="",Zm=null,Xm=null,im=1/0;for(var Ym=[],r1=void 0,d1=0;d1<Kd.length;++d1){var u1=Kd[d1], $ 1=u1.marker;if( $ 1.type=="bookmark"&&u1.from==sh&& $ 1.widgetNode)Ym.push( $ 1);else if(u1.from<=sh&&(u1.to==null||u1.to>sh|| $ 1.collapsed&&u1.to==sh&&u1.from==sh)){if(u1.to!=null&&u1.to!=sh&&im>u1.to&&(im=u1.to,Rm=""), $ 1.className&&(Tm+=" "+ $ 1.className), $ 1.css&&(om=(om?om+";":"")+ $ 1.css), $ 1.startStyle&&u1.from==sh&&(zm+=" "+ $ 1.startStyle), $ 1.endStyle&&u1.to==im&&(r1||(r1=[])).push( $ 1.endStyle,u1.to), $ 1.title&&((Zm||(Zm={})).title= $ 1.title), $ 1.attributes)for(var n0 in $ 1.attributes)(Zm||(Zm={}))[n0]= $ 1.attributes[n0]; $ 1.collapsed&&(!Xm||Sg(Xm.marker, $ 1)<0)&&(Xm=u1)}else u1.from>sh&&im>u1.from&&(im=u1.from)}if(r1)for(var y0=0;y0<r1.length;y0+=2)r1[y0+1]==im&&(Rm+=" "+r1[y0]);if(!Xm||Xm.from==sh)for(var l0=0;l0<Ym.length;++l0)D_(Ld,0,Ym[l0]);if(Xm&&(Xm.from||0)==sh){if(D_(Ld,(Xm.to==null?Jf+1:Xm.to)-sh,Xm.marker,Xm.from==null),Xm.to==null)return;Xm.to==sh&&(Xm=!1)}}if(sh>=Jf)break;for(var m0=Math.min(Jf,im);;){if(Fh){var C0=sh+Fh.length;if(!Xm){var x0=C0>m0?Fh.slice(0,m0-sh):Fh;Ld.addToken(Ld,x0,zh?zh+Tm:Tm,zm,sh+x0.length==im?Rm:"",om,Zm)}if(C0>=m0){Fh=Fh.slice(m0-sh),sh=m0;break}sh=C0,zm=""}Fh=pf.slice(kf,kf=Yd[_h++]),zh=T0(Yd[_h++],Ld.cm.options)}}}function Ab(Od,Ld,Yd){this.line=Ld,this.rest=A_(Ld),this.size=this.rest?hh(ph(this.rest))-Yd+1:1,this.node=this.text=null,this.hidden=c0(Od,Ld)}function Tg(Od,Ld,Yd){for(var Kd=[],pf,kf=Ld;kf<Yd;kf=pf){var Uf=new Ab(Od.doc,Mm(Od.doc,kf),kf);pf=kf+Uf.size,Kd.push(Uf)}return Kd}var b_=null;function Db(Od){b_?b_.ops.push(Od):Od.ownsGroup=b_={ops:[Od],delayedCallbacks:[]}}function $ y(Od){var Ld=Od.delayedCallbacks,Yd=0;do{for(;Yd<Ld.length;Yd++)Ld[Yd].call(null);for(var Kd=0;Kd<Od.ops.length;Kd++){var pf=Od.ops[Kd];if(pf.cursorActivityHandlers)for(;pf.cursorActivityCalled<pf.cursorActivityHandlers.length;)pf.cursorActivityHandlers[pf.cursorActivityCalled++].call(null,pf.cm)}}while(Yd<Ld.length)}function zd(Od,Ld){var Yd=Od.ownsGroup;if(Yd)try{ $ y(Yd)}finally{b_=null,Ld(Yd)}}var Pd=null;function Gd(Od,Ld){var Yd=um(Od,Ld);if(Yd.length){var Kd=Array.prototype.slice.call(arguments,2),pf;b_?pf=b_.delayedCallbacks:Pd?pf=Pd:(pf=Pd=[],setTimeout(mf,0));for(var kf=function(Jf){pf.push(function(){return Yd[Jf].apply(null,Kd)})},Uf=0;Uf<Yd.length;++Uf)k
top : ` +r1+"px; width: "+(d1??sh-Ym)+ ` px ;
height : ` +(u1-r1)+"px"))}function zh(Ym,r1,d1){var u1=Mm(pf,Ym), $ 1=u1.text.length,n0,y0;function l0(x0,Y0){return Dm(Od,hm(Ym,x0),"div",u1,Y0)}function m0(x0,Y0,V0){var $ 0=i0(Od,u1,null,x0),w0=Y0=="ltr"==(V0=="after")?"left":"right",_0=V0=="after"? $ 0.begin: $ 0.end-(/ \s /.test(u1.text.charAt( $ 0.end-1))?2:1);return l0(_0,w0)[w0]}var C0=Yh(u1,pf.direction);return Xf(C0,r1||0,d1?? $ 1,function(x0,Y0,V0, $ 0){var w0=V0=="ltr",_0=l0(x0,w0?"left":"right"),Z0=l0(Y0-1,w0?"right":"left"),Kv=r1==null&&x0==0,Pg=d1==null&&Y0== $ 1,G0= $ 0==0,tg=!C0|| $ 0==C0.length-1;if(Z0.top-_0.top<=3){var L0=(_h?Kv:Pg)&&G0,fE=(_h?Pg:Kv)&&tg,rg=L0?Jf:(w0?_0:Z0).left,Lg=fE?sh:(w0?Z0:_0).right;Fh(rg,_0.top,Lg-rg,_0.bottom)}else{var Fg,X0,Yv,hE;w0?(Fg=_h&&Kv&&G0?Jf:_0.left,X0=_h?sh:m0(x0,V0,"before"),Yv=_h?Jf:m0(Y0,V0,"after"),hE=_h&&Pg&&tg?sh:Z0.right):(Fg=_h?m0(x0,V0,"before"):Jf,X0=!_h&&Kv&&G0?sh:_0.right,Yv=!_h&&Pg&&tg?Jf:Z0.left,hE=_h?m0(Y0,V0,"after"):sh),Fh(Fg,_0.top,X0-Fg,_0.bottom),_0.bottom<Z0.top&&Fh(Jf,_0.bottom,null,Z0.top),Fh(Yv,Z0.top,hE-Yv,Z0.bottom)}(!n0||Jg(_0,n0)<0)&&(n0=_0),Jg(Z0,n0)<0&&(n0=Z0),(!y0||Jg(_0,y0)<0)&&(y0=_0),Jg(Z0,y0)<0&&(y0=Z0)}),{start:n0,end:y0}}var om=Ld.from(),im=Ld.to();if(om.line==im.line)zh(om.line,om.ch,im.ch);else{var Tm=Mm(pf,om.line),Rm=Mm(pf,im.line),zm=K1(Tm)==K1(Rm),Xm=zh(om.line,om.ch,zm?Tm.text.length+1:null).end,Zm=zh(im.line,zm?0:null,im.ch).start;zm&&(Xm.top<Zm.top-2?(Fh(Xm.right,Xm.top,null,Xm.bottom),Fh(Jf,Zm.top,Zm.left,Zm.bottom)):Fh(Xm.right,Xm.top,Zm.left-Xm.right,Xm.bottom)),Xm.bottom<Zm.top&&Fh(Jf,Xm.bottom,null,Zm.top)}Yd.appendChild(kf)}function Zg(Od){if(Od.state.focused){var Ld=Od.display;clearInterval(Ld.blinker);var Yd=!0;Ld.cursorDiv.style.visibility="",Od.options.cursorBlinkRate>0?Ld.blinker=setInterval(function(){Od.hasFocus()||Av(Od),Ld.cursorDiv.style.visibility=(Yd=!Yd)?"":"hidden"},Od.options.cursorBlinkRate):Od.options.cursorBlinkRate<0&&(Ld.cursorDiv.style.visibility="hidden")}}function wg(Od){Od.hasFocus()||(Od.display.input.focus(),Od.state.focused||Py(Od))}function Nv(Od){Od.state.delayingBlurEvent=!0,setTimeout(function(){Od.state.delayingBlurEvent&&(Od.state.delayingBlurEvent=!1,Od.state.focused&&Av(Od))},100)}function Py(Od,Ld){Od.state.delayingBlurEvent&&!Od.state.draggingText&&(Od.state.delayingBlurEvent=!1),Od.options.readOnly!="nocursor"&&(Od.state.focused||(_m(Od,"focus",Od,Ld),Od.state.focused=!0,wf(Od.display.wrapper,"CodeMirror-focused"),!Od.curOp&&Od.display.selForContextMenu!=Od.doc.sel&&(Od.display.input.reset(),ud&&setTimeout(function(){return Od.display.input.reset(!0)},20)),Od.display.input.receivedFocus()),Zg(Od))}function Av(Od,Ld){Od.state.delayingBlurEvent||(Od.state.focused&&(_m(Od,"blur",Od,Ld),Od.state.focused=!1,Wd(Od.display.wrapper,"CodeMirror-focused")),clearInterval(Od.display.blinker),setTimeout(function(){Od.state.focused||(Od.display.shift=!1)},150))}function Pb(Od){for(var Ld=Od.display,Yd=Ld.lineDiv.offsetTop,Kd=Math.max(0,Ld.scroller.getBoundingClientRect().top),pf=Ld.lineDiv.getBoundingClientRect().top,kf=0,Uf=0;Uf<Ld.view.length;Uf++){var Jf=Ld.view[Uf],sh=Od.options.lineWrapping,_h=void 0,Fh=0;if(!Jf.hidden){if(pf+=Jf.line.height,ld&&cd<8){var zh=Jf.node.offsetTop+Jf.node.offsetHeight;_h=zh-Yd,Yd=zh}else{var om=Jf.node.getBoundingClientRect();_h=om.bottom-om.top,!sh&&Jf.text.firstChild&&(Fh=Jf.text.firstChild.getBoundingClientRect().right-om.left-1)}var im=Jf.line.height-_h;if((im>.005||im<-.005)&&(pf<Kd&&(kf-=im),l1(Jf.line,_h),nb(Jf.line),Jf.rest))for(var Tm=0;Tm<Jf.rest.length;Tm++)nb(Jf.rest[Tm]);if(Fh>Od.display.sizerWidth){var Rm=Math.ceil(Fh/dg(Od.display));Rm>Od.display.maxLineLength&&(Od.display.maxLineLength=Rm,Od.display.maxLine=Jf.line,Od.display.maxLineChanged=!0)}}}Math.abs(kf)>2&&(Ld.scroller.scrollTop+=kf)}function nb(Od){if(Od.widgets)for(var Ld=0;Ld<Od.widgets.length;++Ld){var Yd=Od.widgets[Ld],Kd=Yd.node.parentNode;Kd&&(Yd.height=Kd.offsetHeight)}}function ev(Od,Ld,Yd){var Kd=Yd&&Yd.top!=null?Math.max(0,Yd.top):Od.scroller.scrollTop;Kd=Math.floor(Kd-O0(Od));var pf=Yd&&Yd.bottom!=null?Yd.bottom:Kd+Od
top : ` +(Ld.top-Yd.viewOffset-O0(Od.display))+ ` px ;
height : ` +(Ld.bottom-Ld.top+W_(Od)+Yd.barHeight)+ ` px ;
left : ` +Ld.left+"px; width: "+Math.max(2,Ld.right-Ld.left)+"px;");Od.display.lineSpace.appendChild(Uf),Uf.scrollIntoView(pf),Od.display.lineSpace.removeChild(Uf)}}}function x2(Od,Ld,Yd,Kd){Kd==null&&(Kd=0);var pf;!Od.options.lineWrapping&&Ld==Yd&&(Yd=Ld.sticky=="before"?hm(Ld.line,Ld.ch+1,"before"):Ld,Ld=Ld.ch?hm(Ld.line,Ld.sticky=="before"?Ld.ch-1:Ld.ch,"after"):Ld);for(var kf=0;kf<5;kf++){var Uf=!1,Jf=gm(Od,Ld),sh=!Yd||Yd==Ld?Jf:gm(Od,Yd);pf={left:Math.min(Jf.left,sh.left),top:Math.min(Jf.top,sh.top)-Kd,right:Math.max(Jf.left,sh.left),bottom:Math.max(Jf.bottom,sh.bottom)+Kd};var _h=Fy(Od,pf),Fh=Od.doc.scrollTop,zh=Od.doc.scrollLeft;if(_h.scrollTop!=null&&(ib(Od,_h.scrollTop),Math.abs(Od.doc.scrollTop-Fh)>1&&(Uf=!0)),_h.scrollLeft!=null&&(R_(Od,_h.scrollLeft),Math.abs(Od.doc.scrollLeft-zh)>1&&(Uf=!0)),!Uf)break}return pf}function NE(Od,Ld){var Yd=Fy(Od,Ld);Yd.scrollTop!=null&&ib(Od,Yd.scrollTop),Yd.scrollLeft!=null&&R_(Od,Yd.scrollLeft)}function Fy(Od,Ld){var Yd=Od.display,Kd= $ _(Od.display);Ld.top<0&&(Ld.top=0);var pf=Od.curOp&&Od.curOp.scrollTop!=null?Od.curOp.scrollTop:Yd.scroller.scrollTop,kf=Iy(Od),Uf={};Ld.bottom-Ld.top>kf&&(Ld.bottom=Ld.top+kf);var Jf=Od.doc.height+Kg(Yd),sh=Ld.top<Kd,_h=Ld.bottom>Jf-Kd;if(Ld.top<pf)Uf.scrollTop=sh?0:Ld.top;else if(Ld.bottom>pf+kf){var Fh=Math.min(Ld.top,(_h?Jf:Ld.bottom)-kf);Fh!=pf&&(Uf.scrollTop=Fh)}var zh=Od.options.fixedGutter?0:Yd.gutters.offsetWidth,om=Od.curOp&&Od.curOp.scrollLeft!=null?Od.curOp.scrollLeft:Yd.scroller.scrollLeft-zh,im=Yg(Od)-Yd.gutters.offsetWidth,Tm=Ld.right-Ld.left>im;return Tm&&(Ld.right=Ld.left+im),Ld.left<10?Uf.scrollLeft=0:Ld.left<om?Uf.scrollLeft=Math.max(0,Ld.left+zh-(Tm?0:10)):Ld.right>im+om-3&&(Uf.scrollLeft=Ld.right+(Tm?0:10)-im),Uf}function jy(Od,Ld){Ld!=null&&(Lb(Od),Od.curOp.scrollTop=(Od.curOp.scrollTop==null?Od.doc.scrollTop:Od.curOp.scrollTop)+Ld)}function u0(Od){Lb(Od);var Ld=Od.getCursor();Od.curOp.scrollToPos={from:Ld,to:Ld,margin:Od.options.cursorScrollMargin}}function k0(Od,Ld,Yd){(Ld!=null||Yd!=null)&&Lb(Od),Ld!=null&&(Od.curOp.scrollLeft=Ld),Yd!=null&&(Od.curOp.scrollTop=Yd)}function w2(Od,Ld){Lb(Od),Od.curOp.scrollToPos=Ld}function Lb(Od){var Ld=Od.curOp.scrollToPos;if(Ld){Od.curOp.scrollToPos=null;var Yd=a1(Od,Ld.from),Kd=a1(Od,Ld.to);Uy(Od,Yd,Kd,Ld.margin)}}function Uy(Od,Ld,Yd,Kd){var pf=Fy(Od,{left:Math.min(Ld.left,Yd.left),top:Math.min(Ld.top,Yd.top)-Kd,right:Math.max(Ld.right,Yd.right),bottom:Math.max(Ld.bottom,Yd.bottom)+Kd});k0(Od,pf.scrollLeft,pf.scrollTop)}function ib(Od,Ld){Math.abs(Od.doc.scrollTop-Ld)<2||(td||M_(Od,{top:Ld}),Fb(Od,Ld,!0),td&&M_(Od),sb(Od,100))}function Fb(Od,Ld,Yd){Ld=Math.max(0,Math.min(Od.display.scroller.scrollHeight-Od.display.scroller.clientHeight,Ld)),!(Od.display.scroller.scrollTop==Ld&&!Yd)&&(Od.doc.scrollTop=Ld,Od.display.scrollbars.setScrollTop(Ld),Od.display.scroller.scrollTop!=Ld&&(Od.display.scroller.scrollTop=Ld))}function R_(Od,Ld,Yd,Kd){Ld=Math.max(0,Math.min(Ld,Od.display.scroller.scrollWidth-Od.display.scroller.clientWidth)),!((Yd?Ld==Od.doc.scrollLeft:Math.abs(Od.doc.scrollLeft-Ld)<2)&&!Kd)&&(Od.doc.scrollLeft=Ld, $ E(Od),Od.display.scroller.scrollLeft!=Ld&&(Od.display.scroller.scrollLeft=Ld),Od.display.scrollbars.setScrollLeft(Ld))}function tv(Od){var Ld=Od.display,Yd=Ld.gutters.offsetWidth,Kd=Math.round(Od.doc.height+Kg(Od.display));return{clientHeight:Ld.scroller.clientHeight,viewHeight:Ld.wrapper.clientHeight,scrollWidth:Ld.scroller.scrollWidth,clientWidth:Ld.scroller.clientWidth,viewWidth:Ld.wrapper.clientWidth,barLeft:Od.options.fixedGutter?Yd:0,docHeight:Kd,scrollHeight:Kd+W_(Od)+Ld.barHeight,nativeBarWidth:Ld.nativeBarWidth,gutterWidth:Yd}}var E_=function(Od,Ld,Yd){this.cm=Yd;var Kd=this.vert=Xd("div",[Xd("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),pf=this.horiz=Xd("div",[Xd("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");Kd.tabIndex=pf.tabIndex=-1,Od(Kd),Od(pf),kh(Kd,"scroll",function(){Kd.clientHeight&&Ld(Kd.scrollTop,"vertical")}),kh(pf,"scroll",function(){pf.clientWidth&&Ld(pf.scrollLeft,"horizontal")}),thi
` },setDirection:R0(function(Od){Od!="rtl"&&(Od="ltr"),Od!=this.direction&&(this.direction=Od,this.iter(function(Ld){return Ld.order=null}),this.cm&&hg(this.cm))})}),K0.prototype.eachLine=K0.prototype.iter;var Wb=0;function j2(Od){var Ld=this;if(QE(Ld),!(jm(Ld,Od)||Y1(Ld.display,Od))){Qm(Od),ld&&(Wb=+new Date);var Yd=K_(Ld,Od,!0),Kd=Od.dataTransfer.files;if(!(!Yd||Ld.isReadOnly()))if(Kd&&Kd.length&&window.FileReader&&window.File)for(var pf=Kd.length,kf=Array(pf),Uf=0,Jf=function(){++Uf==pf&&t0(Ld,function(){Yd=g1(Ld.doc,Yd);var im={from:Yd,to:Yd,text:Ld.doc.splitLines(kf.filter(function(Tm){return Tm!=null}).join(Ld.doc.lineSeparator())),origin:"paste"};Pv(Ld.doc,im), $ g(Ld.doc,Ag(g1(Ld.doc,Yd),g1(Ld.doc,Dg(im))))})()},sh=function(im,Tm){if(Ld.options.allowDropFileTypes&&Yf(Ld.options.allowDropFileTypes,im.type)==-1){Jf();return}var Rm=new FileReader;Rm.onerror=function(){return Jf()},Rm.onload=function(){var zm=Rm.result;if(/[ \x 00- \x 08 \x 0e- \x 1f]{2}/.test(zm)){Jf();return}kf[Tm]=zm,Jf()},Rm.readAsText(im)},_h=0;_h<Kd.length;_h++)sh(Kd[_h],_h);else{if(Ld.state.draggingText&&Ld.doc.sel.contains(Yd)>-1){Ld.state.draggingText(Od),setTimeout(function(){return Ld.display.input.focus()},20);return}try{var Fh=Od.dataTransfer.getData("Text");if(Fh){var zh;if(Ld.state.draggingText&&!Ld.state.draggingText.copy&&(zh=Ld.listSelections()),H0(Ld.doc,Ag(Yd,Yd)),zh)for(var om=0;om<zh.length;++om)sv(Ld.doc,"",zh[om].anchor,zh[om].head,"drag");Ld.replaceSelection(Fh,"around","paste"),Ld.display.input.focus()}}catch{}}}}function rE(Od,Ld){if(ld&&(!Od.state.draggingText||+new Date-Wb<100)){H1(Ld);return}if(!(jm(Od,Ld)||Y1(Od.display,Ld))&&(Ld.dataTransfer.setData("Text",Od.getSelection()),Ld.dataTransfer.effectAllowed="copyMove",Ld.dataTransfer.setDragImage&&!Td)){var Yd=Xd("img",null,null,"position: fixed; left: 0; top: 0;");Yd.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",Ed&&(Yd.width=Yd.height=1,Od.display.wrapper.appendChild(Yd),Yd._top=Yd.offsetTop),Ld.dataTransfer.setDragImage(Yd,0,0),Ed&&Yd.parentNode.removeChild(Yd)}}function B1(Od,Ld){var Yd=K_(Od,Ld);if(Yd){var Kd=document.createDocumentFragment();Bb(Od,Yd,Kd),Od.display.dragCursor||(Od.display.dragCursor=Xd("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),Od.display.lineSpace.insertBefore(Od.display.dragCursor,Od.display.cursorDiv)),Zd(Od.display.dragCursor,Kd)}}function QE(Od){Od.display.dragCursor&&(Od.display.lineSpace.removeChild(Od.display.dragCursor),Od.display.dragCursor=null)}function JE(Od){if(document.getElementsByClassName){for(var Ld=document.getElementsByClassName("CodeMirror"),Yd=[],Kd=0;Kd<Ld.length;Kd++){var pf=Ld[Kd].CodeMirror;pf&&Yd.push(pf)}Yd.length&&Yd[0].operation(function(){for(var kf=0;kf<Yd.length;kf++)Od(Yd[kf])})}}var Uv=!1;function ZE(){Uv||(U2(),Uv=!0)}function U2(){var Od;kh(window,"resize",function(){Od==null&&(Od=setTimeout(function(){Od=null,JE(q2)},100))}),kh(window,"blur",function(){return JE(Av)})}function q2(Od){var Ld=Od.display;Ld.cachedCharWidth=Ld.cachedTextHeight=Ld.cachedPaddingH=null,Ld.scrollbarsClipped=!1,Od.setSize()}for(var B0={3:"Pause",8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"CapsLock",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"PrintScrn",45:"Insert",46:"Delete",59:";",61:"=",91:"Mod",92:"Mod",93:"Mod",106:"*",107:"=",109:"-",110:".",111:"/",145:"ScrollLock",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:" ` ",219:" [ ",220:" \ \ ",221:" ] ",222:" ' ",224:" Mod ",63232:" Up ",63233:" Down ",63234:" Left ",63235:" Right ",63272:" Delete ",63273:" Home ",63275:" End ",63276:" PageUp ",63277:" PageDown ",63302:" Insert "},pb=0;pb<10;pb++)B0[pb+48]=B0[pb+96]=String(pb);for(var uv=65;uv<=90;uv++)B0[uv]=String.fromCharCode(uv);for(var dv=1;dv<=12;dv++)B0[dv+111]=B0[dv+63235]=" F "+dv;var Q_={};Q_.basic={Left:" goCharLeft ",Right:" goCharRight ",Up:" goLineUp ",Down:" goLineDown ",End:" goLineEnd ",Home:" goLineStartSmart ",PageUp:" goPageUp ",PageDown:" goPageDown ",Delete:" delCharAfter ",Backspace:" delCharBefore "," Shift - Backspace ":"
` ,"start")},toggleOverwrite:function(Od){return Od.toggleOverwrite()}};function _g(Od,Ld){var Yd=Mm(Od.doc,Ld),Kd=K1(Yd);return Kd!=Yd&&(Ld=hh(Kd)),_b(!0,Od,Kd,Ld,1)}function t2(Od,Ld){var Yd=Mm(Od.doc,Ld),Kd=zg(Yd);return Kd!=Yd&&(Ld=hh(Kd)),_b(!0,Od,Yd,Ld,-1)}function iE(Od,Ld){var Yd=_g(Od,Ld.line),Kd=Mm(Od.doc,Yd.line),pf=Yh(Kd,Od.doc.direction);if(!pf||pf[0].level==0){var kf=Math.max(Yd.ch,Kd.text.search(/ \S /)),Uf=Ld.line==Yd.line&&Ld.ch<=kf&&Ld.ch;return hm(Yd.line,Uf?0:kf,Yd.sticky)}return Yd}function qv(Od,Ld,Yd){if(typeof Ld=="string"&&(Ld=gb[Ld],!Ld))return!1;Od.display.input.ensurePolled();var Kd=Od.display.shift,pf=!1;try{Od.isReadOnly()&&(Od.state.suppressEdits=!0),Yd&&(Od.display.shift=!1),pf=Ld(Od)!=Of}finally{Od.display.shift=Kd,Od.state.suppressEdits=!1}return pf}function H2(Od,Ld,Yd){for(var Kd=0;Kd<Od.state.keyMaps.length;Kd++){var pf=f_(Ld,Od.state.keyMaps[Kd],Yd,Od);if(pf)return pf}return Od.options.extraKeys&&f_(Ld,Od.options.extraKeys,Yd,Od)||f_(Ld,Od.options.keyMap,Yd,Od)}var V2=new zf;function vb(Od,Ld,Yd,Kd){var pf=Od.state.keySeq;if(pf){if(Kb(Ld))return"handled";if(/ \' $ /.test(Ld)?Od.state.keySeq=null:V2.set(50,function(){Od.state.keySeq==pf&&(Od.state.keySeq=null,Od.display.input.reset())}),aE(Od,pf+" "+Ld,Yd,Kd))return!0}return aE(Od,Ld,Yd,Kd)}function aE(Od,Ld,Yd,Kd){var pf=H2(Od,Ld,Kd);return pf=="multi"&&(Od.state.keySeq=Ld),pf=="handled"&&Gd(Od,"keyHandled",Od,Ld,Yd),(pf=="handled"||pf=="multi")&&(Qm(Yd),Zg(Od)),!!pf}function oE(Od,Ld){var Yd=fb(Ld,!0);return Yd?Ld.shiftKey&&!Od.state.keySeq?vb(Od,"Shift-"+Yd,Ld,function(Kd){return qv(Od,Kd,!0)})||vb(Od,Yd,Ld,function(Kd){if(typeof Kd=="string"?/^go[A-Z]/.test(Kd):Kd.motion)return qv(Od,Kd)}):vb(Od,Yd,Ld,function(Kd){return qv(Od,Kd)}):!1}function z2(Od,Ld,Yd){return vb(Od,"'"+Yd+"'",Ld,function(Kd){return qv(Od,Kd,!0)})}var Xb=null;function sE(Od){var Ld=this;if(!(Od.target&&Od.target!=Ld.display.input.getField())&&(Ld.curOp.focus=Ef(Sf(Ld)),!jm(Ld,Od))){ld&&cd<11&&Od.keyCode==27&&(Od.returnValue=!1);var Yd=Od.keyCode;Ld.display.shift=Yd==16||Od.shiftKey;var Kd=oE(Ld,Od);Ed&&(Xb=Kd?Yd:null,!Kd&&Yd==88&&!dh&&(Md?Od.metaKey:Od.ctrlKey)&&Ld.replaceSelection("",null,"cut")),td&&!Md&&!Kd&&Yd==46&&Od.shiftKey&&!Od.ctrlKey&&document.execCommand&&document.execCommand("cut"),Yd==18&&!/ \b CodeMirror-crosshair \b /.test(Ld.display.lineDiv.className)&&a_(Ld)}}function a_(Od){var Ld=Od.display.lineDiv;wf(Ld,"CodeMirror-crosshair");function Yd(Kd){(Kd.keyCode==18||!Kd.altKey)&&(Wd(Ld,"CodeMirror-crosshair"),Sm(document,"keyup",Yd),Sm(document,"mouseover",Yd))}kh(document,"keyup",Yd),kh(document,"mouseover",Yd)}function j_(Od){Od.keyCode==16&&(this.doc.sel.shift=!1),jm(this,Od)}function r2(Od){var Ld=this;if(!(Od.target&&Od.target!=Ld.display.input.getField())&&!(Y1(Ld.display,Od)||jm(Ld,Od)||Od.ctrlKey&&!Od.altKey||Md&&Od.metaKey)){var Yd=Od.keyCode,Kd=Od.charCode;if(Ed&&Yd==Xb){Xb=null,Qm(Od);return}if(!(Ed&&(!Od.which||Od.which<10)&&oE(Ld,Od))){var pf=String.fromCharCode(Kd??Yd);pf!=" \b "&&(z2(Ld,Od,pf)||Ld.display.input.onKeyPress(Od))}}}var G2=400,Hv=function(Od,Ld,Yd){this.time=Od,this.pos=Ld,this.button=Yd};Hv.prototype.compare=function(Od,Ld,Yd){return this.time+G2>Od&&Wm(Ld,this.pos)==0&&Yd==this.button};var J_,Vv;function n2(Od,Ld){var Yd=+new Date;return Vv&&Vv.compare(Yd,Od,Ld)?(J_=Vv=null,"triple"):J_&&J_.compare(Yd,Od,Ld)?(Vv=new Hv(Yd,Od,Ld),J_=null,"double"):(J_=new Hv(Yd,Od,Ld),Vv=null,"single")}function i2(Od){var Ld=this,Yd=Ld.display;if(!(jm(Ld,Od)||Yd.activeTouch&&Yd.input.supportsTouch())){if(Yd.input.ensurePolled(),Yd.shift=Od.shiftKey,Y1(Yd,Od)){ud||(Yd.scroller.draggable=!1,setTimeout(function(){return Yd.scroller.draggable=!0},100));return}if(!Gv(Ld,Od)){var Kd=K_(Ld,Od),pf=k1(Od),kf=Kd?n2(Kd,pf):"single";Pf(Ld).focus(),pf==1&&Ld.state.selectingText&&Ld.state.selectingText(Od),!(Kd&&a2(Ld,pf,Kd,kf,Od))&&(pf==1?Kd?bb(Ld,Kd,kf,Od):U1(Od)==Yd.scroller&&Qm(Od):pf==2?(Kd&&Ov(Ld.doc,Kd),setTimeout(function(){return Yd.input.focus()},20)):pf==3&&(Ud?Ld.display.input.onContextMenu(Od):Nv(Ld)))}}}function a2(Od,Ld,Yd,Kd,pf){var kf="Click";
` )==Ld){if(Kd.ranges.length%T_.text.length==0){_h=[];for(var Fh=0;Fh<T_.text.length;Fh++)_h.push(kf.splitLines(T_.text[Fh]))}}else sh.length==Kd.ranges.length&&Od.options.pasteLinesPerSelection&&(_h=Dh(sh,function(Xm){return[Xm]}));for(var zh=Od.curOp.updateInput,om=Kd.ranges.length-1;om>=0;om--){var im=Kd.ranges[om],Tm=im.from(),Rm=im.to();im.empty()&&(Yd&&Yd>0?Tm=hm(Tm.line,Tm.ch-Yd):Od.state.overwrite&&!Jf?Rm=hm(Rm.line,Math.min(Mm(kf,Rm.line).text.length,Rm.ch+ph(sh).length)):Jf&&T_&&T_.lineWise&&T_.text.join( `
` )==sh.join( `
` )&&(Tm=Rm=hm(Tm.line,0)));var zm={from:Tm,to:Rm,text:_h?_h[om%_h.length]:sh,origin:pf||(Jf?"paste":Od.state.cutIncoming>Uf?"cut":"+input")};Pv(Od.doc,zm),Gd(Od,"inputRead",Od,zm)}Ld&&!Jf&&ry(Od,Ld),u0(Od),Od.curOp.updateInput<2&&(Od.curOp.updateInput=zh),Od.curOp.typing=!0,Od.state.pasteIncoming=Od.state.cutIncoming=-1}function Z_(Od,Ld){var Yd=Od.clipboardData&&Od.clipboardData.getData("Text");if(Yd)return Od.preventDefault(),!Ld.isReadOnly()&&!Ld.options.disableInput&&Ld.hasFocus()&&z0(Ld,function(){return pE(Ld,Yd,0,null,"paste")}),!0}function ry(Od,Ld){if(!(!Od.options.electricChars||!Od.options.smartIndent))for(var Yd=Od.doc.sel,Kd=Yd.ranges.length-1;Kd>=0;Kd--){var pf=Yd.ranges[Kd];if(!(pf.head.ch>100||Kd&&Yd.ranges[Kd-1].head.line==pf.head.line)){var kf=Od.getModeAt(pf.head),Uf=!1;if(kf.electricChars){for(var Jf=0;Jf<kf.electricChars.length;Jf++)if(Ld.indexOf(kf.electricChars.charAt(Jf))>-1){Uf=Sb(Od,pf.head.line,"smart");break}}else kf.electricInput&&kf.electricInput.test(Mm(Od.doc,pf.head.line).text.slice(0,pf.head.ch))&&(Uf=Sb(Od,pf.head.line,"smart"));Uf&&Gd(Od,"electricInput",Od,pf.head.line)}}}function ny(Od){for(var Ld=[],Yd=[],Kd=0;Kd<Od.doc.sel.ranges.length;Kd++){var pf=Od.doc.sel.ranges[Kd].head.line,kf={anchor:hm(pf,0),head:hm(pf+1,0)};Yd.push(kf),Ld.push(Od.getRange(kf.anchor,kf.head))}return{text:Ld,ranges:Yd}}function Tb(Od,Ld,Yd,Kd){Od.setAttribute("autocorrect",Yd?"on":"off"),Od.setAttribute("autocapitalize",Kd?"on":"off"),Od.setAttribute("spellcheck",!!Ld)}function Cb(){var Od=Xd("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; min-height: 1em; outline: none"),Ld=Xd("div",[Od],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return ud?Od.style.width="1000px":Od.setAttribute("wrap","off"),Nd&&(Od.style.border="1px solid black"),Ld}function Wv(Od){var Ld=Od.optionHandlers,Yd=Od.helpers={};Od.prototype={constructor:Od,focus:function(){Pf(this).focus(),this.display.input.focus()},setOption:function(Kd,pf){var kf=this.options,Uf=kf[Kd];kf[Kd]==pf&&Kd!="mode"||(kf[Kd]=pf,Ld.hasOwnProperty(Kd)&&t0(this,Ld[Kd])(this,pf,Uf),_m(this,"optionChange",this,Kd))},getOption:function(Kd){return this.options[Kd]},getDoc:function(){return this.doc},addKeyMap:function(Kd,pf){this.state.keyMaps[pf?"push":"unshift"](hb(Kd))},removeKeyMap:function(Kd){for(var pf=this.state.keyMaps,kf=0;kf<pf.length;++kf)if(pf[kf]==Kd||pf[kf].name==Kd)return pf.splice(kf,1),!0},addOverlay:E1(function(Kd,pf){var kf=Kd.token?Kd:Od.getMode(this.options,Kd);if(kf.startState)throw new Error("Overlays may not be stateful.");uh(this.state.overlays,{mode:kf,modeSpec:Kd,opaque:pf&&pf.opaque,priority:pf&&pf.priority||0},function(Uf){return Uf.priority}),this.state.modeGen++,J0(this)}),removeOverlay:E1(function(Kd){for(var pf=this.state.overlays,kf=0;kf<pf.length;++kf){var Uf=pf[kf].modeSpec;if(Uf==Kd||typeof Kd=="string"&&Uf.name==Kd){pf.splice(kf,1),this.state.modeGen++,J0(this);return}}}),indentLine:E1(function(Kd,pf,kf){typeof pf!="string"&&typeof pf!="number"&&(pf==null?pf=this.options.smartIndent?"smart":"prev":pf=pf?"add":"subtract"),Nm(this.doc,Kd)&&Sb(this,Kd,pf,kf)}),indentSelection:E1(function(Kd){for(var pf=this.doc.sel.ranges,kf=-1,Uf=0;Uf<pf.length;Uf++){var Jf=pf[Uf];if(Jf.empty())Jf.head.line>kf&&(Sb(this,Jf.head.line,Kd,!0),kf=Jf.head.line,Uf==this.doc.sel.primIndex&&u0(this));else{var sh=Jf.from(),_h=Jf.to(),Fh=Math.max(kf,sh.line);kf=Math.min(this.lastLine(),_h.line-(_h.ch?0:1))+1;for(var zh=Fh;zh<kf;++zh)Sb(this,zh,Kd);var om=this.doc.sel.ranges;sh.ch==0&&pf.length==om.length&&om[Uf].from().ch>0&&S_(this.doc,Uf,new X1(sh,om[Uf].to()),Zf)}}}),getTokenAt:function(Kd,pf){return __(this,Kd,pf)},getLineTokens:function(Kd,pf){return __(this,hm(Kd),pf,!0)},getTokenTypeAt:function(Kd){Kd=g1(this.doc,Kd);var pf=m_(this,Mm(this.doc,Kd.line)),kf=0,Uf=(pf.length-1)/2,Jf=Kd.ch,sh;if(Jf==0)sh=pf[2];else for(;;){var _h=kf+Uf>>1;if((_h?pf[_h*2-1]:0)>=Jf)Uf=_h;else if(pf[_h*2+1]<Jf)kf=_h+1;else{sh=pf[_h*2+2];break}}var Fh=sh?sh.indexOf("overlay "):-1;return Fh<0?sh:Fh==0?null:s
` ,zm=Wh(Rm,im)?"w":om&&Rm== `
` ?"n":!om||/ \s /.test(Rm)?null:"p";if(om&&!Tm&&!zm&&(zm="s"),zh&&zh!=zm){Yd<0&&(Yd=1,Fh(),Ld.sticky="after");break}if(zm&&(zh=zm),Yd>0&&!Fh(!Tm))break}var Xm=Mv(Od,Ld,kf,Uf,!0);return C1(kf,Xm)&&(Xm.hitSide=!0),Xm}function xb(Od,Ld,Yd,Kd){var pf=Od.doc,kf=Ld.left,Uf;if(Kd=="page"){var Jf=Math.min(Od.display.wrapper.clientHeight,Pf(Od).innerHeight||pf(Od).documentElement.clientHeight),sh=Math.max(Jf-.5* $ _(Od.display),3);Uf=(Yd>0?Ld.bottom:Ld.top)+Yd*sh}else Kd=="line"&&(Uf=Yd>0?Ld.bottom+3:Ld.top-3);for(var _h;_h=z1(Od,kf,Uf),!!_h.outside;){if(Yd<0?Uf<=0:Uf>=pf.height){_h.hitSide=!0;break}Uf+=Yd*5}return _h}var Q1=function(Od){this.cm=Od,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new zf,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};Q1.prototype.init=function(Od){var Ld=this,Yd=this,Kd=Yd.cm,pf=Yd.div=Od.lineDiv;pf.contentEditable=!0,Tb(pf,Kd.options.spellcheck,Kd.options.autocorrect,Kd.options.autocapitalize);function kf(Jf){for(var sh=Jf.target;sh;sh=sh.parentNode){if(sh==pf)return!0;if(/ \b CodeMirror-(?:line)?widget \b /.test(sh.className))break}return!1}kh(pf,"paste",function(Jf){!kf(Jf)||jm(Kd,Jf)||Z_(Jf,Kd)||cd<=11&&setTimeout(t0(Kd,function(){return Ld.updateFromDOM()}),20)}),kh(pf,"compositionstart",function(Jf){Ld.composing={data:Jf.data,done:!1}}),kh(pf,"compositionupdate",function(Jf){Ld.composing||(Ld.composing={data:Jf.data,done:!1})}),kh(pf,"compositionend",function(Jf){Ld.composing&&(Jf.data!=Ld.composing.data&&Ld.readFromDOMSoon(),Ld.composing.done=!0)}),kh(pf,"touchstart",function(){return Yd.forceCompositionEnd()}),kh(pf,"input",function(){Ld.composing||Ld.readFromDOMSoon()});function Uf(Jf){if(!(!kf(Jf)||jm(Kd,Jf))){if(Kd.somethingSelected())ty({lineWise:!1,text:Kd.getSelections()}),Jf.type=="cut"&&Kd.replaceSelection("",null,"cut");else if(Kd.options.lineWiseCopyCut){var sh=ny(Kd);ty({lineWise:!0,text:sh.text}),Jf.type=="cut"&&Kd.operation(function(){Kd.setSelections(sh.ranges,0,Zf),Kd.replaceSelection("",null,"cut")})}else return;if(Jf.clipboardData){Jf.clipboardData.clearData();var _h=T_.text.join( `
` );if(Jf.clipboardData.setData("Text",_h),Jf.clipboardData.getData("Text")==_h){Jf.preventDefault();return}}var Fh=Cb(),zh=Fh.firstChild;Tb(zh),Kd.display.lineSpace.insertBefore(Fh,Kd.display.lineSpace.firstChild),zh.value=T_.text.join( `
` );var om=Ef(Lf(pf));Tf(zh),setTimeout(function(){Kd.display.lineSpace.removeChild(Fh),om.focus(),om==pf&&Yd.showPrimarySelection()},50)}}kh(pf,"copy",Uf),kh(pf,"cut",Uf)},Q1.prototype.screenReaderLabelChanged=function(Od){Od?this.div.setAttribute("aria-label",Od):this.div.removeAttribute("aria-label")},Q1.prototype.prepareSelection=function(){var Od=By(this.cm,!1);return Od.focus=Ef(Lf(this.div))==this.div,Od},Q1.prototype.showSelection=function(Od,Ld){!Od||!this.cm.display.view.length||((Od.focus||Ld)&&this.showPrimarySelection(),this.showMultipleSelections(Od))},Q1.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},Q1.prototype.showPrimarySelection=function(){var Od=this.getSelection(),Ld=this.cm,Yd=Ld.doc.sel.primary(),Kd=Yd.from(),pf=Yd.to();if(Ld.display.viewTo==Ld.display.viewFrom||Kd.line>=Ld.display.viewTo||pf.line<Ld.display.viewFrom){Od.removeAllRanges();return}var kf=P0(Ld,Od.anchorNode,Od.anchorOffset),Uf=P0(Ld,Od.focusNode,Od.focusOffset);if(!(kf&&!kf.bad&&Uf&&!Uf.bad&&Wm(A0(kf,Uf),Kd)==0&&Wm(V1(kf,Uf),pf)==0)){var Jf=Ld.display.view,sh=Kd.line>=Ld.display.viewFrom&&Mg(Ld,Kd)||{node:Jf[0].measure.map[2],offset:0},_h=pf.line<Ld.display.viewTo&&Mg(Ld,pf);if(!_h){var Fh=Jf[Jf.length-1].measure,zh=Fh.maps?Fh.maps[Fh.maps.length-1]:Fh.map;_h={node:zh[zh.length-1],offset:zh[zh.length-2]-zh[zh.length-3]}}if(!sh||!_h){Od.removeAllRanges();return}var om=Od.rangeCount&&Od.getRangeAt(0),im;try{im=hf(sh.node,sh.offset,_h.offset,_h.node)}catch{}im&&(!td&&Ld.state.focused?(Od.collapse(sh.node,sh.offset),im.collapsed||(Od.removeAllRanges(),Od.addRange(im))):(Od.removeAllRanges(),Od.addRange(im)),om&&Od.anchorNode==null?Od.addRange(om):td&&this.startGracePeriod()),this.rememberSelection()}},Q1.prototype.startGracePeriod=function(){var Od=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){Od.gracePeriod=!1,Od.selectionChanged()&&Od.cm.operation(function(){return Od.cm.curOp.selectionChanged=!0})},20)},Q1.prototype.showMultipleSelections=function(Od){Zd(this.cm.display.cursorDiv,Od.cursors),Zd(this.cm.display.selectionDiv,Od.selection)},Q1.prototype.rememberSelection=function(){var Od=this.getSelection();this.lastAnchorNode=Od.anchorNode,this.lastAnchorOffset=Od.anchorOffset,this.lastFocusNode=Od.focusNode,this.lastFocusOffset=Od.focusOffset},Q1.prototype.selectionInEditor=function(){var Od=this.getSelection();if(!Od.rangeCount)return!1;var Ld=Od.getRangeAt(0).commonAncestorContainer;return gf(this.div,Ld)},Q1.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||Ef(Lf(this.div))!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},Q1.prototype.blur=function(){this.div.blur()},Q1.prototype.getField=function(){return this.div},Q1.prototype.supportsTouch=function(){return!0},Q1.prototype.receivedFocus=function(){var Od=this,Ld=this;this.selectionInEditor()?setTimeout(function(){return Od.pollSelection()},20):z0(this.cm,function(){return Ld.cm.curOp.selectionChanged=!0});function Yd(){Ld.cm.state.focused&&(Ld.pollSelection(),Ld.polling.set(Ld.cm.options.pollInterval,Yd))}this.polling.set(this.cm.options.pollInterval,Yd)},Q1.prototype.selectionChanged=function(){var Od=this.getSelection();return Od.anchorNode!=this.lastAnchorNode||Od.anchorOffset!=this.lastAnchorOffset||Od.focusNode!=this.lastFocusNode||Od.focusOffset!=this.lastFocusOffset},Q1.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var Od=this.getSelection(),Ld=this.cm;if(kd&&yd&&this.cm.display.gutterSpecs.length&&Y2(Od.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var Yd=P0(Ld,Od.anchorNode,Od.anchorOffset),Kd=P0(Ld,Od.focusNode,Od.focusOffset);Yd&&Kd&&z0(Ld,function(){q0(Ld.doc,Ag(Yd,Kd),Zf),(Yd.bad||Kd.bad)&&(Ld.curOp.selectionChanged=!0)})}}},Q1.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMT
` ),Tf(pf))}else return;Uf.type=="cut"&&(Kd.state.cutIncoming=+new Date)}}kh(pf,"cut",kf),kh(pf,"copy",kf),kh(Od.scroller,"paste",function(Uf){if(!(Y1(Od,Uf)||jm(Kd,Uf))){if(!pf.dispatchEvent){Kd.state.pasteIncoming=+new Date,Yd.focus();return}var Jf=new Event("paste");Jf.clipboardData=Uf.clipboardData,pf.dispatchEvent(Jf)}}),kh(Od.lineSpace,"selectstart",function(Uf){Y1(Od,Uf)||Qm(Uf)}),kh(pf,"compositionstart",function(){var Uf=Kd.getCursor("from");Yd.composing&&Yd.composing.range.clear(),Yd.composing={start:Uf,range:Kd.markText(Uf,Kd.getCursor("to"),{className:"CodeMirror-composing"})}}),kh(pf,"compositionend",function(){Yd.composing&&(Yd.poll(),Yd.composing.range.clear(),Yd.composing=null)})},b0.prototype.createField=function(Od){this.wrapper=Cb(),this.textarea=this.wrapper.firstChild;var Ld=this.cm.options;Tb(this.textarea,Ld.spellcheck,Ld.autocorrect,Ld.autocapitalize)},b0.prototype.screenReaderLabelChanged=function(Od){Od?this.textarea.setAttribute("aria-label",Od):this.textarea.removeAttribute("aria-label")},b0.prototype.prepareSelection=function(){var Od=this.cm,Ld=Od.display,Yd=Od.doc,Kd=By(Od);if(Od.options.moveInputWithCursor){var pf=gm(Od,Yd.sel.primary().head,"div"),kf=Ld.wrapper.getBoundingClientRect(),Uf=Ld.lineDiv.getBoundingClientRect();Kd.teTop=Math.max(0,Math.min(Ld.wrapper.clientHeight-10,pf.top+Uf.top-kf.top)),Kd.teLeft=Math.max(0,Math.min(Ld.wrapper.clientWidth-10,pf.left+Uf.left-kf.left))}return Kd},b0.prototype.showSelection=function(Od){var Ld=this.cm,Yd=Ld.display;Zd(Yd.cursorDiv,Od.cursors),Zd(Yd.selectionDiv,Od.selection),Od.teTop!=null&&(this.wrapper.style.top=Od.teTop+"px",this.wrapper.style.left=Od.teLeft+"px")},b0.prototype.reset=function(Od){if(!(this.contextMenuPending||this.composing&&Od)){var Ld=this.cm;if(this.resetting=!0,Ld.somethingSelected()){this.prevInput="";var Yd=Ld.getSelection();this.textarea.value=Yd,Ld.state.focused&&Tf(this.textarea),ld&&cd>=9&&(this.hasSelection=Yd)}else Od||(this.prevInput=this.textarea.value="",ld&&cd>=9&&(this.hasSelection=null));this.resetting=!1}},b0.prototype.getField=function(){return this.textarea},b0.prototype.supportsTouch=function(){return!1},b0.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!Rd||Ef(Lf(this.textarea))!=this.textarea))try{this.textarea.focus()}catch{}},b0.prototype.blur=function(){this.textarea.blur()},b0.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},b0.prototype.receivedFocus=function(){this.slowPoll()},b0.prototype.slowPoll=function(){var Od=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){Od.poll(),Od.cm.state.focused&&Od.slowPoll()})},b0.prototype.fastPoll=function(){var Od=!1,Ld=this;Ld.pollingFast=!0;function Yd(){var Kd=Ld.poll();!Kd&&!Od?(Od=!0,Ld.polling.set(60,Yd)):(Ld.pollingFast=!1,Ld.slowPoll())}Ld.polling.set(20,Yd)},b0.prototype.poll=function(){var Od=this,Ld=this.cm,Yd=this.textarea,Kd=this.prevInput;if(this.contextMenuPending||this.resetting||!Ld.state.focused||bh(Yd)&&!Kd&&!this.composing||Ld.isReadOnly()||Ld.options.disableInput||Ld.state.keySeq)return!1;var pf=Yd.value;if(pf==Kd&&!Ld.somethingSelected())return!1;if(ld&&cd>=9&&this.hasSelection===pf||Md&&/[ \u f700- \u f7ff]/.test(pf))return Ld.display.input.reset(),!1;if(Ld.doc.sel==Ld.display.selForContextMenu){var kf=pf.charCodeAt(0);if(kf==8203&&!Kd&&(Kd=" "),kf==8666)return this.reset(),this.cm.execCommand("undo")}for(var Uf=0,Jf=Math.min(Kd.length,pf.length);Uf<Jf&&Kd.charCodeAt(Uf)==pf.charCodeAt(Uf);)++Uf;return z0(Ld,function(){pE(Ld,pf.slice(Uf),Kd.length-Uf,null,Od.composing?"*compose":null),pf.length>1e3||pf.indexOf( `
` )>-1?Yd.value=Od.prevInput="":Od.prevInput=pf,Od.composing&&(Od.composing.range.clear(),Od.composing.range=Ld.markText(Od.composing.start,Ld.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},b0.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},b0.prototype.onKeyPress=function(){ld&&cd>=9&&(this.hasSelection=null),this.fastPoll()},b0.prototype.onContextMenu=function(Od){var Ld=this,Yd=Ld.cm,Kd=Yd.display,pf=Ld.textarea;Ld.contextMenuPending&&Ld.contextMenuPending();var kf=K_(Yd,Od),Uf=Kd.scroller.scrollTop;if(!kf||Ed)return;var Jf=Yd.options.resetSelectionOnContextMenu;Jf&&Yd.doc.sel.contains(kf)==-1&&t0(Yd,q0)(Yd.doc,Ag(kf),Zf);var sh=pf.style.cssText,_h=Ld.wrapper.style.cssText,Fh=Ld.wrapper.offsetParent.getBoundingClientRect();Ld.wrapper.style.cssText="position: static",pf.style.cssText= ` position : absolute ; width : 30 px ; height : 30 px ;
top : ` +(Od.clientY-Fh.top-5)+"px; left: "+(Od.clientX-Fh.left-5)+ ` px ;
2024-08-30 15:19:18 +08:00
z - index : 1000 ; background : ` +(ld?"rgba(255, 255, 255, .05)":"transparent")+ ` ;
2024-08-31 15:27:49 +08:00
outline : none ; border - width : 0 ; outline : none ; overflow : hidden ; opacity : . 05 ; filter : alpha ( opacity = 5 ) ; ` ;var zh;ud&&(zh=pf.ownerDocument.defaultView.scrollY),Kd.input.focus(),ud&&pf.ownerDocument.defaultView.scrollTo(null,zh),Kd.input.reset(),Yd.somethingSelected()||(pf.value=Ld.prevInput=" "),Ld.contextMenuPending=im,Kd.selForContextMenu=Yd.doc.sel,clearTimeout(Kd.detectingSelectAll);function om(){if(pf.selectionStart!=null){var Rm=Yd.somethingSelected(),zm=" "+(Rm?pf.value:"");pf.value="⇚",pf.value=zm,Ld.prevInput=Rm?"":" ",pf.selectionStart=1,pf.selectionEnd=zm.length,Kd.selForContextMenu=Yd.doc.sel}}function im(){if(Ld.contextMenuPending==im&&(Ld.contextMenuPending=!1,Ld.wrapper.style.cssText=_h,pf.style.cssText=sh,ld&&cd<9&&Kd.scrollbars.setScrollTop(Kd.scroller.scrollTop=Uf),pf.selectionStart!=null)){(!ld||ld&&cd<9)&&om();var Rm=0,zm=function(){Kd.selForContextMenu==Yd.doc.sel&&pf.selectionStart==0&&pf.selectionEnd>0&&Ld.prevInput==" "?t0(Yd,Bv)(Yd):Rm++<10?Kd.detectingSelectAll=setTimeout(zm,500):(Kd.selForContextMenu=null,Kd.input.reset())};Kd.detectingSelectAll=setTimeout(zm,200)}}if(ld&&cd>=9&&om(),Ud){H1(Od);var Tm=function(){Sm(window,"mouseup",Tm),setTimeout(im,20)};kh(window,"mouseup",Tm)}else setTimeout(im,50)},b0.prototype.readOnlyChanged=function(Od){Od||this.reset(),this.textarea.disabled=Od=="nocursor",this.textarea.readOnly=!!Od},b0.prototype.setUneditable=function(){},b0.prototype.needsContentAttribute=!1;function d2(Od,Ld){if(Ld=Ld?yf(Ld):{},Ld.value=Od.value,!Ld.tabindex&&Od.tabIndex&&(Ld.tabindex=Od.tabIndex),!Ld.placeholder&&Od.placeholder&&(Ld.placeholder=Od.placeholder),Ld.autofocus==null){var Yd=Ef(Lf(Od));Ld.autofocus=Yd==Od||Od.getAttribute("autofocus")!=null&&Yd==document.body}function Kd(){Od.value=Jf.getValue()}var pf;if(Od.form&&(kh(Od.form,"submit",Kd),!Ld.leaveSubmitMethodAlone)){var kf=Od.form;pf=kf.submit;try{var Uf=kf.submit=function(){Kd(),kf.submit=pf,kf.submit(),kf.submit=Uf}}catch{}}Ld.finishInit=function(sh){sh.save=Kd,sh.getTextArea=function(){return Od},sh.toTextArea=function(){sh.toTextArea=isNaN,Kd(),Od.parentNode.removeChild(sh.getWrapperElement()),Od.style.display="",Od.form&&(Sm(Od.form,"submit",Kd),!Ld.leaveSubmitMethodAlone&&typeof Od.form.submit=="function"&&(Od.form.submit=pf))}},Od.style.display="none";var Jf=G1(function(sh){return Od.parentNode.insertBefore(sh,Od.nextSibling)},Ld);return Jf}function Q2(Od){Od.off=Sm,Od.on=kh,Od.wheelEventPixels=M2,Od.Doc=K0,Od.splitLines=Df,Od.countColumn=Bf,Od.findColumn=Cf,Od.isWordChar=Jh,Od.Pass=Of,Od.signal=_m,Od.Line=Vf,Od.changeEnd=Dg,Od.scrollbarModel=rv,Od.Pos=hm,Od.cmpPos=Wm,Od.modes=jh,Od.mimeModes=Gh,Od.resolveMode=Lh,Od.getMode=Qh,Od.modeExtensions=cm,Od.extendMode=Gf,Od.copyState= $ m,Od.startState=m1,Od.innerMode=c1,Od.commands=gb,Od.keyMap=Q_,Od.keyName=fb,Od.isModifierKey=Kb,Od.lookupKey=f_,Od.normalizeKeyMap=p_,Od.StringStream=o1,Od.SharedTextMarker=jv,Od.TextMarker=F_,Od.LineWidget=cv,Od.e_preventDefault=Qm,Od.e_stopPropagation=M1,Od.e_stop=H1,Od.addClass=wf,Od.contains=gf,Od.rmClass=Wd,Od.keyNames=B0}dE(G1),Wv(G1);var p2="iter insert remove copy getEditor constructor".split(" ");for(var iy in K0.prototype)K0.prototype.hasOwnProperty(iy)&&Yf(p2,iy)<0&&(G1.prototype[iy]=function(Od){return function(){return Od.apply(this.doc,arguments)}}(K0.prototype[iy]));return S1(K0),G1.inputStyles={textarea:b0,contenteditable:Q1},G1.defineMode=function(Od){!G1.defaults.mode&&Od!="null"&&(G1.defaults.mode=Od),Hh.apply(this,arguments)},G1.defineMIME=Oh,G1.defineMode("null",function(){return{token:function(Od){return Od.skipToEnd()}}}),G1.defineMIME("text/plain","null"),G1.defineExtension=function(Od,Ld){G1.prototype[Od]=Ld},G1.defineDocExtension=function(Od,Ld){K0.prototype[Od]=Ld},G1.fromTextArea=d2,Q2(G1),G1.version="5.65.17",G1})}(codemirror)),codemirror.exports}var codemirrorExports=requireCodemirror();const CodeMirror=getDefaultExportFromCjs(codemirrorExports);function tryOnScopeDispose $ 1(Ra){return getCurrentScope()?(onScopeDispose(Ra),!0):!1}function toValue $ 2(Ra){return typeof Ra=="function"?Ra():unref(Ra)}
2024-08-27 22:31:52 +08:00
( ? :
2024-08-30 15:19:18 +08:00
( ? : ` +ed+":){7}(?:"+ed+ ` | : ) | // 1:2:3:4:5:6:7:: 1:2:3:4:5:6:7:8
( ? : ` +ed+":){6}(?:"+Ja+"|:"+ed+ ` | : ) | // 1:2:3:4:5:6:: 1:2:3:4:5:6::8 1:2:3:4:5:6::8 1:2:3:4:5:6::1.2.3.4
( ? : ` +ed+":){5}(?::"+Ja+"|(?::"+ed+ ` ) { 1 , 2 } | : ) | // 1:2:3:4:5:: 1:2:3:4:5::7:8 1:2:3:4:5::8 1:2:3:4:5::7:1.2.3.4
( ? : ` +ed+":){4}(?:(?::"+ed+"){0,1}:"+Ja+"|(?::"+ed+ ` ) { 1 , 3 } | : ) | // 1:2:3:4:: 1:2:3:4::6:7:8 1:2:3:4::8 1:2:3:4::6:7:1.2.3.4
( ? : ` +ed+":){3}(?:(?::"+ed+"){0,2}:"+Ja+"|(?::"+ed+ ` ) { 1 , 4 } | : ) | // 1:2:3:: 1:2:3::5:6:7:8 1:2:3::8 1:2:3::5:6:7:1.2.3.4
( ? : ` +ed+":){2}(?:(?::"+ed+"){0,3}:"+Ja+"|(?::"+ed+ ` ) { 1 , 5 } | : ) | // 1:2:: 1:2::4:5:6:7:8 1:2::8 1:2::4:5:6:7:1.2.3.4
( ? : ` +ed+":){1}(?:(?::"+ed+"){0,4}:"+Ja+"|(?::"+ed+ ` ) { 1 , 6 } | : ) | // 1:: 1::3:4:5:6:7:8 1::8 1::3:4:5:6:7:1.2.3.4
( ? : : ( ? : ( ? : : ` +ed+"){0,5}:"+Ja+"|(?::"+ed+ ` ) { 1 , 7 } | : ) ) // ::2:3:4:5:6:7:8 ::2:3:4:5:6:7:8 ::8 ::1.2.3.4
2024-08-27 22:31:52 +08:00
) ( ? : % [ 0 - 9 a - zA - Z ] { 1 , } ) ? // %eth0 %1
2024-08-31 11:28:56 +08:00
` ).replace(/ \s * \/ \/ .* $ /gm,"").replace(/ \n /g,"").trim(),rd=new RegExp("(?:^"+Ja+" $ )|(?:^"+td+" $ )"),od=new RegExp("^"+Ja+" $ "),sd=new RegExp("^"+td+" $ "),ld=function(Rd){return Rd&&Rd.exact?rd:new RegExp("(?:"+qa(Rd)+Ja+qa(Rd)+")|(?:"+qa(Rd)+td+qa(Rd)+")","g")};ld.v4=function(kd){return kd&&kd.exact?od:new RegExp(""+qa(kd)+Ja+qa(kd),"g")},ld.v6=function(kd){return kd&&kd.exact?sd:new RegExp(""+qa(kd)+td+qa(kd),"g")};var cd="(?:(?:[a-z]+:)?//)",ud="(?: \\ S+(?:: \\ S*)?@)?",_d=ld.v4().source,yd=ld.v6().source,gd="(?:(?:[a-z \\ u00a1- \\ uffff0-9][-_]*)*[a-z \\ u00a1- \\ uffff0-9]+)",Ed="(?: \\ .(?:[a-z \\ u00a1- \\ uffff0-9]-*)*[a-z \\ u00a1- \\ uffff0-9]+)*",Td="(?: \\ .(?:[a-z \\ u00a1- \\ uffff]{2,}))",Id="(?:: \\ d{2,5})?",Ad='(?:[/?#][^ \\ s"]*)?',Nd="(?:"+cd+"|www \\ .)"+ud+"(?:localhost|"+_d+"|"+yd+"|"+gd+Ed+Td+")"+Id+Ad;return urlReg=new RegExp("(?:^"+Nd+" $ )","i"),urlReg},pattern $ 2={email:/^(([^<>() \[ \] \\ .,;: \s @"]+( \. [^<>() \[ \] \\ .,;: \s @"]+)*)|(".+"))@(( \[ [0-9]{1,3} \. [0-9]{1,3} \. [0-9]{1,3} \. [0-9]{1,3}])|(([a-zA-Z \- 0-9 \u 00A0- \u D7FF \u F900- \u FDCF \u FDF0- \u FFEF]+ \. )+[a-zA-Z \u 00A0- \u D7FF \u F900- \u FDCF \u FDF0- \u FFEF]{2,})) $ /,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3}) $ /i},types $ 2={integer:function(qa){return types $ 2.number(qa)&&parseInt(qa,10)===qa},float:function(qa){return types $ 2.number(qa)&&!types $ 2.integer(qa)},array:function(qa){return Array.isArray(qa)},regexp:function(qa){if(qa instanceof RegExp)return!0;try{return!!new RegExp(qa)}catch{return!1}},date:function(qa){return typeof qa.getTime=="function"&&typeof qa.getMonth=="function"&&typeof qa.getYear=="function"&&!isNaN(qa.getTime())},number:function(qa){return isNaN(qa)?!1:typeof qa=="number"},object:function(qa){return typeof qa=="object"&&!types $ 2.array(qa)},method:function(qa){return typeof qa=="function"},email:function(qa){return typeof qa=="string"&&qa.length<=320&&!!qa.match(pattern $ 2.email)},url:function(qa){return typeof qa=="string"&&qa.length<=2048&&!!qa.match(getUrlRegex())},hex:function(qa){return typeof qa=="string"&&!!qa.match(pattern $ 2.hex)}},type $ 1 $ 1=function(qa,Ja,ed,td,rd){if(qa.required&&Ja===void 0){required $ 1(qa,Ja,ed,td,rd);return}var od=["integer","float","array","regexp","object","method","email","number","date","url","hex"],sd=qa.type;od.indexOf(sd)>-1?types $ 2[sd](Ja)||td.push(format $ 2(rd.messages.types[sd],qa.fullField,qa.type)):sd&&typeof Ja!==qa.type&&td.push(format $ 2(rd.messages.types[sd],qa.fullField,qa.type))},range $ 4=function(qa,Ja,ed,td,rd){var od=typeof qa.len=="number",sd=typeof qa.min=="number",ld=typeof qa.max=="number",cd=/[ \u D800- \u DBFF][ \u DC00- \u DFFF]/g,ud=Ja,_d=null,yd=typeof Ja=="number",gd=typeof Ja=="string",Ed=Array.isArray(Ja);if(yd?_d="number":gd?_d="string":Ed&&(_d="array"),!_d)return!1;Ed&&(ud=Ja.length),gd&&(ud=Ja.replace(cd,"_").length),od?ud!==qa.len&&td.push(format $ 2(rd.messages[_d].len,qa.fullField,qa.len)):sd&&!ld&&ud<qa.min?td.push(format $ 2(rd.messages[_d].min,qa.fullField,qa.min)):ld&&!sd&&ud>qa.max?td.push(format $ 2(rd.messages[_d].max,qa.fullField,qa.max)):sd&&ld&&(ud<qa.min||ud>qa.max)&&td.push(format $ 2(rd.messages[_d].range,qa.fullField,qa.min,qa.max))},ENUM $ 1="enum",enumerable $ 1=function(qa,Ja,ed,td,rd){qa[ENUM $ 1]=Array.isArray(qa[ENUM $ 1])?qa[ENUM $ 1]:[],qa[ENUM $ 1].indexOf(Ja)===-1&&td.push(format $ 2(rd.messages[ENUM $ 1],qa.fullField,qa[ENUM $ 1].join(", ")))},pattern $ 1=function(qa,Ja,ed,td,rd){if(qa.pattern){if(qa.pattern instanceof RegExp)qa.pattern.lastIndex=0,qa.pattern.test(Ja)||td.push(format $ 2(rd.messages.pattern.mismatch,qa.fullField,Ja,qa.pattern));else if(typeof qa.pattern=="string"){var od=new RegExp(qa.pattern);od.test(Ja)||td.push(format $ 2(rd.messages.pattern.mismatch,qa.fullField,Ja,qa.pattern))}}},rules={required:required $ 1,whitespace:whitespace $ 1,type:type $ 1 $ 1,range:range $ 4,enum:enumerable $ 1,pattern:pattern $ 1},string=function(qa,Ja,ed,td,rd){var od=[],sd=qa.required||!qa.required&&td.hasOwnProperty(qa.field);if(sd){if(isEmptyValue(Ja,"string")&&!qa.required)return ed();rules.required(qa,Ja,td,od,rd,"string"),isEmptyValue(Ja,"string")||(rules.type(qa,Ja,td,od,rd),rules.range(qa,Ja,td,od,rd),rules.pattern(qa,Ja,td,od,rd),qa.whitespace===!0&
2024-08-27 22:31:52 +08:00
height : 0 ! important ;
visibility : hidden ! important ;
$ { isFirefox ( ) ? "" : "overflow:hidden !important;" }
position : absolute ! important ;
z - index : - 1000 ! important ;
top : 0 ! important ;
right : 0 ! important ;
2024-08-31 11:28:56 +08:00
` ,CONTEXT_STYLE=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing"];function calculateNodeStyling(Ra){const qa=window.getComputedStyle(Ra),Ja=qa.getPropertyValue("box-sizing"),ed=Number.parseFloat(qa.getPropertyValue("padding-bottom"))+Number.parseFloat(qa.getPropertyValue("padding-top")),td=Number.parseFloat(qa.getPropertyValue("border-bottom-width"))+Number.parseFloat(qa.getPropertyValue("border-top-width"));return{contextStyle:CONTEXT_STYLE.map(od=> ` $ { od } : $ { qa . getPropertyValue ( od ) } ` ).join(";"),paddingSize:ed,borderSize:td,boxSizing:Ja}}function calcTextareaHeight(Ra,qa=1,Ja){var ed;hiddenTextarea||(hiddenTextarea=document.createElement("textarea"),document.body.appendChild(hiddenTextarea));const{paddingSize:td,borderSize:rd,boxSizing:od,contextStyle:sd}=calculateNodeStyling(Ra);hiddenTextarea.setAttribute("style", ` $ { sd } ; $ { HIDDEN _STYLE } ` ),hiddenTextarea.value=Ra.value||Ra.placeholder||"";let ld=hiddenTextarea.scrollHeight;const cd={};od==="border-box"?ld=ld+rd:od==="content-box"&&(ld=ld-td),hiddenTextarea.value="";const ud=hiddenTextarea.scrollHeight-td;if(isNumber $ 3(qa)){let _d=ud*qa;od==="border-box"&&(_d=_d+td+rd),ld=Math.max(_d,ld),cd.minHeight= ` $ { _d } px ` }if(isNumber $ 3(Ja)){let _d=ud*Ja;od==="border-box"&&(_d=_d+td+rd),ld=Math.min(_d,ld)}return cd.height= ` $ { ld } px ` ,(ed=hiddenTextarea.parentNode)==null||ed.removeChild(hiddenTextarea),hiddenTextarea=void 0,cd}const inputProps=buildProps({id:{type:String,default:void 0},size:useSizeProp,disabled:Boolean,modelValue:{type:definePropType([String,Number,Object]),default:""},maxlength:{type:[String,Number]},minlength:{type:[String,Number]},type:{type:String,default:"text"},resize:{type:String,values:["none","both","horizontal","vertical"]},autosize:{type:definePropType([Boolean,Object]),default:!1},autocomplete:{type:String,default:"off"},formatter:{type:Function},parser:{type:Function},placeholder:{type:String},form:{type:String},readonly:Boolean,clearable:Boolean,showPassword:Boolean,showWordLimit:Boolean,suffixIcon:{type:iconPropType},prefixIcon:{type:iconPropType},containerRole:{type:String,default:void 0},tabindex:{type:[String,Number],default:0},validateEvent:{type:Boolean,default:!0},inputStyle:{type:definePropType([Object,Array,String]),default:()=>mutable({})},autofocus:Boolean,rows:{type:Number,default:2},...useAriaProps(["ariaLabel"])}),inputEmits={[UPDATE_MODEL_EVENT]:Ra=>isString $ 3(Ra),input:Ra=>isString $ 3(Ra),change:Ra=>isString $ 3(Ra),focus:Ra=>Ra instanceof FocusEvent,blur:Ra=>Ra instanceof FocusEvent,clear:()=>!0,mouseleave:Ra=>Ra instanceof MouseEvent,mouseenter:Ra=>Ra instanceof MouseEvent,keydown:Ra=>Ra instanceof Event,compositionstart:Ra=>Ra instanceof CompositionEvent,compositionupdate:Ra=>Ra instanceof CompositionEvent,compositionend:Ra=>Ra instanceof CompositionEvent},__default__ $ 1J=defineComponent({name:"ElInput",inheritAttrs:!1}),_sfc_main $ 2V=defineComponent({...__default__ $ 1J,props:inputProps,emits:inputEmits,setup(Ra,{expose:qa,emit:Ja}){const ed=Ra,td=useAttrs $ 1(),rd=useSlots(),od=computed(()=>{const Rh={};return ed.containerRole==="combobox"&&(Rh["aria-haspopup"]=td["aria-haspopup"],Rh["aria-owns"]=td["aria-owns"],Rh["aria-expanded"]=td["aria-expanded"]),Rh}),sd=computed(()=>[ed.type==="textarea"?Id.b():Td.b(),Td.m(gd.value),Td.is("disabled",Ed.value),Td.is("exceed",bf.value),{[Td.b("group")]:rd.prepend||rd.append,[Td.m("prefix")]:rd.prefix||ed.prefixIcon,[Td.m("suffix")]:rd.suffix||ed.suffixIcon||ed.clearable||ed.showPassword,[Td.bm("suffix","password-clear")]:Ef.value&&wf.value,[Td.b("hidden")]:ed.type==="hidden"},td.class]),ld=computed(()=>[Td.e("wrapper"),Td.is("focus",Fd.value)]),cd=useAttrs({excludeKeys:computed(()=>Object.keys(od.value))}),{form:ud,formItem:_d}=useFormItem(),{inputId:yd}=useFormItemInputId(ed,{formItemContext:_d}),gd=useFormSize(),Ed=useFormDisabled(),Td=useNamespace("input"),Id=useNamespace("textarea"),Ad=shallowRef(),Nd=shallowRef(),kd=ref $ 1(!1),Rd=ref $ 1(
2024-08-27 22:31:52 +08:00
* Checks if an event is supported in the current execution environment .
*
* NOTE : This will not work correctly for non - generic events such as ` change ` ,
* ` reset ` , ` load ` , ` error ` , and ` select ` .
*
* Borrows from Modernizr .
*
* @ param { string } eventNameSuffix Event name , e . g . "click" .
* @ param { ? boolean } capture Check if the capture phase is supported .
* @ return { boolean } True if the event is supported .
* @ internal
* @ license Modernizr 3.0 . 0 pre ( Custom Build ) | MIT
2024-08-31 11:28:56 +08:00
* / c o n s t m o u s e w h e e l = f u n c t i o n ( R a , q a ) { i f ( R a & & R a . a d d E v e n t L i s t e n e r ) { c o n s t J a = f u n c t i o n ( e d ) { c o n s t t d = Y $ 4 ( e d ) ; q a & & R e f l e c t . a p p l y ( q a , t h i s , [ e d , t d ] ) } ; R a . a d d E v e n t L i s t e n e r ( " w h e e l " , J a , { p a s s i v e : ! 0 } ) } } , M o u s e w h e e l = { b e f o r e M o u n t ( R a , q a ) { m o u s e w h e e l ( R a , q a . v a l u e ) } } , b a s i c T i m e S p i n n e r P r o p s = b u i l d P r o p s ( { r o l e : { t y p e : S t r i n g , r e q u i r e d : ! 0 } , s p i n n e r D a t e : { t y p e : d e f i n e P r o p T y p e ( O b j e c t ) , r e q u i r e d : ! 0 } , s h o w S e c o n d s : { t y p e : B o o l e a n , d e f a u l t : ! 0 } , a r r o w C o n t r o l : B o o l e a n , a m P m M o d e : { t y p e : d e f i n e P r o p T y p e ( S t r i n g ) , d e f a u l t : " " } , . . . d i s a b l e d T i m e L i s t s P r o p s } ) , _ s f c _ m a i n $ 2 z = d e f i n e C o m p o n e n t ( { _ _ n a m e : " b a s i c - t i m e - s p i n n e r " , p r o p s : b a s i c T i m e S p i n n e r P r o p s , e m i t s : [ " c h a n g e " , " s e l e c t - r a n g e " , " s e t - o p t i o n " ] , s e t u p ( R a , { e m i t : q a } ) { c o n s t J a = R a , e d = u s e N a m e s p a c e ( " t i m e " ) , { g e t H o u r s L i s t : t d , g e t M i n u t e s L i s t : r d , g e t S e c o n d s L i s t : o d } = g e t T i m e L i s t s ( J a . d i s a b l e d H o u r s , J a . d i s a b l e d M i n u t e s , J a . d i s a b l e d S e c o n d s ) ; l e t s d = ! 1 ; c o n s t l d = r e f $ 1 ( ) , c d = r e f $ 1 ( ) , u d = r e f $ 1 ( ) , _ d = r e f $ 1 ( ) , y d = { h o u r s : c d , m i n u t e s : u d , s e c o n d s : _ d } , g d = c o m p u t e d ( ( ) = > J a . s h o w S e c o n d s ? t i m e U n i t s $ 1 : t i m e U n i t s $ 1 . s l i c e ( 0 , 2 ) ) , E d = c o m p u t e d ( ( ) = > { c o n s t { s p i n n e r D a t e : E f } = J a , w f = E f . h o u r ( ) , $ f = E f . m i n u t e ( ) , T f = E f . s e c o n d ( ) ; r e t u r n { h o u r s : w f , m i n u t e s : $ f , s e c o n d s : T f } } ) , T d = c o m p u t e d ( ( ) = > { c o n s t { h o u r s : E f , m i n u t e s : w f } = u n r e f ( E d ) ; r e t u r n { h o u r s : t d ( J a . r o l e ) , m i n u t e s : r d ( E f , J a . r o l e ) , s e c o n d s : o d ( E f , w f , J a . r o l e ) } } ) , I d = c o m p u t e d ( ( ) = > { c o n s t { h o u r s : E f , m i n u t e s : w f , s e c o n d s : $ f } = u n r e f ( E d ) ; r e t u r n { h o u r s : b u i l d T i m e L i s t ( E f , 2 3 ) , m i n u t e s : b u i l d T i m e L i s t ( w f , 5 9 ) , s e c o n d s : b u i l d T i m e L i s t ( $ f , 5 9 ) } } ) , A d = d e b o u n c e ( E f = > { s d = ! 1 , R d ( E f ) } , 2 0 0 ) , N d = E f = > { i f ( ! ! ! J a . a m P m M o d e ) r e t u r n " " ; c o n s t $ f = J a . a m P m M o d e = = = " A " ; l e t T f = E f < 1 2 ? " a m " : " p m " ; r e t u r n $ f & & ( T f = T f . t o U p p e r C a s e ( ) ) , T f } , k d = E f = > { l e t w f ; s w i t c h ( E f ) { c a s e " h o u r s " : w f = [ 0 , 2 ] ; b r e a k ; c a s e " m i n u t e s " : w f = [ 3 , 5 ] ; b r e a k ; c a s e " s e c o n d s " : w f = [ 6 , 8 ] ; b r e a k } c o n s t [ $ f , T f ] = w f ; q a ( " s e l e c t - r a n g e " , $ f , T f ) , l d . v a l u e = E f } , R d = E f = > { j d ( E f , u n r e f ( E d ) [ E f ] ) } , M d = ( ) = > { R d ( " h o u r s " ) , R d ( " m i n u t e s " ) , R d ( " s e c o n d s " ) } , B d = E f = > E f . q u e r y S e l e c t o r ( ` . $ { e d . n a m e s p a c e . v a l u e } - s c r o l l b a r _ _ w r a p ` ) , j d = ( E f , w f ) = > { i f ( J a . a r r o w C o n t r o l ) r e t u r n ; c o n s t $ f = u n r e f ( y d [ E f ] ) ; $ f & & $ f . $ e l & & ( B d ( $ f . $ e l ) . s c r o l l T o p = M a t h . m a x ( 0 , w f * V d ( E f ) ) ) } , V d = E f = > { c o n s t w f = u n r e f ( y d [ E f ] ) , $ f = w f = = n u l l ? v o i d 0 : w f . $ e l . q u e r y S e l e c t o r ( " l i " ) ; r e t u r n $ f & & N u m b e r . p a r s e F l o a t ( g e t S t y l e ( $ f , " h e i g h t " ) ) | | 0 } , F d = ( ) = > { q d ( 1 ) } , U d = ( ) = > { q d ( - 1 ) } , q d = E f = > { l d . v a l u e | | k d ( " h o u r s " ) ; c o n s t w f = l d . v a l u e , $ f = u n r e f ( E d ) [ w f ] , T f = l d . v a l u e = = = " h o u r s " ? 2 4 : 6 0 , b f = W d ( w f , $ f , E f , T f ) ; Q d ( w f , b f ) , j d ( w f , b f ) , n e x t T i c k $ 1 ( ( ) = > k d ( w f ) ) } , W d = ( E f , w f , $ f , T f ) = > { l e t b f = ( w f + $ f + T f ) % T f ; c o n s t S f = u n r e f ( T d ) [ E f ] ; f o r ( ; S f [ b f ] & & b f ! = = w f ; ) b f = ( b f + $ f + T f ) % T f ; r e t u r n b f } , Q d = ( E f , w f ) = > { i f ( u n r e f ( T d ) [ E f ] [ w f ] ) r e t u r n ; c o n s t { h o u r s : b f , m i n u t e s : S f , s e c o n d s : L f } = u n r e f ( E d ) ; l e t P f ; s w i t c h ( E f ) { c a s e " h o u r s " : P f = J a . s p i n n e r D a t e . h o u r ( w f ) . m i n u t e ( S f ) . s e c o n d ( L f ) ; b r e a k ; c a s e " m i n u t e s " : P f = J a . s p i n n e r D a t e . h o u r ( b f ) . m i n u t e ( w f ) . s e c o n d ( L f ) ; b r e a k ; c a s e " s e c o n d s " : P f = J a . s p i n n e r D a t e . h o u r ( b f ) . m i n u t e ( S f ) . s e c o n d ( w f ) ; b r e a k } q a ( " c h a n g e " , P f ) } , Z d = ( E f , { v a l u e : w f , d i s a b l e d : $ f } ) = > { $ f | | ( Q d ( E f , w f ) , k d ( E f ) , j d ( E f , w f ) ) } , X d = E f = > { s d = ! 0 , A d ( E f ) ; c o n s t w f = M a t h . m i n ( M a t h . r o u n d ( ( B d ( u n r e f ( y d [ E f ] ) . $ e l ) . s c r o l l T o p - ( d f ( E f ) * . 5 - 1 0 ) / V d ( E f ) + 3 ) / V d ( E f ) ) , E f = = = " h o u r s " ? 2 3 : 5 9 ) ; Q d ( E f , w f ) } , d f = E f = > u n r e f ( y d [ E f ] ) . $ e l . o f f s e t H e i g h t , h f = ( ) = > { c o n s t E f = w f = > { c o n s t $ f = u n r e f ( y d [ w f ] ) ; $ f & & $ f . $ e l & & ( B d ( $ f . $ e l ) . o n s c r o l l = ( ) = > { X d ( w f ) } ) } ; E f ( " h o u r s " ) , E f ( " m i n u t e s " ) , E f ( " s e c o n d s " ) } ; o n M o u n t e d ( ( ) = > { n e x t T i c k $ 1 ( ( ) = > { ! J a . a r r o w C o n t r o l & & h f ( ) , M d ( ) , J a . r o l e = = = " s t a r t " & & k d ( " h o u r s " ) } ) } ) ; c o n s t g f = ( E f , w f ) = > { y d [ w f ] . v a l u e = E f } ; r e t u r n q a ( " s e t - o p t i o n " , [ ` $ { J a . r o l e } _ s c r o l l D o w n ` , q d ] ) , q a ( " s e t - o p t i o n " , [ ` $ { J a . r o l e } _ e m i t S e l e c t R a n g e ` , k d ] ) , w a t c h ( ( ) = > J a . s p i n n e r D a t e , ( ) = > { s d | | M d ( ) } ) , ( E f , w f ) = > ( o p e n B l o c k ( ) , c r e a t e E l e m e n t B l o c k ( " d i v " , { c l a s s : n o r m a l i z e C l a s s ( [ u n r e f ( e d ) . b ( " s p i n n e r " ) , { " h a s - s e c o n d s " : E f . s h o w S e c o n d s } ] ) } , [ E f . a r r o w C o n t r o l ? c r e a t e C o m m e n t V N o d e ( " v - i f " , ! 0 ) : ( o p e n B l o c k ( ! 0 ) , c r e a t e E l e m e n t B l o c k ( F r a g m e n t , { k e y : 0 } , r e n d e r L i s t ( u n r e f ( g d ) , $ f = > ( o p e n B l o c k ( ) , c r e a t e B l o c k ( u n r e f ( E l S c r o l l b a r ) , { k e y : $ f , r e f _ f o r : ! 0 , r e f : T f = > g f ( T f , $ f ) , c l a s s : n o r m a l i z e C l a s s ( u n r e f ( e d ) . b e ( " s p i n n e r " , " w r a p p e r " ) ) , " w r a p - s t y l e " : " m a x - h e i g h t : i n h e r i t ; " , " v i e w - c l a s s " : u n r e f ( e d ) . b e ( " s p i n n e r " , " l i s t " ) , n o r e s i z e : " " , t a g : " u l " , o n M o u s e e n t e r : T f = > k d ( $ f ) , o n M o u s e m o v e : T f = > R d ( $ f ) } , { d e f a u l t : w i t h C t x ( ( ) = > [ ( o p e n B l o c k ( ! 0 ) , c r e a t e E l e m e n t B l o c k ( F r a g m e n t , n u l l , r e n d e r L i s t ( u n r e f ( T d ) [ $ f ] , ( T f , b f ) = > ( o p e n B l o c k ( ) , c r e a t e E l e m e n t B l o c k ( " l i " , { k e y : b f , c l a s s : n o r
2024-08-27 22:31:52 +08:00
Add an empty element to avoid render label ,
do not use empty fragment here for https : //github.com/vuejs/vue-next/pull/2485
2024-08-31 11:28:56 +08:00
` ),createBaseVNode("span")]),_:1},8,["model-value","label","disabled","onUpdate:modelValue","onClick"])):Ra.isLeaf&&Ra.node.checked?(openBlock(),createBlock(cd,{key:2,class:normalizeClass(Ra.ns.e("prefix"))},{default:withCtx(()=>[createVNode(ld)]),_:1},8,["class"])):createCommentVNode("v-if",!0),createCommentVNode(" content "),createVNode(ud),createCommentVNode(" postfix "),Ra.isLeaf?createCommentVNode("v-if",!0):(openBlock(),createElementBlock(Fragment,{key:3},[Ra.node.loading?(openBlock(),createBlock(cd,{key:0,class:normalizeClass([Ra.ns.is("loading"),Ra.ns.e("postfix")])},{default:withCtx(()=>[createVNode(_d)]),_:1},8,["class"])):(openBlock(),createBlock(cd,{key:1,class:normalizeClass(["arrow-right",Ra.ns.e("postfix")])},{default:withCtx(()=>[createVNode(yd)]),_:1},8,["class"]))],64))],42,["id","aria-haspopup","aria-owns","aria-expanded","tabindex","onMouseenter","onFocus","onClick"])}var ElCascaderNode=_export_sfc $ 1(_sfc_main $ 2l,[["render",_sfc_render $ t],["__file","node.vue"]]);const _sfc_main $ 2k=defineComponent({name:"ElCascaderMenu",components:{Loading:loading_default,ElIcon,ElScrollbar,ElCascaderNode},props:{nodes:{type:Array,required:!0},index:{type:Number,required:!0}},setup(Ra){const qa=getCurrentInstance(),Ja=useNamespace("cascader-menu"),{t:ed}=useLocale(),td=useId();let rd=null,od=null;const sd=inject(CASCADER_PANEL_INJECTION_KEY),ld=ref $ 1(null),cd=computed(()=>!Ra.nodes.length),ud=computed(()=>!sd.initialLoaded),_d=computed(()=> ` $ { td . value } - $ { Ra . index } ` ),yd=Id=>{rd=Id.target},gd=Id=>{if(!(!sd.isHoverMenu||!rd||!ld.value))if(rd.contains(Id.target)){Ed();const Ad=qa.vnode.el,{left:Nd}=Ad.getBoundingClientRect(),{offsetWidth:kd,offsetHeight:Rd}=Ad,Md=Id.clientX-Nd,Bd=rd.offsetTop,jd=Bd+rd.offsetHeight;ld.value.innerHTML= `
< path style = "pointer-events: auto;" fill = "transparent" d = "M${Md} ${Bd} L${kd} 0 V${Bd} Z" / >
< path style = "pointer-events: auto;" fill = "transparent" d = "M${Md} ${jd} L${kd} ${Rd} V${jd} Z" / >
` }else od||(od=window.setTimeout(Td,sd.config.hoverThreshold))},Ed=()=>{od&&(clearTimeout(od),od=null)},Td=()=>{ld.value&&(ld.value.innerHTML="",Ed())};return{ns:Ja,panel:sd,hoverZone:ld,isEmpty:cd,isLoading:ud,menuId:_d,t:ed,handleExpand:yd,handleMouseMove:gd,clearHoverZone:Td}}});function _sfc_render $ s(Ra,qa,Ja,ed,td,rd){const od=resolveComponent("el-cascader-node"),sd=resolveComponent("loading"),ld=resolveComponent("el-icon"),cd=resolveComponent("el-scrollbar");return openBlock(),createBlock(cd,{key:Ra.menuId,tag:"ul",role:"menu",class:normalizeClass(Ra.ns.b()),"wrap-class":Ra.ns.e("wrap"),"view-class":[Ra.ns.e("list"),Ra.ns.is("empty",Ra.isEmpty)],onMousemove:Ra.handleMouseMove,onMouseleave:Ra.clearHoverZone},{default:withCtx(()=>{var ud;return[(openBlock(!0),createElementBlock(Fragment,null,renderList(Ra.nodes,_d=>(openBlock(),createBlock(od,{key:_d.uid,node:_d,"menu-id":Ra.menuId,onExpand:Ra.handleExpand},null,8,["node","menu-id","onExpand"]))),128)),Ra.isLoading?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(Ra.ns.e("empty-text"))},[createVNode(ld,{size:"14",class:normalizeClass(Ra.ns.is("loading"))},{default:withCtx(()=>[createVNode(sd)]),_:1},8,["class"]),createTextVNode(" "+toDisplayString(Ra.t("el.cascader.loading")),1)],2)):Ra.isEmpty?(openBlock(),createElementBlock("div",{key:1,class:normalizeClass(Ra.ns.e("empty-text"))},toDisplayString(Ra.t("el.cascader.noData")),3)):(ud=Ra.panel)!=null&&ud.isHoverMenu?(openBlock(),createElementBlock("svg",{key:2,ref:"hoverZone",class:normalizeClass(Ra.ns.e("hover-zone"))},null,2)):createCommentVNode("v-if",!0)]}),_:1},8,["class","wrap-class","view-class","onMousemove","onMouseleave"])}var ElCascaderMenu=_export_sfc $ 1(_sfc_main $ 2k,[["render",_sfc_render $ s],["__file","menu.vue"]]);let uid=0;const calculatePathNodes=Ra=>{const qa=[Ra];let{parent:Ja}=Ra;for(;Ja;)qa.unshift(Ja),Ja=Ja.parent;return qa};let Node $ 2=class gS{constructor(qa,Ja,ed,td=!1){this.data=qa,this.config=Ja,this.parent=ed,this.root=td,this.uid=uid++,this.checked=!1,this.indeterminate=!1,this.loading=!1;const{value:rd,label:od,children:sd}=Ja,ld=qa[sd],cd=calculatePathNodes(this);this.level=td?0:ed?ed.level+1:1,this.value=qa[rd],this.label=qa[od],this.pathNodes=cd,this.pathValues=cd.map(ud=>ud.value),this.pathLabels=cd.map(ud=>ud.label),this.childrenData=ld,this.children=(ld||[]).map(ud=>new gS(ud,Ja,this)),this.loaded=!Ja.lazy||this.isLeaf||!isEmpty $ 1(ld)}get isDisabled(){const{data:qa,parent:Ja,config:ed}=this,{disabled:td,checkStrictly:rd}=ed;return(isFunction $ 4(td)?td(qa,this):!!qa[td])||!rd&&(Ja==null?void 0:Ja.isDisabled)}get isLeaf(){const{data:qa,config:Ja,childrenData:ed,loaded:td}=this,{lazy:rd,leaf:od}=Ja,sd=isFunction $ 4(od)?od(qa,this):qa[od];return isUndefined $ 1(sd)?rd&&!td?!1:!(Array.isArray(ed)&&ed.length):!!sd}get valueByOption(){return this.config.emitPath?this.pathValues:this.value}appendChild(qa){const{childrenData:Ja,children:ed}=this,td=new gS(qa,this.config,this);return Array.isArray(Ja)?Ja.push(qa):this.childrenData=[qa],ed.push(td),td}calcText(qa,Ja){const ed=qa?this.pathLabels.join(Ja):this.label;return this.text=ed,ed}broadcast(qa,...Ja){const ed= ` onParent$ { capitalize ( qa ) } ` ;this.children.forEach(td=>{td&&(td.broadcast(qa,...Ja),td[ed]&&td[ed](...Ja))})}emit(qa,...Ja){const{parent:ed}=this,td= ` onChild$ { capitalize ( qa ) } ` ;ed&&(ed[td]&&ed[td](...Ja),ed.emit(qa,...Ja))}onParentCheck(qa){this.isDisabled||this.setCheckState(qa)}onChildCheck(){const{children:qa}=this,Ja=qa.filter(td=>!td.isDisabled),ed=Ja.length?Ja.every(td=>td.checked):!1;this.setCheckState(ed)}setCheckState(qa){const Ja=this.children.length,ed=this.children.reduce((td,rd)=>{const od=rd.checked?1:rd.indeterminate?.5:0;return td+od},0);this.checked=this.loaded&&this.children.filter(td=>!td.isDisabled).every(td=>td.loaded&&td.checked)&&qa,this.indeterminate=this.loaded&&ed!==Ja&&ed>0}doCheck(qa){if(this.checked===qa)return;const{checkStrictly:Ja,multiple:ed}=this.config;Ja||!ed?this.checked=qa:(this.broadcast("check",qa),this.setCheckState(qa),this.emit("check"))}};const flatNodes=(Ra,qa)=>Ra.reduce
2024-08-27 22:31:52 +08:00
M 50 50
2024-08-31 11:28:56 +08:00
m 0 $ { Rd ? "" : "-" } $ { kd }
a $ { kd } $ { kd } 0 1 1 0 $ { Rd ? "-" : "" } $ { kd * 2 }
a $ { kd } $ { kd } 0 1 1 0 $ { Rd ? "" : "-" } $ { kd * 2 }
` }),ld=computed(()=>2*Math.PI*od.value),cd=computed(()=>qa.type==="dashboard"?.75:1),ud=computed(()=> ` $ { - 1 * ld . value * ( 1 - cd . value ) / 2 } px ` ),_d=computed(()=>({strokeDasharray: ` $ { ld . value * cd . value } px , $ { ld . value } px ` ,strokeDashoffset:ud.value})),yd=computed(()=>({strokeDasharray: ` $ { ld . value * cd . value * ( qa . percentage / 100 ) } px , $ { ld . value } px ` ,strokeDashoffset:ud.value,transition:"stroke-dasharray 0.6s ease 0s, stroke 0.6s ease, opacity ease 0.6s"})),gd=computed(()=>{let kd;return qa.color?kd=Nd(qa.percentage):kd=Ja[qa.status]||Ja.default,kd}),Ed=computed(()=>qa.status==="warning"?warning_filled_default:qa.type==="line"?qa.status==="success"?circle_check_default:circle_close_default:qa.status==="success"?check_default:close_default),Td=computed(()=>qa.type==="line"?12+qa.strokeWidth*.4:qa.width*.111111+2),Id=computed(()=>qa.format(qa.percentage));function Ad(kd){const Rd=100/kd.length;return kd.map((Bd,jd)=>isString $ 3(Bd)?{color:Bd,percentage:(jd+1)*Rd}:Bd).sort((Bd,jd)=>Bd.percentage-jd.percentage)}const Nd=kd=>{var Rd;const{color:Md}=qa;if(isFunction $ 4(Md))return Md(kd);if(isString $ 3(Md))return Md;{const Bd=Ad(Md);for(const jd of Bd)if(jd.percentage>kd)return jd.color;return(Rd=Bd[Bd.length-1])==null?void 0:Rd.color}};return(kd,Rd)=>(openBlock(),createElementBlock("div",{class:normalizeClass([unref(ed).b(),unref(ed).m(kd.type),unref(ed).is(kd.status),{[unref(ed).m("without-text")]:!kd.showText,[unref(ed).m("text-inside")]:kd.textInside}]),role:"progressbar","aria-valuenow":kd.percentage,"aria-valuemin":"0","aria-valuemax":"100"},[kd.type==="line"?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(ed).b("bar"))},[createBaseVNode("div",{class:normalizeClass(unref(ed).be("bar","outer")),style:normalizeStyle({height: ` $ { kd . strokeWidth } px ` })},[createBaseVNode("div",{class:normalizeClass([unref(ed).be("bar","inner"),{[unref(ed).bem("bar","inner","indeterminate")]:kd.indeterminate},{[unref(ed).bem("bar","inner","striped")]:kd.striped},{[unref(ed).bem("bar","inner","striped-flow")]:kd.stripedFlow}]),style:normalizeStyle(unref(td))},[(kd.showText||kd. $ slots.default)&&kd.textInside?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(ed).be("bar","innerText"))},[renderSlot(kd. $ slots,"default",{percentage:kd.percentage},()=>[createBaseVNode("span",null,toDisplayString(unref(Id)),1)])],2)):createCommentVNode("v-if",!0)],6)],6)],2)):(openBlock(),createElementBlock("div",{key:1,class:normalizeClass(unref(ed).b("circle")),style:normalizeStyle({height: ` $ { kd . width } px ` ,width: ` $ { kd . width } px ` })},[(openBlock(),createElementBlock("svg",{viewBox:"0 0 100 100"},[createBaseVNode("path",{class:normalizeClass(unref(ed).be("circle","track")),d:unref(sd),stroke: ` var ( $ { unref ( ed ) . cssVarName ( "fill-color-light" ) } , # e5e9f2 ) ` ,"stroke-linecap":kd.strokeLinecap,"stroke-width":unref(rd),fill:"none",style:normalizeStyle(unref(_d))},null,14,["d","stroke","stroke-linecap","stroke-width"]),createBaseVNode("path",{class:normalizeClass(unref(ed).be("circle","path")),d:unref(sd),stroke:unref(gd),fill:"none",opacity:kd.percentage?1:0,"stroke-linecap":kd.strokeLinecap,"stroke-width":unref(rd),style:normalizeStyle(unref(yd))},null,14,["d","stroke","opacity","stroke-linecap","stroke-width"])]))],6)),(kd.showText||kd. $ slots.default)&&!kd.textInside?(openBlock(),createElementBlock("div",{key:2,class:normalizeClass(unref(ed).e("text")),style:normalizeStyle({fontSize: ` $ { unref ( Td ) } px ` })},[renderSlot(kd. $ slots,"default",{percentage:kd.percentage},()=>[kd.status?(openBlock(),createBlock(unref(ElIcon),{key:1},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(unref(Ed))))]),_:1})):(openBlock(),createElementBlock("span",{key:0},toDisplayString(unref(Id)),1))])],6)):createCommentVNode("v-if",!0)],10,["aria-valuenow"]))}});var Progress=_export_sfc $ 1(_sfc_main $ 1k,[["__file","progress.vue"]]);const ElProgress=withInstall(Progress),rateProps=buildProps({modelValue:{type:Number,default:0},id:{type:String,default:void 0},lowThreshold:{type:Number,default:2},highThreshold:{type:Number,default:4},max:{type:Number,default:5},colo
` ||cd===" \r "){od=ld;continue}if(rd.includes(cd)){const ud=od===-1?ed:od;sd={pattern:td.slice(ld+1,ud),start:ld+1,end:ud,prefix:cd,prefixIndex:ld,splitIndex:od,selectionEnd:ed};break}}return sd},getCursorPosition=(Ra,qa={debug:!1,useSelectionEnd:!1})=>{const Ja=Ra.selectionStart!==null?Ra.selectionStart:0,ed=Ra.selectionEnd!==null?Ra.selectionEnd:0,td=qa.useSelectionEnd?ed:Ja,rd=["direction","boxSizing","width","height","overflowX","overflowY","borderTopWidth","borderRightWidth","borderBottomWidth","borderLeftWidth","borderStyle","paddingTop","paddingRight","paddingBottom","paddingLeft","fontStyle","fontVariant","fontWeight","fontStretch","fontSize","fontSizeAdjust","lineHeight","fontFamily","textAlign","textTransform","textIndent","textDecoration","letterSpacing","wordSpacing","tabSize","MozTabSize"];if(qa.debug){const yd=document.querySelector("#input-textarea-caret-position-mirror-div");yd!=null&&yd.parentNode&&yd.parentNode.removeChild(yd)}const od=document.createElement("div");od.id="input-textarea-caret-position-mirror-div",document.body.appendChild(od);const sd=od.style,ld=window.getComputedStyle(Ra),cd=Ra.nodeName==="INPUT";sd.whiteSpace=cd?"nowrap":"pre-wrap",cd||(sd.wordWrap="break-word"),sd.position="absolute",qa.debug||(sd.visibility="hidden"),rd.forEach(yd=>{if(cd&&yd==="lineHeight")if(ld.boxSizing==="border-box"){const gd=Number.parseInt(ld.height),Ed=Number.parseInt(ld.paddingTop)+Number.parseInt(ld.paddingBottom)+Number.parseInt(ld.borderTopWidth)+Number.parseInt(ld.borderBottomWidth),Td=Ed+Number.parseInt(ld.lineHeight);gd>Td?sd.lineHeight= ` $ { gd - Ed } px ` :gd===Td?sd.lineHeight=ld.lineHeight:sd.lineHeight="0"}else sd.lineHeight=ld.height;else sd[yd]=ld[yd]}),isFirefox()?Ra.scrollHeight>Number.parseInt(ld.height)&&(sd.overflowY="scroll"):sd.overflow="hidden",od.textContent=Ra.value.slice(0,Math.max(0,td)),cd&&od.textContent&&(od.textContent=od.textContent.replace(/ \s /g," "));const ud=document.createElement("span");ud.textContent=Ra.value.slice(Math.max(0,td))||".",ud.style.position="relative",ud.style.left= ` $ { - Ra . scrollLeft } px ` ,ud.style.top= ` $ { - Ra . scrollTop } px ` ,od.appendChild(ud);const _d={top:ud.offsetTop+Number.parseInt(ld.borderTopWidth),left:ud.offsetLeft+Number.parseInt(ld.borderLeftWidth),height:Number.parseInt(ld.fontSize)*1.5};return qa.debug?ud.style.backgroundColor="#aaa":document.body.removeChild(od),_d.left>=Ra.clientWidth&&(_d.left=Ra.clientWidth),_d},mentionProps=buildProps({...inputProps,options:{type:definePropType(Array),default:()=>[]},prefix:{type:definePropType([String,Array]),default:"@",validator:Ra=>isString $ 3(Ra)?Ra.length===1:Ra.every(qa=>isString $ 3(qa)&&qa.length===1)},split:{type:String,default:" ",validator:Ra=>Ra.length===1},filterOption:{type:definePropType([Boolean,Function]),default:()=>filterOption,validator:Ra=>Ra===!1?!0:isFunction $ 4(Ra)},placement:{type:definePropType(String),default:"bottom"},showArrow:Boolean,offset:{type:Number,default:0},whole:Boolean,checkIsWhole:{type:definePropType(Function)},modelValue:String,loading:Boolean,popperClass:{type:String,default:""},popperOptions:{type:definePropType(Object),default:()=>({})}}),mentionEmits={[UPDATE_MODEL_EVENT]:Ra=>isString $ 3(Ra),search:(Ra,qa)=>isString $ 3(Ra)&&isString $ 3(qa),select:(Ra,qa)=>isString $ 3(Ra.value)&&isString $ 3(qa),focus:Ra=>Ra instanceof FocusEvent,blur:Ra=>Ra instanceof FocusEvent},mentionDropdownProps=buildProps({options:{type:definePropType(Array),default:()=>[]},loading:Boolean,disabled:Boolean,contentId:String,ariaLabel:String}),mentionDropdownEmits={select:Ra=>isString $ 3(Ra.value)},__default__ $ 3=defineComponent({name:"ElMentionDropdown"}),_sfc_main $ A=defineComponent({...__default__ $ 3,props:mentionDropdownProps,emits:mentionDropdownEmits,setup(Ra,{expose:qa,emit:Ja}){const ed=Ra,td=useNamespace("mention"),{t:rd}=useLocale(),od=ref $ 1(-1),sd=ref $ 1(),ld=ref $ 1(),cd=ref $ 1(),ud=(kd,Rd)=>[td.be("dropdown","item"),td.is("hovering",od.value===Rd),td.is("disabled",kd.disabled||ed.disabled)],_d=kd=>{kd.disabled||ed.disabled||Ja("select",kd)},yd=kd=>{od.value=kd},gd=computed(()=>ed.disabled||ed.options.every(kd=
2024-08-30 08:16:01 +08:00
* The buffer module from node . js , for the browser .
*
* @ author Feross Aboukhadijeh < https : //feross.org>
* @ license MIT
2024-08-31 11:28:56 +08:00
* / ( f u n c t i o n ( R a ) { c o n s t q a = b a s e 6 4 J s $ 1 , J a = i e e e 7 5 4 $ 1 , e d = t y p e o f S y m b o l = = " f u n c t i o n " & & t y p e o f S y m b o l . f o r = = " f u n c t i o n " ? S y m b o l . f o r ( " n o d e j s . u t i l . i n s p e c t . c u s t o m " ) : n u l l ; R a . B u f f e r = u d , R a . S l o w B u f f e r = M d , R a . I N S P E C T _ M A X _ B Y T E S = 5 0 ; c o n s t t d = 2 1 4 7 4 8 3 6 4 7 ; R a . k M a x L e n g t h = t d ; c o n s t { U i n t 8 A r r a y : r d , A r r a y B u f f e r : o d , S h a r e d A r r a y B u f f e r : s d } = g l o b a l T h i s ; u d . T Y P E D _ A R R A Y _ S U P P O R T = l d ( ) , ! u d . T Y P E D _ A R R A Y _ S U P P O R T & & t y p e o f c o n s o l e < " u " & & t y p e o f c o n s o l e . e r r o r = = " f u n c t i o n " & & c o n s o l e . e r r o r ( " T h i s b r o w s e r l a c k s t y p e d a r r a y ( U i n t 8 A r r a y ) s u p p o r t w h i c h i s r e q u i r e d b y ` b u f f e r ` v 5 . x . U s e ` b u f f e r ` v 4 . x i f y o u r e q u i r e o l d b r o w s e r s u p p o r t . " ) ; f u n c t i o n l d ( ) { t r y { c o n s t i h = n e w r d ( 1 ) , R f = { f o o : f u n c t i o n ( ) { r e t u r n 4 2 } } ; r e t u r n O b j e c t . s e t P r o t o t y p e O f ( R f , r d . p r o t o t y p e ) , O b j e c t . s e t P r o t o t y p e O f ( i h , R f ) , i h . f o o ( ) = = = 4 2 } c a t c h { r e t u r n ! 1 } } O b j e c t . d e f i n e P r o p e r t y ( u d . p r o t o t y p e , " p a r e n t " , { e n u m e r a b l e : ! 0 , g e t : f u n c t i o n ( ) { i f ( u d . i s B u f f e r ( t h i s ) ) r e t u r n t h i s . b u f f e r } } ) , O b j e c t . d e f i n e P r o p e r t y ( u d . p r o t o t y p e , " o f f s e t " , { e n u m e r a b l e : ! 0 , g e t : f u n c t i o n ( ) { i f ( u d . i s B u f f e r ( t h i s ) ) r e t u r n t h i s . b y t e O f f s e t } } ) ; f u n c t i o n c d ( i h ) { i f ( i h > t d ) t h r o w n e w R a n g e E r r o r ( ' T h e v a l u e " ' + i h + ' " i s i n v a l i d f o r o p t i o n " s i z e " ' ) ; c o n s t R f = n e w r d ( i h ) ; r e t u r n O b j e c t . s e t P r o t o t y p e O f ( R f , u d . p r o t o t y p e ) , R f } f u n c t i o n u d ( i h , R f , x f ) { i f ( t y p e o f i h = = " n u m b e r " ) { i f ( t y p e o f R f = = " s t r i n g " ) t h r o w n e w T y p e E r r o r ( ' T h e " s t r i n g " a r g u m e n t m u s t b e o f t y p e s t r i n g . R e c e i v e d t y p e n u m b e r ' ) ; r e t u r n E d ( i h ) } r e t u r n _ d ( i h , R f , x f ) } u d . p o o l S i z e = 8 1 9 2 ; f u n c t i o n _ d ( i h , R f , x f ) { i f ( t y p e o f i h = = " s t r i n g " ) r e t u r n T d ( i h , R f ) ; i f ( o d . i s V i e w ( i h ) ) r e t u r n A d ( i h ) ; i f ( i h = = n u l l ) t h r o w n e w T y p e E r r o r ( " T h e f i r s t a r g u m e n t m u s t b e o n e o f t y p e s t r i n g , B u f f e r , A r r a y B u f f e r , A r r a y , o r A r r a y - l i k e O b j e c t . R e c e i v e d t y p e " + t y p e o f i h ) ; i f ( R h ( i h , o d ) | | i h & & R h ( i h . b u f f e r , o d ) | | t y p e o f s d < " u " & & ( R h ( i h , s d ) | | i h & & R h ( i h . b u f f e r , s d ) ) ) r e t u r n N d ( i h , R f , x f ) ; i f ( t y p e o f i h = = " n u m b e r " ) t h r o w n e w T y p e E r r o r ( ' T h e " v a l u e " a r g u m e n t m u s t n o t b e o f t y p e n u m b e r . R e c e i v e d t y p e n u m b e r ' ) ; c o n s t X f = i h . v a l u e O f & & i h . v a l u e O f ( ) ; i f ( X f ! = n u l l & & X f ! = = i h ) r e t u r n u d . f r o m ( X f , R f , x f ) ; c o n s t q f = k d ( i h ) ; i f ( q f ) r e t u r n q f ; i f ( t y p e o f S y m b o l < " u " & & S y m b o l . t o P r i m i t i v e ! = n u l l & & t y p e o f i h [ S y m b o l . t o P r i m i t i v e ] = = " f u n c t i o n " ) r e t u r n u d . f r o m ( i h [ S y m b o l . t o P r i m i t i v e ] ( " s t r i n g " ) , R f , x f ) ; t h r o w n e w T y p e E r r o r ( " T h e f i r s t a r g u m e n t m u s t b e o n e o f t y p e s t r i n g , B u f f e r , A r r a y B u f f e r , A r r a y , o r A r r a y - l i k e O b j e c t . R e c e i v e d t y p e " + t y p e o f i h ) } u d . f r o m = f u n c t i o n ( i h , R f , x f ) { r e t u r n _ d ( i h , R f , x f ) } , O b j e c t . s e t P r o t o t y p e O f ( u d . p r o t o t y p e , r d . p r o t o t y p e ) , O b j e c t . s e t P r o t o t y p e O f ( u d , r d ) ; f u n c t i o n y d ( i h ) { i f ( t y p e o f i h ! = " n u m b e r " ) t h r o w n e w T y p e E r r o r ( ' " s i z e " a r g u m e n t m u s t b e o f t y p e n u m b e r ' ) ; i f ( i h < 0 ) t h r o w n e w R a n g e E r r o r ( ' T h e v a l u e " ' + i h + ' " i s i n v a l i d f o r o p t i o n " s i z e " ' ) } f u n c t i o n g d ( i h , R f , x f ) { r e t u r n y d ( i h ) , i h < = 0 ? c d ( i h ) : R f ! = = v o i d 0 ? t y p e o f x f = = " s t r i n g " ? c d ( i h ) . f i l l ( R f , x f ) : c d ( i h ) . f i l l ( R f ) : c d ( i h ) } u d . a l l o c = f u n c t i o n ( i h , R f , x f ) { r e t u r n g d ( i h , R f , x f ) } ; f u n c t i o n E d ( i h ) { r e t u r n y d ( i h ) , c d ( i h < 0 ? 0 : R d ( i h ) | 0 ) } u d . a l l o c U n s a f e = f u n c t i o n ( i h ) { r e t u r n E d ( i h ) } , u d . a l l o c U n s a f e S l o w = f u n c t i o n ( i h ) { r e t u r n E d ( i h ) } ; f u n c t i o n T d ( i h , R f ) { i f ( ( t y p e o f R f ! = " s t r i n g " | | R f = = = " " ) & & ( R f = " u t f 8 " ) , ! u d . i s E n c o d i n g ( R f ) ) t h r o w n e w T y p e E r r o r ( " U n k n o w n e n c o d i n g : " + R f ) ; c o n s t x f = B d ( i h , R f ) | 0 ; l e t X f = c d ( x f ) ; c o n s t q f = X f . w r i t e ( i h , R f ) ; r e t u r n q f ! = = x f & & ( X f = X f . s l i c e ( 0 , q f ) ) , X f } f u n c t i o n I d ( i h ) { c o n s t R f = i h . l e n g t h < 0 ? 0 : R d ( i h . l e n g t h ) | 0 , x f = c d ( R f ) ; f o r ( l e t X f = 0 ; X f < R f ; X f + = 1 ) x f [ X f ] = i h [ X f ] & 2 5 5 ; r e t u r n x f } f u n c t i o n A d ( i h ) { i f ( R h ( i h , r d ) ) { c o n s t R f = n e w r d ( i h ) ; r e t u r n N d ( R f . b u f f e r , R f . b y t e O f f s e t , R f . b y t e L e n g t h ) } r e t u r n I d ( i h ) } f u n c t i o n N d ( i h , R f , x f ) { i f ( R f < 0 | | i h . b y t e L e n g t h < R f ) t h r o w n e w R a n g e E r r o r ( ' " o f f s e t " i s o u t s i d e o f b u f f e r b o u n d s ' ) ; i f ( i h . b y t e L e n g t h < R f + ( x f | | 0 ) ) t h r o w n e w R a n g e E r r o r ( ' " l e n g t h " i s o u t s i d e o f b u f f e r b o u n d s ' ) ; l e t X f ; r e t u r n R f = = = v o i d 0 & & x f = = = v o i d 0 ? X f = n e w r d ( i h ) : x f = = = v o i d 0 ? X f = n e w r d ( i h , R f ) : X f = n e w r d ( i h , R f , x f ) , O b j e c t . s e t P r o t o t y p e O f ( X f , u d . p r o t o t y p e ) , X f } f u n c t i o n k d ( i h ) { i f ( u d . i s B u f f e r ( i h ) ) { c o n s t R f = R d ( i h . l e n g t h ) | 0 , x f = c d ( R f ) ; r e t u r n x f . l e n g t h = = = 0 | | i h . c o p y ( x f , 0 , 0 , R f ) , x f } i f ( i h . l e n g t h ! = = v o i d 0 ) r e t u r n t y p e o f i h . l e n g t h ! = " n u m b e r " | | J h ( i h . l e n g t h ) ? c d ( 0 ) : I d ( i h ) ; i f ( i h . t y p e = = = " B u f f e r " & & A r r a y . i s A r r a y ( i h . d a t a ) ) r e t u r n I d ( i h . d a t a ) } f u n c t i o n R d ( i h ) { i f ( i h > = t d ) t h r o w n e w R a n g e E r r o r ( " A t t e m p t t o a l l o c a t e B u f f e r l a r g e r t h a n m a x i m u m s i z e : 0 x " + t d . t o S t r i n g ( 1 6 ) + " b y t e s " ) ; r e t u r n i h | 0 } f u n c t i o n M d ( i h ) { r e t u r n + i h !
https : //github.com/highlightjs/highlight.js/issues/2277`),$f=hf,wf=gf),Ef===void 0&&(Ef=!0);const Tf={code:wf,language:$f};Xd("before:highlight",Tf);const bf=Tf.result?Tf.result:_d(Tf.language,Tf.code,Ef);return bf.code=Tf.code,Xd("after:highlight",bf),bf}function _d(hf,gf,Ef,wf){const $f=Object.create(null);function Tf(Wh,am){return Wh.keywords[am]}function bf(){if(!Ff.keywords){Dh.addText(uh);return}let Wh=0;Ff.keywordPatternRe.lastIndex=0;let am=Ff.keywordPatternRe.exec(uh),dm="";for(;am;){dm+=uh.substring(Wh,am.index);const ih=Wf.case_insensitive?am[0].toLowerCase():am[0],Rf=Tf(Ff,ih);if(Rf){const[xf,Xf]=Rf;if(Dh.addText(dm),dm="",$f[ih]=($f[ih]||0)+1,$f[ih]<=MAX_KEYWORD_HITS&&(Ih+=Xf),xf.startsWith("_"))dm+=am[0];else{const qf=Wf.classNameAliases[xf]||xf;Pf(am[0],qf)}}else dm+=am[0];Wh=Ff.keywordPatternRe.lastIndex,am=Ff.keywordPatternRe.exec(uh)}dm+=uh.substring(Wh),Dh.addText(dm)}function Sf(){if(uh==="")return;let Wh=null;if(typeof Ff.subLanguage=="string"){if(!qa[Ff.subLanguage]){Dh.addText(uh);return}Wh=_d(Ff.subLanguage,uh,!0,ph[Ff.subLanguage]),ph[Ff.subLanguage]=Wh._top}else Wh=gd(uh,Ff.subLanguage.length?Ff.subLanguage:null);Ff.relevance>0&&(Ih+=Wh.relevance),Dh.__addSublanguage(Wh._emitter,Wh.language)}function Lf(){Ff.subLanguage!=null?Sf():bf(),uh=""}function Pf(Wh,am){Wh!==""&&(Dh.startScope(am),Dh.addText(Wh),Dh.endScope())}function _f(Wh,am){let dm=1;const ih=am.length-1;for(;dm<=ih;){if(!Wh._emit[dm]){dm++;continue}const Rf=Wf.classNameAliases[Wh[dm]]||Wh[dm],xf=am[dm];Rf?Pf(xf,Rf):(uh=xf,bf(),uh=""),dm++}}function yf(Wh,am){return Wh.scope&&typeof Wh.scope=="string"&&Dh.openNode(Wf.classNameAliases[Wh.scope]||Wh.scope),Wh.beginScope&&(Wh.beginScope._wrap?(Pf(uh,Wf.classNameAliases[Wh.beginScope._wrap]||Wh.beginScope._wrap),uh=""):Wh.beginScope._multi&&(_f(Wh.beginScope,am),uh="")),Ff=Object.create(Wh,{parent:{value:Ff}}),Ff}function Bf(Wh,am,dm){let ih=startsWith$1(Wh.endRe,dm);if(ih){if(Wh["on:end"]){const Rf=new Response$1(Wh);Wh["on:end"](am,Rf),Rf.isMatchIgnored&&(ih=!1)}if(ih){for(;Wh.endsParent&&Wh.parent;)Wh=Wh.parent;return Wh}}if(Wh.endsWithParent)return Bf(Wh.parent,am,dm)}function zf(Wh){return Ff.matcher.regexIndex===0?(uh+=Wh[0],1):(Jh=!0,0)}function Yf(Wh){const am=Wh[0],dm=Wh.rule,ih=new Response$1(dm),Rf=[dm.__beforeBegin,dm["on:begin"]];for(const xf of Rf)if(xf&&(xf(Wh,ih),ih.isMatchIgnored))return zf(am);return dm.skip?uh+=am:(dm.excludeBegin&&(uh+=am),Lf(),!dm.returnBegin&&!dm.excludeBegin&&(uh=am)),yf(dm,Wh),dm.returnBegin?0:am.length}function jf(Wh){const am=Wh[0],dm=gf.substring(Wh.index),ih=Bf(Ff,Wh,dm);if(!ih)return NO_MATCH;const Rf=Ff;Ff.endScope&&Ff.endScope._wrap?(Lf(),Pf(am,Ff.endScope._wrap)):Ff.endScope&&Ff.endScope._multi?(Lf(),_f(Ff.endScope,Wh)):Rf.skip?uh+=am:(Rf.returnEnd||Rf.excludeEnd||(uh+=am),Lf(),Rf.excludeEnd&&(uh=am));do Ff.scope&&Dh.closeNode(),!Ff.skip&&!Ff.subLanguage&&(Ih+=Ff.relevance),Ff=Ff.parent;while(Ff!==ih.parent);return ih.starts&&yf(ih.starts,Wh),Rf.returnEnd?0:am.length}function Of(){const Wh=[];for(let am=Ff;am!==Wf;am=am.parent)am.scope&&Wh.unshift(am.scope);Wh.forEach(am=>Dh.openNode(am))}let Zf={};function yh(Wh,am){const dm=am&&am[0];if(uh+=Wh,dm==null)return Lf(),0;if(Zf.type==="begin"&&am.type==="end"&&Zf.index===am.index&&dm===""){if(uh+=gf.slice(am.index,am.index+1),!td){const ih=new Error(`0 width match regex (${hf})`);throw ih.languageName=hf,ih.badRule=Zf.rule,ih}return 1}if(Zf=am,am.type==="begin")return Yf(am);if(am.type==="illegal"&&!Ef){const ih=new Error('Illegal lexeme "'+dm+'" for mode "'+(Ff.scope||"<unnamed>")+'"');throw ih.mode=Ff,ih}else if(am.type==="end"){const ih=jf(am);if(ih!==NO_MATCH)return ih}if(am.type==="illegal"&&dm==="")return 1;if(Rh>1e5&&Rh>am.index*3)throw new Error("potential infinite loop, way more iterations than matches");return uh+=dm,dm.length}const Wf=Fd(hf);if(!Wf)throw error(rd.replace("{}",hf)),new Error('Unknown language: "'+hf+'"');const Cf=compileLanguage(Wf);let Af="",Ff=wf||Cf;const ph={},Dh=new sd.__emitter(sd);Of();let uh="",Ih=0,Ah=0,Rh=0,Jh=!1;try{if(Wf.__emitTokens)Wf.__emitTokens(gf,Dh
` },Ed]}}return kotlin_1=td,kotlin_1}var lasso_1,hasRequiredLasso;function requireLasso(){if(hasRequiredLasso)return lasso_1;hasRequiredLasso=1;function Ra(qa){const Ja="[a-zA-Z_][ \\ w.]*",ed="< \\ ?(lasso(script)?|=)",td=" \\ ]| \\ ?>",rd={ $ pattern:Ja+"|&[lg]t;",literal:"true false none minimal full all void and or not bw nbw ew new cn ncn lt lte gt gte eq neq rx nrx ft",built_in:"array date decimal duration integer map pair string tag xml null boolean bytes keyword list locale queue set stack staticarray local var variable global data self inherited currentcapture givenblock",keyword:"cache database_names database_schemanames database_tablenames define_tag define_type email_batch encode_set html_comment handle handle_error header if inline iterate ljax_target link link_currentaction link_currentgroup link_currentrecord link_detail link_firstgroup link_firstrecord link_lastgroup link_lastrecord link_nextgroup link_nextrecord link_prevgroup link_prevrecord log loop namespace_using output_none portal private protect records referer referrer repeating resultset rows search_args search_arguments select sort_args sort_arguments thread_atomic value_list while abort case else fail_if fail_ifnot fail if_empty if_false if_null if_true loop_abort loop_continue loop_count params params_up return return_value run_children soap_definetag soap_lastrequest soap_lastresponse tag_name ascending average by define descending do equals frozen group handle_failure import in into join let match max min on order parent protected provide public require returnhome skip split_thread sum take thread to trait type where with yield yieldhome"},od=qa.COMMENT("<!--","-->",{relevance:0}),sd={className:"meta",begin:" \\ [noprocess \\ ]",starts:{end:" \\ [/noprocess \\ ]",returnEnd:!0,contains:[od]}},ld={className:"meta",begin:" \\ [/noprocess|"+ed},cd={className:"symbol",begin:"'"+Ja+"'"},ud=[qa.C_LINE_COMMENT_MODE,qa.C_BLOCK_COMMENT_MODE,qa.inherit(qa.C_NUMBER_MODE,{begin:qa.C_NUMBER_RE+"|(-?infinity|NaN) \\ b"}),qa.inherit(qa.APOS_STRING_MODE,{illegal:null}),qa.inherit(qa.QUOTE_STRING_MODE,{illegal:null}),{className:"string",begin:" ` ",end:" ` "},{variants:[{begin:"[# $ ]"+Ja},{begin:"#",end:" \\ d+",illegal:" \\ W"}]},{className:"type",begin:":: \\ s*",end:Ja,illegal:" \\ W"},{className:"params",variants:[{begin:"-(?!infinity)"+Ja,relevance:0},{begin:"( \\ . \\ . \\ .)"}]},{begin:/(->| \. ) \s */,relevance:0,contains:[cd]},{className:"class",beginKeywords:"define",returnEnd:!0,end:" \\ (|=>",contains:[qa.inherit(qa.TITLE_MODE,{begin:Ja+"(=(?!>))?|[-+*/%](?!>)"})]}];return{name:"Lasso",aliases:["ls","lassoscript"],case_insensitive:!0,keywords:rd,contains:[{className:"meta",begin:td,relevance:0,starts:{end:" \\ [|"+ed,returnEnd:!0,relevance:0,contains:[od]}},sd,ld,{className:"meta",begin:" \\ [no_square_brackets",starts:{end:" \\ [/no_square_brackets \\ ]",keywords:rd,contains:[{className:"meta",begin:td,relevance:0,starts:{end:" \\ [noprocess \\ ]|"+ed,returnEnd:!0,contains:[od]}},sd,ld].concat(ud)}},{className:"meta",begin:" \\ [",relevance:0},{className:"meta",begin:"^#!",end:"lasso9 $ ",relevance:10}].concat(ud)}}return lasso_1=Ra,lasso_1}var latex_1,hasRequiredLatex;function requireLatex(){if(hasRequiredLatex)return latex_1;hasRequiredLatex=1;function Ra(qa){const ed=qa.regex.either(...["(?:NeedsTeXFormat|RequirePackage|GetIdInfo)","Provides(?:Expl)?(?:Package|Class|File)","(?:DeclareOption|ProcessOptions)","(?:documentclass|usepackage|input|include)","makeat(?:letter|other)","ExplSyntax(?:On|Off)","(?:new|renew|provide)?command","(?:re)newenvironment","(?:New|Renew|Provide|Declare)(?:Expandable)?DocumentCommand","(?:New|Renew|Provide|Declare)DocumentEnvironment","(?:(?:e|g|x)?def|let)","(?:begin|end)","(?:part|chapter|(?:sub){0,2}section|(?:sub)?paragraph)","caption","(?:label|(?:eq|page|name)?ref|(?:paren|foot|super)?cite)","(?:alpha|beta|[Gg]amma|[Dd]elta|(?:var)?epsilon|zeta|eta|[Tt]heta|vartheta)","(?:iota|(?:var)?kappa|[Ll]ambda|mu|nu|[Xx]i|[Pp]i|varpi|(?:var)rho)","(?:[Ss]igma|varsigma|tau|[Uu]psilon|[Pp]hi|varphi|chi|[Pp]si|[Oo]mega)","(?:frac|sum|prod|lim|infty|times|sqrt|leq|geq|left|right|middl
] ` ,Ed={scope:"string",variants:[ud,cd,_d,yd]},Td={scope:"number",variants:[{begin:" \\ b0[bB][01]+(?:_[01]+)* \\ b"},{begin:" \\ b0[oO][0-7]+(?:_[0-7]+)* \\ b"},{begin:" \\ b0[xX][ \\ da-fA-F]+(?:_[ \\ da-fA-F]+)* \\ b"},{begin:"(?: \\ b \\ d+(?:_ \\ d+)*( \\ .(?: \\ d+(?:_ \\ d+)*))?| \\ B \\ . \\ d+)(?:[eE][+-]? \\ d+)?"}],relevance:0},Id=["false","null","true"],Ad=["__CLASS__","__DIR__","__FILE__","__FUNCTION__","__COMPILER_HALT_OFFSET__","__LINE__","__METHOD__","__NAMESPACE__","__TRAIT__","die","echo","exit","include","include_once","print","require","require_once","array","abstract","and","as","binary","bool","boolean","break","callable","case","catch","class","clone","const","continue","declare","default","do","double","else","elseif","empty","enddeclare","endfor","endforeach","endif","endswitch","endwhile","enum","eval","extends","final","finally","float","for","foreach","from","global","goto","if","implements","instanceof","insteadof","int","integer","interface","isset","iterable","list","match|0","mixed","new","never","object","or","private","protected","public","readonly","real","return","string","switch","throw","trait","try","unset","use","var","void","while","xor","yield"],Nd=["Error|0","AppendIterator","ArgumentCountError","ArithmeticError","ArrayIterator","ArrayObject","AssertionError","BadFunctionCallException","BadMethodCallException","CachingIterator","CallbackFilterIterator","CompileError","Countable","DirectoryIterator","DivisionByZeroError","DomainException","EmptyIterator","ErrorException","Exception","FilesystemIterator","FilterIterator","GlobIterator","InfiniteIterator","InvalidArgumentException","IteratorIterator","LengthException","LimitIterator","LogicException","MultipleIterator","NoRewindIterator","OutOfBoundsException","OutOfRangeException","OuterIterator","OverflowException","ParentIterator","ParseError","RangeException","RecursiveArrayIterator","RecursiveCachingIterator","RecursiveCallbackFilterIterator","RecursiveDirectoryIterator","RecursiveFilterIterator","RecursiveIterator","RecursiveIteratorIterator","RecursiveRegexIterator","RecursiveTreeIterator","RegexIterator","RuntimeException","SeekableIterator","SplDoublyLinkedList","SplFileInfo","SplFileObject","SplFixedArray","SplHeap","SplMaxHeap","SplMinHeap","SplObjectStorage","SplObserver","SplPriorityQueue","SplQueue","SplStack","SplSubject","SplTempFileObject","TypeError","UnderflowException","UnexpectedValueException","UnhandledMatchError","ArrayAccess","BackedEnum","Closure","Fiber","Generator","Iterator","IteratorAggregate","Serializable","Stringable","Throwable","Traversable","UnitEnum","WeakReference","WeakMap","Directory","__PHP_Incomplete_Class","parent","php_user_filter","self","static","stdClass"],Rd={keyword:Ad,literal:(Zd=>{const Xd=[];return Zd.forEach(df=>{Xd.push(df),df.toLowerCase()===df?Xd.push(df.toUpperCase()):Xd.push(df.toLowerCase())}),Xd})(Id),built_in:Nd},Md=Zd=>Zd.map(Xd=>Xd.replace(/ \| \d + $ /,"")),Bd={variants:[{match:[/new/,Ja.concat(gd,"+"),Ja.concat("(?!",Md(Nd).join(" \\ b|")," \\ b)"),rd],scope:{1:"keyword",4:"title.class"}}]},jd=Ja.concat(td," \\ b(?! \\ ()"),Vd={variants:[{match:[Ja.concat(/::/,Ja.lookahead(/(?!class \b )/)),jd],scope:{2:"variable.constant"}},{match:[/::/,/class/],scope:{2:"variable.language"}},{match:[rd,Ja.concat(/::/,Ja.lookahead(/(?!class \b )/)),jd],scope:{1:"title.class",3:"variable.constant"}},{match:[rd,Ja.concat("::",Ja.lookahead(/(?!class \b )/))],scope:{1:"title.class"}},{match:[rd,/::/,/class/],scope:{1:"title.class",3:"variable.language"}}]},Fd={scope:"attr",match:Ja.concat(td,Ja.lookahead(":"),Ja.lookahead(/(?!::)/))},Ud={relevance:0,begin:/ \( /,end:/ \) /,keywords:Rd,contains:[Fd,od,Vd,qa.C_BLOCK_COMMENT_MODE,Ed,Td,Bd]},qd={relevance:0,match:[/ \b /,Ja.concat("(?!fn \\ b|function \\ b|",Md(Ad).join(" \\ b|"),"|",Md(Nd).join(" \\ b|")," \\ b)"),td,Ja.concat(gd,"*"),Ja.lookahead(/(?= \( )/)],scope:{3:"title.function.invoke"},contains:[Ud]};Ud.contains.push(qd);const Wd=[Fd,Vd,qa.C_BLOCK_COMMENT_MODE,Ed,Td,Bd],Qd={begin:Ja.concat(/# \[ \s */,rd),beginScope:"meta",end:/]/,endScope:"meta",keywords:{literal:Id,keyword:["new","array"]},contains:[{begi
] * ; ` ,relevance:0},{begin:"[vp][0-9]+"}]}}return smali_1=Ra,smali_1}var smalltalk_1,hasRequiredSmalltalk;function requireSmalltalk(){if(hasRequiredSmalltalk)return smalltalk_1;hasRequiredSmalltalk=1;function Ra(qa){const Ja="[a-z][a-zA-Z0-9_]*",ed={className:"string",begin:" \\ $ .{1}"},td={className:"symbol",begin:"#"+qa.UNDERSCORE_IDENT_RE};return{name:"Smalltalk",aliases:["st"],keywords:["self","super","nil","true","false","thisContext"],contains:[qa.COMMENT('"','"'),qa.APOS_STRING_MODE,{className:"type",begin:" \\ b[A-Z][A-Za-z0-9_]*",relevance:0},{begin:Ja+":",relevance:0},qa.C_NUMBER_MODE,td,ed,{begin:" \\ |[ ]*"+Ja+"([ ]+"+Ja+")*[ ]* \\ |",returnBegin:!0,end:/ \| /,illegal:/ \S /,contains:[{begin:"( \\ |[ ]*)?"+Ja}]},{begin:"# \\ (",end:" \\ )",contains:[qa.APOS_STRING_MODE,ed,qa.C_NUMBER_MODE,td]}]}}return smalltalk_1=Ra,smalltalk_1}var sml_1,hasRequiredSml;function requireSml(){if(hasRequiredSml)return sml_1;hasRequiredSml=1;function Ra(qa){return{name:"SML (Standard ML)",aliases:["ml"],keywords:{ $ pattern:"[a-z_] \\ w*!?",keyword:"abstype and andalso as case datatype do else end eqtype exception fn fun functor handle if in include infix infixr let local nonfix of op open orelse raise rec sharing sig signature struct structure then type val with withtype where while",built_in:"array bool char exn int list option order real ref string substring vector unit word",literal:"true false NONE SOME LESS EQUAL GREATER nil"},illegal:/ \/ \/ |>>/,contains:[{className:"literal",begin:/ \[ ( \| \| )? \] | \( \) /,relevance:0},qa.COMMENT(" \\ ( \\ *"," \\ * \\ )",{contains:["self"]}),{className:"symbol",begin:"'[A-Za-z_](?!')[ \\ w']*"},{className:"type",begin:" ` [ A - Z ] [ \ \ w ']*"},{className:"type",begin:"\\b[A-Z][\\w' ] * ",relevance:0},{begin:" [ a - z _ ] \ \ w * '[\\w' ] * "},qa.inherit(qa.APOS_STRING_MODE,{className:" string ",relevance:0}),qa.inherit(qa.QUOTE_STRING_MODE,{illegal:null}),{className:" number ",begin:" \ \ b ( 0 [ xX ] [ a - fA - F0 - 9_ ] + [ Lln ] ? | 0 [ oO ] [ 0 - 7_ ] + [ Lln ] ? | 0 [ bB ] [ 01_ ] + [ Lln ] ? | [ 0 - 9 ] [ 0 - 9_ ] * ( [ Lln ] | ( \ \ . [ 0 - 9_ ] * ) ? ( [ eE ] [ - + ] ? [ 0 - 9_ ] + ) ? ) ? ) ",relevance:0},{begin:/[-=]>/}]}}return sml_1=Ra,sml_1}var sqf_1,hasRequiredSqf;function requireSqf(){if(hasRequiredSqf)return sqf_1;hasRequiredSqf=1;function Ra(qa){const Ja={className:" variable ",begin:/\b_+[a-zA-Z]\w*/},ed={className:" title ",begin:/[a-zA-Z][a-zA-Z_0-9]*_fnc_[a-zA-Z_0-9]+/},td={className:" string ",variants:[{begin:'" ',end:' "',contains:[{begin:'" "',relevance:0}]},{begin:" '",end:"' ",contains:[{begin:" '' ",relevance:0}]}]},rd=[" break "," breakWith "," breakOut "," breakTo "," case "," catch "," continue "," continueWith "," default "," do "," else "," exit "," exitWith "," for "," forEach "," from "," if "," local "," private "," switch "," step "," then "," throw "," to "," try "," waitUntil "," while "," with "],od=[" blufor "," civilian "," configNull "," controlNull "," displayNull "," diaryRecordNull "," east "," endl "," false "," grpNull "," independent "," lineBreak "," locationNull "," nil "," objNull "," opfor "," pi "," resistance "," scriptNull "," sideAmbientLife "," sideEmpty "," sideEnemy "," sideFriendly "," sideLogic "," sideUnknown "," taskNull "," teamMemberNull "," true "," west "],sd=[" abs "," accTime "," acos "," action "," actionIDs "," actionKeys "," actionKeysEx "," actionKeysImages "," actionKeysNames "," actionKeysNamesArray "," actionName "," actionParams "," activateAddons "," activatedAddons "," activateKey "," activeTitleEffectParams "," add3DENConnection "," add3DENEventHandler "," add3DENLayer "," addAction "," addBackpack "," addBackpackCargo "," addBackpackCargoGlobal "," addBackpackGlobal "," addBinocularItem "," addCamShake "," addCuratorAddons "," addCuratorCameraArea "," addCuratorEditableObjects "," addCuratorEditingArea "," addCuratorPoints "," addEditorObject "," addEventHandler "," addForce "," addForceGeneratorRTD "," addGoggles "," addGroupIcon "," addHandgunItem "," addHeadgear "," addItem "," addItemCargo "," addItemCargoGlobal "," addItemPool "," addItemToBackpack "," addItemToUniform "," addItemToVest "," addLiveStats "," addMagazine "," addMagazineAmmoCargo "," addMagazineCargo "," addMagazineCargoGlobal "," addMagazineGlobal "," addMagazinePool "," addMagazines "," addMagazineTurret "," addMenu "," addMenuItem "," addMissionEventHandler "," addMPEventHandler "," addMusicEventHandler "," addonFiles "," addOwnedMine "," addPlayerSc
2024-08-27 22:31:52 +08:00
] * ? "'`},{begin:`" [ ^ \ r
2024-08-31 11:28:56 +08:00
"]*" ` }]},{className:"built_in",variants:[{begin:" \\ b(abs|acos|asin|atan|atan2|atanh|ceil|cloglog|comb|cos|digamma|exp|floor|invcloglog|invlogit|ln|lnfact|lnfactorial|lngamma|log|log10|max|min|mod|reldif|round|sign|sin|sqrt|sum|tan|tanh|trigamma|trunc|betaden|Binomial|binorm|binormal|chi2|chi2tail|dgammapda|dgammapdada|dgammapdadx|dgammapdx|dgammapdxdx|F|Fden|Ftail|gammaden|gammap|ibeta|invbinomial|invchi2|invchi2tail|invF|invFtail|invgammap|invibeta|invnchi2|invnFtail|invnibeta|invnorm|invnormal|invttail|nbetaden|nchi2|nFden|nFtail|nibeta|norm|normal|normalden|normd|npnchi2|tden|ttail|uniform|abbrev|char|index|indexnot|length|lower|ltrim|match|plural|proper|real|regexm|regexr|regexs|reverse|rtrim|string|strlen|strlower|strltrim|strmatch|strofreal|strpos|strproper|strreverse|strrtrim|strtrim|strupper|subinstr|subinword|substr|trim|upper|word|wordcount|_caller|autocode|byteorder|chop|clip|cond|e|epsdouble|epsfloat|group|inlist|inrange|irecode|matrix|maxbyte|maxdouble|maxfloat|maxint|maxlong|mi|minbyte|mindouble|minfloat|minint|minlong|missing|r|recode|replay|return|s|scalar|d|date|day|dow|doy|halfyear|mdy|month|quarter|week|year|d|daily|dofd|dofh|dofm|dofq|dofw|dofy|h|halfyearly|hofd|m|mofd|monthly|q|qofd|quarterly|tin|twithin|w|weekly|wofd|y|yearly|yh|ym|yofd|yq|yw|cholesky|colnumb|colsof|corr|det|diag|diag0cnt|el|get|hadamard|I|inv|invsym|issym|issymmetric|J|matmissing|matuniform|mreldif|nullmat|rownumb|rowsof|sweep|syminv|trace|vec|vecdiag)(?= \\ ()"}]},qa.COMMENT("^[ ]* \\ *.* $ ",!1),qa.C_LINE_COMMENT_MODE,qa.C_BLOCK_COMMENT_MODE]}}return stata_1=Ra,stata_1}var step21_1,hasRequiredStep21;function requireStep21(){if(hasRequiredStep21)return step21_1;hasRequiredStep21=1;function Ra(qa){return{name:"STEP Part 21",aliases:["p21","step","stp"],case_insensitive:!0,keywords:{ $ pattern:"[A-Z_][A-Z0-9_.]*",keyword:["HEADER","ENDSEC","DATA"]},contains:[{className:"meta",begin:"ISO-10303-21;",relevance:10},{className:"meta",begin:"END-ISO-10303-21;",relevance:10},qa.C_LINE_COMMENT_MODE,qa.C_BLOCK_COMMENT_MODE,qa.COMMENT("/ \\ * \\ *!"," \\ */"),qa.C_NUMBER_MODE,qa.inherit(qa.APOS_STRING_MODE,{illegal:null}),qa.inherit(qa.QUOTE_STRING_MODE,{illegal:null}),{className:"string",begin:"'",end:"'"},{className:"symbol",variants:[{begin:"#",end:" \\ d+",illegal:" \\ W"}]}]}}return step21_1=Ra,step21_1}var stylus_1,hasRequiredStylus;function requireStylus(){if(hasRequiredStylus)return stylus_1;hasRequiredStylus=1;const Ra=cd=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:cd.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4})) \b /},FUNCTION_DISPATCH:{className:"built_in",begin:/[ \w -]+(?= \( )/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/ \[ /,end:/ \] /,illegal:" $ ",contains:[cd.APOS_STRING_MODE,cd.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:cd.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),qa=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],Ja=["defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],ed=[...qa,...Ja],td=["any
2024-08-27 22:31:52 +08:00
( multipart ) ? ` ,end: ` \ \ ]
2024-08-31 11:28:56 +08:00
` },{className:"string",begin:" \\ d{4}- \\ d{2}- \\ d{2}( \\ s+) \\ d{2}: \\ d{2}: \\ d{2}. \\ d+Z"},{className:"string",begin:"( \\ +|-) \\ d+"},{className:"keyword",relevance:10,variants:[{begin:"^(test|testing|success|successful|failure|error|skip|xfail|uxsuccess)(:?) \\ s+(test)?"},{begin:"^progress(:?)( \\ s+)?(pop|push)?"},{begin:"^tags:"},{begin:"^time:"}]}]}}return subunit_1=Ra,subunit_1}var swift_1,hasRequiredSwift;function requireSwift(){if(hasRequiredSwift)return swift_1;hasRequiredSwift=1;function Ra(Vd){return Vd?typeof Vd=="string"?Vd:Vd.source:null}function qa(Vd){return Ja("(?=",Vd,")")}function Ja(...Vd){return Vd.map(Ud=>Ra(Ud)).join("")}function ed(Vd){const Fd=Vd[Vd.length-1];return typeof Fd=="object"&&Fd.constructor===Object?(Vd.splice(Vd.length-1,1),Fd):{}}function td(...Vd){return"("+(ed(Vd).capture?"":"?:")+Vd.map(qd=>Ra(qd)).join("|")+")"}const rd=Vd=>Ja(/ \b /,Vd,/ \w $ /.test(Vd)?/ \b /:/ \B /),od=["Protocol","Type"].map(rd),sd=["init","self"].map(rd),ld=["Any","Self"],cd=["actor","any","associatedtype","async","await",/as \? /,/as!/,"as","borrowing","break","case","catch","class","consume","consuming","continue","convenience","copy","default","defer","deinit","didSet","distributed","do","dynamic","each","else","enum","extension","fallthrough",/fileprivate \( set \) /,"fileprivate","final","for","func","get","guard","if","import","indirect","infix",/init \? /,/init!/,"inout",/internal \( set \) /,"internal","in","is","isolated","nonisolated","lazy","let","macro","mutating","nonmutating",/open \( set \) /,"open","operator","optional","override","package","postfix","precedencegroup","prefix",/private \( set \) /,"private","protocol",/public \( set \) /,"public","repeat","required","rethrows","return","set","some","static","struct","subscript","super","switch","throws","throw",/try \? /,/try!/,"try","typealias",/unowned \( safe \) /,/unowned \( unsafe \) /,"unowned","var","weak","where","while","willSet"],ud=["false","nil","true"],_d=["assignment","associativity","higherThan","left","lowerThan","none","right"],yd=["#colorLiteral","#column","#dsohandle","#else","#elseif","#endif","#error","#file","#fileID","#fileLiteral","#filePath","#function","#if","#imageLiteral","#keyPath","#line","#selector","#sourceLocation","#warning"],gd=["abs","all","any","assert","assertionFailure","debugPrint","dump","fatalError","getVaList","isKnownUniquelyReferenced","max","min","numericCast","pointwiseMax","pointwiseMin","precondition","preconditionFailure","print","readLine","repeatElement","sequence","stride","swap","swift_unboxFromSwiftValueWithType","transcode","type","unsafeBitCast","unsafeDowncast","withExtendedLifetime","withUnsafeMutablePointer","withUnsafePointer","withVaList","withoutActuallyEscaping","zip"],Ed=td(/[/= \- +!*%<>&|^~?]/,/[ \u 00A1- \u 00A7]/,/[ \u 00A9 \u 00AB]/,/[ \u 00AC \u 00AE]/,/[ \u 00B0 \u 00B1]/,/[ \u 00B6 \u 00BB \u 00BF \u 00D7 \u 00F7]/,/[ \u 2016- \u 2017]/,/[ \u 2020- \u 2027]/,/[ \u 2030- \u 203E]/,/[ \u 2041- \u 2053]/,/[ \u 2055- \u 205E]/,/[ \u 2190- \u 23FF]/,/[ \u 2500- \u 2775]/,/[ \u 2794- \u 2BFF]/,/[ \u 2E00- \u 2E7F]/,/[ \u 3001- \u 3003]/,/[ \u 3008- \u 3020]/,/[ \u 3030]/),Td=td(Ed,/[ \u 0300- \u 036F]/,/[ \u 1DC0- \u 1DFF]/,/[ \u 20D0- \u 20FF]/,/[ \u FE00- \u FE0F]/,/[ \u FE20- \u FE2F]/),Id=Ja(Ed,Td,"*"),Ad=td(/[a-zA-Z_]/,/[ \u 00A8 \u 00AA \u 00AD \u 00AF \u 00B2- \u 00B5 \u 00B7- \u 00BA]/,/[ \u 00BC- \u 00BE \u 00C0- \u 00D6 \u 00D8- \u 00F6 \u 00F8- \u 00FF]/,/[ \u 0100- \u 02FF \u 0370- \u 167F \u 1681- \u 180D \u 180F- \u 1DBF]/,/[ \u 1E00- \u 1FFF]/,/[ \u 200B- \u 200D \u 202A- \u 202E \u 203F- \u 2040 \u 2054 \u 2060- \u 206F]/,/[ \u 2070- \u 20CF \u 2100- \u 218F \u 2460- \u 24FF \u 2776- \u 2793]/,/[ \u 2C00- \u 2DFF \u 2E80- \u 2FFF]/,/[ \u 3004- \u 3007 \u 3021- \u 302F \u 3031- \u 303F \u 3040- \u D7FF]/,/[ \u F900- \u FD3D \u FD40- \u FDCF \u FDF0- \u FE1F \u FE30- \u FE44]/,/[ \u FE47- \u FEFE \u FF00- \u FFFD]/),Nd=td(Ad,/ \d /,/[ \u 0300- \u 036F \u 1DC0- \u 1DFF \u 20D0- \u 20FF \u FE20- \u FE2F]/),kd=Ja(Ad,Nd,"*"),Rd=Ja(/[A-Z]/,Nd,"*"),Md=["attached","autoclosure",Ja(/convention \( /,td("swift","block","c"),/ \) /),"discardableResult","dynamicCallable","dynamicMemberLookup","escaping","freestanding","frozen","GKInspectable","IBAction","IBDesignable","IBInspectable","IBOutlet","IBSegueAction","inlinable","main","nonobjc","NSApplicationMain","NSCopying","N
2024-08-27 22:31:52 +08:00
c - 2.7 , 0 , - 7.17 , - 2.7 , - 13.5 , - 8 c - 5.8 , - 5.3 , - 9.5 , - 10 , - 9.5 , - 14
c0 , - 2 , 0.3 , - 3.3 , 1 , - 4 c1 . 3 , - 2.7 , 23.83 , - 20.7 , 67.5 , - 54
c44 . 2 , - 33.3 , 65.8 , - 50.3 , 66.5 , - 51 c1 . 3 , - 1.3 , 3 , - 2 , 5 , - 2 c4 . 7 , 0 , 8.7 , 3.3 , 12 , 10
s173 , 378 , 173 , 378 c0 . 7 , 0 , 35.3 , - 71 , 104 , - 213 c68 . 7 , - 142 , 137.5 , - 285 , 206.5 , - 429
c69 , - 144 , 104.5 , - 217.7 , 106.5 , - 221
2024-08-30 15:19:18 +08:00
l ` +qa/2.075+" -"+qa+ `
2024-08-27 22:31:52 +08:00
c5 . 3 , - 9.3 , 12 , - 14 , 20 , - 14
2024-08-30 15:19:18 +08:00
H400000v ` +(40+qa)+ ` H845 . 2724
2024-08-27 22:31:52 +08:00
s - 225.272 , 467 , - 225.272 , 467 s - 235 , 486 , - 235 , 486 c - 2.7 , 4.7 , - 9 , 7 , - 19 , 7
c - 6 , 0 , - 10 , - 1 , - 12 , - 3 s - 194 , - 422 , - 194 , - 422 s - 65 , 47 , - 65 , 47 z
2024-08-30 15:19:18 +08:00
M ` +(834+qa)+" "+Ja+"h400000v"+(40+qa)+"h-400000z"},sqrtSize1=function(qa,Ja){return"M263,"+(601+qa+Ja)+ ` c0 . 7 , 0 , 18 , 39.7 , 52 , 119
2024-08-27 22:31:52 +08:00
c34 , 79.3 , 68.167 , 158.7 , 102.5 , 238 c34 . 3 , 79.3 , 51.8 , 119.3 , 52.5 , 120
c340 , - 704.7 , 510.7 , - 1060.3 , 512 , - 1067
2024-08-30 15:19:18 +08:00
l ` +qa/2.084+" -"+qa+ `
2024-08-27 22:31:52 +08:00
c4 . 7 , - 7.3 , 11 , - 11 , 19 , - 11
2024-08-30 15:19:18 +08:00
H40000v ` +(40+qa)+ ` H1012 . 3
2024-08-27 22:31:52 +08:00
s - 271.3 , 567 , - 271.3 , 567 c - 38.7 , 80.7 , - 84 , 175 , - 136 , 283 c - 52 , 108 , - 89.167 , 185.3 , - 111.5 , 232
c - 22.3 , 46.7 , - 33.8 , 70.3 , - 34.5 , 71 c - 4.7 , 4.7 , - 12.3 , 7 , - 23 , 7 s - 12 , - 1 , - 12 , - 1
s - 109 , - 253 , - 109 , - 253 c - 72.7 , - 168 , - 109.3 , - 252 , - 110 , - 252 c - 10.7 , 8 , - 22 , 16.7 , - 34 , 26
c - 22 , 17.3 , - 33.3 , 26 , - 34 , 26 s - 26 , - 26 , - 26 , - 26 s76 , - 59 , 76 , - 59 s76 , - 60 , 76 , - 60 z
2024-08-30 15:19:18 +08:00
M ` +(1001+qa)+" "+Ja+"h400000v"+(40+qa)+"h-400000z"},sqrtSize2=function(qa,Ja){return"M983 "+(10+qa+Ja)+ `
l ` +qa/3.13+" -"+qa+ `
c4 , - 6.7 , 10 , - 10 , 18 , - 10 H400000v ` +(40+qa)+ `
2024-08-27 22:31:52 +08:00
H1013 . 1 s - 83.4 , 268 , - 264.1 , 840 c - 180.7 , 572 , - 277 , 876.3 , - 289 , 913 c - 4.7 , 4.7 , - 12.7 , 7 , - 24 , 7
s - 12 , 0 , - 12 , 0 c - 1.3 , - 3.3 , - 3.7 , - 11.7 , - 7 , - 25 c - 35.3 , - 125.3 , - 106.7 , - 373.3 , - 214 , - 744
c - 10 , 12 , - 21 , 25 , - 33 , 39 s - 32 , 39 , - 32 , 39 c - 6 , - 5.3 , - 15 , - 14 , - 27 , - 26 s25 , - 30 , 25 , - 30
c26 . 7 , - 32.7 , 52 , - 63 , 76 , - 91 s52 , - 60 , 52 , - 60 s208 , 722 , 208 , 722
c56 , - 175.3 , 126.3 , - 397.3 , 211 , - 666 c84 . 7 , - 268.7 , 153.8 , - 488.2 , 207.5 , - 658.5
c53 . 7 , - 170.3 , 84.5 , - 266.8 , 92.5 , - 289.5 z
2024-08-30 15:19:18 +08:00
M ` +(1001+qa)+" "+Ja+"h400000v"+(40+qa)+"h-400000z"},sqrtSize3=function(qa,Ja){return"M424,"+(2398+qa+Ja)+ `
2024-08-27 22:31:52 +08:00
c - 1.3 , - 0.7 , - 38.5 , - 172 , - 111.5 , - 514 c - 73 , - 342 , - 109.8 , - 513.3 , - 110.5 , - 514
c0 , - 2 , - 10.7 , 14.3 , - 32 , 49 c - 4.7 , 7.3 , - 9.8 , 15.7 , - 15.5 , 25 c - 5.7 , 9.3 , - 9.8 , 16 , - 12.5 , 20
s - 5 , 7 , - 5 , 7 c - 4 , - 3.3 , - 8.3 , - 7.7 , - 13 , - 13 s - 13 , - 13 , - 13 , - 13 s76 , - 122 , 76 , - 122 s77 , - 121 , 77 , - 121
s209 , 968 , 209 , 968 c0 , - 2 , 84.7 , - 361.7 , 254 , - 1079 c169 . 3 , - 717.3 , 254.7 , - 1077.7 , 256 , - 1081
2024-08-30 15:19:18 +08:00
l ` +qa/4.223+" -"+qa+ ` c4 , - 6.7 , 10 , - 10 , 18 , - 10 H400000
v ` +(40+qa)+ ` H1014 . 6
2024-08-27 22:31:52 +08:00
s - 87.3 , 378.7 , - 272.6 , 1166 c - 185.3 , 787.3 , - 279.3 , 1182.3 , - 282 , 1185
c - 2 , 6 , - 10 , 9 , - 24 , 9
2024-08-30 15:19:18 +08:00
c - 8 , 0 , - 12 , - 0.7 , - 12 , - 2 z M ` +(1001+qa)+" "+Ja+ `
h400000v ` +(40+qa)+"h-400000z"},sqrtSize4=function(qa,Ja){return"M473,"+(2713+qa+Ja)+ `
c339 . 3 , - 1799.3 , 509.3 , - 2700 , 510 , - 2702 l ` +qa/5.298+" -"+qa+ `
c3 . 3 , - 7.3 , 9.3 , - 11 , 18 , - 11 H400000v ` +(40+qa)+ ` H1017 . 7
2024-08-27 22:31:52 +08:00
s - 90.5 , 478 , - 276.2 , 1466 c - 185.7 , 988 , - 279.5 , 1483 , - 281.5 , 1485 c - 2 , 6 , - 10 , 9 , - 24 , 9
c - 8 , 0 , - 12 , - 0.7 , - 12 , - 2 c0 , - 1.3 , - 5.3 , - 32 , - 16 , - 92 c - 50.7 , - 293.3 , - 119.7 , - 693.3 , - 207 , - 1200
c0 , - 1.3 , - 5.3 , 8.7 , - 16 , 30 c - 10.7 , 21.3 , - 21.3 , 42.7 , - 32 , 64 s - 16 , 33 , - 16 , 33 s - 26 , - 26 , - 26 , - 26
s76 , - 153 , 76 , - 153 s77 , - 151 , 77 , - 151 c0 . 7 , 0.7 , 35.7 , 202 , 105 , 604 c67 . 3 , 400.7 , 102 , 602.7 , 104 ,
2024-08-30 15:19:18 +08:00
606 zM ` +(1001+qa)+" "+Ja+"h400000v"+(40+qa)+"H1017.7z"},phasePath=function(qa){var Ja=qa/2;return"M400000 "+qa+" H0 L"+Ja+" 0 l65 45 L145 "+(qa-80)+" H400000z"},sqrtTall=function(qa,Ja,ed){var td=ed-54-Ja-qa;return"M702 "+(qa+Ja)+"H400000"+(40+qa)+ `
H742v ` +td+ ` l - 4 4 - 4 4 c - . 667.7 - 2 1.5 - 4 2.5 s - 4.167 1.833 - 6.5 2.5 - 5.5 1 - 9.5 1
2024-08-27 22:31:52 +08:00
h - 12 l - 28 - 84 c - 16.667 - 52 - 96.667 - 294.333 - 240 - 727 l - 212 - 643 - 85 170
c - 4 - 3.333 - 8.333 - 7.667 - 13 - 13 l - 13 - 13 l77 - 155 77 - 156 c66 199.333 139 419.667
2024-08-30 15:19:18 +08:00
219 661 l218 661 zM702 ` +Ja+"H400000v"+(40+qa)+"H742z"},sqrtPath=function(qa,Ja,ed){Ja=1e3*Ja;var td="";switch(qa){case"sqrtMain":td=sqrtMain(Ja,hLinePad);break;case"sqrtSize1":td=sqrtSize1(Ja,hLinePad);break;case"sqrtSize2":td=sqrtSize2(Ja,hLinePad);break;case"sqrtSize3":td=sqrtSize3(Ja,hLinePad);break;case"sqrtSize4":td=sqrtSize4(Ja,hLinePad);break;case"sqrtTall":td=sqrtTall(Ja,hLinePad,ed)}return td},innerPath=function(qa,Ja){switch(qa){case"⎜":return"M291 0 H417 V"+Ja+" H291z M291 0 H417 V"+Ja+" H291z";case"∣ ":return"M145 0 H188 V"+Ja+" H145z M145 0 H188 V"+Ja+" H145z";case"∥":return"M145 0 H188 V"+Ja+" H145z M145 0 H188 V"+Ja+" H145z"+("M367 0 H410 V"+Ja+" H367z M367 0 H410 V"+Ja+" H367z");case"⎟":return"M457 0 H583 V"+Ja+" H457z M457 0 H583 V"+Ja+" H457z";case"⎢":return"M319 0 H403 V"+Ja+" H319z M319 0 H403 V"+Ja+" H319z";case"⎥":return"M263 0 H347 V"+Ja+" H263z M263 0 H347 V"+Ja+" H263z";case"⎪":return"M384 0 H504 V"+Ja+" H384z M384 0 H504 V"+Ja+" H384z";case"⏐":return"M312 0 H355 V"+Ja+" H312z M312 0 H355 V"+Ja+" H312z";case"‖":return"M257 0 H300 V"+Ja+" H257z M257 0 H300 V"+Ja+" H257z"+("M478 0 H521 V"+Ja+" H478z M478 0 H521 V"+Ja+" H478z");default:return""}},path={doubleleftarrow: ` M262 157
2024-08-27 22:31:52 +08:00
l10 - 10 c34 - 36 62.7 - 77 86 - 123 3.3 - 8 5 - 13.3 5 - 16 0 - 5.3 - 6.7 - 8 - 20 - 8 - 7.3
0 - 12.2 . 5 - 14.5 1.5 - 2.3 1 - 4.8 4.5 - 7.5 10.5 - 49.3 97.3 - 121.7 169.3 - 217 216 - 28
14 - 57.3 25 - 88 33 - 6.7 2 - 11 3.8 - 13 5.5 - 2 1.7 - 3 4.2 - 3 7.5 s1 5.8 3 7.5
c2 1.7 6.3 3.5 13 5.5 68 17.3 128.2 47.8 180.5 91.5 52.3 43.7 93.8 96.2 124.5
157.5 9.3 8 15.3 12.3 18 13 h6c12 - . 7 18 - 4 18 - 10 0 - 2 - 1.7 - 7 - 5 - 15 - 23.3 - 46 - 52 - 87
- 86 - 123 l - 10 - 10 h399738v - 40 H218c328 0 0 0 0 0 l - 10 - 8 c - 26.7 - 20 - 65.7 - 43 - 117 - 69 2.7
- 2 6 - 3.7 10 - 5 36.7 - 16 72.3 - 37.3 107 - 64 l10 - 8 h399782v - 40 z
m8 0 v40h399730v - 40 zm0 194 v40h399730v - 40 z ` ,doublerightarrow: ` M399738 392 l
- 10 10 c - 34 36 - 62.7 77 - 86 123 - 3.3 8 - 5 13.3 - 5 16 0 5.3 6.7 8 20 8 7.3 0 12.2 - . 5
14.5 - 1.5 2.3 - 1 4.8 - 4.5 7.5 - 10.5 49.3 - 97.3 121.7 - 169.3 217 - 216 28 - 14 57.3 - 25 88
- 33 6.7 - 2 11 - 3.8 13 - 5.5 2 - 1.7 3 - 4.2 3 - 7.5 s - 1 - 5.8 - 3 - 7.5 c - 2 - 1.7 - 6.3 - 3.5 - 13 - 5.5 - 68
- 17.3 - 128.2 - 47.8 - 180.5 - 91.5 - 52.3 - 43.7 - 93.8 - 96.2 - 124.5 - 157.5 - 9.3 - 8 - 15.3 - 12.3 - 18
- 13 h - 6 c - 12 . 7 - 18 4 - 18 10 0 2 1.7 7 5 15 23.3 46 52 87 86 123 l10 10 H0v40h399782
c - 328 0 0 0 0 0 l10 8 c26 . 7 20 65.7 43 117 69 - 2.7 2 - 6 3.7 - 10 5 - 36.7 16 - 72.3 37.3
- 107 64 l - 10 8 H0v40zM0 157 v40h399730v - 40 zm0 194 v40h399730v - 40 z ` ,leftarrow: ` M400000 241 H110l3 - 3 c68 . 7 - 52.7 113.7 - 120
135 - 202 4 - 14.7 6 - 23 6 - 25 0 - 7.3 - 7 - 11 - 21 - 11 - 8 0 - 13.2 . 8 - 15.5 2.5 - 2.3 1.7 - 4.2 5.8
- 5.5 12.5 - 1.3 4.7 - 2.7 10.3 - 4 17 - 12 48.7 - 34.8 92 - 68.5 130 S65 . 3 228.3 18 247
c - 10 4 - 16 7.7 - 18 11 0 8.7 6 14.3 18 17 47.3 18.7 87.8 47 121.5 85 S196 441.3 208
490 c . 7 2 1.3 5 2 9 s1 . 2 6.7 1.5 8 c . 3 1.3 1 3.3 2 6 s2 . 2 4.5 3.5 5.5 c1 . 3 1 3.3
1.8 6 2.5 s6 1 10 1 c14 0 21 - 3.7 21 - 11 0 - 2 - 2 - 10.3 - 6 - 25 - 20 - 79.3 - 65 - 146.7 - 135 - 202
l - 3 - 3 h399890zM100 241 v40h399900v - 40 z ` ,leftbrace: ` M6 548 l - 6 - 6 v - 35 l6 - 11 c56 - 104 135.3 - 181.3 238 - 232 57.3 - 28.7 117
- 45 179 - 50 h399577v120H403c - 43.3 7 - 81 15 - 113 26 - 100.7 33 - 179.7 91 - 237 174 - 2.7
5 - 6 9 - 10 13 - . 7 1 - 7.3 1 - 20 1 H6z ` ,leftbraceunder: ` M0 6 l6 - 6 h17c12 . 688 0 19.313 . 3 20 1 4 4 7.313 8.3 10 13
35.313 51.3 80.813 93.8 136.5 127.5 55.688 33.7 117.188 55.8 184.5 66.5 . 688
0 2 . 3 4 1 18.688 2.7 76 4.3 172 5 h399450v120H429l - 6 - 1 c - 124.688 - 8 - 235 - 61.7
- 331 - 161 C60 . 687 138.7 32.312 99.3 7 54 L0 41 V6z ` ,leftgroup: ` M400000 80
H435C64 80 168.3 229.4 21 260 c - 5.9 1.2 - 18 0 - 18 0 - 2 0 - 3 - 1 - 3 - 3 v - 38 C76 61 257 0
435 0 h399565z ` ,leftgroupunder: ` M400000 262
H435C64 262 168.3 112.6 21 82 c - 5.9 - 1.2 - 18 0 - 18 0 - 2 0 - 3 1 - 3 3 v38c76 158 257 219
435 219 h399565z ` ,leftharpoon: ` M0 267 c . 7 5.3 3 10 7 14 h399993v - 40 H93c3 . 3
- 3.3 10.2 - 9.5 20.5 - 18.5 s17 . 8 - 15.8 22.5 - 20.5 c50 . 7 - 52 88 - 110.3 112 - 175 4 - 11.3 5
- 18.3 3 - 21 - 1.3 - 4 - 7.3 - 6 - 18 - 6 - 8 0 - 13 . 7 - 15 2 s - 4.7 6.7 - 8 16 c - 42 98.7 - 107.3 174.7
- 196 228 - 6.7 4.7 - 10.7 8 - 12 10 - 1.3 2 - 2 5.7 - 2 11 zm100 - 26 v40h399900v - 40 z ` ,leftharpoonplus: ` M0 267 c . 7 5.3 3 10 7 14 h399993v - 40 H93c3 . 3 - 3.3 10.2 - 9.5
20.5 - 18.5 s17 . 8 - 15.8 22.5 - 20.5 c50 . 7 - 52 88 - 110.3 112 - 175 4 - 11.3 5 - 18.3 3 - 21 - 1.3
- 4 - 7.3 - 6 - 18 - 6 - 8 0 - 13 . 7 - 15 2 s - 4.7 6.7 - 8 16 c - 42 98.7 - 107.3 174.7 - 196 228 - 6.7 4.7
- 10.7 8 - 12 10 - 1.3 2 - 2 5.7 - 2 11 zm100 - 26 v40h399900v - 40 zM0 435 v40h400000v - 40 z
m0 0 v40h400000v - 40 z ` ,leftharpoondown: ` M7 241 c - 4 4 - 6.333 8.667 - 7 14 0 5.333 . 667 9 2 11 s5 . 333
5.333 12 10 c90 . 667 54 156 130 196 228 3.333 10.667 6.333 16.333 9 17 2 . 667 5
1 9 1 h5c10 . 667 0 16.667 - 2 18 - 6 2 - 2.667 1 - 9.667 - 3 - 21 - 32 - 87.333 - 82.667 - 157.667
- 152 - 211 l - 3 - 3 h399907v - 40 zM93 281 H400000 v - 40 L7 241 z ` ,leftharpoondownplus: ` M7 435 c - 4 4 - 6.3 8.7 - 7 14 0 5.3 . 7 9 2 11 s5 . 3 5.3 12
10 c90 . 7 54 156 130 196 228 3.3 10.7 6.3 16.3 9 17 2 . 7 5 1 9 1 h5c10 . 7 0 16.7
- 2 18 - 6 2 - 2.7 1 - 9.7 - 3 - 21 - 32 - 87.3 - 82.7 - 157.7 - 152 - 211 l - 3 - 3 h399907v - 40 H7zm93 0
v40h399900v - 40 zM0 241 v40h399900v - 40 zm0 0 v40h399900v - 40 z ` ,lefthook: ` M400000 281 H103s - 33 - 11.2 - 61 - 33.5 S0 197.3 0 164 s14 . 2 - 61.2 42.5
- 83.5 C70 . 8 58.2 104 47 142 47 c16 . 7 0 25 6.7 25 20 0 12 - 8.7 18.7 - 26 20 - 40 3.3
- 68.7 15.7 - 86 37 - 10 12 - 15 25.3 - 15 40 0 22.7 9.8 40.7 29.5 54 19.7 13.3 43.5 21
71.5 23 h399859zM103 281 v - 40 h399897v40z ` ,leftlinesegment: ` M40 281 V428 H0 V94 H40 V241 H400000 v40z
M40 281 V428 H0 V94 H40 V241 H400000 v40z ` ,leftmapsto: ` M40 281 V448H0V74H40V241H400000v40z
M40 281 V448H0V74H40V241H400000v40z ` ,leftToFrom: ` M0 147 h400000v40H0zm0 214 c68 40 115.7 95.7 143 167 h22c15 . 3 0 23
- . 3 23 - 1 0 - 1.3 - 5.3 - 13.7 - 16 - 37 - 18 - 35.3 - 41.3 - 69 - 70 - 101 l - 7 - 8 h399905v - 40 H95l7 - 8
c28 . 7 - 32 52 - 65.7 70 - 101 10.7 - 23.3 16 - 35.7 16 - 37 0 - . 7 - 7.7 - 1 - 23 - 1 h - 22 C115 . 7 265.3
68 321 0 361 zm0 - 174 v - 40 h399900v40zm100 154 v40h399900v - 40 z ` ,longequal: ` M0 50 h400000 v40H0z m0 194 h40000v40H0z
M0 50 h400000 v40H0z m0 194 h40000v40H0z ` ,midbrace: ` M200428 334
c - 100.7 - 8.3 - 195.3 - 44 - 280 - 108 - 55.3 - 42 - 101.7 - 93 - 139 - 153 l - 9 - 14 c - 2.7 4 - 5.7 8.7 - 9 14
- 53.3 86.7 - 123.7 153 - 211 199 - 66.7 36 - 137.3 56.3 - 212 62 H0V214h199568c178 . 3 - 11.7
311.7 - 78.3 403 - 201 6 - 8 9.7 - 12 11 - 12 . 7 - . 7 6.7 - 1 18 - 1 s17 . 3.3 18 1 c1 . 3 0 5 4 11
12 44.7 59.3 101.3 106.3 170 141 s145 . 3 54.3 229 60 h199572v120z ` ,midbraceunder: ` M199572 214
c100 . 7 8.3 195.3 44 280 108 55.3 42 101.7 93 139 153 l9 14 c2 . 7 - 4 5.7 - 8.7 9 - 14
53.3 - 86.7 123.7 - 153 211 - 199 66.7 - 36 137.3 - 56.3 212 - 62 h199568v120H200432c - 178.3
11.7 - 311.7 78.3 - 403 201 - 6 8 - 9.7 12 - 11 12 - . 7.7 - 6.7 1 - 18 1 s - 17.3 - . 3 - 18 - 1 c - 1.3 0
- 5 - 4 - 11 - 12 - 44.7 - 59.3 - 101.3 - 106.3 - 170 - 141 s - 145.3 - 54.3 - 229 - 60 H0V214z ` ,oiintSize1: ` M512 . 6 71.6 c272 . 6 0 320.3 106.8 320.3 178.2 0 70.8 - 47.7 177.6
- 320.3 177.6 S193 . 1 320.6 193.1 249.8 c0 - 71.4 46.9 - 178.2 319.5 - 178.2 z
m368 . 1 178.2 c0 - 86.4 - 60.9 - 215.4 - 368.1 - 215.4 - 306.4 0 - 367.3 129 - 367.3 215.4 0 85.8
60.9 214.8 367.3 214.8 307.2 0 368.1 - 129 368.1 - 214.8 z ` ,oiintSize2: ` M757 . 8 100.1 c384 . 7 0 451.1 137.6 451.1 230 0 91.3 - 66.4 228.8
- 451.1 228.8 - 386.3 0 - 452.7 - 137.5 - 452.7 - 228.8 0 - 92.4 66.4 - 230 452.7 - 230 z
m502 . 4 230 c0 - 111.2 - 82.4 - 277.2 - 502.4 - 277.2 s - 504 166 - 504 277.2
c0 110 84 276 504 276 s502 . 4 - 166 502.4 - 276 z ` ,oiiintSize1: ` M681 . 4 71.6 c408 . 9 0 480.5 106.8 480.5 178.2 0 70.8 - 71.6 177.6
- 480.5 177.6 S202 . 1 320.6 202.1 249.8 c0 - 71.4 70.5 - 178.2 479.3 - 178.2 z
m525 . 8 178.2 c0 - 86.4 - 86.8 - 215.4 - 525.7 - 215.4 - 437.9 0 - 524.7 129 - 524.7 215.4 0
85.8 86.8 214.8 524.7 214.8 438.9 0 525.7 - 129 525.7 - 214.8 z ` ,oiiintSize2: ` M1021 . 2 53 c603 . 6 0 707.8 165.8 707.8 277.2 0 110 - 104.2 275.8
- 707.8 275.8 - 606 0 - 710.2 - 165.8 - 710.2 - 275.8 C311 218.8 415.2 53 1021.2 53 z
m770 . 4 277.1 c0 - 131.2 - 126.4 - 327.6 - 770.5 - 327.6 S248 . 4 198.9 248.4 330.1
c0 130 128.8 326.4 772.7 326.4 s770 . 5 - 196.4 770.5 - 326.4 z ` ,rightarrow: ` M0 241 v40h399891c - 47.3 35.3 - 84 78 - 110 128
- 16.7 32 - 27.7 63.7 - 33 95 0 1.3 - . 2 2.7 - . 5 4 - . 3 1.3 - . 5 2.3 - . 5 3 0 7.3 6.7 11 20
11 8 0 13.2 - . 8 15.5 - 2.5 2.3 - 1.7 4.2 - 5.5 5.5 - 11.5 2 - 13.3 5.7 - 27 11 - 41 14.7 - 44.7
39 - 84.5 73 - 119.5 s73 . 7 - 60.2 119 - 75.5 c6 - 2 9 - 5.7 9 - 11 s - 3 - 9 - 9 - 11 c - 45.3 - 15.3 - 85
- 40.5 - 119 - 75.5 s - 58.3 - 74.8 - 73 - 119.5 c - 4.7 - 14 - 8.3 - 27.3 - 11 - 40 - 1.3 - 6.7 - 3.2 - 10.8 - 5.5
- 12.5 - 2.3 - 1.7 - 7.5 - 2.5 - 15.5 - 2.5 - 14 0 - 21 3.7 - 21 11 0 2 2 10.3 6 25 20.7 83.3 67
151.7 139 205 zm0 0 v40h399900v - 40 z ` ,rightbrace: ` M400000 542 l
- 6 6 h - 17 c - 12.7 0 - 19.3 - . 3 - 20 - 1 - 4 - 4 - 7.3 - 8.3 - 10 - 13 - 35.3 - 51.3 - 80.8 - 93.8 - 136.5 - 127.5
s - 117.2 - 55.8 - 184.5 - 66.5 c - . 7 0 - 2 - . 3 - 4 - 1 - 18.7 - 2.7 - 76 - 4.3 - 172 - 5 H0V214h399571l6 1
c124 . 7 8 235 61.7 331 161 31.3 33.3 59.7 72.7 85 118 l7 13 v35z ` ,rightbraceunder: ` M399994 0 l6 6 v35l - 6 11 c - 56 104 - 135.3 181.3 - 238 232 - 57.3
28.7 - 117 45 - 179 50 H - 300 V214h399897c43 . 3 - 7 81 - 15 113 - 26 100.7 - 33 179.7 - 91 237
- 174 2.7 - 5 6 - 9 10 - 13 . 7 - 1 7.3 - 1 20 - 1 h17z ` ,rightgroup: ` M0 80 h399565c371 0 266.7 149.4 414 180 5.9 1.2 18 0 18 0 2 0
3 - 1 3 - 3 v - 38 c - 76 - 158 - 257 - 219 - 435 - 219 H0z ` ,rightgroupunder: ` M0 262 h399565c371 0 266.7 - 149.4 414 - 180 5.9 - 1.2 18 0 18
0 2 0 3 1 3 3 v38c - 76 158 - 257 219 - 435 219 H0z ` ,rightharpoon: ` M0 241 v40h399993c4 . 7 - 4.7 7 - 9.3 7 - 14 0 - 9.3
- 3.7 - 15.3 - 11 - 18 - 92.7 - 56.7 - 159 - 133.7 - 199 - 231 - 3.3 - 9.3 - 6 - 14.7 - 8 - 16 - 2 - 1.3 - 7 - 2 - 15 - 2
- 10.7 0 - 16.7 2 - 18 6 - 2 2.7 - 1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58
69.2 92 94.5 zm0 0 v40h399900v - 40 z ` ,rightharpoonplus: ` M0 241 v40h399993c4 . 7 - 4.7 7 - 9.3 7 - 14 0 - 9.3 - 3.7 - 15.3 - 11
- 18 - 92.7 - 56.7 - 159 - 133.7 - 199 - 231 - 3.3 - 9.3 - 6 - 14.7 - 8 - 16 - 2 - 1.3 - 7 - 2 - 15 - 2 - 10.7 0 - 16.7
2 - 18 6 - 2 2.7 - 1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58 69.2 92 94.5 z
m0 0 v40h399900v - 40 z m100 194 v40h399900v - 40 zm0 0 v40h399900v - 40 z ` ,rightharpoondown: ` M399747 511 c0 7.3 6.7 11 20 11 8 0 13 - . 8 15 - 2.5 s4 . 7 - 6.8
8 - 15.5 c40 - 94 99.3 - 166.3 178 - 217 13.3 - 8 20.3 - 12.3 21 - 13 5.3 - 3.3 8.5 - 5.8 9.5
- 7.5 1 - 1.7 1.5 - 5.2 1.5 - 10.5 s - 2.3 - 10.3 - 7 - 15 H0v40h399908c - 34 25.3 - 64.7 57 - 92 95
- 27.3 38 - 48.7 77.7 - 64 119 - 3.3 8.7 - 5 14 - 5 16 zM0 241 v40h399900v - 40 z ` ,rightharpoondownplus: ` M399747 705 c0 7.3 6.7 11 20 11 8 0 13 - . 8
15 - 2.5 s4 . 7 - 6.8 8 - 15.5 c40 - 94 99.3 - 166.3 178 - 217 13.3 - 8 20.3 - 12.3 21 - 13 5.3 - 3.3
8.5 - 5.8 9.5 - 7.5 1 - 1.7 1.5 - 5.2 1.5 - 10.5 s - 2.3 - 10.3 - 7 - 15 H0v40h399908c - 34 25.3
- 64.7 57 - 92 95 - 27.3 38 - 48.7 77.7 - 64 119 - 3.3 8.7 - 5 14 - 5 16 zM0 435 v40h399900v - 40 z
m0 - 194 v40h400000v - 40 zm0 0 v40h400000v - 40 z ` ,righthook: ` M399859 241 c - 764 0 0 0 0 0 40 - 3.3 68.7 - 15.7 86 - 37 10 - 12 15 - 25.3
15 - 40 0 - 22.7 - 9.8 - 40.7 - 29.5 - 54 - 19.7 - 13.3 - 43.5 - 21 - 71.5 - 23 - 17.3 - 1.3 - 26 - 8 - 26 - 20 0
- 13.3 8.7 - 20 26 - 20 38 0 71 11.2 99 33.5 0 0 7 5.6 21 16.7 14 11.2 21 33.5 21
66.8 s - 14 61.2 - 42 83.5 c - 28 22.3 - 61 33.5 - 99 33.5 L0 241 z M0 281 v - 40 h399859v40z ` ,rightlinesegment: ` M399960 241 V94 h40 V428 h - 40 V281 H0 v - 40 z
M399960 241 V94 h40 V428 h - 40 V281 H0 v - 40 z ` ,rightToFrom: ` M400000 167 c - 70.7 - 42 - 118 - 97.7 - 142 - 167 h - 23 c - 15.3 0 - 23 . 3 - 23
1 0 1.3 5.3 13.7 16 37 18 35.3 41.3 69 70 101 l7 8 H0v40h399905l - 7 8 c - 28.7 32
- 52 65.7 - 70 101 - 10.7 23.3 - 16 35.7 - 16 37 0 . 7 7.7 1 23 1 h23c24 - 69.3 71.3 - 125 142
- 167 z M100 147 v40h399900v - 40 zM0 341 v40h399900v - 40 z ` ,twoheadleftarrow: ` M0 167 c68 40
115.7 95.7 143 167 h22c15 . 3 0 23 - . 3 23 - 1 0 - 1.3 - 5.3 - 13.7 - 16 - 37 - 18 - 35.3 - 41.3 - 69
- 70 - 101 l - 7 - 8 h125l9 7 c50 . 7 39.3 85 86 103 140 h46c0 - 4.7 - 6.3 - 18.7 - 19 - 42 - 18 - 35.3
- 40 - 67.3 - 66 - 96 l - 9 - 9 h399716v - 40 H284l9 - 9 c26 - 28.7 48 - 60.7 66 - 96 12.7 - 23.333 19
- 37.333 19 - 42 h - 46 c - 18 54 - 52.3 100.7 - 103 140 l - 9 7 H95l7 - 8 c28 . 7 - 32 52 - 65.7 70 - 101
10.7 - 23.333 16 - 35.7 16 - 37 0 - . 7 - 7.7 - 1 - 23 - 1 h - 22 C115 . 7 71.3 68 127 0 167 z ` ,twoheadrightarrow: ` M400000 167
c - 68 - 40 - 115.7 - 95.7 - 143 - 167 h - 22 c - 15.3 0 - 23 . 3 - 23 1 0 1.3 5.3 13.7 16 37 18 35.3
41.3 69 70 101 l7 8 h - 125 l - 9 - 7 c - 50.7 - 39.3 - 85 - 86 - 103 - 140 h - 46 c0 4.7 6.3 18.7 19 42
18 35.3 40 67.3 66 96 l9 9 H0v40h399716l - 9 9 c - 26 28.7 - 48 60.7 - 66 96 - 12.7 23.333
- 19 37.333 - 19 42 h46c18 - 54 52.3 - 100.7 103 - 140 l9 - 7 h125l - 7 8 c - 28.7 32 - 52 65.7 - 70
101 - 10.7 23.333 - 16 35.7 - 16 37 0 . 7 7.7 1 23 1 h22c27 . 3 - 71.3 75 - 127 143 - 167 z ` ,tilde1: ` M200 55.538 c - 77 0 - 168 73.953 - 177 73.953 - 3 0 - 7
- 2.175 - 9 - 5.437 L2 97 c - 1 - 2 - 2 - 4 - 2 - 6 0 - 4 2 - 7 5 - 9 l20 - 12 C116 12 171 0 207 0 c86 0
114 68 191 68 78 0 168 - 68 177 - 68 4 0 7 2 9 5 l12 19 c1 2.175 2 4.35 2 6.525 0
4.35 - 2 7.613 - 5 9.788 l - 19 13.05 c - 92 63.077 - 116.937 75.308 - 183 76.128
- 68.267 . 847 - 113 - 73.952 - 191 - 73.952 z ` ,tilde2: ` M344 55.266 c - 142 0 - 300.638 81.316 - 311.5 86.418
- 8.01 3.762 - 22.5 10.91 - 23.5 5.562 L1 120 c - 1 - 2 - 1 - 3 - 1 - 4 0 - 5 3 - 9 8 - 10 l18 . 4 - 9 C160 . 9
31.9 283 0 358 0 c148 0 188 122 331 122 s314 - 97 326 - 97 c4 0 8 2 10 7 l7 21.114
c1 2.14 1 3.21 1 4.28 0 5.347 - 3 9.626 - 7 10.696 l - 22.3 12.622 C852 . 6 158.372 751
181.476 676 181.476 c - 149 0 - 189 - 126.21 - 332 - 126.21 z ` ,tilde3: ` M786 59 C457 59 32 175.242 13 175.242 c - 6 0 - 10 - 3.457
- 11 - 10.37 L . 15 138 c - 1 - 7 3 - 12 10 - 13 l19 . 2 - 6.4 C378 . 4 40.7 634.3 0 804.3 0 c337 0
411.8 157 746.8 157 328 0 754 - 112 773 - 112 5 0 10 3 11 9 l1 14.075 c1 8.066 - . 697
16.595 - 6.697 17.492 l - 21.052 7.31 c - 367.9 98.146 - 609.15 122.696 - 778.15 122.696
- 338 0 - 409 - 156.573 - 744 - 156.573 z ` ,tilde4: ` M786 58 C457 58 32 177.487 13 177.487 c - 6 0 - 10 - 3.345
- 11 - 10.035 L . 15 143 c - 1 - 7 3 - 12 10 - 13 l22 - 6.7 C381 . 2 35 637.15 0 807.15 0 c337 0 409
177 744 177 328 0 754 - 127 773 - 127 5 0 10 3 11 9 l1 14.794 c1 7.805 - 3 13.38 - 9
14.495 l - 20.7 5.574 c - 366.85 99.79 - 607.3 139.372 - 776.3 139.372 - 338 0 - 409
- 175.236 - 744 - 175.236 z ` ,vec: ` M377 20 c0 - 5.333 1.833 - 10 5.5 - 14 S391 0 397 0 c4 . 667 0 8.667 1.667 12 5
3.333 2.667 6.667 9 10 19 6.667 24.667 20.333 43.667 41 57 7.333 4.667 11
10.667 11 18 0 6 - 1 10 - 3 12 s - 6.667 5 - 14 9 c - 28.667 14.667 - 53.667 35.667 - 75 63
- 1.333 1.333 - 3.167 3.5 - 5.5 6.5 s - 4 4.833 - 5 5.5 c - 1 . 667 - 2.5 1.333 - 4.5 2 s - 4.333 1
- 7 1 c - 4.667 0 - 9.167 - 1.833 - 13.5 - 5.5 S337 184 337 178 c0 - 12.667 15.667 - 32.333 47 - 59
H213l - 171 - 1 c - 8.667 - 6 - 13 - 12.333 - 13 - 19 0 - 4.667 4.333 - 11.333 13 - 20 h359
c - 16 - 25.333 - 24 - 45 - 24 - 59 z ` ,widehat1: ` M529 0 h5l519 115 c5 1 9 5 9 10 0 1 - 1 2 - 1 3 l - 4 22
c - 1 5 - 5 9 - 11 9 h - 2 L532 67 19 159 h - 2 c - 5 0 - 9 - 4 - 11 - 9 l - 5 - 22 c - 1 - 6 2 - 12 8 - 13 z ` ,widehat2: ` M1181 0 h2l1171 176 c6 0 10 5 10 11 l - 2 23 c - 1 6 - 5 10
- 11 10 h - 1 L1182 67 15 220 h - 1 c - 6 0 - 10 - 4 - 11 - 10 l - 2 - 23 c - 1 - 6 4 - 11 10 - 11 z ` ,widehat3: ` M1181 0 h2l1171 236 c6 0 10 5 10 11 l - 2 23 c - 1 6 - 5 10
- 11 10 h - 1 L1182 67 15 280 h - 1 c - 6 0 - 10 - 4 - 11 - 10 l - 2 - 23 c - 1 - 6 4 - 11 10 - 11 z ` ,widehat4: ` M1181 0 h2l1171 296 c6 0 10 5 10 11 l - 2 23 c - 1 6 - 5 10
- 11 10 h - 1 L1182 67 15 340 h - 1 c - 6 0 - 10 - 4 - 11 - 10 l - 2 - 23 c - 1 - 6 4 - 11 10 - 11 z ` ,widecheck1: ` M529 , 159 h5l519 , - 115 c5 , - 1 , 9 , - 5 , 9 , - 10 c0 , - 1 , - 1 , - 2 , - 1 , - 3 l - 4 , - 22 c - 1 ,
- 5 , - 5 , - 9 , - 11 , - 9 h - 2 l - 512 , 92 l - 513 , - 92 h - 2 c - 5 , 0 , - 9 , 4 , - 11 , 9 l - 5 , 22 c - 1 , 6 , 2 , 12 , 8 , 13 z ` ,widecheck2: ` M1181 , 220 h2l1171 , - 176 c6 , 0 , 10 , - 5 , 10 , - 11 l - 2 , - 23 c - 1 , - 6 , - 5 , - 10 ,
- 11 , - 10 h - 1 l - 1168 , 153 l - 1167 , - 153 h - 1 c - 6 , 0 , - 10 , 4 , - 11 , 10 l - 2 , 23 c - 1 , 6 , 4 , 11 , 10 , 11 z ` ,widecheck3: ` M1181 , 280 h2l1171 , - 236 c6 , 0 , 10 , - 5 , 10 , - 11 l - 2 , - 23 c - 1 , - 6 , - 5 , - 10 ,
- 11 , - 10 h - 1 l - 1168 , 213 l - 1167 , - 213 h - 1 c - 6 , 0 , - 10 , 4 , - 11 , 10 l - 2 , 23 c - 1 , 6 , 4 , 11 , 10 , 11 z ` ,widecheck4: ` M1181 , 340 h2l1171 , - 296 c6 , 0 , 10 , - 5 , 10 , - 11 l - 2 , - 23 c - 1 , - 6 , - 5 , - 10 ,
- 11 , - 10 h - 1 l - 1168 , 273 l - 1167 , - 273 h - 1 c - 6 , 0 , - 10 , 4 , - 11 , 10 l - 2 , 23 c - 1 , 6 , 4 , 11 , 10 , 11 z ` ,baraboveleftarrow: ` M400000 620 h - 399890 l3 - 3 c68 . 7 - 52.7 113.7 - 120 135 - 202
c4 - 14.7 6 - 23 6 - 25 c0 - 7.3 - 7 - 11 - 21 - 11 c - 8 0 - 13.2 0.8 - 15.5 2.5
c - 2.3 1.7 - 4.2 5.8 - 5.5 12.5 c - 1.3 4.7 - 2.7 10.3 - 4 17 c - 12 48.7 - 34.8 92 - 68.5 130
s - 74.2 66.3 - 121.5 85 c - 10 4 - 16 7.7 - 18 11 c0 8.7 6 14.3 18 17 c47 . 3 18.7 87.8 47
121.5 85 s56 . 5 81.3 68.5 130 c0 . 7 2 1.3 5 2 9 s1 . 2 6.7 1.5 8 c0 . 3 1.3 1 3.3 2 6
s2 . 2 4.5 3.5 5.5 c1 . 3 1 3.3 1.8 6 2.5 s6 1 10 1 c14 0 21 - 3.7 21 - 11
c0 - 2 - 2 - 10.3 - 6 - 25 c - 20 - 79.3 - 65 - 146.7 - 135 - 202 l - 3 - 3 h399890z
M100 620 v40h399900v - 40 z M0 241 v40h399900v - 40 zM0 241 v40h399900v - 40 z ` ,rightarrowabovebar: ` M0 241 v40h399891c - 47.3 35.3 - 84 78 - 110 128 - 16.7 32
- 27.7 63.7 - 33 95 0 1.3 - . 2 2.7 - . 5 4 - . 3 1.3 - . 5 2.3 - . 5 3 0 7.3 6.7 11 20 11 8 0
13.2 - . 8 15.5 - 2.5 2.3 - 1.7 4.2 - 5.5 5.5 - 11.5 2 - 13.3 5.7 - 27 11 - 41 14.7 - 44.7 39
- 84.5 73 - 119.5 s73 . 7 - 60.2 119 - 75.5 c6 - 2 9 - 5.7 9 - 11 s - 3 - 9 - 9 - 11 c - 45.3 - 15.3 - 85 - 40.5
- 119 - 75.5 s - 58.3 - 74.8 - 73 - 119.5 c - 4.7 - 14 - 8.3 - 27.3 - 11 - 40 - 1.3 - 6.7 - 3.2 - 10.8 - 5.5
- 12.5 - 2.3 - 1.7 - 7.5 - 2.5 - 15.5 - 2.5 - 14 0 - 21 3.7 - 21 11 0 2 2 10.3 6 25 20.7 83.3 67
151.7 139 205 zm96 379 h399894v40H0zm0 0 h399904v40H0z ` ,baraboveshortleftharpoon: ` M507 , 435 c - 4 , 4 , - 6.3 , 8.7 , - 7 , 14 c0 , 5.3 , 0.7 , 9 , 2 , 11
c1 . 3 , 2 , 5.3 , 5.3 , 12 , 10 c90 . 7 , 54 , 156 , 130 , 196 , 228 c3 . 3 , 10.7 , 6.3 , 16.3 , 9 , 17
c2 , 0.7 , 5 , 1 , 9 , 1 c0 , 0 , 5 , 0 , 5 , 0 c10 . 7 , 0 , 16.7 , - 2 , 18 , - 6 c2 , - 2.7 , 1 , - 9.7 , - 3 , - 21
c - 32 , - 87.3 , - 82.7 , - 157.7 , - 152 , - 211 c0 , 0 , - 3 , - 3 , - 3 , - 3 l399351 , 0 l0 , - 40
c - 398570 , 0 , - 399437 , 0 , - 399437 , 0 z M593 435 v40 H399500 v - 40 z
M0 281 v - 40 H399908 v40z M0 281 v - 40 H399908 v40z ` ,rightharpoonaboveshortbar: ` M0 , 241 l0 , 40 c399126 , 0 , 399993 , 0 , 399993 , 0
c4 . 7 , - 4.7 , 7 , - 9.3 , 7 , - 14 c0 , - 9.3 , - 3.7 , - 15.3 , - 11 , - 18 c - 92.7 , - 56.7 , - 159 , - 133.7 , - 199 ,
- 231 c - 3.3 , - 9.3 , - 6 , - 14.7 , - 8 , - 16 c - 2 , - 1.3 , - 7 , - 2 , - 15 , - 2 c - 10.7 , 0 , - 16.7 , 2 , - 18 , 6
c - 2 , 2.7 , - 1 , 9.7 , 3 , 21 c15 . 3 , 42 , 36.7 , 81.8 , 64 , 119.5 c27 . 3 , 37.7 , 58 , 69.2 , 92 , 94.5 z
M0 241 v40 H399908 v - 40 z M0 475 v - 40 H399500 v40z M0 475 v - 40 H399500 v40z ` ,shortbaraboveleftharpoon: ` M7 , 435 c - 4 , 4 , - 6.3 , 8.7 , - 7 , 14 c0 , 5.3 , 0.7 , 9 , 2 , 11
c1 . 3 , 2 , 5.3 , 5.3 , 12 , 10 c90 . 7 , 54 , 156 , 130 , 196 , 228 c3 . 3 , 10.7 , 6.3 , 16.3 , 9 , 17 c2 , 0.7 , 5 , 1 , 9 ,
1 c0 , 0 , 5 , 0 , 5 , 0 c10 . 7 , 0 , 16.7 , - 2 , 18 , - 6 c2 , - 2.7 , 1 , - 9.7 , - 3 , - 21 c - 32 , - 87.3 , - 82.7 , - 157.7 ,
- 152 , - 211 c0 , 0 , - 3 , - 3 , - 3 , - 3 l399907 , 0 l0 , - 40 c - 399126 , 0 , - 399993 , 0 , - 399993 , 0 z
M93 435 v40 H400000 v - 40 z M500 241 v40 H400000 v - 40 z M500 241 v40 H400000 v - 40 z ` ,shortrightharpoonabovebar: ` M53 , 241 l0 , 40 c398570 , 0 , 399437 , 0 , 399437 , 0
c4 . 7 , - 4.7 , 7 , - 9.3 , 7 , - 14 c0 , - 9.3 , - 3.7 , - 15.3 , - 11 , - 18 c - 92.7 , - 56.7 , - 159 , - 133.7 , - 199 ,
- 231 c - 3.3 , - 9.3 , - 6 , - 14.7 , - 8 , - 16 c - 2 , - 1.3 , - 7 , - 2 , - 15 , - 2 c - 10.7 , 0 , - 16.7 , 2 , - 18 , 6
c - 2 , 2.7 , - 1 , 9.7 , 3 , 21 c15 . 3 , 42 , 36.7 , 81.8 , 64 , 119.5 c27 . 3 , 37.7 , 58 , 69.2 , 92 , 94.5 z
2024-08-30 15:19:18 +08:00
M500 241 v40 H399408 v - 40 z M500 435 v40 H400000 v - 40 z ` },tallDelim=function(qa,Ja){switch(qa){case"lbrack":return"M403 1759 V84 H666 V0 H319 V1759 v"+Ja+ ` v1759 h347 v - 84
H403z M403 1759 V0 H319 V1759 v ` +Ja+" v1759 h84z";case"rbrack":return"M347 1759 V0 H0 V84 H263 V1759 v"+Ja+ ` v1759 H0 v84 H347z
M347 1759 V0 H263 V1759 v ` +Ja+" v1759 h84z";case"vert":return"M145 15 v585 v"+Ja+ ` v585 c2 . 667 , 10 , 9.667 , 15 , 21 , 15
c10 , 0 , 16.667 , - 5 , 20 , - 15 v - 585 v ` +-Ja+ ` v - 585 c - 2.667 , - 10 , - 9.667 , - 15 , - 21 , - 15
c - 10 , 0 , - 16.667 , 5 , - 20 , 15 z M188 15 H145 v585 v ` +Ja+" v585 h43z";case"doublevert":return"M145 15 v585 v"+Ja+ ` v585 c2 . 667 , 10 , 9.667 , 15 , 21 , 15
c10 , 0 , 16.667 , - 5 , 20 , - 15 v - 585 v ` +-Ja+ ` v - 585 c - 2.667 , - 10 , - 9.667 , - 15 , - 21 , - 15
c - 10 , 0 , - 16.667 , 5 , - 20 , 15 z M188 15 H145 v585 v ` +Ja+ ` v585 h43z
M367 15 v585 v ` +Ja+ ` v585 c2 . 667 , 10 , 9.667 , 15 , 21 , 15
c10 , 0 , 16.667 , - 5 , 20 , - 15 v - 585 v ` +-Ja+ ` v - 585 c - 2.667 , - 10 , - 9.667 , - 15 , - 21 , - 15
c - 10 , 0 , - 16.667 , 5 , - 20 , 15 z M410 15 H367 v585 v ` +Ja+" v585 h43z";case"lfloor":return"M319 602 V0 H403 V602 v"+Ja+ ` v1715 h263 v84 H319z
MM319 602 V0 H403 V602 v ` +Ja+" v1715 H319z";case"rfloor":return"M319 602 V0 H403 V602 v"+Ja+ ` v1799 H0 v - 84 H319z
MM319 602 V0 H403 V602 v ` +Ja+" v1715 H319z";case"lceil":return"M403 1759 V84 H666 V0 H319 V1759 v"+Ja+ ` v602 h84z
M403 1759 V0 H319 V1759 v ` +Ja+" v602 h84z";case"rceil":return"M347 1759 V0 H0 V84 H263 V1759 v"+Ja+ ` v602 h84z
M347 1759 V0 h - 84 V1759 v ` +Ja+" v602 h84z";case"lparen":return ` M863 , 9 c0 , - 2 , - 2 , - 5 , - 6 , - 9 c0 , 0 , - 17 , 0 , - 17 , 0 c - 12.7 , 0 , - 19.3 , 0.3 , - 20 , 1
2024-08-27 22:31:52 +08:00
c - 5.3 , 5.3 , - 10.3 , 11 , - 15 , 17 c - 242.7 , 294.7 , - 395.3 , 682 , - 458 , 1162 c - 21.3 , 163.3 , - 33.3 , 349 ,
2024-08-30 15:19:18 +08:00
- 36 , 557 l0 , ` +(Ja+84)+ ` c0 . 2 , 6 , 0 , 26 , 0 , 60 c2 , 159.3 , 10 , 310.7 , 24 , 454 c53 . 3 , 528 , 210 ,
2024-08-27 22:31:52 +08:00
949.7 , 470 , 1265 c4 . 7 , 6 , 9.7 , 11.7 , 15 , 17 c0 . 7 , 0.7 , 7 , 1 , 19 , 1 c0 , 0 , 18 , 0 , 18 , 0 c4 , - 4 , 6 , - 7 , 6 , - 9
c0 , - 2.7 , - 3.3 , - 8.7 , - 10 , - 18 c - 135.3 , - 192.7 , - 235.5 , - 414.3 , - 300.5 , - 665 c - 65 , - 250.7 , - 102.5 ,
- 544.7 , - 112.5 , - 882 c - 2 , - 104 , - 3 , - 167 , - 3 , - 189
2024-08-30 15:19:18 +08:00
l0 , - ` +(Ja+92)+ ` c0 , - 162.7 , 5.7 , - 314 , 17 , - 454 c20 . 7 , - 272 , 63.7 , - 513 , 129 , - 723 c65 . 3 ,
2024-08-27 22:31:52 +08:00
- 210 , 155.3 , - 396.3 , 270 , - 559 c6 . 7 , - 9.3 , 10 , - 15.3 , 10 , - 18 z ` ;case"rparen":return ` M76 , 0 c - 16.7 , 0 , - 25 , 3 , - 25 , 9 c0 , 2 , 2 , 6.3 , 6 , 13 c21 . 3 , 28.7 , 42.3 , 60.3 ,
63 , 95 c96 . 7 , 156.7 , 172.8 , 332.5 , 228.5 , 527.5 c55 . 7 , 195 , 92.8 , 416.5 , 111.5 , 664.5
2024-08-30 15:19:18 +08:00
c11 . 3 , 139.3 , 17 , 290.7 , 17 , 454 c0 , 28 , 1.7 , 43 , 3.3 , 45 l0 , ` +(Ja+9)+ `
2024-08-27 22:31:52 +08:00
c - 3 , 4 , - 3.3 , 16.7 , - 3.3 , 38 c0 , 162 , - 5.7 , 313.7 , - 17 , 455 c - 18.7 , 248 , - 55.8 , 469.3 , - 111.5 , 664
c - 55.7 , 194.7 , - 131.8 , 370.3 , - 228.5 , 527 c - 20.7 , 34.7 , - 41.7 , 66.3 , - 63 , 95 c - 2 , 3.3 , - 4 , 7 , - 6 , 11
c0 , 7.3 , 5.7 , 11 , 17 , 11 c0 , 0 , 11 , 0 , 11 , 0 c9 . 3 , 0 , 14.3 , - 0.3 , 15 , - 1 c5 . 3 , - 5.3 , 10.3 , - 11 , 15 , - 17
c242 . 7 , - 294.7 , 395.3 , - 681.7 , 458 , - 1161 c21 . 3 , - 164.7 , 33.3 , - 350.7 , 36 , - 558
2024-08-30 15:19:18 +08:00
l0 , - ` +(Ja+144)+ ` c - 2 , - 159.3 , - 10 , - 310.7 , - 24 , - 454 c - 53.3 , - 528 , - 210 , - 949.7 ,
2024-08-31 11:28:56 +08:00
- 470 , - 1265 c - 4.7 , - 6 , - 9.7 , - 11.7 , - 15 , - 17 c - 0.7 , - 0.7 , - 6.7 , - 1 , - 18 , - 1 z ` ;default:throw new Error("Unknown stretchy delimiter.")}};class DocumentFragment{constructor(qa){this.children=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.children=qa,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}hasClass(qa){return utils $ 6.contains(this.classes,qa)}toNode(){for(var qa=document.createDocumentFragment(),Ja=0;Ja<this.children.length;Ja++)qa.appendChild(this.children[Ja].toNode());return qa}toMarkup(){for(var qa="",Ja=0;Ja<this.children.length;Ja++)qa+=this.children[Ja].toMarkup();return qa}toText(){var qa=Ja=>Ja.toText();return this.children.map(qa).join("")}}var fontMetricsData={"AMS-Regular":{32:[0,0,0,0,.25],65:[0,.68889,0,0,.72222],66:[0,.68889,0,0,.66667],67:[0,.68889,0,0,.72222],68:[0,.68889,0,0,.72222],69:[0,.68889,0,0,.66667],70:[0,.68889,0,0,.61111],71:[0,.68889,0,0,.77778],72:[0,.68889,0,0,.77778],73:[0,.68889,0,0,.38889],74:[.16667,.68889,0,0,.5],75:[0,.68889,0,0,.77778],76:[0,.68889,0,0,.66667],77:[0,.68889,0,0,.94445],78:[0,.68889,0,0,.72222],79:[.16667,.68889,0,0,.77778],80:[0,.68889,0,0,.61111],81:[.16667,.68889,0,0,.77778],82:[0,.68889,0,0,.72222],83:[0,.68889,0,0,.55556],84:[0,.68889,0,0,.66667],85:[0,.68889,0,0,.72222],86:[0,.68889,0,0,.72222],87:[0,.68889,0,0,1],88:[0,.68889,0,0,.72222],89:[0,.68889,0,0,.72222],90:[0,.68889,0,0,.66667],107:[0,.68889,0,0,.55556],160:[0,0,0,0,.25],165:[0,.675,.025,0,.75],174:[.15559,.69224,0,0,.94666],240:[0,.68889,0,0,.55556],295:[0,.68889,0,0,.54028],710:[0,.825,0,0,2.33334],732:[0,.9,0,0,2.33334],770:[0,.825,0,0,2.33334],771:[0,.9,0,0,2.33334],989:[.08167,.58167,0,0,.77778],1008:[0,.43056,.04028,0,.66667],8245:[0,.54986,0,0,.275],8463:[0,.68889,0,0,.54028],8487:[0,.68889,0,0,.72222],8498:[0,.68889,0,0,.55556],8502:[0,.68889,0,0,.66667],8503:[0,.68889,0,0,.44445],8504:[0,.68889,0,0,.66667],8513:[0,.68889,0,0,.63889],8592:[-.03598,.46402,0,0,.5],8594:[-.03598,.46402,0,0,.5],8602:[-.13313,.36687,0,0,1],8603:[-.13313,.36687,0,0,1],8606:[.01354,.52239,0,0,1],8608:[.01354,.52239,0,0,1],8610:[.01354,.52239,0,0,1.11111],8611:[.01354,.52239,0,0,1.11111],8619:[0,.54986,0,0,1],8620:[0,.54986,0,0,1],8621:[-.13313,.37788,0,0,1.38889],8622:[-.13313,.36687,0,0,1],8624:[0,.69224,0,0,.5],8625:[0,.69224,0,0,.5],8630:[0,.43056,0,0,1],8631:[0,.43056,0,0,1],8634:[.08198,.58198,0,0,.77778],8635:[.08198,.58198,0,0,.77778],8638:[.19444,.69224,0,0,.41667],8639:[.19444,.69224,0,0,.41667],8642:[.19444,.69224,0,0,.41667],8643:[.19444,.69224,0,0,.41667],8644:[.1808,.675,0,0,1],8646:[.1808,.675,0,0,1],8647:[.1808,.675,0,0,1],8648:[.19444,.69224,0,0,.83334],8649:[.1808,.675,0,0,1],8650:[.19444,.69224,0,0,.83334],8651:[.01354,.52239,0,0,1],8652:[.01354,.52239,0,0,1],8653:[-.13313,.36687,0,0,1],8654:[-.13313,.36687,0,0,1],8655:[-.13313,.36687,0,0,1],8666:[.13667,.63667,0,0,1],8667:[.13667,.63667,0,0,1],8669:[-.13313,.37788,0,0,1],8672:[-.064,.437,0,0,1.334],8674:[-.064,.437,0,0,1.334],8705:[0,.825,0,0,.5],8708:[0,.68889,0,0,.55556],8709:[.08167,.58167,0,0,.77778],8717:[0,.43056,0,0,.42917],8722:[-.03598,.46402,0,0,.5],8724:[.08198,.69224,0,0,.77778],8726:[.08167,.58167,0,0,.77778],8733:[0,.69224,0,0,.77778],8736:[0,.69224,0,0,.72222],8737:[0,.69224,0,0,.72222],8738:[.03517,.52239,0,0,.72222],8739:[.08167,.58167,0,0,.22222],8740:[.25142,.74111,0,0,.27778],8741:[.08167,.58167,0,0,.38889],8742:[.25142,.74111,0,0,.5],8756:[0,.69224,0,0,.66667],8757:[0,.69224,0,0,.66667],8764:[-.13313,.36687,0,0,.77778],8765:[-.13313,.37788,0,0,.77778],8769:[-.13313,.36687,0,0,.77778],8770:[-.03625,.46375,0,0,.77778],8774:[.30274,.79383,0,0,.77778],8776:[-.01688,.48312,0,0,.77778],8778:[.08167,.58167,0,0,.77778],8782:[.06062,.54986,0,0,.77778],8783:[.06062,.54986,0,0,.77778],8785:[.08198,.58198,0,0,.77778],8786:[.08198,.58198,0,0,.77778],8787:[.08198,.58198,0,0,.77778],8790:[0,.69224,0,0,.77778],8791:[.22958,.72958,0,0,.77778],8796:[.08198,.91667,0,0,.77778],8806:[.25583,.75583,0,0,.77778],8807:[.25583,.75583,0,0,.77778],8808:[.25142,.75726,0,0,.77
` +jd+" children.");for(var qd=0;qd<jd;qd++){var Wd=new PathNode(kd[qd]),Qd=new SvgNode([Wd],{width:"400em",height:makeEm(Bd),viewBox:"0 0 "+sd+" "+Md,preserveAspectRatio:Fd[qd]+" slice"}),Zd=buildCommon.makeSvgSpan([Vd[qd]],[Qd],Ja);if(jd===1)return{span:Zd,minWidth:Rd,height:Bd};Zd.style.height=makeEm(Bd),Ad.push(Zd)}return{span:buildCommon.makeSpan(["stretchy"],Ad,Ja),minWidth:Rd,height:Bd}}}var{span:td,minWidth:rd,height:od}=ed();return td.height=od,td.style.height=makeEm(od),rd>0&&(td.style.minWidth=makeEm(rd)),td},encloseSpan=function(qa,Ja,ed,td,rd){var od,sd=qa.height+qa.depth+ed+td;if(/fbox|color|angl/.test(Ja)){if(od=buildCommon.makeSpan(["stretchy",Ja],[],rd),Ja==="fbox"){var ld=rd.color&&rd.getColor();ld&&(od.style.borderColor=ld)}}else{var cd=[];/^[bx]cancel $ /.test(Ja)&&cd.push(new LineNode({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel $ /.test(Ja)&&cd.push(new LineNode({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var ud=new SvgNode(cd,{width:"100%",height:makeEm(sd)});od=buildCommon.makeSvgSpan([],[ud],rd)}return od.height=sd,od.style.height=makeEm(sd),od},stretchy={encloseSpan,mathMLnode,svgSpan};function assertNodeType(Ra,qa){if(!Ra||Ra.type!==qa)throw new Error("Expected node of type "+qa+", but got "+(Ra?"node of type "+Ra.type:String(Ra)));return Ra}function assertSymbolNodeType(Ra){var qa=checkSymbolNodeType(Ra);if(!qa)throw new Error("Expected node of symbol group type, but got "+(Ra?"node of type "+Ra.type:String(Ra)));return qa}function checkSymbolNodeType(Ra){return Ra&&(Ra.type==="atom"||NON_ATOMS.hasOwnProperty(Ra.type))?Ra:null}var htmlBuilder $ a=(Ra,qa)=>{var Ja,ed,td;Ra&&Ra.type==="supsub"?(ed=assertNodeType(Ra.base,"accent"),Ja=ed.base,Ra.base=Ja,td=assertSpan(buildGroup $ 1(Ra,qa)),Ra.base=ed):(ed=assertNodeType(Ra,"accent"),Ja=ed.base);var rd=buildGroup $ 1(Ja,qa.havingCrampedStyle()),od=ed.isShifty&&utils $ 6.isCharacterBox(Ja),sd=0;if(od){var ld=utils $ 6.getBaseElem(Ja),cd=buildGroup $ 1(ld,qa.havingCrampedStyle());sd=assertSymbolDomNode(cd).skew}var ud=ed.label===" \\ c",_d=ud?rd.height+rd.depth:Math.min(rd.height,qa.fontMetrics().xHeight),yd;if(ed.isStretchy)yd=stretchy.svgSpan(ed,qa),yd=buildCommon.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:rd},{type:"elem",elem:yd,wrapperClasses:["svg-align"],wrapperStyle:sd>0?{width:"calc(100% - "+makeEm(2*sd)+")",marginLeft:makeEm(2*sd)}:void 0}]},qa);else{var gd,Ed;ed.label===" \\ vec"?(gd=buildCommon.staticSvg("vec",qa),Ed=buildCommon.svgData.vec[1]):(gd=buildCommon.makeOrd({mode:ed.mode,text:ed.label},qa,"textord"),gd=assertSymbolDomNode(gd),gd.italic=0,Ed=gd.width,ud&&(_d+=gd.depth)),yd=buildCommon.makeSpan(["accent-body"],[gd]);var Td=ed.label===" \\ textcircled";Td&&(yd.classes.push("accent-full"),_d=rd.height);var Id=sd;Td||(Id-=Ed/2),yd.style.left=makeEm(Id),ed.label===" \\ textcircled"&&(yd.style.top=".2em"),yd=buildCommon.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:rd},{type:"kern",size:-_d},{type:"elem",elem:yd}]},qa)}var Ad=buildCommon.makeSpan(["mord","accent"],[yd],qa);return td?(td.children[0]=Ad,td.height=Math.max(Ad.height,td.height),td.classes[0]="mord",td):Ad},mathmlBuilder $ 9=(Ra,qa)=>{var Ja=Ra.isStretchy?stretchy.mathMLnode(Ra.label):new mathMLTree.MathNode("mo",[makeText(Ra.label,Ra.mode)]),ed=new mathMLTree.MathNode("mover",[buildGroup2(Ra.base,qa),Ja]);return ed.setAttribute("accent","true"),ed},NON_STRETCHY_ACCENT_REGEX=new RegExp([" \\ acute"," \\ grave"," \\ ddot"," \\ tilde"," \\ bar"," \\ breve"," \\ check"," \\ hat"," \\ vec"," \\ dot"," \\ mathring"].map(Ra=>" \\ "+Ra).join("|"));defineFunction({type:"accent",names:[" \\ acute"," \\ grave"," \\ ddot"," \\ tilde"," \\ bar"," \\ breve"," \\ check"," \\ hat"," \\ vec"," \\ dot"," \\ mathring"," \\ widecheck"," \\ widehat"," \\ widetilde"," \\ overrightarrow"," \\ overleftarrow"," \\ Overrightarrow"," \\ overleftrightarrow"," \\ overgroup"," \\ overlinesegment"," \\ overleftharpoon"," \\ overrightharpoon"],props:{numArgs:1},handler:(Ra,qa)=>{var Ja=normalizeArgument(qa[0]),ed=!NON_STRETCHY_ACCENT_REGEX.test(Ra.funcName),td=!ed||Ra.funcName===" \\
2024-08-27 22:31:52 +08:00
] ` ,controlWordRegexString=" \\ \\ [a-zA-Z@]+",controlSymbolRegexString=" \\ \\ [^ \u D800- \u DFFF]",controlWordWhitespaceRegexString="("+controlWordRegexString+")"+spaceRegexString+"*",controlSpaceRegexString= ` \ \ \ \ (
| [ \ r ] +
2024-08-30 15:19:18 +08:00
? ) [ \ r ] * ` ,combiningDiacriticalMarkString="[̀-ͯ]",combiningDiacriticalMarksEndRegex=new RegExp(combiningDiacriticalMarkString+"+ $ "),tokenRegexString="("+spaceRegexString+"+)|"+(controlSpaceRegexString+"|")+"([!- \\ [ \\ ]-‧-豈-]"+(combiningDiacriticalMarkString+"*")+"|[ \u D800- \u DBFF][ \u DC00- \u DFFF]"+(combiningDiacriticalMarkString+"*")+"| \\ \\ verb \\ *([^]).*? \\ 4| \\ \\ verb([^*a-zA-Z]).*? \\ 5"+("|"+controlWordWhitespaceRegexString)+("|"+controlSymbolRegexString+")");class Lexer{constructor(qa,Ja){this.input=void 0,this.settings=void 0,this.tokenRegex=void 0,this.catcodes=void 0,this.input=qa,this.settings=Ja,this.tokenRegex=new RegExp(tokenRegexString,"g"),this.catcodes={"%":14,"~":13}}setCatcode(qa,Ja){this.catcodes[qa]=Ja}lex(){var qa=this.input,Ja=this.tokenRegex.lastIndex;if(Ja===qa.length)return new Token("EOF",new SourceLocation(this,Ja,Ja));var ed=this.tokenRegex.exec(qa);if(ed===null||ed.index!==Ja)throw new ParseError("Unexpected character: '"+qa[Ja]+"'",new Token(qa[Ja],new SourceLocation(this,Ja,Ja+1)));var td=ed[6]||ed[3]||(ed[2]?" \\ ":" ");if(this.catcodes[td]===14){var rd=qa.indexOf( `
2024-08-31 11:28:56 +08:00
` ,this.tokenRegex.lastIndex);return rd===-1?(this.tokenRegex.lastIndex=qa.length,this.settings.reportNonstrict("commentAtEnd","% comment has no terminating newline; LaTeX would fail because of commenting the end of math mode (e.g. $ )")):this.tokenRegex.lastIndex=rd+1,this.lex()}return new Token(td,new SourceLocation(this,Ja,this.tokenRegex.lastIndex))}}class Namespace{constructor(qa,Ja){qa===void 0&&(qa={}),Ja===void 0&&(Ja={}),this.current=void 0,this.builtins=void 0,this.undefStack=void 0,this.current=Ja,this.builtins=qa,this.undefStack=[]}beginGroup(){this.undefStack.push({})}endGroup(){if(this.undefStack.length===0)throw new ParseError("Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug");var qa=this.undefStack.pop();for(var Ja in qa)qa.hasOwnProperty(Ja)&&(qa[Ja]==null?delete this.current[Ja]:this.current[Ja]=qa[Ja])}endGroups(){for(;this.undefStack.length>0;)this.endGroup()}has(qa){return this.current.hasOwnProperty(qa)||this.builtins.hasOwnProperty(qa)}get(qa){return this.current.hasOwnProperty(qa)?this.current[qa]:this.builtins[qa]}set(qa,Ja,ed){if(ed===void 0&&(ed=!1),ed){for(var td=0;td<this.undefStack.length;td++)delete this.undefStack[td][qa];this.undefStack.length>0&&(this.undefStack[this.undefStack.length-1][qa]=Ja)}else{var rd=this.undefStack[this.undefStack.length-1];rd&&!rd.hasOwnProperty(qa)&&(rd[qa]=this.current[qa])}Ja==null?delete this.current[qa]:this.current[qa]=Ja}}var macros=_macros;defineMacro(" \\ noexpand",function(Ra){var qa=Ra.popToken();return Ra.isExpandable(qa.text)&&(qa.noexpand=!0,qa.treatAsRelax=!0),{tokens:[qa],numArgs:0}});defineMacro(" \\ expandafter",function(Ra){var qa=Ra.popToken();return Ra.expandOnce(!0),{tokens:[qa],numArgs:0}});defineMacro(" \\ @firstoftwo",function(Ra){var qa=Ra.consumeArgs(2);return{tokens:qa[0],numArgs:0}});defineMacro(" \\ @secondoftwo",function(Ra){var qa=Ra.consumeArgs(2);return{tokens:qa[1],numArgs:0}});defineMacro(" \\ @ifnextchar",function(Ra){var qa=Ra.consumeArgs(3);Ra.consumeSpaces();var Ja=Ra.future();return qa[0].length===1&&qa[0][0].text===Ja.text?{tokens:qa[1],numArgs:0}:{tokens:qa[2],numArgs:0}});defineMacro(" \\ @ifstar"," \\ @ifnextchar *{ \\ @firstoftwo{#1}}");defineMacro(" \\ TextOrMath",function(Ra){var qa=Ra.consumeArgs(2);return Ra.mode==="text"?{tokens:qa[0],numArgs:0}:{tokens:qa[1],numArgs:0}});var digitToNumber={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15};defineMacro(" \\ char",function(Ra){var qa=Ra.popToken(),Ja,ed="";if(qa.text==="'")Ja=8,qa=Ra.popToken();else if(qa.text==='"')Ja=16,qa=Ra.popToken();else if(qa.text===" ` ")if(qa=Ra.popToken(),qa.text[0]===" \ \ ")ed=qa.text.charCodeAt(1);else{if(qa.text===" EOF ")throw new ParseError(" \ \ char ` missing argument");ed=qa.text.charCodeAt(0)}else Ja=10;if(Ja){if(ed=digitToNumber[qa.text],ed==null||ed>=Ja)throw new ParseError("Invalid base-"+Ja+" digit "+qa.text);for(var td;(td=digitToNumber[Ra.future().text])!=null&&td<Ja;)ed*=Ja,ed+=td,Ra.popToken()}return" \\ @char{"+ed+"}"});var newcommand=(Ra,qa,Ja)=>{var ed=Ra.consumeArg().tokens;if(ed.length!==1)throw new ParseError(" \\ newcommand's first argument must be a macro name");var td=ed[0].text,rd=Ra.isDefined(td);if(rd&&!qa)throw new ParseError(" \\ newcommand{"+td+"} attempting to redefine "+(td+"; use \\ renewcommand"));if(!rd&&!Ja)throw new ParseError(" \\ renewcommand{"+td+"} when command "+td+" does not yet exist; use \\ newcommand");var od=0;if(ed=Ra.consumeArg().tokens,ed.length===1&&ed[0].text==="["){for(var sd="",ld=Ra.expandNextToken();ld.text!=="]"&&ld.text!=="EOF";)sd+=ld.text,ld=Ra.expandNextToken();if(!sd.match(/^ \s *[0-9]+ \s * $ /))throw new ParseError("Invalid number of arguments: "+sd);od=parseInt(sd),ed=Ra.consumeArg().tokens}return Ra.macros.set(td,{tokens:ed,numArgs:od}),""};defineMacro(" \\ newcommand",Ra=>newcommand(Ra,!1,!0));defineMacro(" \\ renewcommand",Ra=>newcommand(Ra,!0,!1));defineMacro(" \\ providecommand",Ra=>newcommand(Ra,!0,!0));defineMacro(" \\ message",Ra=>{var qa=Ra.consumeArgs(1)[0];return console.log(qa.reverse().map(Ja=>Ja.text).join("")),""})
please report what input caused this bug ` );return ed=ed.slice(1,-1),{type:"verb",mode:"text",body:ed,star:td}}unicodeSymbols.hasOwnProperty(Ja[0])&&!symbols[this.mode][Ja[0]]&&(this.settings.strict&&this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Accented Unicode text character "'+Ja[0]+'" used in math mode',qa),Ja=unicodeSymbols[Ja[0]]+Ja.slice(1));var rd=combiningDiacriticalMarksEndRegex.exec(Ja);rd&&(Ja=Ja.substring(0,rd.index),Ja==="i"?Ja="ı ":Ja==="j"&&(Ja="ȷ"));var od;if(symbols[this.mode][Ja]){this.settings.strict&&this.mode==="math"&&extraLatin.indexOf(Ja)>=0&&this.settings.reportNonstrict("unicodeTextInMathMode",'Latin-1/Unicode text character "'+Ja[0]+'" used in math mode',qa);var sd=symbols[this.mode][Ja].group,ld=SourceLocation.range(qa),cd;if(ATOMS.hasOwnProperty(sd)){var ud=sd;cd={type:"atom",mode:this.mode,family:ud,loc:ld,text:Ja}}else cd={type:sd,mode:this.mode,loc:ld,text:Ja};od=cd}else if(Ja.charCodeAt(0)>=128)this.settings.strict&&(supportedCodepoint(Ja.charCodeAt(0))?this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Unicode text character "'+Ja[0]+'" used in math mode',qa):this.settings.reportNonstrict("unknownSymbol",'Unrecognized Unicode character "'+Ja[0]+'"'+(" ("+Ja.charCodeAt(0)+")"),qa)),od={type:"textord",mode:"text",loc:SourceLocation.range(qa),text:Ja};else return null;if(this.consume(),rd)for(var _d=0;_d<rd[0].length;_d++){var yd=rd[0][_d];if(!unicodeAccents[yd])throw new ParseError("Unknown accent ' "+yd+"'",qa);var gd=unicodeAccents[yd][this.mode]||unicodeAccents[yd].text;if(!gd)throw new ParseError("Accent "+yd+" unsupported in "+this.mode+" mode",qa);od={type:"accent",mode:this.mode,loc:SourceLocation.range(qa),label:gd,isStretchy:!1,isShifty:!0,base:od}}return od}};Parser $ 1.endOfExpression=["}"," \\ endgroup"," \\ end"," \\ right","&"];var parseTree=function(qa,Ja){if(!(typeof qa=="string"||qa instanceof String))throw new TypeError("KaTeX can only parse string typed expression");var ed=new Parser $ 1(qa,Ja);delete ed.gullet.macros.current[" \\ df@tag"];var td=ed.parse();if(delete ed.gullet.macros.current[" \\ current@color"],delete ed.gullet.macros.current[" \\ color"],ed.gullet.macros.get(" \\ df@tag")){if(!Ja.displayMode)throw new ParseError(" \\ tag works only in display equations");td=[{type:"tag",mode:"text",body:td,tag:ed.subparse([new Token(" \\ df@tag")])}]}return td},render $ 2=function(qa,Ja,ed){Ja.textContent="";var td=renderToDomTree(qa,ed).toNode();Ja.appendChild(td)};typeof document<"u"&&document.compatMode!=="CSS1Compat"&&(typeof console<"u"&&console.warn("Warning: KaTeX doesn't work in quirks mode. Make sure your website has a suitable doctype."),render $ 2=function(){throw new ParseError("KaTeX doesn't work in quirks mode.")});var renderToString=function(qa,Ja){var ed=renderToDomTree(qa,Ja).toMarkup();return ed},generateParseTree=function(qa,Ja){var ed=new Settings(Ja);return parseTree(qa,ed)},renderError=function(qa,Ja,ed){if(ed.throwOnError||!(qa instanceof ParseError))throw qa;var td=buildCommon.makeSpan(["katex-error"],[new SymbolNode(Ja)]);return td.setAttribute("title",qa.toString()),td.setAttribute("style","color:"+ed.errorColor),td},renderToDomTree=function(qa,Ja){var ed=new Settings(Ja);try{var td=parseTree(qa,ed);return buildTree(td,qa,ed)}catch(rd){return renderError(rd,qa,ed)}},renderToHTMLTree=function(qa,Ja){var ed=new Settings(Ja);try{var td=parseTree(qa,ed);return buildHTMLTree(td,qa,ed)}catch(rd){return renderError(rd,qa,ed)}},katex={version:"0.16.11",render:render $ 2,renderToString,ParseError,SETTINGS_SCHEMA,__parse:generateParseTree,__renderToDomTree:renderToDomTree,__renderToHTMLTree:renderToHTMLTree,__setFontMetrics:setFontMetrics,__defineSymbol:defineSymbol,__defineFunction:defineFunction,__defineMacro:defineMacro,__domTree:{Span,Anchor,SymbolNode,SvgNode,PathNode,LineNode}};const katex $ 1=Object.freeze(Object.defineProperty({__proto__:null,default:katex},Symbol.toStringTag,{value:"Module"})),inlineRule=/^( \$ {1,2})(?! \$ )((?: \\ .|[^ \\ \n ])*?(?: \\ .|[^ \\ \n \$ ])) \1 (?=[ \s ?! \. ,:?!。,:]| $ )/,inlineRul
` :"")}function inlineKatex(Ra,qa){const Ja=Ra&&Ra.nonStandard,ed=Ja?inlineRuleNonStandard:inlineRule;return{name:"inlineKatex",level:"inline",start(td){let rd,od=td;for(;od;){if(rd=od.indexOf(" $ "),rd===-1)return;if((Ja?rd>-1:rd===0||od.charAt(rd-1)===" ")&&od.substring(rd).match(ed))return rd;od=od.substring(rd+1).replace(/^ \$ +/,"")}},tokenizer(td,rd){const od=td.match(ed);if(od)return{type:"inlineKatex",raw:od[0],text:od[2].trim(),displayMode:od[1].length===2}},renderer:qa}}function blockKatex(Ra,qa){return{name:"blockKatex",level:"block",tokenizer(Ja,ed){const td=Ja.match(blockRule);if(td)return{type:"blockKatex",raw:td[0],text:td[2].trim(),displayMode:td[1].length===2}},renderer:qa}}const scriptRel="modulepreload",assetsURL=function(Ra){return"/md/"+Ra},seen={},__vitePreload=function(qa,Ja,ed){let td=Promise.resolve();if(Ja&&Ja.length>0){document.getElementsByTagName("link");const rd=document.querySelector("meta[property=csp-nonce]"),od=(rd==null?void 0:rd.nonce)||(rd==null?void 0:rd.getAttribute("nonce"));td=Promise.all(Ja.map(sd=>{if(sd=assetsURL(sd),sd in seen)return;seen[sd]=!0;const ld=sd.endsWith(".css"),cd=ld?'[rel="stylesheet"]':"";if(document.querySelector( ` link [ href = "${sd}" ] $ { cd } ` ))return;const ud=document.createElement("link");if(ud.rel=ld?"stylesheet":scriptRel,ld||(ud.as="script",ud.crossOrigin=""),ud.href=sd,od&&ud.setAttribute("nonce",od),document.head.appendChild(ud),ld)return new Promise((_d,yd)=>{ud.addEventListener("load",_d),ud.addEventListener("error",()=>yd(new Error( ` Unable to preload CSS for $ { sd } ` )))})}))}return td.then(()=>qa()).catch(rd=>{const od=new Event("vite:preloadError",{cancelable:!0});if(od.payload=rd,window.dispatchEvent(od),!od.defaultPrevented)throw rd})},Channel={min:{r:0,g:0,b:0,s:0,l:0,a:0},max:{r:255,g:255,b:255,h:360,s:100,l:100,a:1},clamp:{r:Ra=>Ra>=255?255:Ra<0?0:Ra,g:Ra=>Ra>=255?255:Ra<0?0:Ra,b:Ra=>Ra>=255?255:Ra<0?0:Ra,h:Ra=>Ra%360,s:Ra=>Ra>=100?100:Ra<0?0:Ra,l:Ra=>Ra>=100?100:Ra<0?0:Ra,a:Ra=>Ra>=1?1:Ra<0?0:Ra},toLinear:Ra=>{const qa=Ra/255;return Ra>.03928?Math.pow((qa+.055)/1.055,2.4):qa/12.92},hue2rgb:(Ra,qa,Ja)=>(Ja<0&&(Ja+=1),Ja>1&&(Ja-=1),Ja<1/6?Ra+(qa-Ra)*6*Ja:Ja<1/2?qa:Ja<2/3?Ra+(qa-Ra)*(2/3-Ja)*6:Ra),hsl2rgb:({h:Ra,s:qa,l:Ja},ed)=>{if(!qa)return Ja*2.55;Ra/=360,qa/=100,Ja/=100;const td=Ja<.5?Ja*(1+qa):Ja+qa-Ja*qa,rd=2*Ja-td;switch(ed){case"r":return Channel.hue2rgb(rd,td,Ra+1/3)*255;case"g":return Channel.hue2rgb(rd,td,Ra)*255;case"b":return Channel.hue2rgb(rd,td,Ra-1/3)*255}},rgb2hsl:({r:Ra,g:qa,b:Ja},ed)=>{Ra/=255,qa/=255,Ja/=255;const td=Math.max(Ra,qa,Ja),rd=Math.min(Ra,qa,Ja),od=(td+rd)/2;if(ed==="l")return od*100;if(td===rd)return 0;const sd=td-rd,ld=od>.5?sd/(2-td-rd):sd/(td+rd);if(ed==="s")return ld*100;switch(td){case Ra:return((qa-Ja)/sd+(qa<Ja?6:0))*60;case qa:return((Ja-Ra)/sd+2)*60;case Ja:return((Ra-qa)/sd+4)*60;default:return-1}}},Lang $ 2={clamp:(Ra,qa,Ja)=>qa>Ja?Math.min(qa,Math.max(Ja,Ra)):Math.min(Ja,Math.max(qa,Ra)),round:Ra=>Math.round(Ra*1e10)/1e10},Unit={dec2hex:Ra=>{const qa=Math.round(Ra).toString(16);return qa.length>1?qa: ` 0 $ { qa } ` }},Utils={channel:Channel,lang:Lang $ 2,unit:Unit},DEC2HEX={};for(let Ra=0;Ra<=255;Ra++)DEC2HEX[Ra]=Utils.unit.dec2hex(Ra);const TYPE={ALL:0,RGB:1,HSL:2};class Type{constructor(){this.type=TYPE.ALL}get(){return this.type}set(qa){if(this.type&&this.type!==qa)throw new Error("Cannot change both RGB and HSL channels at the same time");this.type=qa}reset(){this.type=TYPE.ALL}is(qa){return this.type===qa}}class Channels{constructor(qa,Ja){this.color=Ja,this.changed=!1,this.data=qa,this.type=new Type}set(qa,Ja){return this.color=Ja,this.changed=!1,this.data=qa,this.type.type=TYPE.ALL,this}_ensureHSL(){const qa=this.data,{h:Ja,s:ed,l:td}=qa;Ja===void 0&&(qa.h=Utils.channel.rgb2hsl(qa,"h")),ed===void 0&&(qa.s=Utils.channel.rgb2hsl(qa,"s")),td===void 0&&(qa.l=Utils.channel.rgb2hsl(qa,"l"))}_ensureRGB(){const qa=this.data,{r:Ja,g:ed,b:td}=qa;Ja===void 0&&(qa.r=Utils.channel.hsl2rgb(qa,"r")),ed===void 0&&(qa.g=Utils.channel.hsl2rgb(qa,"g")),td===void 0&&(qa.b=Utils.channel.hsl2rgb(qa,"b"))}get r(){const qa=this.data,Ja=qa.r;
` +c1),jf&&arrayForEach([Wd,Qd,Zd],m1=>{c1=stringReplace(c1,m1," ")}),Rd&&Ff?Rd.createHTML(c1):c1},qa.setConfig=function(){let Hh=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};S1(Hh),yh=!0},qa.clearConfig=function(){jm=null,yh=!1},qa.isValidAttribute=function(Hh,Oh,Lh){jm||S1({});const Qh=_m(Hh),cm=_m(Oh);return Ch(Qh,cm,Lh)},qa.addHook=function(Hh,Oh){typeof Oh=="function"&&(qd[Hh]=qd[Hh]||[],arrayPush(qd[Hh],Oh))},qa.removeHook=function(Hh){if(qd[Hh])return arrayPop(qd[Hh])},qa.removeHooks=function(Hh){qd[Hh]&&(qd[Hh]=[])},qa.removeAllHooks=function(){qd={}},qa}var purify=createDOMPurify(),__defProp=Object.defineProperty,__name=(Ra,qa)=>__defProp(Ra,"name",{value:qa,configurable:!0}),__export=(Ra,qa)=>{for(var Ja in qa)__defProp(Ra,Ja,{get:qa[Ja],enumerable:!0})},LEVELS={trace:0,debug:1,info:2,warn:3,error:4,fatal:5},log $ 1={trace:__name((...Ra)=>{},"trace"),debug:__name((...Ra)=>{},"debug"),info:__name((...Ra)=>{},"info"),warn:__name((...Ra)=>{},"warn"),error:__name((...Ra)=>{},"error"),fatal:__name((...Ra)=>{},"fatal")},setLogLevel=__name(function(Ra="fatal"){let qa=LEVELS.fatal;typeof Ra=="string"?Ra.toLowerCase()in LEVELS&&(qa=LEVELS[Ra]):typeof Ra=="number"&&(qa=Ra),log $ 1.trace=()=>{},log $ 1.debug=()=>{},log $ 1.info=()=>{},log $ 1.warn=()=>{},log $ 1.error=()=>{},log $ 1.fatal=()=>{},qa<=LEVELS.fatal&&(log $ 1.fatal=console.error?console.error.bind(console,format $ 1("FATAL"),"color: orange"):console.log.bind(console," \x 1B[35m",format $ 1("FATAL"))),qa<=LEVELS.error&&(log $ 1.error=console.error?console.error.bind(console,format $ 1("ERROR"),"color: orange"):console.log.bind(console," \x 1B[31m",format $ 1("ERROR"))),qa<=LEVELS.warn&&(log $ 1.warn=console.warn?console.warn.bind(console,format $ 1("WARN"),"color: orange"):console.log.bind(console," \x 1B[33m",format $ 1("WARN"))),qa<=LEVELS.info&&(log $ 1.info=console.info?console.info.bind(console,format $ 1("INFO"),"color: lightblue"):console.log.bind(console," \x 1B[34m",format $ 1("INFO"))),qa<=LEVELS.debug&&(log $ 1.debug=console.debug?console.debug.bind(console,format $ 1("DEBUG"),"color: lightgreen"):console.log.bind(console," \x 1B[32m",format $ 1("DEBUG"))),qa<=LEVELS.trace&&(log $ 1.trace=console.debug?console.debug.bind(console,format $ 1("TRACE"),"color: lightgreen"):console.log.bind(console," \x 1B[32m",format $ 1("TRACE")))},"setLogLevel"),format $ 1=__name(Ra=> ` % c$ { dayjs2 ( ) . format ( "ss.SSS" ) } : $ { Ra } : ` ,"format"),frontMatterRegex=/^-{3} \s *[ \n \r ](.*?)[ \n \r ]-{3} \s *[ \n \r ]+/s,directiveRegex=/%{2}{ \s *(?:( \w +) \s *:|( \w +)) \s *(?:( \w +)|((?:(?!}%{2}).| \r ? \n )*))? \s *(?:}%{2})?/gi,anyCommentRegex=/ \s *%%.* \n /gm,sy,UnknownDiagramError=(sy=class extends Error{constructor(qa){super(qa),this.name="UnknownDiagramError"}},__name(sy,"UnknownDiagramError"),sy),detectors={},detectType=__name(function(Ra,qa){Ra=Ra.replace(frontMatterRegex,"").replace(directiveRegex,"").replace(anyCommentRegex, `
` );for(const[Ja,{detector:ed}]of Object.entries(detectors))if(ed(Ra,qa))return Ja;throw new UnknownDiagramError( ` No diagram type detected matching given configuration for text : $ { Ra } ` )},"detectType"),registerLazyLoadedDiagrams=__name((...Ra)=>{for(const{id:qa,detector:Ja,loader:ed}of Ra)addDetector(qa,Ja,ed)},"registerLazyLoadedDiagrams"),addDetector=__name((Ra,qa,Ja)=>{detectors[Ra]&&log $ 1.warn( ` Detector with key $ { Ra } already exists . Overwriting . ` ),detectors[Ra]={detector:qa,loader:Ja},log $ 1.debug( ` Detector with key $ { Ra } added$ { Ja ? " with loader" : "" } ` )},"addDetector"),getDiagramLoader=__name(Ra=>detectors[Ra].loader,"getDiagramLoader"),assignWithDepth=__name((Ra,qa,{depth:Ja=2,clobber:ed=!1}={})=>{const td={depth:Ja,clobber:ed};return Array.isArray(qa)&&!Array.isArray(Ra)?(qa.forEach(rd=>assignWithDepth(Ra,rd,td)),Ra):Array.isArray(qa)&&Array.isArray(Ra)?(qa.forEach(rd=>{Ra.includes(rd)||Ra.push(rd)}),Ra):Ra===void 0||Ja<=0?Ra!=null&&typeof Ra=="object"&&typeof qa=="object"?Object.assign(Ra,qa):qa:(qa!==void 0&&typeof Ra=="object"&&typeof qa=="object"&&Object.keys(qa).forEach(rd=>{typeof qa[rd]=="object"&&(Ra[rd]===void 0||typeof Ra[rd]=="object")?(Ra[rd]===void 0&&(Ra[rd]=Array.isArray(qa[rd])?[]:{}),Ra[rd]=assignWithDepth(Ra[rd],qa[rd],{depth:Ja-1,clobber:ed})):(ed||typeof Ra[rd]!="object"&&typeof qa[rd]!="object")&&(Ra[rd]=qa[rd])}),Ra)},"assignWithDepth"),assignWithDepth_default=assignWithDepth,oldAttributeBackgroundColorOdd="#ffffff",oldAttributeBackgroundColorEven="#f2f2f2",mkBorder=__name((Ra,qa)=>qa?adjust(Ra,{s:-40,l:10}):adjust(Ra,{s:-40,l:-10}),"mkBorder"),uy,Theme=(uy=class{constructor(){this.background="#f4f4f4",this.primaryColor="#fff4dd",this.noteBkgColor="#fff5ad",this.noteTextColor="#333",this.THEME_COLOR_LIMIT=12,this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px"}updateColors(){var Ja,ed,td,rd,od,sd,ld,cd,ud,_d,yd;if(this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#333"),this.secondaryColor=this.secondaryColor||adjust(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||adjust(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||mkBorder(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||mkBorder(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||mkBorder(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||mkBorder(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#333",this.secondaryTextColor=this.secondaryTextColor||invert(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||invert(this.tertiaryColor),this.lineColor=this.lineColor||invert(this.background),this.arrowheadColor=this.arrowheadColor||invert(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.nodeBorder=this.nodeBorder||this.primaryBorderColor,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?darken(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||this.actorBorder,this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextCo
2024-08-30 15:19:18 +08:00
font - family : $ { Ja . fontFamily } ;
font - size : $ { Ja . fontSize } ;
fill : $ { Ja . textColor }
2024-08-27 22:31:52 +08:00
}
/* Classes common for multiple diagrams */
& . error - icon {
2024-08-30 15:19:18 +08:00
fill : $ { Ja . errorBkgColor } ;
2024-08-27 22:31:52 +08:00
}
& . error - text {
2024-08-30 15:19:18 +08:00
fill : $ { Ja . errorTextColor } ;
stroke : $ { Ja . errorTextColor } ;
2024-08-27 22:31:52 +08:00
}
& . edge - thickness - normal {
stroke - width : 1 px ;
}
& . edge - thickness - thick {
stroke - width : 3.5 px
}
& . edge - pattern - solid {
stroke - dasharray : 0 ;
}
& . edge - thickness - invisible {
stroke - width : 0 ;
fill : none ;
}
& . edge - pattern - dashed {
stroke - dasharray : 3 ;
}
. edge - pattern - dotted {
stroke - dasharray : 2 ;
}
& . marker {
2024-08-30 15:19:18 +08:00
fill : $ { Ja . lineColor } ;
stroke : $ { Ja . lineColor } ;
2024-08-27 22:31:52 +08:00
}
& . marker . cross {
2024-08-30 15:19:18 +08:00
stroke : $ { Ja . lineColor } ;
2024-08-27 22:31:52 +08:00
}
& svg {
2024-08-30 15:19:18 +08:00
font - family : $ { Ja . fontFamily } ;
font - size : $ { Ja . fontSize } ;
2024-08-27 22:31:52 +08:00
}
& p {
margin : 0
}
2024-08-30 15:19:18 +08:00
$ { ed }
2024-08-27 22:31:52 +08:00
2024-08-30 15:19:18 +08:00
$ { qa }
` },"getStyles"),addStylesForDiagram=__name((Ra,qa)=>{qa!==void 0&&(themes[Ra]=qa)},"addStylesForDiagram"),styles_default=getStyles,commonDb_exports={};__export(commonDb_exports,{clear:()=>clear $ 1,getAccDescription:()=>getAccDescription,getAccTitle:()=>getAccTitle,getDiagramTitle:()=>getDiagramTitle,setAccDescription:()=>setAccDescription,setAccTitle:()=>setAccTitle,setDiagramTitle:()=>setDiagramTitle});var accTitle="",diagramTitle="",accDescription="",sanitizeText2=__name(Ra=>sanitizeText(Ra,getConfig $ 1()),"sanitizeText"),clear $ 1=__name(()=>{accTitle="",accDescription="",diagramTitle=""},"clear"),setAccTitle=__name(Ra=>{accTitle=sanitizeText2(Ra).replace(/^ \s +/g,"")},"setAccTitle"),getAccTitle=__name(()=>accTitle,"getAccTitle"),setAccDescription=__name(Ra=>{accDescription=sanitizeText2(Ra).replace(/ \n \s +/g, `
2024-08-31 11:28:56 +08:00
` )},"setAccDescription"),getAccDescription=__name(()=>accDescription,"getAccDescription"),setDiagramTitle=__name(Ra=>{diagramTitle=sanitizeText2(Ra)},"setDiagramTitle"),getDiagramTitle=__name(()=>diagramTitle,"getDiagramTitle"),log2=log $ 1,setLogLevel2=setLogLevel,getConfig2=getConfig $ 1,setConfig2=setConfig,defaultConfig2=defaultConfig,sanitizeText3=__name(Ra=>sanitizeText(Ra,getConfig2()),"sanitizeText"),setupGraphViewbox2=setupGraphViewbox,getCommonDb=__name(()=>commonDb_exports,"getCommonDb"),diagrams={},registerDiagram=__name((Ra,qa,Ja)=>{var ed;diagrams[Ra]&&log2.warn( ` Diagram with id $ { Ra } already registered . Overwriting . ` ),diagrams[Ra]=qa,Ja&&addDetector(Ra,Ja),addStylesForDiagram(Ra,qa.styles),(ed=qa.injectUtils)==null||ed.call(qa,log2,setLogLevel2,getConfig2,sanitizeText3,setupGraphViewbox2,getCommonDb(),()=>{})},"registerDiagram"),getDiagram=__name(Ra=>{if(Ra in diagrams)return diagrams[Ra];throw new DiagramNotFoundError(Ra)},"getDiagram"),Ay,DiagramNotFoundError=(Ay=class extends Error{constructor(qa){super( ` Diagram $ { qa } not found . ` )}},__name(Ay,"DiagramNotFoundError"),Ay),getSubGraphTitleMargins=__name(({flowchart:Ra})=>{var td,rd;const qa=((td=Ra==null?void 0:Ra.subGraphTitleMargin)==null?void 0:td.top)??0,Ja=((rd=Ra==null?void 0:Ra.subGraphTitleMargin)==null?void 0:rd.bottom)??0,ed=qa+Ja;return{subGraphTitleTopMargin:qa,subGraphTitleBottomMargin:Ja,subGraphTitleTotalMargin:ed}},"getSubGraphTitleMargins"),markerOffsets={aggregation:18,extension:18,composition:18,dependency:6,lollipop:13.5,arrow_point:4};function calculateDeltaAndAngle(Ra,qa){if(Ra===void 0||qa===void 0)return{angle:0,deltaX:0,deltaY:0};Ra=pointTransformer(Ra),qa=pointTransformer(qa);const[Ja,ed]=[Ra.x,Ra.y],[td,rd]=[qa.x,qa.y],od=td-Ja,sd=rd-ed;return{angle:Math.atan(sd/od),deltaX:od,deltaY:sd}}__name(calculateDeltaAndAngle,"calculateDeltaAndAngle");var pointTransformer=__name(Ra=>Array.isArray(Ra)?{x:Ra[0],y:Ra[1]}:Ra,"pointTransformer"),getLineFunctionsWithOffset=__name(Ra=>({x:__name(function(qa,Ja,ed){let td=0;if(Ja===0&&Object.hasOwn(markerOffsets,Ra.arrowTypeStart)){const{angle:rd,deltaX:od}=calculateDeltaAndAngle(ed[0],ed[1]);td=markerOffsets[Ra.arrowTypeStart]*Math.cos(rd)*(od>=0?1:-1)}else if(Ja===ed.length-1&&Object.hasOwn(markerOffsets,Ra.arrowTypeEnd)){const{angle:rd,deltaX:od}=calculateDeltaAndAngle(ed[ed.length-1],ed[ed.length-2]);td=markerOffsets[Ra.arrowTypeEnd]*Math.cos(rd)*(od>=0?1:-1)}return pointTransformer(qa).x+td},"x"),y:__name(function(qa,Ja,ed){let td=0;if(Ja===0&&Object.hasOwn(markerOffsets,Ra.arrowTypeStart)){const{angle:rd,deltaY:od}=calculateDeltaAndAngle(ed[0],ed[1]);td=markerOffsets[Ra.arrowTypeStart]*Math.abs(Math.sin(rd))*(od>=0?1:-1)}else if(Ja===ed.length-1&&Object.hasOwn(markerOffsets,Ra.arrowTypeEnd)){const{angle:rd,deltaY:od}=calculateDeltaAndAngle(ed[ed.length-1],ed[ed.length-2]);td=markerOffsets[Ra.arrowTypeEnd]*Math.abs(Math.sin(rd))*(od>=0?1:-1)}return pointTransformer(qa).y+td},"y")}),"getLineFunctionsWithOffset"),dist={},constants={};Object.defineProperty(constants,"__esModule",{value:!0});constants.BLANK_URL=constants.relativeFirstCharacters=constants.whitespaceEscapeCharsRegex=constants.urlSchemeRegex=constants.ctrlCharactersRegex=constants.htmlCtrlEntityRegex=constants.htmlEntitiesRegex=constants.invalidProtocolRegex=void 0;constants.invalidProtocolRegex=/^([^ \w ]*)(javascript|data|vbscript)/im;constants.htmlEntitiesRegex=/&#( \w +)(^ \w |;)?/g;constants.htmlCtrlEntityRegex=/&(newline|tab);/gi;constants.ctrlCharactersRegex=/[ \u 0000- \u 001F \u 007F- \u 009F \u 2000- \u 200D \u FEFF]/gim;constants.urlSchemeRegex=/^.+(:|:)/gim;constants.whitespaceEscapeCharsRegex=/( \\ |%5[cC])((%(6[eE]|72|74))|[nrt])/g;constants.relativeFirstCharacters=[".","/"];constants.BLANK_URL="about:blank";Object.defineProperty(dist,"__esModule",{value:!0});var sanitizeUrl_1=dist.sanitizeUrl=void 0,constants_1=constants;function isRelativeUrlWithoutProtocol(Ra){return constants_1.relativeFirstCharacters.indexOf(Ra[0])>-1}function decodeHtmlCharacters(Ra){var qa=Ra.replace(constants_1.ctrlCharactersRegex,"");return qa.replace(constants_
` ,"ig");Ra=Ra.trim().replace(td,"").replace(/'/gm,'"'),log $ 1.debug( ` Detecting diagram directive$ { qa !== null ? " type:" + qa : "" } based on the text : $ { Ra } ` );let rd;const od=[];for(;(rd=directiveRegex.exec(Ra))!==null;)if(rd.index===directiveRegex.lastIndex&&directiveRegex.lastIndex++,rd&&!qa||qa&&((Ja=rd[1])!=null&&Ja.match(qa))||qa&&((ed=rd[2])!=null&&ed.match(qa))){const sd=rd[1]?rd[1]:rd[2],ld=rd[3]?rd[3].trim():rd[4]?JSON.parse(rd[4].trim()):null;od.push({type:sd,args:ld})}return od.length===0?{type:Ra,args:null}:od.length===1?od[0]:od}catch(td){return log $ 1.error( ` ERROR : $ { td . message } - Unable to parse directive type : '${qa}' based on the text : '${Ra}' ` ),{type:void 0,args:null}}},"detectDirective"),removeDirectives=__name(function(Ra){return Ra.replace(directiveRegex,"")},"removeDirectives"),isSubstringInArray=__name(function(Ra,qa){for(const[Ja,ed]of qa.entries())if(ed.match(Ra))return Ja;return-1},"isSubstringInArray");function interpolateToCurve(Ra,qa){if(!Ra)return qa;const Ja= ` curve$ { Ra . charAt ( 0 ) . toUpperCase ( ) + Ra . slice ( 1 ) } ` ;return d3CurveTypes[Ja]??qa}__name(interpolateToCurve,"interpolateToCurve");function formatUrl(Ra,qa){const Ja=Ra.trim();if(Ja)return qa.securityLevel!=="loose"?sanitizeUrl_1(Ja):Ja}__name(formatUrl,"formatUrl");var runFunc=__name((Ra,...qa)=>{const Ja=Ra.split("."),ed=Ja.length-1,td=Ja[ed];let rd=window;for(let od=0;od<ed;od++)if(rd=rd[Ja[od]],!rd){log $ 1.error( ` Function name : $ { Ra } not found in window ` );return}rd[td](...qa)},"runFunc");function distance(Ra,qa){return!Ra||!qa?0:Math.sqrt(Math.pow(qa.x-Ra.x,2)+Math.pow(qa.y-Ra.y,2))}__name(distance,"distance");function traverseEdge(Ra){let qa,Ja=0;Ra.forEach(td=>{Ja+=distance(td,qa),qa=td});const ed=Ja/2;return calculatePoint(Ra,ed)}__name(traverseEdge,"traverseEdge");function calcLabelPosition(Ra){return Ra.length===1?Ra[0]:traverseEdge(Ra)}__name(calcLabelPosition,"calcLabelPosition");var roundNumber=__name((Ra,qa=2)=>{const Ja=Math.pow(10,qa);return Math.round(Ra*Ja)/Ja},"roundNumber"),calculatePoint=__name((Ra,qa)=>{let Ja,ed=qa;for(const td of Ra){if(Ja){const rd=distance(td,Ja);if(rd<ed)ed-=rd;else{const od=ed/rd;if(od<=0)return Ja;if(od>=1)return{x:td.x,y:td.y};if(od>0&&od<1)return{x:roundNumber((1-od)*Ja.x+od*td.x,5),y:roundNumber((1-od)*Ja.y+od*td.y,5)}}}Ja=td}throw new Error("Could not find a suitable point for the given distance")},"calculatePoint"),calcCardinalityPosition=__name((Ra,qa,Ja)=>{log $ 1.info( ` our points $ { JSON . stringify ( qa ) } ` ),qa[0]!==Ja&&(qa=qa.reverse());const td=calculatePoint(qa,25),rd=Ra?10:5,od=Math.atan2(qa[0].y-td.y,qa[0].x-td.x),sd={x:0,y:0};return sd.x=Math.sin(od)*rd+(qa[0].x+td.x)/2,sd.y=-Math.cos(od)*rd+(qa[0].y+td.y)/2,sd},"calcCardinalityPosition");function calcTerminalLabelPosition(Ra,qa,Ja){const ed=structuredClone(Ja);log $ 1.info("our points",ed),qa!=="start_left"&&qa!=="start_right"&&ed.reverse();const td=25+Ra,rd=calculatePoint(ed,td),od=10+Ra*.5,sd=Math.atan2(ed[0].y-rd.y,ed[0].x-rd.x),ld={x:0,y:0};return qa==="start_left"?(ld.x=Math.sin(sd+Math.PI)*od+(ed[0].x+rd.x)/2,ld.y=-Math.cos(sd+Math.PI)*od+(ed[0].y+rd.y)/2):qa==="end_right"?(ld.x=Math.sin(sd-Math.PI)*od+(ed[0].x+rd.x)/2-5,ld.y=-Math.cos(sd-Math.PI)*od+(ed[0].y+rd.y)/2-5):qa==="end_left"?(ld.x=Math.sin(sd)*od+(ed[0].x+rd.x)/2-5,ld.y=-Math.cos(sd)*od+(ed[0].y+rd.y)/2-5):(ld.x=Math.sin(sd)*od+(ed[0].x+rd.x)/2,ld.y=-Math.cos(sd)*od+(ed[0].y+rd.y)/2),ld}__name(calcTerminalLabelPosition,"calcTerminalLabelPosition");function getStylesFromArray(Ra){let qa="",Ja="";for(const ed of Ra)ed!==void 0&&(ed.startsWith("color:")||ed.startsWith("text-align:")?Ja=Ja+ed+";":qa=qa+ed+";");return{style:qa,labelStyle:Ja}}__name(getStylesFromArray,"getStylesFromArray");var cnt=0,generateId=__name(()=>(cnt++,"id-"+Math.random().toString(36).substr(2,12)+"-"+cnt),"generateId");function makeRandomHex(Ra){let qa="";const Ja="0123456789abcdef",ed=Ja.length;for(let td=0;td<Ra;td++)qa+=Ja.charAt(Math.floor(Math.random()*ed));return qa}__name(makeRandomHex,"makeRandomHex");var random=__name(Ra=>makeRandomHex(Ra.length),"random"),getTextObj=__name(function(){return{x:0,y:0,fill:vo
2024-08-30 15:19:18 +08:00
` ).map(td=>{const rd=td.match(/^ \s +/);if(rd===null)return td;const[od]=rd;return od.length>=ed.length?td.slice(ed.length):td}).join( `
2024-08-31 11:28:56 +08:00
` )}class _Tokenizer{constructor(qa){e1(this,"options");e1(this,"rules");e1(this,"lexer");this.options=qa||_defaults}space(qa){const Ja=this.rules.block.newline.exec(qa);if(Ja&&Ja[0].length>0)return{type:"space",raw:Ja[0]}}code(qa){const Ja=this.rules.block.code.exec(qa);if(Ja){const ed=Ja[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:Ja[0],codeBlockStyle:"indented",text:this.options.pedantic?ed:rtrim(ed, `
2024-08-30 15:19:18 +08:00
` )}}}fences(qa){const Ja=this.rules.block.fences.exec(qa);if(Ja){const ed=Ja[0],td=indentCodeCompensation(ed,Ja[3]||"");return{type:"code",raw:ed,lang:Ja[2]?Ja[2].trim().replace(this.rules.inline.anyPunctuation," $ 1"):Ja[2],text:td}}}heading(qa){const Ja=this.rules.block.heading.exec(qa);if(Ja){let ed=Ja[2].trim();if(/# $ /.test(ed)){const td=rtrim(ed,"#");(this.options.pedantic||!td||/ $ /.test(td))&&(ed=td.trim())}return{type:"heading",raw:Ja[0],depth:Ja[1].length,text:ed,tokens:this.lexer.inline(ed)}}}hr(qa){const Ja=this.rules.block.hr.exec(qa);if(Ja)return{type:"hr",raw:rtrim(Ja[0], `
` )}}blockquote(qa){const Ja=this.rules.block.blockquote.exec(qa);if(Ja){let ed=rtrim(Ja[0], `
2024-08-27 22:31:52 +08:00
` ).split( `
2024-08-30 15:19:18 +08:00
` ),td="",rd="";const od=[];for(;ed.length>0;){let sd=!1;const ld=[];let cd;for(cd=0;cd<ed.length;cd++)if(/^ {0,3}>/.test(ed[cd]))ld.push(ed[cd]),sd=!0;else if(!sd)ld.push(ed[cd]);else break;ed=ed.slice(cd);const ud=ld.join( `
2024-08-31 11:28:56 +08:00
` ),_d=ud.replace(/ \n {0,3}((?:=+|-+) *)(?= \n | $ )/g, `
2024-08-30 15:19:18 +08:00
$1 ` ).replace(/^ {0,3}>[ \t ]?/gm,"");td=td? ` $ { td }
$ { ud } ` :ud,rd=rd? ` $ { rd }
2024-08-31 11:28:56 +08:00
$ { _d } ` :_d;const yd=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(_d,od,!0),this.lexer.state.top=yd,ed.length===0)break;const gd=od[od.length-1];if((gd==null?void 0:gd.type)==="code")break;if((gd==null?void 0:gd.type)==="blockquote"){const Ed=gd,Td=Ed.raw+ `
2024-08-30 15:19:18 +08:00
` +ed.join( `
2024-08-31 11:28:56 +08:00
` ),Id=this.blockquote(Td);od[od.length-1]=Id,td=td.substring(0,td.length-Ed.raw.length)+Id.raw,rd=rd.substring(0,rd.length-Ed.text.length)+Id.text;break}else if((gd==null?void 0:gd.type)==="list"){const Ed=gd,Td=Ed.raw+ `
2024-08-30 15:19:18 +08:00
` +ed.join( `
2024-08-31 11:28:56 +08:00
` ),Id=this.list(Td);od[od.length-1]=Id,td=td.substring(0,td.length-gd.raw.length)+Id.raw,rd=rd.substring(0,rd.length-Ed.raw.length)+Id.raw,ed=Td.substring(od[od.length-1].raw.length).split( `
` );continue}}return{type:"blockquote",raw:td,tokens:od,text:rd}}}list(qa){let Ja=this.rules.block.list.exec(qa);if(Ja){let ed=Ja[1].trim();const td=ed.length>1,rd={type:"list",raw:"",ordered:td,start:td?+ed.slice(0,-1):"",loose:!1,items:[]};ed=td? ` \ \ d { 1 , 9 } \ \ $ { ed . slice ( - 1 ) } ` : ` \ \ $ { ed } ` ,this.options.pedantic&&(ed=td?ed:"[*+-]");const od=new RegExp( ` ^ ( { 0 , 3 } $ { ed } ) ( ( ? : [ ] [ ^ \ \ n ] * ) ? ( ? : \ \ n | $ ) ) ` );let sd=!1;for(;qa;){let ld=!1,cd="",ud="";if(!(Ja=od.exec(qa))||this.rules.block.hr.test(qa))break;cd=Ja[0],qa=qa.substring(cd.length);let _d=Ja[2].split( `
` ,1)[0].replace(/^ \t +/,Ad=>" ".repeat(3*Ad.length)),yd=qa.split( `
` ,1)[0],gd=!_d.trim(),Ed=0;if(this.options.pedantic?(Ed=2,ud=_d.trimStart()):gd?Ed=Ja[1].length+1:(Ed=Ja[2].search(/[^ ]/),Ed=Ed>4?1:Ed,ud=_d.slice(Ed),Ed+=Ja[1].length),gd&&/^ * $ /.test(yd)&&(cd+=yd+ `
` ,qa=qa.substring(yd.length+1),ld=!0),!ld){const Ad=new RegExp( ` ^ { 0 , $ { Math . min ( 3 , Ed - 1 ) } } ( ? : [ * + - ] | \ \ d { 1 , 9 } [ . ) ] ) ( ( ? : [ ] [ ^ \ \ n ] * ) ? ( ? : \ \ n | $ ) ) ` ),Nd=new RegExp( ` ^ { 0 , $ { Math . min ( 3 , Ed - 1 ) } } ( ( ? : - * ) { 3 , } | ( ? : _ * ) { 3 , } | ( ? : \ \ * * ) { 3 , } ) ( ? : \ \ n + | $ ) ` ),kd=new RegExp( ` ^ { 0 , $ { Math . min ( 3 , Ed - 1 ) } } ( ? : \ ` \` \` |~~~) ` ) , Rd = new RegExp ( ` ^ {0, ${ Math . min ( 3 , Ed - 1 ) } }# ` ) ; for ( ; qa ; ) { const Md = qa . split ( `
` ,1)[0];if(yd=Md,this.options.pedantic&&(yd=yd.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),kd.test(yd)||Rd.test(yd)||Ad.test(yd)||Nd.test(qa))break;if(yd.search(/[^ ]/)>=Ed||!yd.trim())ud+= `
` +yd.slice(Ed);else{if(gd||_d.search(/[^ ]/)>=4||kd.test(_d)||Rd.test(_d)||Nd.test(_d))break;ud+= `
` +yd}!gd&&!yd.trim()&&(gd=!0),cd+=Md+ `
` ,qa=qa.substring(Md.length+1),_d=yd.slice(Ed)}}rd.loose||(sd?rd.loose=!0:/ \n * \n * $ /.test(cd)&&(sd=!0));let Td=null,Id;this.options.gfm&&(Td=/^ \[ [ xX] \] /.exec(ud),Td&&(Id=Td[0]!=="[ ] ",ud=ud.replace(/^ \[ [ xX] \] +/,""))),rd.items.push({type:"list_item",raw:cd,task:!!Td,checked:Id,loose:!1,text:ud,tokens:[]}),rd.raw+=cd}rd.items[rd.items.length-1].raw=rd.items[rd.items.length-1].raw.trimEnd(),rd.items[rd.items.length-1].text=rd.items[rd.items.length-1].text.trimEnd(),rd.raw=rd.raw.trimEnd();for(let ld=0;ld<rd.items.length;ld++)if(this.lexer.state.top=!1,rd.items[ld].tokens=this.lexer.blockTokens(rd.items[ld].text,[]),!rd.loose){const cd=rd.items[ld].tokens.filter(_d=>_d.type==="space"),ud=cd.length>0&&cd.some(_d=>/ \n .* \n /.test(_d.raw));rd.loose=ud}if(rd.loose)for(let ld=0;ld<rd.items.length;ld++)rd.items[ld].loose=!0;return rd}}html(qa){const Ja=this.rules.block.html.exec(qa);if(Ja)return{type:"html",block:!0,raw:Ja[0],pre:Ja[1]==="pre"||Ja[1]==="script"||Ja[1]==="style",text:Ja[0]}}def(qa){const Ja=this.rules.block.def.exec(qa);if(Ja){const ed=Ja[1].toLowerCase().replace(/ \s +/g," "),td=Ja[2]?Ja[2].replace(/^<(.*)> $ /," $ 1").replace(this.rules.inline.anyPunctuation," $ 1"):"",rd=Ja[3]?Ja[3].substring(1,Ja[3].length-1).replace(this.rules.inline.anyPunctuation," $ 1"):Ja[3];return{type:"def",tag:ed,raw:Ja[0],href:td,title:rd}}}table(qa){const Ja=this.rules.block.table.exec(qa);if(!Ja||!/[:|]/.test(Ja[2]))return;const ed=splitCells(Ja[1]),td=Ja[2].replace(/^ \| | \| * $ /g,"").split("|"),rd=Ja[3]&&Ja[3].trim()?Ja[3].replace(/ \n [ \t ]* $ /,"").split( `
2024-08-30 15:19:18 +08:00
` ):[],od={type:"table",raw:Ja[0],header:[],align:[],rows:[]};if(ed.length===td.length){for(const sd of td)/^ *-+: * $ /.test(sd)?od.align.push("right"):/^ *:-+: * $ /.test(sd)?od.align.push("center"):/^ *:-+ * $ /.test(sd)?od.align.push("left"):od.align.push(null);for(let sd=0;sd<ed.length;sd++)od.header.push({text:ed[sd],tokens:this.lexer.inline(ed[sd]),header:!0,align:od.align[sd]});for(const sd of rd)od.rows.push(splitCells(sd,od.header.length).map((ld,cd)=>({text:ld,tokens:this.lexer.inline(ld),header:!1,align:od.align[cd]})));return od}}lheading(qa){const Ja=this.rules.block.lheading.exec(qa);if(Ja)return{type:"heading",raw:Ja[0],depth:Ja[2].charAt(0)==="="?1:2,text:Ja[1],tokens:this.lexer.inline(Ja[1])}}paragraph(qa){const Ja=this.rules.block.paragraph.exec(qa);if(Ja){const ed=Ja[1].charAt(Ja[1].length-1)=== `
2024-08-31 11:28:56 +08:00
` ?Ja[1].slice(0,-1):Ja[1];return{type:"paragraph",raw:Ja[0],text:ed,tokens:this.lexer.inline(ed)}}}text(qa){const Ja=this.rules.block.text.exec(qa);if(Ja)return{type:"text",raw:Ja[0],text:Ja[0],tokens:this.lexer.inline(Ja[0])}}escape(qa){const Ja=this.rules.inline.escape.exec(qa);if(Ja)return{type:"escape",raw:Ja[0],text:escape $ 1 $ 1(Ja[1])}}tag(qa){const Ja=this.rules.inline.tag.exec(qa);if(Ja)return!this.lexer.state.inLink&&/^<a /i.test(Ja[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&/^< \/ a>/i.test(Ja[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)( \s |>)/i.test(Ja[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^< \/ (pre|code|kbd|script)( \s |>)/i.test(Ja[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:Ja[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:Ja[0]}}link(qa){const Ja=this.rules.inline.link.exec(qa);if(Ja){const ed=Ja[2].trim();if(!this.options.pedantic&&/^</.test(ed)){if(!/> $ /.test(ed))return;const od=rtrim(ed.slice(0,-1)," \\ ");if((ed.length-od.length)%2===0)return}else{const od=findClosingBracket(Ja[2],"()");if(od>-1){const ld=(Ja[0].indexOf("!")===0?5:4)+Ja[1].length+od;Ja[2]=Ja[2].substring(0,od),Ja[0]=Ja[0].substring(0,ld).trim(),Ja[3]=""}}let td=Ja[2],rd="";if(this.options.pedantic){const od=/^([^'"]*[^ \s ]) \s +(['"])(.*) \2 /.exec(td);od&&(td=od[1],rd=od[3])}else rd=Ja[3]?Ja[3].slice(1,-1):"";return td=td.trim(),/^</.test(td)&&(this.options.pedantic&&!/> $ /.test(ed)?td=td.slice(1):td=td.slice(1,-1)),outputLink(Ja,{href:td&&td.replace(this.rules.inline.anyPunctuation," $ 1"),title:rd&&rd.replace(this.rules.inline.anyPunctuation," $ 1")},Ja[0],this.lexer)}}reflink(qa,Ja){let ed;if((ed=this.rules.inline.reflink.exec(qa))||(ed=this.rules.inline.nolink.exec(qa))){const td=(ed[2]||ed[1]).replace(/ \s +/g," "),rd=Ja[td.toLowerCase()];if(!rd){const od=ed[0].charAt(0);return{type:"text",raw:od,text:od}}return outputLink(ed,rd,ed[0],this.lexer)}}emStrong(qa,Ja,ed=""){let td=this.rules.inline.emStrongLDelim.exec(qa);if(!td||td[3]&&ed.match(/[ \p {L} \p {N}]/u))return;if(!(td[1]||td[2]||"")||!ed||this.rules.inline.punctuation.exec(ed)){const od=[...td[0]].length-1;let sd,ld,cd=od,ud=0;const _d=td[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(_d.lastIndex=0,Ja=Ja.slice(-1*qa.length+od);(td=_d.exec(Ja))!=null;){if(sd=td[1]||td[2]||td[3]||td[4]||td[5]||td[6],!sd)continue;if(ld=[...sd].length,td[3]||td[4]){cd+=ld;continue}else if((td[5]||td[6])&&od%3&&!((od+ld)%3)){ud+=ld;continue}if(cd-=ld,cd>0)continue;ld=Math.min(ld,ld+cd+ud);const yd=[...td[0]][0].length,gd=qa.slice(0,od+td.index+yd+ld);if(Math.min(od,ld)%2){const Td=gd.slice(1,-1);return{type:"em",raw:gd,text:Td,tokens:this.lexer.inlineTokens(Td)}}const Ed=gd.slice(2,-2);return{type:"strong",raw:gd,text:Ed,tokens:this.lexer.inlineTokens(Ed)}}}}codespan(qa){const Ja=this.rules.inline.code.exec(qa);if(Ja){let ed=Ja[2].replace(/ \n /g," ");const td=/[^ ]/.test(ed),rd=/^ /.test(ed)&&/ $ /.test(ed);return td&&rd&&(ed=ed.substring(1,ed.length-1)),ed=escape $ 1 $ 1(ed,!0),{type:"codespan",raw:Ja[0],text:ed}}}br(qa){const Ja=this.rules.inline.br.exec(qa);if(Ja)return{type:"br",raw:Ja[0]}}del(qa){const Ja=this.rules.inline.del.exec(qa);if(Ja)return{type:"del",raw:Ja[0],text:Ja[2],tokens:this.lexer.inlineTokens(Ja[2])}}autolink(qa){const Ja=this.rules.inline.autolink.exec(qa);if(Ja){let ed,td;return Ja[2]==="@"?(ed=escape $ 1 $ 1(Ja[1]),td="mailto:"+ed):(ed=escape $ 1 $ 1(Ja[1]),td=ed),{type:"link",raw:Ja[0],text:ed,href:td,tokens:[{type:"text",raw:ed,text:ed}]}}}url(qa){var ed;let Ja;if(Ja=this.rules.inline.url.exec(qa)){let td,rd;if(Ja[2]==="@")td=escape $ 1 $ 1(Ja[0]),rd="mailto:"+td;else{let od;do od=Ja[0],Ja[0]=((ed=this.rules.inline._backpedal.exec(Ja[0]))==null?void 0:ed[0])??"";while(od!==Ja[0]);td=escape $ 1 $ 1(Ja[0]),Ja[1]==="www."?rd="http://"+Ja[0]:rd=Ja[0]}return{type:"link",raw:Ja[0],text:td,href:rd,tokens:[{type:"text",raw:td,text:td}]}}}inlineText(qa){const Ja=this.rules.inline.text.exec(qa);if(Ja){let ed;return this.lexer.state.inRawBlock?ed=J
] ` ).replace("lheading",lheading).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},escape $ 2=/^ \\ ([!"# $ %&'()*+, \- ./:;<=>?@ \[ \] \\ ^_ ` { | } ~ ] ) / , inlineCode = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/ , br$3 = /^( {2,}|\\)\n(?!\s*$)/ , inlineText = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/ , _punctuation = "\\p{P}\\p{S}" , punctuation = edit ( /^((?![*_])[\spunctuation])/ , "u" ) . replace ( /punctuation/g , _punctuation ) . getRegex ( ) , blockSkip = /\[[^[\]]*?\]\([^\(\)]*?\)|`[^`]*?`|<[^<>]*?>/g , emStrongLDelim = edit ( /^(?:\*+(?:((?!\*)[punct])|[^\s*]))|^_+(?:((?!_)[punct])|([^\s_]))/ , "u" ) . replace ( /punct/g , _punctuation ) . getRegex ( ) , emStrongRDelimAst = edit ( "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)[punct](\\*+)(?=[\\s]|$)|[^punct\\s](\\*+)(?!\\*)(?=[punct\\s]|$)|(?!\\*)[punct\\s](\\*+)(?=[^punct\\s])|[\\s](\\*+)(?!\\*)(?=[punct])|(?!\\*)[punct](\\*+)(?!\\*)(?=[punct])|[^punct\\s](\\*+)(?=[^punct\\s])" , "gu" ) . replace ( /punct/g , _punctuation ) . getRegex ( ) , emStrongRDelimUnd = edit ( "^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)[punct](_+)(?=[\\s]|$)|[^punct\\s](_+)(?!_)(?=[punct\\s]|$)|(?!_)[punct\\s](_+)(?=[^punct\\s])|[\\s](_+)(?!_)(?=[punct])|(?!_)[punct](_+)(?!_)(?=[punct])" , "gu" ) . replace ( /punct/g , _punctuation ) . getRegex ( ) , anyPunctuation = edit ( /\\([punct])/ , "gu" ) . replace ( /punct/g , _punctuation ) . getRegex ( ) , autolink = edit ( /^<(scheme:[^\s\x00-\x1f<>]*|email)>/ ) . replace ( "scheme" , /[a-zA-Z][a-zA-Z0-9+.-]{1,31}/ ) . replace ( "email" , /[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/ ) . getRegex ( ) , _inlineComment = edit ( _comment ) . replace ( "(?:-->|$)" , "-->" ) . getRegex ( ) , tag = edit ( "^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>" ) . replace ( "comment" , _inlineComment ) . replace ( "attribute" , /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/ ) . getRegex ( ) , _inlineLabel = /(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/ , link = edit ( /^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/ ) . replace ( "label" , _inlineLabel ) . replace ( "href" , /<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/ ) . replace ( "title" , /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/ ) . getRegex ( ) , reflink = edit ( /^!?\[(label)\]\[(ref)\]/ ) . replace ( "label" , _inlineLabel ) . replace ( "ref" , _blockLabel ) . getRegex ( ) , nolink = edit ( /^!?\[(ref)\](?:\[\])?/ ) . replace ( "ref" , _blockLabel ) . getRegex ( ) , reflinkSearch = edit ( "reflink|nolink(?!\\()" , "g" ) . replace ( "reflink" , reflink ) . replace ( "nolink" , nolink ) . getRegex ( ) , inlineNormal = { _backpedal : noopTest , anyPunctuation , autolink , blockSkip , br : br$3 , code : inlineCode , del : noopTest , emStrongLDelim , emStrongRDelimAst , emStrongRDelimUnd , escape : escape$2 , link , nolink , punctuation , reflink , reflinkSearch , tag , text : inlineText , url : noopTest } , inlinePedantic = { ... inlineNormal , link : edit ( /^!?\[(label)\]\((.*?)\)/ ) . replace ( "label" , _inlineLabel ) . getRegex ( ) , reflink : edit ( /^!?\[(label)\]\s*\[([^\]]*)\]/ ) . replace ( "label" , _inlineLabel ) . getRegex ( ) } , inlineGfm = { ... inlineNormal , escape : edit ( escape$2 ) . replace ( "])" , "~|])" ) . getRegex ( ) , url : edit ( /^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/ , "i" ) . replace ( "email" , /[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/ ) . getRegex ( ) , _backpedal : /(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/ , del : /^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/ , text : /^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/ } , inlineBreaks = { ... inlineGfm , br : edit ( br$3 ) . replace ( "{2,}" , "*" ) . getRegex ( ) , text : edit ( inlineGfm . text ) . replace ( "\\b_" , "\\b_| {2,}\\n" ) . replace ( /\{2,\}/g , "*" ) . getRegex ( ) } , block$2 = { normal : blockNormal , gfm : blockGfm , pedantic : blockPedantic } , inline$1 = { normal : inlineNormal , gfm : inlineGfm , breaks : inlineBreaks , pedantic : inlinePedantic } ; class _Lexer { constructor (
2024-08-30 15:19:18 +08:00
` ),this.blockTokens(qa,this.tokens);for(let Ja=0;Ja<this.inlineQueue.length;Ja++){const ed=this.inlineQueue[Ja];this.inlineTokens(ed.src,ed.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(qa,Ja=[],ed=!1){this.options.pedantic?qa=qa.replace(/ \t /g," ").replace(/^ + $ /gm,""):qa=qa.replace(/^( *)( \t +)/gm,(sd,ld,cd)=>ld+" ".repeat(cd.length));let td,rd,od;for(;qa;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some(sd=>(td=sd.call({lexer:this},qa,Ja))?(qa=qa.substring(td.raw.length),Ja.push(td),!0):!1))){if(td=this.tokenizer.space(qa)){qa=qa.substring(td.raw.length),td.raw.length===1&&Ja.length>0?Ja[Ja.length-1].raw+= `
` :Ja.push(td);continue}if(td=this.tokenizer.code(qa)){qa=qa.substring(td.raw.length),rd=Ja[Ja.length-1],rd&&(rd.type==="paragraph"||rd.type==="text")?(rd.raw+= `
` +td.raw,rd.text+= `
` +td.text,this.inlineQueue[this.inlineQueue.length-1].src=rd.text):Ja.push(td);continue}if(td=this.tokenizer.fences(qa)){qa=qa.substring(td.raw.length),Ja.push(td);continue}if(td=this.tokenizer.heading(qa)){qa=qa.substring(td.raw.length),Ja.push(td);continue}if(td=this.tokenizer.hr(qa)){qa=qa.substring(td.raw.length),Ja.push(td);continue}if(td=this.tokenizer.blockquote(qa)){qa=qa.substring(td.raw.length),Ja.push(td);continue}if(td=this.tokenizer.list(qa)){qa=qa.substring(td.raw.length),Ja.push(td);continue}if(td=this.tokenizer.html(qa)){qa=qa.substring(td.raw.length),Ja.push(td);continue}if(td=this.tokenizer.def(qa)){qa=qa.substring(td.raw.length),rd=Ja[Ja.length-1],rd&&(rd.type==="paragraph"||rd.type==="text")?(rd.raw+= `
` +td.raw,rd.text+= `
` +td.raw,this.inlineQueue[this.inlineQueue.length-1].src=rd.text):this.tokens.links[td.tag]||(this.tokens.links[td.tag]={href:td.href,title:td.title});continue}if(td=this.tokenizer.table(qa)){qa=qa.substring(td.raw.length),Ja.push(td);continue}if(td=this.tokenizer.lheading(qa)){qa=qa.substring(td.raw.length),Ja.push(td);continue}if(od=qa,this.options.extensions&&this.options.extensions.startBlock){let sd=1/0;const ld=qa.slice(1);let cd;this.options.extensions.startBlock.forEach(ud=>{cd=ud.call({lexer:this},ld),typeof cd=="number"&&cd>=0&&(sd=Math.min(sd,cd))}),sd<1/0&&sd>=0&&(od=qa.substring(0,sd+1))}if(this.state.top&&(td=this.tokenizer.paragraph(od))){rd=Ja[Ja.length-1],ed&&(rd==null?void 0:rd.type)==="paragraph"?(rd.raw+= `
` +td.raw,rd.text+= `
` +td.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=rd.text):Ja.push(td),ed=od.length!==qa.length,qa=qa.substring(td.raw.length);continue}if(td=this.tokenizer.text(qa)){qa=qa.substring(td.raw.length),rd=Ja[Ja.length-1],rd&&rd.type==="text"?(rd.raw+= `
` +td.raw,rd.text+= `
2024-08-31 11:28:56 +08:00
` +td.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=rd.text):Ja.push(td);continue}if(qa){const sd="Infinite loop on byte: "+qa.charCodeAt(0);if(this.options.silent){console.error(sd);break}else throw new Error(sd)}}return this.state.top=!0,Ja}inline(qa,Ja=[]){return this.inlineQueue.push({src:qa,tokens:Ja}),Ja}inlineTokens(qa,Ja=[]){let ed,td,rd,od=qa,sd,ld,cd;if(this.tokens.links){const ud=Object.keys(this.tokens.links);if(ud.length>0)for(;(sd=this.tokenizer.rules.inline.reflinkSearch.exec(od))!=null;)ud.includes(sd[0].slice(sd[0].lastIndexOf("[")+1,-1))&&(od=od.slice(0,sd.index)+"["+"a".repeat(sd[0].length-2)+"]"+od.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(sd=this.tokenizer.rules.inline.blockSkip.exec(od))!=null;)od=od.slice(0,sd.index)+"["+"a".repeat(sd[0].length-2)+"]"+od.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;(sd=this.tokenizer.rules.inline.anyPunctuation.exec(od))!=null;)od=od.slice(0,sd.index)+"++"+od.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;qa;)if(ld||(cd=""),ld=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some(ud=>(ed=ud.call({lexer:this},qa,Ja))?(qa=qa.substring(ed.raw.length),Ja.push(ed),!0):!1))){if(ed=this.tokenizer.escape(qa)){qa=qa.substring(ed.raw.length),Ja.push(ed);continue}if(ed=this.tokenizer.tag(qa)){qa=qa.substring(ed.raw.length),td=Ja[Ja.length-1],td&&ed.type==="text"&&td.type==="text"?(td.raw+=ed.raw,td.text+=ed.text):Ja.push(ed);continue}if(ed=this.tokenizer.link(qa)){qa=qa.substring(ed.raw.length),Ja.push(ed);continue}if(ed=this.tokenizer.reflink(qa,this.tokens.links)){qa=qa.substring(ed.raw.length),td=Ja[Ja.length-1],td&&ed.type==="text"&&td.type==="text"?(td.raw+=ed.raw,td.text+=ed.text):Ja.push(ed);continue}if(ed=this.tokenizer.emStrong(qa,od,cd)){qa=qa.substring(ed.raw.length),Ja.push(ed);continue}if(ed=this.tokenizer.codespan(qa)){qa=qa.substring(ed.raw.length),Ja.push(ed);continue}if(ed=this.tokenizer.br(qa)){qa=qa.substring(ed.raw.length),Ja.push(ed);continue}if(ed=this.tokenizer.del(qa)){qa=qa.substring(ed.raw.length),Ja.push(ed);continue}if(ed=this.tokenizer.autolink(qa)){qa=qa.substring(ed.raw.length),Ja.push(ed);continue}if(!this.state.inLink&&(ed=this.tokenizer.url(qa))){qa=qa.substring(ed.raw.length),Ja.push(ed);continue}if(rd=qa,this.options.extensions&&this.options.extensions.startInline){let ud=1/0;const _d=qa.slice(1);let yd;this.options.extensions.startInline.forEach(gd=>{yd=gd.call({lexer:this},_d),typeof yd=="number"&&yd>=0&&(ud=Math.min(ud,yd))}),ud<1/0&&ud>=0&&(rd=qa.substring(0,ud+1))}if(ed=this.tokenizer.inlineText(rd)){qa=qa.substring(ed.raw.length),ed.raw.slice(-1)!=="_"&&(cd=ed.raw.slice(-1)),ld=!0,td=Ja[Ja.length-1],td&&td.type==="text"?(td.raw+=ed.raw,td.text+=ed.text):Ja.push(ed);continue}if(qa){const ud="Infinite loop on byte: "+qa.charCodeAt(0);if(this.options.silent){console.error(ud);break}else throw new Error(ud)}}return Ja}}class _Renderer{constructor(qa){e1(this,"options");e1(this,"parser");this.options=qa||_defaults}space(qa){return""}code({text:qa,lang:Ja,escaped:ed}){var od;const td=(od=(Ja||"").match(/^ \S */))==null?void 0:od[0],rd=qa.replace(/ \n $ /,"")+ `
2024-08-30 15:19:18 +08:00
` ;return td?'<pre><code class="language-'+escape $ 1 $ 1(td)+'">'+(ed?rd:escape $ 1 $ 1(rd,!0))+ ` < / c o d e > < / p r e >
` :"<pre><code>"+(ed?rd:escape $ 1 $ 1(rd,!0))+ ` < / c o d e > < / p r e >
` }blockquote({tokens:qa}){return ` < blockquote >
$ { this . parser . parse ( qa ) } < / b l o c k q u o t e >
` }html({text:qa}){return qa}heading({tokens:qa,depth:Ja}){return ` < h$ { Ja } > $ { this . parser . parseInline ( qa ) } < / h $ { J a } >
` }hr(qa){return ` < hr >
` }list(qa){const Ja=qa.ordered,ed=qa.start;let td="";for(let sd=0;sd<qa.items.length;sd++){const ld=qa.items[sd];td+=this.listitem(ld)}const rd=Ja?"ol":"ul",od=Ja&&ed!==1?' start="'+ed+'"':"";return"<"+rd+od+ ` >
` +td+"</"+rd+ ` >
` }listitem(qa){let Ja="";if(qa.task){const ed=this.checkbox({checked:!!qa.checked});qa.loose?qa.tokens.length>0&&qa.tokens[0].type==="paragraph"?(qa.tokens[0].text=ed+" "+qa.tokens[0].text,qa.tokens[0].tokens&&qa.tokens[0].tokens.length>0&&qa.tokens[0].tokens[0].type==="text"&&(qa.tokens[0].tokens[0].text=ed+" "+qa.tokens[0].tokens[0].text)):qa.tokens.unshift({type:"text",raw:ed+" ",text:ed+" "}):Ja+=ed+" "}return Ja+=this.parser.parse(qa.tokens,!!qa.loose), ` < li > $ { Ja } < / l i >
` }checkbox({checked:qa}){return"<input "+(qa?'checked="" ':"")+'disabled="" type="checkbox">'}paragraph({tokens:qa}){return ` < p > $ { this . parser . parseInline ( qa ) } < / p >
` }table(qa){let Ja="",ed="";for(let rd=0;rd<qa.header.length;rd++)ed+=this.tablecell(qa.header[rd]);Ja+=this.tablerow({text:ed});let td="";for(let rd=0;rd<qa.rows.length;rd++){const od=qa.rows[rd];ed="";for(let sd=0;sd<od.length;sd++)ed+=this.tablecell(od[sd]);td+=this.tablerow({text:ed})}return td&&(td= ` < tbody > $ { td } < / t b o d y > ` ) , ` < t a b l e >
2024-08-27 22:31:52 +08:00
< thead >
2024-08-30 15:19:18 +08:00
` +Ja+ ` < / t h e a d >
` +td+ ` < / t a b l e >
` }tablerow({text:qa}){return ` < tr >
$ { qa } < / t r >
` }tablecell(qa){const Ja=this.parser.parseInline(qa.tokens),ed=qa.header?"th":"td";return(qa.align? ` < $ { ed } align = "${qa.align}" > ` : ` < $ { ed } > ` )+Ja+ ` < / $ { e d } >
2024-08-31 11:28:56 +08:00
` }strong({tokens:qa}){return ` < strong > $ { this . parser . parseInline ( qa ) } < / s t r o n g > ` } e m ( { t o k e n s : q a } ) { r e t u r n ` < e m > $ { t h i s . p a r s e r . p a r s e I n l i n e ( q a ) } < / e m > ` } c o d e s p a n ( { t e x t : q a } ) { r e t u r n ` < c o d e > $ { q a } < / c o d e > ` } b r ( q a ) { r e t u r n " < b r > " } d e l ( { t o k e n s : q a } ) { r e t u r n ` < d e l > $ { t h i s . p a r s e r . p a r s e I n l i n e ( q a ) } < / d e l > ` } l i n k ( { h r e f : q a , t i t l e : J a , t o k e n s : e d } ) { c o n s t t d = t h i s . p a r s e r . p a r s e I n l i n e ( e d ) , r d = c l e a n U r l ( q a ) ; i f ( r d = = = n u l l ) r e t u r n t d ; q a = r d ; l e t o d = ' < a h r e f = " ' + q a + ' " ' ; r e t u r n J a & & ( o d + = ' t i t l e = " ' + J a + ' " ' ) , o d + = " > " + t d + " < / a > " , o d } i m a g e ( { h r e f : q a , t i t l e : J a , t e x t : e d } ) { c o n s t t d = c l e a n U r l ( q a ) ; i f ( t d = = = n u l l ) r e t u r n e d ; q a = t d ; l e t r d = ` < i m g s r c = " $ { q a } " a l t = " $ { e d } " ` ; r e t u r n J a & & ( r d + = ` t i t l e = " $ { J a } " ` ) , r d + = " > " , r d } t e x t ( q a ) { r e t u r n " t o k e n s " i n q a & & q a . t o k e n s ? t h i s . p a r s e r . p a r s e I n l i n e ( q a . t o k e n s ) : q a . t e x t } } c l a s s _ T e x t R e n d e r e r { s t r o n g ( { t e x t : q a } ) { r e t u r n q a } e m ( { t e x t : q a } ) { r e t u r n q a } c o d e s p a n ( { t e x t : q a } ) { r e t u r n q a } d e l ( { t e x t : q a } ) { r e t u r n q a } h t m l ( { t e x t : q a } ) { r e t u r n q a } t e x t ( { t e x t : q a } ) { r e t u r n q a } l i n k ( { t e x t : q a } ) { r e t u r n " " + q a } i m a g e ( { t e x t : q a } ) { r e t u r n " " + q a } b r ( ) { r e t u r n " " } } c l a s s _ P a r s e r { c o n s t r u c t o r ( q a ) { e 1 ( t h i s , " o p t i o n s " ) ; e 1 ( t h i s , " r e n d e r e r " ) ; e 1 ( t h i s , " t e x t R e n d e r e r " ) ; t h i s . o p t i o n s = q a | | _ d e f a u l t s , t h i s . o p t i o n s . r e n d e r e r = t h i s . o p t i o n s . r e n d e r e r | | n e w _ R e n d e r e r , t h i s . r e n d e r e r = t h i s . o p t i o n s . r e n d e r e r , t h i s . r e n d e r e r . o p t i o n s = t h i s . o p t i o n s , t h i s . r e n d e r e r . p a r s e r = t h i s , t h i s . t e x t R e n d e r e r = n e w _ T e x t R e n d e r e r } s t a t i c p a r s e ( q a , J a ) { r e t u r n n e w _ P a r s e r ( J a ) . p a r s e ( q a ) } s t a t i c p a r s e I n l i n e ( q a , J a ) { r e t u r n n e w _ P a r s e r ( J a ) . p a r s e I n l i n e ( q a ) } p a r s e ( q a , J a = ! 0 ) { l e t e d = " " ; f o r ( l e t t d = 0 ; t d < q a . l e n g t h ; t d + + ) { c o n s t r d = q a [ t d ] ; i f ( t h i s . o p t i o n s . e x t e n s i o n s & & t h i s . o p t i o n s . e x t e n s i o n s . r e n d e r e r s & & t h i s . o p t i o n s . e x t e n s i o n s . r e n d e r e r s [ r d . t y p e ] ) { c o n s t s d = r d , l d = t h i s . o p t i o n s . e x t e n s i o n s . r e n d e r e r s [ s d . t y p e ] . c a l l ( { p a r s e r : t h i s } , s d ) ; i f ( l d ! = = ! 1 | | ! [ " s p a c e " , " h r " , " h e a d i n g " , " c o d e " , " t a b l e " , " b l o c k q u o t e " , " l i s t " , " h t m l " , " p a r a g r a p h " , " t e x t " ] . i n c l u d e s ( s d . t y p e ) ) { e d + = l d | | " " ; c o n t i n u e } } c o n s t o d = r d ; s w i t c h ( o d . t y p e ) { c a s e " s p a c e " : { e d + = t h i s . r e n d e r e r . s p a c e ( o d ) ; c o n t i n u e } c a s e " h r " : { e d + = t h i s . r e n d e r e r . h r ( o d ) ; c o n t i n u e } c a s e " h e a d i n g " : { e d + = t h i s . r e n d e r e r . h e a d i n g ( o d ) ; c o n t i n u e } c a s e " c o d e " : { e d + = t h i s . r e n d e r e r . c o d e ( o d ) ; c o n t i n u e } c a s e " t a b l e " : { e d + = t h i s . r e n d e r e r . t a b l e ( o d ) ; c o n t i n u e } c a s e " b l o c k q u o t e " : { e d + = t h i s . r e n d e r e r . b l o c k q u o t e ( o d ) ; c o n t i n u e } c a s e " l i s t " : { e d + = t h i s . r e n d e r e r . l i s t ( o d ) ; c o n t i n u e } c a s e " h t m l " : { e d + = t h i s . r e n d e r e r . h t m l ( o d ) ; c o n t i n u e } c a s e " p a r a g r a p h " : { e d + = t h i s . r e n d e r e r . p a r a g r a p h ( o d ) ; c o n t i n u e } c a s e " t e x t " : { l e t s d = o d , l d = t h i s . r e n d e r e r . t e x t ( s d ) ; f o r ( ; t d + 1 < q a . l e n g t h & & q a [ t d + 1 ] . t y p e = = = " t e x t " ; ) s d = q a [ + + t d ] , l d + = `
` +this.renderer.text(sd);Ja?ed+=this.renderer.paragraph({type:"paragraph",raw:ld,text:ld,tokens:[{type:"text",raw:ld,text:ld}]}):ed+=ld;continue}default:{const sd='Token with "'+od.type+'" type was not found.';if(this.options.silent)return console.error(sd),"";throw new Error(sd)}}}return ed}parseInline(qa,Ja){Ja=Ja||this.renderer;let ed="";for(let td=0;td<qa.length;td++){const rd=qa[td];if(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[rd.type]){const sd=this.options.extensions.renderers[rd.type].call({parser:this},rd);if(sd!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(rd.type)){ed+=sd||"";continue}}const od=rd;switch(od.type){case"escape":{ed+=Ja.text(od);break}case"html":{ed+=Ja.html(od);break}case"link":{ed+=Ja.link(od);break}case"image":{ed+=Ja.image(od);break}case"strong":{ed+=Ja.strong(od);break}case"em":{ed+=Ja.em(od);break}case"codespan":{ed+=Ja.codespan(od);break}case"br":{ed+=Ja.br(od);break}case"del":{ed+=Ja.del(od);break}case"text":{ed+=Ja.text(od);break}default:{const sd='Token with "'+od.type+'" type was not found.';if(this.options.silent)return console.error(sd),"";throw new Error(sd)}}}return ed}}class _Hooks{constructor(qa){e1(this,"options");this.options=qa||_defaults}preprocess(qa){return qa}postprocess(qa){return qa}processAllTokens(qa){return qa}}e1(_Hooks,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens"]));var _v,eT,vS,tT;class Marked{constructor(...qa){JS(this,_v);e1(this,"defaults",_getDefaults());e1(this,"options",this.setOptions);e1(this,"parse",_E(this,_v,vS).call(this,_Lexer.lex,_Parser.parse));e1(this,"parseInline",_E(this,_v,vS).call(this,_Lexer.lexInline,_Parser.parseInline));e1(this,"Parser",_Parser);e1(this,"Renderer",_Renderer);e1(this,"TextRenderer",_TextRenderer);e1(this,"Lexer",_Lexer);e1(this,"Tokenizer",_Tokenizer);e1(this,"Hooks",_Hooks);this.use(...qa)}walkTokens(qa,Ja){var td,rd;let ed=[];for(const od of qa)switch(ed=ed.concat(Ja.call(this,od)),od.type){case"table":{const sd=od;for(const ld of sd.header)ed=ed.concat(this.walkTokens(ld.tokens,Ja));for(const ld of sd.rows)for(const cd of ld)ed=ed.concat(this.walkTokens(cd.tokens,Ja));break}case"list":{const sd=od;ed=ed.concat(this.walkTokens(sd.items,Ja));break}default:{const sd=od;(rd=(td=this.defaults.extensions)==null?void 0:td.childTokens)!=null&&rd[sd.type]?this.defaults.extensions.childTokens[sd.type].forEach(ld=>{const cd=sd[ld].flat(1/0);ed=ed.concat(this.walkTokens(cd,Ja))}):sd.tokens&&(ed=ed.concat(this.walkTokens(sd.tokens,Ja)))}}return ed}use(...qa){const Ja=this.defaults.extensions||{renderers:{},childTokens:{}};return qa.forEach(ed=>{const td={...ed};if(td.async=this.defaults.async||td.async||!1,ed.extensions&&(ed.extensions.forEach(rd=>{if(!rd.name)throw new Error("extension name required");if("renderer"in rd){const od=Ja.renderers[rd.name];od?Ja.renderers[rd.name]=function(...sd){let ld=rd.renderer.apply(this,sd);return ld===!1&&(ld=od.apply(this,sd)),ld}:Ja.renderers[rd.name]=rd.renderer}if("tokenizer"in rd){if(!rd.level||rd.level!=="block"&&rd.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");const od=Ja[rd.level];od?od.unshift(rd.tokenizer):Ja[rd.level]=[rd.tokenizer],rd.start&&(rd.level==="block"?Ja.startBlock?Ja.startBlock.push(rd.start):Ja.startBlock=[rd.start]:rd.level==="inline"&&(Ja.startInline?Ja.startInline.push(rd.start):Ja.startInline=[rd.start]))}"childTokens"in rd&&rd.childTokens&&(Ja.childTokens[rd.name]=rd.childTokens)}),td.extensions=Ja),ed.renderer){const rd=this.defaults.renderer||new _Renderer(this.defaults);for(const od in ed.renderer){if(!(od in rd))throw new Error( ` renderer '${od}' does not exist ` );if(["options","parser"].includes(od))continue;const sd=od;let ld=ed.renderer[sd];ed.useNewRenderer||(ld=_E(this,_v,eT).call(this,ld,sd,rd));const cd=rd[sd];rd[sd]=(...ud)=>{let _d=ld.apply(rd,ud);return _d===!1&&(_d=cd.apply(rd,ud)),_d||""}}td.renderer=rd}if(ed.tokenizer){const rd=this.defaults.tokenizer||new _Tokenizer(this.defaults);for(const od in
Please report this to https : //github.com/markedjs/marked.`,qa){const td="<p>An error occurred:</p><pre>"+escape$1$1(ed.message+"",!0)+"</pre>";return Ja?Promise.resolve(td):td}if(Ja)return Promise.reject(ed);throw ed}};const markedInstance=new Marked;function marked(Ra,qa){return markedInstance.parse(Ra,qa)}marked.options=marked.setOptions=function(Ra){return markedInstance.setOptions(Ra),marked.defaults=markedInstance.defaults,changeDefaults(marked.defaults),marked};marked.getDefaults=_getDefaults;marked.defaults=_defaults;marked.use=function(...Ra){return markedInstance.use(...Ra),marked.defaults=markedInstance.defaults,changeDefaults(marked.defaults),marked};marked.walkTokens=function(Ra,qa){return markedInstance.walkTokens(Ra,qa)};marked.parseInline=markedInstance.parseInline;marked.Parser=_Parser;marked.parser=_Parser.parse;marked.Renderer=_Renderer;marked.TextRenderer=_TextRenderer;marked.Lexer=_Lexer;marked.lexer=_Lexer.lex;marked.Tokenizer=_Tokenizer;marked.Hooks=_Hooks;marked.parse=marked;marked.options;marked.setOptions;marked.use;marked.walkTokens;marked.parseInline;_Parser.parse;_Lexer.lex;function dedent(Ra){for(var qa=[],Ja=1;Ja<arguments.length;Ja++)qa[Ja-1]=arguments[Ja];var ed=Array.from(typeof Ra=="string"?[Ra]:Ra);ed[ed.length-1]=ed[ed.length-1].replace(/\r?\n([\t ]*)$/,"");var td=ed.reduce(function(sd,ld){var cd=ld.match(/\n([\t ]+|(?!\s).)/g);return cd?sd.concat(cd.map(function(ud){var _d,yd;return(yd=(_d=ud.match(/[\t ]/g))===null||_d===void 0?void 0:_d.length)!==null&&yd!==void 0?yd:0})):sd},[]);if(td.length){var rd=new RegExp(`
2024-08-30 15:19:18 +08:00
[ ] { ` +Math.min.apply(Math,td)+"}","g");ed=ed.map(function(sd){return sd.replace(rd, `
2024-08-31 11:28:56 +08:00
` )})}ed[0]=ed[0].replace(/^ \r ? \n /,"");var od=ed[0];return qa.forEach(function(sd,ld){var cd=od.match(/(?:^| \n )( *) $ /),ud=cd?cd[1]:"",_d=sd;typeof sd=="string"&&sd.includes( `
` )&&(_d=String(sd).split( `
` ).map(function(yd,gd){return gd===0?yd:""+ud+yd}).join( `
` )),od+=_d+ed[ld+1]}),od}function preprocessMarkdown(Ra,{markdownAutoWrap:qa}){const ed=Ra.replace(/<br \/ >/g, `
2024-08-27 22:31:52 +08:00
` ).replace(/ \n {2,}/g, `
2024-08-30 15:19:18 +08:00
` ),td=dedent(ed);return qa===!1?td.replace(/ /g," "):td}__name(preprocessMarkdown,"preprocessMarkdown");function markdownToLines(Ra,qa={}){const Ja=preprocessMarkdown(Ra,qa),ed=marked.lexer(Ja),td=[[]];let rd=0;function od(sd,ld="normal"){sd.type==="text"?sd.text.split( `
2024-08-31 11:28:56 +08:00
` ).forEach((ud,_d)=>{_d!==0&&(rd++,td.push([])),ud.split(" ").forEach(yd=>{yd&&td[rd].push({content:yd,type:ld})})}):sd.type==="strong"||sd.type==="em"?sd.tokens.forEach(cd=>{od(cd,sd.type)}):sd.type==="html"&&td[rd].push({content:sd.text,type:"normal"})}return __name(od,"processNode"),ed.forEach(sd=>{var ld;sd.type==="paragraph"?(ld=sd.tokens)==null||ld.forEach(cd=>{od(cd)}):sd.type==="html"&&td[rd].push({content:sd.text,type:"normal"})}),td}__name(markdownToLines,"markdownToLines");function markdownToHTML(Ra,{markdownAutoWrap:qa}={}){const Ja=marked.lexer(Ra);function ed(td){var rd,od,sd;return td.type==="text"?qa===!1?td.text.replace(/ \n */g,"<br/>").replace(/ /g," "):td.text.replace(/ \n */g,"<br/>"):td.type==="strong"? ` < strong > $ { ( rd = td . tokens ) == null ? void 0 : rd . map ( ed ) . join ( "" ) } < / s t r o n g > ` : t d . t y p e = = = " e m " ? ` < e m > $ { ( o d = t d . t o k e n s ) = = n u l l ? v o i d 0 : o d . m a p ( e d ) . j o i n ( " " ) } < / e m > ` : t d . t y p e = = = " p a r a g r a p h " ? ` < p > $ { ( s d = t d . t o k e n s ) = = n u l l ? v o i d 0 : s d . m a p ( e d ) . j o i n ( " " ) } < / p > ` : t d . t y p e = = = " s p a c e " ? " " : t d . t y p e = = = " h t m l " ? ` $ { t d . t e x t } ` : ` U n s u p p o r t e d m a r k d o w n : $ { t d . t y p e } ` } r e t u r n _ _ n a m e ( e d , " o u t p u t " ) , J a . m a p ( e d ) . j o i n ( " " ) } _ _ n a m e ( m a r k d o w n T o H T M L , " m a r k d o w n T o H T M L " ) ; f u n c t i o n s p l i t T e x t T o C h a r s ( R a ) { r e t u r n I n t l . S e g m e n t e r ? [ . . . n e w I n t l . S e g m e n t e r ( ) . s e g m e n t ( R a ) ] . m a p ( q a = > q a . s e g m e n t ) : [ . . . R a ] } _ _ n a m e ( s p l i t T e x t T o C h a r s , " s p l i t T e x t T o C h a r s " ) ; f u n c t i o n s p l i t W o r d T o F i t W i d t h ( R a , q a ) { c o n s t J a = s p l i t T e x t T o C h a r s ( q a . c o n t e n t ) ; r e t u r n s p l i t W o r d T o F i t W i d t h R e c u r s i o n ( R a , [ ] , J a , q a . t y p e ) } _ _ n a m e ( s p l i t W o r d T o F i t W i d t h , " s p l i t W o r d T o F i t W i d t h " ) ; f u n c t i o n s p l i t W o r d T o F i t W i d t h R e c u r s i o n ( R a , q a , J a , e d ) { i f ( J a . l e n g t h = = = 0 ) r e t u r n [ { c o n t e n t : q a . j o i n ( " " ) , t y p e : e d } , { c o n t e n t : " " , t y p e : e d } ] ; c o n s t [ t d , . . . r d ] = J a , o d = [ . . . q a , t d ] ; r e t u r n R a ( [ { c o n t e n t : o d . j o i n ( " " ) , t y p e : e d } ] ) ? s p l i t W o r d T o F i t W i d t h R e c u r s i o n ( R a , o d , r d , e d ) : ( q a . l e n g t h = = = 0 & & t d & & ( q a . p u s h ( t d ) , J a . s h i f t ( ) ) , [ { c o n t e n t : q a . j o i n ( " " ) , t y p e : e d } , { c o n t e n t : J a . j o i n ( " " ) , t y p e : e d } ] ) } _ _ n a m e ( s p l i t W o r d T o F i t W i d t h R e c u r s i o n , " s p l i t W o r d T o F i t W i d t h R e c u r s i o n " ) ; f u n c t i o n s p l i t L i n e T o F i t W i d t h ( R a , q a ) { i f ( R a . s o m e ( ( { c o n t e n t : J a } ) = > J a . i n c l u d e s ( `
2024-08-30 15:19:18 +08:00
` )))throw new Error("splitLineToFitWidth does not support newlines in the line");return splitLineToFitWidthRecursion(Ra,qa)}__name(splitLineToFitWidth,"splitLineToFitWidth");function splitLineToFitWidthRecursion(Ra,qa,Ja=[],ed=[]){if(Ra.length===0)return ed.length>0&&Ja.push(ed),Ja.length>0?Ja:[];let td="";Ra[0].content===" "&&(td=" ",Ra.shift());const rd=Ra.shift()??{content:" ",type:"normal"},od=[...ed];if(td!==""&&od.push({content:td,type:"normal"}),od.push(rd),qa(od))return splitLineToFitWidthRecursion(Ra,qa,Ja,od);if(ed.length>0)Ja.push(ed),Ra.unshift(rd);else if(rd.content){const[sd,ld]=splitWordToFitWidth(qa,rd);Ja.push([sd]),ld.content&&Ra.unshift(ld)}return splitLineToFitWidthRecursion(Ra,qa,Ja)}__name(splitLineToFitWidthRecursion,"splitLineToFitWidthRecursion");function applyStyle $ 1(Ra,qa){qa&&Ra.attr("style",qa)}__name(applyStyle $ 1,"applyStyle");async function addHtmlSpan(Ra,qa,Ja,ed,td=!1){const rd=Ra.append("foreignObject"),od=rd.append("xhtml:div");let sd=qa.label;qa.label&&hasKatex(qa.label)&&(sd=await renderKatex(qa.label.replace(common_default.lineBreakRegex, `
2024-08-31 11:28:56 +08:00
` ),getConfig2()));const ld=qa.isNode?"nodeLabel":"edgeLabel",cd=od.append("span");cd.html(sd),applyStyle $ 1(cd,qa.labelStyle),cd.attr("class", ` $ { ld } $ { ed } ` ),applyStyle $ 1(od,qa.labelStyle),od.style("display","table-cell"),od.style("white-space","nowrap"),od.style("line-height","1.5"),od.style("max-width",Ja+"px"),od.style("text-align","center"),od.attr("xmlns","http://www.w3.org/1999/xhtml"),td&&od.attr("class","labelBkg");let ud=od.node().getBoundingClientRect();return ud.width===Ja&&(od.style("display","table"),od.style("white-space","break-spaces"),od.style("width",Ja+"px"),ud=od.node().getBoundingClientRect()),rd.node()}__name(addHtmlSpan,"addHtmlSpan");function createTspan(Ra,qa,Ja){return Ra.append("tspan").attr("class","text-outer-tspan").attr("x",0).attr("y",qa*Ja-.1+"em").attr("dy",Ja+"em")}__name(createTspan,"createTspan");function computeWidthOfText(Ra,qa,Ja){const ed=Ra.append("text"),td=createTspan(ed,1,qa);updateTextContentAndStyles(td,Ja);const rd=td.node().getComputedTextLength();return ed.remove(),rd}__name(computeWidthOfText,"computeWidthOfText");function computeDimensionOfText(Ra,qa,Ja){var od;const ed=Ra.append("text"),td=createTspan(ed,1,qa);updateTextContentAndStyles(td,[{content:Ja,type:"normal"}]);const rd=(od=td.node())==null?void 0:od.getBoundingClientRect();return rd&&ed.remove(),rd}__name(computeDimensionOfText,"computeDimensionOfText");function createFormattedText(Ra,qa,Ja,ed=!1){const rd=qa.append("g"),od=rd.insert("rect").attr("class","background").attr("style","stroke: none"),sd=rd.append("text").attr("y","-10.1");let ld=0;for(const cd of Ja){const ud=__name(yd=>computeWidthOfText(rd,1.1,yd)<=Ra,"checkWidth"),_d=ud(cd)?[cd]:splitLineToFitWidth(cd,ud);for(const yd of _d){const gd=createTspan(sd,ld,1.1);updateTextContentAndStyles(gd,yd),ld++}}if(ed){const cd=sd.node().getBBox(),ud=2;return od.attr("x",-ud).attr("y",-ud).attr("width",cd.width+2*ud).attr("height",cd.height+2*ud),rd.node()}else return sd.node()}__name(createFormattedText,"createFormattedText");function updateTextContentAndStyles(Ra,qa){Ra.text(""),qa.forEach((Ja,ed)=>{const td=Ra.append("tspan").attr("font-style",Ja.type==="em"?"italic":"normal").attr("class","text-inner-tspan").attr("font-weight",Ja.type==="strong"?"bold":"normal");ed===0?td.text(Ja.content):td.text(" "+Ja.content)})}__name(updateTextContentAndStyles,"updateTextContentAndStyles");function replaceIconSubstring(Ra){return Ra.replace(/fa[bklrs]?:fa-[ \w -]+/g,qa=> ` < i class = '${qa.replace(":"," ")}' > < /i>`)}__name(replaceIconSubstring,"replaceIconSubstring");var createText=__name(async(Ra,qa="",{style:Ja="",isTitle:ed=!1,classes:td="",useHtmlLabels:rd=!0,isNode:od=!0,width:sd=200,addSvgBackground:ld=!1}={},cd)=>{if(log$1.info("XYZ createText",qa,Ja,ed,td,rd,od,"addSvgBackground: ",ld),rd){const ud=markdownToHTML(qa,cd),_d=replaceIconSubstring(decodeEntities(ud)),yd=qa.replace(/ \ \ \ \ / g , "\\" ) , gd = { isNode : od , label : hasKatex ( qa ) ? yd : _d , labelStyle : Ja . replace ( "fill:" , "color:" ) } ; return await addHtmlSpan ( Ra , gd , sd , td , ld ) } else { const ud = qa . replace ( /<br\s*\/?>/g , "<br/>" ) , _d = markdownToLines ( ud . replace ( "<br>" , "<br/>" ) , cd ) , yd = createFormattedText ( sd , Ra , _d , qa ? ld : ! 1 ) ; if ( od ) { /stroke:/ . exec ( Ja ) && ( Ja = Ja . replace ( "stroke:" , "lineColor:" ) ) ; const gd = Ja . replace ( /stroke:[^;]+;?/g , "" ) . replace ( /stroke-width:[^;]+;?/g , "" ) . replace ( /fill:[^;]+;?/g , "" ) . replace ( /color:/g , "fill:" ) ; d3select ( yd ) . attr ( "style" , gd ) } else { const gd = Ja . replace ( /stroke:[^;]+;?/g , "" ) . replace ( /stroke-width:[^;]+;?/g , "" ) . replace ( /fill:[^;]+;?/g , "" ) . replace ( /background:/g , "fill:" ) ; d3select ( yd ) . select ( "rect" ) . attr ( "style" , gd . replace ( /background:/g , "fill:" ) ) ; const Ed = Ja . replace ( /stroke:[^;]+;?/g , "" ) . replace ( /stroke-width:[^;]+;?/g , "" ) . replace ( /fill:[^;]+;?/g , "" ) . replace ( /color:/g , "fill:" ) ; d3select ( yd ) . select ( "text" ) . attr ( "style" , Ed ) } return yd } } , "createText" ) ; function t ( Ra , qa , Ja ) { if ( Ra && Ra . length ) { const [ ed , td ] = qa , rd = Math . PI / 180 * Ja , od = Math . cos ( rd ) , sd = Math . sin ( rd ) ; for ( const ld of Ra ) { const [ cd , ud ] = ld ; ld [ 0 ] = ( cd - ed ) * od - ( ud - td ) * sd + ed , ld [ 1 ] = ( cd - ed ) * sd + ( ud - td ) * od + td } } } function e ( Ra , qa ) { return Ra [ 0 ] === qa [ 0 ] && Ra [ 1 ] === qa [ 1 ] } function s ( Ra , qa , Ja , ed = 1 ) { co
` ),getConfig2()));const td=Ra.isNode?"nodeLabel":"edgeLabel";return Ja.html('<span class="'+td+'" '+(Ra.labelStyle?'style="'+Ra.labelStyle+'"':"")+">"+ed+"</span>"),applyStyle(Ja,Ra.labelStyle),Ja.style("display","inline-block"),Ja.style("padding-right","1px"),Ja.style("white-space","nowrap"),Ja.attr("xmlns","http://www.w3.org/1999/xhtml"),qa.node()}__name(addHtmlLabel,"addHtmlLabel");var createLabel=__name(async(Ra,qa,Ja,ed)=>{let td=Ra||"";if(typeof td=="object"&&(td=td[0]),evaluate(getConfig2().flowchart.htmlLabels)){td=td.replace(/ \\ n| \n /g,"<br />"),log $ 1.info("vertexText"+td);const rd={isNode:ed,label:decodeEntities(td).replace(/fa[blrs]?:fa-[ \w -]+/g,sd=> ` < i class = '${sd.replace(":"," ")}' > < /i>`),labelStyle:qa&&qa.replace("fill:","color:")};return await addHtmlLabel(rd)}else{const rd=document.createElementNS("http:/ / www . w3 . org / 2000 / svg "," text ");rd.setAttribute(" style ",qa.replace(" color : "," fill : "));let od=[];typeof td==" string "?od=td.split(/\\n|\n|<br\s*\/?>/gi):Array.isArray(td)?od=td:od=[];for(const sd of od){const ld=document.createElementNS(" http : //www.w3.org/2000/svg","tspan");ld.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),ld.setAttribute("dy","1em"),ld.setAttribute("x","0"),Ja?ld.setAttribute("class","title-row"):ld.setAttribute("class","row"),ld.textContent=sd.trim(),rd.appendChild(ld)}return rd}},"createLabel"),createLabel_default=createLabel,createRoundedRectPathD=__name((Ra,qa,Ja,ed,td)=>["M",Ra+td,qa,"H",Ra+Ja-td,"A",td,td,0,0,1,Ra+Ja,qa+td,"V",qa+ed-td,"A",td,td,0,0,1,Ra+Ja-td,qa+ed,"H",Ra+td,"A",td,td,0,0,1,Ra,qa+ed-td,"V",qa+td,"A",td,td,0,0,1,Ra+td,qa,"Z"].join(" "),"createRoundedRectPathD"),solidStateFill=__name(Ra=>{const{handDrawnSeed:qa}=getConfig2();return{fill:Ra,hachureAngle:120,hachureGap:4,fillWeight:2,roughness:.7,stroke:Ra,seed:qa}},"solidStateFill"),compileStyles=__name(Ra=>{const qa=styles2Map([...Ra.cssCompiledStyles||[],...Ra.cssStyles||[]]);return{stylesMap:qa,stylesArray:[...qa]}},"compileStyles"),styles2Map=__name(Ra=>{const qa=new Map;return Ra.forEach(Ja=>{const[ed,td]=Ja.split(":");qa.set(ed.trim(),td==null?void 0:td.trim())}),qa},"styles2Map"),styles2String=__name(Ra=>{const{stylesArray:qa}=compileStyles(Ra),Ja=[],ed=[],td=[],rd=[];return qa.forEach(od=>{const sd=od[0];sd==="color"||sd==="font-size"||sd==="font-family"||sd==="font-weight"||sd==="font-style"||sd==="text-decoration"||sd==="text-align"||sd==="text-transform"||sd==="line-height"||sd==="letter-spacing"||sd==="word-spacing"||sd==="text-shadow"||sd==="text-overflow"||sd==="white-space"||sd==="word-wrap"||sd==="word-break"||sd==="overflow-wrap"||sd==="hyphens"?Ja.push(od.join(":")+" !important"):(ed.push(od.join(":")+" !important"),sd.includes("stroke")&&td.push(od.join(":")+" !important"),sd==="fill"&&rd.push(od.join(":")+" !important"))}),{labelStyles:Ja.join(";"),nodeStyles:ed.join(";"),stylesArray:qa,borderStyles:td,backgroundStyles:rd}},"styles2String"),userNodeOverrides=__name((Ra,qa)=>{const{themeVariables:Ja,handDrawnSeed:ed}=getConfig2(),{nodeBorder:td,mainBkg:rd}=Ja,{stylesMap:od}=compileStyles(Ra);return Object.assign({roughness:.7,fill:od.get("fill")||rd,fillStyle:"hachure",fillWeight:4,stroke:od.get("stroke")||td,seed:ed,strokeWidth:1.3},qa)},"userNodeOverrides"),rect$2=__name(async(Ra,qa)=>{log$1.info("Creating subgraph rect for ",qa.id,qa);const Ja=getConfig2(),{themeVariables:ed,handDrawnSeed:td}=Ja,{clusterBkg:rd,clusterBorder:od}=ed,{labelStyles:sd,nodeStyles:ld,borderStyles:cd,backgroundStyles:ud}=styles2String(qa),_d=Ra.insert("g").attr("class","cluster "+qa.cssClasses).attr("id",qa.id).attr("data-look",qa.look),yd=evaluate(Ja.flowchart.htmlLabels),gd=_d.insert("g").attr("class","cluster-label "),Ed=await createText(gd,qa.label,{style:qa.labelStyle,useHtmlLabels:yd,isNode:!0});let Td=Ed.getBBox();if(evaluate(Ja.flowchart.htmlLabels)){const jd=Ed.children[0],Vd=d3select(Ed);Td=jd.getBoundingClientRect(),Vd.attr("width",Td.width),Vd.attr("height",Td.height)}const Id=qa.width<=Td.width+qa.padding?Td.width+qa.padding:qa.width;qa.width<=Td.width+qa.padding?qa.diff=(Id-qa.wi
2024-08-30 15:19:18 +08:00
outsidePoint : $ { JSON . stringify ( qa ) }
insidePoint : $ { JSON . stringify ( Ja ) }
2024-08-31 11:28:56 +08:00
node : x : $ { Ra . x } y : $ { Ra . y } w : $ { Ra . width } h : $ { Ra . height } ` );const ed=Ra.x,td=Ra.y,rd=Math.abs(ed-Ja.x),od=Ra.width/2;let sd=Ja.x<qa.x?od-rd:od+rd;const ld=Ra.height/2,cd=Math.abs(qa.y-Ja.y),ud=Math.abs(qa.x-Ja.x);if(Math.abs(td-qa.y)*od>Math.abs(ed-qa.x)*ld){let _d=Ja.y<qa.y?qa.y-ld-td:td-ld-qa.y;sd=ud*_d/cd;const yd={x:Ja.x<qa.x?Ja.x+sd:Ja.x-ud+sd,y:Ja.y<qa.y?Ja.y+cd-_d:Ja.y-cd+_d};return sd===0&&(yd.x=qa.x,yd.y=qa.y),ud===0&&(yd.x=qa.x),cd===0&&(yd.y=qa.y),log $ 1.debug( ` abc89 top / bottom calc , Q $ { cd } , q $ { _d } , R $ { ud } , r $ { sd } ` ,yd),yd}else{Ja.x<qa.x?sd=qa.x-od-ed:sd=ed-od-qa.x;let _d=cd*sd/ud,yd=Ja.x<qa.x?Ja.x+ud-sd:Ja.x-ud+sd,gd=Ja.y<qa.y?Ja.y+_d:Ja.y-_d;return log $ 1.debug( ` sides calc abc89 , Q $ { cd } , q $ { _d } , R $ { ud } , r $ { sd } ` ,{_x:yd,_y:gd}),sd===0&&(yd=qa.x,gd=qa.y),ud===0&&(yd=qa.x),cd===0&&(gd=qa.y),{x:yd,y:gd}}},"intersection"),cutPathAtIntersect=__name((Ra,qa)=>{log $ 1.warn("abc88 cutPathAtIntersect",Ra,qa);let Ja=[],ed=Ra[0],td=!1;return Ra.forEach(rd=>{if(log $ 1.info("abc88 checking point",rd,qa),!outsideNode(qa,rd)&&!td){const od=intersection(qa,ed,rd);log $ 1.debug("abc88 inside",rd,ed,od),log $ 1.debug("abc88 intersection",od,qa);let sd=!1;Ja.forEach(ld=>{sd=sd||ld.x===od.x&&ld.y===od.y}),Ja.some(ld=>ld.x===od.x&&ld.y===od.y)?log $ 1.warn("abc88 no intersect",od,Ja):Ja.push(od),td=!0}else log $ 1.warn("abc88 outside",rd,ed),ed=rd,td||Ja.push(rd)}),log $ 1.debug("returning points",Ja),Ja},"cutPathAtIntersect");function extractCornerPoints(Ra){const qa=[],Ja=[];for(let ed=1;ed<Ra.length-1;ed++){const td=Ra[ed-1],rd=Ra[ed],od=Ra[ed+1];(td.x===rd.x&&rd.y===od.y&&Math.abs(rd.x-od.x)>5&&Math.abs(rd.y-td.y)>5||td.y===rd.y&&rd.x===od.x&&Math.abs(rd.x-td.x)>5&&Math.abs(rd.y-od.y)>5)&&(qa.push(rd),Ja.push(ed))}return{cornerPoints:qa,cornerPointPositions:Ja}}__name(extractCornerPoints,"extractCornerPoints");var findAdjacentPoint=__name(function(Ra,qa,Ja){const ed=qa.x-Ra.x,td=qa.y-Ra.y,rd=Math.sqrt(ed*ed+td*td),od=Ja/rd;return{x:qa.x-od*ed,y:qa.y-od*td}},"findAdjacentPoint"),fixCorners=__name(function(Ra){const{cornerPointPositions:qa}=extractCornerPoints(Ra),Ja=[];for(let ed=0;ed<Ra.length;ed++)if(qa.includes(ed)){const td=Ra[ed-1],rd=Ra[ed+1],od=Ra[ed],sd=findAdjacentPoint(td,od,5),ld=findAdjacentPoint(rd,od,5),cd=ld.x-sd.x,ud=ld.y-sd.y;Ja.push(sd);const _d=Math.sqrt(2)*2;let yd={x:od.x,y:od.y};if(Math.abs(rd.x-td.x)>10&&Math.abs(rd.y-td.y)>=10){log $ 1.debug("Corner point fixing",Math.abs(rd.x-td.x),Math.abs(rd.y-td.y));const gd=5;od.x===sd.x?yd={x:cd<0?sd.x-gd+_d:sd.x+gd-_d,y:ud<0?sd.y-_d:sd.y+_d}:yd={x:cd<0?sd.x-_d:sd.x+_d,y:ud<0?sd.y-gd+_d:sd.y+gd-_d}}else log $ 1.debug("Corner point skipping fixing",Math.abs(rd.x-td.x),Math.abs(rd.y-td.y));Ja.push(yd,ld)}else Ja.push(Ra[ed]);return Ja},"fixCorners"),insertEdge=__name(function(Ra,qa,Ja,ed,td,rd,od){const{handDrawnSeed:sd}=getConfig2();let ld=qa.points,cd=!1;const ud=td;var _d=rd;_d.intersect&&ud.intersect&&(ld=ld.slice(1,qa.points.length-1),ld.unshift(ud.intersect(ld[0])),log $ 1.debug("Last point APA12",qa.start,"-->",qa.end,ld[ld.length-1],_d,_d.intersect(ld[ld.length-1])),ld.push(_d.intersect(ld[ld.length-1]))),qa.toCluster&&(log $ 1.info("to cluster abc88",Ja.get(qa.toCluster)),ld=cutPathAtIntersect(qa.points,Ja.get(qa.toCluster).node),cd=!0),qa.fromCluster&&(log $ 1.debug("from cluster abc88",Ja.get(qa.fromCluster),JSON.stringify(ld,null,2)),ld=cutPathAtIntersect(ld.reverse(),Ja.get(qa.fromCluster).node).reverse(),cd=!0);let yd=ld.filter(Vd=>!Number.isNaN(Vd.y));yd=fixCorners(yd);let gd=yd[yd.length-1];if(yd.length>1){gd=yd[yd.length-1];const Vd=yd[yd.length-2],Fd=(gd.x-Vd.x)/2,Ud=(gd.y-Vd.y)/2,qd={x:Vd.x+Fd,y:Vd.y+Ud};yd.splice(-1,0,qd)}let Ed=curveBasis;qa.curve&&(Ed=qa.curve);const{x:Td,y:Id}=getLineFunctionsWithOffset(qa),Ad=line $ 1().x(Td).y(Id).curve(Ed);let Nd;switch(qa.thickness){case"normal":Nd="edge-thickness-normal";break;case"thick":Nd="edge-thickness-thick";break;case"invisible":Nd="edge-thickness-invisible";break;default:Nd="edge-thickness-normal"}switch(qa.pattern){case"solid":Nd+=" edge-pattern-solid";break;case"dotted":Nd+=" edge-pattern-dotted";break;case"
point : ` ,yd, `
2024-08-27 22:31:52 +08:00
node :
2024-08-30 15:19:18 +08:00
` ,qa, `
2024-08-31 15:27:49 +08:00
res : ` ,intersect_default.polygon(qa,cd,yd)),intersect_default.polygon(qa,cd,yd)},td},"question"),createHexagonPathD=__name((Ra,qa,Ja,ed,td)=>[ ` M$ { Ra + td } , $ { qa } ` , ` L$ { Ra + Ja - td } , $ { qa } ` , ` L$ { Ra + Ja } , $ { qa - ed / 2 } ` , ` L$ { Ra + Ja - td } , $ { qa - ed } ` , ` L$ { Ra + td } , $ { qa - ed } ` , ` L$ { Ra } , $ { qa - ed / 2 } ` ,"Z"].join(" "),"createHexagonPathD"),hexagon=__name(async(Ra,qa)=>{const{labelStyles:Ja,nodeStyles:ed}=styles2String(qa);qa.labelStyle=Ja;const{shapeSvg:td,bbox:rd}=await labelHelper(Ra,qa,getNodeClasses(qa)),od=4,sd=rd.height+qa.padding,ld=sd/od,cd=rd.width+2*ld+qa.padding,ud=[{x:ld,y:0},{x:cd-ld,y:0},{x:cd,y:-sd/2},{x:cd-ld,y:-sd},{x:ld,y:-sd},{x:0,y:-sd/2}];let _d;const{cssStyles:yd}=qa;if(qa.look==="handDrawn"){const gd=at $ 3.svg(td),Ed=userNodeOverrides(qa,{}),Td=createHexagonPathD(0,0,cd,sd,ld),Id=gd.path(Td,Ed);_d=td.insert(()=>Id,":first-child").attr("transform", ` translate ( $ { - cd / 2 } , $ { sd / 2 } ) ` ),yd&&_d.attr("style",yd)}else _d=insertPolygonShape(td,cd,sd,ud);return ed&&_d.attr("style",ed),qa.width=cd,qa.height=sd,updateNodeBounds(qa,_d),qa.intersect=function(gd){return intersect_default.polygon(qa,ud,gd)},td},"hexagon"),createLeanRightPathD=__name((Ra,qa,Ja,ed)=>[ ` M$ { Ra - 2 * ed / 6 } , $ { qa } ` , ` L$ { Ra + Ja - ed / 6 } , $ { qa } ` , ` L$ { Ra + Ja + 2 * ed / 6 } , $ { qa - ed } ` , ` L$ { Ra + ed / 6 } , $ { qa - ed } ` ,"Z"].join(" "),"createLeanRightPathD"),lean_right=__name(async(Ra,qa)=>{const{labelStyles:Ja,nodeStyles:ed}=styles2String(qa);qa.labelStyle=Ja;const{shapeSvg:td,bbox:rd}=await labelHelper(Ra,qa,getNodeClasses(qa)),od=rd.width+qa.padding,sd=rd.height+qa.padding,ld=[{x:-2*sd/6,y:0},{x:od-sd/6,y:0},{x:od+2*sd/6,y:-sd},{x:sd/6,y:-sd}];let cd;const{cssStyles:ud}=qa;if(qa.look==="handDrawn"){const _d=at $ 3.svg(td),yd=userNodeOverrides(qa,{}),gd=createLeanRightPathD(0,0,od,sd),Ed=_d.path(gd,yd);cd=td.insert(()=>Ed,":first-child").attr("transform", ` translate ( $ { - od / 2 } , $ { sd / 2 } ) ` ),ud&&cd.attr("style",ud)}else cd=insertPolygonShape(td,od,sd,ld);return ed&&cd.attr("style",ed),qa.width=od,qa.height=sd,updateNodeBounds(qa,cd),qa.intersect=function(_d){return intersect_default.polygon(qa,ld,_d)},td},"lean_right"),createLeanLeftPathD=__name((Ra,qa,Ja,ed)=>[ ` M$ { Ra + 2 * ed / 6 } , $ { qa } ` , ` L$ { Ra + Ja + ed / 6 } , $ { qa } ` , ` L$ { Ra + Ja - 2 * ed / 6 } , $ { qa - ed } ` , ` L$ { Ra - ed / 6 } , $ { qa - ed } ` ,"Z"].join(" "),"createLeanLeftPathD"),lean_left=__name(async(Ra,qa)=>{const{labelStyles:Ja,nodeStyles:ed}=styles2String(qa);qa.labelStyle=Ja;const{shapeSvg:td,bbox:rd}=await labelHelper(Ra,qa,getNodeClasses(qa)),od=rd.width+qa.padding,sd=rd.height+qa.padding,ld=[{x:2*sd/6,y:0},{x:od+sd/6,y:0},{x:od-2*sd/6,y:-sd},{x:-sd/6,y:-sd}];let cd;const{cssStyles:ud}=qa;if(qa.look==="handDrawn"){const _d=at $ 3.svg(td),yd=userNodeOverrides(qa,{}),gd=createLeanLeftPathD(0,0,od,sd),Ed=_d.path(gd,yd);cd=td.insert(()=>Ed,":first-child").attr("transform", ` translate ( $ { - od / 2 } , $ { sd / 2 } ) ` ),ud&&cd.attr("style",ud)}else cd=insertPolygonShape(td,od,sd,ld);return ed&&cd.attr("style",ed),qa.width=od,qa.height=sd,updateNodeBounds(qa,cd),qa.intersect=function(_d){return intersect_default.polygon(qa,ld,_d)},td},"lean_left"),createTrapezoidPathD=__name((Ra,qa,Ja,ed)=>[ ` M$ { Ra - 2 * ed / 6 } , $ { qa } ` , ` L$ { Ra + Ja + 2 * ed / 6 } , $ { qa } ` , ` L$ { Ra + Ja - ed / 6 } , $ { qa - ed } ` , ` L$ { Ra + ed / 6 } , $ { qa - ed } ` ,"Z"].join(" "),"createTrapezoidPathD"),trapezoid=__name(async(Ra,qa)=>{const{labelStyles:Ja,nodeStyles:ed}=styles2String(qa);qa.labelStyle=Ja;const{shapeSvg:td,bbox:rd}=await labelHelper(Ra,qa,getNodeClasses(qa)),od=rd.width+qa.padding,sd=rd.height+qa.padding,ld=[{x:-2*sd/6,y:0},{x:od+2*sd/6,y:0},{x:od-sd/6,y:-sd},{x:sd/6,y:-sd}];let cd;const{cssStyles:ud}=qa;if(qa.look==="handDrawn"){const _d=at $ 3.svg(td),yd=userNodeOverrides(qa,{}),gd=createTrapezoidPathD(0,0,od,sd),Ed=_d.path(gd,yd);cd=td.insert(()=>Ed,":first-child").attr("transform", ` translate ( $ { - od / 2 } , $ { sd / 2 } ) ` ),ud&&cd.attr("style",ud)}else cd=insertPolygonShape(td,od,sd,ld);return ed&&cd.attr("style",ed),qa.width=od,qa.height=sd,updateNodeBounds(qa,cd),qa.intersect=function(_d){return intersect_default.polygon(qa,ld,_d)},td},"trapezoid"),createInvertedTrapezoidPathD=__name((Ra,qa,Ja,ed)=>[ ` M$ { Ra + ed / 6 } , $ { qa } ` , ` L$ { Ra + Ja - ed / 6 } , $ { qa } ` , ` L$ { Ra + Ja + 2 * ed / 6 } , $ { qa - ed } ` , ` L$ { Ra - 2 * ed / 6 } , $ { qa - ed } ` ,"Z
` );const ed=selectSvgElement(qa),td=ed.append("g");ed.attr("viewBox","0 0 2412 512"),configureSvgSize(ed,100,512,!0),td.append("path").attr("class","error-icon").attr("d","m411.313,123.313c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32-9.375,9.375-20.688-20.688c-12.484-12.5-32.766-12.5-45.25,0l-16,16c-1.261,1.261-2.304,2.648-3.31,4.051-21.739-8.561-45.324-13.426-70.065-13.426-105.867,0-192,86.133-192,192s86.133,192 192,192 192-86.133 192-192c0-24.741-4.864-48.327-13.426-70.065 1.402-1.007 2.79-2.049 4.051-3.31l16-16c12.5-12.492 12.5-32.758 0-45.25l-20.688-20.688 9.375-9.375 32.001-31.999zm-219.313,100.687c-52.938,0-96,43.063-96,96 0,8.836-7.164,16-16,16s-16-7.164-16-16c0-70.578 57.422-128 128-128 8.836,0 16,7.164 16,16s-7.164,16-16,16z"),td.append("path").attr("class","error-icon").attr("d","m459.02,148.98c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l16,16c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16.001-16z"),td.append("path").attr("class","error-icon").attr("d","m340.395,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16-16c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l15.999,16z"),td.append("path").attr("class","error-icon").attr("d","m400,64c8.844,0 16-7.164 16-16v-32c0-8.836-7.156-16-16-16-8.844,0-16,7.164-16,16v32c0,8.836 7.156,16 16,16z"),td.append("path").attr("class","error-icon").attr("d","m496,96.586h-32c-8.844,0-16,7.164-16,16 0,8.836 7.156,16 16,16h32c8.844,0 16-7.164 16-16 0-8.836-7.156-16-16-16z"),td.append("path").attr("class","error-icon").attr("d","m436.98,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688l32-32c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32c-6.251,6.25-6.251,16.375-0.001,22.625z"),td.append("text").attr("class","error-text").attr("x",1440).attr("y",250).attr("font-size","150px").style("text-anchor","middle").text("Syntax error in text"),td.append("text").attr("class","error-text").attr("x",1250).attr("y",400).attr("font-size","100px").style("text-anchor","middle").text( ` mermaid version $ { Ja } ` )},"draw"),renderer={draw},errorRenderer_default=renderer,diagram={db:{},renderer,parser:{parse:__name(()=>{},"parse")}},errorDiagram_default=diagram,id18="flowchart-elk",detector18=__name((Ra,qa={})=>{var Ja;return/^ \s *flowchart-elk/.test(Ra)||/^ \s *flowchart|graph/.test(Ra)&&((Ja=qa==null?void 0:qa.flowchart)==null?void 0:Ja.defaultRenderer)==="elk"?(qa.layout="elk",!0):!1},"detector"),loader18=__name(async()=>{const{diagram:Ra}=await __vitePreload(async()=>{const{diagram:qa}=await import("./flowDiagram-TGP4CI55-RXvTr7QF.js");return{diagram:qa}},__vite__mapDeps([8,9,10,11]));return{id:id18,diagram:Ra}},"loader"),plugin16={id:id18,detector:detector18,loader:loader18},detector_default=plugin16,id19="timeline",detector19=__name(Ra=>/^ \s *timeline/.test(Ra),"detector"),loader19=__name(async()=>{const{diagram:Ra}=await __vitePreload(async()=>{const{diagram:qa}=await import("./timeline-definition-SFF34UE4-B59Fk3EN.js");return{diagram:qa}},__vite__mapDeps([36,22]));return{id:id19,diagram:Ra}},"loader"),plugin17={id:id19,detector:detector19,loader:loader19},detector_default2=plugin17,id20="mindmap",detector20=__name(Ra=>/^ \s *mindmap/.test(Ra),"detector"),loader20=__name(async()=>{const{diagram:Ra}=await __vitePreload(async()=>{const{diagram:qa}=await import("./mindmap-definition-6NGNQFMS-CBoG1SkQ.js");return{diagram:qa}},[]);return{id:id20,diagram:Ra}},"loader"),plugin18={id:id20,detector:detector20,loader:loader20},detector_default3=plugin18,id21="sankey",detector21=__name(Ra=>/^ \s *sankey-beta/.test(Ra),"detector"),loader21=__name(async()=>{const{diagram:Ra}=await __vitePreload(async()=>{const{diagram:qa}=await import("./sankeyDiagram-XVFEVEVI-n1sW0XB6.js");return{diagram:qa}},__vite__mapDeps([37,23,19]));return{id:id21,diagram:Ra}},"loader"),plugin19={id:id21,detector:detector21,loader:loader21},sankeyDetector_default=plugin19,id22="packet",detector22=__name(Ra=>/^ \s *packet-beta/.test(Ra),"detector"),loader22=__name(
2024-08-31 11:28:56 +08:00
` ;try{getDiagram(td)}catch{const _d=getDiagramLoader(td);if(!_d)throw new UnknownDiagramError( ` Diagram $ { td } not found . ` );const{id:yd,diagram:gd}=await _d();registerDiagram(yd,gd)}const{db:rd,parser:od,renderer:sd,init:ld}=getDiagram(td);return od.parser&&(od.parser.yy=rd),(cd=rd.clear)==null||cd.call(rd),ld==null||ld(ed),Ja.title&&((ud=rd.setDiagramTitle)==null||ud.call(rd,Ja.title)),await od.parse(qa),new Nb(td,qa,rd,od,sd)}async render(qa,Ja){await this.renderer.draw(this.text,qa,Ja,this)}getParser(){return this.parser}getType(){return this.type}},__name(Nb,"Diagram"),Nb),interactionFunctions=[],attachFunctions=__name(()=>{interactionFunctions.forEach(Ra=>{Ra()}),interactionFunctions=[]},"attachFunctions"),SVG_ROLE="graphics-document document";function setA11yDiagramInfo(Ra,qa){Ra.attr("role",SVG_ROLE),qa!==""&&Ra.attr("aria-roledescription",qa)}__name(setA11yDiagramInfo,"setA11yDiagramInfo");function addSVGa11yTitleDescription(Ra,qa,Ja,ed){if(Ra.insert!==void 0){if(Ja){const td= ` chart - desc - $ { ed } ` ;Ra.attr("aria-describedby",td),Ra.insert("desc",":first-child").attr("id",td).text(Ja)}if(qa){const td= ` chart - title - $ { ed } ` ;Ra.attr("aria-labelledby",td),Ra.insert("title",":first-child").attr("id",td).text(qa)}}}__name(addSVGa11yTitleDescription,"addSVGa11yTitleDescription");var cleanupComments=__name(Ra=>Ra.replace(/^ \s *%%(?!{)[^ \n ]+ \n ?/gm,"").trimStart(),"cleanupComments");function isNothing(Ra){return typeof Ra>"u"||Ra===null}__name(isNothing,"isNothing");function isObject $ 2(Ra){return typeof Ra=="object"&&Ra!==null}__name(isObject $ 2,"isObject");function toArray $ 2(Ra){return Array.isArray(Ra)?Ra:isNothing(Ra)?[]:[Ra]}__name(toArray $ 2,"toArray");function extend $ 1(Ra,qa){var Ja,ed,td,rd;if(qa)for(rd=Object.keys(qa),Ja=0,ed=rd.length;Ja<ed;Ja+=1)td=rd[Ja],Ra[td]=qa[td];return Ra}__name(extend $ 1,"extend");function repeat(Ra,qa){var Ja="",ed;for(ed=0;ed<qa;ed+=1)Ja+=Ra;return Ja}__name(repeat,"repeat");function isNegativeZero(Ra){return Ra===0&&Number.NEGATIVE_INFINITY===1/Ra}__name(isNegativeZero,"isNegativeZero");var isNothing_1=isNothing,isObject_1=isObject $ 2,toArray_1=toArray $ 2,repeat_1=repeat,isNegativeZero_1=isNegativeZero,extend_1=extend $ 1,common={isNothing:isNothing_1,isObject:isObject_1,toArray:toArray_1,repeat:repeat_1,isNegativeZero:isNegativeZero_1,extend:extend_1};function formatError(Ra,qa){var Ja="",ed=Ra.reason||"(unknown reason)";return Ra.mark?(Ra.mark.name&&(Ja+='in "'+Ra.mark.name+'" '),Ja+="("+(Ra.mark.line+1)+":"+(Ra.mark.column+1)+")",!qa&&Ra.mark.snippet&&(Ja+= `
2024-08-30 15:19:18 +08:00
2024-08-31 11:28:56 +08:00
` +Ra.mark.snippet),ed+" "+Ja):ed}__name(formatError,"formatError");function YAMLException $ 1(Ra,qa){Error.call(this),this.name="YAMLException",this.reason=Ra,this.mark=qa,this.message=formatError(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}__name(YAMLException $ 1,"YAMLException $ 1");YAMLException $ 1.prototype=Object.create(Error.prototype);YAMLException $ 1.prototype.constructor=YAMLException $ 1;YAMLException $ 1.prototype.toString=__name(function(qa){return this.name+": "+formatError(this,qa)},"toString");var exception=YAMLException $ 1;function getLine(Ra,qa,Ja,ed,td){var rd="",od="",sd=Math.floor(td/2)-1;return ed-qa>sd&&(rd=" ... ",qa=ed-sd+rd.length),Ja-ed>sd&&(od=" ...",Ja=ed+sd-od.length),{str:rd+Ra.slice(qa,Ja).replace(/ \t /g,"→")+od,pos:ed-qa+rd.length}}__name(getLine,"getLine");function padStart(Ra,qa){return common.repeat(" ",qa-Ra.length)+Ra}__name(padStart,"padStart");function makeSnippet(Ra,qa){if(qa=Object.create(qa||null),!Ra.buffer)return null;qa.maxLength||(qa.maxLength=79),typeof qa.indent!="number"&&(qa.indent=1),typeof qa.linesBefore!="number"&&(qa.linesBefore=3),typeof qa.linesAfter!="number"&&(qa.linesAfter=2);for(var Ja=/ \r ? \n | \r | \0 /g,ed=[0],td=[],rd,od=-1;rd=Ja.exec(Ra.buffer);)td.push(rd.index),ed.push(rd.index+rd[0].length),Ra.position<=rd.index&&od<0&&(od=ed.length-2);od<0&&(od=ed.length-1);var sd="",ld,cd,ud=Math.min(Ra.line+qa.linesAfter,td.length).toString().length,_d=qa.maxLength-(qa.indent+ud+3);for(ld=1;ld<=qa.linesBefore&&!(od-ld<0);ld++)cd=getLine(Ra.buffer,ed[od-ld],td[od-ld],Ra.position-(ed[od]-ed[od-ld]),_d),sd=common.repeat(" ",qa.indent)+padStart((Ra.line-ld+1).toString(),ud)+" | "+cd.str+ `
` +sd;for(cd=getLine(Ra.buffer,ed[od],td[od],Ra.position,_d),sd+=common.repeat(" ",qa.indent)+padStart((Ra.line+1).toString(),ud)+" | "+cd.str+ `
2024-08-30 15:19:18 +08:00
` ,sd+=common.repeat("-",qa.indent+ud+3+cd.pos)+ ` ^
2024-08-31 11:28:56 +08:00
` ,ld=1;ld<=qa.linesAfter&&!(od+ld>=td.length);ld++)cd=getLine(Ra.buffer,ed[od+ld],td[od+ld],Ra.position-(ed[od]-ed[od+ld]),_d),sd+=common.repeat(" ",qa.indent)+padStart((Ra.line+ld+1).toString(),ud)+" | "+cd.str+ `
` ;return sd.replace(/ \n $ /,"")}__name(makeSnippet,"makeSnippet");var snippet=makeSnippet,TYPE_CONSTRUCTOR_OPTIONS=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],YAML_NODE_KINDS=["scalar","sequence","mapping"];function compileStyleAliases(Ra){var qa={};return Ra!==null&&Object.keys(Ra).forEach(function(Ja){Ra[Ja].forEach(function(ed){qa[String(ed)]=Ja})}),qa}__name(compileStyleAliases,"compileStyleAliases");function Type $ 1(Ra,qa){if(qa=qa||{},Object.keys(qa).forEach(function(Ja){if(TYPE_CONSTRUCTOR_OPTIONS.indexOf(Ja)===-1)throw new exception('Unknown option "'+Ja+'" is met in definition of "'+Ra+'" YAML type.')}),this.options=qa,this.tag=Ra,this.kind=qa.kind||null,this.resolve=qa.resolve||function(){return!0},this.construct=qa.construct||function(Ja){return Ja},this.instanceOf=qa.instanceOf||null,this.predicate=qa.predicate||null,this.represent=qa.represent||null,this.representName=qa.representName||null,this.defaultStyle=qa.defaultStyle||null,this.multi=qa.multi||!1,this.styleAliases=compileStyleAliases(qa.styleAliases||null),YAML_NODE_KINDS.indexOf(this.kind)===-1)throw new exception('Unknown kind "'+this.kind+'" is specified for "'+Ra+'" YAML type.')}__name(Type $ 1,"Type $ 1");var type $ 1=Type $ 1;function compileList(Ra,qa){var Ja=[];return Ra[qa].forEach(function(ed){var td=Ja.length;Ja.forEach(function(rd,od){rd.tag===ed.tag&&rd.kind===ed.kind&&rd.multi===ed.multi&&(td=od)}),Ja[td]=ed}),Ja}__name(compileList,"compileList");function compileMap(){var Ra={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},qa,Ja;function ed(td){td.multi?(Ra.multi[td.kind].push(td),Ra.multi.fallback.push(td)):Ra[td.kind][td.tag]=Ra.fallback[td.tag]=td}for(__name(ed,"collectType"),qa=0,Ja=arguments.length;qa<Ja;qa+=1)arguments[qa].forEach(ed);return Ra}__name(compileMap,"compileMap");function Schema $ 1(Ra){return this.extend(Ra)}__name(Schema $ 1,"Schema $ 1");Schema $ 1.prototype.extend=__name(function(qa){var Ja=[],ed=[];if(qa instanceof type $ 1)ed.push(qa);else if(Array.isArray(qa))ed=ed.concat(qa);else if(qa&&(Array.isArray(qa.implicit)||Array.isArray(qa.explicit)))qa.implicit&&(Ja=Ja.concat(qa.implicit)),qa.explicit&&(ed=ed.concat(qa.explicit));else throw new exception("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");Ja.forEach(function(rd){if(!(rd instanceof type $ 1))throw new exception("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(rd.loadKind&&rd.loadKind!=="scalar")throw new exception("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(rd.multi)throw new exception("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),ed.forEach(function(rd){if(!(rd instanceof type $ 1))throw new exception("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var td=Object.create(Schema $ 1.prototype);return td.implicit=(this.implicit||[]).concat(Ja),td.explicit=(this.explicit||[]).concat(ed),td.compiledImplicit=compileList(td,"implicit"),td.compiledExplicit=compileList(td,"explicit"),td.compiledTypeMap=compileMap(td.compiledImplicit,td.compiledExplicit),td},"extend");var schema=Schema $ 1,str=new type $ 1("tag:yaml.org,2002:str",{kind:"scalar",construct:__name(function(Ra){return Ra!==null?Ra:""},"construct")}),seq $ 1=new type $ 1("tag:yaml.org,2002:seq",{kind:"sequence",construct:__name(function(Ra){return Ra!==null?Ra:[]},"construct")}),map $ 4=new type $ 1("tag:yaml.org,2002:map",{kind:"mapping",construct:__name(function(Ra){return Ra!==null?Ra:{}},"construct")}),failsafe=new schema({explicit:[str,seq $ 1,map $ 4]});function resolveYamlNull(Ra){if(Ra===null)return!0;var qa=Ra.length;return qa===1&&Ra==="~"||qa===4&&(Ra==="null"||Ra==="Null"||Ra==="NULL")}__name(resolveYamlNull,"resolveYamlNull");function constructYamlNull(){return null}__name(constructYamlNull,"constructYamlNull");function isNull(Ra){
2024-08-30 15:19:18 +08:00
\ r ` ;function resolveYamlBinary(Ra){if(Ra===null)return!1;var qa,Ja,ed=0,td=Ra.length,rd=BASE64_MAP;for(Ja=0;Ja<td;Ja++)if(qa=rd.indexOf(Ra.charAt(Ja)),!(qa>64)){if(qa<0)return!1;ed+=6}return ed%8===0}__name(resolveYamlBinary,"resolveYamlBinary");function constructYamlBinary(Ra){var qa,Ja,ed=Ra.replace(/[ \r \n =]/g,""),td=ed.length,rd=BASE64_MAP,od=0,sd=[];for(qa=0;qa<td;qa++)qa%4===0&&qa&&(sd.push(od>>16&255),sd.push(od>>8&255),sd.push(od&255)),od=od<<6|rd.indexOf(ed.charAt(qa));return Ja=td%4*6,Ja===0?(sd.push(od>>16&255),sd.push(od>>8&255),sd.push(od&255)):Ja===18?(sd.push(od>>10&255),sd.push(od>>2&255)):Ja===12&&sd.push(od>>4&255),new Uint8Array(sd)}__name(constructYamlBinary,"constructYamlBinary");function representYamlBinary(Ra){var qa="",Ja=0,ed,td,rd=Ra.length,od=BASE64_MAP;for(ed=0;ed<rd;ed++)ed%3===0&&ed&&(qa+=od[Ja>>18&63],qa+=od[Ja>>12&63],qa+=od[Ja>>6&63],qa+=od[Ja&63]),Ja=(Ja<<8)+Ra[ed];return td=rd%3,td===0?(qa+=od[Ja>>18&63],qa+=od[Ja>>12&63],qa+=od[Ja>>6&63],qa+=od[Ja&63]):td===2?(qa+=od[Ja>>10&63],qa+=od[Ja>>4&63],qa+=od[Ja<<2&63],qa+=od[64]):td===1&&(qa+=od[Ja>>2&63],qa+=od[Ja<<4&63],qa+=od[64],qa+=od[64]),qa}__name(representYamlBinary,"representYamlBinary");function isBinary(Ra){return Object.prototype.toString.call(Ra)==="[object Uint8Array]"}__name(isBinary,"isBinary");var binary=new type $ 1("tag:yaml.org,2002:binary",{kind:"scalar",resolve:resolveYamlBinary,construct:constructYamlBinary,predicate:isBinary,represent:representYamlBinary}),_hasOwnProperty $ 3=Object.prototype.hasOwnProperty,_toString $ 2=Object.prototype.toString;function resolveYamlOmap(Ra){if(Ra===null)return!0;var qa=[],Ja,ed,td,rd,od,sd=Ra;for(Ja=0,ed=sd.length;Ja<ed;Ja+=1){if(td=sd[Ja],od=!1,_toString $ 2.call(td)!=="[object Object]")return!1;for(rd in td)if(_hasOwnProperty $ 3.call(td,rd))if(!od)od=!0;else return!1;if(!od)return!1;if(qa.indexOf(rd)===-1)qa.push(rd);else return!1}return!0}__name(resolveYamlOmap,"resolveYamlOmap");function constructYamlOmap(Ra){return Ra!==null?Ra:[]}__name(constructYamlOmap,"constructYamlOmap");var omap=new type $ 1("tag:yaml.org,2002:omap",{kind:"sequence",resolve:resolveYamlOmap,construct:constructYamlOmap}),_toString $ 1=Object.prototype.toString;function resolveYamlPairs(Ra){if(Ra===null)return!0;var qa,Ja,ed,td,rd,od=Ra;for(rd=new Array(od.length),qa=0,Ja=od.length;qa<Ja;qa+=1){if(ed=od[qa],_toString $ 1.call(ed)!=="[object Object]"||(td=Object.keys(ed),td.length!==1))return!1;rd[qa]=[td[0],ed[td[0]]]}return!0}__name(resolveYamlPairs,"resolveYamlPairs");function constructYamlPairs(Ra){if(Ra===null)return[];var qa,Ja,ed,td,rd,od=Ra;for(rd=new Array(od.length),qa=0,Ja=od.length;qa<Ja;qa+=1)ed=od[qa],td=Object.keys(ed),rd[qa]=[td[0],ed[td[0]]];return rd}__name(constructYamlPairs,"constructYamlPairs");var pairs=new type $ 1("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:resolveYamlPairs,construct:constructYamlPairs}),_hasOwnProperty $ 2=Object.prototype.hasOwnProperty;function resolveYamlSet(Ra){if(Ra===null)return!0;var qa,Ja=Ra;for(qa in Ja)if(_hasOwnProperty $ 2.call(Ja,qa)&&Ja[qa]!==null)return!1;return!0}__name(resolveYamlSet,"resolveYamlSet");function constructYamlSet(Ra){return Ra!==null?Ra:{}}__name(constructYamlSet,"constructYamlSet");var set=new type $ 1("tag:yaml.org,2002:set",{kind:"mapping",resolve:resolveYamlSet,construct:constructYamlSet}),_default $ 1=core $ 1.extend({implicit:[timestamp,merge $ 1],explicit:[binary,omap,pairs,set]}),_hasOwnProperty $ 1=Object.prototype.hasOwnProperty,CONTEXT_FLOW_IN=1,CONTEXT_FLOW_OUT=2,CONTEXT_BLOCK_IN=3,CONTEXT_BLOCK_OUT=4,CHOMPING_CLIP=1,CHOMPING_STRIP=2,CHOMPING_KEEP=3,PATTERN_NON_PRINTABLE=/[ \x 00- \x 08 \x 0B \x 0C \x 0E- \x 1F \x 7F- \x 84 \x 86- \x 9F \u FFFE \u FFFF]|[ \u D800- \u DBFF](?![ \u DC00- \u DFFF])|(?:[^ \u D800- \u DBFF]|^)[ \u DC00- \u DFFF]/,PATTERN_NON_ASCII_LINE_BREAKS=/[ \x 85 \u 2028 \u 2029]/,PATTERN_FLOW_INDICATORS=/[, \[ \] \{ \} ]/,PATTERN_TAG_HANDLE=/^(?:!|!!|![a-z \- ]+!) $ /i,PATTERN_TAG_URI=/^(?:!|[^, \[ \] \{ \} ])(?:%[0-9a-f]{2}|[0-9a-z \- #; \/ \? :@&= \+ \$ ,_ \. !~ \* ' \( \) \[ \] ])* $ /i;function _class(Ra){return Object.prototype.toString.call(Ra)}__name(_class,"_class");function is_EOL(Ra){return Ra===10||R
2024-08-31 11:28:56 +08:00
` :Ra===118?" \v ":Ra===102?" \f ":Ra===114?" \r ":Ra===101?" \x 1B":Ra===32?" ":Ra===34?'"':Ra===47?"/":Ra===92?" \\ ":Ra===78?"
":Ra===95?" ":Ra===76?" \u 2028":Ra===80?" \u 2029":""}__name(simpleEscapeSequence,"simpleEscapeSequence");function charFromCodepoint(Ra){return Ra<=65535?String.fromCharCode(Ra):String.fromCharCode((Ra-65536>>10)+55296,(Ra-65536&1023)+56320)}__name(charFromCodepoint,"charFromCodepoint");var simpleEscapeCheck=new Array(256),simpleEscapeMap=new Array(256);for(i $ 1=0;i $ 1<256;i $ 1++)simpleEscapeCheck[i $ 1]=simpleEscapeSequence(i $ 1)?1:0,simpleEscapeMap[i $ 1]=simpleEscapeSequence(i $ 1);var i $ 1;function State $ 1(Ra,qa){this.input=Ra,this.filename=qa.filename||null,this.schema=qa.schema||_default $ 1,this.onWarning=qa.onWarning||null,this.legacy=qa.legacy||!1,this.json=qa.json||!1,this.listener=qa.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=Ra.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}__name(State $ 1,"State $ 1");function generateError(Ra,qa){var Ja={name:Ra.filename,buffer:Ra.input.slice(0,-1),position:Ra.position,line:Ra.line,column:Ra.position-Ra.lineStart};return Ja.snippet=snippet(Ja),new exception(qa,Ja)}__name(generateError,"generateError");function throwError(Ra,qa){throw generateError(Ra,qa)}__name(throwError,"throwError");function throwWarning(Ra,qa){Ra.onWarning&&Ra.onWarning.call(null,generateError(Ra,qa))}__name(throwWarning,"throwWarning");var directiveHandlers={YAML:__name(function(qa,Ja,ed){var td,rd,od;qa.version!==null&&throwError(qa,"duplication of %YAML directive"),ed.length!==1&&throwError(qa,"YAML directive accepts exactly one argument"),td=/^([0-9]+) \. ([0-9]+) $ /.exec(ed[0]),td===null&&throwError(qa,"ill-formed argument of the YAML directive"),rd=parseInt(td[1],10),od=parseInt(td[2],10),rd!==1&&throwError(qa,"unacceptable YAML version of the document"),qa.version=ed[0],qa.checkLineBreaks=od<2,od!==1&&od!==2&&throwWarning(qa,"unsupported YAML version of the document")},"handleYamlDirective"),TAG:__name(function(qa,Ja,ed){var td,rd;ed.length!==2&&throwError(qa,"TAG directive accepts exactly two arguments"),td=ed[0],rd=ed[1],PATTERN_TAG_HANDLE.test(td)||throwError(qa,"ill-formed tag handle (first argument) of the TAG directive"),_hasOwnProperty $ 1.call(qa.tagMap,td)&&throwError(qa,'there is a previously declared suffix for "'+td+'" tag handle'),PATTERN_TAG_URI.test(rd)||throwError(qa,"ill-formed tag prefix (second argument) of the TAG directive");try{rd=decodeURIComponent(rd)}catch{throwError(qa,"tag prefix is malformed: "+rd)}qa.tagMap[td]=rd},"handleTagDirective")};function captureSegment(Ra,qa,Ja,ed){var td,rd,od,sd;if(qa<Ja){if(sd=Ra.input.slice(qa,Ja),ed)for(td=0,rd=sd.length;td<rd;td+=1)od=sd.charCodeAt(td),od===9||32<=od&&od<=1114111||throwError(Ra,"expected valid JSON character");else PATTERN_NON_PRINTABLE.test(sd)&&throwError(Ra,"the stream contains non-printable characters");Ra.result+=sd}}__name(captureSegment,"captureSegment");function mergeMappings(Ra,qa,Ja,ed){var td,rd,od,sd;for(common.isObject(Ja)||throwError(Ra,"cannot merge mappings; the provided source object is unacceptable"),td=Object.keys(Ja),od=0,sd=td.length;od<sd;od+=1)rd=td[od],_hasOwnProperty $ 1.call(qa,rd)||(qa[rd]=Ja[rd],ed[rd]=!0)}__name(mergeMappings,"mergeMappings");function storeMappingPair(Ra,qa,Ja,ed,td,rd,od,sd,ld){var cd,ud;if(Array.isArray(td))for(td=Array.prototype.slice.call(td),cd=0,ud=td.length;cd<ud;cd+=1)Array.isArray(td[cd])&&throwError(Ra,"nested arrays are not supported inside keys"),typeof td=="object"&&_class(td[cd])==="[object Object]"&&(td[cd]="[object Object]");if(typeof td=="object"&&_class(td)==="[object Object]"&&(td="[object Object]"),td=String(td),qa===null&&(qa={}),ed==="tag:yaml.org,2002:merge")if(Array.isArray(rd))for(cd=0,ud=rd.length;cd<ud;cd+=1)mergeMappings(Ra,qa,rd[cd],Ja);else mergeMappings(Ra,qa,rd,Ja);else!Ra.json&&!_hasOwnProperty $ 1.call(Ja,td)&&_hasOwnProperty $ 1.call(qa,td)&&(Ra.line=od||Ra.line,Ra.lineStart=sd||Ra.lineStart,Ra.position=ld||Ra.posit
` ,qa-1))}__name(writeFoldedLines,"writeFoldedLines");function readPlainScalar(Ra,qa,Ja){var ed,td,rd,od,sd,ld,cd,ud,_d=Ra.kind,yd=Ra.result,gd;if(gd=Ra.input.charCodeAt(Ra.position),is_WS_OR_EOL(gd)||is_FLOW_INDICATOR(gd)||gd===35||gd===38||gd===42||gd===33||gd===124||gd===62||gd===39||gd===34||gd===37||gd===64||gd===96||(gd===63||gd===45)&&(td=Ra.input.charCodeAt(Ra.position+1),is_WS_OR_EOL(td)||Ja&&is_FLOW_INDICATOR(td)))return!1;for(Ra.kind="scalar",Ra.result="",rd=od=Ra.position,sd=!1;gd!==0;){if(gd===58){if(td=Ra.input.charCodeAt(Ra.position+1),is_WS_OR_EOL(td)||Ja&&is_FLOW_INDICATOR(td))break}else if(gd===35){if(ed=Ra.input.charCodeAt(Ra.position-1),is_WS_OR_EOL(ed))break}else{if(Ra.position===Ra.lineStart&&testDocumentSeparator(Ra)||Ja&&is_FLOW_INDICATOR(gd))break;if(is_EOL(gd))if(ld=Ra.line,cd=Ra.lineStart,ud=Ra.lineIndent,skipSeparationSpace(Ra,!1,-1),Ra.lineIndent>=qa){sd=!0,gd=Ra.input.charCodeAt(Ra.position);continue}else{Ra.position=od,Ra.line=ld,Ra.lineStart=cd,Ra.lineIndent=ud;break}}sd&&(captureSegment(Ra,rd,od,!1),writeFoldedLines(Ra,Ra.line-ld),rd=od=Ra.position,sd=!1),is_WHITE_SPACE(gd)||(od=Ra.position+1),gd=Ra.input.charCodeAt(++Ra.position)}return captureSegment(Ra,rd,od,!1),Ra.result?!0:(Ra.kind=_d,Ra.result=yd,!1)}__name(readPlainScalar,"readPlainScalar");function readSingleQuotedScalar(Ra,qa){var Ja,ed,td;if(Ja=Ra.input.charCodeAt(Ra.position),Ja!==39)return!1;for(Ra.kind="scalar",Ra.result="",Ra.position++,ed=td=Ra.position;(Ja=Ra.input.charCodeAt(Ra.position))!==0;)if(Ja===39)if(captureSegment(Ra,ed,Ra.position,!0),Ja=Ra.input.charCodeAt(++Ra.position),Ja===39)ed=Ra.position,Ra.position++,td=Ra.position;else return!0;else is_EOL(Ja)?(captureSegment(Ra,ed,td,!0),writeFoldedLines(Ra,skipSeparationSpace(Ra,!1,qa)),ed=td=Ra.position):Ra.position===Ra.lineStart&&testDocumentSeparator(Ra)?throwError(Ra,"unexpected end of the document within a single quoted scalar"):(Ra.position++,td=Ra.position);throwError(Ra,"unexpected end of the stream within a single quoted scalar")}__name(readSingleQuotedScalar,"readSingleQuotedScalar");function readDoubleQuotedScalar(Ra,qa){var Ja,ed,td,rd,od,sd;if(sd=Ra.input.charCodeAt(Ra.position),sd!==34)return!1;for(Ra.kind="scalar",Ra.result="",Ra.position++,Ja=ed=Ra.position;(sd=Ra.input.charCodeAt(Ra.position))!==0;){if(sd===34)return captureSegment(Ra,Ja,Ra.position,!0),Ra.position++,!0;if(sd===92){if(captureSegment(Ra,Ja,Ra.position,!0),sd=Ra.input.charCodeAt(++Ra.position),is_EOL(sd))skipSeparationSpace(Ra,!1,qa);else if(sd<256&&simpleEscapeCheck[sd])Ra.result+=simpleEscapeMap[sd],Ra.position++;else if((od=escapedHexLen(sd))>0){for(td=od,rd=0;td>0;td--)sd=Ra.input.charCodeAt(++Ra.position),(od=fromHexCode(sd))>=0?rd=(rd<<4)+od:throwError(Ra,"expected hexadecimal character");Ra.result+=charFromCodepoint(rd),Ra.position++}else throwError(Ra,"unknown escape sequence");Ja=ed=Ra.position}else is_EOL(sd)?(captureSegment(Ra,Ja,ed,!0),writeFoldedLines(Ra,skipSeparationSpace(Ra,!1,qa)),Ja=ed=Ra.position):Ra.position===Ra.lineStart&&testDocumentSeparator(Ra)?throwError(Ra,"unexpected end of the document within a double quoted scalar"):(Ra.position++,ed=Ra.position)}throwError(Ra,"unexpected end of the stream within a double quoted scalar")}__name(readDoubleQuotedScalar,"readDoubleQuotedScalar");function readFlowCollection(Ra,qa){var Ja=!0,ed,td,rd,od=Ra.tag,sd,ld=Ra.anchor,cd,ud,_d,yd,gd,Ed=Object.create(null),Td,Id,Ad,Nd;if(Nd=Ra.input.charCodeAt(Ra.position),Nd===91)ud=93,gd=!1,sd=[];else if(Nd===123)ud=125,gd=!0,sd={};else return!1;for(Ra.anchor!==null&&(Ra.anchorMap[Ra.anchor]=sd),Nd=Ra.input.charCodeAt(++Ra.position);Nd!==0;){if(skipSeparationSpace(Ra,!0,qa),Nd=Ra.input.charCodeAt(Ra.position),Nd===ud)return Ra.position++,Ra.tag=od,Ra.anchor=ld,Ra.kind=gd?"mapping":"sequence",Ra.result=sd,!0;Ja?Nd===44&&throwError(Ra,"expected the node content, but found ','"):throwError(Ra,"missed comma between flow collection entries"),Id=Td=Ad=null,_d=yd=!1,Nd===63&&(cd=Ra.input.charCodeAt(Ra.position+1),is_WS_OR_EOL(cd)&&(_d=yd=!0,Ra.position++,skipSeparationSpace(Ra,!0,qa))),ed=Ra.l
2024-08-30 15:19:18 +08:00
` ,rd?1+ld:ld):td===CHOMPING_CLIP&&rd&&(Ra.result+= `
2024-08-31 11:28:56 +08:00
` );break}for(ed?is_WHITE_SPACE(_d)?(cd=!0,Ra.result+=common.repeat( `
2024-08-30 15:19:18 +08:00
` ,rd?1+ld:ld)):cd?(cd=!1,Ra.result+=common.repeat( `
` ,ld+1)):ld===0?rd&&(Ra.result+=" "):Ra.result+=common.repeat( `
` ,ld):Ra.result+=common.repeat( `
2024-08-31 11:28:56 +08:00
` ,rd?1+ld:ld),rd=!0,od=!0,ld=0,Ja=Ra.position;!is_EOL(_d)&&_d!==0;)_d=Ra.input.charCodeAt(++Ra.position);captureSegment(Ra,Ja,Ra.position,!1)}return!0}__name(readBlockScalar,"readBlockScalar");function readBlockSequence(Ra,qa){var Ja,ed=Ra.tag,td=Ra.anchor,rd=[],od,sd=!1,ld;if(Ra.firstTabInLine!==-1)return!1;for(Ra.anchor!==null&&(Ra.anchorMap[Ra.anchor]=rd),ld=Ra.input.charCodeAt(Ra.position);ld!==0&&(Ra.firstTabInLine!==-1&&(Ra.position=Ra.firstTabInLine,throwError(Ra,"tab characters must not be used in indentation")),!(ld!==45||(od=Ra.input.charCodeAt(Ra.position+1),!is_WS_OR_EOL(od))));){if(sd=!0,Ra.position++,skipSeparationSpace(Ra,!0,-1)&&Ra.lineIndent<=qa){rd.push(null),ld=Ra.input.charCodeAt(Ra.position);continue}if(Ja=Ra.line,composeNode(Ra,qa,CONTEXT_BLOCK_IN,!1,!0),rd.push(Ra.result),skipSeparationSpace(Ra,!0,-1),ld=Ra.input.charCodeAt(Ra.position),(Ra.line===Ja||Ra.lineIndent>qa)&&ld!==0)throwError(Ra,"bad indentation of a sequence entry");else if(Ra.lineIndent<qa)break}return sd?(Ra.tag=ed,Ra.anchor=td,Ra.kind="sequence",Ra.result=rd,!0):!1}__name(readBlockSequence,"readBlockSequence");function readBlockMapping(Ra,qa,Ja){var ed,td,rd,od,sd,ld,cd=Ra.tag,ud=Ra.anchor,_d={},yd=Object.create(null),gd=null,Ed=null,Td=null,Id=!1,Ad=!1,Nd;if(Ra.firstTabInLine!==-1)return!1;for(Ra.anchor!==null&&(Ra.anchorMap[Ra.anchor]=_d),Nd=Ra.input.charCodeAt(Ra.position);Nd!==0;){if(!Id&&Ra.firstTabInLine!==-1&&(Ra.position=Ra.firstTabInLine,throwError(Ra,"tab characters must not be used in indentation")),ed=Ra.input.charCodeAt(Ra.position+1),rd=Ra.line,(Nd===63||Nd===58)&&is_WS_OR_EOL(ed))Nd===63?(Id&&(storeMappingPair(Ra,_d,yd,gd,Ed,null,od,sd,ld),gd=Ed=Td=null),Ad=!0,Id=!0,td=!0):Id?(Id=!1,td=!0):throwError(Ra,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),Ra.position+=1,Nd=ed;else{if(od=Ra.line,sd=Ra.lineStart,ld=Ra.position,!composeNode(Ra,Ja,CONTEXT_FLOW_OUT,!1,!0))break;if(Ra.line===rd){for(Nd=Ra.input.charCodeAt(Ra.position);is_WHITE_SPACE(Nd);)Nd=Ra.input.charCodeAt(++Ra.position);if(Nd===58)Nd=Ra.input.charCodeAt(++Ra.position),is_WS_OR_EOL(Nd)||throwError(Ra,"a whitespace character is expected after the key-value separator within a block mapping"),Id&&(storeMappingPair(Ra,_d,yd,gd,Ed,null,od,sd,ld),gd=Ed=Td=null),Ad=!0,Id=!1,td=!1,gd=Ra.tag,Ed=Ra.result;else if(Ad)throwError(Ra,"can not read an implicit mapping pair; a colon is missed");else return Ra.tag=cd,Ra.anchor=ud,!0}else if(Ad)throwError(Ra,"can not read a block mapping entry; a multiline key may not be an implicit key");else return Ra.tag=cd,Ra.anchor=ud,!0}if((Ra.line===rd||Ra.lineIndent>qa)&&(Id&&(od=Ra.line,sd=Ra.lineStart,ld=Ra.position),composeNode(Ra,qa,CONTEXT_BLOCK_OUT,!0,td)&&(Id?Ed=Ra.result:Td=Ra.result),Id||(storeMappingPair(Ra,_d,yd,gd,Ed,Td,od,sd,ld),gd=Ed=Td=null),skipSeparationSpace(Ra,!0,-1),Nd=Ra.input.charCodeAt(Ra.position)),(Ra.line===rd||Ra.lineIndent>qa)&&Nd!==0)throwError(Ra,"bad indentation of a mapping entry");else if(Ra.lineIndent<qa)break}return Id&&storeMappingPair(Ra,_d,yd,gd,Ed,null,od,sd,ld),Ad&&(Ra.tag=cd,Ra.anchor=ud,Ra.kind="mapping",Ra.result=_d),Ad}__name(readBlockMapping,"readBlockMapping");function readTagProperty(Ra){var qa,Ja=!1,ed=!1,td,rd,od;if(od=Ra.input.charCodeAt(Ra.position),od!==33)return!1;if(Ra.tag!==null&&throwError(Ra,"duplication of a tag property"),od=Ra.input.charCodeAt(++Ra.position),od===60?(Ja=!0,od=Ra.input.charCodeAt(++Ra.position)):od===33?(ed=!0,td="!!",od=Ra.input.charCodeAt(++Ra.position)):td="!",qa=Ra.position,Ja){do od=Ra.input.charCodeAt(++Ra.position);while(od!==0&&od!==62);Ra.position<Ra.length?(rd=Ra.input.slice(qa,Ra.position),od=Ra.input.charCodeAt(++Ra.position)):throwError(Ra,"unexpected end of the stream within a verbatim tag")}else{for(;od!==0&&!is_WS_OR_EOL(od);)od===33&&(ed?throwError(Ra,"tag suffix cannot contain exclamation marks"):(td=Ra.input.slice(qa-1,Ra.position+1),PATTERN_TAG_HANDLE.test(td)||throwError(Ra,"named tag handle cannot contain such characters"),ed=!0,qa=Ra.position+1)),od=Ra.input.charCodeAt(++Ra.position);
2024-08-30 15:19:18 +08:00
` ),Ra.charCodeAt(0)===65279&&(Ra=Ra.slice(1)));var Ja=new State $ 1(Ra,qa),ed=Ra.indexOf(" \0 ");for(ed!==-1&&(Ja.position=ed,throwError(Ja,"null byte is not allowed in input")),Ja.input+=" \0 ";Ja.input.charCodeAt(Ja.position)===32;)Ja.lineIndent+=1,Ja.position+=1;for(;Ja.position<Ja.length-1;)readDocument(Ja);return Ja.documents}__name(loadDocuments,"loadDocuments");function loadAll $ 1(Ra,qa,Ja){qa!==null&&typeof qa=="object"&&typeof Ja>"u"&&(Ja=qa,qa=null);var ed=loadDocuments(Ra,Ja);if(typeof qa!="function")return ed;for(var td=0,rd=ed.length;td<rd;td+=1)qa(ed[td])}__name(loadAll $ 1,"loadAll $ 1");function load $ 1(Ra,qa){var Ja=loadDocuments(Ra,qa);if(Ja.length!==0){if(Ja.length===1)return Ja[0];throw new exception("expected a single document in the stream, but found more")}}__name(load $ 1,"load $ 1");var loadAll_1=loadAll $ 1,load_1=load $ 1,loader24={loadAll:loadAll_1,load:load_1},_toString=Object.prototype.toString,_hasOwnProperty=Object.prototype.hasOwnProperty,CHAR_BOM=65279,CHAR_TAB=9,CHAR_LINE_FEED=10,CHAR_CARRIAGE_RETURN=13,CHAR_SPACE=32,CHAR_EXCLAMATION=33,CHAR_DOUBLE_QUOTE=34,CHAR_SHARP=35,CHAR_PERCENT=37,CHAR_AMPERSAND=38,CHAR_SINGLE_QUOTE=39,CHAR_ASTERISK=42,CHAR_COMMA=44,CHAR_MINUS=45,CHAR_COLON=58,CHAR_EQUALS=61,CHAR_GREATER_THAN=62,CHAR_QUESTION=63,CHAR_COMMERCIAL_AT=64,CHAR_LEFT_SQUARE_BRACKET=91,CHAR_RIGHT_SQUARE_BRACKET=93,CHAR_GRAVE_ACCENT=96,CHAR_LEFT_CURLY_BRACKET=123,CHAR_VERTICAL_LINE=124,CHAR_RIGHT_CURLY_BRACKET=125,ESCAPE_SEQUENCES={};ESCAPE_SEQUENCES[0]=" \\ 0";ESCAPE_SEQUENCES[7]=" \\ a";ESCAPE_SEQUENCES[8]=" \\ b";ESCAPE_SEQUENCES[9]=" \\ t";ESCAPE_SEQUENCES[10]=" \\ n";ESCAPE_SEQUENCES[11]=" \\ v";ESCAPE_SEQUENCES[12]=" \\ f";ESCAPE_SEQUENCES[13]=" \\ r";ESCAPE_SEQUENCES[27]=" \\ e";ESCAPE_SEQUENCES[34]=' \\ "';ESCAPE_SEQUENCES[92]=" \\ \\ ";ESCAPE_SEQUENCES[133]=" \\ N";ESCAPE_SEQUENCES[160]=" \\ _";ESCAPE_SEQUENCES[8232]=" \\ L";ESCAPE_SEQUENCES[8233]=" \\ P";var DEPRECATED_BOOLEANS_SYNTAX=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],DEPRECATED_BASE60_SYNTAX=/^[-+]?[0-9_]+(?::[0-9_]+)+(?: \. [0-9_]*)? $ /;function compileStyleMap(Ra,qa){var Ja,ed,td,rd,od,sd,ld;if(qa===null)return{};for(Ja={},ed=Object.keys(qa),td=0,rd=ed.length;td<rd;td+=1)od=ed[td],sd=String(qa[od]),od.slice(0,2)==="!!"&&(od="tag:yaml.org,2002:"+od.slice(2)),ld=Ra.compiledTypeMap.fallback[od],ld&&_hasOwnProperty.call(ld.styleAliases,sd)&&(sd=ld.styleAliases[sd]),Ja[od]=sd;return Ja}__name(compileStyleMap,"compileStyleMap");function encodeHex(Ra){var qa,Ja,ed;if(qa=Ra.toString(16).toUpperCase(),Ra<=255)Ja="x",ed=2;else if(Ra<=65535)Ja="u",ed=4;else if(Ra<=4294967295)Ja="U",ed=8;else throw new exception("code point within a string may not be greater than 0xFFFFFFFF");return" \\ "+Ja+common.repeat("0",ed-qa.length)+qa}__name(encodeHex,"encodeHex");var QUOTING_TYPE_SINGLE=1,QUOTING_TYPE_DOUBLE=2;function State(Ra){this.schema=Ra.schema||_default $ 1,this.indent=Math.max(1,Ra.indent||2),this.noArrayIndent=Ra.noArrayIndent||!1,this.skipInvalid=Ra.skipInvalid||!1,this.flowLevel=common.isNothing(Ra.flowLevel)?-1:Ra.flowLevel,this.styleMap=compileStyleMap(this.schema,Ra.styles||null),this.sortKeys=Ra.sortKeys||!1,this.lineWidth=Ra.lineWidth||80,this.noRefs=Ra.noRefs||!1,this.noCompatMode=Ra.noCompatMode||!1,this.condenseFlow=Ra.condenseFlow||!1,this.quotingType=Ra.quotingType==='"'?QUOTING_TYPE_DOUBLE:QUOTING_TYPE_SINGLE,this.forceQuotes=Ra.forceQuotes||!1,this.replacer=typeof Ra.replacer=="function"?Ra.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}__name(State,"State");function indentString(Ra,qa){for(var Ja=common.repeat(" ",qa),ed=0,td=-1,rd="",od,sd=Ra.length;ed<sd;)td=Ra.indexOf( `
` ,ed),td===-1?(od=Ra.slice(ed),ed=sd):(od=Ra.slice(ed,td+1),ed=td+1),od.length&&od!== `
` &&(rd+=Ja),rd+=od;return rd}__name(indentString,"indentString");function generateNextLine(Ra,qa){return `
2024-08-31 11:28:56 +08:00
` +common.repeat(" ",Ra.indent*qa)}__name(generateNextLine,"generateNextLine");function testImplicitResolving(Ra,qa){var Ja,ed,td;for(Ja=0,ed=Ra.implicitTypes.length;Ja<ed;Ja+=1)if(td=Ra.implicitTypes[Ja],td.resolve(qa))return!0;return!1}__name(testImplicitResolving,"testImplicitResolving");function isWhitespace $ 1(Ra){return Ra===CHAR_SPACE||Ra===CHAR_TAB}__name(isWhitespace $ 1,"isWhitespace");function isPrintable(Ra){return 32<=Ra&&Ra<=126||161<=Ra&&Ra<=55295&&Ra!==8232&&Ra!==8233||57344<=Ra&&Ra<=65533&&Ra!==CHAR_BOM||65536<=Ra&&Ra<=1114111}__name(isPrintable,"isPrintable");function isNsCharOrWhitespace(Ra){return isPrintable(Ra)&&Ra!==CHAR_BOM&&Ra!==CHAR_CARRIAGE_RETURN&&Ra!==CHAR_LINE_FEED}__name(isNsCharOrWhitespace,"isNsCharOrWhitespace");function isPlainSafe(Ra,qa,Ja){var ed=isNsCharOrWhitespace(Ra),td=ed&&!isWhitespace $ 1(Ra);return(Ja?ed:ed&&Ra!==CHAR_COMMA&&Ra!==CHAR_LEFT_SQUARE_BRACKET&&Ra!==CHAR_RIGHT_SQUARE_BRACKET&&Ra!==CHAR_LEFT_CURLY_BRACKET&&Ra!==CHAR_RIGHT_CURLY_BRACKET)&&Ra!==CHAR_SHARP&&!(qa===CHAR_COLON&&!td)||isNsCharOrWhitespace(qa)&&!isWhitespace $ 1(qa)&&Ra===CHAR_SHARP||qa===CHAR_COLON&&td}__name(isPlainSafe,"isPlainSafe");function isPlainSafeFirst(Ra){return isPrintable(Ra)&&Ra!==CHAR_BOM&&!isWhitespace $ 1(Ra)&&Ra!==CHAR_MINUS&&Ra!==CHAR_QUESTION&&Ra!==CHAR_COLON&&Ra!==CHAR_COMMA&&Ra!==CHAR_LEFT_SQUARE_BRACKET&&Ra!==CHAR_RIGHT_SQUARE_BRACKET&&Ra!==CHAR_LEFT_CURLY_BRACKET&&Ra!==CHAR_RIGHT_CURLY_BRACKET&&Ra!==CHAR_SHARP&&Ra!==CHAR_AMPERSAND&&Ra!==CHAR_ASTERISK&&Ra!==CHAR_EXCLAMATION&&Ra!==CHAR_VERTICAL_LINE&&Ra!==CHAR_EQUALS&&Ra!==CHAR_GREATER_THAN&&Ra!==CHAR_SINGLE_QUOTE&&Ra!==CHAR_DOUBLE_QUOTE&&Ra!==CHAR_PERCENT&&Ra!==CHAR_COMMERCIAL_AT&&Ra!==CHAR_GRAVE_ACCENT}__name(isPlainSafeFirst,"isPlainSafeFirst");function isPlainSafeLast(Ra){return!isWhitespace $ 1(Ra)&&Ra!==CHAR_COLON}__name(isPlainSafeLast,"isPlainSafeLast");function codePointAt(Ra,qa){var Ja=Ra.charCodeAt(qa),ed;return Ja>=55296&&Ja<=56319&&qa+1<Ra.length&&(ed=Ra.charCodeAt(qa+1),ed>=56320&&ed<=57343)?(Ja-55296)*1024+ed-56320+65536:Ja}__name(codePointAt,"codePointAt");function needIndentIndicator(Ra){var qa=/^ \n * /;return qa.test(Ra)}__name(needIndentIndicator,"needIndentIndicator");var STYLE_PLAIN=1,STYLE_SINGLE=2,STYLE_LITERAL=3,STYLE_FOLDED=4,STYLE_DOUBLE=5;function chooseScalarStyle(Ra,qa,Ja,ed,td,rd,od,sd){var ld,cd=0,ud=null,_d=!1,yd=!1,gd=ed!==-1,Ed=-1,Td=isPlainSafeFirst(codePointAt(Ra,0))&&isPlainSafeLast(codePointAt(Ra,Ra.length-1));if(qa||od)for(ld=0;ld<Ra.length;cd>=65536?ld+=2:ld++){if(cd=codePointAt(Ra,ld),!isPrintable(cd))return STYLE_DOUBLE;Td=Td&&isPlainSafe(cd,ud,sd),ud=cd}else{for(ld=0;ld<Ra.length;cd>=65536?ld+=2:ld++){if(cd=codePointAt(Ra,ld),cd===CHAR_LINE_FEED)_d=!0,gd&&(yd=yd||ld-Ed-1>ed&&Ra[Ed+1]!==" ",Ed=ld);else if(!isPrintable(cd))return STYLE_DOUBLE;Td=Td&&isPlainSafe(cd,ud,sd),ud=cd}yd=yd||gd&&ld-Ed-1>ed&&Ra[Ed+1]!==" "}return!_d&&!yd?Td&&!od&&!td(Ra)?STYLE_PLAIN:rd===QUOTING_TYPE_DOUBLE?STYLE_DOUBLE:STYLE_SINGLE:Ja>9&&needIndentIndicator(Ra)?STYLE_DOUBLE:od?rd===QUOTING_TYPE_DOUBLE?STYLE_DOUBLE:STYLE_SINGLE:yd?STYLE_FOLDED:STYLE_LITERAL}__name(chooseScalarStyle,"chooseScalarStyle");function writeScalar(Ra,qa,Ja,ed,td){Ra.dump=function(){if(qa.length===0)return Ra.quotingType===QUOTING_TYPE_DOUBLE?'""':"''";if(!Ra.noCompatMode&&(DEPRECATED_BOOLEANS_SYNTAX.indexOf(qa)!==-1||DEPRECATED_BASE60_SYNTAX.test(qa)))return Ra.quotingType===QUOTING_TYPE_DOUBLE?'"'+qa+'"':"'"+qa+"'";var rd=Ra.indent*Math.max(1,Ja),od=Ra.lineWidth===-1?-1:Math.max(Math.min(Ra.lineWidth,40),Ra.lineWidth-rd),sd=ed||Ra.flowLevel>-1&&Ja>=Ra.flowLevel;function ld(cd){return testImplicitResolving(Ra,cd)}switch(__name(ld,"testAmbiguity"),chooseScalarStyle(qa,sd,Ra.indent,od,ld,Ra.quotingType,Ra.forceQuotes&&!ed,td)){case STYLE_PLAIN:return qa;case STYLE_SINGLE:return"'"+qa.replace(/'/g,"''")+"'";case STYLE_LITERAL:return"|"+blockHeader(qa,Ra.indent)+dropEndingNewline(indentString(qa,rd));case STYLE_FOLDED:return">"+blockHeader(qa,Ra.indent)+dropEndingNewline(indentString(foldString(qa,od),rd));case STYLE_DOUBLE:return'"'+escapeString(qa)+'"';defaul
2024-08-30 15:19:18 +08:00
` ,td=ed&&(Ra[Ra.length-2]=== `
` ||Ra=== `
` ),rd=td?"+":ed?"":"-";return Ja+rd+ `
` }__name(blockHeader,"blockHeader");function dropEndingNewline(Ra){return Ra[Ra.length-1]=== `
` ?Ra.slice(0,-1):Ra}__name(dropEndingNewline,"dropEndingNewline");function foldString(Ra,qa){for(var Ja=/( \n +)([^ \n ]*)/g,ed=function(){var cd=Ra.indexOf( `
` );return cd=cd!==-1?cd:Ra.length,Ja.lastIndex=cd,foldLine(Ra.slice(0,cd),qa)}(),td=Ra[0]=== `
` ||Ra[0]===" ",rd,od;od=Ja.exec(Ra);){var sd=od[1],ld=od[2];rd=ld[0]===" ",ed+=sd+(!td&&!rd&&ld!==""? `
` :"")+foldLine(ld,qa),td=rd}return ed}__name(foldString,"foldString");function foldLine(Ra,qa){if(Ra===""||Ra[0]===" ")return Ra;for(var Ja=/ [^ ]/g,ed,td=0,rd,od=0,sd=0,ld="";ed=Ja.exec(Ra);)sd=ed.index,sd-td>qa&&(rd=od>td?od:sd,ld+= `
` +Ra.slice(td,rd),td=rd+1),od=sd;return ld+= `
` ,Ra.length-td>qa&&od>td?ld+=Ra.slice(td,od)+ `
2024-08-31 11:28:56 +08:00
` +Ra.slice(od+1):ld+=Ra.slice(td),ld.slice(1)}__name(foldLine,"foldLine");function escapeString(Ra){for(var qa="",Ja=0,ed,td=0;td<Ra.length;Ja>=65536?td+=2:td++)Ja=codePointAt(Ra,td),ed=ESCAPE_SEQUENCES[Ja],!ed&&isPrintable(Ja)?(qa+=Ra[td],Ja>=65536&&(qa+=Ra[td+1])):qa+=ed||encodeHex(Ja);return qa}__name(escapeString,"escapeString");function writeFlowSequence(Ra,qa,Ja){var ed="",td=Ra.tag,rd,od,sd;for(rd=0,od=Ja.length;rd<od;rd+=1)sd=Ja[rd],Ra.replacer&&(sd=Ra.replacer.call(Ja,String(rd),sd)),(writeNode(Ra,qa,sd,!1,!1)||typeof sd>"u"&&writeNode(Ra,qa,null,!1,!1))&&(ed!==""&&(ed+=","+(Ra.condenseFlow?"":" ")),ed+=Ra.dump);Ra.tag=td,Ra.dump="["+ed+"]"}__name(writeFlowSequence,"writeFlowSequence");function writeBlockSequence(Ra,qa,Ja,ed){var td="",rd=Ra.tag,od,sd,ld;for(od=0,sd=Ja.length;od<sd;od+=1)ld=Ja[od],Ra.replacer&&(ld=Ra.replacer.call(Ja,String(od),ld)),(writeNode(Ra,qa+1,ld,!0,!0,!1,!0)||typeof ld>"u"&&writeNode(Ra,qa+1,null,!0,!0,!1,!0))&&((!ed||td!=="")&&(td+=generateNextLine(Ra,qa)),Ra.dump&&CHAR_LINE_FEED===Ra.dump.charCodeAt(0)?td+="-":td+="- ",td+=Ra.dump);Ra.tag=rd,Ra.dump=td||"[]"}__name(writeBlockSequence,"writeBlockSequence");function writeFlowMapping(Ra,qa,Ja){var ed="",td=Ra.tag,rd=Object.keys(Ja),od,sd,ld,cd,ud;for(od=0,sd=rd.length;od<sd;od+=1)ud="",ed!==""&&(ud+=", "),Ra.condenseFlow&&(ud+='"'),ld=rd[od],cd=Ja[ld],Ra.replacer&&(cd=Ra.replacer.call(Ja,ld,cd)),writeNode(Ra,qa,ld,!1,!1)&&(Ra.dump.length>1024&&(ud+="? "),ud+=Ra.dump+(Ra.condenseFlow?'"':"")+":"+(Ra.condenseFlow?"":" "),writeNode(Ra,qa,cd,!1,!1)&&(ud+=Ra.dump,ed+=ud));Ra.tag=td,Ra.dump="{"+ed+"}"}__name(writeFlowMapping,"writeFlowMapping");function writeBlockMapping(Ra,qa,Ja,ed){var td="",rd=Ra.tag,od=Object.keys(Ja),sd,ld,cd,ud,_d,yd;if(Ra.sortKeys===!0)od.sort();else if(typeof Ra.sortKeys=="function")od.sort(Ra.sortKeys);else if(Ra.sortKeys)throw new exception("sortKeys must be a boolean or a function");for(sd=0,ld=od.length;sd<ld;sd+=1)yd="",(!ed||td!=="")&&(yd+=generateNextLine(Ra,qa)),cd=od[sd],ud=Ja[cd],Ra.replacer&&(ud=Ra.replacer.call(Ja,cd,ud)),writeNode(Ra,qa+1,cd,!0,!0,!0)&&(_d=Ra.tag!==null&&Ra.tag!=="?"||Ra.dump&&Ra.dump.length>1024,_d&&(Ra.dump&&CHAR_LINE_FEED===Ra.dump.charCodeAt(0)?yd+="?":yd+="? "),yd+=Ra.dump,_d&&(yd+=generateNextLine(Ra,qa)),writeNode(Ra,qa+1,ud,!0,_d)&&(Ra.dump&&CHAR_LINE_FEED===Ra.dump.charCodeAt(0)?yd+=":":yd+=": ",yd+=Ra.dump,td+=yd));Ra.tag=rd,Ra.dump=td||"{}"}__name(writeBlockMapping,"writeBlockMapping");function detectType2(Ra,qa,Ja){var ed,td,rd,od,sd,ld;for(td=Ja?Ra.explicitTypes:Ra.implicitTypes,rd=0,od=td.length;rd<od;rd+=1)if(sd=td[rd],(sd.instanceOf||sd.predicate)&&(!sd.instanceOf||typeof qa=="object"&&qa instanceof sd.instanceOf)&&(!sd.predicate||sd.predicate(qa))){if(Ja?sd.multi&&sd.representName?Ra.tag=sd.representName(qa):Ra.tag=sd.tag:Ra.tag="?",sd.represent){if(ld=Ra.styleMap[sd.tag]||sd.defaultStyle,_toString.call(sd.represent)==="[object Function]")ed=sd.represent(qa,ld);else if(_hasOwnProperty.call(sd.represent,ld))ed=sd.represent[ld](qa,ld);else throw new exception("!<"+sd.tag+'> tag resolver accepts not "'+ld+'" style');Ra.dump=ed}return!0}return!1}__name(detectType2,"detectType");function writeNode(Ra,qa,Ja,ed,td,rd,od){Ra.tag=null,Ra.dump=Ja,detectType2(Ra,Ja,!1)||detectType2(Ra,Ja,!0);var sd=_toString.call(Ra.dump),ld=ed,cd;ed&&(ed=Ra.flowLevel<0||Ra.flowLevel>qa);var ud=sd==="[object Object]"||sd==="[object Array]",_d,yd;if(ud&&(_d=Ra.duplicates.indexOf(Ja),yd=_d!==-1),(Ra.tag!==null&&Ra.tag!=="?"||yd||Ra.indent!==2&&qa>0)&&(td=!1),yd&&Ra.usedDuplicates[_d])Ra.dump="*ref_"+_d;else{if(ud&&yd&&!Ra.usedDuplicates[_d]&&(Ra.usedDuplicates[_d]=!0),sd==="[object Object]")ed&&Object.keys(Ra.dump).length!==0?(writeBlockMapping(Ra,qa,Ra.dump,td),yd&&(Ra.dump="&ref_"+_d+Ra.dump)):(writeFlowMapping(Ra,qa,Ra.dump),yd&&(Ra.dump="&ref_"+_d+" "+Ra.dump));else if(sd==="[object Array]")ed&&Ra.dump.length!==0?(Ra.noArrayIndent&&!od&&qa>0?writeBlockSequence(Ra,qa-1,Ra.dump,td):writeBlockSequence(Ra,qa,Ra.dump,td),yd&&(Ra.dump="&ref_"+_d+Ra.dump)):(writeFlowSequence(Ra,qa,Ra.dump),yd&&(Ra.dump="
2024-08-30 15:19:18 +08:00
` :""}__name(dump $ 1,"dump $ 1");function renamed(Ra,qa){return function(){throw new Error("Function yaml."+Ra+" is removed in js-yaml 4. Use yaml."+qa+" instead, which is now safe by default.")}}__name(renamed,"renamed");var JSON_SCHEMA=json,load $ 2=loader24.load;function extractFrontMatter(Ra){const qa=Ra.match(frontMatterRegex);if(!qa)return{text:Ra,metadata:{}};let Ja=load $ 2(qa[1],{schema:JSON_SCHEMA})??{};Ja=typeof Ja=="object"&&!Array.isArray(Ja)?Ja:{};const ed={};return Ja.displayMode&&(ed.displayMode=Ja.displayMode.toString()),Ja.title&&(ed.title=Ja.title.toString()),Ja.config&&(ed.config=Ja.config),{text:Ra.slice(qa[0].length),metadata:ed}}__name(extractFrontMatter,"extractFrontMatter");var cleanupText=__name(Ra=>Ra.replace(/ \r \n ?/g, `
` ).replace(/<( \w +)([^>]*)>/g,(qa,Ja,ed)=>"<"+Ja+ed.replace(/="([^"]*)"/g,"=' $ 1'")+">"),"cleanupText"),processFrontmatter=__name(Ra=>{const{text:qa,metadata:Ja}=extractFrontMatter(Ra),{displayMode:ed,title:td,config:rd={}}=Ja;return ed&&(rd.gantt||(rd.gantt={}),rd.gantt.displayMode=ed),{title:td,config:rd,text:qa}},"processFrontmatter"),processDirectives=__name(Ra=>{const qa=utils_default.detectInit(Ra)??{},Ja=utils_default.detectDirective(Ra,"wrap");return Array.isArray(Ja)?qa.wrap=Ja.some(({type:ed})=>ed==="wrap"):(Ja==null?void 0:Ja.type)==="wrap"&&(qa.wrap=!0),{text:removeDirectives(Ra),directive:qa}},"processDirectives");function preprocessDiagram(Ra){const qa=cleanupText(Ra),Ja=processFrontmatter(qa),ed=processDirectives(Ja.text),td=cleanAndMerge(Ja.config,ed.directive);return Ra=cleanupComments(ed.text),{code:Ra,title:Ja.title,config:td}}__name(preprocessDiagram,"preprocessDiagram");function toBase64 $ 1(Ra){const qa=new TextEncoder().encode(Ra),Ja=Array.from(qa,ed=>String.fromCodePoint(ed)).join("");return btoa(Ja)}__name(toBase64 $ 1,"toBase64");var MAX_TEXTLENGTH=5e4,MAX_TEXTLENGTH_EXCEEDED_MSG="graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa",SECURITY_LVL_SANDBOX="sandbox",SECURITY_LVL_LOOSE="loose",XMLNS_SVG_STD="http://www.w3.org/2000/svg",XMLNS_XLINK_STD="http://www.w3.org/1999/xlink",XMLNS_XHTML_STD="http://www.w3.org/1999/xhtml",IFRAME_WIDTH="100%",IFRAME_HEIGHT="100%",IFRAME_STYLES="border:0;margin:0;",IFRAME_BODY_STYLE="margin:0",IFRAME_SANDBOX_OPTS="allow-top-navigation-by-user-activation allow-popups",IFRAME_NOT_SUPPORTED_MSG='The "iframe" tag is not supported by your browser.',DOMPURIFY_TAGS=["foreignobject"],DOMPURIFY_ATTR=["dominant-baseline"];function processAndSetConfigs(Ra){const qa=preprocessDiagram(Ra);return reset(),addDirective(qa.config??{}),qa}__name(processAndSetConfigs,"processAndSetConfigs");async function parse $ 4(Ra,qa){addDiagrams();try{const{code:Ja}=processAndSetConfigs(Ra);return{diagramType:(await getDiagramFromText(Ja)).type}}catch(Ja){if(qa!=null&&qa.suppressErrors)return!1;throw Ja}}__name(parse $ 4,"parse");var cssImportantStyles=__name((Ra,qa,Ja=[])=> `
. $ { Ra } $ { qa } { $ { Ja . join ( " !important; " ) } ! important ; } ` ,"cssImportantStyles"),createCssStyles=__name((Ra,qa=new Map)=>{var ed;let Ja="";if(Ra.themeCSS!==void 0&&(Ja+= `
$ { Ra . themeCSS } ` ),Ra.fontFamily!==void 0&&(Ja+= `
: root { -- mermaid - font - family : $ { Ra . fontFamily } } ` ),Ra.altFontFamily!==void 0&&(Ja+= `
: root { -- mermaid - alt - font - family : $ { Ra . altFontFamily } } ` ),qa instanceof Map){const sd=Ra.htmlLabels??((ed=Ra.flowchart)==null?void 0:ed.htmlLabels)?["> *","span"]:["rect","polygon","ellipse","circle","path"];qa.forEach(ld=>{isEmpty $ 2(ld.styles)||sd.forEach(cd=>{Ja+=cssImportantStyles(ld.id,cd,ld.styles)}),isEmpty $ 2(ld.textStyles)||(Ja+=cssImportantStyles(ld.id,"tspan",((ld==null?void 0:ld.textStyles)||[]).map(cd=>cd.replace("color","fill"))))})}return Ja},"createCssStyles"),createUserStyles=__name((Ra,qa,Ja,ed)=>{const td=createCssStyles(Ra,Ja),rd=styles_default(qa,td,Ra.themeVariables);return serialize(compile $ 2( ` $ { ed } { $ { rd } } ` ),stringify $ 4)},"createUserStyles"),cleanUpSvgCode=__name((Ra="",qa,Ja)=>{let ed=Ra;return!Ja&&!qa&&(ed=ed.replace(/marker-end="url \( [ \d +./:=?A-Za-z-]*?#/g,'marker-end="url(#')),ed=decodeEntities(ed),ed=ed.replace(/<br>/g,"<br/>"),ed},"cleanUpSvgCode"),putIntoIFrame=__name((Ra="",qa)=>{var td,rd;const Ja=(rd=(td=qa==null?void 0:qa.viewBox)==null?void 0:td.baseVal)!=null&&rd.height?qa.viewBox.baseVal.height+"px":IFRAME_HEIGHT,ed=toBase64 $ 1( ` < body style = "${IFRAME_BODY_STYLE}" > $ { Ra } < / b o d y > ` ) ; r e t u r n ` < i f r a m e s t y l e = " w i d t h : $ { I F R A M E _ W I D T H } ; h e i g h t : $ { J a } ; $ { I F R A M E _ S T Y L E S } " s r c = " d a t a : t e x t / h t m l ; c h a r s e t = U T F - 8 ; b a s e 6 4 , $ { e d } " s a n d b o x = " $ { I F R A M E _ S A N D B O X _ O P T S } " >
2024-08-27 22:31:52 +08:00
$ { IFRAME _NOT _SUPPORTED _MSG }
2024-08-31 11:28:56 +08:00
< / i f r a m e > ` } , " p u t I n t o I F r a m e " ) , a p p e n d D i v S v g G = _ _ n a m e ( ( R a , q a , J a , e d , t d ) = > { c o n s t r d = R a . a p p e n d ( " d i v " ) ; r d . a t t r ( " i d " , J a ) , e d & & r d . a t t r ( " s t y l e " , e d ) ; c o n s t o d = r d . a p p e n d ( " s v g " ) . a t t r ( " i d " , q a ) . a t t r ( " w i d t h " , " 1 0 0 % " ) . a t t r ( " x m l n s " , X M L N S _ S V G _ S T D ) ; r e t u r n t d & & o d . a t t r ( " x m l n s : x l i n k " , t d ) , o d . a p p e n d ( " g " ) , R a } , " a p p e n d D i v S v g G " ) ; f u n c t i o n s a n d b o x e d I f r a m e ( R a , q a ) { r e t u r n R a . a p p e n d ( " i f r a m e " ) . a t t r ( " i d " , q a ) . a t t r ( " s t y l e " , " w i d t h : 1 0 0 % ; h e i g h t : 1 0 0 % ; " ) . a t t r ( " s a n d b o x " , " " ) } _ _ n a m e ( s a n d b o x e d I f r a m e , " s a n d b o x e d I f r a m e " ) ; v a r r e m o v e E x i s t i n g E l e m e n t s = _ _ n a m e ( ( R a , q a , J a , e d ) = > { v a r t d , r d , o d ; ( t d = R a . g e t E l e m e n t B y I d ( q a ) ) = = n u l l | | t d . r e m o v e ( ) , ( r d = R a . g e t E l e m e n t B y I d ( J a ) ) = = n u l l | | r d . r e m o v e ( ) , ( o d = R a . g e t E l e m e n t B y I d ( e d ) ) = = n u l l | | o d . r e m o v e ( ) } , " r e m o v e E x i s t i n g E l e m e n t s " ) , r e n d e r = _ _ n a m e ( a s y n c f u n c t i o n ( R a , q a , J a ) { v a r W d , Q d , Z d , X d , d f , h f ; a d d D i a g r a m s ( ) ; c o n s t e d = p r o c e s s A n d S e t C o n f i g s ( q a ) ; q a = e d . c o d e ; c o n s t t d = g e t C o n f i g $ 1 ( ) ; l o g $ 1 . d e b u g ( t d ) , q a . l e n g t h > ( ( t d = = n u l l ? v o i d 0 : t d . m a x T e x t S i z e ) ? ? M A X _ T E X T L E N G T H ) & & ( q a = M A X _ T E X T L E N G T H _ E X C E E D E D _ M S G ) ; c o n s t r d = " # " + R a , o d = " i " + R a , s d = " # " + o d , l d = " d " + R a , c d = " # " + l d , u d = _ _ n a m e ( ( ) = > { c o n s t E f = d 3 s e l e c t ( y d ? s d : c d ) . n o d e ( ) ; E f & & " r e m o v e " i n E f & & E f . r e m o v e ( ) } , " r e m o v e T e m p E l e m e n t s " ) ; l e t _ d = d 3 s e l e c t ( " b o d y " ) ; c o n s t y d = t d . s e c u r i t y L e v e l = = = S E C U R I T Y _ L V L _ S A N D B O X , g d = t d . s e c u r i t y L e v e l = = = S E C U R I T Y _ L V L _ L O O S E , E d = t d . f o n t F a m i l y ; i f ( J a ! = = v o i d 0 ) { i f ( J a & & ( J a . i n n e r H T M L = " " ) , y d ) { c o n s t g f = s a n d b o x e d I f r a m e ( d 3 s e l e c t ( J a ) , o d ) ; _ d = d 3 s e l e c t ( g f . n o d e s ( ) [ 0 ] . c o n t e n t D o c u m e n t . b o d y ) , _ d . n o d e ( ) . s t y l e . m a r g i n = 0 } e l s e _ d = d 3 s e l e c t ( J a ) ; a p p e n d D i v S v g G ( _ d , R a , l d , ` f o n t - f a m i l y : $ { E d } ` , X M L N S _ X L I N K _ S T D ) } e l s e { i f ( r e m o v e E x i s t i n g E l e m e n t s ( d o c u m e n t , R a , l d , o d ) , y d ) { c o n s t g f = s a n d b o x e d I f r a m e ( d 3 s e l e c t ( " b o d y " ) , o d ) ; _ d = d 3 s e l e c t ( g f . n o d e s ( ) [ 0 ] . c o n t e n t D o c u m e n t . b o d y ) , _ d . n o d e ( ) . s t y l e . m a r g i n = 0 } e l s e _ d = d 3 s e l e c t ( " b o d y " ) ; a p p e n d D i v S v g G ( _ d , R a , l d ) } l e t T d , I d ; t r y { T d = a w a i t D i a g r a m . f r o m T e x t ( q a , { t i t l e : e d . t i t l e } ) } c a t c h ( g f ) { i f ( t d . s u p p r e s s E r r o r R e n d e r i n g ) t h r o w u d ( ) , g f ; T d = a w a i t D i a g r a m . f r o m T e x t ( " e r r o r " ) , I d = g f } c o n s t A d = _ d . s e l e c t ( c d ) . n o d e ( ) , N d = T d . t y p e , k d = A d . f i r s t C h i l d , R d = k d . f i r s t C h i l d , M d = ( Q d = ( W d = T d . r e n d e r e r ) . g e t C l a s s e s ) = = n u l l ? v o i d 0 : Q d . c a l l ( W d , q a , T d ) , B d = c r e a t e U s e r S t y l e s ( t d , N d , M d , r d ) , j d = d o c u m e n t . c r e a t e E l e m e n t ( " s t y l e " ) ; j d . i n n e r H T M L = B d , k d . i n s e r t B e f o r e ( j d , R d ) ; t r y { a w a i t T d . r e n d e r e r . d r a w ( q a , R a , v e r s i o n , T d ) } c a t c h ( g f ) { t h r o w t d . s u p p r e s s E r r o r R e n d e r i n g ? u d ( ) : e r r o r R e n d e r e r _ d e f a u l t . d r a w ( q a , R a , v e r s i o n ) , g f } c o n s t V d = _ d . s e l e c t ( ` $ { c d } s v g ` ) , F d = ( X d = ( Z d = T d . d b ) . g e t A c c T i t l e ) = = n u l l ? v o i d 0 : X d . c a l l ( Z d ) , U d = ( h f = ( d f = T d . d b ) . g e t A c c D e s c r i p t i o n ) = = n u l l ? v o i d 0 : h f . c a l l ( d f ) ; a d d A 1 1 y I n f o ( N d , V d , F d , U d ) , _ d . s e l e c t ( ` [ i d = " $ { R a } " ] ` ) . s e l e c t A l l ( " f o r e i g n o b j e c t > * " ) . a t t r ( " x m l n s " , X M L N S _ X H T M L _ S T D ) ; l e t q d = _ d . s e l e c t ( c d ) . n o d e ( ) . i n n e r H T M L ; i f ( l o g $ 1 . d e b u g ( " c o n f i g . a r r o w M a r k e r A b s o l u t e " , t d . a r r o w M a r k e r A b s o l u t e ) , q d = c l e a n U p S v g C o d e ( q d , y d , e v a l u a t e ( t d . a r r o w M a r k e r A b s o l u t e ) ) , y d ) { c o n s t g f = _ d . s e l e c t ( c d + " s v g " ) . n o d e ( ) ; q d = p u t I n t o I F r a m e ( q d , g f ) } e l s e g d | | ( q d = p u r i f y . s a n i t i z e ( q d , { A D D _ T A G S : D O M P U R I F Y _ T A G S , A D D _ A T T R : D O M P U R I F Y _ A T T R } ) ) ; i f ( a t t a c h F u n c t i o n s ( ) , I d ) t h r o w I d ; r e t u r n u d ( ) , { d i a g r a m T y p e : N d , s v g : q d , b i n d F u n c t i o n s : T d . d b . b i n d F u n c t i o n s } } , " r e n d e r " ) ; f u n c t i o n i n i t i a l i z e ( R a = { } ) { v a r e d ; c o n s t q a = a s s i g n W i t h D e p t h _ d e f a u l t ( { } , R a ) ; q a ! = n u l l & & q a . f o n t F a m i l y & & ! ( ( e d = q a . t h e m e V a r i a b l e s ) ! = n u l l & & e d . f o n t F a m i l y ) & & ( q a . t h e m e V a r i a b l e s | | ( q a . t h e m e V a r i a b l e s = { } ) , q a . t h e m e V a r i a b l e s . f o n t F a m i l y = q a . f o n t F a m i l y ) , s a v e C o n f i g F r o m I n i t i a l i z e ( q a ) , q a ! = n u l l & & q a . t h e m e & & q a . t h e m e i n t h e m e s _ d e f a u l t ? q a . t h e m e V a r i a b l e s = t h e m e s _ d e f a u l t [ q a . t h e m e ] . g e t T h e m e V a r i a b l e s ( q a . t h e m e V a r i a b l e s ) : q a & & ( q a . t h e m e V a r i a b l e s = t h e m e s _ d e f a u l t . d e f a u l t . g e t T h e m e V a r i a b l e s ( q a . t h e m e V a r i a b l e s ) ) ; c o n s t J a = t y p e o f q a = = " o b j e c t " ? s e t S i t e C o n f i g ( q a ) : g e t S i t e C o n f i g ( ) ; s e t L o g L e v e l ( J a . l o g L e v e l ) , a d d D i a g r a m s ( ) } _ _ n a m e ( i n i t i a l i z e , " i n i t i a l i z e " ) ; v a r g e t D i a g r a m F r o m T e x t = _ _ n a m e ( ( R a , q a = { } ) = > { c o n s t { c o d e : J a } = p r e p r o c e s s D i a g r a m ( R a ) ; r e t u r n D i a g r a m . f r o m T e x t ( J a , q a ) } , " g e t D i a g r a m F r o m T e x t " ) ; f u n c t i o n a d d A 1 1 y I n f o ( R a , q a , J a , e d ) { s e t A 1 1 y D i a g r a m I n f o ( q a , R a ) , a d d S V G a 1 1 y T i t l e D e s c r i p t i o n ( q a , J a , e d , q a . a t t r ( " i d " ) ) } _ _ n a m e ( a d d A 1 1 y I n f o , " a d d A 1 1 y I n f o " ) ; v a r m e r m a i d A P I = O b j e c t . f r e e z e ( { r e n d e r , p a r s e : p a r s e $ 4 , g e t D i a g r a m F r o m T e x t , i n i t i a l i z e , g e t C o n f i g : g e t C o n f i g $ 1 , s e t C o n f i g , g e t S i t e C o n f i g , u p d a t e S i t e C o n f i g , r e s e t : _ _ n a m e ( ( ) = > { r e s e t ( ) } , " r e s e t " ) , g l o b a l R e s e t : _ _ n a m e ( ( ) = > { r e s e t ( d e f a u l t C o n f i g ) } , " g l o b a l R e s e t " ) , d e f a u l t C o n f i g } ) ; s e t L o g L e v
2024-08-27 22:31:52 +08:00
* Wait for document loaded before starting the execution
* //*! Bundled license information:
js - yaml / dist / js - yaml . mjs :
( * ! js - yaml 4.1 . 0 https : //github.com/nodeca/js-yaml @license MIT *)
2024-08-31 11:28:56 +08:00
* /marked$1.use(markedKatex({throwOnError:!1,output:"html",nonStandard:!0}));class WxRenderer extends _Renderer$1{constructor(Ja){super();e1(this,"reset",()=>{this.footnotes=[],this.footnoteIndex=0});e1(this,"merge",(Ja,ed)=>({...Ja,...ed}));e1(this,"buildTheme",Ja=>{const ed=this.merge(Ja.base,{"font-family":this.opts.fonts,"font-size":this.opts.size});return{...Object.fromEntries(Object.entries(Ja.inline).map(([rd,od])=>[rd,this.merge(ed,od)])),...Object.fromEntries(Object.entries(Ja.block).map(([rd,od])=>[rd,this.merge(ed,od)]))}});e1(this,"getStyles",(Ja,ed="")=>{const td=this.styleMapping[Ja];return td?`style="${Object.entries(td).map(([od,sd])=>`${od}:${sd}`).join(";")}${ed}"`:""});e1(this,"styledContent",(Ja,ed,td=Ja)=>`<${td} ${this.getStyles(Ja)}>${ed}</ $ { td } > ` );e1(this,"addFootnote",(Ja,ed)=>(this.footnotes.push([++this.footnoteIndex,Ja,ed]),this.footnoteIndex));e1(this,"buildFootnotes",()=>{if(!this.footnotes.length)return"";const Ja=this.footnotes.map(([ed,td,rd])=>rd===td? ` < code style = "font-size: 90%; opacity: 0.6;" > [ $ { ed } ] < /code>: <i style="word-break: break-all">${td}</i > < br / > ` : ` < code style = "font-size: 90%; opacity: 0.6;" > [ $ { ed } ] < /code> ${td}: <i style="word-break: break-all">${rd}</i > < br / > ` ).join( `
` );return this.styledContent("h4","引用链接")+this.styledContent("footnotes",Ja,"p")});e1(this,"buildAddition",()=> `
2024-08-27 22:31:52 +08:00
< style >
. preview - wrapper pre : : before {
position : absolute ;
top : 0 ;
right : 0 ;
color : # ccc ;
text - align : center ;
font - size : 0.8 em ;
padding : 5 px 10 px 0 ;
line - height : 15 px ;
height : 15 px ;
font - weight : 600 ;
}
< / s t y l e >
2024-08-31 11:28:56 +08:00
` );e1(this,"setOptions",Ja=>{this.opts=this.merge(this.opts,Ja),this.styleMapping=this.buildTheme(this.opts.theme)});e1(this,"codeIndex",0);this.opts=Ja,this.footnotes=[],this.footnoteIndex=0,this.styleMapping=this.buildTheme(Ja.theme)}heading({tokens:Ja,depth:ed}){const td=this.parser.parseInline(Ja),rd= ` h$ { ed } ` ;return this.styledContent(rd,td)}paragraph({tokens:Ja}){const ed=this.parser.parseInline(Ja),td=ed.includes("<figure")&&ed.includes("<img"),rd=ed.trim()==="";return td||rd?ed:this.styledContent("p",ed)}blockquote({tokens:Ja}){let ed=this.parser.parse(Ja);return ed=ed.replace(/<p.*?>/g, ` < p $ { this . getStyles ( "blockquote_p" ) } > ` ),this.styledContent("blockquote",ed)}code({text:Ja,lang:ed=""}){if(ed.startsWith("mermaid"))return clearTimeout(this.codeIndex),this.codeIndex=setTimeout(()=>{mermaid_default.run()},0), ` < pre class = "mermaid" > $ { Ja } < /pre>`;const td=ed.split(" ")[0],rd=HighlightJS.getLanguage(td)?td:"plaintext";let od=HighlightJS.highlight(Ja,{language:rd}).value;return od=od.replace(/ \ r \ n / g , "<br/>" ) . replace ( /\n/g , "<br/>" ) . replace ( /(>[^<]+)|(^[^<]+)/g , sd => sd . replace ( /\s/g , " " ) ) , ` <pre class="hljs code__pre" ${ this . getStyles ( "code_pre" ) } ><code class="language- ${ ed } " ${ this . getStyles ( "code" ) } > ${ od } </code></pre> ` } codespan ( { text : Ja } ) { return this . styledContent ( "codespan" , Ja , "code" ) } listitem ( Ja , ed ) { return ` <li ${ this . getStyles ( "listitem" ) } > ${ ed } ${ this . parser . parseInline ( Ja ) } </li> ` } list ( { ordered : Ja , items : ed } ) { const td = [ ] ; for ( let od = 0 ; od < ed . length ; od ++ ) { const { tokens : sd } = ed [ od ] , ld = Ja ? ` ${ od + 1 } . ` : "• " ; for ( const cd of sd ) cd . type === "list" ? td . push ( this . list ( cd ) ) : cd . type !== "space" && td . push ( this . listitem ( [ cd ] , ld ) ) } const rd = Ja ? "ol" : "ul" ; return this . styledContent ( rd , td . join ( "" ) ) } image ( { href : Ja , title : ed , text : td } ) { const rd = ud => ud ? ` <figcaption ${ this . getStyles ( "figcaption" ) } > ${ ud } </figcaption> ` : "" , od = { alt : ( ) => td , title : ( ) => ed , "alt-title" : ( ) => td || ed , "title-alt" : ( ) => ed || td } [ this . opts . legend ] || ( ( ) => "" ) , sd = rd ( od ( ) ) , ld = this . getStyles ( "figure" ) , cd = this . getStyles ( "image" ) ; return ` <figure ${ ld } ><img ${ cd } src=" ${ Ja } " title=" ${ ed } " alt=" ${ td } "/> ${ sd } </figure> ` } link ( { href : Ja , title : ed , text : td } ) { if ( Ja . startsWith ( "https://mp.weixin.qq.com" ) ) return ` <a href=" ${ Ja } " title=" ${ ed || td } " ${ this . getStyles ( "wx_link" ) } > ${ td } </a> ` ; if ( Ja === td ) return td ; if ( this . opts . status ) { const rd = this . addFootnote ( ed || td , Ja ) ; return ` <span ${ this . getStyles ( "link" ) } > ${ td } <sup>[ ${ rd } ]</sup></span> ` } return this . styledContent ( "link" , td , "span" ) } strong ( { text : Ja } ) { return this . styledContent ( "strong" , Ja ) } em ( { text : Ja } ) { return ` <span style="font-style: italic;"> ${ Ja } </span> ` } table ( { header : Ja , rows : ed } ) { const td = Ja . map ( od => this . styledContent ( "td" , od . text ) ) . join ( "" ) , rd = ed . map ( od => { const sd = od . map ( ld => this . styledContent ( "td" , ld . text ) ) . join ( "" ) ; return this . styledContent ( "tr" , sd ) } ) . join ( "" ) ; return `
2024-08-27 22:31:52 +08:00
< section style = "padding:0 8px;" >
< table class = "preview-table" >
2024-08-30 15:19:18 +08:00
< thead $ { this . getStyles ( "thead" ) } > $ { td } < / t h e a d >
< tbody > $ { rd } < / t b o d y >
2024-08-27 22:31:52 +08:00
< / t a b l e >
2024-08-31 15:27:49 +08:00
< / s e c t i o n > ` } t a b l e c e l l ( { t e x t : J a } ) { r e t u r n t h i s . s t y l e d C o n t e n t ( " t d " , J a ) } h r ( J a ) { r e t u r n t h i s . s t y l e d C o n t e n t ( " h r " , " " ) } } c o n s t D E F A U L T _ C O N T E N T = ` # 微 信 M a r k d o w n 编 辑 器 @ d o o c s / m d
2024-08-27 22:31:52 +08:00
2024-08-31 15:27:49 +08:00
# # 项目介绍
2024-08-27 22:31:52 +08:00
2024-08-31 15:27:49 +08:00
Markdown 文档自动即时渲染为微信图文 , 让你不再为微信文章排版而发愁 ! 只要你会基本的 Markdown 语法 , 就能做出一篇样式简洁而又美观大方的微信图文 。
2024-08-27 22:31:52 +08:00
2024-08-31 15:27:49 +08:00
# # 功能特性
2024-08-27 22:31:52 +08:00
2024-08-31 15:27:49 +08:00
- [ x ] 支持自定义 CSS 样式
- [ x ] 支持 Markdown 所有基础语法 、 数学公式 、 Mermaid 图表
- [ x ] 支持浅色 、 深色两种编辑器外观
- [ x ] 支持 < kbd > Alt < / k b d > + < k b d > S h i f t < / k b d > + < k b d > F < / k b d > 快 速 格 式 化 文 档
- [ x ] 支持色盘取色 , 快速替换文章整体色调
- [ x ] 支持多图上传 , 可自定义配置图床
- [ x ] 支持自定义上传逻辑
- [ x ] 支持在编辑框右键弹出功能选项卡
- [ x ] 支持批量转换本地图片为线上图片
2024-08-27 22:31:52 +08:00
2024-08-31 15:27:49 +08:00
! [ demo1 ] ( https : //cdn-doocs.oss-cn-shenzhen.aliyuncs.com/gh/doocs/md/images/demo1.gif)
2024-08-27 22:31:52 +08:00
2024-08-31 15:27:49 +08:00
! [ demo2 ] ( https : //cdn-doocs.oss-cn-shenzhen.aliyuncs.com/gh/doocs/md/images/demo2.gif)
2024-08-27 22:31:52 +08:00
2024-08-31 15:27:49 +08:00
! [ demo3 ] ( https : //cdn-doocs.oss-cn-shenzhen.aliyuncs.com/gh/doocs/md/images/demo3.gif)
2024-08-27 22:31:52 +08:00
2024-08-31 15:27:49 +08:00
! [ demo4 ] ( https : //cdn-doocs.oss-cn-shenzhen.aliyuncs.com/gh/doocs/md/images/demo4.gif)
2024-08-27 22:31:52 +08:00
2024-08-31 15:27:49 +08:00
# # 如何开发和部署
2024-08-27 22:31:52 +08:00
2024-08-31 15:27:49 +08:00
\ ` \` \` sh
# 安装依赖
npm i
2024-08-27 22:31:52 +08:00
2024-08-31 15:27:49 +08:00
# 启动开发模式
npm start
2024-08-27 22:31:52 +08:00
2024-08-31 15:27:49 +08:00
# 部署在 / md 目录
npm run build
# 访问 http : //127.0.0.1:9000/md
2024-08-27 22:31:52 +08:00
2024-08-31 15:27:49 +08:00
# 部署在根目录
npm run build : h5 - netlify
# 访问 http : //127.0.0.1:9000/
\ ` \` \`
2024-08-27 22:31:52 +08:00
2024-08-31 15:27:49 +08:00
# # 快速搭建私有服务
2024-08-27 22:31:52 +08:00
2024-08-31 15:27:49 +08:00
# # # 方式 1. 使用 npm cli
2024-08-27 22:31:52 +08:00
2024-08-31 15:27:49 +08:00
通过我们的 npm cli 你可以轻易搭建属于自己的微信 Markdown 编辑器 。
2024-08-27 22:31:52 +08:00
2024-08-31 15:27:49 +08:00
\ ` \` \` sh
# 安装
npm i - g @ doocs / md - cli
2024-08-27 22:31:52 +08:00
2024-08-31 15:27:49 +08:00
# 启动
md - cli
2024-08-27 22:31:52 +08:00
2024-08-31 15:27:49 +08:00
# 访问
open http : //127.0.0.1:8800/md/
2024-08-27 22:31:52 +08:00
2024-08-31 15:27:49 +08:00
# 启动并指定端口
md - cli port = 8899
2024-08-27 22:31:52 +08:00
2024-08-31 15:27:49 +08:00
# 访问
open http : //127.0.0.1:8899/md/
\ ` \` \`
2024-08-27 22:31:52 +08:00
2024-08-31 15:27:49 +08:00
md - cli 支持以下命令行参数 :
2024-08-27 22:31:52 +08:00
2024-08-31 15:27:49 +08:00
- \ ` port \` 指定端口号,默认 8800, 如果被占用会随机使用一个新端口。
- \ ` spaceId \` dcloud 服务空间配置
- \ ` clientSecret \` dcloud 服务空间配置
2024-08-27 22:31:52 +08:00
2024-08-31 15:27:49 +08:00
# # # 方式 2. 使用 Docker 镜像
2024-08-27 22:31:52 +08:00
2024-08-31 15:27:49 +08:00
如果你是 Docker 用户 , 也可以直接使用一条命令 , 启动完全属于你的 、 私有化运行的实例 。
2024-08-27 22:31:52 +08:00
2024-08-31 15:27:49 +08:00
\ ` \` \` sh
docker run - d - p 8080 : 80 doocs / md : latest
\ ` \` \`
2024-08-27 22:31:52 +08:00
2024-08-31 15:27:49 +08:00
容器运行起来之后 , 打开浏览器 , 访问 http : //localhost:8080 即可。
2024-08-27 22:31:52 +08:00
2024-08-31 15:27:49 +08:00
关于本项目 Docker 镜像的更多详细信息 , 可以关注 https : //github.com/doocs/docker-md
2024-08-27 22:31:52 +08:00
2024-08-31 15:27:49 +08:00
# # # # 推荐阅读
2024-08-27 22:31:52 +08:00
2024-08-31 15:27:49 +08:00
- [ 阿里又一个 20 k + stars 开源项目诞生 , 恭喜 fastjson ! ] ( https : //mp.weixin.qq.com/s/RNKDCK2KoyeuMeEs6GUrow)
- [ 刷掉 90 % 候选人的互联网大厂海量数据面试题 ( 附题解 + 方法总结 ) ] ( https : //mp.weixin.qq.com/s/rjGqxUvrEqJNlo09GrT1Dw)
- [ 好用 ! 期待已久的文本块功能究竟如何在 Java 13 中发挥作用 ? ] ( https : //mp.weixin.qq.com/s/kalGv5T8AZGxTnLHr2wDsA)
- [ 2019 GitHub 开源贡献排行榜新鲜出炉 ! 微软谷歌领头 , 阿里跻身前 12 ! ] ( https : //mp.weixin.qq.com/s/_q812aGD1b9QvZ2WFI0Qgw)
2024-08-27 22:31:52 +08:00
2024-08-31 15:27:49 +08:00
-- -
2024-08-27 22:31:52 +08:00
2024-08-31 15:27:49 +08:00
欢迎关注我的公众号 “ * * Doocs * * ” , 原创技术文章第一时间推送 。
2024-08-27 22:31:52 +08:00
2024-08-31 15:27:49 +08:00
< center >
< img src = "https://cdn-doocs.oss-cn-shenzhen.aliyuncs.com/gh/doocs/md/images/1648303220922-7e14aefa-816e-44c1-8604-ade709ca1c69.png" style = "width: 100px;" >
< / c e n t e r >
2024-08-27 22:31:52 +08:00
2024-08-31 15:27:49 +08:00
-- --
2024-08-27 22:31:52 +08:00
2024-08-31 15:27:49 +08:00
# Markdown 语法教程
2024-08-27 22:31:52 +08:00
2024-08-31 15:27:49 +08:00
Markdown 是一种轻量级标记语言 , 常用于撰写格式简单的文本文件 , 如文档 、 博客 、 和 README 文件 。 它通过简单的语法将普通文本转换为格式化的 HTML 文档 。 下面是 Markdown 的基本语法介绍 。
2024-08-27 22:31:52 +08:00
2024-08-31 15:27:49 +08:00
# # 标题
2024-08-27 22:31:52 +08:00
2024-08-31 15:27:49 +08:00
Markdown 使用 \ ` # \` 来表示标题。标题等级从 1 到 4, 对应 HTML 的 \` <h1> \` 到 \` <h4> \` 标签。
2024-08-27 22:31:52 +08:00
2024-08-31 15:27:49 +08:00
\ ` \` \` markdown
# 一级标题
# # 二级标题
# # # 三级标题
# # # # 四级标题
\ ` \` \`
2024-08-27 22:31:52 +08:00
2024-08-31 15:27:49 +08:00
效果 :
2024-08-27 22:31:52 +08:00
2024-08-31 15:27:49 +08:00
# 一级标题
# # 二级标题
# # # 三级标题
# # # # 四级标题
# # 段落和换行
普通文本直接书写即可形成段落 。 段落之间空一行即可 。 使用两个或多个空格加回车来实现换行 。
\ ` \` \` markdown
这是第一段文字 。
这是第二段文字 。
这是同一段中的换行 。
\ ` \` \`
效果 :
这是第一段文字 。
这是第二段文字 。
这是同一段中的换行 。
# # 字体样式
- * * 加粗 * * : 使用 \ ` ** \` 或 \` __ \` 包裹文本。
- * 斜体 * : 使用 \ ` * \` 或 \` _ \` 包裹文本。
- ~ ~ 删除线 ~ ~ : 使用 \ ` ~~ \` 包裹文本。
\ ` \` \` markdown
* * 加粗 * *
* 斜体 *
~ ~ 删除线 ~ ~
\ ` \` \`
效果 :
* * 加粗 * *
* 斜体 *
~ ~ 删除线 ~ ~
# # 列表
# # # 无序列表
使用 \ ` - \` 、 \` + \` 或 \` * \` 加空格来创建无序列表。
\ ` \` \` markdown
- 项目一
- 项目二
- 子项目
- 项目三
\ ` \` \`
效果 :
- 项目一
- 项目二
- 子项目
- 项目三
# # # 有序列表
使用数字加点来创建有序列表 。
\ ` \` \` markdown
1. 项目一
2. 项目二
1. 子项目
3. 项目三
\ ` \` \`
效果 :
1. 项目一
2. 项目二
1. 子项目
3. 项目三
# # 链接
# # # 行内链接
使用 \ ` [显示文本](链接地址) \` 创建行内链接。
\ ` \` \` markdown
[ 百度 ] ( https : //www.baidu.com)
\ ` \` \`
效果 :
2024-08-27 22:31:52 +08:00
2024-08-31 15:27:49 +08:00
[ 百度 ] ( https : //www.baidu.com)
# # 图片
使用 \ ` ![替代文本](图片地址) \` 插入图片。
\ ` \` \` markdown
! [ Markdown Logo ] ( https : //markdown-here.com/img/icon256.png)
\ ` \` \`
效果 :
! [ Markdown Logo ] ( https : //markdown-here.com/img/icon256.png)
# # 代码
# # # 行内代码
使用反引号 \ ` \` \` \` \` 包裹行内代码。
\ ` \` \` markdown
使用 \ ` print('Hello World') \` 来输出文本。
\ ` \` \`
效果 :
使用 \ ` print('Hello World') \` 来输出文本。
# # # 代码块
使用三个反引号 \ ` \` \` 包裹代码块,可以指定语言来高亮代码。
\ ` \` \` markdown
\ ` \` \` python
def hello ( ) :
print ( "Hello, World!" )
\ ` \` \`
\ ` \` \`
效果 :
\ ` \` \` python
def hello ( ) :
print ( "Hello, World!" )
\ ` \` \`
# # 流程图
\ ` \` \` mermaid
pie
title Key elements in Product X
"Calcium" : 42.96
"Potassium" : 50.05
"Magnesium" : 10.01
"Iron" : 5
\ ` \` \`
\ ` \` \` mermaid
classDiagram
Class01 < | -- AveryLongClass : Cool
Class03 * -- Class04
Class05 o -- Class06
Class07 . . Class08
Class09 -- > C2 : Where am i ?
Class09 -- * C3
Class09 -- | > Class07
Class07 : equals ( )
Class07 : Object [ ] elementData
Class01 : size ( )
Class01 : int chimp
Class01 : int gorilla
Class08 < -- > C2 : Cool label
\ ` \` \`
\ ` \` \` mermaid
pie
title Key elements in Product X
"Calcium" : 42.96
"Potassium" : 50.05
"Magnesium" : 10.01
"Iron" : 5
\ ` \` \`
\ ` \` \` mermaid
pie
title 为什么总是宅在家里 ?
"喜欢宅" : 45
"天气太热" : 70
"穷" : 500
"关你屁事" : 95
\ ` \` \`
# # 表格
使用 \ ` | \` 分隔列,使用 \` - \` 分隔表头和内容。
\ ` \` \` markdown
| 名称 | 年龄 | 城市 |
| -- -- -- -- | -- -- -- | -- -- -- -- |
| 小明 | 20 | 北京 |
| 小红 | 22 | 上海 |
\ ` \` \`
效果 :
| 名称 | 年龄 | 城市 |
| -- -- -- -- | -- -- -- | -- -- -- -- |
| 小明 | 20 | 北京 |
| 小红 | 22 | 上海 |
# # 引用
使用 \ ` > \` 创建引用。
\ ` \` \` markdown
> 这是一段引用文本 。
\ ` \` \`
效果 :
> 这是一段引用文本 。
# # 分割线
使用三个或更多的 \ ` - \` 、 \` * \` 、 \` _ \` 创建分割线。
\ ` \` \` markdown
2024-08-27 22:31:52 +08:00
-- -
2024-08-31 15:27:49 +08:00
\ ` \` \`
2024-08-27 22:31:52 +08:00
2024-08-31 15:27:49 +08:00
效果 :
2024-08-27 22:31:52 +08:00
2024-08-31 15:27:49 +08:00
-- -
# # # 结束语
Markdown 简洁易学 , 适合用于各种简单的文本格式需求 。 如果想要深入了解更多语法 , 推荐查阅 [ Markdown 官方文档 ] ( https : //daringfireball.net/projects/markdown/)。
2024-08-29 18:38:21 +08:00
` ,DEFAULT_CSS_CONTENT= ` / * *
* 按 Alt / Option + Shift + F 可格式化
* 如需使用主题色 , 请使用 var ( -- md - primary - color ) 代替颜色值
* 如 : color : var ( -- md - primary - color ) ;
*
* 召集令 : 如果你有好看的主题样式 , 欢迎分享 , 让更多人能够使用到你的主题 。
* 提交区 : https : //github.com/doocs/md/issues/363
* /
2024-08-27 22:31:52 +08:00
/* 一级标题样式 */
h1 {
}
/* 二级标题样式 */
h2 {
}
/* 三级标题样式 */
h3 {
}
/* 四级标题样式 */
h4 {
}
/* 图片样式 */
image {
}
/* 引用样式 */
blockquote {
}
/* 引用段落样式 */
blockquote _p {
}
/* 段落样式 */
p {
}
/* 分割线样式 */
hr {
}
/* 行内代码样式 */
codespan {
}
/* 粗体样式 */
strong {
}
/* 链接样式 */
link {
}
/* 微信链接样式 */
wx _link {
}
/* 有序列表样式 */
ol {
}
/* 无序列表样式 */
ul {
}
/* 列表项样式 */
li {
}
/* 代码块样式 */
code {
}
2024-08-31 11:28:56 +08:00
` ;var cheerio $ 2={exports:{}},lib $ e={},extendStatics=function(Ra,qa){return extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Ja,ed){Ja.__proto__=ed}||function(Ja,ed){for(var td in ed)Object.prototype.hasOwnProperty.call(ed,td)&&(Ja[td]=ed[td])},extendStatics(Ra,qa)};function __extends $ 4(Ra,qa){if(typeof qa!="function"&&qa!==null)throw new TypeError("Class extends value "+String(qa)+" is not a constructor or null");extendStatics(Ra,qa);function Ja(){this.constructor=Ra}Ra.prototype=qa===null?Object.create(qa):(Ja.prototype=qa.prototype,new Ja)}var __assign $ 7=function(){return __assign $ 7=Object.assign||function(qa){for(var Ja,ed=1,td=arguments.length;ed<td;ed++){Ja=arguments[ed];for(var rd in Ja)Object.prototype.hasOwnProperty.call(Ja,rd)&&(qa[rd]=Ja[rd])}return qa},__assign $ 7.apply(this,arguments)};function __rest $ 1(Ra,qa){var Ja={};for(var ed in Ra)Object.prototype.hasOwnProperty.call(Ra,ed)&&qa.indexOf(ed)<0&&(Ja[ed]=Ra[ed]);if(Ra!=null&&typeof Object.getOwnPropertySymbols=="function")for(var td=0,ed=Object.getOwnPropertySymbols(Ra);td<ed.length;td++)qa.indexOf(ed[td])<0&&Object.prototype.propertyIsEnumerable.call(Ra,ed[td])&&(Ja[ed[td]]=Ra[ed[td]]);return Ja}function __decorate(Ra,qa,Ja,ed){var td=arguments.length,rd=td<3?qa:ed===null?ed=Object.getOwnPropertyDescriptor(qa,Ja):ed,od;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")rd=Reflect.decorate(Ra,qa,Ja,ed);else for(var sd=Ra.length-1;sd>=0;sd--)(od=Ra[sd])&&(rd=(td<3?od(rd):td>3?od(qa,Ja,rd):od(qa,Ja))||rd);return td>3&&rd&&Object.defineProperty(qa,Ja,rd),rd}function __param(Ra,qa){return function(Ja,ed){qa(Ja,ed,Ra)}}function __esDecorate(Ra,qa,Ja,ed,td,rd){function od(Ad){if(Ad!==void 0&&typeof Ad!="function")throw new TypeError("Function expected");return Ad}for(var sd=ed.kind,ld=sd==="getter"?"get":sd==="setter"?"set":"value",cd=!qa&&Ra?ed.static?Ra:Ra.prototype:null,ud=qa||(cd?Object.getOwnPropertyDescriptor(cd,ed.name):{}),_d,yd=!1,gd=Ja.length-1;gd>=0;gd--){var Ed={};for(var Td in ed)Ed[Td]=Td==="access"?{}:ed[Td];for(var Td in ed.access)Ed.access[Td]=ed.access[Td];Ed.addInitializer=function(Ad){if(yd)throw new TypeError("Cannot add initializers after decoration has completed");rd.push(od(Ad||null))};var Id=(0,Ja[gd])(sd==="accessor"?{get:ud.get,set:ud.set}:ud[ld],Ed);if(sd==="accessor"){if(Id===void 0)continue;if(Id===null||typeof Id!="object")throw new TypeError("Object expected");(_d=od(Id.get))&&(ud.get=_d),(_d=od(Id.set))&&(ud.set=_d),(_d=od(Id.init))&&td.unshift(_d)}else(_d=od(Id))&&(sd==="field"?td.unshift(_d):ud[ld]=_d)}cd&&Object.defineProperty(cd,ed.name,ud),yd=!0}function __runInitializers(Ra,qa,Ja){for(var ed=arguments.length>2,td=0;td<qa.length;td++)Ja=ed?qa[td].call(Ra,Ja):qa[td].call(Ra);return ed?Ja:void 0}function __propKey(Ra){return typeof Ra=="symbol"?Ra:"".concat(Ra)}function __setFunctionName(Ra,qa,Ja){return typeof qa=="symbol"&&(qa=qa.description?"[".concat(qa.description,"]"):""),Object.defineProperty(Ra,"name",{configurable:!0,value:Ja?"".concat(Ja," ",qa):qa})}function __metadata(Ra,qa){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(Ra,qa)}function __awaiter $ 8(Ra,qa,Ja,ed){function td(rd){return rd instanceof Ja?rd:new Ja(function(od){od(rd)})}return new(Ja||(Ja=Promise))(function(rd,od){function sd(ud){try{cd(ed.next(ud))}catch(_d){od(_d)}}function ld(ud){try{cd(ed.throw(ud))}catch(_d){od(_d)}}function cd(ud){ud.done?rd(ud.value):td(ud.value).then(sd,ld)}cd((ed=ed.apply(Ra,qa||[])).next())})}function __generator $ 8(Ra,qa){var Ja={label:0,sent:function(){if(rd[0]&1)throw rd[1];return rd[1]},trys:[],ops:[]},ed,td,rd,od=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return od.next=sd(0),od.throw=sd(1),od.return=sd(2),typeof Symbol=="function"&&(od[Symbol.iterator]=function(){return this}),od;function sd(cd){return function(ud){return ld([cd,ud])}}function ld(cd){if(ed)throw new TypeError("Generator is already executing.");for(;od&&(od=0,cd[0]&&(Ja=0)),Ja;)try{if(ed=1,td&&(rd=cd[0]&2?td.return:cd[0]?td.throw||((rd=td.return)
` ,nexist $ 1="∄",nexists $ 1="∄",Nfr $ 1="𝔑 ",nfr $ 1="𝔫 ",ngE $ 1="≧̸",nge $ 1="≱",ngeq $ 1="≱",ngeqq $ 1="≧̸",ngeqslant $ 1="⩾̸",nges $ 1="⩾̸",nGg $ 1="⋙̸",ngsim $ 1="≵",nGt $ 1="≫⃒",ngt $ 1="≯",ngtr $ 1="≯",nGtv $ 1="≫̸",nharr $ 1="↮",nhArr $ 1="⇎",nhpar $ 1="⫲",ni $ 6="∋",nis $ 1="⋼",nisd $ 1="⋺",niv $ 1="∋",NJcy $ 1="Њ",njcy $ 1="њ",nlarr $ 1="↚",nlArr $ 1="⇍",nldr $ 1="‥",nlE $ 1="≦̸",nle $ 1="≰",nleftarrow $ 1="↚",nLeftarrow $ 1="⇍",nleftrightarrow $ 1="↮",nLeftrightarrow $ 1="⇎",nleq $ 1="≰",nleqq $ 1="≦̸",nleqslant $ 1="⩽̸",nles $ 1="⩽̸",nless $ 1="≮",nLl $ 1="⋘̸",nlsim $ 1="≴",nLt $ 1="≪⃒",nlt $ 1="≮",nltri $ 1="⋪",nltrie $ 1="⋬",nLtv $ 1="≪̸",nmid $ 1="∤",NoBreak $ 1=" ",NonBreakingSpace $ 1=" ",nopf $ 1="𝕟 ",Nopf $ 1="ℕ ",Not $ 1="⫬",not $ 3="¬",NotCongruent $ 1="≢",NotCupCap $ 1="≭",NotDoubleVerticalBar $ 1="∦",NotElement $ 1="∉",NotEqual $ 1="≠",NotEqualTilde $ 1="≂̸",NotExists $ 1="∄",NotGreater $ 1="≯",NotGreaterEqual $ 1="≱",NotGreaterFullEqual $ 1="≧̸",NotGreaterGreater $ 1="≫̸",NotGreaterLess $ 1="≹",NotGreaterSlantEqual $ 1="⩾̸",NotGreaterTilde $ 1="≵",NotHumpDownHump $ 1="≎̸",NotHumpEqual $ 1="≏̸",notin $ 1="∉",notindot $ 1="⋵̸",notinE $ 1="⋹̸",notinva $ 1="∉",notinvb $ 1="⋷",notinvc $ 1="⋶",NotLeftTriangleBar $ 1="⧏̸",NotLeftTriangle $ 1="⋪",NotLeftTriangleEqual $ 1="⋬",NotLess $ 1="≮",NotLessEqual $ 1="≰",NotLessGreater $ 1="≸",NotLessLess $ 1="≪̸",NotLessSlantEqual $ 1="⩽̸",NotLessTilde $ 1="≴",NotNestedGreaterGreater $ 1="⪢̸",NotNestedLessLess $ 1="⪡̸",notni $ 1="∌",notniva $ 1="∌",notnivb $ 1="⋾",notnivc $ 1="⋽",NotPrecedes $ 1="⊀",NotPrecedesEqual $ 1="⪯̸",NotPrecedesSlantEqual $ 1="⋠",NotReverseElement $ 1="∌",NotRightTriangleBar $ 1="⧐̸",NotRightTriangle $ 1="⋫",NotRightTriangleEqual $ 1="⋭",NotSquareSubset $ 1="⊏̸",NotSquareSubsetEqual $ 1="⋢",NotSquareSuperset $ 1="⊐̸",NotSquareSupersetEqual $ 1="⋣",NotSubset $ 1="⊂⃒",NotSubsetEqual $ 1="⊈",NotSucceeds $ 1="⊁",NotSucceedsEqual $ 1="⪰̸",NotSucceedsSlantEqual $ 1="⋡",NotSucceedsTilde $ 1="≿̸",NotSuperset $ 1="⊃⃒",NotSupersetEqual $ 1="⊉",NotTilde $ 1="≁",NotTildeEqual $ 1="≄",NotTildeFullEqual $ 1="≇",NotTildeTilde $ 1="≉",NotVerticalBar $ 1="∤",nparallel $ 1="∦",npar $ 1="∦",nparsl $ 1="⫽⃥",npart $ 1="∂̸",npolint $ 1="⨔",npr $ 1="⊀",nprcue $ 1="⋠",nprec $ 1="⊀",npreceq $ 1="⪯̸",npre $ 1="⪯̸",nrarrc $ 1="⤳̸",nrarr $ 1="↛",nrArr $ 1="⇏",nrarrw $ 1="↝̸",nrightarrow $ 1="↛",nRightarrow $ 1="⇏",nrtri $ 1="⋫",nrtrie $ 1="⋭",nsc $ 1="⊁",nsccue $ 1="⋡",nsce $ 1="⪰̸",Nscr $ 1="𝒩 ",nscr $ 1="𝓃 ",nshortmid $ 1="∤",nshortparallel $ 1="∦",nsim $ 1="≁",nsime $ 1="≄",nsimeq $ 1="≄",nsmid $ 1="∤",nspar $ 1="∦",nsqsube $ 1="⋢",nsqsupe $ 1="⋣",nsub $ 1="⊄",nsubE $ 1="⫅̸",nsube $ 1="⊈",nsubset $ 1="⊂⃒",nsubseteq $ 1="⊈",nsubseteqq $ 1="⫅̸",nsucc $ 1="⊁",nsucceq $ 1="⪰̸",nsup $ 1="⊅",nsupE $ 1="⫆̸",nsupe $ 1="⊉",nsupset $ 1="⊃⃒",nsupseteq $ 1="⊉",nsupseteqq $ 1="⫆̸",ntgl $ 1="≹",Ntilde $ 3="Ñ",ntilde $ 3="ñ",ntlg $ 1="≸",ntriangleleft $ 1="⋪",ntrianglelefteq $ 1="⋬",ntriangleright $ 1="⋫",ntrianglerighteq $ 1="⋭",Nu $ 4="Ν ",nu $ 6="ν ",num $ 1="#",numero $ 1="№",numsp $ 1=" ",nvap $ 1="≍⃒",nvdash $ 1="⊬",nvDash $ 1="⊭",nVdash $ 1="⊮",nVDash $ 1="⊯",nvge $ 1="≥⃒",nvgt $ 1=">⃒",nvHarr $ 1="⤄",nvinfin $ 1="⧞",nvlArr $ 1="⤂",nvle $ 1="≤⃒",nvlt $ 1="<⃒",nvltrie $ 1="⊴⃒",nvrArr $ 1="⤃",nvrtrie $ 1="⊵⃒",nvsim $ 1="∼⃒",nwarhk $ 1="⤣",nwarr $ 1="↖",nwArr $ 1="⇖",nwarrow $ 1="↖",nwnear $ 1="⤧",Oacute $ 3="Ó",oacute $ 3="ó",oast $ 1="⊛",Ocirc $ 3="Ô",ocirc $ 3="ô",ocir $ 1="⊚",Ocy $ 1="О ",ocy $ 1="о ",odash $ 1="⊝",Odblac $ 1="Ő",odblac $ 1="ő",odiv $ 1="⨸",odot $ 1="⊙",odsold $ 1="⦼",OElig $ 1="Œ",oelig $ 1="œ",ofcir $ 1="⦿",Ofr $ 1="𝔒 ",ofr $ 1="𝔬 ",ogon $ 1="˛ ",Ograve $ 3="Ò",ograve $ 3="ò",ogt $ 1="⧁",ohbar $ 1="⦵",ohm $ 1="Ω",oint $ 1="∮",olarr $ 1="↺",olcir $ 1="⦾",olcross $ 1="⦻",oline $ 1="‾",olt $ 1="⧀",Omacr $ 1="Ō",omacr $ 1="ō",Omega $ 1="Ω",omega $ 1="ω",Omicron $ 1="Ο ",omicron $ 1="ο ",omid $ 1="⦶",ominus $ 1="⊖",Oopf $ 1="𝕆 ",oopf $ 1="𝕠 ",opar $ 1="⦷",OpenCurlyDoubleQuote $ 1="“",OpenCurlyQuote $ 1="‘ ",operp $ 1="⦹",oplus
` :od(cd.children):(0,qa.isCDATA)(cd)?od(cd.children):(0,qa.isText)(cd)?cd.data:""}stringify $ 2.getText=od;function sd(cd){return Array.isArray(cd)?cd.map(sd).join(""):(0,qa.hasChildren)(cd)&&!(0,qa.isComment)(cd)?sd(cd.children):(0,qa.isText)(cd)?cd.data:""}stringify $ 2.textContent=sd;function ld(cd){return Array.isArray(cd)?cd.map(ld).join(""):(0,qa.hasChildren)(cd)&&(cd.type===ed.ElementType.Tag||(0,qa.isCDATA)(cd))?ld(cd.children):(0,qa.isText)(cd)?cd.data:""}return stringify $ 2.innerText=ld,stringify $ 2}var traversal={},hasRequiredTraversal;function requireTraversal(){if(hasRequiredTraversal)return traversal;hasRequiredTraversal=1,Object.defineProperty(traversal,"__esModule",{value:!0}),traversal.prevElementSibling=traversal.nextElementSibling=traversal.getName=traversal.hasAttrib=traversal.getAttributeValue=traversal.getSiblings=traversal.getParent=traversal.getChildren=void 0;var Ra=requireLib $ a(),qa=[];function Ja(ud){var _d;return(_d=ud.children)!==null&&_d!==void 0?_d:qa}traversal.getChildren=Ja;function ed(ud){return ud.parent||null}traversal.getParent=ed;function td(ud){var _d,yd,gd=ed(ud);if(gd!=null)return Ja(gd);for(var Ed=[ud],Td=ud.prev,Id=ud.next;Td!=null;)Ed.unshift(Td),_d=Td,Td=_d.prev;for(;Id!=null;)Ed.push(Id),yd=Id,Id=yd.next;return Ed}traversal.getSiblings=td;function rd(ud,_d){var yd;return(yd=ud.attribs)===null||yd===void 0?void 0:yd[_d]}traversal.getAttributeValue=rd;function od(ud,_d){return ud.attribs!=null&&Object.prototype.hasOwnProperty.call(ud.attribs,_d)&&ud.attribs[_d]!=null}traversal.hasAttrib=od;function sd(ud){return ud.name}traversal.getName=sd;function ld(ud){for(var _d,yd=ud.next;yd!==null&&!(0,Ra.isTag)(yd);)_d=yd,yd=_d.next;return yd}traversal.nextElementSibling=ld;function cd(ud){for(var _d,yd=ud.prev;yd!==null&&!(0,Ra.isTag)(yd);)_d=yd,yd=_d.prev;return yd}return traversal.prevElementSibling=cd,traversal}var manipulation $ 1={},hasRequiredManipulation $ 1;function requireManipulation $ 1(){if(hasRequiredManipulation $ 1)return manipulation $ 1;hasRequiredManipulation $ 1=1,Object.defineProperty(manipulation $ 1,"__esModule",{value:!0}),manipulation $ 1.prepend=manipulation $ 1.prependChild=manipulation $ 1.append=manipulation $ 1.appendChild=manipulation $ 1.replaceElement=manipulation $ 1.removeElement=void 0;function Ra(od){if(od.prev&&(od.prev.next=od.next),od.next&&(od.next.prev=od.prev),od.parent){var sd=od.parent.children;sd.splice(sd.lastIndexOf(od),1)}}manipulation $ 1.removeElement=Ra;function qa(od,sd){var ld=sd.prev=od.prev;ld&&(ld.next=sd);var cd=sd.next=od.next;cd&&(cd.prev=sd);var ud=sd.parent=od.parent;if(ud){var _d=ud.children;_d[_d.lastIndexOf(od)]=sd}}manipulation $ 1.replaceElement=qa;function Ja(od,sd){if(Ra(sd),sd.next=null,sd.parent=od,od.children.push(sd)>1){var ld=od.children[od.children.length-2];ld.next=sd,sd.prev=ld}else sd.prev=null}manipulation $ 1.appendChild=Ja;function ed(od,sd){Ra(sd);var ld=od.parent,cd=od.next;if(sd.next=cd,sd.prev=od,od.next=sd,sd.parent=ld,cd){if(cd.prev=sd,ld){var ud=ld.children;ud.splice(ud.lastIndexOf(cd),0,sd)}}else ld&&ld.children.push(sd)}manipulation $ 1.append=ed;function td(od,sd){if(Ra(sd),sd.parent=od,sd.prev=null,od.children.unshift(sd)!==1){var ld=od.children[1];ld.prev=sd,sd.next=ld}else sd.next=null}manipulation $ 1.prependChild=td;function rd(od,sd){Ra(sd);var ld=od.parent;if(ld){var cd=ld.children;cd.splice(cd.indexOf(od),0,sd)}od.prev&&(od.prev.next=sd),sd.parent=ld,sd.prev=od.prev,sd.next=od,od.prev=sd}return manipulation $ 1.prepend=rd,manipulation $ 1}var querying={},hasRequiredQuerying;function requireQuerying(){if(hasRequiredQuerying)return querying;hasRequiredQuerying=1,Object.defineProperty(querying,"__esModule",{value:!0}),querying.findAll=querying.existsOne=querying.findOne=querying.findOneChild=querying.find=querying.filter=void 0;var Ra=requireLib $ a();function qa(sd,ld,cd,ud){return cd===void 0&&(cd=!0),ud===void 0&&(ud=1/0),Array.isArray(ld)||(ld=[ld]),Ja(sd,ld,cd,ud)}querying.filter=qa;function Ja(sd,ld,cd,ud){for(var _d=[],yd=0,gd=ld;yd<gd.length;yd++){var Ed=gd[yd];if(sd(Ed)&&(_d.push(Ed),--ud<=0))break;if(cd&&(0,Ra.hasChildren)(Ed)&&
2024-08-27 22:31:52 +08:00
: is ( button , input , select , textarea , optgroup , option ) [ disabled ] ,
optgroup [ disabled ] > option ,
fieldset [ disabled ] : not ( fieldset [ disabled ] legend : first - of - type * )
2024-08-31 11:28:56 +08:00
) ` ,enabled:":not(:disabled)",checked:":is(:is(input[type=radio], input[type=checkbox])[checked], option:selected)",required:":is(input, select, textarea)[required]",optional:":is(input, select, textarea):not([required])",selected:"option:is([selected], select:not([multiple]):not(:has(> option[selected])) > :first-of-type)",checkbox:"[type=checkbox]",file:"[type=file]",password:"[type=password]",radio:"[type=radio]",reset:"[type=reset]",image:"[type=image]",submit:"[type=submit]",parent:":not(:empty)",header:":is(h1, h2, h3, h4, h5, h6)",button:":is(button, input[type=button])",input:":is(input, textarea, select, button)",text:"input:is(:not([type!='']), [type=text])"}),aliases}var subselects={},hasRequiredSubselects;function requireSubselects(){return hasRequiredSubselects||(hasRequiredSubselects=1,function(Ra){var qa=commonjsGlobal&&commonjsGlobal.__spreadArray||function(sd,ld,cd){if(cd||arguments.length===2)for(var ud=0,_d=ld.length,yd;ud<_d;ud++)(yd||!(ud in ld))&&(yd||(yd=Array.prototype.slice.call(ld,0,ud)),yd[ud]=ld[ud]);return sd.concat(yd||Array.prototype.slice.call(ld))};Object.defineProperty(Ra,"__esModule",{value:!0}),Ra.subselects=Ra.getNextSiblings=Ra.ensureIsTag=Ra.PLACEHOLDER_ELEMENT=void 0;var Ja=requireBoolbase(),ed=requireProcedure();Ra.PLACEHOLDER_ELEMENT={};function td(sd,ld){return sd===Ja.falseFunc?Ja.falseFunc:function(cd){return ld.isTag(cd)&&sd(cd)}}Ra.ensureIsTag=td;function rd(sd,ld){var cd=ld.getSiblings(sd);if(cd.length<=1)return[];var ud=cd.indexOf(sd);return ud<0||ud===cd.length-1?[]:cd.slice(ud+1).filter(ld.isTag)}Ra.getNextSiblings=rd;var od=function(sd,ld,cd,ud,_d){var yd={xmlMode:!!cd.xmlMode,adapter:cd.adapter,equals:cd.equals},gd=_d(ld,yd,ud);return function(Ed){return gd(Ed)&&sd(Ed)}};Ra.subselects={is:od,matches:od,where:od,not:function(sd,ld,cd,ud,_d){var yd={xmlMode:!!cd.xmlMode,adapter:cd.adapter,equals:cd.equals},gd=_d(ld,yd,ud);return gd===Ja.falseFunc?sd:gd===Ja.trueFunc?Ja.falseFunc:function(Td){return!gd(Td)&&sd(Td)}},has:function(sd,ld,cd,ud,_d){var yd=cd.adapter,gd={xmlMode:!!cd.xmlMode,adapter:yd,equals:cd.equals},Ed=ld.some(function(kd){return kd.some(ed.isTraversal)})?[Ra.PLACEHOLDER_ELEMENT]:void 0,Td=_d(ld,gd,Ed);if(Td===Ja.falseFunc)return Ja.falseFunc;if(Td===Ja.trueFunc)return function(kd){return yd.getChildren(kd).some(yd.isTag)&&sd(kd)};var Id=td(Td,yd),Ad=Td.shouldTestNextSiblings,Nd=Ad===void 0?!1:Ad;return Ed?function(kd){Ed[0]=kd;var Rd=yd.getChildren(kd),Md=Nd?qa(qa([],Rd,!0),rd(kd,yd),!0):Rd;return sd(kd)&&yd.existsOne(Id,Md)}:function(kd){return sd(kd)&&yd.existsOne(Id,yd.getChildren(kd))}}}}(subselects)),subselects}var hasRequiredPseudoSelectors;function requirePseudoSelectors(){return hasRequiredPseudoSelectors||(hasRequiredPseudoSelectors=1,function(Ra){Object.defineProperty(Ra,"__esModule",{value:!0}),Ra.compilePseudoSelector=Ra.aliases=Ra.pseudos=Ra.filters=void 0;var qa=requireBoolbase(),Ja=require $ $ 0 $ 5,ed=requireFilters();Object.defineProperty(Ra,"filters",{enumerable:!0,get:function(){return ed.filters}});var td=requirePseudos();Object.defineProperty(Ra,"pseudos",{enumerable:!0,get:function(){return td.pseudos}});var rd=requireAliases();Object.defineProperty(Ra,"aliases",{enumerable:!0,get:function(){return rd.aliases}});var od=requireSubselects();function sd(ld,cd,ud,_d,yd){var gd=cd.name,Ed=cd.data;if(Array.isArray(Ed))return od.subselects[gd](ld,Ed,ud,_d,yd);if(gd in rd.aliases){if(Ed!=null)throw new Error("Pseudo ".concat(gd," doesn't have any arguments"));var Td=(0,Ja.parse)(rd.aliases[gd]);return od.subselects.is(ld,Td,ud,_d,yd)}if(gd in ed.filters)return ed.filters[gd](ld,Ed,ud,_d);if(gd in td.pseudos){var Id=td.pseudos[gd];return(0,td.verifyPseudoArgs)(Id,gd,Ed),Id===qa.falseFunc?qa.falseFunc:ld===qa.trueFunc?function(Ad){return Id(Ad,ud,Ed)}:function(Ad){return Id(Ad,ud,Ed)&&ld(Ad)}}throw new Error("unmatched pseudo-class :".concat(gd))}Ra.compilePseudoSelector=sd}(pseudoSelectors)),pseudoSelectors}var hasRequiredGeneral;function requireGeneral(){if(hasRequiredGeneral)return general;hasRequiredGeneral=1,Object.defineProperty(general,"
` ,nexist="∄",nexists="∄",Nfr="𝔑 ",nfr="𝔫 ",ngE="≧̸",nge="≱",ngeq="≱",ngeqq="≧̸",ngeqslant="⩾̸",nges="⩾̸",nGg="⋙̸",ngsim="≵",nGt="≫⃒",ngt="≯",ngtr="≯",nGtv="≫̸",nharr="↮",nhArr="⇎",nhpar="⫲",ni $ 5="∋",nis="⋼",nisd="⋺",niv="∋",NJcy="Њ",njcy="њ",nlarr="↚",nlArr="⇍",nldr="‥",nlE="≦̸",nle="≰",nleftarrow="↚",nLeftarrow="⇍",nleftrightarrow="↮",nLeftrightarrow="⇎",nleq="≰",nleqq="≦̸",nleqslant="⩽̸",nles="⩽̸",nless="≮",nLl="⋘̸",nlsim="≴",nLt="≪⃒",nlt="≮",nltri="⋪",nltrie="⋬",nLtv="≪̸",nmid="∤",NoBreak=" ",NonBreakingSpace=" ",nopf="𝕟 ",Nopf="ℕ ",Not="⫬",not $ 1="¬",NotCongruent="≢",NotCupCap="≭",NotDoubleVerticalBar="∦",NotElement="∉",NotEqual="≠",NotEqualTilde="≂̸",NotExists="∄",NotGreater="≯",NotGreaterEqual="≱",NotGreaterFullEqual="≧̸",NotGreaterGreater="≫̸",NotGreaterLess="≹",NotGreaterSlantEqual="⩾̸",NotGreaterTilde="≵",NotHumpDownHump="≎̸",NotHumpEqual="≏̸",notin="∉",notindot="⋵̸",notinE="⋹̸",notinva="∉",notinvb="⋷",notinvc="⋶",NotLeftTriangleBar="⧏̸",NotLeftTriangle="⋪",NotLeftTriangleEqual="⋬",NotLess="≮",NotLessEqual="≰",NotLessGreater="≸",NotLessLess="≪̸",NotLessSlantEqual="⩽̸",NotLessTilde="≴",NotNestedGreaterGreater="⪢̸",NotNestedLessLess="⪡̸",notni="∌",notniva="∌",notnivb="⋾",notnivc="⋽",NotPrecedes="⊀",NotPrecedesEqual="⪯̸",NotPrecedesSlantEqual="⋠",NotReverseElement="∌",NotRightTriangleBar="⧐̸",NotRightTriangle="⋫",NotRightTriangleEqual="⋭",NotSquareSubset="⊏̸",NotSquareSubsetEqual="⋢",NotSquareSuperset="⊐̸",NotSquareSupersetEqual="⋣",NotSubset="⊂⃒",NotSubsetEqual="⊈",NotSucceeds="⊁",NotSucceedsEqual="⪰̸",NotSucceedsSlantEqual="⋡",NotSucceedsTilde="≿̸",NotSuperset="⊃⃒",NotSupersetEqual="⊉",NotTilde="≁",NotTildeEqual="≄",NotTildeFullEqual="≇",NotTildeTilde="≉",NotVerticalBar="∤",nparallel="∦",npar="∦",nparsl="⫽⃥",npart="∂̸",npolint="⨔",npr="⊀",nprcue="⋠",nprec="⊀",npreceq="⪯̸",npre="⪯̸",nrarrc="⤳̸",nrarr="↛",nrArr="⇏",nrarrw="↝̸",nrightarrow="↛",nRightarrow="⇏",nrtri="⋫",nrtrie="⋭",nsc="⊁",nsccue="⋡",nsce="⪰̸",Nscr="𝒩 ",nscr="𝓃 ",nshortmid="∤",nshortparallel="∦",nsim="≁",nsime="≄",nsimeq="≄",nsmid="∤",nspar="∦",nsqsube="⋢",nsqsupe="⋣",nsub="⊄",nsubE="⫅̸",nsube="⊈",nsubset="⊂⃒",nsubseteq="⊈",nsubseteqq="⫅̸",nsucc="⊁",nsucceq="⪰̸",nsup="⊅",nsupE="⫆̸",nsupe="⊉",nsupset="⊃⃒",nsupseteq="⊉",nsupseteqq="⫆̸",ntgl="≹",Ntilde $ 1="Ñ",ntilde $ 1="ñ",ntlg="≸",ntriangleleft="⋪",ntrianglelefteq="⋬",ntriangleright="⋫",ntrianglerighteq="⋭",Nu $ 3="Ν ",nu $ 5="ν ",num="#",numero="№",numsp=" ",nvap="≍⃒",nvdash="⊬",nvDash="⊭",nVdash="⊮",nVDash="⊯",nvge="≥⃒",nvgt=">⃒",nvHarr="⤄",nvinfin="⧞",nvlArr="⤂",nvle="≤⃒",nvlt="<⃒",nvltrie="⊴⃒",nvrArr="⤃",nvrtrie="⊵⃒",nvsim="∼⃒",nwarhk="⤣",nwarr="↖",nwArr="⇖",nwarrow="↖",nwnear="⤧",Oacute $ 1="Ó",oacute $ 1="ó",oast="⊛",Ocirc $ 1="Ô",ocirc $ 1="ô",ocir="⊚",Ocy="О ",ocy="о ",odash="⊝",Odblac="Ő",odblac="ő",odiv="⨸",odot="⊙",odsold="⦼",OElig="Œ",oelig="œ",ofcir="⦿",Ofr="𝔒 ",ofr="𝔬 ",ogon="˛ ",Ograve $ 1="Ò",ograve $ 1="ò",ogt="⧁",ohbar="⦵",ohm="Ω",oint="∮",olarr="↺",olcir="⦾",olcross="⦻",oline="‾",olt="⧀",Omacr="Ō",omacr="ō",Omega="Ω",omega="ω",Omicron="Ο ",omicron="ο ",omid="⦶",ominus="⊖",Oopf="𝕆 ",oopf="𝕠 ",opar="⦷",OpenCurlyDoubleQuote="“",OpenCurlyQuote="‘ ",operp="⦹",oplus="⊕",orarr="↻",Or $ 4="⩔",or $ 3="∨ ",ord="⩝",order="ℴ ",orderof="ℴ ",ordf $ 1="ª",ordm $ 1="º",origof="⊶",oror="⩖",orslope="⩗",orv="⩛",oS="Ⓢ",Oscr="𝒪 ",oscr="ℴ ",Oslash $ 1="Ø",oslash $ 1="ø",osol="⊘",Otilde $ 1="Õ",otilde $ 1="õ",otimesas="⨶",Otimes="⨷",otimes="⊗",Ouml $ 1="Ö",ouml $ 1="ö",ovbar="⌽",OverBar="‾",OverBrace="⏞",OverBracket="⎴",OverParenthesis="⏜",para $ 1="¶",parallel $ 1="∥",par="∥",parsim="⫳",parsl="
` ||bf===" "||bf===" \f "||bf===" \r "}function od(bf){return bf>="a"&&bf<="z"||bf>="A"&&bf<="Z"}function sd(bf,Sf,Lf){var Pf=bf.toLowerCase();return bf===Pf?function(_f,yf){yf===Pf?_f._state=Sf:(_f._state=Lf,_f._index--)}:function(_f,yf){yf===Pf||yf===bf?_f._state=Sf:(_f._state=Lf,_f._index--)}}function ld(bf,Sf){var Lf=bf.toLowerCase();return function(Pf,_f){_f===Lf||_f===bf?Pf._state=Sf:(Pf._state=3,Pf._index--)}}var cd=sd("C",24,16),ud=sd("D",25,16),_d=sd("A",26,16),yd=sd("T",27,16),gd=sd("A",28,16),Ed=ld("R",35),Td=ld("I",36),Id=ld("P",37),Ad=ld("T",38),Nd=sd("R",40,1),kd=sd("I",41,1),Rd=sd("P",42,1),Md=sd("T",43,1),Bd=ld("Y",45),jd=ld("L",46),Vd=ld("E",47),Fd=sd("Y",49,1),Ud=sd("L",50,1),qd=sd("E",51,1),Wd=ld("I",54),Qd=ld("T",55),Zd=ld("L",56),Xd=ld("E",57),df=sd("I",58,1),hf=sd("T",59,1),gf=sd("L",60,1),Ef=sd("E",61,1),wf=sd("#",63,64), $ f=sd("X",66,65),Tf=function(){function bf(Sf,Lf){var Pf;this._state=1,this.buffer="",this.sectionStart=0,this._index=0,this.bufferOffset=0,this.baseState=1,this.special=1,this.running=!0,this.ended=!1,this.cbs=Lf,this.xmlMode=!!(Sf!=null&&Sf.xmlMode),this.decodeEntities=(Pf=Sf==null?void 0:Sf.decodeEntities)!==null&&Pf!==void 0?Pf:!0}return bf.prototype.reset=function(){this._state=1,this.buffer="",this.sectionStart=0,this._index=0,this.bufferOffset=0,this.baseState=1,this.special=1,this.running=!0,this.ended=!1},bf.prototype.write=function(Sf){this.ended&&this.cbs.onerror(Error(".write() after done!")),this.buffer+=Sf,this.parse()},bf.prototype.end=function(Sf){this.ended&&this.cbs.onerror(Error(".end() after done!")),Sf&&this.write(Sf),this.ended=!0,this.running&&this.finish()},bf.prototype.pause=function(){this.running=!1},bf.prototype.resume=function(){this.running=!0,this._index<this.buffer.length&&this.parse(),this.ended&&this.finish()},bf.prototype.getAbsoluteIndex=function(){return this.bufferOffset+this._index},bf.prototype.stateText=function(Sf){Sf==="<"?(this._index>this.sectionStart&&this.cbs.ontext(this.getSection()),this._state=2,this.sectionStart=this._index):this.decodeEntities&&Sf==="&"&&(this.special===1||this.special===4)&&(this._index>this.sectionStart&&this.cbs.ontext(this.getSection()),this.baseState=1,this._state=62,this.sectionStart=this._index)},bf.prototype.isTagStartChar=function(Sf){return od(Sf)||this.xmlMode&&!rd(Sf)&&Sf!=="/"&&Sf!==">"},bf.prototype.stateBeforeTagName=function(Sf){Sf==="/"?this._state=5:Sf==="<"?(this.cbs.ontext(this.getSection()),this.sectionStart=this._index):Sf===">"||this.special!==1||rd(Sf)?this._state=1:Sf==="!"?(this._state=15,this.sectionStart=this._index+1):Sf==="?"?(this._state=17,this.sectionStart=this._index+1):this.isTagStartChar(Sf)?(this._state=!this.xmlMode&&(Sf==="s"||Sf==="S")?32:!this.xmlMode&&(Sf==="t"||Sf==="T")?52:3,this.sectionStart=this._index):this._state=1},bf.prototype.stateInTagName=function(Sf){(Sf==="/"||Sf===">"||rd(Sf))&&(this.emitToken("onopentagname"),this._state=8,this._index--)},bf.prototype.stateBeforeClosingTagName=function(Sf){rd(Sf)||(Sf===">"?this._state=1:this.special!==1?this.special!==4&&(Sf==="s"||Sf==="S")?this._state=33:this.special===4&&(Sf==="t"||Sf==="T")?this._state=53:(this._state=1,this._index--):this.isTagStartChar(Sf)?(this._state=6,this.sectionStart=this._index):(this._state=20,this.sectionStart=this._index))},bf.prototype.stateInClosingTagName=function(Sf){(Sf===">"||rd(Sf))&&(this.emitToken("onclosetag"),this._state=7,this._index--)},bf.prototype.stateAfterClosingTagName=function(Sf){Sf===">"&&(this._state=1,this.sectionStart=this._index+1)},bf.prototype.stateBeforeAttributeName=function(Sf){Sf===">"?(this.cbs.onopentagend(),this._state=1,this.sectionStart=this._index+1):Sf==="/"?this._state=4:rd(Sf)||(this._state=9,this.sectionStart=this._index)},bf.prototype.stateInSelfClosingTag=function(Sf){Sf===">"?(this.cbs.onselfclosingtag(),this._state=1,this.sectionStart=this._index+1,this.special=1):rd(Sf)||(this._state=8,this._index--)},bf.prototype.stateInAttributeName=function(Sf){(Sf==="="||Sf==="/"||Sf===">"||rd(Sf))&&(this.cbs.onattribname(this.getSection()),this.sectionStart=-1,th
2024-08-30 15:19:18 +08:00
` ||od===" \r "&&this.html[rd+1]!== `
2024-08-31 11:28:56 +08:00
` )&&(ed.isEol=!0),ed.col=rd-ed.lineStartPos+1,ed.offset=ed.droppedBufferSize+rd,td.advance.call(this)},retreat(){td.retreat.call(this),ed.isEol=!1,ed.col=this.pos-ed.lineStartPos+1},dropParsedChunk(){const rd=this.pos;td.dropParsedChunk.call(this);const od=rd-this.pos;ed.lineStartPos-=od,ed.droppedBufferSize+=od,ed.offset=ed.droppedBufferSize+this.pos}}}}return preprocessorMixin $ 1=qa,preprocessorMixin $ 1}var tokenizerMixin $ 1,hasRequiredTokenizerMixin $ 1;function requireTokenizerMixin $ 1(){if(hasRequiredTokenizerMixin $ 1)return tokenizerMixin $ 1;hasRequiredTokenizerMixin $ 1=1;const Ra=requireMixin(),qa=requireTokenizer(),Ja=requirePreprocessorMixin $ 1();class ed extends Ra{constructor(rd){super(rd),this.tokenizer=rd,this.posTracker=Ra.install(rd.preprocessor,Ja),this.currentAttrLocation=null,this.ctLoc=null}_getCurrentLocation(){return{startLine:this.posTracker.line,startCol:this.posTracker.col,startOffset:this.posTracker.offset,endLine:-1,endCol:-1,endOffset:-1}}_attachCurrentAttrLocationInfo(){this.currentAttrLocation.endLine=this.posTracker.line,this.currentAttrLocation.endCol=this.posTracker.col,this.currentAttrLocation.endOffset=this.posTracker.offset;const rd=this.tokenizer.currentToken,od=this.tokenizer.currentAttr;rd.location.attrs||(rd.location.attrs=Object.create(null)),rd.location.attrs[od.name]=this.currentAttrLocation}_getOverriddenMethods(rd,od){const sd={_createStartTagToken(){od._createStartTagToken.call(this),this.currentToken.location=rd.ctLoc},_createEndTagToken(){od._createEndTagToken.call(this),this.currentToken.location=rd.ctLoc},_createCommentToken(){od._createCommentToken.call(this),this.currentToken.location=rd.ctLoc},_createDoctypeToken(ld){od._createDoctypeToken.call(this,ld),this.currentToken.location=rd.ctLoc},_createCharacterToken(ld,cd){od._createCharacterToken.call(this,ld,cd),this.currentCharacterToken.location=rd.ctLoc},_createEOFToken(){od._createEOFToken.call(this),this.currentToken.location=rd._getCurrentLocation()},_createAttr(ld){od._createAttr.call(this,ld),rd.currentAttrLocation=rd._getCurrentLocation()},_leaveAttrName(ld){od._leaveAttrName.call(this,ld),rd._attachCurrentAttrLocationInfo()},_leaveAttrValue(ld){od._leaveAttrValue.call(this,ld),rd._attachCurrentAttrLocationInfo()},_emitCurrentToken(){const ld=this.currentToken.location;this.currentCharacterToken&&(this.currentCharacterToken.location.endLine=ld.startLine,this.currentCharacterToken.location.endCol=ld.startCol,this.currentCharacterToken.location.endOffset=ld.startOffset),this.currentToken.type===qa.EOF_TOKEN?(ld.endLine=ld.startLine,ld.endCol=ld.startCol,ld.endOffset=ld.startOffset):(ld.endLine=rd.posTracker.line,ld.endCol=rd.posTracker.col+1,ld.endOffset=rd.posTracker.offset+1),od._emitCurrentToken.call(this)},_emitCurrentCharacterToken(){const ld=this.currentCharacterToken&&this.currentCharacterToken.location;ld&&ld.endOffset===-1&&(ld.endLine=rd.posTracker.line,ld.endCol=rd.posTracker.col,ld.endOffset=rd.posTracker.offset),od._emitCurrentCharacterToken.call(this)}};return Object.keys(qa.MODE).forEach(ld=>{const cd=qa.MODE[ld];sd[cd]=function(ud){rd.ctLoc=rd._getCurrentLocation(),od[cd].call(this,ud)}}),sd}}return tokenizerMixin $ 1=ed,tokenizerMixin $ 1}var openElementStackMixin,hasRequiredOpenElementStackMixin;function requireOpenElementStackMixin(){if(hasRequiredOpenElementStackMixin)return openElementStackMixin;hasRequiredOpenElementStackMixin=1;const Ra=requireMixin();class qa extends Ra{constructor(ed,td){super(ed),this.onItemPop=td.onItemPop}_getOverriddenMethods(ed,td){return{pop(){ed.onItemPop(this.current),td.pop.call(this)},popAllUpToHtmlElement(){for(let rd=this.stackTop;rd>0;rd--)ed.onItemPop(this.items[rd]);td.popAllUpToHtmlElement.call(this)},remove(rd){ed.onItemPop(this.current),td.remove.call(this,rd)}}}}return openElementStackMixin=qa,openElementStackMixin}var parserMixin $ 1,hasRequiredParserMixin $ 1;function requireParserMixin $ 1(){if(hasRequiredParserMixin $ 1)return parserMixin $ 1;hasRequiredParserMixin $ 1=1;const Ra=requireMixin(),qa=requireTokenizer(),Ja=requireTokenizerMixin $ 1(),ed=requireOpenElementStackMixin(
` )){if(Kf.chars.length===1)continue;Kf.chars=Kf.chars.substr(1)}if(this._processInputToken(Kf),Vf&&this.pendingScript)break}}runParsingLoopForCurrentChunk(Vf,Kf){if(this._runParsingLoop(Kf),Kf&&this.pendingScript){const Um=this.pendingScript;this.pendingScript=null,Kf(Um);return}Vf&&Vf()}_setupTokenizerCDATAMode(){const Vf=this._getAdjustedCurrentElement();this.tokenizer.allowCDATA=Vf&&Vf!==this.document&&this.treeAdapter.getNamespaceURI(Vf)!==Ed.HTML&&!this._isIntegrationPoint(Vf)}_switchToTextParsing(Vf,Kf){this._insertElement(Vf,Ed.HTML),this.tokenizer.state=Kf,this.originalInsertionMode=this.insertionMode,this.insertionMode=qd}switchToPlaintextParsing(){this.insertionMode=qd,this.originalInsertionMode=Ud,this.tokenizer.state=Ra.MODE.PLAINTEXT}_getAdjustedCurrentElement(){return this.openElements.stackTop===0&&this.fragmentContext?this.fragmentContext:this.openElements.current}_findFormInFragmentContext(){let Vf=this.fragmentContext;do{if(this.treeAdapter.getTagName(Vf)===gd.FORM){this.formElement=Vf;break}Vf=this.treeAdapter.getParentNode(Vf)}while(Vf)}_initTokenizerForFragmentParsing(){if(this.treeAdapter.getNamespaceURI(this.fragmentContext)===Ed.HTML){const Vf=this.treeAdapter.getTagName(this.fragmentContext);Vf===gd.TITLE||Vf===gd.TEXTAREA?this.tokenizer.state=Ra.MODE.RCDATA:Vf===gd.STYLE||Vf===gd.XMP||Vf===gd.IFRAME||Vf===gd.NOEMBED||Vf===gd.NOFRAMES||Vf===gd.NOSCRIPT?this.tokenizer.state=Ra.MODE.RAWTEXT:Vf===gd.SCRIPT?this.tokenizer.state=Ra.MODE.SCRIPT_DATA:Vf===gd.PLAINTEXT&&(this.tokenizer.state=Ra.MODE.PLAINTEXT)}}_setDocumentType(Vf){const Kf=Vf.name||"",Um=Vf.publicId||"",f1=Vf.systemId||"";this.treeAdapter.setDocumentType(this.document,Kf,Um,f1)}_attachElementToTree(Vf){if(this._shouldFosterParentOnInsertion())this._fosterParentElement(Vf);else{const Kf=this.openElements.currentTmplContent||this.openElements.current;this.treeAdapter.appendChild(Kf,Vf)}}_appendElement(Vf,Kf){const Um=this.treeAdapter.createElement(Vf.tagName,Kf,Vf.attrs);this._attachElementToTree(Um)}_insertElement(Vf,Kf){const Um=this.treeAdapter.createElement(Vf.tagName,Kf,Vf.attrs);this._attachElementToTree(Um),this.openElements.push(Um)}_insertFakeElement(Vf){const Kf=this.treeAdapter.createElement(Vf,Ed.HTML,[]);this._attachElementToTree(Kf),this.openElements.push(Kf)}_insertTemplate(Vf){const Kf=this.treeAdapter.createElement(Vf.tagName,Ed.HTML,Vf.attrs),Um=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(Kf,Um),this._attachElementToTree(Kf),this.openElements.push(Kf)}_insertFakeRootElement(){const Vf=this.treeAdapter.createElement(gd.HTML,Ed.HTML,[]);this.treeAdapter.appendChild(this.openElements.current,Vf),this.openElements.push(Vf)}_appendCommentNode(Vf,Kf){const Um=this.treeAdapter.createCommentNode(Vf.data);this.treeAdapter.appendChild(Kf,Um)}_insertCharacters(Vf){if(this._shouldFosterParentOnInsertion())this._fosterParentText(Vf.chars);else{const Kf=this.openElements.currentTmplContent||this.openElements.current;this.treeAdapter.insertText(Kf,Vf.chars)}}_adoptNodes(Vf,Kf){for(let Um=this.treeAdapter.getFirstChild(Vf);Um;Um=this.treeAdapter.getFirstChild(Vf))this.treeAdapter.detachNode(Um),this.treeAdapter.appendChild(Kf,Um)}_shouldProcessTokenInForeignContent(Vf){const Kf=this._getAdjustedCurrentElement();if(!Kf||Kf===this.document)return!1;const Um=this.treeAdapter.getNamespaceURI(Kf);if(Um===Ed.HTML||this.treeAdapter.getTagName(Kf)===gd.ANNOTATION_XML&&Um===Ed.MATHML&&Vf.type===Ra.START_TAG_TOKEN&&Vf.tagName===gd.SVG)return!1;const f1=Vf.type===Ra.CHARACTER_TOKEN||Vf.type===Ra.NULL_CHARACTER_TOKEN||Vf.type===Ra.WHITESPACE_CHARACTER_TOKEN;return(Vf.type===Ra.START_TAG_TOKEN&&Vf.tagName!==gd.MGLYPH&&Vf.tagName!==gd.MALIGNMARK||f1)&&this._isIntegrationPoint(Kf,Ed.MATHML)||(Vf.type===Ra.START_TAG_TOKEN||f1)&&this._isIntegrationPoint(Kf,Ed.HTML)?!1:Vf.type!==Ra.EOF_TOKEN}_processToken(Vf){Bf[this.insertionMode][Vf.type](this,Vf)}_processTokenInBodyMode(Vf){Bf[Ud][Vf.type](this,Vf)}_processTokenInForeignContent(Vf){Vf.type===Ra.CHARACTER_TOKEN?cg(this,Vf):Vf.type===Ra.NULL_CHARACTER_TOKEN?c0(this,Vf)
` )}}):{name:_d,value:yd.replace(ed, ` \ r
2024-08-31 15:27:49 +08:00
` )}}).toArray()}return forms.serializeArray=rd,forms}var hasRequiredCheerio;function requireCheerio(){if(hasRequiredCheerio)return cheerio $ 1;hasRequiredCheerio=1,Object.defineProperty(cheerio $ 1,"__esModule",{value:!0}),cheerio $ 1.Cheerio=void 0;var Ra=require $ $ 0 $ 6,qa=Ra.__importDefault(requireParse()),Ja=Ra.__importDefault(requireOptions()),ed=requireUtils $ 2(),td=Ra.__importStar(requireAttributes()),rd=Ra.__importStar(requireTraversing()),od=Ra.__importStar(requireManipulation()),sd=Ra.__importStar(requireCss()),ld=Ra.__importStar(requireForms()),cd=function(){function _d(yd,gd,Ed,Td){var Id=this;if(Td===void 0&&(Td=Ja.default),this.length=0,this.options=Td,!yd)return this;if(Ed&&(typeof Ed=="string"&&(Ed=qa.default(Ed,this.options,!1)),this._root=new this.constructor(Ed,null,null,this.options),this._root._root=this._root),ed.isCheerio(yd))return yd;var Ad=typeof yd=="string"&&ed.isHtml(yd)?qa.default(yd,this.options,!1).children:ud(yd)?[yd]:Array.isArray(yd)?yd:null;if(Ad)return Ad.forEach(function(Rd,Md){Id[Md]=Rd}),this.length=Ad.length,this;var Nd=yd,kd=gd?typeof gd=="string"?ed.isHtml(gd)?this._make(qa.default(gd,this.options,!1)):(Nd=gd+" "+Nd,this._root):ed.isCheerio(gd)?gd:this._make(gd):this._root;return kd?kd.find(Nd):this}return _d.prototype._make=function(yd,gd){var Ed=new this.constructor(yd,gd,this._root,this.options);return Ed.prevObject=this,Ed},_d}();cheerio $ 1.Cheerio=cd,cd.prototype.cheerio="[cheerio object]",cd.prototype.splice=Array.prototype.splice,cd.prototype[Symbol.iterator]=Array.prototype[Symbol.iterator],Object.assign(cd.prototype,td,rd,od,sd,ld);function ud(_d){return!!_d.name||_d.type==="root"||_d.type==="text"||_d.type==="comment"}return cheerio $ 1}var hasRequiredLoad;function requireLoad(){if(hasRequiredLoad)return load;hasRequiredLoad=1,Object.defineProperty(load,"__esModule",{value:!0}),load.load=void 0;var Ra=require $ $ 0 $ 6,qa=Ra.__importStar(requireOptions()),Ja=Ra.__importStar(require_static()),ed=requireCheerio(),td=Ra.__importDefault(requireParse());function rd(od,sd,ld){if(ld===void 0&&(ld=!0),od==null)throw new Error("cheerio.load() expects a string");var cd=Ra.__assign(Ra.__assign({},qa.default),qa.flatten(sd)),ud=td.default(od,cd,ld),_d=function(gd){Ra.__extends(Ed,gd);function Ed(){return gd!==null&&gd.apply(this,arguments)||this}return Ed}(ed.Cheerio);function yd(gd,Ed,Td,Id){return Td===void 0&&(Td=ud),new _d(gd,Ed,Td,Ra.__assign(Ra.__assign({},cd),qa.flatten(Id)))}return Object.assign(yd,Ja,{load:rd,_root:ud,_options:cd,fn:_d.prototype,prototype:_d.prototype}),yd}return load.load=rd,load}(function(Ra){Object.defineProperty(Ra,"__esModule",{value:!0}),Ra.root=Ra.parseHTML=Ra.merge=Ra.contains=void 0;var qa=require $ $ 0 $ 6;qa.__exportStar(requireTypes(),Ra),qa.__exportStar(requireLoad(),Ra);var Ja=requireLoad();Ra.default=Ja.load([]);var ed=qa.__importStar(require_static());Ra.contains=ed.contains,Ra.merge=ed.merge,Ra.parseHTML=ed.parseHTML,Ra.root=ed.root})(lib $ e);var utils $ 4={},lexer={exports:{}},debug={exports:{}};(function(Ra,qa){var Ja={version:"v20.17.0",versions:{node:"20.17.0",acorn:"8.11.3",ada:"2.9.0",ares:"1.32.3",base64:"0.5.2",brotli:"1.1.0",cjs_module_lexer:"1.2.2",cldr:"45.0",icu:"75.1",llhttp:"8.1.2",modules:"115",napi:"9",nghttp2:"1.61.0",nghttp3:"0.7.0",ngtcp2:"1.1.0",openssl:"3.0.13+quic",simdutf:"5.3.0",tz:"2024a",undici:"6.19.2",unicode:"15.1",uv:"1.46.0",uvwasi:"0.0.21",v8:"11.3.244.8-node.23",zlib:"1.3.0.1-motley-209717d"},arch:"x64",platform:"linux",release:{name:"node",lts:"Iron",sourceUrl:"https://nodejs.org/download/release/v20.17.0/node-v20.17.0.tar.gz",headersUrl:"https://nodejs.org/download/release/v20.17.0/node-v20.17.0-headers.tar.gz"},moduleLoadList:["Internal Binding builtins","Internal Binding module_wrap","Internal Binding errors","NativeModule internal/assert","Internal Binding util","NativeModule internal/errors","Internal Binding config","Internal Binding timers","Internal Binding async_wrap","Internal Binding task_queue","Internal Binding symbols","NativeModule internal/async_hooks","Internal Binding constants","Internal Binding types","Interna
2024-08-31 11:28:56 +08:00
` )}})(debug);var debugExports=debug.exports;(function(Ra,qa){debugExports("lex"),Ra.exports=Ja;function Ja(ed){var td="",rd,od=0,sd=-1,ld=0,cd=1,ud="before-selector",_d=[ud],yd={},gd=[],Ed=["media","keyframes",{name:"-webkit-keyframes",type:"keyframes",prefix:"-webkit-"},{name:"-moz-keyframes",type:"keyframes",prefix:"-moz-"},{name:"-ms-keyframes",type:"keyframes",prefix:"-ms-"},{name:"-o-keyframes",type:"keyframes",prefix:"-o-"},"font-face",{name:"import",state:"before-at-value"},{name:"charset",state:"before-at-value"},"supports","viewport",{name:"namespace",state:"before-at-value"},"document",{name:"-moz-document",type:"document",prefix:"-moz-"},"page"];function Td(){return Vd(),ed[sd]}function Id(hf){return hf?_d[_d.length-1-hf]:ud}function Ad(hf){var gf=sd+1;return hf===ed.slice(gf,gf+hf.length)}function Nd(hf){var gf=ed.slice(sd).indexOf(hf);return gf>0?gf:!1}function kd(hf){return hf===Rd(1)}function Rd(hf){return ed[sd+(hf||1)]}function Md(){var hf=_d.pop();return ud=_d[_d.length-1],hf}function Bd(hf){return ud=hf,_d.push(ud),_d.length}function jd(hf){var gf=ud;return _d[_d.length-1]=ud=hf,gf}function Vd(hf){if((hf||1)==1)ed[sd]== `
` ?(cd++,od=1):od++,sd++;else{var gf=ed.slice(sd,sd+hf).split( `
` );gf.length>1&&(cd+=gf.length-1,od=1),od+=gf[gf.length-1].length,sd=sd+hf}}function Fd(){yd.end={line:cd,col:od},gd.push(yd),td="",yd={}}function Ud(hf){yd={type:hf,start:{line:cd,col:od}}}for(;rd=Td();)switch(rd){case" ":switch(Id()){case"selector":case"value":case"value-paren":case"at-group":case"at-value":case"comment":case"double-string":case"single-string":td+=rd;break}break;case `
` :case" ":case" \r ":case" \f ":switch(Id()){case"value":case"value-paren":case"at-group":case"comment":case"single-string":case"double-string":case"selector":td+=rd;break;case"at-value":rd=== `
` &&(yd.value=td.trim(),Fd(),Md());break}break;case":":switch(Id()){case"name":yd.name=td.trim(),td="",jd("before-value");break;case"before-selector":td+=rd,Ud("selector"),Bd("selector");break;case"before-value":jd("value"),td+=rd;break;default:td+=rd;break}break;case";":switch(Id()){case"name":case"before-value":case"value":td.trim().length>0&&(yd.value=td.trim(),Fd()),jd("before-name");break;case"value-paren":td+=rd;break;case"at-value":yd.value=td.trim(),Fd(),Md();break;case"before-name":break;default:td+=rd;break}break;case"{":switch(Id()){case"selector":if(Rd(-1)===" \\ "){td+=rd;break}yd.text=td.trim(),Fd(),jd("before-name"),ld=ld+1;break;case"at-group":switch(yd.name=td.trim(),yd.type){case"font-face":case"viewport":case"page":Bd("before-name");break;default:Bd("before-selector")}Fd(),ld=ld+1;break;case"name":case"at-rule":yd.name=td.trim(),Fd(),Bd("before-name"),ld=ld+1;break;case"comment":case"double-string":case"single-string":td+=rd;break;case"before-value":jd("value"),td+=rd;break}break;case"}":switch(Id()){case"before-name":case"name":case"before-value":case"value":td&&(yd.value=td.trim()),yd.name&&yd.value&&Fd(),Ud("end"),Fd(),Md(),Id()==="at-group"&&(Ud("at-group-end"),Fd(),Md()),ld>0&&(ld=ld-1);break;case"at-group":case"before-selector":case"selector":if(Rd(-1)===" \\ "){td+=rd;break}ld>0&&Id(1)==="at-group"&&(Ud("at-group-end"),Fd()),ld>1&&Md(),ld>0&&(ld=ld-1);break;case"double-string":case"single-string":case"comment":td+=rd;break}break;case'"':case"'":switch(Id()){case"double-string":rd==='"'&&Rd(-1)!==" \\ "&&Md();break;case"single-string":rd==="'"&&Rd(-1)!==" \\ "&&Md();break;case"before-at-value":jd("at-value"),Bd(rd==='"'?"double-string":"single-string");break;case"before-value":jd("value"),Bd(rd==='"'?"double-string":"single-string");break;case"comment":break;default:Rd(-1)!==" \\ "&&Bd(rd==='"'?"double-string":"single-string")}td+=rd;break;case"/":switch(Id()){case"comment":case"double-string":case"single-string":td+=rd;break;case"before-value":case"selector":case"name":case"value":if(kd("*")){var qd=Nd("*/");qd&&Vd(qd+1)}else Id()=="before-value"&&jd("value"),td+=rd;break;default:kd("*")?(Ud("comment"),Bd("comment"),Vd()):td+=rd;break}break;case"*":switch(Id()){case"comment":kd("/")?(yd.text=td,Vd(),Fd(),Md()):td+=rd;break;case"before-selector":td+=rd,Ud("selector"),Bd("selector");break;case"before-value":jd("value"),td+=rd;break;default:td+=rd}break;case"@":switch(Id()){case"comment":case"double-string":case"single-string":td+=rd;break;case"before-value":jd("value"),td+=rd;break;default:for(var Wd=!1,Qd,Zd,Xd=0,df=Ed.length;!Wd&&Xd<df;++Xd)Zd=Ed[Xd],Qd=Zd.name||Zd,Ad(Qd)&&(Wd=!0,Ud(Qd),Bd(Zd.state||"at-group"),Vd(Qd.length),Zd.prefix&&(yd.prefix=Zd.prefix),Zd.type&&(yd.type=Zd.type));Wd||(td+=rd);break}break;case"(":switch(Id()){case"value":Bd("value-paren");break;case"before-value":jd("value");break}td+=rd;break;case")":switch(Id()){case"value-paren":Md();break;case"before-value":jd("value");break}td+=rd;break;default:switch(Id()){case"before-selector":Ud("selector"),Bd("selector");break;case"before-name":Ud("property"),jd("name");break;case"before-value":jd("value");break;case"before-at-value":jd("at-value");break}td+=rd;break}return gd}})(lexer);var lexerExports=lexer.exports,parser $ 2={exports:{}};(function(Ra,qa){debugExports("parse");var Ja=lexerExports;Ra.exports=sd;var ed,td,rd,od;function sd(Md,Bd){Bd||(Bd={}),ed=!!Bd.comments,rd=!!Bd.position,td=0,od=Array.isArray(Md)?Md.slice():Ja(Md);for(var jd,Vd=[],Fd;Fd=cd();)jd=Ad(Fd),jd&&Vd.push(jd);return{type:"stylesheet",stylesheet:{rules:Vd}}}function ld(Md,Bd){Bd||(Bd={});for(var jd,Vd=["type","name","value"],Fd={},Ud=0;Ud<Vd.length;++Ud)jd=Vd[Ud],Md[jd]&&(Fd[jd]=Bd[jd]||Md[jd]);for(Vd=Object.keys(Bd),Ud=0;Ud<Vd.length;++Ud)jd=Vd[Ud],Fd[jd]||(Fd[jd]=Bd[jd]);return rd&&(Fd.position={start:Md.start,end:Md.end}),Fd}function cd(){var Md=od.shift();return Md}function ud(Md){td=td+1;var Bd={};switch(Md.type){case"font-face":case"viewport":Bd.declarations=kd();break;case"page":Bd.prefix=Md.prefix,Bd.declarations=kd();break;default:Bd.prefix=Md.prefix,Bd.rul
` ,sd=" ");var Bd=Ed(Rd.stylesheet.rules,Nd).join( `
` ).trim();return Bd}function cd(Rd){if(Rd){rd+=Rd;return}return ed?"":Array(rd).join(td||"")}function ud(Rd){return"@"+Rd.type+" "+Rd.value+";"+od}function _d(Rd){var Md="",Bd=Rd.prefix||"";Rd.name&&(Md=" "+Rd.name);var jd=Rd.type!=="page";return"@"+Bd+Rd.type+Md+sd+Td(Rd,jd)+od}function yd(Rd){return Ja?"/*"+(Rd.text||"")+"*/"+od:""}function gd(Rd){var Md;return Rd.selectors?Md=Rd.selectors.join(","+od):(Md="@"+Rd.type,Md+=Rd.name?" "+Rd.name:""),cd()+Md+sd+Td(Rd)+od}function Ed(Rd,Md){return Rd.reduce(function(Bd,jd){var Vd=jd.type==="comment"?yd(jd):Md(jd);return Vd&&Bd.push(Vd),Bd},[])}function Td(Rd,Md){var Bd=Rd.declarations,jd=Ad;return Rd.rules&&(Bd=Rd.rules,jd=gd),Bd=Id(Bd,jd),Bd&&(Bd=od+Bd+(Md?"":od)),"{"+Bd+cd()+"}"}function Id(Rd,Md){if(!Rd)return"";cd(1);var Bd=Ed(Rd,Md);return cd(-1),Bd.length?Bd.join(od):""}function Ad(Rd){if(Rd.type==="property")return kd(Rd)}function Nd(Rd){switch(Rd.type){case"rule":return gd(Rd);case"media":case"keyframes":return _d(Rd);case"comment":return yd(Rd);case"import":case"charset":case"namespace":return ud(Rd);case"font-face":case"supports":case"viewport":case"document":case"page":return _d(Rd)}}function kd(Rd){var Md=Rd.name?Rd.name+":"+sd:"";return cd()+Md+Rd.value+";"}})(stringify $ 1);var stringifyExports=stringify $ 1.exports,mensch={lex:lexerExports,parse:parserExports,stringify:stringifyExports},selector={exports:{}},escapeRe=/([-.*+?^ ${ } ()|[ \] \/ \\ ])/g,unescapeRe=/ \\ /g,escape $ 1=function(Ra){return(Ra+"").replace(escapeRe," \\ $ 1")},unescape $ 1=function(Ra){return(Ra+"").replace(unescapeRe,"")},slickRe=RegExp( ` ^ ( ? : \ \ s * ( , ) \ \ s * | \ \ s * ( < combinator > + ) \ \ s * | ( \ \ s + ) | ( < unicode > + | \ \ * ) | \ \ # ( < unicode > + ) | \ \ . ( < unicode > + ) | \ \ [ \ \ s * ( < unicode1 > + ) ( ? : \ \ s * ( [ * ^ $ ! ~ | ] ? = ) ( ? : \ \ s * ( ? : ( [ "']?)(.*?)\\9)))?\\s*\\](?!\\])|(:+)(<unicode>+)(?:\\((?:(?:([" '])([^\\13]*)\\13)|((?:\\([^)]+\\)|[^()]*)+))\\))?)`.replace(/<combinator>/,"["+escape$1(">+~`!@$%^&={}\\;</")+"]").replace(/<unicode>/g,"(?:[\\w\\u00a1-\\uFFFF-]|\\\\[^\\s0-9a-f])").replace(/<unicode1>/g,"(?:[:\\w\\u00a1-\\uFFFF-]|\\\\[^\\s0-9a-f])")),Part=function(qa){this.combinator=qa||" ",this.tag="*"};Part.prototype.toString=function(){if(!this.raw){var Ra="",qa,Ja;if(Ra+=this.tag||"*",this.id&&(Ra+="#"+this.id),this.classes&&(Ra+="."+this.classList.join(".")),this.attributes)for(qa=0;Ja=this.attributes[qa++];)Ra+="["+Ja.name+(Ja.operator?Ja.operator+' "'+Ja.value+'" ' : "" ) + "]" ; if ( this . pseudos ) for ( qa = 0 ; Ja = this . pseudos [ qa ++ ] ; ) Ra += ":" + Ja . name , Ja . value && ( Ra += "(" + Ja . value + ")" ) ; this . raw = Ra } return this . raw } ; var Expression = function ( ) { this . length = 0 } ; Expression . prototype . toString = function ( ) { if ( ! this . raw ) { for ( var Ra = "" , qa = 0 , Ja ; Ja = this [ qa ++ ] ; ) qa !== 1 && ( Ra += " " ) , Ja . combinator !== " " && ( Ra += Ja . combinator + " " ) , Ra += Ja ; this . raw = Ra } return this . raw } ; var replacer = function ( Ra , qa , Ja , ed , td , rd , od , sd , ld , cd , ud , _d , yd , gd , Ed , Td ) { var Id , Ad ; if ( ( qa || ! this . length ) && ( Id = this [ this . length ++ ] = new Expression , qa ) ) return "" ; if ( Id || ( Id = this [ this . length - 1 ] ) , ( Ja || ed || ! Id . length ) && ( Ad = Id [ Id . length ++ ] = new Part ( Ja ) ) , Ad || ( Ad = Id [ Id . length - 1 ] ) , td ) Ad . tag = unescape$1 ( td ) ; else if ( rd ) Ad . id = unescape$1 ( rd ) ; else if ( od ) { var Nd = unescape$1 ( od ) , kd = Ad . classes || ( Ad . classes = { } ) ; if ( ! kd [ Nd ] ) { kd [ Nd ] = escape$1 ( od ) ; var Rd = Ad . classList || ( Ad . classList = [ ] ) ; Rd . push ( Nd ) , Rd . sort ( ) } } else yd ? ( Td = Td || Ed , ( Ad . pseudos || ( Ad . pseudos = [ ] ) ) . push ( { type : _d . length == 1 ? "class" : "element" , name : unescape$1 ( yd ) , escapedName : escape$1 ( yd ) , value : Td ? unescape$1 ( Td ) : null , escapedValue : Td ? escape$1 ( Td ) : null } ) ) : sd && ( ud = ud ? escape$1 ( ud ) : null , ( Ad . attributes || ( Ad . attributes = [ ] ) ) . push ( { operator : ld , name : unescape$1 ( sd ) , escapedName : escape$1 ( sd ) , value : ud ? unescape$1 ( ud ) : null , escapedValue : ud ? escape$1 ( ud ) : null } ) ) ; return "" } , Expressions = function ( qa ) { this . length = 0 ; for ( var Ja = this , ed = qa , td ; qa ; ) { if ( td = qa . replace ( slickRe , function ( ) { return replacer . apply ( Ja , arguments ) } ) , td === qa ) throw new Error ( ed + " is an invalid expression" ) ; qa = td } } ; Expressions . prototype . toString = function ( ) { if ( ! this . raw ) { for ( var Ra = [ ] , qa = 0 , Ja ; Ja = this [ qa ++ ] ; ) Ra . push ( Ja ) ; this . raw = Ra . join ( ", " ) } return this . raw } ; var cache$1 = { } , parse = function ( Ra ) { return Ra == null ? null : ( Ra = ( "" + Ra ) . replace ( /^\s+|\s+$/g , "" ) , cache$1 [ Ra ] || ( cache$1 [ R
2024-08-27 22:31:52 +08:00
* Returns an array of the selectors .
*
* @ license Sizzle CSS Selector Engine - MIT
* @ param { String } selectorText from mensch
* @ api public
2024-08-31 11:28:56 +08:00
* / R a . e x t r a c t = f u n c t i o n ( r d ) { f o r ( v a r o d = 0 , s d = [ ] , l d = " " , c d = 0 , u d = r d . l e n g t h ; c d < u d ; c d + + ) { v a r _ d = r d . c h a r A t ( c d ) ; o d ? ( ( _ d = = = " ] " | | _ d = = = " ) " ) & & o d - - , l d + = _ d ) : _ d = = = " , " ? ( s d . p u s h ( l d ) , l d = " " ) : ( ( _ d = = = " [ " | | _ d = = = " ( " ) & & o d + + , ( l d . l e n g t h | | _ d ! = = " , " & & _ d ! = = `
` &&_d!==" ")&&(ld+=_d))}return ld.length&&sd.push(ld),sd},Ra.parseCSS=function(td){for(var rd=qa.parse(td,{position:!0,comments:!0}),od=typeof rd.stylesheet<"u"&&rd.stylesheet.rules?rd.stylesheet.rules:[],sd=[],ld=0,cd=od.length;ld<cd;ld++)if(od[ld].type=="rule")for(var ud=od[ld],_d=ud.selectors,yd=0,gd=_d.length;yd<gd;yd++)sd.push([_d[yd],ud.declarations]);return sd},Ra.getPreservedText=function(td,rd,od){for(var sd=qa.parse(td,{position:!0,comments:!0}),ld=typeof sd.stylesheet<"u"&&sd.stylesheet.rules?sd.stylesheet.rules:[],cd=[],ud=ld.length-1;ud>=0;ud--)(rd.fontFaces&&ld[ud].type==="font-face"||rd.mediaQueries&&ld[ud].type==="media"||rd.keyFrames&&ld[ud].type==="keyframes"||rd.pseudos&&ld[ud].selectors&&this.matchesPseudo(ld[ud].selectors[0],od))&&cd.unshift(qa.stringify({stylesheet:{rules:[ld[ud]]}},{comments:!1,indentation:" "})),ld[ud].position.start;return cd.length===0?!1: `
2024-08-30 15:19:18 +08:00
` +cd.join( `
2024-08-27 22:31:52 +08:00
` )+ `
2024-08-30 15:19:18 +08:00
` },Ra.normalizeLineEndings=function(td){return td.replace(/ \r \n /g, `
2024-08-27 22:31:52 +08:00
` ).replace(/ \n /g, ` \ r
2024-08-31 11:28:56 +08:00
` )},Ra.matchesPseudo=function(td,rd){return rd.find(function(od){return td.indexOf(od)>-1})},Ra.compareFunc=function(td,rd){for(var od=Math.min(td.length,rd.length),sd=0;sd<od;sd++)if(td[sd]!==rd[sd])return td[sd]>rd[sd]?1:-1;return td.length-rd.length},Ra.compare=function(td,rd){return Ra.compareFunc(td,rd)==1?td:rd},Ra.getDefaultOptions=function(td){var rd=Object.assign({extraCss:"",insertPreservedExtraCss:!0,applyStyleTags:!0,removeStyleTags:!0,preserveMediaQueries:!0,preserveFontFaces:!0,preserveKeyFrames:!0,preservePseudos:!0,applyWidthAttributes:!0,applyHeightAttributes:!0,applyAttributesTableElements:!0,url:""},td);return rd.webResources=rd.webResources||{},rd}}(utils $ 4)),utils $ 4}(function(Ra){var qa=lib $ e;requireUtils $ 1();var Ja=function(td,rd,od){return rd=Object.assign({decodeEntities:!1,_useHtmlParser2:!0},rd),td=od(td),qa.load(td,rd)},ed=function(){var td=[],rd=function(sd){var ld=Ra.exports.codeBlocks;return Object.keys(ld).forEach(function(cd){var ud=new RegExp(ld[cd].start+"([ \\ S \\ s]*?)"+ld[cd].end,"g");sd=sd.replace(ud,function(_d,yd){return td.push(_d),"JUICE_CODE_BLOCK_"+(td.length-1)+"_"})}),sd},od=function(sd){for(var ld=0;ld<td.length;ld++){var cd=new RegExp("JUICE_CODE_BLOCK_"+ld+'_(="")?',"gi");sd=sd.replace(cd,function(){return td[ld]})}return sd};return{encodeEntities:rd,decodeEntities:od}};Ra.exports=function(td,rd,od,sd){var ld=ed(),cd=Ja(td,rd,ld.encodeEntities),ud=[cd];ud.push.apply(ud,sd);var _d=od.apply(void 0,ud)||cd;return rd&&rd.xmlMode?ld.decodeEntities(_d.xml()):ld.decodeEntities(_d.html())},Ra.exports.codeBlocks={EJS:{start:"<%",end:"%>"},HBS:{start:"{{",end:"}}"}}})(cheerio $ 2);var cheerioExports=cheerio $ 2.exports,numbers $ 1={};numbers $ 1.romanize=function(Ra){if(isNaN(Ra))return NaN;for(var qa=String(+Ra).split(""),Ja=["","C","CC","CCC","CD","D","DC","DCC","DCCC","CM","","X","XX","XXX","XL","L","LX","LXX","LXXX","XC","","I","II","III","IV","V","VI","VII","VIII","IX"],ed="",td=3;td--;)ed=(Ja[+qa.pop()+td*10]||"")+ed;return Array(+qa.join("")+1).join("M")+ed};numbers $ 1.alphanumeric=function(Ra){for(var qa="",Ja;Ra>0;)Ja=(Ra-1)%26,qa=String.fromCharCode(65+Ja)+qa,Ra=(Ra-Ja)/26|0;return qa||void 0};var utils $ 3=requireUtils $ 1(),numbers=numbers $ 1,inline=function(qa){qa.ignoredPseudos=["hover","active","focus","visited","link"],qa.widthElements=["TABLE","TD","TH","IMG"],qa.heightElements=["TABLE","TD","TH","IMG"],qa.tableElements=["TABLE","TH","TR","TD","CAPTION","COLGROUP","COL","THEAD","TBODY","TFOOT"],qa.nonVisualElements=["HEAD","TITLE","BASE","LINK","STYLE","META","SCRIPT","NOSCRIPT"],qa.styleToAttribute={"background-color":"bgcolor","background-image":"background","text-align":"align","vertical-align":"valign"},qa.excludedProperties=[],qa.juiceDocument=ud,qa.inlineDocument=Ja;function Ja(gd,Ed,Td){Td=Td||{};var Id=utils $ 3.parseCSS(Ed),Ad=[],Nd="style",kd={};if(Td.styleAttributeName&&(Nd=Td.styleAttributeName),Id.forEach(Bd),Ad.forEach(jd),Td.inlinePseudoElements&&Ad.forEach(Vd),Td.applyWidthAttributes&&Ad.forEach(function(Wd){Fd(Wd,"width")}),Td.applyHeightAttributes&&Ad.forEach(function(Wd){Fd(Wd,"height")}),Td.applyAttributesTableElements&&Ad.forEach(qd),Td.insertPreservedExtraCss&&Td.extraCss){var Rd=utils $ 3.getPreservedText(Td.extraCss,{mediaQueries:Td.preserveMediaQueries,fontFaces:Td.preserveFontFaces,keyFrames:Td.preserveKeyFrames});if(Rd){var Md=null;Td.insertPreservedExtraCss!==!0?Md=gd(Td.insertPreservedExtraCss):(Md=gd("head"),Md.length||(Md=gd("body")),Md.length||(Md=gd.root())),Md.first().append("<style>"+Rd+"</style>")}}function Bd(Wd){var Qd=Wd[0],Zd=Wd[1],Xd=new utils $ 3.Selector(Qd),df=Xd.parsed();if(df){for(var hf=sd(df),gf=0;gf<df.length;++gf){var Ef=df[gf];if(Ef.pseudos)for(var wf=0;wf<Ef.pseudos.length;++wf){var $ f=Ef.pseudos[wf];if(qa.ignoredPseudos.indexOf( $ f.name)>=0)return}}if(hf){var Tf=df[df.length-1],bf=Tf.pseudos;Tf.pseudos=cd(Tf.pseudos),Qd=df.toString(),Tf.pseudos=bf}var Sf;try{Sf=gd(Qd)}catch{return}Sf.each(function(){var Lf=this;if(Lf.name&&qa.nonVisualElements.indexOf(Lf.name.toUpperCase())>=0)return;if(hf){var Pf="pseudo"+hf,_f=Lf[Pf];_f||(_f=Lf[Pf]=gd
` +Ed.extraCss,Ja(gd,Td,Ed),gd}function _d(gd,Ed){var Td=[],Id=gd("style"),Ad,Nd,kd;return Id.each(function(){kd=this;var Rd=!!kd.childNodes;if(Ad=Rd?kd.childNodes:kd.children,Ad.length!==1){Ed.removeStyleTags&&gd(kd).remove();return}if(Nd=Ad[0].data,Ed.applyStyleTags&&gd(kd).attr("data-embed")===void 0&&Td.push(Nd),Ed.removeStyleTags&&gd(kd).attr("data-embed")===void 0){var Md=Rd?kd.childNodes[0].nodeValue:kd.children[0].data,Bd=utils $ 3.getPreservedText(Md,{mediaQueries:Ed.preserveMediaQueries,fontFaces:Ed.preserveFontFaces,keyFrames:Ed.preserveKeyFrames,pseudos:Ed.preservePseudos},qa.ignoredPseudos);Bd?Rd?kd.childNodes[0].nodeValue=Bd:kd.children[0].data=Bd:gd(kd).remove()}gd(kd).removeAttr("data-embed")}),Td}function yd(gd,Ed){var Td=_d(gd,Ed),Id=Td.join( `
` );return Id}return qa},cheerio=cheerioExports,makeJuiceClient=inline,juiceClient=makeJuiceClient(function(Ra,qa){return cheerio(Ra,{xmlMode:qa&&qa.xmlMode},juiceDocument,[qa])}),juiceDocument=function(Ra,qa){return juiceClient.juiceDocument(Ra,qa)};juiceClient.inlineContent=function(Ra,qa,Ja){return cheerio(Ra,{xmlMode:Ja&&Ja.xmlMode},juiceClient.inlineDocument,[qa,Ja])};var client=juiceClient;const juice=getDefaultExportFromCjs(client);var yu $ 1=Object.create,He $ 2=Object.defineProperty,Au $ 1=Object.getOwnPropertyDescriptor,Bu $ 1=Object.getOwnPropertyNames,wu $ 2=Object.getPrototypeOf,xu $ 1=Object.prototype.hasOwnProperty,sr $ 2=Ra=>{throw TypeError(Ra)},_u $ 2=(Ra,qa)=>()=>(Ra&&(qa=Ra(Ra=0)),qa),At $ 5=(Ra,qa)=>()=>(qa||Ra((qa={exports:{}}).exports,qa),qa.exports),We $ 1=(Ra,qa)=>{for(var Ja in qa)He $ 2(Ra,Ja,{get:qa[Ja],enumerable:!0})},ar $ 2=(Ra,qa,Ja,ed)=>{if(qa&&typeof qa=="object"||typeof qa=="function")for(let td of Bu $ 1(qa))!xu $ 1.call(Ra,td)&&td!==Ja&&He $ 2(Ra,td,{get:()=>qa[td],enumerable:!(ed=Au $ 1(qa,td))||ed.enumerable});return Ra},Me $ 5=(Ra,qa,Ja)=>(Ja=Ra!=null?yu $ 1(wu $ 2(Ra)):{},ar $ 2(He $ 2(Ja,"default",{value:Ra,enumerable:!0}),Ra)),vu $ 2=Ra=>ar $ 2(He $ 2({},"__esModule",{value:!0}),Ra),bu $ 1=(Ra,qa,Ja)=>qa.has(Ra)||sr $ 2("Cannot "+Ja),Dr $ 2=(Ra,qa,Ja)=>qa.has(Ra)?sr $ 2("Cannot add the same private member more than once"):qa instanceof WeakSet?qa.add(Ra):qa.set(Ra,Ja),pe $ 1=(Ra,qa,Ja)=>(bu $ 1(Ra,qa,"access private method"),Ja),it $ 2=At $ 5((Ra,qa)=>{var Ja=new Proxy(String,{get:()=>Ja});qa.exports=Ja}),Tn $ 3={};We $ 1(Tn $ 3,{default:()=>_o $ 1,shouldHighlight:()=>xo $ 3});var xo $ 3,_o $ 1,kn $ 1=_u $ 2(()=>{xo $ 3=()=>!1,_o $ 1=String}),Pn $ 4=At $ 5((Ra,qa)=>{var Ja=String,ed=function(){return{isColorSupported:!1,reset:Ja,bold:Ja,dim:Ja,italic:Ja,underline:Ja,inverse:Ja,hidden:Ja,strikethrough:Ja,black:Ja,red:Ja,green:Ja,yellow:Ja,blue:Ja,magenta:Ja,cyan:Ja,white:Ja,gray:Ja,bgBlack:Ja,bgRed:Ja,bgGreen:Ja,bgYellow:Ja,bgBlue:Ja,bgMagenta:Ja,bgCyan:Ja,bgWhite:Ja}};qa.exports=ed(),qa.exports.createColors=ed}), $ n $ 4=At $ 5(Ra=>{Object.defineProperty(Ra,"__esModule",{value:!0}),Ra.codeFrameColumns=gd,Ra.default=Ed;var qa=(kn $ 1(),vu $ 2(Tn $ 3)),Ja=td(Pn $ 4(),!0);function ed(Td){if(typeof WeakMap!="function")return null;var Id=new WeakMap,Ad=new WeakMap;return(ed=function(Nd){return Nd?Ad:Id})(Td)}function td(Td,Id){if(Td===null||typeof Td!="object"&&typeof Td!="function")return{default:Td};var Ad=ed(Id);if(Ad&&Ad.has(Td))return Ad.get(Td);var Nd={__proto__:null},kd=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var Rd in Td)if(Rd!=="default"&&{}.hasOwnProperty.call(Td,Rd)){var Md=kd?Object.getOwnPropertyDescriptor(Td,Rd):null;Md&&(Md.get||Md.set)?Object.defineProperty(Nd,Rd,Md):Nd[Rd]=Td[Rd]}return Nd.default=Td,Ad&&Ad.set(Td,Nd),Nd}var rd=Ja.default,od=(Td,Id)=>Ad=>Td(Id(Ad)),sd;function ld(Td){return Td?(sd!=null||(sd=(0,Ja.createColors)(!0)),sd):rd}var cd=!1;function ud(Td){return{gutter:Td.gray,marker:od(Td.red,Td.bold),message:od(Td.red,Td.bold)}}var _d=/ \r \n |[ \n \r \u 2028 \u 2029]/;function yd(Td,Id,Ad){let Nd=Object.assign({column:0,line:-1},Td.start),kd=Object.assign({},Nd,Td.end),{linesAbove:Rd=2,linesBelow:Md=3}=Ad||{},Bd=Nd.line,jd=Nd.column,Vd=kd.line,Fd=kd.column,Ud=Math.max(Bd-(Rd+1),0),qd=Math.min(Id.length,Vd+Md);Bd===-1&&(Ud=0),Vd===-1&&(qd=Id.length);let Wd=Vd-Bd,Qd={};if(Wd)for(let Zd=0;Zd<=Wd;Zd++){let Xd=Zd+Bd;if(!jd)Qd[Xd]=!0;else if(Zd===0){let df=Id[Xd-1].length;Qd[Xd]=[jd,df-jd+1]}else if(Zd===Wd)Qd[Xd]=[0,Fd];else{let df=Id[Xd-Zd].length;Qd[Xd]=[0,df]}}else jd===Fd?jd?Qd[Bd]=[jd,0]:Qd[Bd]=!0:Qd[Bd]=[jd,Fd-jd];return{start:Ud,end:qd,markerLines:Qd}}function gd(Td,Id,Ad={}){let Nd=(Ad.highlightCode||Ad.forceColor)&&(0,qa.shouldHighlight)(Ad),kd=ld(Ad.forceColor),Rd=ud(kd),Md=(Qd,Zd)=>Nd?Qd(Zd):Zd,Bd=Td.split(_d),{start:jd,end:Vd,markerLines:Fd}=yd(Id,Bd,Ad),Ud=Id.start&&typeof Id.start.column=="number",qd=String(Vd).length,Wd=(Nd?(0,qa.default)(Td,Ad):Td).split(_d,Vd).slice(jd,Vd).map((Qd,Zd)=>{let Xd=jd+1+Zd,df= ` $ { ` ${ Xd } ` . slice ( - qd ) } | ` ,hf=Fd[Xd],gf=!Fd[Xd+1];if(hf){let Ef="";if(Array.isArray(hf)){let wf=Qd.slice(0,Math.max(hf[0]-1,0)).rep
` ,Md(Rd.gutter,df.replace(/ \d /g," "))," ",wf,Md(Rd.marker,"^").repeat( $ f)].join(""),gf&&Ad.message&&(Ef+=" "+Md(Rd.message,Ad.message))}return[Md(Rd.marker,">"),Md(Rd.gutter,df),Qd.length>0? ` $ { Qd } ` :"",Ef].join("")}else return ` $ { Md ( Rd . gutter , df ) } $ { Qd . length > 0 ? ` ${ Qd } ` : "" } ` }).join( `
` );return Ad.message&&!Ud&&(Wd= ` $ { " " . repeat ( qd + 1 ) } $ { Ad . message }
$ { Wd } ` ),Nd?kd.reset(Wd):Wd}function Ed(Td,Id,Ad,Nd={}){if(!cd){cd=!0;let kd="Passing lineNumber and colNumber is deprecated to @babel/code-frame. Please use ` codeFrameColumns ` .";{let Rd=new Error(kd);Rd.name="DeprecationWarning",console.warn(new Error(kd))}}return Ad=Math.max(Ad,0),gd(Td,{start:{column:Ad,line:Id}},Nd)}}),ir $ 3={};We $ 1(ir $ 3,{__debug:()=>di $ 3,check:()=>fi $ 3,doc:()=>nr $ 2,format:()=>gu $ 1,formatWithCursor:()=>Cu $ 2,getSupportInfo:()=>pi $ 4,util:()=>or $ 2,version:()=>fu $ 1});var Ou $ 2=(Ra,qa,Ja,ed)=>{if(!(Ra&&qa==null))return qa.replaceAll?qa.replaceAll(Ja,ed):Ja.global?qa.replace(Ja,ed):qa.split(Ja).join(ed)},ne $ 3=Ou $ 2;function Z $ 1(){}Z $ 1.prototype={diff:function(Ra,qa){var Ja,ed=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},td=ed.callback;typeof ed=="function"&&(td=ed,ed={}),this.options=ed;var rd=this;function od(kd){return td?(setTimeout(function(){td(void 0,kd)},0),!0):kd}Ra=this.castInput(Ra),qa=this.castInput(qa),Ra=this.removeEmpty(this.tokenize(Ra)),qa=this.removeEmpty(this.tokenize(qa));var sd=qa.length,ld=Ra.length,cd=1,ud=sd+ld;ed.maxEditLength&&(ud=Math.min(ud,ed.maxEditLength));var _d=(Ja=ed.timeout)!==null&&Ja!==void 0?Ja:1/0,yd=Date.now()+_d,gd=[{oldPos:-1,lastComponent:void 0}],Ed=this.extractCommon(gd[0],qa,Ra,0);if(gd[0].oldPos+1>=ld&&Ed+1>=sd)return od([{value:this.join(qa),count:qa.length}]);var Td=-1/0,Id=1/0;function Ad(){for(var kd=Math.max(Td,-cd);kd<=Math.min(Id,cd);kd+=2){var Rd=void 0,Md=gd[kd-1],Bd=gd[kd+1];Md&&(gd[kd-1]=void 0);var jd=!1;if(Bd){var Vd=Bd.oldPos-kd;jd=Bd&&0<=Vd&&Vd<sd}var Fd=Md&&Md.oldPos+1<ld;if(!jd&&!Fd){gd[kd]=void 0;continue}if(!Fd||jd&&Md.oldPos+1<Bd.oldPos?Rd=rd.addToPath(Bd,!0,void 0,0):Rd=rd.addToPath(Md,void 0,!0,1),Ed=rd.extractCommon(Rd,qa,Ra,kd),Rd.oldPos+1>=ld&&Ed+1>=sd)return od(Su $ 1(rd,Rd.lastComponent,qa,Ra,rd.useLongestToken));gd[kd]=Rd,Rd.oldPos+1>=ld&&(Id=Math.min(Id,kd-1)),Ed+1>=sd&&(Td=Math.max(Td,kd+1))}cd++}if(td)(function kd(){setTimeout(function(){if(cd>ud||Date.now()>yd)return td();Ad()||kd()},0)})();else for(;cd<=ud&&Date.now()<=yd;){var Nd=Ad();if(Nd)return Nd}},addToPath:function(Ra,qa,Ja,ed){var td=Ra.lastComponent;return td&&td.added===qa&&td.removed===Ja?{oldPos:Ra.oldPos+ed,lastComponent:{count:td.count+1,added:qa,removed:Ja,previousComponent:td.previousComponent}}:{oldPos:Ra.oldPos+ed,lastComponent:{count:1,added:qa,removed:Ja,previousComponent:td}}},extractCommon:function(Ra,qa,Ja,ed){for(var td=qa.length,rd=Ja.length,od=Ra.oldPos,sd=od-ed,ld=0;sd+1<td&&od+1<rd&&this.equals(qa[sd+1],Ja[od+1]);)sd++,od++,ld++;return ld&&(Ra.lastComponent={count:ld,previousComponent:Ra.lastComponent}),Ra.oldPos=od,sd},equals:function(Ra,qa){return this.options.comparator?this.options.comparator(Ra,qa):Ra===qa||this.options.ignoreCase&&Ra.toLowerCase()===qa.toLowerCase()},removeEmpty:function(Ra){for(var qa=[],Ja=0;Ja<Ra.length;Ja++)Ra[Ja]&&qa.push(Ra[Ja]);return qa},castInput:function(Ra){return Ra},tokenize:function(Ra){return Ra.split("")},join:function(Ra){return Ra.join("")}};function Su $ 1(Ra,qa,Ja,ed,td){for(var rd=[],od;qa;)rd.push(qa),od=qa.previousComponent,delete qa.previousComponent,qa=od;rd.reverse();for(var sd=0,ld=rd.length,cd=0,ud=0;sd<ld;sd++){var _d=rd[sd];if(_d.removed){if(_d.value=Ra.join(ed.slice(ud,ud+_d.count)),ud+=_d.count,sd&&rd[sd-1].added){var yd=rd[sd-1];rd[sd-1]=rd[sd],rd[sd]=yd}}else{if(!_d.added&&td){var gd=Ja.slice(cd,cd+_d.count);gd=gd.map(function(Td,Id){var Ad=ed[ud+Id];return Ad.length>Td.length?Ad:Td}),_d.value=Ra.join(gd)}else _d.value=Ra.join(Ja.slice(cd,cd+_d.count));cd+=_d.count,_d.added||(ud+=_d.count)}}var Ed=rd[ld-1];return ld>1&&typeof Ed.value=="string"&&(Ed.added||Ed.removed)&&Ra.equals("",Ed.value)&&(rd[ld-2].value+=Ed.value,rd.pop()),rd}var lr $ 1=/^[A-Za-z \x C0- \u 02C6 \u 02C8- \u 02D7 \u 02DE- \u 02FF \u 1E00- \u 1EFF]+ $ /,cr $ 2=/ \S /,fr $ 1=new Z $ 1;fr $ 1.equals=function(Ra,qa){return this.options.ignoreCase&&(Ra=Ra.toLowerCase(),qa=qa.toLowerCase()),Ra===qa||this.options.ignoreWhitespace&&!cr $ 2.test(Ra)&&!cr $ 2.test(qa)};fr $ 1.tokenize=function(Ra){for(var qa=Ra.split(/([^ \S \r \n ]+|[()[ \] {}'" \r \n ]| \b )/),Ja=0;Ja<qa.le
2024-08-30 15:19:18 +08:00
` ));var qa=[],Ja=Ra.split(/( \n | \r \n )/);Ja[Ja.length-1]||Ja.pop();for(var ed=0;ed<Ja.length;ed++){var td=Ja[ed];ed%2&&!this.options.newlineIsToken?qa[qa.length-1]+=td:(this.options.ignoreWhitespace&&(td=td.trim()),qa.push(td))}return qa};var Nu $ 2=new Z $ 1;Nu $ 2.tokenize=function(Ra){return Ra.split(/( \S .+?[.!?])(?= \s +| $ )/)};var Tu $ 2=new Z $ 1;Tu $ 2.tokenize=function(Ra){return Ra.split(/([{}:;,]| \s +)/)};function $ e $ 3(Ra){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"? $ e $ 3=function(qa){return typeof qa}: $ e $ 3=function(qa){return qa&&typeof Symbol=="function"&&qa.constructor===Symbol&&qa!==Symbol.prototype?"symbol":typeof qa}, $ e $ 3(Ra)}var ku $ 1=Object.prototype.toString,Ae $ 2=new Z $ 1;Ae $ 2.useLongestToken=!0;Ae $ 2.tokenize=pr $ 2.tokenize;Ae $ 2.castInput=function(Ra){var qa=this.options,Ja=qa.undefinedReplacement,ed=qa.stringifyReplacer,td=ed===void 0?function(rd,od){return typeof od>"u"?Ja:od}:ed;return typeof Ra=="string"?Ra:JSON.stringify(Bt $ 4(Ra,null,null,td),td," ")};Ae $ 2.equals=function(Ra,qa){return Z $ 1.prototype.equals.call(Ae $ 2,Ra.replace(/,([ \r \n ])/g," $ 1"),qa.replace(/,([ \r \n ])/g," $ 1"))};function Bt $ 4(Ra,qa,Ja,ed,td){qa=qa||[],Ja=Ja||[],ed&&(Ra=ed(td,Ra));var rd;for(rd=0;rd<qa.length;rd+=1)if(qa[rd]===Ra)return Ja[rd];var od;if(ku $ 1.call(Ra)==="[object Array]"){for(qa.push(Ra),od=new Array(Ra.length),Ja.push(od),rd=0;rd<Ra.length;rd+=1)od[rd]=Bt $ 4(Ra[rd],qa,Ja,ed,td);return qa.pop(),Ja.pop(),od}if(Ra&&Ra.toJSON&&(Ra=Ra.toJSON()), $ e $ 3(Ra)==="object"&&Ra!==null){qa.push(Ra),od={},Ja.push(od);var sd=[],ld;for(ld in Ra)Ra.hasOwnProperty(ld)&&sd.push(ld);for(sd.sort(),rd=0;rd<sd.length;rd+=1)ld=sd[rd],od[ld]=Bt $ 4(Ra[ld],qa,Ja,ed,ld);qa.pop(),Ja.pop()}else od=Ra;return od}var Ve $ 3=new Z $ 1;Ve $ 3.tokenize=function(Ra){return Ra.slice()};Ve $ 3.join=Ve $ 3.removeEmpty=function(Ra){return Ra};function dr $ 2(Ra,qa,Ja){return Ve $ 3.diff(Ra,qa,Ja)}function Fr $ 2(Ra){let qa=Ra.indexOf(" \r ");return qa>=0?Ra.charAt(qa+1)=== `
` ?"crlf":"cr":"lf"}function Be $ 4(Ra){switch(Ra){case"cr":return" \r ";case"crlf":return ` \ r
2024-08-27 22:31:52 +08:00
` ;default:return `
2024-08-30 15:19:18 +08:00
` }}function wt $ 2(Ra,qa){let Ja;switch(qa){case `
` :Ja=/ \n /gu;break;case" \r ":Ja=/ \r /gu;break;case ` \ r
` :Ja=/ \r \n /gu;break;default:throw new Error( ` Unexpected "eol" $ { JSON . stringify ( qa ) } . ` )}let ed=Ra.match(Ja);return ed?ed.length:0}function mr $ 2(Ra){return ne $ 3(!1,Ra,/ \r \n ?/gu, `
` )}var U $ 2="string",W $ 2="array",z $ 2="cursor",L $ 3="indent",P $ 2="align",I="trim",x $ 1="group",S="fill",_ $ 2="if-break",R $ 2="indent-if-break",Y $ 2="line-suffix",j="line-suffix-boundary",B $ 1="line",N $ 3="label",b $ 1="break-parent",Ue $ 4=new Set([z $ 2,L $ 3,P $ 2,I,x $ 1,S,_ $ 2,R $ 2,Y $ 2,j,B $ 1,N $ 3,b $ 1]);function Lu $ 1(Ra){if(typeof Ra=="string")return U $ 2;if(Array.isArray(Ra))return W $ 2;if(!Ra)return;let{type:qa}=Ra;if(Ue $ 4.has(qa))return qa}var G $ 3=Lu $ 1,Pu $ 1=Ra=>new Intl.ListFormat("en-US",{type:"disjunction"}).format(Ra);function Iu $ 2(Ra){let qa=Ra===null?"null":typeof Ra;if(qa!=="string"&&qa!=="object")return ` Unexpected doc '${qa}' ,
Expected it to be 'string' or 'object' . ` ;if(G $ 3(Ra))throw new Error("doc is valid.");let Ja=Object.prototype.toString.call(Ra);if(Ja!=="[object Object]")return ` Unexpected doc '${Ja}' . ` ;let ed=Pu $ 1([...Ue $ 4].map(td=> ` '${td}' ` ));return ` Unexpected doc . type '${Ra.type}' .
2024-08-31 11:28:56 +08:00
Expected it to be $ { ed } . ` }var xt=class extends Error{constructor(qa){super(Iu $ 2(qa));e1(this,"name","InvalidDocError");this.doc=qa}},Q $ 3=xt,Er $ 2={};function Ru $ 2(Ra,qa,Ja,ed){let td=[Ra];for(;td.length>0;){let rd=td.pop();if(rd===Er $ 2){Ja(td.pop());continue}Ja&&td.push(rd,Er $ 2);let od=G $ 3(rd);if(!od)throw new Q $ 3(rd);if((qa==null?void 0:qa(rd))!==!1)switch(od){case W $ 2:case S:{let sd=od===W $ 2?rd:rd.parts;for(let ld=sd.length,cd=ld-1;cd>=0;--cd)td.push(sd[cd]);break}case _ $ 2:td.push(rd.flatContents,rd.breakContents);break;case x $ 1:if(ed&&rd.expandedStates)for(let sd=rd.expandedStates.length,ld=sd-1;ld>=0;--ld)td.push(rd.expandedStates[ld]);else td.push(rd.contents);break;case P $ 2:case L $ 3:case R $ 2:case N $ 3:case Y $ 2:td.push(rd.contents);break;case U $ 2:case z $ 2:case I:case j:case B $ 1:case b $ 1:break;default:throw new Q $ 3(rd)}}}var we $ 2=Ru $ 2,hr $ 1=()=>{},ze $ 3=hr $ 1;function De $ 2(Ra){return{type:L $ 3,contents:Ra}}function ae $ 2(Ra,qa){return{type:P $ 2,contents:qa,n:Ra}}function _t $ 2(Ra,qa={}){return ze $ 3(qa.expandedStates),{type:x $ 1,id:qa.id,contents:Ra,break:!!qa.shouldBreak,expandedStates:qa.expandedStates}}function Cr $ 1(Ra){return ae $ 2(Number.NEGATIVE_INFINITY,Ra)}function gr $ 2(Ra){return ae $ 2({type:"root"},Ra)}function yr $ 2(Ra){return ae $ 2(-1,Ra)}function Ar $ 2(Ra,qa){return _t $ 2(Ra[0],{...qa,expandedStates:Ra})}function Ge $ 2(Ra){return{type:S,parts:Ra}}function Br $ 4(Ra,qa="",Ja={}){return{type:_ $ 2,breakContents:Ra,flatContents:qa,groupId:Ja.groupId}}function wr $ 3(Ra,qa){return{type:R $ 2,contents:Ra,groupId:qa.groupId,negate:qa.negate}}function xe $ 3(Ra){return{type:Y $ 2,contents:Ra}}var xr $ 3={type:j},de $ 2={type:b $ 1},_r $ 3={type:I},_e $ 4={type:B $ 1,hard:!0},vt $ 3={type:B $ 1,hard:!0,literal:!0},Ke $ 2={type:B $ 1},vr $ 2={type:B $ 1,soft:!0},q $ 2=[_e $ 4,de $ 2],qe $ 3=[vt $ 3,de $ 2],ve $ 3={type:z $ 2};function be $ 5(Ra,qa){let Ja=[];for(let ed=0;ed<qa.length;ed++)ed!==0&&Ja.push(Ra),Ja.push(qa[ed]);return Ja}function Je $ 2(Ra,qa,Ja){let ed=Ra;if(qa>0){for(let td=0;td<Math.floor(qa/Ja);++td)ed=De $ 2(ed);ed=ae $ 2(qa%Ja,ed),ed=ae $ 2(Number.NEGATIVE_INFINITY,ed)}return ed}function br $ 2(Ra,qa){return Ra?{type:N $ 3,label:Ra,contents:qa}:qa}function ee $ 2(Ra){var qa;if(!Ra)return"";if(Array.isArray(Ra)){let Ja=[];for(let ed of Ra)if(Array.isArray(ed))Ja.push(...ee $ 2(ed));else{let td=ee $ 2(ed);td!==""&&Ja.push(td)}return Ja}return Ra.type===_ $ 2?{...Ra,breakContents:ee $ 2(Ra.breakContents),flatContents:ee $ 2(Ra.flatContents)}:Ra.type===x $ 1?{...Ra,contents:ee $ 2(Ra.contents),expandedStates:(qa=Ra.expandedStates)==null?void 0:qa.map(ee $ 2)}:Ra.type===S?{type:"fill",parts:Ra.parts.map(ee $ 2)}:Ra.contents?{...Ra,contents:ee $ 2(Ra.contents)}:Ra}function Or $ 3(Ra){let qa=Object.create(null),Ja=new Set;return ed(ee $ 2(Ra));function ed(rd,od,sd){var ld,cd;if(typeof rd=="string")return JSON.stringify(rd);if(Array.isArray(rd)){let ud=rd.map(ed).filter(Boolean);return ud.length===1?ud[0]: ` [ $ { ud . join ( ", " ) } ] ` }if(rd.type===B $ 1){let ud=((ld=sd==null?void 0:sd[od+1])==null?void 0:ld.type)===b $ 1;return rd.literal?ud?"literalline":"literallineWithoutBreakParent":rd.hard?ud?"hardline":"hardlineWithoutBreakParent":rd.soft?"softline":"line"}if(rd.type===b $ 1)return((cd=sd==null?void 0:sd[od-1])==null?void 0:cd.type)===B $ 1&&sd[od-1].hard?void 0:"breakParent";if(rd.type===I)return"trim";if(rd.type===L $ 3)return"indent("+ed(rd.contents)+")";if(rd.type===P $ 2)return rd.n===Number.NEGATIVE_INFINITY?"dedentToRoot("+ed(rd.contents)+")":rd.n<0?"dedent("+ed(rd.contents)+")":rd.n.type==="root"?"markAsRoot("+ed(rd.contents)+")":"align("+JSON.stringify(rd.n)+", "+ed(rd.contents)+")";if(rd.type===_ $ 2)return"ifBreak("+ed(rd.breakContents)+(rd.flatContents?", "+ed(rd.flatContents):"")+(rd.groupId?(rd.flatContents?"":', ""')+ ` , { groupId : $ { td ( rd . groupId ) } } ` :"")+")";if(rd.type===R $ 2){let ud=[];rd.negate&&ud.push("negate: true"),rd.groupId&&ud.push( ` groupId : $ { td ( rd . groupId ) } ` );let _d=ud.length>0? ` , { $ { ud . join ( ", " ) } } ` :"";return ` indentIfBreak ( $ { ed ( rd . contents ) } $ { _d } ) ` }if(rd.type===x $ 1){let ud=[];rd.break&&rd.break!=="propagated"&&ud.push("shouldBreak: true"),rd.id&&ud.push( ` id : $ { td ( rd . id ) } ` );let _d=ud.length>0? ` , {
` )):Ja)}function Uu $ 3(Ra){if(Ra.type===B $ 1)return!0}function Hr $ 4(Ra){return Xe $ 2(Ra,Uu $ 3,!1)}function Qe $ 2(Ra,qa){return Ra.type===N $ 3?{...Ra,contents:qa(Ra.contents)}:qa(Ra)}var H $ 2=Symbol("MODE_BREAK"),J $ 2=Symbol("MODE_FLAT"),Te $ 3=Symbol("cursor");function Wr $ 3(){return{value:"",length:0,queue:[]}}function zu $ 1(Ra,qa){return bt $ 3(Ra,{type:"indent"},qa)}function Gu $ 2(Ra,qa,Ja){return qa===Number.NEGATIVE_INFINITY?Ra.root||Wr $ 3():qa<0?bt $ 3(Ra,{type:"dedent"},Ja):qa?qa.type==="root"?{...Ra,root:Ra}:bt $ 3(Ra,{type:typeof qa=="string"?"stringAlign":"numberAlign",n:qa},Ja):Ra}function bt $ 3(Ra,qa,Ja){let ed=qa.type==="dedent"?Ra.queue.slice(0,-1):[...Ra.queue,qa],td="",rd=0,od=0,sd=0;for(let Ed of ed)switch(Ed.type){case"indent":ud(),Ja.useTabs?ld(1):cd(Ja.tabWidth);break;case"stringAlign":ud(),td+=Ed.n,rd+=Ed.n.length;break;case"numberAlign":od+=1,sd+=Ed.n;break;default:throw new Error( ` Unexpected type '${Ed.type}' ` )}return yd(),{...Ra,value:td,length:rd,queue:ed};function ld(Ed){td+=" ".repeat(Ed),rd+=Ja.tabWidth*Ed}function cd(Ed){td+=" ".repeat(Ed),rd+=Ed}function ud(){Ja.useTabs?_d():yd()}function _d(){od>0&&ld(od),gd()}function yd(){sd>0&&cd(sd),gd()}function gd(){od=0,sd=0}}function Ot $ 3(Ra){let qa=0,Ja=0,ed=Ra.length;e:for(;ed--;){let td=Ra[ed];if(td===Te $ 3){Ja++;continue}for(let rd=td.length-1;rd>=0;rd--){let od=td[rd];if(od===" "||od===" ")qa++;else{Ra[ed]=td.slice(0,rd+1);break e}}}if(qa>0||Ja>0)for(Ra.length=ed+1;Ja-- >0;)Ra.push(Te $ 3);return qa}function et $ 2(Ra,qa,Ja,ed,td,rd){if(Ja===Number.POSITIVE_INFINITY)return!0;let od=qa.length,sd=[Ra],ld=[];for(;Ja>=0;){if(sd.length===0){if(od===0)return!0;sd.push(qa[--od]);continue}let{mode:cd,doc:ud}=sd.pop(),_d=G $ 3(ud);switch(_d){case U $ 2:ld.push(ud),Ja-=Oe $ 4(ud);break;case W $ 2:case S:{let yd=_d===W $ 2?ud:ud.parts;for(let gd=yd.length-1;gd>=0;gd--)sd.push({mode:cd,doc:yd[gd]});break}case L $ 3:case P $ 2:case R $ 2:case N $ 3:sd.push({mode:cd,doc:ud.contents});break;case I:Ja+=Ot $ 3(ld);break;case x $ 1:{if(rd&&ud.break)return!1;let yd=ud.break?H $ 2:cd,gd=ud.expandedStates&&yd===H $ 2?y $ 1(!1,ud.expandedStates,-1):ud.contents;sd.push({mode:yd,doc:gd});break}case _ $ 2:{let yd=(ud.groupId?td[ud.groupId]||J $ 2:cd)===H $ 2?ud.breakContents:ud.flatContents;yd&&sd.push({mode:cd,doc:yd});break}case B $ 1:if(cd===H $ 2||ud.hard)return!0;ud.soft||(ld.push(" "),Ja--);break;case Y $ 2:ed=!0;break;case j:if(ed)return!1;break}}return!1}function Fe $ 2(Ra,qa){let Ja={},ed=qa.printWidth,td=Be $ 4(qa.endOfLine),rd=0,od=[{ind:Wr $ 3(),mode:H $ 2,doc:Ra}],sd=[],ld=!1,cd=[],ud=0;for(Rr $ 2(Ra);od.length>0;){let{ind:yd,mode:gd,doc:Ed}=od.pop();switch(G $ 3(Ed)){case U $ 2:{let Td=td!== `
2024-08-30 15:19:18 +08:00
` ?ne $ 3(!1,Ed, `
2024-08-31 11:28:56 +08:00
` ,td):Ed;sd.push(Td),od.length>0&&(rd+=Oe $ 4(Td));break}case W $ 2:for(let Td=Ed.length-1;Td>=0;Td--)od.push({ind:yd,mode:gd,doc:Ed[Td]});break;case z $ 2:if(ud>=2)throw new Error("There are too many 'cursor' in doc.");sd.push(Te $ 3),ud++;break;case L $ 3:od.push({ind:zu $ 1(yd,qa),mode:gd,doc:Ed.contents});break;case P $ 2:od.push({ind:Gu $ 2(yd,Ed.n,qa),mode:gd,doc:Ed.contents});break;case I:rd-=Ot $ 3(sd);break;case x $ 1:switch(gd){case J $ 2:if(!ld){od.push({ind:yd,mode:Ed.break?H $ 2:J $ 2,doc:Ed.contents});break}case H $ 2:{ld=!1;let Td={ind:yd,mode:J $ 2,doc:Ed.contents},Id=ed-rd,Ad=cd.length>0;if(!Ed.break&&et $ 2(Td,od,Id,Ad,Ja))od.push(Td);else if(Ed.expandedStates){let Nd=y $ 1(!1,Ed.expandedStates,-1);if(Ed.break){od.push({ind:yd,mode:H $ 2,doc:Nd});break}else for(let kd=1;kd<Ed.expandedStates.length+1;kd++)if(kd>=Ed.expandedStates.length){od.push({ind:yd,mode:H $ 2,doc:Nd});break}else{let Rd=Ed.expandedStates[kd],Md={ind:yd,mode:J $ 2,doc:Rd};if(et $ 2(Md,od,Id,Ad,Ja)){od.push(Md);break}}}else od.push({ind:yd,mode:H $ 2,doc:Ed.contents});break}}Ed.id&&(Ja[Ed.id]=y $ 1(!1,od,-1).mode);break;case S:{let Td=ed-rd,{parts:Id}=Ed;if(Id.length===0)break;let[Ad,Nd]=Id,kd={ind:yd,mode:J $ 2,doc:Ad},Rd={ind:yd,mode:H $ 2,doc:Ad},Md=et $ 2(kd,[],Td,cd.length>0,Ja,!0);if(Id.length===1){Md?od.push(kd):od.push(Rd);break}let Bd={ind:yd,mode:J $ 2,doc:Nd},jd={ind:yd,mode:H $ 2,doc:Nd};if(Id.length===2){Md?od.push(Bd,kd):od.push(jd,Rd);break}Id.splice(0,2);let Vd={ind:yd,mode:gd,doc:Ge $ 2(Id)},Fd=Id[0];et $ 2({ind:yd,mode:J $ 2,doc:[Ad,Nd,Fd]},[],Td,cd.length>0,Ja,!0)?od.push(Vd,Bd,kd):Md?od.push(Vd,jd,kd):od.push(Vd,jd,Rd);break}case _ $ 2:case R $ 2:{let Td=Ed.groupId?Ja[Ed.groupId]:gd;if(Td===H $ 2){let Id=Ed.type===_ $ 2?Ed.breakContents:Ed.negate?Ed.contents:De $ 2(Ed.contents);Id&&od.push({ind:yd,mode:gd,doc:Id})}if(Td===J $ 2){let Id=Ed.type===_ $ 2?Ed.flatContents:Ed.negate?De $ 2(Ed.contents):Ed.contents;Id&&od.push({ind:yd,mode:gd,doc:Id})}break}case Y $ 2:cd.push({ind:yd,mode:gd,doc:Ed.contents});break;case j:cd.length>0&&od.push({ind:yd,mode:gd,doc:_e $ 4});break;case B $ 1:switch(gd){case J $ 2:if(Ed.hard)ld=!0;else{Ed.soft||(sd.push(" "),rd+=1);break}case H $ 2:if(cd.length>0){od.push({ind:yd,mode:gd,doc:Ed},...cd.reverse()),cd.length=0;break}Ed.literal?yd.root?(sd.push(td,yd.root.value),rd=yd.root.length):(sd.push(td),rd=0):(rd-=Ot $ 3(sd),sd.push(td+yd.value),rd=yd.length);break}break;case N $ 3:od.push({ind:yd,mode:gd,doc:Ed.contents});break;case b $ 1:break;default:throw new Q $ 3(Ed)}od.length===0&&cd.length>0&&(od.push(...cd.reverse()),cd.length=0)}let _d=sd.indexOf(Te $ 3);if(_d!==-1){let yd=sd.indexOf(Te $ 3,_d+1),gd=sd.slice(0,_d).join(""),Ed=sd.slice(_d+1,yd).join(""),Td=sd.slice(yd+1).join("");return{formatted:gd+Ed+Td,cursorNodeStart:gd.length,cursorNodeText:Ed}}return{formatted:sd.join("")}}function Ku $ 3(Ra,qa,Ja=0){let ed=0;for(let td=Ja;td<Ra.length;++td)Ra[td]===" "?ed=ed+qa-ed%qa:ed++;return ed}var me $ 1=Ku $ 3,te $ 3,Nt $ 3,tt $ 2,St $ 3=class{constructor(qa){Dr $ 2(this,te $ 3),this.stack=[qa]}get key(){let{stack:qa,siblings:Ja}=this;return y $ 1(!1,qa,Ja===null?-2:-4)??null}get index(){return this.siblings===null?null:y $ 1(!1,this.stack,-2)}get node(){return y $ 1(!1,this.stack,-1)}get parent(){return this.getNode(1)}get grandparent(){return this.getNode(2)}get isInArray(){return this.siblings!==null}get siblings(){let{stack:qa}=this,Ja=y $ 1(!1,qa,-3);return Array.isArray(Ja)?Ja:null}get next(){let{siblings:qa}=this;return qa===null?null:qa[this.index+1]}get previous(){let{siblings:qa}=this;return qa===null?null:qa[this.index-1]}get isFirst(){return this.index===0}get isLast(){let{siblings:qa,index:Ja}=this;return qa!==null&&Ja===qa.length-1}get isRoot(){return this.stack.length===1}get root(){return this.stack[0]}get ancestors(){return[...pe $ 1(this,te $ 3,tt $ 2).call(this)]}getName(){let{stack:qa}=this,{length:Ja}=qa;return Ja>1?y $ 1(!1,qa,-2):null}getValue(){return y $ 1(!1,this.stack,-1)}getNode(qa=0){let Ja=pe $ 1(this,te $ 3,Nt $ 3).call(this,qa);return Ja===-1?null:this.stack[Ja]}getParentNode(qa=0){return this.getNode(qa+1)}call(qa,...Ja){let{stack:ed}=this,{length:td}=ed,rd=y $ 1(!1,ed,-1);for(let od of Ja)rd=r
2024-08-30 15:19:18 +08:00
` )return qa-2;if(td=== `
` ||td===" \r "||td===" \u 2028"||td===" \u 2029")return qa-1}else{if(td===" \r "&&Ra.charAt(qa+1)=== `
` )return qa+2;if(td=== `
2024-08-31 11:28:56 +08:00
` ||td===" \r "||td===" \u 2028"||td===" \u 2029")return qa+1}return qa}var M $ 3=Ju $ 3;function Xu $ 3(Ra,qa,Ja={}){let ed=T $ 1(Ra,Ja.backwards?qa-1:qa,Ja),td=M $ 3(Ra,ed,Ja);return ed!==td}var V $ 4=Xu $ 3;function Zu $ 4(Ra){return Array.isArray(Ra)&&Ra.length>0}var kt $ 3=Zu $ 4,Gr $ 3=new Set(["tokens","comments","parent","enclosingNode","precedingNode","followingNode"]),Qu $ 2=Ra=>Object.keys(Ra).filter(qa=>!Gr $ 3.has(qa));function eo $ 1(Ra){return Ra?qa=>Ra(qa,Gr $ 3):Qu $ 2}var X $ 2=eo $ 1;function to $ 1(Ra){let qa=Ra.type||Ra.kind||"(unknown type)",Ja=String(Ra.name||Ra.id&&(typeof Ra.id=="object"?Ra.id.name:Ra.id)||Ra.key&&(typeof Ra.key=="object"?Ra.key.name:Ra.key)||Ra.value&&(typeof Ra.value=="object"?"":String(Ra.value))||Ra.operator||"");return Ja.length>20&&(Ja=Ja.slice(0,19)+"…"),qa+(Ja?" "+Ja:"")}function Lt $ 2(Ra,qa){(Ra.comments??(Ra.comments=[])).push(qa),qa.printed=!1,qa.nodeDescription=to $ 1(Ra)}function ue $ 2(Ra,qa){qa.leading=!0,qa.trailing=!1,Lt $ 2(Ra,qa)}function re $ 4(Ra,qa,Ja){qa.leading=!1,qa.trailing=!1,Ja&&(qa.marker=Ja),Lt $ 2(Ra,qa)}function oe $ 3(Ra,qa){qa.leading=!1,qa.trailing=!0,Lt $ 2(Ra,qa)}var Pt $ 2=new WeakMap;function ut $ 1(Ra,qa){if(Pt $ 2.has(Ra))return Pt $ 2.get(Ra);let{printer:{getCommentChildNodes:Ja,canAttachComment:ed,getVisitorKeys:td},locStart:rd,locEnd:od}=qa;if(!ed)return[];let sd=((Ja==null?void 0:Ja(Ra,qa))??[...Tt $ 3(Ra,{getVisitorKeys:X $ 2(td)})]).flatMap(ld=>ed(ld)?[ld]:ut $ 1(ld,qa));return sd.sort((ld,cd)=>rd(ld)-rd(cd)||od(ld)-od(cd)),Pt $ 2.set(Ra,sd),sd}function qr $ 3(Ra,qa,Ja,ed){let{locStart:td,locEnd:rd}=Ja,od=td(qa),sd=rd(qa),ld=ut $ 1(Ra,Ja),cd,ud,_d=0,yd=ld.length;for(;_d<yd;){let gd=_d+yd>>1,Ed=ld[gd],Td=td(Ed),Id=rd(Ed);if(Td<=od&&sd<=Id)return qr $ 3(Ed,qa,Ja,Ed);if(Id<=od){cd=Ed,_d=gd+1;continue}if(sd<=Td){ud=Ed,yd=gd;continue}throw new Error("Comment location overlaps with node location")}if((ed==null?void 0:ed.type)==="TemplateLiteral"){let{quasis:gd}=ed,Ed=Rt $ 4(gd,qa,Ja);cd&&Rt $ 4(gd,cd,Ja)!==Ed&&(cd=null),ud&&Rt $ 4(gd,ud,Ja)!==Ed&&(ud=null)}return{enclosingNode:ed,precedingNode:cd,followingNode:ud}}var It $ 3=()=>!1;function Jr $ 3(Ra,qa){let{comments:Ja}=Ra;if(delete Ra.comments,!kt $ 3(Ja)||!qa.printer.canAttachComment)return;let ed=[],{locStart:td,locEnd:rd,printer:{experimentalFeatures:{avoidAstMutation:od=!1}={},handleComments:sd={}},originalText:ld}=qa,{ownLine:cd=It $ 3,endOfLine:ud=It $ 3,remaining:_d=It $ 3}=sd,yd=Ja.map((gd,Ed)=>({...qr $ 3(Ra,gd,qa),comment:gd,text:ld,options:qa,ast:Ra,isLastComment:Ja.length-1===Ed}));for(let[gd,Ed]of yd.entries()){let{comment:Td,precedingNode:Id,enclosingNode:Ad,followingNode:Nd,text:kd,options:Rd,ast:Md,isLastComment:Bd}=Ed;if(Rd.parser==="json"||Rd.parser==="json5"||Rd.parser==="jsonc"||Rd.parser==="__js_expression"||Rd.parser==="__ts_expression"||Rd.parser==="__vue_expression"||Rd.parser==="__vue_ts_expression"){if(td(Td)-td(Md)<=0){ue $ 2(Md,Td);continue}if(rd(Td)-rd(Md)>=0){oe $ 3(Md,Td);continue}}let jd;if(od?jd=[Ed]:(Td.enclosingNode=Ad,Td.precedingNode=Id,Td.followingNode=Nd,jd=[Td,kd,Rd,Md,Bd]),ro $ 1(kd,Rd,yd,gd))Td.placement="ownLine",cd(...jd)||(Nd?ue $ 2(Nd,Td):Id?oe $ 3(Id,Td):re $ 4(Ad||Md,Td));else if(no $ 2(kd,Rd,yd,gd))Td.placement="endOfLine",ud(...jd)||(Id?oe $ 3(Id,Td):Nd?ue $ 2(Nd,Td):re $ 4(Ad||Md,Td));else if(Td.placement="remaining",!_d(...jd))if(Id&&Nd){let Vd=ed.length;Vd>0&&ed[Vd-1].followingNode!==Nd&&Kr $ 4(ed,Rd),ed.push(Ed)}else Id?oe $ 3(Id,Td):Nd?ue $ 2(Nd,Td):re $ 4(Ad||Md,Td)}if(Kr $ 4(ed,qa),!od)for(let gd of Ja)delete gd.precedingNode,delete gd.enclosingNode,delete gd.followingNode}var Xr $ 3=Ra=>!/[ \S \n \u 2028 \u 2029]/u.test(Ra);function ro $ 1(Ra,qa,Ja,ed){let{comment:td,precedingNode:rd}=Ja[ed],{locStart:od,locEnd:sd}=qa,ld=od(td);if(rd)for(let cd=ed-1;cd>=0;cd--){let{comment:ud,precedingNode:_d}=Ja[cd];if(_d!==rd||!Xr $ 3(Ra.slice(sd(ud),ld)))break;ld=od(ud)}return V $ 4(Ra,ld,{backwards:!0})}function no $ 2(Ra,qa,Ja,ed){let{comment:td,followingNode:rd}=Ja[ed],{locStart:od,locEnd:sd}=qa,ld=sd(td);if(rd)for(let cd=ed+1;cd<Ja.length;cd++){let{comment:ud,followingNode:_d}=Ja[cd];if(_d!==rd||!Xr $ 3(Ra.slice(ld,od(ud))))break;ld=sd(ud)}return V $ 4(Ra,ld)}function Kr $ 4(Ra,qa){var Ja
2024-08-30 15:19:18 +08:00
( mixed values within one file are normalised by looking at what 's used after the first line)`}]},filepath:{category:"Special",type:"path",description:"Specify the input filepath. This will be used to do parser inference.",cliName:"stdin-filepath",cliCategory:"Other",cliDescription:"Path to the file to pretend that stdin comes from."},insertPragma:{category:"Special",type:"boolean",default:!1,description:"Insert @format pragma into file' s first docblock comment . ",cliCategory:" Other "},parser:{category:" Global ",type:" choice ",default:void 0,description:" Which parser to use . ",exception:Ra=>typeof Ra==" string "||typeof Ra==" function ",choices:[{value:" flow ",description:" Flow "},{value:" babel ",description:" JavaScript "},{value:" babel - flow ",description:" Flow "},{value:" babel - ts ",description:" TypeScript "},{value:" typescript ",description:" TypeScript "},{value:" acorn ",description:" JavaScript "},{value:" espree ",description:" JavaScript "},{value:" meriyah ",description:" JavaScript "},{value:" css ",description:" CSS "},{value:" less ",description:" Less "},{value:" scss ",description:" SCSS "},{value:" json ",description:" JSON "},{value:" json5 ",description:" JSON5 "},{value:" jsonc ",description:" JSON with Comments "},{value:" json - stringify ",description:" JSON . stringify "},{value:" graphql ",description:" GraphQL "},{value:" markdown ",description:" Markdown "},{value:" mdx ",description:" MDX "},{value:" vue ",description:" Vue "},{value:" yaml ",description:" YAML "},{value:" glimmer ",description:" Ember / Handlebars "},{value:" html ",description:" HTML "},{value:" angular ",description:" Angular "},{value:" lwc ",description:" Lightning Web Components "}]},plugins:{type:" path ",array:!0,default:[{value:[]}],category:" Global ",description:" Add a plugin . Multiple plugins can be passed as separate ` --plugin ` s . ",exception:Ra=>typeof Ra==" string "||typeof Ra==" object ",cliName:" plugin ",cliCategory:" Config "},printWidth:{category:" Global ",type:" int ",default:80,description:" The line length where Prettier will try wrap . ",range:{start:0,end:1/0,step:1}},rangeEnd:{category:" Special ",type:" int " , default : 1 / 0 , range : { start : 0 , end : 1 / 0 , step : 1 } , description : ` Format code ending at a given character offset (exclusive).
The range will extend forwards to the end of the selected statement . ` ,cliCategory:"Editor"},rangeStart:{category:"Special",type:"int",default:0,range:{start:0,end:1/0,step:1},description: ` Format code starting at a given character offset .
The range will extend backwards to the start of the first line containing the selected statement . ` ,cliCategory:"Editor"},requirePragma:{category:"Special",type:"boolean",default:!1,description: ` Require either '@prettier' or '@format' to be present in the file ' s first docblock comment
in order for it to be formatted . ` ,cliCategory:"Other"},tabWidth:{type:"int",category:"Global",default:2,description:"Number of spaces per indentation level.",range:{start:0,end:1/0,step:1}},useTabs:{category:"Global",type:"boolean",default:!1,description:"Indent with tabs instead of spaces."},embeddedLanguageFormatting:{category:"Global",type:"choice",default:"auto",description:"Control how Prettier formats quoted code embedded in the file.",choices:[{value:"auto",description:"Format embedded code if Prettier can automatically identify it."},{value:"off",description:"Never automatically format embedded code."}]}};function ot $ 1({plugins:Ra=[],showDeprecated:qa=!1}={}){let Ja=Ra.flatMap(td=>td.languages??[]),ed=[];for(let td of lo $ 3(Object.assign({},...Ra.map(({options:rd})=>rd),rn $ 2)))!qa&&td.deprecated||(Array.isArray(td.choices)&&(qa||(td.choices=td.choices.filter(rd=>!rd.deprecated)),td.name==="parser"&&(td.choices=[...td.choices,...Do $ 2(td.choices,Ja,Ra)])),td.pluginDefaults=Object.fromEntries(Ra.filter(rd=>{var od;return((od=rd.defaultOptions)==null?void 0:od[td.name])!==void 0}).map(rd=>[rd.name,rd.defaultOptions[td.name]])),ed.push(td));return{languages:Ja,options:ed}}function*Do $ 2(Ra,qa,Ja){let ed=new Set(Ra.map(td=>td.value));for(let td of qa)if(td.parsers){for(let rd of td.parsers)if(!ed.has(rd)){ed.add(rd);let od=Ja.find(ld=>ld.parsers&&Object.prototype.hasOwnProperty.call(ld.parsers,rd)),sd=td.name;od!=null&&od.name&&(sd+= ` ( plugin : $ { od . name } ) ` ),yield{value:rd,description:sd}}}}function lo $ 3(Ra){let qa=[];for(let[Ja,ed]of Object.entries(Ra)){let td={name:Ja,...ed};Array.isArray(td.default)&&(td.default=y $ 1(!1,td.default,-1).value),qa.push(td)}return qa}var co $ 2=Ra=>String(Ra).split(/[/ \\ ]/u).pop();function nn $ 2(Ra,qa){if(!qa)return;let Ja=co $ 2(qa).toLowerCase();return Ra.find(({filenames:ed})=>ed==null?void 0:ed.some(td=>td.toLowerCase()===Ja))??Ra.find(({extensions:ed})=>ed==null?void 0:ed.some(td=>Ja.endsWith(td)))}function fo $ 1(Ra,qa){if(qa)return Ra.find(({name:Ja})=>Ja.toLowerCase()===qa)??Ra.find(({aliases:Ja})=>Ja==null?void 0:Ja.includes(qa))??Ra.find(({extensions:Ja})=>Ja==null?void 0:Ja.includes( ` . $ { qa } ` ))}function po $ 2(Ra,qa){let Ja=Ra.plugins.flatMap(td=>td.languages??[]),ed=fo $ 1(Ja,qa.language)??nn $ 2(Ja,qa.physicalFile)??nn $ 2(Ja,qa.file)??(qa.physicalFile,void 0);return ed==null?void 0:ed.parsers[0]}var un $ 2=po $ 2,ie $ 3={key:Ra=>/^[ $ _a-zA-Z][ $ _a-zA-Z0-9]* $ /.test(Ra)?Ra:JSON.stringify(Ra),value(Ra){if(Ra===null||typeof Ra!="object")return JSON.stringify(Ra);if(Array.isArray(Ra))return ` [ $ { Ra . map ( Ja => ie$3 . value ( Ja ) ) . join ( ", " ) } ] ` ;let qa=Object.keys(Ra);return qa.length===0?"{}": ` { $ { qa . map ( Ja => ` ${ ie$3 . key ( Ja ) } : ${ ie$3 . value ( Ra [ Ja ] ) } ` ) . join ( ", " ) } } ` },pair:({key:Ra,value:qa})=>ie $ 3.value({[Ra]:qa})},Yt $ 1=Me $ 5(it $ 2()),an $ 2=(Ra,qa,{descriptor:Ja})=>{let ed=[ ` $ { Yt$1 . default . yellow ( typeof Ra == "string" ? Ja . key ( Ra ) : Ja . pair ( Ra ) ) } is deprecated ` ];return qa&&ed.push( ` we now treat it as $ { Yt$1 . default . blue ( typeof qa == "string" ? Ja . key ( qa ) : Ja . pair ( qa ) ) } ` ),ed.join("; ")+"."},le $ 3=Me $ 5(it $ 2()),st $ 1=Symbol.for("vnopts.VALUE_NOT_EXIST"),he $ 2=Symbol.for("vnopts.VALUE_UNCHANGED"),Dn $ 3=" ".repeat(2),cn $ 3=(Ra,qa,Ja)=>{let{text:ed,list:td}=Ja.normalizeExpectedResult(Ja.schemas[Ra].expected(Ja)),rd=[];return ed&&rd.push(ln $ 2(Ra,qa,ed,Ja.descriptor)),td&&rd.push([ln $ 2(Ra,qa,td.title,Ja.descriptor)].concat(td.values.map(od=>fn $ 2(od,Ja.loggerPrintWidth))).join( `
` )),pn $ 2(rd,Ja.loggerPrintWidth)};function ln $ 2(Ra,qa,Ja,ed){return[ ` Invalid $ { le$3 . default . red ( ed . key ( Ra ) ) } value . ` , ` Expected $ { le$3 . default . blue ( Ja ) } , ` , ` but received $ { qa === st$1 ? le$3 . default . gray ( "nothing" ) : le$3 . default . red ( ed . value ( qa ) ) } . ` ].join(" ")}function fn $ 2({text:Ra,list:qa},Ja){let ed=[];return Ra&&ed.push( ` - $ { le$3 . default . blue ( Ra ) } ` ),qa&&ed.push([ ` - $ { le$3 . default . blue ( qa . title ) } : ` ].concat(qa.values.map(td=>fn $ 2(td,Ja-Dn $ 3.length).replace(/^| \n /g, ` $ & $ { Dn$3 } ` ))).join( `
` )),pn $ 2(ed,Ja)}function pn $ 2(Ra,qa){if(Ra.length===1)return Ra[0];let[Ja,ed]=Ra,[td,rd]=Ra.map(od=>od.split( `
2024-08-31 11:28:56 +08:00
` ,1)[0].length);return td>qa&&td>rd?ed:Ja}var Wt $ 1=Me $ 5(it $ 2()),jt $ 2=[],dn $ 3=[];function Ht $ 2(Ra,qa){if(Ra===qa)return 0;let Ja=Ra;Ra.length>qa.length&&(Ra=qa,qa=Ja);let ed=Ra.length,td=qa.length;for(;ed>0&&Ra.charCodeAt(~-ed)===qa.charCodeAt(~-td);)ed--,td--;let rd=0;for(;rd<ed&&Ra.charCodeAt(rd)===qa.charCodeAt(rd);)rd++;if(ed-=rd,td-=rd,ed===0)return td;let od,sd,ld,cd,ud=0,_d=0;for(;ud<ed;)dn $ 3[ud]=Ra.charCodeAt(rd+ud),jt $ 2[ud]=++ud;for(;_d<td;)for(od=qa.charCodeAt(rd+_d),ld=_d++,sd=_d,ud=0;ud<ed;ud++)cd=od===dn $ 3[ud]?ld:ld+1,ld=jt $ 2[ud],sd=jt $ 2[ud]=ld>sd?cd>sd?sd+1:cd:cd>ld?ld+1:cd;return sd}var at $ 2=(Ra,qa,{descriptor:Ja,logger:ed,schemas:td})=>{let rd=[ ` Ignored unknown option $ { Wt$1 . default . yellow ( Ja . pair ( { key : Ra , value : qa } ) ) } . ` ],od=Object.keys(td).sort().find(sd=>Ht $ 2(Ra,sd)<3);od&&rd.push( ` Did you mean $ { Wt$1 . default . blue ( Ja . key ( od ) ) } ? ` ),ed.warn(rd.join(" "))},Fo $ 2=["default","expected","validate","deprecated","forward","redirect","overlap","preprocess","postprocess"];function mo $ 3(Ra,qa){let Ja=new Ra(qa),ed=Object.create(Ja);for(let td of Fo $ 2)td in qa&&(ed[td]=Eo $ 1(qa[td],Ja,O $ 2.prototype[td].length));return ed}var O $ 2=class{static create(qa){return mo $ 3(this,qa)}constructor(qa){this.name=qa.name}default(qa){}expected(qa){return"nothing"}validate(qa,Ja){return!1}deprecated(qa,Ja){return!1}forward(qa,Ja){}redirect(qa,Ja){}overlap(qa,Ja,ed){return qa}preprocess(qa,Ja){return qa}postprocess(qa,Ja){return he $ 2}};function Eo $ 1(Ra,qa,Ja){return typeof Ra=="function"?(...ed)=>Ra(...ed.slice(0,Ja-1),qa,...ed.slice(Ja-1)):()=>Ra}var Dt $ 4=class extends O $ 2{constructor(qa){super(qa),this._sourceName=qa.sourceName}expected(qa){return qa.schemas[this._sourceName].expected(qa)}validate(qa,Ja){return Ja.schemas[this._sourceName].validate(qa,Ja)}redirect(qa,Ja){return this._sourceName}},lt $ 2=class extends O $ 2{expected(){return"anything"}validate(){return!0}},ct $ 1=class extends O $ 2{constructor({valueSchema:qa,name:Ja=qa.name,...ed}){super({...ed,name:Ja}),this._valueSchema=qa}expected(qa){let{text:Ja,list:ed}=qa.normalizeExpectedResult(this._valueSchema.expected(qa));return{text:Ja&& ` an array of $ { Ja } ` ,list:ed&&{title:"an array of the following values",values:[{list:ed}]}}}validate(qa,Ja){if(!Array.isArray(qa))return!1;let ed=[];for(let td of qa){let rd=Ja.normalizeValidateResult(this._valueSchema.validate(td,Ja),td);rd!==!0&&ed.push(rd.value)}return ed.length===0?!0:{value:ed}}deprecated(qa,Ja){let ed=[];for(let td of qa){let rd=Ja.normalizeDeprecatedResult(this._valueSchema.deprecated(td,Ja),td);rd!==!1&&ed.push(...rd.map(({value:od})=>({value:[od]})))}return ed}forward(qa,Ja){let ed=[];for(let td of qa){let rd=Ja.normalizeForwardResult(this._valueSchema.forward(td,Ja),td);ed.push(...rd.map(Fn $ 2))}return ed}redirect(qa,Ja){let ed=[],td=[];for(let rd of qa){let od=Ja.normalizeRedirectResult(this._valueSchema.redirect(rd,Ja),rd);"remain"in od&&ed.push(od.remain),td.push(...od.redirect.map(Fn $ 2))}return ed.length===0?{redirect:td}:{redirect:td,remain:ed}}overlap(qa,Ja){return qa.concat(Ja)}};function Fn $ 2({from:Ra,to:qa}){return{from:[Ra],to:qa}}var ft $ 2=class extends O $ 2{expected(){return"true or false"}validate(qa){return typeof qa=="boolean"}};function En $ 2(Ra,qa){let Ja=Object.create(null);for(let ed of Ra){let td=ed[qa];if(Ja[td])throw new Error( ` Duplicate $ { qa } $ { JSON . stringify ( td ) } ` );Ja[td]=ed}return Ja}function hn $ 2(Ra,qa){let Ja=new Map;for(let ed of Ra){let td=ed[qa];if(Ja.has(td))throw new Error( ` Duplicate $ { qa } $ { JSON . stringify ( td ) } ` );Ja.set(td,ed)}return Ja}function Cn $ 3(){let Ra=Object.create(null);return qa=>{let Ja=JSON.stringify(qa);return Ra[Ja]?!0:(Ra[Ja]=!0,!1)}}function gn $ 3(Ra,qa){let Ja=[],ed=[];for(let td of Ra)qa(td)?Ja.push(td):ed.push(td);return[Ja,ed]}function yn $ 3(Ra){return Ra===Math.floor(Ra)}function An $ 2(Ra,qa){if(Ra===qa)return 0;let Ja=typeof Ra,ed=typeof qa,td=["undefined","object","boolean","number","string"];return Ja!==ed?td.indexOf(Ja)-td.indexOf(ed):Ja!=="string"?Number(Ra)-Number(qa):Ra.localeCompare(qa)}function Bn $ 3(Ra){return(...qa)=>{let Ja=Ra(...qa);return typeof Ja=="string"?new
` +ed,Ra.codeFrame=ed,Ra}throw Ra}var ce $ 3=ko $ 1;async function Un $ 3(Ra,qa,Ja,ed,td){let{embeddedLanguageFormatting:rd,printer:{embed:od,hasPrettierIgnore:sd=()=>!1,getVisitorKeys:ld}}=Ja;if(!od||rd!=="auto")return;if(od.length>2)throw new Error("printer.embed has too many parameters. The API changed in Prettier v3. Please update your plugin. See https://prettier.io/docs/en/plugins.html#optional-embed");let cd=X $ 2(od.getVisitorKeys??ld),ud=[];gd();let _d=Ra.stack;for(let{print:Ed,node:Td,pathStack:Id}of ud)try{Ra.stack=Id;let Ad=await Ed(yd,qa,Ra,Ja);Ad&&td.set(Td,Ad)}catch(Ad){if(globalThis.PRETTIER_DEBUG)throw Ad}Ra.stack=_d;function yd(Ed,Td){return Po $ 1(Ed,Td,Ja,ed)}function gd(){let{node:Ed}=Ra;if(Ed===null||typeof Ed!="object"||sd(Ra))return;for(let Id of cd(Ed))Array.isArray(Ed[Id])?Ra.each(gd,Id):Ra.call(gd,Id);let Td=od(Ra,Ja);if(Td){if(typeof Td=="function"){ud.push({print:Td,node:Ed,pathStack:[...Ra.stack]});return}td.set(Ed,Td)}}}async function Po $ 1(Ra,qa,Ja,ed){let td=await se $ 2({...Ja,...qa,parentParser:Ja.parser,originalText:Ra},{passThrough:!0}),{ast:rd}=await ce $ 3(Ra,td),od=await ed(rd,td);return Ze $ 3(od)}function Io $ 1(Ra,qa){let{originalText:Ja,[Symbol.for("comments")]:ed,locStart:td,locEnd:rd,[Symbol.for("printedComments")]:od}=qa,{node:sd}=Ra,ld=td(sd),cd=rd(sd);for(let ud of ed)td(ud)>=ld&&rd(ud)<=cd&&od.add(ud);return Ja.slice(ld,cd)}var zn $ 3=Io $ 1;async function Ye $ 2(Ra,qa){({ast:Ra}=await Qt $ 2(Ra,qa));let Ja=new Map,ed=new Mr $ 3(Ra),td=new Map;await Un $ 3(ed,od,qa,Ye $ 2,td);let rd=await Gn $ 4(ed,qa,od,void 0,td);return en $ 2(qa),rd;function od(ld,cd){return ld===void 0||ld===ed?sd(cd):Array.isArray(ld)?ed.call(()=>sd(cd),...ld):ed.call(()=>sd(cd),ld)}function sd(ld){let cd=ed.node;if(cd==null)return"";let ud=cd&&typeof cd=="object"&&ld===void 0;if(ud&&Ja.has(cd))return Ja.get(cd);let _d=Gn $ 4(ed,qa,od,ld,td);return ud&&Ja.set(cd,_d),_d}}function Gn $ 4(Ra,qa,Ja,ed,td){var rd;let{node:od}=Ra,{printer:sd}=qa,ld;return(rd=sd.hasPrettierIgnore)!=null&&rd.call(sd,Ra)?ld=zn $ 3(Ra,qa):td.has(od)?ld=td.get(od):ld=sd.print(Ra,qa,Ja,ed),od===qa.cursorNode&&(ld=Qe $ 2(ld,cd=>[ve $ 3,cd,ve $ 3])),sd.printComment&&(!sd.willPrintOwnComments||!sd.willPrintOwnComments(Ra,qa))&&(ld=Qr $ 4(Ra,ld,qa)),ld}async function Qt $ 2(Ra,qa){let Ja=Ra.comments??[];qa[Symbol.for("comments")]=Ja,qa[Symbol.for("tokens")]=Ra.tokens??[],qa[Symbol.for("printedComments")]=new Set,Jr $ 3(Ra,qa);let{printer:{preprocess:ed}}=qa;return Ra=ed?await ed(Ra,qa):Ra,{ast:Ra,comments:Ja}}function Ro $ 1(Ra,qa){let{cursorOffset:Ja,locStart:ed,locEnd:td}=qa,rd=X $ 2(qa.printer.getVisitorKeys),od=ld=>ed(ld)<=Ja&&td(ld)>=Ja,sd=Ra;for(let ld of Ur $ 3(Ra,{getVisitorKeys:rd,filter:od}))sd=ld;return sd}var Kn $ 3=Ro $ 1;function Yo $ 1(Ra,qa){let{printer:{massageAstNode:Ja,getVisitorKeys:ed}}=qa;if(!Ja)return Ra;let td=X $ 2(ed),rd=Ja.ignoredProperties??new Set;return od(Ra);function od(sd,ld){if(!(sd!==null&&typeof sd=="object"))return sd;if(Array.isArray(sd))return sd.map(yd=>od(yd,ld)).filter(Boolean);let cd={},ud=new Set(td(sd));for(let yd in sd)!Object.prototype.hasOwnProperty.call(sd,yd)||rd.has(yd)||(ud.has(yd)?cd[yd]=od(sd[yd],sd):cd[yd]=sd[yd]);let _d=Ja(sd,cd,ld);if(_d!==null)return _d??cd}}var qn $ 3=Yo $ 1,jo $ 2=(Ra,qa,Ja)=>{if(!(Ra&&qa==null)){if(qa.findLastIndex)return qa.findLastIndex(Ja);for(let ed=qa.length-1;ed>=0;ed--){let td=qa[ed];if(Ja(td,ed,qa))return ed}return-1}},Jn $ 4=jo $ 2,Ho $ 3=({parser:Ra})=>Ra==="json"||Ra==="json5"||Ra==="jsonc"||Ra==="json-stringify";function Wo $ 2(Ra,qa){let Ja=[Ra.node,...Ra.parentNodes],ed=new Set([qa.node,...qa.parentNodes]);return Ja.find(td=>Qn $ 4.has(td.type)&&ed.has(td))}function Xn $ 4(Ra){let qa=Jn $ 4(!1,Ra,Ja=>Ja.type!=="Program"&&Ja.type!=="File");return qa===-1?Ra:Ra.slice(0,qa+1)}function Mo $ 3(Ra,qa,{locStart:Ja,locEnd:ed}){let td=Ra.node,rd=qa.node;if(td===rd)return{startNode:td,endNode:rd};let od=Ja(Ra.node);for(let ld of Xn $ 4(qa.parentNodes))if(Ja(ld)>=od)rd=ld;else break;let sd=ed(qa.node);for(let ld of Xn $ 4(Ra.parentNodes)){if(ed(ld)<=sd)td=ld;else break;if(td===rd)break}return{startNode:td,endNode:rd}}function er $ 2(Ra,qa,Ja,ed,td=
` ,td)+1),ld=ed.slice(sd,td).match(/^ \s */u)[0],cd=me $ 1(ld,qa.tabWidth),ud=await ou $ 3(od,{...qa,rangeStart:0,rangeEnd:Number.POSITIVE_INFINITY,cursorOffset:qa.cursorOffset>td&&qa.cursorOffset<=rd?qa.cursorOffset-td:-1,endOfLine:"lf"},cd),_d=ud.formatted.trimEnd(),{cursorOffset:yd}=qa;yd>rd?yd+=_d.length-od.length:ud.cursorOffset>=0&&(yd=ud.cursorOffset+td);let gd=ed.slice(0,td)+_d+ed.slice(rd);if(qa.endOfLine!=="lf"){let Ed=Be $ 4(qa.endOfLine);yd>=0&&Ed=== ` \ r
` &&(yd+=wt $ 2(gd.slice(0,yd), `
` )),gd=ne $ 3(!1,gd, `
` ,Ed)}return{formatted:gd,cursorOffset:yd,comments:ud.comments}}function tr $ 2(Ra,qa,Ja){return typeof qa!="number"||Number.isNaN(qa)||qa<0||qa>Ra.length?Ja:qa}function ru $ 3(Ra,qa){let{cursorOffset:Ja,rangeStart:ed,rangeEnd:td}=qa;return Ja=tr $ 2(Ra,Ja,-1),ed=tr $ 2(Ra,ed,0),td=tr $ 2(Ra,td,Ra.length),{...qa,cursorOffset:Ja,rangeStart:ed,rangeEnd:td}}function iu $ 2(Ra,qa){let{cursorOffset:Ja,rangeStart:ed,rangeEnd:td,endOfLine:rd}=ru $ 3(Ra,qa),od=Ra.charAt(0)===uu $ 4;if(od&&(Ra=Ra.slice(1),Ja--,ed--,td--),rd==="auto"&&(rd=Fr $ 2(Ra)),Ra.includes(" \r ")){let sd=ld=>wt $ 2(Ra.slice(0,Math.max(ld,0)), ` \ r
2024-08-30 15:19:18 +08:00
` );Ja-=sd(Ja),ed-=sd(ed),td-=sd(td),Ra=mr $ 2(Ra)}return{hasBOM:od,text:Ra,options:ru $ 3(Ra,{...qa,cursorOffset:Ja,rangeStart:ed,rangeEnd:td,endOfLine:rd})}}async function nu $ 4(Ra,qa){let Ja=await ht $ 3(qa);return!Ja.hasPragma||Ja.hasPragma(Ra)}async function rr $ 2(Ra,qa){let{hasBOM:Ja,text:ed,options:td}=iu $ 2(Ra,await se $ 2(qa));if(td.rangeStart>=td.rangeEnd&&ed!==""||td.requirePragma&&!await nu $ 4(ed,td))return{formatted:Ra,cursorOffset:qa.cursorOffset,comments:[]};let rd;return td.rangeStart>0||td.rangeEnd<ed.length?rd=await Uo $ 3(ed,td):(!td.requirePragma&&td.insertPragma&&td.printer.insertPragma&&!await nu $ 4(ed,td)&&(ed=td.printer.insertPragma(ed)),rd=await ou $ 3(ed,td)),Ja&&(rd.formatted=uu $ 4+rd.formatted,rd.cursorOffset>=0&&rd.cursorOffset++),rd}async function su $ 3(Ra,qa,Ja){let{text:ed,options:td}=iu $ 2(Ra,await se $ 2(qa)),rd=await ce $ 3(ed,td);return Ja&&(Ja.preprocessForPrint&&(rd.ast=await Qt $ 2(rd.ast,td)),Ja.massage&&(rd.ast=qn $ 3(rd.ast,td))),rd}async function au $ 3(Ra,qa){qa=await se $ 2(qa);let Ja=await Ye $ 2(Ra,qa);return Fe $ 2(Ja,qa)}async function Du $ 2(Ra,qa){let Ja=Or $ 3(Ra),{formatted:ed}=await rr $ 2(Ja,{...qa,parser:"__js_expression"});return ed}async function lu $ 3(Ra,qa){qa=await se $ 2(qa);let{ast:Ja}=await ce $ 3(Ra,qa);return Ye $ 2(Ja,qa)}async function cu $ 2(Ra,qa){return Fe $ 2(Ra,await se $ 2(qa))}var nr $ 2={};We $ 1(nr $ 2,{builders:()=>Go $ 1,printer:()=>Ko $ 2,utils:()=>qo $ 1});var Go $ 1={join:be $ 5,line:Ke $ 2,softline:vr $ 2,hardline:q $ 2,literalline:qe $ 3,group:_t $ 2,conditionalGroup:Ar $ 2,fill:Ge $ 2,lineSuffix:xe $ 3,lineSuffixBoundary:xr $ 3,cursor:ve $ 3,breakParent:de $ 2,ifBreak:Br $ 4,trim:_r $ 3,indent:De $ 2,indentIfBreak:wr $ 3,align:ae $ 2,addAlignmentToDoc:Je $ 2,markAsRoot:gr $ 2,dedentToRoot:Cr $ 1,dedent:yr $ 2,hardlineWithoutBreakParent:_e $ 4,literallineWithoutBreakParent:vt $ 3,label:br $ 2,concat:Ra=>Ra},Ko $ 2={printDocToString:Fe $ 2},qo $ 1={willBreak:Ir $ 3,traverseDoc:we $ 2,findInDoc:Xe $ 2,mapDoc:Ne $ 2,removeLines:Yr $ 4,stripTrailingHardline:Ze $ 3,replaceEndOfLine:jr $ 3,canBreak:Hr $ 4},fu $ 1="3.3.3",or $ 2={};We $ 1(or $ 2,{addDanglingComment:()=>re $ 4,addLeadingComment:()=>ue $ 2,addTrailingComment:()=>oe $ 3,getAlignmentSize:()=>me $ 1,getIndentSize:()=>pu $ 2,getMaxContinuousCount:()=>du $ 3,getNextNonSpaceNonCommentCharacter:()=>Fu $ 2,getNextNonSpaceNonCommentCharacterIndex:()=>si $ 4,getStringWidth:()=>Oe $ 4,hasNewline:()=>V $ 4,hasNewlineInRange:()=>mu $ 2,hasSpaces:()=>Eu $ 2,isNextLineEmpty:()=>ci $ 3,isNextLineEmptyAfterIndex:()=>gt $ 2,isPreviousLineEmpty:()=>Di $ 3,makeString:()=>hu $ 2,skip:()=>Ee $ 3,skipEverythingButNewLine:()=>nt $ 1,skipInlineComment:()=>Ce $ 2,skipNewline:()=>M $ 3,skipSpaces:()=>T $ 1,skipToLineEnd:()=>rt $ 2,skipTrailingComment:()=>ge $ 4,skipWhitespace:()=>zr $ 3});function Jo $ 2(Ra,qa){if(qa===!1)return!1;if(Ra.charAt(qa)==="/"&&Ra.charAt(qa+1)==="*"){for(let Ja=qa+2;Ja<Ra.length;++Ja)if(Ra.charAt(Ja)==="*"&&Ra.charAt(Ja+1)==="/")return Ja+2}return qa}var Ce $ 2=Jo $ 2;function Xo $ 1(Ra,qa){return qa===!1?!1:Ra.charAt(qa)==="/"&&Ra.charAt(qa+1)==="/"?nt $ 1(Ra,qa):qa}var ge $ 4=Xo $ 1;function Zo $ 2(Ra,qa){let Ja=null,ed=qa;for(;ed!==Ja;)Ja=ed,ed=T $ 1(Ra,ed),ed=Ce $ 2(Ra,ed),ed=ge $ 4(Ra,ed),ed=M $ 3(Ra,ed);return ed}var je $ 4=Zo $ 2;function Qo $ 2(Ra,qa){let Ja=null,ed=qa;for(;ed!==Ja;)Ja=ed,ed=rt $ 2(Ra,ed),ed=Ce $ 2(Ra,ed),ed=T $ 1(Ra,ed);return ed=ge $ 4(Ra,ed),ed=M $ 3(Ra,ed),ed!==!1&&V $ 4(Ra,ed)}var gt $ 2=Qo $ 2;function ei $ 3(Ra,qa){let Ja=Ra.lastIndexOf( `
` );return Ja===-1?0:me $ 1(Ra.slice(Ja+1).match(/^[ \t ]*/u)[0],qa)}var pu $ 2=ei $ 3;function ur $ 2(Ra){if(typeof Ra!="string")throw new TypeError("Expected a string");return Ra.replace(/[| \\ {}()[ \] ^ $ +*?.]/g," \\ $ &").replace(/-/g," \\ x2d")}function ti $ 4(Ra,qa){let Ja=Ra.match(new RegExp( ` ( $ { ur$2 ( qa ) } ) + ` ,"gu"));return Ja===null?0:Ja.reduce((ed,td)=>Math.max(ed,td.length/qa.length),0)}var du $ 3=ti $ 4;function ri $ 4(Ra,qa){let Ja=je $ 4(Ra,qa);return Ja===!1?"":Ra.charAt(Ja)}var Fu $ 2=ri $ 4;function ni $ 4(Ra,qa,Ja){for(let ed=qa;ed<Ja;++ed)if(Ra.charAt(ed)=== `
2024-08-31 11:28:56 +08:00
` )return!0;return!1}var mu $ 2=ni $ 4;function ui $ 3(Ra,qa,Ja={}){return T $ 1(Ra,Ja.backwards?qa-1:qa,Ja)!==qa}var Eu $ 2=ui $ 3;function oi $ 3(Ra,qa,Ja){let ed=qa==='"'?"'":'"',td=ne $ 3(!1,Ra,/ \\ (.)|(["'])/gsu,(rd,od,sd)=>od===ed?od:sd===qa?" \\ "+sd:sd||(Ja&&/^[^ \n \r "'0-7 \\ bfnrt-vx \u 2028 \u 2029] $ /u.test(od)?od:" \\ "+od));return qa+td+qa}var hu $ 2=oi $ 3;function ii $ 4(Ra,qa,Ja){return je $ 4(Ra,Ja(qa))}function si $ 4(Ra,qa){return arguments.length===2||typeof qa=="number"?je $ 4(Ra,qa):ii $ 4(...arguments)}function ai $ 4(Ra,qa,Ja){return Le $ 3(Ra,Ja(qa))}function Di $ 3(Ra,qa){return arguments.length===2||typeof qa=="number"?Le $ 3(Ra,qa):ai $ 4(...arguments)}function li $ 4(Ra,qa,Ja){return gt $ 2(Ra,Ja(qa))}function ci $ 3(Ra,qa){return arguments.length===2||typeof qa=="number"?gt $ 2(Ra,qa):li $ 4(...arguments)}function fe $ 3(Ra,qa=1){return async(...Ja)=>{let ed=Ja[qa]??{},td=ed.plugins??[];return Ja[qa]={...ed,plugins:Array.isArray(td)?td:Object.values(td)},Ra(...Ja)}}var Cu $ 2=fe $ 3(rr $ 2);async function gu $ 1(Ra,qa){let{formatted:Ja}=await Cu $ 2(Ra,{...qa,cursorOffset:-1});return Ja}async function fi $ 3(Ra,qa){return await gu $ 1(Ra,qa)===Ra}var pi $ 4=fe $ 3(ot $ 1,0),di $ 3={parse:fe $ 3(su $ 3),formatAST:fe $ 3(au $ 3),formatDoc:fe $ 3(Du $ 2),printToDoc:fe $ 3(lu $ 3),printDocToString:fe $ 3(cu $ 2)},el $ 2=Object.create,ft $ 1=Object.defineProperty,rl $ 2=Object.getOwnPropertyDescriptor,tl $ 2=Object.getOwnPropertyNames,nl $ 2=Object.getPrototypeOf,il $ 2=Object.prototype.hasOwnProperty,C=(Ra,qa)=>()=>(qa||Ra((qa={exports:{}}).exports,qa),qa.exports),Ln $ 3=(Ra,qa)=>{for(var Ja in qa)ft $ 1(Ra,Ja,{get:qa[Ja],enumerable:!0})},ul $ 2=(Ra,qa,Ja,ed)=>{if(qa&&typeof qa=="object"||typeof qa=="function")for(let td of tl $ 2(qa))!il $ 2.call(Ra,td)&&td!==Ja&&ft $ 1(Ra,td,{get:()=>qa[td],enumerable:!(ed=rl $ 2(qa,td))||ed.enumerable});return Ra},Ue $ 3=(Ra,qa,Ja)=>(Ja=Ra!=null?el $ 2(nl $ 2(Ra)):{},ul $ 2(ft $ 1(Ja,"default",{value:Ra,enumerable:!0}),Ra)),xr $ 2=C((Ra,qa)=>{qa.exports=Ja;function Ja(ed){return String(ed).replace(/ \s +/g," ")}}),Pi $ 2=C((Ra,qa)=>{qa.exports=Ed;var Ja=9,ed=10,td=32,rd=33,od=58,sd=91,ld=92,cd=93,ud=94,_d=96,yd=4,gd=1024;function Ed(Md){var Bd=this.Parser,jd=this.Compiler;Td(Bd)&&Ad(Bd,Md),Id(jd)&&Nd(jd)}function Td(Md){return!!(Md&&Md.prototype&&Md.prototype.blockTokenizers)}function Id(Md){return!!(Md&&Md.prototype&&Md.prototype.visitors)}function Ad(Md,Bd){for(var jd=Bd||{},Vd=Md.prototype,Fd=Vd.blockTokenizers,Ud=Vd.inlineTokenizers,qd=Vd.blockMethods,Wd=Vd.inlineMethods,Qd=Fd.definition,Zd=Ud.reference,Xd=[],df=-1,hf=qd.length,gf;++df<hf;)gf=qd[df],!(gf==="newline"||gf==="indentedCode"||gf==="paragraph"||gf==="footnoteDefinition")&&Xd.push([gf]);Xd.push(["footnoteDefinition"]),jd.inlineNotes&&(kd(Wd,"reference","inlineNote"),Ud.inlineNote= $ f),kd(qd,"definition","footnoteDefinition"),kd(Wd,"reference","footnoteCall"),Fd.definition=bf,Fd.footnoteDefinition=Ef,Ud.footnoteCall=wf,Ud.reference=Tf,Vd.interruptFootnoteDefinition=Xd,Tf.locator=Zd.locator,wf.locator=Sf, $ f.locator=Lf;function Ef(Pf,_f,yf){for(var Bf=this,zf=Bf.interruptFootnoteDefinition,Yf=Bf.offset,jf=_f.length+1,Of=0,Zf=[],yh,Wf,Cf,Af,Ff,ph,Dh,uh,Ih,Ah,Rh,Jh,Wh;Of<jf&&(Af=_f.charCodeAt(Of),!(Af!==Ja&&Af!==td));)Of++;if(_f.charCodeAt(Of++)===sd&&_f.charCodeAt(Of++)===ud){for(Wf=Of;Of<jf;){if(Af=_f.charCodeAt(Of),Af!==Af||Af===ed||Af===Ja||Af===td)return;if(Af===cd){Cf=Of,Of++;break}Of++}if(!(Cf===void 0||Wf===Cf||_f.charCodeAt(Of++)!==od)){if(yf)return!0;for(yh=_f.slice(Wf,Cf),Ff=Pf.now(),Ih=0,Ah=0,Rh=Of,Jh=[];Of<jf;){if(Af=_f.charCodeAt(Of),Af!==Af||Af===ed)Wh={start:Ih,contentStart:Rh||Of,contentEnd:Of,end:Of},Jh.push(Wh),Af===ed&&(Ih=Of+1,Ah=0,Rh=void 0,Wh.end=Ih);else if(Ah!==void 0)if(Af===td||Af===Ja)Ah+=Af===td?1:yd-Ah%yd,Ah>yd&&(Ah=void 0,Rh=Of);else{if(Ah<yd&&Wh&&(Wh.contentStart===Wh.contentEnd||Rd(zf,Fd,Bf,[Pf,_f.slice(Of,gd),!0])))break;Ah=void 0,Rh=Of}Of++}for(Of=-1,jf=Jh.length;jf>0&&(Wh=Jh[jf-1],Wh.contentStart===Wh.contentEnd);)jf--;for(ph=Pf(_f.slice(0,Wh.contentEnd));++Of<jf;)Wh=Jh[Of],Yf[Ff.line+Of]=(Yf[Ff.line+Of]||0)+(Wh.contentStart-Wh.start),Zf.push(_f.slice(Wh.contentStart,Wh.end));return Dh=Bf.enterBlock(),uh=Bf.toke
2024-08-27 22:31:52 +08:00
2024-08-30 15:19:18 +08:00
` ).split( `
2024-08-31 11:28:56 +08:00
` ),Qd=0,Zd=Wd.length,Xd;++Qd<Zd;)Xd=Wd[Qd],Xd!==""&&(Wd[Qd]=jd+Xd);return"[^"+(qd.label||qd.identifier)+"]: "+Wd.join( `
` )}}function kd(Md,Bd,jd){Md.splice(Md.indexOf(Bd),0,jd)}function Rd(Md,Bd,jd,Vd){for(var Fd=Md.length,Ud=-1;++Ud<Fd;)if(Bd[Md[Ud][0]].apply(jd,Vd))return!0;return!1}}),Bt $ 3=C(Ra=>{Ra.isRemarkParser=qa,Ra.isRemarkCompiler=Ja;function qa(ed){return!!(ed&&ed.prototype&&ed.prototype.blockTokenizers)}function Ja(ed){return!!(ed&&ed.prototype&&ed.prototype.visitors)}}),Mi $ 1=C((Ra,qa)=>{var Ja=Bt $ 3();qa.exports=_d;var ed=9,td=32,rd=36,od=48,sd=57,ld=92,cd=["math","math-inline"],ud="math-display";function _d(Ed){let Td=this.Parser,Id=this.Compiler;Ja.isRemarkParser(Td)&&yd(Td,Ed),Ja.isRemarkCompiler(Id)&&gd(Id)}function yd(Ed,Td){let Id=Ed.prototype,Ad=Id.inlineMethods;kd.locator=Nd,Id.inlineTokenizers.math=kd,Ad.splice(Ad.indexOf("text"),0,"math");function Nd(Rd,Md){return Rd.indexOf(" $ ",Md)}function kd(Rd,Md,Bd){let jd=Md.length,Vd=!1,Fd=!1,Ud=0,qd,Wd,Qd,Zd,Xd,df,hf;if(Md.charCodeAt(Ud)===ld&&(Fd=!0,Ud++),Md.charCodeAt(Ud)===rd){if(Ud++,Fd)return Bd?!0:Rd(Md.slice(0,Ud))({type:"text",value:" $ "});if(Md.charCodeAt(Ud)===rd&&(Vd=!0,Ud++),Qd=Md.charCodeAt(Ud),!(Qd===td||Qd===ed)){for(Zd=Ud;Ud<jd;){if(Wd=Qd,Qd=Md.charCodeAt(Ud+1),Wd===rd){if(qd=Md.charCodeAt(Ud-1),qd!==td&&qd!==ed&&(Qd!==Qd||Qd<od||Qd>sd)&&(!Vd||Qd===rd)){Xd=Ud-1,Ud++,Vd&&Ud++,df=Ud;break}}else Wd===ld&&(Ud++,Qd=Md.charCodeAt(Ud+1));Ud++}if(df!==void 0)return Bd?!0:(hf=Md.slice(Zd,Xd+1),Rd(Md.slice(0,df))({type:"inlineMath",value:hf,data:{hName:"span",hProperties:{className:cd.concat(Vd&&Td.inlineMathDouble?[ud]:[])},hChildren:[{type:"text",value:hf}]}}))}}}}function gd(Ed){let Td=Ed.prototype;Td.visitors.inlineMath=Id;function Id(Ad){let Nd=" $ ";return(Ad.data&&Ad.data.hProperties&&Ad.data.hProperties.className||[]).includes(ud)&&(Nd=" $ $ "),Nd+Ad.value+Nd}}}), $ i $ 2=C((Ra,qa)=>{var Ja=Bt $ 3();qa.exports=ud;var ed=10,td=32,rd=36,od= `
` ,sd=" $ ",ld=2,cd=["math","math-display"];function ud(){let gd=this.Parser,Ed=this.Compiler;Ja.isRemarkParser(gd)&&_d(gd),Ja.isRemarkCompiler(Ed)&&yd(Ed)}function _d(gd){let Ed=gd.prototype,Td=Ed.blockMethods,Id=Ed.interruptParagraph,Ad=Ed.interruptList,Nd=Ed.interruptBlockquote;Ed.blockTokenizers.math=kd,Td.splice(Td.indexOf("fencedCode")+1,0,"math"),Id.splice(Id.indexOf("fencedCode")+1,0,["math"]),Ad.splice(Ad.indexOf("fencedCode")+1,0,["math"]),Nd.splice(Nd.indexOf("fencedCode")+1,0,["math"]);function kd(Rd,Md,Bd){var jd=Md.length,Vd=0;let Fd,Ud,qd,Wd,Qd,Zd,Xd,df,hf,gf,Ef;for(;Vd<jd&&Md.charCodeAt(Vd)===td;)Vd++;for(Qd=Vd;Vd<jd&&Md.charCodeAt(Vd)===rd;)Vd++;if(Zd=Vd-Qd,!(Zd<ld)){for(;Vd<jd&&Md.charCodeAt(Vd)===td;)Vd++;for(Xd=Vd;Vd<jd;){if(Fd=Md.charCodeAt(Vd),Fd===rd)return;if(Fd===ed)break;Vd++}if(Md.charCodeAt(Vd)===ed){if(Bd)return!0;for(Ud=[],Xd!==Vd&&Ud.push(Md.slice(Xd,Vd)),Vd++,qd=Md.indexOf(od,Vd+1),qd=qd===-1?jd:qd;Vd<jd;){for(df=!1,gf=Vd,Ef=qd,Wd=qd,hf=0;Wd>gf&&Md.charCodeAt(Wd-1)===td;)Wd--;for(;Wd>gf&&Md.charCodeAt(Wd-1)===rd;)hf++,Wd--;for(Zd<=hf&&Md.indexOf(sd,gf)===Wd&&(df=!0,Ef=Wd);gf<=Ef&&gf-Vd<Qd&&Md.charCodeAt(gf)===td;)gf++;if(df)for(;Ef>gf&&Md.charCodeAt(Ef-1)===td;)Ef--;if((!df||gf!==Ef)&&Ud.push(Md.slice(gf,Ef)),df)break;Vd=qd+1,qd=Md.indexOf(od,Vd+1),qd=qd===-1?jd:qd}return Ud=Ud.join( `
` ),Rd(Md.slice(0,qd))({type:"math",value:Ud,data:{hName:"div",hProperties:{className:cd.concat()},hChildren:[{type:"text",value:Ud}]}})}}}}function yd(gd){let Ed=gd.prototype;Ed.visitors.math=Td;function Td(Id){return ` $$
` +Id.value+ `
$$ ` }}}),Wi $ 1=C((Ra,qa)=>{var Ja=Mi $ 1(),ed= $ i $ 2();qa.exports=td;function td(rd){var od=rd||{};ed.call(this,od),Ja.call(this,od)}}),Ie $ 1=C((Ra,qa)=>{qa.exports=ed;var Ja=Object.prototype.hasOwnProperty;function ed(){for(var td={},rd=0;rd<arguments.length;rd++){var od=arguments[rd];for(var sd in od)Ja.call(od,sd)&&(td[sd]=od[sd])}return td}}),Ji $ 3=C((Ra,qa)=>{typeof Object.create=="function"?qa.exports=function(Ja,ed){ed&&(Ja.super_=ed,Ja.prototype=Object.create(ed.prototype,{constructor:{value:Ja,enumerable:!1,writable:!0,configurable:!0}}))}:qa.exports=function(Ja,ed){if(ed){Ja.super_=ed;var td=function(){};td.prototype=ed.prototype,Ja.prototype=new td,Ja.prototype.constructor=Ja}}}),Zi $ 1=C((Ra,qa)=>{var Ja=Ie $ 1(),ed=Ji $ 3();qa.exports=td;function td(rd){var od,sd,ld;ed(ud,rd),ed(cd,ud),od=ud.prototype;for(sd in od)ld=od[sd],ld&&typeof ld=="object"&&(od[sd]="concat"in ld?ld.concat():Ja(ld));return ud;function cd(_d){return rd.apply(this,_d)}function ud(){return this instanceof ud?rd.apply(this,arguments):new cd(arguments)}}}),ru $ 2=C((Ra,qa)=>{qa.exports=Ja;function Ja(ed,td,rd){return od;function od(){var sd=rd||this,ld=sd[ed];return sd[ed]=!td,cd;function cd(){sd[ed]=ld}}}}),nu $ 3=C((Ra,qa)=>{qa.exports=Ja;function Ja(ed){for(var td=String(ed),rd=[],od=/ \r ? \n | \r /g;od.exec(td);)rd.push(od.lastIndex);return rd.push(td.length+1),{toPoint:sd,toPosition:sd,toOffset:ld};function sd(cd){var ud=-1;if(cd>-1&&cd<rd[rd.length-1]){for(;++ud<rd.length;)if(rd[ud]>cd)return{line:ud+1,column:cd-(rd[ud-1]||0)+1,offset:cd}}return{}}function ld(cd){var ud=cd&&cd.line,_d=cd&&cd.column,yd;return!isNaN(ud)&&!isNaN(_d)&&ud-1 in rd&&(yd=(rd[ud-2]||0)+_d-1||0),yd>-1&&yd<rd[rd.length-1]?yd:-1}}}),uu $ 3=C((Ra,qa)=>{qa.exports=ed;var Ja=" \\ ";function ed(td,rd){return od;function od(sd){for(var ld=0,cd=sd.indexOf(Ja),ud=td[rd],_d=[],yd;cd!==-1;)_d.push(sd.slice(ld,cd)),ld=cd+1,yd=sd.charAt(ld),(!yd||ud.indexOf(yd)===-1)&&_d.push(Ja),cd=sd.indexOf(Ja,ld+1);return _d.push(sd.slice(ld)),_d.join("")}}}),au $ 2=C((Ra,qa)=>{qa.exports={AElig:"Æ",AMP:"&",Aacute:"Á",Acirc:"Â",Agrave:"À",Aring:"Å",Atilde:"Ã",Auml:"Ä",COPY:"©",Ccedil:"Ç",ETH:"Ð",Eacute:"É",Ecirc:"Ê",Egrave:"È",Euml:"Ë",GT:">",Iacute:"Í",Icirc:"Î",Igrave:"Ì",Iuml:"Ï",LT:"<",Ntilde:"Ñ",Oacute:"Ó",Ocirc:"Ô",Ograve:"Ò",Oslash:"Ø",Otilde:"Õ",Ouml:"Ö",QUOT:'"',REG:"®",THORN:"Þ",Uacute:"Ú",Ucirc:"Û",Ugrave:"Ù",Uuml:"Ü",Yacute:"Ý",aacute:"á",acirc:"â",acute:"´ ",aelig:"æ",agrave:"à",amp:"&",aring:"å",atilde:"ã",auml:"ä",brvbar:"¦",ccedil:"ç",cedil:"¸ ",cent:"¢",copy:"©",curren:"¤",deg:"°",divide:"÷",eacute:"é",ecirc:"ê",egrave:"è",eth:"ð",euml:"ë",frac12:"½",frac14:"¼",frac34:"¾",gt:">",iacute:"í",icirc:"î",iexcl:"¡",igrave:"ì",iquest:"¿",iuml:"ï",laquo:"«",lt:"<",macr:"¯",micro:"µ",middot:"·",nbsp:" ",not:"¬",ntilde:"ñ",oacute:"ó",ocirc:"ô",ograve:"ò",ordf:"ª",ordm:"º",oslash:"ø",otilde:"õ",ouml:"ö",para:"¶",plusmn:"±",pound:"£",quot:'"',raquo:"»",reg:"®",sect:"§",shy:" ",sup1:"¹",sup2:"²",sup3:"³",szlig:"ß",thorn:"þ",times:"× ",uacute:"ú",ucirc:"û",ugrave:"ù",uml:"¨",uuml:"ü",yacute:"ý",yen:"¥",yuml:"ÿ"}}),ou $ 2=C((Ra,qa)=>{qa.exports={0:"<22> ",128:"€",130:"‚ ",131:"ƒ",132:"„",133:"…",134:"†",135:"‡",136:"ˆ ",137:"‰",138:"Š",139:"‹ ",140:"Œ",142:"Ž",145:"‘ ",146:"’ ",147:"“",148:"”",149:"•",150:"– ",151:"—",152:"˜ ",153:"™",154:"š",155:"› ",156:"œ",158:"ž",159:"Ÿ"}}),Ne $ 1=C((Ra,qa)=>{qa.exports=Ja;function Ja(ed){var td=typeof ed=="string"?ed.charCodeAt(0):ed;return td>=48&&td<=57}}),lu $ 2=C((Ra,qa)=>{qa.exports=Ja;function Ja(ed){var td=typeof ed=="string"?ed.charCodeAt(0):ed;return td>=97&&td<=102||td>=65&&td<=70||td>=48&&td<=57}}),Ve $ 2=C((Ra,qa)=>{qa.exports=Ja;function Ja(ed){var td=typeof ed=="string"?ed.charCodeAt(0):ed;return td>=97&&td<=122||td>=65&&td<=90}}),pu $ 1=C((Ra,qa)=>{var Ja=Ve $ 2(),ed=Ne $ 1();qa.exports=td;function td(rd){return Ja(rd)||ed(rd)}}),du $ 2=C((Ra,qa)=>{qa.exports={AEli:"Æ",AElig:"Æ",AM:"&",AMP:"&",Aacut:"Á",Aacute:"Á",Abreve:"Ă",Acir:"Â",Acirc:"
` ,Nfr:"𝔑 ",NoBreak:" ",NonBreakingSpace:" ",Nopf:"ℕ ",Not:"⫬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",NotLeftTriangle:"⋪",NotLeftTriangleBar:"⧏̸",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangle:"⋫",NotRightTriangleBar:"⧐̸",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",Nscr:"𝒩 ",Ntild:"Ñ",Ntilde:"Ñ",Nu:"Ν ",OElig:"Œ",Oacut:"Ó",Oacute:"Ó",Ocir:"Ô",Ocirc:"Ô",Ocy:"О ",Odblac:"Ő",Ofr:"𝔒 ",Ograv:"Ò",Ograve:"Ò",Omacr:"Ō",Omega:"Ω",Omicron:"Ο ",Oopf:"𝕆 ",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘ ",Or:"⩔",Oscr:"𝒪 ",Oslas:"Ø",Oslash:"Ø",Otild:"Õ",Otilde:"Õ",Otimes:"⨷",Oum:"Ö",Ouml:"Ö",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",PartialD:"∂",Pcy:"П",Pfr:"𝔓 ",Phi:"Φ",Pi:"Π",PlusMinus:"±",Poincareplane:"ℌ ",Popf:"ℙ ",Pr:"⪻",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",Prime:"″",Product:"∏",Proportion:"∷",Proportional:"∝",Pscr:"𝒫 ",Psi:"Ψ",QUO:'"',QUOT:'"',Qfr:"𝔔 ",Qopf:"ℚ ",Qscr:"𝒬 ",RBarr:"⤐",RE:"®",REG:"®",Racute:"Ŕ",Rang:"⟫",Rarr:"↠",Rarrtl:"⤖",Rcaron:"Ř",Rcedil:"Ŗ",Rcy:"Р ",Re:"ℜ ",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",Rfr:"ℜ ",Rho:"Ρ ",RightAngleBracket:"⟩",RightArrow:"→",RightArrowBar:"⇥",RightArrowLeftArrow:"⇄",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVector:"⇂",RightDownVectorBar:"⥕",RightFloor:"⌋",RightTee:"⊢",RightTeeArrow:"↦",RightTeeVector:"⥛",RightTriangle:"⊳",RightTriangleBar:"⧐",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVector:"↾",RightUpVectorBar:"⥔",RightVector:"⇀",RightVectorBar:"⥓",Rightarrow:"⇒",Ropf:"ℝ ",RoundImplies:"⥰",Rrightarrow:"⇛",Rscr:"ℛ ",Rsh:"↱",RuleDelayed:"⧴",SHCHcy:"Щ",SHcy:"Ш",SOFTcy:"Ь ",Sacute:"Ś",Sc:"⪼",Scaron:"Š",Scedil:"Ş",Scirc:"Ŝ",Scy:"С ",Sfr:"𝔖 ",ShortDownArrow:"↓",ShortLeftArrow:"←",ShortRightArrow:"→",ShortUpArrow:"↑",Sigma:"Σ",SmallCircle:"∘",Sopf:"𝕊 ",Sqrt:"√",Square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",Sscr:"𝒮 ",Star:"⋆",Sub:"⋐",Subset:"⋐",SubsetEqual:"⊆",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",SuchThat:"∋",Sum:"∑",Sup:"⋑",Superset:"⊃",SupersetEqual:"⊇",Supset:"⋑",THOR:"Þ",THORN:"Þ",TRADE:"™",TSHcy:"Ћ",TScy:"Ц",Tab:" ",Tau:"Τ ",Tcaron:"Ť",Tcedil:"Ţ",Tcy:"Т ",Tfr:"𝔗 ",Therefore:"∴",Theta:"Θ",ThickSpace:" ",ThinSpace:" ",Tilde:"∼ ",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",Topf:"𝕋 ",TripleDot:"⃛",Tscr:"𝒯 ",Tstrok:"Ŧ",Uacut:"Ú",Uacute:"Ú",Uarr:"↟",Uarrocir:"⥉",Ubrcy:"Ў",Ubreve:"Ŭ",Ucir:"Û",Ucirc:"Û",Ucy:"У ",Udblac:"Ű",Ufr:"𝔘 ",Ugrav:"Ù",Ugrave:"Ù",Umacr:"Ū",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃ ",UnionPlus:"⊎",Uogon:"Ų",Uopf:"𝕌 ",UpArrow:"↑",UpArrowBar:"⤒",UpArrowDownArrow:"⇅",UpDownArrow:"↕",UpEquilibrium:"⥮",UpTee:"⊥",UpTeeArrow:"↥",Uparrow:"⇑",Updownarrow:"
` );hf!==-1;)Td++,df=hf,hf=Xd.indexOf( `
` ,hf+1);df===-1?Id+=Xd.length:Id=Xd.length-df,Td in _d&&(df!==-1?Id+=_d[Td]:Id<=_d[Td]&&(Id=_d[Td]+1))}function Vd(){var Xd=[],df=Td+1;return function(){for(var hf=Td+1;df<hf;)Xd.push((_d[df]||0)+1),df++;return Xd}}function Fd(){var Xd={line:Td,column:Id};return Xd.offset=ud.toOffset(Xd),Xd}function Ud(Xd){this.start=Xd,this.end=Fd()}function qd(Xd){ld.slice(0,Xd.length)!==Xd&&ud.file.fail(new Error("Incorrectly eaten value: please report this warning on https://git.io/vg5Ft"),Fd())}function Wd(){var Xd=Fd();return df;function df(hf,gf){var Ef=hf.position,wf=Ef?Ef.start:Xd, $ f=[],Tf=Ef&&Ef.end.line,bf=Xd.line;if(hf.position=new Ud(wf),Ef&&gf&&Ef.indent){if( $ f=Ef.indent,Tf<bf){for(;++Tf<bf;) $ f.push((_d[Tf]||0)+1); $ f.push(Xd.column)}gf= $ f.concat(gf)}return hf.position.indent=gf||[],hf}}function Qd(Xd,df){var hf=df?df.children:yd,gf=hf[hf.length-1],Ef;return gf&&Xd.type===gf.type&&(Xd.type==="text"||Xd.type==="blockquote")&&ed(gf)&&ed(Xd)&&(Ef=Xd.type==="text"?td:rd,Xd=Ef.call(ud,gf,Xd)),Xd!==gf&&hf.push(Xd),ud.atStart&&yd.length!==0&&ud.exitStart(),Xd}function Zd(Xd){var df=Vd(),hf=Wd(),gf=Fd();return qd(Xd),Ef.reset=wf,wf.test= $ f,Ef.test= $ f,ld=ld.slice(Xd.length),jd(Xd),df=df(),Ef;function Ef(Tf,bf){return hf(Qd(hf(Tf),bf),df)}function wf(){var Tf=Ef.apply(null,arguments);return Td=gf.line,Id=gf.column,ld=Xd+ld,Tf}function $ f(){var Tf=hf({});return Td=gf.line,Id=gf.column,ld=Xd+ld,Tf.position}}}}function ed(od){var sd,ld;return od.type!=="text"||!od.position?!0:(sd=od.position.start,ld=od.position.end,sd.line!==ld.line||ld.column-sd.column===od.value.length)}function td(od,sd){return od.value+=sd.value,od}function rd(od,sd){return this.options.commonmark||this.options.gfm?sd:(od.children=od.children.concat(sd.children),od)}}),Uu $ 2=C((Ra,qa)=>{qa.exports=rd;var Ja=[" \\ "," ` "," * "," { "," } "," [ "," ] "," ( "," ) "," # "," + "," - "," . "," ! "," _ "," > "],ed=Ja.concat([" ~ "," | " ] ) , td = ed . concat ( [ `
` ,'"'," $ ","%","&","'",",","/",":",";","<","=","?","@","^"]);rd.default=Ja,rd.gfm=ed,rd.commonmark=td;function rd(od){var sd=od||{};return sd.commonmark?td:sd.gfm?ed:Ja}}),Mu $ 1=C((Ra,qa)=>{qa.exports=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","iframe","legend","li","link","main","menu","menuitem","meta","nav","noframes","ol","optgroup","option","p","param","pre","section","source","title","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"]}),Rt $ 3=C((Ra,qa)=>{qa.exports={position:!0,gfm:!0,commonmark:!1,pedantic:!1,blocks:Mu $ 1()}}),Vu $ 2=C((Ra,qa)=>{var Ja=Ie $ 1(),ed=Uu $ 2(),td=Rt $ 3();qa.exports=rd;function rd(od){var sd=this,ld=sd.options,cd,ud;if(od==null)od={};else if(typeof od=="object")od=Ja(od);else throw new Error("Invalid value ` "+od+" ` for setting ` options ` ");for(cd in td){if(ud=od[cd],ud==null&&(ud=ld[cd]),cd!=="blocks"&&typeof ud!="boolean"||cd==="blocks"&&typeof ud!="object")throw new Error("Invalid value ` "+ud+" ` for setting ` options . "+cd+" ` ");od[cd]=ud}return sd.options=od,sd.escape=ed(od),sd}}),Hu $ 2=C((Ra,qa)=>{qa.exports=Ja;function Ja(sd){if(sd==null)return od;if(typeof sd=="string")return rd(sd);if(typeof sd=="object")return"length"in sd?td(sd):ed(sd);if(typeof sd=="function")return sd;throw new Error("Expected function, string, or object as test")}function ed(sd){return ld;function ld(cd){var ud;for(ud in sd)if(cd[ud]!==sd[ud])return!1;return!0}}function td(sd){for(var ld=[],cd=-1;++cd<sd.length;)ld[cd]=Ja(sd[cd]);return ud;function ud(){for(var _d=-1;++_d<ld.length;)if(ld[_d].apply(this,arguments))return!0;return!1}}function rd(sd){return ld;function ld(cd){return!!(cd&&cd.type===sd)}}function od(){return!0}}),Ku $ 2=C((Ra,qa)=>{qa.exports=Ja;function Ja(ed){return ed}}),Zu $ 3=C((Ra,qa)=>{qa.exports=sd;var Ja=Hu $ 2(),ed=Ku $ 2(),td=!0,rd="skip",od=!1;sd.CONTINUE=td,sd.SKIP=rd,sd.EXIT=od;function sd(cd,ud,_d,yd){var gd,Ed;typeof ud=="function"&&typeof _d!="function"&&(yd=_d,_d=ud,ud=null),Ed=Ja(ud),gd=yd?-1:1,Td(cd,null,[])();function Td(Id,Ad,Nd){var kd=typeof Id=="object"&&Id!==null?Id:{},Rd;return typeof kd.type=="string"&&(Rd=typeof kd.tagName=="string"?kd.tagName:typeof kd.name=="string"?kd.name:void 0,Md.displayName="node ("+ed(kd.type+(Rd?"<"+Rd+">":""))+")"),Md;function Md(){var Bd=Nd.concat(Id),jd=[],Vd,Fd;if((!ud||Ed(Id,Ad,Nd[Nd.length-1]||null))&&(jd=ld(_d(Id,Nd)),jd[0]===od))return jd;if(Id.children&&jd[0]!==rd)for(Fd=(yd?Id.children.length:-1)+gd;Fd>-1&&Fd<Id.children.length;){if(Vd=Td(Id.children[Fd],Fd,Bd)(),Vd[0]===od)return Vd;Fd=typeof Vd[1]=="number"?Vd[1]:Fd+gd}return jd}}}function ld(cd){return cd!==null&&typeof cd=="object"&&"length"in cd?cd:typeof cd=="number"?[td,cd]:[cd]}}),ra $ 2=C((Ra,qa)=>{qa.exports=od;var Ja=Zu $ 3(),ed=Ja.CONTINUE,td=Ja.SKIP,rd=Ja.EXIT;od.CONTINUE=ed,od.SKIP=td,od.EXIT=rd;function od(sd,ld,cd,ud){typeof ld=="function"&&typeof cd!="function"&&(ud=cd,cd=ld,ld=null),Ja(sd,ld,_d,ud);function _d(yd,gd){var Ed=gd[gd.length-1],Td=Ed?Ed.children.indexOf(yd):null;return cd(yd,Td,Ed)}}}),na $ 1=C((Ra,qa)=>{var Ja=ra $ 2();qa.exports=ed;function ed(od,sd){return Ja(od,sd?td:rd),od}function td(od){delete od.position}function rd(od){od.position=void 0}}),aa $ 2=C((Ra,qa)=>{var Ja=Ie $ 1(),ed=na $ 1();qa.exports=od;var td= `
` ,rd=/ \r \n | \r /g;function od(){var sd=this,ld=String(sd.file),cd={line:1,column:1,offset:0},ud=Ja(cd),_d;return ld=ld.replace(rd,td),ld.charCodeAt(0)===65279&&(ld=ld.slice(1),ud.column++,ud.offset++),_d={type:"root",children:sd.tokenizeBlock(ld,ud),position:{start:cd,end:sd.eof||Ja(cd)}},sd.options.position||ed(_d,!0),_d}}),sa $ 1=C((Ra,qa)=>{var Ja=/^[ \t ]*( \n | $ )/;qa.exports=ed;function ed(td,rd,od){for(var sd,ld="",cd=0,ud=rd.length;cd<ud&&(sd=Ja.exec(rd.slice(cd)),sd!=null);)cd+=sd[0].length,ld+=sd[0];if(ld!==""){if(od)return!0;td(ld)}}}),Hr $ 3=C((Ra,qa)=>{var Ja="",ed;qa.exports=td;function td(rd,od){if(typeof rd!="string")throw new TypeError("expected a string");if(od===1)return rd;if(od===2)return rd+rd;var sd=rd.length*od;if(ed!==rd||typeof ed>"u")ed=rd,Ja="";else if(Ja.length>=sd)return Ja.substr(0,sd);for(;sd>Ja.length&&od>1;)od&1&&(Ja+=rd),od>>=1,rd+=rd;return Ja+=rd,Ja=Ja.substr(0,sd),Ja}}),Mt $ 2=C((Ra,qa)=>{qa.exports=Ja;function Ja(ed){return String(ed).replace(/ \n + $ /,"")}}),pa $ 1=C((Ra,qa)=>{var Ja=Hr $ 3(),ed=Mt $ 2();qa.exports=cd;var td= `
` ,rd=" ",od=" ",sd=4,ld=Ja(od,sd);function cd(ud,_d,yd){for(var gd=-1,Ed=_d.length,Td="",Id="",Ad="",Nd="",kd,Rd,Md;++gd<Ed;)if(kd=_d.charAt(gd),Md)if(Md=!1,Td+=Ad,Id+=Nd,Ad="",Nd="",kd===td)Ad=kd,Nd=kd;else for(Td+=kd,Id+=kd;++gd<Ed;){if(kd=_d.charAt(gd),!kd||kd===td){Nd=kd,Ad=kd;break}Td+=kd,Id+=kd}else if(kd===od&&_d.charAt(gd+1)===kd&&_d.charAt(gd+2)===kd&&_d.charAt(gd+3)===kd)Ad+=ld,gd+=3,Md=!0;else if(kd===rd)Ad+=kd,Md=!0;else{for(Rd="";kd===rd||kd===od;)Rd+=kd,kd=_d.charAt(++gd);if(kd!==td)break;Ad+=Rd+kd,Nd+=kd}if(Id)return yd?!0:ud(Td)({type:"code",lang:null,meta:null,value:ed(Id)})}}),ma $ 1=C((Ra,qa)=>{qa.exports=cd;var Ja= `
` ,ed=" ",td=" ",rd="~",od=" ` ",sd=3,ld=4;function cd(ud,_d,yd){var gd=this,Ed=gd.options.gfm,Td=_d.length+1,Id=0,Ad=" ",Nd,kd,Rd,Md,Bd,jd,Vd,Fd,Ud,qd,Wd,Qd,Zd;if(Ed){for(;Id<Td&&(Rd=_d.charAt(Id),!(Rd!==td&&Rd!==ed));)Ad+=Rd,Id++;if(Qd=Id,Rd=_d.charAt(Id),!(Rd!==rd&&Rd!==od)){for(Id++,kd=Rd,Nd=1,Ad+=Rd;Id<Td&&(Rd=_d.charAt(Id),Rd===kd);)Ad+=Rd,Nd++,Id++;if(!(Nd<sd)){for(;Id<Td&&(Rd=_d.charAt(Id),!(Rd!==td&&Rd!==ed));)Ad+=Rd,Id++;for(Md=" ",Vd=" ";Id<Td&&(Rd=_d.charAt(Id),!(Rd===Ja||kd===od&&Rd===kd));)Rd===td||Rd===ed?Vd+=Rd:(Md+=Vd+Rd,Vd=" "),Id++;if(Rd=_d.charAt(Id),!(Rd&&Rd!==Ja)){if(yd)return!0;Zd=ud.now(),Zd.column+=Ad.length,Zd.offset+=Ad.length,Ad+=Md,Md=gd.decode.raw(gd.unescape(Md),Zd),Vd&&(Ad+=Vd),Vd=" ",qd=" ",Wd=" ",Fd=" ",Ud=" ";for(var Xd=!0;Id<Td;){if(Rd=_d.charAt(Id),Fd+=qd,Ud+=Wd,qd=" ",Wd=" ",Rd!==Ja){Fd+=Rd,Wd+=Rd,Id++;continue}for(Xd?(Ad+=Rd,Xd=!1):(qd+=Rd,Wd+=Rd),Vd=" ",Id++;Id<Td&&(Rd=_d.charAt(Id),Rd===td);)Vd+=Rd,Id++;if(qd+=Vd,Wd+=Vd.slice(Qd),!(Vd.length>=ld)){for(Vd=" ";Id<Td&&(Rd=_d.charAt(Id),Rd===kd);)Vd+=Rd,Id++;if(qd+=Vd,Wd+=Vd,!(Vd.length<Nd)){for(Vd=" ";Id<Td&&(Rd=_d.charAt(Id),!(Rd!==td&&Rd!==ed));)qd+=Rd,Wd+=Rd,Id++;if(!Rd||Rd===Ja)break}}}for(Ad+=Fd+qd,Id=-1,Td=Md.length;++Id<Td;)if(Rd=Md.charAt(Id),Rd===td||Rd===ed)Bd||(Bd=Md.slice(0,Id));else if(Bd){jd=Md.slice(Id);break}return ud(Ad)({type:" code ",lang:Bd||Md||null,meta:jd||null,value:Ud})}}}}}}),Re$4=C((Ra,qa)=>{Ra=qa.exports=Ja;function Ja(ed){return ed.trim?ed.trim():Ra.right(Ra.left(ed))}Ra.left=function(ed){return ed.trimLeft?ed.trimLeft():ed.replace(/^\s\s*/," " ) } , Ra . right = function ( ed ) { if ( ed . trimRight ) return ed . trimRight ( ) ; for ( var td = /\s/ , rd = ed . length ; td . test ( ed . charAt ( -- rd ) ) ; ) ; return ed . slice ( 0 , rd + 1 ) } } ) , Kr$3 = C ( ( Ra , qa ) => { qa . exports = Ja ; function Ja ( ed , td , rd , od ) { for ( var sd = ed . length , ld = - 1 , cd , ud ; ++ ld < sd ; ) if ( cd = ed [ ld ] , ud = cd [ 1 ] || { } , ! ( ud . pedantic !== void 0 && ud . pedantic !== rd . options . pedantic ) && ! ( ud . commonmark !== void 0 && ud . commonmark !== rd . options . commonmark ) && td [ cd [ 0 ] ] . apply ( rd , od ) ) return ! 0 ; return ! 1 } } ) , ba$2 = C ( ( Ra , qa ) => { var Ja = Re$4 ( ) , ed = Kr$3 ( ) ; qa . exports = ld ; var td = `
` ,rd=" ",od=" ",sd=">";function ld(cd,ud,_d){for(var yd=this,gd=yd.offset,Ed=yd.blockTokenizers,Td=yd.interruptBlockquote,Id=cd.now(),Ad=Id.line,Nd=ud.length,kd=[],Rd=[],Md=[],Bd,jd=0,Vd,Fd,Ud,qd,Wd,Qd,Zd,Xd;jd<Nd&&(Vd=ud.charAt(jd),!(Vd!==od&&Vd!==rd));)jd++;if(ud.charAt(jd)===sd){if(_d)return!0;for(jd=0;jd<Nd;){for(Ud=ud.indexOf(td,jd),Qd=jd,Zd=!1,Ud===-1&&(Ud=Nd);jd<Nd&&(Vd=ud.charAt(jd),!(Vd!==od&&Vd!==rd));)jd++;if(ud.charAt(jd)===sd?(jd++,Zd=!0,ud.charAt(jd)===od&&jd++):jd=Qd,qd=ud.slice(jd,Ud),!Zd&&!Ja(qd)){jd=Qd;break}if(!Zd&&(Fd=ud.slice(jd),ed(Td,Ed,yd,[cd,Fd,!0])))break;Wd=Qd===jd?qd:ud.slice(Qd,Ud),Md.push(jd-Qd),kd.push(Wd),Rd.push(qd),jd=Ud+1}for(jd=-1,Nd=Md.length,Bd=cd(kd.join(td));++jd<Nd;)gd[Ad]=(gd[Ad]||0)+Md[jd],Ad++;return Xd=yd.enterBlock(),Rd=yd.tokenizeBlock(Rd.join(td),Id),Xd(),Bd({type:"blockquote",children:Rd})}}}),xa $ 2=C((Ra,qa)=>{qa.exports=sd;var Ja= `
` ,ed=" ",td=" ",rd="#",od=6;function sd(ld,cd,ud){for(var _d=this,yd=_d.options.pedantic,gd=cd.length+1,Ed=-1,Td=ld.now(),Id="",Ad="",Nd,kd,Rd;++Ed<gd;){if(Nd=cd.charAt(Ed),Nd!==td&&Nd!==ed){Ed--;break}Id+=Nd}for(Rd=0;++Ed<=gd;){if(Nd=cd.charAt(Ed),Nd!==rd){Ed--;break}Id+=Nd,Rd++}if(!(Rd>od)&&!(!Rd||!yd&&cd.charAt(Ed+1)===rd)){for(gd=cd.length+1,kd="";++Ed<gd;){if(Nd=cd.charAt(Ed),Nd!==td&&Nd!==ed){Ed--;break}kd+=Nd}if(!(!yd&&kd.length===0&&Nd&&Nd!==Ja)){if(ud)return!0;for(Id+=kd,kd="",Ad="";++Ed<gd&&(Nd=cd.charAt(Ed),!(!Nd||Nd===Ja));){if(Nd!==td&&Nd!==ed&&Nd!==rd){Ad+=kd+Nd,kd="";continue}for(;Nd===td||Nd===ed;)kd+=Nd,Nd=cd.charAt(++Ed);if(!yd&&Ad&&!kd&&Nd===rd){Ad+=Nd;continue}for(;Nd===rd;)kd+=Nd,Nd=cd.charAt(++Ed);for(;Nd===td||Nd===ed;)kd+=Nd,Nd=cd.charAt(++Ed);Ed--}return Td.column+=Id.length,Td.offset+=Id.length,Id+=Ad+kd,ld(Id)({type:"heading",depth:Rd,children:_d.tokenizeInline(Ad,Td)})}}}}),Ba $ 1=C((Ra,qa)=>{qa.exports=cd;var Ja=" ",ed= `
` ,td=" ",rd="*",od="-",sd="_",ld=3;function cd(ud,_d,yd){for(var gd=-1,Ed=_d.length+1,Td="",Id,Ad,Nd,kd;++gd<Ed&&(Id=_d.charAt(gd),!(Id!==Ja&&Id!==td));)Td+=Id;if(!(Id!==rd&&Id!==od&&Id!==sd))for(Ad=Id,Td+=Id,Nd=1,kd="";++gd<Ed;)if(Id=_d.charAt(gd),Id===Ad)Nd++,Td+=kd+Ad,kd="";else if(Id===td)kd+=Id;else return Nd>=ld&&(!Id||Id===ed)?(Td+=kd,yd?!0:ud(Td)({type:"thematicBreak"})):void 0}}), $ t $ 2=C((Ra,qa)=>{qa.exports=od;var Ja=" ",ed=" ",td=1,rd=4;function od(sd){for(var ld=0,cd=0,ud=sd.charAt(ld),_d={},yd,gd=0;ud===Ja||ud===ed;){for(yd=ud===Ja?rd:td,cd+=yd,yd>1&&(cd=Math.floor(cd/yd)*yd);gd<cd;)_d[++gd]=ld;ud=sd.charAt(++ld)}return{indent:cd,stops:_d}}}),Oa $ 3=C((Ra,qa)=>{var Ja=Re $ 4(),ed=Hr $ 3(),td= $ t $ 2();qa.exports=ld;var rd= `
` ,od=" ",sd="!";function ld(cd,ud){var _d=cd.split(rd),yd=_d.length+1,gd=1/0,Ed=[],Td,Id,Ad;for(_d.unshift(ed(od,ud)+sd);yd--;)if(Id=td(_d[yd]),Ed[yd]=Id.stops,Ja(_d[yd]).length!==0)if(Id.indent)Id.indent>0&&Id.indent<gd&&(gd=Id.indent);else{gd=1/0;break}if(gd!==1/0)for(yd=_d.length;yd--;){for(Ad=Ed[yd],Td=gd;Td&&!(Td in Ad);)Td--;_d[yd]=_d[yd].slice(Ad[Td]+1)}return _d.shift(),_d.join(rd)}}),Ua $ 3=C((Ra,qa)=>{var Ja=Re $ 4(),ed=Hr $ 3(),td=Ne $ 1(),rd= $ t $ 2(),od=Oa $ 3(),sd=Kr $ 3();qa.exports=Vd;var ld="*",cd="_",ud="+",_d="-",yd=".",gd=" ",Ed= `
` ,Td=" ",Id=")",Ad="x",Nd=4,kd=/ \n \n (?! \s * $ )/,Rd=/^ \[ ([ X \t x])][ \t ]/,Md=/^([ \t ]*)([*+-]| \d +[.)])( {1,4}(?! )| | \t | $ |(?= \n ))([^ \n ]*)/,Bd=/^([ \t ]*)([*+-]| \d +[.)])([ \t ]+)/,jd=/^( {1,4}| \t )?/gm;function Vd(Wd,Qd,Zd){for(var Xd=this,df=Xd.options.commonmark,hf=Xd.options.pedantic,gf=Xd.blockTokenizers,Ef=Xd.interruptList,wf=0, $ f=Qd.length,Tf=null,bf,Sf,Lf,Pf,_f,yf,Bf,zf,Yf,jf,Of,Zf,yh,Wf,Cf,Af,Ff,ph,Dh,uh=!1,Ih,Ah,Rh,Jh;wf< $ f&&(Pf=Qd.charAt(wf),!(Pf!==Td&&Pf!==gd));)wf++;if(Pf=Qd.charAt(wf),Pf===ld||Pf===ud||Pf===_d)_f=Pf,Lf=!1;else{for(Lf=!0,Sf="";wf< $ f&&(Pf=Qd.charAt(wf),!!td(Pf));)Sf+=Pf,wf++;if(Pf=Qd.charAt(wf),!Sf||!(Pf===yd||df&&Pf===Id)||Zd&&Sf!=="1")return;Tf=parseInt(Sf,10),_f=Pf}if(Pf=Qd.charAt(++wf),!(Pf!==gd&&Pf!==Td&&(hf||Pf!==Ed&&Pf!==""))){if(Zd)return!0;for(wf=0,Wf=[],Cf=[],Af=[];wf< $ f;){for(yf=Qd.indexOf(Ed,wf),Bf=wf,zf=!1,Jh=!1,yf===-1&&(yf= $ f),bf=0;wf< $ f;){if(Pf=Qd.charAt(wf),Pf===Td)bf+=Nd-bf%Nd;else if(Pf===gd)bf++;else break;wf++}if(Ff&&bf>=Ff.indent&&(Jh=!0),Pf=Qd.charAt(wf),Yf=null,!Jh){if(Pf===ld||Pf===ud||Pf===_d)Yf=Pf,wf++,bf++;else{for(Sf="";wf< $ f&&(Pf=Qd.charAt(wf),!!td(Pf));)Sf+=Pf,wf++;Pf=Qd.charAt(wf),wf++,Sf&&(Pf===yd||df&&Pf===Id)&&(Yf=Pf,bf+=Sf.length+1)}if(Yf)if(Pf=Qd.charAt(wf),Pf===Td)bf+=Nd-bf%Nd,wf++;else if(Pf===gd){for(Rh=wf+Nd;wf<Rh&&Qd.charAt(wf)===gd;)wf++,bf++;wf===Rh&&Qd.charAt(wf)===gd&&(wf-=Nd-1,bf-=Nd-1)}else Pf!==Ed&&Pf!==""&&(Yf=null)}if(Yf){if(!hf&&_f!==Yf)break;zf=!0}else!df&&!Jh&&Qd.charAt(Bf)===gd?Jh=!0:df&&Ff&&(Jh=bf>=Ff.indent||bf>Nd),zf=!1,wf=Bf;if(Of=Qd.slice(Bf,yf),jf=Bf===wf?Of:Qd.slice(wf,yf),(Yf===ld||Yf===cd||Yf===_d)&&gf.thematicBreak.call(Xd,Wd,Of,!0))break;if(Zf=yh,yh=!zf&&!Ja(jf).length,Jh&&Ff)Ff.value=Ff.value.concat(Af,Of),Cf=Cf.concat(Af,Of),Af=[];else if(zf)Af.length!==0&&(uh=!0,Ff.value.push(""),Ff.trail=Af.concat()),Ff={value:[Of],indent:bf,trail:[]},Wf.push(Ff),Cf=Cf.concat(Af,Of),Af=[];else if(yh){if(Zf&&!df)break;Af.push(Of)}else{if(Zf||sd(Ef,gf,Xd,[Wd,Of,!0]))break;Ff.value=Ff.value.concat(Af,Of),Cf=Cf.concat(Af,Of),Af=[]}wf=yf+1}for(Ih=Wd(Cf.join(Ed)).reset({type:"list",ordered:Lf,start:Tf,spread:uh,children:[]}),ph=Xd.enterList(),Dh=Xd.enterBlock(),wf=-1, $ f=Wf.length;++wf< $ f;)Ff=Wf[wf].value.join(Ed),Ah=Wd.now(),Wd(Ff)(Fd(Xd,Ff,Ah),Ih),Ff=Wf[wf].trail.join(Ed),wf!== $ f-1&&(Ff+=Ed),Wd(Ff);return ph(),Dh(),Ih}}function Fd(Wd,Qd,Zd){var Xd=Wd.offset,df=Wd.options.pedantic?Ud:qd,hf=null,gf,Ef;return Qd=df.apply(null,arguments),Wd.options.gfm&&(gf=Qd.match(Rd),gf&&(Ef=gf[0].length,hf=gf[1].toLowerCase()===Ad,Xd[Zd.line]+=Ef,Qd=Qd.slice(Ef))),{type:"listItem",spread:kd.test(Qd),checked:hf,children:Wd.tokenizeBlock(Qd,Zd)}}function Ud(Wd,Qd,Zd){var Xd=Wd.offset,df=Zd.line;return Qd=Qd.replace(Bd,hf),df=Zd.line,Qd.replace(jd,hf);function hf(gf){return Xd[df]=(Xd[df]||0)+gf.length,df++,""}}function qd(Wd,Qd,Zd){var Xd=Wd.offset,df=Zd.line,hf,gf,Ef,wf, $ f,Tf,bf;for(Qd=Qd.replace(Md,Sf),wf=Qd.split(Ed), $ f=od(Qd,rd(hf).indent).split(Ed), $ f[0]=Ef,Xd[df]=(Xd[df]||0)+gf.length,df++,Tf=0,bf=wf.length;++Tf<bf;)Xd[df]=(Xd[df]||0)+wf[Tf].length- $ f[Tf].length,df++;return $ f.join(Ed);function Sf(Lf,Pf,_f,yf,Bf){return gf=Pf+_f+yf,Ef=Bf,Number(_f)<10&&gf.length%2===1&&(_f=gd+_f),hf=Pf+ed(gd,_f.length)+yf,hf+Ef}}}),Ga $ 2=C((Ra,qa)=>{qa.exports=ud;var Ja= `
` ,ed=" ",td=" ",rd="=",od="-",sd=3,ld=1,cd=2;function ud(_d,yd,gd){for(var Ed=this,Td=_d.now(),Id=yd.length,Ad=-1,Nd="",kd,Rd,Md,Bd,jd;++Ad<Id;){if(Md=yd.charAt(Ad),Md!==td||Ad>=sd){Ad--;break}Nd+=Md}for(kd="",Rd="";++Ad<Id;){if(Md=yd.charAt(Ad),Md===Ja){Ad--;break}Md===td||Md===ed?Rd+=Md:(kd+=Rd+Md,Rd="")}if(Td.column+=Nd.length,Td.offset+=Nd.length,Nd+=kd+Rd,Md=yd.charAt(++Ad),Bd=yd.charAt(++Ad),!(Md!==Ja||Bd!==rd&&Bd!==od)){for(Nd+=Md,Rd=Bd,jd=Bd===rd?ld:cd;++Ad<Id;){if(Md=yd.charAt(Ad),Md!==Bd){if(Md!==Ja)return;Ad--;break}Rd+=Md}return gd?!0:_d(Nd+Rd)({type:"heading",depth:jd,children:Ed.tokenizeInline(kd,Td)})}}}),Xt $ 2=C(Ra=>{var qa="[a-zA-Z_:][a-zA-Z0-9:._-]*",Ja="[^ \" '=<> ` \ \u0000 - \ \u0020 ] + ",ed=" '[^' ] * '",td=' "[^" ] * "',rd=" ( ? : "+Ja+" | "+ed+" | "+td+" ) ",od=" ( ? : \ \ s + "+qa+" ( ? : \ \ s *= \ \ s * "+rd+" ) ? ) ",sd=" < [ A - Za - z ] [ A - Za - z0 - 9 \ \ - ] * "+od+" * \ \ s * \ \ / ? > ",ld=" < \ \ / [ A - Za - z ] [ A - Za - z0 - 9 \ \ - ] * \ \ s * > ",cd=" <!-- -- > | <!-- ( ? : - ? [ ^ > - ] ) ( ? : - ? [ ^ - ] ) * -- > ",ud=" < [ ? ] . * ? [ ? ] > ",_d=" < ! [ A - Za - z ] + \ \ s + [ ^ > ] * > ",yd=" < ! \ \ [ CDATA \ \ [ [ \ \ s \ \ S ] * ? \ \ ] \ \ ] > ";Ra.openCloseTag=new RegExp(" ^ ( ? : "+sd+" | "+ld+" ) "),Ra.tag=new RegExp(" ^ ( ? : "+sd+" | "+ld+" | "+cd+" | "+ud+" | "+_d+" | "+yd+" ) ")}),Ka$1=C((Ra,qa)=>{var Ja=Xt$2().openCloseTag;qa.exports=kd;var ed=" ",td=" " , rd = `
` ,od="<",sd=/^<(script|pre|style)(?=( \s |>| $ ))/i,ld=/< \/ (script|pre|style)>/i,cd=/^<!--/,ud=/-->/,_d=/^< \? /,yd=/ \? >/,gd=/^<![A-Za-z]/,Ed=/>/,Td=/^<! \[ CDATA \[ /,Id=/]]>/,Ad=/^ $ /,Nd=new RegExp(Ja.source+" \\ s* $ ");function kd(Rd,Md,Bd){for(var jd=this,Vd=jd.options.blocks.join("|"),Fd=new RegExp("^</?("+Vd+")(?=( \\ s|/?>| $ ))","i"),Ud=Md.length,qd=0,Wd,Qd,Zd,Xd,df,hf,gf,Ef=[[sd,ld,!0],[cd,ud,!0],[_d,yd,!0],[gd,Ed,!0],[Td,Id,!0],[Fd,Ad,!0],[Nd,Ad,!1]];qd<Ud&&(Xd=Md.charAt(qd),!(Xd!==ed&&Xd!==td));)qd++;if(Md.charAt(qd)===od){for(Wd=Md.indexOf(rd,qd+1),Wd=Wd===-1?Ud:Wd,Qd=Md.slice(qd,Wd),Zd=-1,df=Ef.length;++Zd<df;)if(Ef[Zd][0].test(Qd)){hf=Ef[Zd];break}if(hf){if(Bd)return hf[2];if(qd=Wd,!hf[1].test(Qd))for(;qd<Ud;){if(Wd=Md.indexOf(rd,qd+1),Wd=Wd===-1?Ud:Wd,Qd=Md.slice(qd+1,Wd),hf[1].test(Qd)){Qd&&(qd=Wd);break}qd=Wd}return gf=Md.slice(0,qd),Rd(gf)({type:"html",value:gf})}}}}),ue $ 1=C((Ra,qa)=>{qa.exports=td;var Ja=String.fromCharCode,ed=/ \s /;function td(rd){return ed.test(typeof rd=="number"?Ja(rd):rd.charAt(0))}}),Qt $ 1=C((Ra,qa)=>{var Ja=xr $ 2();qa.exports=ed;function ed(td){return Ja(td).toLowerCase()}}),io $ 1=C((Ra,qa)=>{var Ja=ue $ 1(),ed=Qt $ 1();qa.exports=Ad;var td='"',rd="'",od=" \\ ",sd= `
` ,ld=" ",cd=" ",ud="[",_d="]",yd="(",gd=")",Ed=":",Td="<",Id=">";function Ad(Rd,Md,Bd){for(var jd=this,Vd=jd.options.commonmark,Fd=0,Ud=Md.length,qd="",Wd,Qd,Zd,Xd,df,hf,gf,Ef;Fd<Ud&&(Xd=Md.charAt(Fd),!(Xd!==cd&&Xd!==ld));)qd+=Xd,Fd++;if(Xd=Md.charAt(Fd),Xd===ud){for(Fd++,qd+=Xd,Zd="";Fd<Ud&&(Xd=Md.charAt(Fd),Xd!==_d);)Xd===od&&(Zd+=Xd,Fd++,Xd=Md.charAt(Fd)),Zd+=Xd,Fd++;if(!(!Zd||Md.charAt(Fd)!==_d||Md.charAt(Fd+1)!==Ed)){for(hf=Zd,qd+=Zd+_d+Ed,Fd=qd.length,Zd="";Fd<Ud&&(Xd=Md.charAt(Fd),!(Xd!==ld&&Xd!==cd&&Xd!==sd));)qd+=Xd,Fd++;if(Xd=Md.charAt(Fd),Zd="",Wd=qd,Xd===Td){for(Fd++;Fd<Ud&&(Xd=Md.charAt(Fd),!!Nd(Xd));)Zd+=Xd,Fd++;if(Xd=Md.charAt(Fd),Xd===Nd.delimiter)qd+=Td+Zd+Xd,Fd++;else{if(Vd)return;Fd-=Zd.length+1,Zd=""}}if(!Zd){for(;Fd<Ud&&(Xd=Md.charAt(Fd),!!kd(Xd));)Zd+=Xd,Fd++;qd+=Zd}if(Zd){for(gf=Zd,Zd="";Fd<Ud&&(Xd=Md.charAt(Fd),!(Xd!==ld&&Xd!==cd&&Xd!==sd));)Zd+=Xd,Fd++;if(Xd=Md.charAt(Fd),df=null,Xd===td?df=td:Xd===rd?df=rd:Xd===yd&&(df=gd),!df)Zd="",Fd=qd.length;else if(Zd){for(qd+=Zd+Xd,Fd=qd.length,Zd="";Fd<Ud&&(Xd=Md.charAt(Fd),Xd!==df);){if(Xd===sd){if(Fd++,Xd=Md.charAt(Fd),Xd===sd||Xd===df)return;Zd+=sd}Zd+=Xd,Fd++}if(Xd=Md.charAt(Fd),Xd!==df)return;Qd=qd,qd+=Zd+Xd,Fd++,Ef=Zd,Zd=""}else return;for(;Fd<Ud&&(Xd=Md.charAt(Fd),!(Xd!==ld&&Xd!==cd));)qd+=Xd,Fd++;if(Xd=Md.charAt(Fd),!Xd||Xd===sd)return Bd?!0:(Wd=Rd(Wd).test().end,gf=jd.decode.raw(jd.unescape(gf),Wd,{nonTerminated:!1}),Ef&&(Qd=Rd(Qd).test().end,Ef=jd.decode.raw(jd.unescape(Ef),Qd)),Rd(qd)({type:"definition",identifier:ed(hf),label:hf,title:Ef||null,url:gf}))}}}}function Nd(Rd){return Rd!==Id&&Rd!==ud&&Rd!==_d}Nd.delimiter=Id;function kd(Rd){return Rd!==ud&&Rd!==_d&&!Ja(Rd)}}),oo $ 3=C((Ra,qa)=>{var Ja=ue $ 1();qa.exports=Td;var ed=" ",td= `
` ,rd=" ",od="-",sd=":",ld=" \\ ",cd="|",ud=1,_d=2,yd="left",gd="center",Ed="right";function Td(Id,Ad,Nd){var kd=this,Rd,Md,Bd,jd,Vd,Fd,Ud,qd,Wd,Qd,Zd,Xd,df,hf,gf,Ef,wf, $ f,Tf,bf,Sf,Lf;if(kd.options.gfm){for(Rd=0,Ef=0,Fd=Ad.length+1,Ud=[];Rd<Fd;){if(bf=Ad.indexOf(td,Rd),Sf=Ad.indexOf(cd,Rd+1),bf===-1&&(bf=Ad.length),Sf===-1||Sf>bf){if(Ef<_d)return;break}Ud.push(Ad.slice(Rd,bf)),Ef++,Rd=bf+1}for(jd=Ud.join(td),Md=Ud.splice(1,1)[0]||[],Rd=0,Fd=Md.length,Ef--,Bd=!1,Zd=[];Rd<Fd;){if(Wd=Md.charAt(Rd),Wd===cd){if(Qd=null,Bd===!1){if(Lf===!1)return}else Zd.push(Bd),Bd=!1;Lf=!1}else if(Wd===od)Qd=!0,Bd=Bd||null;else if(Wd===sd)Bd===yd?Bd=gd:Qd&&Bd===null?Bd=Ed:Bd=yd;else if(!Ja(Wd))return;Rd++}if(Bd!==!1&&Zd.push(Bd),!(Zd.length<ud)){if(Nd)return!0;for(gf=-1, $ f=[],Tf=Id(jd).reset({type:"table",align:Zd,children: $ f});++gf<Ef;){for(wf=Ud[gf],Vd={type:"tableRow",children:[]},gf&&Id(td),Id(wf).reset(Vd,Tf),Fd=wf.length+1,Rd=0,qd="",Xd="",df=!0;Rd<Fd;){if(Wd=wf.charAt(Rd),Wd===ed||Wd===rd){Xd?qd+=Wd:Id(Wd),Rd++;continue}Wd===""||Wd===cd?df?Id(Wd):((Xd||Wd)&&!df&&(jd=Xd,qd.length>1&&(Wd?(jd+=qd.slice(0,-1),qd=qd.charAt(qd.length-1)):(jd+=qd,qd="")),hf=Id.now(),Id(jd)({type:"tableCell",children:kd.tokenizeInline(Xd,hf)},Vd)),Id(qd+Wd),qd="",Xd=""):(qd&&(Xd+=qd,qd=""),Xd+=Wd,Wd===ld&&Rd!==Fd-2&&(Xd+=wf.charAt(Rd+1),Rd++)),df=!1,Rd++}gf||Id(td+Md)}return Tf}}}}),lo $ 2=C((Ra,qa)=>{var Ja=Re $ 4(),ed=Mt $ 2(),td=Kr $ 3();qa.exports=cd;var rd=" ",od= `
` ,sd=" ",ld=4;function cd(ud,_d,yd){for(var gd=this,Ed=gd.options,Td=Ed.commonmark,Id=gd.blockTokenizers,Ad=gd.interruptParagraph,Nd=_d.indexOf(od),kd=_d.length,Rd,Md,Bd,jd,Vd;Nd<kd;){if(Nd===-1){Nd=kd;break}if(_d.charAt(Nd+1)===od)break;if(Td){for(jd=0,Rd=Nd+1;Rd<kd;){if(Bd=_d.charAt(Rd),Bd===rd){jd=ld;break}else if(Bd===sd)jd++;else break;Rd++}if(jd>=ld&&Bd!==od){Nd=_d.indexOf(od,Nd+1);continue}}if(Md=_d.slice(Nd+1),td(Ad,Id,gd,[ud,Md,!0]))break;if(Rd=Nd,Nd=_d.indexOf(od,Nd+1),Nd!==-1&&Ja(_d.slice(Rd,Nd))===""){Nd=Rd;break}}return Md=_d.slice(0,Nd),yd?!0:(Vd=ud.now(),Md=ed(Md),ud(Md)({type:"paragraph",children:gd.tokenizeInline(Md,Vd)}))}}),Do $ 1=C((Ra,qa)=>{qa.exports=Ja;function Ja(ed,td){return ed.indexOf(" \\ ",td)}}),Fo $ 1=C((Ra,qa)=>{var Ja=Do $ 1();qa.exports=rd,rd.locator=Ja;var ed= `
` ,td=" \\ ";function rd(od,sd,ld){var cd=this,ud,_d;if(sd.charAt(0)===td&&(ud=sd.charAt(1),cd.escape.indexOf(ud)!==-1))return ld?!0:(ud===ed?_d={type:"break"}:_d={type:"text",value:ud},od(td+ud)(_d))}}),tn $ 2=C((Ra,qa)=>{qa.exports=Ja;function Ja(ed,td){return ed.indexOf("<",td)}}),yo $ 2=C((Ra,qa)=>{var Ja=ue $ 1(),ed=pr $ 1(),td=tn $ 2();qa.exports=_d,_d.locator=td,_d.notInLink=!0;var rd="<",od=">",sd="@",ld="/",cd="mailto:",ud=cd.length;function _d(yd,gd,Ed){var Td=this,Id="",Ad=gd.length,Nd=0,kd="",Rd=!1,Md="",Bd,jd,Vd,Fd,Ud;if(gd.charAt(0)===rd){for(Nd++,Id=rd;Nd<Ad&&(Bd=gd.charAt(Nd),!(Ja(Bd)||Bd===od||Bd===sd||Bd===":"&&gd.charAt(Nd+1)===ld));)kd+=Bd,Nd++;if(kd){if(Md+=kd,kd="",Bd=gd.charAt(Nd),Md+=Bd,Nd++,Bd===sd)Rd=!0;else{if(Bd!==":"||gd.charAt(Nd+1)!==ld)return;Md+=ld,Nd++}for(;Nd<Ad&&(Bd=gd.charAt(Nd),!(Ja(Bd)||Bd===od));)kd+=Bd,Nd++;if(Bd=gd.charAt(Nd),!(!kd||Bd!==od))return Ed?!0:(Md+=kd,Vd=Md,Id+=Md+Bd,jd=yd.now(),jd.column++,jd.offset++,Rd&&(Md.slice(0,ud).toLowerCase()===cd?(Vd=Vd.slice(ud),jd.column+=ud,jd.offset+=ud):Md=cd+Md),Fd=Td.inlineTokenizers,Td.inlineTokenizers={text:Fd.text},Ud=Td.enterLink(),Vd=Td.tokenizeInline(Vd,jd),Td.inlineTokenizers=Fd,Ud(),yd(Id)({type:"link",title:null,url:ed(Md,{nonTerminated:!1}),children:Vd}))}}}}),xo $ 2=C((Ra,qa)=>{qa.exports=Ja;function Ja(ed,td){var rd=String(ed),od=0,sd;if(typeof td!="string")throw new Error("Expected character");for(sd=rd.indexOf(td);sd!==-1;)od++,sd=rd.indexOf(td,sd+td.length);return od}}),Bo $ 1=C((Ra,qa)=>{qa.exports=ed;var Ja=["www.","http://","https://"];function ed(td,rd){var od=-1,sd,ld,cd;if(!this.options.gfm)return od;for(ld=Ja.length,sd=-1;++sd<ld;)cd=td.indexOf(Ja[sd],rd),cd!==-1&&(od===-1||cd<od)&&(od=cd);return od}}),Oo $ 1=C((Ra,qa)=>{var Ja=xo $ 2(),ed=pr $ 1(),td=Ne $ 1(),rd=Ve $ 2(),od=ue $ 1(),sd=Bo $ 1();qa.exports=jd,jd.locator=sd,jd.notInLink=!0;var ld=33,cd=38,ud=41,_d=42,yd=44,gd=45,Ed=46,Td=58,Id=59,Ad=63,Nd=60,kd=95,Rd=126,Md="(",Bd=")";function jd(Vd,Fd,Ud){var qd=this,Wd=qd.options.gfm,Qd=qd.inlineTokenizers,Zd=Fd.length,Xd=-1,df=!1,hf,gf,Ef,wf, $ f,Tf,bf,Sf,Lf,Pf,_f,yf,Bf,zf;if(Wd){if(Fd.slice(0,4)==="www.")df=!0,wf=4;else if(Fd.slice(0,7).toLowerCase()==="http://")wf=7;else if(Fd.slice(0,8).toLowerCase()==="https://")wf=8;else return;for(Xd=wf-1,Ef=wf,hf=[];wf<Zd;){if(bf=Fd.charCodeAt(wf),bf===Ed){if(Xd===wf-1)break;hf.push(wf),Xd=wf,wf++;continue}if(td(bf)||rd(bf)||bf===gd||bf===kd){wf++;continue}break}if(bf===Ed&&(hf.pop(),wf--),hf[0]!==void 0&&(gf=hf.length<2?Ef:hf[hf.length-2]+1,Fd.slice(gf,wf).indexOf("_")===-1)){if(Ud)return!0;for(Sf=wf, $ f=wf;wf<Zd&&(bf=Fd.charCodeAt(wf),!(od(bf)||bf===Nd));)wf++,bf===ld||bf===_d||bf===yd||bf===Ed||bf===Td||bf===Ad||bf===kd||bf===Rd||(Sf=wf);if(wf=Sf,Fd.charCodeAt(wf-1)===ud)for(Tf=Fd.slice( $ f,wf),Lf=Ja(Tf,Md),Pf=Ja(Tf,Bd);Pf>Lf;)wf= $ f+Tf.lastIndexOf(Bd),Tf=Fd.slice( $ f,wf),Pf--;if(Fd.charCodeAt(wf-1)===Id&&(wf--,rd(Fd.charCodeAt(wf-1)))){for(Sf=wf-2;rd(Fd.charCodeAt(Sf));)Sf--;Fd.charCodeAt(Sf)===cd&&(wf=Sf)}return _f=Fd.slice(0,wf),Bf=ed(_f,{nonTerminated:!1}),df&&(Bf="http://"+Bf),zf=qd.enterLink(),qd.inlineTokenizers={text:Qd.text},yf=qd.tokenizeInline(_f,Vd.now()),qd.inlineTokenizers=Qd,zf(),Vd(_f)({type:"link",title:null,url:Bf,children:yf})}}}}),No $ 1=C((Ra,qa)=>{var Ja=Ne $ 1(),ed=Ve $ 2(),td=43,rd=45,od=46,sd=95;qa.exports=ld;function ld(ud,_d){var yd=this,gd,Ed;if(!this.options.gfm||(gd=ud.indexOf("@",_d),gd===-1))return-1;if(Ed=gd,Ed===_d||!cd(ud.charCodeAt(Ed-1)))return ld.call(yd,ud,gd+1);for(;Ed>_d&&cd(ud.charCodeAt(Ed-1));)Ed--;return Ed}function cd(ud){return Ja(ud)||ed(ud)||ud===td||ud===rd||ud===od||ud===sd}}),Mo $ 2=C((Ra,qa)=>{var Ja=pr $ 1(),ed=Ne $ 1(),td=Ve $ 2(),rd=No $ 1();qa.exports=_d,_d.locator=rd,_d.notInLink=!0;var od=43,sd=45,ld=46,cd=64,ud=95;function _d(yd,gd,Ed){var Td=this,Id=Td.options.gfm,Ad=Td.inlineTokenizers,Nd=0,kd=gd.length,Rd=-1,Md,Bd,jd,Vd;if(Id){for(Md=gd.charCodeAt(Nd);ed(Md)||td(Md)||Md===od||Md===sd||Md===ld||Md===ud;)Md=gd.charCodeAt(++Nd);if(Nd!==0&&Md===cd){for(Nd++;Nd<kd;){if(Md=gd.charCodeAt(Nd),ed(Md)||td(Md)||Md===sd||Md===ld||Md===ud){Nd++,Rd===-1&&Md===ld&&(Rd=Nd)
` ,rd="!",od='"',sd="'",ld="(",cd=")",ud="<",_d=">",yd="[",gd=" \\ ",Ed="]",Td=" ` ";function Id(Ad,Nd,kd){var Rd=this,Md=" ",Bd=0,jd=Nd.charAt(0),Vd=Rd.options.pedantic,Fd=Rd.options.commonmark,Ud=Rd.options.gfm,qd,Wd,Qd,Zd,Xd,df,hf,gf,Ef,wf,$f,Tf,bf,Sf,Lf,Pf,_f,yf;if(jd===rd&&(gf=!0,Md=jd,jd=Nd.charAt(++Bd)),jd===yd&&!(!gf&&Rd.inLink)){for(Md+=jd,Sf=" ",Bd++,$f=Nd.length,Pf=Ad.now(),bf=0,Pf.column+=Bd,Pf.offset+=Bd;Bd<$f;){if(jd=Nd.charAt(Bd),df=jd,jd===Td){for(Wd=1;Nd.charAt(Bd+1)===Td;)df+=jd,Bd++,Wd++;Qd?Wd>=Qd&&(Qd=0):Qd=Wd}else if(jd===gd)Bd++,df+=Nd.charAt(Bd);else if((!Qd||Ud)&&jd===yd)bf++;else if((!Qd||Ud)&&jd===Ed)if(bf)bf--;else{if(Nd.charAt(Bd+1)!==ld)return;df+=ld,qd=!0,Bd++;break}Sf+=df,df=" ",Bd++}if(qd){for(Ef=Sf,Md+=Sf+df,Bd++;Bd<$f&&(jd=Nd.charAt(Bd),!!Ja(jd));)Md+=jd,Bd++;if(jd=Nd.charAt(Bd),Sf=" ",Zd=Md,jd===ud){for(Bd++,Zd+=ud;Bd<$f&&(jd=Nd.charAt(Bd),jd!==_d);){if(Fd&&jd===td)return;Sf+=jd,Bd++}if(Nd.charAt(Bd)!==_d)return;Md+=ud+Sf+_d,Lf=Sf,Bd++}else{for(jd=null,df=" ";Bd<$f&&(jd=Nd.charAt(Bd),!(df&&(jd===od||jd===sd||Fd&&jd===ld)));){if(Ja(jd)){if(!Vd)break;df+=jd}else{if(jd===ld)bf++;else if(jd===cd){if(bf===0)break;bf--}Sf+=df,df=" ",jd===gd&&(Sf+=gd,jd=Nd.charAt(++Bd)),Sf+=jd}Bd++}Md+=Sf,Lf=Sf,Bd=Md.length}for(Sf=" ";Bd<$f&&(jd=Nd.charAt(Bd),!!Ja(jd));)Sf+=jd,Bd++;if(jd=Nd.charAt(Bd),Md+=Sf,Sf&&(jd===od||jd===sd||Fd&&jd===ld))if(Bd++,Md+=jd,Sf=" ",wf=jd===ld?cd:jd,Xd=Md,Fd){for(;Bd<$f&&(jd=Nd.charAt(Bd),jd!==wf);)jd===gd&&(Sf+=gd,jd=Nd.charAt(++Bd)),Bd++,Sf+=jd;if(jd=Nd.charAt(Bd),jd!==wf)return;for(Tf=Sf,Md+=Sf+jd,Bd++;Bd<$f&&(jd=Nd.charAt(Bd),!!Ja(jd));)Md+=jd,Bd++}else for(df=" ";Bd<$f;){if(jd=Nd.charAt(Bd),jd===wf)hf&&(Sf+=wf+df,df=" "),hf=!0;else if(!hf)Sf+=jd;else if(jd===cd){Md+=Sf+wf+df,Tf=Sf;break}else Ja(jd)?df+=jd:(Sf+=wf+df+jd,df=" ",hf=!1);Bd++}if(Nd.charAt(Bd)===cd)return kd?!0:(Md+=cd,Lf=Rd.decode.raw(Rd.unescape(Lf),Ad(Zd).test().end,{nonTerminated:!1}),Tf&&(Xd=Ad(Xd).test().end,Tf=Rd.decode.raw(Rd.unescape(Tf),Xd)),yf={type:gf?" image ":" link ",title:Tf||null,url:Lf},gf?yf.alt=Rd.decode.raw(Rd.unescape(Ef),Pf)||null:(_f=Rd.enterLink(),yf.children=Rd.tokenizeInline(Ef,Pf),_f()),Ad(Md)(yf))}}}}),rs$1=C((Ra,qa)=>{var Ja=ue$1(),ed=dn$2(),td=Qt$1();qa.exports=Ed,Ed.locator=ed;var rd=" link ",od=" image ",sd=" shortcut ",ld=" collapsed ",cd=" full ",ud=" ! ",_d=" [ ",yd=" \ \ ",gd=" ] ";function Ed(Td,Id,Ad){var Nd=this,kd=Nd.options.commonmark,Rd=Id.charAt(0),Md=0,Bd=Id.length,jd=" ",Vd=" ",Fd=rd,Ud=sd,qd,Wd,Qd,Zd,Xd,df,hf,gf;if(Rd===ud&&(Fd=od,Vd=Rd,Rd=Id.charAt(++Md)),Rd===_d){for(Md++,Vd+=Rd,df=" ",gf=0;Md<Bd;){if(Rd=Id.charAt(Md),Rd===_d)hf=!0,gf++;else if(Rd===gd){if(!gf)break;gf--}Rd===yd&&(df+=yd,Rd=Id.charAt(++Md)),df+=Rd,Md++}if(jd=df,qd=df,Rd=Id.charAt(Md),Rd===gd){if(Md++,jd+=Rd,df=" ",!kd)for(;Md<Bd&&(Rd=Id.charAt(Md),!!Ja(Rd));)df+=Rd,Md++;if(Rd=Id.charAt(Md),Rd===_d){for(Wd=" ",df+=Rd,Md++;Md<Bd&&(Rd=Id.charAt(Md),!(Rd===_d||Rd===gd));)Rd===yd&&(Wd+=yd,Rd=Id.charAt(++Md)),Wd+=Rd,Md++;Rd=Id.charAt(Md),Rd===gd?(Ud=Wd?cd:ld,df+=Wd+Rd,Md++):Wd=" ",jd+=df,df=" "}else{if(!qd)return;Wd=qd}if(!(Ud!==cd&&hf))return jd=Vd+jd,Fd===rd&&Nd.inLink?null:Ad?!0:(Qd=Td.now(),Qd.column+=Vd.length,Qd.offset+=Vd.length,Wd=Ud===cd?Wd:qd,Zd={type:Fd+" Reference ",identifier:td(Wd),label:Wd,referenceType:Ud},Fd===rd?(Xd=Nd.enterLink(),Zd.children=Nd.tokenizeInline(qd,Qd),Xd()):Zd.alt=Nd.decode.raw(Nd.unescape(qd),Qd)||null,Td(jd)(Zd))}}}}),ns$1=C((Ra,qa)=>{qa.exports=Ja;function Ja(ed,td){var rd=ed.indexOf(" * * ",td),od=ed.indexOf(" _ _ ",td);return od===-1?rd:rd===-1||od<rd?od:rd}}),os$1=C((Ra,qa)=>{var Ja=Re$4(),ed=ue$1(),td=ns$1();qa.exports=ld,ld.locator=td;var rd=" \ \ ",od=" * ",sd=" _ ";function ld(cd,ud,_d){var yd=this,gd=0,Ed=ud.charAt(gd),Td,Id,Ad,Nd,kd,Rd,Md;if(!(Ed!==od&&Ed!==sd||ud.charAt(++gd)!==Ed)&&(Id=yd.options.pedantic,Ad=Ed,kd=Ad+Ad,Rd=ud.length,gd++,Nd=" ",Ed=" ",!(Id&&ed(ud.charAt(gd)))))for(;gd<Rd;){if(Md=Ed,Ed=ud.charAt(gd),Ed===Ad&&ud.charAt(gd+1)===Ad&&(!Id||!ed(Md))&&(Ed=ud.charAt(gd+2),Ed!==Ad))return Ja(Nd)?_d?!0:(Td=cd.now(),Td.column+=2,Td.offset+=2,cd(kd+Nd+kd)({type:" strong " , children : yd . tokenizeInline ( Nd , Td ) } ) ) : void
2024-08-30 15:19:18 +08:00
` ,td);rd>td&&ed.charAt(rd-1)===" ";)rd--;return rd}}),Os $ 3=C((Ra,qa)=>{var Ja=Ts $ 2();qa.exports=od,od.locator=Ja;var ed=" ",td= `
2024-08-31 11:28:56 +08:00
` ,rd=2;function od(sd,ld,cd){for(var ud=ld.length,_d=-1,yd="",gd;++_d<ud;){if(gd=ld.charAt(_d),gd===td)return _d<rd?void 0:cd?!0:(yd+=gd,sd(yd)({type:"break"}));if(gd!==ed)return;yd+=gd}}}),Ls $ 3=C((Ra,qa)=>{qa.exports=Ja;function Ja(ed,td,rd){var od=this,sd,ld,cd,ud,_d,yd,gd,Ed,Td,Id;if(rd)return!0;for(sd=od.inlineMethods,ud=sd.length,ld=od.inlineTokenizers,cd=-1,Td=td.length;++cd<ud;)Ed=sd[cd],!(Ed==="text"||!ld[Ed])&&(gd=ld[Ed].locator,gd||ed.file.fail("Missing locator: ` "+Ed+" ` "),yd=gd.call(od,td,1),yd!==-1&&yd<Td&&(Td=yd));_d=td.slice(0,Td),Id=ed.now(),od.decode(_d,Id,Ad);function Ad(Nd,kd,Rd){ed(Rd||Nd)({type:"text",value:Nd})}}}),Us $ 2=C((Ra,qa)=>{var Ja=Ie $ 1(),ed=ru $ 2(),td=nu $ 3(),rd=uu $ 3(),od=Ou $ 1(),sd=Iu $ 1();qa.exports=ld;function ld(_d,yd){this.file=yd,this.offset={},this.options=Ja(this.options),this.setOptions({}),this.inList=!1,this.inBlock=!1,this.inLink=!1,this.atStart=!0,this.toOffset=td(yd).toOffset,this.unescape=rd(this,"escape"),this.decode=od(this)}var cd=ld.prototype;cd.setOptions=Vu $ 2(),cd.parse=aa $ 2(),cd.options=Rt $ 3(),cd.exitStart=ed("atStart",!0),cd.enterList=ed("inList",!1),cd.enterLink=ed("inLink",!1),cd.enterBlock=ed("inBlock",!1),cd.interruptParagraph=[["thematicBreak"],["list"],["atxHeading"],["fencedCode"],["blockquote"],["html"],["setextHeading",{commonmark:!1}],["definition",{commonmark:!1}]],cd.interruptList=[["atxHeading",{pedantic:!1}],["fencedCode",{pedantic:!1}],["thematicBreak",{pedantic:!1}],["definition",{commonmark:!1}]],cd.interruptBlockquote=[["indentedCode",{commonmark:!0}],["fencedCode",{commonmark:!0}],["atxHeading",{commonmark:!0}],["setextHeading",{commonmark:!0}],["thematicBreak",{commonmark:!0}],["html",{commonmark:!0}],["list",{commonmark:!0}],["definition",{commonmark:!1}]],cd.blockTokenizers={blankLine:sa $ 1(),indentedCode:pa $ 1(),fencedCode:ma $ 1(),blockquote:ba $ 2(),atxHeading:xa $ 2(),thematicBreak:Ba $ 1(),list:Ua $ 3(),setextHeading:Ga $ 2(),html:Ka $ 1(),definition:io $ 1(),table:oo $ 3(),paragraph:lo $ 2()},cd.inlineTokenizers={escape:Fo $ 1(),autoLink:yo $ 2(),url:Oo $ 1(),email:Mo $ 2(),html:Vo $ 1(),link:Qo $ 1(),reference:rs $ 1(),strong:os $ 1(),emphasis:ms $ 2(),deletion:ys $ 2(),code:Bs $ 2(),break:Os $ 3(),text:Ls $ 3()},cd.blockMethods=ud(cd.blockTokenizers),cd.inlineMethods=ud(cd.inlineTokenizers),cd.tokenizeBlock=sd("block"),cd.tokenizeInline=sd("inline"),cd.tokenizeFactory=sd;function ud(_d){var yd=[],gd;for(gd in _d)yd.push(gd);return yd}}),Gs $ 1=C((Ra,qa)=>{var Ja=Zi $ 1(),ed=Ie $ 1(),td=Us $ 2();qa.exports=rd,rd.Parser=td;function rd(od){var sd=this.data("settings"),ld=Ja(td);ld.prototype.options=ed(ld.prototype.options,sd,od),this.Parser=ld}}),js $ 2=C((Ra,qa)=>{qa.exports=Ja;function Ja(ed){if(ed)throw ed}}),yn $ 2=C((Ra,qa)=>{qa.exports=function(Ja){return Ja!=null&&Ja.constructor!=null&&typeof Ja.constructor.isBuffer=="function"&&Ja.constructor.isBuffer(Ja)}}),rc $ 2=C((Ra,qa)=>{var Ja=Object.prototype.hasOwnProperty,ed=Object.prototype.toString,td=Object.defineProperty,rd=Object.getOwnPropertyDescriptor,od=function(ud){return typeof Array.isArray=="function"?Array.isArray(ud):ed.call(ud)==="[object Array]"},sd=function(ud){if(!ud||ed.call(ud)!=="[object Object]")return!1;var _d=Ja.call(ud,"constructor"),yd=ud.constructor&&ud.constructor.prototype&&Ja.call(ud.constructor.prototype,"isPrototypeOf");if(ud.constructor&&!_d&&!yd)return!1;var gd;for(gd in ud);return typeof gd>"u"||Ja.call(ud,gd)},ld=function(ud,_d){td&&_d.name==="__proto__"?td(ud,_d.name,{enumerable:!0,configurable:!0,value:_d.newValue,writable:!0}):ud[_d.name]=_d.newValue},cd=function(ud,_d){if(_d==="__proto__")if(Ja.call(ud,_d)){if(rd)return rd(ud,_d).value}else return;return ud[_d]};qa.exports=function ud(){var _d,yd,gd,Ed,Td,Id,Ad=arguments[0],Nd=1,kd=arguments.length,Rd=!1;for(typeof Ad=="boolean"&&(Rd=Ad,Ad=arguments[1]||{},Nd=2),(Ad==null||typeof Ad!="object"&&typeof Ad!="function")&&(Ad={});Nd<kd;++Nd)if(_d=arguments[Nd],_d!=null)for(yd in _d)gd=cd(Ad,yd),Ed=cd(_d,yd),Ad!==Ed&&(Rd&&Ed&&(sd(Ed)||(Td=od(Ed)))?(Td?(Td=!1,Id=gd&&od(gd)?gd:[]):Id=gd&&sd(gd)?gd:{},ld(Ad,{name:yd,newValue:ud(Rd,Id,Ed)})):typeof Ed<"u"&&ld(Ad,{name:yd,newV
2024-08-30 15:19:18 +08:00
Expected it to be 'string' or 'object' . ` ;if(Y $ 1(Ra))throw new Error("doc is valid.");let Ja=Object.prototype.toString.call(Ra);if(Ja!=="[object Object]")return ` Unexpected doc '${Ja}' . ` ;let ed=ll $ 2([...wr $ 2].map(td=> ` '${td}' ` ));return ` Unexpected doc . type '${Ra.type}' .
2024-08-31 11:28:56 +08:00
Expected it to be $ { ed } . ` }var Dt $ 3=class extends Error{constructor(Ja){super(fl $ 2(Ja));e1(this,"name","InvalidDocError");this.doc=Ja}},qe $ 2=Dt $ 3,Nn $ 2={};function Dl $ 2(Ra,qa,Ja,ed){let td=[Ra];for(;td.length>0;){let rd=td.pop();if(rd===Nn $ 2){Ja(td.pop());continue}Ja&&td.push(rd,Nn $ 2);let od=Y $ 1(rd);if(!od)throw new qe $ 2(rd);if((qa==null?void 0:qa(rd))!==!1)switch(od){case H $ 1:case J $ 1:{let sd=od===H $ 1?rd:rd.parts;for(let ld=sd.length,cd=ld-1;cd>=0;--cd)td.push(sd[cd]);break}case X $ 1:td.push(rd.flatContents,rd.breakContents);break;case K $ 2:if(ed&&rd.expandedStates)for(let sd=rd.expandedStates.length,ld=sd-1;ld>=0;--ld)td.push(rd.expandedStates[ld]);else td.push(rd.contents);break;case re $ 3:case ee $ 1:case se $ 1:case fe $ 2:case ce $ 2:td.push(rd.contents);break;case $ $ 1:case ge $ 3:case oe $ 2:case le $ 2:case W $ 1:case te $ 2:break;default:throw new qe $ 2(rd)}}}var Rn $ 2=Dl $ 2,Un $ 2=()=>{},kr $ 2=Un $ 2;function Ze $ 2(Ra){return{type:ee $ 1,contents:Ra}}function ve $ 2(Ra,qa){return{type:re $ 3,contents:qa,n:Ra}}function ze $ 2(Ra,qa={}){return kr $ 2(qa.expandedStates),{type:K $ 2,id:qa.id,contents:Ra,break:!!qa.shouldBreak,expandedStates:qa.expandedStates}}function _e $ 3(Ra){return ve $ 2({type:"root"},Ra)}function Ee $ 2(Ra){return{type:J $ 1,parts:Ra}}function zn $ 2(Ra,qa="",Ja={}){return{type:X $ 1,breakContents:Ra,flatContents:qa,groupId:Ja.groupId}}var er $ 1={type:te $ 2},rr $ 1={type:W $ 1,hard:!0},pl $ 2={type:W $ 1,hard:!0,literal:!0},Br $ 3={type:W $ 1},qr $ 2={type:W $ 1,soft:!0},L $ 2=[rr $ 1,er $ 1],tr $ 1=[pl $ 2,er $ 1];function Tr $ 2(Ra,qa){let Ja=[];for(let ed=0;ed<qa.length;ed++)ed!==0&&Ja.push(Ra),Ja.push(qa[ed]);return Ja}function dl $ 2(Ra,qa){if(typeof Ra=="string")return qa(Ra);let Ja=new Map;return ed(Ra);function ed(rd){if(Ja.has(rd))return Ja.get(rd);let od=td(rd);return Ja.set(rd,od),od}function td(rd){switch(Y $ 1(rd)){case H $ 1:return qa(rd.map(ed));case J $ 1:return qa({...rd,parts:rd.parts.map(ed)});case X $ 1:return qa({...rd,breakContents:ed(rd.breakContents),flatContents:ed(rd.flatContents)});case K $ 2:{let{expandedStates:od,contents:sd}=rd;return od?(od=od.map(ed),sd=od[0]):sd=ed(sd),qa({...rd,contents:sd,expandedStates:od})}case re $ 3:case ee $ 1:case se $ 1:case fe $ 2:case ce $ 2:return qa({...rd,contents:ed(rd.contents)});case $ $ 1:case ge $ 3:case oe $ 2:case le $ 2:case W $ 1:case te $ 2:return qa(rd);default:throw new qe $ 2(rd)}}}function Mn $ 2(Ra){if(Ra.length>0){let qa=M $ 2(!1,Ra,-1);!qa.expandedStates&&!qa.break&&(qa.break="propagated")}return null}function Yn $ 3(Ra){let qa=new Set,Ja=[];function ed(rd){if(rd.type===te $ 2&&Mn $ 2(Ja),rd.type===K $ 2){if(Ja.push(rd),qa.has(rd))return!1;qa.add(rd)}}function td(rd){rd.type===K $ 2&&Ja.pop().break&&Mn $ 2(Ja)}Rn $ 2(Ra,ed,td,!0)}function Ce $ 1(Ra,qa=tr $ 1){return dl $ 2(Ra,Ja=>typeof Ja=="string"?Tr $ 2(qa,Ja.split( `
` )):Ja)}function hl $ 2(Ra,qa){let Ja=Ra.match(new RegExp( ` ( $ { Be$3 ( qa ) } ) + ` ,"gu"));return Ja===null?0:Ja.reduce((ed,td)=>Math.max(ed,td.length/qa.length),0)}var _r $ 2=hl $ 2;function ml $ 2(Ra,qa){let Ja=Ra.match(new RegExp( ` ( $ { Be$3 ( qa ) } ) + ` ,"gu"));if(Ja===null)return 0;let ed=new Map,td=0;for(let rd of Ja){let od=rd.length/qa.length;ed.set(od,!0),od>td&&(td=od)}for(let rd=1;rd<td;rd++)if(!ed.get(rd))return rd;return td+1}var Gn $ 3=ml $ 2,Sr $ 2="'",Vn $ 2='"';function Fl $ 3(Ra,qa){let Ja=qa===!0||qa===Sr $ 2?Sr $ 2:Vn $ 2,ed=Ja===Sr $ 2?Vn $ 2:Sr $ 2,td=0,rd=0;for(let od of Ra)od===Ja?td++:od===ed&&rd++;return td>rd?ed:Ja}var jn $ 3=Fl $ 3,pt $ 2=class extends Error{constructor(Ja,ed,td="type"){super( ` Unexpected $ { ed } node $ { td } : $ { JSON . stringify ( Ja [ td ] ) } . ` );e1(this,"name","UnexpectedNodeError");this.node=Ja}}, $ n $ 3=pt $ 2,Xn $ 3=Ue $ 3(xr $ 2());function gl $ 2(Ra){return(Ra==null?void 0:Ra.type)==="front-matter"}var Hn $ 2=gl $ 2,nr $ 1=3;function vl $ 2(Ra){let qa=Ra.slice(0,nr $ 1);if(qa!=="---"&&qa!=="+++")return;let Ja=Ra.indexOf( `
2024-08-30 15:19:18 +08:00
` ,nr $ 1);if(Ja===-1)return;let ed=Ra.slice(nr $ 1,Ja).trim(),td=Ra.indexOf( `
$ { qa } ` ,Ja),rd=ed;if(rd||(rd=qa==="+++"?"toml":"yaml"),td===-1&&qa==="---"&&rd==="yaml"&&(td=Ra.indexOf( `
... ` ,Ja)),td===-1)return;let od=td+1+nr $ 1,sd=Ra.charAt(od+1);if(!/ \s ?/u.test(sd))return;let ld=Ra.slice(0,od);return{type:"front-matter",language:rd,explicitLanguage:ed,value:Ra.slice(Ja+1,td),startDelimiter:qa,endDelimiter:ld.slice(-nr $ 1),raw:ld}}function El $ 3(Ra){let qa=vl $ 2(Ra);if(!qa)return{content:Ra};let{raw:Ja}=qa;return{frontMatter:qa,content:N $ 2(!1,Ja,/[^ \n ]/gu," ")+Ra.slice(Ja.length)}}var ir $ 2=El $ 3,Wn $ 2=["format","prettier"];function dt $ 2(Ra){let qa= ` @ ( $ { Wn$2 . join ( "|" ) } ) ` ,Ja=new RegExp([ ` <!-- \ \ s * $ { qa } \ \ s * -- > ` , ` \ \ { \ \ s * \ \ / \ \ * \ \ s * $ { qa } \ \ s * \ \ * \ \ / \ \ s * \ \ } ` , ` <!-- . * \ r ?
2024-08-27 22:31:52 +08:00
[ \ \ s \ \ S ] * ( ^ |
) [ ^ \ \ S
2024-08-30 15:19:18 +08:00
] * $ { qa } [ ^ \ \ S
2024-08-27 22:31:52 +08:00
] * ( $ |
) [ \ \ s \ \ S ] *
2024-08-30 15:19:18 +08:00
. * -- > ` ].join("|"),"mu"),ed=Ra.match(Ja);return(ed==null?void 0:ed.index)===0}var Kn $ 2=Ra=>dt $ 2(ir $ 2(Ra).content.trimStart()),Jn $ 3=Ra=>{let qa=ir $ 2(Ra),Ja= ` <!-- @ $ { Wn$2 [ 0 ] } -- > ` ;return qa.frontMatter? ` $ { qa . frontMatter . raw }
$ { Ja }
$ { qa . content } ` : ` $ { Ja }
$ { qa . content } ` },Cl $ 2=new Set(["position","raw"]);function Qn $ 3(Ra,qa,Ja){if((Ra.type==="front-matter"||Ra.type==="code"||Ra.type==="yaml"||Ra.type==="import"||Ra.type==="export"||Ra.type==="jsx")&&delete qa.value,Ra.type==="list"&&delete qa.isAligned,(Ra.type==="list"||Ra.type==="listItem")&&delete qa.spread,Ra.type==="text")return null;if(Ra.type==="inlineCode"&&(qa.value=N $ 2(!1,Ra.value, `
` ," ")),Ra.type==="wikiLink"&&(qa.value=N $ 2(!1,Ra.value.trim(),/[ \t \n ]+/gu," ")),(Ra.type==="definition"||Ra.type==="linkReference"||Ra.type==="imageReference")&&(qa.label=(0,Xn $ 3.default)(Ra.label)),(Ra.type==="link"||Ra.type==="image")&&Ra.url&&Ra.url.includes("("))for(let ed of"<>")qa.url=N $ 2(!1,Ra.url,ed,encodeURIComponent(ed));if((Ra.type==="definition"||Ra.type==="link"||Ra.type==="image")&&Ra.title&&(qa.title=N $ 2(!1,Ra.title,/ \\ (?=["')])/gu,"")),(Ja==null?void 0:Ja.type)==="root"&&Ja.children.length>0&&(Ja.children[0]===Ra||Hn $ 2(Ja.children[0])&&Ja.children[1]===Ra)&&Ra.type==="html"&&dt $ 2(Ra.value))return null}Qn $ 3.ignoredProperties=Cl $ 2;var Zn $ 2=Qn $ 3,ei $ 2=/(?:[ \u 02ea- \u 02eb \u 1100- \u 11ff \u 2e80- \u 2e99 \u 2e9b- \u 2ef3 \u 2f00- \u 2fd5 \u 2ff0- \u 303f \u 3041- \u 3096 \u 3099- \u 309f \u 30a1- \u 30fa \u 30fc- \u 30ff \u 3105- \u 312f \u 3131- \u 318e \u 3190- \u 4dbf \u 4e00- \u 9fff \u a700- \u a707 \u a960- \u a97c \u ac00- \u d7a3 \u d7b0- \u d7c6 \u d7cb- \u d7fb \u f900- \u fa6d \u fa70- \u fad9 \u fe10- \u fe1f \u fe30- \u fe6f \u ff00- \u ffef]|[ \u d840- \u d868 \u d86a- \u d86c \u d86f- \u d872 \u d874- \u d879 \u d880- \u d883 \u d885- \u d887][ \u dc00- \u dfff]| \u d81b[ \u dfe3]| \u d82b[ \u dff0- \u dff3 \u dff5- \u dffb \u dffd- \u dffe]| \u d82c[ \u dc00- \u dd22 \u dd32 \u dd50- \u dd52 \u dd55 \u dd64- \u dd67]| \u d83c[ \u de00 \u de50- \u de51]| \u d869[ \u dc00- \u dedf \u df00- \u dfff]| \u d86d[ \u dc00- \u df39 \u df40- \u dfff]| \u d86e[ \u dc00- \u dc1d \u dc20- \u dfff]| \u d873[ \u dc00- \u dea1 \u deb0- \u dfff]| \u d87a[ \u dc00- \u dfe0]| \u d87e[ \u dc00- \u de1d]| \u d884[ \u dc00- \u df4a \u df50- \u dfff]| \u d888[ \u dc00- \u dfaf])(?:[ \u fe00- \u fe0f]| \u db40[ \u dd00- \u ddef])?/u,Se $ 2=new RegExp("(?:[ \\ u0021- \\ u002f \\ u003a- \\ u0040 \\ u005b- \\ u0060 \\ u007b- \\ u007e]| \\ p{General_Category=Connector_Punctuation}| \\ p{General_Category=Dash_Punctuation}| \\ p{General_Category=Close_Punctuation}| \\ p{General_Category=Final_Punctuation}| \\ p{General_Category=Initial_Punctuation}| \\ p{General_Category=Other_Punctuation}| \\ p{General_Category=Open_Punctuation})","u");async function bl $ 2(Ra,qa){if(Ra.language==="yaml"){let Ja=Ra.value.trim(),ed=Ja?await qa(Ja,{parser:"yaml"}):"";return _e $ 3([Ra.startDelimiter,Ra.explicitLanguage,L $ 2,ed,ed?L $ 2:"",Ra.endDelimiter])}}var ri $ 3=bl $ 2,yl $ 2=Ra=>String(Ra).split(/[/ \\ ]/u).pop();function ti $ 3(Ra,qa){if(!qa)return;let Ja=yl $ 2(qa).toLowerCase();return Ra.find(({filenames:ed})=>ed==null?void 0:ed.some(td=>td.toLowerCase()===Ja))??Ra.find(({extensions:ed})=>ed==null?void 0:ed.some(td=>Ja.endsWith(td)))}function Al $ 3(Ra,qa){if(qa)return Ra.find(({name:Ja})=>Ja.toLowerCase()===qa)??Ra.find(({aliases:Ja})=>Ja==null?void 0:Ja.includes(qa))??Ra.find(({extensions:Ja})=>Ja==null?void 0:Ja.includes( ` . $ { qa } ` ))}function xl $ 3(Ra,qa){let Ja=Ra.plugins.flatMap(td=>td.languages??[]),ed=Al $ 3(Ja,qa.language)??ti $ 3(Ja,qa.physicalFile)??ti $ 3(Ja,qa.file)??(qa.physicalFile,void 0);return ed==null?void 0:ed.parsers[0]}var ni $ 3=xl $ 3,wl $ 3=new Proxy(()=>{},{get:()=>wl $ 3});function Oe $ 3(Ra){return Ra.position.start.offset}function Pe $ 3(Ra){return Ra.position.end.offset}var ht $ 2=new Set(["liquidNode","inlineCode","emphasis","esComment","strong","delete","wikiLink","link","linkReference","image","imageReference","footnote","footnoteReference","sentence","whitespace","word","break","inlineMath"]),Or $ 2=new Set([...ht $ 2,"tableCell","paragraph","heading"]),Le $ 2="non-cjk",De $ 1="cj-letter",be $ 4="k-letter",ur $ 1="cjk-punctuation",kl $ 2=new RegExp(" \\ p{Script_Extensions=Hangul}","u");function Pr $ 2(Ra){let qa=[],Ja=Ra.split(/([ \t \n ]+)/u);for(let[td,rd]of Ja.entries()){if(td%2===1){qa.push({type:"whitespace",value:/ \n /u.test(rd)? `
` :" "});continue}if((td===0||td===Ja.length-1)&&rd==="")continue;let od=rd.split(new RegExp( ` ( $ { ei$2 . source } ) ` ,"u"));for(let[sd,ld]of od.entries())if(!((sd===0||sd===od.length-1)&&ld==="")){if(sd%2===0){ld!==""&&ed({type:"word",value:ld,kind:Le $ 2,hasLeadingPunctuation:Se $ 2.test(ld[0]),hasTrailingPunctuation:Se $ 2.test(M $ 2(!1,ld,-1))});continue}ed(Se $ 2.test(ld)?{type:"word",value:ld,kind:ur $ 1,hasLeadingPunctuation:!0,hasTrailingPunctuation:!0}:{type:"word",value:ld,kind:kl $ 2.test(ld)?be $ 4:De $ 1,hasLeadingPunctuation:!1,hasTrailingPunctuation:!1})}}return qa;function ed(td){let rd=M $ 2(!1,qa,-1);(rd==null?void 0:rd.type)==="word"&&!od(Le $ 2,ur $ 1)&&![rd.value,td.value].some(sd=>/ \u 3000/u.test(sd))&&qa.push({type:"whitespace",value:""}),qa.push(td);function od(sd,ld){return rd.kind===sd&&td.kind===ld||rd.kind===ld&&td.kind===sd}}}function Me $ 4(Ra,qa){let Ja=qa.originalText.slice(Ra.position.start.offset,Ra.position.end.offset),{numberText:ed,leadingSpaces:td}=Ja.match(/^ \s *(?<numberText> \d +)( \. | \) )(?<leadingSpaces> \s *)/u).groups;return{number:Number(ed),leadingSpaces:td}}function ii $ 3(Ra,qa){return!Ra.ordered||Ra.children.length<2||Me $ 4(Ra.children[1],qa).number!==1?!1:Me $ 4(Ra.children[0],qa).number!==0?!0:Ra.children.length>2&&Me $ 4(Ra.children[2],qa).number===1}function Lr $ 2(Ra,qa){let{value:Ja}=Ra;return Ra.position.end.offset===qa.length&&Ja.endsWith( `
` )&&qa.endsWith( `
` )?Ja.slice(0,-1):Ja}function ye $ 2(Ra,qa){return function Ja(ed,td,rd){let od={...qa(ed,td,rd)};return od.children&&(od.children=od.children.map((sd,ld)=>Ja(sd,ld,[od,...rd]))),od}(Ra,null,[])}function mt $ 2(Ra){if((Ra==null?void 0:Ra.type)!=="link"||Ra.children.length!==1)return!1;let[qa]=Ra.children;return Oe $ 3(Ra)===Oe $ 3(qa)&&Pe $ 3(Ra)===Pe $ 3(qa)}function Bl $ 2(Ra,qa){let{node:Ja}=Ra;if(Ja.type==="code"&&Ja.lang!==null){let ed=ni $ 3(qa,{language:Ja.lang});if(ed)return async td=>{let rd=qa.__inJsTemplate?"~":" ` ",od=rd.repeat(Math.max(3,_r$2(Ja.value,rd)+1)),sd={parser:ed};Ja.lang===" ts "||Ja.lang===" typescript "?sd.filepath=" dummy . ts ":Ja.lang===" tsx "&&(sd.filepath=" dummy . tsx ");let ld=await td(Lr$2(Ja,qa.originalText),sd);return _e$3([od,Ja.lang,Ja.meta?" "+Ja.meta:" ",L$2,Ce$1(ld),L$2,od])}}switch(Ja.type){case" front - matter ":return ed=>ri$3(Ja,ed);case" import ":case" export ":return ed=>ed(Ja.value,{parser:" babel "});case" jsx ":return ed=>ed(`<$>${Ja.value}</$>`,{parser:" _ _js _expression ",rootMarker:" mdx "})}return null}var ui$2=Bl$2,ar$1=null;function or$1(Ra){if(ar$1!==null&&typeof ar$1.property){let qa=ar$1;return ar$1=or$1.prototype=null,qa}return ar$1=or$1.prototype=Ra??Object.create(null),new or$1}var ql$3=10;for(let Ra=0;Ra<=ql$3;Ra++)or$1();function Ft$3(Ra){return or$1(Ra)}function Tl$3(Ra,qa=" type "){Ft$3(Ra);function Ja(ed){let td=ed[qa],rd=Ra[td];if(!Array.isArray(rd))throw Object.assign(new Error(`Missing visitor keys for '${td}'.`),{node:ed});return rd}return Ja}var ai$3=Tl$3,_l$2={" front - matter ":[],root:[" children "],paragraph:[" children "],sentence:[" children "],word:[],whitespace:[],emphasis:[" children "],strong:[" children "],delete:[" children "],inlineCode:[],wikiLink:[],link:[" children "],image:[],blockquote:[" children "],heading:[" children "],code:[],html:[],list:[" children "],thematicBreak:[],linkReference:[" children "],imageReference:[],definition:[],footnote:[" children "],footnoteReference:[],footnoteDefinition:[" children "],table:[" children "],tableCell:[" children "],break:[],liquidNode:[],import:[],export:[],esComment:[],jsx:[],math:[],inlineMath:[],tableRow:[" children "],listItem:[" children "],text:[]},oi$2=_l$2,Sl$3=ai$3(oi$2),si$3=Sl$3;function ci$2(Ra){switch(Ra){case" cr ":return" \ r ";case" crlf " : return ` \r
` ;default:return `
2024-08-31 11:28:56 +08:00
` }}var li $ 3=()=>/[#*0-9] \u FE0F? \u 20E3|[ \x A9 \x AE \u 203C \u 2049 \u 2122 \u 2139 \u 2194- \u 2199 \u 21A9 \u 21AA \u 231A \u 231B \u 2328 \u 23CF \u 23ED- \u 23EF \u 23F1 \u 23F2 \u 23F8- \u 23FA \u 24C2 \u 25AA \u 25AB \u 25B6 \u 25C0 \u 25FB \u 25FC \u 25FE \u 2600- \u 2604 \u 260E \u 2611 \u 2614 \u 2615 \u 2618 \u 2620 \u 2622 \u 2623 \u 2626 \u 262A \u 262E \u 262F \u 2638- \u 263A \u 2640 \u 2642 \u 2648- \u 2653 \u 265F \u 2660 \u 2663 \u 2665 \u 2666 \u 2668 \u 267B \u 267E \u 267F \u 2692 \u 2694- \u 2697 \u 2699 \u 269B \u 269C \u 26A0 \u 26A7 \u 26AA \u 26B0 \u 26B1 \u 26BD \u 26BE \u 26C4 \u 26C8 \u 26CF \u 26D1 \u 26E9 \u 26F0- \u 26F5 \u 26F7 \u 26F8 \u 26FA \u 2702 \u 2708 \u 2709 \u 270F \u 2712 \u 2714 \u 2716 \u 271D \u 2721 \u 2733 \u 2734 \u 2744 \u 2747 \u 2757 \u 2763 \u 27A1 \u 2934 \u 2935 \u 2B05- \u 2B07 \u 2B1B \u 2B1C \u 2B55 \u 3030 \u 303D \u 3297 \u 3299] \u FE0F?|[ \u 261D \u 270C \u 270D](?: \u FE0F| \u D83C[ \u DFFB- \u DFFF])?|[ \u 270A \u 270B](?: \u D83C[ \u DFFB- \u DFFF])?|[ \u 23E9- \u 23EC \u 23F0 \u 23F3 \u 25FD \u 2693 \u 26A1 \u 26AB \u 26C5 \u 26CE \u 26D4 \u 26EA \u 26FD \u 2705 \u 2728 \u 274C \u 274E \u 2753- \u 2755 \u 2795- \u 2797 \u 27B0 \u 27BF \u 2B50]| \u 26D3 \u FE0F?(?: \u 200D \u D83D \u DCA5)?| \u 26F9(?: \u FE0F| \u D83C[ \u DFFB- \u DFFF])?(?: \u 200D[ \u 2640 \u 2642] \u FE0F?)?| \u 2764 \u FE0F?(?: \u 200D(?: \u D83D \u DD25| \u D83E \u DE79))?| \u D83C(?:[ \u DC04 \u DD70 \u DD71 \u DD7E \u DD7F \u DE02 \u DE37 \u DF21 \u DF24- \u DF2C \u DF36 \u DF7D \u DF96 \u DF97 \u DF99- \u DF9B \u DF9E \u DF9F \u DFCD \u DFCE \u DFD4- \u DFDF \u DFF5 \u DFF7] \u FE0F?|[ \u DF85 \u DFC2 \u DFC7](?: \u D83C[ \u DFFB- \u DFFF])?|[ \u DFC4 \u DFCA](?: \u D83C[ \u DFFB- \u DFFF])?(?: \u 200D[ \u 2640 \u 2642] \u FE0F?)?|[ \u DFCB \u DFCC](?: \u FE0F| \u D83C[ \u DFFB- \u DFFF])?(?: \u 200D[ \u 2640 \u 2642] \u FE0F?)?|[ \u DCCF \u DD8E \u DD91- \u DD9A \u DE01 \u DE1A \u DE2F \u DE32- \u DE36 \u DE38- \u DE3A \u DE50 \u DE51 \u DF00- \u DF20 \u DF2D- \u DF35 \u DF37- \u DF43 \u DF45- \u DF4A \u DF4C- \u DF7C \u DF7E- \u DF84 \u DF86- \u DF93 \u DFA0- \u DFC1 \u DFC5 \u DFC6 \u DFC8 \u DFC9 \u DFCF- \u DFD3 \u DFE0- \u DFF0 \u DFF8- \u DFFF]| \u DDE6 \u D83C[ \u DDE8- \u DDEC \u DDEE \u DDF1 \u DDF2 \u DDF4 \u DDF6- \u DDFA \u DDFC \u DDFD \u DDFF]| \u DDE7 \u D83C[ \u DDE6 \u DDE7 \u DDE9- \u DDEF \u DDF1- \u DDF4 \u DDF6- \u DDF9 \u DDFB \u DDFC \u DDFE \u DDFF]| \u DDE8 \u D83C[ \u DDE6 \u DDE8 \u DDE9 \u DDEB- \u DDEE \u DDF0- \u DDF5 \u DDF7 \u DDFA- \u DDFF]| \u DDE9 \u D83C[ \u DDEA \u DDEC \u DDEF \u DDF0 \u DDF2 \u DDF4 \u DDFF]| \u DDEA \u D83C[ \u DDE6 \u DDE8 \u DDEA \u DDEC \u DDED \u DDF7- \u DDFA]| \u DDEB \u D83C[ \u DDEE- \u DDF0 \u DDF2 \u DDF4 \u DDF7]| \u DDEC \u D83C[ \u DDE6 \u DDE7 \u DDE9- \u DDEE \u DDF1- \u DDF3 \u DDF5- \u DDFA \u DDFC \u DDFE]| \u DDED \u D83C[ \u DDF0 \u DDF2 \u DDF3 \u DDF7 \u DDF9 \u DDFA]| \u DDEE \u D83C[ \u DDE8- \u DDEA \u DDF1- \u DDF4 \u DDF6- \u DDF9]| \u DDEF \u D83C[ \u DDEA \u DDF2 \u DDF4 \u DDF5]| \u DDF0 \u D83C[ \u DDEA \u DDEC- \u DDEE \u DDF2 \u DDF3 \u DDF5 \u DDF7 \u DDFC \u DDFE \u DDFF]| \u DDF1 \u D83C[ \u DDE6- \u DDE8 \u DDEE \u DDF0 \u DDF7- \u DDFB \u DDFE]| \u DDF2 \u D83C[ \u DDE6 \u DDE8- \u DDED \u DDF0- \u DDFF]| \u DDF3 \u D83C[ \u DDE6 \u DDE8 \u DDEA- \u DDEC \u DDEE \u DDF1 \u DDF4 \u DDF5 \u DDF7 \u DDFA \u DDFF]| \u DDF4 \u D83C \u DDF2| \u DDF5 \u D83C[ \u DDE6 \u DDEA- \u DDED \u DDF0- \u DDF3 \u DDF7- \u DDF9 \u DDFC \u DDFE]| \u DDF6 \u D83C \u DDE6| \u DDF7 \u D83C[ \u DDEA \u DDF4 \u DDF8 \u DDFA \u DDFC]| \u DDF8 \u D83C[ \u DDE6- \u DDEA \u DDEC- \u DDF4 \u DDF7- \u DDF9 \u DDFB \u DDFD- \u DDFF]| \u DDF9 \u D83C[ \u DDE6 \u DDE8 \u DDE9 \u DDEB- \u DDED \u DDEF- \u DDF4 \u DDF7 \u DDF9 \u DDFB \u DDFC \u DDFF]| \u DDFA \u D83C[ \u DDE6 \u DDEC \u DDF2 \u DDF3 \u DDF8 \u DDFE \u DDFF]| \u DDFB \u D83C[ \u DDE6 \u DDE8 \u DDEA \u DDEC \u DDEE \u DDF3 \u DDFA]| \u DDFC \u D83C[ \u DDEB \u DDF8]| \u DDFD \u D83C \u DDF0| \u DDFE \u D83C[ \u DDEA \u DDF9]| \u DDFF \u D83C[ \u DDE6 \u DDF2 \u DDFC]| \u DF44(?: \u 200D \u D83D \u DFEB)?| \u DF4B(?: \u 200D \u D83D \u DFE9)?| \u DFC3(?: \u D83C[ \u DFFB- \u DFFF])?(?: \u 200D(?:[ \u 2640 \u 2642] \u FE0F?(?: \u 200D \u 27A1 \u FE0F?)?| \u 27A1 \u FE0F?))?| \u DFF3 \u FE0F?(?: \u 200D(?: \u 26A7 \u FE0F?| \u D83C \u DF08))?| \u DFF4(?: \u 200D \u 2620 \u FE0F?| \u DB40 \u DC67 \u DB40 \u DC62 \u DB40(?: \u DC65 \u DB40 \u DC6E \u DB40 \u DC67| \u DC73 \u DB40 \u DC63 \u DB40 \u DC74| \u DC77 \u DB40 \u DC6C \u DB40 \u DC73) \u DB40 \u DC7F)?)| \u D83D(?:[ \u DC3F \u DCFD \u DD49 \u DD4A \u DD6F \u DD70 \u DD73 \u DD76- \u DD79 \u DD87 \u DD8A- \u DD8D \u DDA5 \u DDA8 \u DDB1 \u DDB2 \u DDBC \u DDC2- \u DDC4 \u DDD1- \u DDD3 \u DDDC- \u DDDE \u DDE1 \u DDE3 \u DDE8 \u DDEF \u DDF3 \u DDFA \u DECB \u DECD- \u DECF \u DEE0- \u DEE5 \u DEE9 \u DEF0 \u DEF3] \u FE0F?|[ \u DC42 \u DC43 \u DC46- \u DC50 \u DC66 \u DC67 \u DC6B- \u DC6D \u DC72 \u DC74- \u DC76 \u DC78 \u DC7C \u DC83 \u DC85 \u DC8F \u DC91 \u DCAA \u DD7A \u DD95 \u DD96 \u DE4C \u DE4F \u DEC0 \u DECC](?: \u D83C[ \u DFFB- \u DFFF])?|[ \u DC6E \u DC70 \u DC71 \u DC73 \u DC77 \u DC81 \u DC82 \u DC86 \u DC87 \u DE45- \u DE47 \u DE4B \u DE4D \u DE4E \u DEA3 \u DEB4 \u DEB5](?: \u D83C[ \u
2024-08-30 15:19:18 +08:00
` ?N $ 2(!1,Ed, `
2024-08-31 11:28:56 +08:00
` ,td):Ed;sd.push(Td),od.length>0&&(rd+=sr $ 1(Td));break}case H $ 1:for(let Td=Ed.length-1;Td>=0;Td--)od.push({ind:yd,mode:gd,doc:Ed[Td]});break;case ge $ 3:if(ud>=2)throw new Error("There are too many 'cursor' in doc.");sd.push(cr $ 1),ud++;break;case ee $ 1:od.push({ind:Ll $ 3(yd,qa),mode:gd,doc:Ed.contents});break;case re $ 3:od.push({ind:Il $ 3(yd,Ed.n,qa),mode:gd,doc:Ed.contents});break;case oe $ 2:rd-=vt $ 2(sd);break;case K $ 2:switch(gd){case ne $ 2:if(!ld){od.push({ind:yd,mode:Ed.break?G $ 2:ne $ 2,doc:Ed.contents});break}case G $ 2:{ld=!1;let Td={ind:yd,mode:ne $ 2,doc:Ed.contents},Id=ed-rd,Ad=cd.length>0;if(!Ed.break&&Ir $ 2(Td,od,Id,Ad,Ja))od.push(Td);else if(Ed.expandedStates){let Nd=M $ 2(!1,Ed.expandedStates,-1);if(Ed.break){od.push({ind:yd,mode:G $ 2,doc:Nd});break}else for(let kd=1;kd<Ed.expandedStates.length+1;kd++)if(kd>=Ed.expandedStates.length){od.push({ind:yd,mode:G $ 2,doc:Nd});break}else{let Rd=Ed.expandedStates[kd],Md={ind:yd,mode:ne $ 2,doc:Rd};if(Ir $ 2(Md,od,Id,Ad,Ja)){od.push(Md);break}}}else od.push({ind:yd,mode:G $ 2,doc:Ed.contents});break}}Ed.id&&(Ja[Ed.id]=M $ 2(!1,od,-1).mode);break;case J $ 1:{let Td=ed-rd,{parts:Id}=Ed;if(Id.length===0)break;let[Ad,Nd]=Id,kd={ind:yd,mode:ne $ 2,doc:Ad},Rd={ind:yd,mode:G $ 2,doc:Ad},Md=Ir $ 2(kd,[],Td,cd.length>0,Ja,!0);if(Id.length===1){Md?od.push(kd):od.push(Rd);break}let Bd={ind:yd,mode:ne $ 2,doc:Nd},jd={ind:yd,mode:G $ 2,doc:Nd};if(Id.length===2){Md?od.push(Bd,kd):od.push(jd,Rd);break}Id.splice(0,2);let Vd={ind:yd,mode:gd,doc:Ee $ 2(Id)},Fd=Id[0];Ir $ 2({ind:yd,mode:ne $ 2,doc:[Ad,Nd,Fd]},[],Td,cd.length>0,Ja,!0)?od.push(Vd,Bd,kd):Md?od.push(Vd,jd,kd):od.push(Vd,jd,Rd);break}case X $ 1:case se $ 1:{let Td=Ed.groupId?Ja[Ed.groupId]:gd;if(Td===G $ 2){let Id=Ed.type===X $ 1?Ed.breakContents:Ed.negate?Ed.contents:Ze $ 2(Ed.contents);Id&&od.push({ind:yd,mode:gd,doc:Id})}if(Td===ne $ 2){let Id=Ed.type===X $ 1?Ed.flatContents:Ed.negate?Ze $ 2(Ed.contents):Ed.contents;Id&&od.push({ind:yd,mode:gd,doc:Id})}break}case ce $ 2:cd.push({ind:yd,mode:gd,doc:Ed.contents});break;case le $ 2:cd.length>0&&od.push({ind:yd,mode:gd,doc:rr $ 1});break;case W $ 1:switch(gd){case ne $ 2:if(Ed.hard)ld=!0;else{Ed.soft||(sd.push(" "),rd+=1);break}case G $ 2:if(cd.length>0){od.push({ind:yd,mode:gd,doc:Ed},...cd.reverse()),cd.length=0;break}Ed.literal?yd.root?(sd.push(td,yd.root.value),rd=yd.root.length):(sd.push(td),rd=0):(rd-=vt $ 2(sd),sd.push(td+yd.value),rd=yd.length);break}break;case fe $ 2:od.push({ind:yd,mode:gd,doc:Ed.contents});break;case te $ 2:break;default:throw new qe $ 2(Ed)}od.length===0&&cd.length>0&&(od.push(...cd.reverse()),cd.length=0)}let _d=sd.indexOf(cr $ 1);if(_d!==-1){let yd=sd.indexOf(cr $ 1,_d+1),gd=sd.slice(0,_d).join(""),Ed=sd.slice(_d+1,yd).join(""),Td=sd.slice(yd+1).join("");return{formatted:gd+Ed+Td,cursorNodeStart:gd.length,cursorNodeText:Ed}}return{formatted:sd.join("")}}function mi $ 1(Ra,qa,Ja){let{node:ed}=Ra,td=[],rd=Ra.map(()=>Ra.map(({index:_d})=>{let yd=hi $ 2(Ja(),qa).formatted,gd=sr $ 1(yd);return td[_d]=Math.max(td[_d]??3,gd),{text:yd,width:gd}},"children"),"children"),od=ld(!1);if(qa.proseWrap!=="never")return[er $ 1,od];let sd=ld(!0);return[er $ 1,ze $ 2(zn $ 2(sd,od))];function ld(_d){return Tr $ 2(rr $ 1,[ud(rd[0],_d),cd(_d),...rd.slice(1).map(yd=>ud(yd,_d))].map(yd=> ` | $ { yd . join ( " | " ) } | ` ))}function cd(_d){return td.map((yd,gd)=>{let Ed=ed.align[gd],Td=Ed==="center"||Ed==="left"?":":"-",Id=Ed==="center"||Ed==="right"?":":"-",Ad=_d?"-":"-".repeat(yd-2);return ` $ { Td } $ { Ad } $ { Id } ` })}function ud(_d,yd){return _d.map(({text:gd,width:Ed},Td)=>{if(yd)return gd;let Id=td[Td]-Ed,Ad=ed.align[Td],Nd=0;Ad==="right"?Nd=Id:Ad==="center"&&(Nd=Math.floor(Id/2));let kd=Id-Nd;return ` $ { " " . repeat ( Nd ) } $ { gd } $ { " " . repeat ( kd ) } ` })}}function Fi $ 1(Ra,qa,Ja){let ed=Ra.map(Ja,"children");return Nl $ 3(ed)}function Nl $ 3(Ra){let qa=[""];return function Ja(ed){for(let td of ed){let rd=Y $ 1(td);if(rd===H $ 1){Ja(td);continue}let od=td,sd=[];rd===J $ 1&&([od,...sd]=td.parts),qa.push([qa.pop(),od],...sd)}}(Ra),Ee $ 2(qa)}var Rl $ 3=/^. $ /su;function Ul $ 2(Ra,qa){return Ra=zl $ 3(Ra,qa),Ra=Yl $ 2(Ra),Ra=Vl $ 2(Ra,qa),Ra=jl $ 2(Ra,qa),Ra=Gl $ 3(Ra),Ra}function zl $ 3(Ra,qa){return ye $ 2(Ra,Ja=>Ja.type!=="text"||J
2024-08-30 15:19:18 +08:00
` )return L $ 2;let td=qa===" "||qa=== `
2024-08-31 11:28:56 +08:00
` &&Jl $ 3(Ra,ed);return Xl $ 3(Ra,qa,Ja,ed,td)?td?Br $ 3:qr $ 2:td?" ":""}var Ql $ 3=new Set(["listItem","definition"]);function Zl $ 2(Ra,qa,Ja){var ed,td;let{node:rd}=Ra;if(af(Ra)){let od=[""],sd=Pr $ 2(qa.originalText.slice(rd.position.start.offset,rd.position.end.offset));for(let ld of sd){if(ld.type==="word"){od.push([od.pop(),ld.value]);continue}let cd=Et $ 3(Ra,ld.value,qa.proseWrap,!0);if(Y $ 1(cd)=== $ $ 1){od.push([od.pop(),cd]);continue}od.push(cd)}return Ee $ 2(od)}switch(rd.type){case"front-matter":return qa.originalText.slice(rd.position.start.offset,rd.position.end.offset);case"root":return rd.children.length===0?"":[tf(Ra,qa,Ja),L $ 2];case"paragraph":return Fi $ 1(Ra,qa,Ja);case"sentence":return vi $ 2(Ra,Ja);case"word":{let od=N $ 2(!1,N $ 2(!1,rd.value,"*",String.raw ` \ * ` ),new RegExp([ ` ( ^ | $ { Se$2 . source } ) ( _ + ) ` , ` ( _ + ) ( $ { Se$2 . source } | $ ) ` ].join("|"),"gu"),(cd,ud,_d,yd,gd)=>N $ 2(!1,_d? ` $ { ud } $ { _d } ` : ` $ { yd } $ { gd } ` ,"_",String.raw ` \ _ ` )),sd=(cd,ud,_d)=>cd.type==="sentence"&&_d===0,ld=(cd,ud,_d)=>mt $ 2(cd.children[_d-1]);return od!==rd.value&&(Ra.match(void 0,sd,ld)||Ra.match(void 0,sd,(cd,ud,_d)=>cd.type==="emphasis"&&_d===0,ld))&&(od=od.replace(/^( \\ ?[*_])+/u,cd=>N $ 2(!1,cd," \\ ",""))),od}case"whitespace":{let{next:od}=Ra,sd=od&&/^>|^(?:[*+-]|#{1,6}| \d +[).]) $ /u.test(od.value)?"never":qa.proseWrap;return Et $ 3(Ra,rd.value,sd)}case"emphasis":{let od;if(mt $ 2(rd.children[0]))od=qa.originalText[rd.position.start.offset];else{let{previous:sd,next:ld}=Ra;od=(sd==null?void 0:sd.type)==="sentence"&&((ed=M $ 2(!1,sd.children,-1))==null?void 0:ed.type)==="word"&&!M $ 2(!1,sd.children,-1).hasTrailingPunctuation||(ld==null?void 0:ld.type)==="sentence"&&((td=ld.children[0])==null?void 0:td.type)==="word"&&!ld.children[0].hasLeadingPunctuation||Ra.hasAncestor(cd=>cd.type==="emphasis")?"*":"_"}return[od,V $ 3(Ra,qa,Ja),od]}case"strong":return["**",V $ 3(Ra,qa,Ja),"**"];case"delete":return["~~",V $ 3(Ra,qa,Ja),"~~"];case"inlineCode":{let od=qa.proseWrap==="preserve"?rd.value:N $ 2(!1,rd.value, `
` ," "),sd=Gn $ 3(od," ` "),ld=" ` ".repeat(sd||1),cd=od.startsWith(" ` ")||od.endsWith(" ` ")||/^[ \n ]/u.test(od)&&/[ \n ] $ /u.test(od)&&/[^ \n ]/u.test(od)?" ":"";return[ld,cd,od,cd,ld]}case"wikiLink":{let od="";return qa.proseWrap==="preserve"?od=rd.value:od=N $ 2(!1,rd.value,/[ \t \n ]+/gu," "),["[[",od,"]]"]}case"link":switch(qa.originalText[rd.position.start.offset]){case"<":{let od="mailto:";return["<",rd.url.startsWith(od)&&qa.originalText.slice(rd.position.start.offset+1,rd.position.start.offset+1+od.length)!==od?rd.url.slice(od.length):rd.url,">"]}case"[":return["[",V $ 3(Ra,qa,Ja),"](",Ct $ 3(rd.url,")"),Nr $ 2(rd.title,qa),")"];default:return qa.originalText.slice(rd.position.start.offset,rd.position.end.offset)}case"image":return["![",rd.alt||"","](",Ct $ 3(rd.url,")"),Nr $ 2(rd.title,qa),")"];case"blockquote":return["> ",ve $ 2("> ",V $ 3(Ra,qa,Ja))];case"heading":return["#".repeat(rd.depth)+" ",V $ 3(Ra,qa,Ja)];case"code":{if(rd.isIndented){let ld=" ".repeat(4);return ve $ 2(ld,[ld,Ce $ 1(rd.value,L $ 2)])}let od=qa.__inJsTemplate?"~":" ` ",sd=od.repeat(Math.max(3,_r$2(rd.value,od)+1));return[sd,rd.lang||" ",rd.meta?" "+rd.meta:" ",L$2,Ce$1(Lr$2(rd,qa.originalText),L$2),L$2,sd]}case" html ":{let{parent:od,isLast:sd}=Ra,ld=od.type===" root "&&sd?rd.value.trimEnd():rd.value,cd=/^<!--.*-->$/su.test(ld);return Ce$1(ld,cd?L$2:_e$3(tr$1))}case" list ":{let od=Ai$2(rd,Ra.parent),sd=ii$3(rd,qa);return V$3(Ra,qa,Ja,{processor(ld){let cd=_d(),ud=ld.node;if(ud.children.length===2&&ud.children[1].type===" html "&&ud.children[0].position.start.column!==ud.children[1].position.start.column)return[cd,yi$3(ld,qa,Ja,cd)];return[cd,ve$2(" ".repeat(cd.length),yi$3(ld,qa,Ja,cd))];function _d(){let yd=rd.ordered?(ld.isFirst?rd.start:sd?1:rd.start+ld.index)+(od%2===0?" . ":" ) "):od%2===0?" - ":" * ";return rd.isAligned||rd.hasIndentedCodeblock?ef(yd,qa):yd}}})}case" thematicBreak ":{let{ancestors:od}=Ra,sd=od.findIndex(ld=>ld.type===" list ");return sd===-1?" -- - ":Ai$2(od[sd],od[sd+1])%2===0?" * * * ":" -- - "}case" linkReference ":return[" [ ",V$3(Ra,qa,Ja)," ] ",rd.referenceType===" full "?bt$2(rd):rd.referenceType===" collapsed "?" [ ] ":" "];case" imageReference ":switch(rd.referenceType){case" full ":return[" ! [ ",rd.alt||" "," ] ",bt$2(rd)];default:return[" ! [ ",rd.alt," ] ",rd.referenceType===" collapsed "?" [ ] ":" "]}case" definition ":{let od=qa.proseWrap===" always "?Br$3:" ";return ze$2([bt$2(rd)," : ",Ze$2([od,Ct$3(rd.url),rd.title===null?" ":[od,Nr$2(rd.title,qa,!1)]])])}case" footnote ":return[" [ ^ ",V$3(Ra,qa,Ja)," ] "];case" footnoteReference ":return Bi$2(rd);case" footnoteDefinition ":{let od=rd.children.length===1&&rd.children[0].type===" paragraph "&&(qa.proseWrap===" never "||qa.proseWrap===" preserve "&&rd.children[0].position.start.line===rd.children[0].position.end.line);return[Bi$2(rd)," : ",od?V$3(Ra,qa,Ja):ze$2([ve$2(" ".repeat(4),V$3(Ra,qa,Ja,{processor:({isFirst:sd})=>sd?ze$2([qr$2,Ja()]):Ja()}))])]}case" table ":return mi$1(Ra,qa,Ja);case" tableCell ":return V$3(Ra,qa,Ja);case" break ":return/\s/u.test(qa.originalText[rd.position.start.offset])?[" ",_e$3(tr$1)]:[" \ \ ",L$2];case" liquidNode ":return Ce$1(rd.value,L$2);case" import ":case" export ":case" jsx ":return rd.value;case" esComment ":return[" { /* ",rd.value," */ } "];case" math ":return[" $$ ",L$2,rd.value?[Ce$1(rd.value,L$2),L$2]:" "," $$ "];case" inlineMath ":return qa.originalText.slice(Oe$3(rd),Pe$3(rd));case" tableRow ":case" listItem ":case" text ":default:throw new $n$3(rd," Markdown ")}}function yi$3(Ra,qa,Ja,ed){let{node:td}=Ra,rd=td.checked===null?" ":td.checked?" [ x ] ":" [ ] ";return[rd,V$3(Ra,qa,Ja,{processor({node:od,isFirst:sd}){if(sd&&od.type!==" list ")return ve$2(" ".repeat(rd.length),Ja());let ld=" ".repeat(sf(qa.tabWidth-ed.length,0,3));return[ld,ve$2(ld,Ja())]}})]}function ef(Ra,qa){let Ja=ed();return Ra+" " . repeat ( Ja >= 4 ? 0 : Ja ) ; function ed ( ) { let td = Ra . length % qa . tabWidth ; return td === 0 ? 0 : qa . tabWidth - td } } function Ai$2 ( Ra , qa ) { return rf ( Ra , qa , Ja => Ja . ordered === Ra . ordered ) } function rf ( Ra , qa , Ja ) { let ed = - 1 ; for ( let td of qa . children ) if ( td . type === Ra . type && Ja ( td ) ? ed ++ : ed = - 1 , td === Ra ) return ed } function tf ( Ra , qa , Ja ) { let ed = [ ] , td = null , { children : rd } = Ra . node ; for ( let [ od , sd ] of rd . entries ( ) ) switch ( yt$2 (
2024-08-30 15:19:18 +08:00
` )}function uf({node:Ra,previous:qa,parent:Ja},ed){if(wi $ 2(qa,ed))return!0;let td=qa.type===Ra.type&&Ql $ 3.has(Ra.type),rd=Ja.type==="listItem"&&!wi $ 2(Ja,ed),od=yt $ 2(qa)==="next",sd=Ra.type==="html"&&qa.type==="html"&&qa.position.end.line+1===Ra.position.start.line,ld=Ra.type==="html"&&Ja.type==="listItem"&&qa.type==="paragraph"&&qa.position.end.line+1===Ra.position.start.line;return!(td||rd||od||sd||ld)}function ki $ 2({node:Ra,previous:qa}){let Ja=qa.type==="list",ed=Ra.type==="code"&&Ra.isIndented;return Ja&&ed}function af(Ra){let qa=Ra.findAncestor(Ja=>Ja.type==="linkReference"||Ja.type==="imageReference");return qa&&(qa.type!=="linkReference"||qa.referenceType!=="full")}var of=(Ra,qa)=>{for(let Ja of qa)Ra=N $ 2(!1,Ra,Ja,encodeURIComponent(Ja));return Ra};function Ct $ 3(Ra,qa=[]){let Ja=[" ",...Array.isArray(qa)?qa:[qa]];return new RegExp(Ja.map(ed=>Be $ 3(ed)).join("|"),"u").test(Ra)? ` < $ { of ( Ra , "<>" ) } > ` :Ra}function Nr $ 2(Ra,qa,Ja=!0){if(!Ra)return"";if(Ja)return" "+Nr $ 2(Ra,qa,!1);if(Ra=N $ 2(!1,Ra,/ \\ (?=["')])/gu,""),Ra.includes('"')&&Ra.includes("'")&&!Ra.includes(")"))return ` ( $ { Ra } ) ` ;let ed=jn $ 3(Ra,qa.singleQuote);return Ra=N $ 2(!1,Ra," \\ "," \\ \\ "),Ra=N $ 2(!1,Ra,ed, ` \ \ $ { ed } ` ), ` $ { ed } $ { Ra } $ { ed } ` }function sf(Ra,qa,Ja){return Ra<qa?qa:Ra>Ja?Ja:Ra}function cf(Ra){return Ra.index>0&&yt $ 2(Ra.previous)==="next"}function bt $ 2(Ra){return ` [ $ { ( 0 , qi$1 . default ) ( Ra . label ) } ] ` }function Bi $ 2(Ra){return ` [ ^ $ { Ra . label } ] ` }var lf={preprocess:gi $ 2,print:Zl $ 2,embed:ui $ 2,massageAstNode:Zn $ 2,hasPrettierIgnore:cf,insertPragma:Jn $ 3,getVisitorKeys:si $ 3},Ti $ 2=lf,_i $ 2=[{linguistLanguageId:222,name:"Markdown",type:"prose",color:"#083fa1",aliases:["md","pandoc"],aceMode:"markdown",codemirrorMode:"gfm",codemirrorMimeType:"text/x-gfm",wrap:!0,extensions:[".md",".livemd",".markdown",".mdown",".mdwn",".mkd",".mkdn",".mkdown",".ronn",".scd",".workbook"],filenames:["contents.lr","README"],tmScope:"text.md",parsers:["markdown"],vscodeLanguageIds:["markdown"]},{linguistLanguageId:222,name:"MDX",type:"prose",color:"#083fa1",aliases:["md","pandoc"],aceMode:"markdown",codemirrorMode:"gfm",codemirrorMimeType:"text/x-gfm",wrap:!0,extensions:[".mdx"],filenames:[],tmScope:"text.md",parsers:["mdx"],vscodeLanguageIds:["mdx"]}],At $ 4={bracketSpacing:{category:"Common",type:"boolean",default:!0,description:"Print spaces between brackets.",oppositeDescription:"Do not print spaces between brackets."},singleQuote:{category:"Common",type:"boolean",default:!1,description:"Use single quotes instead of double quotes."},proseWrap:{category:"Common",type:"choice",default:"preserve",description:"How to wrap prose.",choices:[{value:"always",description:"Wrap prose if it exceeds the print width."},{value:"never",description:"Do not wrap prose."},{value:"preserve",description:"Wrap prose as-is."}]},bracketSameLine:{category:"Common",type:"boolean",default:!1,description:"Put > of opening tags on the last line instead of on a new line."},singleAttributePerLine:{category:"Common",type:"boolean",default:!1,description:"Enforce single attribute per line in HTML, Vue and JSX."}},ff={proseWrap:At $ 4.proseWrap,singleQuote:At $ 4.singleQuote},Si $ 2=ff,On $ 2={};Ln $ 3(On $ 2,{markdown:()=>km,mdx:()=>Bm,remark:()=>km});var Wc $ 1=Ue $ 3(Pi $ 2()),Kc $ 1=Ue $ 3(Wi $ 1()),Jc $ 1=Ue $ 3(Gs $ 1()),Xc $ 1=Ue $ 3(Ic $ 1()),vm=/^import \s /u,Em=/^export \s /u,Nc $ 1=String.raw ` [ a - z ] [ a - z0 - 9 ] * ( \ . [ a - z ] [ a - z0 - 9 ] * ) * | ` ,Rc $ 1=/<!---->|<!---?[^>-](?:-?[^-])*-->/u,Cm=/^ \{ \s * \/ \* (.*) \* \/ \s * \} /u,bm $ 1= `
2024-08-31 11:28:56 +08:00
` ,Uc $ 1=Ra=>vm.test(Ra),Sn $ 2=Ra=>Em.test(Ra),zc $ 1=(Ra,qa)=>{let Ja=qa.indexOf(bm $ 1),ed=qa.slice(0,Ja);if(Sn $ 2(ed)||Uc $ 1(ed))return Ra(ed)({type:Sn $ 2(ed)?"export":"import",value:ed})},Mc $ 1=(Ra,qa)=>{let Ja=Cm.exec(qa);if(Ja)return Ra(Ja[0])({type:"esComment",value:Ja[1].trim()})};zc $ 1.locator=Ra=>Sn $ 2(Ra)||Uc $ 1(Ra)?-1:1;Mc $ 1.locator=(Ra,qa)=>Ra.indexOf("{",qa);var Yc $ 1=function(){let{Parser:Ra}=this,{blockTokenizers:qa,blockMethods:Ja,inlineTokenizers:ed,inlineMethods:td}=Ra.prototype;qa.esSyntax=zc $ 1,ed.esComment=Mc $ 1,Ja.splice(Ja.indexOf("paragraph"),0,"esSyntax"),td.splice(td.indexOf("text"),0,"esComment")},ym=function(){let Ra=this.Parser.prototype;Ra.blockMethods=["frontMatter",...Ra.blockMethods],Ra.blockTokenizers.frontMatter=qa;function qa(Ja,ed){let td=ir $ 2(ed);if(td.frontMatter)return Ja(td.frontMatter.raw)(td.frontMatter)}qa.onlyAtStart=!0},Gc $ 1=ym;function Am(){return Ra=>ye $ 2(Ra,(qa,Ja,[ed])=>qa.type!=="html"||Rc $ 1.test(qa.value)||Or $ 2.has(ed.type)?qa:{...qa,type:"jsx"})}var Vc $ 1=Am,xm=function(){let Ra=this.Parser.prototype,qa=Ra.inlineMethods;qa.splice(qa.indexOf("text"),0,"liquid"),Ra.inlineTokenizers.liquid=Ja;function Ja(ed,td){let rd=td.match(/^( \{ %.*?% \} | \{ \{ .*? \} \} )/su);if(rd)return ed(rd[0])({type:"liquidNode",value:rd[0]})}Ja.locator=function(ed,td){return ed.indexOf("{",td)}},jc $ 1=xm,wm=function(){let Ra="wikiLink",qa=/^ \[ \[ (?<linkContents>.+?) \] \] /su,Ja=this.Parser.prototype,ed=Ja.inlineMethods;ed.splice(ed.indexOf("link"),0,Ra),Ja.inlineTokenizers.wikiLink=td;function td(rd,od){let sd=qa.exec(od);if(sd){let ld=sd.groups.linkContents.trim();return rd(sd[0])({type:Ra,value:ld})}}td.locator=function(rd,od){return rd.indexOf("[",od)}}, $ c $ 1=wm;function Qc $ 1({isMDX:Ra}){return qa=>{let Ja=(0,Xc $ 1.default)().use(Jc $ 1.default,{commonmark:!0,...Ra&&{blocks:[Nc $ 1]}}).use(Wc $ 1.default).use(Gc $ 1).use(Kc $ 1.default).use(Ra?Yc $ 1:Hc $ 1).use(jc $ 1).use(Ra?Vc $ 1:Hc $ 1).use( $ c $ 1);return Ja.run(Ja.parse(qa))}}function Hc $ 1(){}var Zc $ 1={astFormat:"mdast",hasPragma:Kn $ 2,locStart:Oe $ 3,locEnd:Pe $ 3},km={...Zc $ 1,parse:Qc $ 1({isMDX:!1})},Bm={...Zc $ 1,parse:Qc $ 1({isMDX:!0})},qm={mdast:Ti $ 2},fC=Pn $ 3;const prettierPluginMarkdown=Object.freeze(Object.defineProperty({__proto__:null,default:fC,languages:_i $ 2,options:Si $ 2,parsers:On $ 2,printers:qm},Symbol.toStringTag,{value:"Module"}));var $ s $ 1=Object.create,je $ 3=Object.defineProperty,Vs $ 1=Object.getOwnPropertyDescriptor,qs $ 2=Object.getOwnPropertyNames,zs $ 1=Object.getPrototypeOf,Ks $ 2=Object.prototype.hasOwnProperty,Hs $ 2=(Ra,qa)=>()=>(qa||Ra((qa={exports:{}}).exports,qa),qa.exports),Ws $ 1=(Ra,qa)=>{for(var Ja in qa)je $ 3(Ra,Ja,{get:qa[Ja],enumerable:!0})},Js $ 1=(Ra,qa,Ja,ed)=>{if(qa&&typeof qa=="object"||typeof qa=="function")for(let td of qs $ 2(qa))!Ks $ 2.call(Ra,td)&&td!==Ja&&je $ 3(Ra,td,{get:()=>qa[td],enumerable:!(ed=Vs $ 1(qa,td))||ed.enumerable});return Ra},vt $ 1=(Ra,qa,Ja)=>(Ja=Ra!=null? $ s $ 1(zs $ 1(Ra)):{},Js $ 1(je $ 3(Ja,"default",{value:Ra,enumerable:!0}),Ra)),At $ 3=Hs $ 2(Ra=>{Object.defineProperty(Ra,"__esModule",{value:!0});function qa(zd,Pd){if(zd==null)return{};var Gd={},mf=Object.keys(zd),Mf,oh;for(oh=0;oh<mf.length;oh++)Mf=mf[oh],!(Pd.indexOf(Mf)>=0)&&(Gd[Mf]=zd[Mf]);return Gd}var Ja=class{constructor(zd,Pd,Gd){this.line=void 0,this.column=void 0,this.index=void 0,this.line=zd,this.column=Pd,this.index=Gd}},ed=class{constructor(zd,Pd){this.start=void 0,this.end=void 0,this.filename=void 0,this.identifierName=void 0,this.start=zd,this.end=Pd}};function td(zd,Pd){let{line:Gd,column:mf,index:Mf}=zd;return new Ja(Gd,mf+Pd,Mf+Pd)}var rd="BABEL_PARSER_SOURCETYPE_MODULE_REQUIRED",od={ImportMetaOutsideModule:{message: ` import . meta may appear only with 'sourceType: "module"' ` ,code:rd},ImportOutsideModule:{message: ` 'import' and 'export' may appear only with 'sourceType: "module"' ` ,code:rd}},sd={ArrayPattern:"array destructuring pattern",AssignmentExpression:"assignment expression",AssignmentPattern:"assignment expression",ArrowFunctionExpression:"arrow function expression",ConditionalExpression:"conditional expression",CatchClause:"catch clause",ForOfStatement:"for-of statement",ForInStatement:"for-
- Did you mean \ ` export { ' ${ zd } ' as ' ${ Pd } ' } from 'some-module' \` ? ` , ExportDefaultFromAsIdentifier : "'from' is not allowed as an identifier after 'export default'." , ForInOfLoopInitializer : ( { type : zd } ) => ` ' ${ zd === "ForInStatement" ? "for-in" : "for-of" } ' loop variable declaration may not have an initializer. ` , ForInUsing : "For-in loop may not start with 'using' declaration." , ForOfAsync : "The left-hand side of a for-of loop may not be 'async'." , ForOfLet : "The left-hand side of a for-of loop may not start with 'let'." , GeneratorInSingleStatementContext : "Generators can only be declared at the top level or inside a block." , IllegalBreakContinue : ( { type : zd } ) => ` Unsyntactic ${ zd === "BreakStatement" ? "break" : "continue" } . ` , IllegalLanguageModeDirective : "Illegal 'use strict' directive in function with non-simple parameter list." , IllegalReturn : "'return' outside of function." , ImportAttributesUseAssert : "The `assert` keyword in import attributes is deprecated and it has been replaced by the `with` keyword. You can enable the `deprecatedAssertSyntax: true` option in the import attributes plugin to suppress this error." , ImportBindingIsString : ( { importName : zd } ) => ` A string literal cannot be used as an imported binding.
- Did you mean \ ` import { " ${ zd } " as foo } \` ? ` , ImportCallArgumentTrailingComma : "Trailing comma is disallowed inside import(...) arguments." , ImportCallArity : ( { maxArgumentCount : zd } ) => ` \` import() \` requires exactly ${ zd === 1 ? "one argument" : "one or two arguments" } . ` , ImportCallNotNewExpression : "Cannot use new with import(...)." , ImportCallSpreadArgument : "`...` is not allowed in `import()`." , ImportJSONBindingNotDefault : "A JSON module can only be imported with `default`." , ImportReflectionHasAssertion : "`import module x` cannot have assertions." , ImportReflectionNotBinding : 'Only `import module x from "./module"` is valid.' , IncompatibleRegExpUVFlags : "The 'u' and 'v' regular expression flags cannot be enabled at the same time." , InvalidBigIntLiteral : "Invalid BigIntLiteral." , InvalidCodePoint : "Code point out of bounds." , InvalidCoverInitializedName : "Invalid shorthand property initializer." , InvalidDecimal : "Invalid decimal." , InvalidDigit : ( { radix : zd } ) => ` Expected number in radix ${ zd } . ` , InvalidEscapeSequence : "Bad character escape sequence." , InvalidEscapeSequenceTemplate : "Invalid escape sequence in template." , InvalidEscapedReservedWord : ( { reservedWord : zd } ) => ` Escape sequence in keyword ${ zd } . ` , InvalidIdentifier : ( { identifierName : zd } ) => ` Invalid identifier ${ zd } . ` , InvalidLhs : ( { ancestor : zd } ) => ` Invalid left-hand side in ${ ld ( zd ) } . ` , InvalidLhsBinding : ( { ancestor : zd } ) => ` Binding invalid left-hand side in ${ ld ( zd ) } . ` , InvalidLhsOptionalChaining : ( { ancestor : zd } ) => ` Invalid optional chaining in the left-hand side of ${ ld ( zd ) } . ` , InvalidNumber : "Invalid number." , InvalidOrMissingExponent : "Floating-point numbers require a valid exponent after the 'e'." , InvalidOrUnexpectedToken : ( { unexpected : zd } ) => ` Unexpected character ' ${ zd } '. ` , InvalidParenthesizedAssignment : "Invalid parenthesized assignment pattern." , InvalidPrivateFieldResolution : ( { identifierName : zd } ) => ` Private name # ${ zd } is not defined. ` , InvalidPropertyBindingPattern : "Binding member expression." , InvalidRecordProperty : "Only properties and spread elements are allowed in record definitions." , InvalidRestAssignmentPattern : "Invalid rest operator's argument." , LabelRedeclaration : ( { labelName : zd } ) => ` Label ' ${ zd } ' is already declared. ` , LetInLexicalBinding : "'let' is disallowed as a lexically bound name." , LineTerminatorBeforeArrow : "No line break is allowed before '=>'." , MalformedRegExpFlags : "Invalid regular expression flag." , MissingClassName : "A class name is required." , MissingEqInAssignment : "Only '=' operator can be used for specifying default value." , MissingSemicolon : "Missing semicolon." , MissingPlugin : ( { missingPlugin : zd } ) => ` This experimental syntax requires enabling the parser plugin: ${ zd . map ( Pd => JSON . stringify ( Pd ) ) . join ( ", " ) } . ` , MissingOneOfPlugins : ( { missingPlugin : zd } ) => ` This experimental syntax requires enabling one of the following parser plugin(s): ${ zd . map ( Pd => JSON . stringify ( Pd ) ) . join ( ", " ) } . ` , MissingUnicodeEscape : "Expecting Unicode escape sequence \\uXXXX." , MixingCoalesceWithLogical : "Nullish coalescing operator(??) requires parens when mixing with logical operators." , ModuleAttributeDifferentFromType : "The only accepted module attribute is `type`." , ModuleAttributeInvalidValue : "Only string literals are allowed as module attribute values." , ModuleAttributesWithDuplicateKeys : ( { key : zd } ) => ` Duplicate key " ${ zd } " is not allowed in module attributes. ` , ModuleExportNameHasLoneSurrogate : ( { surrogateCharCode : zd } ) => ` An export name cannot include a lone surrogate, found ' \\ u ${ zd . toString ( 16 ) } '. ` , ModuleExportUndefined : ( { localName : zd } ) => ` Export ' ${ zd } ' is not defined. ` , MultipleDefaultsInSwitch : "Multiple default clauses." , NewlineAfterThrow : "Illegal newline after throw." , NoCatchOrFinally : "Missing catch or finally clause." , NumberIdentifier : "Identifier directly after number." , NumericSeparatorInEscapeSequence : "Numeric separators are not allowed inside unicode escape sequences or hex escape sequences." , ObsoleteAwaitStar : "'await*' has been removed from the async functions proposal. Use Promise.all() instead." , OptionalChainingNoNew : "Constructors in/after an Optional Chain are not allowed." , OptionalChainingNoTemplate : " Tagged Template Literals ar
` ,++Gd,i1===13&&Pd.charCodeAt(Gd)===10&&++Gd,++Mf,Km=mf=Gd):oh.unterminated(Nh,Bh,Kh):++Gd}return{pos:Gd,str:Vh,firstInvalidLoc:Om,lineStart:mf,curLine:Mf,containsInvalid:!!Om}}function c1(zd,Pd,Gd,mf){return zd==="template"?Pd===96||Pd===36&&Gd.charCodeAt(mf+1)===123:Pd===(zd==="double"?34:39)}function m1(zd,Pd,Gd,mf,Mf,oh){let Nh=!Mf;Pd++;let Bh=Vh=>({pos:Pd,ch:Vh,lineStart:Gd,curLine:mf}),Kh=zd.charCodeAt(Pd++);switch(Kh){case 110:return Bh( `
` );case 114:return Bh(" \r ");case 120:{let Vh;return{code:Vh,pos:Pd}=o1(zd,Pd,Gd,mf,2,!1,Nh,oh),Bh(Vh===null?null:String.fromCharCode(Vh))}case 117:{let Vh;return{code:Vh,pos:Pd}=T1(zd,Pd,Gd,mf,Nh,oh),Bh(Vh===null?null:String.fromCodePoint(Vh))}case 116:return Bh(" ");case 98:return Bh(" \b ");case 118:return Bh(" \v ");case 102:return Bh(" \f ");case 13:zd.charCodeAt(Pd)===10&&++Pd;case 10:Gd=Pd,++mf;case 8232:case 8233:return Bh("");case 56:case 57:if(Mf)return Bh(null);oh.strictNumericEscape(Pd-1,Gd,mf);default:if(Kh>=48&&Kh<=55){let Vh=Pd-1,Om=/^[0-7]+/.exec(zd.slice(Vh,Pd+2))[0],Km=parseInt(Om,8);Km>255&&(Om=Om.slice(0,-1),Km=parseInt(Om,8)),Pd+=Om.length-1;let t1=zd.charCodeAt(Pd);if(Om!=="0"||t1===56||t1===57){if(Mf)return Bh(null);oh.strictNumericEscape(Vh,Gd,mf)}return Bh(String.fromCharCode(Km))}return Bh(String.fromCharCode(Kh))}}function o1(zd,Pd,Gd,mf,Mf,oh,Nh,Bh){let Kh=Pd,Vh;return{n:Vh,pos:Pd}=Mm(zd,Pd,Gd,mf,16,Mf,oh,!1,Bh,!Nh),Vh===null&&(Nh?Bh.invalidEscapeSequence(Kh,Gd,mf):Pd=Kh-1),{code:Vh,pos:Pd}}function Mm(zd,Pd,Gd,mf,Mf,oh,Nh,Bh,Kh,Vh){let Om=Pd,Km=Mf===16?cm.hex:cm.decBinOct,t1=Mf===16?Gf.hex:Mf===10?Gf.dec:Mf===8?Gf.oct:Gf.bin,i1=!1,N1=0;for(let f0=0,F1=oh??1/0;f0<F1;++f0){let Y1=zd.charCodeAt(Pd),O0;if(Y1===95&&Bh!=="bail"){let Kg=zd.charCodeAt(Pd-1),Tv=zd.charCodeAt(Pd+1);if(Bh){if(Number.isNaN(Tv)||!t1(Tv)||Km.has(Kg)||Km.has(Tv)){if(Vh)return{n:null,pos:Pd};Kh.unexpectedNumericSeparator(Pd,Gd,mf)}}else{if(Vh)return{n:null,pos:Pd};Kh.numericSeparatorInEscapeSequence(Pd,Gd,mf)}++Pd;continue}if(Y1>=97?O0=Y1-97+10:Y1>=65?O0=Y1-65+10:Qh(Y1)?O0=Y1-48:O0=1/0,O0>=Mf){if(O0<=9&&Vh)return{n:null,pos:Pd};if(O0<=9&&Kh.invalidDigit(Pd,Gd,mf,Mf))O0=0;else if(Nh)O0=0,i1=!0;else break}++Pd,N1=N1*Mf+O0}return Pd===Om||oh!=null&&Pd-Om!==oh||i1?{n:null,pos:Pd}:{n:N1,pos:Pd}}function T1(zd,Pd,Gd,mf,Mf,oh){let Nh=zd.charCodeAt(Pd),Bh;if(Nh===123){if(++Pd,{code:Bh,pos:Pd}=o1(zd,Pd,Gd,mf,zd.indexOf("}",Pd)-Pd,!0,Mf,oh),++Pd,Bh!==null&&Bh>1114111)if(Mf)oh.invalidCodePoint(Pd,Gd,mf);else return{code:null,pos:Pd}}else({code:Bh,pos:Pd}=o1(zd,Pd,Gd,mf,4,!1,Mf,oh));return{code:Bh,pos:Pd}}function p1(zd,Pd,Gd){return new Ja(Gd,zd-Pd,zd)}var l1=new Set([103,109,115,105,121,117,100,118]),hh=class{constructor(zd){this.type=zd.type,this.value=zd.value,this.start=zd.start,this.end=zd.end,this.loc=new ed(zd.startLoc,zd.endLoc)}},Uh=class extends bh{constructor(zd,Pd){super(),this.isLookahead=void 0,this.tokens=[],this.errorHandlers_readInt={invalidDigit:(Gd,mf,Mf,oh)=>this.options.errorRecovery?(this.raise(Nd.InvalidDigit,p1(Gd,mf,Mf),{radix:oh}),!0):!1,numericSeparatorInEscapeSequence:this.errorBuilder(Nd.NumericSeparatorInEscapeSequence),unexpectedNumericSeparator:this.errorBuilder(Nd.UnexpectedNumericSeparator)},this.errorHandlers_readCodePoint=Object.assign({},this.errorHandlers_readInt,{invalidEscapeSequence:this.errorBuilder(Nd.InvalidEscapeSequence),invalidCodePoint:this.errorBuilder(Nd.InvalidCodePoint)}),this.errorHandlers_readStringContents_string=Object.assign({},this.errorHandlers_readCodePoint,{strictNumericEscape:(Gd,mf,Mf)=>{this.recordStrictModeErrors(Nd.StrictNumericEscape,p1(Gd,mf,Mf))},unterminated:(Gd,mf,Mf)=>{throw this.raise(Nd.UnterminatedString,p1(Gd-1,mf,Mf))}}),this.errorHandlers_readStringContents_template=Object.assign({},this.errorHandlers_readCodePoint,{strictNumericEscape:this.errorBuilder(Nd.StrictNumericEscape),unterminated:(Gd,mf,Mf)=>{throw this.raise(Nd.UnterminatedTemplate,p1(Gd,mf,Mf))}}),this.state=new Lh,this.state.init(zd),this.input=Pd,this.length=Pd.length,this.comments=[],this.isLookahead=!1}pushToken(zd){this.tokens.length=this.state.tokensLength,this.tokens.push(zd),++this.state.tokensLength}next(){this.checkKeywordEscapes(),this.options.tokens&&this.pushToken(new hh(this.state)),this.state.lastTokEndLoc=this.state.endLoc,this.state.lastTokStartLoc=this.state.startLoc,this.nextToken()}eat(zd){return this.match(zd)?(this.next(),!0):!1}match(zd){return this.state.type===zd}createLookaheadState(zd){return{pos:zd.pos,value:null,type:zd.type,start:zd.start,end:zd.end,context:[this.curContext
2024-08-30 15:19:18 +08:00
` : ` \ r
2024-08-31 11:28:56 +08:00
` ):mf=String.fromCharCode(Gd),++this.state.curLine,this.state.lineStart=this.state.pos,mf}jsxReadString(Pd){let Gd="",mf=++this.state.pos;for(;;){if(this.state.pos>=this.length)throw this.raise(Nd.UnterminatedString,this.state.startLoc);let Mf=this.input.charCodeAt(this.state.pos);if(Mf===Pd)break;Mf===38?(Gd+=this.input.slice(mf,this.state.pos),Gd+=this.jsxReadEntity(),mf=this.state.pos):qh(Mf)?(Gd+=this.input.slice(mf,this.state.pos),Gd+=this.jsxReadNewLine(!1),mf=this.state.pos):++this.state.pos}Gd+=this.input.slice(mf,this.state.pos++),this.finishToken(133,Gd)}jsxReadEntity(){let Pd=++this.state.pos;if(this.codePointAtPos(this.state.pos)===35){++this.state.pos;let Gd=10;this.codePointAtPos(this.state.pos)===120&&(Gd=16,++this.state.pos);let mf=this.readInt(Gd,void 0,!1,"bail");if(mf!==null&&this.codePointAtPos(this.state.pos)===59)return++this.state.pos,String.fromCodePoint(mf)}else{let Gd=0,mf=!1;for(;Gd++<10&&this.state.pos<this.length&&!(mf=this.codePointAtPos(this.state.pos)===59);)++this.state.pos;if(mf){this.input.slice(Pd,this.state.pos);let Mf;++this.state.pos}}return this.state.pos=Pd,"&"}jsxReadWord(){let Pd,Gd=this.state.pos;do Pd=this.input.charCodeAt(++this.state.pos);while(Yh(Pd)||Pd===45);this.finishToken(140,this.input.slice(Gd,this.state.pos))}jsxParseIdentifier(){let Pd=this.startNode();return this.match(140)?Pd.name=this.state.value:Af(this.state.type)?Pd.name=Ah(this.state.type):this.unexpected(),this.next(),this.finishNode(Pd,"JSXIdentifier")}jsxParseNamespacedName(){let Pd=this.state.startLoc,Gd=this.jsxParseIdentifier();if(!this.eat(14))return Gd;let mf=this.startNodeAt(Pd);return mf.namespace=Gd,mf.name=this.jsxParseIdentifier(),this.finishNode(mf,"JSXNamespacedName")}jsxParseElementName(){let Pd=this.state.startLoc,Gd=this.jsxParseNamespacedName();if(Gd.type==="JSXNamespacedName")return Gd;for(;this.eat(16);){let mf=this.startNodeAt(Pd);mf.object=Gd,mf.property=this.jsxParseIdentifier(),Gd=this.finishNode(mf,"JSXMemberExpression")}return Gd}jsxParseAttributeValue(){let Pd;switch(this.state.type){case 5:return Pd=this.startNode(),this.setContext(Vd.brace),this.next(),Pd=this.jsxParseExpressionContainer(Pd,Vd.j_oTag),Pd.expression.type==="JSXEmptyExpression"&&this.raise(p0.AttributeIsEmpty,Pd),Pd;case 142:case 133:return this.parseExprAtom();default:throw this.raise(p0.UnsupportedJsxValue,this.state.startLoc)}}jsxParseEmptyExpression(){let Pd=this.startNodeAt(this.state.lastTokEndLoc);return this.finishNodeAt(Pd,"JSXEmptyExpression",this.state.startLoc)}jsxParseSpreadChild(Pd){return this.next(),Pd.expression=this.parseExpression(),this.setContext(Vd.j_expr),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(Pd,"JSXSpreadChild")}jsxParseExpressionContainer(Pd,Gd){if(this.match(8))Pd.expression=this.jsxParseEmptyExpression();else{let mf=this.parseExpression();Pd.expression=mf}return this.setContext(Gd),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(Pd,"JSXExpressionContainer")}jsxParseAttribute(){let Pd=this.startNode();return this.match(5)?(this.setContext(Vd.brace),this.next(),this.expect(21),Pd.argument=this.parseMaybeAssignAllowIn(),this.setContext(Vd.j_oTag),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(Pd,"JSXSpreadAttribute")):(Pd.name=this.jsxParseNamespacedName(),Pd.value=this.eat(29)?this.jsxParseAttributeValue():null,this.finishNode(Pd,"JSXAttribute"))}jsxParseOpeningElementAt(Pd){let Gd=this.startNodeAt(Pd);return this.eat(143)?this.finishNode(Gd,"JSXOpeningFragment"):(Gd.name=this.jsxParseElementName(),this.jsxParseOpeningElementAfterName(Gd))}jsxParseOpeningElementAfterName(Pd){let Gd=[];for(;!this.match(56)&&!this.match(143);)Gd.push(this.jsxParseAttribute());return Pd.attributes=Gd,Pd.selfClosing=this.eat(56),this.expect(143),this.finishNode(Pd,"JSXOpeningElement")}jsxParseClosingElementAt(Pd){let Gd=this.startNodeAt(Pd);return this.eat(143)?this.finishNode(Gd,"JSXClosingFragment"):(Gd.name=this.jsxParseElementName(),this.expect(143),this.finishNode(Gd,"JSXClosingElement"))}jsxParseElementAt(Pd){let Gd=this.startNodeAt(Pd),mf=[],Mf
` ),cooked:Mf===null?null:Mf.slice(1,Kh)},Nh.tail=Bh,this.next();let Om=this.finishNode(Nh,"TemplateElement");return this.resetEndLocation(Om,td(this.state.lastTokEndLoc,Kh)),Om}parseTemplate(zd){let Pd=this.startNode(),Gd=this.parseTemplateElement(zd),mf=[Gd],Mf=[];for(;!Gd.tail;)Mf.push(this.parseTemplateSubstitution()),this.readTemplateContinuation(),mf.push(Gd=this.parseTemplateElement(zd));return Pd.expressions=Mf,Pd.quasis=mf,this.finishNode(Pd,"TemplateLiteral")}parseTemplateSubstitution(){return this.parseExpression()}parseObjectLike(zd,Pd,Gd,mf){Gd&&this.expectPlugin("recordAndTuple");let Mf=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;let oh=Object.create(null),Nh=!0,Bh=this.startNode();for(Bh.properties=[],this.next();!this.match(zd);){if(Nh)Nh=!1;else if(this.expect(12),this.match(zd)){this.addTrailingCommaExtraToNode(Bh);break}let Vh;Pd?Vh=this.parseBindingProperty():(Vh=this.parsePropertyDefinition(mf),this.checkProto(Vh,Gd,oh,mf)),Gd&&!this.isObjectProperty(Vh)&&Vh.type!=="SpreadElement"&&this.raise(Nd.InvalidRecordProperty,Vh),Vh.shorthand&&this.addExtra(Vh,"shorthand",!0),Bh.properties.push(Vh)}this.next(),this.state.inFSharpPipelineDirectBody=Mf;let Kh="ObjectExpression";return Pd?Kh="ObjectPattern":Gd&&(Kh="RecordExpression"),this.finishNode(Bh,Kh)}addTrailingCommaExtraToNode(zd){this.addExtra(zd,"trailingComma",this.state.lastTokStartLoc.index),this.addExtra(zd,"trailingCommaLoc",this.state.lastTokStartLoc,!1)}maybeAsyncOrAccessorProp(zd){return!zd.computed&&zd.key.type==="Identifier"&&(this.isLiteralPropertyName()||this.match(0)||this.match(55))}parsePropertyDefinition(zd){let Pd=[];if(this.match(26))for(this.hasPlugin("decorators")&&this.raise(Nd.UnsupportedPropertyDecorator,this.state.startLoc);this.match(26);)Pd.push(this.parseDecorator());let Gd=this.startNode(),mf=!1,Mf=!1,oh;if(this.match(21))return Pd.length&&this.unexpected(),this.parseSpread();Pd.length&&(Gd.decorators=Pd,Pd=[]),Gd.method=!1,zd&&(oh=this.state.startLoc);let Nh=this.eat(55);this.parsePropertyNamePrefixOperator(Gd);let Bh=this.state.containsEsc;if(this.parsePropertyName(Gd,zd),!Nh&&!Bh&&this.maybeAsyncOrAccessorProp(Gd)){let{key:Kh}=Gd,Vh=Kh.name;Vh==="async"&&!this.hasPrecedingLineBreak()&&(mf=!0,this.resetPreviousNodeTrailingComments(Kh),Nh=this.eat(55),this.parsePropertyName(Gd)),(Vh==="get"||Vh==="set")&&(Mf=!0,this.resetPreviousNodeTrailingComments(Kh),Gd.kind=Vh,this.match(55)&&(Nh=!0,this.raise(Nd.AccessorIsGenerator,this.state.curPosition(),{kind:Vh}),this.next()),this.parsePropertyName(Gd))}return this.parseObjPropValue(Gd,oh,Nh,mf,!1,Mf,zd)}getGetterSetterExpectedParamCount(zd){return zd.kind==="get"?0:1}getObjectOrClassMethodParams(zd){return zd.params}checkGetterSetterParams(zd){var Pd;let Gd=this.getGetterSetterExpectedParamCount(zd),mf=this.getObjectOrClassMethodParams(zd);mf.length!==Gd&&this.raise(zd.kind==="get"?Nd.BadGetterArity:Nd.BadSetterArity,zd),zd.kind==="set"&&((Pd=mf[mf.length-1])==null?void 0:Pd.type)==="RestElement"&&this.raise(Nd.BadSetterRestParameter,zd)}parseObjectMethod(zd,Pd,Gd,mf,Mf){if(Mf){let oh=this.parseMethod(zd,Pd,!1,!1,!1,"ObjectMethod");return this.checkGetterSetterParams(oh),oh}if(Gd||Pd||this.match(10))return mf&&this.unexpected(),zd.kind="method",zd.method=!0,this.parseMethod(zd,Pd,Gd,!1,!1,"ObjectMethod")}parseObjectProperty(zd,Pd,Gd,mf){if(zd.shorthand=!1,this.eat(14))return zd.value=Gd?this.parseMaybeDefault(this.state.startLoc):this.parseMaybeAssignAllowIn(mf),this.finishNode(zd,"ObjectProperty");if(!zd.computed&&zd.key.type==="Identifier"){if(this.checkReservedWord(zd.key.name,zd.key.loc.start,!0,!1),Gd)zd.value=this.parseMaybeDefault(Pd,S0(zd.key));else if(this.match(29)){let Mf=this.state.startLoc;mf!=null?mf.shorthandAssignLoc===null&&(mf.shorthandAssignLoc=Mf):this.raise(Nd.InvalidCoverInitializedName,Mf),zd.value=this.parseMaybeDefault(Pd,S0(zd.key))}else zd.value=S0(zd.key);return zd.shorthand=!0,this.finishNode(zd,"ObjectProperty")}}parseObjPropValue(zd,Pd,Gd,mf,Mf,oh,Nh){let Bh=this.parseObjectMethod(zd,Gd,mf,Mf,oh)||this.parseObjectPr
2024-08-30 15:19:18 +08:00
` )return qa-2;if(td=== `
` ||td===" \r "||td===" \u 2028"||td===" \u 2029")return qa-1}else{if(td===" \r "&&Ra.charAt(qa+1)=== `
` )return qa+2;if(td=== `
` ||td===" \r "||td===" \u 2028"||td===" \u 2029")return qa+1}return qa}var us $ 2=mr $ 1;function yr $ 1(Ra,qa){return qa===!1?!1:Ra.charAt(qa)==="/"&&Ra.charAt(qa+1)==="/"?cs $ 2(Ra,qa):qa}var fs $ 1=yr $ 1;function xr $ 1(Ra,qa){let Ja=null,ed=qa;for(;ed!==Ja;)Ja=ed,ed=ls $ 2(Ra,ed),ed=ps $ 1(Ra,ed),ed=fs $ 1(Ra,ed),ed=us $ 2(Ra,ed);return ed}var ds $ 1=xr $ 1;function Pr $ 1(Ra){let qa=[];for(let Ja of Ra)try{return Ja()}catch(ed){qa.push(ed)}throw Object.assign(new Error("All combinations failed"),{errors:qa})}var ms $ 1=Pr $ 1;function gr $ 1(Ra){if(!Ra.startsWith("#!"))return"";let qa=Ra.indexOf( `
` );return qa===-1?Ra:Ra.slice(0,qa)}var Oe $ 2=gr $ 1,Tr $ 1=(Ra,qa,Ja)=>{if(!(Ra&&qa==null))return Array.isArray(qa)||typeof qa=="string"?qa[Ja<0?qa.length+Ja:Ja]:qa.at(Ja)},St $ 2=Tr $ 1;function br $ 1(Ra){return Array.isArray(Ra)&&Ra.length>0}var Pe $ 2=br $ 1;function D $ 1(Ra){var qa,Ja,ed;let td=((qa=Ra.range)==null?void 0:qa[0])??Ra.start,rd=(ed=((Ja=Ra.declaration)==null?void 0:Ja.decorators)??Ra.decorators)==null?void 0:ed[0];return rd?Math.min(D $ 1(rd),td):td}function B(Ra){var qa;return((qa=Ra.range)==null?void 0:qa[1])??Ra.end}function Ar $ 1(Ra){let qa=new Set(Ra);return Ja=>qa.has(Ja==null?void 0:Ja.type)}var ys $ 1=Ar $ 1,Sr $ 1=ys $ 1(["Block","CommentBlock","MultiLine"]),ge $ 2=Sr $ 1;function wr $ 1(Ra){let qa= ` * $ { Ra . value } * ` .split( `
` );return qa.length>1&&qa.every(Ja=>Ja.trimStart()[0]==="*")}var wt $ 1=wr $ 1;function Cr(Ra){return ge $ 2(Ra)&&Ra.value[0]==="*"&&/@(?:type|satisfies) \b /u.test(Ra.value)}var xs $ 1=Cr,Te $ 2=null;function be $ 3(Ra){if(Te $ 2!==null&&typeof Te $ 2.property){let qa=Te $ 2;return Te $ 2=be $ 3.prototype=null,qa}return Te $ 2=be $ 3.prototype=Ra??Object.create(null),new be $ 3}var Er $ 1=10;for(let Ra=0;Ra<=Er $ 1;Ra++)be $ 3();function Ct $ 2(Ra){return be $ 3(Ra)}function Ir $ 1(Ra,qa="type"){Ct $ 2(Ra);function Ja(ed){let td=ed[qa],rd=Ra[td];if(!Array.isArray(rd))throw Object.assign(new Error( ` Missing visitor keys for '${td}' . ` ),{node:ed});return rd}return Ja}var Ps $ 1=Ir $ 1,gs $ 2={ArrayExpression:["elements"],AssignmentExpression:["left","right"],BinaryExpression:["left","right"],InterpreterDirective:[],Directive:["value"],DirectiveLiteral:[],BlockStatement:["directives","body"],BreakStatement:["label"],CallExpression:["callee","arguments","typeParameters","typeArguments"],CatchClause:["param","body"],ConditionalExpression:["test","consequent","alternate"],ContinueStatement:["label"],DebuggerStatement:[],DoWhileStatement:["test","body"],EmptyStatement:[],ExpressionStatement:["expression"],File:["program"],ForInStatement:["left","right","body"],ForStatement:["init","test","update","body"],FunctionDeclaration:["id","params","body","returnType","typeParameters","predicate"],FunctionExpression:["id","params","body","returnType","typeParameters"],Identifier:["typeAnnotation","decorators"],IfStatement:["test","consequent","alternate"],LabeledStatement:["label","body"],StringLiteral:[],NumericLiteral:[],NullLiteral:[],BooleanLiteral:[],RegExpLiteral:[],LogicalExpression:["left","right"],MemberExpression:["object","property"],NewExpression:["callee","arguments","typeParameters","typeArguments"],Program:["directives","body"],ObjectExpression:["properties"],ObjectMethod:["key","params","body","decorators","returnType","typeParameters"],ObjectProperty:["key","value","decorators"],RestElement:["argument","typeAnnotation","decorators"],ReturnStatement:["argument"],SequenceExpression:["expressions"],ParenthesizedExpression:["expression"],SwitchCase:["test","consequent"],SwitchStatement:["discriminant","cases"],ThisExpression:[],ThrowStatement:["argument"],TryStatement:["block","handler","finalizer"],UnaryExpression:["argument"],UpdateExpression:["argument"],VariableDeclaration:["declarations"],VariableDeclarator:["id","init"],WhileStatement:["test","body"],WithStatement:["object","body"],AssignmentPattern:["left","right","decorators","typeAnnotation"],ArrayPattern:["elements","typeAnnotation","decorators"],ArrowFunctionExpression:["params","body","returnType","typeParameters","predicate"],ClassBody:["body"],ClassExpression:["id","body","superClass","mixins","typeParameters","superTypeParameters","implements","decorators","superTypeArguments"],ClassDeclaration:["id","body","superClass","mixins","typeParameters","superTypeParameters","implements","decorators","superTypeArguments"],ExportAllDeclaration:["source","attributes","exported"],ExportDefaultDeclaration:["declaration"],ExportNamedDeclaration:["declaration","specifiers","source","attributes"],ExportSpecifier:["local","exported"],ForOfStatement:["left","right","body"],ImportDeclaration:["specifiers","source","attributes"],ImportDefaultSpecifier:["local"],ImportNamespaceSpecifier:["local"],ImportSpecifier:["local","imported"],ImportExpression:["source","options","attributes"],MetaProperty:["meta","property"],ClassMethod:["key","params","body","decorators","returnType","typeParameters"],ObjectPattern:["properties","typeAnnotation","decorators"],SpreadElement:["argument"],Super:[],TaggedTemplateExpression:["tag","quasi","typeParameters","typeArguments"],TemplateElement:[],TemplateLiteral:["quasis","expressions"],YieldExpression:["argument"],AwaitExpression:["argument"],Import:[],BigIntLiteral:[],ExportNamespaceSpecifier:["exported"],OptionalMemberExpression:["object","property"],OptionalCallExpression:["callee","arguments","typeParameters","typeArguments"],ClassProperty:["key","value","typeAnnotation","decorators","variance
2024-08-31 11:28:56 +08:00
` ;Ra=ie $ 2(!1,Ra.replace(Or $ 1,"").replace(Mr $ 2,""),Ur $ 2," $ 1");let Ja="";for(;Ja!==Ra;)Ja=Ra,Ra=ie $ 2(!1,Ra,Rr $ 1, ` $ { qa } $1 $2$ { qa } ` );Ra=Ra.replace(Ss $ 1,"").trimEnd();let ed=Object.create(null),td=ie $ 2(!1,Ra,ws $ 2,"").replace(Ss $ 1,"").trimEnd(),rd;for(;rd=ws $ 2.exec(Ra);){let od=ie $ 2(!1,rd[2],Br $ 2,"");if(typeof ed[rd[1]]=="string"||Array.isArray(ed[rd[1]])){let sd=ed[rd[1]];ed[rd[1]]=[..._r $ 1,...Array.isArray(sd)?sd:[sd],od]}else ed[rd[1]]=od}return{comments:td,pragmas:ed}}function jr $ 2(Ra){let qa=Oe $ 2(Ra);qa&&(Ra=Ra.slice(qa.length+1));let Ja=Cs $ 1(Ra),{pragmas:ed,comments:td}=Es $ 1(Ja);return{shebang:qa,text:Ra,pragmas:ed,comments:td}}function Is $ 2(Ra){let{pragmas:qa}=jr $ 2(Ra);return Object.prototype.hasOwnProperty.call(qa,"prettier")||Object.prototype.hasOwnProperty.call(qa,"format")}function $ r $ 2(Ra){return Ra=typeof Ra=="function"?{parse:Ra}:Ra,{astFormat:"estree",hasPragma:Is $ 2,locStart:D $ 1,locEnd:B,...Ra}}var G $ 1= $ r $ 2;function Vr $ 2(Ra){let{filepath:qa}=Ra;if(qa){if(qa=qa.toLowerCase(),qa.endsWith(".cjs"))return"script";if(qa.endsWith(".mjs"))return"module"}}var Ns $ 1=Vr $ 2;function qr $ 1(Ra,qa){let{type:Ja="JsExpressionRoot",rootMarker:ed,text:td}=qa,{tokens:rd,comments:od}=Ra;return delete Ra.tokens,delete Ra.comments,{tokens:rd,comments:od,type:Ja,node:Ra,range:[0,td.length],rootMarker:ed}}var Ue $ 2=qr $ 1,re $ 2=Ra=>G $ 1(Jr $ 2(Ra)),zr $ 2={sourceType:"module",allowImportExportEverywhere:!0,allowReturnOutsideFunction:!0,allowNewTargetOutsideFunction:!0,allowSuperOutsideMethod:!0,allowUndeclaredExports:!0,errorRecovery:!0,createParenthesizedExpressions:!0,createImportExpressions:!0,plugins:["doExpressions","exportDefaultFrom","functionBind","functionSent","throwExpressions","partialApplication","decorators","decimal","moduleBlocks","asyncDoExpressions","destructuringPrivate","decoratorAutoAccessors","importReflection","explicitResourceManagement",["importAttributes",{deprecatedAssertSyntax:!0}],"sourcePhaseImports","deferredImportEvaluation",["optionalChainingAssign",{version:"2023-07"}],"recordAndTuple"],tokens:!0,ranges:!0},ks $ 1="v8intrinsic",vs $ 1=[["pipelineOperator",{proposal:"hack",topicToken:"%"}],["pipelineOperator",{proposal:"minimal"}],["pipelineOperator",{proposal:"fsharp"}]],V $ 2=(Ra,qa=zr $ 2)=>({...qa,plugins:[...qa.plugins,...Ra]}),Kr $ 2=/@(?:no)?flow \b /u;function Hr $ 2(Ra,qa){var Ja;if((Ja=qa.filepath)!=null&&Ja.endsWith(".js.flow"))return!0;let ed=Oe $ 2(Ra);ed&&(Ra=Ra.slice(ed.length));let td=ds $ 1(Ra,0);return td!==!1&&(Ra=Ra.slice(0,td)),Kr $ 2.test(Ra)}function Wr $ 2(Ra,qa,Ja){let ed=Ra(qa,Ja),td=ed.errors.find(rd=>!Xr $ 2.has(rd.reasonCode));if(td)throw td;return ed}function Jr $ 2({isExpression:Ra=!1,optionsCombinations:qa}){return(Ja,ed={})=>{if((ed.parser==="babel"||ed.parser==="__babel_estree")&&Hr $ 2(Ja,ed))return ed.parser="babel-flow",Bs $ 1.parse(Ja,ed);let td=qa;(ed.__babelSourceType??Ns $ 1(ed))==="script"&&(td=td.map(ld=>({...ld,sourceType:"script"})));let rd=/%[A-Z]/u.test(Ja);Ja.includes("|>")?td=(rd?[...vs $ 1,ks $ 1]:vs $ 1).flatMap(ld=>td.map(cd=>V $ 2([ld],cd))):rd&&(td=td.map(ld=>V $ 2([ks $ 1],ld)));let od=Ra?_e $ 2.parseExpression:_e $ 2.parse,sd;try{sd=ms $ 1(td.map(ld=>()=>Wr $ 2(od,Ja,ld)))}catch({errors:[ld]}){throw Re $ 3(ld)}return Ra&&(sd=Ue $ 2(sd,{text:Ja,rootMarker:ed.rootMarker})),As $ 2(sd,{parser:"babel",text:Ja})}}var Xr $ 2=new Set(["StrictNumericEscape","StrictWith","StrictOctalLiteral","StrictDelete","StrictEvalArguments","StrictEvalArgumentsBinding","StrictFunction","ForInOfLoopInitializer","EmptyTypeArguments","EmptyTypeParameters","ConstructorHasTypeParameters","UnsupportedParameterPropertyKind","DecoratorExportClass","ParamDupe","InvalidDecimal","RestTrailingComma","UnsupportedParameterDecorator","UnterminatedJsxContent","UnexpectedReservedWord","ModuleAttributesWithDuplicateKeys","LineTerminatorBeforeArrow","InvalidEscapeSequenceTemplate","NonAbstractClassHasAbstractMethod","OptionalTypeBeforeRequired","PatternIsOptional","OptionalBindingPattern","DeclareClassFieldHasInitializer","TypeImportCannotSpecifyDefaultAndNamed","ConstructorClassField","VarRedeclaration","InvalidPrivateFieldResolution","DuplicateExport"]),Fs $ 1
2024-08-30 15:19:18 +08:00
` )return qa-2;if(td=== `
` ||td===" \r "||td===" \u 2028"||td===" \u 2029")return qa-1}else{if(td===" \r "&&Ra.charAt(qa+1)=== `
` )return qa+2;if(td=== `
` ||td===" \r "||td===" \u 2028"||td===" \u 2029")return qa+1}return qa}var Ue $ 1= $ a $ 2;function Ka(Ra,qa,Ja={}){let ed=Ge $ 1(Ra,Ja.backwards?qa-1:qa,Ja),td=Ue $ 1(Ra,ed,Ja);return ed!==td}var te $ 1=Ka;function za(Ra,qa){if(qa===!1)return!1;if(Ra.charAt(qa)==="/"&&Ra.charAt(qa+1)==="*"){for(let Ja=qa+2;Ja<Ra.length;++Ja)if(Ra.charAt(Ja)==="*"&&Ra.charAt(Ja+1)==="/")return Ja+2}return qa}var Lt $ 1=za;function Qa(Ra,qa){return qa===!1?!1:Ra.charAt(qa)==="/"&&Ra.charAt(qa+1)==="/"?zs(Ra,qa):qa}var wt=Qa;function Za $ 1(Ra,qa){let Ja=null,ed=qa;for(;ed!==Ja;)Ja=ed,ed=Ks $ 1(Ra,ed),ed=Lt $ 1(Ra,ed),ed=Ge $ 1(Ra,ed);return ed=wt(Ra,ed),ed=Ue $ 1(Ra,ed),ed!==!1&&te $ 1(Ra,ed)}var Ot $ 2=Za $ 1;function eo(Ra){return Array.isArray(Ra)&&Ra.length>0}var w=eo,dr="'",Qs $ 1='"';function to(Ra,qa){let Ja=qa===!0||qa===dr?dr:Qs $ 1,ed=Ja===dr?Qs $ 1:dr,td=0,rd=0;for(let od of Ra)od===Ja?td++:od===ed&&rd++;return td>rd?ed:Ja}var xr=to;function ro(Ra,qa,Ja){let ed=qa==='"'?"'":'"',td=N $ 1(!1,Ra,/ \\ (.)|(["'])/gsu,(rd,od,sd)=>od===ed?od:sd===qa?" \\ "+sd:sd||(Ja&&/^[^ \n \r "'0-7 \\ bfnrt-vx \u 2028 \u 2029] $ /u.test(od)?od:" \\ "+od));return qa+td+qa}var Zs $ 1=ro;function no $ 1(Ra,qa){let Ja=Ra.slice(1,-1),ed=qa.parser==="json"||qa.parser==="jsonc"||qa.parser==="json5"&&qa.quoteProps==="preserve"&&!qa.singleQuote?'"':qa.__isInHtmlAttribute?"'":xr(Ja,qa.singleQuote);return Zs $ 1(Ja,ed,!(qa.parser==="css"||qa.parser==="less"||qa.parser==="scss"||qa.__embeddedInHtml))}var tt $ 1=no $ 1;function R $ 1(Ra){var qa,Ja,ed;let td=((qa=Ra.range)==null?void 0:qa[0])??Ra.start,rd=(ed=((Ja=Ra.declaration)==null?void 0:Ja.decorators)??Ra.decorators)==null?void 0:ed[0];return rd?Math.min(R $ 1(rd),td):td}function k(Ra){var qa;return((qa=Ra.range)==null?void 0:qa[1])??Ra.end}function ht $ 1(Ra,qa){let Ja=R $ 1(Ra);return Number.isInteger(Ja)&&Ja===R $ 1(qa)}function so $ 1(Ra,qa){let Ja=k(Ra);return Number.isInteger(Ja)&&Ja===k(qa)}function eu $ 1(Ra,qa){return ht $ 1(Ra,qa)&&so $ 1(Ra,qa)}var Qt=null;function Zt $ 2(Ra){if(Qt!==null&&typeof Qt.property){let qa=Qt;return Qt=Zt $ 2.prototype=null,qa}return Qt=Zt $ 2.prototype=Ra??Object.create(null),new Zt $ 2}var uo $ 2=10;for(let Ra=0;Ra<=uo $ 2;Ra++)Zt $ 2();function In $ 1(Ra){return Zt $ 2(Ra)}function io(Ra,qa="type"){In $ 1(Ra);function Ja(ed){let td=ed[qa],rd=Ra[td];if(!Array.isArray(rd))throw Object.assign(new Error( ` Missing visitor keys for '${td}' . ` ),{node:ed});return rd}return Ja}var hr=io,tu $ 2={ArrayExpression:["elements"],AssignmentExpression:["left","right"],BinaryExpression:["left","right"],InterpreterDirective:[],Directive:["value"],DirectiveLiteral:[],BlockStatement:["directives","body"],BreakStatement:["label"],CallExpression:["callee","arguments","typeParameters","typeArguments"],CatchClause:["param","body"],ConditionalExpression:["test","consequent","alternate"],ContinueStatement:["label"],DebuggerStatement:[],DoWhileStatement:["test","body"],EmptyStatement:[],ExpressionStatement:["expression"],File:["program"],ForInStatement:["left","right","body"],ForStatement:["init","test","update","body"],FunctionDeclaration:["id","params","body","returnType","typeParameters","predicate"],FunctionExpression:["id","params","body","returnType","typeParameters"],Identifier:["typeAnnotation","decorators"],IfStatement:["test","consequent","alternate"],LabeledStatement:["label","body"],StringLiteral:[],NumericLiteral:[],NullLiteral:[],BooleanLiteral:[],RegExpLiteral:[],LogicalExpression:["left","right"],MemberExpression:["object","property"],NewExpression:["callee","arguments","typeParameters","typeArguments"],Program:["directives","body"],ObjectExpression:["properties"],ObjectMethod:["key","params","body","decorators","returnType","typeParameters"],ObjectProperty:["key","value","decorators"],RestElement:["argument","typeAnnotation","decorators"],ReturnStatement:["argument"],SequenceExpression:["expressions"],ParenthesizedExpression:["expression"],SwitchCase:["test","consequent"],SwitchStatement:["discriminant","cases"],ThisExpression:[],ThrowStatement:["argument"],TryStatement:["block","handler","finalizer"],UnaryExpression:["argument"],UpdateExpression:["argument"],VariableDeclaration:["decla
` ):Ra.type==="UnaryExpression"?rr(Ra.argument,{printWidth:Ja}):Ra.type==="CallExpression"&&Ra.arguments.length===0&&Ra.callee.type==="Identifier"?Ra.callee.name.length<=ed-2:kr(Ra)}function Oe $ 1(Ra,qa){return X(qa)?Bt $ 2(qa):d(qa,g $ 2.Leading,Ja=>te $ 1(Ra,k(Ja)))}function nu $ 2(Ra){return Ra.quasis.some(qa=>qa.value.raw.includes( `
` ))}function Lr(Ra,qa){return(Ra.type==="TemplateLiteral"&&nu $ 2(Ra)||Ra.type==="TaggedTemplateExpression"&&nu $ 2(Ra.quasi))&&!te $ 1(qa,R $ 1(Ra),{backwards:!0})}function wr(Ra){if(!d(Ra))return!1;let qa=O $ 1(!1,ct(Ra,g $ 2.Dangling),-1);return qa&&!re $ 1(qa)}function lu $ 1(Ra){if(Ra.length<=1)return!1;let qa=0;for(let Ja of Ra)if(_t $ 1(Ja)){if(qa+=1,qa>1)return!0}else if(L $ 1(Ja)){for(let ed of oe $ 1(Ja))if(_t $ 1(ed))return!0}return!1}function Or(Ra){let{node:qa,parent:Ja,key:ed}=Ra;return ed==="callee"&&L $ 1(qa)&&L $ 1(Ja)&&Ja.arguments.length>0&&qa.arguments.length>Ja.arguments.length}var xo $ 1=new Set(["!","-","+","~"]);function be $ 2(Ra,qa=2){if(qa<=0)return!1;if(Ra.type==="ChainExpression"||Ra.type==="TSNonNullExpression")return be $ 2(Ra.expression,qa);let Ja=ed=>be $ 2(ed,qa-1);if(vn $ 1(Ra))return et $ 1(Ra.pattern??Ra.regex.pattern)<=5;if(kr(Ra)||Do(Ra)||Ra.type==="ArgumentPlaceholder")return!0;if(Ra.type==="TemplateLiteral")return Ra.quasis.every(ed=>!ed.value.raw.includes( `
` ))&&Ra.expressions.every(Ja);if(se(Ra))return Ra.properties.every(ed=>!ed.computed&&(ed.shorthand||ed.value&&Ja(ed.value)));if(U $ 1(Ra))return Ra.elements.every(ed=>ed===null||Ja(ed));if(lt $ 1(Ra)){if(Ra.type==="ImportExpression"||be $ 2(Ra.callee,qa)){let ed=oe $ 1(Ra);return ed.length<=qa&&ed.every(Ja)}return!1}return q $ 1(Ra)?be $ 2(Ra.object,qa)&&be $ 2(Ra.property,qa):Ra.type==="UnaryExpression"&&xo $ 1.has(Ra.operator)||Ra.type==="UpdateExpression"?be $ 2(Ra.argument,qa):!1}function fe $ 1(Ra){var qa;return((qa=Ra.extra)==null?void 0:qa.raw)??Ra.raw}function mu $ 1(Ra){return Ra}function ae(Ra,qa="es5"){return Ra.trailingComma==="es5"&&qa==="es5"||Ra.trailingComma==="all"&&(qa==="all"||qa==="es5")}function ie $ 1(Ra,qa){switch(Ra.type){case"BinaryExpression":case"LogicalExpression":case"AssignmentExpression":case"NGPipeExpression":return ie $ 1(Ra.left,qa);case"MemberExpression":case"OptionalMemberExpression":return ie $ 1(Ra.object,qa);case"TaggedTemplateExpression":return Ra.tag.type==="FunctionExpression"?!1:ie $ 1(Ra.tag,qa);case"CallExpression":case"OptionalCallExpression":return Ra.callee.type==="FunctionExpression"?!1:ie $ 1(Ra.callee,qa);case"ConditionalExpression":return ie $ 1(Ra.test,qa);case"UpdateExpression":return!Ra.prefix&&ie $ 1(Ra.argument,qa);case"BindExpression":return Ra.object&&ie $ 1(Ra.object,qa);case"SequenceExpression":return ie $ 1(Ra.expressions[0],qa);case"ChainExpression":case"TSSatisfiesExpression":case"TSAsExpression":case"TSNonNullExpression":case"AsExpression":case"AsConstExpression":case"SatisfiesExpression":return ie $ 1(Ra.expression,qa);default:return qa(Ra)}}var su $ 2={"==":!0,"!=":!0,"===":!0,"!==":!0},br={"*":!0,"/":!0,"%":!0},_n $ 2={">>":!0,">>>":!0,"<<":!0};function nr(Ra,qa){return!(er(qa)!==er(Ra)||Ra==="**"||su $ 2[Ra]&&su $ 2[qa]||qa==="%"&&br[Ra]||Ra==="%"&&br[qa]||qa!==Ra&&br[qa]&&br[Ra]||_n $ 2[Ra]&&_n $ 2[qa])}var ho $ 1=new Map([["|>"],["??"],["||"],["&&"],["|"],["^"],["&"],["==","===","!=","!=="],["<",">","<=",">=","in","instanceof"],[">>","<<",">>>"],["+","-"],["*","/","%"],["**"]].flatMap((Ra,qa)=>Ra.map(Ja=>[Ja,qa])));function er(Ra){return ho $ 1.get(Ra)}function yu(Ra){return!!_n $ 2[Ra]||Ra==="|"||Ra==="^"||Ra==="&"}function Du $ 1(Ra){var qa;if(Ra.rest)return!0;let Ja=K $ 1(Ra);return((qa=O $ 1(!1,Ja,-1))==null?void 0:qa.type)==="RestElement"}var wn $ 2=new WeakMap;function K $ 1(Ra){if(wn $ 2.has(Ra))return wn $ 2.get(Ra);let qa=[];return Ra.this&&qa.push(Ra.this),Array.isArray(Ra.parameters)?qa.push(...Ra.parameters):Array.isArray(Ra.params)&&qa.push(...Ra.params),Ra.rest&&qa.push(Ra.rest),wn $ 2.set(Ra,qa),qa}function fu(Ra,qa){let{node:Ja}=Ra,ed=0,td=rd=>qa(rd,ed++);Ja.this&&Ra.call(td,"this"),Array.isArray(Ja.parameters)?Ra.each(td,"parameters"):Array.isArray(Ja.params)&&Ra.each(td,"params"),Ja.rest&&Ra.call(td,"rest")}var On $ 1=new WeakMap;function oe $ 1(Ra){if(On $ 1.has(Ra))return On $ 1.get(Ra);if(Ra.type==="ChainExpression")return oe $ 1(Ra.expression);let qa=Ra.arguments;return Ra.type==="ImportExpression"&&(qa=[Ra.source],Ra.attributes&&qa.push(Ra.attributes),Ra.options&&qa.push(Ra.options)),On $ 1.set(Ra,qa),qa}function Rt $ 2(Ra,qa){let{node:Ja}=Ra;if(Ja.type==="ChainExpression")return Ra.call(()=>Rt $ 2(Ra,qa),"expression");Ja.type==="ImportExpression"?(Ra.call(ed=>qa(ed,0),"source"),Ja.attributes&&Ra.call(ed=>qa(ed,1),"attributes"),Ja.options&&Ra.call(ed=>qa(ed,1),"options")):Ra.each(qa,"arguments")}function Rn $ 1(Ra,qa){let Ja=[];if(Ra.type==="ChainExpression"&&(Ra=Ra.expression,Ja.push("expression")),Ra.type==="ImportExpression"){if(qa===0||qa===(Ra.attributes||Ra.options?-2:-1))return[...Ja,"source"];if(Ra.attributes&&(qa===1||qa===-1))return[...Ja,"attributes"];if(Ra.options&&(qa===1||qa===-1))return[...Ja,"options"];throw new RangeError("Invalid argument index")}if(qa<0&&(qa=Ra.arguments.length+qa),qa<0||qa>=Ra.arguments.length)throw new RangeError("Invalid argument index");return[...Ja,"arguments",qa]}function sr(Ra){return Ra.value.trim()==="prettier-ignore"&&!Ra.unignore}function Bt $ 2(Ra){return(Ra==null?void 0:Ra.prettierIgnore)||d(Ra,g $ 2.PrettierIgnore)}var g $ 2={Leading:2,Trailing:4,Dangling:8,Block:16,Line:32,Pr
Expected it to be 'string' or 'object' . ` ;if(ut(Ra))throw new Error("doc is valid.");let Ja=Object.prototype.toString.call(Ra);if(Ja!=="[object Object]")return ` Unexpected doc '${Ja}' . ` ;let ed=Bo([...jr $ 1].map(td=> ` '${td}' ` ));return ` Unexpected doc . type '${Ra.type}' .
2024-08-31 11:28:56 +08:00
Expected it to be $ { ed } . ` }var Jn $ 2=class extends Error{constructor(Ja){super(bo $ 1(Ja));e1(this,"name","InvalidDocError");this.doc=Ja}},Ct $ 1=Jn $ 2,Au={};function Po(Ra,qa,Ja,ed){let td=[Ra];for(;td.length>0;){let rd=td.pop();if(rd===Au){Ja(td.pop());continue}Ja&&td.push(rd,Au);let od=ut(rd);if(!od)throw new Ct $ 1(rd);if((qa==null?void 0:qa(rd))!==!1)switch(od){case _e $ 1:case Pe $ 1:{let sd=od===_e $ 1?rd:rd.parts;for(let ld=sd.length,cd=ld-1;cd>=0;--cd)td.push(sd[cd]);break}case xe $ 2:td.push(rd.flatContents,rd.breakContents);break;case le $ 1:if(ed&&rd.expandedStates)for(let sd=rd.expandedStates.length,ld=sd-1;ld>=0;--ld)td.push(rd.expandedStates[ld]);else td.push(rd.contents);break;case Ye $ 1:case Xe $ 1:case He $ 1:case je $ 2:case Ve $ 1:td.push(rd.contents);break;case rt $ 1:case nt:case st:case $ e $ 2:case me:case ve $ 1:break;default:throw new Ct $ 1(rd)}}}var qn $ 2=Po,Tu $ 1=()=>{},vr=Tu $ 1;function f(Ra){return{type:Xe $ 1,contents:Ra}}function he $ 1(Ra,qa){return{type:Ye $ 1,contents:qa,n:Ra}}function l(Ra,qa={}){return vr(qa.expandedStates),{type:le $ 1,id:qa.id,contents:Ra,break:!!qa.shouldBreak,expandedStates:qa.expandedStates}}function du $ 1(Ra){return he $ 1(Number.NEGATIVE_INFINITY,Ra)}function Mr $ 1(Ra){return he $ 1(-1,Ra)}function ze $ 1(Ra,qa){return l(Ra[0],{...qa,expandedStates:Ra})}function qt $ 1(Ra){return{type:Pe $ 1,parts:Ra}}function b(Ra,qa="",Ja={}){return{type:xe $ 2,breakContents:Ra,flatContents:qa,groupId:Ja.groupId}}function At $ 2(Ra,qa){return{type:He $ 1,contents:Ra,groupId:qa.groupId,negate:qa.negate}}function Wn $ 1(Ra){return{type:Ve $ 1,contents:Ra}}var ke $ 2={type: $ e $ 2},Ee $ 1={type:ve $ 1},Gn $ 2={type:me,hard:!0},ko={type:me,hard:!0,literal:!0},x={type:me},E $ 1={type:me,soft:!0},F=[Gn $ 2,Ee $ 1],Rr=[ko,Ee $ 1],Un $ 1={type:nt};function P $ 1(Ra,qa){let Ja=[];for(let ed=0;ed<qa.length;ed++)ed!==0&&Ja.push(Ra),Ja.push(qa[ed]);return Ja}function xu(Ra,qa,Ja){let ed=Ra;if(qa>0){for(let td=0;td<Math.floor(qa/Ja);++td)ed=f(ed);ed=he $ 1(qa%Ja,ed),ed=he $ 1(Number.NEGATIVE_INFINITY,ed)}return ed}function it $ 1(Ra,qa){return Ra?{type:je $ 2,label:Ra,contents:qa}:qa}function mt $ 1(Ra,qa){if(typeof Ra=="string")return qa(Ra);let Ja=new Map;return ed(Ra);function ed(rd){if(Ja.has(rd))return Ja.get(rd);let od=td(rd);return Ja.set(rd,od),od}function td(rd){switch(ut(rd)){case _e $ 1:return qa(rd.map(ed));case Pe $ 1:return qa({...rd,parts:rd.parts.map(ed)});case xe $ 2:return qa({...rd,breakContents:ed(rd.breakContents),flatContents:ed(rd.flatContents)});case le $ 1:{let{expandedStates:od,contents:sd}=rd;return od?(od=od.map(ed),sd=od[0]):sd=ed(sd),qa({...rd,contents:sd,expandedStates:od})}case Ye $ 1:case Xe $ 1:case He $ 1:case je $ 2:case Ve $ 1:return qa({...rd,contents:ed(rd.contents)});case rt $ 1:case nt:case st:case $ e $ 2:case me:case ve $ 1:return qa(rd);default:throw new Ct $ 1(rd)}}}function gu(Ra,qa,Ja){let ed=Ja,td=!1;function rd(od){if(td)return!1;let sd=qa(od);sd!==void 0&&(td=!0,ed=sd)}return qn $ 2(Ra,rd),ed}function Io(Ra){if(Ra.type===le $ 1&&Ra.break||Ra.type===me&&Ra.hard||Ra.type===ve $ 1)return!0}function ne $ 1(Ra){return gu(Ra,Io,!1)}function hu $ 1(Ra){if(Ra.length>0){let qa=O $ 1(!1,Ra,-1);!qa.expandedStates&&!qa.break&&(qa.break="propagated")}return null}function Su(Ra){let qa=new Set,Ja=[];function ed(rd){if(rd.type===ve $ 1&&hu $ 1(Ja),rd.type===le $ 1){if(Ja.push(rd),qa.has(rd))return!1;qa.add(rd)}}function td(rd){rd.type===le $ 1&&Ja.pop().break&&hu $ 1(Ja)}qn $ 2(Ra,ed,td,!0)}function Lo $ 2(Ra){return Ra.type===me&&!Ra.hard?Ra.soft?"":" ":Ra.type===xe $ 2?Ra.flatContents:Ra}function ur(Ra){return mt $ 1(Ra,Lo $ 2)}function wo $ 1(Ra){switch(ut(Ra)){case Pe $ 1:if(Ra.parts.every(qa=>qa===""))return"";break;case le $ 1:if(!Ra.contents&&!Ra.id&&!Ra.break&&!Ra.expandedStates)return"";if(Ra.contents.type===le $ 1&&Ra.contents.id===Ra.id&&Ra.contents.break===Ra.break&&Ra.contents.expandedStates===Ra.expandedStates)return Ra.contents;break;case Ye $ 1:case Xe $ 1:case He $ 1:case Ve $ 1:if(!Ra.contents)return"";break;case xe $ 2:if(!Ra.flatContents&&!Ra.breakContents)return"";break;case _e $ 1:{let qa=[];for(let Ja of Ra){if(!Ja)continue;let[ed,...td]=Array.isArray(Ja)?Ja:[Ja];typeof ed=="string"&&typeof O $ 1(!1,qa,-1)=="s
2024-08-30 15:19:18 +08:00
` )):Ja)}function Oo(Ra){if(Ra.type===me)return!0}function Bu(Ra){return gu(Ra,Oo,!1)}function ir $ 1(Ra,qa){return Ra.type===je $ 2?{...Ra,contents:qa(Ra.contents)}:qa(Ra)}function _o(Ra){let qa= ` * $ { Ra . value } * ` .split( `
` );return qa.length>1&&qa.every(Ja=>Ja.trimStart()[0]==="*")}var bu=_o;function Pu(Ra,qa){let Ja=Ra.node;if(vt(Ja))return qa.originalText.slice(R $ 1(Ja),k(Ja)).trimEnd();if(re $ 1(Ja))return bu(Ja)?jo $ 1(Ja):["/*",Ie(Ja.value),"*/"];throw new Error("Not a comment: "+JSON.stringify(Ja))}function jo $ 1(Ra){let qa=Ra.value.split( `
` );return["/*",P $ 1(F,qa.map((Ja,ed)=>ed===0?Ja.trimEnd():" "+(ed<qa.length-1?Ja.trim():Ja.trimStart()))),"*/"]}var Kn $ 1={};Ar(Kn $ 1,{endOfLine:()=>Go,ownLine:()=>Wo $ 1,remaining:()=>Uo $ 2});function vo(Ra){let qa=Ra.type||Ra.kind||"(unknown type)",Ja=String(Ra.name||Ra.id&&(typeof Ra.id=="object"?Ra.id.name:Ra.id)||Ra.key&&(typeof Ra.key=="object"?Ra.key.name:Ra.key)||Ra.value&&(typeof Ra.value=="object"?"":String(Ra.value))||Ra.operator||"");return Ja.length>20&&(Ja=Ja.slice(0,19)+"…"),qa+(Ja?" "+Ja:"")}function Nn $ 1(Ra,qa){(Ra.comments??(Ra.comments=[])).push(qa),qa.printed=!1,qa.nodeDescription=vo(Ra)}function ce $ 1(Ra,qa){qa.leading=!0,qa.trailing=!1,Nn $ 1(Ra,qa)}function Le $ 1(Ra,qa,Ja){qa.leading=!1,qa.trailing=!1,Ja&&(qa.marker=Ja),Nn $ 1(Ra,qa)}function z $ 1(Ra,qa){qa.leading=!1,qa.trailing=!0,Nn $ 1(Ra,qa)}function Mo $ 1(Ra,qa){let Ja=null,ed=qa;for(;ed!==Ja;)Ja=ed,ed=Ge $ 1(Ra,ed),ed=Lt $ 1(Ra,ed),ed=wt(Ra,ed),ed=Ue $ 1(Ra,ed);return ed}var yt $ 1=Mo $ 1;function Ro(Ra,qa){let Ja=yt $ 1(Ra,qa);return Ja===!1?"":Ra.charAt(Ja)}var ge $ 1=Ro;function Jo $ 1(Ra,qa,Ja){for(let ed=qa;ed<Ja;++ed)if(Ra.charAt(ed)=== `
` )return!0;return!1}var de $ 1=Jo $ 1;function qo(Ra){return re $ 1(Ra)&&Ra.value[0]==="*"&&/@(?:type|satisfies) \b /u.test(Ra.value)}var ku=qo;function Wo $ 1(Ra){return[Mu,Lu,_u $ 1,ep,Xo,Yn $ 2,Hn $ 1,Iu,wu $ 1,sp,rp, $ n $ 2,vu $ 1,up,Ou,ju $ 1,Vn $ 1,Yo,yp].some(qa=>qa(Ra))}function Go(Ra){return[No,_u $ 1,Lu,vu $ 1,Yn $ 2,Hn $ 1,Iu,wu $ 1,ju $ 1,tp,np, $ n $ 2,op $ 1,Vn $ 1,lp,mp].some(qa=>qa(Ra))}function Uo $ 2(Ra){return[Mu,Yn $ 2,Hn $ 1,Ho $ 2,Zo $ 1,Ou, $ n $ 2,Qo,zo $ 1,cp,Vn $ 1,pp].some(qa=>qa(Ra))}function bt $ 1(Ra,qa){let Ja=(Ra.body||Ra.properties).find(({type:ed})=>ed!=="EmptyStatement");Ja?ce $ 1(Ja,qa):Le $ 1(Ra,qa)}function Xn $ 2(Ra,qa){Ra.type==="BlockStatement"?bt $ 1(Ra,qa):ce $ 1(Ra,qa)}function No({comment:Ra,followingNode:qa}){return qa&&ku(Ra)?(ce $ 1(qa,Ra),!0):!1}function Yn $ 2({comment:Ra,precedingNode:qa,enclosingNode:Ja,followingNode:ed,text:td}){if((Ja==null?void 0:Ja.type)!=="IfStatement"||!ed)return!1;if(ge $ 1(td,k(Ra))===")")return z $ 1(qa,Ra),!0;if(qa===Ja.consequent&&ed===Ja.alternate){if(qa.type==="BlockStatement")z $ 1(qa,Ra);else{let rd=vt(Ra)||Ra.loc.start.line===Ra.loc.end.line,od=Ra.loc.start.line===qa.loc.start.line;rd&&od?z $ 1(qa,Ra):Le $ 1(Ja,Ra)}return!0}return ed.type==="BlockStatement"?(bt $ 1(ed,Ra),!0):ed.type==="IfStatement"?(Xn $ 2(ed.consequent,Ra),!0):Ja.consequent===ed?(ce $ 1(ed,Ra),!0):!1}function Hn $ 1({comment:Ra,precedingNode:qa,enclosingNode:Ja,followingNode:ed,text:td}){return(Ja==null?void 0:Ja.type)!=="WhileStatement"||!ed?!1:ge $ 1(td,k(Ra))===")"?(z $ 1(qa,Ra),!0):ed.type==="BlockStatement"?(bt $ 1(ed,Ra),!0):Ja.body===ed?(ce $ 1(ed,Ra),!0):!1}function Iu({comment:Ra,precedingNode:qa,enclosingNode:Ja,followingNode:ed}){return(Ja==null?void 0:Ja.type)!=="TryStatement"&&(Ja==null?void 0:Ja.type)!=="CatchClause"||!ed?!1:Ja.type==="CatchClause"&&qa?(z $ 1(qa,Ra),!0):ed.type==="BlockStatement"?(bt $ 1(ed,Ra),!0):ed.type==="TryStatement"?(Xn $ 2(ed.finalizer,Ra),!0):ed.type==="CatchClause"?(Xn $ 2(ed.body,Ra),!0):!1}function Xo({comment:Ra,enclosingNode:qa,followingNode:Ja}){return q $ 1(qa)&&(Ja==null?void 0:Ja.type)==="Identifier"?(ce $ 1(qa,Ra),!0):!1}function Yo({comment:Ra,enclosingNode:qa,followingNode:Ja,options:ed}){return!ed.experimentalTernaries||!((qa==null?void 0:qa.type)==="ConditionalExpression"||(qa==null?void 0:qa.type)==="ConditionalTypeAnnotation"||(qa==null?void 0:qa.type)==="TSConditionalType")?!1:(Ja==null?void 0:Ja.type)==="ConditionalExpression"||(Ja==null?void 0:Ja.type)==="ConditionalTypeAnnotation"||(Ja==null?void 0:Ja.type)==="TSConditionalType"?(Le $ 1(qa,Ra),!0):!1}function Lu({comment:Ra,precedingNode:qa,enclosingNode:Ja,followingNode:ed,text:td,options:rd}){let od=qa&&!de $ 1(td,k(qa),R $ 1(Ra));return(!qa||!od)&&((Ja==null?void 0:Ja.type)==="ConditionalExpression"||(Ja==null?void 0:Ja.type)==="ConditionalTypeAnnotation"||(Ja==null?void 0:Ja.type)==="TSConditionalType")&&ed?rd.experimentalTernaries&&Ja.alternate===ed&&!(re $ 1(Ra)&&!de $ 1(rd.originalText,R $ 1(Ra),k(Ra)))?(Le $ 1(Ja,Ra),!0):(ce $ 1(ed,Ra),!0):!1}function Ho $ 2({comment:Ra,precedingNode:qa,enclosingNode:Ja}){return Ae $ 1(Ja)&&Ja.shorthand&&Ja.key===qa&&Ja.value.type==="AssignmentPattern"?(z $ 1(Ja.value.left,Ra),!0):!1}var Vo=new Set(["ClassDeclaration","ClassExpression","DeclareClass","DeclareInterface","InterfaceDeclaration","TSInterfaceDeclaration"]);function wu $ 1({comment:Ra,precedingNode:qa,enclosingNode:Ja,followingNode:ed}){if(Vo.has(Ja==null?void 0:Ja.type)){if(w(Ja.decorators)&&(ed==null?void 0:ed.type)!=="Decorator")return z $ 1(O $ 1(!1,Ja.decorators,-1),Ra),!0;if(Ja.body&&ed===Ja.body)return bt $ 1(Ja.body,Ra),!0;if(ed){if(Ja.superClass&&ed===Ja.superClass&&qa&&(qa===Ja.id||qa===Ja.typeParameters))return z $ 1(qa,Ra),!0;for(let td of["implements","extends","mixins"])if(Ja[td]&&ed===Ja[td][0])return qa&&(qa===Ja.id||qa===Ja.typeParameters||qa===Ja.superClass)?z $ 1(qa,Ra):Le $ 1(Ja,Ra,td),!0}}return!1}var $ o=new Set(["ClassMethod","ClassProperty","PropertyDefinition","TSAbstractPropertyDefinition","TSAbstractMethodDefinition","TSDeclareMethod","MethodDefinition","ClassAccessorProperty","AccessorProperty","TSAbstractAccessorProperty"]);function Ou({comment:Ra,precedingNode:qa,enclosingNode:Ja,
2024-08-27 22:31:52 +08:00
` ;default:return `
2024-08-31 11:28:56 +08:00
` }}var Se $ 1=Symbol("MODE_BREAK"),at $ 1=Symbol("MODE_FLAT"),ar=Symbol("cursor");function qu $ 2(){return{value:"",length:0,queue:[]}}function Cp(Ra,qa){return Qn $ 2(Ra,{type:"indent"},qa)}function Ap(Ra,qa,Ja){return qa===Number.NEGATIVE_INFINITY?Ra.root||qu $ 2():qa<0?Qn $ 2(Ra,{type:"dedent"},Ja):qa?qa.type==="root"?{...Ra,root:Ra}:Qn $ 2(Ra,{type:typeof qa=="string"?"stringAlign":"numberAlign",n:qa},Ja):Ra}function Qn $ 2(Ra,qa,Ja){let ed=qa.type==="dedent"?Ra.queue.slice(0,-1):[...Ra.queue,qa],td="",rd=0,od=0,sd=0;for(let Ed of ed)switch(Ed.type){case"indent":ud(),Ja.useTabs?ld(1):cd(Ja.tabWidth);break;case"stringAlign":ud(),td+=Ed.n,rd+=Ed.n.length;break;case"numberAlign":od+=1,sd+=Ed.n;break;default:throw new Error( ` Unexpected type '${Ed.type}' ` )}return yd(),{...Ra,value:td,length:rd,queue:ed};function ld(Ed){td+=" ".repeat(Ed),rd+=Ja.tabWidth*Ed}function cd(Ed){td+=" ".repeat(Ed),rd+=Ed}function ud(){Ja.useTabs?_d():yd()}function _d(){od>0&&ld(od),gd()}function yd(){sd>0&&cd(sd),gd()}function gd(){od=0,sd=0}}function Zn $ 1(Ra){let qa=0,Ja=0,ed=Ra.length;e:for(;ed--;){let td=Ra[ed];if(td===ar){Ja++;continue}for(let rd=td.length-1;rd>=0;rd--){let od=td[rd];if(od===" "||od===" ")qa++;else{Ra[ed]=td.slice(0,rd+1);break e}}}if(qa>0||Ja>0)for(Ra.length=ed+1;Ja-- >0;)Ra.push(ar);return qa}function Jr $ 1(Ra,qa,Ja,ed,td,rd){if(Ja===Number.POSITIVE_INFINITY)return!0;let od=qa.length,sd=[Ra],ld=[];for(;Ja>=0;){if(sd.length===0){if(od===0)return!0;sd.push(qa[--od]);continue}let{mode:cd,doc:ud}=sd.pop(),_d=ut(ud);switch(_d){case rt $ 1:ld.push(ud),Ja-=et $ 1(ud);break;case _e $ 1:case Pe $ 1:{let yd=_d===_e $ 1?ud:ud.parts;for(let gd=yd.length-1;gd>=0;gd--)sd.push({mode:cd,doc:yd[gd]});break}case Xe $ 1:case Ye $ 1:case He $ 1:case je $ 2:sd.push({mode:cd,doc:ud.contents});break;case st:Ja+=Zn $ 1(ld);break;case le $ 1:{if(rd&&ud.break)return!1;let yd=ud.break?Se $ 1:cd,gd=ud.expandedStates&&yd===Se $ 1?O $ 1(!1,ud.expandedStates,-1):ud.contents;sd.push({mode:yd,doc:gd});break}case xe $ 2:{let yd=(ud.groupId?td[ud.groupId]||at $ 1:cd)===Se $ 1?ud.breakContents:ud.flatContents;yd&&sd.push({mode:cd,doc:yd});break}case me:if(cd===Se $ 1||ud.hard)return!0;ud.soft||(ld.push(" "),Ja--);break;case Ve $ 1:ed=!0;break;case $ e $ 2:if(ed)return!1;break}}return!1}function es $ 1(Ra,qa){let Ja={},ed=qa.printWidth,td=Ju $ 2(qa.endOfLine),rd=0,od=[{ind:qu $ 2(),mode:Se $ 1,doc:Ra}],sd=[],ld=!1,cd=[],ud=0;for(Su(Ra);od.length>0;){let{ind:yd,mode:gd,doc:Ed}=od.pop();switch(ut(Ed)){case rt $ 1:{let Td=td!== `
2024-08-30 15:19:18 +08:00
` ?N $ 1(!1,Ed, `
2024-08-31 11:28:56 +08:00
` ,td):Ed;sd.push(Td),od.length>0&&(rd+=et $ 1(Td));break}case _e $ 1:for(let Td=Ed.length-1;Td>=0;Td--)od.push({ind:yd,mode:gd,doc:Ed[Td]});break;case nt:if(ud>=2)throw new Error("There are too many 'cursor' in doc.");sd.push(ar),ud++;break;case Xe $ 1:od.push({ind:Cp(yd,qa),mode:gd,doc:Ed.contents});break;case Ye $ 1:od.push({ind:Ap(yd,Ed.n,qa),mode:gd,doc:Ed.contents});break;case st:rd-=Zn $ 1(sd);break;case le $ 1:switch(gd){case at $ 1:if(!ld){od.push({ind:yd,mode:Ed.break?Se $ 1:at $ 1,doc:Ed.contents});break}case Se $ 1:{ld=!1;let Td={ind:yd,mode:at $ 1,doc:Ed.contents},Id=ed-rd,Ad=cd.length>0;if(!Ed.break&&Jr $ 1(Td,od,Id,Ad,Ja))od.push(Td);else if(Ed.expandedStates){let Nd=O $ 1(!1,Ed.expandedStates,-1);if(Ed.break){od.push({ind:yd,mode:Se $ 1,doc:Nd});break}else for(let kd=1;kd<Ed.expandedStates.length+1;kd++)if(kd>=Ed.expandedStates.length){od.push({ind:yd,mode:Se $ 1,doc:Nd});break}else{let Rd=Ed.expandedStates[kd],Md={ind:yd,mode:at $ 1,doc:Rd};if(Jr $ 1(Md,od,Id,Ad,Ja)){od.push(Md);break}}}else od.push({ind:yd,mode:Se $ 1,doc:Ed.contents});break}}Ed.id&&(Ja[Ed.id]=O $ 1(!1,od,-1).mode);break;case Pe $ 1:{let Td=ed-rd,{parts:Id}=Ed;if(Id.length===0)break;let[Ad,Nd]=Id,kd={ind:yd,mode:at $ 1,doc:Ad},Rd={ind:yd,mode:Se $ 1,doc:Ad},Md=Jr $ 1(kd,[],Td,cd.length>0,Ja,!0);if(Id.length===1){Md?od.push(kd):od.push(Rd);break}let Bd={ind:yd,mode:at $ 1,doc:Nd},jd={ind:yd,mode:Se $ 1,doc:Nd};if(Id.length===2){Md?od.push(Bd,kd):od.push(jd,Rd);break}Id.splice(0,2);let Vd={ind:yd,mode:gd,doc:qt $ 1(Id)},Fd=Id[0];Jr $ 1({ind:yd,mode:at $ 1,doc:[Ad,Nd,Fd]},[],Td,cd.length>0,Ja,!0)?od.push(Vd,Bd,kd):Md?od.push(Vd,jd,kd):od.push(Vd,jd,Rd);break}case xe $ 2:case He $ 1:{let Td=Ed.groupId?Ja[Ed.groupId]:gd;if(Td===Se $ 1){let Id=Ed.type===xe $ 2?Ed.breakContents:Ed.negate?Ed.contents:f(Ed.contents);Id&&od.push({ind:yd,mode:gd,doc:Id})}if(Td===at $ 1){let Id=Ed.type===xe $ 2?Ed.flatContents:Ed.negate?f(Ed.contents):Ed.contents;Id&&od.push({ind:yd,mode:gd,doc:Id})}break}case Ve $ 1:cd.push({ind:yd,mode:gd,doc:Ed.contents});break;case $ e $ 2:cd.length>0&&od.push({ind:yd,mode:gd,doc:Gn $ 2});break;case me:switch(gd){case at $ 1:if(Ed.hard)ld=!0;else{Ed.soft||(sd.push(" "),rd+=1);break}case Se $ 1:if(cd.length>0){od.push({ind:yd,mode:gd,doc:Ed},...cd.reverse()),cd.length=0;break}Ed.literal?yd.root?(sd.push(td,yd.root.value),rd=yd.root.length):(sd.push(td),rd=0):(rd-=Zn $ 1(sd),sd.push(td+yd.value),rd=yd.length);break}break;case je $ 2:od.push({ind:yd,mode:gd,doc:Ed.contents});break;case ve $ 1:break;default:throw new Ct $ 1(Ed)}od.length===0&&cd.length>0&&(od.push(...cd.reverse()),cd.length=0)}let _d=sd.indexOf(ar);if(_d!==-1){let yd=sd.indexOf(ar,_d+1),gd=sd.slice(0,_d).join(""),Ed=sd.slice(_d+1,yd).join(""),Td=sd.slice(yd+1).join("");return{formatted:gd+Ed+Td,cursorNodeStart:gd.length,cursorNodeText:Ed}}return{formatted:sd.join("")}}function Tp(Ra,qa,Ja=0){let ed=0;for(let td=Ja;td<Ra.length;++td)Ra[td]===" "?ed=ed+qa-ed%qa:ed++;return ed}var Wu=Tp;function dp(Ra,qa){let Ja=Ra.lastIndexOf( `
` );return Ja===-1?0:Wu(Ra.slice(Ja+1).match(/^[ \t ]*/u)[0],qa)}var Gu $ 1=dp;function qr(Ra,qa,Ja){let{node:ed}=Ra;if(ed.type==="TemplateLiteral"&&gp(Ra)){let ld=xp(Ra,Ja,qa);if(ld)return ld}let td="expressions";ed.type==="TSTemplateLiteralType"&&(td="types");let rd=[],od=Ra.map(qa,td);rd.push(ke $ 2," ` " ) ; let sd = 0 ; return Ra . each ( ( { index : ld , node : cd } ) => { if ( rd . push ( qa ( ) ) , cd . tail ) return ; let { tabWidth : ud } = Ja , _d = cd . value . raw , yd = _d . includes ( `
` )?Gu $ 1(_d,ud):sd;sd=yd;let gd=od[ld],Ed=ed[td][ld],Td=de $ 1(Ja.originalText,k(cd),R $ 1(ed.quasis[ld+1]));if(!Td){let Ad=es $ 1(gd,{...Ja,printWidth:Number.POSITIVE_INFINITY}).formatted;Ad.includes( `
` )?Td=!0:gd=Ad}Td&&(d(Ed)||Ed.type==="Identifier"||q $ 1(Ed)||Ed.type==="ConditionalExpression"||Ed.type==="SequenceExpression"||Te $ 1(Ed)||De(Ed))&&(gd=[f([E $ 1,gd]),E $ 1]);let Id=yd===0&&_d.endsWith( `
` )?he $ 1(Number.NEGATIVE_INFINITY,gd):xu(gd,yd,ud);rd.push(l([" ${ ",Id,ke$2," } "]))},"quasis"),rd.push(" ` "),rd}function Uu$1(Ra,qa){let Ja=qa(" quasi ");return it$1(Ja.label&&{tagged:!0,...Ja.label},[qa(" tag "),qa(Ra.node.typeArguments?" typeArguments ":" typeParameters "),ke$2,Ja])}function xp(Ra,qa,Ja){let{node:ed}=Ra,td=ed.quasis[0].value.raw.trim().split(/\s*\|\s*/u);if(td.length>1||td.some(rd=>rd.length>0)){qa.__inJestEach=!0;let rd=Ra.map(Ja," expressions ");qa.__inJestEach=!1;let od=[],sd=rd.map(yd=>" $ { "+es$1(yd,{...qa,printWidth:Number.POSITIVE_INFINITY,endOfLine:" lf "}).formatted+" } " ) , ld = [ { hasLineBreak : ! 1 , cells : [ ] } ] ; for ( let yd = 1 ; yd < ed . quasis . length ; yd ++ ) { let gd = O$1 ( ! 1 , ld , - 1 ) , Ed = sd [ yd - 1 ] ; gd . cells . push ( Ed ) , Ed . includes ( `
` )&&(gd.hasLineBreak=!0),ed.quasis[yd].value.raw.includes( `
` )&&ld.push({hasLineBreak:!1,cells:[]})}let cd=Math.max(td.length,...ld.map(yd=>yd.cells.length)),ud=Array.from({length:cd}).fill(0),_d=[{cells:td},...ld.filter(yd=>yd.cells.length>0)];for(let{cells:yd}of _d.filter(gd=>!gd.hasLineBreak))for(let[gd,Ed]of yd.entries())ud[gd]=Math.max(ud[gd],et $ 1(Ed));return od.push(ke $ 2," ` ",f([F,P$1(F,_d.map(yd=>P$1(" | ",yd.cells.map((gd,Ed)=>yd.hasLineBreak?gd:gd+" ".repeat(ud[Ed]-et$1(gd))))))]),F," ` "),od}}function hp(Ra,qa){let{node:Ja}=Ra,ed=qa();return d(Ja)&&(ed=l([f([E $ 1,ed]),E $ 1])),[" ${ ",ed,ke$2," } "]}function Gt $ 2(Ra,qa){return Ra.map(Ja=>hp(Ja,qa),"expressions")}function Wr $ 1(Ra,qa){return mt $ 1(Ra,Ja=>typeof Ja=="string"?qa?N $ 1(!1,Ja,/( \\ *) ` / gu , "$1$1\\`" ) : ts$1 ( Ja ) : Ja ) } function ts$1 ( Ra ) { return N$1 ( ! 1 , Ra , /([\\`]|\$\{)/gu , String . raw ` \$ 1 ` ) } function gp ( { node : Ra , parent : qa } ) { let Ja = /^[fx]?(?:describe|it|test)$/u ; return qa . type === "TaggedTemplateExpression" && qa . quasi === Ra && qa . tag . type === "MemberExpression" && qa . tag . property . type === "Identifier" && qa . tag . property . name === "each" && ( qa . tag . object . type === "Identifier" && Ja . test ( qa . tag . object . name ) || qa . tag . object . type === "MemberExpression" && qa . tag . object . property . type === "Identifier" && ( qa . tag . object . property . name === "only" || qa . tag . object . property . name === "skip" ) && qa . tag . object . object . type === "Identifier" && Ja . test ( qa . tag . object . object . name ) ) } var ns = [ ( Ra , qa ) => Ra . type === "ObjectExpression" && qa === "properties" , ( Ra , qa ) => Ra . type === "CallExpression" && Ra . callee . type === "Identifier" && Ra . callee . name === "Component" && qa === "arguments" , ( Ra , qa ) => Ra . type === "Decorator" && qa === "expression" ] ; function Nu$1 ( Ra ) { let qa = ed => ed . type === "TemplateLiteral" , Ja = ( ed , td ) => Ae$1 ( ed ) && ! ed . computed && ed . key . type === "Identifier" && ed . key . name === "styles" && td === "value" ; return Ra . match ( qa , ( ed , td ) => U$1 ( ed ) && td === "elements" , Ja , ... ns ) || Ra . match ( qa , Ja , ... ns ) } function Xu$2 ( Ra ) { return Ra . match ( qa => qa . type === "TemplateLiteral" , ( qa , Ja ) => Ae$1 ( qa ) && ! qa . computed && qa . key . type === "Identifier" && qa . key . name === "template" && Ja === "value" , ... ns ) } function rs ( Ra , qa ) { return d ( Ra , g$2 . Block | g$2 . Leading , ( { value : Ja } ) => Ja === ` ${ qa } ` ) } function Gr$1 ( { node : Ra , parent : qa } , Ja ) { return rs ( Ra , Ja ) || Sp ( qa ) && rs ( qa , Ja ) || qa . type === "ExpressionStatement" && rs ( qa , Ja ) } function Sp ( Ra ) { return Ra . type === "AsConstExpression" || Ra . type === "TSAsExpression" && Ra . typeAnnotation . type === "TSTypeReference" && Ra . typeAnnotation . typeName . type === "Identifier" && Ra . typeAnnotation . typeName . name === "const" } async function Bp ( Ra , qa , Ja ) { let { node : ed } = Ja , td = ed . quasis . map ( ud => ud . value . raw ) , rd = 0 , od = td . reduce ( ( ud , _d , yd ) => yd === 0 ? _d : ud + "@prettier-placeholder-" + rd ++ + "-id" + _d , "" ) , sd = await Ra ( od , { parser : "scss" } ) , ld = Gt$2 ( Ja , qa ) , cd = bp ( sd , ld ) ; if ( ! cd ) throw new Error ( "Couldn't insert all the expressions" ) ; return [ "`" , f ( [ F , cd ] ) , E$1 , "`" ] } function bp ( Ra , qa ) { if ( ! w ( qa ) ) return Ra ; let Ja = 0 , ed = mt$1 ( Wt ( Ra ) , td => typeof td != "string" || ! td . includes ( "@prettier-placeholder" ) ? td : td . split ( /@prettier-placeholder-(\d+)-id/u ) . map ( ( rd , od ) => od % 2 === 0 ? Ie ( rd ) : ( Ja ++ , qa [ rd ] ) ) ) ; return qa . length === Ja ? ed : null } function Pp ( { node : Ra , parent : qa , grandparent : Ja } ) { return Ja && Ra . quasis && qa . type === "JSXExpressionContainer" && Ja . type === "JSXElement" && Ja . openingElement . name . name === "style" && Ja . openingElement . attributes . some ( ed => ed . type === "JSXAttribute" && ed . name . name === "jsx" ) || ( qa == null ? void 0 : qa . type ) === "TaggedTemplateExpression" && qa . tag . type === "Identifier" && qa . tag . name === "css" || ( qa == null ? void 0 : qa . type ) === "TaggedTemplateExpression" && qa . tag . type === "MemberExpression" && qa . tag . object . name === "css" && ( qa . tag . property . name === "global" || qa . tag . property . name === "resolve" ) } function Ur$1 ( Ra ) { return Ra . type === "Identifier" && Ra . name === "styled" } function Yu$1 ( Ra ) { return /^[A-Z]/u . test ( Ra . object . name ) && Ra . property . name === "extend" } function kp ( { parent : Ra } ) { if ( ! Ra || Ra . type !== "TaggedTemplateExpression" ) return ! 1 ; let qa = Ra . tag . type === "ParenthesizedExpression" ? Ra . tag . expression : Ra . tag ; switch ( qa . type ) { case "MemberExpression" : return Ur$1 ( qa . object ) || Yu$1 ( qa ) ; case "CallExpression" : return Ur$1 ( qa . callee ) || qa . callee . type === "MemberExpression" && ( qa . callee . object . type === "MemberExpression" && ( Ur$1 ( qa . callee . object . object ) || Yu$1 ( qa . callee . object ) ) || qa . callee . object . type === " CallExp
` ),gd=yd.length,Ed=rd[sd],Td=gd>2&&yd[0].trim()===""&&yd[1].trim()==="",Id=gd>2&&yd[gd-1].trim()===""&&yd[gd-2].trim()==="",Ad=yd.every(kd=>/^ \s *(?:#[^ \n \r ]*)? $ /u.test(kd));if(!ud&&/#[^ \n \r ]* $ /u.test(yd[gd-1]))return null;let Nd=null;Ad?Nd=Op(yd):Nd=await Ra(_d,{parser:"graphql"}),Nd?(Nd=Wr $ 1(Nd,!1),!cd&&Td&&od.push(""),od.push(Nd),!ud&&Id&&od.push("")):!cd&&!ud&&Td&&od.push(""),Ed&&od.push(Ed)}return[" ` ",f([F,P$1(F,od)]),F," ` "]}function Op(Ra){let qa=[],Ja=!1,ed=Ra.map(td=>td.trim());for(let[td,rd]of ed.entries())rd!==""&&(ed[td-1]===""&&Ja?qa.push([F,rd]):qa.push(rd),Ja=!0);return qa.length===0?null:P $ 1(F,qa)}function _p({node:Ra,parent:qa}){return Gr $ 1({node:Ra,parent:qa},"GraphQL")||qa&&(qa.type==="TaggedTemplateExpression"&&(qa.tag.type==="MemberExpression"&&qa.tag.object.name==="graphql"&&qa.tag.property.name==="experimental"||qa.tag.type==="Identifier"&&(qa.tag.name==="gql"||qa.tag.name==="graphql"))||qa.type==="CallExpression"&&qa.callee.type==="Identifier"&&qa.callee.name==="graphql")}function jp(Ra){if(_p(Ra))return wp}var Vu $ 1=jp,ss $ 1=0;async function $ u $ 1(Ra,qa,Ja,ed,td){let{node:rd}=ed,od=ss $ 1;ss $ 1=ss $ 1+1>>>0;let sd=Ad=> ` PRETTIER _HTML _PLACEHOLDER _$ { Ad } _$ { od } _IN _JS ` ,ld=rd.quasis.map((Ad,Nd,kd)=>Nd===kd.length-1?Ad.value.cooked:Ad.value.cooked+sd(Nd)).join(""),cd=Gt $ 2(ed,Ja),ud=new RegExp(sd(String.raw ` ( \ d + ) ` ),"gu"),_d=0,yd=await qa(ld,{parser:Ra,__onHtmlRoot(Ad){_d=Ad.children.length}}),gd=mt $ 1(yd,Ad=>{if(typeof Ad!="string")return Ad;let Nd=[],kd=Ad.split(ud);for(let Rd=0;Rd<kd.length;Rd++){let Md=kd[Rd];if(Rd%2===0){Md&&(Md=ts $ 1(Md),td.__embeddedInHtml&&(Md=N $ 1(!1,Md,/< \/ (?=script \b )/giu,String.raw ` < \ / ` )),Nd.push(Md));continue}let Bd=Number(Md);Nd.push(cd[Bd])}return Nd}),Ed=/^ \s /u.test(ld)?" ":"",Td=/ \s $ /u.test(ld)?" ":"",Id=td.htmlWhitespaceSensitivity==="ignore"?F:Ed&&Td?x:null;return Id?l([" ` ",f([Id,l(gd)]),Id," ` "]):it $ 1({hug:!1},l([" ` ",Ed,_d>1?f(l(gd)):l(gd),Td," ` "]))}function vp(Ra){return Gr $ 1(Ra,"HTML")||Ra.match(qa=>qa.type==="TemplateLiteral",(qa,Ja)=>qa.type==="TaggedTemplateExpression"&&qa.tag.type==="Identifier"&&qa.tag.name==="html"&&Ja==="quasi")}var Mp= $ u $ 1.bind(void 0,"html"),Rp= $ u $ 1.bind(void 0,"angular");function Jp(Ra){if(vp(Ra))return Mp;if(Xu $ 2(Ra))return Rp}var Ku $ 1=Jp;async function qp(Ra,qa,Ja){let{node:ed}=Ja,td=N $ 1(!1,ed.quasis[0].value.raw,/((?: \\ \\ )*) \\ ` / gu , ( ld , cd ) => "\\" . repeat ( cd . length / 2 ) + "`" ) , rd = Wp ( td ) , od = rd !== "" ; od && ( td = N$1 ( ! 1 , td , new RegExp ( ` ^ ${ rd } ` , "gmu" ) , "" ) ) ; let sd = Wr$1 ( await Ra ( td , { parser : "markdown" , _ _inJsTemplate : ! 0 } ) , ! 0 ) ; return [ "`" , od ? f ( [ E$1 , sd ] ) : [ Rr , du$1 ( sd ) ] , E$1 , "`" ] } function Wp ( Ra ) { let qa = Ra . match ( /^([^\S\n]*)\S/mu ) ; return qa === null ? "" : qa [ 1 ] } function Gp ( Ra ) { if ( Up ( Ra ) ) return qp } function Up ( { node : Ra , parent : qa } ) { return ( qa == null ? void 0 : qa . type ) === "TaggedTemplateExpression" && Ra . quasis . length === 1 && qa . tag . type === "Identifier" && ( qa . tag . name === "md" || qa . tag . name === "markdown" ) } var zu = Gp ; function Np ( Ra ) { let { node : qa } = Ra ; if ( qa . type !== "TemplateLiteral" || Xp ( qa ) ) return ; let Ja ; for ( let ed of [ Hu$1 , Vu$1 , Ku$1 , zu ] ) if ( Ja = ed ( Ra ) , ! ! Ja ) return qa . quasis . length === 1 && qa . quasis [ 0 ] . value . raw . trim ( ) === "" ? "``" : async ( ... td ) => { let rd = await Ja ( ... td ) ; return rd && it$1 ( { embed : ! 0 , ... rd . label } , rd ) } } function Xp ( { quasis : Ra } ) { return Ra . some ( ( { value : { cooked : qa } } ) => qa === null ) } var Qu$1 = Np , Yp = /\*\/$/ , Hp = /^\/\*\*?/ , ri$2 = /^\s*(\/\*\*?(.|\r?\n)*?\*\/)/ , Vp = /(^|\s+)\/\/([^\n\r]*)/g , Zu$2 = /^(\r?\n)+/ , $p = /(?:^|\r?\n) *(@[^\n\r]*?) *\r?\n *(?![^\n\r@]*\/\/[^]*)([^\s@][^\n\r@]+?) *\r?\n/g , ei$1 = /(?:^|\r?\n) *@(\S+) *([^\n\r]*)/g , Kp = /(\r?\n|^) *\* ?/g , ni$2 = [ ] ; function si$2 ( Ra ) { let qa = Ra . match ( ri$2 ) ; return qa ? qa [ 0 ] . trimStart ( ) : "" } function ui$1 ( Ra ) { let qa = Ra . match ( ri$2 ) , Ja = qa == null ? void 0 : qa [ 0 ] ; return Ja == null ? Ra : Ra . slice ( Ja . length ) } function ii$2 ( Ra ) { let qa = `
2024-08-30 15:19:18 +08:00
` ;Ra=N $ 1(!1,Ra.replace(Hp,"").replace(Yp,""),Kp," $ 1");let Ja="";for(;Ja!==Ra;)Ja=Ra,Ra=N $ 1(!1,Ra, $ p, ` $ { qa } $1 $2$ { qa } ` );Ra=Ra.replace(Zu $ 2,"").trimEnd();let ed=Object.create(null),td=N $ 1(!1,Ra,ei $ 1,"").replace(Zu $ 2,"").trimEnd(),rd;for(;rd=ei $ 1.exec(Ra);){let od=N $ 1(!1,rd[2],Vp,"");if(typeof ed[rd[1]]=="string"||Array.isArray(ed[rd[1]])){let sd=ed[rd[1]];ed[rd[1]]=[...ni $ 2,...Array.isArray(sd)?sd:[sd],od]}else ed[rd[1]]=od}return{comments:td,pragmas:ed}}function ai $ 2({comments:Ra="",pragmas:qa={}}){let Ja= `
` ,ed="/**",td=" *",rd=" */",od=Object.keys(qa),sd=od.flatMap(cd=>ti $ 2(cd,qa[cd])).map(cd=> ` $ { td } $ { cd } $ { Ja } ` ).join("");if(!Ra){if(od.length===0)return"";if(od.length===1&&!Array.isArray(qa[od[0]])){let cd=qa[od[0]];return ` $ { ed } $ { ti$2 ( od [ 0 ] , cd ) [ 0 ] } $ { rd } ` }}let ld=Ra.split(Ja).map(cd=> ` $ { td } $ { cd } ` ).join(Ja)+Ja;return ed+Ja+(Ra?ld:"")+(Ra&&od.length>0?td+Ja:"")+sd+rd}function ti $ 2(Ra,qa){return[...ni $ 2,...Array.isArray(qa)?qa:[qa]].map(Ja=> ` @ $ { Ra } $ { Ja } ` .trim())}function zp(Ra){if(!Ra.startsWith("#!"))return"";let qa=Ra.indexOf( `
` );return qa===-1?Ra:Ra.slice(0,qa)}var oi $ 1=zp;function Qp(Ra){let qa=oi $ 1(Ra);qa&&(Ra=Ra.slice(qa.length+1));let Ja=si $ 2(Ra),{pragmas:ed,comments:td}=ii $ 2(Ja);return{shebang:qa,text:Ra,pragmas:ed,comments:td}}function pi $ 2(Ra){let{shebang:qa,text:Ja,pragmas:ed,comments:td}=Qp(Ra),rd=ui $ 1(Ja),od=ai $ 2({pragmas:{format:"",...ed},comments:td.trimStart()});return(qa? ` $ { qa }
` :"")+od+(rd.startsWith( `
2024-08-27 22:31:52 +08:00
` )? `
` : `
2024-08-31 11:28:56 +08:00
` )+rd}function Zp(Ra,qa){let{originalText:Ja,[Symbol.for("comments")]:ed,locStart:td,locEnd:rd,[Symbol.for("printedComments")]:od}=qa,{node:sd}=Ra,ld=td(sd),cd=rd(sd);for(let ud of ed)td(ud)>=ld&&rd(ud)<=cd&&od.add(ud);return Ja.slice(ld,cd)}var ci $ 1=Zp;function us $ 1(Ra,qa){var Ja,ed,td,rd,od,sd,ld,cd,ud;if(Ra.isRoot)return!1;let{node:_d,key:yd,parent:gd}=Ra;if(qa.__isInHtmlInterpolation&&!qa.bracketSpacing&&nc $ 2(_d)&&or(Ra))return!0;if(ec $ 2(_d))return!1;if(_d.type==="Identifier"){if((Ja=_d.extra)!=null&&Ja.parenthesized&&/^PRETTIER_HTML_PLACEHOLDER_ \d +_ \d +_IN_JS $ /u.test(_d.name)||yd==="left"&&(_d.name==="async"&&!gd.await||_d.name==="let")&&gd.type==="ForOfStatement")return!0;if(_d.name==="let"){let Ed=(ed=Ra.findAncestor(Td=>Td.type==="ForOfStatement"))==null?void 0:ed.left;if(Ed&&ie $ 1(Ed,Td=>Td===_d))return!0}if(yd==="object"&&_d.name==="let"&&gd.type==="MemberExpression"&&gd.computed&&!gd.optional){let Ed=Ra.findAncestor(Id=>Id.type==="ExpressionStatement"||Id.type==="ForStatement"||Id.type==="ForInStatement"),Td=Ed?Ed.type==="ExpressionStatement"?Ed.expression:Ed.type==="ForStatement"?Ed.init:Ed.left:void 0;if(Td&&ie $ 1(Td,Id=>Id===_d))return!0}if(yd==="expression")switch(_d.name){case"await":case"interface":case"module":case"using":case"yield":case"let":case"component":case"hook":case"type":{let Ed=Ra.findAncestor(Td=>!Te $ 1(Td));if(Ed!==gd&&Ed.type==="ExpressionStatement")return!0}}return!1}if(_d.type==="ObjectExpression"||_d.type==="FunctionExpression"||_d.type==="ClassExpression"||_d.type==="DoExpression"){let Ed=(td=Ra.findAncestor(Td=>Td.type==="ExpressionStatement"))==null?void 0:td.expression;if(Ed&&ie $ 1(Ed,Td=>Td===_d))return!0}if(_d.type==="ObjectExpression"){let Ed=(rd=Ra.findAncestor(Td=>Td.type==="ArrowFunctionExpression"))==null?void 0:rd.body;if(Ed&&Ed.type!=="SequenceExpression"&&Ed.type!=="AssignmentExpression"&&ie $ 1(Ed,Td=>Td===_d))return!0}switch(gd.type){case"ParenthesizedExpression":return!1;case"ClassDeclaration":case"ClassExpression":if(yd==="superClass"&&(_d.type==="ArrowFunctionExpression"||_d.type==="AssignmentExpression"||_d.type==="AwaitExpression"||_d.type==="BinaryExpression"||_d.type==="ConditionalExpression"||_d.type==="LogicalExpression"||_d.type==="NewExpression"||_d.type==="ObjectExpression"||_d.type==="SequenceExpression"||_d.type==="TaggedTemplateExpression"||_d.type==="UnaryExpression"||_d.type==="UpdateExpression"||_d.type==="YieldExpression"||_d.type==="TSNonNullExpression"||_d.type==="ClassExpression"&&w(_d.decorators)))return!0;break;case"ExportDefaultDeclaration":return li $ 2(Ra,qa)||_d.type==="SequenceExpression";case"Decorator":if(yd==="expression"&&!uc $ 1(_d))return!0;break;case"TypeAnnotation":if(Ra.match(void 0,void 0,(Ed,Td)=>Td==="returnType"&&Ed.type==="ArrowFunctionExpression")&&rc $ 1(_d))return!0;break;case"BinaryExpression":if(yd==="left"&&(gd.operator==="in"||gd.operator==="instanceof")&&_d.type==="UnaryExpression")return!0;break;case"VariableDeclarator":if(yd==="init"&&Ra.match(void 0,void 0,(Ed,Td)=>Td==="declarations"&&Ed.type==="VariableDeclaration",(Ed,Td)=>Td==="left"&&Ed.type==="ForInStatement"))return!0;break}switch(_d.type){case"UpdateExpression":if(gd.type==="UnaryExpression")return _d.prefix&&(_d.operator==="++"&&gd.operator==="+"||_d.operator==="--"&&gd.operator==="-");case"UnaryExpression":switch(gd.type){case"UnaryExpression":return _d.operator===gd.operator&&(_d.operator==="+"||_d.operator==="-");case"BindExpression":return!0;case"MemberExpression":case"OptionalMemberExpression":return yd==="object";case"TaggedTemplateExpression":return!0;case"NewExpression":case"CallExpression":case"OptionalCallExpression":return yd==="callee";case"BinaryExpression":return yd==="left"&&gd.operator==="**";case"TSNonNullExpression":return!0;default:return!1}case"BinaryExpression":if(gd.type==="UpdateExpression"||_d.operator==="in"&&tc $ 1(Ra))return!0;if(_d.operator==="|>"&&(od=_d.extra)!=null&&od.parenthesized){let Ed=Ra.grandparent;if(Ed.type==="BinaryExpression"&&Ed.operator==="|>")return!0}case"TSTypeAssertion":case"TSAsExpression":case"TSSatisfiesExpression":case"As
\ r ` ),ms=Ra=>Ra===""||Ra===x||Ra===F||Ra===E $ 1;function cc(Ra,qa,Ja){var ed,td,rd;let{node:od}=Ra;if(od.type==="JSXElement"&&gc(od))return[Ja("openingElement"),Ja("closingElement")];let sd=od.type==="JSXElement"?Ja("openingElement"):Ja("openingFragment"),ld=od.type==="JSXElement"?Ja("closingElement"):Ja("closingFragment");if(od.children.length===1&&od.children[0].type==="JSXExpressionContainer"&&(od.children[0].expression.type==="TemplateLiteral"||od.children[0].expression.type==="TaggedTemplateExpression"))return[sd,...Ra.map(Ja,"children"),ld];od.children=od.children.map(Bd=>Sc(Bd)?{type:"JSXText",value:" ",raw:" "}:Bd);let cd=od.children.some(X),ud=od.children.filter(Bd=>Bd.type==="JSXExpressionContainer").length>1,_d=od.type==="JSXElement"&&od.openingElement.attributes.length>1,yd=ne $ 1(sd)||cd||_d||ud,gd=Ra.parent.rootMarker==="mdx",Ed=qa.singleQuote?"{' '}":'{" "}',Td=gd?" ":b([Ed,E $ 1]," "),Id=((td=(ed=od.openingElement)==null?void 0:ed.name)==null?void 0:td.name)==="fbt",Ad=lc $ 1(Ra,qa,Ja,Td,Id),Nd=od.children.some(Bd=>pr(Bd));for(let Bd=Ad.length-2;Bd>=0;Bd--){let jd=Ad[Bd]===""&&Ad[Bd+1]==="",Vd=Ad[Bd]===F&&Ad[Bd+1]===""&&Ad[Bd+2]===F,Fd=(Ad[Bd]===E $ 1||Ad[Bd]===F)&&Ad[Bd+1]===""&&Ad[Bd+2]===Td,Ud=Ad[Bd]===Td&&Ad[Bd+1]===""&&(Ad[Bd+2]===E $ 1||Ad[Bd+2]===F),qd=Ad[Bd]===Td&&Ad[Bd+1]===""&&Ad[Bd+2]===Td,Wd=Ad[Bd]===E $ 1&&Ad[Bd+1]===""&&Ad[Bd+2]===F||Ad[Bd]===F&&Ad[Bd+1]===""&&Ad[Bd+2]===E $ 1;Vd&&Nd||jd||Fd||qd||Wd?Ad.splice(Bd,2):Ud&&Ad.splice(Bd+1,2)}for(;Ad.length>0&&ms(O $ 1(!1,Ad,-1));)Ad.pop();for(;Ad.length>1&&ms(Ad[0])&&ms(Ad[1]);)Ad.shift(),Ad.shift();let kd=[];for(let[Bd,jd]of Ad.entries()){if(jd===Td){if(Bd===1&&Ad[Bd-1]===""){if(Ad.length===2){kd.push(Ed);continue}kd.push([Ed,F]);continue}else if(Bd===Ad.length-1){kd.push(Ed);continue}else if(Ad[Bd-1]===""&&Ad[Bd-2]===F){kd.push(Ed);continue}}kd.push(jd),ne $ 1(jd)&&(yd=!0)}let Rd=Nd?qt $ 1(kd):l(kd,{shouldBreak:!0});if(((rd=qa.cursorNode)==null?void 0:rd.type)==="JSXText"&&od.children.includes(qa.cursorNode)&&(Rd=[Un $ 1,Rd,Un $ 1]),gd)return Rd;let Md=l([sd,f([F,Rd]),F,ld]);return yd?Md:ze $ 1([l([sd,...Ad,ld]),Md])}function lc $ 1(Ra,qa,Ja,ed,td){let rd=[];return Ra.each(({node:od,next:sd})=>{if(od.type==="JSXText"){let ld=fe $ 1(od);if(pr(od)){let cd=Nr.split(ld,!0);cd[0]===""&&(rd.push(""),cd.shift(),/ \n /u.test(cd[0])?rd.push(fi $ 1(td,cd[1],od,sd)):rd.push(ed),cd.shift());let ud;if(O $ 1(!1,cd,-1)===""&&(cd.pop(),ud=cd.pop()),cd.length===0)return;for(let[_d,yd]of cd.entries())_d%2===1?rd.push(x):rd.push(yd);ud!==void 0?/ \n /u.test(ud)?rd.push(fi $ 1(td,O $ 1(!1,rd,-1),od,sd)):rd.push(ed):rd.push(Di $ 1(td,O $ 1(!1,rd,-1),od,sd))}else/ \n /u.test(ld)?ld.match(/ \n /gu).length>1&&rd.push("",F):rd.push("",ed)}else{let ld=Ja();if(rd.push(ld),sd&&pr(sd)){let cd=Nr.trim(fe $ 1(sd)),[ud]=Nr.split(cd);rd.push(Di $ 1(td,ud,od,sd))}else rd.push(F)}},"children"),rd}function Di $ 1(Ra,qa,Ja,ed){return Ra?"":Ja.type==="JSXElement"&&!Ja.closingElement||(ed==null?void 0:ed.type)==="JSXElement"&&!ed.closingElement?qa.length===1?E $ 1:F:E $ 1}function fi $ 1(Ra,qa,Ja,ed){return Ra?F:qa.length===1?Ja.type==="JSXElement"&&!Ja.closingElement||(ed==null?void 0:ed.type)==="JSXElement"&&!ed.closingElement?F:E $ 1:F}var mc=new Set(["ArrayExpression","TupleExpression","JSXAttribute","JSXElement","JSXExpressionContainer","JSXFragment","ExpressionStatement","CallExpression","OptionalCallExpression","ConditionalExpression","JsExpressionRoot"]);function yc(Ra,qa,Ja){let{parent:ed}=Ra;if(mc.has(ed.type))return qa;let td=Ra.match(void 0,od=>od.type==="ArrowFunctionExpression",L $ 1,od=>od.type==="JSXExpressionContainer"),rd=Be $ 1(Ra,Ja);return l([rd?"":b("("),f([E $ 1,qa]),E $ 1,rd?"":b(")")],{shouldBreak:td})}function Dc(Ra,qa,Ja){let{node:ed}=Ra,td=[];if(td.push(Ja("name")),ed.value){let rd;if(Q $ 2(ed.value)){let od=fe $ 1(ed.value),sd=N $ 1(!1,N $ 1(!1,od.slice(1,-1),"'","'"),""",'"'),ld=xr(sd,qa.jsxSingleQuote);sd=ld==='"'?N $ 1(!1,sd,'"',"""):N $ 1(!1,sd,"'","'"),rd=Ra.call(()=>ye $ 1(Ra,Ie(ld+sd+ld),qa),"value")}else rd=Ja("value");td.push("=",rd)}return td}function fc(Ra,qa,Ja){let{node:ed}=Ra,td=(rd,od)=>rd.type==="JSXEmp
2024-08-30 15:19:18 +08:00
` )&&!od&&!d(rd.attributes[0]))return l(["<",Ja("name"),rd.typeArguments?Ja("typeArguments"):Ja("typeParameters")," ",...Ra.map(Ja,"attributes"),rd.selfClosing?" />":">"]);let sd=(td=rd.attributes)==null?void 0:td.some(cd=>Q $ 2(cd.value)&&cd.value.value.includes( `
2024-08-31 11:28:56 +08:00
` )),ld=qa.singleAttributePerLine&&rd.attributes.length>1?F:x;return l(["<",Ja("name"),rd.typeArguments?Ja("typeArguments"):Ja("typeParameters"),f(Ra.map(()=>[ld,Ja()],"attributes")),...Fc(rd,qa,od)],{shouldBreak:sd})}function Fc(Ra,qa,Ja){return Ra.selfClosing?[x,"/>"]:Cc(Ra,qa,Ja)?[">"]:[E $ 1,">"]}function Cc(Ra,qa,Ja){let ed=Ra.attributes.length>0&&d(O $ 1(!1,Ra.attributes,-1),g $ 2.Trailing);return Ra.attributes.length===0&&!Ja||(qa.bracketSameLine||qa.jsxBracketSameLine)&&(!Ja||Ra.attributes.length>0)&&!ed}function Ac(Ra,qa,Ja){let{node:ed}=Ra,td=[];td.push("</");let rd=Ja("name");return d(ed.name,g $ 2.Leading|g $ 2.Line)?td.push(f([F,rd]),F):d(ed.name,g $ 2.Leading|g $ 2.Block)?td.push(" ",rd):td.push(rd),td.push(">"),td}function Tc(Ra,qa){let{node:Ja}=Ra,ed=d(Ja),td=d(Ja,g $ 2.Line),rd=Ja.type==="JSXOpeningFragment";return[rd?"<":"</",f([td?F:ed&&!rd?" ":"",M $ 1(Ra,qa)]),td?F:"",">"]}function dc(Ra,qa,Ja){let ed=ye $ 1(Ra,cc(Ra,qa,Ja),qa);return yc(Ra,ed,qa)}function xc(Ra,qa){let{node:Ja}=Ra,ed=d(Ja,g $ 2.Line);return[M $ 1(Ra,qa,{indent:ed}),ed?F:""]}function hc(Ra,qa,Ja){let{node:ed}=Ra;return["{",Ra.call(({node:td})=>{let rd=["...",Ja()];return!d(td)||!zn $ 1(Ra)?rd:[f([E $ 1,ye $ 1(Ra,rd,qa)]),E $ 1]},ed.type==="JSXSpreadAttribute"?"argument":"expression"),"}"]}function Ei $ 1(Ra,qa,Ja){let{node:ed}=Ra;if(ed.type.startsWith("JSX"))switch(ed.type){case"JSXAttribute":return Dc(Ra,qa,Ja);case"JSXIdentifier":return ed.name;case"JSXNamespacedName":return P $ 1(":",[Ja("namespace"),Ja("name")]);case"JSXMemberExpression":return P $ 1(".",[Ja("object"),Ja("property")]);case"JSXSpreadAttribute":case"JSXSpreadChild":return hc(Ra,qa,Ja);case"JSXExpressionContainer":return fc(Ra,qa,Ja);case"JSXFragment":case"JSXElement":return dc(Ra,qa,Ja);case"JSXOpeningElement":return Ec(Ra,qa,Ja);case"JSXClosingElement":return Ac(Ra,qa,Ja);case"JSXOpeningFragment":case"JSXClosingFragment":return Tc(Ra,qa);case"JSXEmptyExpression":return xc(Ra,qa);case"JSXText":throw new Error("JSXText should be handled by JSXElement");default:throw new Me $ 2(ed,"JSX")}}function gc(Ra){if(Ra.children.length===0)return!0;if(Ra.children.length>1)return!1;let qa=Ra.children[0];return qa.type==="JSXText"&&!pr(qa)}function pr(Ra){return Ra.type==="JSXText"&&(Nr.hasNonWhitespaceCharacter(fe $ 1(Ra))||!/ \n /u.test(fe $ 1(Ra)))}function Sc(Ra){return Ra.type==="JSXExpressionContainer"&&Q $ 2(Ra.expression)&&Ra.expression.value===" "&&!d(Ra.expression)}function Fi(Ra){let{node:qa,parent:Ja}=Ra;if(!X(qa)||!X(Ja))return!1;let{index:ed,siblings:td}=Ra,rd;for(let od=ed;od>0;od--){let sd=td[od-1];if(!(sd.type==="JSXText"&&!pr(sd))){rd=sd;break}}return(rd==null?void 0:rd.type)==="JSXExpressionContainer"&&rd.expression.type==="JSXEmptyExpression"&&Bt $ 2(rd.expression)}function Bc(Ra){return Bt $ 2(Ra.node)||Fi(Ra)}var Xr $ 1=Bc,bc=0;function Yr $ 2(Ra,qa,Ja){var ed;let{node:td,parent:rd,grandparent:od,key:sd}=Ra,ld=sd!=="body"&&(rd.type==="IfStatement"||rd.type==="WhileStatement"||rd.type==="SwitchStatement"||rd.type==="DoWhileStatement"),cd=td.operator==="|>"&&((ed=Ra.root.extra)==null?void 0:ed.__isUsingHackPipeline),ud=ys(Ra,Ja,qa,!1,ld);if(ld)return ud;if(cd)return l(ud);if(L $ 1(rd)&&rd.callee===td||rd.type==="UnaryExpression"||q $ 1(rd)&&!rd.computed)return l([f([E $ 1,...ud]),E $ 1]);let _d=rd.type==="ReturnStatement"||rd.type==="ThrowStatement"||rd.type==="JSXExpressionContainer"&&od.type==="JSXAttribute"||td.operator!=="|"&&rd.type==="JsExpressionRoot"||td.type!=="NGPipeExpression"&&(rd.type==="NGRoot"&&qa.parser==="__ng_binding"||rd.type==="NGMicrosyntaxExpression"&&od.type==="NGMicrosyntax"&&od.body.length===1)||td===rd.body&&rd.type==="ArrowFunctionExpression"||td!==rd.body&&rd.type==="ForStatement"||rd.type==="ConditionalExpression"&&od.type!=="ReturnStatement"&&od.type!=="ThrowStatement"&&!L $ 1(od)||rd.type==="TemplateLiteral",yd=rd.type==="AssignmentExpression"||rd.type==="VariableDeclarator"||rd.type==="ClassProperty"||rd.type==="PropertyDefinition"||rd.type==="TSAbstractPropertyDefinition"||rd.type==="ClassPrivateProperty"||Ae $ 1(rd),gd=De(td.left)&&nr(td.operator,td.left.operator);if(_d||Ut $ 1(td)&&!gd||!Ut $ 1(
` +Nd+yd("^")}return" "+gd(Ad)+Ed}).join( `
2024-08-30 15:19:18 +08:00
` )}toString(){let od=this.showSourceCode();return od&&(od= `
` +od+ `
` ),this.name+": "+this.message+od}};qa.exports=td,td.default=td}), $ t $ 1=y((Ra,qa)=>{var Ja={after: `
` ,beforeClose: `
2024-08-27 22:31:52 +08:00
` ,beforeComment: `
2024-08-30 15:19:18 +08:00
` ,beforeDecl: `
` ,beforeOpen:" ",beforeRule: `
` ,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function ed(rd){return rd[0].toUpperCase()+rd.slice(1)}var td=class{constructor(rd){this.builder=rd}atrule(rd,od){let sd="@"+rd.name,ld=rd.params?this.rawValue(rd,"params"):"";if(typeof rd.raws.afterName<"u"?sd+=rd.raws.afterName:ld&&(sd+=" "),rd.nodes)this.block(rd,sd+ld);else{let cd=(rd.raws.between||"")+(od?";":"");this.builder(sd+ld+cd,rd)}}beforeAfter(rd,od){let sd;rd.type==="decl"?sd=this.raw(rd,null,"beforeDecl"):rd.type==="comment"?sd=this.raw(rd,null,"beforeComment"):od==="before"?sd=this.raw(rd,null,"beforeRule"):sd=this.raw(rd,null,"beforeClose");let ld=rd.parent,cd=0;for(;ld&&ld.type!=="root";)cd+=1,ld=ld.parent;if(sd.includes( `
2024-08-31 11:28:56 +08:00
` )){let ud=this.raw(rd,null,"indent");if(ud.length)for(let _d=0;_d<cd;_d++)sd+=ud}return sd}block(rd,od){let sd=this.raw(rd,"between","beforeOpen");this.builder(od+sd+"{",rd,"start");let ld;rd.nodes&&rd.nodes.length?(this.body(rd),ld=this.raw(rd,"after")):ld=this.raw(rd,"after","emptyBody"),ld&&this.builder(ld),this.builder("}",rd,"end")}body(rd){let od=rd.nodes.length-1;for(;od>0&&rd.nodes[od].type==="comment";)od-=1;let sd=this.raw(rd,"semicolon");for(let ld=0;ld<rd.nodes.length;ld++){let cd=rd.nodes[ld],ud=this.raw(cd,"before");ud&&this.builder(ud),this.stringify(cd,od!==ld||sd)}}comment(rd){let od=this.raw(rd,"left","commentLeft"),sd=this.raw(rd,"right","commentRight");this.builder("/*"+od+rd.text+sd+"*/",rd)}decl(rd,od){let sd=this.raw(rd,"between","colon"),ld=rd.prop+sd+this.rawValue(rd,"value");rd.important&&(ld+=rd.raws.important||" !important"),od&&(ld+=";"),this.builder(ld,rd)}document(rd){this.body(rd)}raw(rd,od,sd){let ld;if(sd||(sd=od),od&&(ld=rd.raws[od],typeof ld<"u"))return ld;let cd=rd.parent;if(sd==="before"&&(!cd||cd.type==="root"&&cd.first===rd||cd&&cd.type==="document"))return"";if(!cd)return Ja[sd];let ud=rd.root();if(ud.rawCache||(ud.rawCache={}),typeof ud.rawCache[sd]<"u")return ud.rawCache[sd];if(sd==="before"||sd==="after")return this.beforeAfter(rd,sd);{let _d="raw"+ed(sd);this[_d]?ld=this[_d](ud,rd):ud.walk(yd=>{if(ld=yd.raws[od],typeof ld<"u")return!1})}return typeof ld>"u"&&(ld=Ja[sd]),ud.rawCache[sd]=ld,ld}rawBeforeClose(rd){let od;return rd.walk(sd=>{if(sd.nodes&&sd.nodes.length>0&&typeof sd.raws.after<"u")return od=sd.raws.after,od.includes( `
2024-08-30 15:19:18 +08:00
` )&&(od=od.replace(/[^ \n ]+ $ /,"")),!1}),od&&(od=od.replace(/ \S /g,"")),od}rawBeforeComment(rd,od){let sd;return rd.walkComments(ld=>{if(typeof ld.raws.before<"u")return sd=ld.raws.before,sd.includes( `
` )&&(sd=sd.replace(/[^ \n ]+ $ /,"")),!1}),typeof sd>"u"?sd=this.raw(od,null,"beforeDecl"):sd&&(sd=sd.replace(/ \S /g,"")),sd}rawBeforeDecl(rd,od){let sd;return rd.walkDecls(ld=>{if(typeof ld.raws.before<"u")return sd=ld.raws.before,sd.includes( `
` )&&(sd=sd.replace(/[^ \n ]+ $ /,"")),!1}),typeof sd>"u"?sd=this.raw(od,null,"beforeRule"):sd&&(sd=sd.replace(/ \S /g,"")),sd}rawBeforeOpen(rd){let od;return rd.walk(sd=>{if(sd.type!=="decl"&&(od=sd.raws.between,typeof od<"u"))return!1}),od}rawBeforeRule(rd){let od;return rd.walk(sd=>{if(sd.nodes&&(sd.parent!==rd||rd.first!==sd)&&typeof sd.raws.before<"u")return od=sd.raws.before,od.includes( `
` )&&(od=od.replace(/[^ \n ]+ $ /,"")),!1}),od&&(od=od.replace(/ \S /g,"")),od}rawColon(rd){let od;return rd.walkDecls(sd=>{if(typeof sd.raws.between<"u")return od=sd.raws.between.replace(/[^ \s :]/g,""),!1}),od}rawEmptyBody(rd){let od;return rd.walk(sd=>{if(sd.nodes&&sd.nodes.length===0&&(od=sd.raws.after,typeof od<"u"))return!1}),od}rawIndent(rd){if(rd.raws.indent)return rd.raws.indent;let od;return rd.walk(sd=>{let ld=sd.parent;if(ld&&ld!==rd&&ld.parent&&ld.parent===rd&&typeof sd.raws.before<"u"){let cd=sd.raws.before.split( `
2024-08-31 11:28:56 +08:00
` );return od=cd[cd.length-1],od=od.replace(/ \S /g,""),!1}}),od}rawSemicolon(rd){let od;return rd.walk(sd=>{if(sd.nodes&&sd.nodes.length&&sd.last.type==="decl"&&(od=sd.raws.semicolon,typeof od<"u"))return!1}),od}rawValue(rd,od){let sd=rd[od],ld=rd.raws[od];return ld&&ld.value===sd?ld.raw:sd}root(rd){this.body(rd),rd.raws.after&&this.builder(rd.raws.after)}rule(rd){this.block(rd,this.rawValue(rd,"selector")),rd.raws.ownSemicolon&&this.builder(rd.raws.ownSemicolon,rd,"end")}stringify(rd,od){if(!this[rd.type])throw new Error("Unknown AST node type "+rd.type+". Maybe you need to change PostCSS stringifier.");this[rd.type](rd,od)}};qa.exports=td,td.default=td}),it=y((Ra,qa)=>{var Ja= $ t $ 1();function ed(td,rd){new Ja(rd).stringify(td)}qa.exports=ed,ed.default=ed}),at=y((Ra,qa)=>{var{isClean:Ja,my:ed}=Ut(),td=Ft $ 1(),rd= $ t $ 1(),od=it();function sd(cd,ud){let _d=new cd.constructor;for(let yd in cd){if(!Object.prototype.hasOwnProperty.call(cd,yd)||yd==="proxyCache")continue;let gd=cd[yd],Ed=typeof gd;yd==="parent"&&Ed==="object"?ud&&(_d[yd]=ud):yd==="source"?_d[yd]=gd:Array.isArray(gd)?_d[yd]=gd.map(Td=>sd(Td,_d)):(Ed==="object"&&gd!==null&&(gd=sd(gd)),_d[yd]=gd)}return _d}var ld=class{constructor(cd={}){this.raws={},this[Ja]=!1,this[ed]=!0;for(let ud in cd)if(ud==="nodes"){this.nodes=[];for(let _d of cd[ud])typeof _d.clone=="function"?this.append(_d.clone()):this.append(_d)}else this[ud]=cd[ud]}addToError(cd){if(cd.postcssNode=this,cd.stack&&this.source&&/ \n \s {4}at /.test(cd.stack)){let ud=this.source;cd.stack=cd.stack.replace(/ \n \s {4}at /, ` $ & $ { ud . input . from } : $ { ud . start . line } : $ { ud . start . column } $ & ` )}return cd}after(cd){return this.parent.insertAfter(this,cd),this}assign(cd={}){for(let ud in cd)this[ud]=cd[ud];return this}before(cd){return this.parent.insertBefore(this,cd),this}cleanRaws(cd){delete this.raws.before,delete this.raws.after,cd||delete this.raws.between}clone(cd={}){let ud=sd(this);for(let _d in cd)ud[_d]=cd[_d];return ud}cloneAfter(cd={}){let ud=this.clone(cd);return this.parent.insertAfter(this,ud),ud}cloneBefore(cd={}){let ud=this.clone(cd);return this.parent.insertBefore(this,ud),ud}error(cd,ud={}){if(this.source){let{end:_d,start:yd}=this.rangeBy(ud);return this.source.input.error(cd,{column:yd.column,line:yd.line},{column:_d.column,line:_d.line},ud)}return new td(cd)}getProxyProcessor(){return{get(cd,ud){return ud==="proxyOf"?cd:ud==="root"?()=>cd.root().toProxy():cd[ud]},set(cd,ud,_d){return cd[ud]===_d||(cd[ud]=_d,(ud==="prop"||ud==="value"||ud==="name"||ud==="params"||ud==="important"||ud==="text")&&cd.markDirty()),!0}}}markDirty(){if(this[Ja]){this[Ja]=!1;let cd=this;for(;cd=cd.parent;)cd[Ja]=!1}}next(){if(!this.parent)return;let cd=this.parent.index(this);return this.parent.nodes[cd+1]}positionBy(cd,ud){let _d=this.source.start;if(cd.index)_d=this.positionInside(cd.index,ud);else if(cd.word){ud=this.toString();let yd=ud.indexOf(cd.word);yd!==-1&&(_d=this.positionInside(yd,ud))}return _d}positionInside(cd,ud){let _d=ud||this.toString(),yd=this.source.start.column,gd=this.source.start.line;for(let Ed=0;Ed<cd;Ed++)_d[Ed]=== `
` ?(yd=1,gd+=1):yd+=1;return{column:yd,line:gd}}prev(){if(!this.parent)return;let cd=this.parent.index(this);return this.parent.nodes[cd-1]}rangeBy(cd){let ud={column:this.source.start.column,line:this.source.start.line},_d=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:ud.column+1,line:ud.line};if(cd.word){let yd=this.toString(),gd=yd.indexOf(cd.word);gd!==-1&&(ud=this.positionInside(gd,yd),_d=this.positionInside(gd+cd.word.length,yd))}else cd.start?ud={column:cd.start.column,line:cd.start.line}:cd.index&&(ud=this.positionInside(cd.index)),cd.end?_d={column:cd.end.column,line:cd.end.line}:typeof cd.endIndex=="number"?_d=this.positionInside(cd.endIndex):cd.index&&(_d=this.positionInside(cd.index+1));return(_d.line<ud.line||_d.line===ud.line&&_d.column<=ud.column)&&(_d={column:ud.column+1,line:ud.line}),{end:_d,start:ud}}raw(cd,ud){return new rd().raw(this,cd,ud)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...cd){if(this.parent){let ud=this,_d=!1;for(let yd of cd)yd===this?_d=!0:_d?(this.parent.insertAfter(ud,yd),ud=yd):this.parent.insertBefore(ud,yd);_d||this.remove()}return this}root(){let cd=this;for(;cd.parent&&cd.parent.type!=="document";)cd=cd.parent;return cd}toJSON(cd,ud){let _d={},yd=ud==null;ud=ud||new Map;let gd=0;for(let Ed in this){if(!Object.prototype.hasOwnProperty.call(this,Ed)||Ed==="parent"||Ed==="proxyCache")continue;let Td=this[Ed];if(Array.isArray(Td))_d[Ed]=Td.map(Id=>typeof Id=="object"&&Id.toJSON?Id.toJSON(null,ud):Id);else if(typeof Td=="object"&&Td.toJSON)_d[Ed]=Td.toJSON(null,ud);else if(Ed==="source"){let Id=ud.get(Td.input);Id==null&&(Id=gd,ud.set(Td.input,gd),gd++),_d[Ed]={end:Td.end,inputId:Id,start:Td.start}}else _d[Ed]=Td}return yd&&(_d.inputs=[...ud.keys()].map(Ed=>Ed.toJSON())),_d}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(cd=od){cd.stringify&&(cd=cd.stringify);let ud="";return cd(this,_d=>{ud+=_d}),ud}warn(cd,ud,_d){let yd={node:this};for(let gd in _d)yd[gd]=_d[gd];return cd.warn(ud,yd)}get proxyOf(){return this}};qa.exports=ld,ld.default=ld}),lt=y((Ra,qa)=>{var Ja=at(),ed=class extends Ja{constructor(td){td&&typeof td.value<"u"&&typeof td.value!="string"&&(td={...td,value:String(td.value)}),super(td),this.type="decl"}get variable(){return this.prop.startsWith("--")||this.prop[0]===" $ "}};qa.exports=ed,ed.default=ed}),Oe=y((Ra,qa)=>{var Ja=at(),ed=class extends Ja{constructor(td){super(td),this.type="comment"}};qa.exports=ed,ed.default=ed}),re=y((Ra,qa)=>{var{isClean:Ja,my:ed}=Ut(),td=lt(),rd=Oe(),od=at(),sd,ld,cd,ud;function _d(Ed){return Ed.map(Td=>(Td.nodes&&(Td.nodes=_d(Td.nodes)),delete Td.source,Td))}function yd(Ed){if(Ed[Ja]=!1,Ed.proxyOf.nodes)for(let Td of Ed.proxyOf.nodes)yd(Td)}var gd=class iT extends od{append(...Td){for(let Id of Td){let Ad=this.normalize(Id,this.last);for(let Nd of Ad)this.proxyOf.nodes.push(Nd)}return this.markDirty(),this}cleanRaws(Td){if(super.cleanRaws(Td),this.nodes)for(let Id of this.nodes)Id.cleanRaws(Td)}each(Td){if(!this.proxyOf.nodes)return;let Id=this.getIterator(),Ad,Nd;for(;this.indexes[Id]<this.proxyOf.nodes.length&&(Ad=this.indexes[Id],Nd=Td(this.proxyOf.nodes[Ad],Ad),Nd!==!1);)this.indexes[Id]+=1;return delete this.indexes[Id],Nd}every(Td){return this.nodes.every(Td)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let Td=this.lastEach;return this.indexes[Td]=0,Td}getProxyProcessor(){return{get(Td,Id){return Id==="proxyOf"?Td:Td[Id]?Id==="each"||typeof Id=="string"&&Id.startsWith("walk")?(...Ad)=>Td[Id](...Ad.map(Nd=>typeof Nd=="function"?(kd,Rd)=>Nd(kd.toProxy(),Rd):Nd)):Id==="every"||Id==="some"?Ad=>Td[Id]((Nd,...kd)=>Ad(Nd.toProxy(),...kd)):Id==="root"?()=>Td.root().toProxy():Id==="nodes"?Td.nodes.map(Ad=>Ad.toProxy()):Id==="first"||Id==="last"?Td[Id].toProxy():Td[Id]:Td[Id]},set(Td,Id,Ad){return Td[Id]===Ad||(Td[Id]=Ad,(Id==="name"||Id==="params"||Id==="selector")&&Td.markDirty()),!0}}}index(Td){return typeof Td=="number"?Td:(Td.pr
` ," "];return Ja.split(ed,td)},split(ed,td,rd){let od=[],sd="",ld=!1,cd=0,ud=!1,_d="",yd=!1;for(let gd of ed)yd?yd=!1:gd===" \\ "?yd=!0:ud?gd===_d&&(ud=!1):gd==='"'||gd==="'"?(ud=!0,_d=gd):gd==="("?cd+=1:gd===")"?cd>0&&(cd-=1):cd===0&&td.includes(gd)&&(ld=!0),ld?(sd!==""&&od.push(sd.trim()),sd="",ld=!1):sd+=gd;return(rd||sd!=="")&&od.push(sd.trim()),od}};qa.exports=Ja,Ja.default=Ja}),jt=y((Ra,qa)=>{var Ja=re(),ed=us(),td=class extends Ja{constructor(rd){super(rd),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return ed.comma(this.selector)}set selectors(rd){let od=this.selector?this.selector.match(/, \s */):null,sd=od?od[0]:","+this.raw("between","beforeOpen");this.selector=rd.join(sd)}};qa.exports=td,td.default=td,Ja.registerRule(td)}),Ht=y((Ra,qa)=>{var Ja=lt(),ed=Vt(),td=Oe(),rd=Gt $ 1(),od=Ae(),sd=jt(),ld={empty:!0,space:!0};function cd(_d){for(let yd=_d.length-1;yd>=0;yd--){let gd=_d[yd],Ed=gd[3]||gd[2];if(Ed)return Ed}}var ud=class{constructor(_d){this.input=_d,this.root=new od,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:_d,start:{column:1,line:1,offset:0}}}atrule(_d){let yd=new rd;yd.name=_d[1].slice(1),yd.name===""&&this.unnamedAtrule(yd,_d),this.init(yd,_d[2]);let gd,Ed,Td,Id=!1,Ad=!1,Nd=[],kd=[];for(;!this.tokenizer.endOfFile();){if(_d=this.tokenizer.nextToken(),gd=_d[0],gd==="("||gd==="["?kd.push(gd==="("?")":"]"):gd==="{"&&kd.length>0?kd.push("}"):gd===kd[kd.length-1]&&kd.pop(),kd.length===0)if(gd===";"){yd.source.end=this.getPosition(_d[2]),yd.source.end.offset++,this.semicolon=!0;break}else if(gd==="{"){Ad=!0;break}else if(gd==="}"){if(Nd.length>0){for(Td=Nd.length-1,Ed=Nd[Td];Ed&&Ed[0]==="space";)Ed=Nd[--Td];Ed&&(yd.source.end=this.getPosition(Ed[3]||Ed[2]),yd.source.end.offset++)}this.end(_d);break}else Nd.push(_d);else Nd.push(_d);if(this.tokenizer.endOfFile()){Id=!0;break}}yd.raws.between=this.spacesAndCommentsFromEnd(Nd),Nd.length?(yd.raws.afterName=this.spacesAndCommentsFromStart(Nd),this.raw(yd,"params",Nd),Id&&(_d=Nd[Nd.length-1],yd.source.end=this.getPosition(_d[3]||_d[2]),yd.source.end.offset++,this.spaces=yd.raws.between,yd.raws.between="")):(yd.raws.afterName="",yd.params=""),Ad&&(yd.nodes=[],this.current=yd)}checkMissedSemicolon(_d){let yd=this.colon(_d);if(yd===!1)return;let gd=0,Ed;for(let Td=yd-1;Td>=0&&(Ed=_d[Td],!(Ed[0]!=="space"&&(gd+=1,gd===2)));Td--);throw this.input.error("Missed semicolon",Ed[0]==="word"?Ed[3]+1:Ed[2])}colon(_d){let yd=0,gd,Ed,Td;for(let[Id,Ad]of _d.entries()){if(gd=Ad,Ed=gd[0],Ed==="("&&(yd+=1),Ed===")"&&(yd-=1),yd===0&&Ed===":")if(!Td)this.doubleColon(gd);else{if(Td[0]==="word"&&Td[1]==="progid")continue;return Id}Td=gd}return!1}comment(_d){let yd=new td;this.init(yd,_d[2]),yd.source.end=this.getPosition(_d[3]||_d[2]),yd.source.end.offset++;let gd=_d[1].slice(2,-2);if(/^ \s * $ /.test(gd))yd.text="",yd.raws.left=gd,yd.raws.right="";else{let Ed=gd.match(/^( \s *)([^]* \S )( \s *) $ /);yd.text=Ed[2],yd.raws.left=Ed[1],yd.raws.right=Ed[3]}}createTokenizer(){this.tokenizer=ed(this.input)}decl(_d,yd){let gd=new Ja;this.init(gd,_d[0][2]);let Ed=_d[_d.length-1];for(Ed[0]===";"&&(this.semicolon=!0,_d.pop()),gd.source.end=this.getPosition(Ed[3]||Ed[2]||cd(_d)),gd.source.end.offset++;_d[0][0]!=="word";)_d.length===1&&this.unknownWord(_d),gd.raws.before+=_d.shift()[1];for(gd.source.start=this.getPosition(_d[0][2]),gd.prop="";_d.length;){let Nd=_d[0][0];if(Nd===":"||Nd==="space"||Nd==="comment")break;gd.prop+=_d.shift()[1]}gd.raws.between="";let Td;for(;_d.length;)if(Td=_d.shift(),Td[0]===":"){gd.raws.between+=Td[1];break}else Td[0]==="word"&&/ \w /.test(Td[1])&&this.unknownWord([Td]),gd.raws.between+=Td[1];(gd.prop[0]==="_"||gd.prop[0]==="*")&&(gd.raws.before+=gd.prop[0],gd.prop=gd.prop.slice(1));let Id=[],Ad;for(;_d.length&&(Ad=_d[0][0],!(Ad!=="space"&&Ad!=="comment"));)Id.push(_d.shift());this.precheckMissedSemicolon(_d);for(let Nd=_d.length-1;Nd>=0;Nd--){if(Td=_d[Nd],Td[1].toLowerCase()==="!important"){gd.important=!0;let kd=this.stringFrom(_d,Nd);kd=this.spacesFromEnd(_d)+kd,kd!==" !important"&&(gd.raws.important=kd);br
` );Nd=new Array(Rd.length);let Md=0;for(let Bd=0,jd=Rd.length;Bd<jd;Bd++)Nd[Bd]=Md,Md+=Rd[Bd].length+1;this[yd]=Nd}Ad=Nd[Nd.length-1];let kd=0;if(Id>=Ad)kd=Nd.length-1;else{let Rd=Nd.length-2,Md;for(;kd<Rd;)if(Md=kd+(Rd-kd>>1),Id<Nd[Md])Rd=Md-1;else if(Id>=Nd[Md+1])kd=Md+1;else{kd=Md;break}}return{col:Id-Nd[kd]+1,line:kd+1}}mapResolve(Id){return/^ \w +: \/ \/ /.test(Id)?Id:sd(this.map.consumer().sourceRoot||this.map.root||".",Id)}origin(Id,Ad,Nd,kd){if(!this.map)return!1;let Rd=this.map.consumer(),Md=Rd.originalPositionFor({column:Ad,line:Id});if(!Md.source)return!1;let Bd;typeof Nd=="number"&&(Bd=Rd.originalPositionFor({column:kd,line:Nd}));let jd;od(Md.source)?jd=rd(Md.source):jd=new URL(Md.source,this.map.consumer().sourceRoot||rd(this.map.mapFile));let Vd={column:Md.column,endColumn:Bd&&Bd.column,endLine:Bd&&Bd.line,line:Md.line,url:jd.toString()};if(jd.protocol==="file:")if(td)Vd.file=td(jd);else throw new Error("file: protocol is not available in this PostCSS build");let Fd=Rd.sourceContentFor(Md.source);return Fd&&(Vd.source=Fd),Vd}toJSON(){let Id={};for(let Ad of["hasBOM","css","file","id"])this[Ad]!=null&&(Id[Ad]=this[Ad]);return this.map&&(Id.map={...this.map},Id.map.consumerCache&&(Id.map.consumerCache=void 0)),Id}get from(){return this.file||this.id}};qa.exports=Td,Td.default=Td,cd&&cd.registerInput&&cd.registerInput(Td)}),pt=y((Ra,qa)=>{var Ja=re(),ed=Ht(),td=Re $ 1();function rd(od,sd){let ld=new td(od,sd),cd=new ed(ld);try{cd.parse()}catch(ud){throw ud}return cd.root}qa.exports=rd,rd.default=rd,Ja.registerParse(rd)}),no=y((Ra,qa)=>{var Ja=Vt(),ed=Re $ 1();qa.exports={isInlineComment(td){if(td[0]==="word"&&td[1].slice(0,2)==="//"){let rd=td,od=[],sd,ld;for(;td;){if(/ \r ? \n /.test(td[1])){if(/['"].* \r ? \n /.test(td[1])){od.push(td[1].substring(0,td[1].indexOf( `
2024-08-30 15:19:18 +08:00
` ))),ld=td[1].substring(td[1].indexOf( `
2024-08-31 11:28:56 +08:00
` ));let ud=this.input.css.valueOf().substring(this.tokenizer.position());ld+=ud,sd=td[3]+ud.length-ld.length}else this.tokenizer.back(td);break}od.push(td[1]),sd=td[2],td=this.tokenizer.nextToken({ignoreUnclosed:!0})}let cd=["comment",od.join(""),rd[2],sd];return this.inlineComment(cd),ld&&(this.input=new ed(ld),this.tokenizer=Ja(this.input)),!0}else if(td[1]==="/"){let rd=this.tokenizer.nextToken({ignoreUnclosed:!0});if(rd[0]==="comment"&&/^ \/ \* /.test(rd[1]))return rd[0]="word",rd[1]=rd[1].slice(1),td[1]="//",this.tokenizer.back(rd),qa.exports.isInlineComment.bind(this)(td)}return!1}}}),oo $ 1=y((Ra,qa)=>{qa.exports={interpolation(Ja){let ed=[Ja,this.tokenizer.nextToken()],td=["word","}"];if(ed[0][1].length>1||ed[1][0]!=="{")return this.tokenizer.back(ed[1]),!1;for(Ja=this.tokenizer.nextToken();Ja&&td.includes(Ja[0]);)ed.push(Ja),Ja=this.tokenizer.nextToken();let rd=ed.map(cd=>cd[1]),[od]=ed,sd=ed.pop(),ld=["word",rd.join(""),od[2],sd[2]];return this.tokenizer.back(Ja),this.tokenizer.back(ld),!0}}}),uo $ 1=y((Ra,qa)=>{var Ja=/^#[0-9a-fA-F]{6} $ |^#[0-9a-fA-F]{3} $ /,ed=/ \. [0-9]/,td=rd=>{let[,od]=rd,[sd]=od;return(sd==="."||sd==="#")&&Ja.test(od)===!1&&ed.test(od)===!1};qa.exports={isMixinToken:td}}),co=y((Ra,qa)=>{var Ja=Vt(),ed=/^url \( (.+) \) /;qa.exports=td=>{let{name:rd,params:od=""}=td;if(rd==="import"&&od.length){td.import=!0;let sd=Ja({css:od});for(td.filename=od.replace(ed," $ 1");!sd.endOfFile();){let[ld,cd]=sd.nextToken();if(ld==="word"&&cd==="url")return;if(ld==="brackets"){td.options=cd,td.filename=od.replace(cd,"").trim();break}}}}}),mo $ 1=y((Ra,qa)=>{var Ja=/: $ /,ed=/^:( \s +)?/;qa.exports=td=>{let{name:rd,params:od=""}=td;if(td.name.slice(-1)===":"){if(Ja.test(rd)){let[sd]=rd.match(Ja);td.name=rd.replace(sd,""),td.raws.afterName=sd+(td.raws.afterName||""),td.variable=!0,td.value=td.params}if(ed.test(od)){let[sd]=od.match(ed);td.value=od.replace(sd,""),td.raws.afterName=(td.raws.afterName||"")+sd,td.variable=!0}}}}),go $ 1=y((Ra,qa)=>{var Ja=Oe(),ed=Ht(),{isInlineComment:td}=no(),{interpolation:rd}=oo $ 1(),{isMixinToken:od}=uo $ 1(),sd=co(),ld=mo $ 1(),cd=/(! \s *important) $ /i;qa.exports=class extends ed{constructor(...ud){super(...ud),this.lastNode=null}atrule(ud){rd.bind(this)(ud)||(super.atrule(ud),sd(this.lastNode),ld(this.lastNode))}decl(...ud){super.decl(...ud),/extend \( .+ \) /i.test(this.lastNode.value)&&(this.lastNode.extend=!0)}each(ud){ud[0][1]= ` $ { ud [ 0 ] [ 1 ] } ` ;let _d=ud.findIndex(Td=>Td[0]==="("),yd=ud.reverse().find(Td=>Td[0]===")"),gd=ud.reverse().indexOf(yd),Ed=ud.splice(_d,gd).map(Td=>Td[1]).join("");for(let Td of ud.reverse())this.tokenizer.back(Td);this.atrule(this.tokenizer.nextToken()),this.lastNode.function=!0,this.lastNode.params=Ed}init(ud,_d,yd){super.init(ud,_d,yd),this.lastNode=ud}inlineComment(ud){let _d=new Ja,yd=ud[1].slice(2);if(this.init(_d,ud[2]),_d.source.end=this.getPosition(ud[3]||ud[2]),_d.inline=!0,_d.raws.begin="//",/^ \s * $ /.test(yd))_d.text="",_d.raws.left=yd,_d.raws.right="";else{let gd=yd.match(/^( \s *)([^]*[^ \s ])( \s *) $ /);[,_d.raws.left,_d.text,_d.raws.right]=gd}}mixin(ud){let[_d]=ud,yd=_d[1].slice(0,1),gd=ud.findIndex(Nd=>Nd[0]==="brackets"),Ed=ud.findIndex(Nd=>Nd[0]==="("),Td="";if((gd<0||gd>3)&&Ed>0){let Nd=ud.reduce((qd,Wd,Qd)=>Wd[0]===")"?Qd:qd),kd=ud.slice(Ed,Nd+Ed).map(qd=>qd[1]).join(""),[Rd]=ud.slice(Ed),Md=[Rd[2],Rd[3]],[Bd]=ud.slice(Nd,Nd+1),jd=[Bd[2],Bd[3]],Vd=["brackets",kd].concat(Md,jd),Fd=ud.slice(0,Ed),Ud=ud.slice(Nd+1);ud=Fd,ud.push(Vd),ud=ud.concat(Ud)}let Id=[];for(let Nd of ud)if((Nd[1]==="!"||Id.length)&&Id.push(Nd),Nd[1]==="important")break;if(Id.length){let[Nd]=Id,kd=ud.indexOf(Nd),Rd=Id[Id.length-1],Md=[Nd[2],Nd[3]],Bd=[Rd[4],Rd[5]],jd=["word",Id.map(Vd=>Vd[1]).join("")].concat(Md,Bd);ud.splice(kd,Id.length,jd)}let Ad=ud.findIndex(Nd=>cd.test(Nd[1]));Ad>0&&([,Td]=ud[Ad],ud.splice(Ad,1));for(let Nd of ud.reverse())this.tokenizer.back(Nd);this.atrule(this.tokenizer.nextToken()),this.lastNode.mixin=!0,this.lastNode.raws.identifier=yd,Td&&(this.lastNode.important=!0,this.lastNode.raws.important=Td)}other(ud){td.bind(this)(ud)||super.other(ud)}rule(ud){let _d=ud[ud.length-1],yd
https : //evilmartians.com/chronicles/postcss-8-plugin-migration`));let qd=Bd(...Ud);return qd.postcssPlugin=Md,qd.postcssVersion=new od().version,qd}let Fd;return Object.defineProperty(Vd,"postcss",{get(){return Fd||(Fd=Vd()),Fd}}),Vd.process=function(Ud,qd,Wd){return Rd([Vd(Wd)]).process(Ud,qd)},Vd},Rd.stringify=sd,Rd.parse=Td,Rd.fromJSON=ld,Rd.list=Id,Rd.comment=Md=>new _d(Md),Rd.atRule=Md=>new yd(Md),Rd.decl=Md=>new ed(Md),Rd.rule=Md=>new Ad(Md),Rd.root=Md=>new Nd(Md),Rd.document=Md=>new cd(Md),Rd.CssSyntaxError=Ja,Rd.Declaration=ed,Rd.Container=rd,Rd.Processor=od,Rd.Document=cd,Rd.Comment=_d,Rd.Warning=ud,Rd.AtRule=yd,Rd.Result=gd,Rd.Input=Ed,Rd.Rule=Ad,Rd.Root=Nd,Rd.Node=kd,td.registerPostcss(Rd),qa.exports=Rd,Rd.default=Rd}),Ho$1=y((Ra,qa)=>{var{Container:Ja}=Zt$1(),ed=class extends Ja{constructor(td){super(td),this.type="decl",this.isNested=!0,this.nodes||(this.nodes=[])}};qa.exports=ed}),Jo=y((Ra,qa)=>{var Ja=/[\t\n\f\r "#'()/;[\\\]{}]/g,ed=/[,\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,td=/.[\r\n"'(/\\]/,rd=/[\da-f]/i,od=/[\n\f\r]/g;qa.exports=function(sd,ld={}){let cd=sd.css.valueOf(),ud=ld.ignoreErrors,_d,yd,gd,Ed,Td,Id,Ad,Nd,kd,Rd=cd.length,Md=0,Bd=[],jd=[],Vd;function Fd(){return Md}function Ud(Xd){throw sd.error("Unclosed "+Xd,Md)}function qd(){return jd.length===0&&Md>=Rd}function Wd(){let Xd=1,df=!1,hf=!1;for(;Xd>0;)yd+=1,cd.length<=yd&&Ud("interpolation"),_d=cd.charCodeAt(yd),Nd=cd.charCodeAt(yd+1),df?!hf&&_d===df?(df=!1,hf=!1):_d===92?hf=!hf:hf&&(hf=!1):_d===39||_d===34?df=_d:_d===125?Xd-=1:_d===35&&Nd===123&&(Xd+=1)}function Qd(Xd){if(jd.length)return jd.pop();if(Md>=Rd)return;let df=Xd?Xd.ignoreUnclosed:!1;switch(_d=cd.charCodeAt(Md),_d){case 10:case 32:case 9:case 13:case 12:{yd=Md;do yd+=1,_d=cd.charCodeAt(yd);while(_d===32||_d===10||_d===9||_d===13||_d===12);kd=["space",cd.slice(Md,yd)],Md=yd-1;break}case 91:case 93:case 123:case 125:case 58:case 59:case 41:{let hf=String.fromCharCode(_d);kd=[hf,hf,Md];break}case 44:{kd=["word",",",Md,Md+1];break}case 40:{if(Ad=Bd.length?Bd.pop()[1]:"",Nd=cd.charCodeAt(Md+1),Ad==="url"&&Nd!==39&&Nd!==34){for(Vd=1,Id=!1,yd=Md+1;yd<=cd.length-1;){if(Nd=cd.charCodeAt(yd),Nd===92)Id=!Id;else if(Nd===40)Vd+=1;else if(Nd===41&&(Vd-=1,Vd===0))break;yd+=1}Ed=cd.slice(Md,yd+1),kd=["brackets",Ed,Md,yd],Md=yd}else yd=cd.indexOf(")",Md+1),Ed=cd.slice(Md,yd+1),yd===-1||td.test(Ed)?kd=["(","(",Md]:(kd=["brackets",Ed,Md,yd],Md=yd);break}case 39:case 34:{for(gd=_d,yd=Md,Id=!1;yd<Rd&&(yd++,yd===Rd&&Ud("string"),_d=cd.charCodeAt(yd),Nd=cd.charCodeAt(yd+1),!(!Id&&_d===gd));)_d===92?Id=!Id:Id?Id=!1:_d===35&&Nd===123&&Wd();kd=["string",cd.slice(Md,yd+1),Md,yd],Md=yd;break}case 64:{Ja.lastIndex=Md+1,Ja.test(cd),Ja.lastIndex===0?yd=cd.length-1:yd=Ja.lastIndex-2,kd=["at-word",cd.slice(Md,yd+1),Md,yd],Md=yd;break}case 92:{for(yd=Md,Td=!0;cd.charCodeAt(yd+1)===92;)yd+=1,Td=!Td;if(_d=cd.charCodeAt(yd+1),Td&&_d!==47&&_d!==32&&_d!==10&&_d!==9&&_d!==13&&_d!==12&&(yd+=1,rd.test(cd.charAt(yd)))){for(;rd.test(cd.charAt(yd+1));)yd+=1;cd.charCodeAt(yd+1)===32&&(yd+=1)}kd=["word",cd.slice(Md,yd+1),Md,yd],Md=yd;break}default:Nd=cd.charCodeAt(Md+1),_d===35&&Nd===123?(yd=Md,Wd(),Ed=cd.slice(Md,yd+1),kd=["word",Ed,Md,yd],Md=yd):_d===47&&Nd===42?(yd=cd.indexOf("*/",Md+2)+1,yd===0&&(ud||df?yd=cd.length:Ud("comment")),kd=["comment",cd.slice(Md,yd+1),Md,yd],Md=yd):_d===47&&Nd===47?(od.lastIndex=Md+1,od.test(cd),od.lastIndex===0?yd=cd.length-1:yd=od.lastIndex-2,Ed=cd.slice(Md,yd+1),kd=["comment",Ed,Md,yd,"inline"],Md=yd):(ed.lastIndex=Md+1,ed.test(cd),ed.lastIndex===0?yd=cd.length-1:yd=ed.lastIndex-2,kd=["word",cd.slice(Md,yd+1),Md,yd],Bd.push(kd),Md=yd);break}return Md++,kd}function Zd(Xd){jd.push(Xd)}return{back:Zd,endOfFile:qd,nextToken:Qd,position:Fd}}}),Zo=y((Ra,qa)=>{var{Comment:Ja}=Zt$1(),ed=Ht(),td=Ho$1(),rd=Jo(),od=class extends ed{atrule(sd){let ld=sd[1],cd=sd;for(;!this.tokenizer.endOfFile();){let ud=this.tokenizer.nextToken();if(ud[0]==="word"&&ud[2]===cd[3]+1)ld+=ud[1],cd=ud;else{this.tokenizer.back(ud);break}}super.atrule(["at-word",ld,sd[2],cd[3]])}comment(sd){if(sd[4]==="inline"){let ld=new Ja;this.
` ))break;_d[0]==="("?cd+=1:_d[0]===")"?cd-=1:cd===0&&_d[0]===":"&&(ld=!0)}if(!ld||ud.trim()===""||/^[#:A-Za-z-]/.test(ud))super.rule(sd);else{sd.pop();let _d=new td;this.init(_d,sd[0][2]);let yd;for(let Ed=sd.length-1;Ed>=0;Ed--)if(sd[Ed][0]!=="space"){yd=sd[Ed];break}if(yd[3]){let Ed=this.input.fromOffset(yd[3]);_d.source.end={column:Ed.col,line:Ed.line,offset:yd[3]+1}}else{let Ed=this.input.fromOffset(yd[2]);_d.source.end={column:Ed.col,line:Ed.line,offset:yd[2]+1}}for(;sd[0][0]!=="word";)_d.raws.before+=sd.shift()[1];if(sd[0][2]){let Ed=this.input.fromOffset(sd[0][2]);_d.source.start={column:Ed.col,line:Ed.line,offset:sd[0][2]}}for(_d.prop="";sd.length;){let Ed=sd[0][0];if(Ed===":"||Ed==="space"||Ed==="comment")break;_d.prop+=sd.shift()[1]}_d.raws.between="";let gd;for(;sd.length;)if(gd=sd.shift(),gd[0]===":"){_d.raws.between+=gd[1];break}else _d.raws.between+=gd[1];(_d.prop[0]==="_"||_d.prop[0]==="*")&&(_d.raws.before+=_d.prop[0],_d.prop=_d.prop.slice(1)),_d.raws.between+=this.spacesAndCommentsFromStart(sd),this.precheckMissedSemicolon(sd);for(let Ed=sd.length-1;Ed>0;Ed--){if(gd=sd[Ed],gd[1]==="!important"){_d.important=!0;let Td=this.stringFrom(sd,Ed);Td=this.spacesFromEnd(sd)+Td,Td!==" !important"&&(_d.raws.important=Td);break}else if(gd[1]==="important"){let Td=sd.slice(0),Id="";for(let Ad=Ed;Ad>0;Ad--){let Nd=Td[Ad][0];if(Id.trim().indexOf("!")===0&&Nd!=="space")break;Id=Td.pop()[1]+Id}Id.trim().indexOf("!")===0&&(_d.important=!0,_d.raws.important=Id,sd=Td)}if(gd[0]!=="space"&&gd[0]!=="comment")break}this.raw(_d,"value",sd),_d.value.includes(":")&&this.checkMissedSemicolon(sd),this.current=_d}}};qa.exports=od}),ta=y((Ra,qa)=>{var{Input:Ja}=Zt $ 1(),ed=Zo();qa.exports=function(td,rd){let od=new Ja(td,rd),sd=new ed(od);return sd.parse(),sd.root}}),Os=y(Ra=>{Object.defineProperty(Ra,"__esModule",{value:!0});function qa(Ja){this.after=Ja.after,this.before=Ja.before,this.type=Ja.type,this.value=Ja.value,this.sourceIndex=Ja.sourceIndex}Ra.default=qa}),As=y(Ra=>{Object.defineProperty(Ra,"__esModule",{value:!0});var qa=Os(),Ja=ed(qa);function ed(rd){return rd&&rd.__esModule?rd:{default:rd}}function td(rd){var od=this;this.constructor(rd),this.nodes=rd.nodes,this.after===void 0&&(this.after=this.nodes.length>0?this.nodes[this.nodes.length-1].after:""),this.before===void 0&&(this.before=this.nodes.length>0?this.nodes[0].before:""),this.sourceIndex===void 0&&(this.sourceIndex=this.before.length),this.nodes.forEach(function(sd){sd.parent=od})}td.prototype=Object.create(Ja.default.prototype),td.constructor=Ja.default,td.prototype.walk=function(rd,od){for(var sd=typeof rd=="string"||rd instanceof RegExp,ld=sd?od:rd,cd=typeof rd=="string"?new RegExp(rd):rd,ud=0;ud<this.nodes.length;ud++){var _d=this.nodes[ud],yd=sd?cd.test(_d.type):!0;if(yd&&ld&&ld(_d,ud,this.nodes)===!1||_d.nodes&&_d.walk(rd,od)===!1)return!1}return!0},td.prototype.each=function(){for(var rd=arguments.length<=0||arguments[0]===void 0?function(){}:arguments[0],od=0;od<this.nodes.length;od++){var sd=this.nodes[od];if(rd(sd,od,this.nodes)===!1)return!1}return!0},Ra.default=td}),aa=y(Ra=>{Object.defineProperty(Ra,"__esModule",{value:!0}),Ra.parseMediaFeature=od,Ra.parseMediaQuery=sd,Ra.parseMediaList=ld;var qa=Os(),Ja=rd(qa),ed=As(),td=rd(ed);function rd(cd){return cd&&cd.__esModule?cd:{default:cd}}function od(cd){var ud=arguments.length<=1||arguments[1]===void 0?0:arguments[1],_d=[{mode:"normal",character:null}],yd=[],gd=0,Ed="",Td=null,Id=null,Ad=ud,Nd=cd;cd[0]==="("&&cd[cd.length-1]===")"&&(Nd=cd.substring(1,cd.length-1),Ad++);for(var kd=0;kd<Nd.length;kd++){var Rd=Nd[kd];if((Rd==="'"||Rd==='"')&&(_d[gd].isCalculationEnabled===!0?(_d.push({mode:"string",isCalculationEnabled:!1,character:Rd}),gd++):_d[gd].mode==="string"&&_d[gd].character===Rd&&Nd[kd-1]!==" \\ "&&(_d.pop(),gd--)),Rd==="{"?(_d.push({mode:"interpolation",isCalculationEnabled:!0}),gd++):Rd==="}"&&(_d.pop(),gd--),_d[gd].mode==="normal"&&Rd===":"){var Md=Nd.substring(kd+1);Id={type:"value",before:/^( \s *)/.exec(Md)[1],after:/( \s *) $ /.exec(Md)[1],value:Md.trim()},Id.sourceIndex=Id.before.length+kd+1+Ad,Td=
` ),Ef=gf.length-1,Ef>0?(Tf=yf+Ef,bf=df-gf[Ef].length):(Tf=yf,bf=_f),Qd.push(["comment",wf,yf,Bf-_f,Tf,df-bf,Bf]),_f=bf,yf=Tf,Bf=df):(Ud.lastIndex=Bf+1,Ud.test(Zd),Ud.lastIndex===0?df=Zd.length-1:df=Ud.lastIndex-2,Qd.push(["word",Zd.slice(Bf,df+1),yf,Bf-_f,yf,df-_f,Bf]),Bf=df);break}Bf++}return Qd}qa.exports=Ra.default}),tu $ 1=y((Ra,qa)=>{Ra.__esModule=!0;var Ja=function(){function _f(yf,Bf){for(var zf=0;zf<Bf.length;zf++){var Yf=Bf[zf];Yf.enumerable=Yf.enumerable||!1,Yf.configurable=!0,"value"in Yf&&(Yf.writable=!0),Object.defineProperty(yf,Yf.key,Yf)}}return function(yf,Bf,zf){return Bf&&_f(yf.prototype,Bf),zf&&_f(yf,zf),yf}}(),ed=qs(),td=Sf(ed),rd=Ls(),od=Sf(rd),sd=Ds(),ld=Sf(sd),cd=ga $ 1(),ud=Sf(cd),_d=xa(),yd=Sf(_d),gd=ka(),Ed=Sf(gd),Td=Sa(),Id=Sf(Td),Ad=Oa $ 1(),Nd=Sf(Ad),kd=Aa(),Rd=Sf(kd),Md=Pa $ 1(),Bd=Sf(Md),jd=Ia(),Vd=Sf(jd),Fd=La(),Ud=Sf(Fd),qd=Ma(),Wd=Sf(qd),Qd=Ua $ 1(),Zd=Sf(Qd),Xd= $ a $ 1(),df=Sf(Xd),hf=Ya $ 1(),gf=Sf(hf),Ef=Xa(),wf=Sf(Ef), $ f=D(),Tf=bf( $ f);function bf(_f){if(_f&&_f.__esModule)return _f;var yf={};if(_f!=null)for(var Bf in _f)Object.prototype.hasOwnProperty.call(_f,Bf)&&(yf[Bf]=_f[Bf]);return yf.default=_f,yf}function Sf(_f){return _f&&_f.__esModule?_f:{default:_f}}function Lf(_f,yf){if(!(_f instanceof yf))throw new TypeError("Cannot call a class as a function")}var Pf=function(){function _f(yf){Lf(this,_f),this.input=yf,this.lossy=yf.options.lossless===!1,this.position=0,this.root=new ud.default;var Bf=new yd.default;return this.root.append(Bf),this.current=Bf,this.lossy?this.tokens=(0,wf.default)({safe:yf.safe,css:yf.css.trim()}):this.tokens=(0,wf.default)(yf),this.loop()}return _f.prototype.attribute=function(){var yf="",Bf=void 0,zf=this.currToken;for(this.position++;this.position<this.tokens.length&&this.currToken[0]!=="]";)yf+=this.tokens[this.position][1],this.position++;this.position===this.tokens.length&&!~yf.indexOf("]")&&this.error("Expected a closing square bracket.");var Yf=yf.split(/((?:[*~^ $ |]?=))([^]*)/),jf=Yf[0].split(/( \| )/g),Of={operator:Yf[1],value:Yf[2],source:{start:{line:zf[2],column:zf[3]},end:{line:this.currToken[2],column:this.currToken[3]}},sourceIndex:zf[4]};if(jf.length>1?(jf[0]===""&&(jf[0]=!0),Of.attribute=this.parseValue(jf[2]),Of.namespace=this.parseNamespace(jf[0])):Of.attribute=this.parseValue(Yf[0]),Bf=new Ud.default(Of),Yf[2]){var Zf=Yf[2].split(/( \s +i \s *?) $ /),yh=Zf[0].trim();Bf.value=this.lossy?yh:Zf[0],Zf[1]&&(Bf.insensitive=!0,this.lossy||(Bf.raws.insensitive=Zf[1])),Bf.quoted=yh[0]==="'"||yh[0]==='"',Bf.raws.unquoted=Bf.quoted?yh.slice(1,-1):yh}this.newNode(Bf),this.position++},_f.prototype.combinator=function(){if(this.currToken[1]==="|")return this.namespace();for(var yf=new Zd.default({value:"",source:{start:{line:this.currToken[2],column:this.currToken[3]},end:{line:this.currToken[2],column:this.currToken[3]}},sourceIndex:this.currToken[4]});this.position<this.tokens.length&&this.currToken&&(this.currToken[0]==="space"||this.currToken[0]==="combinator");)this.nextToken&&this.nextToken[0]==="combinator"?(yf.spaces.before=this.parseSpace(this.currToken[1]),yf.source.start.line=this.nextToken[2],yf.source.start.column=this.nextToken[3],yf.source.end.column=this.nextToken[3],yf.source.end.line=this.nextToken[2],yf.sourceIndex=this.nextToken[4]):this.prevToken&&this.prevToken[0]==="combinator"?yf.spaces.after=this.parseSpace(this.currToken[1]):this.currToken[0]==="combinator"?yf.value=this.currToken[1]:this.currToken[0]==="space"&&(yf.value=this.parseSpace(this.currToken[1]," ")),this.position++;return this.newNode(yf)},_f.prototype.comma=function(){if(this.position===this.tokens.length-1){this.root.trailingComma=!0,this.position++;return}var yf=new yd.default;this.current.parent.append(yf),this.current=yf,this.position++},_f.prototype.comment=function(){var yf=new Id.default({value:this.currToken[1],source:{start:{line:this.currToken[2],column:this.currToken[3]},end:{line:this.currToken[4],column:this.currToken[5]}},sourceIndex:this.currToken[6]});this.newNode(yf),this.position++},_f.prototype.error=function(yf){throw new this.input.error(yf)},_f.prototype.missingB
` ?(rd=1,od+=1):rd+=1;return{line:od,column:rd}}positionBy(ed){let td=this.source.start;if(Object(ed).index)td=this.positionInside(ed.index);else if(Object(ed).word){let rd=this.toString().indexOf(ed.word);rd!==-1&&(td=this.positionInside(rd))}return td}}}),U=y((Ra,qa)=>{var Ja=z(),ed=class extends Ja{constructor(td){super(td),this.nodes||(this.nodes=[])}push(td){return td.parent=this,this.nodes.push(td),this}each(td){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let rd=this.lastEach,od,sd;if(this.indexes[rd]=0,!!this.nodes){for(;this.indexes[rd]<this.nodes.length&&(od=this.indexes[rd],sd=td(this.nodes[od],od),sd!==!1);)this.indexes[rd]+=1;return delete this.indexes[rd],sd}}walk(td){return this.each((rd,od)=>{let sd=td(rd,od);return sd!==!1&&rd.walk&&(sd=rd.walk(td)),sd})}walkType(td,rd){if(!td||!rd)throw new Error("Parameters {type} and {callback} are required.");let od=typeof td=="function";return this.walk((sd,ld)=>{if(od&&sd instanceof td||!od&&sd.type===td)return rd.call(this,sd,ld)})}append(td){return td.parent=this,this.nodes.push(td),this}prepend(td){return td.parent=this,this.nodes.unshift(td),this}cleanRaws(td){if(super.cleanRaws(td),this.nodes)for(let rd of this.nodes)rd.cleanRaws(td)}insertAfter(td,rd){let od=this.index(td),sd;this.nodes.splice(od+1,0,rd);for(let ld in this.indexes)sd=this.indexes[ld],od<=sd&&(this.indexes[ld]=sd+this.nodes.length);return this}insertBefore(td,rd){let od=this.index(td),sd;this.nodes.splice(od,0,rd);for(let ld in this.indexes)sd=this.indexes[ld],od<=sd&&(this.indexes[ld]=sd+this.nodes.length);return this}removeChild(td){td=this.index(td),this.nodes[td].parent=void 0,this.nodes.splice(td,1);let rd;for(let od in this.indexes)rd=this.indexes[od],rd>=td&&(this.indexes[od]=rd-1);return this}removeAll(){for(let td of this.nodes)td.parent=void 0;return this.nodes=[],this}every(td){return this.nodes.every(td)}some(td){return this.nodes.some(td)}index(td){return typeof td=="number"?td:this.nodes.indexOf(td)}get first(){if(this.nodes)return this.nodes[0]}get last(){if(this.nodes)return this.nodes[this.nodes.length-1]}toString(){let td=this.nodes.map(String).join("");return this.value&&(td=this.value+td),this.raws.before&&(td=this.raws.before+td),this.raws.after&&(td+=this.raws.after),td}};ed.registerWalker=td=>{let rd="walk"+td.name;rd.lastIndexOf("s")!==rd.length-1&&(rd+="s"),!ed.prototype[rd]&&(ed.prototype[rd]=function(od){return this.walkType(td,od)})},qa.exports=ed}),uu $ 1=y((Ra,qa)=>{var Ja=U();qa.exports=class extends Ja{constructor(ed){super(ed),this.type="root"}}}),cu=y((Ra,qa)=>{var Ja=U();qa.exports=class extends Ja{constructor(ed){super(ed),this.type="value",this.unbalanced=0}}}),hu=y((Ra,qa)=>{var Ja=U(),ed=class extends Ja{constructor(td){super(td),this.type="atword"}toString(){return this.quoted&&this.raws.quote,[this.raws.before,"@",String.prototype.toString.call(this.value),this.raws.after].join("")}};Ja.registerWalker(ed),qa.exports=ed}),mu=y((Ra,qa)=>{var Ja=U(),ed=z(),td=class extends ed{constructor(rd){super(rd),this.type="colon"}};Ja.registerWalker(td),qa.exports=td}),wu=y((Ra,qa)=>{var Ja=U(),ed=z(),td=class extends ed{constructor(rd){super(rd),this.type="comma"}};Ja.registerWalker(td),qa.exports=td}),vu=y((Ra,qa)=>{var Ja=U(),ed=z(),td=class extends ed{constructor(rd){super(rd),this.type="comment",this.inline=Object(rd).inline||!1}toString(){return[this.raws.before,this.inline?"//":"/*",String(this.value),this.inline?"":"*/",this.raws.after].join("")}};Ja.registerWalker(td),qa.exports=td}),_u=y((Ra,qa)=>{var Ja=U(),ed=class extends Ja{constructor(td){super(td),this.type="func",this.unbalanced=-1}};Ja.registerWalker(ed),qa.exports=ed}),Eu=y((Ra,qa)=>{var Ja=U(),ed=z(),td=class extends ed{constructor(rd){super(rd),this.type="number",this.unit=Object(rd).unit||""}toString(){return[this.raws.before,String(this.value),this.unit,this.raws.after].join("")}};Ja.registerWalker(td),qa.exports=td}),Tu=y((Ra,qa)=>{var Ja=U(),ed=z(),td=class extends ed{constructor(rd){super(rd),this.type="operator"}};Ja.registerWalker(td),qa.exports=td}),Cu=y
` ,Td+2);kd=Zd!==-1?Zd-1:yd}jd=_d.slice(Td,kd+1),Md=jd.split( `
` ),Bd=Md.length-1,Bd>0?(Vd=Ed+Bd,Fd=kd-Md[Bd].length):(Vd=Ed,Fd=gd),ud.push(["comment",jd,Ed,Td-gd,Vd,kd-Fd,Td]),gd=Fd,Ed=Vd,Td=kd}else if(Nd===35&&!rd.test(_d.slice(Td+1,Td+2)))kd=Td+1,ud.push(["#",_d.slice(Td,kd),Ed,Td-gd,Ed,kd-gd,Td]),Td=kd-1;else if((Nd===117||Nd===85)&&_d.charCodeAt(Td+1)===43){kd=Td+2;do kd+=1,Nd=_d.charCodeAt(kd);while(kd<yd&&od.test(_d.slice(kd,kd+1)));ud.push(["unicoderange",_d.slice(Td,kd),Ed,Td-gd,Ed,kd-gd,Td]),Td=kd-1}else if(Nd===47)kd=Td+1,ud.push(["operator",_d.slice(Td,kd),Ed,Td-gd,Ed,kd-gd,Td]),Td=kd-1;else{let Zd=ed;if(Nd>=48&&Nd<=57&&(Zd=td),Zd.lastIndex=Td+1,Zd.test(_d),Zd.lastIndex===0?kd=_d.length-1:kd=Zd.lastIndex-2,Zd===td||Nd===46){let Xd=_d.charCodeAt(kd),df=_d.charCodeAt(kd+1),hf=_d.charCodeAt(kd+2);(Xd===101||Xd===69)&&(df===45||df===43)&&hf>=48&&hf<=57&&(td.lastIndex=kd+2,td.test(_d),td.lastIndex===0?kd=_d.length-1:kd=td.lastIndex-2)}ud.push(["word",_d.slice(Td,kd+1),Ed,Td-gd,Ed,kd-gd,Td]),Td=kd}break}Td++}return ud}}), $ u=y((Ra,qa)=>{var Ja=class extends Error{constructor(ed){super(ed),this.name=this.constructor.name,this.message=ed||"An error ocurred while parsing.",typeof Error.captureStackTrace=="function"?Error.captureStackTrace(this,this.constructor):this.stack=new Error(ed).stack}};qa.exports=Ja}),Vu=y((Ra,qa)=>{var Ja=uu $ 1(),ed=cu(),td=hu(),rd=mu(),od=wu(),sd=vu(),ld=_u(),cd=Eu(),ud=Tu(),_d=Cu(),yd=Nu(),gd=Ru(),Ed=qu $ 1(),Td=Uu(),Id=qs(),Ad=Ls(),Nd=Ds(),kd= $ u();function Rd(Md){return Md.sort((Bd,jd)=>Bd-jd)}qa.exports=class{constructor(Md,Bd){let jd={loose:!1};this.cache=[],this.input=Md,this.options=Object.assign({},jd,Bd),this.position=0,this.unbalanced=0,this.root=new Ja;let Vd=new ed;this.root.append(Vd),this.current=Vd,this.tokens=Td(Md,this.options)}parse(){return this.loop()}colon(){let Md=this.currToken;this.newNode(new rd({value:Md[1],source:{start:{line:Md[2],column:Md[3]},end:{line:Md[4],column:Md[5]}},sourceIndex:Md[6]})),this.position++}comma(){let Md=this.currToken;this.newNode(new od({value:Md[1],source:{start:{line:Md[2],column:Md[3]},end:{line:Md[4],column:Md[5]}},sourceIndex:Md[6]})),this.position++}comment(){let Md=!1,Bd=this.currToken[1].replace(/ \/ \* | \* \/ /g,""),jd;this.options.loose&&Bd.startsWith("//")&&(Bd=Bd.substring(2),Md=!0),jd=new sd({value:Bd,inline:Md,source:{start:{line:this.currToken[2],column:this.currToken[3]},end:{line:this.currToken[4],column:this.currToken[5]}},sourceIndex:this.currToken[6]}),this.newNode(jd),this.position++}error(Md,Bd){throw new kd(Md+ ` at line : $ { Bd [ 2 ] } , column $ { Bd [ 3 ] } ` )}loop(){for(;this.position<this.tokens.length;)this.parseTokens();return!this.current.last&&this.spaces?this.current.raws.before+=this.spaces:this.spaces&&(this.current.last.raws.after+=this.spaces),this.spaces="",this.root}operator(){let Md=this.currToken[1],Bd;if(Md==="+"||Md==="-"){if(this.options.loose||this.position>0&&(this.current.type==="func"&&this.current.value==="calc"?this.prevToken[0]!=="space"&&this.prevToken[0]!=="("?this.error("Syntax Error",this.currToken):this.nextToken[0]!=="space"&&this.nextToken[0]!=="word"?this.error("Syntax Error",this.currToken):this.nextToken[0]==="word"&&this.current.last.type!=="operator"&&this.current.last.value!=="("&&this.error("Syntax Error",this.currToken):(this.nextToken[0]==="space"||this.nextToken[0]==="operator"||this.prevToken[0]==="operator")&&this.error("Syntax Error",this.currToken)),this.options.loose){if((!this.current.nodes.length||this.current.last&&this.current.last.type==="operator")&&this.nextToken[0]==="word")return this.word()}else if(this.nextToken[0]==="word")return this.word()}return Bd=new ud({value:this.currToken[1],source:{start:{line:this.currToken[2],column:this.currToken[3]},end:{line:this.currToken[2],column:this.currToken[3]}},sourceIndex:this.currToken[4]}),this.position++,this.newNode(Bd)}parseTokens(){switch(this.currToken[0]){case"space":this.space();break;case"colon":this.colon();break;case"comma":this.comma();break;case"comment":this.comment();break;case"(":this.parenOpen();break;case")":this.parenClose();break;case"atword":case"word":this.word();break;case"operato
2024-08-30 15:19:18 +08:00
Expected it to be 'string' or 'object' . ` ;if(Ve(Ra))throw new Error("doc is valid.");let Ja=Object.prototype.toString.call(Ra);if(Ja!=="[object Object]")return ` Unexpected doc '${Ja}' . ` ;let ed=ml([...bt].map(td=> ` '${td}' ` ));return ` Unexpected doc . type '${Ra.type}' .
2024-08-31 11:28:56 +08:00
Expected it to be $ { ed } . ` }var Fr=class extends Error{constructor(qa){super(yl(qa));e1(this,"name","InvalidDocError");this.doc=qa}}, $ r=Fr,Zs=()=>{},_t=Zs;function q(Ra){return{type:we,contents:Ra}}function en(Ra,qa){return{type:ge,contents:qa,n:Ra}}function L(Ra,qa={}){return _t(qa.expandedStates),{type:ve,id:qa.id,contents:Ra,break:!!qa.shouldBreak,expandedStates:qa.expandedStates}}function tn(Ra){return en({type:"root"},Ra)}function ue(Ra){return en(-1,Ra)}function Ge(Ra){return{type:xe $ 1,parts:Ra}}function kt(Ra,qa="",Ja={}){return{type:oe,breakContents:Ra,flatContents:qa,groupId:Ja.groupId}}var je $ 1={type:be $ 1},wl $ 1={type:K,hard:!0},A={type:K},M={type:K,soft:!0},E=[wl $ 1,je $ 1];function V(Ra,qa){let Ja=[];for(let ed=0;ed<qa.length;ed++)ed!==0&&Ja.push(Ra),Ja.push(qa[ed]);return Ja}var gl=(Ra,qa,Ja)=>{if(!(Ra&&qa==null))return Array.isArray(qa)||typeof qa=="string"?qa[Ja<0?qa.length+Ja:Ja]:qa.at(Ja)},G=gl;function vl(Ra,qa){if(typeof Ra=="string")return qa(Ra);let Ja=new Map;return ed(Ra);function ed(rd){if(Ja.has(rd))return Ja.get(rd);let od=td(rd);return Ja.set(rd,od),od}function td(rd){switch(Ve(rd)){case Be:return qa(rd.map(ed));case xe $ 1:return qa({...rd,parts:rd.parts.map(ed)});case oe:return qa({...rd,breakContents:ed(rd.breakContents),flatContents:ed(rd.flatContents)});case ve:{let{expandedStates:od,contents:sd}=rd;return od?(od=od.map(ed),sd=od[0]):sd=ed(sd),qa({...rd,contents:sd,expandedStates:od})}case ge:case we:case $ e $ 1:case ze:case We:return qa({...rd,contents:ed(rd.contents)});case Me $ 1:case Ue:case Fe:case Ye:case K:case be $ 1:return qa(rd);default:throw new $ r(rd)}}}function xl $ 1(Ra){return Ra.type===K&&!Ra.hard?Ra.soft?"":" ":Ra.type===oe?Ra.flatContents:Ra}function rn(Ra){return vl(Ra,xl $ 1)}function bl(Ra){return Array.isArray(Ra)&&Ra.length>0}var ee=bl,Et="'",sn='"';function _l(Ra,qa){let Ja=qa===!0||qa===Et?Et:sn,ed=Ja===Et?sn:Et,td=0,rd=0;for(let od of Ra)od===Ja?td++:od===ed&&rd++;return td>rd?ed:Ja}var nn=_l;function kl(Ra,qa,Ja){let ed=qa==='"'?"'":'"',td=_ $ 1(!1,Ra,/ \\ (.)|(["'])/gsu,(rd,od,sd)=>od===ed?od:sd===qa?" \\ "+sd:sd||(Ja&&/^[^ \n \r "'0-7 \\ bfnrt-vx \u 2028 \u 2029] $ /u.test(od)?od:" \\ "+od));return qa+td+qa}var on=kl;function El $ 1(Ra,qa){let Ja=Ra.slice(1,-1),ed=qa.parser==="json"||qa.parser==="jsonc"||qa.parser==="json5"&&qa.quoteProps==="preserve"&&!qa.singleQuote?'"':qa.__isInHtmlAttribute?"'":nn(Ja,qa.singleQuote);return on(Ja,ed,!(qa.parser==="css"||qa.parser==="less"||qa.parser==="scss"||qa.__embeddedInHtml))}var St=El $ 1,Wr=class extends Error{constructor(qa,Ja,ed="type"){super( ` Unexpected $ { Ja } node $ { ed } : $ { JSON . stringify ( qa [ ed ] ) } . ` );e1(this,"name","UnexpectedNodeError");this.node=qa}},an=Wr;function Sl $ 1(Ra){return(Ra==null?void 0:Ra.type)==="front-matter"}var _e=Sl $ 1,Tl $ 1=new Set(["raw","raws","sourceIndex","source","before","after","trailingComma","spaces"]);function un(Ra,qa,Ja){if(_e(Ra)&&Ra.language==="yaml"&&delete qa.value,Ra.type==="css-comment"&&Ja.type==="css-root"&&Ja.nodes.length>0&&((Ja.nodes[0]===Ra||_e(Ja.nodes[0])&&Ja.nodes[1]===Ra)&&(delete qa.text,/^ \* \s *@(?:format|prettier) \s * $ /u.test(Ra.text))||Ja.type==="css-root"&&G(!1,Ja.nodes,-1)===Ra))return null;if(Ra.type==="value-root"&&delete qa.text,(Ra.type==="media-query"||Ra.type==="media-query-list"||Ra.type==="media-feature-expression")&&delete qa.value,Ra.type==="css-rule"&&delete qa.params,(Ra.type==="media-feature"||Ra.type==="media-keyword"||Ra.type==="media-type"||Ra.type==="media-unknown"||Ra.type==="media-url"||Ra.type==="media-value"||Ra.type==="selector-attribute"||Ra.type==="selector-string"||Ra.type==="selector-class"||Ra.type==="selector-combinator"||Ra.type==="value-string")&&Ra.value&&(qa.value=Ol $ 1(Ra.value)),Ra.type==="selector-combinator"&&(qa.value=_ $ 1(!1,qa.value,/ \s +/gu," ")),Ra.type==="media-feature"&&(qa.value=_ $ 1(!1,qa.value," ","")),(Ra.type==="value-word"&&(Ra.isColor&&Ra.isHex||["initial","inherit","unset","revert"].includes(Ra.value.toLowerCase()))||Ra.type==="media-feature"||Ra.type==="selector-root-invalid"||Ra.type==="selector-pseudo")&&(qa.value=qa.value.toLowerCase()),Ra.type==="css-decl"
2024-08-30 15:19:18 +08:00
` ,Ja)+1;return Ja+Ra.column}var zr=Il $ 1;function Tt $ 1(Ra){return(qa,Ja,ed)=>{let td=!!(ed!=null&&ed.backwards);if(Ja===!1)return!1;let{length:rd}=qa,od=Ja;for(;od>=0&&od<rd;){let sd=qa.charAt(od);if(Ra instanceof RegExp){if(!Ra.test(sd))return od}else if(!Ra.includes(sd))return od;td?od--:od++}return od===-1||od===rd?od:!1}}var Ot $ 1=Tt $ 1(" "),yn=Tt $ 1(",; "),Ct=Tt $ 1(/[^ \n \r ]/u);function wn $ 1(Ra,qa){var Ja,ed,td;if(typeof((ed=(Ja=Ra.source)==null?void 0:Ja.start)==null?void 0:ed.offset)=="number")return Ra.source.start.offset;if(typeof Ra.sourceIndex=="number")return Ra.sourceIndex;if((td=Ra.source)!=null&&td.start)return zr(Ra.source.start,qa);throw Object.assign(new Error("Can not locate node."),{node:Ra})}function Vr(Ra,qa){var Ja,ed;if(Ra.type==="css-comment"&&Ra.inline)return Ct(qa,Ra.source.startOffset);if(typeof((ed=(Ja=Ra.source)==null?void 0:Ja.end)==null?void 0:ed.offset)=="number")return Ra.source.end.offset;if(Ra.source){if(Ra.source.end)return zr(Ra.source.end,qa);if(ee(Ra.nodes))return Vr(G(!1,Ra.nodes,-1),qa)}return null}function Gr(Ra,qa){Ra.source&&(Ra.source.startOffset=wn $ 1(Ra,qa),Ra.source.endOffset=Vr(Ra,qa));for(let Ja in Ra){let ed=Ra[Ja];Ja==="source"||!ed||typeof ed!="object"||(ed.type==="value-root"||ed.type==="value-unknown"?gn $ 1(ed,ql $ 1(Ra),ed.text||ed.value):Gr(ed,qa))}}function gn $ 1(Ra,qa,Ja){Ra.source&&(Ra.source.startOffset=wn $ 1(Ra,Ja)+qa,Ra.source.endOffset=Vr(Ra,Ja)+qa);for(let ed in Ra){let td=Ra[ed];ed==="source"||!td||typeof td!="object"||gn $ 1(td,qa,Ja)}}function ql $ 1(Ra){var qa;let Ja=Ra.source.startOffset;return typeof Ra.prop=="string"&&(Ja+=Ra.prop.length),Ra.type==="css-atrule"&&typeof Ra.name=="string"&&(Ja+=1+Ra.name.length+Ra.raws.afterName.match(/^ \s *:? \s */u)[0].length),Ra.type!=="css-atrule"&&typeof((qa=Ra.raws)==null?void 0:qa.between)=="string"&&(Ja+=Ra.raws.between.length),Ja}function vn(Ra){let qa="initial",Ja="initial",ed,td=!1,rd=[];for(let od=0;od<Ra.length;od++){let sd=Ra[od];switch(qa){case"initial":if(sd==="'"){qa="single-quotes";continue}if(sd==='"'){qa="double-quotes";continue}if((sd==="u"||sd==="U")&&Ra.slice(od,od+4).toLowerCase()==="url("){qa="url",od+=3;continue}if(sd==="*"&&Ra[od-1]==="/"){qa="comment-block";continue}if(sd==="/"&&Ra[od-1]==="/"){qa="comment-inline",ed=od-1;continue}continue;case"single-quotes":if(sd==="'"&&Ra[od-1]!==" \\ "&&(qa=Ja,Ja="initial"),sd=== `
` ||sd===" \r ")return Ra;continue;case"double-quotes":if(sd==='"'&&Ra[od-1]!==" \\ "&&(qa=Ja,Ja="initial"),sd=== `
` ||sd===" \r ")return Ra;continue;case"url":if(sd===")"&&(qa="initial"),sd=== `
` ||sd===" \r ")return Ra;if(sd==="'"){qa="single-quotes",Ja="url";continue}if(sd==='"'){qa="double-quotes",Ja="url";continue}continue;case"comment-block":sd==="/"&&Ra[od-1]==="*"&&(qa="initial");continue;case"comment-inline":(sd==='"'||sd==="'"||sd==="*")&&(td=!0),(sd=== `
` ||sd===" \r ")&&(td&&rd.push([ed,od]),qa="initial",td=!1);continue}}for(let[od,sd]of rd)Ra=Ra.slice(0,od)+_ $ 1(!1,Ra.slice(od,sd),/["'*]/gu," ")+Ra.slice(sd);return Ra}function N(Ra){var qa;return(qa=Ra.source)==null?void 0:qa.startOffset}function P(Ra){var qa;return(qa=Ra.source)==null?void 0:qa.endOffset}var Ll $ 1=/ \* \/ $ /,Dl=/^ \/ \* \* ?/,kn=/^ \s *( \/ \* \* ?(.| \r ? \n )*? \* \/ )/,Ml=/(^| \s +) \/ \/ ([^ \n \r ]*)/g,xn=/^( \r ? \n )+/,Bl=/(?:^| \r ? \n ) *(@[^ \n \r ]*?) * \r ? \n *(?![^ \n \r @]* \/ \/ [^]*)([^ \s @][^ \n \r @]+?) * \r ? \n /g,bn $ 1=/(?:^| \r ? \n ) *@( \S +) *([^ \n \r ]*)/g,Ul=/( \r ? \n |^) * \* ?/g,En=[];function Sn(Ra){let qa=Ra.match(kn);return qa?qa[0].trimStart():""}function Tn $ 1(Ra){let qa=Ra.match(kn),Ja=qa==null?void 0:qa[0];return Ja==null?Ra:Ra.slice(Ja.length)}function On(Ra){let qa= `
` ;Ra=_ $ 1(!1,Ra.replace(Dl,"").replace(Ll $ 1,""),Ul," $ 1");let Ja="";for(;Ja!==Ra;)Ja=Ra,Ra=_ $ 1(!1,Ra,Bl, ` $ { qa } $1 $2$ { qa } ` );Ra=Ra.replace(xn,"").trimEnd();let ed=Object.create(null),td=_ $ 1(!1,Ra,bn $ 1,"").replace(xn,"").trimEnd(),rd;for(;rd=bn $ 1.exec(Ra);){let od=_ $ 1(!1,rd[2],Ml,"");if(typeof ed[rd[1]]=="string"||Array.isArray(ed[rd[1]])){let sd=ed[rd[1]];ed[rd[1]]=[...En,...Array.isArray(sd)?sd:[sd],od]}else ed[rd[1]]=od}return{comments:td,pragmas:ed}}function Cn $ 1({comments:Ra="",pragmas:qa={}}){let Ja= `
` ,ed="/**",td=" *",rd=" */",od=Object.keys(qa),sd=od.flatMap(cd=>_n $ 1(cd,qa[cd])).map(cd=> ` $ { td } $ { cd } $ { Ja } ` ).join("");if(!Ra){if(od.length===0)return"";if(od.length===1&&!Array.isArray(qa[od[0]])){let cd=qa[od[0]];return ` $ { ed } $ { _n$1 ( od [ 0 ] , cd ) [ 0 ] } $ { rd } ` }}let ld=Ra.split(Ja).map(cd=> ` $ { td } $ { cd } ` ).join(Ja)+Ja;return ed+Ja+(Ra?ld:"")+(Ra&&od.length>0?td+Ja:"")+sd+rd}function _n $ 1(Ra,qa){return[...En,...Array.isArray(qa)?qa:[qa]].map(Ja=> ` @ $ { Ra } $ { Ja } ` .trim())}function Fl $ 1(Ra){if(!Ra.startsWith("#!"))return"";let qa=Ra.indexOf( `
` );return qa===-1?Ra:Ra.slice(0,qa)}var An=Fl $ 1;function Nn(Ra){let qa=An(Ra);qa&&(Ra=Ra.slice(qa.length+1));let Ja=Sn(Ra),{pragmas:ed,comments:td}=On(Ja);return{shebang:qa,text:Ra,pragmas:ed,comments:td}}function Pn $ 1(Ra){let{pragmas:qa}=Nn(Ra);return Object.prototype.hasOwnProperty.call(qa,"prettier")||Object.prototype.hasOwnProperty.call(qa,"format")}function Rn(Ra){let{shebang:qa,text:Ja,pragmas:ed,comments:td}=Nn(Ra),rd=Tn $ 1(Ja),od=Cn $ 1({pragmas:{format:"",...ed},comments:td.trimStart()});return(qa? ` $ { qa }
` :"")+od+(rd.startsWith( `
` )? `
` : `
2024-08-27 22:31:52 +08:00
2024-08-30 15:19:18 +08:00
` )+rd}var Qe=3;function $ l(Ra){let qa=Ra.slice(0,Qe);if(qa!=="---"&&qa!=="+++")return;let Ja=Ra.indexOf( `
` ,Qe);if(Ja===-1)return;let ed=Ra.slice(Qe,Ja).trim(),td=Ra.indexOf( `
$ { qa } ` ,Ja),rd=ed;if(rd||(rd=qa==="+++"?"toml":"yaml"),td===-1&&qa==="---"&&rd==="yaml"&&(td=Ra.indexOf( `
... ` ,Ja)),td===-1)return;let od=td+1+Qe,sd=Ra.charAt(od+1);if(!/ \s ?/u.test(sd))return;let ld=Ra.slice(0,od);return{type:"front-matter",language:rd,explicitLanguage:ed,value:Ra.slice(Ja+1,td),startDelimiter:qa,endDelimiter:ld.slice(-Qe),raw:ld}}function Wl(Ra){let qa= $ l(Ra);if(!qa)return{content:Ra};let{raw:Ja}=qa;return{frontMatter:qa,content:_ $ 1(!1,Ja,/[^ \n ]/gu," ")+Ra.slice(Ja.length)}}var Je=Wl;function In(Ra){return Pn $ 1(Je(Ra).content)}function qn $ 1(Ra){let{frontMatter:qa,content:Ja}=Je(Ra);return(qa?qa.raw+ `
2024-08-31 11:28:56 +08:00
` :"")+Rn(Ja)}var Yl=new Set(["red","green","blue","alpha","a","rgb","hue","h","saturation","s","lightness","l","whiteness","w","blackness","b","tint","shade","blend","blenda","contrast","hsl","hsla","hwb","hwba"]);function Ln(Ra){var qa,Ja;return(Ja=(qa=Ra.findAncestor(ed=>ed.type==="css-decl"))==null?void 0:qa.prop)==null?void 0:Ja.toLowerCase()}var zl $ 1=new Set(["initial","inherit","unset","revert"]);function Dn $ 1(Ra){return zl $ 1.has(Ra.toLowerCase())}function Mn(Ra,qa){var Ja;let ed=Ra.findAncestor(td=>td.type==="css-atrule");return((Ja=ed==null?void 0:ed.name)==null?void 0:Ja.toLowerCase().endsWith("keyframes"))&&["from","to"].includes(qa.toLowerCase())}function te(Ra){return Ra.includes(" $ ")||Ra.includes("@")||Ra.includes("#")||Ra.startsWith("%")||Ra.startsWith("--")||Ra.startsWith(":--")||Ra.includes("(")&&Ra.includes(")")?Ra:Ra.toLowerCase()}function ke $ 1(Ra,qa){var Ja;let ed=Ra.findAncestor(td=>td.type==="value-func");return((Ja=ed==null?void 0:ed.value)==null?void 0:Ja.toLowerCase())===qa}function Bn $ 1(Ra){var qa;let Ja=Ra.findAncestor(td=>td.type==="css-rule"),ed=(qa=Ja==null?void 0:Ja.raws)==null?void 0:qa.selector;return ed&&(ed.startsWith(":import")||ed.startsWith(":export"))}function Ee(Ra,qa){let Ja=Array.isArray(qa)?qa:[qa],ed=Ra.findAncestor(td=>td.type==="css-atrule");return ed&&Ja.includes(ed.name.toLowerCase())}function Un(Ra){var qa;let{node:Ja}=Ra;return Ja.groups[0].value==="url"&&Ja.groups.length===2&&((qa=Ra.findAncestor(ed=>ed.type==="css-atrule"))==null?void 0:qa.name)==="import"}function Fn(Ra){return Ra.type==="value-func"&&Ra.value.toLowerCase()==="url"}function $ n $ 1(Ra){return Ra.type==="value-func"&&Ra.value.toLowerCase()==="var"}function Wn(Ra){let{selector:qa}=Ra;return qa?typeof qa=="string"&&/^@.+:.* $ /u.test(qa)||qa.value&&/^@.+:.* $ /u.test(qa.value):!1}function Yn $ 1(Ra){return Ra.type==="value-word"&&["from","through","end"].includes(Ra.value)}function zn(Ra){return Ra.type==="value-word"&&["and","or","not"].includes(Ra.value)}function Vn(Ra){return Ra.type==="value-word"&&Ra.value==="in"}function At $ 1(Ra){return Ra.type==="value-operator"&&Ra.value==="*"}function Xe(Ra){return Ra.type==="value-operator"&&Ra.value==="/"}function Q $ 1(Ra){return Ra.type==="value-operator"&&Ra.value==="+"}function le(Ra){return Ra.type==="value-operator"&&Ra.value==="-"}function Vl(Ra){return Ra.type==="value-operator"&&Ra.value==="%"}function Nt(Ra){return At $ 1(Ra)||Xe(Ra)||Q $ 1(Ra)||le(Ra)||Vl(Ra)}function Gn $ 1(Ra){return Ra.type==="value-word"&&["==","!="].includes(Ra.value)}function jn $ 1(Ra){return Ra.type==="value-word"&&["<",">","<=",">="].includes(Ra.value)}function Ze(Ra,qa){return qa.parser==="scss"&&Ra.type==="css-atrule"&&["if","else","for","each","while"].includes(Ra.name)}function Hr(Ra){var qa;return((qa=Ra.raws)==null?void 0:qa.params)&&/^ \( \s * \) $ /u.test(Ra.raws.params)}function Pt(Ra){return Ra.name.startsWith("prettier-placeholder")}function Hn(Ra){return Ra.prop.startsWith("@prettier-placeholder")}function Kn(Ra,qa){return Ra.value===" $ $ "&&Ra.type==="value-func"&&(qa==null?void 0:qa.type)==="value-word"&&!qa.raws.before}function Qn $ 1(Ra){var qa,Ja;return((qa=Ra.value)==null?void 0:qa.type)==="value-root"&&((Ja=Ra.value.group)==null?void 0:Ja.type)==="value-value"&&Ra.prop.toLowerCase()==="composes"}function Jn $ 1(Ra){var qa,Ja,ed;return((ed=(Ja=(qa=Ra.value)==null?void 0:qa.group)==null?void 0:Ja.group)==null?void 0:ed.type)==="value-paren_group"&&Ra.value.group.group.open!==null&&Ra.value.group.group.close!==null}function ce(Ra){var qa;return((qa=Ra.raws)==null?void 0:qa.before)===""}function Rt $ 1(Ra){var qa,Ja;return Ra.type==="value-comma_group"&&((Ja=(qa=Ra.groups)==null?void 0:qa[1])==null?void 0:Ja.type)==="value-colon"}function jr(Ra){var qa;return Ra.type==="value-paren_group"&&((qa=Ra.groups)==null?void 0:qa[0])&&Rt $ 1(Ra.groups[0])}function Kr(Ra,qa){var Ja;if(qa.parser!=="scss")return!1;let{node:ed}=Ra;if(ed.groups.length===0)return!1;let td=Ra.grandparent;if(!jr(ed)&&!(td&&jr(td)))return!1;let rd=Ra.findAncestor(od=>od.type==="css-decl");return!!((Ja=rd==null?void 0:rd.prop)!=n
2024-08-30 15:19:18 +08:00
` )return qa-2;if(td=== `
` ||td===" \r "||td===" \u 2028"||td===" \u 2029")return qa-1}else{if(td===" \r "&&Ra.charAt(qa+1)=== `
` )return qa+2;if(td=== `
2024-08-31 11:28:56 +08:00
` ||td===" \r "||td===" \u 2028"||td===" \u 2029")return qa+1}return qa}var Dt $ 1=Xl $ 1;function Zl(Ra,qa,Ja={}){let ed=Ot $ 1(Ra,Ja.backwards?qa-1:qa,Ja),td=Dt $ 1(Ra,ed,Ja);return ed!==td}var Mt=Zl;function ec $ 1(Ra,qa){if(qa===!1)return!1;if(Ra.charAt(qa)==="/"&&Ra.charAt(qa+1)==="*"){for(let Ja=qa+2;Ja<Ra.length;++Ja)if(Ra.charAt(Ja)==="*"&&Ra.charAt(Ja+1)==="/")return Ja+2}return qa}var ui=ec $ 1;function tc(Ra,qa){return qa===!1?!1:Ra.charAt(qa)==="/"&&Ra.charAt(qa+1)==="/"?Ct(Ra,qa):qa}var li $ 1=tc;function rc(Ra,qa){let Ja=null,ed=qa;for(;ed!==Ja;)Ja=ed,ed=yn(Ra,ed),ed=ui(Ra,ed),ed=Ot $ 1(Ra,ed);return ed=li $ 1(Ra,ed),ed=Dt $ 1(Ra,ed),ed!==!1&&Mt(Ra,ed)}var Bt $ 1=rc;function sc({node:Ra,parent:qa},Ja){return!!(Ra.source&&Ja.originalText.slice(N(Ra),N(qa.close)).trimEnd().endsWith(","))}function nc $ 1(Ra,qa){return $ n $ 1(Ra.grandparent)&&sc(Ra,qa)?",":Ra.node.type!=="value-comment"&&!(Ra.node.type==="value-comma_group"&&Ra.node.groups.every(Ja=>Ja.type==="value-comment"))&&ai $ 1(qa)&&Ra.callParent(()=>Kr(Ra,qa))?kt(","):""}function ci(Ra,qa,Ja){let{node:ed,parent:td}=Ra,rd=Ra.map(({node:gd})=>typeof gd=="string"?gd:Ja(),"groups");if(td&&Fn(td)&&(ed.groups.length===1||ed.groups.length>0&&ed.groups[0].type==="value-comma_group"&&ed.groups[0].groups.length>0&&ed.groups[0].groups[0].type==="value-word"&&ed.groups[0].groups[0].value.startsWith("data:")))return[ed.open?Ja("open"):"",V(",",rd),ed.close?Ja("close"):""];if(!ed.open){let gd=es(Ra),Ed=V([",",gd?E:A],rd);return q(gd?[E,Ed]:L(Ge(Ed)))}let od=Ra.map(({node:gd,isLast:Ed,index:Td})=>{var Id;let Ad=rd[Td];if(Rt $ 1(gd)&&gd.type==="value-comma_group"&&gd.groups&&gd.groups[0].type!=="value-paren_group"&&((Id=gd.groups[2])==null?void 0:Id.type)==="value-paren_group"){let{parts:kd}=Ad.contents.contents;kd[1]=L(kd[1]),Ad=L(ue(Ad))}let Nd=[Ad,Ed?nc $ 1(Ra,qa):","];if(!Ed&&gd.type==="value-comma_group"&&ee(gd.groups)){let kd=G(!1,gd.groups,-1);!kd.source&&kd.close&&(kd=kd.close),kd.source&&Bt $ 1(qa.originalText,P(kd))&&Nd.push(E)}return Nd},"groups"),sd=Xn $ 1(ed,td),ld=ti $ 1(ed,td),cd=Kr(Ra,qa),ud=ld||cd&&!sd,_d=ld||sd,yd=L([ed.open?Ja("open"):"",q([M,V(A,od)]),M,ed.close?Ja("close"):""],{shouldBreak:ud});return _d?ue(yd):yd}function es(Ra){return Ra.match(qa=>qa.type==="value-paren_group"&&!qa.open&&qa.groups.some(Ja=>Ja.type==="value-comma_group"),(qa,Ja)=>Ja==="group"&&qa.type==="value-value",(qa,Ja)=>Ja==="group"&&qa.type==="value-root",(qa,Ja)=>Ja==="value"&&(qa.type==="css-decl"&&!qa.prop.startsWith("--")||qa.type==="css-atrule"&&qa.variable))}function ic(Ra,qa,Ja){let ed=[];return Ra.each(()=>{let{node:td,previous:rd}=Ra;if((rd==null?void 0:rd.type)==="css-comment"&&rd.text.trim()==="prettier-ignore"?ed.push(qa.originalText.slice(N(td),P(td))):ed.push(Ja()),Ra.isLast)return;let{next:od}=Ra;od.type==="css-comment"&&!Mt(qa.originalText,N(od),{backwards:!0})&&!_e(td)||od.type==="css-atrule"&&od.name==="else"&&td.type!=="css-comment"?ed.push(" "):(ed.push(qa.__isHTMLStyleAttribute?A:E),Bt $ 1(qa.originalText,P(td))&&!_e(td)&&ed.push(E))},"nodes"),ed}var Te=ic;function oc $ 1(Ra,qa,Ja){var ed,td,rd,od,sd,ld;let{node:cd}=Ra;switch(cd.type){case"front-matter":return[cd.raw,E];case"css-root":{let ud=Te(Ra,qa,Ja),_d=cd.raws.after.trim();return _d.startsWith(";")&&(_d=_d.slice(1).trim()),[cd.frontMatter?[Ja("frontMatter"),E]:"",ud,_d? ` $ { _d } ` :"",cd.nodes.length>0?E:""]}case"css-comment":{let ud=cd.inline||cd.raws.inline,_d=qa.originalText.slice(N(cd),P(cd));return ud?_d.trimEnd():_d}case"css-rule":return[Ja("selector"),cd.important?" !important":"",cd.nodes?[((ed=cd.selector)==null?void 0:ed.type)==="selector-unknown"&&Se(cd.selector.value)?A:cd.selector?" ":"","{",cd.nodes.length>0?q([E,Te(Ra,qa,Ja)]):"",E,"}",Wn(cd)?";":""]:";"];case"css-decl":{let ud=Ra.parent,{between:_d}=cd.raws,yd=_d.trim(),gd=yd===":",Ed=typeof cd.value=="string"&&/^ * $ /u.test(cd.value),Td=typeof cd.value=="string"?cd.value:Ja("value");return Td=Qn $ 1(cd)?rn(Td):Td,!gd&&Se(yd)&&!((rd=(td=cd.value)==null?void 0:td.group)!=null&&rd.group&&Ra.call(()=>es(Ra),"value","group","group"))&&(Td=q([E,ue(Td)])),[_ $ 1(!1,cd.raws.before,/[ \s ;]/gu,"")
2024-08-30 15:19:18 +08:00
` }return ed}function toBase64(Ra){return new Promise((qa,Ja)=>{const ed=new FileReader;ed.readAsDataURL(Ra),ed.onload=()=>qa(ed.result.split(",").pop()),ed.onerror=td=>Ja(td)})}function checkImage(Ra){if(!/ \. (?:gif|jpe?g|png) $ /i.test(Ra.name))return{ok:!1,msg:"请上传 JPG/PNG/GIF 格式的图片"};const Ja=10;return Ra.size>Ja*1024*1024?{ok:!1,msg: ` 由于公众号限制 , 图片大小不能超过 $ { Ja } M ` }:{ok:!0}}function removeLeft(Ra){const qa=Ra.split( `
` ),Ja=qa.filter(ed=>ed.trim()).map(ed=>ed.match(/(^ \s +)?/)[0].length).sort((ed,td)=>ed-td)[0];return qa.map(ed=>ed.slice(Ja)).join( `
2024-08-31 15:27:49 +08:00
` )}function solveWeChatImage(){const qa=document.getElementById("output").getElementsByTagName("img");for(let Ja=0;Ja<qa.length;Ja++){const ed=qa[Ja],td=ed.getAttribute("width"),rd=ed.getAttribute("height");ed.removeAttribute("width"),ed.removeAttribute("height"),ed.style.width=td,ed.style.height=rd}}function mergeCss(Ra){return juice(Ra,{inlinePseudoElements:!0,preserveImportant:!0})}const useStore=defineStore("store",()=>{const Ra=useDark(),qa=useToggle(Ra),Ja=useStorage("isMacCodeBlock",!0),ed=useToggle(Ja),td=useStorage("isEditOnLeft",!0),rd=useToggle(td),od=useStorage("isCiteStatus",!1),sd=useToggle(od),ld=ref $ 1(""),cd=useStorage(addPrefix("theme"),themeOptions[0].value),ud=useStorage("fonts",fontFamilyOptions[0].value),_d=useStorage("size",fontSizeOptions[2].value),yd=useStorage("color",colorOptions[0].value),gd=useStorage("codeBlockTheme",codeBlockThemeOptions[23].value),Ed=useStorage("legend",legendOptions[3].value),Td=_d.value.replace("px",""),Id=new WxRenderer({theme:customizeTheme(themeMap[cd.value],{fontSize:Td,color:yd.value}),fonts:ud.value,size:_d.value}),Ad=ref $ 1(null),Nd=useStorage("__editor_content",DEFAULT_CONTENT),kd=()=>{formatDoc(Ad.value.getValue()).then(Cf=>{Nd.value=Cf,Ad.value.setValue(Cf)})},Rd=()=>{const Cf=gd.value,Af=document.querySelector("#hljs");if(Af)Af.setAttribute("href",Cf);else{const Ff=document.createElement("link");Ff.setAttribute("type","text/css"),Ff.setAttribute("rel","stylesheet"),Ff.setAttribute("href",Cf),Ff.setAttribute("id","hljs"),document.head.appendChild(Ff)}},Md=()=>{Rd();const Cf=Id;Cf.reset(),Cf.setOptions({status:od.value,legend:Ed.value}),marked $ 1.setOptions({renderer:Cf});let Af=marked $ 1.parse(Ad.value.getValue(0));Af=Af.replace(/(style=".*?)"/,' $ 1;margin-top: 0"'),od.value&&(Af+=Id.buildFootnotes(),Af+=Id.buildAddition()),Ja.value&&(Af+= `
2024-08-27 22:31:52 +08:00
< style >
. hljs . code _ _pre : : before {
position : initial ;
padding : initial ;
content : '' ;
display : block ;
height : 25 px ;
background - color : transparent ;
background - image : url ( "https://doocs.oss-cn-shenzhen.aliyuncs.com/img/123.svg" ) ;
background - position : 14 px 10 px ! important ;
background - repeat : no - repeat ;
background - size : 40 px ! important ;
}
. hljs . code _ _pre {
padding : 0 ! important ;
}
. hljs . code _ _pre code {
display : - webkit - box ;
padding : 0.5 em 1 em 1 em ;
overflow - x : auto ;
text - indent : 0 ;
}
< / s t y l e >
2024-08-31 11:28:56 +08:00
` ),ld.value=Af},Bd=ref $ 1(null),jd=Cf=>{Bd.value.setValue(Cf)},Vd=useStorage("__css_content",DEFAULT_CSS_CONTENT),Fd=useStorage(addPrefix("css_content_config"),{active:"方案1",tabs:[{title:"方案1",name:"方案1",content:Vd.value||DEFAULT_CSS_CONTENT}]});onMounted(()=>{Vd.value=""});const Ud=()=>Fd.value.tabs.find(Cf=>Cf.name===Fd.value.active),qd=Cf=>{Fd.value.active=Cf;const Af=Fd.value.tabs.find(Ff=>Ff.name===Cf).content;jd(Af)},Wd=Cf=>{const Af=Ud();Af.title=Cf,Af.name=Cf,Fd.value.active=Cf},Qd=Cf=>{Fd.value.tabs.push({name:Cf,title:Cf,content:DEFAULT_CSS_CONTENT}),Fd.value.active=Cf,jd(DEFAULT_CSS_CONTENT)},Zd=Cf=>Fd.value.tabs.every(({name:Af})=>Af!==Cf),Xd=()=>{const Cf=css2json(Bd.value.getValue()),Af=customCssWithTemplate(Cf,yd.value,customizeTheme(themeMap[cd.value],{fontSize:Td,color:yd.value}));Id.setOptions({theme:Af}),Md()};onMounted(()=>{const Cf=document.querySelector("#cssEditor");Cf.value=Ud().content,Bd.value=markRaw(CodeMirror.fromTextArea(Cf,{mode:"css",theme:"style-mirror",lineNumbers:!1,lineWrapping:!0,matchBrackets:!0,autofocus:!0,extraKeys:{[ ` $ { shiftKey } - $ { altKey } - F ` ]:function(Ff){formatDoc(Ff.getValue(),"css").then(ph=>{Ud().content=ph,Ff.setValue(ph)})}}})),Bd.value.on("keyup",(Af,Ff)=>{(Ff.keyCode>=65&&Ff.keyCode<=90||Ff.keyCode===189)&&Af.showHint(Ff)}),Bd.value.on("update",()=>{Xd(),Ud().content=Bd.value.getValue()})});const df=()=>{od.value=!1,Ja.value=!0,cd.value=themeOptions[0].value,ud.value=fontFamilyOptions[0].value,ud.value=fontFamilyOptions[0].value,_d.value=fontSizeOptions[2].value,yd.value=colorOptions[0].value,gd.value=codeBlockThemeOptions[2].value,Ed.value=legendOptions[3].value,Fd.value={active:"方案 1",tabs:[{title:"方案 1",name:"方案 1",content:Vd.value||DEFAULT_CSS_CONTENT}]},Bd.value.setValue(DEFAULT_CSS_CONTENT),Xd(),Md()},hf=Cf=>(...Af)=>{Cf(...Af),Md()},gf=(Cf,Af)=>{const Ff=themeMap[cd.value],ph=Cf.replace("px","");return customizeTheme(Ff,{fontSize:ph,color:Af})},Ef=hf(Cf=>{Id.setOptions({theme:customizeTheme(themeMap[Cf],{fontSize:Td,color:yd.value})}),cd.value=Cf}),wf=hf(Cf=>{Id.setOptions({fonts:Cf}),ud.value=Cf}), $ f=hf(Cf=>{const Af=gf(Cf,yd.value);Id.setOptions({size:Cf,theme:Af}),_d.value=Cf}),Tf=hf(Cf=>{const Af=gf(_d.value,Cf);Id.setOptions({theme:Af}),yd.value=Cf}),bf=hf(Cf=>{gd.value=Cf}),Sf=hf(Cf=>{Ed.value=Cf}),Lf=hf(()=>{ed()}),Pf=hf(()=>{sd()}),_f=()=>{exportHTML(),document.querySelector("#output").innerHTML=ld.value},yf=()=>{downloadMD(Ad.value.getValue())},Bf=()=>{const Cf=document.body,Af=document.createElement("input");Af.type="file",Af.name="filename",Af.accept=".md",Af.onchange=()=>{const Ff=Af.files[0];if(!Ff)return;const ph=new FileReader;ph.readAsText(Ff),ph.onload=Dh=>{Ad.value.setValue(Dh.target.result),ElMessage.success("文档导入成功")}},Cf.appendChild(Af),Af.click(),Cf.removeChild(Af)},zf=()=>{ElMessageBox.confirm("此操作将丢失本地自定义样式,是否继续?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning",center:!0}).then(()=>{df(),ElMessage({type:"success",message:"样式重置成功~"})}).catch(()=>{Ad.value.focus()})},Yf=ref $ 1(!1),jf=useToggle(Yf),Of=ref $ 1(!1),Zf=useToggle(Of),yh=ref $ 1(!1),Wf=useToggle(yh);return{isShowCssEditor:Yf,toggleShowCssEditor:jf,isShowInsertFormDialog:Of,toggleShowInsertFormDialog:Zf,isShowUploadImgDialog:yh,toggleShowUploadImgDialog:Wf,isDark:Ra,toggleDark:qa,isEditOnLeft:td,toggleEditOnLeft:rd,isMacCodeBlock:Ja,isCiteStatus:od,citeStatusChanged:Pf,output:ld,editor:Ad,cssEditor:Bd,theme:cd,fontFamily:ud,fontSize:_d,fontColor:yd,codeBlockTheme:gd,legend:Ed,editorRefresh:Md,themeChanged:Ef,fontChanged:wf,sizeChanged: $ f,colorChanged:Tf,codeBlockThemeChanged:bf,legendChanged:Sf,macCodeBlockChanged:Lf,formatContent:kd,exportEditorContent2HTML:_f,exportEditorContent2MD:yf,importMarkdownContent:Bf,resetStyleConfirm:zf,editorContent:Nd,cssContentConfig:Fd,addCssContentTab:Qd,validatorTabName:Zd,setCssEditorValue:jd,tabChanged:qd,renameTab:Wd}}),Store=createPinia(),ElementPlus={install(Ra){Ra.use(installer,{size:"default"}),Ra.config.globalProperties. $ loadi
2024-08-27 22:31:52 +08:00
( c ) 2012 by Cédric Mesnil . All rights reserved .
Redistribution and use in source and binary forms , with or without modification , are permitted provided that the following conditions are met :
- Redistributions of source code must retain the above copyright notice , this list of conditions and the following disclaimer .
- Redistributions in binary form must reproduce the above copyright notice , this list of conditions and the following disclaimer in the documentation and / or other materials provided with the distribution .
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES , INCLUDING , BUT NOT LIMITED TO , THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED . IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT , INDIRECT , INCIDENTAL , SPECIAL , EXEMPLARY , OR CONSEQUENTIAL DAMAGES ( INCLUDING , BUT NOT LIMITED TO , PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES ; LOSS OF USE , DATA , OR PROFITS ; OR BUSINESS INTERRUPTION ) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY , WHETHER IN CONTRACT , STRICT LIABILITY , OR TORT ( INCLUDING NEGLIGENCE OR OTHERWISE ) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE , EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE .
2024-08-31 11:28:56 +08:00
* / r e t u r n f u n c t i o n ( e d ) { v a r t d = J a , r d = t d . l i b , o d = r d . W o r d A r r a y , s d = r d . H a s h e r , l d = t d . a l g o , c d = o d . c r e a t e ( [ 0 , 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 , 9 , 1 0 , 1 1 , 1 2 , 1 3 , 1 4 , 1 5 , 7 , 4 , 1 3 , 1 , 1 0 , 6 , 1 5 , 3 , 1 2 , 0 , 9 , 5 , 2 , 1 4 , 1 1 , 8 , 3 , 1 0 , 1 4 , 4 , 9 , 1 5 , 8 , 1 , 2 , 7 , 0 , 6 , 1 3 , 1 1 , 5 , 1 2 , 1 , 9 , 1 1 , 1 0 , 0 , 8 , 1 2 , 4 , 1 3 , 3 , 7 , 1 5 , 1 4 , 5 , 6 , 2 , 4 , 0 , 5 , 9 , 7 , 1 2 , 2 , 1 0 , 1 4 , 1 , 3 , 8 , 1 1 , 6 , 1 5 , 1 3 ] ) , u d = o d . c r e a t e ( [ 5 , 1 4 , 7 , 0 , 9 , 2 , 1 1 , 4 , 1 3 , 6 , 1 5 , 8 , 1 , 1 0 , 3 , 1 2 , 6 , 1 1 , 3 , 7 , 0 , 1 3 , 5 , 1 0 , 1 4 , 1 5 , 8 , 1 2 , 4 , 9 , 1 , 2 , 1 5 , 5 , 1 , 3 , 7 , 1 4 , 6 , 9 , 1 1 , 8 , 1 2 , 2 , 1 0 , 0 , 4 , 1 3 , 8 , 6 , 4 , 1 , 3 , 1 1 , 1 5 , 0 , 5 , 1 2 , 2 , 1 3 , 9 , 7 , 1 0 , 1 4 , 1 2 , 1 5 , 1 0 , 4 , 1 , 5 , 8 , 7 , 6 , 2 , 1 3 , 1 4 , 0 , 3 , 9 , 1 1 ] ) , _ d = o d . c r e a t e ( [ 1 1 , 1 4 , 1 5 , 1 2 , 5 , 8 , 7 , 9 , 1 1 , 1 3 , 1 4 , 1 5 , 6 , 7 , 9 , 8 , 7 , 6 , 8 , 1 3 , 1 1 , 9 , 7 , 1 5 , 7 , 1 2 , 1 5 , 9 , 1 1 , 7 , 1 3 , 1 2 , 1 1 , 1 3 , 6 , 7 , 1 4 , 9 , 1 3 , 1 5 , 1 4 , 8 , 1 3 , 6 , 5 , 1 2 , 7 , 5 , 1 1 , 1 2 , 1 4 , 1 5 , 1 4 , 1 5 , 9 , 8 , 9 , 1 4 , 5 , 6 , 8 , 6 , 5 , 1 2 , 9 , 1 5 , 5 , 1 1 , 6 , 8 , 1 3 , 1 2 , 5 , 1 2 , 1 3 , 1 4 , 1 1 , 8 , 5 , 6 ] ) , y d = o d . c r e a t e ( [ 8 , 9 , 9 , 1 1 , 1 3 , 1 5 , 1 5 , 5 , 7 , 7 , 8 , 1 1 , 1 4 , 1 4 , 1 2 , 6 , 9 , 1 3 , 1 5 , 7 , 1 2 , 8 , 9 , 1 1 , 7 , 7 , 1 2 , 7 , 6 , 1 5 , 1 3 , 1 1 , 9 , 7 , 1 5 , 1 1 , 8 , 6 , 6 , 1 4 , 1 2 , 1 3 , 5 , 1 4 , 1 3 , 1 3 , 7 , 5 , 1 5 , 5 , 8 , 1 1 , 1 4 , 1 4 , 6 , 1 4 , 6 , 9 , 1 2 , 9 , 1 2 , 5 , 1 5 , 8 , 8 , 5 , 1 2 , 9 , 1 2 , 5 , 1 4 , 6 , 8 , 1 3 , 6 , 5 , 1 5 , 1 3 , 1 1 , 1 1 ] ) , g d = o d . c r e a t e ( [ 0 , 1 5 1 8 5 0 0 2 4 9 , 1 8 5 9 7 7 5 3 9 3 , 2 4 0 0 9 5 9 7 0 8 , 2 8 4 0 8 5 3 8 3 8 ] ) , E d = o d . c r e a t e ( [ 1 3 5 2 8 2 9 9 2 6 , 1 5 4 8 6 0 3 6 8 4 , 1 8 3 6 0 7 2 6 9 1 , 2 0 5 3 9 9 4 2 1 7 , 0 ] ) , T d = l d . R I P E M D 1 6 0 = s d . e x t e n d ( { _ d o R e s e t : f u n c t i o n ( ) { t h i s . _ h a s h = o d . c r e a t e ( [ 1 7 3 2 5 8 4 1 9 3 , 4 0 2 3 2 3 3 4 1 7 , 2 5 6 2 3 8 3 1 0 2 , 2 7 1 7 3 3 8 7 8 , 3 2 8 5 3 7 7 5 2 0 ] ) } , _ d o P r o c e s s B l o c k : f u n c t i o n ( B d , j d ) { f o r ( v a r V d = 0 ; V d < 1 6 ; V d + + ) { v a r F d = j d + V d , U d = B d [ F d ] ; B d [ F d ] = ( U d < < 8 | U d > > > 2 4 ) & 1 6 7 1 1 9 3 5 | ( U d < < 2 4 | U d > > > 8 ) & 4 2 7 8 2 5 5 3 6 0 } v a r q d = t h i s . _ h a s h . w o r d s , W d = g d . w o r d s , Q d = E d . w o r d s , Z d = c d . w o r d s , X d = u d . w o r d s , d f = _ d . w o r d s , h f = y d . w o r d s , g f , E f , w f , $ f , T f , b f , S f , L f , P f , _ f ; b f = g f = q d [ 0 ] , S f = E f = q d [ 1 ] , L f = w f = q d [ 2 ] , P f = $ f = q d [ 3 ] , _ f = T f = q d [ 4 ] ; f o r ( v a r y f , V d = 0 ; V d < 8 0 ; V d + = 1 ) y f = g f + B d [ j d + Z d [ V d ] ] | 0 , V d < 1 6 ? y f + = I d ( E f , w f , $ f ) + W d [ 0 ] : V d < 3 2 ? y f + = A d ( E f , w f , $ f ) + W d [ 1 ] : V d < 4 8 ? y f + = N d ( E f , w f , $ f ) + W d [ 2 ] : V d < 6 4 ? y f + = k d ( E f , w f , $ f ) + W d [ 3 ] : y f + = R d ( E f , w f , $ f ) + W d [ 4 ] , y f = y f | 0 , y f = M d ( y f , d f [ V d ] ) , y f = y f + T f | 0 , g f = T f , T f = $ f , $ f = M d ( w f , 1 0 ) , w f = E f , E f = y f , y f = b f + B d [ j d + X d [ V d ] ] | 0 , V d < 1 6 ? y f + = R d ( S f , L f , P f ) + Q d [ 0 ] : V d < 3 2 ? y f + = k d ( S f , L f , P f ) + Q d [ 1 ] : V d < 4 8 ? y f + = N d ( S f , L f , P f ) + Q d [ 2 ] : V d < 6 4 ? y f + = A d ( S f , L f , P f ) + Q d [ 3 ] : y f + = I d ( S f , L f , P f ) + Q d [ 4 ] , y f = y f | 0 , y f = M d ( y f , h f [ V d ] ) , y f = y f + _ f | 0 , b f = _ f , _ f = P f , P f = M d ( L f , 1 0 ) , L f = S f , S f = y f ; y f = q d [ 1 ] + w f + P f | 0 , q d [ 1 ] = q d [ 2 ] + $ f + _ f | 0 , q d [ 2 ] = q d [ 3 ] + T f + b f | 0 , q d [ 3 ] = q d [ 4 ] + g f + S f | 0 , q d [ 4 ] = q d [ 0 ] + E f + L f | 0 , q d [ 0 ] = y f } , _ d o F i n a l i z e : f u n c t i o n ( ) { v a r B d = t h i s . _ d a t a , j d = B d . w o r d s , V d = t h i s . _ n D a t a B y t e s * 8 , F d = B d . s i g B y t e s * 8 ; j d [ F d > > > 5 ] | = 1 2 8 < < 2 4 - F d % 3 2 , j d [ ( F d + 6 4 > > > 9 < < 4 ) + 1 4 ] = ( V d < < 8 | V d > > > 2 4 ) & 1 6 7 1 1 9 3 5 | ( V d < < 2 4 | V d > > > 8 ) & 4 2 7 8 2 5 5 3 6 0 , B d . s i g B y t e s = ( j d . l e n g t h + 1 ) * 4 , t h i s . _ p r o c e s s ( ) ; f o r ( v a r U d = t h i s . _ h a s h , q d = U d . w o r d s , W d = 0 ; W d < 5 ; W d + + ) { v a r Q d = q d [ W d ] ; q d [ W d ] = ( Q d < < 8 | Q d > > > 2 4 ) & 1 6 7 1 1 9 3 5 | ( Q d < < 2 4 | Q d > > > 8 ) & 4 2 7 8 2 5 5 3 6 0 } r e t u r n U d } , c l o n e : f u n c t i o n ( ) { v a r B d = s d . c l o n e . c a l l ( t h i s ) ; r e t u r n B d . _ h a s h = t h i s . _ h a s h . c l o n e ( ) , B d } } ) ; f u n c t i o n I d ( B d , j d , V d ) { r e t u r n B d ^ j d ^ V d } f u n c t i o n A d ( B d , j d , V d ) { r e t u r n B d & j d | ~ B d & V d } f u n c t i o n N d ( B d , j d , V d ) { r e t u r n ( B d | ~ j d ) ^ V d } f u n c t i o n k d ( B d , j d , V d ) { r e t u r n B d & V d | j d & ~ V d } f u n c t i o n R d ( B d , j d , V d ) { r e t u r n B d ^ ( j d | ~ V d ) } f u n c t i o n M d ( B d , j d ) { r e t u r n B d < < j d | B d > > > 3 2 - j d } t d . R I P E M D 1 6 0 = s d . _ c r e a t e H e l p e r ( T d ) , t d . H m a c R I P E M D 1 6 0 = s d . _ c r e a t e H m a c H e l p e r ( T d ) } ( ) , J a . R I P E M D 1 6 0 } ) } ( r i p e m d 1 6 0 ) ) , r i p e m d 1 6 0 . e x p o r t s } v a r h m a c = { e x p o r t s : { } } , h a s R e q u i r e d H m a c ; f u n c t i o n r e q u i r e H m a c ( ) { r e t u r n h a s R e q u i r e d H m a c | | ( h a s R e q u i r e d H m a c = 1 , f u n c t i o n ( R a , q a ) { ( f u n c t i o n ( J a , e d ) { R a . e x p o r t s = e d ( r e q u i r e C o r e ( ) ) } ) ( c o m m o n j s G l o b a l , f u n c t i o n ( J a ) { ( f u n c t i o n ( ) { v a r e d = J a , t d = e d . l i b , r d = t d . B a s e , o d = e d . e n c , s d = o d . U t f 8 , l d = e d . a l g o ; l d . H M A C = r d . e x t e n d ( { i n i t : f u n c t i o n ( c d , u d ) { c d = t h i s . _ h a s h e r = n e w c d . i n i t , t y p e o f u d = = " s t r i n g " & & ( u d = s d . p a r s e ( u d ) ) ; v a r _ d = c d . b l o c k S i z e , y d = _ d * 4 ; u d . s i g B y t e s > y d & & ( u d = c d . f i n a l i z e ( u d ) ) , u d . c l a m p ( ) ; f o r ( v a r g d = t h i s . _ o K e y = u d . c l o n e ( ) , E d = t h i s . _ i K e y = u d . c l o n e ( ) , T d = g d . w o r d s , I d = E d . w o r d s , A d = 0 ; A d < _ d ; A d + + ) T d [ A d ] ^ = 1 5 4 9 5 5 6 8 2 8 , I d [ A d ] ^ = 9 0 9 5 2 2 4 8 6 ; g d . s i g B y t e s = E d . s i g B y t e s = y d , t h i s . r e s e t ( ) } , r e s e t : f u n c t i o n ( ) { v a r c d = t h i s . _ h a s h e r ; c d . r e s e t ( ) , c d . u p d a t e ( t h i s . _ i K e y ) } , u p d a t e : f u n c t i o n ( c d ) { r e t u r n t h i s . _ h a s h e r . u p d a t e ( c d ) , t h i s } , f i n a l i z e : f u n c t i o n ( c d ) { v a r u d = t h i s . _ h a s h e r , _ d = u d . f i n a l i z e ( c d ) ; u d . r e s e t ( ) ; v a r y d = u d . f i n a l i z e ( t h i s . _ o K e y . c l o n e ( ) . c o n c a t ( _ d ) ) ; r e t u r n y d } } ) } ) ( ) } ) } ( h m a c ) ) , h m a c . e x p o r t s } v a r p b k d f 2 = { e x p o r t s : { } } , h a s R e q u i r e d P b k d f 2 ; f u n c t i o n r e q u i r e P b k d f 2 ( ) { r e t u r n h a s R e q u i r e d P b k d f 2 | | ( h a s R e q u i r e d P b k d f 2 = 1 , f u n c t i o n ( R a , q a ) { ( f u n c t i o n ( J a , e d , t d ) { R a . e x p o r t s = e d ( r e q u i r e C o r e ( ) , r e q u i r e S h a 2 5 6 ( ) , r e q u i r e H m a c ( ) ) } ) ( c o m m o n j s G l o b a l , f u n c t i o n ( J a ) { r e t u
2024-08-27 22:31:52 +08:00
* Counter block mode compatible with Dr Brian Gladman fileenc . c
* derived from CryptoJS . mode . CTR
* Jan Hruby jhruby . web @ gmail . com
2024-08-31 11:28:56 +08:00
* / r e t u r n J a . m o d e . C T R G l a d m a n = f u n c t i o n ( ) { v a r e d = J a . l i b . B l o c k C i p h e r M o d e . e x t e n d ( ) ; f u n c t i o n t d ( s d ) { i f ( ( s d > > 2 4 & 2 5 5 ) = = = 2 5 5 ) { v a r l d = s d > > 1 6 & 2 5 5 , c d = s d > > 8 & 2 5 5 , u d = s d & 2 5 5 ; l d = = = 2 5 5 ? ( l d = 0 , c d = = = 2 5 5 ? ( c d = 0 , u d = = = 2 5 5 ? u d = 0 : + + u d ) : + + c d ) : + + l d , s d = 0 , s d + = l d < < 1 6 , s d + = c d < < 8 , s d + = u d } e l s e s d + = 1 < < 2 4 ; r e t u r n s d } f u n c t i o n r d ( s d ) { r e t u r n ( s d [ 0 ] = t d ( s d [ 0 ] ) ) = = = 0 & & ( s d [ 1 ] = t d ( s d [ 1 ] ) ) , s d } v a r o d = e d . E n c r y p t o r = e d . e x t e n d ( { p r o c e s s B l o c k : f u n c t i o n ( s d , l d ) { v a r c d = t h i s . _ c i p h e r , u d = c d . b l o c k S i z e , _ d = t h i s . _ i v , y d = t h i s . _ c o u n t e r ; _ d & & ( y d = t h i s . _ c o u n t e r = _ d . s l i c e ( 0 ) , t h i s . _ i v = v o i d 0 ) , r d ( y d ) ; v a r g d = y d . s l i c e ( 0 ) ; c d . e n c r y p t B l o c k ( g d , 0 ) ; f o r ( v a r E d = 0 ; E d < u d ; E d + + ) s d [ l d + E d ] ^ = g d [ E d ] } } ) ; r e t u r n e d . D e c r y p t o r = o d , e d } ( ) , J a . m o d e . C T R G l a d m a n } ) } ( m o d e C t r G l a d m a n ) ) , m o d e C t r G l a d m a n . e x p o r t s } v a r m o d e O f b = { e x p o r t s : { } } , h a s R e q u i r e d M o d e O f b ; f u n c t i o n r e q u i r e M o d e O f b ( ) { r e t u r n h a s R e q u i r e d M o d e O f b | | ( h a s R e q u i r e d M o d e O f b = 1 , f u n c t i o n ( R a , q a ) { ( f u n c t i o n ( J a , e d , t d ) { R a . e x p o r t s = e d ( r e q u i r e C o r e ( ) , r e q u i r e C i p h e r C o r e ( ) ) } ) ( c o m m o n j s G l o b a l , f u n c t i o n ( J a ) { r e t u r n J a . m o d e . O F B = f u n c t i o n ( ) { v a r e d = J a . l i b . B l o c k C i p h e r M o d e . e x t e n d ( ) , t d = e d . E n c r y p t o r = e d . e x t e n d ( { p r o c e s s B l o c k : f u n c t i o n ( r d , o d ) { v a r s d = t h i s . _ c i p h e r , l d = s d . b l o c k S i z e , c d = t h i s . _ i v , u d = t h i s . _ k e y s t r e a m ; c d & & ( u d = t h i s . _ k e y s t r e a m = c d . s l i c e ( 0 ) , t h i s . _ i v = v o i d 0 ) , s d . e n c r y p t B l o c k ( u d , 0 ) ; f o r ( v a r _ d = 0 ; _ d < l d ; _ d + + ) r d [ o d + _ d ] ^ = u d [ _ d ] } } ) ; r e t u r n e d . D e c r y p t o r = t d , e d } ( ) , J a . m o d e . O F B } ) } ( m o d e O f b ) ) , m o d e O f b . e x p o r t s } v a r m o d e E c b = { e x p o r t s : { } } , h a s R e q u i r e d M o d e E c b ; f u n c t i o n r e q u i r e M o d e E c b ( ) { r e t u r n h a s R e q u i r e d M o d e E c b | | ( h a s R e q u i r e d M o d e E c b = 1 , f u n c t i o n ( R a , q a ) { ( f u n c t i o n ( J a , e d , t d ) { R a . e x p o r t s = e d ( r e q u i r e C o r e ( ) , r e q u i r e C i p h e r C o r e ( ) ) } ) ( c o m m o n j s G l o b a l , f u n c t i o n ( J a ) { r e t u r n J a . m o d e . E C B = f u n c t i o n ( ) { v a r e d = J a . l i b . B l o c k C i p h e r M o d e . e x t e n d ( ) ; r e t u r n e d . E n c r y p t o r = e d . e x t e n d ( { p r o c e s s B l o c k : f u n c t i o n ( t d , r d ) { t h i s . _ c i p h e r . e n c r y p t B l o c k ( t d , r d ) } } ) , e d . D e c r y p t o r = e d . e x t e n d ( { p r o c e s s B l o c k : f u n c t i o n ( t d , r d ) { t h i s . _ c i p h e r . d e c r y p t B l o c k ( t d , r d ) } } ) , e d } ( ) , J a . m o d e . E C B } ) } ( m o d e E c b ) ) , m o d e E c b . e x p o r t s } v a r p a d A n s i x 9 2 3 = { e x p o r t s : { } } , h a s R e q u i r e d P a d A n s i x 9 2 3 ; f u n c t i o n r e q u i r e P a d A n s i x 9 2 3 ( ) { r e t u r n h a s R e q u i r e d P a d A n s i x 9 2 3 | | ( h a s R e q u i r e d P a d A n s i x 9 2 3 = 1 , f u n c t i o n ( R a , q a ) { ( f u n c t i o n ( J a , e d , t d ) { R a . e x p o r t s = e d ( r e q u i r e C o r e ( ) , r e q u i r e C i p h e r C o r e ( ) ) } ) ( c o m m o n j s G l o b a l , f u n c t i o n ( J a ) { r e t u r n J a . p a d . A n s i X 9 2 3 = { p a d : f u n c t i o n ( e d , t d ) { v a r r d = e d . s i g B y t e s , o d = t d * 4 , s d = o d - r d % o d , l d = r d + s d - 1 ; e d . c l a m p ( ) , e d . w o r d s [ l d > > > 2 ] | = s d < < 2 4 - l d % 4 * 8 , e d . s i g B y t e s + = s d } , u n p a d : f u n c t i o n ( e d ) { v a r t d = e d . w o r d s [ e d . s i g B y t e s - 1 > > > 2 ] & 2 5 5 ; e d . s i g B y t e s - = t d } } , J a . p a d . A n s i x 9 2 3 } ) } ( p a d A n s i x 9 2 3 ) ) , p a d A n s i x 9 2 3 . e x p o r t s } v a r p a d I s o 1 0 1 2 6 = { e x p o r t s : { } } , h a s R e q u i r e d P a d I s o 1 0 1 2 6 ; f u n c t i o n r e q u i r e P a d I s o 1 0 1 2 6 ( ) { r e t u r n h a s R e q u i r e d P a d I s o 1 0 1 2 6 | | ( h a s R e q u i r e d P a d I s o 1 0 1 2 6 = 1 , f u n c t i o n ( R a , q a ) { ( f u n c t i o n ( J a , e d , t d ) { R a . e x p o r t s = e d ( r e q u i r e C o r e ( ) , r e q u i r e C i p h e r C o r e ( ) ) } ) ( c o m m o n j s G l o b a l , f u n c t i o n ( J a ) { r e t u r n J a . p a d . I s o 1 0 1 2 6 = { p a d : f u n c t i o n ( e d , t d ) { v a r r d = t d * 4 , o d = r d - e d . s i g B y t e s % r d ; e d . c o n c a t ( J a . l i b . W o r d A r r a y . r a n d o m ( o d - 1 ) ) . c o n c a t ( J a . l i b . W o r d A r r a y . c r e a t e ( [ o d < < 2 4 ] , 1 ) ) } , u n p a d : f u n c t i o n ( e d ) { v a r t d = e d . w o r d s [ e d . s i g B y t e s - 1 > > > 2 ] & 2 5 5 ; e d . s i g B y t e s - = t d } } , J a . p a d . I s o 1 0 1 2 6 } ) } ( p a d I s o 1 0 1 2 6 ) ) , p a d I s o 1 0 1 2 6 . e x p o r t s } v a r p a d I s o 9 7 9 7 1 = { e x p o r t s : { } } , h a s R e q u i r e d P a d I s o 9 7 9 7 1 ; f u n c t i o n r e q u i r e P a d I s o 9 7 9 7 1 ( ) { r e t u r n h a s R e q u i r e d P a d I s o 9 7 9 7 1 | | ( h a s R e q u i r e d P a d I s o 9 7 9 7 1 = 1 , f u n c t i o n ( R a , q a ) { ( f u n c t i o n ( J a , e d , t d ) { R a . e x p o r t s = e d ( r e q u i r e C o r e ( ) , r e q u i r e C i p h e r C o r e ( ) ) } ) ( c o m m o n j s G l o b a l , f u n c t i o n ( J a ) { r e t u r n J a . p a d . I s o 9 7 9 7 1 = { p a d : f u n c t i o n ( e d , t d ) { e d . c o n c a t ( J a . l i b . W o r d A r r a y . c r e a t e ( [ 2 1 4 7 4 8 3 6 4 8 ] , 1 ) ) , J a . p a d . Z e r o P a d d i n g . p a d ( e d , t d ) } , u n p a d : f u n c t i o n ( e d ) { J a . p a d . Z e r o P a d d i n g . u n p a d ( e d ) , e d . s i g B y t e s - - } } , J a . p a d . I s o 9 7 9 7 1 } ) } ( p a d I s o 9 7 9 7 1 ) ) , p a d I s o 9 7 9 7 1 . e x p o r t s } v a r p a d Z e r o p a d d i n g = { e x p o r t s : { } } , h a s R e q u i r e d P a d Z e r o p a d d i n g ; f u n c t i o n r e q u i r e P a d Z e r o p a d d i n g ( ) { r e t u r n h a s R e q u i r e d P a d Z e r o p a d d i n g | | ( h a s R e q u i r e d P a d Z e r o p a d d i n g = 1 , f u n c t i o n ( R a , q a ) { ( f u n c t i o n ( J a , e d , t d ) { R a . e x p o r t s = e d ( r e q u i r e C o r e ( ) , r e q u i r e C i p h e r C o r e ( ) ) } ) ( c o m m o n j s G l o b a l , f u n c t i o n ( J a ) { r e t u r n J a . p a d . Z e r o P a d d i n g = { p a d : f u n c t i o n ( e d , t d ) { v a r r d = t d * 4 ; e d . c l a m p ( ) , e d . s i g B y t e s + = r d - ( e d . s i g B y t e s % r d | | r d ) } , u n p a d : f u n c t i o n ( e d ) { f o r ( v a r t d = e d . w o r d s , r d = e d . s i g B y t e s - 1 , r d = e d . s i g B y t e s - 1 ; r d > = 0 ; r d - - ) i f ( t d [ r d > > > 2 ] > > > 2 4 - r d % 4 * 8 & 2 5 5 ) { e d . s i g B y t e s = r d + 1 ; b r e a k } } } , J a . p a d . Z e r o P a d d i n g } ) } ( p a d Z e r o p a d d i n g ) ) , p a d Z e r o p a d d i n g . e x p o r t s } v a r p a d N o p a d d i n g = { e x p o r t s : { } } , h a s R e q u i r e d P a d N o p a d d i n g ; f u n c t i o n r e q u i r e P a d N o p a d d i
object - assign
( c ) Sindre Sorhus
@ license MIT
* /var objectAssign,hasRequiredObjectAssign;function requireObjectAssign(){if(hasRequiredObjectAssign)return objectAssign;hasRequiredObjectAssign=1;var Ra=Object.getOwnPropertySymbols,qa=Object.prototype.hasOwnProperty,Ja=Object.prototype.propertyIsEnumerable;function ed(rd){if(rd==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(rd)}function td(){try{if(!Object.assign)return!1;var rd=new String("abc");if(rd[5]="de",Object.getOwnPropertyNames(rd)[0]==="5")return!1;for(var od={},sd=0;sd<10;sd++)od["_"+String.fromCharCode(sd)]=sd;var ld=Object.getOwnPropertyNames(od).map(function(ud){return od[ud]});if(ld.join("")!=="0123456789")return!1;var cd={};return"abcdefghijklmnopqrst".split("").forEach(function(ud){cd[ud]=ud}),Object.keys(Object.assign({},cd)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return objectAssign=td()?Object.assign:function(rd,od){for(var sd,ld=ed(rd),cd,ud=1;ud<arguments.length;ud++){sd=Object(arguments[ud]);for(var _d in sd)qa.call(sd,_d)&&(ld[_d]=sd[_d]);if(Ra){cd=Ra(sd);for(var yd=0;yd<cd.length;yd++)Ja.call(sd,cd[yd])&&(ld[cd[yd]]=sd[cd[yd]])}}return ld},objectAssign}var ajax={},hasRequiredAjax;function requireAjax(){return hasRequiredAjax||(hasRequiredAjax=1,function(Ra){Ra.__esModule=!0,Ra.default=qa;function qa(Ja,ed){return ed===void 0&&(ed={}),new Promise(function(td,rd){var od=ed,sd=od.async,ld=sd===void 0?!0:sd,cd=od.data,ud=cd===void 0?null:cd,_d=od.headers,yd=_d===void 0?{}:_d,gd=od.method,Ed=gd===void 0?"get":gd,Td=od.timeout,Id=Td===void 0?0:Td,Ad=od.onprogress,Nd=new XMLHttpRequest,kd;Id&&(kd=setTimeout(function(){rd(new Error("the request timeout "+Id+"ms"))},Id)),Nd.onerror=function(){rd(new Error("unknown error"))},Nd.upload&&(Nd.upload.onprogress=Ad),Nd.onreadystatechange=function(){if(Nd.readyState===4)if(Id&&clearTimeout(kd),Nd.status>=200&&Nd.status<300)td(Nd.response,Nd);else{var Rd=new Error("the request is error");rd(Rd)}},Nd.open(Ed,Ja,ld),Object.keys(yd).forEach(function(Rd){Nd.setRequestHeader(Rd,yd[Rd])});try{Nd.send(ud)}catch(Rd){rd(Rd)}})}}(ajax)),ajax}var utils$2={},md5={exports:{}},crypt={exports:{}},hasRequiredCrypt;function requireCrypt(){return hasRequiredCrypt||(hasRequiredCrypt=1,function(){var Ra="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/ ",qa={rotl:function(Ja,ed){return Ja<<ed|Ja>>>32-ed},rotr:function(Ja,ed){return Ja<<32-ed|Ja>>>ed},endian:function(Ja){if(Ja.constructor==Number)return qa.rotl(Ja,8)&16711935|qa.rotl(Ja,24)&4278255360;for(var ed=0;ed<Ja.length;ed++)Ja[ed]=qa.endian(Ja[ed]);return Ja},randomBytes:function(Ja){for(var ed=[];Ja>0;Ja--)ed.push(Math.floor(Math.random()*256));return ed},bytesToWords:function(Ja){for(var ed=[],td=0,rd=0;td<Ja.length;td++,rd+=8)ed[rd>>>5]|=Ja[td]<<24-rd%32;return ed},wordsToBytes:function(Ja){for(var ed=[],td=0;td<Ja.length*32;td+=8)ed.push(Ja[td>>>5]>>>24-td%32&255);return ed},bytesToHex:function(Ja){for(var ed=[],td=0;td<Ja.length;td++)ed.push((Ja[td]>>>4).toString(16)),ed.push((Ja[td]&15).toString(16));return ed.join(" ")},hexToBytes:function(Ja){for(var ed=[],td=0;td<Ja.length;td+=2)ed.push(parseInt(Ja.substr(td,2),16));return ed},bytesToBase64:function(Ja){for(var ed=[],td=0;td<Ja.length;td+=3)for(var rd=Ja[td]<<16|Ja[td+1]<<8|Ja[td+2],od=0;od<4;od++)td*8+od*6<=Ja.length*8?ed.push(Ra.charAt(rd>>>6*(3-od)&63)):ed.push(" = ");return ed.join(" ")},base64ToBytes:function(Ja){Ja=Ja.replace(/[^A-Z0-9+\/]/ig," " ) ; for ( var ed = [ ] , td = 0 , rd = 0 ; td < Ja . length ; rd = ++ td % 4 ) rd != 0 && ed . push ( ( Ra . indexOf ( Ja . charAt ( td - 1 ) ) & Math . pow ( 2 , - 2 * rd + 8 ) - 1 ) << rd * 2 | Ra . indexOf ( Ja . charAt ( td ) ) >>> 6 - rd * 2 ) ; return ed } } ; crypt . exports = qa } ( ) ) , crypt . exports } var charenc _1 , hasRequiredCharenc ; function requireCharenc ( ) { if ( hasRequiredCharenc ) return charenc _1 ; hasRequiredCharenc = 1 ; var Ra = { utf8 : { stringToBytes : function ( qa ) { return Ra . bin . stringToBytes ( unescape ( encodeURIComponent ( qa ) ) ) } , bytesToString : function ( qa ) { return decodeURIComponent ( escape ( Ra . bin . bytesToString ( qa ) ) ) } } , bin : { stringToBytes : function ( qa ) { for ( var Ja = [ ] , ed = 0 ; ed < qa . length ; ed ++ ) Ja . push ( qa . charCodeAt ( ed ) & 255 ) ; return Ja } , bytesToString : function ( qa ) {
2024-08-27 22:31:52 +08:00
* Determine if an object is a Buffer
*
* @ author Feross Aboukhadijeh < https : //feross.org>
* @ license MIT
2024-08-31 11:28:56 +08:00
* / v a r i s B u f f e r _ 1 , h a s R e q u i r e d I s B u f f e r ; f u n c t i o n r e q u i r e I s B u f f e r ( ) { i f ( h a s R e q u i r e d I s B u f f e r ) r e t u r n i s B u f f e r _ 1 ; h a s R e q u i r e d I s B u f f e r = 1 , i s B u f f e r _ 1 = f u n c t i o n ( J a ) { r e t u r n J a ! = n u l l & & ( R a ( J a ) | | q a ( J a ) | | ! ! J a . _ i s B u f f e r ) } ; f u n c t i o n R a ( J a ) { r e t u r n ! ! J a . c o n s t r u c t o r & & t y p e o f J a . c o n s t r u c t o r . i s B u f f e r = = " f u n c t i o n " & & J a . c o n s t r u c t o r . i s B u f f e r ( J a ) } f u n c t i o n q a ( J a ) { r e t u r n t y p e o f J a . r e a d F l o a t L E = = " f u n c t i o n " & & t y p e o f J a . s l i c e = = " f u n c t i o n " & & R a ( J a . s l i c e ( 0 , 0 ) ) } r e t u r n i s B u f f e r _ 1 } v a r h a s R e q u i r e d M d 5 ; f u n c t i o n r e q u i r e M d 5 ( ) { r e t u r n h a s R e q u i r e d M d 5 | | ( h a s R e q u i r e d M d 5 = 1 , f u n c t i o n ( ) { v a r R a = r e q u i r e C r y p t ( ) , q a = r e q u i r e C h a r e n c ( ) . u t f 8 , J a = r e q u i r e I s B u f f e r ( ) , e d = r e q u i r e C h a r e n c ( ) . b i n , t d = f u n c t i o n ( r d , o d ) { r d . c o n s t r u c t o r = = S t r i n g ? o d & & o d . e n c o d i n g = = = " b i n a r y " ? r d = e d . s t r i n g T o B y t e s ( r d ) : r d = q a . s t r i n g T o B y t e s ( r d ) : J a ( r d ) ? r d = A r r a y . p r o t o t y p e . s l i c e . c a l l ( r d , 0 ) : ! A r r a y . i s A r r a y ( r d ) & & r d . c o n s t r u c t o r ! = = U i n t 8 A r r a y & & ( r d = r d . t o S t r i n g ( ) ) ; f o r ( v a r s d = R a . b y t e s T o W o r d s ( r d ) , l d = r d . l e n g t h * 8 , c d = 1 7 3 2 5 8 4 1 9 3 , u d = - 2 7 1 7 3 3 8 7 9 , _ d = - 1 7 3 2 5 8 4 1 9 4 , y d = 2 7 1 7 3 3 8 7 8 , g d = 0 ; g d < s d . l e n g t h ; g d + + ) s d [ g d ] = ( s d [ g d ] < < 8 | s d [ g d ] > > > 2 4 ) & 1 6 7 1 1 9 3 5 | ( s d [ g d ] < < 2 4 | s d [ g d ] > > > 8 ) & 4 2 7 8 2 5 5 3 6 0 ; s d [ l d > > > 5 ] | = 1 2 8 < < l d % 3 2 , s d [ ( l d + 6 4 > > > 9 < < 4 ) + 1 4 ] = l d ; f o r ( v a r E d = t d . _ f f , T d = t d . _ g g , I d = t d . _ h h , A d = t d . _ i i , g d = 0 ; g d < s d . l e n g t h ; g d + = 1 6 ) { v a r N d = c d , k d = u d , R d = _ d , M d = y d ; c d = E d ( c d , u d , _ d , y d , s d [ g d + 0 ] , 7 , - 6 8 0 8 7 6 9 3 6 ) , y d = E d ( y d , c d , u d , _ d , s d [ g d + 1 ] , 1 2 , - 3 8 9 5 6 4 5 8 6 ) , _ d = E d ( _ d , y d , c d , u d , s d [ g d + 2 ] , 1 7 , 6 0 6 1 0 5 8 1 9 ) , u d = E d ( u d , _ d , y d , c d , s d [ g d + 3 ] , 2 2 , - 1 0 4 4 5 2 5 3 3 0 ) , c d = E d ( c d , u d , _ d , y d , s d [ g d + 4 ] , 7 , - 1 7 6 4 1 8 8 9 7 ) , y d = E d ( y d , c d , u d , _ d , s d [ g d + 5 ] , 1 2 , 1 2 0 0 0 8 0 4 2 6 ) , _ d = E d ( _ d , y d , c d , u d , s d [ g d + 6 ] , 1 7 , - 1 4 7 3 2 3 1 3 4 1 ) , u d = E d ( u d , _ d , y d , c d , s d [ g d + 7 ] , 2 2 , - 4 5 7 0 5 9 8 3 ) , c d = E d ( c d , u d , _ d , y d , s d [ g d + 8 ] , 7 , 1 7 7 0 0 3 5 4 1 6 ) , y d = E d ( y d , c d , u d , _ d , s d [ g d + 9 ] , 1 2 , - 1 9 5 8 4 1 4 4 1 7 ) , _ d = E d ( _ d , y d , c d , u d , s d [ g d + 1 0 ] , 1 7 , - 4 2 0 6 3 ) , u d = E d ( u d , _ d , y d , c d , s d [ g d + 1 1 ] , 2 2 , - 1 9 9 0 4 0 4 1 6 2 ) , c d = E d ( c d , u d , _ d , y d , s d [ g d + 1 2 ] , 7 , 1 8 0 4 6 0 3 6 8 2 ) , y d = E d ( y d , c d , u d , _ d , s d [ g d + 1 3 ] , 1 2 , - 4 0 3 4 1 1 0 1 ) , _ d = E d ( _ d , y d , c d , u d , s d [ g d + 1 4 ] , 1 7 , - 1 5 0 2 0 0 2 2 9 0 ) , u d = E d ( u d , _ d , y d , c d , s d [ g d + 1 5 ] , 2 2 , 1 2 3 6 5 3 5 3 2 9 ) , c d = T d ( c d , u d , _ d , y d , s d [ g d + 1 ] , 5 , - 1 6 5 7 9 6 5 1 0 ) , y d = T d ( y d , c d , u d , _ d , s d [ g d + 6 ] , 9 , - 1 0 6 9 5 0 1 6 3 2 ) , _ d = T d ( _ d , y d , c d , u d , s d [ g d + 1 1 ] , 1 4 , 6 4 3 7 1 7 7 1 3 ) , u d = T d ( u d , _ d , y d , c d , s d [ g d + 0 ] , 2 0 , - 3 7 3 8 9 7 3 0 2 ) , c d = T d ( c d , u d , _ d , y d , s d [ g d + 5 ] , 5 , - 7 0 1 5 5 8 6 9 1 ) , y d = T d ( y d , c d , u d , _ d , s d [ g d + 1 0 ] , 9 , 3 8 0 1 6 0 8 3 ) , _ d = T d ( _ d , y d , c d , u d , s d [ g d + 1 5 ] , 1 4 , - 6 6 0 4 7 8 3 3 5 ) , u d = T d ( u d , _ d , y d , c d , s d [ g d + 4 ] , 2 0 , - 4 0 5 5 3 7 8 4 8 ) , c d = T d ( c d , u d , _ d , y d , s d [ g d + 9 ] , 5 , 5 6 8 4 4 6 4 3 8 ) , y d = T d ( y d , c d , u d , _ d , s d [ g d + 1 4 ] , 9 , - 1 0 1 9 8 0 3 6 9 0 ) , _ d = T d ( _ d , y d , c d , u d , s d [ g d + 3 ] , 1 4 , - 1 8 7 3 6 3 9 6 1 ) , u d = T d ( u d , _ d , y d , c d , s d [ g d + 8 ] , 2 0 , 1 1 6 3 5 3 1 5 0 1 ) , c d = T d ( c d , u d , _ d , y d , s d [ g d + 1 3 ] , 5 , - 1 4 4 4 6 8 1 4 6 7 ) , y d = T d ( y d , c d , u d , _ d , s d [ g d + 2 ] , 9 , - 5 1 4 0 3 7 8 4 ) , _ d = T d ( _ d , y d , c d , u d , s d [ g d + 7 ] , 1 4 , 1 7 3 5 3 2 8 4 7 3 ) , u d = T d ( u d , _ d , y d , c d , s d [ g d + 1 2 ] , 2 0 , - 1 9 2 6 6 0 7 7 3 4 ) , c d = I d ( c d , u d , _ d , y d , s d [ g d + 5 ] , 4 , - 3 7 8 5 5 8 ) , y d = I d ( y d , c d , u d , _ d , s d [ g d + 8 ] , 1 1 , - 2 0 2 2 5 7 4 4 6 3 ) , _ d = I d ( _ d , y d , c d , u d , s d [ g d + 1 1 ] , 1 6 , 1 8 3 9 0 3 0 5 6 2 ) , u d = I d ( u d , _ d , y d , c d , s d [ g d + 1 4 ] , 2 3 , - 3 5 3 0 9 5 5 6 ) , c d = I d ( c d , u d , _ d , y d , s d [ g d + 1 ] , 4 , - 1 5 3 0 9 9 2 0 6 0 ) , y d = I d ( y d , c d , u d , _ d , s d [ g d + 4 ] , 1 1 , 1 2 7 2 8 9 3 3 5 3 ) , _ d = I d ( _ d , y d , c d , u d , s d [ g d + 7 ] , 1 6 , - 1 5 5 4 9 7 6 3 2 ) , u d = I d ( u d , _ d , y d , c d , s d [ g d + 1 0 ] , 2 3 , - 1 0 9 4 7 3 0 6 4 0 ) , c d = I d ( c d , u d , _ d , y d , s d [ g d + 1 3 ] , 4 , 6 8 1 2 7 9 1 7 4 ) , y d = I d ( y d , c d , u d , _ d , s d [ g d + 0 ] , 1 1 , - 3 5 8 5 3 7 2 2 2 ) , _ d = I d ( _ d , y d , c d , u d , s d [ g d + 3 ] , 1 6 , - 7 2 2 5 2 1 9 7 9 ) , u d = I d ( u d , _ d , y d , c d , s d [ g d + 6 ] , 2 3 , 7 6 0 2 9 1 8 9 ) , c d = I d ( c d , u d , _ d , y d , s d [ g d + 9 ] , 4 , - 6 4 0 3 6 4 4 8 7 ) , y d = I d ( y d , c d , u d , _ d , s d [ g d + 1 2 ] , 1 1 , - 4 2 1 8 1 5 8 3 5 ) , _ d = I d ( _ d , y d , c d , u d , s d [ g d + 1 5 ] , 1 6 , 5 3 0 7 4 2 5 2 0 ) , u d = I d ( u d , _ d , y d , c d , s d [ g d + 2 ] , 2 3 , - 9 9 5 3 3 8 6 5 1 ) , c d = A d ( c d , u d , _ d , y d , s d [ g d + 0 ] , 6 , - 1 9 8 6 3 0 8 4 4 ) , y d = A d ( y d , c d , u d , _ d , s d [ g d + 7 ] , 1 0 , 1 1 2 6 8 9 1 4 1 5 ) , _ d = A d ( _ d , y d , c d , u d , s d [ g d + 1 4 ] , 1 5 , - 1 4 1 6 3 5 4 9 0 5 ) , u d = A d ( u d , _ d , y d , c d , s d [ g d + 5 ] , 2 1 , - 5 7 4 3 4 0 5 5 ) , c d = A d ( c d , u d , _ d , y d , s d [ g d + 1 2 ] , 6 , 1 7 0 0 4 8 5 5 7 1 ) , y d = A d ( y d , c d , u d , _ d , s d [ g d + 3 ] , 1 0 , - 1 8 9 4 9 8 6 6 0 6 ) , _ d = A d ( _ d , y d , c d , u d , s d [ g d + 1 0 ] , 1 5 , - 1 0 5 1 5 2 3 ) , u d = A d ( u d , _ d , y d , c d , s d [ g d + 1 ] , 2 1 , - 2 0 5 4 9 2 2 7 9 9 ) , c d = A d ( c d , u d , _ d , y d , s d [ g d + 8 ] , 6 , 1 8 7 3 3 1 3 3 5 9 ) , y d = A d ( y d , c d , u d , _ d , s d [ g d + 1 5 ] , 1 0 , - 3 0 6 1 1 7 4 4 ) , _ d = A d ( _ d , y d , c d , u d , s d [ g d + 6 ] , 1 5 , - 1 5 6 0 1 9 8 3 8 0 ) , u d = A d ( u d , _ d , y d , c d , s d [ g d + 1 3 ] , 2 1 , 1 3 0 9 1 5 1 6 4 9 ) , c d = A d ( c d , u d , _ d , y d , s d [ g d + 4 ] , 6 , - 1 4 5 5 2 3 0 7 0 ) , y d = A d ( y d , c d , u d , _ d , s d [ g d + 1 1 ] , 1 0 , - 1 1 2 0 2 1 0 3 7 9 ) , _ d = A d ( _ d , y d , c d , u d , s d [ g d + 2 ] , 1 5 , 7 1 8 7 8 7 2 5 9 ) , u d = A d ( u d , _ d , y d , c d , s d [ g d + 9 ] , 2 1 , - 3 4 3 4 8 5 5 5 1 ) , c d = c d + N d > > > 0 , u d = u d + k d > > > 0 , _ d = _ d + R d > > > 0 , y d = y d + M d > > > 0 } r e t u r n R a . e n d i a n ( [ c d , u d , _ d , y d ] ) } ; t d . _ f f = f u n c t i o n ( r d , o d , s d , l d , c d , u d , _ d ) { v a r y d = r d + ( o d & s d | ~ o d & l d ) + ( c d > > > 0 ) + _ d ; r e t u r n ( y d < < u d | y d > > > 3 2 - u d ) + o d } , t d . _ g g = f u n c t i o n ( r d , o
* !
* ! Copyright 2011 - 2012 , 2014 Jean - Christophe Sirot < sirot @ chelonix . com >
* !
* ! This file is part of digest . js
* !
* ! digest . js is free software : you can redistribute it and / or modify it under
* ! the terms of the GNU General Public License as published by the Free Software
* ! Foundation , either version 3 of the License , or ( at your option ) any later
* ! version .
* !
* ! digest . js is distributed in the hope that it will be useful , but
* ! WITHOUT ANY WARRANTY ; without even the implied warranty of MERCHANTABILITY
* ! or FITNESS FOR A PARTICULAR PURPOSE . See the GNU General Public License for
* ! more details .
* !
* ! You should have received a copy of the GNU General Public License along with
* ! digest . js . If not , see http : //www.gnu.org/licenses/.
* !
* ! * * * * * END LICENSE BLOCK * * * * * * / v a r h a s R e q u i r e d D i g e s t ; f u n c t i o n r e q u i r e D i g e s t ( ) { r e t u r n h a s R e q u i r e d D i g e s t | | ( h a s R e q u i r e d D i g e s t = 1 , f u n c t i o n ( R a , q a ) { ( f u n c t i o n ( ) { A r r a y B u f f e r . p r o t o t y p e . s l i c e | | ( A r r a y B u f f e r . p r o t o t y p e . s l i c e = f u n c t i o n ( J a , e d ) { v a r t d , r d = n e w U i n t 8 A r r a y ( t h i s ) ; e d = = = v o i d 0 & & ( e d = r d . l e n g t h ) ; v a r o d = n e w A r r a y B u f f e r ( e d - J a ) , s d = n e w U i n t 8 A r r a y ( o d ) ; f o r ( t d = 0 ; t d < s d . l e n g t h ; t d + + ) s d [ t d ] = r d [ t d + J a ] ; r e t u r n o d } ) } ) ( ) , f u n c t i o n ( J a ) { f u n c t i o n e d ( ) { } e d . p r o t o t y p e . p r o c e s s B l o c k = f u n c t i o n ( u d ) { v a r _ d = t h i s . c u r r e n t [ 0 ] , y d = t h i s . c u r r e n t [ 1 ] , g d = t h i s . c u r r e n t [ 2 ] , E d = t h i s . c u r r e n t [ 3 ] , T d = t h i s . c u r r e n t [ 4 ] , I d = [ u d [ 0 ] < < 2 4 | u d [ 1 ] < < 1 6 | u d [ 2 ] < < 8 | u d [ 3 ] , u d [ 4 ] < < 2 4 | u d [ 5 ] < < 1 6 | u d [ 6 ] < < 8 | u d [ 7 ] , u d [ 8 ] < < 2 4 | u d [ 9 ] < < 1 6 | u d [ 1 0 ] < < 8 | u d [ 1 1 ] , u d [ 1 2 ] < < 2 4 | u d [ 1 3 ] < < 1 6 | u d [ 1 4 ] < < 8 | u d [ 1 5 ] , u d [ 1 6 ] < < 2 4 | u d [ 1 7 ] < < 1 6 | u d [ 1 8 ] < < 8 | u d [ 1 9 ] , u d [ 2 0 ] < < 2 4 | u d [ 2 1 ] < < 1 6 | u d [ 2 2 ] < < 8 | u d [ 2 3 ] , u d [ 2 4 ] < < 2 4 | u d [ 2 5 ] < < 1 6 | u d [ 2 6 ] < < 8 | u d [ 2 7 ] , u d [ 2 8 ] < < 2 4 | u d [ 2 9 ] < < 1 6 | u d [ 3 0 ] < < 8 | u d [ 3 1 ] , u d [ 3 2 ] < < 2 4 | u d [ 3 3 ] < < 1 6 | u d [ 3 4 ] < < 8 | u d [ 3 5 ] , u d [ 3 6 ] < < 2 4 | u d [ 3 7 ] < < 1 6 | u d [ 3 8 ] < < 8 | u d [ 3 9 ] , u d [ 4 0 ] < < 2 4 | u d [ 4 1 ] < < 1 6 | u d [ 4 2 ] < < 8 | u d [ 4 3 ] , u d [ 4 4 ] < < 2 4 | u d [ 4 5 ] < < 1 6 | u d [ 4 6 ] < < 8 | u d [ 4 7 ] , u d [ 4 8 ] < < 2 4 | u d [ 4 9 ] < < 1 6 | u d [ 5 0 ] < < 8 | u d [ 5 1 ] , u d [ 5 2 ] < < 2 4 | u d [ 5 3 ] < < 1 6 | u d [ 5 4 ] < < 8 | u d [ 5 5 ] , u d [ 5 6 ] < < 2 4 | u d [ 5 7 ] < < 1 6 | u d [ 5 8 ] < < 8 | u d [ 5 9 ] , u d [ 6 0 ] < < 2 4 | u d [ 6 1 ] < < 1 6 | u d [ 6 2 ] < < 8 | u d [ 6 3 ] ] , A d , N d ; f o r ( N d = 1 6 ; N d < 8 0 ; N d + + ) I d . p u s h ( ( I d [ N d - 3 ] ^ I d [ N d - 8 ] ^ I d [ N d - 1 4 ] ^ I d [ N d - 1 6 ] ) < < 1 | ( I d [ N d - 3 ] ^ I d [ N d - 8 ] ^ I d [ N d - 1 4 ] ^ I d [ N d - 1 6 ] ) > > > 3 1 ) ; f o r ( N d = 0 ; N d < 8 0 ; N d + + ) A d = ( _ d < < 5 | _ d > > > 2 7 ) + T d + I d [ N d ] , N d < 2 0 ? A d + = ( y d & g d | ~ y d & E d ) + 1 5 1 8 5 0 0 2 4 9 | 0 : N d < 4 0 ? A d + = ( y d ^ g d ^ E d ) + 1 8 5 9 7 7 5 3 9 3 | 0 : N d < 6 0 ? A d + = ( y d & g d | y d & E d | g d & E d ) + 2 4 0 0 9 5 9 7 0 8 | 0 : A d + = ( y d ^ g d ^ E d ) + 3 3 9 5 4 6 9 7 8 2 | 0 , T d = E d , E d = g d , g d = y d < < 3 0 | y d > > > 2 , y d = _ d , _ d = A d ; t h i s . c u r r e n t [ 0 ] + = _ d , t h i s . c u r r e n t [ 1 ] + = y d , t h i s . c u r r e n t [ 2 ] + = g d , t h i s . c u r r e n t [ 3 ] + = E d , t h i s . c u r r e n t [ 4 ] + = T d , t h i s . c u r r e n t L e n + = 6 4 } , e d . p r o t o t y p e . d o P a d d i n g = f u n c t i o n ( ) { v a r u d = ( t h i s . i n L e n + t h i s . c u r r e n t L e n ) * 8 , _ d = 0 , y d = u d & 4 2 9 4 9 6 7 2 9 5 , g d = t h i s . i n L e n < = 5 5 ? 5 5 - t h i s . i n L e n : 1 1 9 - t h i s . i n L e n , E d = n e w U i n t 8 A r r a y ( n e w A r r a y B u f f e r ( g d + 1 + 8 ) ) ; r e t u r n E d [ 0 ] = 1 2 8 , E d [ E d . l e n g t h - 1 ] = y d & 2 5 5 , E d [ E d . l e n g t h - 2 ] = y d > > > 8 & 2 5 5 , E d [ E d . l e n g t h - 3 ] = y d > > > 1 6 & 2 5 5 , E d [ E d . l e n g t h - 4 ] = y d > > > 2 4 & 2 5 5 , E d [ E d . l e n g t h - 5 ] = _ d & 2 5 5 , E d [ E d . l e n g t h - 6 ] = _ d > > > 8 & 2 5 5 , E d [ E d . l e n g t h - 7 ] = _ d > > > 1 6 & 2 5 5 , E d [ E d . l e n g t h - 8 ] = _ d > > > 2 4 & 2 5 5 , E d } , e d . p r o t o t y p e . g e t D i g e s t = f u n c t i o n ( ) { v a r u d = n e w U i n t 8 A r r a y ( n e w A r r a y B u f f e r ( 2 0 ) ) ; r e t u r n u d [ 3 ] = t h i s . c u r r e n t [ 0 ] & 2 5 5 , u d [ 2 ] = t h i s . c u r r e n t [ 0 ] > > > 8 & 2 5 5 , u d [ 1 ] = t h i s . c u r r e n t [ 0 ] > > > 1 6 & 2 5 5 , u d [ 0 ] = t h i s . c u r r e n t [ 0 ] > > > 2 4 & 2 5 5 , u d [ 7 ] = t h i s . c u r r e n t [ 1 ] & 2 5 5 , u d [ 6 ] = t h i s . c u r r e n t [ 1 ] > > > 8 & 2 5 5 , u d [ 5 ] = t h i s . c u r r e n t [ 1 ] > > > 1 6 & 2 5 5 , u d [ 4 ] = t h i s . c u r r e n t [ 1 ] > > > 2 4 & 2 5 5 , u d [ 1 1 ] = t h i s . c u r r e n t [ 2 ] & 2 5 5 , u d [ 1 0 ] = t h i s . c u r r e n t [ 2 ] > > > 8 & 2 5 5 , u d [ 9 ] = t h i s . c u r r e n t [ 2 ] > > > 1 6 & 2 5 5 , u d [ 8 ] = t h i s . c u r r e n t [ 2 ] > > > 2 4 & 2 5 5 , u d [ 1 5 ] = t h i s . c u r r e n t [ 3 ] & 2 5 5 , u d [ 1 4 ] = t h i s . c u r r e n t [ 3 ] > > > 8 & 2 5 5 , u d [ 1 3 ] = t h i s . c u r r e n t [ 3 ] > > > 1 6 & 2 5 5 , u d [ 1 2 ] = t h i s . c u r r e n t [ 3 ] > > > 2 4 & 2 5 5 , u d [ 1 9 ] = t h i s . c u r r e n t [ 4 ] & 2 5 5 , u d [ 1 8 ] = t h i s . c u r r e n t [ 4 ] > > > 8 & 2 5 5 , u d [ 1 7 ] = t h i s . c u r r e n t [ 4 ] > > > 1 6 & 2 5 5 , u d [ 1 6 ] = t h i s . c u r r e n t [ 4 ] > > > 2 4 & 2 5 5 , u d . b u f f e r } , e d . p r o t o t y p e . r e s e t = f u n c t i o n ( ) { t h i s . c u r r e n t L e n = 0 , t h i s . i n L e n = 0 , t h i s . c u r r e n t = n e w U i n t 3 2 A r r a y ( n e w A r r a y B u f f e r ( 2 0 ) ) , t h i s . c u r r e n t [ 0 ] = 1 7 3 2 5 8 4 1 9 3 , t h i s . c u r r e n t [ 1 ] = 4 0 2 3 2 3 3 4 1 7 , t h i s . c u r r e n t [ 2 ] = 2 5 6 2 3 8 3 1 0 2 , t h i s . c u r r e n t [ 3 ] = 2 7 1 7 3 3 8 7 8 , t h i s . c u r r e n t [ 4 ] = 3 2 8 5 3 7 7 5 2 0 } , e d . p r o t o t y p e . b l o c k L e n = 6 4 , e d . p r o t o t y p e . d i g e s t L e n = 2 0 ; v a r t d = f u n c t i o n ( u d ) { v a r _ d = n e w A r r a y B u f f e r ( u d . l e n g t h ) , y d = n e w U i n t 8 A r r a y ( _ d ) , g d ; f o r ( g d = 0 ; g d < u d . l e n g t h ; g d + + ) y d [ g d ] = u d . c h a r C o d e A t ( g d ) ; r e t u r n y d } , r d = f u n c t i o n ( u d ) { v a r _ d = n e w A r r a y B u f f e r ( 1 ) , y d = n e w U i n t 8 A r r a y ( _ d ) ; r e t u r n y d [ 0 ] = u d , y d } , o d = f u n c t i o n ( u d ) { i f ( u d . c o n s t r u c t o r = = = U i n t 8 A r r a y ) r e t u r n u d ; i f ( u d . c o n s t r u c t o r = = = A r r a y B u f f e r ) r e t u r n n e w U i n t 8 A r r a y ( u d ) ; i f ( u d . c o n s t r u c t o r = = = S t r i n g ) r e t u r n t d ( u d ) ; i f ( u d . c o n s t r u c t o r = = = N u m b e r ) { i f ( u d > 2 5 5 ) t h r o w " F o r m o r e t h a n o n e b y t e , u s e a n a r r a y b u f f e r " ; i f ( u d < 0 ) t h r o w " I n p u t v a l u e m u s t b e p o s i t i v e " ; r e t u r n r d ( u d ) } e l s e t h r o w " U n s u p p o r t e d t y p e " } , s d = f u n c t i o n ( u d ) { v a r _ d = f u n c t i o n ( E d ) { f o r ( v a r T d = E d . l e n g t h , I d = 0 ; T d > 0 ; ) { v a r A d = t h i s . b l o c k L e n - t h i s . i n L e n ; A d > T d & & ( A d = T d ) ; v a r N d = E d . s u b a r r a y ( I d , I d + A d ) ; t h i s . i n b u f . s e t ( N d , t h i s . i n L e n ) , I d + = A d , T d - = A d , t h i s . i n L e n + = A d , t h i s . i n L e n = = = t h i s . b l o c k L e n & & ( t h i s . p r o c e s s B l o c k ( t h i s . i n b u f ) , t h i s . i n L e n = 0 ) } } , y d = f u n c t i o n ( ) { v a r E d = t h i s . d o P a d d i n g ( ) ; t h i s . u p d a t e ( E d ) ; v a r T d = t h i s . g e t D i g e s t ( ) ; r e t u r n t h i s . r e s e t ( ) , T d } , g d = f u n c t i o n ( ) { i f ( ! u d ) t h r o w " U n s u p p o r t e d a l g o r i t h m : " + u d . t o S t r i n g ( ) ; u d . p r o t o t y p e .
` )}),Ed}function _d(gd,Ed,Td){gd===void 0&&(gd=""),Ed===void 0&&(Ed="");var Id="";gd&&(Id+="/"+gd),Ed&&(Ed.charAt(0)!=="/"&&(Id+="/"),Id+=Ed);var Ad=""+Id,Nd="?";if(Td){var kd=function(Bd,jd){return Bd[0]>jd[0]?1:Bd[0]<jd[0]?-1:0},Rd=function(Bd){Ad+=Nd+Bd,Td[Bd]&&(Ad+="="+Td[Bd]),Nd="&"};Object.keys(Td).sort(kd).forEach(Rd)}return Ad}function yd(gd){gd===void 0&&(gd={});var Ed=gd,Td=Ed.type,Id=Td===void 0?"header":Td,Ad=Ed.verb,Nd=Ad===void 0?"":Ad,kd=Ed.contentMd5,Rd=kd===void 0?"":kd,Md=Ed.expires,Bd=Md===void 0?rd()+3600:Md,jd=Ed.bucket,Vd=Ed.objectName,Fd=Ed.accessKeySecret,Ud=Ed.headers,qd=Ud===void 0?{}:Ud,Wd=Ed.subResource,Qd=qd["x-oss-date"]||"",Zd=qd["Content-Type"]||"",Xd=[Nd,Rd,Zd];Id==="header"?Xd.push(Qd):Xd.push(Bd);var df=ud(qd),hf=_d(jd,Vd,Wd);Xd.push(""+df+hf);var gf=Xd.join( `
2024-08-31 15:27:49 +08:00
` ),Ef=new ed.default.HMAC_SHA1;Ef.setKey(Fd),Ef.update(gf);var wf=new Uint8Array(Ef.finalize()), $ f=Ja.default.fromByteArray(wf);return $ f}return utils $ 2}(function(Ra){var qa=interopRequireDefaultExports;Ra.__esModule=!0,Ra.default=void 0;var Ja=qa(requireObjectAssign()),ed=qa(requireAjax()),td=requireUtils(),rd=function(){function od(ld){ld===void 0&&(ld={}),(0,td.assertOptions)(ld),this.opts=(0,Ja.default)({region:"oss-cn-hangzhou",internal:!1,cname:!1,secure:!1,timeout:6e4},ld);var cd=this.opts,ud=cd.bucket,_d=cd.region,yd=cd.endpoint,gd=cd.internal;if(this.host="",yd)this.host=yd;else{var Ed=ud;gd&&(Ed+="-internal"),Ed+="."+_d+".aliyuncs.com",this.host=Ed}}var sd=od.prototype;return sd.put=function(cd,ud,_d){var yd=this;return _d===void 0&&(_d={}),new Promise(function(gd,Ed){(0,td.blobToBuffer)(ud).then(function(Td){var Id=yd.opts,Ad=Id.accessKeyId,Nd=Id.accessKeySecret,kd=Id.stsToken,Rd=Id.bucket,Md="PUT",Bd=(0,td.getContentMd5)(Td),jd=ud.type,Vd={"Content-Md5":Bd,"Content-Type":jd,"x-oss-date":new Date().toGMTString()};kd&&(Vd["x-oss-security-token"]=kd);var Fd=(0,td.getSignature)({verb:Md,contentMd5:Bd,headers:Vd,bucket:Rd,objectName:cd,accessKeyId:Ad,accessKeySecret:Nd});Vd.Authorization="OSS "+Ad+":"+Fd;var Ud=yd.opts.secure?"https":"http",qd=Ud+"://"+yd.host+"/"+cd;return(0,ed.default)(qd,{method:Md,headers:Vd,data:ud,timeout:yd.opts.timeout,onprogress:_d.onprogress})}).then(gd).catch(Ed)})},sd.putSymlink=function(cd,ud){var _d=this.opts,yd=_d.accessKeyId,gd=_d.accessKeySecret,Ed=_d.stsToken,Td=_d.bucket,Id="PUT",Ad={"x-oss-date":new Date().toGMTString(),"x-oss-symlink-target":encodeURI(ud)};Ed&&(Ad["x-oss-security-token"]=Ed);var Nd=(0,td.getSignature)({verb:Id,headers:Ad,bucket:Td,objectName:cd,accessKeyId:yd,accessKeySecret:gd,subResource:{symlink:""}});Ad.Authorization="OSS "+yd+":"+Nd;var kd=this.opts.secure?"https":"http",Rd=kd+"://"+this.host+"/"+cd+"?symlink";return(0,ed.default)(Rd,{method:Id,headers:Ad,timeout:this.opts.timeout})},sd.signatureUrl=function(cd,ud){ud===void 0&&(ud={});var _d=ud,yd=_d.expires,gd=yd===void 0?1800:yd,Ed=_d.method,Td=_d.process,Id=_d.response,Ad=this.opts,Nd=Ad.accessKeyId,kd=Ad.accessKeySecret,Rd=Ad.stsToken,Md=Ad.bucket,Bd={},jd={};if(Td){var Vd="x-oss-process";jd[Vd]=Td}Id&&Object.keys(Id).forEach(function(Zd){var Xd="response-"+Zd.toLowerCase();jd[Xd]=Id[Zd]}),Object.keys(ud).forEach(function(Zd){var Xd=Zd.toLowerCase(),df=ud[Zd];Xd.indexOf("x-oss-")===0?Bd[Xd]=df:Xd.indexOf("content-md5")===0||Xd.indexOf("content-type")===0?Bd[Zd]=df:Xd!=="expires"&&Xd!=="response"&&Xd!=="process"&&Xd!=="method"&&(jd[Xd]=df)});var Fd=ud["security-token"]||Rd;Fd&&(jd["security-token"]=Fd);var Ud=(0,td.unix)()+gd,qd=(0,td.getSignature)({type:"url",verb:Ed||"GET",accessKeyId:Nd,accessKeySecret:kd,bucket:Md,objectName:cd,headers:Bd,subResource:jd,expires:Ud}),Wd=this.opts.secure?"https":"http",Qd=Wd+"://"+this.host+"/"+cd;return Qd+="?OSSAccessKeyId="+Nd,Qd+="&Expires="+Ud,Qd+="&Signature="+encodeURIComponent(qd),Object.keys(jd).forEach(function(Zd){Qd+="&"+Zd+"="+encodeURIComponent(jd[Zd])}),Qd},od}();Ra.default=rd})(TinyOSS);var lib $ 2=TinyOSS.default;const OSS=getDefaultExportFromCjs(lib $ 2);var define_process_default $ 8={version:"v20.17.0",versions:{node:"20.17.0",acorn:"8.11.3",ada:"2.9.0",ares:"1.32.3",base64:"0.5.2",brotli:"1.1.0",cjs_module_lexer:"1.2.2",cldr:"45.0",icu:"75.1",llhttp:"8.1.2",modules:"115",napi:"9",nghttp2:"1.61.0",nghttp3:"0.7.0",ngtcp2:"1.1.0",openssl:"3.0.13+quic",simdutf:"5.3.0",tz:"2024a",undici:"6.19.2",unicode:"15.1",uv:"1.46.0",uvwasi:"0.0.21",v8:"11.3.244.8-node.23",zlib:"1.3.0.1-motley-209717d"},arch:"x64",platform:"linux",release:{name:"node",lts:"Iron",sourceUrl:"https://nodejs.org/download/release/v20.17.0/node-v20.17.0.tar.gz",headersUrl:"https://nodejs.org/download/release/v20.17.0/node-v20.17.0-headers.tar.gz"},moduleLoadList:["Internal Binding builtins","Internal Binding module_wrap","Internal Binding errors","NativeModule internal/assert","Internal Binding util","NativeModule internal/errors","Internal Binding config","Internal Binding timers","Intern
2024-08-27 22:31:52 +08:00
* The buffer module from node . js , for the browser .
*
* @ author Feross Aboukhadijeh < https : //feross.org>
* @ license MIT
2024-08-31 15:27:49 +08:00
* / ( f u n c t i o n ( R a ) { v a r q a = r e q u i r e B a s e 6 4 J s ( ) , J a = i e e e 7 5 4 , e d = t y p e o f S y m b o l = = " f u n c t i o n " & & t y p e o f S y m b o l . f o r = = " f u n c t i o n " ? S y m b o l . f o r ( " n o d e j s . u t i l . i n s p e c t . c u s t o m " ) : n u l l ; R a . B u f f e r = s d , R a . S l o w B u f f e r = N d , R a . I N S P E C T _ M A X _ B Y T E S = 5 0 ; v a r t d = 2 1 4 7 4 8 3 6 4 7 ; R a . k M a x L e n g t h = t d , s d . T Y P E D _ A R R A Y _ S U P P O R T = r d ( ) , ! s d . T Y P E D _ A R R A Y _ S U P P O R T & & t y p e o f c o n s o l e < " u " & & t y p e o f c o n s o l e . e r r o r = = " f u n c t i o n " & & c o n s o l e . e r r o r ( " T h i s b r o w s e r l a c k s t y p e d a r r a y ( U i n t 8 A r r a y ) s u p p o r t w h i c h i s r e q u i r e d b y ` b u f f e r ` v 5 . x . U s e ` b u f f e r ` v 4 . x i f y o u r e q u i r e o l d b r o w s e r s u p p o r t . " ) ; f u n c t i o n r d ( ) { t r y { v a r W f = n e w U i n t 8 A r r a y ( 1 ) , C f = { f o o : f u n c t i o n ( ) { r e t u r n 4 2 } } ; r e t u r n O b j e c t . s e t P r o t o t y p e O f ( C f , U i n t 8 A r r a y . p r o t o t y p e ) , O b j e c t . s e t P r o t o t y p e O f ( W f , C f ) , W f . f o o ( ) = = = 4 2 } c a t c h { r e t u r n ! 1 } } O b j e c t . d e f i n e P r o p e r t y ( s d . p r o t o t y p e , " p a r e n t " , { e n u m e r a b l e : ! 0 , g e t : f u n c t i o n ( ) { i f ( s d . i s B u f f e r ( t h i s ) ) r e t u r n t h i s . b u f f e r } } ) , O b j e c t . d e f i n e P r o p e r t y ( s d . p r o t o t y p e , " o f f s e t " , { e n u m e r a b l e : ! 0 , g e t : f u n c t i o n ( ) { i f ( s d . i s B u f f e r ( t h i s ) ) r e t u r n t h i s . b y t e O f f s e t } } ) ; f u n c t i o n o d ( W f ) { i f ( W f > t d ) t h r o w n e w R a n g e E r r o r ( ' T h e v a l u e " ' + W f + ' " i s i n v a l i d f o r o p t i o n " s i z e " ' ) ; v a r C f = n e w U i n t 8 A r r a y ( W f ) ; r e t u r n O b j e c t . s e t P r o t o t y p e O f ( C f , s d . p r o t o t y p e ) , C f } f u n c t i o n s d ( W f , C f , A f ) { i f ( t y p e o f W f = = " n u m b e r " ) { i f ( t y p e o f C f = = " s t r i n g " ) t h r o w n e w T y p e E r r o r ( ' T h e " s t r i n g " a r g u m e n t m u s t b e o f t y p e s t r i n g . R e c e i v e d t y p e n u m b e r ' ) ; r e t u r n _ d ( W f ) } r e t u r n l d ( W f , C f , A f ) } s d . p o o l S i z e = 8 1 9 2 ; f u n c t i o n l d ( W f , C f , A f ) { i f ( t y p e o f W f = = " s t r i n g " ) r e t u r n y d ( W f , C f ) ; i f ( A r r a y B u f f e r . i s V i e w ( W f ) ) r e t u r n E d ( W f ) ; i f ( W f = = n u l l ) t h r o w n e w T y p e E r r o r ( " T h e f i r s t a r g u m e n t m u s t b e o n e o f t y p e s t r i n g , B u f f e r , A r r a y B u f f e r , A r r a y , o r A r r a y - l i k e O b j e c t . R e c e i v e d t y p e " + t y p e o f W f ) ; i f ( O f ( W f , A r r a y B u f f e r ) | | W f & & O f ( W f . b u f f e r , A r r a y B u f f e r ) | | t y p e o f S h a r e d A r r a y B u f f e r < " u " & & ( O f ( W f , S h a r e d A r r a y B u f f e r ) | | W f & & O f ( W f . b u f f e r , S h a r e d A r r a y B u f f e r ) ) ) r e t u r n T d ( W f , C f , A f ) ; i f ( t y p e o f W f = = " n u m b e r " ) t h r o w n e w T y p e E r r o r ( ' T h e " v a l u e " a r g u m e n t m u s t n o t b e o f t y p e n u m b e r . R e c e i v e d t y p e n u m b e r ' ) ; v a r F f = W f . v a l u e O f & & W f . v a l u e O f ( ) ; i f ( F f ! = n u l l & & F f ! = = W f ) r e t u r n s d . f r o m ( F f , C f , A f ) ; v a r p h = I d ( W f ) ; i f ( p h ) r e t u r n p h ; i f ( t y p e o f S y m b o l < " u " & & S y m b o l . t o P r i m i t i v e ! = n u l l & & t y p e o f W f [ S y m b o l . t o P r i m i t i v e ] = = " f u n c t i o n " ) r e t u r n s d . f r o m ( W f [ S y m b o l . t o P r i m i t i v e ] ( " s t r i n g " ) , C f , A f ) ; t h r o w n e w T y p e E r r o r ( " T h e f i r s t a r g u m e n t m u s t b e o n e o f t y p e s t r i n g , B u f f e r , A r r a y B u f f e r , A r r a y , o r A r r a y - l i k e O b j e c t . R e c e i v e d t y p e " + t y p e o f W f ) } s d . f r o m = f u n c t i o n ( W f , C f , A f ) { r e t u r n l d ( W f , C f , A f ) } , O b j e c t . s e t P r o t o t y p e O f ( s d . p r o t o t y p e , U i n t 8 A r r a y . p r o t o t y p e ) , O b j e c t . s e t P r o t o t y p e O f ( s d , U i n t 8 A r r a y ) ; f u n c t i o n c d ( W f ) { i f ( t y p e o f W f ! = " n u m b e r " ) t h r o w n e w T y p e E r r o r ( ' " s i z e " a r g u m e n t m u s t b e o f t y p e n u m b e r ' ) ; i f ( W f < 0 ) t h r o w n e w R a n g e E r r o r ( ' T h e v a l u e " ' + W f + ' " i s i n v a l i d f o r o p t i o n " s i z e " ' ) } f u n c t i o n u d ( W f , C f , A f ) { r e t u r n c d ( W f ) , W f < = 0 ? o d ( W f ) : C f ! = = v o i d 0 ? t y p e o f A f = = " s t r i n g " ? o d ( W f ) . f i l l ( C f , A f ) : o d ( W f ) . f i l l ( C f ) : o d ( W f ) } s d . a l l o c = f u n c t i o n ( W f , C f , A f ) { r e t u r n u d ( W f , C f , A f ) } ; f u n c t i o n _ d ( W f ) { r e t u r n c d ( W f ) , o d ( W f < 0 ? 0 : A d ( W f ) | 0 ) } s d . a l l o c U n s a f e = f u n c t i o n ( W f ) { r e t u r n _ d ( W f ) } , s d . a l l o c U n s a f e S l o w = f u n c t i o n ( W f ) { r e t u r n _ d ( W f ) } ; f u n c t i o n y d ( W f , C f ) { i f ( ( t y p e o f C f ! = " s t r i n g " | | C f = = = " " ) & & ( C f = " u t f 8 " ) , ! s d . i s E n c o d i n g ( C f ) ) t h r o w n e w T y p e E r r o r ( " U n k n o w n e n c o d i n g : " + C f ) ; v a r A f = k d ( W f , C f ) | 0 , F f = o d ( A f ) , p h = F f . w r i t e ( W f , C f ) ; r e t u r n p h ! = = A f & & ( F f = F f . s l i c e ( 0 , p h ) ) , F f } f u n c t i o n g d ( W f ) { f o r ( v a r C f = W f . l e n g t h < 0 ? 0 : A d ( W f . l e n g t h ) | 0 , A f = o d ( C f ) , F f = 0 ; F f < C f ; F f + = 1 ) A f [ F f ] = W f [ F f ] & 2 5 5 ; r e t u r n A f } f u n c t i o n E d ( W f ) { i f ( O f ( W f , U i n t 8 A r r a y ) ) { v a r C f = n e w U i n t 8 A r r a y ( W f ) ; r e t u r n T d ( C f . b u f f e r , C f . b y t e O f f s e t , C f . b y t e L e n g t h ) } r e t u r n g d ( W f ) } f u n c t i o n T d ( W f , C f , A f ) { i f ( C f < 0 | | W f . b y t e L e n g t h < C f ) t h r o w n e w R a n g e E r r o r ( ' " o f f s e t " i s o u t s i d e o f b u f f e r b o u n d s ' ) ; i f ( W f . b y t e L e n g t h < C f + ( A f | | 0 ) ) t h r o w n e w R a n g e E r r o r ( ' " l e n g t h " i s o u t s i d e o f b u f f e r b o u n d s ' ) ; v a r F f ; r e t u r n C f = = = v o i d 0 & & A f = = = v o i d 0 ? F f = n e w U i n t 8 A r r a y ( W f ) : A f = = = v o i d 0 ? F f = n e w U i n t 8 A r r a y ( W f , C f ) : F f = n e w U i n t 8 A r r a y ( W f , C f , A f ) , O b j e c t . s e t P r o t o t y p e O f ( F f , s d . p r o t o t y p e ) , F f } f u n c t i o n I d ( W f ) { i f ( s d . i s B u f f e r ( W f ) ) { v a r C f = A d ( W f . l e n g t h ) | 0 , A f = o d ( C f ) ; r e t u r n A f . l e n g t h = = = 0 | | W f . c o p y ( A f , 0 , 0 , C f ) , A f } i f ( W f . l e n g t h ! = = v o i d 0 ) r e t u r n t y p e o f W f . l e n g t h ! = " n u m b e r " | | Z f ( W f . l e n g t h ) ? o d ( 0 ) : g d ( W f ) ; i f ( W f . t y p e = = = " B u f f e r " & & A r r a y . i s A r r a y ( W f . d a t a ) ) r e t u r n g d ( W f . d a t a ) } f u n c t i o n A d ( W f ) { i f ( W f > = t d ) t h r o w n e w R a n g e E r r o r ( " A t t e m p t t o a l l o c a t e B u f f e r l a r g e r t h a n m a x i m u m s i z e : 0 x " + t d . t o S t r i
2024-08-31 11:28:56 +08:00
` )>-1&&(Bf?Yf=Yf.split( `
` ).map(function(Of){return" "+Of}).join( `
` ).slice(2):Yf= `
` +Yf.split( `
` ).map(function(Of){return" "+Of}).join( `
` ))):Yf=Sf.stylize("[Circular]","special")),Fd(zf)){if(Bf&&yf.match(/^ \d + $ /))return Yf;zf=JSON.stringify(""+yf),zf.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)" $ /)?(zf=zf.slice(1,-1),zf=Sf.stylize(zf,"name")):(zf=zf.replace(/'/g," \\ '").replace(/ \\ "/g,'"').replace(/(^"|" $ )/g,"'"),zf=Sf.stylize(zf,"string"))}return zf+": "+Yf}function Ad(Sf,Lf,Pf){var _f=Sf.reduce(function(yf,Bf){return Bf.indexOf( `
` )>=0,yf+Bf.replace(/ \u 001b \[ \d \d ?m/g,"").length+1},0);return _f>60?Pf[0]+(Lf===""?"":Lf+ `
` )+" "+Sf.join( ` ,
2024-08-31 15:27:49 +08:00
` )+" "+Pf[1]:Pf[0]+Lf+" "+Sf.join(", ")+" "+Pf[1]}Ra.types=types;function Nd(Sf){return Array.isArray(Sf)}Ra.isArray=Nd;function kd(Sf){return typeof Sf=="boolean"}Ra.isBoolean=kd;function Rd(Sf){return Sf===null}Ra.isNull=Rd;function Md(Sf){return Sf==null}Ra.isNullOrUndefined=Md;function Bd(Sf){return typeof Sf=="number"}Ra.isNumber=Bd;function jd(Sf){return typeof Sf=="string"}Ra.isString=jd;function Vd(Sf){return typeof Sf=="symbol"}Ra.isSymbol=Vd;function Fd(Sf){return Sf===void 0}Ra.isUndefined=Fd;function Ud(Sf){return qd(Sf)&&df(Sf)==="[object RegExp]"}Ra.isRegExp=Ud,Ra.types.isRegExp=Ud;function qd(Sf){return typeof Sf=="object"&&Sf!==null}Ra.isObject=qd;function Wd(Sf){return qd(Sf)&&df(Sf)==="[object Date]"}Ra.isDate=Wd,Ra.types.isDate=Wd;function Qd(Sf){return qd(Sf)&&(df(Sf)==="[object Error]"||Sf instanceof Error)}Ra.isError=Qd,Ra.types.isNativeError=Qd;function Zd(Sf){return typeof Sf=="function"}Ra.isFunction=Zd;function Xd(Sf){return Sf===null||typeof Sf=="boolean"||typeof Sf=="number"||typeof Sf=="string"||typeof Sf=="symbol"||typeof Sf>"u"}Ra.isPrimitive=Xd,Ra.isBuffer=isBufferBrowser;function df(Sf){return Object.prototype.toString.call(Sf)}function hf(Sf){return Sf<10?"0"+Sf.toString(10):Sf.toString(10)}var gf=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function Ef(){var Sf=new Date,Lf=[hf(Sf.getHours()),hf(Sf.getMinutes()),hf(Sf.getSeconds())].join(":");return[Sf.getDate(),gf[Sf.getMonth()],Lf].join(" ")}Ra.log=function(){console.log("%s - %s",Ef(),Ra.format.apply(Ra,arguments))},Ra.inherits=inherits_browserExports,Ra._extend=function(Sf,Lf){if(!Lf||!qd(Lf))return Sf;for(var Pf=Object.keys(Lf),_f=Pf.length;_f--;)Sf[Pf[_f]]=Lf[Pf[_f]];return Sf};function wf(Sf,Lf){return Object.prototype.hasOwnProperty.call(Sf,Lf)}var $ f=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;Ra.promisify=function(Lf){if(typeof Lf!="function")throw new TypeError('The "original" argument must be of type Function');if( $ f&&Lf[ $ f]){var Pf=Lf[ $ f];if(typeof Pf!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(Pf, $ f,{value:Pf,enumerable:!1,writable:!1,configurable:!0}),Pf}function Pf(){for(var _f,yf,Bf=new Promise(function(jf,Of){_f=jf,yf=Of}),zf=[],Yf=0;Yf<arguments.length;Yf++)zf.push(arguments[Yf]);zf.push(function(jf,Of){jf?yf(jf):_f(Of)});try{Lf.apply(this,zf)}catch(jf){yf(jf)}return Bf}return Object.setPrototypeOf(Pf,Object.getPrototypeOf(Lf)), $ f&&Object.defineProperty(Pf, $ f,{value:Pf,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(Pf,ed(Lf))},Ra.promisify.custom= $ f;function Tf(Sf,Lf){if(!Sf){var Pf=new Error("Promise was rejected with a falsy value");Pf.reason=Sf,Sf=Pf}return Lf(Sf)}function bf(Sf){if(typeof Sf!="function")throw new TypeError('The "original" argument must be of type Function');function Lf(){for(var Pf=[],_f=0;_f<arguments.length;_f++)Pf.push(arguments[_f]);var yf=Pf.pop();if(typeof yf!="function")throw new TypeError("The last argument must be of type Function");var Bf=this,zf=function(){return yf.apply(Bf,arguments)};Sf.apply(this,Pf).then(function(Yf){qa.nextTick(zf.bind(null,null,Yf))},function(Yf){qa.nextTick(Tf.bind(null,Yf,zf))})}return Object.setPrototypeOf(Lf,Object.getPrototypeOf(Sf)),Object.defineProperties(Lf,ed(Sf)),Lf}Ra.callbackify=bf})(util $ 5);var buffer_list,hasRequiredBuffer_list;function requireBuffer_list(){if(hasRequiredBuffer_list)return buffer_list;hasRequiredBuffer_list=1;function Ra(Ed,Td){var Id=Object.keys(Ed);if(Object.getOwnPropertySymbols){var Ad=Object.getOwnPropertySymbols(Ed);Td&&(Ad=Ad.filter(function(Nd){return Object.getOwnPropertyDescriptor(Ed,Nd).enumerable})),Id.push.apply(Id,Ad)}return Id}function qa(Ed){for(var Td=1;Td<arguments.length;Td++){var Id=arguments[Td]!=null?arguments[Td]:{};Td%2?Ra(Object(Id),!0).forEach(function(Ad){Ja(Ed,Ad,Id[Ad])}):Object.getOwnPropertyDescriptors?Object.defineProperties(Ed,Object.getOwnPropertyDescriptors(Id)):Ra(Object(Id)).forEach(function(Ad){Object.defineProperty(Ed,Ad,Object.getOwnPropertyDescript
2024-08-30 15:19:18 +08:00
` ,Ja);Ja=td===-1?Ra.length:td}else if(ed!==-1&&Ra[Ja]==="/"&&Ra[Ja+1]==="*"){let td=Ra.indexOf("*/",Ja);td!==-1?(Ja=td+2,ed=Ra.indexOf("*/",Ja)):(qa+=Ra[Ja],Ja++)}else qa+=Ra[Ja],Ja++;return qa}function parseParams(Ra){const qa=stripComments(Ra.toString());let Ja=qa.match(FN_ARGS);if(Ja||(Ja=qa.match(ARROW_FN_ARGS)),!Ja)throw new Error( ` could not parse args in autoInject
2024-08-27 22:31:52 +08:00
Source :
2024-08-31 11:28:56 +08:00
` +qa);let[,ed]=Ja;return ed.replace(/ \s /g,"").split(FN_ARG_SPLIT).map(td=>td.replace(FN_ARG,"").trim())}function autoInject(Ra,qa){var Ja={};return Object.keys(Ra).forEach(ed=>{var td=Ra[ed],rd,od=isAsync(td),sd=!od&&td.length===1||od&&td.length===0;if(Array.isArray(td))rd=[...td],td=rd.pop(),Ja[ed]=rd.concat(rd.length>0?ld:td);else if(sd)Ja[ed]=td;else{if(rd=parseParams(td),td.length===0&&!od&&rd.length===0)throw new Error("autoInject task functions require explicit parameters.");od||rd.pop(),Ja[ed]=rd.concat(ld)}function ld(cd,ud){var _d=rd.map(yd=>cd[yd]);_d.push(ud),wrapAsync(td)(..._d)}}),auto(Ja,qa)}class DLL{constructor(){this.head=this.tail=null,this.length=0}removeLink(qa){return qa.prev?qa.prev.next=qa.next:this.head=qa.next,qa.next?qa.next.prev=qa.prev:this.tail=qa.prev,qa.prev=qa.next=null,this.length-=1,qa}empty(){for(;this.head;)this.shift();return this}insertAfter(qa,Ja){Ja.prev=qa,Ja.next=qa.next,qa.next?qa.next.prev=Ja:this.tail=Ja,qa.next=Ja,this.length+=1}insertBefore(qa,Ja){Ja.prev=qa.prev,Ja.next=qa,qa.prev?qa.prev.next=Ja:this.head=Ja,qa.prev=Ja,this.length+=1}unshift(qa){this.head?this.insertBefore(this.head,qa):setInitial(this,qa)}push(qa){this.tail?this.insertAfter(this.tail,qa):setInitial(this,qa)}shift(){return this.head&&this.removeLink(this.head)}pop(){return this.tail&&this.removeLink(this.tail)}toArray(){return[...this]}*[Symbol.iterator](){for(var qa=this.head;qa;)yield qa.data,qa=qa.next}remove(qa){for(var Ja=this.head;Ja;){var{next:ed}=Ja;qa(Ja)&&this.removeLink(Ja),Ja=ed}return this}}function setInitial(Ra,qa){Ra.length=1,Ra.head=Ra.tail=qa}function queue $ 1(Ra,qa,Ja){if(qa==null)qa=1;else if(qa===0)throw new RangeError("Concurrency must not be zero");var ed=wrapAsync(Ra),td=0,rd=[];const od={error:[],drain:[],saturated:[],unsaturated:[],empty:[]};function sd(Nd,kd){od[Nd].push(kd)}function ld(Nd,kd){const Rd=(...Md)=>{cd(Nd,Rd),kd(...Md)};od[Nd].push(Rd)}function cd(Nd,kd){if(!Nd)return Object.keys(od).forEach(Rd=>od[Rd]=[]);if(!kd)return od[Nd]=[];od[Nd]=od[Nd].filter(Rd=>Rd!==kd)}function ud(Nd,...kd){od[Nd].forEach(Rd=>Rd(...kd))}var _d=!1;function yd(Nd,kd,Rd,Md){if(Md!=null&&typeof Md!="function")throw new Error("task callback must be a function");Ad.started=!0;var Bd,jd;function Vd(Ud,...qd){if(Ud)return Rd?jd(Ud):Bd();if(qd.length<=1)return Bd(qd[0]);Bd(qd)}var Fd=Ad._createTaskItem(Nd,Rd?Vd:Md||Vd);if(kd?Ad._tasks.unshift(Fd):Ad._tasks.push(Fd),_d||(_d=!0,setImmediate $ 1 $ 1(()=>{_d=!1,Ad.process()})),Rd||!Md)return new Promise((Ud,qd)=>{Bd=Ud,jd=qd})}function gd(Nd){return function(kd,...Rd){td-=1;for(var Md=0,Bd=Nd.length;Md<Bd;Md++){var jd=Nd[Md],Vd=rd.indexOf(jd);Vd===0?rd.shift():Vd>0&&rd.splice(Vd,1),jd.callback(kd,...Rd),kd!=null&&ud("error",kd,jd.data)}td<=Ad.concurrency-Ad.buffer&&ud("unsaturated"),Ad.idle()&&ud("drain"),Ad.process()}}function Ed(Nd){return Nd.length===0&&Ad.idle()?(setImmediate $ 1 $ 1(()=>ud("drain")),!0):!1}const Td=Nd=>kd=>{if(!kd)return new Promise((Rd,Md)=>{ld(Nd,(Bd,jd)=>{if(Bd)return Md(Bd);Rd(jd)})});cd(Nd),sd(Nd,kd)};var Id=!1,Ad={_tasks:new DLL,_createTaskItem(Nd,kd){return{data:Nd,callback:kd}},*[Symbol.iterator](){yield*Ad._tasks[Symbol.iterator]()},concurrency:qa,payload:Ja,buffer:qa/4,started:!1,paused:!1,push(Nd,kd){return Array.isArray(Nd)?Ed(Nd)?void 0:Nd.map(Rd=>yd(Rd,!1,!1,kd)):yd(Nd,!1,!1,kd)},pushAsync(Nd,kd){return Array.isArray(Nd)?Ed(Nd)?void 0:Nd.map(Rd=>yd(Rd,!1,!0,kd)):yd(Nd,!1,!0,kd)},kill(){cd(),Ad._tasks.empty()},unshift(Nd,kd){return Array.isArray(Nd)?Ed(Nd)?void 0:Nd.map(Rd=>yd(Rd,!0,!1,kd)):yd(Nd,!0,!1,kd)},unshiftAsync(Nd,kd){return Array.isArray(Nd)?Ed(Nd)?void 0:Nd.map(Rd=>yd(Rd,!0,!0,kd)):yd(Nd,!0,!0,kd)},remove(Nd){Ad._tasks.remove(Nd)},process(){if(!Id){for(Id=!0;!Ad.paused&&td<Ad.concurrency&&Ad._tasks.length;){var Nd=[],kd=[],Rd=Ad._tasks.length;Ad.payload&&(Rd=Math.min(Rd,Ad.payload));for(var Md=0;Md<Rd;Md++){var Bd=Ad._tasks.shift();Nd.push(Bd),rd.push(Bd),kd.push(Bd.data)}td+=1,Ad._tasks.length===0&&ud("empty"),td===Ad.concurrency&&ud("saturated");var jd=onlyOnce(gd(Nd));ed(kd,jd)}Id=!1}},length(){return Ad._tasks.
2024-08-27 22:31:52 +08:00
* @ license
* Lodash < https : //lodash.com/>
* Copyright OpenJS Foundation and other contributors < https : //openjsf.org/>
* Released under MIT license < https : //lodash.com/license>
* Based on Underscore . js 1.8 . 3 < http : //underscorejs.org/LICENSE>
* Copyright Jeremy Ashkenas , DocumentCloud and Investigative Reporters & Editors
2024-08-31 11:28:56 +08:00
* /lodash.exports;(function(Ra,qa){(function(){var Ja,ed="4.17.21",td=200,rd="Unsupported core-js use. Try https:/ / npms . io / search ? q = ponyfill . ",od=" Expected a function ",sd=" Invalid ` variable ` option passed into ` _.template ` ",ld=" _ _lodash _hash _undefined _ _ ",cd=500,ud=" _ _lodash _placeholder _ _ ",_d=1,yd=2,gd=4,Ed=1,Td=2,Id=1,Ad=2,Nd=4,kd=8,Rd=16,Md=32,Bd=64,jd=128,Vd=256,Fd=512,Ud=30,qd=" ... ",Wd=800,Qd=16,Zd=1,Xd=2,df=3,hf=1/0,gf=9007199254740991,Ef=17976931348623157e292,wf=NaN,$f=4294967295,Tf=$f-1,bf=$f>>>1,Sf=[[" ary ",jd],[" bind ",Id],[" bindKey ",Ad],[" curry ",kd],[" curryRight ",Rd],[" flip ",Fd],[" partial ",Md],[" partialRight ",Bd],[" rearg ",Vd]],Lf=" [ object Arguments ] ",Pf=" [ object Array ] ",_f=" [ object AsyncFunction ] ",yf=" [ object Boolean ] ",Bf=" [ object Date ] ",zf=" [ object DOMException ] ",Yf=" [ object Error ] ",jf=" [ object Function ] ",Of=" [ object GeneratorFunction ] ",Zf=" [ object Map ] ",yh=" [ object Number ] ",Wf=" [ object Null ] ",Cf=" [ object Object ] ",Af=" [ object Promise ] ",Ff=" [ object Proxy ] ",ph=" [ object RegExp ] ",Dh=" [ object Set ] ",uh=" [ object String ] ",Ih=" [ object Symbol ] ",Ah=" [ object Undefined ] ",Rh=" [ object WeakMap ] ",Jh=" [ object WeakSet ] ",Wh=" [ object ArrayBuffer ] ",am=" [ object DataView ] ",dm=" [ object Float32Array ] ",ih=" [ object Float64Array ] ",Rf=" [ object Int8Array ] ",xf=" [ object Int16Array ] ",Xf=" [ object Int32Array ] ",qf=" [ object Uint8Array ] ",gh=" [ object Uint8ClampedArray ] ",wh=" [ object Uint16Array ] ",Yh=" [ object Uint32Array ] ",mm=/\b__p \+= '';/g,kh=/\b(__p \+=) '' \+/g,um=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Sm=/&(?:amp|lt|gt|quot|#39);/g,_m=/[&<>" ']/g,jm=RegExp(Sm.source),Jm=RegExp(_m.source),_1=/<%-([\s\S]+?)%>/g,S1=/<%([\s\S]+?)%>/g,Qm=/<%=([\s\S]+?)%>/g,M1=/\.|\[(?:[^[\]]*|(["' ] ) ( ? : ( ? ! \ 1 ) [ ^ \ \ ] | \ \ . ) * ? \ 1 ) \ ] / , y1 = /^\w*$/ , H1 = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g , U1 = /[\\^$.*+?()[\]{}|]/g , k1 = RegExp ( U1 . source ) , I1 = /^\s+/ , Hm = /\s/ , v1 = /\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/ , o0 = /\{\n\/\* \[wrapped with (.+)\] \*/ , R1 = /,? & / , Df = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g , bh = /[()=,{}\[\]\/\s]/ , dh = /\\(\\)?/g , Ch = /\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g , qh = /\w*$/ , jh = /^[-+]0x[0-9a-f]+$/i , Gh = /^0b[01]+$/i , Hh = /^\[object .+?Constructor\]$/ , Oh = /^0o[0-7]+$/i , Lh = /^(?:0|[1-9]\d*)$/ , Qh = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g , cm = /($^)/ , Gf = /['\n\r\u2028\u2029\\]/g , $m = "\\ud800-\\udfff" , c1 = "\\u0300-\\u036f" , m1 = "\\ufe20-\\ufe2f" , o1 = "\\u20d0-\\u20ff" , Mm = c1 + m1 + o1 , T1 = "\\u2700-\\u27bf" , p1 = "a-z\\xdf-\\xf6\\xf8-\\xff" , l1 = "\\xac\\xb1\\xd7\\xf7" , hh = "\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf" , Uh = "\\u2000-\\u206f" , Nm = " \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000" , Fm = "A-Z\\xc0-\\xd6\\xd8-\\xde" , hm = "\\ufe0e\\ufe0f" , Wm = l1 + hh + Uh + Nm , C1 = "['’ ]" , r0 = "[" + $m + "]" , V1 = "[" + Wm + "]" , A0 = "[" + Mm + "]" , g0 = "\\d+" , g1 = "[" + T1 + "]" , U0 = "[" + p1 + "]" , j1 = "[^" + $m + Wm + g0 + T1 + p1 + Fm + "]" , E0 = "\\ud83c[\\udffb-\\udfff]" , d0 = "(?:" + A0 + "|" + E0 + ")" , e _ = "[^" + $m + "]" , m _ = "(?:\\ud83c[\\udde6-\\uddff]){2}" , S0 = "[\\ud800-\\udbff][\\udc00-\\udfff]" , t _ = "[" + Fm + "]" , ag = "\\u200d" , V _ = "(?:" + U0 + "|" + j1 + ")" , s1 = "(?:" + t _ + "|" + j1 + ")" , _ _ = "(?:" + C1 + "(?:d|ll|m|re|s|t|ve))?" , v0 = "(?:" + C1 + "(?:D|LL|M|RE|S|T|VE))?" , og = d0 + "?" , yg = "[" + hm + "]?" , g _ = "(?:" + ag + "(?:" + [ e _ , m _ , S0 ] . join ( "|" ) + ")" + yg + og + ")*" , N _ = "\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])" , p0 = "\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])" , W0 = yg + og + g _ , o _ = "(?:" + [ g1 , m _ , S0 ] . join ( "|" ) + ")" + W0 , r _ = "(?:" + [ e _ + A0 + "?" , A0 , m _ , S0 , r0 ] . join ( "|" ) + ")" , z _ = RegExp ( C1 , "g" ) , gv = RegExp ( A0 , "g" ) , jg = RegExp ( E0 + "(?=" + E0 + ")|" + r _ + W0 , "g" ) , vv = RegExp ( [ t _ + "?" + U0 + "+" + _ _ + "(?=" + [ V1 , t _ , "$" ] . join ( "|" ) + ")" , s1 + "+" + v0 + "(?=" + [ V1 , t _ + V _ , "$" ] . join ( "|" ) + ")" , t _ + "?" + V _ + "+" + _ _ , t _ + "+" + v0 , p0 , N _ , g0 , o _ ] . join ( "|" ) , "g" ) , Zv = RegExp ( "[" + ag + $m + Mm + hm + "]" ) , Ug = /[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/ , qg = [ "Array" , "Buffer" , "DataView" , "Date" , "Error" , "Float32Array" , "Float64Array" , "Function" , "Int8Array" , "Int16Array" , "Int32Array" , "Map" , "Math" , "Object" , "Promise" , "RegExp" , "Set" , "String" , "Symbol" , "TypeError" , "Uint8Array" , "Uint8ClampedArray" , "Uint16Array" , "Uint32Array" , "WeakMap" , "_" , " clearTim
/* [wrapped with `+Jd+`] */
` )}function Ld(Hd){return O1(Hd)||wb(Hd)||!!(wE&&Hd&&Hd[wE])}function Yd(Hd,Jd){var Nf=typeof Hd;return Jd=Jd??gf,!!Jd&&(Nf=="number"||Nf!="symbol"&&Lh.test(Hd))&&Hd>-1&&Hd%1==0&&Hd<Jd}function Kd(Hd,Jd,Nf){if(!N0(Nf))return!1;var Qf=typeof Jd;return(Qf=="number"?C_(Nf)&&Yd(Jd,Nf.length):Qf=="string"&&Jd in Nf)?vg(Nf[Jd],Hd):!1}function pf(Hd,Jd){if(O1(Hd))return!1;var Nf=typeof Hd;return Nf=="number"||Nf=="symbol"||Nf=="boolean"||Hd==null||U_(Hd)?!0:y1.test(Hd)||!M1.test(Hd)||Jd!=null&&Hd in i0(Jd)}function kf(Hd){var Jd=typeof Hd;return Jd=="string"||Jd=="number"||Jd=="symbol"||Jd=="boolean"?Hd!=="__proto__":Hd===null}function Uf(Hd){var Jd=Cb(Hd),Nf= $ h[Jd];if(typeof Nf!="function"||!(Jd in E1.prototype))return!1;if(Hd===Nf)return!0;var Qf=Tb(Nf);return!!Qf&&Hd===Qf[0]}function Jf(Hd){return!!Rb&&Rb in Hd}var sh=dg?fv:fS;function _h(Hd){var Jd=Hd&&Hd.constructor,Nf=typeof Jd=="function"&&Jd.prototype|| $ _;return Hd===Nf}function Fh(Hd){return Hd===Hd&&!N0(Hd)}function zh(Hd,Jd){return function(Nf){return Nf==null?!1:Nf[Hd]===Jd&&(Jd!==Ja||Hd in i0(Nf))}}function om(Hd){var Jd=_2(Hd,function(Qf){return Nf.size===cd&&Nf.clear(),Qf}),Nf=Jd.cache;return Jd}function im(Hd,Jd){var Nf=Hd[1],Qf=Jd[1],Th=Nf|Qf,Mh=Th<(Id|Ad|jd),Xh=Qf==jd&&Nf==kd||Qf==jd&&Nf==Vd&&Hd[7].length<=Jd[8]||Qf==(jd|Vd)&&Jd[7].length<=Jd[8]&&Nf==kd;if(!(Mh||Xh))return Hd;Qf&Id&&(Hd[2]=Jd[2],Th|=Nf&Id?0:Nd);var Zh=Jd[3];if(Zh){var fm=Hd[3];Hd[3]=fm?Xb(fm,Zh,Jd[4]):Zh,Hd[4]=fm?c_(Hd[3],ud):Jd[4]}return Zh=Jd[5],Zh&&(fm=Hd[5],Hd[5]=fm?sE(fm,Zh,Jd[6]):Zh,Hd[6]=fm?c_(Hd[5],ud):Jd[6]),Zh=Jd[7],Zh&&(Hd[7]=Zh),Qf&jd&&(Hd[8]=Hd[8]==null?Jd[8]:k0(Hd[8],Jd[8])),Hd[9]==null&&(Hd[9]=Jd[9]),Hd[0]=Jd[0],Hd[1]=Th,Hd}function Tm(Hd){var Jd=[];if(Hd!=null)for(var Nf in i0(Hd))Jd.push(Nf);return Jd}function Rm(Hd){return K_.call(Hd)}function zm(Hd,Jd,Nf){return Jd=u0(Jd===Ja?Hd.length-1:Jd,0),function(){for(var Qf=arguments,Th=-1,Mh=u0(Qf.length-Jd,0),Xh=gm(Mh);++Th<Mh;)Xh[Th]=Qf[Jd+Th];Th=-1;for(var Zh=gm(Jd+1);++Th<Jd;)Zh[Th]=Qf[Th];return Zh[Jd]=Nf(Xh),Um(Hd,this,Zh)}}function Xm(Hd,Jd){return Jd.length<2?Hd: $ g(Hd,B0(Jd,0,-1))}function Zm(Hd,Jd){for(var Nf=Hd.length,Qf=k0(Jd.length,Nf),Th=a_(Hd);Qf--;){var Mh=Jd[Qf];Hd[Qf]=Yd(Mh,Nf)?Th[Mh]:Ja}return Hd}function Ym(Hd,Jd){if(!(Jd==="constructor"&&typeof Hd[Jd]=="function")&&Jd!="__proto__")return Hd[Jd]}var r1=n0(ZE),d1=Pb||function(Hd,Jd){return K1.setTimeout(Hd,Jd)},u1=n0(U2);function $ 1(Hd,Jd,Nf){var Qf=Jd+"";return u1(Hd,Od(Qf,x0(b0(Qf),Nf)))}function n0(Hd){var Jd=0,Nf=0;return function(){var Qf=w2(),Th=Qd-(Qf-Nf);if(Nf=Qf,Th>0){if(++Jd>=Wd)return arguments[0]}else Jd=0;return Hd.apply(Ja,arguments)}}function y0(Hd,Jd){var Nf=-1,Qf=Hd.length,Th=Qf-1;for(Jd=Jd===Ja?Qf:Jd;++Nf<Jd;){var Mh=Wb(Nf,Th),Xh=Hd[Mh];Hd[Mh]=Hd[Nf],Hd[Nf]=Xh}return Hd.length=Jd,Hd}var l0=om(function(Hd){var Jd=[];return Hd.charCodeAt(0)===46&&Jd.push(""),Hd.replace(H1,function(Nf,Qf,Th,Mh){Jd.push(Th?Mh.replace(dh," $ 1"):Qf||Nf)}),Jd});function m0(Hd){if(typeof Hd=="string"||U_(Hd))return Hd;var Jd=Hd+"";return Jd=="0"&&1/Hd==-hf?"-0":Jd}function C0(Hd){if(Hd!=null){try{return wv.call(Hd)}catch{}try{return Hd+""}catch{}}return""}function x0(Hd,Jd){return D1(Sf,function(Nf){var Qf="_."+Nf[0];Jd&Nf[1]&&!Wg(Hd,Qf)&&Hd.push(Qf)}),Hd.sort()}function Y0(Hd){if(Hd instanceof E1)return Hd.clone();var Jd=new t0(Hd.__wrapped__,Hd.__chain__);return Jd.__actions__=a_(Hd.__actions__),Jd.__index__=Hd.__index__,Jd.__values__=Hd.__values__,Jd}function V0(Hd,Jd,Nf){(Nf?Kd(Hd,Jd,Nf):Jd===Ja)?Jd=1:Jd=u0(P1(Jd),0);var Qf=Hd==null?0:Hd.length;if(!Qf||Jd<1)return[];for(var Th=0,Mh=0,Xh=gm(nb(Qf/Jd));Th<Qf;)Xh[Mh++]=B0(Hd,Th,Th+=Jd);return Xh}function $ 0(Hd){for(var Jd=-1,Nf=Hd==null?0:Hd.length,Qf=0,Th=[];++Jd<Nf;){var Mh=Hd[Jd];Mh&&(Th[Qf++]=Mh)}return Th}function w0(){var Hd=arguments.length;if(!Hd)return[];for(var Jd=gm(Hd-1),Nf=arguments[0],Qf=Hd;Qf--;)Jd[Qf-1]=arguments[Qf];return D_(O1(Nf)?a_(Nf):[Nf],M0(Jd,1))}var _0=B1(function(Hd,Jd){return F0(Hd)?cb(Hd,M0(Jd,1,F0,!0)):[]}),Z0=B1(function(Hd,Jd){var Nf=ng(Jd);return F0(Nf)&&(Nf=Ja),F0(Hd)?cb(Hd,M0(Jd,1,F0,!0
` ;Hd.replace(n1,function(w1,q1,W1,q_,h_,H_){return W1||(W1=q_),Vm+=Hd.slice(Pm,H_).replace(Gf,Yg),q1&&(Zh=!0,Vm+= ` ' +
_ _e ( ` +q1+ ` ) +
'`),h_&&(fm=!0,Vm+=`' ;
` +h_+ ` ;
_ _p += '`),W1&&(Vm+=`' +
2024-08-30 15:19:18 +08:00
( ( _ _t = ( ` +W1+ ` ) ) == null ? '' : _ _t ) +
2024-08-31 11:28:56 +08:00
'`),Pm=H_+w1.length,w1}),Vm+=`' ;
` ;var x1=Z1.call(Jd,"variable")&&Jd.variable;if(!x1)Vm= ` with ( obj ) {
` +Vm+ `
2024-08-27 22:31:52 +08:00
}
2024-08-31 11:28:56 +08:00
` ;else if(bh.test(x1))throw new A1(sd);Vm=(fm?Vm.replace(mm,""):Vm).replace(kh," $ 1").replace(um," $ 1;"),Vm="function("+(x1||"obj")+ ` ) {
` +(x1?"": ` obj || ( obj = { } ) ;
` )+"var __t, __p = ''"+(Zh?", __e = _.escape":"")+(fm? ` , _ _j = Array . prototype . join ;
2024-08-27 22:31:52 +08:00
function print ( ) { _ _p += _ _j . call ( arguments , '' ) }
` : ` ;
2024-08-31 11:28:56 +08:00
` )+Vm+ ` return _ _p
2024-08-31 15:27:49 +08:00
} ` ;var L1=KS(function(){return z1(Mh,h1+"return "+Vm).apply(Ja,Xh)});if(L1.source=Vm,rS(L1))throw L1;return L1}function mw(Hd){return a0(Hd).toLowerCase()}function _w(Hd){return a0(Hd).toUpperCase()}function gw(Hd,Jd,Nf){if(Hd=a0(Hd),Hd&&(Nf||Jd===Ja))return i1(Hd);if(!Hd||!(Jd=p_(Jd)))return Hd;var Qf=k_(Hd),Th=k_(Jd),Mh=Y1(Qf,Th),Xh=O0(Qf,Th)+1;return _g(Qf,Mh,Xh).join("")}function vw(Hd,Jd,Nf){if(Hd=a0(Hd),Hd&&(Nf||Jd===Ja))return Hd.slice(0,Oy(Hd)+1);if(!Hd||!(Jd=p_(Jd)))return Hd;var Qf=k_(Hd),Th=O0(Qf,k_(Jd))+1;return _g(Qf,0,Th).join("")}function bw(Hd,Jd,Nf){if(Hd=a0(Hd),Hd&&(Nf||Jd===Ja))return Hd.replace(I1,"");if(!Hd||!(Jd=p_(Jd)))return Hd;var Qf=k_(Hd),Th=Y1(Qf,k_(Jd));return _g(Qf,Th).join("")}function yw(Hd,Jd){var Nf=Ud,Qf=qd;if(N0(Jd)){var Th="separator"in Jd?Jd.separator:Th;Nf="length"in Jd?P1(Jd.length):Nf,Qf="omission"in Jd?p_(Jd.omission):Qf}Hd=a0(Hd);var Mh=Hd.length;if(Cv(Hd)){var Xh=k_(Hd);Mh=Xh.length}if(Nf>=Mh)return Hd;var Zh=Nf-xv(Qf);if(Zh<1)return Qf;var fm=Xh?_g(Xh,0,Zh).join(""):Hd.slice(0,Zh);if(Th===Ja)return fm+Qf;if(Xh&&(Zh+=fm.length-Zh),nS(Th)){if(Hd.slice(Zh).search(Th)){var Pm,Lm=fm;for(Th.global||(Th=rb(Th.source,a0(qh.exec(Th))+"g")),Th.lastIndex=0;Pm=Th.exec(Lm);)var Vm=Pm.index;fm=fm.slice(0,Vm===Ja?Zh:Vm)}}else if(Hd.indexOf(p_(Th),Zh)!=Zh){var n1=fm.lastIndexOf(Th);n1>-1&&(fm=fm.slice(0,n1))}return fm+Qf}function Ew(Hd){return Hd=a0(Hd),Hd&&jm.test(Hd)?Hd.replace(Sm,SE):Hd}var Sw=zv(function(Hd,Jd,Nf){return Hd+(Nf?" ":"")+Jd.toUpperCase()}),sS=a2("toUpperCase");function WS(Hd,Jd,Nf){return Hd=a0(Hd),Jd=Nf?Ja:Jd,Jd===Ja?vE(Hd)?CE(Hd): $ y(Hd):Hd.match(Jd)||[]}var KS=B1(function(Hd,Jd){try{return Um(Hd,Ja,Jd)}catch(Nf){return rS(Nf)?Nf:new A1(Nf)}}),Tw=Z_(function(Hd,Jd){return D1(Jd,function(Nf){Nf=m0(Nf),hg(Hd,Nf,eS(Hd[Nf],Hd))}),Hd});function Cw(Hd){var Jd=Hd==null?0:Hd.length,Nf=b1();return Hd=Jd?s0(Hd,function(Qf){if(typeof Qf[1]!="function")throw new y_(od);return[Nf(Qf[0]),Qf[1]]}):[],B1(function(Qf){for(var Th=-1;++Th<Jd;){var Mh=Hd[Th];if(Um(Mh[0],this,Qf))return Um(Mh[1],this,Qf)}})}function xw(Hd){return P2(d_(Hd,_d))}function lS(Hd){return function(){return Hd}}function ww(Hd,Jd){return Hd==null||Hd!==Hd?Jd:Hd}var Nw=o2(),Aw=o2(!0);function w_(Hd){return Hd}function cS(Hd){return Lv(typeof Hd=="function"?Hd:d_(Hd,_d))}function Dw(Hd){return WE(d_(Hd,_d))}function kw(Hd,Jd){return eE(Hd,d_(Jd,_d))}var $ w=B1(function(Hd,Jd){return function(Nf){return Bv(Nf,Hd,Jd)}}),Iw=B1(function(Hd,Jd){return function(Nf){return Bv(Hd,Nf,Jd)}});function uS(Hd,Jd,Nf){var Qf=Q0(Jd),Th=zb(Jd,Qf);Nf==null&&!(N0(Jd)&&(Th.length||!Qf.length))&&(Nf=Jd,Jd=Hd,Hd=this,Th=zb(Jd,Q0(Jd)));var Mh=!(N0(Nf)&&"chain"in Nf)||!!Nf.chain,Xh=fv(Hd);return D1(Th,function(Zh){var fm=Jd[Zh];Hd[Zh]=fm,Xh&&(Hd.prototype[Zh]=function(){var Pm=this.__chain__;if(Mh||Pm){var Lm=Hd(this.__wrapped__),Vm=Lm.__actions__=a_(this.__actions__);return Vm.push({func:fm,args:arguments,thisArg:Hd}),Lm.__chain__=Pm,Lm}return fm.apply(Hd,D_([this.value()],arguments))})}),Hd}function Ow(){return K1._===this&&(K1._=J0),this}function dS(){}function Rw(Hd){return Hd=P1(Hd),B1(function(Jd){return jv(Jd,Hd)})}var Mw=Jb(s0),Bw=Jb(s_),Pw=Jb(Tg);function YS(Hd){return pf(Hd)?Nh(m0(Hd)):F2(Hd)}function Lw(Hd){return function(Jd){return Hd==null?Ja: $ g(Hd,Jd)}}var Fw=pv(),jw=pv(!0);function pS(){return[]}function fS(){return!1}function Uw(){return{}}function qw(){return""}function Hw(){return!0}function Vw(Hd,Jd){if(Hd=P1(Hd),Hd<1||Hd>gf)return[];var Nf= $ f,Qf=k0(Hd, $ f);Jd=b1(Jd),Hd-= $ f;for(var Th=Km(Qf,Jd);++Nf<Hd;)Jd(Nf);return Th}function zw(Hd){return O1(Hd)?s0(Hd,m0):U_(Hd)?[Hd]:a_(l0(a0(Hd)))}function Gw(Hd){var Jd=++xE;return a0(Hd)+Jd}var Ww=Gv(function(Hd,Jd){return Hd+Jd},0),Kw=dE("ceil"),Yw=Gv(function(Hd,Jd){return Hd/Jd},1),Xw=dE("floor");function Qw(Hd){return Hd&&Hd.length?Hb(Hd,w_,Gb):Ja}function Jw(Hd,Jd){return Hd&&Hd.length?Hb(Hd,b1(Jd,2),Gb):Ja}function Zw(Hd){return oh(Hd,w_)}function e4(Hd,Jd){return oh(Hd,b1(Jd,2))}function t4(Hd){return Hd&&Hd.length?Hb(Hd,w_,cv):Ja}function r4(Hd,Jd){return Hd&&Hd.length?Hb(Hd,b1
2024-08-30 15:19:18 +08:00
` :"")),Ja&&Ja()}function rd(od){return od.interrupt?(od.interrupt.append=Ra,od.interrupt.end=td,od.interrupt=!1,Ra(!0),!0):!1}if(Ra(!1,qa.indents+(qa.name?"<"+qa.name:"")+(qa.attributes.length?" "+qa.attributes.join(" "):"")+(ed?qa.name?">":"":qa.name?"/>":"")+(qa.indent&&ed>1? `
` :"")),!ed)return Ra(!1,qa.indent? `
` :"");rd(qa)||td()}function attribute(Ra,qa){return Ra+'="'+escapeForXML(qa)+'"'}xml $ 2.exports=xml $ 1;xml $ 2.exports.element=xml $ 2.exports.Element=element;var xmlExports=xml $ 2.exports;const Xml=getDefaultExportFromCjs(xmlExports);var xml2js={},defaults $ 1={},hasRequiredDefaults;function requireDefaults(){return hasRequiredDefaults||(hasRequiredDefaults=1,(function(){defaults $ 1.defaults={"0.1":{explicitCharkey:!1,trim:!0,normalize:!0,normalizeTags:!1,attrkey:"@",charkey:"#",explicitArray:!1,ignoreAttrs:!1,mergeAttrs:!1,explicitRoot:!1,validator:null,xmlns:!1,explicitChildren:!1,childkey:"@@",charsAsChildren:!1,includeWhiteChars:!1,async:!1,strict:!0,attrNameProcessors:null,attrValueProcessors:null,tagNameProcessors:null,valueProcessors:null,emptyTag:""},"0.2":{explicitCharkey:!1,trim:!1,normalize:!1,normalizeTags:!1,attrkey:" $ ",charkey:"_",explicitArray:!0,ignoreAttrs:!1,mergeAttrs:!1,explicitRoot:!0,validator:null,xmlns:!1,explicitChildren:!1,preserveChildrenOrder:!1,childkey:" $ $ ",charsAsChildren:!1,includeWhiteChars:!1,async:!1,strict:!0,attrNameProcessors:null,attrValueProcessors:null,tagNameProcessors:null,valueProcessors:null,rootName:"root",xmldec:{version:"1.0",encoding:"UTF-8",standalone:!0},doctype:null,renderOpts:{pretty:!0,indent:" ",newline: `
2024-08-31 11:28:56 +08:00
` },headless:!1,chunkSize:1e4,emptyTag:"",cdata:!1}}}).call(commonjsGlobal)),defaults $ 1}var builder={},lib $ 1={},Utility={},hasRequiredUtility;function requireUtility(){return hasRequiredUtility||(hasRequiredUtility=1,(function(){var Ra,qa,Ja,ed,td,rd,od,sd=[].slice,ld={}.hasOwnProperty;Ra=function(){var cd,ud,_d,yd,gd,Ed;if(Ed=arguments[0],gd=2<=arguments.length?sd.call(arguments,1):[],td(Object.assign))Object.assign.apply(null,arguments);else for(cd=0,_d=gd.length;cd<_d;cd++)if(yd=gd[cd],yd!=null)for(ud in yd)ld.call(yd,ud)&&(Ed[ud]=yd[ud]);return Ed},td=function(cd){return!!cd&&Object.prototype.toString.call(cd)==="[object Function]"},rd=function(cd){var ud;return!!cd&&((ud=typeof cd)=="function"||ud==="object")},Ja=function(cd){return td(Array.isArray)?Array.isArray(cd):Object.prototype.toString.call(cd)==="[object Array]"},ed=function(cd){var ud;if(Ja(cd))return!cd.length;for(ud in cd)if(ld.call(cd,ud))return!1;return!0},od=function(cd){var ud,_d;return rd(cd)&&(_d=Object.getPrototypeOf(cd))&&(ud=_d.constructor)&&typeof ud=="function"&&ud instanceof ud&&Function.prototype.toString.call(ud)===Function.prototype.toString.call(Object)},qa=function(cd){return td(cd.valueOf)?cd.valueOf():cd},Utility.assign=Ra,Utility.isFunction=td,Utility.isObject=rd,Utility.isArray=Ja,Utility.isEmpty=ed,Utility.isPlainObject=od,Utility.getValue=qa}).call(commonjsGlobal)),Utility}var XMLDOMImplementation={exports:{}},hasRequiredXMLDOMImplementation;function requireXMLDOMImplementation(){return hasRequiredXMLDOMImplementation||(hasRequiredXMLDOMImplementation=1,(function(){XMLDOMImplementation.exports=function(){function Ra(){}return Ra.prototype.hasFeature=function(qa,Ja){return!0},Ra.prototype.createDocumentType=function(qa,Ja,ed){throw new Error("This DOM method is not implemented.")},Ra.prototype.createDocument=function(qa,Ja,ed){throw new Error("This DOM method is not implemented.")},Ra.prototype.createHTMLDocument=function(qa){throw new Error("This DOM method is not implemented.")},Ra.prototype.getFeature=function(qa,Ja){throw new Error("This DOM method is not implemented.")},Ra}()}).call(commonjsGlobal)),XMLDOMImplementation.exports}var XMLDocument={exports:{}},XMLDOMConfiguration={exports:{}},XMLDOMErrorHandler={exports:{}},hasRequiredXMLDOMErrorHandler;function requireXMLDOMErrorHandler(){return hasRequiredXMLDOMErrorHandler||(hasRequiredXMLDOMErrorHandler=1,(function(){XMLDOMErrorHandler.exports=function(){function Ra(){}return Ra.prototype.handleError=function(qa){throw new Error(qa)},Ra}()}).call(commonjsGlobal)),XMLDOMErrorHandler.exports}var XMLDOMStringList={exports:{}},hasRequiredXMLDOMStringList;function requireXMLDOMStringList(){return hasRequiredXMLDOMStringList||(hasRequiredXMLDOMStringList=1,(function(){XMLDOMStringList.exports=function(){function Ra(qa){this.arr=qa||[]}return Object.defineProperty(Ra.prototype,"length",{get:function(){return this.arr.length}}),Ra.prototype.item=function(qa){return this.arr[qa]||null},Ra.prototype.contains=function(qa){return this.arr.indexOf(qa)!==-1},Ra}()}).call(commonjsGlobal)),XMLDOMStringList.exports}var hasRequiredXMLDOMConfiguration;function requireXMLDOMConfiguration(){return hasRequiredXMLDOMConfiguration||(hasRequiredXMLDOMConfiguration=1,(function(){var Ra,qa;Ra=requireXMLDOMErrorHandler(),qa=requireXMLDOMStringList(),XMLDOMConfiguration.exports=function(){function Ja(){this.defaultParams={"canonical-form":!1,"cdata-sections":!1,comments:!1,"datatype-normalization":!1,"element-content-whitespace":!0,entities:!0,"error-handler":new Ra,infoset:!0,"validate-if-schema":!1,namespaces:!0,"namespace-declarations":!0,"normalize-characters":!1,"schema-location":"","schema-type":"","split-cdata-sections":!0,validate:!1,"well-formed":!0},this.params=Object.create(this.defaultParams)}return Object.defineProperty(Ja.prototype,"parameterNames",{get:function(){return new qa(Object.keys(this.defaultParams))}}),Ja.prototype.getParameter=function(ed){return this.params.hasOwnProperty(ed)?this.params[ed]:null},Ja.prototype.canSetParameter=function(ed,td){return!0},Ja.prototype.setParameter=fu
` ,od.offset=(cd=rd.offset)!=null?cd:0,od.dontPrettyTextNodes=(ud=(_d=rd.dontPrettyTextNodes)!=null?_d:rd.dontprettytextnodes)!=null?ud:0,od.spaceBeforeSlash=(yd=(gd=rd.spaceBeforeSlash)!=null?gd:rd.spacebeforeslash)!=null?yd:"",od.spaceBeforeSlash===!0&&(od.spaceBeforeSlash=" "),od.suppressPrettyCount=0,od.user={},od.state=qa.None,od},td.prototype.indent=function(rd,od,sd){var ld;return!od.pretty||od.suppressPrettyCount?"":od.pretty&&(ld=(sd||0)+od.offset+1,ld>0)?new Array(ld).join(od.indent):""},td.prototype.endline=function(rd,od,sd){return!od.pretty||od.suppressPrettyCount?"":od.newline},td.prototype.attribute=function(rd,od,sd){var ld;return this.openAttribute(rd,od,sd),ld=" "+rd.name+'="'+rd.value+'"',this.closeAttribute(rd,od,sd),ld},td.prototype.cdata=function(rd,od,sd){var ld;return this.openNode(rd,od,sd),od.state=qa.OpenTag,ld=this.indent(rd,od,sd)+"<![CDATA[",od.state=qa.InsideTag,ld+=rd.value,od.state=qa.CloseTag,ld+="]]>"+this.endline(rd,od,sd),od.state=qa.None,this.closeNode(rd,od,sd),ld},td.prototype.comment=function(rd,od,sd){var ld;return this.openNode(rd,od,sd),od.state=qa.OpenTag,ld=this.indent(rd,od,sd)+"<!-- ",od.state=qa.InsideTag,ld+=rd.value,od.state=qa.CloseTag,ld+=" -->"+this.endline(rd,od,sd),od.state=qa.None,this.closeNode(rd,od,sd),ld},td.prototype.declaration=function(rd,od,sd){var ld;return this.openNode(rd,od,sd),od.state=qa.OpenTag,ld=this.indent(rd,od,sd)+"<?xml",od.state=qa.InsideTag,ld+=' version="'+rd.version+'"',rd.encoding!=null&&(ld+=' encoding="'+rd.encoding+'"'),rd.standalone!=null&&(ld+=' standalone="'+rd.standalone+'"'),od.state=qa.CloseTag,ld+=od.spaceBeforeSlash+"?>",ld+=this.endline(rd,od,sd),od.state=qa.None,this.closeNode(rd,od,sd),ld},td.prototype.docType=function(rd,od,sd){var ld,cd,ud,_d,yd;if(sd||(sd=0),this.openNode(rd,od,sd),od.state=qa.OpenTag,_d=this.indent(rd,od,sd),_d+="<!DOCTYPE "+rd.root().name,rd.pubID&&rd.sysID?_d+=' PUBLIC "'+rd.pubID+'" "'+rd.sysID+'"':rd.sysID&&(_d+=' SYSTEM "'+rd.sysID+'"'),rd.children.length>0){for(_d+=" [",_d+=this.endline(rd,od,sd),od.state=qa.InsideTag,yd=rd.children,cd=0,ud=yd.length;cd<ud;cd++)ld=yd[cd],_d+=this.writeChildNode(ld,od,sd+1);od.state=qa.CloseTag,_d+="]"}return od.state=qa.CloseTag,_d+=od.spaceBeforeSlash+">",_d+=this.endline(rd,od,sd),od.state=qa.None,this.closeNode(rd,od,sd),_d},td.prototype.element=function(rd,od,sd){var ld,cd,ud,_d,yd,gd,Ed,Td,Id,Ad,Nd,kd,Rd,Md;sd||(sd=0),Ad=!1,Nd="",this.openNode(rd,od,sd),od.state=qa.OpenTag,Nd+=this.indent(rd,od,sd)+"<"+rd.name,kd=rd.attribs;for(Id in kd)ed.call(kd,Id)&&(ld=kd[Id],Nd+=this.attribute(ld,od,sd));if(ud=rd.children.length,_d=ud===0?null:rd.children[0],ud===0||rd.children.every(function(Bd){return(Bd.type===Ra.Text||Bd.type===Ra.Raw)&&Bd.value===""}))od.allowEmpty?(Nd+=">",od.state=qa.CloseTag,Nd+="</"+rd.name+">"+this.endline(rd,od,sd)):(od.state=qa.CloseTag,Nd+=od.spaceBeforeSlash+"/>"+this.endline(rd,od,sd));else if(od.pretty&&ud===1&&(_d.type===Ra.Text||_d.type===Ra.Raw)&&_d.value!=null)Nd+=">",od.state=qa.InsideTag,od.suppressPrettyCount++,Ad=!0,Nd+=this.writeChildNode(_d,od,sd+1),od.suppressPrettyCount--,Ad=!1,od.state=qa.CloseTag,Nd+="</"+rd.name+">"+this.endline(rd,od,sd);else{if(od.dontPrettyTextNodes){for(Rd=rd.children,yd=0,Ed=Rd.length;yd<Ed;yd++)if(cd=Rd[yd],(cd.type===Ra.Text||cd.type===Ra.Raw)&&cd.value!=null){od.suppressPrettyCount++,Ad=!0;break}}for(Nd+=">"+this.endline(rd,od,sd),od.state=qa.InsideTag,Md=rd.children,gd=0,Td=Md.length;gd<Td;gd++)cd=Md[gd],Nd+=this.writeChildNode(cd,od,sd+1);od.state=qa.CloseTag,Nd+=this.indent(rd,od,sd)+"</"+rd.name+">",Ad&&od.suppressPrettyCount--,Nd+=this.endline(rd,od,sd),od.state=qa.None}return this.closeNode(rd,od,sd),Nd},td.prototype.writeChildNode=function(rd,od,sd){switch(rd.type){case Ra.CData:return this.cdata(rd,od,sd);case Ra.Comment:return this.comment(rd,od,sd);case Ra.Element:return this.element(rd,od,sd);case Ra.Raw:return this.raw(rd,od,sd);case Ra.Text:return this.text(rd,od,sd);case Ra.ProcessingInstruction:return this.processingInstruction(rd,od,sd);case Ra.Dummy:return"";case Ra.Declaration:return
` ||_f===" \r "||_f===" "}function Md(_f){return _f==='"'||_f==="'"}function Bd(_f){return _f===">"||Rd(_f)}function jd(_f,yf){return _f.test(yf)}function Vd(_f,yf){return!jd(_f,yf)}var Fd=0;qa.STATE={BEGIN:Fd++,BEGIN_WHITESPACE:Fd++,TEXT:Fd++,TEXT_ENTITY:Fd++,OPEN_WAKA:Fd++,SGML_DECL:Fd++,SGML_DECL_QUOTED:Fd++,DOCTYPE:Fd++,DOCTYPE_QUOTED:Fd++,DOCTYPE_DTD:Fd++,DOCTYPE_DTD_QUOTED:Fd++,COMMENT_STARTING:Fd++,COMMENT:Fd++,COMMENT_ENDING:Fd++,COMMENT_ENDED:Fd++,CDATA:Fd++,CDATA_ENDING:Fd++,CDATA_ENDING_2:Fd++,PROC_INST:Fd++,PROC_INST_BODY:Fd++,PROC_INST_ENDING:Fd++,OPEN_TAG:Fd++,OPEN_TAG_SLASH:Fd++,ATTRIB:Fd++,ATTRIB_NAME:Fd++,ATTRIB_NAME_SAW_WHITE:Fd++,ATTRIB_VALUE:Fd++,ATTRIB_VALUE_QUOTED:Fd++,ATTRIB_VALUE_CLOSED:Fd++,ATTRIB_VALUE_UNQUOTED:Fd++,ATTRIB_VALUE_ENTITY_Q:Fd++,ATTRIB_VALUE_ENTITY_U:Fd++,CLOSE_TAG:Fd++,CLOSE_TAG_SAW_WHITE:Fd++,SCRIPT:Fd++,SCRIPT_ENDING:Fd++},qa.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},qa.ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'",AElig:198,Aacute:193,Acirc:194,Agrave:192,Aring:197,Atilde:195,Auml:196,Ccedil:199,ETH:208,Eacute:201,Ecirc:202,Egrave:200,Euml:203,Iacute:205,Icirc:206,Igrave:204,Iuml:207,Ntilde:209,Oacute:211,Ocirc:212,Ograve:210,Oslash:216,Otilde:213,Ouml:214,THORN:222,Uacute:218,Ucirc:219,Ugrave:217,Uuml:220,Yacute:221,aacute:225,acirc:226,aelig:230,agrave:224,aring:229,atilde:227,auml:228,ccedil:231,eacute:233,ecirc:234,egrave:232,eth:240,euml:235,iacute:237,icirc:238,igrave:236,iuml:239,ntilde:241,oacute:243,ocirc:244,ograve:242,oslash:248,otilde:245,ouml:246,szlig:223,thorn:254,uacute:250,ucirc:251,ugrave:249,uuml:252,yacute:253,yuml:255,copy:169,reg:174,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,ordf:170,laquo:171,not:172,shy:173,macr:175,deg:176,plusmn:177,sup1:185,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,times:215,divide:247,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830},Object.keys(qa.ENTITIES).forEach(function(_f){var yf=qa.ENTITIES[_f],Bf=typeof yf=="number"?String.fromCharCode(yf):yf;qa.ENTITIES[_f]=Bf});for(var Ud in qa.STATE)qa.STATE[qa.STATE[Ud]]=Ud;Fd=qa.STATE;function qd(_f,yf,Bf){_f[yf]&&_f[yf](Bf)}function Wd(_f,yf,Bf){_f.textNode&&Qd(_f),qd(_f,yf,Bf)}function Qd(_f){_f.textNode=Zd(_f.opt,_f.textNode),_f.textNode&&qd(_f,"ontext",_f.textNode),_f.textNode=""}function Zd(_f,yf){return _f.trim&&(yf=yf.trim()),_f.normalize&&(yf=yf.replace(/ \s +/g," ")),yf}function Xd(_f,yf){return Qd(_f),_f.trackPosition&&(yf+= `
Line : ` +_f.line+ `
Column : ` +_f.column+ `
Char : ` +_f.c),yf=new Error(yf),_f.error=yf,qd(_f,"onerror",yf),_f}function df(_f){return _f.sawRoot&&!_f.closedRoot&&hf(_f,"Unclosed root tag"),_f.state!==Fd.BEGIN&&_f.state!==Fd.BEGIN_WHITESPACE&&_f.state!==Fd.TEXT&&Xd(_f,"Unexpected end"),Qd(_f),_f.c="",_f.closed=!0,qd(_f,"onend"),ed.call(_f,_f.strict,_f.opt),_f}function hf(_f,yf){if(typeof _f!="object"||!(_f instanceof ed))throw new Error("bad call to strictFail");_f.strict&&Xd(_f,yf)}function gf(_f){_f.strict||(_f.tagName=_f.tagName[_f.looseCase]());var yf=_f.tags[_f.tags.length-1]||_f,Bf=_f.tag={name:_f.tagName,attributes:{}};_f.opt.xmlns&&(Bf.ns=yf.ns),_f.attribList.length=0,Wd(_f,"onopentagstart",Bf)}function Ef(_f,yf){var Bf=_f.indexOf(":"),zf=Bf<0?["",_f]:_f.split(":"),Yf=zf[0],jf=zf[1];return yf&&_f==="xmlns"&&(Yf="xmlns",jf=""),{prefix:Yf,local:jf}}function wf(_f){if(_f.strict||(_f.attribName=_f.attribName[_f.looseCase]()),_f.attribList.indexOf(_f.attribName)!==-1||_f.tag.attributes.hasOwnProperty(_f.attribName)){_f.attribName=_f.attribValue="";return}if(_f.opt.xmlns){var yf=Ef(_f.attribName,!0),Bf=yf.prefix,zf=yf.local;if(Bf==="xmlns")if(zf==="xml"&&_f.attribValue!==gd)hf(_f,"xml: prefix must be bound to "+gd+ `
Actual : ` +_f.attribValue);else if(zf==="xmlns"&&_f.attribValue!==Ed)hf(_f,"xmlns: prefix must be bound to "+Ed+ `
Actual : ` +_f.attribValue);else{var Yf=_f.tag,jf=_f.tags[_f.tags.length-1]||_f;Yf.ns===jf.ns&&(Yf.ns=Object.create(jf.ns)),Yf.ns[zf]=_f.attribValue}_f.attribList.push([_f.attribName,_f.attribValue])}else _f.tag.attributes[_f.attribName]=_f.attribValue,Wd(_f,"onattribute",{name:_f.attribName,value:_f.attribValue});_f.attribName=_f.attribValue=""}function $ f(_f,yf){if(_f.opt.xmlns){var Bf=_f.tag,zf=Ef(_f.tagName);Bf.prefix=zf.prefix,Bf.local=zf.local,Bf.uri=Bf.ns[zf.prefix]||"",Bf.prefix&&!Bf.uri&&(hf(_f,"Unbound namespace prefix: "+JSON.stringify(_f.tagName)),Bf.uri=zf.prefix);var Yf=_f.tags[_f.tags.length-1]||_f;Bf.ns&&Yf.ns!==Bf.ns&&Object.keys(Bf.ns).forEach(function(uh){Wd(_f,"onopennamespace",{prefix:uh,uri:Bf.ns[uh]})});for(var jf=0,Of=_f.attribList.length;jf<Of;jf++){var Zf=_f.attribList[jf],yh=Zf[0],Wf=Zf[1],Cf=Ef(yh,!0),Af=Cf.prefix,Ff=Cf.local,ph=Af===""?"":Bf.ns[Af]||"",Dh={name:yh,value:Wf,prefix:Af,local:Ff,uri:ph};Af&&Af!=="xmlns"&&!ph&&(hf(_f,"Unbound namespace prefix: "+JSON.stringify(Af)),Dh.uri=Af),_f.tag.attributes[yh]=Dh,Wd(_f,"onattribute",Dh)}_f.attribList.length=0}_f.tag.isSelfClosing=!!yf,_f.sawRoot=!0,_f.tags.push(_f.tag),Wd(_f,"onopentag",_f.tag),yf||(!_f.noscript&&_f.tagName.toLowerCase()==="script"?_f.state=Fd.SCRIPT:_f.state=Fd.TEXT,_f.tag=null,_f.tagName=""),_f.attribName=_f.attribValue="",_f.attribList.length=0}function Tf(_f){if(!_f.tagName){hf(_f,"Weird empty close tag."),_f.textNode+="</>",_f.state=Fd.TEXT;return}if(_f.script){if(_f.tagName!=="script"){_f.script+="</"+_f.tagName+">",_f.tagName="",_f.state=Fd.SCRIPT;return}Wd(_f,"onscript",_f.script),_f.script=""}var yf=_f.tags.length,Bf=_f.tagName;_f.strict||(Bf=Bf[_f.looseCase]());for(var zf=Bf;yf--;){var Yf=_f.tags[yf];if(Yf.name!==zf)hf(_f,"Unexpected close tag");else break}if(yf<0){hf(_f,"Unmatched closing tag: "+_f.tagName),_f.textNode+="</"+_f.tagName+">",_f.state=Fd.TEXT;return}_f.tagName=Bf;for(var jf=_f.tags.length;jf-- >yf;){var Of=_f.tag=_f.tags.pop();_f.tagName=_f.tag.name,Wd(_f,"onclosetag",_f.tagName);var Zf={};for(var yh in Of.ns)Zf[yh]=Of.ns[yh];var Wf=_f.tags[_f.tags.length-1]||_f;_f.opt.xmlns&&Of.ns!==Wf.ns&&Object.keys(Of.ns).forEach(function(Cf){var Af=Of.ns[Cf];Wd(_f,"onclosenamespace",{prefix:Cf,uri:Af})})}yf===0&&(_f.closedRoot=!0),_f.tagName=_f.attribValue=_f.attribName="",_f.attribList.length=0,_f.state=Fd.TEXT}function bf(_f){var yf=_f.entity,Bf=yf.toLowerCase(),zf,Yf="";return _f.ENTITIES[yf]?_f.ENTITIES[yf]:_f.ENTITIES[Bf]?_f.ENTITIES[Bf]:(yf=Bf,yf.charAt(0)==="#"&&(yf.charAt(1)==="x"?(yf=yf.slice(2),zf=parseInt(yf,16),Yf=zf.toString(16)):(yf=yf.slice(1),zf=parseInt(yf,10),Yf=zf.toString(10))),yf=yf.replace(/^0+/,""),isNaN(zf)||Yf.toLowerCase()!==yf?(hf(_f,"Invalid character entity"),"&"+_f.entity+";"):String.fromCodePoint(zf))}function Sf(_f,yf){yf==="<"?(_f.state=Fd.OPEN_WAKA,_f.startTagPosition=_f.position):Rd(yf)||(hf(_f,"Non-whitespace before first tag."),_f.textNode=yf,_f.state=Fd.TEXT)}function Lf(_f,yf){var Bf="";return yf<_f.length&&(Bf=_f.charAt(yf)),Bf}function Pf(_f){var yf=this;if(this.error)throw this.error;if(yf.closed)return Xd(yf,"Cannot write after close. Assign an onready handler.");if(_f===null)return df(yf);typeof _f=="object"&&(_f=_f.toString());for(var Bf=0,zf="";zf=Lf(_f,Bf++),yf.c=zf,!!zf;)switch(yf.trackPosition&&(yf.position++,zf=== `
` ?(yf.line++,yf.column=0):yf.column++),yf.state){case Fd.BEGIN:if(yf.state=Fd.BEGIN_WHITESPACE,zf===" \u FEFF")continue;Sf(yf,zf);continue;case Fd.BEGIN_WHITESPACE:Sf(yf,zf);continue;case Fd.TEXT:if(yf.sawRoot&&!yf.closedRoot){for(var Yf=Bf-1;zf&&zf!=="<"&&zf!=="&";)zf=Lf(_f,Bf++),zf&&yf.trackPosition&&(yf.position++,zf=== `
2024-08-31 15:27:49 +08:00
` ?(yf.line++,yf.column=0):yf.column++);yf.textNode+=_f.substring(Yf,Bf-1)}zf==="<"&&!(yf.sawRoot&&yf.closedRoot&&!yf.strict)?(yf.state=Fd.OPEN_WAKA,yf.startTagPosition=yf.position):(!Rd(zf)&&(!yf.sawRoot||yf.closedRoot)&&hf(yf,"Text data outside of root node."),zf==="&"?yf.state=Fd.TEXT_ENTITY:yf.textNode+=zf);continue;case Fd.SCRIPT:zf==="<"?yf.state=Fd.SCRIPT_ENDING:yf.script+=zf;continue;case Fd.SCRIPT_ENDING:zf==="/"?yf.state=Fd.CLOSE_TAG:(yf.script+="<"+zf,yf.state=Fd.SCRIPT);continue;case Fd.OPEN_WAKA:if(zf==="!")yf.state=Fd.SGML_DECL,yf.sgmlDecl="";else if(!Rd(zf))if(jd(Id,zf))yf.state=Fd.OPEN_TAG,yf.tagName=zf;else if(zf==="/")yf.state=Fd.CLOSE_TAG,yf.tagName="";else if(zf==="?")yf.state=Fd.PROC_INST,yf.procInstName=yf.procInstBody="";else{if(hf(yf,"Unencoded <"),yf.startTagPosition+1<yf.position){var jf=yf.position-yf.startTagPosition;zf=new Array(jf).join(" ")+zf}yf.textNode+="<"+zf,yf.state=Fd.TEXT}continue;case Fd.SGML_DECL:if(yf.sgmlDecl+zf==="--"){yf.state=Fd.COMMENT,yf.comment="",yf.sgmlDecl="";continue}yf.doctype&&yf.doctype!==!0&&yf.sgmlDecl?(yf.state=Fd.DOCTYPE_DTD,yf.doctype+="<!"+yf.sgmlDecl+zf,yf.sgmlDecl=""):(yf.sgmlDecl+zf).toUpperCase()===_d?(Wd(yf,"onopencdata"),yf.state=Fd.CDATA,yf.sgmlDecl="",yf.cdata=""):(yf.sgmlDecl+zf).toUpperCase()===yd?(yf.state=Fd.DOCTYPE,(yf.doctype||yf.sawRoot)&&hf(yf,"Inappropriately located doctype declaration"),yf.doctype="",yf.sgmlDecl=""):zf===">"?(Wd(yf,"onsgmldeclaration",yf.sgmlDecl),yf.sgmlDecl="",yf.state=Fd.TEXT):(Md(zf)&&(yf.state=Fd.SGML_DECL_QUOTED),yf.sgmlDecl+=zf);continue;case Fd.SGML_DECL_QUOTED:zf===yf.q&&(yf.state=Fd.SGML_DECL,yf.q=""),yf.sgmlDecl+=zf;continue;case Fd.DOCTYPE:zf===">"?(yf.state=Fd.TEXT,Wd(yf,"ondoctype",yf.doctype),yf.doctype=!0):(yf.doctype+=zf,zf==="["?yf.state=Fd.DOCTYPE_DTD:Md(zf)&&(yf.state=Fd.DOCTYPE_QUOTED,yf.q=zf));continue;case Fd.DOCTYPE_QUOTED:yf.doctype+=zf,zf===yf.q&&(yf.q="",yf.state=Fd.DOCTYPE);continue;case Fd.DOCTYPE_DTD:zf==="]"?(yf.doctype+=zf,yf.state=Fd.DOCTYPE):zf==="<"?(yf.state=Fd.OPEN_WAKA,yf.startTagPosition=yf.position):Md(zf)?(yf.doctype+=zf,yf.state=Fd.DOCTYPE_DTD_QUOTED,yf.q=zf):yf.doctype+=zf;continue;case Fd.DOCTYPE_DTD_QUOTED:yf.doctype+=zf,zf===yf.q&&(yf.state=Fd.DOCTYPE_DTD,yf.q="");continue;case Fd.COMMENT:zf==="-"?yf.state=Fd.COMMENT_ENDING:yf.comment+=zf;continue;case Fd.COMMENT_ENDING:zf==="-"?(yf.state=Fd.COMMENT_ENDED,yf.comment=Zd(yf.opt,yf.comment),yf.comment&&Wd(yf,"oncomment",yf.comment),yf.comment=""):(yf.comment+="-"+zf,yf.state=Fd.COMMENT);continue;case Fd.COMMENT_ENDED:zf!==">"?(hf(yf,"Malformed comment"),yf.comment+="--"+zf,yf.state=Fd.COMMENT):yf.doctype&&yf.doctype!==!0?yf.state=Fd.DOCTYPE_DTD:yf.state=Fd.TEXT;continue;case Fd.CDATA:zf==="]"?yf.state=Fd.CDATA_ENDING:yf.cdata+=zf;continue;case Fd.CDATA_ENDING:zf==="]"?yf.state=Fd.CDATA_ENDING_2:(yf.cdata+="]"+zf,yf.state=Fd.CDATA);continue;case Fd.CDATA_ENDING_2:zf===">"?(yf.cdata&&Wd(yf,"oncdata",yf.cdata),Wd(yf,"onclosecdata"),yf.cdata="",yf.state=Fd.TEXT):zf==="]"?yf.cdata+="]":(yf.cdata+="]]"+zf,yf.state=Fd.CDATA);continue;case Fd.PROC_INST:zf==="?"?yf.state=Fd.PROC_INST_ENDING:Rd(zf)?yf.state=Fd.PROC_INST_BODY:yf.procInstName+=zf;continue;case Fd.PROC_INST_BODY:if(!yf.procInstBody&&Rd(zf))continue;zf==="?"?yf.state=Fd.PROC_INST_ENDING:yf.procInstBody+=zf;continue;case Fd.PROC_INST_ENDING:zf===">"?(Wd(yf,"onprocessinginstruction",{name:yf.procInstName,body:yf.procInstBody}),yf.procInstName=yf.procInstBody="",yf.state=Fd.TEXT):(yf.procInstBody+="?"+zf,yf.state=Fd.PROC_INST_BODY);continue;case Fd.OPEN_TAG:jd(Ad,zf)?yf.tagName+=zf:(gf(yf),zf===">"? $ f(yf):zf==="/"?yf.state=Fd.OPEN_TAG_SLASH:(Rd(zf)||hf(yf,"Invalid character in tag name"),yf.state=Fd.ATTRIB));continue;case Fd.OPEN_TAG_SLASH:zf===">"?( $ f(yf,!0),Tf(yf)):(hf(yf,"Forward-slash in opening tag not followed by >"),yf.state=Fd.ATTRIB);continue;case Fd.ATTRIB:if(Rd(zf))continue;zf===">"? $ f(yf):zf==="/"?yf.state=Fd.OPEN_TAG_SLASH:jd(Id,zf)?(yf.attribName=zf,yf.attribValue="",yf.state=Fd.ATTRIB_NAME):hf(yf,"Invalid attribute name");continue;case Fd.ATTRIB_NAME:zf==="="?yf.state
2024-08-31 11:28:56 +08:00
` &&Ra[rd]!==" \r ";rd++)ld+=Ra[rd];if(ld=ld.trim(),ld[ld.length-1]==="/"&&(ld=ld.substring(0,ld.length-1),rd--),!validateTagName(ld)){let _d;return ld.trim().length===0?_d="Invalid space after '<'.":_d="Tag '"+ld+"' is an invalid name.",getErrorObject("InvalidTag",_d,getLineNumberForPosition(Ra,rd))}const cd=readAttributeStr(Ra,rd);if(cd===!1)return getErrorObject("InvalidAttr","Attributes for '"+ld+"' have open quote.",getLineNumberForPosition(Ra,rd));let ud=cd.value;if(rd=cd.index,ud[ud.length-1]==="/"){const _d=rd-ud.length;ud=ud.substring(0,ud.length-1);const yd=validateAttributeString(ud,qa);if(yd===!0)ed=!0;else return getErrorObject(yd.err.code,yd.err.msg,getLineNumberForPosition(Ra,_d+yd.err.line))}else if(sd)if(cd.tagClosed){if(ud.trim().length>0)return getErrorObject("InvalidTag","Closing tag '"+ld+"' can't have attributes or invalid starting.",getLineNumberForPosition(Ra,od));if(Ja.length===0)return getErrorObject("InvalidTag","Closing tag '"+ld+"' has not been opened.",getLineNumberForPosition(Ra,od));{const _d=Ja.pop();if(ld!==_d.tagName){let yd=getLineNumberForPosition(Ra,_d.tagStartPos);return getErrorObject("InvalidTag","Expected closing tag '"+_d.tagName+"' (opened in line "+yd.line+", col "+yd.col+") instead of closing tag '"+ld+"'.",getLineNumberForPosition(Ra,od))}Ja.length==0&&(td=!0)}}else return getErrorObject("InvalidTag","Closing tag '"+ld+"' doesn't have proper closing.",getLineNumberForPosition(Ra,rd));else{const _d=validateAttributeString(ud,qa);if(_d!==!0)return getErrorObject(_d.err.code,_d.err.msg,getLineNumberForPosition(Ra,rd-ud.length+_d.err.line));if(td===!0)return getErrorObject("InvalidXml","Multiple possible root nodes found.",getLineNumberForPosition(Ra,rd));qa.unpairedTags.indexOf(ld)!==-1||Ja.push({tagName:ld,tagStartPos:od}),ed=!0}for(rd++;rd<Ra.length;rd++)if(Ra[rd]==="<")if(Ra[rd+1]==="!"){rd++,rd=readCommentAndCDATA(Ra,rd);continue}else if(Ra[rd+1]==="?"){if(rd=readPI(Ra,++rd),rd.err)return rd}else break;else if(Ra[rd]==="&"){const _d=validateAmpersand(Ra,rd);if(_d==-1)return getErrorObject("InvalidChar","char '&' is not expected.",getLineNumberForPosition(Ra,rd));rd=_d}else if(td===!0&&!isWhiteSpace(Ra[rd]))return getErrorObject("InvalidXml","Extra text at the end",getLineNumberForPosition(Ra,rd));Ra[rd]==="<"&&rd--}}else{if(isWhiteSpace(Ra[rd]))continue;return getErrorObject("InvalidChar","char '"+Ra[rd]+"' is not expected.",getLineNumberForPosition(Ra,rd))}if(ed){if(Ja.length==1)return getErrorObject("InvalidTag","Unclosed tag '"+Ja[0].tagName+"'.",getLineNumberForPosition(Ra,Ja[0].tagStartPos));if(Ja.length>0)return getErrorObject("InvalidXml","Invalid '"+JSON.stringify(Ja.map(rd=>rd.tagName),null,4).replace(/ \r ? \n /g,"")+"' found.",{line:1,col:1})}else return getErrorObject("InvalidXml","Start tag expected.",1);return!0};function isWhiteSpace(Ra){return Ra===" "||Ra===" "||Ra=== `
2024-08-30 15:19:18 +08:00
` ||Ra===" \r "}function readPI(Ra,qa){const Ja=qa;for(;qa<Ra.length;qa++)if(Ra[qa]=="?"||Ra[qa]==" "){const ed=Ra.substr(Ja,qa-Ja);if(qa>5&&ed==="xml")return getErrorObject("InvalidXml","XML declaration allowed only at the start of the document.",getLineNumberForPosition(Ra,qa));if(Ra[qa]=="?"&&Ra[qa+1]==">"){qa++;break}else continue}return qa}function readCommentAndCDATA(Ra,qa){if(Ra.length>qa+5&&Ra[qa+1]==="-"&&Ra[qa+2]==="-"){for(qa+=3;qa<Ra.length;qa++)if(Ra[qa]==="-"&&Ra[qa+1]==="-"&&Ra[qa+2]===">"){qa+=2;break}}else if(Ra.length>qa+8&&Ra[qa+1]==="D"&&Ra[qa+2]==="O"&&Ra[qa+3]==="C"&&Ra[qa+4]==="T"&&Ra[qa+5]==="Y"&&Ra[qa+6]==="P"&&Ra[qa+7]==="E"){let Ja=1;for(qa+=8;qa<Ra.length;qa++)if(Ra[qa]==="<")Ja++;else if(Ra[qa]===">"&&(Ja--,Ja===0))break}else if(Ra.length>qa+9&&Ra[qa+1]==="["&&Ra[qa+2]==="C"&&Ra[qa+3]==="D"&&Ra[qa+4]==="A"&&Ra[qa+5]==="T"&&Ra[qa+6]==="A"&&Ra[qa+7]==="["){for(qa+=8;qa<Ra.length;qa++)if(Ra[qa]==="]"&&Ra[qa+1]==="]"&&Ra[qa+2]===">"){qa+=2;break}}return qa}const doubleQuote='"',singleQuote="'";function readAttributeStr(Ra,qa){let Ja="",ed="",td=!1;for(;qa<Ra.length;qa++){if(Ra[qa]===doubleQuote||Ra[qa]===singleQuote)ed===""?ed=Ra[qa]:ed!==Ra[qa]||(ed="");else if(Ra[qa]===">"&&ed===""){td=!0;break}Ja+=Ra[qa]}return ed!==""?!1:{value:Ja,index:qa,tagClosed:td}}const validAttrStrRegxp=new RegExp( ` ( \ \ s * ) ( [ ^ \ \ s = ] + ) ( \ \ s *= ) ? ( \ \ s * ( [ '"])(([\\s\\S])*?)\\5)?`,"g");function validateAttributeString(Ra,qa){const Ja=util$3.getAllMatches(Ra,validAttrStrRegxp),ed={};for(let td=0;td<Ja.length;td++){if(Ja[td][1].length===0)return getErrorObject("InvalidAttr","Attribute ' "+Ja[td][2]+" ' has no space in starting.",getPositionFromMatch(Ja[td]));if(Ja[td][3]!==void 0&&Ja[td][4]===void 0)return getErrorObject("InvalidAttr","Attribute ' "+Ja[td][2]+" ' is without value.",getPositionFromMatch(Ja[td]));if(Ja[td][3]===void 0&&!qa.allowBooleanAttributes)return getErrorObject("InvalidAttr","boolean attribute ' "+Ja[td][2]+" ' is not allowed.",getPositionFromMatch(Ja[td]));const rd=Ja[td][2];if(!validateAttrName(rd))return getErrorObject("InvalidAttr","Attribute ' "+rd+" ' is an invalid name.",getPositionFromMatch(Ja[td]));if(!ed.hasOwnProperty(rd))ed[rd]=1;else return getErrorObject("InvalidAttr","Attribute ' "+rd+" ' is repeated . ",getPositionFromMatch(Ja[td]))}return!0}function validateNumberAmpersand(Ra,qa){let Ja=/\d/;for(Ra[qa]===" x "&&(qa++,Ja=/[\da-fA-F]/);qa<Ra.length;qa++){if(Ra[qa]===" ; ")return qa;if(!Ra[qa].match(Ja))break}return-1}function validateAmpersand(Ra,qa){if(qa++,Ra[qa]===" ; ")return-1;if(Ra[qa]===" # ")return qa++,validateNumberAmpersand(Ra,qa);let Ja=0;for(;qa<Ra.length;qa++,Ja++)if(!(Ra[qa].match(/\w/)&&Ja<20)){if(Ra[qa]===" ; ")break;return-1}return qa}function getErrorObject(Ra,qa,Ja){return{err:{code:Ra,msg:qa,line:Ja.line||Ja,col:Ja.col}}}function validateAttrName(Ra){return util$3.isName(Ra)}function validateTagName(Ra){return util$3.isName(Ra)}function getLineNumberForPosition(Ra,qa){const Ja=Ra.substring(0,qa).split(/\r?\n/);return{line:Ja.length,col:Ja[Ja.length-1].length+1}}function getPositionFromMatch(Ra){return Ra.startIndex+Ra[1].length}var OptionsBuilder={};const defaultOptions$1={preserveOrder:!1,attributeNamePrefix:" @ _ ",attributesGroupName:!1,textNodeName:" # text ",ignoreAttributes:!0,removeNSPrefix:!1,allowBooleanAttributes:!1,parseTagValue:!0,parseAttributeValue:!1,trimValues:!0,cdataPropName:!1,numberParseOptions:{hex:!0,leadingZeros:!0,eNotation:!0},tagValueProcessor:function(Ra,qa){return qa},attributeValueProcessor:function(Ra,qa){return qa},stopNodes:[],alwaysCreateTextNode:!1,isArray:()=>!1,commentPropName:!1,unpairedTags:[],processEntities:!0,htmlEntities:!1,ignoreDeclaration:!1,ignorePiTags:!1,transformTagName:!1,transformAttributeName:!1,updateTag:function(Ra,qa,Ja){return Ra}},buildOptions$1=function(Ra){return Object.assign({},defaultOptions$1,Ra)};OptionsBuilder.buildOptions=buildOptions$1;OptionsBuilder.defaultOptions=defaultOptions$1;class XmlNode{constructor(qa){this.tagname=qa,this.child=[],this[" : @ "]={}}add(qa,Ja){qa===" _ _proto _ _ "&&(qa=" # _ _proto _ _ " ) , this . child . push ( { [ qa ] : Ja } ) } addChild ( qa )
2024-08-31 11:28:56 +08:00
` );const qa=new xmlNode("!xml");let Ja=qa,ed="",td="";for(let rd=0;rd<Ra.length;rd++)if(Ra[rd]==="<")if(Ra[rd+1]==="/"){const sd=findClosingIndex(Ra,">",rd,"Closing Tag is not closed.");let ld=Ra.substring(rd+2,sd).trim();if(this.options.removeNSPrefix){const _d=ld.indexOf(":");_d!==-1&&(ld=ld.substr(_d+1))}this.options.transformTagName&&(ld=this.options.transformTagName(ld)),Ja&&(ed=this.saveTextToParentTag(ed,Ja,td));const cd=td.substring(td.lastIndexOf(".")+1);if(ld&&this.options.unpairedTags.indexOf(ld)!==-1)throw new Error( ` Unpaired tag can not be used as closing tag : < /${ld}>`);let ud=0;cd&&this.options.unpairedTags.indexOf(cd)!==-1?(ud=td.lastIndexOf(".",td.lastIndexOf(".")-1),this.tagsNodeStack.pop()):ud=td.lastIndexOf("."),td=td.substring(0,ud),Ja=this.tagsNodeStack.pop(),ed="",rd=sd}else if(Ra[rd+1]==="?"){let sd=readTagExp(Ra,rd,!1,"?>");if(!sd)throw new Error("Pi Tag is not closed.");if(ed=this.saveTextToParentTag(ed,Ja,td),!(this.options.ignoreDeclaration&&sd.tagName==="?xml"||this.options.ignorePiTags)){const ld=new xmlNode(sd.tagName);ld.add(this.options.textNodeName,""),sd.tagName!==sd.tagExp&&sd.attrExpPresent&&(ld[":@"]=this.buildAttributesMap(sd.tagExp,td,sd.tagName)),this.addChild(Ja,ld,td)}rd=sd.closeIndex+1}else if(Ra.substr(rd+1,3)==="!--"){const sd=findClosingIndex(Ra,"-->",rd+4,"Comment is not closed.");if(this.options.commentPropName){const ld=Ra.substring(rd+4,sd-2);ed=this.saveTextToParentTag(ed,Ja,td),Ja.add(this.options.commentPropName,[{[this.options.textNodeName]:ld}])}rd=sd}else if(Ra.substr(rd+1,2)==="!D"){const sd=readDocType(Ra,rd);this.docTypeEntities=sd.entities,rd=sd.i}else if(Ra.substr(rd+1,2)==="!["){const sd=findClosingIndex(Ra,"]]>",rd,"CDATA is not closed.")-2,ld=Ra.substring(rd+9,sd);ed=this.saveTextToParentTag(ed,Ja,td);let cd=this.parseTextData(ld,Ja.tagname,td,!0,!1,!0,!0);cd==null&&(cd=""),this.options.cdataPropName?Ja.add(this.options.cdataPropName,[{[this.options.textNodeName]:ld}]):Ja.add(this.options.textNodeName,cd),rd=sd+2}else{let sd=readTagExp(Ra,rd,this.options.removeNSPrefix),ld=sd.tagName;const cd=sd.rawTagName;let ud=sd.tagExp,_d=sd.attrExpPresent,yd=sd.closeIndex;this.options.transformTagName&&(ld=this.options.transformTagName(ld)),Ja&&ed&&Ja.tagname!=="!xml"&&(ed=this.saveTextToParentTag(ed,Ja,td,!1));const gd=Ja;if(gd&&this.options.unpairedTags.indexOf(gd.tagname)!==-1&&(Ja=this.tagsNodeStack.pop(),td=td.substring(0,td.lastIndexOf("."))),ld!==qa.tagname&&(td+=td?"."+ld:ld),this.isItStopNode(this.options.stopNodes,td,ld)){let Ed="";if(ud.length>0&&ud.lastIndexOf("/ ")===ud.length-1)ld[ld.length-1]===" / "?(ld=ld.substr(0,ld.length-1),td=td.substr(0,td.length-1),ud=ld):ud=ud.substr(0,ud.length-1),rd=sd.closeIndex;else if(this.options.unpairedTags.indexOf(ld)!==-1)rd=sd.closeIndex;else{const Id=this.readStopNodeData(Ra,cd,yd+1);if(!Id)throw new Error(`Unexpected end of ${cd}`);rd=Id.i,Ed=Id.tagContent}const Td=new xmlNode(ld);ld!==ud&&_d&&(Td[" : @ "]=this.buildAttributesMap(ud,td,ld)),Ed&&(Ed=this.parseTextData(Ed,ld,td,!0,_d,!0,!0)),td=td.substr(0,td.lastIndexOf(" . ")),Td.add(this.options.textNodeName,Ed),this.addChild(Ja,Td,td)}else{if(ud.length>0&&ud.lastIndexOf(" / ")===ud.length-1){ld[ld.length-1]===" / "?(ld=ld.substr(0,ld.length-1),td=td.substr(0,td.length-1),ud=ld):ud=ud.substr(0,ud.length-1),this.options.transformTagName&&(ld=this.options.transformTagName(ld));const Ed=new xmlNode(ld);ld!==ud&&_d&&(Ed[" : @ "]=this.buildAttributesMap(ud,td,ld)),this.addChild(Ja,Ed,td),td=td.substr(0,td.lastIndexOf(" . "))}else{const Ed=new xmlNode(ld);this.tagsNodeStack.push(Ja),ld!==ud&&_d&&(Ed[" : @ "]=this.buildAttributesMap(ud,td,ld)),this.addChild(Ja,Ed,td),Ja=Ed}ed=" ",rd=yd}}else ed+=Ra[rd];return qa.child};function addChild(Ra,qa,Ja){const ed=this.options.updateTag(qa.tagname,Ja,qa[" : @ "]);ed===!1||(typeof ed==" string " && ( qa . tagname = ed ) , Ra . addChild ( qa ) ) } const replaceEntitiesValue$1 = function ( Ra ) { if ( this . options . processEntities ) { for ( let qa in this . docTypeEntities ) { const Ja = this . docTypeEntities [ qa ] ; Ra = Ra . replace ( Ja . regx , Ja . val ) } for ( let qa in this . lastEntities ) { const Ja = this . lastEntit
` ;function toXml(Ra,qa){let Ja="";return qa.format&&qa.indentBy.length>0&&(Ja=EOL),arrToStr(Ra,qa,"",Ja)}function arrToStr(Ra,qa,Ja,ed){let td="",rd=!1;for(let od=0;od<Ra.length;od++){const sd=Ra[od],ld=propName(sd);if(ld===void 0)continue;let cd="";if(Ja.length===0?cd=ld:cd= ` $ { Ja } . $ { ld } ` ,ld===qa.textNodeName){let Ed=sd[ld];isStopNode(cd,qa)||(Ed=qa.tagValueProcessor(ld,Ed),Ed=replaceEntitiesValue(Ed,qa)),rd&&(td+=ed),td+=Ed,rd=!1;continue}else if(ld===qa.cdataPropName){rd&&(td+=ed),td+= ` < ! [ CDATA [ $ { sd [ ld ] [ 0 ] [ qa . textNodeName ] } ] ] > ` ,rd=!1;continue}else if(ld===qa.commentPropName){td+=ed+ ` <!-- $ { sd [ ld ] [ 0 ] [ qa . textNodeName ] } -- > ` ,rd=!0;continue}else if(ld[0]==="?"){const Ed=attr_to_str(sd[":@"],qa),Td=ld==="?xml"?"":ed;let Id=sd[ld][0][qa.textNodeName];Id=Id.length!==0?" "+Id:"",td+=Td+ ` < $ { ld } $ { Id } $ { Ed } ? > ` ,rd=!0;continue}let ud=ed;ud!==""&&(ud+=qa.indentBy);const _d=attr_to_str(sd[":@"],qa),yd=ed+ ` < $ { ld } $ { _d } ` ,gd=arrToStr(sd[ld],qa,cd,ud);qa.unpairedTags.indexOf(ld)!==-1?qa.suppressUnpairedNode?td+=yd+">":td+=yd+"/>":(!gd||gd.length===0)&&qa.suppressEmptyNode?td+=yd+"/>":gd&&gd.endsWith(">")?td+=yd+ ` > $ { gd } $ { ed } < /${ld}>`:(td+=yd+">",gd&&ed!==""&&(gd.includes("/ > ")||gd.includes(" < /"))?td+=ed+qa.indentBy+gd+ed:td+=gd,td+=`</ $ { ld } > ` ),rd=!0}return td}function propName(Ra){const qa=Object.keys(Ra);for(let Ja=0;Ja<qa.length;Ja++){const ed=qa[Ja];if(Ra.hasOwnProperty(ed)&&ed!==":@")return ed}}function attr_to_str(Ra,qa){let Ja="";if(Ra&&!qa.ignoreAttributes)for(let ed in Ra){if(!Ra.hasOwnProperty(ed))continue;let td=qa.attributeValueProcessor(ed,Ra[ed]);td=replaceEntitiesValue(td,qa),td===!0&&qa.suppressBooleanAttributes?Ja+= ` $ { ed . substr ( qa . attributeNamePrefix . length ) } ` :Ja+= ` $ { ed . substr ( qa . attributeNamePrefix . length ) } = "${td}" ` }return Ja}function isStopNode(Ra,qa){Ra=Ra.substr(0,Ra.length-qa.textNodeName.length-1);let Ja=Ra.substr(Ra.lastIndexOf(".")+1);for(let ed in qa.stopNodes)if(qa.stopNodes[ed]===Ra||qa.stopNodes[ed]==="*."+Ja)return!0;return!1}function replaceEntitiesValue(Ra,qa){if(Ra&&Ra.length>0&&qa.processEntities)for(let Ja=0;Ja<qa.entities.length;Ja++){const ed=qa.entities[Ja];Ra=Ra.replace(ed.regex,ed.val)}return Ra}var orderedJs2Xml=toXml;const buildFromOrderedJs=orderedJs2Xml,defaultOptions={attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,cdataPropName:!1,format:!1,indentBy:" ",suppressEmptyNode:!1,suppressUnpairedNode:!0,suppressBooleanAttributes:!0,tagValueProcessor:function(Ra,qa){return qa},attributeValueProcessor:function(Ra,qa){return qa},preserveOrder:!1,commentPropName:!1,unpairedTags:[],entities:[{regex:new RegExp("&","g"),val:"&"},{regex:new RegExp(">","g"),val:">"},{regex:new RegExp("<","g"),val:"<"},{regex:new RegExp("'","g"),val:"'"},{regex:new RegExp('"',"g"),val:"""}],processEntities:!0,stopNodes:[],oneListGroup:!1};function Builder(Ra){this.options=Object.assign({},defaultOptions,Ra),this.options.ignoreAttributes||this.options.attributesGroupName?this.isAttribute=function(){return!1}:(this.attrPrefixLen=this.options.attributeNamePrefix.length,this.isAttribute=isAttribute),this.processTextOrObjNode=processTextOrObjNode,this.options.format?(this.indentate=indentate,this.tagEndChar= ` >
2024-08-27 22:31:52 +08:00
` ,this.newLine= `
2024-08-31 11:28:56 +08:00
` ):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}Builder.prototype.build=function(Ra){return this.options.preserveOrder?buildFromOrderedJs(Ra,this.options):(Array.isArray(Ra)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(Ra={[this.options.arrayNodeName]:Ra}),this.j2x(Ra,0).val)};Builder.prototype.j2x=function(Ra,qa){let Ja="",ed="";for(let td in Ra)if(Object.prototype.hasOwnProperty.call(Ra,td))if(typeof Ra[td]>"u")this.isAttribute(td)&&(ed+="");else if(Ra[td]===null)this.isAttribute(td)?ed+="":td[0]==="?"?ed+=this.indentate(qa)+"<"+td+"?"+this.tagEndChar:ed+=this.indentate(qa)+"<"+td+"/"+this.tagEndChar;else if(Ra[td]instanceof Date)ed+=this.buildTextValNode(Ra[td],td,"",qa);else if(typeof Ra[td]!="object"){const rd=this.isAttribute(td);if(rd)Ja+=this.buildAttrPairStr(rd,""+Ra[td]);else if(td===this.options.textNodeName){let od=this.options.tagValueProcessor(td,""+Ra[td]);ed+=this.replaceEntitiesValue(od)}else ed+=this.buildTextValNode(Ra[td],td,"",qa)}else if(Array.isArray(Ra[td])){const rd=Ra[td].length;let od="",sd="";for(let ld=0;ld<rd;ld++){const cd=Ra[td][ld];if(!(typeof cd>"u"))if(cd===null)td[0]==="?"?ed+=this.indentate(qa)+"<"+td+"?"+this.tagEndChar:ed+=this.indentate(qa)+"<"+td+"/"+this.tagEndChar;else if(typeof cd=="object")if(this.options.oneListGroup){const ud=this.j2x(cd,qa+1);od+=ud.val,this.options.attributesGroupName&&cd.hasOwnProperty(this.options.attributesGroupName)&&(sd+=ud.attrStr)}else od+=this.processTextOrObjNode(cd,td,qa);else if(this.options.oneListGroup){let ud=this.options.tagValueProcessor(td,cd);ud=this.replaceEntitiesValue(ud),od+=ud}else od+=this.buildTextValNode(cd,td,"",qa)}this.options.oneListGroup&&(od=this.buildObjectNode(od,td,sd,qa)),ed+=od}else if(this.options.attributesGroupName&&td===this.options.attributesGroupName){const rd=Object.keys(Ra[td]),od=rd.length;for(let sd=0;sd<od;sd++)Ja+=this.buildAttrPairStr(rd[sd],""+Ra[td][rd[sd]])}else ed+=this.processTextOrObjNode(Ra[td],td,qa);return{attrStr:Ja,val:ed}};Builder.prototype.buildAttrPairStr=function(Ra,qa){return qa=this.options.attributeValueProcessor(Ra,""+qa),qa=this.replaceEntitiesValue(qa),this.options.suppressBooleanAttributes&&qa==="true"?" "+Ra:" "+Ra+'="'+qa+'"'};function processTextOrObjNode(Ra,qa,Ja){const ed=this.j2x(Ra,Ja+1);return Ra[this.options.textNodeName]!==void 0&&Object.keys(Ra).length===1?this.buildTextValNode(Ra[this.options.textNodeName],qa,ed.attrStr,Ja):this.buildObjectNode(ed.val,qa,ed.attrStr,Ja)}Builder.prototype.buildObjectNode=function(Ra,qa,Ja,ed){if(Ra==="")return qa[0]==="?"?this.indentate(ed)+"<"+qa+Ja+"?"+this.tagEndChar:this.indentate(ed)+"<"+qa+Ja+this.closeTag(qa)+this.tagEndChar;{let td="</"+qa+this.tagEndChar,rd="";return qa[0]==="?"&&(rd="?",td=""),(Ja||Ja==="")&&Ra.indexOf("<")===-1?this.indentate(ed)+"<"+qa+Ja+rd+">"+Ra+td:this.options.commentPropName!==!1&&qa===this.options.commentPropName&&rd.length===0?this.indentate(ed)+ ` <!-- $ { Ra } -- > ` +this.newLine:this.indentate(ed)+"<"+qa+Ja+rd+this.tagEndChar+Ra+this.indentate(ed)+td}};Builder.prototype.closeTag=function(Ra){let qa="";return this.options.unpairedTags.indexOf(Ra)!==-1?this.options.suppressUnpairedNode||(qa="/"):this.options.suppressEmptyNode?qa="/":qa= ` > < /${Ra}`,qa};Builder.prototype.buildTextValNode=function(Ra,qa,Ja,ed){if(this.options.cdataPropName!==!1&&qa===this.options.cdataPropName)return this.indentate(ed)+`<![CDATA[${Ra}]]>`+this.newLine;if(this.options.commentPropName!==!1&&qa===this.options.commentPropName)return this.indentate(ed)+`<!--${Ra}-->`+this.newLine;if(qa[0]==="?")return this.indentate(ed)+"<"+qa+Ja+"?"+this.tagEndChar;{let td=this.options.tagValueProcessor(qa,Ra);return td=this.replaceEntitiesValue(td),td===""?this.indentate(ed)+"<"+qa+Ja+this.closeTag(qa)+this.tagEndChar:this.indentate(ed)+"<"+qa+Ja+">"+td+"</ " + qa + this . tagEndChar } } ; Builder . prototype . replaceEntitiesValue = function ( Ra ) { if ( Ra && Ra . length > 0 && this . options . processEntities ) for ( let qa = 0 ; qa < this . options . entities . length ; qa ++ ) { const Ja = this . options . entities [ qa ] ; Ra = Ra . replace ( Ja . regex , Ja . val ) } return Ra } ;
2024-08-27 22:31:52 +08:00
* mime - db
* Copyright ( c ) 2014 Jonathan Ong
* Copyright ( c ) 2015 - 2022 Douglas Christopher Wilson
* MIT Licensed
* /var mimeDb=require$$0;/ * !
* mime - types
* Copyright ( c ) 2014 Jonathan Ong
* Copyright ( c ) 2015 Douglas Christopher Wilson
* MIT Licensed
2024-08-31 15:27:49 +08:00
* /(function(Ra){var qa=mimeDb,Ja=pathBrowserify.extname,ed=/ ^ \ s * ( [ ^ ; \ s ] * ) ( ? : ; | \ s | $ ) / , td = /^text\//i ; Ra . charset = rd , Ra . charsets = { lookup : rd } , Ra . contentType = od , Ra . extension = sd , Ra . extensions = Object . create ( null ) , Ra . lookup = ld , Ra . types = Object . create ( null ) , cd ( Ra . extensions , Ra . types ) ; function rd ( ud ) { if ( ! ud || typeof ud != "string" ) return ! 1 ; var _d = ed . exec ( ud ) , yd = _d && qa [ _d [ 1 ] . toLowerCase ( ) ] ; return yd && yd . charset ? yd . charset : _d && td . test ( _d [ 1 ] ) ? "UTF-8" : ! 1 } function od ( ud ) { if ( ! ud || typeof ud != "string" ) return ! 1 ; var _d = ud . indexOf ( "/" ) === - 1 ? Ra . lookup ( ud ) : ud ; if ( ! _d ) return ! 1 ; if ( _d . indexOf ( "charset" ) === - 1 ) { var yd = Ra . charset ( _d ) ; yd && ( _d += "; charset=" + yd . toLowerCase ( ) ) } return _d } function sd ( ud ) { if ( ! ud || typeof ud != "string" ) return ! 1 ; var _d = ed . exec ( ud ) , yd = _d && Ra . extensions [ _d [ 1 ] . toLowerCase ( ) ] ; return ! yd || ! yd . length ? ! 1 : yd [ 0 ] } function ld ( ud ) { if ( ! ud || typeof ud != "string" ) return ! 1 ; var _d = Ja ( "x." + ud ) . toLowerCase ( ) . substr ( 1 ) ; return _d && Ra . types [ _d ] || ! 1 } function cd ( ud , _d ) { var yd = [ "nginx" , "apache" , void 0 , "iana" ] ; Object . keys ( qa ) . forEach ( function ( Ed ) { var Td = qa [ Ed ] , Id = Td . extensions ; if ( ! ( ! Id || ! Id . length ) ) { ud [ Ed ] = Id ; for ( var Ad = 0 ; Ad < Id . length ; Ad ++ ) { var Nd = Id [ Ad ] ; if ( _d [ Nd ] ) { var kd = yd . indexOf ( qa [ _d [ Nd ] ] . source ) , Rd = yd . indexOf ( Td . source ) ; if ( _d [ Nd ] !== "application/octet-stream" && ( kd > Rd || kd === Rd && _d [ Nd ] . substr ( 0 , 12 ) === "application/" ) ) continue } _d [ Nd ] = Ed } } } ) } } ) ( mimeTypes$1 ) ; let ENCRYPTION _TYPES = function ( Ra ) { return Ra . SSEC = "SSE-C" , Ra . KMS = "KMS" , Ra } ( { } ) , RETENTION _MODES = function ( Ra ) { return Ra . GOVERNANCE = "GOVERNANCE" , Ra . COMPLIANCE = "COMPLIANCE" , Ra } ( { } ) , RETENTION _VALIDITY _UNITS = function ( Ra ) { return Ra . DAYS = "Days" , Ra . YEARS = "Years" , Ra } ( { } ) , LEGAL _HOLD _STATUS = function ( Ra ) { return Ra . ENABLED = "ON" , Ra . DISABLED = "OFF" , Ra } ( { } ) ; const MetaDataHeaderPrefix = "x-amz-meta-" ; function uriEscape ( Ra ) { return Ra . split ( "" ) . reduce ( ( qa , Ja ) => { const ed = Buffer$2 . from ( Ja ) ; if ( ed . length === 1 && ( "A" <= Ja && Ja <= "Z" || "a" <= Ja && Ja <= "z" || "0" <= Ja && Ja <= "9" || Ja === "_" || Ja === "." || Ja === "~" || Ja === "-" ) ) return qa = qa + Ja , qa ; for ( const td of ed ) qa = qa + "%" + td . toString ( 16 ) . toUpperCase ( ) ; return qa } , "" ) } function uriResourceEscape ( Ra ) { return uriEscape ( Ra ) . replace ( /%2F/g , "/" ) } function getScope ( Ra , qa , Ja = "s3" ) { return ` ${ makeDateShort ( qa ) } / ${ Ra } / ${ Ja } /aws4_request ` } function isAmazonEndpoint ( Ra ) { return Ra === "s3.amazonaws.com" || Ra === "s3.cn-north-1.amazonaws.com.cn" } function isVirtualHostStyle ( Ra , qa , Ja , ed ) { return qa === "https:" && Ja . includes ( "." ) ? ! 1 : isAmazonEndpoint ( Ra ) || ! ed } function isValidIP ( Ra ) { return ipaddr . isValid ( Ra ) } function isValidEndpoint ( Ra ) { return isValidDomain ( Ra ) || isValidIP ( Ra ) } function isValidDomain ( Ra ) { if ( ! isString$1 ( Ra ) || Ra . length === 0 || Ra . length > 255 || Ra [ 0 ] === "-" || Ra . slice ( - 1 ) === "-" || Ra [ 0 ] === "_" || Ra . slice ( - 1 ) === "_" || Ra [ 0 ] === "." ) return ! 1 ; const qa = "`~!@#$%^&*()+={}[]|\\\"';:><?/" ; for ( const Ja of qa ) if ( Ra . includes ( Ja ) ) return ! 1 ; return ! 0 } function probeContentType ( Ra ) { let qa = mimeTypes$1 . lookup ( Ra ) ; return qa || ( qa = "application/octet-stream" ) , qa } function isValidPort ( Ra ) { return isNumber$2 ( Ra ) ? 0 <= Ra && Ra <= 65535 : ! 1 } function isValidBucketName ( Ra ) { return ! isString$1 ( Ra ) || Ra . length < 3 || Ra . length > 63 || Ra . includes ( ".." ) || /[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+/ . test ( Ra ) ? ! 1 : ! ! /^[a-z0-9][a-z0-9.-]+[a-z0-9]$/ . test ( Ra ) } function isValidObjectName ( Ra ) { return isValidPrefix ( Ra ) ? Ra . length !== 0 : ! 1 } function isValidPrefix ( Ra ) { return ! ( ! isString$1 ( Ra ) || Ra . length > 1024 ) } function isNumber$2 ( Ra ) { return typeof Ra == "number" } function isFunction$1 ( Ra ) { return typeof Ra == "function" } function isString$1 ( Ra ) { return typeof Ra == "string" } function isObject$1 ( Ra ) { return typeof Ra == "object" && Ra !== null } function isReadableStream$1 ( Ra ) { return isObject$1 ( Ra ) && isFunction$1 ( Ra . _read ) } function isBoolean$1 ( Ra ) { return typeof Ra == "boolean" } function isEmpty ( Ra ) { return _ . isEmpty ( Ra ) } function isEmptyObject ( Ra ) { return Object . values ( Ra ) . filter ( qa => qa !== void 0 ) . length !== 0 } function isDefined ( Ra ) { return Ra != null } function isValidDate ( Ra ) { return Ra instanceof Date && ! isNaN ( Ra ) } function makeDateLong ( Ra ) { Ra = Ra || new Date ; const qa = Ra . toISOString ( ) ; return qa . slice ( 0 , 4 ) + qa . slice ( 5 , 7 ) + qa . slice ( 8 , 13 ) + qa . slice ( 14 , 16 ) + qa . slice ( 17 , 19 ) + "Z" } function makeDateShort ( Ra ) { Ra = Ra || new Date ; const qa = Ra . toISOString ( ) ; return qa . slice ( 0 , 4 ) + qa . sl
2024-08-27 22:31:52 +08:00
` )+ `
2024-08-30 15:19:18 +08:00
` ,ed.join(";").toLowerCase(),td].join( `
` )}function getCredential(Ra,qa,Ja,ed="s3"){if(!isString $ 1(Ra))throw new TypeError('accessKey should be of type "string"');if(!isString $ 1(qa))throw new TypeError('region should be of type "string"');if(!isObject $ 1(Ja))throw new TypeError('requestDate should be of type "object"');return ` $ { Ra } / $ { getScope ( qa , Ja , ed ) } ` }function getSignedHeaders(Ra){if(!isObject $ 1(Ra))throw new TypeError('request should be of type "object"');const qa=["authorization","content-length","content-type","user-agent"];return Object.keys(Ra).filter(Ja=>!qa.includes(Ja)).sort()}function getSigningKey(Ra,qa,Ja,ed="s3"){if(!isObject $ 1(Ra))throw new TypeError('date should be of type "object"');if(!isString $ 1(qa))throw new TypeError('region should be of type "string"');if(!isString $ 1(Ja))throw new TypeError('secretKey should be of type "string"');const td=makeDateShort(Ra);return(void 0)("sha256",(void 0)("sha256",(void 0)("sha256",(void 0)("sha256","AWS4"+Ja).update(td).digest()).update(qa).digest()).update(ed).digest()).update("aws4_request").digest()}function getStringToSign(Ra,qa,Ja,ed="s3"){if(!isString $ 1(Ra))throw new TypeError('canonicalRequest should be of type "string"');if(!isObject $ 1(qa))throw new TypeError('requestDate should be of type "object"');if(!isString $ 1(Ja))throw new TypeError('region should be of type "string"');const td=(void 0)("sha256").update(Ra).digest("hex"),rd=getScope(Ja,qa,ed);return[signV4Algorithm,makeDateLong(qa),rd,td].join( `
2024-08-31 15:27:49 +08:00
` )}function postPresignSignatureV4(Ra,qa,Ja,ed){if(!isString $ 1(Ra))throw new TypeError('region should be of type "string"');if(!isObject $ 1(qa))throw new TypeError('date should be of type "object"');if(!isString $ 1(Ja))throw new TypeError('secretKey should be of type "string"');if(!isString $ 1(ed))throw new TypeError('policyBase64 should be of type "string"');return(void 0)("sha256",getSigningKey(qa,Ra,Ja)).update(ed).digest("hex").toLowerCase()}function signV4(Ra,qa,Ja,ed,td,rd,od="s3"){if(!isObject $ 1(Ra))throw new TypeError('request should be of type "object"');if(!isString $ 1(qa))throw new TypeError('accessKey should be of type "string"');if(!isString $ 1(Ja))throw new TypeError('secretKey should be of type "string"');if(!isString $ 1(ed))throw new TypeError('region should be of type "string"');if(!qa)throw new AccessKeyRequiredError("accessKey is required for signing");if(!Ja)throw new SecretKeyRequiredError("secretKey is required for signing");const sd=getSignedHeaders(Ra.headers),ld=getCanonicalRequest(Ra.method,Ra.path,Ra.headers,sd,rd),cd=od||"s3",ud=getStringToSign(ld,td,ed,cd),_d=getSigningKey(td,ed,Ja,cd),yd=getCredential(qa,ed,td,cd),gd=(void 0)("sha256",_d).update(ud).digest("hex").toLowerCase();return ` $ { signV4Algorithm } Credential = $ { yd } , SignedHeaders = $ { sd . join ( ";" ) . toLowerCase ( ) } , Signature = $ { gd } ` }function presignSignatureV4(Ra,qa,Ja,ed,td,rd,od){if(!isObject $ 1(Ra))throw new TypeError('request should be of type "object"');if(!isString $ 1(qa))throw new TypeError('accessKey should be of type "string"');if(!isString $ 1(Ja))throw new TypeError('secretKey should be of type "string"');if(!isString $ 1(td))throw new TypeError('region should be of type "string"');if(!qa)throw new AccessKeyRequiredError("accessKey is required for presigning");if(!Ja)throw new SecretKeyRequiredError("secretKey is required for presigning");if(!isNumber $ 2(od))throw new TypeError('expires should be of type "number"');if(od<1)throw new ExpiresParamError("expires param cannot be less than 1 seconds");if(od>604800)throw new ExpiresParamError("expires param cannot be greater than 7 days");const sd=makeDateLong(rd),ld=getSignedHeaders(Ra.headers),cd=getCredential(qa,td,rd),ud="UNSIGNED-PAYLOAD",_d=[];_d.push( ` X - Amz - Algorithm = $ { signV4Algorithm } ` ),_d.push( ` X - Amz - Credential = $ { uriEscape ( cd ) } ` ),_d.push( ` X - Amz - Date = $ { sd } ` ),_d.push( ` X - Amz - Expires = $ { od } ` ),_d.push( ` X - Amz - SignedHeaders = $ { uriEscape ( ld . join ( ";" ) . toLowerCase ( ) ) } ` ),ed&&_d.push( ` X - Amz - Security - Token = $ { uriEscape ( ed ) } ` );const yd=Ra.path.split("?")[0];let gd=Ra.path.split("?")[1];gd?gd=gd+"&"+_d.join("&"):gd=_d.join("&");const Ed=yd+"?"+gd,Td=getCanonicalRequest(Ra.method,Ed,Ra.headers,ld,ud),Id=getStringToSign(Td,rd,td),Nd=(void 0)("sha256",getSigningKey(rd,td,Ja)).update(Id).digest("hex").toLowerCase();return Ra.protocol+"//"+Ra.headers.host+Ed+ ` & X - Amz - Signature = $ { Nd } ` }async function readAsBuffer(Ra){return new Promise((qa,Ja)=>{const ed=[];Ra.on("data",td=>ed.push(td)).on("error",td=>Ja(td)).on("end",()=>qa(Buffer $ 2.concat(ed)))})}async function readAsString(Ra){return(await readAsBuffer(Ra)).toString()}async function drainResponse(Ra){return new Promise((qa,Ja)=>{Ra.on("data",()=>{}).on("error",ed=>Ja(ed)).on("end",()=>qa())})}function parseBucketRegion(Ra){return parseXml(Ra).LocationConstraint}const fxp=new fxp $ 2.XMLParser;function parseError(Ra,qa){let Ja={};const ed=fxp.parse(Ra);ed.Error&&(Ja=ed.Error);const td=new S3Error;return Object.entries(Ja).forEach(([rd,od])=>{td[rd.toLowerCase()]=od}),Object.entries(qa).forEach(([rd,od])=>{td[rd]=od}),td}async function parseResponseError(Ra){const qa=Ra.statusCode;let Ja,ed;qa===301?(Ja="MovedPermanently",ed="Moved Permanently"):qa===307?(Ja="TemporaryRedirect",ed="Are you using the correct endpoint URL?"):qa===403?(Ja="AccessDenied",ed="Valid and authorized credentials required"):qa===404?(Ja="NotFound",ed="Not Found"):qa===405||qa===501?(Ja="MethodNotAllowed",ed="Method Not Allowed"):(Ja="UnknownError",ed= ` $ { qa } ` );const td={};td.amzRequestid=Ra.headers["x-amz-request-id"],td.amzId2=Ra.headers["x-amz-id-2"],td.amzBucketRegion=Ra.headers["x-amz-bucket
2024-08-30 15:19:18 +08:00
` )}),td.write( `
` )};if(td.write( ` REQUEST : $ { qa . method } $ { qa . path }
` ),rd(qa.headers),Ja&&(this.logStream.write( ` RESPONSE : $ { Ja . statusCode }
` ),rd(Ja.headers)),ed){td.write( ` ERROR BODY :
` );const od=JSON.stringify(ed,null," ");td.write( ` $ { od }
2024-08-31 15:27:49 +08:00
` )}}traceOn(qa){qa||(qa=define_process_default $ 3.stdout),this.logStream=qa}traceOff(){this.logStream=void 0}async makeRequestAsync(qa,Ja="",ed=[200],td=""){if(!isObject $ 1(qa))throw new TypeError('options should be of type "object"');if(!isString $ 1(Ja)&&!isObject $ 1(Ja))throw new TypeError('payload should be of type "string" or "Buffer"');if(ed.forEach(od=>{if(!isNumber $ 2(od))throw new TypeError('statusCode should be of type "number"')}),!isString $ 1(td))throw new TypeError('region should be of type "string"');qa.headers||(qa.headers={}),(qa.method==="POST"||qa.method==="PUT"||qa.method==="DELETE")&&(qa.headers["content-length"]=Ja.length.toString());const rd=this.enableSHA256?toSha256(Ja):"";return this.makeRequestStreamAsync(qa,Ja,rd,ed,td)}async makeRequestAsyncOmit(qa,Ja="",ed=[200],td=""){const rd=await this.makeRequestAsync(qa,Ja,ed,td);return await drainResponse(rd),rd}async makeRequestStreamAsync(qa,Ja,ed,td,rd){if(!isObject $ 1(qa))throw new TypeError('options should be of type "object"');if(!(Buffer $ 2.isBuffer(Ja)||typeof Ja=="string"||isReadableStream $ 1(Ja)))throw new InvalidArgumentError( ` stream should be a Buffer , string or readable Stream , got $ { typeof Ja } instead ` );if(!isString $ 1(ed))throw new TypeError('sha256sum should be of type "string"');if(td.forEach(ld=>{if(!isNumber $ 2(ld))throw new TypeError('statusCode should be of type "number"')}),!isString $ 1(rd))throw new TypeError('region should be of type "string"');if(!this.enableSHA256&&ed.length!==0)throw new InvalidArgumentError("sha256sum expected to be empty for anonymous or https requests");if(this.enableSHA256&&ed.length!==64)throw new InvalidArgumentError( ` Invalid sha256sum : $ { ed } ` );await this.checkAndRefreshCreds(),rd=rd||await this.getBucketRegionAsync(qa.bucketName);const od=this.getRequestOptions({...qa,region:rd});if(!this.anonymous){this.enableSHA256||(ed="UNSIGNED-PAYLOAD");const ld=new Date;od.headers["x-amz-date"]=makeDateLong(ld),od.headers["x-amz-content-sha256"]=ed,this.sessionToken&&(od.headers["x-amz-security-token"]=this.sessionToken),od.headers.authorization=signV4(od,this.accessKey,this.secretKey,rd,ld,ed)}const sd=await request $ 1(this.transport,od,Ja);if(!sd.statusCode)throw new Error("BUG: response doesn't have a statusCode");if(!td.includes(sd.statusCode)){delete this.regionMap[qa.bucketName];const ld=await parseResponseError(sd);throw this.logHTTP(od,sd,ld),ld}return this.logHTTP(od,sd),sd}async getBucketRegionAsync(qa){if(!isValidBucketName(qa))throw new InvalidBucketNameError( ` Invalid bucket name : $ { qa } ` );if(this.region)return this.region;const Ja=this.regionMap[qa];if(Ja)return Ja;const ed=async cd=>{const ud=await readAsString(cd),_d=parseBucketRegion(ud)||DEFAULT_REGION;return this.regionMap[qa]=_d,_d},td="GET",rd="location",od=this.pathStyle&&!isBrowser_1;let sd;try{const cd=await this.makeRequestAsync({method:td,bucketName:qa,query:rd,pathStyle:od},"",[200],DEFAULT_REGION);return ed(cd)}catch(cd){if(cd.name!=="AuthorizationHeaderMalformed"||(sd=cd.Region,!sd))throw cd}const ld=await this.makeRequestAsync({method:td,bucketName:qa,query:rd,pathStyle:od},"",[200],sd);return await ed(ld)}makeRequest(qa,Ja="",ed=[200],td="",rd,od){let sd;rd?sd=this.makeRequestAsync(qa,Ja,ed,td):sd=this.makeRequestAsyncOmit(qa,Ja,ed,td),sd.then(ld=>od(null,ld),ld=>{od(ld)})}makeRequestStream(qa,Ja,ed,td,rd,od,sd){(async()=>{const cd=await this.makeRequestStreamAsync(qa,Ja,ed,td,rd);return od||await drainResponse(cd),cd})().then(cd=>sd(null,cd),cd=>sd(cd))}getBucketRegion(qa,Ja){return this.getBucketRegionAsync(qa).then(ed=>Ja(null,ed),ed=>Ja(ed))}async removeBucket(qa){if(!isValidBucketName(qa))throw new InvalidBucketNameError("Invalid bucket name: "+qa);await this.makeRequestAsyncOmit({method:"DELETE",bucketName:qa},"",[204]),delete this.regionMap[qa]}async statObject(qa,Ja,ed={}){if(!isValidBucketName(qa))throw new InvalidBucketNameError("Invalid bucket name: "+qa);if(!isValidObjectName(Ja))throw new InvalidObjectNameError( ` Invalid object name : $ { Ja } ` );if(!isObject $ 1(ed))throw new InvalidArgumentError('statOpts should be of type "object"');const
2024-08-31 11:28:56 +08:00
` ).forEach(function(Ad){if(Ad){var Nd=Ad.indexOf(":"),kd=Ad.substr(0,Nd).trim().toLowerCase(),Rd=Ad.substr(Nd+1).trim();Td[kd]=Rd}}),{error:yd,statusCode:gd.status,statusMessage:gd.statusText,headers:Td,body:Ed}},cd=function(yd,gd){return!gd&&gd==="text"?yd.responseText:yd.response},ud=function(yd,gd){var Ed=(yd.method||"GET").toUpperCase(),Td=yd.url;if(yd.qs){var Id=sd(yd.qs);Id&&(Td+=(Td.indexOf("?")===-1?"?":"&")+Id)}var Ad=new XMLHttpRequest;if(Ad.open(Ed,Td,!0),Ad.responseType=yd.dataType||"text",yd.xhrFields)for(var Nd in yd.xhrFields)Ad[Nd]=yd.xhrFields[Nd];var kd=yd.headers;if(kd)for(var Rd in kd)kd.hasOwnProperty(Rd)&&Rd.toLowerCase()!=="content-length"&&Rd.toLowerCase()!=="user-agent"&&Rd.toLowerCase()!=="origin"&&Rd.toLowerCase()!=="host"&&Ad.setRequestHeader(Rd,kd[Rd]);return yd.onProgress&&Ad.upload&&(Ad.upload.onprogress=yd.onProgress),yd.onDownloadProgress&&(Ad.onprogress=yd.onDownloadProgress),yd.timeout&&(Ad.timeout=yd.timeout),Ad.ontimeout=function(Md){var Bd=new Error("timeout");gd(ld(Bd,Ad))},Ad.onload=function(){gd(ld(null,Ad,cd(Ad,yd.dataType)))},Ad.onerror=function(Md){var Bd=cd(Ad,yd.dataType);if(Bd)gd(ld(null,Ad,Bd));else{var jd=Ad.statusText;!jd&&Ad.status===0&&(jd=new Error("CORS blocked or network error")),gd(ld(jd,Ad,Bd))}},Ad.send(yd.body||""),Ad};Ja.exports=ud},"./node_modules/@babel/runtime/helpers/classCallCheck.js":function(Ja,ed){function td(rd,od){if(!(rd instanceof od))throw new TypeError("Cannot call a class as a function")}Ja.exports=td,Ja.exports.__esModule=!0,Ja.exports.default=Ja.exports},"./node_modules/@babel/runtime/helpers/createClass.js":function(Ja,ed,td){var rd=td("./node_modules/@babel/runtime/helpers/toPropertyKey.js");function od(ld,cd){for(var ud=0;ud<cd.length;ud++){var _d=cd[ud];_d.enumerable=_d.enumerable||!1,_d.configurable=!0,"value"in _d&&(_d.writable=!0),Object.defineProperty(ld,rd(_d.key),_d)}}function sd(ld,cd,ud){return cd&&od(ld.prototype,cd),ud&&od(ld,ud),Object.defineProperty(ld,"prototype",{writable:!1}),ld}Ja.exports=sd,Ja.exports.__esModule=!0,Ja.exports.default=Ja.exports},"./node_modules/@babel/runtime/helpers/toPrimitive.js":function(Ja,ed,td){var rd=td("./node_modules/@babel/runtime/helpers/typeof.js").default;function od(sd,ld){if(rd(sd)!=="object"||sd===null)return sd;var cd=sd[Symbol.toPrimitive];if(cd!==void 0){var ud=cd.call(sd,ld||"default");if(rd(ud)!=="object")return ud;throw new TypeError("@@toPrimitive must return a primitive value.")}return(ld==="string"?String:Number)(sd)}Ja.exports=od,Ja.exports.__esModule=!0,Ja.exports.default=Ja.exports},"./node_modules/@babel/runtime/helpers/toPropertyKey.js":function(Ja,ed,td){var rd=td("./node_modules/@babel/runtime/helpers/typeof.js").default,od=td("./node_modules/@babel/runtime/helpers/toPrimitive.js");function sd(ld){var cd=od(ld,"string");return rd(cd)==="symbol"?cd:String(cd)}Ja.exports=sd,Ja.exports.__esModule=!0,Ja.exports.default=Ja.exports},"./node_modules/@babel/runtime/helpers/typeof.js":function(Ja,ed){function td(rd){"@babel/helpers - typeof";return Ja.exports=td=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(od){return typeof od}:function(od){return od&&typeof Symbol=="function"&&od.constructor===Symbol&&od!==Symbol.prototype?"symbol":typeof od},Ja.exports.__esModule=!0,Ja.exports.default=Ja.exports,td(rd)}Ja.exports=td,Ja.exports.__esModule=!0,Ja.exports.default=Ja.exports},"./node_modules/fast-xml-parser/src/fxp.js":function(Ja,ed,td){const rd=td("./node_modules/fast-xml-parser/src/validator.js"),od=td("./node_modules/fast-xml-parser/src/xmlparser/XMLParser.js"),sd=td("./node_modules/fast-xml-parser/src/xmlbuilder/json2xml.js");Ja.exports={XMLParser:od,XMLValidator:rd,XMLBuilder:sd}},"./node_modules/fast-xml-parser/src/util.js":function(Ja,ed,td){const rd=":A-Za-z_ \\ u00C0- \\ u00D6 \\ u00D8- \\ u00F6 \\ u00F8- \\ u02FF \\ u0370- \\ u037D \\ u037F- \\ u1FFF \\ u200C- \\ u200D \\ u2070- \\ u218F \\ u2C00- \\ u2FEF \\ u3001- \\ uD7FF \\ uF900- \\ uFDCF \\ uFDF0- \\ uFFFD",od=rd+" \\ -. \\ d \\ u00B7 \\ u0300- \\ u036F \\ u203F- \\ u2040",sd="["+rd+"]["+od+"]*",ld=new RegExp("^"+sd+" $ "),cd=function(_d,yd){const gd=[];l
` &&Bd[qd]!==" \r ";qd++)Zd+=Bd[qd];if(Zd=Zd.trim(),Zd[Zd.length-1]==="/"&&(Zd=Zd.substring(0,Zd.length-1),qd--),!kd(Zd)){let hf;return Zd.trim().length===0?hf="Invalid space after '<'.":hf="Tag '"+Zd+"' is an invalid name.",Ad("InvalidTag",hf,Rd(Bd,qd))}const Xd=yd(Bd,qd);if(Xd===!1)return Ad("InvalidAttr","Attributes for '"+Zd+"' have open quote.",Rd(Bd,qd));let df=Xd.value;if(qd=Xd.index,df[df.length-1]==="/"){const hf=qd-df.length;df=df.substring(0,df.length-1);const gf=Ed(df,jd);if(gf===!0)Fd=!0;else return Ad(gf.err.code,gf.err.msg,Rd(Bd,hf+gf.err.line))}else if(Qd)if(Xd.tagClosed){if(df.trim().length>0)return Ad("InvalidTag","Closing tag '"+Zd+"' can't have attributes or invalid starting.",Rd(Bd,Wd));if(Vd.length===0)return Ad("InvalidTag","Closing tag '"+Zd+"' has not been opened.",Rd(Bd,Wd));{const hf=Vd.pop();if(Zd!==hf.tagName){let gf=Rd(Bd,hf.tagStartPos);return Ad("InvalidTag","Expected closing tag '"+hf.tagName+"' (opened in line "+gf.line+", col "+gf.col+") instead of closing tag '"+Zd+"'.",Rd(Bd,Wd))}Vd.length==0&&(Ud=!0)}}else return Ad("InvalidTag","Closing tag '"+Zd+"' doesn't have proper closing.",Rd(Bd,qd));else{const hf=Ed(df,jd);if(hf!==!0)return Ad(hf.err.code,hf.err.msg,Rd(Bd,qd-df.length+hf.err.line));if(Ud===!0)return Ad("InvalidXml","Multiple possible root nodes found.",Rd(Bd,qd));jd.unpairedTags.indexOf(Zd)!==-1||Vd.push({tagName:Zd,tagStartPos:Wd}),Fd=!0}for(qd++;qd<Bd.length;qd++)if(Bd[qd]==="<")if(Bd[qd+1]==="!"){qd++,qd=cd(Bd,qd);continue}else if(Bd[qd+1]==="?"){if(qd=ld(Bd,++qd),qd.err)return qd}else break;else if(Bd[qd]==="&"){const hf=Id(Bd,qd);if(hf==-1)return Ad("InvalidChar","char '&' is not expected.",Rd(Bd,qd));qd=hf}else if(Ud===!0&&!sd(Bd[qd]))return Ad("InvalidXml","Extra text at the end",Rd(Bd,qd));Bd[qd]==="<"&&qd--}}else{if(sd(Bd[qd]))continue;return Ad("InvalidChar","char '"+Bd[qd]+"' is not expected.",Rd(Bd,qd))}if(Fd){if(Vd.length==1)return Ad("InvalidTag","Unclosed tag '"+Vd[0].tagName+"'.",Rd(Bd,Vd[0].tagStartPos));if(Vd.length>0)return Ad("InvalidXml","Invalid '"+JSON.stringify(Vd.map(qd=>qd.tagName),null,4).replace(/ \r ? \n /g,"")+"' found.",{line:1,col:1})}else return Ad("InvalidXml","Start tag expected.",1);return!0};function sd(Bd){return Bd===" "||Bd===" "||Bd=== `
` ||Bd===" \r "}function ld(Bd,jd){const Vd=jd;for(;jd<Bd.length;jd++)if(Bd[jd]=="?"||Bd[jd]==" "){const Fd=Bd.substr(Vd,jd-Vd);if(jd>5&&Fd==="xml")return Ad("InvalidXml","XML declaration allowed only at the start of the document.",Rd(Bd,jd));if(Bd[jd]=="?"&&Bd[jd+1]==">"){jd++;break}else continue}return jd}function cd(Bd,jd){if(Bd.length>jd+5&&Bd[jd+1]==="-"&&Bd[jd+2]==="-"){for(jd+=3;jd<Bd.length;jd++)if(Bd[jd]==="-"&&Bd[jd+1]==="-"&&Bd[jd+2]===">"){jd+=2;break}}else if(Bd.length>jd+8&&Bd[jd+1]==="D"&&Bd[jd+2]==="O"&&Bd[jd+3]==="C"&&Bd[jd+4]==="T"&&Bd[jd+5]==="Y"&&Bd[jd+6]==="P"&&Bd[jd+7]==="E"){let Vd=1;for(jd+=8;jd<Bd.length;jd++)if(Bd[jd]==="<")Vd++;else if(Bd[jd]===">"&&(Vd--,Vd===0))break}else if(Bd.length>jd+9&&Bd[jd+1]==="["&&Bd[jd+2]==="C"&&Bd[jd+3]==="D"&&Bd[jd+4]==="A"&&Bd[jd+5]==="T"&&Bd[jd+6]==="A"&&Bd[jd+7]==="["){for(jd+=8;jd<Bd.length;jd++)if(Bd[jd]==="]"&&Bd[jd+1]==="]"&&Bd[jd+2]===">"){jd+=2;break}}return jd}const ud='"',_d="'";function yd(Bd,jd){let Vd="",Fd="",Ud=!1;for(;jd<Bd.length;jd++){if(Bd[jd]===ud||Bd[jd]===_d)Fd===""?Fd=Bd[jd]:Fd!==Bd[jd]||(Fd="");else if(Bd[jd]===">"&&Fd===""){Ud=!0;break}Vd+=Bd[jd]}return Fd!==""?!1:{value:Vd,index:jd,tagClosed:Ud}}const gd=new RegExp( ` ( \ \ s * ) ( [ ^ \ \ s = ] + ) ( \ \ s *= ) ? ( \ \ s * ( [ '"])(([\\s\\S])*?)\\5)?`,"g");function Ed(Bd,jd){const Vd=rd.getAllMatches(Bd,gd),Fd={};for(let Ud=0;Ud<Vd.length;Ud++){if(Vd[Ud][1].length===0)return Ad("InvalidAttr","Attribute ' "+Vd[Ud][2]+" ' has no space in starting.",Md(Vd[Ud]));if(Vd[Ud][3]!==void 0&&Vd[Ud][4]===void 0)return Ad("InvalidAttr","Attribute ' "+Vd[Ud][2]+" ' is without value.",Md(Vd[Ud]));if(Vd[Ud][3]===void 0&&!jd.allowBooleanAttributes)return Ad("InvalidAttr","boolean attribute ' "+Vd[Ud][2]+" ' is not allowed.",Md(Vd[Ud]));const qd=Vd[Ud][2];if(!Nd(qd))return Ad("InvalidAttr","Attribute ' "+qd+" ' is an invalid name.",Md(Vd[Ud]));if(!Fd.hasOwnProperty(qd))Fd[qd]=1;else return Ad("InvalidAttr","Attribute ' "+qd+" ' is repeated.",Md(Vd[Ud]))}return!0}function Td(Bd,jd){let Vd=/\d/;for(Bd[jd]==="x"&&(jd++,Vd=/[\da-fA-F]/);jd<Bd.length;jd++){if(Bd[jd]===";")return jd;if(!Bd[jd].match(Vd))break}return-1}function Id(Bd,jd){if(jd++,Bd[jd]===";")return-1;if(Bd[jd]==="#")return jd++,Td(Bd,jd);let Vd=0;for(;jd<Bd.length;jd++,Vd++)if(!(Bd[jd].match(/\w/)&&Vd<20)){if(Bd[jd]===";")break;return-1}return jd}function Ad(Bd,jd,Vd){return{err:{code:Bd,msg:jd,line:Vd.line||Vd,col:Vd.col}}}function Nd(Bd){return rd.isName(Bd)}function kd(Bd){return rd.isName(Bd)}function Rd(Bd,jd){const Vd=Bd.substring(0,jd).split(/\r?\n/);return{line:Vd.length,col:Vd[Vd.length-1].length+1}}function Md(Bd){return Bd.startIndex+Bd[1].length}},"./node_modules/fast-xml-parser/src/xmlbuilder/json2xml.js":function(Ja,ed,td){const rd=td("./node_modules/fast-xml-parser/src/xmlbuilder/orderedJs2Xml.js"),od={attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,cdataPropName:!1,format:!1,indentBy:" ",suppressEmptyNode:!1,suppressUnpairedNode:!0,suppressBooleanAttributes:!0,tagValueProcessor:function(_d,yd){return yd},attributeValueProcessor:function(_d,yd){return yd},preserveOrder:!1,commentPropName:!1,unpairedTags:[],entities:[{regex:new RegExp("&","g"),val:"&"},{regex:new RegExp(">","g"),val:">"},{regex:new RegExp("<","g"),val:"<"},{regex:new RegExp("' "," g "),val:" & apos ; "},{regex:new RegExp('" ' , "g" ) , val : """ } ] , processEntities : ! 0 , stopNodes : [ ] , oneListGroup : ! 1 } ; function sd ( _d ) { this . options = Object . assign ( { } , od , _d ) , this . options . ignoreAttributes || this . options . attributesGroupName ? this . isAttribute = function ( ) { return ! 1 } : ( this . attrPrefixLen = this . options . attributeNamePrefix . length , this . isAttribute = ud ) , this . processTextOrObjNode = ld , this . options . format ? ( this . indentate = cd , this . tagEndChar = ` >
2024-08-27 22:31:52 +08:00
` ,this.newLine= `
2024-08-31 11:28:56 +08:00
` ):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}sd.prototype.build=function(_d){return this.options.preserveOrder?rd(_d,this.options):(Array.isArray(_d)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(_d={[this.options.arrayNodeName]:_d}),this.j2x(_d,0).val)},sd.prototype.j2x=function(_d,yd){let gd="",Ed="";for(let Td in _d)if(Object.prototype.hasOwnProperty.call(_d,Td))if(typeof _d[Td]>"u")this.isAttribute(Td)&&(Ed+="");else if(_d[Td]===null)this.isAttribute(Td)?Ed+="":Td[0]==="?"?Ed+=this.indentate(yd)+"<"+Td+"?"+this.tagEndChar:Ed+=this.indentate(yd)+"<"+Td+"/"+this.tagEndChar;else if(_d[Td]instanceof Date)Ed+=this.buildTextValNode(_d[Td],Td,"",yd);else if(typeof _d[Td]!="object"){const Id=this.isAttribute(Td);if(Id)gd+=this.buildAttrPairStr(Id,""+_d[Td]);else if(Td===this.options.textNodeName){let Ad=this.options.tagValueProcessor(Td,""+_d[Td]);Ed+=this.replaceEntitiesValue(Ad)}else Ed+=this.buildTextValNode(_d[Td],Td,"",yd)}else if(Array.isArray(_d[Td])){const Id=_d[Td].length;let Ad="";for(let Nd=0;Nd<Id;Nd++){const kd=_d[Td][Nd];typeof kd>"u"||(kd===null?Td[0]==="?"?Ed+=this.indentate(yd)+"<"+Td+"?"+this.tagEndChar:Ed+=this.indentate(yd)+"<"+Td+"/"+this.tagEndChar:typeof kd=="object"?this.options.oneListGroup?Ad+=this.j2x(kd,yd+1).val:Ad+=this.processTextOrObjNode(kd,Td,yd):Ad+=this.buildTextValNode(kd,Td,"",yd))}this.options.oneListGroup&&(Ad=this.buildObjectNode(Ad,Td,"",yd)),Ed+=Ad}else if(this.options.attributesGroupName&&Td===this.options.attributesGroupName){const Id=Object.keys(_d[Td]),Ad=Id.length;for(let Nd=0;Nd<Ad;Nd++)gd+=this.buildAttrPairStr(Id[Nd],""+_d[Td][Id[Nd]])}else Ed+=this.processTextOrObjNode(_d[Td],Td,yd);return{attrStr:gd,val:Ed}},sd.prototype.buildAttrPairStr=function(_d,yd){return yd=this.options.attributeValueProcessor(_d,""+yd),yd=this.replaceEntitiesValue(yd),this.options.suppressBooleanAttributes&&yd==="true"?" "+_d:" "+_d+'="'+yd+'"'};function ld(_d,yd,gd){const Ed=this.j2x(_d,gd+1);return _d[this.options.textNodeName]!==void 0&&Object.keys(_d).length===1?this.buildTextValNode(_d[this.options.textNodeName],yd,Ed.attrStr,gd):this.buildObjectNode(Ed.val,yd,Ed.attrStr,gd)}sd.prototype.buildObjectNode=function(_d,yd,gd,Ed){if(_d==="")return yd[0]==="?"?this.indentate(Ed)+"<"+yd+gd+"?"+this.tagEndChar:this.indentate(Ed)+"<"+yd+gd+this.closeTag(yd)+this.tagEndChar;{let Td="</"+yd+this.tagEndChar,Id="";return yd[0]==="?"&&(Id="?",Td=""),(gd||gd==="")&&_d.indexOf("<")===-1?this.indentate(Ed)+"<"+yd+gd+Id+">"+_d+Td:this.options.commentPropName!==!1&&yd===this.options.commentPropName&&Id.length===0?this.indentate(Ed)+ ` <!-- $ { _d } -- > ` +this.newLine:this.indentate(Ed)+"<"+yd+gd+Id+this.tagEndChar+_d+this.indentate(Ed)+Td}},sd.prototype.closeTag=function(_d){let yd="";return this.options.unpairedTags.indexOf(_d)!==-1?this.options.suppressUnpairedNode||(yd="/"):this.options.suppressEmptyNode?yd="/":yd= ` > < /${_d}`,yd},sd.prototype.buildTextValNode=function(_d,yd,gd,Ed){if(this.options.cdataPropName!==!1&&yd===this.options.cdataPropName)return this.indentate(Ed)+`<![CDATA[${_d}]]>`+this.newLine;if(this.options.commentPropName!==!1&&yd===this.options.commentPropName)return this.indentate(Ed)+`<!--${_d}-->`+this.newLine;if(yd[0]==="?")return this.indentate(Ed)+"<"+yd+gd+"?"+this.tagEndChar;{let Td=this.options.tagValueProcessor(yd,_d);return Td=this.replaceEntitiesValue(Td),Td===""?this.indentate(Ed)+"<"+yd+gd+this.closeTag(yd)+this.tagEndChar:this.indentate(Ed)+"<"+yd+gd+">"+Td+"</ "+yd+this.tagEndChar}},sd.prototype.replaceEntitiesValue=function(_d){if(_d&&_d.length>0&&this.options.processEntities)for(let yd=0;yd<this.options.entities.length;yd++){const gd=this.options.entities[yd];_d=_d.replace(gd.regex,gd.val)}return _d};function cd(_d){return this.options.indentBy.repeat(_d)}function ud(_d){return _d.startsWith(this.options.attributeNamePrefix)&&_d!==this.options.textNodeName?_d.substr(this.attrPrefixLen):!1}Ja.exports=sd}," . / node _modules / fast - xml - parser / src / xmlbuilder / orderedJs2Xml . js " : function ( Ja , ed ) { const td = `
` ;function rd(_d,yd){let gd="";return yd.format&&yd.indentBy.length>0&&(gd=td),od(_d,yd,"",gd)}function od(_d,yd,gd,Ed){let Td="",Id=!1;for(let Ad=0;Ad<_d.length;Ad++){const Nd=_d[Ad],kd=sd(Nd);if(kd===void 0)continue;let Rd="";if(gd.length===0?Rd=kd:Rd= ` $ { gd } . $ { kd } ` ,kd===yd.textNodeName){let Fd=Nd[kd];cd(Rd,yd)||(Fd=yd.tagValueProcessor(kd,Fd),Fd=ud(Fd,yd)),Id&&(Td+=Ed),Td+=Fd,Id=!1;continue}else if(kd===yd.cdataPropName){Id&&(Td+=Ed),Td+= ` < ! [ CDATA [ $ { Nd [ kd ] [ 0 ] [ yd . textNodeName ] } ] ] > ` ,Id=!1;continue}else if(kd===yd.commentPropName){Td+=Ed+ ` <!-- $ { Nd [ kd ] [ 0 ] [ yd . textNodeName ] } -- > ` ,Id=!0;continue}else if(kd[0]==="?"){const Fd=ld(Nd[":@"],yd),Ud=kd==="?xml"?"":Ed;let qd=Nd[kd][0][yd.textNodeName];qd=qd.length!==0?" "+qd:"",Td+=Ud+ ` < $ { kd } $ { qd } $ { Fd } ? > ` ,Id=!0;continue}let Md=Ed;Md!==""&&(Md+=yd.indentBy);const Bd=ld(Nd[":@"],yd),jd=Ed+ ` < $ { kd } $ { Bd } ` ,Vd=od(Nd[kd],yd,Rd,Md);yd.unpairedTags.indexOf(kd)!==-1?yd.suppressUnpairedNode?Td+=jd+">":Td+=jd+"/>":(!Vd||Vd.length===0)&&yd.suppressEmptyNode?Td+=jd+"/>":Vd&&Vd.endsWith(">")?Td+=jd+ ` > $ { Vd } $ { Ed } < /${kd}>`:(Td+=jd+">",Vd&&Ed!==""&&(Vd.includes("/ > ")||Vd.includes(" < /"))?Td+=Ed+yd.indentBy+Vd+Ed:Td+=Vd,Td+=`</ $ { kd } > ` ),Id=!0}return Td}function sd(_d){const yd=Object.keys(_d);for(let gd=0;gd<yd.length;gd++){const Ed=yd[gd];if(_d.hasOwnProperty(Ed)&&Ed!==":@")return Ed}}function ld(_d,yd){let gd="";if(_d&&!yd.ignoreAttributes)for(let Ed in _d){if(!_d.hasOwnProperty(Ed))continue;let Td=yd.attributeValueProcessor(Ed,_d[Ed]);Td=ud(Td,yd),Td===!0&&yd.suppressBooleanAttributes?gd+= ` $ { Ed . substr ( yd . attributeNamePrefix . length ) } ` :gd+= ` $ { Ed . substr ( yd . attributeNamePrefix . length ) } = "${Td}" ` }return gd}function cd(_d,yd){_d=_d.substr(0,_d.length-yd.textNodeName.length-1);let gd=_d.substr(_d.lastIndexOf(".")+1);for(let Ed in yd.stopNodes)if(yd.stopNodes[Ed]===_d||yd.stopNodes[Ed]==="*."+gd)return!0;return!1}function ud(_d,yd){if(_d&&_d.length>0&&yd.processEntities)for(let gd=0;gd<yd.entities.length;gd++){const Ed=yd.entities[gd];_d=_d.replace(Ed.regex,Ed.val)}return _d}Ja.exports=rd},"./node_modules/fast-xml-parser/src/xmlparser/DocTypeReader.js":function(Ja,ed,td){const rd=td("./node_modules/fast-xml-parser/src/util.js");function od(Ed,Td){const Id={};if(Ed[Td+3]==="O"&&Ed[Td+4]==="C"&&Ed[Td+5]==="T"&&Ed[Td+6]==="Y"&&Ed[Td+7]==="P"&&Ed[Td+8]==="E"){Td=Td+9;let Ad=1,Nd=!1,kd=!1,Rd="";for(;Td<Ed.length;Td++)if(Ed[Td]==="<"&&!kd){if(Nd&&cd(Ed,Td))Td+=7,[entityName,val,Td]=sd(Ed,Td+1),val.indexOf("&")===-1&&(Id[gd(entityName)]={regx:RegExp( ` & $ { entityName } ; ` ,"g"),val});else if(Nd&&ud(Ed,Td))Td+=8;else if(Nd&&_d(Ed,Td))Td+=8;else if(Nd&&yd(Ed,Td))Td+=9;else if(ld)kd=!0;else throw new Error("Invalid DOCTYPE");Ad++,Rd=""}else if(Ed[Td]===">"){if(kd?Ed[Td-1]==="-"&&Ed[Td-2]==="-"&&(kd=!1,Ad--):Ad--,Ad===0)break}else Ed[Td]==="["?Nd=!0:Rd+=Ed[Td];if(Ad!==0)throw new Error("Unclosed DOCTYPE")}else throw new Error("Invalid Tag instead of DOCTYPE");return{entities:Id,i:Td}}function sd(Ed,Td){let Id="";for(;Td<Ed.length&&Ed[Td]!=="'"&&Ed[Td]!=='"';Td++)Id+=Ed[Td];if(Id=Id.trim(),Id.indexOf(" ")!==-1)throw new Error("External entites are not supported");const Ad=Ed[Td++];let Nd="";for(;Td<Ed.length&&Ed[Td]!==Ad;Td++)Nd+=Ed[Td];return[Id,Nd,Td]}function ld(Ed,Td){return Ed[Td+1]==="!"&&Ed[Td+2]==="-"&&Ed[Td+3]==="-"}function cd(Ed,Td){return Ed[Td+1]==="!"&&Ed[Td+2]==="E"&&Ed[Td+3]==="N"&&Ed[Td+4]==="T"&&Ed[Td+5]==="I"&&Ed[Td+6]==="T"&&Ed[Td+7]==="Y"}function ud(Ed,Td){return Ed[Td+1]==="!"&&Ed[Td+2]==="E"&&Ed[Td+3]==="L"&&Ed[Td+4]==="E"&&Ed[Td+5]==="M"&&Ed[Td+6]==="E"&&Ed[Td+7]==="N"&&Ed[Td+8]==="T"}function _d(Ed,Td){return Ed[Td+1]==="!"&&Ed[Td+2]==="A"&&Ed[Td+3]==="T"&&Ed[Td+4]==="T"&&Ed[Td+5]==="L"&&Ed[Td+6]==="I"&&Ed[Td+7]==="S"&&Ed[Td+8]==="T"}function yd(Ed,Td){return Ed[Td+1]==="!"&&Ed[Td+2]==="N"&&Ed[Td+3]==="O"&&Ed[Td+4]==="T"&&Ed[Td+5]==="A"&&Ed[Td+6]==="T"&&Ed[Td+7]==="I"&&Ed[Td+8]==="O"&&Ed[Td+9]==="N"}function gd(Ed){if(rd.isName(Ed))return Ed;throw new Error( ` Invalid entity name $ { Ed } ` )}Ja.exports=od},"./node_modules/fast-xml-parser/src/xmlparser/OptionsBuilder.js":function(Ja,ed){const td={preserveOrd
` );const Ud=new od("!xml");let qd=Ud,Wd="",Qd="";for(let Zd=0;Zd<Fd.length;Zd++)if(Fd[Zd]==="<")if(Fd[Zd+1]==="/"){const df=Md(Fd,">",Zd,"Closing Tag is not closed.");let hf=Fd.substring(Zd+2,df).trim();if(this.options.removeNSPrefix){const wf=hf.indexOf(":");wf!==-1&&(hf=hf.substr(wf+1))}this.options.transformTagName&&(hf=this.options.transformTagName(hf)),qd&&(Wd=this.saveTextToParentTag(Wd,qd,Qd));const gf=Qd.substring(Qd.lastIndexOf(".")+1);if(hf&&this.options.unpairedTags.indexOf(hf)!==-1)throw new Error( ` Unpaired tag can not be used as closing tag : < /${hf}>`);let Ef=0;gf&&this.options.unpairedTags.indexOf(gf)!==-1?(Ef=Qd.lastIndexOf(".",Qd.lastIndexOf(".")-1),this.tagsNodeStack.pop()):Ef=Qd.lastIndexOf("."),Qd=Qd.substring(0,Ef),qd=this.tagsNodeStack.pop(),Wd="",Zd=df}else if(Fd[Zd+1]==="?"){let df=Bd(Fd,Zd,!1,"?>");if(!df)throw new Error("Pi Tag is not closed.");if(Wd=this.saveTextToParentTag(Wd,qd,Qd),!(this.options.ignoreDeclaration&&df.tagName==="?xml"||this.options.ignorePiTags)){const hf=new od(df.tagName);hf.add(this.options.textNodeName,""),df.tagName!==df.tagExp&&df.attrExpPresent&&(hf[":@"]=this.buildAttributesMap(df.tagExp,Qd,df.tagName)),this.addChild(qd,hf,Qd)}Zd=df.closeIndex+1}else if(Fd.substr(Zd+1,3)==="!--"){const df=Md(Fd,"-->",Zd+4,"Comment is not closed.");if(this.options.commentPropName){const hf=Fd.substring(Zd+4,df-2);Wd=this.saveTextToParentTag(Wd,qd,Qd),qd.add(this.options.commentPropName,[{[this.options.textNodeName]:hf}])}Zd=df}else if(Fd.substr(Zd+1,2)==="!D"){const df=sd(Fd,Zd);this.docTypeEntities=df.entities,Zd=df.i}else if(Fd.substr(Zd+1,2)==="!["){const df=Md(Fd,"]]>",Zd,"CDATA is not closed.")-2,hf=Fd.substring(Zd+9,df);Wd=this.saveTextToParentTag(Wd,qd,Qd);let gf=this.parseTextData(hf,qd.tagname,Qd,!0,!1,!0,!0);gf==null&&(gf=""),this.options.cdataPropName?qd.add(this.options.cdataPropName,[{[this.options.textNodeName]:hf}]):qd.add(this.options.textNodeName,gf),Zd=df+2}else{let df=Bd(Fd,Zd,this.options.removeNSPrefix),hf=df.tagName;const gf=df.rawTagName;let Ef=df.tagExp,wf=df.attrExpPresent,$f=df.closeIndex;this.options.transformTagName&&(hf=this.options.transformTagName(hf)),qd&&Wd&&qd.tagname!=="!xml"&&(Wd=this.saveTextToParentTag(Wd,qd,Qd,!1));const Tf=qd;if(Tf&&this.options.unpairedTags.indexOf(Tf.tagname)!==-1&&(qd=this.tagsNodeStack.pop(),Qd=Qd.substring(0,Qd.lastIndexOf("."))),hf!==Ud.tagname&&(Qd+=Qd?"."+hf:hf),this.isItStopNode(this.options.stopNodes,Qd,hf)){let bf="";if(Ef.length>0&&Ef.lastIndexOf("/ ")===Ef.length-1)hf[hf.length-1]===" / "?(hf=hf.substr(0,hf.length-1),Qd=Qd.substr(0,Qd.length-1),Ef=hf):Ef=Ef.substr(0,Ef.length-1),Zd=df.closeIndex;else if(this.options.unpairedTags.indexOf(hf)!==-1)Zd=df.closeIndex;else{const Lf=this.readStopNodeData(Fd,gf,$f+1);if(!Lf)throw new Error(`Unexpected end of ${gf}`);Zd=Lf.i,bf=Lf.tagContent}const Sf=new od(hf);hf!==Ef&&wf&&(Sf[" : @ "]=this.buildAttributesMap(Ef,Qd,hf)),bf&&(bf=this.parseTextData(bf,hf,Qd,!0,wf,!0,!0)),Qd=Qd.substr(0,Qd.lastIndexOf(" . ")),Sf.add(this.options.textNodeName,bf),this.addChild(qd,Sf,Qd)}else{if(Ef.length>0&&Ef.lastIndexOf(" / ")===Ef.length-1){hf[hf.length-1]===" / "?(hf=hf.substr(0,hf.length-1),Qd=Qd.substr(0,Qd.length-1),Ef=hf):Ef=Ef.substr(0,Ef.length-1),this.options.transformTagName&&(hf=this.options.transformTagName(hf));const bf=new od(hf);hf!==Ef&&wf&&(bf[" : @ "]=this.buildAttributesMap(Ef,Qd,hf)),this.addChild(qd,bf,Qd),Qd=Qd.substr(0,Qd.lastIndexOf(" . "))}else{const bf=new od(hf);this.tagsNodeStack.push(qd),hf!==Ef&&wf&&(bf[" : @ "]=this.buildAttributesMap(Ef,Qd,hf)),this.addChild(qd,bf,Qd),qd=bf}Wd=" ",Zd=$f}}else Wd+=Fd[Zd];return Ud.child};function Id(Fd,Ud,qd){const Wd=this.options.updateTag(Ud.tagname,qd,Ud[" : @ "]);Wd===!1||(typeof Wd==" string " && ( Ud . tagname = Wd ) , Fd . addChild ( Ud ) ) } const Ad = function ( Fd ) { if ( this . options . processEntities ) { for ( let Ud in this . docTypeEntities ) { const qd = this . docTypeEntities [ Ud ] ; Fd = Fd . replace ( qd . regx , qd . val ) } for ( let Ud in this . lastEntities ) { const qd = this . lastEntities [ Ud ] ; Fd = Fd . replace ( qd . regex , qd . val ) } if ( this . options . htmlEntities ) for ( let Ud in this . htmlEntities ) { const qd = this . htm
In order to be iterable , non - array objects must have a [ Symbol . iterator ] ( ) method . ` )}var wh=!0,Yh=!1,mm;return{s:function(){Xf=Xf.call(Rf)},n:function(){var um=Xf.next();return wh=um.done,um},e:function(um){Yh=!0,mm=um},f:function(){try{!wh&&Xf.return!=null&&Xf.return()}finally{if(Yh)throw mm}}}}function ld(Rf,xf){if(Rf){if(typeof Rf=="string")return cd(Rf,xf);var Xf=Object.prototype.toString.call(Rf).slice(8,-1);if(Xf==="Object"&&Rf.constructor&&(Xf=Rf.constructor.name),Xf==="Map"||Xf==="Set")return Array.from(Rf);if(Xf==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array $ /.test(Xf))return cd(Rf,xf)}}function cd(Rf,xf){(xf==null||xf>Rf.length)&&(xf=Rf.length);for(var Xf=0,qf=new Array(xf);Xf<xf;Xf++)qf[Xf]=Rf[Xf];return qf}var ud=td("./lib/md5.js"),_d=td("./lib/crypto.js"),yd=td("./node_modules/fast-xml-parser/src/fxp.js"),gd=yd.XMLParser,Ed=yd.XMLBuilder,Td=new gd({ignoreDeclaration:!0,ignoreAttributes:!0,parseTagValue:!1}),Id=new Ed,Ad=td("./lib/base64.js"),Nd=td("./src/tracker.js"),kd=function(xf){var Xf=Td.parse(xf);return Xf},Rd=function(xf){var Xf=Id.build(xf);return Xf};function Md(Rf){return encodeURIComponent(Rf).replace(/!/g,"%21").replace(/'/g,"%27").replace(/ \( /g,"%28").replace(/ \) /g,"%29").replace(/ \* /g,"%2A")}function Bd(Rf,xf){var Xf=[];for(var qf in Rf)Rf.hasOwnProperty(qf)&&Xf.push(xf?Md(qf).toLowerCase():qf);return Xf.sort(function(gh,wh){return gh=gh.toLowerCase(),wh=wh.toLowerCase(),gh===wh?0:gh>wh?1:-1})}var jd=function(xf,Xf){var qf,gh,wh,Yh=[],mm=Bd(xf);for(qf=0;qf<mm.length;qf++)gh=mm[qf],wh=xf[gh]===void 0||xf[gh]===null?"":""+xf[gh],gh=Xf?Md(gh).toLowerCase():Md(gh),wh=Md(wh)||"",Yh.push(gh+"="+wh);return Yh.join("&")},Vd=["cache-control","content-disposition","content-encoding","content-length","content-md5","expect","expires","host","if-match","if-modified-since","if-none-match","if-unmodified-since","origin","range","transfer-encoding","pic-operations"],Fd=function(xf){var Xf={};for(var qf in xf){var gh=qf.toLowerCase();(gh.indexOf("x-cos-")>-1||Vd.indexOf(gh)>-1)&&(Xf[qf]=xf[qf])}return Xf},Ud=function(xf){xf=xf||{};var Xf=xf.SecretId,qf=xf.SecretKey,gh=xf.KeyTime,wh=(xf.method||xf.Method||"get").toLowerCase(),Yh=bf(xf.Query||xf.params||{}),mm=Fd(bf(xf.Headers||xf.headers||{})),kh=xf.Key||"",um;xf.UseRawKey?um=xf.Pathname||xf.pathname||"/"+kh:(um=xf.Pathname||xf.pathname||kh,um.indexOf("/")!==0&&(um="/"+um));var Sm=xf.ForceSignHost!==!1;if(!mm.Host&&!mm.host&&xf.Bucket&&xf.Region&&Sm&&(mm.Host=xf.Bucket+".cos."+xf.Region+".myqcloud.com"),!Xf)throw new Error("missing param SecretId");if(!qf)throw new Error("missing param SecretKey");var _m=Math.round(Ff(xf.SystemClockOffset)/1e3)-1,jm=_m,Jm=xf.Expires||xf.expires;Jm===void 0?jm+=900:jm+=Jm*1||0;var _1="sha1",S1=Xf,Qm=gh||_m+";"+jm,M1=gh||_m+";"+jm,y1=Bd(mm,!0).join(";").toLowerCase(),H1=Bd(Yh,!0).join(";").toLowerCase(),U1=_d.HmacSHA1(M1,qf).toString(),k1=[wh,um,ih.obj2str(Yh,!0),ih.obj2str(mm,!0),""].join( `
` ),I1=["sha1",Qm,_d.SHA1(k1).toString(),""].join( `
2024-08-31 15:27:49 +08:00
` ),Hm=_d.HmacSHA1(I1,U1).toString(),v1=["q-sign-algorithm="+_1,"q-ak="+S1,"q-sign-time="+Qm,"q-key-time="+M1,"q-header-list="+y1,"q-url-param-list="+H1,"q-signature="+Hm].join("&");return v1},qd=function(xf,Xf,qf){var gh=Xf/8,wh=xf.slice(qf,qf+gh);return new Uint8Array(wh).reverse(),new{8:Uint8Array,16:Uint16Array,32:Uint32Array}[Xf](wh)[0]},Wd=function(xf,Xf,qf,gh){var wh=xf.slice(Xf,qf),Yh="";return new Uint8Array(wh).forEach(function(mm){Yh+=String.fromCharCode(mm)}),gh&&(Yh=decodeURIComponent(escape(Yh))),Yh},Qd=function(xf){for(var Xf={},qf=Wd(xf),gh={records:[]};xf.byteLength;){var wh=qd(xf,32,0),Yh=qd(xf,32,4),mm=wh-Yh-16,kh=0,um;for(xf=xf.slice(12);kh<Yh;){var Sm=qd(xf,8,kh),_m=Wd(xf,kh+1,kh+1+Sm),jm=qd(xf,16,kh+Sm+2),Jm=Wd(xf,kh+Sm+4,kh+Sm+4+jm);Xf[_m]=Jm,kh+=Sm+4+jm}if(Xf[":event-type"]==="Records")um=Wd(xf,kh,kh+mm,!0),gh.records.push(um);else if(Xf[":event-type"]==="Stats")um=Wd(xf,kh,kh+mm,!0),gh.stats=ih.xml2json(um).Stats;else if(Xf[":event-type"]==="error"){var _1=Xf[":error-code"],S1=Xf[":error-message"],Qm=new Error(S1);Qm.message=S1,Qm.name=Qm.code=_1,gh.error=Qm}xf=xf.slice(kh+mm+4)}return{payload:gh.records.join(""),body:qf}},Zd=function(xf){var Xf=this.options.CopySourceParser;if(Xf)return Xf(xf);var qf=xf.match(/^([^.]+- \d +) \. cos(v6|-cdc|-cdz|-internal)? \. ([^.]+) \. ((myqcloud \. com)|(tencentcos \. cn)) \/ (.+) $ /);return qf?{Bucket:qf[1],Region:qf[3],Key:qf[7]}:null},Xd=function(){},df=function(xf){var Xf={};for(var qf in xf)xf.hasOwnProperty(qf)&&xf[qf]!==void 0&&xf[qf]!==null&&(Xf[qf]=xf[qf]);return Xf},hf=function(xf,Xf){var qf,gh=new FileReader;FileReader.prototype.readAsBinaryString?(qf=FileReader.prototype.readAsBinaryString,gh.onload=function(){Xf(this.result)}):FileReader.prototype.readAsArrayBuffer?qf=function(Yh){var mm="",kh=new FileReader;kh.onload=function(um){for(var Sm=new Uint8Array(kh.result),_m=Sm.byteLength,jm=0;jm<_m;jm++)mm+=String.fromCharCode(Sm[jm]);Xf(mm)},kh.readAsArrayBuffer(Yh)}:console.error("FileReader not support readAsBinaryString"),qf.call(gh,xf)},gf=function(){var Rf=function(qf,gh){qf=qf.split("."),gh=gh.split(".");for(var wh=0;wh<gh.length;wh++)if(qf[wh]!==gh[wh])return parseInt(qf[wh])>parseInt(gh[wh])?1:-1;return 0},xf=function(qf){if(!qf)return!1;var gh=(qf.match(/Chrome \/ ([. \d ]+)/)||[])[1],wh=(qf.match(/QBCore \/ ([. \d ]+)/)||[])[1],Yh=(qf.match(/QQBrowser \/ ([. \d ]+)/)||[])[1],mm=gh&&Rf(gh,"53.0.2785.116")<0&&wh&&Rf(wh,"3.53.991.400")<0&&Yh&&Rf(Yh,"9.0.2524.400")<=0||!1;return mm};return xf(typeof navigator<"u"&&navigator.userAgent)}(),Ef=function(xf,Xf,qf,gh,wh){var Yh;if(xf.slice?Yh=xf.slice(Xf,qf):xf.mozSlice?Yh=xf.mozSlice(Xf,qf):xf.webkitSlice&&(Yh=xf.webkitSlice(Xf,qf)),gh&&gf){var mm=new FileReader;mm.onload=function(kh){Yh=null,wh(new Blob([mm.result]))},mm.readAsArrayBuffer(Yh)}else wh(Yh)},wf=function(xf,Xf,qf,gh){qf=qf||Xd,xf?typeof Xf=="string"?qf(ih.md5(Xf,!0)):Blob&&Xf instanceof Blob?ih.getFileMd5(Xf,function(wh,Yh){qf(Yh)},gh):qf():qf()}, $ f=1024*1024,Tf=function(xf,Xf,qf){var gh=xf.size,wh=0,Yh=ud.getCtx(),mm=function kh(um){if(um>=gh){var Sm=Yh.digest("hex");Xf(null,Sm);return}var _m=Math.min(gh,um+ $ f);ih.fileSlice(xf,um,_m,!1,function(jm){hf(jm,function(Jm){jm=null,Yh=Yh.update(Jm,!0),wh+=Jm.length,Jm=null,qf&&qf({loaded:wh,total:gh,percent:Math.round(wh/gh*1e4)/1e4}),kh(um+ $ f)})})};mm(0)};function bf(Rf){return zf(Rf,function(xf){return od(xf)==="object"&&xf!==null?bf(xf):xf})}function Sf(Rf,xf,Xf){return Rf&&xf in Rf?Rf[xf]:Xf}function Lf(Rf,xf){return Bf(xf,function(Xf,qf){Rf[qf]=xf[qf]}),Rf}function Pf(Rf){return Rf instanceof Array}function _f(Rf,xf){for(var Xf=!1,qf=0;qf<Rf.length;qf++)if(xf===Rf[qf]){Xf=!0;break}return Xf}function yf(Rf){return Pf(Rf)?Rf:[Rf]}function Bf(Rf,xf){for(var Xf in Rf)Rf.hasOwnProperty(Xf)&&xf(Rf[Xf],Xf)}function zf(Rf,xf){var Xf=Pf(Rf)?[]:{};for(var qf in Rf)Rf.hasOwnProperty(qf)&&(Xf[qf]=xf(Rf[qf],qf));return Xf}function Yf(Rf,xf){var Xf=Pf(Rf),qf=Xf?[]:{};for(var gh in Rf)Rf.hasOwnProperty(gh)&&xf(Rf[gh],gh)&&(Xf?qf.push(Rf[gh]):qf[gh]=Rf[gh]);return qf}var jf=function(xf){var Xf,qf,gh,wh="";for(Xf=0,qf=xf.length/2
2024-08-31 11:28:56 +08:00
` ).forEach(function(od){td=od.indexOf(":"),Ja=od.substring(0,td).trim().toLowerCase(),ed=od.substring(td+1).trim(),!(!Ja||qa[Ja]&&ignoreDuplicateOf[Ja])&&(Ja==="set-cookie"?qa[Ja]?qa[Ja].push(ed):qa[Ja]=[ed]:qa[Ja]=qa[Ja]?qa[Ja]+", "+ed:ed)}),qa}, $ internals=Symbol("internals");function normalizeHeader(Ra){return Ra&&String(Ra).trim().toLowerCase()}function normalizeValue(Ra){return Ra===!1||Ra==null?Ra:utils $ 1.isArray(Ra)?Ra.map(normalizeValue):String(Ra)}function parseTokens(Ra){const qa=Object.create(null),Ja=/([^ \s ,;=]+) \s *(?:= \s *([^,;]+))?/g;let ed;for(;ed=Ja.exec(Ra);)qa[ed[1]]=ed[2];return qa}const isValidHeaderName=Ra=>/^[-_a-zA-Z0-9^ ` | ~ , ! # $ % & ' * + . ] + $ / . test ( Ra . trim ( ) ) ; function matchHeaderValue ( Ra , qa , Ja , ed , td ) { if ( utils$1 . isFunction ( ed ) ) return ed . call ( this , qa , Ja ) ; if ( td && ( qa = Ja ) , ! ! utils$1 . isString ( qa ) ) { if ( utils$1 . isString ( ed ) ) return qa . indexOf ( ed ) !== - 1 ; if ( utils$1 . isRegExp ( ed ) ) return ed . test ( qa ) } } function formatHeader ( Ra ) { return Ra . trim ( ) . toLowerCase ( ) . replace ( /([a-z\d])(\w*)/g , ( qa , Ja , ed ) => Ja . toUpperCase ( ) + ed ) } function buildAccessors ( Ra , qa ) { const Ja = utils$1 . toCamelCase ( " " + qa ) ; [ "get" , "set" , "has" ] . forEach ( ed => { Object . defineProperty ( Ra , ed + Ja , { value : function ( td , rd , od ) { return this [ ed ] . call ( this , qa , td , rd , od ) } , configurable : ! 0 } ) } ) } class AxiosHeaders { constructor ( qa ) { qa && this . set ( qa ) } set ( qa , Ja , ed ) { const td = this ; function rd ( sd , ld , cd ) { const ud = normalizeHeader ( ld ) ; if ( ! ud ) throw new Error ( "header name must be a non-empty string" ) ; const _d = utils$1 . findKey ( td , ud ) ; ( ! _d || td [ _d ] === void 0 || cd === ! 0 || cd === void 0 && td [ _d ] !== ! 1 ) && ( td [ _d || ld ] = normalizeValue ( sd ) ) } const od = ( sd , ld ) => utils$1 . forEach ( sd , ( cd , ud ) => rd ( cd , ud , ld ) ) ; if ( utils$1 . isPlainObject ( qa ) || qa instanceof this . constructor ) od ( qa , Ja ) ; else if ( utils$1 . isString ( qa ) && ( qa = qa . trim ( ) ) && ! isValidHeaderName ( qa ) ) od ( parseHeaders ( qa ) , Ja ) ; else if ( utils$1 . isHeaders ( qa ) ) for ( const [ sd , ld ] of qa . entries ( ) ) rd ( ld , sd , ed ) ; else qa != null && rd ( Ja , qa , ed ) ; return this } get ( qa , Ja ) { if ( qa = normalizeHeader ( qa ) , qa ) { const ed = utils$1 . findKey ( this , qa ) ; if ( ed ) { const td = this [ ed ] ; if ( ! Ja ) return td ; if ( Ja === ! 0 ) return parseTokens ( td ) ; if ( utils$1 . isFunction ( Ja ) ) return Ja . call ( this , td , ed ) ; if ( utils$1 . isRegExp ( Ja ) ) return Ja . exec ( td ) ; throw new TypeError ( "parser must be boolean|regexp|function" ) } } } has ( qa , Ja ) { if ( qa = normalizeHeader ( qa ) , qa ) { const ed = utils$1 . findKey ( this , qa ) ; return ! ! ( ed && this [ ed ] !== void 0 && ( ! Ja || matchHeaderValue ( this , this [ ed ] , ed , Ja ) ) ) } return ! 1 } delete ( qa , Ja ) { const ed = this ; let td = ! 1 ; function rd ( od ) { if ( od = normalizeHeader ( od ) , od ) { const sd = utils$1 . findKey ( ed , od ) ; sd && ( ! Ja || matchHeaderValue ( ed , ed [ sd ] , sd , Ja ) ) && ( delete ed [ sd ] , td = ! 0 ) } } return utils$1 . isArray ( qa ) ? qa . forEach ( rd ) : rd ( qa ) , td } clear ( qa ) { const Ja = Object . keys ( this ) ; let ed = Ja . length , td = ! 1 ; for ( ; ed -- ; ) { const rd = Ja [ ed ] ; ( ! qa || matchHeaderValue ( this , this [ rd ] , rd , qa , ! 0 ) ) && ( delete this [ rd ] , td = ! 0 ) } return td } normalize ( qa ) { const Ja = this , ed = { } ; return utils$1 . forEach ( this , ( td , rd ) => { const od = utils$1 . findKey ( ed , rd ) ; if ( od ) { Ja [ od ] = normalizeValue ( td ) , delete Ja [ rd ] ; return } const sd = qa ? formatHeader ( rd ) : String ( rd ) . trim ( ) ; sd !== rd && delete Ja [ rd ] , Ja [ sd ] = normalizeValue ( td ) , ed [ sd ] = ! 0 } ) , this } concat ( ... qa ) { return this . constructor . concat ( this , ... qa ) } toJSON ( qa ) { const Ja = Object . create ( null ) ; return utils$1 . forEach ( this , ( ed , td ) => { ed != null && ed !== ! 1 && ( Ja [ td ] = qa && utils$1 . isArray ( ed ) ? ed . join ( ", " ) : ed ) } ) , Ja } [ Symbol . iterator ] ( ) { return Object . entries ( this . toJSON ( ) ) [ Symbol . iterator ] ( ) } toString ( ) { return Object . entries ( this . toJSON ( ) ) . map ( ( [ qa , Ja ] ) => qa + ": " + Ja ) . join ( `
` )}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(qa){return qa instanceof this?qa:new this(qa)}static concat(qa,...Ja){const ed=new this(qa);return Ja.forEach(td=>ed.set(td)),ed}static accessor(qa){const ed=(this[ $ internals]=this[ $ internals]={accessors:{}}).accessors,td=this.prototype;function rd(od){const sd=normalizeHeader(od);ed[sd]||(buildAccessors(td,od),ed[sd]=!0)}return utils $ 1.isArray(qa)?qa.forEach(rd):rd(qa),this}}AxiosHeaders.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);utils $ 1.reduceDescriptors(AxiosHeaders.prototype,({value:Ra},qa)=>{let Ja=qa[0].toUpperCase()+qa.slice(1);return{get:()=>Ra,set(ed){this[Ja]=ed}}});utils $ 1.freezeMethods(AxiosHeaders);function transformData(Ra,qa){const Ja=this||defaults,ed=qa||Ja,td=AxiosHeaders.from(ed.headers);let rd=ed.data;return utils $ 1.forEach(Ra,function(sd){rd=sd.call(Ja,rd,td.normalize(),qa?qa.status:void 0)}),td.normalize(),rd}function isCancel(Ra){return!!(Ra&&Ra.__CANCEL__)}function CanceledError(Ra,qa,Ja){AxiosError.call(this,Ra??"canceled",AxiosError.ERR_CANCELED,qa,Ja),this.name="CanceledError"}utils $ 1.inherits(CanceledError,AxiosError,{__CANCEL__:!0});function settle(Ra,qa,Ja){const ed=Ja.config.validateStatus;!Ja.status||!ed||ed(Ja.status)?Ra(Ja):qa(new AxiosError("Request failed with status code "+Ja.status,[AxiosError.ERR_BAD_REQUEST,AxiosError.ERR_BAD_RESPONSE][Math.floor(Ja.status/100)-4],Ja.config,Ja.request,Ja))}function parseProtocol(Ra){const qa=/^([-+ \w ]{1,25})(:? \/ \/ |:)/.exec(Ra);return qa&&qa[1]||""}function speedometer(Ra,qa){Ra=Ra||10;const Ja=new Array(Ra),ed=new Array(Ra);let td=0,rd=0,od;return qa=qa!==void 0?qa:1e3,function(ld){const cd=Date.now(),ud=ed[rd];od||(od=cd),Ja[td]=ld,ed[td]=cd;let _d=rd,yd=0;for(;_d!==td;)yd+=Ja[_d++],_d=_d%Ra;if(td=(td+1)%Ra,td===rd&&(rd=(rd+1)%Ra),cd-od<qa)return;const gd=ud&&cd-ud;return gd?Math.round(yd*1e3/gd):void 0}}function throttle(Ra,qa){let Ja=0,ed=1e3/qa,td,rd;const od=(cd,ud=Date.now())=>{Ja=ud,td=null,rd&&(clearTimeout(rd),rd=null),Ra.apply(null,cd)};return[(...cd)=>{const ud=Date.now(),_d=ud-Ja;_d>=ed?od(cd,ud):(td=cd,rd||(rd=setTimeout(()=>{rd=null,od(td)},ed-_d)))},()=>td&&od(td)]}const progressEventReducer=(Ra,qa,Ja=3)=>{let ed=0;const td=speedometer(50,250);return throttle(rd=>{const od=rd.loaded,sd=rd.lengthComputable?rd.total:void 0,ld=od-ed,cd=td(ld),ud=od<=sd;ed=od;const _d={loaded:od,total:sd,progress:sd?od/sd:void 0,bytes:ld,rate:cd||void 0,estimated:cd&&sd&&ud?(sd-od)/cd:void 0,event:rd,lengthComputable:sd!=null,[qa?"download":"upload"]:!0};Ra(_d)},Ja)},progressEventDecorator=(Ra,qa)=>{const Ja=Ra!=null;return[ed=>qa[0]({lengthComputable:Ja,total:Ra,loaded:ed}),qa[1]]},asyncDecorator=Ra=>(...qa)=>utils $ 1.asap(()=>Ra(...qa)),isURLSameOrigin=platform.hasStandardBrowserEnv?function(){const qa=platform.navigator&&/(msie|trident)/i.test(platform.navigator.userAgent),Ja=document.createElement("a");let ed;function td(rd){let od=rd;return qa&&(Ja.setAttribute("href",od),od=Ja.href),Ja.setAttribute("href",od),{href:Ja.href,protocol:Ja.protocol?Ja.protocol.replace(/: $ /,""):"",host:Ja.host,search:Ja.search?Ja.search.replace(/^ \? /,""):"",hash:Ja.hash?Ja.hash.replace(/^#/,""):"",hostname:Ja.hostname,port:Ja.port,pathname:Ja.pathname.charAt(0)==="/"?Ja.pathname:"/"+Ja.pathname}}return ed=td(window.location.href),function(od){const sd=utils $ 1.isString(od)?td(od):od;return sd.protocol===ed.protocol&&sd.host===ed.host}}():function(){return function(){return!0}}(),cookies=platform.hasStandardBrowserEnv?{write(Ra,qa,Ja,ed,td,rd){const od=[Ra+"="+encodeURIComponent(qa)];utils $ 1.isNumber(Ja)&&od.push("expires="+new Date(Ja).toGMTString()),utils $ 1.isString(ed)&&od.push("path="+ed),utils $ 1.isString(td)&&od.push("domain="+td),rd===!0&&od.push("secure"),document.cookie=od.join("; ")},read(Ra){const qa=document.cookie.match(new RegExp("(^|; \\ s*)("+Ra+")=([^;]*)"));return qa?decodeURIComponent(qa[3]):null},remove(Ra){this.write(Ra,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function isAbsoluteURL(Ra){return/^([a-z][a-z \d + \- .]*
2024-08-30 15:19:18 +08:00
` +rd.map(renderReason).join( `
2024-08-31 11:28:56 +08:00
` ):" "+renderReason(rd[0]):"as no adapter specified";throw new AxiosError("There is no suitable adapter to dispatch the request "+od,"ERR_NOT_SUPPORT")}return ed},adapters:knownAdapters};function throwIfCancellationRequested(Ra){if(Ra.cancelToken&&Ra.cancelToken.throwIfRequested(),Ra.signal&&Ra.signal.aborted)throw new CanceledError(null,Ra)}function dispatchRequest(Ra){return throwIfCancellationRequested(Ra),Ra.headers=AxiosHeaders.from(Ra.headers),Ra.data=transformData.call(Ra,Ra.transformRequest),["post","put","patch"].indexOf(Ra.method)!==-1&&Ra.headers.setContentType("application/x-www-form-urlencoded",!1),adapters.getAdapter(Ra.adapter||defaults.adapter)(Ra).then(function(ed){return throwIfCancellationRequested(Ra),ed.data=transformData.call(Ra,Ra.transformResponse,ed),ed.headers=AxiosHeaders.from(ed.headers),ed},function(ed){return isCancel(ed)||(throwIfCancellationRequested(Ra),ed&&ed.response&&(ed.response.data=transformData.call(Ra,Ra.transformResponse,ed.response),ed.response.headers=AxiosHeaders.from(ed.response.headers))),Promise.reject(ed)})}const VERSION="1.7.6",validators $ 1={};["object","boolean","number","function","string","symbol"].forEach((Ra,qa)=>{validators $ 1[Ra]=function(ed){return typeof ed===Ra||"a"+(qa<1?"n ":" ")+Ra}});const deprecatedWarnings={};validators $ 1.transitional=function(qa,Ja,ed){function td(rd,od){return"[Axios v"+VERSION+"] Transitional option '"+rd+"'"+od+(ed?". "+ed:"")}return(rd,od,sd)=>{if(qa===!1)throw new AxiosError(td(od," has been removed"+(Ja?" in "+Ja:"")),AxiosError.ERR_DEPRECATED);return Ja&&!deprecatedWarnings[od]&&(deprecatedWarnings[od]=!0,console.warn(td(od," has been deprecated since v"+Ja+" and will be removed in the near future"))),qa?qa(rd,od,sd):!0}};function assertOptions(Ra,qa,Ja){if(typeof Ra!="object")throw new AxiosError("options must be an object",AxiosError.ERR_BAD_OPTION_VALUE);const ed=Object.keys(Ra);let td=ed.length;for(;td-- >0;){const rd=ed[td],od=qa[rd];if(od){const sd=Ra[rd],ld=sd===void 0||od(sd,rd,Ra);if(ld!==!0)throw new AxiosError("option "+rd+" must be "+ld,AxiosError.ERR_BAD_OPTION_VALUE);continue}if(Ja!==!0)throw new AxiosError("Unknown option "+rd,AxiosError.ERR_BAD_OPTION)}}const validator={assertOptions,validators:validators $ 1},validators=validator.validators;class Axios{constructor(qa){this.defaults=qa,this.interceptors={request:new InterceptorManager,response:new InterceptorManager}}async request(qa,Ja){try{return await this._request(qa,Ja)}catch(ed){if(ed instanceof Error){let td;Error.captureStackTrace?Error.captureStackTrace(td={}):td=new Error;const rd=td.stack?td.stack.replace(/^.+ \n /,""):"";try{ed.stack?rd&&!String(ed.stack).endsWith(rd.replace(/^.+ \n .+ \n /,""))&&(ed.stack+= `
` +rd):ed.stack=rd}catch{}}throw ed}}_request(qa,Ja){typeof qa=="string"?(Ja=Ja||{},Ja.url=qa):Ja=qa||{},Ja=mergeConfig(this.defaults,Ja);const{transitional:ed,paramsSerializer:td,headers:rd}=Ja;ed!==void 0&&validator.assertOptions(ed,{silentJSONParsing:validators.transitional(validators.boolean),forcedJSONParsing:validators.transitional(validators.boolean),clarifyTimeoutError:validators.transitional(validators.boolean)},!1),td!=null&&(utils $ 1.isFunction(td)?Ja.paramsSerializer={serialize:td}:validator.assertOptions(td,{encode:validators.function,serialize:validators.function},!0)),Ja.method=(Ja.method||this.defaults.method||"get").toLowerCase();let od=rd&&utils $ 1.merge(rd.common,rd[Ja.method]);rd&&utils $ 1.forEach(["delete","get","head","post","put","patch","common"],Ed=>{delete rd[Ed]}),Ja.headers=AxiosHeaders.concat(od,rd);const sd=[];let ld=!0;this.interceptors.request.forEach(function(Td){typeof Td.runWhen=="function"&&Td.runWhen(Ja)===!1||(ld=ld&&Td.synchronous,sd.unshift(Td.fulfilled,Td.rejected))});const cd=[];this.interceptors.response.forEach(function(Td){cd.push(Td.fulfilled,Td.rejected)});let ud,_d=0,yd;if(!ld){const Ed=[dispatchRequest.bind(this),void 0];for(Ed.unshift.apply(Ed,sd),Ed.push.apply(Ed,cd),yd=Ed.length,ud=Promise.resolve(Ja);_d<yd;)ud=ud.then(Ed[_d++],Ed[_d++]);return ud}yd=sd.length;let gd=Ja;for(_d=0;_d<yd;){const Ed=sd[_d++],Td=sd[_d++];try{gd=Ed(gd)}catch(Id){Td.call(this,Id);break}}try{ud=dispatchRequest.call(this,gd)}catch(Ed){return Promise.reject(Ed)}for(_d=0,yd=cd.length;_d<yd;)ud=ud.then(cd[_d++],cd[_d++]);return ud}getUri(qa){qa=mergeConfig(this.defaults,qa);const Ja=buildFullPath(qa.baseURL,qa.url);return buildURL(Ja,qa.params,qa.paramsSerializer)}}utils $ 1.forEach(["delete","get","head","options"],function(qa){Axios.prototype[qa]=function(Ja,ed){return this.request(mergeConfig(ed||{},{method:qa,url:Ja,data:(ed||{}).data}))}});utils $ 1.forEach(["post","put","patch"],function(qa){function Ja(ed){return function(rd,od,sd){return this.request(mergeConfig(sd||{},{method:qa,headers:ed?{"Content-Type":"multipart/form-data"}:{},url:rd,data:od}))}}Axios.prototype[qa]=Ja(),Axios.prototype[qa+"Form"]=Ja(!0)});class CancelToken{constructor(qa){if(typeof qa!="function")throw new TypeError("executor must be a function.");let Ja;this.promise=new Promise(function(rd){Ja=rd});const ed=this;this.promise.then(td=>{if(!ed._listeners)return;let rd=ed._listeners.length;for(;rd-- >0;)ed._listeners[rd](td);ed._listeners=null}),this.promise.then=td=>{let rd;const od=new Promise(sd=>{ed.subscribe(sd),rd=sd}).then(td);return od.cancel=function(){ed.unsubscribe(rd)},od},qa(function(rd,od,sd){ed.reason||(ed.reason=new CanceledError(rd,od,sd),Ja(ed.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(qa){if(this.reason){qa(this.reason);return}this._listeners?this._listeners.push(qa):this._listeners=[qa]}unsubscribe(qa){if(!this._listeners)return;const Ja=this._listeners.indexOf(qa);Ja!==-1&&this._listeners.splice(Ja,1)}toAbortSignal(){const qa=new AbortController,Ja=ed=>{qa.abort(ed)};return this.subscribe(Ja),qa.signal.unsubscribe=()=>this.unsubscribe(Ja),qa.signal}static source(){let qa;return{token:new CancelToken(function(td){qa=td}),cancel:qa}}}function spread(Ra){return function(Ja){return Ra.apply(null,Ja)}}function isAxiosError(Ra){return utils $ 1.isObject(Ra)&&Ra.isAxiosError===!0}const HttpStatusCode={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,Expect
2024-08-27 22:31:52 +08:00
async ( CUSTOM _ARG ) => {
$ { localStorage . getItem ( "formCustomConfig" ) }
}
2024-08-31 11:28:56 +08:00
` ;return new Promise((resolve,reject)=>{const exportObj={content,file,util:{axios:service,CryptoJS,OSS,COS,Buffer,uuidv4:v4,qiniu,tokenTools,getDir,getDateFilename},okCb:resolve,errCb:reject};eval(str)(exportObj).catch(Ra=>{console.error(Ra),reject(Ra)})})}function fileUpload(Ra,qa){const Ja=localStorage.getItem("imgHost");switch(!Ja&&localStorage.setItem("imgHost","default"),Ja){case"aliOSS":return aliOSSFileUpload(qa);case"minio":return minioFileUpload(Ra,qa.name);case"txCOS":return txCOSFileUpload(qa);case"qiniu":return qiniuUpload(qa);case"gitee":return giteeUpload(Ra,qa.name);case"github":return ghFileUpload(Ra,qa.name);case"formCustom":return formCustomUpload(Ra,qa);default:return ghFileUpload(Ra,qa.name)}}const fileApi={fileUpload},_sfc_main $ v={__name:"PostInfo",setup(Ra){const qa=useStore(),{output:Ja}=storeToRefs(qa),ed=ref $ 1(!1),td=ref $ 1({title:"",desc:"",thumb:"",content:""});function rd(){var ld;let sd={};try{sd={thumb:(ld=document.querySelector("#output img"))==null?void 0:ld.src,title:[1,2,3,4,5,6].map(cd=>document.querySelector( ` # output h$ { cd } ` )).filter(cd=>cd)[0].textContent,desc:document.querySelector("#output p").textContent,content:Ja.value}}catch(cd){console.log("error",cd)}td.value={...sd,auto:sd},ed.value=!0}function od(){ed.value=!1,window.syncPost({thumb:td.value.thumb||td.value.auto.thumb,title:td.value.title||td.value.auto.title,desc:td.value.desc||td.value.auto.desc,content:td.value.content||td.value.auto.content})}return(sd,ld)=>{const cd=resolveComponent("el-button"),ud=resolveComponent("el-alert"),_d=resolveComponent("el-input"),yd=resolveComponent("el-form-item"),gd=resolveComponent("el-form"),Ed=resolveComponent("el-dialog");return openBlock(),createElementBlock(Fragment,null,[createVNode(cd,{plain:"",type:"primary",onClick:rd},{default:withCtx(()=>[createTextVNode(" 发布 ")]),_:1}),createVNode(Ed,{title:"发布","model-value":ed.value,onClose:ld[4]||(ld[4]=Td=>ed.value=!1)},{footer:withCtx(()=>[createVNode(cd,{onClick:ld[3]||(ld[3]=Td=>ed.value=!1)},{default:withCtx(()=>[createTextVNode(" 取 消 ")]),_:1}),createVNode(cd,{type:"primary",onClick:od},{default:withCtx(()=>[createTextVNode(" 确 定 ")]),_:1})]),default:withCtx(()=>[createVNode(ud,{class:"mb-4",title:"注:此功能由第三方浏览器插件支持,本平台不保证安全性。",type:"info","show-icon":""}),createVNode(gd,{class:"postInfo","label-width":"50",model:td.value},{default:withCtx(()=>[createVNode(yd,{label:"封面"},{default:withCtx(()=>[createVNode(_d,{modelValue:td.value.thumb,"onUpdate:modelValue":ld[0]||(ld[0]=Td=>td.value.thumb=Td),placeholder:"自动提取第一张图"},null,8,["modelValue"])]),_:1}),createVNode(yd,{label:"标题"},{default:withCtx(()=>[createVNode(_d,{modelValue:td.value.title,"onUpdate:modelValue":ld[1]||(ld[1]=Td=>td.value.title=Td),placeholder:"自动提取第一个标题"},null,8,["modelValue"])]),_:1}),createVNode(yd,{label:"描述"},{default:withCtx(()=>[createVNode(_d,{modelValue:td.value.desc,"onUpdate:modelValue":ld[2]||(ld[2]=Td=>td.value.desc=Td),type:"textarea",rows:4,placeholder:"自动提取第一个段落"},null,8,["modelValue"])]),_:1})]),_:1},8,["model"])]),_:1},8,["model-value"])],64)}}};function isComponentPublicInstance(Ra){return Ra!=null&&typeof Ra=="object"&&" $ el"in Ra}function unwrapElement(Ra){if(isComponentPublicInstance(Ra)){const qa=Ra. $ el;return isNode $ 1(qa)&&getNodeName(qa)==="#comment"?null:qa}return Ra}function toValue $ 1(Ra){return typeof Ra=="function"?Ra():unref(Ra)}function arrow(Ra){return{name:"arrow",options:Ra,fn(qa){const Ja=unwrapElement(toValue $ 1(Ra.element));return Ja==null?{}:arrow $ 1({element:Ja,padding:Ra.padding}).fn(qa)}}}function getDPR(Ra){return typeof window>"u"?1:(Ra.ownerDocument.defaultView||window).devicePixelRatio||1}function roundByDPR(Ra,qa){const Ja=getDPR(Ra);return Math.round(qa*Ja)/Ja}function useFloating(Ra,qa,Ja){Ja===void 0&&(Ja={});const ed=Ja.whileElementsMounted,td=computed(()=>{var jd;return(jd=toValue $ 1(Ja.open))!=null?jd:!0}),rd=computed(()=>toValue $ 1(Ja.middleware)),od=computed(()=>{var jd;return(jd=toValue $ 1(J
2024-08-27 22:31:52 +08:00
` )].join( `
2024-08-31 11:28:56 +08:00
` ))}return()=>rd.value||td.value||sd.value?h $ 2(qa.default({present:sd})[0],{ref:ud=>{const _d= $ e(ud);return typeof(_d==null?void 0:_d.hasAttribute)>"u"||(_d!=null&&_d.hasAttribute("data-radix-popper-content-wrapper")?od.value=_d.firstElementChild:od.value=_d),_d}}):null}}),ht=defineComponent({__name:"Teleport",props:{to:{default:"body"},disabled:{type:Boolean},forceMount:{type:Boolean}},setup(Ra){const qa=ja();return(Ja,ed)=>unref(qa)||Ja.forceMount?(openBlock(),createBlock(Teleport $ 1,{key:0,to:Ja.to,disabled:Ja.disabled},[renderSlot(Ja. $ slots,"default")],8,["to","disabled"])):createCommentVNode("",!0)}}),Yi="dismissableLayer.pointerDownOutside",Xi="dismissableLayer.focusOutside";function Fl(Ra,qa){const Ja=qa.closest("[data-dismissable-layer]"),ed=Ra.dataset.dismissableLayer===""?Ra:Ra.querySelector("[data-dismissable-layer]"),td=Array.from(Ra.ownerDocument.querySelectorAll("[data-dismissable-layer]"));return!!(Ja&&ed===Ja||td.indexOf(ed)<td.indexOf(Ja))}function Nl(Ra,qa){var Ja;const ed=((Ja=qa==null?void 0:qa.value)==null?void 0:Ja.ownerDocument)??(globalThis==null?void 0:globalThis.document),td=ref $ 1(!1),rd=ref $ 1(()=>{});return watchEffect(od=>{if(!qe)return;const sd=async cd=>{const ud=cd.target;if(qa!=null&&qa.value){if(Fl(qa.value,ud)){td.value=!1;return}if(cd.target&&!td.value){let _d=function(){Kt(Yi,Ra,yd)};const yd={originalEvent:cd};cd.pointerType==="touch"?(ed.removeEventListener("click",rd.value),rd.value=_d,ed.addEventListener("click",rd.value,{once:!0})):_d()}else ed.removeEventListener("click",rd.value);td.value=!1}},ld=window.setTimeout(()=>{ed.addEventListener("pointerdown",sd)},0);od(()=>{window.clearTimeout(ld),ed.removeEventListener("pointerdown",sd),ed.removeEventListener("click",rd.value)})}),{onPointerDownCapture:()=>td.value=!0}}function Ll(Ra,qa){var Ja;const ed=((Ja=qa==null?void 0:qa.value)==null?void 0:Ja.ownerDocument)??(globalThis==null?void 0:globalThis.document),td=ref $ 1(!1);return watchEffect(rd=>{if(!qe)return;const od=async sd=>{qa!=null&&qa.value&&(await nextTick $ 1(),!(!qa.value||Fl(qa.value,sd.target))&&sd.target&&!td.value&&Kt(Xi,Ra,{originalEvent:sd}))};ed.addEventListener("focusin",od),rd(()=>ed.removeEventListener("focusin",od))}),{onFocusCapture:()=>td.value=!0,onBlurCapture:()=>td.value=!1}}const je=reactive({layersRoot:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),yt=defineComponent({__name:"DismissableLayer",props:{disableOutsidePointerEvents:{type:Boolean,default:!1},asChild:{type:Boolean},as:{}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","dismiss"],setup(Ra,{emit:qa}){const Ja=Ra,ed=qa,{forwardRef:td,currentElement:rd}=T(),od=computed(()=>{var Ed;return((Ed=rd.value)==null?void 0:Ed.ownerDocument)??globalThis.document}),sd=computed(()=>je.layersRoot),ld=computed(()=>rd.value?Array.from(sd.value).indexOf(rd.value):-1),cd=computed(()=>je.layersWithOutsidePointerEventsDisabled.size>0),ud=computed(()=>{const Ed=Array.from(sd.value),[Td]=[...je.layersWithOutsidePointerEventsDisabled].slice(-1),Id=Ed.indexOf(Td);return ld.value>=Id}),_d=Nl(async Ed=>{const Td=[...je.branches].some(Id=>Id.contains(Ed.target));!ud.value||Td||(ed("pointerDownOutside",Ed),ed("interactOutside",Ed),await nextTick $ 1(),Ed.defaultPrevented||ed("dismiss"))},rd),yd=Ll(Ed=>{[...je.branches].some(Td=>Td.contains(Ed.target))||(ed("focusOutside",Ed),ed("interactOutside",Ed),Ed.defaultPrevented||ed("dismiss"))},rd);jn("Escape",Ed=>{ld.value===sd.value.size-1&&(ed("escapeKeyDown",Ed),Ed.defaultPrevented||ed("dismiss"))});let gd;return watchEffect(Ed=>{rd.value&&(Ja.disableOutsidePointerEvents&&(je.layersWithOutsidePointerEventsDisabled.size===0&&(gd=od.value.body.style.pointerEvents,od.value.body.style.pointerEvents="none"),je.layersWithOutsidePointerEventsDisabled.add(rd.value)),sd.value.add(rd.value),Ed(()=>{Ja.disableOutsidePointerEvents&&je.layersWithOutsidePointerEventsDisabled.size===1&&(od.value.body.style.pointerEvents=gd)}))}),watchEffect(Ed=>{Ed(()=>{rd.value&&(sd.value.delete(rd.value),je.layersWithOutsidePointerEventsDisabled.delete(rd.v
2024-08-27 22:31:52 +08:00
* @ license lucide - vue - next v0 . 428.0 - ISC
*
* This source code is licensed under the ISC license .
* See the LICENSE file in the root directory of this source tree .
2024-08-30 15:19:18 +08:00
* /const toKebabCase=Ra=>Ra.replace(/ ( [ a - z0 - 9 ] ) ( [ A - Z ] ) / g , "$1-$2" ) . toLowerCase ( ) ; / * *
2024-08-27 22:31:52 +08:00
* @ license lucide - vue - next v0 . 428.0 - ISC
*
* This source code is licensed under the ISC license .
* See the LICENSE file in the root directory of this source tree .
* /var defaultAttributes={xmlns:"http:/ / www . w3 . org / 2000 / svg ",width:24,height:24,viewBox:" 0 0 24 24 ",fill:" none ",stroke:" currentColor "," stroke - width ":2," stroke - linecap ":" round "," stroke - linejoin ":" round " } ; / * *
* @ license lucide - vue - next v0 . 428.0 - ISC
*
* This source code is licensed under the ISC license .
* See the LICENSE file in the root directory of this source tree .
2024-08-30 15:19:18 +08:00
* / c o n s t I c o n = ( { s i z e : R a , s t r o k e W i d t h : q a = 2 , a b s o l u t e S t r o k e W i d t h : J a , c o l o r : e d , i c o n N o d e : t d , n a m e : r d , c l a s s : o d , . . . s d } , { s l o t s : l d } ) = > h $ 2 ( " s v g " , { . . . d e f a u l t A t t r i b u t e s , w i d t h : R a | | d e f a u l t A t t r i b u t e s . w i d t h , h e i g h t : R a | | d e f a u l t A t t r i b u t e s . h e i g h t , s t r o k e : e d | | d e f a u l t A t t r i b u t e s . s t r o k e , " s t r o k e - w i d t h " : J a ? N u m b e r ( q a ) * 2 4 / N u m b e r ( R a ) : q a , c l a s s : [ " l u c i d e " , ` l u c i d e - $ { t o K e b a b C a s e ( r d ? ? " i c o n " ) } ` ] , . . . s d } , [ . . . t d . m a p ( c d = > h $ 2 ( . . . c d ) ) , . . . l d . d e f a u l t ? [ l d . d e f a u l t ( ) ] : [ ] ] ) ; / * *
2024-08-27 22:31:52 +08:00
* @ license lucide - vue - next v0 . 428.0 - ISC
*
* This source code is licensed under the ISC license .
* See the LICENSE file in the root directory of this source tree .
2024-08-30 15:19:18 +08:00
* /const createLucideIcon=(Ra,qa)=>(Ja,{slots:ed})=>h$2(Icon,{...Ja,iconNode:qa,name:Ra},ed);/ * *
2024-08-27 22:31:52 +08:00
* @ license lucide - vue - next v0 . 428.0 - ISC
*
* This source code is licensed under the ISC license .
* See the LICENSE file in the root directory of this source tree .
2024-08-31 11:28:56 +08:00
* / c o n s t C h e v r o n R i g h t = c r e a t e L u c i d e I c o n ( " C h e v r o n R i g h t I c o n " , [ [ " p a t h " , { d : " m 9 1 8 6 - 6 - 6 - 6 " , k e y : " m t h h w q " } ] ] ) , _ s f c _ m a i n $ q = d e f i n e C o m p o n e n t ( { _ _ n a m e : " D r o p d o w n M e n u S h o r t c u t " , p r o p s : { c l a s s : { } } , s e t u p ( R a ) { c o n s t q a = R a ; r e t u r n ( J a , e d ) = > ( o p e n B l o c k ( ) , c r e a t e E l e m e n t B l o c k ( " s p a n " , { c l a s s : n o r m a l i z e C l a s s ( u n r e f ( c n ) ( " m l - a u t o t e x t - x s t r a c k i n g - w i d e s t o p a c i t y - 6 0 " , q a . c l a s s ) ) } , [ r e n d e r S l o t ( J a . $ s l o t s , " d e f a u l t " ) ] , 2 ) ) } } ) , _ s f c _ m a i n $ p = d e f i n e C o m p o n e n t ( { _ _ n a m e : " D r o p d o w n M e n u S e p a r a t o r " , p r o p s : { a s C h i l d : { t y p e : B o o l e a n } , a s : { } , c l a s s : { } } , s e t u p ( R a ) { c o n s t q a = R a , J a = c o m p u t e d ( ( ) = > { c o n s t { c l a s s : e d , . . . t d } = q a ; r e t u r n t d } ) ; r e t u r n ( e d , t d ) = > ( o p e n B l o c k ( ) , c r e a t e B l o c k ( u n r e f ( r h ) , m e r g e P r o p s ( J a . v a l u e , { c l a s s : u n r e f ( c n ) ( " - m x - 1 m y - 1 h - p x b g - m u t e d " , q a . c l a s s ) } ) , n u l l , 1 6 , [ " c l a s s " ] ) ) } } ) , _ s f c _ m a i n $ o = d e f i n e C o m p o n e n t ( { _ _ n a m e : " D r o p d o w n M e n u S u b " , p r o p s : { d e f a u l t O p e n : { t y p e : B o o l e a n } , o p e n : { t y p e : B o o l e a n } } , e m i t s : [ " u p d a t e : o p e n " ] , s e t u p ( R a , { e m i t : q a } ) { c o n s t t d = x e ( R a , q a ) ; r e t u r n ( r d , o d ) = > ( o p e n B l o c k ( ) , c r e a t e B l o c k ( u n r e f ( f h ) , n o r m a l i z e P r o p s ( g u a r d R e a c t i v e P r o p s ( u n r e f ( t d ) ) ) , { d e f a u l t : w i t h C t x ( ( ) = > [ r e n d e r S l o t ( r d . $ s l o t s , " d e f a u l t " ) ] ) , _ : 3 } , 1 6 ) ) } } ) , _ s f c _ m a i n $ n = d e f i n e C o m p o n e n t ( { _ _ n a m e : " D r o p d o w n M e n u S u b T r i g g e r " , p r o p s : { d i s a b l e d : { t y p e : B o o l e a n } , t e x t V a l u e : { } , a s C h i l d : { t y p e : B o o l e a n } , a s : { } , c l a s s : { } } , s e t u p ( R a ) { c o n s t q a = R a , J a = c o m p u t e d ( ( ) = > { c o n s t { c l a s s : t d , . . . r d } = q a ; r e t u r n r d } ) , e d = I t ( J a ) ; r e t u r n ( t d , r d ) = > ( o p e n B l o c k ( ) , c r e a t e B l o c k ( u n r e f ( m h ) , m e r g e P r o p s ( u n r e f ( e d ) , { c l a s s : u n r e f ( c n ) ( " f l e x c u r s o r - d e f a u l t s e l e c t - n o n e i t e m s - c e n t e r r o u n d e d - s m p x - 2 p y - 1 . 5 t e x t - s m o u t l i n e - n o n e f o c u s : b g - a c c e n t d a t a - [ s t a t e = o p e n ] : b g - a c c e n t " , q a . c l a s s ) } ) , { d e f a u l t : w i t h C t x ( ( ) = > [ r e n d e r S l o t ( t d . $ s l o t s , " d e f a u l t " ) , c r e a t e V N o d e ( u n r e f ( C h e v r o n R i g h t ) , { c l a s s : " m l - a u t o h - 4 w - 4 " } ) ] ) , _ : 3 } , 1 6 , [ " c l a s s " ] ) ) } } ) , _ s f c _ m a i n $ m = d e f i n e C o m p o n e n t ( { _ _ n a m e : " D r o p d o w n M e n u S u b C o n t e n t " , p r o p s : { f o r c e M o u n t : { t y p e : B o o l e a n } , l o o p : { t y p e : B o o l e a n } , s i d e O f f s e t : { } , a l i g n O f f s e t : { } , a v o i d C o l l i s i o n s : { t y p e : B o o l e a n } , c o l l i s i o n B o u n d a r y : { } , c o l l i s i o n P a d d i n g : { } , a r r o w P a d d i n g : { } , s t i c k y : { } , h i d e W h e n D e t a c h e d : { t y p e : B o o l e a n } , u p d a t e P o s i t i o n S t r a t e g y : { } , p r i o r i t i z e P o s i t i o n : { t y p e : B o o l e a n } , a s C h i l d : { t y p e : B o o l e a n } , a s : { } , c l a s s : { } } , e m i t s : [ " e s c a p e K e y D o w n " , " p o i n t e r D o w n O u t s i d e " , " f o c u s O u t s i d e " , " i n t e r a c t O u t s i d e " , " e n t r y F o c u s " , " o p e n A u t o F o c u s " , " c l o s e A u t o F o c u s " ] , s e t u p ( R a , { e m i t : q a } ) { c o n s t J a = R a , e d = q a , t d = c o m p u t e d ( ( ) = > { c o n s t { c l a s s : o d , . . . s d } = J a ; r e t u r n s d } ) , r d = x e ( t d , e d ) ; r e t u r n ( o d , s d ) = > ( o p e n B l o c k ( ) , c r e a t e B l o c k ( u n r e f ( v h ) , m e r g e P r o p s ( u n r e f ( r d ) , { c l a s s : u n r e f ( c n ) ( " z - 5 0 m i n - w - 3 2 o v e r f l o w - h i d d e n r o u n d e d - m d b o r d e r b g - p o p o v e r p - 1 t e x t - p o p o v e r - f o r e g r o u n d s h a d o w - l g d a t a - [ s t a t e = o p e n ] : a n i m a t e - i n d a t a - [ s t a t e = c l o s e d ] : a n i m a t e - o u t d a t a - [ s t a t e = c l o s e d ] : f a d e - o u t - 0 d a t a - [ s t a t e = o p e n ] : f a d e - i n - 0 d a t a - [ s t a t e = c l o s e d ] : z o o m - o u t - 9 5 d a t a - [ s t a t e = o p e n ] : z o o m - i n - 9 5 d a t a - [ s i d e = b o t t o m ] : s l i d e - i n - f r o m - t o p - 2 d a t a - [ s i d e = l e f t ] : s l i d e - i n - f r o m - r i g h t - 2 d a t a - [ s i d e = r i g h t ] : s l i d e - i n - f r o m - l e f t - 2 d a t a - [ s i d e = t o p ] : s l i d e - i n - f r o m - b o t t o m - 2 " , J a . c l a s s ) } ) , { d e f a u l t : w i t h C t x ( ( ) = > [ r e n d e r S l o t ( o d . $ s l o t s , " d e f a u l t " ) ] ) , _ : 3 } , 1 6 , [ " c l a s s " ] ) ) } } ) , _ s f c _ m a i n $ l = { _ _ n a m e : " F i l e D r o p d o w n " , p r o p s : [ " i s O p e n " , " c l i c k T r i g g e r " , " o p e n D r o p d o w n " , " u p d a t e O p e n " ] , s e t u p ( R a ) { c o n s t q a = R a , J a = u s e S t o r e ( ) , { i s D a r k : e d , i s E d i t O n L e f t : t d } = s t o r e T o R e f s ( J a ) , { t o g g l e D a r k : r d , t o g g l e E d i t O n L e f t : o d , e x p o r t E d i t o r C o n t e n t 2 H T M L : s d , e x p o r t E d i t o r C o n t e n t 2 M D : l d , i m p o r t M a r k d o w n C o n t e n t : c d } = J a ; r e t u r n ( u d , _ d ) = > { c o n s t y d = r e s o l v e C o m p o n e n t ( " E l I c o n U p l o a d " ) , g d = r e s o l v e C o m p o n e n t ( " e l - i c o n " ) , E d = r e s o l v e C o m p o n e n t ( " E l I c o n D o w n l o a d " ) , T d = r e s o l v e C o m p o n e n t ( " E l I c o n D o c u m e n t " ) , I d = r e s o l v e C o m p o n e n t ( " E l I c o n C h e c k " ) ; r e t u r n o p e n B l o c k ( ) , c r e a t e B l o c k ( u n r e f ( _ s f c _ m a i n $ u ) , { o p e n : q a . i s O p e n , " o n U p d a t e : o p e n " : q a . u p d a t e O p e n } , { d e f a u l t : w i t h C t x ( ( ) = > [ c r e a t e V N o d e ( u n r e f ( _ s f c _ m a i n $ t ) , { c l a s s : n o r m a l i z e C l a s s ( [ " f l e x i t e m s - c e n t e r p - 2 p x - 4 h o v e r : b g - g r a y - 2 d a r k : h o v e r : b g - s t o n e - 9 " , { " b g - g r a y - 2 " : q a . i s O p e n , " d a r k : b g - s t o n e - 9 " : q a . i s O p e n } ] ) , o n C l i c k : _ d [ 0 ] | | ( _ d [ 0 ] = A d = > q a . c l i c k T r i g g e r ( ) ) , o n M o u s e e n t e r : _ d [ 1 ] | | ( _ d [ 1 ] = A d = > q a . o p e n D r o p d o w n ( ) ) } , { d e f a u l t : w i t h C t x ( ( ) = > [ c r e a t e T e x t V N o d e ( " 文 件 " ) ] ) , _ : 1 } , 8 , [ " c l a s s " ] ) , c r e a t e V N o d e ( u n r e f ( _ s f c _ m a i n $ s ) , { a l i g n : " s t a r t " } , { d e f a u l t : w i t h C t x ( ( ) = > [ c r e a t e V N o d e ( u n r e f ( _ s f c _ m a i n $ r ) , { o n C l i c k : _ d [ 2 ] | | ( _ d [ 2 ] = A d = > u n r e f ( c d ) ( ) ) } , { d e f a u l t : w i t h C t x ( ( ) = > [ c r e a t e V N o d e ( g d , { c l a s s : " m r - 2 h - 4 w - 4 " } , { d e f a u l t : w i t h C t x ( ( ) = > [ c r e a t e V N o d e ( y d ) ] ) , _ : 1 } ) , c r e a t e T e x t V N o d e ( " 导 入
2024-08-30 15:19:18 +08:00
$ { ld }
2024-08-31 11:28:56 +08:00
` ,"end"),od(),Ja()}return(ld,cd)=>{const ud=resolveComponent("el-input-number"),_d=resolveComponent("el-col"),yd=resolveComponent("el-row"),gd=resolveComponent("el-input"),Ed=resolveComponent("el-button"),Td=resolveComponent("el-dialog");return openBlock(),createBlock(Td,{title:"插入表格",class:"insert__dialog","model-value":unref(qa).isShowInsertFormDialog,onClose:cd[3]||(cd[3]=Id=>unref(Ja)(!1))},{footer:withCtx(()=>[createBaseVNode("div",_hoisted_2 $ 2,[createVNode(Ed,{plain:"",onClick:cd[2]||(cd[2]=Id=>unref(Ja)(!1))},{default:withCtx(()=>[createTextVNode(" 取 消 ")]),_:1}),createVNode(Ed,{type:"primary",plain:"",onClick:sd},{default:withCtx(()=>[createTextVNode(" 确 定 ")]),_:1})])]),default:withCtx(()=>[createVNode(yd,{class:"tb-options",type:"flex",align:"middle",gutter:10},{default:withCtx(()=>[createVNode(_d,{span:12},{default:withCtx(()=>[createTextVNode(" 行数: "),createVNode(ud,{modelValue:ed.value,"onUpdate:modelValue":cd[0]||(cd[0]=Id=>ed.value=Id),"controls-position":"right",min:1,max:100,size:"small"},null,8,["modelValue"])]),_:1}),createVNode(_d,{span:12},{default:withCtx(()=>[createTextVNode(" 列数: "),createVNode(ud,{modelValue:td.value,"onUpdate:modelValue":cd[1]||(cd[1]=Id=>td.value=Id),"controls-position":"right",min:1,max:100,size:"small"},null,8,["modelValue"])]),_:1})]),_:1}),createBaseVNode("table",_hoisted_1 $ 4,[(openBlock(!0),createElementBlock(Fragment,null,renderList(ed.value+1,Id=>(openBlock(),createElementBlock("tr",{key:Id,class:normalizeClass({"head-style":Id===1})},[(openBlock(!0),createElementBlock(Fragment,null,renderList(td.value,Ad=>(openBlock(),createElementBlock("td",{key:Ad},[createVNode(gd,{modelValue:rd.value[ ` k _$ { Id - 1 } _$ { Ad - 1 } ` ],"onUpdate:modelValue":Nd=>rd.value[ ` k _$ { Id - 1 } _$ { Ad - 1 } ` ]=Nd,align:"center",placeholder:Id===1?"表头":""},null,8,["modelValue","onUpdate:modelValue","placeholder"])]))),128))],2))),128))])]),_:1},8,["model-value"])}}},InsertFormDialog=_export_sfc(_sfc_main $ b,[["__scopeId","data-v-56362dff"]]),_withScopeId $ 3=Ra=>(pushScopeId("data-v-02ce52c7"),Ra=Ra(),popScopeId(),Ra),_hoisted_1 $ 3=_withScopeId $ 3(()=>createBaseVNode("div",{class:"el-upload__text"},[createTextVNode(" 将图片拖到此处,或 "),createBaseVNode("em",null,"点击上传")],-1)),_sfc_main $ a={__name:"UploadImgDialog",emits:["uploadImage"],setup(Ra,{emit:qa}){const Ja=qa,ed=useStore(),td=ref $ 1({repo:"",branch:"",accessToken:""}),rd=ref $ 1({accessKeyId:"",accessKeySecret:"",bucket:"",region:"",path:"",cdnHost:"",useSSL:!0}),od=ref $ 1({secretId:"",secretKey:"",bucket:"",region:"",path:"",cdnHost:""}),sd=ref $ 1({accessKey:"",secretKey:"",bucket:"",domain:"",region:""}),ld=ref $ 1({endpoint:"",port:"",useSSL:!0,bucket:"",accessKey:"",secretKey:""}),cd=ref $ 1({code:localStorage.getItem("formCustomConfig")||removeLeft( `
2024-08-27 22:31:52 +08:00
const { file , util , okCb , errCb } = CUSTOM _ARG
const param = new FormData ( )
param . append ( 'file' , file )
util . axios . post ( '${window.location.origin}/upload' , param , {
headers : { 'Content-Type' : 'multipart/form-data' }
} ) . then ( res => {
okCb ( res . url )
} ) . catch ( err => {
errCb ( err )
} )
2024-08-31 11:28:56 +08:00
` ).trim(),editor:void 0}),ud=[{value:"default",label:"默认"},{value:"github",label:"GitHub"},{value:"aliOSS",label:"阿里云"},{value:"txCOS",label:"腾讯云"},{value:"qiniu",label:"七牛云"},{value:"minio",label:"MinIO"},{value:"formCustom",label:"自定义代码"}],_d=ref $ 1("default"),yd=ref $ 1(null),gd=ref $ 1("upload");watch(gd,async jd=>{jd==="formCustom"&&nextTick $ 1(()=>{const Vd=yd.value. $ el.querySelector("textarea");cd.value.editor=cd.value.editor||CodeMirror.fromTextArea(Vd,{mode:"javascript"})})},{immediate:!0}),onBeforeMount(()=>{localStorage.getItem("githubConfig")&&(td.value=JSON.parse(localStorage.getItem("githubConfig"))),localStorage.getItem("aliOSSConfig")&&(rd.value=JSON.parse(localStorage.getItem("aliOSSConfig"))),localStorage.getItem("txCOSConfig")&&(od.value=JSON.parse(localStorage.getItem("txCOSConfig"))),localStorage.getItem("qiniuConfig")&&(sd.value=JSON.parse(localStorage.getItem("qiniuConfig"))),localStorage.getItem("minioConfig")&&(ld.value=JSON.parse(localStorage.getItem("minioConfig"))),localStorage.getItem("imgHost")&&(_d.value=localStorage.getItem("imgHost"))});function Ed(){localStorage.setItem("imgHost",_d.value),ElMessage.success("已成功切换图床")}function Td(){if(!(td.value.repo&&td.value.accessToken)){const jd=td.value.repo?"token":"GitHub 仓库";ElMessage.error( ` 参数 「 $ { jd } 」 不能为空 ` );return}localStorage.setItem("githubConfig",JSON.stringify(td.value)),ElMessage.success("保存成功")}function Id(){if(!(rd.value.accessKeyId&&rd.value.accessKeySecret&&rd.value.bucket&&rd.value.region)){ElMessage.error("阿里云 OSS 参数配置不全");return}localStorage.setItem("aliOSSConfig",JSON.stringify(rd.value)),ElMessage.success("保存成功")}function Ad(){if(!(ld.value.endpoint&&ld.value.bucket&&ld.value.accessKey&&ld.value.secretKey)){ElMessage.error("MinIO 参数配置不全");return}localStorage.setItem("minioConfig",JSON.stringify(ld.value)),ElMessage.success("保存成功")}function Nd(){if(!(od.value.secretId&&od.value.secretKey&&od.value.bucket&&od.value.region)){ElMessage.error("腾讯云 COS 参数配置不全");return}localStorage.setItem("txCOSConfig",JSON.stringify(od.value)),ElMessage.success("保存成功")}function kd(){if(!(sd.value.accessKey&&sd.value.secretKey&&sd.value.bucket&&sd.value.domain)){ElMessage.error("七牛云 Kodo 参数配置不全");return}localStorage.setItem("qiniuConfig",JSON.stringify(sd.value)),ElMessage.success("保存成功")}function Rd(){const jd=cd.value.editor.getValue();localStorage.setItem("formCustomConfig",jd),ElMessage.success("保存成功")}function Md(jd){const Vd=checkImage(jd);if(!Vd.ok)return ElMessage.error(Vd.msg),!1;let Fd=localStorage.getItem("imgHost");Fd=Fd||"default",localStorage.setItem("imgHost",Fd);const Ud=localStorage.getItem( ` $ { Fd } Config ` );return Fd==="default"||Ud?!0:(ElMessage.error( ` 请先配置 $ { Fd } 图床参数 ` ),!1)}function Bd(jd){Ja("uploadImage",jd.file)}return(jd,Vd)=>{const Fd=resolveComponent("el-option"),Ud=resolveComponent("el-select"),qd=resolveComponent("el-icon"),Wd=resolveComponent("el-upload"),Qd=resolveComponent("el-tab-pane"),Zd=resolveComponent("el-input"),Xd=resolveComponent("el-form-item"),df=resolveComponent("el-link"),hf=resolveComponent("el-button"),gf=resolveComponent("el-form"),Ef=resolveComponent("el-switch"),wf=resolveComponent("el-tabs"), $ f=resolveComponent("el-dialog");return openBlock(),createBlock( $ f,{title:"本地上传",class:"upload__dialog","model-value":unref(ed).isShowUploadImgDialog,onClose:Vd[31]||(Vd[31]=Tf=>unref(ed).toggleShowUploadImgDialog(!1))},{default:withCtx(()=>[createVNode(wf,{modelValue:gd.value,"onUpdate:modelValue":Vd[30]||(Vd[30]=Tf=>gd.value=Tf)},{default:withCtx(()=>[createVNode(Qd,{class:"upload-panel",label:"选择上传",name:"upload"},{default:withCtx(()=>[createVNode(Ud,{modelValue:_d.value,"onUpdate:modelValue":Vd[0]||(Vd[0]=Tf=>_d.value=Tf),placeholder:"请选择",size:"small",onChange:Ed},{default:withCtx(()=>[(openBlock(),createElementBlock(Fragment,null,renderList(ud,Tf=>createVNode(Fd,{key:Tf.value,label:Tf.label,value:Tf.value},n
$ { gf }
` ,hf),ElMessage.success("图片上传成功")}function Fd(df,hf){Ed.value=!0,toBase64(df).then(gf=>fileApi.fileUpload(gf,df)).then(gf=>{hf?hf(gf):Vd(gf)}).catch(gf=>{ElMessage.error(gf.message)}).finally(()=>{Ed.value=!1})}const Ud=ref $ 1(0);function qd(){const df=document.querySelector("#editor");df.value||(df.value=td.value),ed.value=CodeMirror.fromTextArea(df,{mode:"text/x-markdown",theme:"xq-light",lineNumbers:!1,lineWrapping:!0,styleActiveLine:!0,autoCloseBrackets:!0,extraKeys:{[ ` $ { shiftKey } - $ { altKey } - F ` ]:function(gf){formatDoc(gf.getValue(0)).then(Ef=>{gf.setValue(Ef)})},[ ` $ { ctrlKey } - B ` ]:function(gf){const Ef=gf.getSelection();gf.replaceSelection( ` * * $ { Ef } * * ` )},[ ` $ { ctrlKey } - I ` ]:function(gf){const Ef=gf.getSelection();gf.replaceSelection( ` * $ { Ef } * ` )},[ ` $ { ctrlKey } - D ` ]:function(gf){const Ef=gf.getSelection();gf.replaceSelection( ` ~ ~ $ { Ef } ~ ~ ` )},[ ` $ { ctrlKey } - K ` ]:function(gf){const Ef=gf.getSelection();gf.replaceSelection( ` [ $ { Ef } ] ( ) ` )},[ ` $ { ctrlKey } - E ` ]:function(gf){const Ef=gf.getSelection();gf.replaceSelection( ` \ ` ${ Ef } \` ` ) } , [ ` ${ ctrlKey } -L ` ] : function ( gf ) { const Ef = gf . getSelection ( ) ; gf . replaceSelection ( ` \` ${ Ef } \` ` ) } } } ) , ed . value . on ( "change" , hf => { clearTimeout ( Ud . value ) , Ud . value = setTimeout ( ( ) => { Nd ( ) , td . value = hf . getValue ( ) } , 300 ) } ) , ed . value . on ( "paste" , ( hf , gf ) => { if ( ! ( ! ( gf . clipboardData && gf . clipboardData . items ) || Ed . value ) ) for ( let Ef = 0 , wf = gf . clipboardData . items . length ; Ef < wf ; ++ Ef ) { const $f = gf . clipboardData . items [ Ef ] ; if ( $f . kind === "file" ) { const Tf = $f . getAsFile ( ) ; if ( ! jd ( Tf ) ) continue ; Fd ( Tf ) } } } ) } const Wd = ref$1 ( null ) ; function Qd ( df ) { ed . value . options . extraKeys [ df ] ( ed . value ) } const Zd = ref$1 ( null ) ; function Xd ( ) { const df = Zd . value . $el , hf = async ( { md : wf , list : $f } ) => { const Tf = [ ... wf . str . matchAll ( /!\[(.*?)\]\((.*?)\)/g ) || [ ] ] . filter ( Lf => Lf ) , bf = wf . path . match ( /.+?\// ) [ 0 ] ; ( await Promise . all ( Tf . map ( Lf => new Promise ( Pf => { let [ , , _f ] = Lf ; _f = _f . replace ( /^.\// , "" ) ; const { file : yf } = $f . find ( Bf => Bf . path === ` ${ bf } ${ _f } ` ) || { } ; Fd ( yf , Bf => { Pf ( { matchStr : _f , url : Bf } ) } ) } ) ) ) ) . forEach ( Lf => { wf . str = wf . str . replace ( ` ](./ ${ Lf . matchStr } ) ` , ` ]( ${ Lf . url } ) ` ) . replace ( ` ]( ${ Lf . matchStr } ) ` , ` ]( ${ Lf . url } ) ` ) } ) , ed . value . setValue ( wf . str ) } ; df . ondragover = wf => wf . preventDefault ( ) , df . ondrop = async wf => { wf . preventDefault ( ) ; for ( const $f of wf . dataTransfer . items ) $f . getAsFileSystemHandle ( ) . then ( async Tf => { if ( Tf . kind === "directory" ) { const bf = await Ef ( Tf ) , Sf = await gf ( { list : bf } ) ; hf ( { md : Sf , list : bf } ) } else { const bf = await Tf . getFile ( ) ; console . log ( "file" , bf ) } } ) } ; async function gf ( { list : wf } ) { return new Promise ( $f => { const { path : Tf , file : bf } = wf . find ( Lf => Lf . path . match ( /\.md$/ ) ) , Sf = new FileReader ; Sf . readAsText ( bf , "UTF-8" ) , Sf . onload = Lf => { $f ( { str : Lf . target . result , file : bf , path : Tf } ) } } ) } async function Ef ( wf ) { const $f = [ ] ; let Tf = "" ; try { const bf = [ wf ] ; for ( const Sf of bf ) { Tf += ` ${ Sf . name } / ` ; for await ( const [ , Lf ] of Sf ) Lf . kind === "file" ? $f . push ( { path : Tf + Lf . name , file : await Lf . getFile ( ) } ) : ( $f . push ( { path : ` ${ Tf + Lf . name } / ` } ) , bf . push ( Lf ) ) } } catch ( bf ) { console . error ( bf ) } return $f } } return onMounted ( ( ) => { qd ( ) , Nd ( ) , Xd ( ) } ) , ( df , hf ) => { const gf = resolveComponent ( "el-header" ) , Ef = resolveComponent ( "el-col" ) , wf = resolveComponent ( "el-row" ) , $f = resolveComponent ( "el-main" ) , Tf = resolveComponent ( "el-container" ) ; return openBlock ( ) , createElementBlock ( "div" , { ref _key : "container" , ref : Wd , class : "container" } , [ createVNode ( Tf , null , { default : withCtx ( ( ) => [ createVNode ( gf , { class : "editor__header" } , { default : withCtx ( ( ) => [ createVNode ( EditorHeader , { onAddFormat : Qd , onFormatContent : unref ( cd ) , onStartCopy : Md , onEndCopy : Bd } , null , 8 , [ "onFormatContent" ] ) ] ) , _ : 1 } ) , createVNode ( $f , { class : "container-main" } , { default : withCtx ( ( ) => [ createVNode ( wf , { class : "container-main-section" } , { default : withCtx ( ( ) => [ createVNode ( Ef , { ref _key : "codeMirrorWrapper" , ref : Zd , span : unref ( rd ) ? 8 : 12 , class : normalizeClass ( [ "codeMirror-wrapper" , { "order-1" : ! unref ( qa ) . isEditOnLeft } ] ) } , { default : withCtx ( ( ) => [ createVNode ( unref ( _sfc _main$7 ) , null , { default : withCtx ( ( ) => [ createVNode ( unref ( _sfc _main$6 ) , null , { default : withCtx ( ( ) => [ _hoisted _1 ] ) , _ : 1 } ) , createVNode ( unref ( _sfc _main$5 ) , { class : "w-64" } , { default : withCtx ( ( ) => [ createVNode ( unref ( _sfc _main$4 ) , { inset : "" , onClick : hf [ 0 ] || ( hf [ 0 ] = bf => unref ( gd ) ( ) ) } , { default : withCtx ( ( ) => [ createTextVNode ( " 上传图片 " ) ] ) ,
` ;Ad.replaceSelection(jd+jd,null),yd(Ad,-1),Rd=Ad.listSelections();for(var Vd=0;Vd<Rd.length;Vd++){var Fd=Rd[Vd].head.line;Ad.indentLine(Fd,null,!0),Ad.indentLine(Fd+1,null,!0)}})}function yd(Ad,Nd){for(var kd=[],Rd=Ad.listSelections(),Md=0,Bd=0;Bd<Rd.length;Bd++){var jd=Rd[Bd];jd.head==Ad.getCursor()&&(Md=Bd);var Vd=jd.head.ch||Nd>0?{line:jd.head.line,ch:jd.head.ch+Nd}:{line:jd.head.line-1};kd.push({anchor:Vd,head:Vd})}Ad.setSelections(kd,Md)}function gd(Ad){var Nd=Ja.cmpPos(Ad.anchor,Ad.head)>0;return{anchor:new td(Ad.anchor.line,Ad.anchor.ch+(Nd?-1:1)),head:new td(Ad.head.line,Ad.head.ch+(Nd?1:-1))}}function Ed(Ad,Nd){var kd=cd(Ad);if(!kd||Ad.getOption("disableInput"))return Ja.Pass;var Rd=rd(kd,"pairs"),Md=Rd.indexOf(Nd);if(Md==-1)return Ja.Pass;for(var Bd=rd(kd,"closeBefore"),jd=rd(kd,"triples"),Vd=Rd.charAt(Md+1)==Nd,Fd=Ad.listSelections(),Ud=Md%2==0,qd,Wd=0;Wd<Fd.length;Wd++){var Qd=Fd[Wd],Zd=Qd.head,Xd,df=Ad.getRange(Zd,td(Zd.line,Zd.ch+1));if(Ud&&!Qd.empty())Xd="surround";else if((Vd||!Ud)&&df==Nd)Vd&&Id(Ad,Zd)?Xd="both":jd.indexOf(Nd)>=0&&Ad.getRange(Zd,td(Zd.line,Zd.ch+3))==Nd+Nd+Nd?Xd="skipThree":Xd="skip";else if(Vd&&Zd.ch>1&&jd.indexOf(Nd)>=0&&Ad.getRange(td(Zd.line,Zd.ch-2),Zd)==Nd+Nd){if(Zd.ch>2&&/ \b string/.test(Ad.getTokenTypeAt(td(Zd.line,Zd.ch-2))))return Ja.Pass;Xd="addFour"}else if(Vd){var hf=Zd.ch==0?" ":Ad.getRange(td(Zd.line,Zd.ch-1),Zd);if(!Ja.isWordChar(df)&&hf!=Nd&&!Ja.isWordChar(hf))Xd="both";else return Ja.Pass}else if(Ud&&(df.length===0||/ \s /.test(df)||Bd.indexOf(df)>-1))Xd="both";else return Ja.Pass;if(!qd)qd=Xd;else if(qd!=Xd)return Ja.Pass}var gf=Md%2?Rd.charAt(Md-1):Nd,Ef=Md%2?Nd:Rd.charAt(Md+1);Ad.operation(function(){if(qd=="skip")yd(Ad,1);else if(qd=="skipThree")yd(Ad,3);else if(qd=="surround"){for(var wf=Ad.getSelections(), $ f=0; $ f<wf.length; $ f++)wf[ $ f]=gf+wf[ $ f]+Ef;Ad.replaceSelections(wf,"around"),wf=Ad.listSelections().slice();for(var $ f=0; $ f<wf.length; $ f++)wf[ $ f]=gd(wf[ $ f]);Ad.setSelections(wf)}else qd=="both"?(Ad.replaceSelection(gf+Ef,null),Ad.triggerElectric(gf+Ef),yd(Ad,-1)):qd=="addFour"&&(Ad.replaceSelection(gf+gf+gf+gf,"before"),yd(Ad,1))})}function Td(Ad,Nd){var kd=Ad.getRange(td(Nd.line,Nd.ch-1),td(Nd.line,Nd.ch+1));return kd.length==2?kd:null}function Id(Ad,Nd){var kd=Ad.getTokenAt(td(Nd.line,Nd.ch+1));return/ \b string/.test(kd.type)&&kd.start==Nd.ch&&(Nd.ch==0||!/ \b string/.test(Ad.getTokenTypeAt(Nd)))}})})();(function(Ra,qa){(function(Ja){Ja(requireCodemirror())})(function(Ja){var ed=/MSIE \d /.test(navigator.userAgent)&&(document.documentMode==null||document.documentMode<8),td=Ja.Pos,rd={"(":")>",")":"(<","[":"]>","]":"[<","{":"}>","}":"{<","<":">>",">":"<<"};function od(yd){return yd&&yd.bracketRegex||/[(){}[ \] ]/}function sd(yd,gd,Ed){var Td=yd.getLineHandle(gd.line),Id=gd.ch-1,Ad=Ed&&Ed.afterCursor;Ad==null&&(Ad=/(^| )cm-fat-cursor( $ | )/.test(yd.getWrapperElement().className));var Nd=od(Ed),kd=!Ad&&Id>=0&&Nd.test(Td.text.charAt(Id))&&rd[Td.text.charAt(Id)]||Nd.test(Td.text.charAt(Id+1))&&rd[Td.text.charAt(++Id)];if(!kd)return null;var Rd=kd.charAt(1)==">"?1:-1;if(Ed&&Ed.strict&&Rd>0!=(Id==gd.ch))return null;var Md=yd.getTokenTypeAt(td(gd.line,Id+1)),Bd=ld(yd,td(gd.line,Id+(Rd>0?1:0)),Rd,Md,Ed);return Bd==null?null:{from:td(gd.line,Id),to:Bd&&Bd.pos,match:Bd&&Bd.ch==kd.charAt(0),forward:Rd>0}}function ld(yd,gd,Ed,Td,Id){for(var Ad=Id&&Id.maxScanLineLength||1e4,Nd=Id&&Id.maxScanLines||1e3,kd=[],Rd=od(Id),Md=Ed>0?Math.min(gd.line+Nd,yd.lastLine()+1):Math.max(yd.firstLine()-1,gd.line-Nd),Bd=gd.line;Bd!=Md;Bd+=Ed){var jd=yd.getLine(Bd);if(jd){var Vd=Ed>0?0:jd.length-1,Fd=Ed>0?jd.length:-1;if(!(jd.length>Ad))for(Bd==gd.line&&(Vd=gd.ch-(Ed<0?1:0));Vd!=Fd;Vd+=Ed){var Ud=jd.charAt(Vd);if(Rd.test(Ud)&&(Td===void 0||(yd.getTokenTypeAt(td(Bd,Vd+1))||"")==(Td||""))){var qd=rd[Ud];if(qd&&qd.charAt(1)==">"==Ed>0)kd.push(Ud);else if(kd.length)kd.pop();else return{pos:td(Bd,Vd),ch:Ud}}}}}return Bd-Ed==(Ed>0?yd.lastLine():yd.firstLine())?!1:null}function cd(yd,gd,Ed){for(var Td=yd.state.matchBrackets.maxHighlightLineLength||1e3,Id=Ed&&Ed.highlightNonMatching,Ad=[],Nd=yd.listSelections(