2024-08-30 15:19:18 +08:00
const _ _vite _ _mapDeps = ( i , m = _ _vite _ _mapDeps , d = ( m . f || ( m . f = [ "assets/dagre-CQ6OS2HX-CQlT9NyQ.js" , "assets/graph-iXhSdEW6.js" , "assets/reduce-BLrqukDR.js" , "assets/layout-B_qOrjBB.js" , "assets/min-DdJCgD8l.js" , "assets/json-BbfiyX9i.js" , "assets/c4Diagram-ZHOUKFWV-3ZpaKQQR.js" , "assets/chunk-AIUMCIBP-BcP__YAA.js" , "assets/flowDiagram-TGP4CI55-BXVhJHWT.js" , "assets/chunk-FUIDI54P-CSByaKwS.js" , "assets/chunk-Z2VRG6XP-CFszd_5q.js" , "assets/channel-CQiUpmrp.js" , "assets/erDiagram-762WSSOR-Dyu9YCs4.js" , "assets/gitGraphDiagram-LGD5RUNZ-BxGjE76C.js" , "assets/chunk-JJENOPKO-BfVrVFmS.js" , "assets/chunk-FBCX6ULS-CkRy0Z9j.js" , "assets/gitGraph-F2EDSAW4-B8JNF2oG.js" , "assets/ganttDiagram-GAYIUD5S-C-ynLGXr.js" , "assets/linear-rPyQAGiL.js" , "assets/init-Gi6I4Gst.js" , "assets/infoDiagram-GSXZ5C4N-Bv-wpnyb.js" , "assets/pieDiagram-WEX7LNAG-BIPG1IF8.js" , "assets/arc-DnRYs1Ev.js" , "assets/ordinal-Cboi1Yqb.js" , "assets/quadrantDiagram-SRYJ5FP7-BwaLSK0U.js" , "assets/xychartDiagram-BZZU7QT5-COESs_Ro.js" , "assets/requirementDiagram-V7TESSIR-BhwIoi7R.js" , "assets/sequenceDiagram-6SD7JOPP-B_qLX6tn.js" , "assets/classDiagram-MQQPYQM5-Bheviuuq.js" , "assets/chunk-IBIA4ERB-BTvfKoTo.js" , "assets/classDiagram-v2-4S5WAI72-Dwv8m9CK.js" , "assets/chunk-PDCO53Z4-Ce4VZL03.js" , "assets/stateDiagram-N22R6T2Y-Bo2Dv2Op.js" , "assets/chunk-SVGOEX7Z-BXnXhOxs.js" , "assets/stateDiagram-v2-QXVA2PVL-Bs1E8OOY.js" , "assets/journeyDiagram-35ZZFJAM-CqkK6F4X.js" , "assets/timeline-definition-SFF34UE4-CJwHGt8-.js" , "assets/sankeyDiagram-XVFEVEVI-e2ulbqyT.js" , "assets/diagram-KYCGQLJB-D0V7p8OO.js" , "assets/blockDiagram-V6UOASA5-CqoOQWxc.js" ] ) ) ) => i . map ( i => d [ i ] ) ;
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 t1 = ( 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-30 15:19:18 +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?[]:[ `
` ],...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-30 15:19:18 +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 Vd in Ra)Vd in DOMTransitionPropsValidators||(qa[Vd]=Ra[Vd]);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:gd=`${Ja}-leave-from`,leaveActiveClass:_d=`${Ja}-leave-active`,leaveToClass:yd=`${Ja}-leave-to`}=Ra,Ed=normalizeDuration(td),Td=Ed&&Ed[0],Od=Ed&&Ed[1],{onBeforeEnter:Ad,onEnter:Nd,onEnterCancelled:kd,onLeave:Id,onLeaveCancelled:Rd,onBeforeAppear:Md=Ad,onAppear:Ld=Nd,onAppearCancelled:jd=kd}=qa,Pd=(Vd,qd,Wd)=>{removeTransitionClass(Vd,qd?ud:sd),removeTransitionClass(Vd,qd?cd:od),Wd&&Wd()},Fd=(Vd,qd)=>{Vd._isLeaving=!1,removeTransitionClass(Vd,gd),removeTransitionClass(Vd,yd),removeTransitionClass(Vd,_d),qd&&qd()},Ud=Vd=>(qd,Wd)=>{const zd=Vd?Ld:Nd,Kd=()=>Pd(qd,Vd,Wd);callHook(zd,[qd,Kd]),nextFrame(()=>{removeTransitionClass(qd,Vd?ld:rd),addTransitionClass(qd,Vd?ud:sd),hasExplicitCallback(zd)||whenTransitionEnds(qd,ed,Td,Kd)})};return extend$3(qa,{onBeforeEnter(Vd){callHook(Ad,[Vd]),addTransitionClass(Vd,rd),addTransitionClass(Vd,od)},onBeforeAppear(Vd){callHook(Md,[Vd]),addTransitionClass(Vd,ld),addTransitionClass(Vd,cd)},onEnter:Ud(!1),onAppear:Ud(!0),onLeave(Vd,qd){Vd._isLeaving=!0;const Wd=()=>Fd(Vd,qd);addTransitionClass(Vd,gd),addTransitionClass(Vd,_d),forceReflow(),nextFrame(()=>{Vd._isLeaving&&(removeTransitionClass(Vd,gd),addTransitionClass(Vd,yd),hasExplicitCallback(Id)||whenTransitionEnds(Vd,ed,Od,Wd))}),callHook(Id,[Vd,Wd])},onEnterCancelled(Vd){Pd(Vd,!1),callHook(kd,[Vd])},onAppearCancelled(Vd){Pd(Vd,!0),callHook(jd,[Vd])},onLeaveCancelled(Vd){Fd(Vd),callHook(Rd,[Vd])}})}function normalizeDuration(Ra){if(Ra==null)return null;if(isObject$5(Ra))return[NumberOf(Ra.enter),NumberOf(Ra.
` ).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( `
` )}let _Tokenizer $ 1=class{constructor(qa){t1(this,"options");t1(this,"rules");t1(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, `
` )}}}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( `
` ),gd=ud.replace(/ \n {0,3}((?:=+|-+) *)(?= \n | $ )/g, `
$1 ` ).replace(/^ {0,3}>[ \t ]?/gm,"");td=td? ` $ { td }
$ { ud } ` :ud,rd=rd? ` $ { rd }
$ { gd } ` :gd;const _d=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(gd,od,!0),this.lexer.state.top=_d,ed.length===0)break;const yd=od[od.length-1];if((yd==null?void 0:yd.type)==="code")break;if((yd==null?void 0:yd.type)==="blockquote"){const Ed=yd,Td=Ed.raw+ `
` +ed.join( `
` ),Od=this.blockquote(Td);od[od.length-1]=Od,td=td.substring(0,td.length-Ed.raw.length)+Od.raw,rd=rd.substring(0,rd.length-Ed.text.length)+Od.text;break}else if((yd==null?void 0:yd.type)==="list"){const Ed=yd,Td=Ed.raw+ `
` +ed.join( `
` ),Od=this.list(Td);od[od.length-1]=Od,td=td.substring(0,td.length-yd.raw.length)+Od.raw,rd=rd.substring(0,rd.length-Ed.raw.length)+Od.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 gd=Ja[2].split( `
` ,1)[0].replace(/^ \t +/,Ad=>" ".repeat(3*Ad.length)),_d=qa.split( `
` ,1)[0],yd=!gd.trim(),Ed=0;if(this.options.pedantic?(Ed=2,ud=gd.trimStart()):yd?Ed=Ja[1].length+1:(Ed=Ja[2].search(/[^ ]/),Ed=Ed>4?1:Ed,ud=gd.slice(Ed),Ed+=Ja[1].length),yd&&/^ * $ /.test(_d)&&(cd+=_d+ `
` ,qa=qa.substring(_d.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 ) } } ( ? : \ ` \` \` |~~~) ` ) , Id = new RegExp ( ` ^ {0, ${ Math . min ( 3 , Ed - 1 ) } }# ` ) ; for ( ; qa ; ) { const Rd = qa . split ( `
` ,1)[0];if(_d=Rd,this.options.pedantic&&(_d=_d.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),kd.test(_d)||Id.test(_d)||Ad.test(_d)||Nd.test(qa))break;if(_d.search(/[^ ]/)>=Ed||!_d.trim())ud+= `
` +_d.slice(Ed);else{if(yd||gd.search(/[^ ]/)>=4||kd.test(gd)||Id.test(gd)||Nd.test(gd))break;ud+= `
` +_d}!yd&&!_d.trim()&&(yd=!0),cd+=Rd+ `
` ,qa=qa.substring(Rd.length+1),gd=_d.slice(Ed)}}rd.loose||(sd?rd.loose=!0:/ \n * \n * $ /.test(cd)&&(sd=!0));let Td=null,Od;this.options.gfm&&(Td=/^ \[ [ xX] \] /.exec(ud),Td&&(Od=Td[0]!=="[ ] ",ud=ud.replace(/^ \[ [ xX] \] +/,""))),rd.items.push({type:"list_item",raw:cd,task:!!Td,checked:Od,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(gd=>gd.type==="space"),ud=cd.length>0&&cd.some(gd=>/ \n .* \n /.test(gd.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( `
` ):[],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)=== `
` ?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 gd=td[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(gd.lastIndex=0,Ja=Ja.slice(-1*qa.length+od);(td=gd.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 _d=[...td[0]][0].length,yd=qa.slice(0,od+td.index+_d+ld);if(Math.min(od,ld)%2){const Td=yd.slice(1,-1);return{type:"em",raw:yd,text:Td,tokens:this.lexer.inlineTokens(Td)}}const Ed=yd.slice(2,-2);return{type:"strong",raw:yd,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,}" , "*" ) .
` ),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+= `
` +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 gd=qa.slice(1);let _d;this.options.extensions.startInline.forEach(yd=>{_d=yd.call({lexer:this},gd),typeof _d=="number"&&_d>=0&&(ud=Math.min(ud,_d))}),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){t1(this,"options");t1(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 $ /,"")+ `
` ;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 } >
` }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 g S { c o n s t r u c t o r ( q a ) { t 1 ( t h i s , " o p t i o n s " ) ; t 1 ( t h i s , " r e n d e r e r " ) ; t 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 g 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 g 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){t1(this,"options");t1(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}},t1(hS,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens"])),hS),Marked $ 1=class{constructor(...qa){t1(this,"defaults",_getDefaults $ 1());t1(this,"options",this.setOptions);t1(this,"parse",this.parseMarkdown(!0));t1(this,"parseInline",this.parseMarkdown(!1));t1(this,"Parser",_Parser $ 1);t1(this,"Renderer",_Renderer $ 1);t1(this,"TextRenderer",_TextRenderer $ 1);t1(this,"Lexer",_Lexer $ 1);t1(this,"Tokenizer",_Tokenizer $ 1);t1(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 gd=ld.apply(rd,ud);return gd===!1&&(gd=cd.apply(rd,ud)),gd||""}}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),gd=ud&&/Qt\/\d+\.\d+/.test(Ja),_d=!sd&&/Chrome\/(\d+)/.exec(Ja),yd=_d&&+_d[1],Ed=/Opera\//.test(Ja),Td=/Apple Computer/.test(navigator.vendor),Od=/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),Id=Nd||kd||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(Ja),Rd=Nd||/Mac/.test(ed),Md=/\bCrOS\b/.test(Ja),Ld=/win/i.test(ed),jd=Ed&&Ja.match(/Version\/(\d*\.\d*)/);jd&&(jd=Number(jd[1])),jd&&jd>=15&&(Ed=!1,ud=!0);var Pd=Rd&&(gd||Ed&&(jd==null||jd<12.11)),Fd=td||ld&&cd>=9;function Ud(Bd){return new RegExp("(^|\\s)"+Bd+"(?:$|\\s)\\s*")}var Vd=function(Bd,Gd){var pf=Bd.className,df=Ud(Gd).exec(pf);if(df){var Sf=pf.slice(df.index+df[0].length);Bd.className=pf.slice(0,df.index)+(Sf?df[1]+Sf:"")}};function qd(Bd){for(var Gd=Bd.childNodes.length;Gd>0;--Gd)Bd.removeChild(Bd.firstChild);return Bd}function Wd(Bd,Gd){return qd(Bd).appendChild(Gd)}function zd(Bd,Gd,pf,df){var Sf=document.createElement(Bd);if(pf&&(Sf.className=pf),df&&(Sf.style.cssText=df),typeof Gd=="string")Sf.appendChild(document.createTextNode(Gd));else if(Gd)for(var Gf=0;Gf<Gd.length;++Gf)Sf.appendChild(Gd[Gf]);return Sf}function Kd(Bd,Gd,pf,df){var Sf=zd(Bd,Gd,pf,df);return Sf.setAttribute("role","presentation"),Sf}var Qd;document.createRange?Qd=function(Bd,Gd,pf,df){var Sf=document.createRange();return Sf.setEnd(df||Bd,pf),Sf.setStart(Bd,Gd),Sf}:Qd=function(Bd,Gd,pf){var df=document.body.createTextRange();try{df.moveToElementText(Bd.parentNode)}catch{return df}return df.collapse(!0),df.moveEnd("character",pf),df.moveStart("character",Gd),df};function hf(Bd,Gd){
b ` .split(/ \n /).length!=3?function(Bd){for(var Gd=0,pf=[],df=Bd.length;Gd<=df;){var Sf=Bd.indexOf( `
` ,Gd);Sf==-1&&(Sf=Bd.length);var Gf=Bd.slice(Gd,Bd.charAt(Sf-1)==" \r "?Sf-1:Sf),ih=Gf.indexOf(" \r ");ih!=-1?(pf.push(Gf.slice(0,ih)),Gd+=ih+1):(pf.push(Gf),Gd=Sf+1)}return pf}:function(Bd){return Bd.split(/ \r \n ?| \n /)},Dh=window.getSelection?function(Bd){try{return Bd.selectionStart!=Bd.selectionEnd}catch{return!1}}:function(Bd){var Gd;try{Gd=Bd.ownerDocument.selection.createRange()}catch{}return!Gd||Gd.parentElement()!=Bd?!1:Gd.compareEndPoints("StartToEnd",Gd)!=0},yh=function(){var Bd=zd("div");return"oncopy"in Bd?!0:(Bd.setAttribute("oncopy","return;"),typeof Bd.oncopy=="function")}(),Ih=null;function Xh(Bd){if(Ih!=null)return Ih;var Gd=Wd(Bd,zd("span","x")),pf=Gd.getBoundingClientRect(),df=Qd(Gd,0,1).getBoundingClientRect();return Ih=Math.abs(pf.left-df.left)>1}var qh={},Zh={};function Yh(Bd,Gd){arguments.length>2&&(Gd.dependencies=Array.prototype.slice.call(arguments,2)),qh[Bd]=Gd}function Fh(Bd,Gd){Zh[Bd]=Gd}function zh(Bd){if(typeof Bd=="string"&&Zh.hasOwnProperty(Bd))Bd=Zh[Bd];else if(Bd&&typeof Bd.name=="string"&&Zh.hasOwnProperty(Bd.name)){var Gd=Zh[Bd.name];typeof Gd=="string"&&(Gd={name:Gd}),Bd=Xf(Gd,Bd),Bd.name=Gd.name}else{if(typeof Bd=="string"&&/^[ \w \- ]+ \/ [ \w \- ]+ \+ xml $ /.test(Bd))return zh("application/xml");if(typeof Bd=="string"&&/^[ \w \- ]+ \/ [ \w \- ]+ \+ json $ /.test(Bd))return zh("application/json")}return typeof Bd=="string"?{name:Bd}:Bd||{name:"null"}}function om(Bd,Gd){Gd=zh(Gd);var pf=qh[Gd.name];if(!pf)return om(Bd,"text/plain");var df=pf(Bd,Gd);if(fm.hasOwnProperty(Gd.name)){var Sf=fm[Gd.name];for(var Gf in Sf)Sf.hasOwnProperty(Gf)&&(df.hasOwnProperty(Gf)&&(df["_"+Gf]=df[Gf]),df[Gf]=Sf[Gf])}if(df.name=Gd.name,Gd.helperType&&(df.helperType=Gd.helperType),Gd.modeProps)for(var ih in Gd.modeProps)df[ih]=Gd.modeProps[ih];return df}var fm={};function uh(Bd,Gd){var pf=fm.hasOwnProperty(Bd)?fm[Bd]:fm[Bd]={};mf(Gd,pf)}function Om(Bd,Gd){if(Gd===!0)return Gd;if(Bd.copyState)return Bd.copyState(Gd);var pf={};for(var df in Gd){var Sf=Gd[df];Sf instanceof Array&&(Sf=Sf.concat([])),pf[df]=Sf}return pf}function l1(Bd,Gd){for(var pf;Bd.innerMode&&(pf=Bd.innerMode(Gd),!(!pf||pf.mode==Bd));)Gd=pf.state,Bd=pf.mode;return pf||{mode:Bd,state:Gd}}function y1(Bd,Gd,pf){return Bd.startState?Bd.startState(Gd,pf):!0}var c1=function(Bd,Gd,pf){this.pos=this.start=0,this.string=Bd,this.tabSize=Gd||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=pf};c1.prototype.eol=function(){return this.pos>=this.string.length},c1.prototype.sol=function(){return this.pos==this.lineStart},c1.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},c1.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},c1.prototype.eat=function(Bd){var Gd=this.string.charAt(this.pos),pf;if(typeof Bd=="string"?pf=Gd==Bd:pf=Gd&&(Bd.test?Bd.test(Gd):Bd(Gd)),pf)return++this.pos,Gd},c1.prototype.eatWhile=function(Bd){for(var Gd=this.pos;this.eat(Bd););return this.pos>Gd},c1.prototype.eatSpace=function(){for(var Bd=this.pos;/[ \s \u 00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>Bd},c1.prototype.skipToEnd=function(){this.pos=this.string.length},c1.prototype.skipTo=function(Bd){var Gd=this.string.indexOf(Bd,this.pos);if(Gd>-1)return this.pos=Gd,!0},c1.prototype.backUp=function(Bd){this.pos-=Bd},c1.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=Pf(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?Pf(this.string,this.lineStart,this.tabSize):0)},c1.prototype.indentation=function(){return Pf(this.string,null,this.tabSize)-(this.lineStart?Pf(this.string,this.lineStart,this.tabSize):0)},c1.prototype.match=function(Bd,Gd,pf){if(typeof Bd=="string"){var df=function(ih){return pf?ih.toLowerCase():ih},Sf=this.string.substr(this.pos,Bd.length);if(df(Sf)==df(Bd))return Gd!==!1&&(this.pos+=Bd.length),!0}else{var Gf=this.string.slice(this.pos).match(Bd);return Gf&&Gf.index>0?null:(Gf&&Gd!==!1&&(this.pos+=Gf[0].length),Gf)}},c1.prototype.current=funct
` ?(Mm=Wh.appendChild(zd("span",hm[0]==" \r "?"␍":"","cm-invalidchar")),Mm.setAttribute("cm-text",hm[0]),Bd.col+=1):(Mm=Bd.cm.options.specialCharPlaceholder(hm[0]),Mm.setAttribute("cm-text",hm[0]),ld&&cd<9?Wh.appendChild(zd("span",[Mm])):Wh.appendChild(Mm),Bd.col+=1);Bd.map.push(Bd.pos,Bd.pos+1,Mm),Bd.pos++}}if(Bd.trailingSpace=gh.charCodeAt(Gd.length-1)==32,pf||df||Sf||Nh||Gf||ih){var e1=pf||"";df&&(e1+=df),Sf&&(e1+=Sf);var Jm=zd("span",[Wh],e1,Gf);if(ih)for(var n1 in ih)ih.hasOwnProperty(n1)&&n1!="style"&&n1!="class"&&Jm.setAttribute(n1,ih[n1]);return Bd.content.appendChild(Jm)}Bd.content.appendChild(Wh)}}function Sv(Bd,Gd){if(Bd.length>1&&!/ /.test(Bd))return Bd;for(var pf=Gd,df="",Sf=0;Sf<Bd.length;Sf++){var Gf=Bd.charAt(Sf);Gf==" "&&pf&&(Sf==Bd.length-1||Bd.charCodeAt(Sf+1)==32)&&(Gf=" "),df+=Gf,pf=Gf==" "}return df}function s0(Bd,Gd){return function(pf,df,Sf,Gf,ih,gh,bh){Sf=Sf?Sf+" cm-force-border":"cm-force-border";for(var Nh=pf.pos,Wh=Nh+df.length;;){for(var Jh=void 0,hm=0;hm<Gd.length&&(Jh=Gd[hm],!(Jh.to>Nh&&Jh.from<=Nh));hm++);if(Jh.to>=Wh)return Bd(pf,df,Sf,Gf,ih,gh,bh);Bd(pf,df.slice(0,Jh.to-Nh),Sf,Gf,null,gh,bh),Gf=null,df=df.slice(Jh.to-Nh),Nh=Jh.to}}}function Ig(Bd,Gd,pf,df){var Sf=!df&&pf.widgetNode;Sf&&Bd.map.push(Bd.pos,Bd.pos+Gd,Sf),!df&&Bd.cm.display.input.needsContentAttribute&&(Sf||(Sf=Bd.content.appendChild(document.createElement("span"))),Sf.setAttribute("cm-marker",pf.id)),Sf&&(Bd.cm.display.input.setUneditable(Sf),Bd.content.appendChild(Sf)),Bd.pos+=Gd,Bd.trailingSpace=!1}function eb(Bd,Gd,pf){var df=Bd.markedSpans,Sf=Bd.text,Gf=0;if(!df){for(var ih=1;ih<pf.length;ih+=2)Gd.addToken(Gd,Sf.slice(Gf,Gf=pf[ih]),T0(pf[ih+1],Gd.cm.options));return}for(var gh=Sf.length,bh=0,Nh=1,Wh="",Jh,hm,dm=0,Nm,Mm,Wm,Zm,e1;;){if(dm==bh){Nm=Mm=Wm=hm="",e1=null,Zm=null,dm=1/0;for(var Jm=[],n1=void 0,f1=0;f1<df.length;++f1){var p1=df[f1], $ 1=p1.marker;if( $ 1.type=="bookmark"&&p1.from==bh&& $ 1.widgetNode)Jm.push( $ 1);else if(p1.from<=bh&&(p1.to==null||p1.to>bh|| $ 1.collapsed&&p1.to==bh&&p1.from==bh)){if(p1.to!=null&&p1.to!=bh&&dm>p1.to&&(dm=p1.to,Mm=""), $ 1.className&&(Nm+=" "+ $ 1.className), $ 1.css&&(hm=(hm?hm+";":"")+ $ 1.css), $ 1.startStyle&&p1.from==bh&&(Wm+=" "+ $ 1.startStyle), $ 1.endStyle&&p1.to==dm&&(n1||(n1=[])).push( $ 1.endStyle,p1.to), $ 1.title&&((e1||(e1={})).title= $ 1.title), $ 1.attributes)for(var i0 in $ 1.attributes)(e1||(e1={}))[i0]= $ 1.attributes[i0]; $ 1.collapsed&&(!Zm||T_(Zm.marker, $ 1)<0)&&(Zm=p1)}else p1.from>bh&&dm>p1.from&&(dm=p1.from)}if(n1)for(var y0=0;y0<n1.length;y0+=2)n1[y0+1]==dm&&(Mm+=" "+n1[y0]);if(!Zm||Zm.from==bh)for(var l0=0;l0<Jm.length;++l0)Ig(Gd,0,Jm[l0]);if(Zm&&(Zm.from||0)==bh){if(Ig(Gd,(Zm.to==null?gh+1:Zm.to)-bh,Zm.marker,Zm.from==null),Zm.to==null)return;Zm.to==bh&&(Zm=!1)}}if(bh>=gh)break;for(var m0=Math.min(gh,dm);;){if(Wh){var x0=bh+Wh.length;if(!Zm){var C0=x0>m0?Wh.slice(0,m0-bh):Wh;Gd.addToken(Gd,C0,Jh?Jh+Nm:Nm,Wm,bh+C0.length==dm?Mm:"",hm,e1)}if(x0>=m0){Wh=Wh.slice(m0-bh),bh=m0;break}bh=x0,Wm=""}Wh=Sf.slice(Gf,Gf=pf[Nh++]),Jh=T0(pf[Nh++],Gd.cm.options)}}}function Ab(Bd,Gd,pf){this.line=Gd,this.rest=Og(Gd),this.size=this.rest?Ch(Wf(this.rest))-pf+1:1,this.node=this.text=null,this.hidden=c0(Bd,Gd)}function x_(Bd,Gd,pf){for(var df=[],Sf,Gf=Gd;Gf<pf;Gf=Sf){var ih=new Ab(Bd.doc,Pm(Bd.doc,Gf),Gf);Sf=Gf+ih.size,df.push(ih)}return df}var Sg=null;function Db(Bd){Sg?Sg.ops.push(Bd):Bd.ownsGroup=Sg={ops:[Bd],delayedCallbacks:[]}}function Oy(Bd){var Gd=Bd.delayedCallbacks,pf=0;do{for(;pf<Gd.length;pf++)Gd[pf].call(null);for(var df=0;df<Bd.ops.length;df++){var Sf=Bd.ops[df];if(Sf.cursorActivityHandlers)for(;Sf.cursorActivityCalled<Sf.cursorActivityHandlers.length;)Sf.cursorActivityHandlers[Sf.cursorActivityCalled++].call(null,Sf.cm)}}while(pf<Gd.length)}function Xd(Bd,Gd){var pf=Bd.ownsGroup;if(pf)try{Oy(pf)}finally{Sg=null,Gd(pf)}}var Hd=null;function Jd(Bd,Gd){var pf=Rh(Bd,Gd);if(pf.length){var df=Array.prototype.slice.call(arguments,2),Sf;Sg?Sf=Sg.delayedCallbacks:Hd?Sf=Hd:(Sf=Hd=[],setTimeout(If,0));for(var Gf=function(gh){Sf.push(function(){return pf[gh].apply(null,df)})},ih=0;ih<pf.length;++ih)G
top : ` +n1+"px; width: "+(f1??bh-Jm)+ ` px ;
height : ` +(p1-n1)+"px"))}function Jh(Jm,n1,f1){var p1=Pm(Sf,Jm), $ 1=p1.text.length,i0,y0;function l0(C0,Y0){return Rm(Bd,_m(Jm,C0),"div",p1,Y0)}function m0(C0,Y0,z0){var O0=a0(Bd,p1,null,C0),w0=Y0=="ltr"==(z0=="after")?"left":"right",g0=z0=="after"?O0.begin:O0.end-(/ \s /.test(p1.text.charAt(O0.end-1))?2:1);return l0(g0,w0)[w0]}var x0=Gh(p1,Sf.direction);return Zf(x0,n1||0,f1?? $ 1,function(C0,Y0,z0,O0){var w0=z0=="ltr",g0=l0(C0,w0?"left":"right"),Z0=l0(Y0-1,w0?"right":"left"),Kv=n1==null&&C0==0,L_=f1==null&&Y0== $ 1,G0=O0==0,i_=!x0||O0==x0.length-1;if(Z0.top-g0.top<=3){var L0=(Nh?Kv:L_)&&G0,fE=(Nh?L_:Kv)&&i_,a_=L0?gh:(w0?g0:Z0).left,F_=fE?bh:(w0?Z0:g0).right;Wh(a_,g0.top,F_-a_,g0.bottom)}else{var j_,X0,Yv,hE;w0?(j_=Nh&&Kv&&G0?gh:g0.left,X0=Nh?bh:m0(C0,z0,"before"),Yv=Nh?gh:m0(Y0,z0,"after"),hE=Nh&&L_&&i_?bh:Z0.right):(j_=Nh?m0(C0,z0,"before"):gh,X0=!Nh&&Kv&&G0?bh:g0.right,Yv=!Nh&&L_&&i_?gh:Z0.left,hE=Nh?m0(Y0,z0,"after"):bh),Wh(j_,g0.top,X0-j_,g0.bottom),g0.bottom<Z0.top&&Wh(gh,g0.bottom,null,Z0.top),Wh(Yv,Z0.top,hE-Yv,Z0.bottom)}(!i0||J_(g0,i0)<0)&&(i0=g0),J_(Z0,i0)<0&&(i0=Z0),(!y0||J_(g0,y0)<0)&&(y0=g0),J_(Z0,y0)<0&&(y0=Z0)}),{start:i0,end:y0}}var hm=Gd.from(),dm=Gd.to();if(hm.line==dm.line)Jh(hm.line,hm.ch,dm.ch);else{var Nm=Pm(Sf,hm.line),Mm=Pm(Sf,dm.line),Wm=Y1(Nm)==Y1(Mm),Zm=Jh(hm.line,hm.ch,Wm?Nm.text.length+1:null).end,e1=Jh(dm.line,Wm?0:null,dm.ch).start;Wm&&(Zm.top<e1.top-2?(Wh(Zm.right,Zm.top,null,Zm.bottom),Wh(gh,e1.top,e1.left,e1.bottom)):Wh(Zm.right,Zm.top,e1.left-Zm.right,Zm.bottom)),Zm.bottom<e1.top&&Wh(gh,Zm.bottom,null,e1.top)}pf.appendChild(Gf)}function Z_(Bd){if(Bd.state.focused){var Gd=Bd.display;clearInterval(Gd.blinker);var pf=!0;Gd.cursorDiv.style.visibility="",Bd.options.cursorBlinkRate>0?Gd.blinker=setInterval(function(){Bd.hasFocus()||Av(Bd),Gd.cursorDiv.style.visibility=(pf=!pf)?"":"hidden"},Bd.options.cursorBlinkRate):Bd.options.cursorBlinkRate<0&&(Gd.cursorDiv.style.visibility="hidden")}}function N_(Bd){Bd.hasFocus()||(Bd.display.input.focus(),Bd.state.focused||By(Bd))}function Nv(Bd){Bd.state.delayingBlurEvent=!0,setTimeout(function(){Bd.state.delayingBlurEvent&&(Bd.state.delayingBlurEvent=!1,Bd.state.focused&&Av(Bd))},100)}function By(Bd,Gd){Bd.state.delayingBlurEvent&&!Bd.state.draggingText&&(Bd.state.delayingBlurEvent=!1),Bd.options.readOnly!="nocursor"&&(Bd.state.focused||(cm(Bd,"focus",Bd,Gd),Bd.state.focused=!0,bf(Bd.display.wrapper,"CodeMirror-focused"),!Bd.curOp&&Bd.display.selForContextMenu!=Bd.doc.sel&&(Bd.display.input.reset(),ud&&setTimeout(function(){return Bd.display.input.reset(!0)},20)),Bd.display.input.receivedFocus()),Z_(Bd))}function Av(Bd,Gd){Bd.state.delayingBlurEvent||(Bd.state.focused&&(cm(Bd,"blur",Bd,Gd),Bd.state.focused=!1,Vd(Bd.display.wrapper,"CodeMirror-focused")),clearInterval(Bd.display.blinker),setTimeout(function(){Bd.state.focused||(Bd.display.shift=!1)},150))}function Bb(Bd){for(var Gd=Bd.display,pf=Gd.lineDiv.offsetTop,df=Math.max(0,Gd.scroller.getBoundingClientRect().top),Sf=Gd.lineDiv.getBoundingClientRect().top,Gf=0,ih=0;ih<Gd.view.length;ih++){var gh=Gd.view[ih],bh=Bd.options.lineWrapping,Nh=void 0,Wh=0;if(!gh.hidden){if(Sf+=gh.line.height,ld&&cd<8){var Jh=gh.node.offsetTop+gh.node.offsetHeight;Nh=Jh-pf,pf=Jh}else{var hm=gh.node.getBoundingClientRect();Nh=hm.bottom-hm.top,!bh&&gh.text.firstChild&&(Wh=gh.text.firstChild.getBoundingClientRect().right-hm.left-1)}var dm=gh.line.height-Nh;if((dm>.005||dm<-.005)&&(Sf<df&&(Gf-=dm),d1(gh.line,Nh),nb(gh.line),gh.rest))for(var Nm=0;Nm<gh.rest.length;Nm++)nb(gh.rest[Nm]);if(Wh>Bd.display.sizerWidth){var Mm=Math.ceil(Wh/f_(Bd.display));Mm>Bd.display.maxLineLength&&(Bd.display.maxLineLength=Mm,Bd.display.maxLine=gh.line,Bd.display.maxLineChanged=!0)}}}Math.abs(Gf)>2&&(Gd.scroller.scrollTop+=Gf)}function nb(Bd){if(Bd.widgets)for(var Gd=0;Gd<Bd.widgets.length;++Gd){var pf=Bd.widgets[Gd],df=pf.node.parentNode;df&&(pf.height=df.offsetHeight)}}function ev(Bd,Gd,pf){var df=pf&&pf.top!=null?Math.max(0,pf.top):Bd.scroller.scrollTop;df=Math.floor(df-R0(Bd));var Sf=pf&&pf.bottom!=null?pf.bottom:df+Bd
top : ` +(Gd.top-pf.viewOffset-R0(Bd.display))+ ` px ;
height : ` +(Gd.bottom-Gd.top+Qg(Bd)+pf.barHeight)+ ` px ;
left : ` +Gd.left+"px; width: "+Math.max(2,Gd.right-Gd.left)+"px;");Bd.display.lineSpace.appendChild(ih),ih.scrollIntoView(Sf),Bd.display.lineSpace.removeChild(ih)}}}function C2(Bd,Gd,pf,df){df==null&&(df=0);var Sf;!Bd.options.lineWrapping&&Gd==pf&&(pf=Gd.sticky=="before"?_m(Gd.line,Gd.ch+1,"before"):Gd,Gd=Gd.ch?_m(Gd.line,Gd.sticky=="before"?Gd.ch-1:Gd.ch,"after"):Gd);for(var Gf=0;Gf<5;Gf++){var ih=!1,gh=Sm(Bd,Gd),bh=!pf||pf==Gd?gh:Sm(Bd,pf);Sf={left:Math.min(gh.left,bh.left),top:Math.min(gh.top,bh.top)-df,right:Math.max(gh.left,bh.left),bottom:Math.max(gh.bottom,bh.bottom)+df};var Nh=Fy(Bd,Sf),Wh=Bd.doc.scrollTop,Jh=Bd.doc.scrollLeft;if(Nh.scrollTop!=null&&(ib(Bd,Nh.scrollTop),Math.abs(Bd.doc.scrollTop-Wh)>1&&(ih=!0)),Nh.scrollLeft!=null&&(Bg(Bd,Nh.scrollLeft),Math.abs(Bd.doc.scrollLeft-Jh)>1&&(ih=!0)),!ih)break}return Sf}function NE(Bd,Gd){var pf=Fy(Bd,Gd);pf.scrollTop!=null&&ib(Bd,pf.scrollTop),pf.scrollLeft!=null&&Bg(Bd,pf.scrollLeft)}function Fy(Bd,Gd){var pf=Bd.display,df= $ g(Bd.display);Gd.top<0&&(Gd.top=0);var Sf=Bd.curOp&&Bd.curOp.scrollTop!=null?Bd.curOp.scrollTop:pf.scroller.scrollTop,Gf=Iy(Bd),ih={};Gd.bottom-Gd.top>Gf&&(Gd.bottom=Gd.top+Gf);var gh=Bd.doc.height+K_(pf),bh=Gd.top<df,Nh=Gd.bottom>gh-df;if(Gd.top<Sf)ih.scrollTop=bh?0:Gd.top;else if(Gd.bottom>Sf+Gf){var Wh=Math.min(Gd.top,(Nh?gh:Gd.bottom)-Gf);Wh!=Sf&&(ih.scrollTop=Wh)}var Jh=Bd.options.fixedGutter?0:pf.gutters.offsetWidth,hm=Bd.curOp&&Bd.curOp.scrollLeft!=null?Bd.curOp.scrollLeft:pf.scroller.scrollLeft-Jh,dm=Y_(Bd)-pf.gutters.offsetWidth,Nm=Gd.right-Gd.left>dm;return Nm&&(Gd.right=Gd.left+dm),Gd.left<10?ih.scrollLeft=0:Gd.left<hm?ih.scrollLeft=Math.max(0,Gd.left+Jh-(Nm?0:10)):Gd.right>dm+hm-3&&(ih.scrollLeft=Gd.right+(Nm?0:10)-dm),ih}function jy(Bd,Gd){Gd!=null&&(Lb(Bd),Bd.curOp.scrollTop=(Bd.curOp.scrollTop==null?Bd.doc.scrollTop:Bd.curOp.scrollTop)+Gd)}function u0(Bd){Lb(Bd);var Gd=Bd.getCursor();Bd.curOp.scrollToPos={from:Gd,to:Gd,margin:Bd.options.cursorScrollMargin}}function k0(Bd,Gd,pf){(Gd!=null||pf!=null)&&Lb(Bd),Gd!=null&&(Bd.curOp.scrollLeft=Gd),pf!=null&&(Bd.curOp.scrollTop=pf)}function w2(Bd,Gd){Lb(Bd),Bd.curOp.scrollToPos=Gd}function Lb(Bd){var Gd=Bd.curOp.scrollToPos;if(Gd){Bd.curOp.scrollToPos=null;var pf=o1(Bd,Gd.from),df=o1(Bd,Gd.to);Uy(Bd,pf,df,Gd.margin)}}function Uy(Bd,Gd,pf,df){var Sf=Fy(Bd,{left:Math.min(Gd.left,pf.left),top:Math.min(Gd.top,pf.top)-df,right:Math.max(Gd.right,pf.right),bottom:Math.max(Gd.bottom,pf.bottom)+df});k0(Bd,Sf.scrollLeft,Sf.scrollTop)}function ib(Bd,Gd){Math.abs(Bd.doc.scrollTop-Gd)<2||(td||Lg(Bd,{top:Gd}),Fb(Bd,Gd,!0),td&&Lg(Bd),sb(Bd,100))}function Fb(Bd,Gd,pf){Gd=Math.max(0,Math.min(Bd.display.scroller.scrollHeight-Bd.display.scroller.clientHeight,Gd)),!(Bd.display.scroller.scrollTop==Gd&&!pf)&&(Bd.doc.scrollTop=Gd,Bd.display.scrollbars.setScrollTop(Gd),Bd.display.scroller.scrollTop!=Gd&&(Bd.display.scroller.scrollTop=Gd))}function Bg(Bd,Gd,pf,df){Gd=Math.max(0,Math.min(Gd,Bd.display.scroller.scrollWidth-Bd.display.scroller.clientWidth)),!((pf?Gd==Bd.doc.scrollLeft:Math.abs(Bd.doc.scrollLeft-Gd)<2)&&!df)&&(Bd.doc.scrollLeft=Gd,OE(Bd),Bd.display.scroller.scrollLeft!=Gd&&(Bd.display.scroller.scrollLeft=Gd),Bd.display.scrollbars.setScrollLeft(Gd))}function tv(Bd){var Gd=Bd.display,pf=Gd.gutters.offsetWidth,df=Math.round(Bd.doc.height+K_(Bd.display));return{clientHeight:Gd.scroller.clientHeight,viewHeight:Gd.wrapper.clientHeight,scrollWidth:Gd.scroller.scrollWidth,clientWidth:Gd.scroller.clientWidth,viewWidth:Gd.wrapper.clientWidth,barLeft:Bd.options.fixedGutter?pf:0,docHeight:df,scrollHeight:df+Qg(Bd)+Gd.barHeight,nativeBarWidth:Gd.nativeBarWidth,gutterWidth:pf}}var xg=function(Bd,Gd,pf){this.cm=pf;var df=this.vert=zd("div",[zd("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),Sf=this.horiz=zd("div",[zd("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");df.tabIndex=Sf.tabIndex=-1,Bd(df),Bd(Sf),kh(df,"scroll",function(){df.clientHeight&&Gd(df.scrollTop,"vertical")}),kh(Sf,"scroll",function(){Sf.clientWidth&&Gd(Sf.scrollLeft,"horizontal")}),thi
` },setDirection: $ 0(function(Bd){Bd!="rtl"&&(Bd="ltr"),Bd!=this.direction&&(this.direction=Bd,this.iter(function(Gd){return Gd.order=null}),this.cm&&g_(this.cm))})}),K0.prototype.eachLine=K0.prototype.iter;var Wb=0;function j2(Bd){var Gd=this;if(QE(Gd),!(Tm(Gd,Bd)||X1(Gd.display,Bd))){Km(Bd),ld&&(Wb=+new Date);var pf=Jg(Gd,Bd,!0),df=Bd.dataTransfer.files;if(!(!pf||Gd.isReadOnly()))if(df&&df.length&&window.FileReader&&window.File)for(var Sf=df.length,Gf=Array(Sf),ih=0,gh=function(){++ih==Sf&&r0(Gd,function(){pf=S1(Gd.doc,pf);var dm={from:pf,to:pf,text:Gd.doc.splitLines(Gf.filter(function(Nm){return Nm!=null}).join(Gd.doc.lineSeparator())),origin:"paste"};Bv(Gd.doc,dm),I_(Gd.doc,D_(S1(Gd.doc,pf),S1(Gd.doc,k_(dm))))})()},bh=function(dm,Nm){if(Gd.options.allowDropFileTypes&&Lf(Gd.options.allowDropFileTypes,dm.type)==-1){gh();return}var Mm=new FileReader;Mm.onerror=function(){return gh()},Mm.onload=function(){var Wm=Mm.result;if(/[ \x 00- \x 08 \x 0e- \x 1f]{2}/.test(Wm)){gh();return}Gf[Nm]=Wm,gh()},Mm.readAsText(dm)},Nh=0;Nh<df.length;Nh++)bh(df[Nh],Nh);else{if(Gd.state.draggingText&&Gd.doc.sel.contains(pf)>-1){Gd.state.draggingText(Bd),setTimeout(function(){return Gd.display.input.focus()},20);return}try{var Wh=Bd.dataTransfer.getData("Text");if(Wh){var Jh;if(Gd.state.draggingText&&!Gd.state.draggingText.copy&&(Jh=Gd.listSelections()),V0(Gd.doc,D_(pf,pf)),Jh)for(var hm=0;hm<Jh.length;++hm)sv(Gd.doc,"",Jh[hm].anchor,Jh[hm].head,"drag");Gd.replaceSelection(Wh,"around","paste"),Gd.display.input.focus()}}catch{}}}}function rE(Bd,Gd){if(ld&&(!Bd.state.draggingText||+new Date-Wb<100)){F1(Gd);return}if(!(Tm(Bd,Gd)||X1(Bd.display,Gd))&&(Gd.dataTransfer.setData("Text",Bd.getSelection()),Gd.dataTransfer.effectAllowed="copyMove",Gd.dataTransfer.setDragImage&&!Td)){var pf=zd("img",null,null,"position: fixed; left: 0; top: 0;");pf.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",Ed&&(pf.width=pf.height=1,Bd.display.wrapper.appendChild(pf),pf._top=pf.offsetTop),Gd.dataTransfer.setDragImage(pf,0,0),Ed&&pf.parentNode.removeChild(pf)}}function B1(Bd,Gd){var pf=Jg(Bd,Gd);if(pf){var df=document.createDocumentFragment();Pb(Bd,pf,df),Bd.display.dragCursor||(Bd.display.dragCursor=zd("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),Bd.display.lineSpace.insertBefore(Bd.display.dragCursor,Bd.display.cursorDiv)),Wd(Bd.display.dragCursor,df)}}function QE(Bd){Bd.display.dragCursor&&(Bd.display.lineSpace.removeChild(Bd.display.dragCursor),Bd.display.dragCursor=null)}function JE(Bd){if(document.getElementsByClassName){for(var Gd=document.getElementsByClassName("CodeMirror"),pf=[],df=0;df<Gd.length;df++){var Sf=Gd[df].CodeMirror;Sf&&pf.push(Sf)}pf.length&&pf[0].operation(function(){for(var Gf=0;Gf<pf.length;Gf++)Bd(pf[Gf])})}}var Uv=!1;function ZE(){Uv||(U2(),Uv=!0)}function U2(){var Bd;kh(window,"resize",function(){Bd==null&&(Bd=setTimeout(function(){Bd=null,JE(H2)},100))}),kh(window,"blur",function(){return JE(Av)})}function H2(Bd){var Gd=Bd.display;Gd.cachedCharWidth=Gd.cachedTextHeight=Gd.cachedPaddingH=null,Gd.scrollbarsClipped=!1,Bd.setSize()}for(var P0={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++)P0[pb+48]=P0[pb+96]=String(pb);for(var uv=65;uv<=90;uv++)P0[uv]=String.fromCharCode(uv);for(var dv=1;dv<=12;dv++)P0[dv+111]=P0[dv+63235]=" F "+dv;var t_={};t_.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(Bd){return Bd.toggleOverwrite()}};function v_(Bd,Gd){var pf=Pm(Bd.doc,Gd),df=Y1(pf);return df!=pf&&(Gd=Ch(df)),gb(!0,Bd,df,Gd,1)}function t2(Bd,Gd){var pf=Pm(Bd.doc,Gd),df=G_(pf);return df!=pf&&(Gd=Ch(df)),gb(!0,Bd,pf,Gd,-1)}function iE(Bd,Gd){var pf=v_(Bd,Gd.line),df=Pm(Bd.doc,pf.line),Sf=Gh(df,Bd.doc.direction);if(!Sf||Sf[0].level==0){var Gf=Math.max(pf.ch,df.text.search(/ \S /)),ih=Gd.line==pf.line&&Gd.ch<=Gf&&Gd.ch;return _m(pf.line,ih?0:Gf,pf.sticky)}return pf}function Hv(Bd,Gd,pf){if(typeof Gd=="string"&&(Gd=_b[Gd],!Gd))return!1;Bd.display.input.ensurePolled();var df=Bd.display.shift,Sf=!1;try{Bd.isReadOnly()&&(Bd.state.suppressEdits=!0),pf&&(Bd.display.shift=!1),Sf=Gd(Bd)!=xf}finally{Bd.display.shift=df,Bd.state.suppressEdits=!1}return Sf}function V2(Bd,Gd,pf){for(var df=0;df<Bd.state.keyMaps.length;df++){var Sf=mg(Gd,Bd.state.keyMaps[df],pf,Bd);if(Sf)return Sf}return Bd.options.extraKeys&&mg(Gd,Bd.options.extraKeys,pf,Bd)||mg(Gd,Bd.options.keyMap,pf,Bd)}var z2=new Ff;function vb(Bd,Gd,pf,df){var Sf=Bd.state.keySeq;if(Sf){if(Kb(Gd))return"handled";if(/ \' $ /.test(Gd)?Bd.state.keySeq=null:z2.set(50,function(){Bd.state.keySeq==Sf&&(Bd.state.keySeq=null,Bd.display.input.reset())}),aE(Bd,Sf+" "+Gd,pf,df))return!0}return aE(Bd,Gd,pf,df)}function aE(Bd,Gd,pf,df){var Sf=V2(Bd,Gd,df);return Sf=="multi"&&(Bd.state.keySeq=Gd),Sf=="handled"&&Jd(Bd,"keyHandled",Bd,Gd,pf),(Sf=="handled"||Sf=="multi")&&(Km(pf),Z_(Bd)),!!Sf}function oE(Bd,Gd){var pf=fb(Gd,!0);return pf?Gd.shiftKey&&!Bd.state.keySeq?vb(Bd,"Shift-"+pf,Gd,function(df){return Hv(Bd,df,!0)})||vb(Bd,pf,Gd,function(df){if(typeof df=="string"?/^go[A-Z]/.test(df):df.motion)return Hv(Bd,df)}):vb(Bd,pf,Gd,function(df){return Hv(Bd,df)}):!1}function q2(Bd,Gd,pf){return vb(Bd,"'"+pf+"'",Gd,function(df){return Hv(Bd,df,!0)})}var Xb=null;function sE(Bd){var Gd=this;if(!(Bd.target&&Bd.target!=Gd.display.input.getField())&&(Gd.curOp.focus=gf(yf(Gd)),!Tm(Gd,Bd))){ld&&cd<11&&Bd.keyCode==27&&(Bd.returnValue=!1);var pf=Bd.keyCode;Gd.display.shift=pf==16||Bd.shiftKey;var df=oE(Gd,Bd);Ed&&(Xb=df?pf:null,!df&&pf==88&&!yh&&(Rd?Bd.metaKey:Bd.ctrlKey)&&Gd.replaceSelection("",null,"cut")),td&&!Rd&&!df&&pf==46&&Bd.shiftKey&&!Bd.ctrlKey&&document.execCommand&&document.execCommand("cut"),pf==18&&!/ \b CodeMirror-crosshair \b /.test(Gd.display.lineDiv.className)&&og(Gd)}}function og(Bd){var Gd=Bd.display.lineDiv;bf(Gd,"CodeMirror-crosshair");function pf(df){(df.keyCode==18||!df.altKey)&&(Vd(Gd,"CodeMirror-crosshair"),jh(document,"keyup",pf),jh(document,"mouseover",pf))}kh(document,"keyup",pf),kh(document,"mouseover",pf)}function Vg(Bd){Bd.keyCode==16&&(this.doc.sel.shift=!1),Tm(this,Bd)}function r2(Bd){var Gd=this;if(!(Bd.target&&Bd.target!=Gd.display.input.getField())&&!(X1(Gd.display,Bd)||Tm(Gd,Bd)||Bd.ctrlKey&&!Bd.altKey||Rd&&Bd.metaKey)){var pf=Bd.keyCode,df=Bd.charCode;if(Ed&&pf==Xb){Xb=null,Km(Bd);return}if(!(Ed&&(!Bd.which||Bd.which<10)&&oE(Gd,Bd))){var Sf=String.fromCharCode(df??pf);Sf!=" \b "&&(q2(Gd,Bd,Sf)||Gd.display.input.onKeyPress(Bd))}}}var G2=400,Vv=function(Bd,Gd,pf){this.time=Bd,this.pos=Gd,this.button=pf};Vv.prototype.compare=function(Bd,Gd,pf){return this.time+G2>Bd&&Xm(Gd,this.pos)==0&&pf==this.button};var r_,zv;function n2(Bd,Gd){var pf=+new Date;return zv&&zv.compare(pf,Bd,Gd)?(r_=zv=null,"triple"):r_&&r_.compare(pf,Bd,Gd)?(zv=new Vv(pf,Bd,Gd),r_=null,"double"):(r_=new Vv(pf,Bd,Gd),zv=null,"single")}function i2(Bd){var Gd=this,pf=Gd.display;if(!(Tm(Gd,Bd)||pf.activeTouch&&pf.input.supportsTouch())){if(pf.input.ensurePolled(),pf.shift=Bd.shiftKey,X1(pf,Bd)){ud||(pf.scroller.draggable=!1,setTimeout(function(){return pf.scroller.draggable=!0},100));return}if(!Gv(Gd,Bd)){var df=Jg(Gd,Bd),Sf=E1(Bd),Gf=df?n2(df,Sf):"single";Af(Gd).focus(),Sf==1&&Gd.state.selectingText&&Gd.state.selectingText(Bd),!(df&&a2(Gd,Sf,df,Gf,Bd))&&(Sf==1?df?bb(Gd,df,Gf,Bd):M1(Bd)==pf.scroller&&Km(Bd):Sf==2?(df&&Rv(Gd.doc,df),setTimeout(function(){return pf.input.focus()},20)):Sf==3&&(Fd?Gd.display.input.onContextMenu(Bd):Nv(Gd)))}}}function a2(Bd,Gd,pf,df,Sf){var Gf="Click";
` )==Gd){if(df.ranges.length%wg.text.length==0){Nh=[];for(var Wh=0;Wh<wg.text.length;Wh++)Nh.push(Gf.splitLines(wg.text[Wh]))}}else bh.length==df.ranges.length&&Bd.options.pasteLinesPerSelection&&(Nh=Kf(bh,function(Zm){return[Zm]}));for(var Jh=Bd.curOp.updateInput,hm=df.ranges.length-1;hm>=0;hm--){var dm=df.ranges[hm],Nm=dm.from(),Mm=dm.to();dm.empty()&&(pf&&pf>0?Nm=_m(Nm.line,Nm.ch-pf):Bd.state.overwrite&&!gh?Mm=_m(Mm.line,Math.min(Pm(Gf,Mm.line).text.length,Mm.ch+Wf(bh).length)):gh&&wg&&wg.lineWise&&wg.text.join( `
` )==bh.join( `
` )&&(Nm=Mm=_m(Nm.line,0)));var Wm={from:Nm,to:Mm,text:Nh?Nh[hm%Nh.length]:bh,origin:Sf||(gh?"paste":Bd.state.cutIncoming>ih?"cut":"+input")};Bv(Bd.doc,Wm),Jd(Bd,"inputRead",Bd,Wm)}Gd&&!gh&&ry(Bd,Gd),u0(Bd),Bd.curOp.updateInput<2&&(Bd.curOp.updateInput=Jh),Bd.curOp.typing=!0,Bd.state.pasteIncoming=Bd.state.cutIncoming=-1}function n_(Bd,Gd){var pf=Bd.clipboardData&&Bd.clipboardData.getData("Text");if(pf)return Bd.preventDefault(),!Gd.isReadOnly()&&!Gd.options.disableInput&&Gd.hasFocus()&&q0(Gd,function(){return pE(Gd,pf,0,null,"paste")}),!0}function ry(Bd,Gd){if(!(!Bd.options.electricChars||!Bd.options.smartIndent))for(var pf=Bd.doc.sel,df=pf.ranges.length-1;df>=0;df--){var Sf=pf.ranges[df];if(!(Sf.head.ch>100||df&&pf.ranges[df-1].head.line==Sf.head.line)){var Gf=Bd.getModeAt(Sf.head),ih=!1;if(Gf.electricChars){for(var gh=0;gh<Gf.electricChars.length;gh++)if(Gd.indexOf(Gf.electricChars.charAt(gh))>-1){ih=Sb(Bd,Sf.head.line,"smart");break}}else Gf.electricInput&&Gf.electricInput.test(Pm(Bd.doc,Sf.head.line).text.slice(0,Sf.head.ch))&&(ih=Sb(Bd,Sf.head.line,"smart"));ih&&Jd(Bd,"electricInput",Bd,Sf.head.line)}}}function ny(Bd){for(var Gd=[],pf=[],df=0;df<Bd.doc.sel.ranges.length;df++){var Sf=Bd.doc.sel.ranges[df].head.line,Gf={anchor:_m(Sf,0),head:_m(Sf+1,0)};pf.push(Gf),Gd.push(Bd.getRange(Gf.anchor,Gf.head))}return{text:Gd,ranges:pf}}function Tb(Bd,Gd,pf,df){Bd.setAttribute("autocorrect",pf?"on":"off"),Bd.setAttribute("autocapitalize",df?"on":"off"),Bd.setAttribute("spellcheck",!!Gd)}function xb(){var Bd=zd("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; min-height: 1em; outline: none"),Gd=zd("div",[Bd],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return ud?Bd.style.width="1000px":Bd.setAttribute("wrap","off"),Nd&&(Bd.style.border="1px solid black"),Gd}function Wv(Bd){var Gd=Bd.optionHandlers,pf=Bd.helpers={};Bd.prototype={constructor:Bd,focus:function(){Af(this).focus(),this.display.input.focus()},setOption:function(df,Sf){var Gf=this.options,ih=Gf[df];Gf[df]==Sf&&df!="mode"||(Gf[df]=Sf,Gd.hasOwnProperty(df)&&r0(this,Gd[df])(this,Sf,ih),cm(this,"optionChange",this,df))},getOption:function(df){return this.options[df]},getDoc:function(){return this.doc},addKeyMap:function(df,Sf){this.state.keyMaps[Sf?"push":"unshift"](hb(df))},removeKeyMap:function(df){for(var Sf=this.state.keyMaps,Gf=0;Gf<Sf.length;++Gf)if(Sf[Gf]==df||Sf[Gf].name==df)return Sf.splice(Gf,1),!0},addOverlay:x1(function(df,Sf){var Gf=df.token?df:Bd.getMode(this.options,df);if(Gf.startState)throw new Error("Overlays may not be stateful.");Df(this.state.overlays,{mode:Gf,modeSpec:df,opaque:Sf&&Sf.opaque,priority:Sf&&Sf.priority||0},function(ih){return ih.priority}),this.state.modeGen++,J0(this)}),removeOverlay:x1(function(df){for(var Sf=this.state.overlays,Gf=0;Gf<Sf.length;++Gf){var ih=Sf[Gf].modeSpec;if(ih==df||typeof df=="string"&&ih.name==df){Sf.splice(Gf,1),this.state.modeGen++,J0(this);return}}}),indentLine:x1(function(df,Sf,Gf){typeof Sf!="string"&&typeof Sf!="number"&&(Sf==null?Sf=this.options.smartIndent?"smart":"prev":Sf=Sf?"add":"subtract"),Dm(this.doc,df)&&Sb(this,df,Sf,Gf)}),indentSelection:x1(function(df){for(var Sf=this.doc.sel.ranges,Gf=-1,ih=0;ih<Sf.length;ih++){var gh=Sf[ih];if(gh.empty())gh.head.line>Gf&&(Sb(this,gh.head.line,df,!0),Gf=gh.head.line,ih==this.doc.sel.primIndex&&u0(this));else{var bh=gh.from(),Nh=gh.to(),Wh=Math.max(Gf,bh.line);Gf=Math.min(this.lastLine(),Nh.line-(Nh.ch?0:1))+1;for(var Jh=Wh;Jh<Gf;++Jh)Sb(this,Jh,df);var hm=this.doc.sel.ranges;bh.ch==0&&Sf.length==hm.length&&hm[ih].from().ch>0&&Cg(this.doc,ih,new Q1(bh,hm[ih].to()),Nf)}}}),getTokenAt:function(df,Sf){return bg(this,df,Sf)},getLineTokens:function(df,Sf){return bg(this,_m(df),Sf,!0)},getTokenTypeAt:function(df){df=S1(this.doc,df);var Sf=vg(this,Pm(this.doc,df.line)),Gf=0,ih=(Sf.length-1)/2,gh=df.ch,bh;if(gh==0)bh=Sf[2];else for(;;){var Nh=Gf+ih>>1;if((Nh?Sf[Nh*2-1]:0)>=gh)ih=Nh;else if(Sf[Nh*2+1]<gh)Gf=Nh+1;else{bh=Sf[Nh*2+2];break}}var Wh=bh?bh.indexOf("overlay "):-1;return Wh<0?bh:Wh==0?null:b
` ,Wm=wh(Mm,dm)?"w":hm&&Mm== `
` ?"n":!hm||/ \s /.test(Mm)?null:"p";if(hm&&!Nm&&!Wm&&(Wm="s"),Jh&&Jh!=Wm){pf<0&&(pf=1,Wh(),Gd.sticky="after");break}if(Wm&&(Jh=Wm),pf>0&&!Wh(!Nm))break}var Zm=Mv(Bd,Gd,Gf,ih,!0);return w1(Gf,Zm)&&(Zm.hitSide=!0),Zm}function Cb(Bd,Gd,pf,df){var Sf=Bd.doc,Gf=Gd.left,ih;if(df=="page"){var gh=Math.min(Bd.display.wrapper.clientHeight,Af(Bd).innerHeight||Sf(Bd).documentElement.clientHeight),bh=Math.max(gh-.5* $ g(Bd.display),3);ih=(pf>0?Gd.bottom:Gd.top)+pf*bh}else df=="line"&&(ih=pf>0?Gd.bottom+3:Gd.top-3);for(var Nh;Nh=q1(Bd,Gf,ih),!!Nh.outside;){if(pf<0?ih<=0:ih>=Sf.height){Nh.hitSide=!0;break}ih+=pf*5}return Nh}var J1=function(Bd){this.cm=Bd,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new Ff,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};J1.prototype.init=function(Bd){var Gd=this,pf=this,df=pf.cm,Sf=pf.div=Bd.lineDiv;Sf.contentEditable=!0,Tb(Sf,df.options.spellcheck,df.options.autocorrect,df.options.autocapitalize);function Gf(gh){for(var bh=gh.target;bh;bh=bh.parentNode){if(bh==Sf)return!0;if(/ \b CodeMirror-(?:line)?widget \b /.test(bh.className))break}return!1}kh(Sf,"paste",function(gh){!Gf(gh)||Tm(df,gh)||n_(gh,df)||cd<=11&&setTimeout(r0(df,function(){return Gd.updateFromDOM()}),20)}),kh(Sf,"compositionstart",function(gh){Gd.composing={data:gh.data,done:!1}}),kh(Sf,"compositionupdate",function(gh){Gd.composing||(Gd.composing={data:gh.data,done:!1})}),kh(Sf,"compositionend",function(gh){Gd.composing&&(gh.data!=Gd.composing.data&&Gd.readFromDOMSoon(),Gd.composing.done=!0)}),kh(Sf,"touchstart",function(){return pf.forceCompositionEnd()}),kh(Sf,"input",function(){Gd.composing||Gd.readFromDOMSoon()});function ih(gh){if(!(!Gf(gh)||Tm(df,gh))){if(df.somethingSelected())ty({lineWise:!1,text:df.getSelections()}),gh.type=="cut"&&df.replaceSelection("",null,"cut");else if(df.options.lineWiseCopyCut){var bh=ny(df);ty({lineWise:!0,text:bh.text}),gh.type=="cut"&&df.operation(function(){df.setSelections(bh.ranges,0,Nf),df.replaceSelection("",null,"cut")})}else return;if(gh.clipboardData){gh.clipboardData.clearData();var Nh=wg.text.join( `
` );if(gh.clipboardData.setData("Text",Nh),gh.clipboardData.getData("Text")==Nh){gh.preventDefault();return}}var Wh=xb(),Jh=Wh.firstChild;Tb(Jh),df.display.lineSpace.insertBefore(Wh,df.display.lineSpace.firstChild),Jh.value=wg.text.join( `
` );var hm=gf(Mf(Sf));Cf(Jh),setTimeout(function(){df.display.lineSpace.removeChild(Wh),hm.focus(),hm==Sf&&pf.showPrimarySelection()},50)}}kh(Sf,"copy",ih),kh(Sf,"cut",ih)},J1.prototype.screenReaderLabelChanged=function(Bd){Bd?this.div.setAttribute("aria-label",Bd):this.div.removeAttribute("aria-label")},J1.prototype.prepareSelection=function(){var Bd=Py(this.cm,!1);return Bd.focus=gf(Mf(this.div))==this.div,Bd},J1.prototype.showSelection=function(Bd,Gd){!Bd||!this.cm.display.view.length||((Bd.focus||Gd)&&this.showPrimarySelection(),this.showMultipleSelections(Bd))},J1.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},J1.prototype.showPrimarySelection=function(){var Bd=this.getSelection(),Gd=this.cm,pf=Gd.doc.sel.primary(),df=pf.from(),Sf=pf.to();if(Gd.display.viewTo==Gd.display.viewFrom||df.line>=Gd.display.viewTo||Sf.line<Gd.display.viewFrom){Bd.removeAllRanges();return}var Gf=B0(Gd,Bd.anchorNode,Bd.anchorOffset),ih=B0(Gd,Bd.focusNode,Bd.focusOffset);if(!(Gf&&!Gf.bad&&ih&&!ih.bad&&Xm(A0(Gf,ih),df)==0&&Xm(z1(Gf,ih),Sf)==0)){var gh=Gd.display.view,bh=df.line>=Gd.display.viewFrom&&P_(Gd,df)||{node:gh[0].measure.map[2],offset:0},Nh=Sf.line<Gd.display.viewTo&&P_(Gd,Sf);if(!Nh){var Wh=gh[gh.length-1].measure,Jh=Wh.maps?Wh.maps[Wh.maps.length-1]:Wh.map;Nh={node:Jh[Jh.length-1],offset:Jh[Jh.length-2]-Jh[Jh.length-3]}}if(!bh||!Nh){Bd.removeAllRanges();return}var hm=Bd.rangeCount&&Bd.getRangeAt(0),dm;try{dm=Qd(bh.node,bh.offset,Nh.offset,Nh.node)}catch{}dm&&(!td&&Gd.state.focused?(Bd.collapse(bh.node,bh.offset),dm.collapsed||(Bd.removeAllRanges(),Bd.addRange(dm))):(Bd.removeAllRanges(),Bd.addRange(dm)),hm&&Bd.anchorNode==null?Bd.addRange(hm):td&&this.startGracePeriod()),this.rememberSelection()}},J1.prototype.startGracePeriod=function(){var Bd=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){Bd.gracePeriod=!1,Bd.selectionChanged()&&Bd.cm.operation(function(){return Bd.cm.curOp.selectionChanged=!0})},20)},J1.prototype.showMultipleSelections=function(Bd){Wd(this.cm.display.cursorDiv,Bd.cursors),Wd(this.cm.display.selectionDiv,Bd.selection)},J1.prototype.rememberSelection=function(){var Bd=this.getSelection();this.lastAnchorNode=Bd.anchorNode,this.lastAnchorOffset=Bd.anchorOffset,this.lastFocusNode=Bd.focusNode,this.lastFocusOffset=Bd.focusOffset},J1.prototype.selectionInEditor=function(){var Bd=this.getSelection();if(!Bd.rangeCount)return!1;var Gd=Bd.getRangeAt(0).commonAncestorContainer;return hf(this.div,Gd)},J1.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||gf(Mf(this.div))!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},J1.prototype.blur=function(){this.div.blur()},J1.prototype.getField=function(){return this.div},J1.prototype.supportsTouch=function(){return!0},J1.prototype.receivedFocus=function(){var Bd=this,Gd=this;this.selectionInEditor()?setTimeout(function(){return Bd.pollSelection()},20):q0(this.cm,function(){return Gd.cm.curOp.selectionChanged=!0});function pf(){Gd.cm.state.focused&&(Gd.pollSelection(),Gd.polling.set(Gd.cm.options.pollInterval,pf))}this.polling.set(this.cm.options.pollInterval,pf)},J1.prototype.selectionChanged=function(){var Bd=this.getSelection();return Bd.anchorNode!=this.lastAnchorNode||Bd.anchorOffset!=this.lastAnchorOffset||Bd.focusNode!=this.lastFocusNode||Bd.focusOffset!=this.lastFocusOffset},J1.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var Bd=this.getSelection(),Gd=this.cm;if(kd&&_d&&this.cm.display.gutterSpecs.length&&Y2(Bd.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var pf=B0(Gd,Bd.anchorNode,Bd.anchorOffset),df=B0(Gd,Bd.focusNode,Bd.focusOffset);pf&&df&&q0(Gd,function(){H0(Gd.doc,D_(pf,df),Nf),(pf.bad||df.bad)&&(Gd.curOp.selectionChanged=!0)})}}},J1.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMT
` ),Cf(Sf))}else return;ih.type=="cut"&&(df.state.cutIncoming=+new Date)}}kh(Sf,"cut",Gf),kh(Sf,"copy",Gf),kh(Bd.scroller,"paste",function(ih){if(!(X1(Bd,ih)||Tm(df,ih))){if(!Sf.dispatchEvent){df.state.pasteIncoming=+new Date,pf.focus();return}var gh=new Event("paste");gh.clipboardData=ih.clipboardData,Sf.dispatchEvent(gh)}}),kh(Bd.lineSpace,"selectstart",function(ih){X1(Bd,ih)||Km(ih)}),kh(Sf,"compositionstart",function(){var ih=df.getCursor("from");pf.composing&&pf.composing.range.clear(),pf.composing={start:ih,range:df.markText(ih,df.getCursor("to"),{className:"CodeMirror-composing"})}}),kh(Sf,"compositionend",function(){pf.composing&&(pf.poll(),pf.composing.range.clear(),pf.composing=null)})},b0.prototype.createField=function(Bd){this.wrapper=xb(),this.textarea=this.wrapper.firstChild;var Gd=this.cm.options;Tb(this.textarea,Gd.spellcheck,Gd.autocorrect,Gd.autocapitalize)},b0.prototype.screenReaderLabelChanged=function(Bd){Bd?this.textarea.setAttribute("aria-label",Bd):this.textarea.removeAttribute("aria-label")},b0.prototype.prepareSelection=function(){var Bd=this.cm,Gd=Bd.display,pf=Bd.doc,df=Py(Bd);if(Bd.options.moveInputWithCursor){var Sf=Sm(Bd,pf.sel.primary().head,"div"),Gf=Gd.wrapper.getBoundingClientRect(),ih=Gd.lineDiv.getBoundingClientRect();df.teTop=Math.max(0,Math.min(Gd.wrapper.clientHeight-10,Sf.top+ih.top-Gf.top)),df.teLeft=Math.max(0,Math.min(Gd.wrapper.clientWidth-10,Sf.left+ih.left-Gf.left))}return df},b0.prototype.showSelection=function(Bd){var Gd=this.cm,pf=Gd.display;Wd(pf.cursorDiv,Bd.cursors),Wd(pf.selectionDiv,Bd.selection),Bd.teTop!=null&&(this.wrapper.style.top=Bd.teTop+"px",this.wrapper.style.left=Bd.teLeft+"px")},b0.prototype.reset=function(Bd){if(!(this.contextMenuPending||this.composing&&Bd)){var Gd=this.cm;if(this.resetting=!0,Gd.somethingSelected()){this.prevInput="";var pf=Gd.getSelection();this.textarea.value=pf,Gd.state.focused&&Cf(this.textarea),ld&&cd>=9&&(this.hasSelection=pf)}else Bd||(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"&&(!Id||gf(Mf(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 Bd=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){Bd.poll(),Bd.cm.state.focused&&Bd.slowPoll()})},b0.prototype.fastPoll=function(){var Bd=!1,Gd=this;Gd.pollingFast=!0;function pf(){var df=Gd.poll();!df&&!Bd?(Bd=!0,Gd.polling.set(60,pf)):(Gd.pollingFast=!1,Gd.slowPoll())}Gd.polling.set(20,pf)},b0.prototype.poll=function(){var Bd=this,Gd=this.cm,pf=this.textarea,df=this.prevInput;if(this.contextMenuPending||this.resetting||!Gd.state.focused||Dh(pf)&&!df&&!this.composing||Gd.isReadOnly()||Gd.options.disableInput||Gd.state.keySeq)return!1;var Sf=pf.value;if(Sf==df&&!Gd.somethingSelected())return!1;if(ld&&cd>=9&&this.hasSelection===Sf||Rd&&/[ \u f700- \u f7ff]/.test(Sf))return Gd.display.input.reset(),!1;if(Gd.doc.sel==Gd.display.selForContextMenu){var Gf=Sf.charCodeAt(0);if(Gf==8203&&!df&&(df=" "),Gf==8666)return this.reset(),this.cm.execCommand("undo")}for(var ih=0,gh=Math.min(df.length,Sf.length);ih<gh&&df.charCodeAt(ih)==Sf.charCodeAt(ih);)++ih;return q0(Gd,function(){pE(Gd,Sf.slice(ih),df.length-ih,null,Bd.composing?"*compose":null),Sf.length>1e3||Sf.indexOf( `
` )>-1?pf.value=Bd.prevInput="":Bd.prevInput=Sf,Bd.composing&&(Bd.composing.range.clear(),Bd.composing.range=Gd.markText(Bd.composing.start,Gd.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(Bd){var Gd=this,pf=Gd.cm,df=pf.display,Sf=Gd.textarea;Gd.contextMenuPending&&Gd.contextMenuPending();var Gf=Jg(pf,Bd),ih=df.scroller.scrollTop;if(!Gf||Ed)return;var gh=pf.options.resetSelectionOnContextMenu;gh&&pf.doc.sel.contains(Gf)==-1&&r0(pf,H0)(pf.doc,D_(Gf),Nf);var bh=Sf.style.cssText,Nh=Gd.wrapper.style.cssText,Wh=Gd.wrapper.offsetParent.getBoundingClientRect();Gd.wrapper.style.cssText="position: static",Sf.style.cssText= ` position : absolute ; width : 30 px ; height : 30 px ;
top : ` +(Bd.clientY-Wh.top-5)+"px; left: "+(Bd.clientX-Wh.left-5)+ ` px ;
z - index : 1000 ; background : ` +(ld?"rgba(255, 255, 255, .05)":"transparent")+ ` ;
outline : none ; border - width : 0 ; outline : none ; overflow : hidden ; opacity : . 05 ; filter : alpha ( opacity = 5 ) ; ` ;var Jh;ud&&(Jh=Sf.ownerDocument.defaultView.scrollY),df.input.focus(),ud&&Sf.ownerDocument.defaultView.scrollTo(null,Jh),df.input.reset(),pf.somethingSelected()||(Sf.value=Gd.prevInput=" "),Gd.contextMenuPending=dm,df.selForContextMenu=pf.doc.sel,clearTimeout(df.detectingSelectAll);function hm(){if(Sf.selectionStart!=null){var Mm=pf.somethingSelected(),Wm=" "+(Mm?Sf.value:"");Sf.value="⇚",Sf.value=Wm,Gd.prevInput=Mm?"":" ",Sf.selectionStart=1,Sf.selectionEnd=Wm.length,df.selForContextMenu=pf.doc.sel}}function dm(){if(Gd.contextMenuPending==dm&&(Gd.contextMenuPending=!1,Gd.wrapper.style.cssText=Nh,Sf.style.cssText=bh,ld&&cd<9&&df.scrollbars.setScrollTop(df.scroller.scrollTop=ih),Sf.selectionStart!=null)){(!ld||ld&&cd<9)&&hm();var Mm=0,Wm=function(){df.selForContextMenu==pf.doc.sel&&Sf.selectionStart==0&&Sf.selectionEnd>0&&Gd.prevInput==" "?r0(pf,Pv)(pf):Mm++<10?df.detectingSelectAll=setTimeout(Wm,500):(df.selForContextMenu=null,df.input.reset())};df.detectingSelectAll=setTimeout(Wm,200)}}if(ld&&cd>=9&&hm(),Fd){F1(Bd);var Nm=function(){jh(window,"mouseup",Nm),setTimeout(dm,20)};kh(window,"mouseup",Nm)}else setTimeout(dm,50)},b0.prototype.readOnlyChanged=function(Bd){Bd||this.reset(),this.textarea.disabled=Bd=="nocursor",this.textarea.readOnly=!!Bd},b0.prototype.setUneditable=function(){},b0.prototype.needsContentAttribute=!1;function d2(Bd,Gd){if(Gd=Gd?mf(Gd):{},Gd.value=Bd.value,!Gd.tabindex&&Bd.tabIndex&&(Gd.tabindex=Bd.tabIndex),!Gd.placeholder&&Bd.placeholder&&(Gd.placeholder=Bd.placeholder),Gd.autofocus==null){var pf=gf(Mf(Bd));Gd.autofocus=pf==Bd||Bd.getAttribute("autofocus")!=null&&pf==document.body}function df(){Bd.value=gh.getValue()}var Sf;if(Bd.form&&(kh(Bd.form,"submit",df),!Gd.leaveSubmitMethodAlone)){var Gf=Bd.form;Sf=Gf.submit;try{var ih=Gf.submit=function(){df(),Gf.submit=Sf,Gf.submit(),Gf.submit=ih}}catch{}}Gd.finishInit=function(bh){bh.save=df,bh.getTextArea=function(){return Bd},bh.toTextArea=function(){bh.toTextArea=isNaN,df(),Bd.parentNode.removeChild(bh.getWrapperElement()),Bd.style.display="",Bd.form&&(jh(Bd.form,"submit",df),!Gd.leaveSubmitMethodAlone&&typeof Bd.form.submit=="function"&&(Bd.form.submit=Sf))}},Bd.style.display="none";var gh=G1(function(bh){return Bd.parentNode.insertBefore(bh,Bd.nextSibling)},Gd);return gh}function Q2(Bd){Bd.off=jh,Bd.on=kh,Bd.wheelEventPixels=M2,Bd.Doc=K0,Bd.splitLines=zf,Bd.countColumn=Pf,Bd.findColumn=wf,Bd.isWordChar=Mh,Bd.Pass=xf,Bd.signal=cm,Bd.Line=sh,Bd.changeEnd=k_,Bd.scrollbarModel=rv,Bd.Pos=_m,Bd.cmpPos=Xm,Bd.modes=qh,Bd.mimeModes=Zh,Bd.resolveMode=zh,Bd.getMode=om,Bd.modeExtensions=fm,Bd.extendMode=uh,Bd.copyState=Om,Bd.startState=y1,Bd.innerMode=l1,Bd.commands=_b,Bd.keyMap=t_,Bd.keyName=fb,Bd.isModifierKey=Kb,Bd.lookupKey=mg,Bd.normalizeKeyMap=hg,Bd.StringStream=c1,Bd.SharedTextMarker=jv,Bd.TextMarker=Hg,Bd.LineWidget=cv,Bd.e_preventDefault=Km,Bd.e_stopPropagation=v1,Bd.e_stop=F1,Bd.addClass=bf,Bd.contains=hf,Bd.rmClass=Vd,Bd.keyNames=P0}dE(G1),Wv(G1);var p2="iter insert remove copy getEditor constructor".split(" ");for(var iy in K0.prototype)K0.prototype.hasOwnProperty(iy)&&Lf(p2,iy)<0&&(G1.prototype[iy]=function(Bd){return function(){return Bd.apply(this.doc,arguments)}}(K0.prototype[iy]));return s1(K0),G1.inputStyles={textarea:b0,contenteditable:J1},G1.defineMode=function(Bd){!G1.defaults.mode&&Bd!="null"&&(G1.defaults.mode=Bd),Yh.apply(this,arguments)},G1.defineMIME=Fh,G1.defineMode("null",function(){return{token:function(Bd){return Bd.skipToEnd()}}}),G1.defineMIME("text/plain","null"),G1.defineExtension=function(Bd,Gd){G1.prototype[Bd]=Gd},G1.defineDocExtension=function(Bd,Gd){K0.prototype[Bd]=Gd},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-30 15:19:18 +08:00
` ).replace(/ \s * \/ \/ .* $ /gm,"").replace(/ \n /g,"").trim(),rd=new RegExp("(?:^"+Ja+" $ )|(?:^"+td+" $ )"),od=new RegExp("^"+Ja+" $ "),sd=new RegExp("^"+td+" $ "),ld=function(Id){return Id&&Id.exact?rd:new RegExp("(?:"+qa(Id)+Ja+qa(Id)+")|(?:"+qa(Id)+td+qa(Id)+")","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*)?@)?",gd=ld.v4().source,_d=ld.v6().source,yd="(?:(?:[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,}))",Od="(?:: \\ d{2,5})?",Ad='(?:[/?#][^ \\ s"]*)?',Nd="(?:"+cd+"|www \\ .)"+ud+"(?:localhost|"+gd+"|"+_d+"|"+yd+Ed+Td+")"+Od+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,gd=null,_d=typeof Ja=="number",yd=typeof Ja=="string",Ed=Array.isArray(Ja);if(_d?gd="number":yd?gd="string":Ed&&(gd="array"),!gd)return!1;Ed&&(ud=Ja.length),yd&&(ud=Ja.replace(cd,"_").length),od?ud!==qa.len&&td.push(format $ 2(rd.messages[gd].len,qa.fullField,qa.len)):sd&&!ld&&ud<qa.min?td.push(format $ 2(rd.messages[gd].min,qa.fullField,qa.min)):ld&&!sd&&ud>qa.max?td.push(format $ 2(rd.messages[gd].max,qa.fullField,qa.max)):sd&&ld&&(ud<qa.min||ud>qa.max)&&td.push(format $ 2(rd.messages[gd].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-30 15:19:18 +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 gd=ud*qa;od==="border-box"&&(gd=gd+td+rd),ld=Math.max(gd,ld),cd.minHeight= ` $ { gd } px ` }if(isNumber $ 3(Ja)){let gd=ud*Ja;od==="border-box"&&(gd=gd+td+rd),ld=Math.min(gd,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 hh={};return ed.containerRole==="combobox"&&(hh["aria-haspopup"]=td["aria-haspopup"],hh["aria-owns"]=td["aria-owns"],hh["aria-expanded"]=td["aria-expanded"]),hh}),sd=computed(()=>[ed.type==="textarea"?Od.b():Td.b(),Td.m(yd.value),Td.is("disabled",Ed.value),Td.is("exceed",Ef.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")]:gf.value&&bf.value,[Td.b("hidden")]:ed.type==="hidden"},td.class]),ld=computed(()=>[Td.e("wrapper"),Td.is("focus",Pd.value)]),cd=useAttrs({excludeKeys:computed(()=>Object.keys(od.value))}),{form:ud,formItem:gd}=useFormItem(),{inputId:_d}=useFormItemInputId(ed,{formItemContext:gd}),yd=useFormSize(),Ed=useFormDisabled(),Td=useNamespace("input"),Od=useNamespace("textarea"),Ad=shallowRef(),Nd=shallowRef(),kd=ref $ 1(!1),Id=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-30 15:19:18 +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 ( ) , g d = r e f $ 1 ( ) , _ d = { h o u r s : c d , m i n u t e s : u d , s e c o n d s : g d } , y 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 : g f } = J a , b f = g f . h o u r ( ) , k f = g f . m i n u t e ( ) , C f = g f . s e c o n d ( ) ; r e t u r n { h o u r s : b f , m i n u t e s : k f , s e c o n d s : C f } } ) , T d = c o m p u t e d ( ( ) = > { c o n s t { h o u r s : g f , m i n u t e s : b 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 ( g f , J a . r o l e ) , s e c o n d s : o d ( g f , b f , J a . r o l e ) } } ) , O d = c o m p u t e d ( ( ) = > { c o n s t { h o u r s : g f , m i n u t e s : b f , s e c o n d s : k 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 ( g f , 2 3 ) , m i n u t e s : b u i l d T i m e L i s t ( b f , 5 9 ) , s e c o n d s : b u i l d T i m e L i s t ( k f , 5 9 ) } } ) , A d = d e b o u n c e ( g f = > { s d = ! 1 , I d ( g f ) } , 2 0 0 ) , N d = g f = > { i f ( ! ! ! J a . a m P m M o d e ) r e t u r n " " ; c o n s t k f = J a . a m P m M o d e = = = " A " ; l e t C f = g f < 1 2 ? " a m " : " p m " ; r e t u r n k f & & ( C f = C f . t o U p p e r C a s e ( ) ) , C f } , k d = g f = > { l e t b f ; s w i t c h ( g f ) { c a s e " h o u r s " : b f = [ 0 , 2 ] ; b r e a k ; c a s e " m i n u t e s " : b f = [ 3 , 5 ] ; b r e a k ; c a s e " s e c o n d s " : b f = [ 6 , 8 ] ; b r e a k } c o n s t [ k f , C f ] = b f ; q a ( " s e l e c t - r a n g e " , k f , C f ) , l d . v a l u e = g f } , I d = g f = > { L d ( g f , u n r e f ( E d ) [ g f ] ) } , R d = ( ) = > { I d ( " h o u r s " ) , I d ( " m i n u t e s " ) , I d ( " s e c o n d s " ) } , M d = g f = > g 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 ` ) , L d = ( g f , b 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 k f = u n r e f ( _ d [ g f ] ) ; k f & & k f . $ e l & & ( M d ( k f . $ e l ) . s c r o l l T o p = M a t h . m a x ( 0 , b f * j d ( g f ) ) ) } , j d = g f = > { c o n s t b f = u n r e f ( _ d [ g f ] ) , k f = b f = = n u l l ? v o i d 0 : b f . $ e l . q u e r y S e l e c t o r ( " l i " ) ; r e t u r n k 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 ( k f , " h e i g h t " ) ) | | 0 } , P d = ( ) = > { U d ( 1 ) } , F d = ( ) = > { U d ( - 1 ) } , U d = g f = > { l d . v a l u e | | k d ( " h o u r s " ) ; c o n s t b f = l d . v a l u e , k f = u n r e f ( E d ) [ b f ] , C f = l d . v a l u e = = = " h o u r s " ? 2 4 : 6 0 , E f = V d ( b f , k f , g f , C f ) ; q d ( b f , E f ) , L d ( b f , E f ) , n e x t T i c k $ 1 ( ( ) = > k d ( b f ) ) } , V d = ( g f , b f , k f , C f ) = > { l e t E f = ( b f + k f + C f ) % C f ; c o n s t y f = u n r e f ( T d ) [ g f ] ; f o r ( ; y f [ E f ] & & E f ! = = b f ; ) E f = ( E f + k f + C f ) % C f ; r e t u r n E f } , q d = ( g f , b f ) = > { i f ( u n r e f ( T d ) [ g f ] [ b f ] ) r e t u r n ; c o n s t { h o u r s : E f , m i n u t e s : y f , s e c o n d s : M f } = u n r e f ( E d ) ; l e t A f ; s w i t c h ( g f ) { c a s e " h o u r s " : A 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 ( y f ) . s e c o n d ( M f ) ; b r e a k ; c a s e " m i n u t e s " : A f = J a . s p i n n e r D a t e . h o u r ( E f ) . m i n u t e ( b f ) . s e c o n d ( M f ) ; b r e a k ; c a s e " s e c o n d s " : A f = J a . s p i n n e r D a t e . h o u r ( E f ) . m i n u t e ( y f ) . s e c o n d ( b f ) ; b r e a k } q a ( " c h a n g e " , A f ) } , W d = ( g f , { v a l u e : b f , d i s a b l e d : k f } ) = > { k f | | ( q d ( g f , b f ) , k d ( g f ) , L d ( g f , b f ) ) } , z d = g f = > { s d = ! 0 , A d ( g f ) ; c o n s t b f = M a t h . m i n ( M a t h . r o u n d ( ( M d ( u n r e f ( _ d [ g f ] ) . $ e l ) . s c r o l l T o p - ( K d ( g f ) * . 5 - 1 0 ) / j d ( g f ) + 3 ) / j d ( g f ) ) , g f = = = " h o u r s " ? 2 3 : 5 9 ) ; q d ( g f , b f ) } , K d = g f = > u n r e f ( _ d [ g f ] ) . $ e l . o f f s e t H e i g h t , Q d = ( ) = > { c o n s t g f = b f = > { c o n s t k f = u n r e f ( _ d [ b f ] ) ; k f & & k f . $ e l & & ( M d ( k f . $ e l ) . o n s c r o l l = ( ) = > { z d ( b f ) } ) } ; g f ( " h o u r s " ) , g f ( " m i n u t e s " ) , g 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 & & Q d ( ) , R d ( ) , J a . r o l e = = = " s t a r t " & & k d ( " h o u r s " ) } ) } ) ; c o n s t h f = ( g f , b f ) = > { _ d [ b f ] . v a l u e = g 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 ` , U 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 | | R d ( ) } ) , ( g 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 ( " 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 " : g f . s h o w S e c o n d s } ] ) } , [ g 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 ( y d ) , k 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 : k f , r e f _ f o r : ! 0 , r e f : C f = > h f ( C f , k 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 : C f = > k d ( k f ) , o n M o u s e m o v e : C f = > I d ( k 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 ) [ k f ] , ( C f , E 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 : E 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-30 15:19:18 +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(gd)]),_:1},8,["class"])):(openBlock(),createBlock(cd,{key:1,class:normalizeClass(["arrow-right",Ra.ns.e("postfix")])},{default:withCtx(()=>[createVNode(_d)]),_: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),gd=computed(()=> ` $ { td . value } - $ { Ra . index } ` ),_d=Od=>{rd=Od.target},yd=Od=>{if(!(!sd.isHoverMenu||!rd||!ld.value))if(rd.contains(Od.target)){Ed();const Ad=qa.vnode.el,{left:Nd}=Ad.getBoundingClientRect(),{offsetWidth:kd,offsetHeight:Id}=Ad,Rd=Od.clientX-Nd,Md=rd.offsetTop,Ld=Md+rd.offsetHeight;ld.value.innerHTML= `
< path style = "pointer-events: auto;" fill = "transparent" d = "M${Rd} ${Md} L${kd} 0 V${Md} Z" / >
< path style = "pointer-events: auto;" fill = "transparent" d = "M${Rd} ${Ld} L${kd} ${Id} V${Ld} 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:gd,t:ed,handleExpand:_d,handleMouseMove:yd,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,gd=>(openBlock(),createBlock(od,{key:gd.uid,node:gd,"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 _S{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 _S(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 _S(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-30 15:19:18 +08:00
m 0 $ { Id ? "" : "-" } $ { kd }
a $ { kd } $ { kd } 0 1 1 0 $ { Id ? "-" : "" } $ { kd * 2 }
a $ { kd } $ { kd } 0 1 1 0 $ { Id ? "" : "-" } $ { 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 ` ),gd=computed(()=>({strokeDasharray: ` $ { ld . value * cd . value } px , $ { ld . value } px ` ,strokeDashoffset:ud.value})),_d=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"})),yd=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),Od=computed(()=>qa.format(qa.percentage));function Ad(kd){const Id=100/kd.length;return kd.map((Md,Ld)=>isString $ 3(Md)?{color:Md,percentage:(Ld+1)*Id}:Md).sort((Md,Ld)=>Md.percentage-Ld.percentage)}const Nd=kd=>{var Id;const{color:Rd}=qa;if(isFunction $ 4(Rd))return Rd(kd);if(isString $ 3(Rd))return Rd;{const Md=Ad(Rd);for(const Ld of Md)if(Ld.percentage>kd)return Ld.color;return(Id=Md[Md.length-1])==null?void 0:Id.color}};return(kd,Id)=>(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(Od)),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(gd))},null,14,["d","stroke","stroke-linecap","stroke-width"]),createBaseVNode("path",{class:normalizeClass(unref(ed).be("circle","path")),d:unref(sd),stroke:unref(yd),fill:"none",opacity:kd.percentage?1:0,"stroke-linecap":kd.strokeLinecap,"stroke-width":unref(rd),style:normalizeStyle(unref(_d))},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(Od)),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 _d=document.querySelector("#input-textarea-caret-position-mirror-div");_d!=null&&_d.parentNode&&_d.parentNode.removeChild(_d)}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(_d=>{if(cd&&_d==="lineHeight")if(ld.boxSizing==="border-box"){const yd=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);yd>Td?sd.lineHeight= ` $ { yd - Ed } px ` :yd===Td?sd.lineHeight=ld.lineHeight:sd.lineHeight="0"}else sd.lineHeight=ld.height;else sd[_d]=ld[_d]}),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 gd={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),gd.left>=Ra.clientWidth&&(gd.left=Ra.clientWidth),gd},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,Id)=>[td.be("dropdown","item"),td.is("hovering",od.value===Id),td.is("disabled",kd.disabled||ed.disabled)],gd=kd=>{kd.disabled||ed.disabled||Ja("select",kd)},_d=kd=>{od.value=kd},yd=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-30 15:19:18 +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 = R 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 o h = n e w r d ( 1 ) , V 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 ( V 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 ( o h , V f ) , o 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 ( o h ) { i f ( o 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 " ' + o 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 V f = n e w r d ( o 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 ( V f , u d . p r o t o t y p e ) , V f } f u n c t i o n u d ( o h , V f , R f ) { i f ( t y p e o f o h = = " n u m b e r " ) { i f ( t y p e o f V 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 ( o h ) } r e t u r n g d ( o h , V f , R f ) } u d . p o o l S i z e = 8 1 9 2 ; f u n c t i o n g d ( o h , V f , R f ) { i f ( t y p e o f o h = = " s t r i n g " ) r e t u r n T d ( o h , V f ) ; i f ( o d . i s V i e w ( o h ) ) r e t u r n A d ( o h ) ; i f ( o 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 o h ) ; i f ( h h ( o h , o d ) | | o h & & h h ( o h . b u f f e r , o d ) | | t y p e o f s d < " u " & & ( h h ( o h , s d ) | | o h & & h h ( o h . b u f f e r , s d ) ) ) r e t u r n N d ( o h , V f , R f ) ; i f ( t y p e o f o 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 Z f = o h . v a l u e O f & & o h . v a l u e O f ( ) ; i f ( Z f ! = n u l l & & Z f ! = = o h ) r e t u r n u d . f r o m ( Z f , V f , R f ) ; c o n s t J f = k d ( o h ) ; i f ( J f ) r e t u r n J 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 o 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 ( o h [ S y m b o l . t o P r i m i t i v e ] ( " s t r i n g " ) , V f , R 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 o h ) } u d . f r o m = f u n c t i o n ( o h , V f , R f ) { r e t u r n g d ( o h , V f , R 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 _ d ( o h ) { i f ( t y p e o f o 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 ( o 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 " ' + o 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 y d ( o h , V f , R f ) { r e t u r n _ d ( o h ) , o h < = 0 ? c d ( o h ) : V f ! = = v o i d 0 ? t y p e o f R f = = " s t r i n g " ? c d ( o h ) . f i l l ( V f , R f ) : c d ( o h ) . f i l l ( V f ) : c d ( o h ) } u d . a l l o c = f u n c t i o n ( o h , V f , R f ) { r e t u r n y d ( o h , V f , R f ) } ; f u n c t i o n E d ( o h ) { r e t u r n _ d ( o h ) , c d ( o h < 0 ? 0 : I d ( o h ) | 0 ) } u d . a l l o c U n s a f e = f u n c t i o n ( o h ) { r e t u r n E d ( o 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 ( o h ) { r e t u r n E d ( o h ) } ; f u n c t i o n T d ( o h , V f ) { i f ( ( t y p e o f V f ! = " s t r i n g " | | V f = = = " " ) & & ( V f = " u t f 8 " ) , ! u d . i s E n c o d i n g ( V 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 : " + V f ) ; c o n s t R f = M d ( o h , V f ) | 0 ; l e t Z f = c d ( R f ) ; c o n s t J f = Z f . w r i t e ( o h , V f ) ; r e t u r n J f ! = = R f & & ( Z f = Z f . s l i c e ( 0 , J f ) ) , Z f } f u n c t i o n O d ( o h ) { c o n s t V f = o h . l e n g t h < 0 ? 0 : I d ( o h . l e n g t h ) | 0 , R f = c d ( V f ) ; f o r ( l e t Z f = 0 ; Z f < V f ; Z f + = 1 ) R f [ Z f ] = o h [ Z f ] & 2 5 5 ; r e t u r n R f } f u n c t i o n A d ( o h ) { i f ( h h ( o h , r d ) ) { c o n s t V f = n e w r d ( o h ) ; r e t u r n N d ( V f . b u f f e r , V f . b y t e O f f s e t , V f . b y t e L e n g t h ) } r e t u r n O d ( o h ) } f u n c t i o n N d ( o h , V f , R f ) { i f ( V f < 0 | | o h . b y t e L e n g t h < V 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 ( o h . b y t e L e n g t h < V f + ( R 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 Z f ; r e t u r n V f = = = v o i d 0 & & R f = = = v o i d 0 ? Z f = n e w r d ( o h ) : R f = = = v o i d 0 ? Z f = n e w r d ( o h , V f ) : Z f = n e w r d ( o h , V f , R f ) , O b j e c t . s e t P r o t o t y p e O f ( Z f , u d . p r o t o t y p e ) , Z f } f u n c t i o n k d ( o h ) { i f ( u d . i s B u f f e r ( o h ) ) { c o n s t V f = I d ( o h . l e n g t h ) | 0 , R f = c d ( V f ) ; r e t u r n R f . l e n g t h = = = 0 | | o h . c o p y ( R f , 0 , 0 , V f ) , R f } i f ( o h . l e n g t h ! = = v o i d 0 ) r e t u r n t y p e o f o h . l e n g t h ! = " n u m b e r " | | M h ( o h . l e n g t h ) ? c d ( 0 ) : O d ( o h ) ; i f ( o h . t y p e = = = " B u f f e r " & & A r r a y . i s A r r a y ( o h . d a t a ) ) r e t u r n O d ( o h . d a t a ) } f u n c t i o n I d ( o h ) { i f ( o 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 o h | 0 } f u n c t i o n R d ( o h ) { r e t u r n + o h !
https : //github.com/highlightjs/highlight.js/issues/2277`),kf=Qd,bf=hf),gf===void 0&&(gf=!0);const Cf={code:bf,language:kf};zd("before:highlight",Cf);const Ef=Cf.result?Cf.result:gd(Cf.language,Cf.code,gf);return Ef.code=Cf.code,zd("after:highlight",Ef),Ef}function gd(Qd,hf,gf,bf){const kf=Object.create(null);function Cf(wh,Bh){return wh.keywords[Bh]}function Ef(){if(!$f.keywords){Kf.addText(Df);return}let wh=0;$f.keywordPatternRe.lastIndex=0;let Bh=$f.keywordPatternRe.exec(Df),Uh="";for(;Bh;){Uh+=Df.substring(wh,Bh.index);const oh=Tf.case_insensitive?Bh[0].toLowerCase():Bh[0],Vf=Cf($f,oh);if(Vf){const[Rf,Zf]=Vf;if(Kf.addText(Uh),Uh="",kf[oh]=(kf[oh]||0)+1,kf[oh]<=MAX_KEYWORD_HITS&&(qf+=Zf),Rf.startsWith("_"))Uh+=Bh[0];else{const Jf=Tf.classNameAliases[Rf]||Rf;Af(Bh[0],Jf)}}else Uh+=Bh[0];wh=$f.keywordPatternRe.lastIndex,Bh=$f.keywordPatternRe.exec(Df)}Uh+=Df.substring(wh),Kf.addText(Uh)}function yf(){if(Df==="")return;let wh=null;if(typeof $f.subLanguage=="string"){if(!qa[$f.subLanguage]){Kf.addText(Df);return}wh=gd($f.subLanguage,Df,!0,Wf[$f.subLanguage]),Wf[$f.subLanguage]=wh._top}else wh=yd(Df,$f.subLanguage.length?$f.subLanguage:null);$f.relevance>0&&(qf+=wh.relevance),Kf.__addSublanguage(wh._emitter,wh.language)}function Mf(){$f.subLanguage!=null?yf():Ef(),Df=""}function Af(wh,Bh){wh!==""&&(Kf.startScope(Bh),Kf.addText(wh),Kf.endScope())}function Zd(wh,Bh){let Uh=1;const oh=Bh.length-1;for(;Uh<=oh;){if(!wh._emit[Uh]){Uh++;continue}const Vf=Tf.classNameAliases[wh[Uh]]||wh[Uh],Rf=Bh[Uh];Vf?Af(Rf,Vf):(Df=Rf,Ef(),Df=""),Uh++}}function mf(wh,Bh){return wh.scope&&typeof wh.scope=="string"&&Kf.openNode(Tf.classNameAliases[wh.scope]||wh.scope),wh.beginScope&&(wh.beginScope._wrap?(Af(Df,Tf.classNameAliases[wh.beginScope._wrap]||wh.beginScope._wrap),Df=""):wh.beginScope._multi&&(Zd(wh.beginScope,Bh),Df="")),$f=Object.create(wh,{parent:{value:$f}}),$f}function Pf(wh,Bh,Uh){let oh=startsWith$1(wh.endRe,Uh);if(oh){if(wh["on:end"]){const Vf=new Response$1(wh);wh["on:end"](Bh,Vf),Vf.isMatchIgnored&&(oh=!1)}if(oh){for(;wh.endsParent&&wh.parent;)wh=wh.parent;return wh}}if(wh.endsWithParent)return Pf(wh.parent,Bh,Uh)}function Ff(wh){return $f.matcher.regexIndex===0?(Df+=wh[0],1):(Mh=!0,0)}function Lf(wh){const Bh=wh[0],Uh=wh.rule,oh=new Response$1(Uh),Vf=[Uh.__beforeBegin,Uh["on:begin"]];for(const Rf of Vf)if(Rf&&(Rf(wh,oh),oh.isMatchIgnored))return Ff(Bh);return Uh.skip?Df+=Bh:(Uh.excludeBegin&&(Df+=Bh),Mf(),!Uh.returnBegin&&!Uh.excludeBegin&&(Df=Bh)),mf(Uh,wh),Uh.returnBegin?0:Bh.length}function jf(wh){const Bh=wh[0],Uh=hf.substring(wh.index),oh=Pf($f,wh,Uh);if(!oh)return NO_MATCH;const Vf=$f;$f.endScope&&$f.endScope._wrap?(Mf(),Af(Bh,$f.endScope._wrap)):$f.endScope&&$f.endScope._multi?(Mf(),Zd($f.endScope,wh)):Vf.skip?Df+=Bh:(Vf.returnEnd||Vf.excludeEnd||(Df+=Bh),Mf(),Vf.excludeEnd&&(Df=Bh));do $f.scope&&Kf.closeNode(),!$f.skip&&!$f.subLanguage&&(qf+=$f.relevance),$f=$f.parent;while($f!==oh.parent);return oh.starts&&mf(oh.starts,wh),Vf.returnEnd?0:Bh.length}function xf(){const wh=[];for(let Bh=$f;Bh!==Tf;Bh=Bh.parent)Bh.scope&&wh.unshift(Bh.scope);wh.forEach(Bh=>Kf.openNode(Bh))}let Nf={};function Bf(wh,Bh){const Uh=Bh&&Bh[0];if(Df+=wh,Uh==null)return Mf(),0;if(Nf.type==="begin"&&Bh.type==="end"&&Nf.index===Bh.index&&Uh===""){if(Df+=hf.slice(Bh.index,Bh.index+1),!td){const oh=new Error(`0 width match regex (${Qd})`);throw oh.languageName=Qd,oh.badRule=Nf.rule,oh}return 1}if(Nf=Bh,Bh.type==="begin")return Lf(Bh);if(Bh.type==="illegal"&&!gf){const oh=new Error('Illegal lexeme "'+Uh+'" for mode "'+($f.scope||"<unnamed>")+'"');throw oh.mode=$f,oh}else if(Bh.type==="end"){const oh=jf(Bh);if(oh!==NO_MATCH)return oh}if(Bh.type==="illegal"&&Uh==="")return 1;if(hh>1e5&&hh>Bh.index*3)throw new Error("potential infinite loop, way more iterations than matches");return Df+=Uh,Uh.length}const Tf=Pd(Qd);if(!Tf)throw error(rd.replace("{}",Qd)),new Error('Unknown language: "'+Qd+'"');const wf=compileLanguage(Tf);let Of="",$f=bf||wf;const Wf={},Kf=new sd.__emitter(sd);xf();let Df="",qf=0,Xf=0,hh=0,Mh=!1;try{if(Tf.__emitTokens)Tf.__emitTokens(hf,Kf
` },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,gd,_d]},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},Od=["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"],Id={keyword:Ad,literal:(Wd=>{const zd=[];return Wd.forEach(Kd=>{zd.push(Kd),Kd.toLowerCase()===Kd?zd.push(Kd.toUpperCase()):zd.push(Kd.toLowerCase())}),zd})(Od),built_in:Nd},Rd=Wd=>Wd.map(zd=>zd.replace(/ \| \d + $ /,"")),Md={variants:[{match:[/new/,Ja.concat(yd,"+"),Ja.concat("(?!",Rd(Nd).join(" \\ b|")," \\ b)"),rd],scope:{1:"keyword",4:"title.class"}}]},Ld=Ja.concat(td," \\ b(?! \\ ()"),jd={variants:[{match:[Ja.concat(/::/,Ja.lookahead(/(?!class \b )/)),Ld],scope:{2:"variable.constant"}},{match:[/::/,/class/],scope:{2:"variable.language"}},{match:[rd,Ja.concat(/::/,Ja.lookahead(/(?!class \b )/)),Ld],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"}}]},Pd={scope:"attr",match:Ja.concat(td,Ja.lookahead(":"),Ja.lookahead(/(?!::)/))},Fd={relevance:0,begin:/ \( /,end:/ \) /,keywords:Id,contains:[Pd,od,jd,qa.C_BLOCK_COMMENT_MODE,Ed,Td,Md]},Ud={relevance:0,match:[/ \b /,Ja.concat("(?!fn \\ b|function \\ b|",Rd(Ad).join(" \\ b|"),"|",Rd(Nd).join(" \\ b|")," \\ b)"),td,Ja.concat(yd,"*"),Ja.lookahead(/(?= \( )/)],scope:{3:"title.function.invoke"},contains:[Fd]};Fd.contains.push(Ud);const Vd=[Pd,jd,qa.C_BLOCK_COMMENT_MODE,Ed,Td,Md],qd={begin:Ja.concat(/# \[ \s */,rd),beginScope:"meta",end:/]/,endScope:"meta",keywords:{literal:Od,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-30 15:19:18 +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-30 15:19:18 +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(jd){return jd?typeof jd=="string"?jd:jd.source:null}function qa(jd){return Ja("(?=",jd,")")}function Ja(...jd){return jd.map(Fd=>Ra(Fd)).join("")}function ed(jd){const Pd=jd[jd.length-1];return typeof Pd=="object"&&Pd.constructor===Object?(jd.splice(jd.length-1,1),Pd):{}}function td(...jd){return"("+(ed(jd).capture?"":"?:")+jd.map(Ud=>Ra(Ud)).join("|")+")"}const rd=jd=>Ja(/ \b /,jd,/ \w $ /.test(jd)?/ \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"],gd=["assignment","associativity","higherThan","left","lowerThan","none","right"],_d=["#colorLiteral","#column","#dsohandle","#else","#elseif","#endif","#error","#file","#fileID","#fileLiteral","#filePath","#function","#if","#imageLiteral","#keyPath","#line","#selector","#sourceLocation","#warning"],yd=["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]/),Od=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,"*"),Id=Ja(/[A-Z]/,Nd,"*"),Rd=["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 ,
- 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 $ 5.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
` +Ld+" children.");for(var Ud=0;Ud<Ld;Ud++){var Vd=new PathNode(kd[Ud]),qd=new SvgNode([Vd],{width:"400em",height:makeEm(Md),viewBox:"0 0 "+sd+" "+Rd,preserveAspectRatio:Pd[Ud]+" slice"}),Wd=buildCommon.makeSvgSpan([jd[Ud]],[qd],Ja);if(Ld===1)return{span:Wd,minWidth:Id,height:Md};Wd.style.height=makeEm(Md),Ad.push(Wd)}return{span:buildCommon.makeSpan(["stretchy"],Ad,Ja),minWidth:Id,height:Md}}}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 $ 5.isCharacterBox(Ja),sd=0;if(od){var ld=utils $ 5.getBaseElem(Ja),cd=buildGroup $ 1(ld,qa.havingCrampedStyle());sd=assertSymbolDomNode(cd).skew}var ud=ed.label===" \\ c",gd=ud?rd.height+rd.depth:Math.min(rd.height,qa.fontMetrics().xHeight),_d;if(ed.isStretchy)_d=stretchy.svgSpan(ed,qa),_d=buildCommon.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:rd},{type:"elem",elem:_d,wrapperClasses:["svg-align"],wrapperStyle:sd>0?{width:"calc(100% - "+makeEm(2*sd)+")",marginLeft:makeEm(2*sd)}:void 0}]},qa);else{var yd,Ed;ed.label===" \\ vec"?(yd=buildCommon.staticSvg("vec",qa),Ed=buildCommon.svgData.vec[1]):(yd=buildCommon.makeOrd({mode:ed.mode,text:ed.label},qa,"textord"),yd=assertSymbolDomNode(yd),yd.italic=0,Ed=yd.width,ud&&(gd+=yd.depth)),_d=buildCommon.makeSpan(["accent-body"],[yd]);var Td=ed.label===" \\ textcircled";Td&&(_d.classes.push("accent-full"),gd=rd.height);var Od=sd;Td||(Od-=Ed/2),_d.style.left=makeEm(Od),ed.label===" \\ textcircled"&&(_d.style.top=".2em"),_d=buildCommon.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:rd},{type:"kern",size:-gd},{type:"elem",elem:_d}]},qa)}var Ad=buildCommon.makeSpan(["mord","accent"],[_d],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( `
` ,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 gd=0;gd<rd[0].length;gd++){var _d=rd[0][gd];if(!unicodeAccents[_d])throw new ParseError("Unknown accent ' "+_d+"'",qa);var yd=unicodeAccents[_d][this.mode]||unicodeAccents[_d].text;if(!yd)throw new ParseError("Accent "+_d+" unsupported in "+this.mode+" mode",qa);od={type:"accent",mode:this.mode,loc:SourceLocation.range(qa),label:yd,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((gd,_d)=>{ud.addEventListener("load",gd),ud.addEventListener("error",()=>_d(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;
` +l1),jf&&arrayForEach([Vd,qd,Wd],y1=>{l1=stringReplace(l1,y1," ")}),Id&& $ f?Id.createHTML(l1):l1},qa.setConfig=function(){let Yh=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};s1(Yh),Bf=!0},qa.clearConfig=function(){Tm=null,Bf=!1},qa.isValidAttribute=function(Yh,Fh,zh){Tm||s1({});const om=cm(Yh),fm=cm(Fh);return Ih(om,fm,zh)},qa.addHook=function(Yh,Fh){typeof Fh=="function"&&(Ud[Yh]=Ud[Yh]||[],arrayPush(Ud[Yh],Fh))},qa.removeHook=function(Yh){if(Ud[Yh])return arrayPop(Ud[Yh])},qa.removeHooks=function(Yh){Ud[Yh]&&(Ud[Yh]=[])},qa.removeAllHooks=function(){Ud={}},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,gd,_d;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
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, `
` )},"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
` ).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( `
` )}class _Tokenizer{constructor(qa){t1(this,"options");t1(this,"rules");t1(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, `
` )}}}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( `
` ),gd=ud.replace(/ \n {0,3}((?:=+|-+) *)(?= \n | $ )/g, `
$1 ` ).replace(/^ {0,3}>[ \t ]?/gm,"");td=td? ` $ { td }
$ { ud } ` :ud,rd=rd? ` $ { rd }
$ { gd } ` :gd;const _d=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(gd,od,!0),this.lexer.state.top=_d,ed.length===0)break;const yd=od[od.length-1];if((yd==null?void 0:yd.type)==="code")break;if((yd==null?void 0:yd.type)==="blockquote"){const Ed=yd,Td=Ed.raw+ `
` +ed.join( `
` ),Od=this.blockquote(Td);od[od.length-1]=Od,td=td.substring(0,td.length-Ed.raw.length)+Od.raw,rd=rd.substring(0,rd.length-Ed.text.length)+Od.text;break}else if((yd==null?void 0:yd.type)==="list"){const Ed=yd,Td=Ed.raw+ `
` +ed.join( `
` ),Od=this.list(Td);od[od.length-1]=Od,td=td.substring(0,td.length-yd.raw.length)+Od.raw,rd=rd.substring(0,rd.length-Ed.raw.length)+Od.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 gd=Ja[2].split( `
` ,1)[0].replace(/^ \t +/,Ad=>" ".repeat(3*Ad.length)),_d=qa.split( `
` ,1)[0],yd=!gd.trim(),Ed=0;if(this.options.pedantic?(Ed=2,ud=gd.trimStart()):yd?Ed=Ja[1].length+1:(Ed=Ja[2].search(/[^ ]/),Ed=Ed>4?1:Ed,ud=gd.slice(Ed),Ed+=Ja[1].length),yd&&/^ * $ /.test(_d)&&(cd+=_d+ `
` ,qa=qa.substring(_d.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 ) } } ( ? : \ ` \` \` |~~~) ` ) , Id = new RegExp ( ` ^ {0, ${ Math . min ( 3 , Ed - 1 ) } }# ` ) ; for ( ; qa ; ) { const Rd = qa . split ( `
` ,1)[0];if(_d=Rd,this.options.pedantic&&(_d=_d.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),kd.test(_d)||Id.test(_d)||Ad.test(_d)||Nd.test(qa))break;if(_d.search(/[^ ]/)>=Ed||!_d.trim())ud+= `
` +_d.slice(Ed);else{if(yd||gd.search(/[^ ]/)>=4||kd.test(gd)||Id.test(gd)||Nd.test(gd))break;ud+= `
` +_d}!yd&&!_d.trim()&&(yd=!0),cd+=Rd+ `
` ,qa=qa.substring(Rd.length+1),gd=_d.slice(Ed)}}rd.loose||(sd?rd.loose=!0:/ \n * \n * $ /.test(cd)&&(sd=!0));let Td=null,Od;this.options.gfm&&(Td=/^ \[ [ xX] \] /.exec(ud),Td&&(Od=Td[0]!=="[ ] ",ud=ud.replace(/^ \[ [ xX] \] +/,""))),rd.items.push({type:"list_item",raw:cd,task:!!Td,checked:Od,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(gd=>gd.type==="space"),ud=cd.length>0&&cd.some(gd=>/ \n .* \n /.test(gd.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( `
` ):[],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)=== `
` ?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 gd=td[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(gd.lastIndex=0,Ja=Ja.slice(-1*qa.length+od);(td=gd.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 _d=[...td[0]][0].length,yd=qa.slice(0,od+td.index+_d+ld);if(Math.min(od,ld)%2){const Td=yd.slice(1,-1);return{type:"em",raw:yd,text:Td,tokens:this.lexer.inlineTokens(Td)}}const Ed=yd.slice(2,-2);return{type:"strong",raw:yd,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 (
` ),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+= `
` +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 gd=qa.slice(1);let _d;this.options.extensions.startInline.forEach(yd=>{_d=yd.call({lexer:this},gd),typeof _d=="number"&&_d>=0&&(ud=Math.min(ud,_d))}),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){t1(this,"options");t1(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 $ /,"")+ `
` ;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 } >
` }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 ) { t 1 ( t h i s , " o p t i o n s " ) ; t 1 ( t h i s , " r e n d e r e r " ) ; t 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){t1(this,"options");this.options=qa||_defaults}preprocess(qa){return qa}postprocess(qa){return qa}processAllTokens(qa){return qa}}t1(_Hooks,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens"]));var gv,eT,vS,tT;class Marked{constructor(...qa){JS(this,gv);t1(this,"defaults",_getDefaults());t1(this,"options",this.setOptions);t1(this,"parse",_E(this,gv,vS).call(this,_Lexer.lex,_Parser.parse));t1(this,"parseInline",_E(this,gv,vS).call(this,_Lexer.lexInline,_Parser.parseInline));t1(this,"Parser",_Parser);t1(this,"Renderer",_Renderer);t1(this,"TextRenderer",_TextRenderer);t1(this,"Lexer",_Lexer);t1(this,"Tokenizer",_Tokenizer);t1(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,gv,eT).call(this,ld,sd,rd));const cd=rd[sd];rd[sd]=(...ud)=>{let gd=ld.apply(rd,ud);return gd===!1&&(gd=cd.apply(rd,ud)),gd||""}}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 gd,_d;return(_d=(gd=ud.match(/[\t ]/g))===null||gd===void 0?void 0:gd.length)!==null&&_d!==void 0?_d:0})):sd},[]);if(td.length){var rd=new RegExp(`
[ ] { ` +Math.min.apply(Math,td)+"}","g");ed=ed.map(function(sd){return sd.replace(rd, `
` )})}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]:"",gd=sd;typeof sd=="string"&&sd.includes( `
` )&&(gd=String(sd).split( `
` ).map(function(_d,yd){return yd===0?_d:""+ud+_d}).join( `
` )),od+=gd+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( `
` ).forEach((ud,gd)=>{gd!==0&&(rd++,td.push([])),ud.split(" ").forEach(_d=>{_d&&td[rd].push({content:_d,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 ( `
` )))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, `
` ),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(_d=>computeWidthOfText(rd,1.1,_d)<=Ra,"checkWidth"),gd=ud(cd)?[cd]:splitLineToFitWidth(cd,ud);for(const _d of gd){const yd=createTspan(sd,ld,1.1);updateTextContentAndStyles(yd,_d),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),gd=replaceIconSubstring(decodeEntities(ud)),_d=qa.replace(/ \ \ \ \ / g , "\\" ) , yd = { isNode : od , label : hasKatex ( qa ) ? _d : gd , labelStyle : Ja . replace ( "fill:" , "color:" ) } ; return await addHtmlSpan ( Ra , yd , sd , td , ld ) } else { const ud = qa . replace ( /<br\s*\/?>/g , "<br/>" ) , gd = markdownToLines ( ud . replace ( "<br>" , "<br/>" ) , cd ) , _d = createFormattedText ( sd , Ra , gd , qa ? ld : ! 1 ) ; if ( od ) { /stroke:/ . exec ( Ja ) && ( Ja = Ja . replace ( "stroke:" , "lineColor:" ) ) ; const yd = Ja . replace ( /stroke:[^;]+;?/g , "" ) . replace ( /stroke-width:[^;]+;?/g , "" ) . replace ( /fill:[^;]+;?/g , "" ) . replace ( /color:/g , "fill:" ) ; d3select ( _d ) . attr ( "style" , yd ) } else { const yd = Ja . replace ( /stroke:[^;]+;?/g , "" ) . replace ( /stroke-width:[^;]+;?/g , "" ) . replace ( /fill:[^;]+;?/g , "" ) . replace ( /background:/g , "fill:" ) ; d3select ( _d ) . select ( "rect" ) . attr ( "style" , yd . replace ( /background:/g , "fill:" ) ) ; const Ed = Ja . replace ( /stroke:[^;]+;?/g , "" ) . replace ( /stroke-width:[^;]+;?/g , "" ) . replace ( /fill:[^;]+;?/g , "" ) . replace ( /color:/g , "fill:" ) ; d3select ( _d ) . select ( "text" ) . attr ( "style" , Ed ) } return _d } } , "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),gd=Ra.insert("g").attr("class","cluster "+qa.cssClasses).attr("id",qa.id).attr("data-look",qa.look),_d=evaluate(Ja.flowchart.htmlLabels),yd=gd.insert("g").attr("class","cluster-label "),Ed=await createText(yd,qa.label,{style:qa.labelStyle,useHtmlLabels:_d,isNode:!0});let Td=Ed.getBBox();if(evaluate(Ja.flowchart.htmlLabels)){const Ld=Ed.children[0],jd=d3select(Ed);Td=Ld.getBoundingClientRect(),jd.attr("width",Td.width),jd.attr("height",Td.height)}const Od=qa.width<=Td.width+qa.padding?Td.width+qa.padding:qa.width;qa.width<=Td.width+qa.padding?qa.diff=(Od-qa.wi
outsidePoint : $ { JSON . stringify ( qa ) }
insidePoint : $ { JSON . stringify ( Ja ) }
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 gd=Ja.y<qa.y?qa.y-ld-td:td-ld-qa.y;sd=ud*gd/cd;const _d={x:Ja.x<qa.x?Ja.x+sd:Ja.x-ud+sd,y:Ja.y<qa.y?Ja.y+cd-gd:Ja.y-cd+gd};return sd===0&&(_d.x=qa.x,_d.y=qa.y),ud===0&&(_d.x=qa.x),cd===0&&(_d.y=qa.y),log $ 1.debug( ` abc89 top / bottom calc , Q $ { cd } , q $ { gd } , R $ { ud } , r $ { sd } ` ,_d),_d}else{Ja.x<qa.x?sd=qa.x-od-ed:sd=ed-od-qa.x;let gd=cd*sd/ud,_d=Ja.x<qa.x?Ja.x+ud-sd:Ja.x-ud+sd,yd=Ja.y<qa.y?Ja.y+gd:Ja.y-gd;return log $ 1.debug( ` sides calc abc89 , Q $ { cd } , q $ { gd } , R $ { ud } , r $ { sd } ` ,{_x:_d,_y:yd}),sd===0&&(_d=qa.x,yd=qa.y),ud===0&&(_d=qa.x),cd===0&&(yd=qa.y),{x:_d,y:yd}}},"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 gd=Math.sqrt(2)*2;let _d={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 yd=5;od.x===sd.x?_d={x:cd<0?sd.x-yd+gd:sd.x+yd-gd,y:ud<0?sd.y-gd:sd.y+gd}:_d={x:cd<0?sd.x-gd:sd.x+gd,y:ud<0?sd.y-yd+gd:sd.y+yd-gd}}else log $ 1.debug("Corner point skipping fixing",Math.abs(rd.x-td.x),Math.abs(rd.y-td.y));Ja.push(_d,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 gd=rd;gd.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],gd,gd.intersect(ld[ld.length-1])),ld.push(gd.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 _d=ld.filter(jd=>!Number.isNaN(jd.y));_d=fixCorners(_d);let yd=_d[_d.length-1];if(_d.length>1){yd=_d[_d.length-1];const jd=_d[_d.length-2],Pd=(yd.x-jd.x)/2,Fd=(yd.y-jd.y)/2,Ud={x:jd.x+Pd,y:jd.y+Fd};_d.splice(-1,0,Ud)}let Ed=curveBasis;qa.curve&&(Ed=qa.curve);const{x:Td,y:Od}=getLineFunctionsWithOffset(qa),Ad=line $ 1().x(Td).y(Od).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 : ` ,_d, `
2024-08-27 22:31:52 +08:00
node :
2024-08-30 15:19:18 +08:00
` ,qa, `
res : ` ,intersect_default.polygon(qa,cd,_d)),intersect_default.polygon(qa,cd,_d)},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 gd;const{cssStyles:_d}=qa;if(qa.look==="handDrawn"){const yd=at $ 3.svg(td),Ed=userNodeOverrides(qa,{}),Td=createHexagonPathD(0,0,cd,sd,ld),Od=yd.path(Td,Ed);gd=td.insert(()=>Od,":first-child").attr("transform", ` translate ( $ { - cd / 2 } , $ { sd / 2 } ) ` ),_d&&gd.attr("style",_d)}else gd=insertPolygonShape(td,cd,sd,ud);return ed&&gd.attr("style",ed),qa.width=cd,qa.height=sd,updateNodeBounds(qa,gd),qa.intersect=function(yd){return intersect_default.polygon(qa,ud,yd)},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 gd=at $ 3.svg(td),_d=userNodeOverrides(qa,{}),yd=createLeanRightPathD(0,0,od,sd),Ed=gd.path(yd,_d);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(gd){return intersect_default.polygon(qa,ld,gd)},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 gd=at $ 3.svg(td),_d=userNodeOverrides(qa,{}),yd=createLeanLeftPathD(0,0,od,sd),Ed=gd.path(yd,_d);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(gd){return intersect_default.polygon(qa,ld,gd)},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 gd=at $ 3.svg(td),_d=userNodeOverrides(qa,{}),yd=createTrapezoidPathD(0,0,od,sd),Ed=gd.path(yd,_d);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(gd){return intersect_default.polygon(qa,ld,gd)},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-BXVhJHWT.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-CJwHGt8-.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-DfGhMRFs.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-e2ulbqyT.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(
` ;try{getDiagram(td)}catch{const gd=getDiagramLoader(td);if(!gd)throw new UnknownDiagramError( ` Diagram $ { td } not found . ` );const{id:_d,diagram:yd}=await gd();registerDiagram(_d,yd)}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+= `
` +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,gd=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]),gd),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,gd),sd+=common.repeat(" ",qa.indent)+padStart((Ra.line+1).toString(),ud)+" | "+cd.str+ `
` ,sd+=common.repeat("-",qa.indent+ud+3+cd.pos)+ ` ^
` ,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]),gd),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){
\ 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
` :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 $ 2=0;i $ 2<256;i $ 2++)simpleEscapeCheck[i $ 2]=simpleEscapeSequence(i $ 2)?1:0,simpleEscapeMap[i $ 2]=simpleEscapeSequence(i $ 2);var i $ 2;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,gd=Ra.kind,_d=Ra.result,yd;if(yd=Ra.input.charCodeAt(Ra.position),is_WS_OR_EOL(yd)||is_FLOW_INDICATOR(yd)||yd===35||yd===38||yd===42||yd===33||yd===124||yd===62||yd===39||yd===34||yd===37||yd===64||yd===96||(yd===63||yd===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;yd!==0;){if(yd===58){if(td=Ra.input.charCodeAt(Ra.position+1),is_WS_OR_EOL(td)||Ja&&is_FLOW_INDICATOR(td))break}else if(yd===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(yd))break;if(is_EOL(yd))if(ld=Ra.line,cd=Ra.lineStart,ud=Ra.lineIndent,skipSeparationSpace(Ra,!1,-1),Ra.lineIndent>=qa){sd=!0,yd=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(yd)||(od=Ra.position+1),yd=Ra.input.charCodeAt(++Ra.position)}return captureSegment(Ra,rd,od,!1),Ra.result?!0:(Ra.kind=gd,Ra.result=_d,!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,gd,_d,yd,Ed=Object.create(null),Td,Od,Ad,Nd;if(Nd=Ra.input.charCodeAt(Ra.position),Nd===91)ud=93,yd=!1,sd=[];else if(Nd===123)ud=125,yd=!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=yd?"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"),Od=Td=Ad=null,gd=_d=!1,Nd===63&&(cd=Ra.input.charCodeAt(Ra.position+1),is_WS_OR_EOL(cd)&&(gd=_d=!0,Ra.position++,skipSeparationSpace(Ra,!0,qa))),ed=Ra.l
` ,rd?1+ld:ld):td===CHOMPING_CLIP&&rd&&(Ra.result+= `
` );break}for(ed?is_WHITE_SPACE(gd)?(cd=!0,Ra.result+=common.repeat( `
` ,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( `
` ,rd?1+ld:ld),rd=!0,od=!0,ld=0,Ja=Ra.position;!is_EOL(gd)&&gd!==0;)gd=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,gd={},_d=Object.create(null),yd=null,Ed=null,Td=null,Od=!1,Ad=!1,Nd;if(Ra.firstTabInLine!==-1)return!1;for(Ra.anchor!==null&&(Ra.anchorMap[Ra.anchor]=gd),Nd=Ra.input.charCodeAt(Ra.position);Nd!==0;){if(!Od&&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?(Od&&(storeMappingPair(Ra,gd,_d,yd,Ed,null,od,sd,ld),yd=Ed=Td=null),Ad=!0,Od=!0,td=!0):Od?(Od=!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"),Od&&(storeMappingPair(Ra,gd,_d,yd,Ed,null,od,sd,ld),yd=Ed=Td=null),Ad=!0,Od=!1,td=!1,yd=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)&&(Od&&(od=Ra.line,sd=Ra.lineStart,ld=Ra.position),composeNode(Ra,qa,CONTEXT_BLOCK_OUT,!0,td)&&(Od?Ed=Ra.result:Td=Ra.result),Od||(storeMappingPair(Ra,gd,_d,yd,Ed,Td,od,sd,ld),yd=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 Od&&storeMappingPair(Ra,gd,_d,yd,Ed,null,od,sd,ld),Ad&&(Ra.tag=cd,Ra.anchor=ud,Ra.kind="mapping",Ra.result=gd),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);
` ),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 `
` +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,gd=!1,_d=!1,yd=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)gd=!0,yd&&(_d=_d||ld-Ed-1>ed&&Ra[Ed+1]!==" ",Ed=ld);else if(!isPrintable(cd))return STYLE_DOUBLE;Td=Td&&isPlainSafe(cd,ud,sd),ud=cd}_d=_d||yd&&ld-Ed-1>ed&&Ra[Ed+1]!==" "}return!gd&&!_d?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:_d?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
` ,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)+ `
` +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,gd,_d;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)_d="",(!ed||td!=="")&&(_d+=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)&&(gd=Ra.tag!==null&&Ra.tag!=="?"||Ra.dump&&Ra.dump.length>1024,gd&&(Ra.dump&&CHAR_LINE_FEED===Ra.dump.charCodeAt(0)?_d+="?":_d+="? "),_d+=Ra.dump,gd&&(_d+=generateNextLine(Ra,qa)),writeNode(Ra,qa+1,ud,!0,gd)&&(Ra.dump&&CHAR_LINE_FEED===Ra.dump.charCodeAt(0)?_d+=":":_d+=": ",_d+=Ra.dump,td+=_d));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]",gd,_d;if(ud&&(gd=Ra.duplicates.indexOf(Ja),_d=gd!==-1),(Ra.tag!==null&&Ra.tag!=="?"||_d||Ra.indent!==2&&qa>0)&&(td=!1),_d&&Ra.usedDuplicates[gd])Ra.dump="*ref_"+gd;else{if(ud&&_d&&!Ra.usedDuplicates[gd]&&(Ra.usedDuplicates[gd]=!0),sd==="[object Object]")ed&&Object.keys(Ra.dump).length!==0?(writeBlockMapping(Ra,qa,Ra.dump,td),_d&&(Ra.dump="&ref_"+gd+Ra.dump)):(writeFlowMapping(Ra,qa,Ra.dump),_d&&(Ra.dump="&ref_"+gd+" "+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),_d&&(Ra.dump="&ref_"+gd+Ra.dump)):(writeFlowSequence(Ra,qa,Ra.dump),_d&&(Ra.dump="
` :""}__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-30 15:19:18 +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 V d , q d , W d , z d , K d , Q d ; 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 g f = d 3 s e l e c t ( _ d ? s d : c d ) . n o d e ( ) ; g f & & " r e m o v e " i n g f & & g 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 g d = d 3 s e l e c t ( " b o d y " ) ; c o n s t _ 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 , 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 _ 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 = " " ) , _ d ) { c o n s t h 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 ) ; g d = d 3 s e l e c t ( h 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 ) , g d . n o d e ( ) . s t y l e . m a r g i n = 0 } e l s e g d = d 3 s e l e c t ( J a ) ; a p p e n d D i v S v g 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 ) , _ d ) { c o n s t h 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 ) ; g d = d 3 s e l e c t ( h 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 ) , g d . n o d e ( ) . s t y l e . m a r g i n = 0 } e l s e g 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 ( g d , R a , l d ) } l e t T d , O 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 ( h 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 ( ) , h 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 " ) , O d = h f } c o n s t A d = g 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 , I d = k d . f i r s t C h i l d , R d = ( q d = ( V 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 ( V d , q a , T d ) , M d = c r e a t e U s e r S t y l e s ( t d , N d , R d , r d ) , L 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 " ) ; L d . i n n e r H T M L = M d , k d . i n s e r t B e f o r e ( L d , I 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 ( h 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 ) , h f } c o n s t j d = g d . s e l e c t ( ` $ { c d } s v g ` ) , P d = ( z d = ( W 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 : z d . c a l l ( W d ) , F d = ( Q d = ( K d = 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 : Q d . c a l l ( K d ) ; a d d A 1 1 y I n f o ( N d , j d , P d , F d ) , g 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 U d = g 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 ) , U d = c l e a n U p S v g C o d e ( U d , _ 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 ) ) , _ d ) { c o n s t h f = g d . s e l e c t ( c d + " s v g " ) . n o d e ( ) ; U d = p u t I n t o I F r a m e ( U d , h f ) } e l s e y d | | ( U d = p u r i f y . s a n i t i z e ( U 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 ( ) , O d ) t h r o w O 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 : U 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-30 15:19:18 +08:00
* /marked$1.use(markedKatex({throwOnError:!1,output:"html",nonStandard:!0}));class WxRenderer extends _Renderer$1{constructor(Ja){super();t1(this,"reset",()=>{this.footnotes=[],this.footnoteIndex=0});t1(this,"merge",(Ja,ed)=>({...Ja,...ed}));t1(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)]))}});t1(this,"getStyles",(Ja,ed="")=>{const td=this.styleMapping[Ja];return td?`style="${Object.entries(td).map(([od,sd])=>`${od}:${sd}`).join(";")}${ed}"`:""});t1(this,"styledContent",(Ja,ed,td=Ja)=>`<${td} ${this.getStyles(Ja)}>${ed}</ $ { td } > ` );t1(this,"addFootnote",(Ja,ed)=>(this.footnotes.push([++this.footnoteIndex,Ja,ed]),this.footnoteIndex));t1(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")});t1(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-30 15:19:18 +08:00
` );t1(this,"setOptions",Ja=>{this.opts=this.merge(this.opts,Ja),this.styleMapping=this.buildTheme(this.opts.theme)});t1(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-30 15:19:18 +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 = ` # 示 例 文 章 : G o o g l e 搜 索 的 即 时 自 动 补 全 功 能 究 竟 是 如 何 “ 工 作 ” 的 ?
2024-08-27 22:31:52 +08:00
> Google 搜索 * * 自动补全功能 * * 的强大 , 相信不少朋友都能感受到 , 它帮助我们更快地 “ 补全 ” 我们所要输入的搜索关键字 。 那么 , 它怎么知道我们要输入什么内容 ? 它又是如何工作的 ? 在这篇文章里 , 我们一起来看看 。
# # 使用自动补全
Google 搜索的自动补全功能可以在 Google 搜索应用的大多数位置使用 , 包括 [ Google ] ( https : //www.google.com/) 主页、适用于 IOS 和 Android 的 Google 应用,我们只需要在 Google 搜索框上开始键入关键字,就可以看到联想词了。
! [ ] ( https : //cdn-doocs.oss-cn-shenzhen.aliyuncs.com/gh/doocs/md/images/1648303019705-c161ce00-d245-446a-b81c-42ec91474a40.gif)
在上图示例中 , 我们可以看到 , 输入关键字 \ ` juej \` , Google 搜索会联想到“掘金”、“掘金小册”、“绝句”等等,好处就是,我们无须输入完整的关键字即可轻松完成针对这些 topics 的搜索。
谷歌搜索的自动补全功能对于使用移动设备的用户来说特别有用 , 用户可以轻松在难以键入的小屏幕上完成搜索 。 当然 , 对于移动设备用户和台式机用户而言 , 这都节省了大量的时间 。 根据 Google 官方报告 , 自动补全功能可以减少大约 25 % 的打字 , 累积起来 , 预计每天可以节省 200 多年的打字时间 。 是的 , 每天 !
> 注意 , 本文所提到的 “ * * 联想词 * * ” 与 “ * * 预测 * * ” , 是同一个意思 。
# # 基于 “ 预测 ” 而非 “ 建议 ”
Google 官方将自动补全功能称之为 “ 预测 ” , 而不是 “ 建议 ” , 为什么呢 ? 其实是有充分理由的 。 自动补全功能是为了 * * 帮助用户完成他们打算进行的搜索 * * , 而不是建议用户要执行什么搜索 。
那么 , Google 是如何确定这些 “ 预测 ” 的 ? 其实 , Google 会根据趋势搜索 [ trends ] ( https : //trends.google.com/trends/?geo=US) 给到我们这些“预测”。简单来说,哪个热门、哪个搜索频率高,就更可能推给我们。当然,这也与我们当前所处的位置以及我们的搜索历史相关。
另外 , 这些 “ 预测 ” 也会随着我们键入的关键字的变更而更改 。 例如 , 当我们把键入的关键字从 \ ` juej \` 更改为 \` juex \` 时,与“掘金”相关的预测会“消失”,同时,与“觉醒”、“决心”相关联的词会出现。
! [ ] ( https : //cdn-doocs.oss-cn-shenzhen.aliyuncs.com/gh/doocs/md/images/1648303068169-386a99cb-143b-4ded-a859-1b7a4c4b5bd3.gif)
# # 为什么看不到某些联想词 ?
如果我们在输入某个关键字时看不到联想词 , 那么表明 Google 的算法可能检测到 :
- 这个关键字不是热门字词 ;
- 搜索的字词太新了 , 我们可能需要等待几天或几周才能看到联想词 ;
- 这是一个侮辱性或敏感字词 , 这个搜索字词违反了 Google 的相关政策 。 更加详细的情况 , 可以了解 [ Google 搜索自动补全政策 ] ( https : //support.google.com/websearch/answer/7368877)。
# # 为什么会看到某些不当的联想词 ?
Google 拥有专门设计的系统 , 可以自动捕获不适当的预测结果而不显示出来 。 然而 , Google 每天需要处理数十亿次搜索 , 这意味着 Google 每天会显示数十亿甚至上百亿条预测 。 再好的系统 , 也可能存在缺陷 , 不正确的预测也可能随时会出现 。
我们作为 Google 搜索的用户 , 如果认定某条预测违反了相关的搜索自动补全政策 , 可以进行举报反馈 , 点击右下角 “ * * 举报不当的联想查询 * * ” 并勾选相关选项即可 。
! [ ] ( https : //cdn-doocs.oss-cn-shenzhen.aliyuncs.com/gh/doocs/md/images/1648303098026-cac215dc-42c9-462a-a359-dcfb12ed3234.gif)
# # 如何实现自动补全算法 ?
目前 , Google 官方似乎并没有公开搜索自动补全的算法实现 , 但是业界在这方面已经有了不少研究 。
一个好的自动补全器必须是快速的 , 并且在用户键入下一个字符后立即更新联想词列表 。 * * 自动补全器的核心是一个函数 , 它接受输入的前缀 , 并搜索以给定前缀开头的词汇或语句列表 * * 。 通常来说 , 只需要返回少量的数目即可 。
接下来 , 我们先从一个简单且低效的实现开始 , 并在此基础上逐步构建更高效的方法 。
# # # 词汇表实现
一个 * * 简单粗暴的实现方式 * * 是 : 顺序查找词汇表 , 依次检查每个词汇 , 看它是否以给定的前缀开头 。
但是 , 此方法需要将前缀与每个词汇进行匹配检查 , 若词汇量较少 , 这种方式可能勉强行得通 。 但是 , 如果词汇量规模较大 , 效率就太低了 。
一个 * * 更好的实现方式是 * * : 让词汇按字典顺序排序 。 借助二分搜索算法 , 可以快速搜索有序词汇表中的前缀 。 由于二分搜索的每一步都会将搜索的范围减半 , 因此 , 总的搜索时间与词汇表中单词数量的对数成正比 , 即时间复杂度是 \ ` O(log N) \` 。二分搜索的性能很好,但有没有更好的实现呢?当然有,往下看。
# # # 前缀树实现
通常来说 , 许多词汇都以相同的前缀开头 , 比如 \ ` need \` 、 \` nested \` 都以 \` ne \` 开头, \` seed \` 、 \` speed \` 都以 \` s \` 开头。要是为每个单词分别存储公共前缀似乎很浪费。
! [ ] ( https : //cdn-doocs.oss-cn-shenzhen.aliyuncs.com/gh/doocs/md/images/1648303128008-93cf798d-2662-4eec-8f80-2e07436aebfe.png)
前缀树是一种利用公共前缀来加速补全速度的数据结构 。 前缀树在节点树中排列一组单词 , 单词沿着从根节点到叶子节点的路径存储 , 树的层次对应于前缀的字母位置 。
前缀的补全是顺着前缀定义的路径来查找的 。 例如 , 在上图的前缀树中 , 前缀 \ ` ne \` 对应于从子节点取左边缘 \` N \` 和唯一边缘 \` E \` 的路径。然后可以通过继续遍历从 \` E \` 节点可以达到的所有叶节点来生成补全列表。在图中, \` ne \` 的补全可以是两个分支: \` -ed \` 和 \` -sted \` 。如果在数中找不到由前缀定义的路径,则说明词汇表中不包含以该前缀开头的单词。
# # # 有限状态自动机 ( DFA ) 实现
前缀树可以有效处理公共前缀 , 但是 , 对于其他共享词部分 , 仍会分别存储在每个分支中 。 比如 , 后缀 \ ` ed \` 、 \` ing \` 、 \` tion \` 在英文单词中特别常见。在上一个例子中, \` e \` 、 \` d \` 分别存放在了每一个分支上。
有没有一种方法可以更加节省存储空间呢 ? 有的 , 那就是 DFA 。
< center >
< img src = "https://cdn-doocs.oss-cn-shenzhen.aliyuncs.com/gh/doocs/md/images/1648303158478-66a96e2d-6424-43d6-8cb3-2f7a39f960b8.gif" style = "width: 50%;" > < / c e n t e r >
在上面的例子中 , 单词 \ ` need \` 、 \` nested \` 、 \` seed \` 和 \` speed \` 仅由 9 个节点组成,而上一张图中的前缀树包含了 17 个节点。
可以看出 , 最小化前缀树 DFA 可以在很大程度上减少数据结构的大小 。 即使词汇量很大 , 最小化 DFA 通常也适合在内存中存储 , 避免昂贵的磁盘访问是实现快速自动补全的关键 。
# # # 一些扩展
上面介绍了如何利用合理的数据结构实现基本的自动补全功能 。 这些数据结构可以通过多种方式进行扩展 , 从而改善用户体验 。
通常 , 满足特定前缀的词汇可能很多 , 而用户界面上能够显示的却不多 , 我们更希望能显示最常搜索或者最有价值的词汇 。 这通常可以通过为词汇表中的每个单词增加一个代表单词值的 * * 权重 * * \ ` weight \` ,并且按照权重高低来排序自动补全列表。
- 对于排序后的词汇表来说 , 在词汇表每个元素上增加 \ ` weight \` 属性并不难;
- 对于前缀树来说 , 将 \ ` weight \` 存储在叶子节点中,也是很简单的一个实现;
- 对于 \ ` DFA \` 来说,则较为复杂。因为一个叶子节点可以通过多条路径到达。一种解决方案是将权重关联到路径而不是叶子节点。
目前有不少开源库都提供了这个功能 , 比如主流的搜索引擎框架 [ Elasticsearch ] ( https : //www.elastic.co/products/elasticsearch)、[Solr](https://lucene.apache.org/solr/) 等,基于此,我们可以实现高效而强大的自动补全功能。
# # # # 推荐阅读
- [ 阿里又一个 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)
-- -
欢迎关注我的公众号 “ * * Doocs * * ” , 原创技术文章第一时间推送 。
< 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-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-30 15:19:18 +08:00
` ;var cheerio $ 2={exports:{}},lib $ d={},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):{}),gd,_d=!1,yd=Ja.length-1;yd>=0;yd--){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(_d)throw new TypeError("Cannot add initializers after decoration has completed");rd.push(od(Ad||null))};var Od=(0,Ja[yd])(sd==="accessor"?{get:ud.get,set:ud.set}:ud[ld],Ed);if(sd==="accessor"){if(Od===void 0)continue;if(Od===null||typeof Od!="object")throw new TypeError("Object expected");(gd=od(Od.get))&&(ud.get=gd),(gd=od(Od.set))&&(ud.set=gd),(gd=od(Od.init))&&td.unshift(gd)}else(gd=od(Od))&&(sd==="field"?td.unshift(gd):ud[ld]=gd)}cd&&Object.defineProperty(cd,ed.name,ud),_d=!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(gd){od(gd)}}function ld(ud){try{cd(ed.throw(ud))}catch(gd){od(gd)}}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 gd;return(gd=ud.children)!==null&&gd!==void 0?gd:qa}traversal.getChildren=Ja;function ed(ud){return ud.parent||null}traversal.getParent=ed;function td(ud){var gd,_d,yd=ed(ud);if(yd!=null)return Ja(yd);for(var Ed=[ud],Td=ud.prev,Od=ud.next;Td!=null;)Ed.unshift(Td),gd=Td,Td=gd.prev;for(;Od!=null;)Ed.push(Od),_d=Od,Od=_d.next;return Ed}traversal.getSiblings=td;function rd(ud,gd){var _d;return(_d=ud.attribs)===null||_d===void 0?void 0:_d[gd]}traversal.getAttributeValue=rd;function od(ud,gd){return ud.attribs!=null&&Object.prototype.hasOwnProperty.call(ud.attribs,gd)&&ud.attribs[gd]!=null}traversal.hasAttrib=od;function sd(ud){return ud.name}traversal.getName=sd;function ld(ud){for(var gd,_d=ud.next;_d!==null&&!(0,Ra.isTag)(_d);)gd=_d,_d=gd.next;return _d}traversal.nextElementSibling=ld;function cd(ud){for(var gd,_d=ud.prev;_d!==null&&!(0,Ra.isTag)(_d);)gd=_d,_d=gd.prev;return _d}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 gd=ud.children;gd[gd.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 gd=[],_d=0,yd=ld;_d<yd.length;_d++){var Ed=yd[_d];if(sd(Ed)&&(gd.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-30 15:19:18 +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,gd=ld.length,_d;ud<gd;ud++)(_d||!(ud in ld))&&(_d||(_d=Array.prototype.slice.call(ld,0,ud)),_d[ud]=ld[ud]);return sd.concat(_d||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,gd){var _d={xmlMode:!!cd.xmlMode,adapter:cd.adapter,equals:cd.equals},yd=gd(ld,_d,ud);return function(Ed){return yd(Ed)&&sd(Ed)}};Ra.subselects={is:od,matches:od,where:od,not:function(sd,ld,cd,ud,gd){var _d={xmlMode:!!cd.xmlMode,adapter:cd.adapter,equals:cd.equals},yd=gd(ld,_d,ud);return yd===Ja.falseFunc?sd:yd===Ja.trueFunc?Ja.falseFunc:function(Td){return!yd(Td)&&sd(Td)}},has:function(sd,ld,cd,ud,gd){var _d=cd.adapter,yd={xmlMode:!!cd.xmlMode,adapter:_d,equals:cd.equals},Ed=ld.some(function(kd){return kd.some(ed.isTraversal)})?[Ra.PLACEHOLDER_ELEMENT]:void 0,Td=gd(ld,yd,Ed);if(Td===Ja.falseFunc)return Ja.falseFunc;if(Td===Ja.trueFunc)return function(kd){return _d.getChildren(kd).some(_d.isTag)&&sd(kd)};var Od=td(Td,_d),Ad=Td.shouldTestNextSiblings,Nd=Ad===void 0?!1:Ad;return Ed?function(kd){Ed[0]=kd;var Id=_d.getChildren(kd),Rd=Nd?qa(qa([],Id,!0),rd(kd,_d),!0):Id;return sd(kd)&&_d.existsOne(Od,Rd)}:function(kd){return sd(kd)&&_d.existsOne(Od,_d.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,gd,_d){var yd=cd.name,Ed=cd.data;if(Array.isArray(Ed))return od.subselects[yd](ld,Ed,ud,gd,_d);if(yd in rd.aliases){if(Ed!=null)throw new Error("Pseudo ".concat(yd," doesn't have any arguments"));var Td=(0,Ja.parse)(rd.aliases[yd]);return od.subselects.is(ld,Td,ud,gd,_d)}if(yd in ed.filters)return ed.filters[yd](ld,Ed,ud,gd);if(yd in td.pseudos){var Od=td.pseudos[yd];return(0,td.verifyPseudoArgs)(Od,yd,Ed),Od===qa.falseFunc?qa.falseFunc:ld===qa.trueFunc?function(Ad){return Od(Ad,ud,Ed)}:function(Ad){return Od(Ad,ud,Ed)&&ld(Ad)}}throw new Error("unmatched pseudo-class :".concat(yd))}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="
` ||Ef===" "||Ef===" \f "||Ef===" \r "}function od(Ef){return Ef>="a"&&Ef<="z"||Ef>="A"&&Ef<="Z"}function sd(Ef,yf,Mf){var Af=Ef.toLowerCase();return Ef===Af?function(Zd,mf){mf===Af?Zd._state=yf:(Zd._state=Mf,Zd._index--)}:function(Zd,mf){mf===Af||mf===Ef?Zd._state=yf:(Zd._state=Mf,Zd._index--)}}function ld(Ef,yf){var Mf=Ef.toLowerCase();return function(Af,Zd){Zd===Mf||Zd===Ef?Af._state=yf:(Af._state=3,Af._index--)}}var cd=sd("C",24,16),ud=sd("D",25,16),gd=sd("A",26,16),_d=sd("T",27,16),yd=sd("A",28,16),Ed=ld("R",35),Td=ld("I",36),Od=ld("P",37),Ad=ld("T",38),Nd=sd("R",40,1),kd=sd("I",41,1),Id=sd("P",42,1),Rd=sd("T",43,1),Md=ld("Y",45),Ld=ld("L",46),jd=ld("E",47),Pd=sd("Y",49,1),Fd=sd("L",50,1),Ud=sd("E",51,1),Vd=ld("I",54),qd=ld("T",55),Wd=ld("L",56),zd=ld("E",57),Kd=sd("I",58,1),Qd=sd("T",59,1),hf=sd("L",60,1),gf=sd("E",61,1),bf=sd("#",63,64),kf=sd("X",66,65),Cf=function(){function Ef(yf,Mf){var Af;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=Mf,this.xmlMode=!!(yf!=null&&yf.xmlMode),this.decodeEntities=(Af=yf==null?void 0:yf.decodeEntities)!==null&&Af!==void 0?Af:!0}return Ef.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},Ef.prototype.write=function(yf){this.ended&&this.cbs.onerror(Error(".write() after done!")),this.buffer+=yf,this.parse()},Ef.prototype.end=function(yf){this.ended&&this.cbs.onerror(Error(".end() after done!")),yf&&this.write(yf),this.ended=!0,this.running&&this.finish()},Ef.prototype.pause=function(){this.running=!1},Ef.prototype.resume=function(){this.running=!0,this._index<this.buffer.length&&this.parse(),this.ended&&this.finish()},Ef.prototype.getAbsoluteIndex=function(){return this.bufferOffset+this._index},Ef.prototype.stateText=function(yf){yf==="<"?(this._index>this.sectionStart&&this.cbs.ontext(this.getSection()),this._state=2,this.sectionStart=this._index):this.decodeEntities&&yf==="&"&&(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)},Ef.prototype.isTagStartChar=function(yf){return od(yf)||this.xmlMode&&!rd(yf)&&yf!=="/"&&yf!==">"},Ef.prototype.stateBeforeTagName=function(yf){yf==="/"?this._state=5:yf==="<"?(this.cbs.ontext(this.getSection()),this.sectionStart=this._index):yf===">"||this.special!==1||rd(yf)?this._state=1:yf==="!"?(this._state=15,this.sectionStart=this._index+1):yf==="?"?(this._state=17,this.sectionStart=this._index+1):this.isTagStartChar(yf)?(this._state=!this.xmlMode&&(yf==="s"||yf==="S")?32:!this.xmlMode&&(yf==="t"||yf==="T")?52:3,this.sectionStart=this._index):this._state=1},Ef.prototype.stateInTagName=function(yf){(yf==="/"||yf===">"||rd(yf))&&(this.emitToken("onopentagname"),this._state=8,this._index--)},Ef.prototype.stateBeforeClosingTagName=function(yf){rd(yf)||(yf===">"?this._state=1:this.special!==1?this.special!==4&&(yf==="s"||yf==="S")?this._state=33:this.special===4&&(yf==="t"||yf==="T")?this._state=53:(this._state=1,this._index--):this.isTagStartChar(yf)?(this._state=6,this.sectionStart=this._index):(this._state=20,this.sectionStart=this._index))},Ef.prototype.stateInClosingTagName=function(yf){(yf===">"||rd(yf))&&(this.emitToken("onclosetag"),this._state=7,this._index--)},Ef.prototype.stateAfterClosingTagName=function(yf){yf===">"&&(this._state=1,this.sectionStart=this._index+1)},Ef.prototype.stateBeforeAttributeName=function(yf){yf===">"?(this.cbs.onopentagend(),this._state=1,this.sectionStart=this._index+1):yf==="/"?this._state=4:rd(yf)||(this._state=9,this.sectionStart=this._index)},Ef.prototype.stateInSelfClosingTag=function(yf){yf===">"?(this.cbs.onselfclosingtag(),this._state=1,this.sectionStart=this._index+1,this.special=1):rd(yf)||(this._state=8,this._index--)},Ef.prototype.stateInAttributeName=function(yf){(yf==="="||yf==="/"||yf===">"||rd(yf))&&(this.cbs.onattribname(this.getSection()),this.sectionStart=-1,th
` ||od===" \r "&&this.html[rd+1]!== `
` )&&(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(dh.chars.length===1)continue;dh.chars=dh.chars.substr(1)}if(this._processInputToken(dh),sh&&this.pendingScript)break}}runParsingLoopForCurrentChunk(sh,dh){if(this._runParsingLoop(dh),dh&&this.pendingScript){const Vm=this.pendingScript;this.pendingScript=null,dh(Vm);return}sh&&sh()}_setupTokenizerCDATAMode(){const sh=this._getAdjustedCurrentElement();this.tokenizer.allowCDATA=sh&&sh!==this.document&&this.treeAdapter.getNamespaceURI(sh)!==Ed.HTML&&!this._isIntegrationPoint(sh)}_switchToTextParsing(sh,dh){this._insertElement(sh,Ed.HTML),this.tokenizer.state=dh,this.originalInsertionMode=this.insertionMode,this.insertionMode=Ud}switchToPlaintextParsing(){this.insertionMode=Ud,this.originalInsertionMode=Fd,this.tokenizer.state=Ra.MODE.PLAINTEXT}_getAdjustedCurrentElement(){return this.openElements.stackTop===0&&this.fragmentContext?this.fragmentContext:this.openElements.current}_findFormInFragmentContext(){let sh=this.fragmentContext;do{if(this.treeAdapter.getTagName(sh)===yd.FORM){this.formElement=sh;break}sh=this.treeAdapter.getParentNode(sh)}while(sh)}_initTokenizerForFragmentParsing(){if(this.treeAdapter.getNamespaceURI(this.fragmentContext)===Ed.HTML){const sh=this.treeAdapter.getTagName(this.fragmentContext);sh===yd.TITLE||sh===yd.TEXTAREA?this.tokenizer.state=Ra.MODE.RCDATA:sh===yd.STYLE||sh===yd.XMP||sh===yd.IFRAME||sh===yd.NOEMBED||sh===yd.NOFRAMES||sh===yd.NOSCRIPT?this.tokenizer.state=Ra.MODE.RAWTEXT:sh===yd.SCRIPT?this.tokenizer.state=Ra.MODE.SCRIPT_DATA:sh===yd.PLAINTEXT&&(this.tokenizer.state=Ra.MODE.PLAINTEXT)}}_setDocumentType(sh){const dh=sh.name||"",Vm=sh.publicId||"",g1=sh.systemId||"";this.treeAdapter.setDocumentType(this.document,dh,Vm,g1)}_attachElementToTree(sh){if(this._shouldFosterParentOnInsertion())this._fosterParentElement(sh);else{const dh=this.openElements.currentTmplContent||this.openElements.current;this.treeAdapter.appendChild(dh,sh)}}_appendElement(sh,dh){const Vm=this.treeAdapter.createElement(sh.tagName,dh,sh.attrs);this._attachElementToTree(Vm)}_insertElement(sh,dh){const Vm=this.treeAdapter.createElement(sh.tagName,dh,sh.attrs);this._attachElementToTree(Vm),this.openElements.push(Vm)}_insertFakeElement(sh){const dh=this.treeAdapter.createElement(sh,Ed.HTML,[]);this._attachElementToTree(dh),this.openElements.push(dh)}_insertTemplate(sh){const dh=this.treeAdapter.createElement(sh.tagName,Ed.HTML,sh.attrs),Vm=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(dh,Vm),this._attachElementToTree(dh),this.openElements.push(dh)}_insertFakeRootElement(){const sh=this.treeAdapter.createElement(yd.HTML,Ed.HTML,[]);this.treeAdapter.appendChild(this.openElements.current,sh),this.openElements.push(sh)}_appendCommentNode(sh,dh){const Vm=this.treeAdapter.createCommentNode(sh.data);this.treeAdapter.appendChild(dh,Vm)}_insertCharacters(sh){if(this._shouldFosterParentOnInsertion())this._fosterParentText(sh.chars);else{const dh=this.openElements.currentTmplContent||this.openElements.current;this.treeAdapter.insertText(dh,sh.chars)}}_adoptNodes(sh,dh){for(let Vm=this.treeAdapter.getFirstChild(sh);Vm;Vm=this.treeAdapter.getFirstChild(sh))this.treeAdapter.detachNode(Vm),this.treeAdapter.appendChild(dh,Vm)}_shouldProcessTokenInForeignContent(sh){const dh=this._getAdjustedCurrentElement();if(!dh||dh===this.document)return!1;const Vm=this.treeAdapter.getNamespaceURI(dh);if(Vm===Ed.HTML||this.treeAdapter.getTagName(dh)===yd.ANNOTATION_XML&&Vm===Ed.MATHML&&sh.type===Ra.START_TAG_TOKEN&&sh.tagName===yd.SVG)return!1;const g1=sh.type===Ra.CHARACTER_TOKEN||sh.type===Ra.NULL_CHARACTER_TOKEN||sh.type===Ra.WHITESPACE_CHARACTER_TOKEN;return(sh.type===Ra.START_TAG_TOKEN&&sh.tagName!==yd.MGLYPH&&sh.tagName!==yd.MALIGNMARK||g1)&&this._isIntegrationPoint(dh,Ed.MATHML)||(sh.type===Ra.START_TAG_TOKEN||g1)&&this._isIntegrationPoint(dh,Ed.HTML)?!1:sh.type!==Ra.EOF_TOKEN}_processToken(sh){Pf[this.insertionMode][sh.type](this,sh)}_processTokenInBodyMode(sh){Pf[Fd][sh.type](this,sh)}_processTokenInForeignContent(sh){sh.type===Ra.CHARACTER_TOKEN?d_(this,sh):sh.type===Ra.NULL_CHARACTER_TOKEN?c0(this,sh)
` )}}):{name:gd,value:_d.replace(ed, ` \ r
` )}}).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 $ 1(),td=Ra.__importStar(requireAttributes()),rd=Ra.__importStar(requireTraversing()),od=Ra.__importStar(requireManipulation()),sd=Ra.__importStar(requireCss()),ld=Ra.__importStar(requireForms()),cd=function(){function gd(_d,yd,Ed,Td){var Od=this;if(Td===void 0&&(Td=Ja.default),this.length=0,this.options=Td,!_d)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(_d))return _d;var Ad=typeof _d=="string"&&ed.isHtml(_d)?qa.default(_d,this.options,!1).children:ud(_d)?[_d]:Array.isArray(_d)?_d:null;if(Ad)return Ad.forEach(function(Id,Rd){Od[Rd]=Id}),this.length=Ad.length,this;var Nd=_d,kd=yd?typeof yd=="string"?ed.isHtml(yd)?this._make(qa.default(yd,this.options,!1)):(Nd=yd+" "+Nd,this._root):ed.isCheerio(yd)?yd:this._make(yd):this._root;return kd?kd.find(Nd):this}return gd.prototype._make=function(_d,yd){var Ed=new this.constructor(_d,yd,this._root,this.options);return Ed.prevObject=this,Ed},gd}();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(gd){return!!gd.name||gd.type==="root"||gd.type==="text"||gd.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),gd=function(yd){Ra.__extends(Ed,yd);function Ed(){return yd!==null&&yd.apply(this,arguments)||this}return Ed}(ed.Cheerio);function _d(yd,Ed,Td,Od){return Td===void 0&&(Td=ud),new gd(yd,Ed,Td,Ra.__assign(Ra.__assign({},cd),qa.flatten(Od)))}return Object.assign(_d,Ja,{load:rd,_root:ud,_options:cd,fn:gd.prototype,prototype:gd.prototype}),_d}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 $ d);var utils $ 3={},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
` )}})(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",gd=[ud],_d={},yd=[],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 jd(),ed[sd]}function Od(Qd){return Qd?gd[gd.length-1-Qd]:ud}function Ad(Qd){var hf=sd+1;return Qd===ed.slice(hf,hf+Qd.length)}function Nd(Qd){var hf=ed.slice(sd).indexOf(Qd);return hf>0?hf:!1}function kd(Qd){return Qd===Id(1)}function Id(Qd){return ed[sd+(Qd||1)]}function Rd(){var Qd=gd.pop();return ud=gd[gd.length-1],Qd}function Md(Qd){return ud=Qd,gd.push(ud),gd.length}function Ld(Qd){var hf=ud;return gd[gd.length-1]=ud=Qd,hf}function jd(Qd){if((Qd||1)==1)ed[sd]== `
` ?(cd++,od=1):od++,sd++;else{var hf=ed.slice(sd,sd+Qd).split( `
` );hf.length>1&&(cd+=hf.length-1,od=1),od+=hf[hf.length-1].length,sd=sd+Qd}}function Pd(){_d.end={line:cd,col:od},yd.push(_d),td="",_d={}}function Fd(Qd){_d={type:Qd,start:{line:cd,col:od}}}for(;rd=Td();)switch(rd){case" ":switch(Od()){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(Od()){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=== `
` &&(_d.value=td.trim(),Pd(),Rd());break}break;case":":switch(Od()){case"name":_d.name=td.trim(),td="",Ld("before-value");break;case"before-selector":td+=rd,Fd("selector"),Md("selector");break;case"before-value":Ld("value"),td+=rd;break;default:td+=rd;break}break;case";":switch(Od()){case"name":case"before-value":case"value":td.trim().length>0&&(_d.value=td.trim(),Pd()),Ld("before-name");break;case"value-paren":td+=rd;break;case"at-value":_d.value=td.trim(),Pd(),Rd();break;case"before-name":break;default:td+=rd;break}break;case"{":switch(Od()){case"selector":if(Id(-1)===" \\ "){td+=rd;break}_d.text=td.trim(),Pd(),Ld("before-name"),ld=ld+1;break;case"at-group":switch(_d.name=td.trim(),_d.type){case"font-face":case"viewport":case"page":Md("before-name");break;default:Md("before-selector")}Pd(),ld=ld+1;break;case"name":case"at-rule":_d.name=td.trim(),Pd(),Md("before-name"),ld=ld+1;break;case"comment":case"double-string":case"single-string":td+=rd;break;case"before-value":Ld("value"),td+=rd;break}break;case"}":switch(Od()){case"before-name":case"name":case"before-value":case"value":td&&(_d.value=td.trim()),_d.name&&_d.value&&Pd(),Fd("end"),Pd(),Rd(),Od()==="at-group"&&(Fd("at-group-end"),Pd(),Rd()),ld>0&&(ld=ld-1);break;case"at-group":case"before-selector":case"selector":if(Id(-1)===" \\ "){td+=rd;break}ld>0&&Od(1)==="at-group"&&(Fd("at-group-end"),Pd()),ld>1&&Rd(),ld>0&&(ld=ld-1);break;case"double-string":case"single-string":case"comment":td+=rd;break}break;case'"':case"'":switch(Od()){case"double-string":rd==='"'&&Id(-1)!==" \\ "&&Rd();break;case"single-string":rd==="'"&&Id(-1)!==" \\ "&&Rd();break;case"before-at-value":Ld("at-value"),Md(rd==='"'?"double-string":"single-string");break;case"before-value":Ld("value"),Md(rd==='"'?"double-string":"single-string");break;case"comment":break;default:Id(-1)!==" \\ "&&Md(rd==='"'?"double-string":"single-string")}td+=rd;break;case"/":switch(Od()){case"comment":case"double-string":case"single-string":td+=rd;break;case"before-value":case"selector":case"name":case"value":if(kd("*")){var Ud=Nd("*/");Ud&&jd(Ud+1)}else Od()=="before-value"&&Ld("value"),td+=rd;break;default:kd("*")?(Fd("comment"),Md("comment"),jd()):td+=rd;break}break;case"*":switch(Od()){case"comment":kd("/")?(_d.text=td,jd(),Pd(),Rd()):td+=rd;break;case"before-selector":td+=rd,Fd("selector"),Md("selector");break;case"before-value":Ld("value"),td+=rd;break;default:td+=rd}break;case"@":switch(Od()){case"comment":case"double-string":case"single-string":td+=rd;break;case"before-value":Ld("value"),td+=rd;break;default:for(var Vd=!1,qd,Wd,zd=0,Kd=Ed.length;!Vd&&zd<Kd;++zd)Wd=Ed[zd],qd=Wd.name||Wd,Ad(qd)&&(Vd=!0,Fd(qd),Md(Wd.state||"at-group"),jd(qd.length),Wd.prefix&&(_d.prefix=Wd.prefix),Wd.type&&(_d.type=Wd.type));Vd||(td+=rd);break}break;case"(":switch(Od()){case"value":Md("value-paren");break;case"before-value":Ld("value");break}td+=rd;break;case")":switch(Od()){case"value-paren":Rd();break;case"before-value":Ld("value");break}td+=rd;break;default:switch(Od()){case"before-selector":Fd("selector"),Md("selector");break;case"before-name":Fd("property"),Ld("name");break;case"before-value":Ld("value");break;case"before-at-value":Ld("at-value");break}td+=rd;break}return yd}})(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(Rd,Md){Md||(Md={}),ed=!!Md.comments,rd=!!Md.position,td=0,od=Array.isArray(Rd)?Rd.slice():Ja(Rd);for(var Ld,jd=[],Pd;Pd=cd();)Ld=Ad(Pd),Ld&&jd.push(Ld);return{type:"stylesheet",stylesheet:{rules:jd}}}function ld(Rd,Md){Md||(Md={});for(var Ld,jd=["type","name","value"],Pd={},Fd=0;Fd<jd.length;++Fd)Ld=jd[Fd],Rd[Ld]&&(Pd[Ld]=Md[Ld]||Rd[Ld]);for(jd=Object.keys(Md),Fd=0;Fd<jd.length;++Fd)Ld=jd[Fd],Pd[Ld]||(Pd[Ld]=Md[Ld]);return rd&&(Pd.position={start:Rd.start,end:Rd.end}),Pd}function cd(){var Rd=od.shift();return Rd}function ud(Rd){td=td+1;var Md={};switch(Rd.type){case"font-face":case"viewport":Md.declarations=kd();break;case"page":Md.prefix=Rd.prefix,Md.declarations=kd();break;default:Md.prefix=Rd.prefix,Md.rul
` ,sd=" ");var Md=Ed(Id.stylesheet.rules,Nd).join( `
` ).trim();return Md}function cd(Id){if(Id){rd+=Id;return}return ed?"":Array(rd).join(td||"")}function ud(Id){return"@"+Id.type+" "+Id.value+";"+od}function gd(Id){var Rd="",Md=Id.prefix||"";Id.name&&(Rd=" "+Id.name);var Ld=Id.type!=="page";return"@"+Md+Id.type+Rd+sd+Td(Id,Ld)+od}function _d(Id){return Ja?"/*"+(Id.text||"")+"*/"+od:""}function yd(Id){var Rd;return Id.selectors?Rd=Id.selectors.join(","+od):(Rd="@"+Id.type,Rd+=Id.name?" "+Id.name:""),cd()+Rd+sd+Td(Id)+od}function Ed(Id,Rd){return Id.reduce(function(Md,Ld){var jd=Ld.type==="comment"?_d(Ld):Rd(Ld);return jd&&Md.push(jd),Md},[])}function Td(Id,Rd){var Md=Id.declarations,Ld=Ad;return Id.rules&&(Md=Id.rules,Ld=yd),Md=Od(Md,Ld),Md&&(Md=od+Md+(Rd?"":od)),"{"+Md+cd()+"}"}function Od(Id,Rd){if(!Id)return"";cd(1);var Md=Ed(Id,Rd);return cd(-1),Md.length?Md.join(od):""}function Ad(Id){if(Id.type==="property")return kd(Id)}function Nd(Id){switch(Id.type){case"rule":return yd(Id);case"media":case"keyframes":return gd(Id);case"comment":return _d(Id);case"import":case"charset":case"namespace":return ud(Id);case"font-face":case"supports":case"viewport":case"document":case"page":return gd(Id)}}function kd(Id){var Rd=Id.name?Id.name+":"+sd:"";return cd()+Rd+Id.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 , gd , _d , yd , Ed , Td ) { var Od , Ad ; if ( ( qa || ! this . length ) && ( Od = this [ this . length ++ ] = new Expression , qa ) ) return "" ; if ( Od || ( Od = this [ this . length - 1 ] ) , ( Ja || ed || ! Od . length ) && ( Ad = Od [ Od . length ++ ] = new Part ( Ja ) ) , Ad || ( Ad = Od [ Od . 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 Id = Ad . classList || ( Ad . classList = [ ] ) ; Id . push ( Nd ) , Id . sort ( ) } } else _d ? ( Td = Td || Ed , ( Ad . pseudos || ( Ad . pseudos = [ ] ) ) . push ( { type : gd . length == 1 ? "class" : "element" , name : unescape$1 ( _d ) , escapedName : escape$1 ( _d ) , 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-30 15:19:18 +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 g d = r d . c h a r A t ( c d ) ; o d ? ( ( g d = = = " ] " | | g d = = = " ) " ) & & o d - - , l d + = g d ) : g d = = = " , " ? ( s d . p u s h ( l d ) , l d = " " ) : ( ( g d = = = " [ " | | g d = = = " ( " ) & & o d + + , ( l d . l e n g t h | | g d ! = = " , " & & g d ! = = `
` &&gd!==" ")&&(ld+=gd))}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],gd=ud.selectors,_d=0,yd=gd.length;_d<yd;_d++)sd.push([gd[_d],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: `
` +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-30 15:19:18 +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 $ 3)),utils $ 3}(function(Ra){var qa=lib $ d;requireUtils();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(gd,_d){return td.push(gd),"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 gd=od.apply(void 0,ud)||cd;return rd&&rd.xmlMode?ld.decodeEntities(gd.xml()):ld.decodeEntities(gd.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 $ 2=requireUtils(),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(yd,Ed,Td){Td=Td||{};var Od=utils $ 2.parseCSS(Ed),Ad=[],Nd="style",kd={};if(Td.styleAttributeName&&(Nd=Td.styleAttributeName),Od.forEach(Md),Ad.forEach(Ld),Td.inlinePseudoElements&&Ad.forEach(jd),Td.applyWidthAttributes&&Ad.forEach(function(Vd){Pd(Vd,"width")}),Td.applyHeightAttributes&&Ad.forEach(function(Vd){Pd(Vd,"height")}),Td.applyAttributesTableElements&&Ad.forEach(Ud),Td.insertPreservedExtraCss&&Td.extraCss){var Id=utils $ 2.getPreservedText(Td.extraCss,{mediaQueries:Td.preserveMediaQueries,fontFaces:Td.preserveFontFaces,keyFrames:Td.preserveKeyFrames});if(Id){var Rd=null;Td.insertPreservedExtraCss!==!0?Rd=yd(Td.insertPreservedExtraCss):(Rd=yd("head"),Rd.length||(Rd=yd("body")),Rd.length||(Rd=yd.root())),Rd.first().append("<style>"+Id+"</style>")}}function Md(Vd){var qd=Vd[0],Wd=Vd[1],zd=new utils $ 2.Selector(qd),Kd=zd.parsed();if(Kd){for(var Qd=sd(Kd),hf=0;hf<Kd.length;++hf){var gf=Kd[hf];if(gf.pseudos)for(var bf=0;bf<gf.pseudos.length;++bf){var kf=gf.pseudos[bf];if(qa.ignoredPseudos.indexOf(kf.name)>=0)return}}if(Qd){var Cf=Kd[Kd.length-1],Ef=Cf.pseudos;Cf.pseudos=cd(Cf.pseudos),qd=Kd.toString(),Cf.pseudos=Ef}var yf;try{yf=yd(qd)}catch{return}yf.each(function(){var Mf=this;if(Mf.name&&qa.nonVisualElements.indexOf(Mf.name.toUpperCase())>=0)return;if(Qd){var Af="pseudo"+Qd,Zd=Mf[Af];Zd||(Zd=Mf[Af]=yd("<s
` +Ed.extraCss,Ja(yd,Td,Ed),yd}function gd(yd,Ed){var Td=[],Od=yd("style"),Ad,Nd,kd;return Od.each(function(){kd=this;var Id=!!kd.childNodes;if(Ad=Id?kd.childNodes:kd.children,Ad.length!==1){Ed.removeStyleTags&&yd(kd).remove();return}if(Nd=Ad[0].data,Ed.applyStyleTags&&yd(kd).attr("data-embed")===void 0&&Td.push(Nd),Ed.removeStyleTags&&yd(kd).attr("data-embed")===void 0){var Rd=Id?kd.childNodes[0].nodeValue:kd.children[0].data,Md=utils $ 2.getPreservedText(Rd,{mediaQueries:Ed.preserveMediaQueries,fontFaces:Ed.preserveFontFaces,keyFrames:Ed.preserveKeyFrames,pseudos:Ed.preservePseudos},qa.ignoredPseudos);Md?Id?kd.childNodes[0].nodeValue=Md:kd.children[0].data=Md:yd(kd).remove()}yd(kd).removeAttr("data-embed")}),Td}function _d(yd,Ed){var Td=gd(yd,Ed),Od=Td.join( `
` );return Od}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=yd,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 Od=new WeakMap,Ad=new WeakMap;return(ed=function(Nd){return Nd?Ad:Od})(Td)}function td(Td,Od){if(Td===null||typeof Td!="object"&&typeof Td!="function")return{default:Td};var Ad=ed(Od);if(Ad&&Ad.has(Td))return Ad.get(Td);var Nd={__proto__:null},kd=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var Id in Td)if(Id!=="default"&&{}.hasOwnProperty.call(Td,Id)){var Rd=kd?Object.getOwnPropertyDescriptor(Td,Id):null;Rd&&(Rd.get||Rd.set)?Object.defineProperty(Nd,Id,Rd):Nd[Id]=Td[Id]}return Nd.default=Td,Ad&&Ad.set(Td,Nd),Nd}var rd=Ja.default,od=(Td,Od)=>Ad=>Td(Od(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 gd=/ \r \n |[ \n \r \u 2028 \u 2029]/;function _d(Td,Od,Ad){let Nd=Object.assign({column:0,line:-1},Td.start),kd=Object.assign({},Nd,Td.end),{linesAbove:Id=2,linesBelow:Rd=3}=Ad||{},Md=Nd.line,Ld=Nd.column,jd=kd.line,Pd=kd.column,Fd=Math.max(Md-(Id+1),0),Ud=Math.min(Od.length,jd+Rd);Md===-1&&(Fd=0),jd===-1&&(Ud=Od.length);let Vd=jd-Md,qd={};if(Vd)for(let Wd=0;Wd<=Vd;Wd++){let zd=Wd+Md;if(!Ld)qd[zd]=!0;else if(Wd===0){let Kd=Od[zd-1].length;qd[zd]=[Ld,Kd-Ld+1]}else if(Wd===Vd)qd[zd]=[0,Pd];else{let Kd=Od[zd-Wd].length;qd[zd]=[0,Kd]}}else Ld===Pd?Ld?qd[Md]=[Ld,0]:qd[Md]=!0:qd[Md]=[Ld,Pd-Ld];return{start:Fd,end:Ud,markerLines:qd}}function yd(Td,Od,Ad={}){let Nd=(Ad.highlightCode||Ad.forceColor)&&(0,qa.shouldHighlight)(Ad),kd=ld(Ad.forceColor),Id=ud(kd),Rd=(qd,Wd)=>Nd?qd(Wd):Wd,Md=Td.split(gd),{start:Ld,end:jd,markerLines:Pd}=_d(Od,Md,Ad),Fd=Od.start&&typeof Od.start.column=="number",Ud=String(jd).length,Vd=(Nd?(0,qa.default)(Td,Ad):Td).split(gd,jd).slice(Ld,jd).map((qd,Wd)=>{let zd=Ld+1+Wd,Kd= ` $ { ` ${ zd } ` . slice ( - Ud ) } | ` ,Qd=Pd[zd],hf=!Pd[zd+1];if(Qd){let gf="";if(Array.isArray(Qd)){let bf=qd.slice(0,Math.max(Qd[0]-1,0)).rep
` ,Rd(Id.gutter,Kd.replace(/ \d /g," "))," ",bf,Rd(Id.marker,"^").repeat(kf)].join(""),hf&&Ad.message&&(gf+=" "+Rd(Id.message,Ad.message))}return[Rd(Id.marker,">"),Rd(Id.gutter,Kd),qd.length>0? ` $ { qd } ` :"",gf].join("")}else return ` $ { Rd ( Id . gutter , Kd ) } $ { qd . length > 0 ? ` ${ qd } ` : "" } ` }).join( `
` );return Ad.message&&!Fd&&(Vd= ` $ { " " . repeat ( Ud + 1 ) } $ { Ad . message }
$ { Vd } ` ),Nd?kd.reset(Vd):Vd}function Ed(Td,Od,Ad,Nd={}){if(!cd){cd=!0;let kd="Passing lineNumber and colNumber is deprecated to @babel/code-frame. Please use ` codeFrameColumns ` .";{let Id=new Error(kd);Id.name="DeprecationWarning",console.warn(new Error(kd))}}return Ad=Math.max(Ad,0),yd(Td,{start:{column:Ad,line:Od}},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 gd=(Ja=ed.timeout)!==null&&Ja!==void 0?Ja:1/0,_d=Date.now()+gd,yd=[{oldPos:-1,lastComponent:void 0}],Ed=this.extractCommon(yd[0],qa,Ra,0);if(yd[0].oldPos+1>=ld&&Ed+1>=sd)return od([{value:this.join(qa),count:qa.length}]);var Td=-1/0,Od=1/0;function Ad(){for(var kd=Math.max(Td,-cd);kd<=Math.min(Od,cd);kd+=2){var Id=void 0,Rd=yd[kd-1],Md=yd[kd+1];Rd&&(yd[kd-1]=void 0);var Ld=!1;if(Md){var jd=Md.oldPos-kd;Ld=Md&&0<=jd&&jd<sd}var Pd=Rd&&Rd.oldPos+1<ld;if(!Ld&&!Pd){yd[kd]=void 0;continue}if(!Pd||Ld&&Rd.oldPos+1<Md.oldPos?Id=rd.addToPath(Md,!0,void 0,0):Id=rd.addToPath(Rd,void 0,!0,1),Ed=rd.extractCommon(Id,qa,Ra,kd),Id.oldPos+1>=ld&&Ed+1>=sd)return od(Su $ 1(rd,Id.lastComponent,qa,Ra,rd.useLongestToken));yd[kd]=Id,Id.oldPos+1>=ld&&(Od=Math.min(Od,kd-1)),Ed+1>=sd&&(Td=Math.max(Td,kd+1))}cd++}if(td)(function kd(){setTimeout(function(){if(cd>ud||Date.now()>_d)return td();Ad()||kd()},0)})();else for(;cd<=ud&&Date.now()<=_d;){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 gd=rd[sd];if(gd.removed){if(gd.value=Ra.join(ed.slice(ud,ud+gd.count)),ud+=gd.count,sd&&rd[sd-1].added){var _d=rd[sd-1];rd[sd-1]=rd[sd],rd[sd]=_d}}else{if(!gd.added&&td){var yd=Ja.slice(cd,cd+gd.count);yd=yd.map(function(Td,Od){var Ad=ed[ud+Od];return Ad.length>Td.length?Ad:Td}),gd.value=Ra.join(yd)}else gd.value=Ra.join(Ja.slice(cd,cd+gd.count));cd+=gd.count,gd.added||(ud+=gd.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
` ));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}' .
Expected it to be $ { ed } . ` }var xt=class extends Error{constructor(qa){super(Iu $ 2(qa));t1(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 gd=ud.length>0? ` , { $ { ud . join ( ", " ) } } ` :"";return ` indentIfBreak ( $ { ed ( rd . contents ) } $ { gd } ) ` }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 gd=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 _d(),{...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?gd():_d()}function gd(){od>0&&ld(od),yd()}function _d(){sd>0&&cd(sd),yd()}function yd(){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(),gd=G $ 3(ud);switch(gd){case U $ 2:ld.push(ud),Ja-=Oe $ 4(ud);break;case W $ 2:case S:{let _d=gd===W $ 2?ud:ud.parts;for(let yd=_d.length-1;yd>=0;yd--)sd.push({mode:cd,doc:_d[yd]});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 _d=ud.break?H $ 2:cd,yd=ud.expandedStates&&_d===H $ 2?y $ 1(!1,ud.expandedStates,-1):ud.contents;sd.push({mode:_d,doc:yd});break}case _ $ 2:{let _d=(ud.groupId?td[ud.groupId]||J $ 2:cd)===H $ 2?ud.breakContents:ud.flatContents;_d&&sd.push({mode:cd,doc:_d});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:_d,mode:yd,doc:Ed}=od.pop();switch(G $ 3(Ed)){case U $ 2:{let Td=td!== `
` ?ne $ 3(!1,Ed, `
` ,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:_d,mode:yd,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(_d,qa),mode:yd,doc:Ed.contents});break;case P $ 2:od.push({ind:Gu $ 2(_d,Ed.n,qa),mode:yd,doc:Ed.contents});break;case I:rd-=Ot $ 3(sd);break;case x $ 1:switch(yd){case J $ 2:if(!ld){od.push({ind:_d,mode:Ed.break?H $ 2:J $ 2,doc:Ed.contents});break}case H $ 2:{ld=!1;let Td={ind:_d,mode:J $ 2,doc:Ed.contents},Od=ed-rd,Ad=cd.length>0;if(!Ed.break&&et $ 2(Td,od,Od,Ad,Ja))od.push(Td);else if(Ed.expandedStates){let Nd=y $ 1(!1,Ed.expandedStates,-1);if(Ed.break){od.push({ind:_d,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:_d,mode:H $ 2,doc:Nd});break}else{let Id=Ed.expandedStates[kd],Rd={ind:_d,mode:J $ 2,doc:Id};if(et $ 2(Rd,od,Od,Ad,Ja)){od.push(Rd);break}}}else od.push({ind:_d,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:Od}=Ed;if(Od.length===0)break;let[Ad,Nd]=Od,kd={ind:_d,mode:J $ 2,doc:Ad},Id={ind:_d,mode:H $ 2,doc:Ad},Rd=et $ 2(kd,[],Td,cd.length>0,Ja,!0);if(Od.length===1){Rd?od.push(kd):od.push(Id);break}let Md={ind:_d,mode:J $ 2,doc:Nd},Ld={ind:_d,mode:H $ 2,doc:Nd};if(Od.length===2){Rd?od.push(Md,kd):od.push(Ld,Id);break}Od.splice(0,2);let jd={ind:_d,mode:yd,doc:Ge $ 2(Od)},Pd=Od[0];et $ 2({ind:_d,mode:J $ 2,doc:[Ad,Nd,Pd]},[],Td,cd.length>0,Ja,!0)?od.push(jd,Md,kd):Rd?od.push(jd,Ld,kd):od.push(jd,Ld,Id);break}case _ $ 2:case R $ 2:{let Td=Ed.groupId?Ja[Ed.groupId]:yd;if(Td===H $ 2){let Od=Ed.type===_ $ 2?Ed.breakContents:Ed.negate?Ed.contents:De $ 2(Ed.contents);Od&&od.push({ind:_d,mode:yd,doc:Od})}if(Td===J $ 2){let Od=Ed.type===_ $ 2?Ed.flatContents:Ed.negate?De $ 2(Ed.contents):Ed.contents;Od&&od.push({ind:_d,mode:yd,doc:Od})}break}case Y $ 2:cd.push({ind:_d,mode:yd,doc:Ed.contents});break;case j:cd.length>0&&od.push({ind:_d,mode:yd,doc:_e $ 4});break;case B $ 1:switch(yd){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:_d,mode:yd,doc:Ed},...cd.reverse()),cd.length=0;break}Ed.literal?_d.root?(sd.push(td,_d.root.value),rd=_d.root.length):(sd.push(td),rd=0):(rd-=Ot $ 3(sd),sd.push(td+_d.value),rd=_d.length);break}break;case N $ 3:od.push({ind:_d,mode:yd,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 gd=sd.indexOf(Te $ 3);if(gd!==-1){let _d=sd.indexOf(Te $ 3,gd+1),yd=sd.slice(0,gd).join(""),Ed=sd.slice(gd+1,_d).join(""),Td=sd.slice(_d+1).join("");return{formatted:yd+Ed+Td,cursorNodeStart:yd.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
` )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 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,gd=0,_d=ld.length;for(;gd<_d;){let yd=gd+_d>>1,Ed=ld[yd],Td=td(Ed),Od=rd(Ed);if(Td<=od&&sd<=Od)return qr $ 3(Ed,qa,Ja,Ed);if(Od<=od){cd=Ed,gd=yd+1;continue}if(sd<=Td){ud=Ed,_d=yd;continue}throw new Error("Comment location overlaps with node location")}if((ed==null?void 0:ed.type)==="TemplateLiteral"){let{quasis:yd}=ed,Ed=Rt $ 4(yd,qa,Ja);cd&&Rt $ 4(yd,cd,Ja)!==Ed&&(cd=null),ud&&Rt $ 4(yd,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:gd=It $ 3}=sd,_d=Ja.map((yd,Ed)=>({...qr $ 3(Ra,yd,qa),comment:yd,text:ld,options:qa,ast:Ra,isLastComment:Ja.length-1===Ed}));for(let[yd,Ed]of _d.entries()){let{comment:Td,precedingNode:Od,enclosingNode:Ad,followingNode:Nd,text:kd,options:Id,ast:Rd,isLastComment:Md}=Ed;if(Id.parser==="json"||Id.parser==="json5"||Id.parser==="jsonc"||Id.parser==="__js_expression"||Id.parser==="__ts_expression"||Id.parser==="__vue_expression"||Id.parser==="__vue_ts_expression"){if(td(Td)-td(Rd)<=0){ue $ 2(Rd,Td);continue}if(rd(Td)-rd(Rd)>=0){oe $ 3(Rd,Td);continue}}let Ld;if(od?Ld=[Ed]:(Td.enclosingNode=Ad,Td.precedingNode=Od,Td.followingNode=Nd,Ld=[Td,kd,Id,Rd,Md]),ro $ 1(kd,Id,_d,yd))Td.placement="ownLine",cd(...Ld)||(Nd?ue $ 2(Nd,Td):Od?oe $ 3(Od,Td):re $ 4(Ad||Rd,Td));else if(no $ 2(kd,Id,_d,yd))Td.placement="endOfLine",ud(...Ld)||(Od?oe $ 3(Od,Td):Nd?ue $ 2(Nd,Td):re $ 4(Ad||Rd,Td));else if(Td.placement="remaining",!gd(...Ld))if(Od&&Nd){let jd=ed.length;jd>0&&ed[jd-1].followingNode!==Nd&&Kr $ 4(ed,Id),ed.push(Ed)}else Od?oe $ 3(Od,Td):Nd?ue $ 2(Nd,Td):re $ 4(Ad||Rd,Td)}if(Kr $ 4(ed,qa),!od)for(let yd of Ja)delete yd.precedingNode,delete yd.enclosingNode,delete yd.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:gd}=Ja[cd];if(gd!==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:gd}=Ja[cd];if(gd!==rd||!Xr $ 3(Ra.slice(ld,od(ud))))break;ld=sd(ud)}return V $ 4(Ra,ld)}function Kr $ 4(Ra,qa){var Ja
( 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( `
` ,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,gd=0;for(;ud<ed;)dn $ 3[ud]=Ra.charCodeAt(rd+ud),jt $ 2[ud]=++ud;for(;gd<td;)for(od=qa.charCodeAt(rd+gd),ld=gd++,sd=gd,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=[];yd();let gd=Ra.stack;for(let{print:Ed,node:Td,pathStack:Od}of ud)try{Ra.stack=Od;let Ad=await Ed(_d,qa,Ra,Ja);Ad&&td.set(Td,Ad)}catch(Ad){if(globalThis.PRETTIER_DEBUG)throw Ad}Ra.stack=gd;function _d(Ed,Td){return Po $ 1(Ed,Td,Ja,ed)}function yd(){let{node:Ed}=Ra;if(Ed===null||typeof Ed!="object"||sd(Ra))return;for(let Od of cd(Ed))Array.isArray(Ed[Od])?Ra.each(yd,Od):Ra.call(yd,Od);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 gd=Gn $ 4(ed,qa,od,ld,td);return ud&&Ja.set(cd,gd),gd}}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(_d=>od(_d,ld)).filter(Boolean);let cd={},ud=new Set(td(sd));for(let _d in sd)!Object.prototype.hasOwnProperty.call(sd,_d)||rd.has(_d)||(ud.has(_d)?cd[_d]=od(sd[_d],sd):cd[_d]=sd[_d]);let gd=Ja(sd,cd,ld);if(gd!==null)return gd??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),gd=ud.formatted.trimEnd(),{cursorOffset:_d}=qa;_d>rd?_d+=gd.length-od.length:ud.cursorOffset>=0&&(_d=ud.cursorOffset+td);let yd=ed.slice(0,td)+gd+ed.slice(rd);if(qa.endOfLine!=="lf"){let Ed=Be $ 4(qa.endOfLine);_d>=0&&Ed=== ` \ r
` &&(_d+=wt $ 2(yd.slice(0,_d), `
` )),yd=ne $ 3(!1,yd, `
` ,Ed)}return{formatted:yd,cursorOffset:_d,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
` );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)=== `
` )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,gd=96,_d=4,yd=1024;function Ed(Rd){var Md=this.Parser,Ld=this.Compiler;Td(Md)&&Ad(Md,Rd),Od(Ld)&&Nd(Ld)}function Td(Rd){return!!(Rd&&Rd.prototype&&Rd.prototype.blockTokenizers)}function Od(Rd){return!!(Rd&&Rd.prototype&&Rd.prototype.visitors)}function Ad(Rd,Md){for(var Ld=Md||{},jd=Rd.prototype,Pd=jd.blockTokenizers,Fd=jd.inlineTokenizers,Ud=jd.blockMethods,Vd=jd.inlineMethods,qd=Pd.definition,Wd=Fd.reference,zd=[],Kd=-1,Qd=Ud.length,hf;++Kd<Qd;)hf=Ud[Kd],!(hf==="newline"||hf==="indentedCode"||hf==="paragraph"||hf==="footnoteDefinition")&&zd.push([hf]);zd.push(["footnoteDefinition"]),Ld.inlineNotes&&(kd(Vd,"reference","inlineNote"),Fd.inlineNote=kf),kd(Ud,"definition","footnoteDefinition"),kd(Vd,"reference","footnoteCall"),Pd.definition=Ef,Pd.footnoteDefinition=gf,Fd.footnoteCall=bf,Fd.reference=Cf,jd.interruptFootnoteDefinition=zd,Cf.locator=Wd.locator,bf.locator=yf,kf.locator=Mf;function gf(Af,Zd,mf){for(var Pf=this,Ff=Pf.interruptFootnoteDefinition,Lf=Pf.offset,jf=Zd.length+1,xf=0,Nf=[],Bf,Tf,wf,Of, $ f,Wf,Kf,Df,qf,Xf,hh,Mh,wh;xf<jf&&(Of=Zd.charCodeAt(xf),!(Of!==Ja&&Of!==td));)xf++;if(Zd.charCodeAt(xf++)===sd&&Zd.charCodeAt(xf++)===ud){for(Tf=xf;xf<jf;){if(Of=Zd.charCodeAt(xf),Of!==Of||Of===ed||Of===Ja||Of===td)return;if(Of===cd){wf=xf,xf++;break}xf++}if(!(wf===void 0||Tf===wf||Zd.charCodeAt(xf++)!==od)){if(mf)return!0;for(Bf=Zd.slice(Tf,wf), $ f=Af.now(),qf=0,Xf=0,hh=xf,Mh=[];xf<jf;){if(Of=Zd.charCodeAt(xf),Of!==Of||Of===ed)wh={start:qf,contentStart:hh||xf,contentEnd:xf,end:xf},Mh.push(wh),Of===ed&&(qf=xf+1,Xf=0,hh=void 0,wh.end=qf);else if(Xf!==void 0)if(Of===td||Of===Ja)Xf+=Of===td?1:_d-Xf%_d,Xf>_d&&(Xf=void 0,hh=xf);else{if(Xf<_d&&wh&&(wh.contentStart===wh.contentEnd||Id(Ff,Pd,Pf,[Af,Zd.slice(xf,yd),!0])))break;Xf=void 0,hh=xf}xf++}for(xf=-1,jf=Mh.length;jf>0&&(wh=Mh[jf-1],wh.contentStart===wh.contentEnd);)jf--;for(Wf=Af(Zd.slice(0,wh.contentEnd));++xf<jf;)wh=Mh[xf],Lf[ $ f.line+xf]=(Lf[ $ f.line+xf]||0)+(wh.contentStart-wh.start),Nf.push(Zd.slice(wh.contentStart,wh.end));return Kf=Pf.enterBlock(),Df=Pf.toke
2024-08-27 22:31:52 +08:00
2024-08-30 15:19:18 +08:00
` ).split( `
` ),qd=0,Wd=Vd.length,zd;++qd<Wd;)zd=Vd[qd],zd!==""&&(Vd[qd]=Ld+zd);return"[^"+(Ud.label||Ud.identifier)+"]: "+Vd.join( `
` )}}function kd(Rd,Md,Ld){Rd.splice(Rd.indexOf(Md),0,Ld)}function Id(Rd,Md,Ld,jd){for(var Pd=Rd.length,Fd=-1;++Fd<Pd;)if(Md[Rd[Fd][0]].apply(Ld,jd))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=gd;var ed=9,td=32,rd=36,od=48,sd=57,ld=92,cd=["math","math-inline"],ud="math-display";function gd(Ed){let Td=this.Parser,Od=this.Compiler;Ja.isRemarkParser(Td)&&_d(Td,Ed),Ja.isRemarkCompiler(Od)&&yd(Od)}function _d(Ed,Td){let Od=Ed.prototype,Ad=Od.inlineMethods;kd.locator=Nd,Od.inlineTokenizers.math=kd,Ad.splice(Ad.indexOf("text"),0,"math");function Nd(Id,Rd){return Id.indexOf(" $ ",Rd)}function kd(Id,Rd,Md){let Ld=Rd.length,jd=!1,Pd=!1,Fd=0,Ud,Vd,qd,Wd,zd,Kd,Qd;if(Rd.charCodeAt(Fd)===ld&&(Pd=!0,Fd++),Rd.charCodeAt(Fd)===rd){if(Fd++,Pd)return Md?!0:Id(Rd.slice(0,Fd))({type:"text",value:" $ "});if(Rd.charCodeAt(Fd)===rd&&(jd=!0,Fd++),qd=Rd.charCodeAt(Fd),!(qd===td||qd===ed)){for(Wd=Fd;Fd<Ld;){if(Vd=qd,qd=Rd.charCodeAt(Fd+1),Vd===rd){if(Ud=Rd.charCodeAt(Fd-1),Ud!==td&&Ud!==ed&&(qd!==qd||qd<od||qd>sd)&&(!jd||qd===rd)){zd=Fd-1,Fd++,jd&&Fd++,Kd=Fd;break}}else Vd===ld&&(Fd++,qd=Rd.charCodeAt(Fd+1));Fd++}if(Kd!==void 0)return Md?!0:(Qd=Rd.slice(Wd,zd+1),Id(Rd.slice(0,Kd))({type:"inlineMath",value:Qd,data:{hName:"span",hProperties:{className:cd.concat(jd&&Td.inlineMathDouble?[ud]:[])},hChildren:[{type:"text",value:Qd}]}}))}}}}function yd(Ed){let Td=Ed.prototype;Td.visitors.inlineMath=Od;function Od(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 yd=this.Parser,Ed=this.Compiler;Ja.isRemarkParser(yd)&&gd(yd),Ja.isRemarkCompiler(Ed)&&_d(Ed)}function gd(yd){let Ed=yd.prototype,Td=Ed.blockMethods,Od=Ed.interruptParagraph,Ad=Ed.interruptList,Nd=Ed.interruptBlockquote;Ed.blockTokenizers.math=kd,Td.splice(Td.indexOf("fencedCode")+1,0,"math"),Od.splice(Od.indexOf("fencedCode")+1,0,["math"]),Ad.splice(Ad.indexOf("fencedCode")+1,0,["math"]),Nd.splice(Nd.indexOf("fencedCode")+1,0,["math"]);function kd(Id,Rd,Md){var Ld=Rd.length,jd=0;let Pd,Fd,Ud,Vd,qd,Wd,zd,Kd,Qd,hf,gf;for(;jd<Ld&&Rd.charCodeAt(jd)===td;)jd++;for(qd=jd;jd<Ld&&Rd.charCodeAt(jd)===rd;)jd++;if(Wd=jd-qd,!(Wd<ld)){for(;jd<Ld&&Rd.charCodeAt(jd)===td;)jd++;for(zd=jd;jd<Ld;){if(Pd=Rd.charCodeAt(jd),Pd===rd)return;if(Pd===ed)break;jd++}if(Rd.charCodeAt(jd)===ed){if(Md)return!0;for(Fd=[],zd!==jd&&Fd.push(Rd.slice(zd,jd)),jd++,Ud=Rd.indexOf(od,jd+1),Ud=Ud===-1?Ld:Ud;jd<Ld;){for(Kd=!1,hf=jd,gf=Ud,Vd=Ud,Qd=0;Vd>hf&&Rd.charCodeAt(Vd-1)===td;)Vd--;for(;Vd>hf&&Rd.charCodeAt(Vd-1)===rd;)Qd++,Vd--;for(Wd<=Qd&&Rd.indexOf(sd,hf)===Vd&&(Kd=!0,gf=Vd);hf<=gf&&hf-jd<qd&&Rd.charCodeAt(hf)===td;)hf++;if(Kd)for(;gf>hf&&Rd.charCodeAt(gf-1)===td;)gf--;if((!Kd||hf!==gf)&&Fd.push(Rd.slice(hf,gf)),Kd)break;jd=Ud+1,Ud=Rd.indexOf(od,jd+1),Ud=Ud===-1?Ld:Ud}return Fd=Fd.join( `
` ),Id(Rd.slice(0,Ud))({type:"math",value:Fd,data:{hName:"div",hProperties:{className:cd.concat()},hChildren:[{type:"text",value:Fd}]}})}}}}function _d(yd){let Ed=yd.prototype;Ed.visitors.math=Td;function Td(Od){return ` $$
` +Od.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(gd){return rd.apply(this,gd)}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,gd=cd&&cd.column,_d;return!isNaN(ud)&&!isNaN(gd)&&ud-1 in rd&&(_d=(rd[ud-2]||0)+gd-1||0),_d>-1&&_d<rd[rd.length-1]?_d:-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],gd=[],_d;cd!==-1;)gd.push(sd.slice(ld,cd)),ld=cd+1,_d=sd.charAt(ld),(!_d||ud.indexOf(_d)===-1)&&gd.push(Ja),cd=sd.indexOf(Ja,ld+1);return gd.push(sd.slice(ld)),gd.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:"
` );Qd!==-1;)Td++,Kd=Qd,Qd=zd.indexOf( `
` ,Qd+1);Kd===-1?Od+=zd.length:Od=zd.length-Kd,Td in gd&&(Kd!==-1?Od+=gd[Td]:Od<=gd[Td]&&(Od=gd[Td]+1))}function jd(){var zd=[],Kd=Td+1;return function(){for(var Qd=Td+1;Kd<Qd;)zd.push((gd[Kd]||0)+1),Kd++;return zd}}function Pd(){var zd={line:Td,column:Od};return zd.offset=ud.toOffset(zd),zd}function Fd(zd){this.start=zd,this.end=Pd()}function Ud(zd){ld.slice(0,zd.length)!==zd&&ud.file.fail(new Error("Incorrectly eaten value: please report this warning on https://git.io/vg5Ft"),Pd())}function Vd(){var zd=Pd();return Kd;function Kd(Qd,hf){var gf=Qd.position,bf=gf?gf.start:zd,kf=[],Cf=gf&&gf.end.line,Ef=zd.line;if(Qd.position=new Fd(bf),gf&&hf&&gf.indent){if(kf=gf.indent,Cf<Ef){for(;++Cf<Ef;)kf.push((gd[Cf]||0)+1);kf.push(zd.column)}hf=kf.concat(hf)}return Qd.position.indent=hf||[],Qd}}function qd(zd,Kd){var Qd=Kd?Kd.children:_d,hf=Qd[Qd.length-1],gf;return hf&&zd.type===hf.type&&(zd.type==="text"||zd.type==="blockquote")&&ed(hf)&&ed(zd)&&(gf=zd.type==="text"?td:rd,zd=gf.call(ud,hf,zd)),zd!==hf&&Qd.push(zd),ud.atStart&&_d.length!==0&&ud.exitStart(),zd}function Wd(zd){var Kd=jd(),Qd=Vd(),hf=Pd();return Ud(zd),gf.reset=bf,bf.test=kf,gf.test=kf,ld=ld.slice(zd.length),Ld(zd),Kd=Kd(),gf;function gf(Cf,Ef){return Qd(qd(Qd(Cf),Ef),Kd)}function bf(){var Cf=gf.apply(null,arguments);return Td=hf.line,Od=hf.column,ld=zd+ld,Cf}function kf(){var Cf=Qd({});return Td=hf.line,Od=hf.column,ld=zd+ld,Cf.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 gd=-1;++gd<ld.length;)if(ld[gd].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,gd,_d){var yd,Ed;typeof ud=="function"&&typeof gd!="function"&&(_d=gd,gd=ud,ud=null),Ed=Ja(ud),yd=_d?-1:1,Td(cd,null,[])();function Td(Od,Ad,Nd){var kd=typeof Od=="object"&&Od!==null?Od:{},Id;return typeof kd.type=="string"&&(Id=typeof kd.tagName=="string"?kd.tagName:typeof kd.name=="string"?kd.name:void 0,Rd.displayName="node ("+ed(kd.type+(Id?"<"+Id+">":""))+")"),Rd;function Rd(){var Md=Nd.concat(Od),Ld=[],jd,Pd;if((!ud||Ed(Od,Ad,Nd[Nd.length-1]||null))&&(Ld=ld(gd(Od,Nd)),Ld[0]===od))return Ld;if(Od.children&&Ld[0]!==rd)for(Pd=(_d?Od.children.length:-1)+yd;Pd>-1&&Pd<Od.children.length;){if(jd=Td(Od.children[Pd],Pd,Md)(),jd[0]===od)return jd;Pd=typeof jd[1]=="number"?jd[1]:Pd+yd}return Ld}}}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,gd,ud);function gd(_d,yd){var Ed=yd[yd.length-1],Td=Ed?Ed.children.indexOf(_d):null;return cd(_d,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),gd;return ld=ld.replace(rd,td),ld.charCodeAt(0)===65279&&(ld=ld.slice(1),ud.column++,ud.offset++),gd={type:"root",children:sd.tokenizeBlock(ld,ud),position:{start:cd,end:sd.eof||Ja(cd)}},sd.options.position||ed(gd,!0),gd}}),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,gd,_d){for(var yd=-1,Ed=gd.length,Td="",Od="",Ad="",Nd="",kd,Id,Rd;++yd<Ed;)if(kd=gd.charAt(yd),Rd)if(Rd=!1,Td+=Ad,Od+=Nd,Ad="",Nd="",kd===td)Ad=kd,Nd=kd;else for(Td+=kd,Od+=kd;++yd<Ed;){if(kd=gd.charAt(yd),!kd||kd===td){Nd=kd,Ad=kd;break}Td+=kd,Od+=kd}else if(kd===od&&gd.charAt(yd+1)===kd&&gd.charAt(yd+2)===kd&&gd.charAt(yd+3)===kd)Ad+=ld,yd+=3,Rd=!0;else if(kd===rd)Ad+=kd,Rd=!0;else{for(Id="";kd===rd||kd===od;)Id+=kd,kd=gd.charAt(++yd);if(kd!==td)break;Ad+=Id+kd,Nd+=kd}if(Od)return _d?!0:ud(Td)({type:"code",lang:null,meta:null,value:ed(Od)})}}),ma $ 1=C((Ra,qa)=>{qa.exports=cd;var Ja= `
` ,ed=" ",td=" ",rd="~",od=" ` ",sd=3,ld=4;function cd(ud,gd,_d){var yd=this,Ed=yd.options.gfm,Td=gd.length+1,Od=0,Ad=" ",Nd,kd,Id,Rd,Md,Ld,jd,Pd,Fd,Ud,Vd,qd,Wd;if(Ed){for(;Od<Td&&(Id=gd.charAt(Od),!(Id!==td&&Id!==ed));)Ad+=Id,Od++;if(qd=Od,Id=gd.charAt(Od),!(Id!==rd&&Id!==od)){for(Od++,kd=Id,Nd=1,Ad+=Id;Od<Td&&(Id=gd.charAt(Od),Id===kd);)Ad+=Id,Nd++,Od++;if(!(Nd<sd)){for(;Od<Td&&(Id=gd.charAt(Od),!(Id!==td&&Id!==ed));)Ad+=Id,Od++;for(Rd=" ",jd=" ";Od<Td&&(Id=gd.charAt(Od),!(Id===Ja||kd===od&&Id===kd));)Id===td||Id===ed?jd+=Id:(Rd+=jd+Id,jd=" "),Od++;if(Id=gd.charAt(Od),!(Id&&Id!==Ja)){if(_d)return!0;Wd=ud.now(),Wd.column+=Ad.length,Wd.offset+=Ad.length,Ad+=Rd,Rd=yd.decode.raw(yd.unescape(Rd),Wd),jd&&(Ad+=jd),jd=" ",Ud=" ",Vd=" ",Pd=" ",Fd=" ";for(var zd=!0;Od<Td;){if(Id=gd.charAt(Od),Pd+=Ud,Fd+=Vd,Ud=" ",Vd=" ",Id!==Ja){Pd+=Id,Vd+=Id,Od++;continue}for(zd?(Ad+=Id,zd=!1):(Ud+=Id,Vd+=Id),jd=" ",Od++;Od<Td&&(Id=gd.charAt(Od),Id===td);)jd+=Id,Od++;if(Ud+=jd,Vd+=jd.slice(qd),!(jd.length>=ld)){for(jd=" ";Od<Td&&(Id=gd.charAt(Od),Id===kd);)jd+=Id,Od++;if(Ud+=jd,Vd+=jd,!(jd.length<Nd)){for(jd=" ";Od<Td&&(Id=gd.charAt(Od),!(Id!==td&&Id!==ed));)Ud+=Id,Vd+=Id,Od++;if(!Id||Id===Ja)break}}}for(Ad+=Pd+Ud,Od=-1,Td=Rd.length;++Od<Td;)if(Id=Rd.charAt(Od),Id===td||Id===ed)Md||(Md=Rd.slice(0,Od));else if(Md){Ld=Rd.slice(Od);break}return ud(Ad)({type:" code ",lang:Md||Rd||null,meta:Ld||null,value:Fd})}}}}}}),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,gd){for(var _d=this,yd=_d.offset,Ed=_d.blockTokenizers,Td=_d.interruptBlockquote,Od=cd.now(),Ad=Od.line,Nd=ud.length,kd=[],Id=[],Rd=[],Md,Ld=0,jd,Pd,Fd,Ud,Vd,qd,Wd,zd;Ld<Nd&&(jd=ud.charAt(Ld),!(jd!==od&&jd!==rd));)Ld++;if(ud.charAt(Ld)===sd){if(gd)return!0;for(Ld=0;Ld<Nd;){for(Fd=ud.indexOf(td,Ld),qd=Ld,Wd=!1,Fd===-1&&(Fd=Nd);Ld<Nd&&(jd=ud.charAt(Ld),!(jd!==od&&jd!==rd));)Ld++;if(ud.charAt(Ld)===sd?(Ld++,Wd=!0,ud.charAt(Ld)===od&&Ld++):Ld=qd,Ud=ud.slice(Ld,Fd),!Wd&&!Ja(Ud)){Ld=qd;break}if(!Wd&&(Pd=ud.slice(Ld),ed(Td,Ed,_d,[cd,Pd,!0])))break;Vd=qd===Ld?Ud:ud.slice(qd,Fd),Rd.push(Ld-qd),kd.push(Vd),Id.push(Ud),Ld=Fd+1}for(Ld=-1,Nd=Rd.length,Md=cd(kd.join(td));++Ld<Nd;)yd[Ad]=(yd[Ad]||0)+Rd[Ld],Ad++;return zd=_d.enterBlock(),Id=_d.tokenizeBlock(Id.join(td),Od),zd(),Md({type:"blockquote",children:Id})}}}),xa $ 2=C((Ra,qa)=>{qa.exports=sd;var Ja= `
` ,ed=" ",td=" ",rd="#",od=6;function sd(ld,cd,ud){for(var gd=this,_d=gd.options.pedantic,yd=cd.length+1,Ed=-1,Td=ld.now(),Od="",Ad="",Nd,kd,Id;++Ed<yd;){if(Nd=cd.charAt(Ed),Nd!==td&&Nd!==ed){Ed--;break}Od+=Nd}for(Id=0;++Ed<=yd;){if(Nd=cd.charAt(Ed),Nd!==rd){Ed--;break}Od+=Nd,Id++}if(!(Id>od)&&!(!Id||!_d&&cd.charAt(Ed+1)===rd)){for(yd=cd.length+1,kd="";++Ed<yd;){if(Nd=cd.charAt(Ed),Nd!==td&&Nd!==ed){Ed--;break}kd+=Nd}if(!(!_d&&kd.length===0&&Nd&&Nd!==Ja)){if(ud)return!0;for(Od+=kd,kd="",Ad="";++Ed<yd&&(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(!_d&&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+=Od.length,Td.offset+=Od.length,Od+=Ad+kd,ld(Od)({type:"heading",depth:Id,children:gd.tokenizeInline(Ad,Td)})}}}}),Ba $ 1=C((Ra,qa)=>{qa.exports=cd;var Ja=" ",ed= `
` ,td=" ",rd="*",od="-",sd="_",ld=3;function cd(ud,gd,_d){for(var yd=-1,Ed=gd.length+1,Td="",Od,Ad,Nd,kd;++yd<Ed&&(Od=gd.charAt(yd),!(Od!==Ja&&Od!==td));)Td+=Od;if(!(Od!==rd&&Od!==od&&Od!==sd))for(Ad=Od,Td+=Od,Nd=1,kd="";++yd<Ed;)if(Od=gd.charAt(yd),Od===Ad)Nd++,Td+=kd+Ad,kd="";else if(Od===td)kd+=Od;else return Nd>=ld&&(!Od||Od===ed)?(Td+=kd,_d?!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),gd={},_d,yd=0;ud===Ja||ud===ed;){for(_d=ud===Ja?rd:td,cd+=_d,_d>1&&(cd=Math.floor(cd/_d)*_d);yd<cd;)gd[++yd]=ld;ud=sd.charAt(++ld)}return{indent:cd,stops:gd}}}),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 gd=cd.split(rd),_d=gd.length+1,yd=1/0,Ed=[],Td,Od,Ad;for(gd.unshift(ed(od,ud)+sd);_d--;)if(Od=td(gd[_d]),Ed[_d]=Od.stops,Ja(gd[_d]).length!==0)if(Od.indent)Od.indent>0&&Od.indent<yd&&(yd=Od.indent);else{yd=1/0;break}if(yd!==1/0)for(_d=gd.length;_d--;){for(Ad=Ed[_d],Td=yd;Td&&!(Td in Ad);)Td--;gd[_d]=gd[_d].slice(Ad[Td]+1)}return gd.shift(),gd.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=jd;var ld="*",cd="_",ud="+",gd="-",_d=".",yd=" ",Ed= `
` ,Td=" ",Od=")",Ad="x",Nd=4,kd=/ \n \n (?! \s * $ )/,Id=/^ \[ ([ X \t x])][ \t ]/,Rd=/^([ \t ]*)([*+-]| \d +[.)])( {1,4}(?! )| | \t | $ |(?= \n ))([^ \n ]*)/,Md=/^([ \t ]*)([*+-]| \d +[.)])([ \t ]+)/,Ld=/^( {1,4}| \t )?/gm;function jd(Vd,qd,Wd){for(var zd=this,Kd=zd.options.commonmark,Qd=zd.options.pedantic,hf=zd.blockTokenizers,gf=zd.interruptList,bf=0,kf=qd.length,Cf=null,Ef,yf,Mf,Af,Zd,mf,Pf,Ff,Lf,jf,xf,Nf,Bf,Tf,wf,Of, $ f,Wf,Kf,Df=!1,qf,Xf,hh,Mh;bf<kf&&(Af=qd.charAt(bf),!(Af!==Td&&Af!==yd));)bf++;if(Af=qd.charAt(bf),Af===ld||Af===ud||Af===gd)Zd=Af,Mf=!1;else{for(Mf=!0,yf="";bf<kf&&(Af=qd.charAt(bf),!!td(Af));)yf+=Af,bf++;if(Af=qd.charAt(bf),!yf||!(Af===_d||Kd&&Af===Od)||Wd&&yf!=="1")return;Cf=parseInt(yf,10),Zd=Af}if(Af=qd.charAt(++bf),!(Af!==yd&&Af!==Td&&(Qd||Af!==Ed&&Af!==""))){if(Wd)return!0;for(bf=0,Tf=[],wf=[],Of=[];bf<kf;){for(mf=qd.indexOf(Ed,bf),Pf=bf,Ff=!1,Mh=!1,mf===-1&&(mf=kf),Ef=0;bf<kf;){if(Af=qd.charAt(bf),Af===Td)Ef+=Nd-Ef%Nd;else if(Af===yd)Ef++;else break;bf++}if( $ f&&Ef>= $ f.indent&&(Mh=!0),Af=qd.charAt(bf),Lf=null,!Mh){if(Af===ld||Af===ud||Af===gd)Lf=Af,bf++,Ef++;else{for(yf="";bf<kf&&(Af=qd.charAt(bf),!!td(Af));)yf+=Af,bf++;Af=qd.charAt(bf),bf++,yf&&(Af===_d||Kd&&Af===Od)&&(Lf=Af,Ef+=yf.length+1)}if(Lf)if(Af=qd.charAt(bf),Af===Td)Ef+=Nd-Ef%Nd,bf++;else if(Af===yd){for(hh=bf+Nd;bf<hh&&qd.charAt(bf)===yd;)bf++,Ef++;bf===hh&&qd.charAt(bf)===yd&&(bf-=Nd-1,Ef-=Nd-1)}else Af!==Ed&&Af!==""&&(Lf=null)}if(Lf){if(!Qd&&Zd!==Lf)break;Ff=!0}else!Kd&&!Mh&&qd.charAt(Pf)===yd?Mh=!0:Kd&& $ f&&(Mh=Ef>= $ f.indent||Ef>Nd),Ff=!1,bf=Pf;if(xf=qd.slice(Pf,mf),jf=Pf===bf?xf:qd.slice(bf,mf),(Lf===ld||Lf===cd||Lf===gd)&&hf.thematicBreak.call(zd,Vd,xf,!0))break;if(Nf=Bf,Bf=!Ff&&!Ja(jf).length,Mh&& $ f) $ f.value= $ f.value.concat(Of,xf),wf=wf.concat(Of,xf),Of=[];else if(Ff)Of.length!==0&&(Df=!0, $ f.value.push(""), $ f.trail=Of.concat()), $ f={value:[xf],indent:Ef,trail:[]},Tf.push( $ f),wf=wf.concat(Of,xf),Of=[];else if(Bf){if(Nf&&!Kd)break;Of.push(xf)}else{if(Nf||sd(gf,hf,zd,[Vd,xf,!0]))break; $ f.value= $ f.value.concat(Of,xf),wf=wf.concat(Of,xf),Of=[]}bf=mf+1}for(qf=Vd(wf.join(Ed)).reset({type:"list",ordered:Mf,start:Cf,spread:Df,children:[]}),Wf=zd.enterList(),Kf=zd.enterBlock(),bf=-1,kf=Tf.length;++bf<kf;) $ f=Tf[bf].value.join(Ed),Xf=Vd.now(),Vd( $ f)(Pd(zd, $ f,Xf),qf), $ f=Tf[bf].trail.join(Ed),bf!==kf-1&&( $ f+=Ed),Vd( $ f);return Wf(),Kf(),qf}}function Pd(Vd,qd,Wd){var zd=Vd.offset,Kd=Vd.options.pedantic?Fd:Ud,Qd=null,hf,gf;return qd=Kd.apply(null,arguments),Vd.options.gfm&&(hf=qd.match(Id),hf&&(gf=hf[0].length,Qd=hf[1].toLowerCase()===Ad,zd[Wd.line]+=gf,qd=qd.slice(gf))),{type:"listItem",spread:kd.test(qd),checked:Qd,children:Vd.tokenizeBlock(qd,Wd)}}function Fd(Vd,qd,Wd){var zd=Vd.offset,Kd=Wd.line;return qd=qd.replace(Md,Qd),Kd=Wd.line,qd.replace(Ld,Qd);function Qd(hf){return zd[Kd]=(zd[Kd]||0)+hf.length,Kd++,""}}function Ud(Vd,qd,Wd){var zd=Vd.offset,Kd=Wd.line,Qd,hf,gf,bf,kf,Cf,Ef;for(qd=qd.replace(Rd,yf),bf=qd.split(Ed),kf=od(qd,rd(Qd).indent).split(Ed),kf[0]=gf,zd[Kd]=(zd[Kd]||0)+hf.length,Kd++,Cf=0,Ef=bf.length;++Cf<Ef;)zd[Kd]=(zd[Kd]||0)+bf[Cf].length-kf[Cf].length,Kd++;return kf.join(Ed);function yf(Mf,Af,Zd,mf,Pf){return hf=Af+Zd+mf,gf=Pf,Number(Zd)<10&&hf.length%2===1&&(Zd=yd+Zd),Qd=Af+ed(yd,Zd.length)+mf,Qd+gf}}}),Ga $ 2=C((Ra,qa)=>{qa.exports=ud;var Ja= `
` ,ed=" ",td=" ",rd="=",od="-",sd=3,ld=1,cd=2;function ud(gd,_d,yd){for(var Ed=this,Td=gd.now(),Od=_d.length,Ad=-1,Nd="",kd,Id,Rd,Md,Ld;++Ad<Od;){if(Rd=_d.charAt(Ad),Rd!==td||Ad>=sd){Ad--;break}Nd+=Rd}for(kd="",Id="";++Ad<Od;){if(Rd=_d.charAt(Ad),Rd===Ja){Ad--;break}Rd===td||Rd===ed?Id+=Rd:(kd+=Id+Rd,Id="")}if(Td.column+=Nd.length,Td.offset+=Nd.length,Nd+=kd+Id,Rd=_d.charAt(++Ad),Md=_d.charAt(++Ad),!(Rd!==Ja||Md!==rd&&Md!==od)){for(Nd+=Rd,Id=Md,Ld=Md===rd?ld:cd;++Ad<Od;){if(Rd=_d.charAt(Ad),Rd!==Md){if(Rd!==Ja)return;Ad--;break}Id+=Rd}return yd?!0:gd(Nd+Id)({type:"heading",depth:Ld,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=" < [ ? ] . * ? [ ? ] > ",gd=" < ! [ A - Za - z ] + \ \ s + [ ^ > ] * > ",_d=" < ! \ \ [ CDATA \ \ [ [ \ \ s \ \ S ] * ? \ \ ] \ \ ] > ";Ra.openCloseTag=new RegExp(" ^ ( ? : "+sd+" | "+ld+" ) "),Ra.tag=new RegExp(" ^ ( ? : "+sd+" | "+ld+" | "+cd+" | "+ud+" | "+gd+" | "+_d+" ) ")}),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=/-->/,gd=/^< \? /,_d=/ \? >/,yd=/^<![A-Za-z]/,Ed=/>/,Td=/^<! \[ CDATA \[ /,Od=/]]>/,Ad=/^ $ /,Nd=new RegExp(Ja.source+" \\ s* $ ");function kd(Id,Rd,Md){for(var Ld=this,jd=Ld.options.blocks.join("|"),Pd=new RegExp("^</?("+jd+")(?=( \\ s|/?>| $ ))","i"),Fd=Rd.length,Ud=0,Vd,qd,Wd,zd,Kd,Qd,hf,gf=[[sd,ld,!0],[cd,ud,!0],[gd,_d,!0],[yd,Ed,!0],[Td,Od,!0],[Pd,Ad,!0],[Nd,Ad,!1]];Ud<Fd&&(zd=Rd.charAt(Ud),!(zd!==ed&&zd!==td));)Ud++;if(Rd.charAt(Ud)===od){for(Vd=Rd.indexOf(rd,Ud+1),Vd=Vd===-1?Fd:Vd,qd=Rd.slice(Ud,Vd),Wd=-1,Kd=gf.length;++Wd<Kd;)if(gf[Wd][0].test(qd)){Qd=gf[Wd];break}if(Qd){if(Md)return Qd[2];if(Ud=Vd,!Qd[1].test(qd))for(;Ud<Fd;){if(Vd=Rd.indexOf(rd,Ud+1),Vd=Vd===-1?Fd:Vd,qd=Rd.slice(Ud+1,Vd),Qd[1].test(qd)){qd&&(Ud=Vd);break}Ud=Vd}return hf=Rd.slice(0,Ud),Id(hf)({type:"html",value:hf})}}}}),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="[",gd="]",_d="(",yd=")",Ed=":",Td="<",Od=">";function Ad(Id,Rd,Md){for(var Ld=this,jd=Ld.options.commonmark,Pd=0,Fd=Rd.length,Ud="",Vd,qd,Wd,zd,Kd,Qd,hf,gf;Pd<Fd&&(zd=Rd.charAt(Pd),!(zd!==cd&&zd!==ld));)Ud+=zd,Pd++;if(zd=Rd.charAt(Pd),zd===ud){for(Pd++,Ud+=zd,Wd="";Pd<Fd&&(zd=Rd.charAt(Pd),zd!==gd);)zd===od&&(Wd+=zd,Pd++,zd=Rd.charAt(Pd)),Wd+=zd,Pd++;if(!(!Wd||Rd.charAt(Pd)!==gd||Rd.charAt(Pd+1)!==Ed)){for(Qd=Wd,Ud+=Wd+gd+Ed,Pd=Ud.length,Wd="";Pd<Fd&&(zd=Rd.charAt(Pd),!(zd!==ld&&zd!==cd&&zd!==sd));)Ud+=zd,Pd++;if(zd=Rd.charAt(Pd),Wd="",Vd=Ud,zd===Td){for(Pd++;Pd<Fd&&(zd=Rd.charAt(Pd),!!Nd(zd));)Wd+=zd,Pd++;if(zd=Rd.charAt(Pd),zd===Nd.delimiter)Ud+=Td+Wd+zd,Pd++;else{if(jd)return;Pd-=Wd.length+1,Wd=""}}if(!Wd){for(;Pd<Fd&&(zd=Rd.charAt(Pd),!!kd(zd));)Wd+=zd,Pd++;Ud+=Wd}if(Wd){for(hf=Wd,Wd="";Pd<Fd&&(zd=Rd.charAt(Pd),!(zd!==ld&&zd!==cd&&zd!==sd));)Wd+=zd,Pd++;if(zd=Rd.charAt(Pd),Kd=null,zd===td?Kd=td:zd===rd?Kd=rd:zd===_d&&(Kd=yd),!Kd)Wd="",Pd=Ud.length;else if(Wd){for(Ud+=Wd+zd,Pd=Ud.length,Wd="";Pd<Fd&&(zd=Rd.charAt(Pd),zd!==Kd);){if(zd===sd){if(Pd++,zd=Rd.charAt(Pd),zd===sd||zd===Kd)return;Wd+=sd}Wd+=zd,Pd++}if(zd=Rd.charAt(Pd),zd!==Kd)return;qd=Ud,Ud+=Wd+zd,Pd++,gf=Wd,Wd=""}else return;for(;Pd<Fd&&(zd=Rd.charAt(Pd),!(zd!==ld&&zd!==cd));)Ud+=zd,Pd++;if(zd=Rd.charAt(Pd),!zd||zd===sd)return Md?!0:(Vd=Id(Vd).test().end,hf=Ld.decode.raw(Ld.unescape(hf),Vd,{nonTerminated:!1}),gf&&(qd=Id(qd).test().end,gf=Ld.decode.raw(Ld.unescape(gf),qd)),Id(Ud)({type:"definition",identifier:ed(Qd),label:Qd,title:gf||null,url:hf}))}}}}function Nd(Id){return Id!==Od&&Id!==ud&&Id!==gd}Nd.delimiter=Od;function kd(Id){return Id!==ud&&Id!==gd&&!Ja(Id)}}),oo $ 3=C((Ra,qa)=>{var Ja=ue $ 1();qa.exports=Td;var ed=" ",td= `
` ,rd=" ",od="-",sd=":",ld=" \\ ",cd="|",ud=1,gd=2,_d="left",yd="center",Ed="right";function Td(Od,Ad,Nd){var kd=this,Id,Rd,Md,Ld,jd,Pd,Fd,Ud,Vd,qd,Wd,zd,Kd,Qd,hf,gf,bf,kf,Cf,Ef,yf,Mf;if(kd.options.gfm){for(Id=0,gf=0,Pd=Ad.length+1,Fd=[];Id<Pd;){if(Ef=Ad.indexOf(td,Id),yf=Ad.indexOf(cd,Id+1),Ef===-1&&(Ef=Ad.length),yf===-1||yf>Ef){if(gf<gd)return;break}Fd.push(Ad.slice(Id,Ef)),gf++,Id=Ef+1}for(Ld=Fd.join(td),Rd=Fd.splice(1,1)[0]||[],Id=0,Pd=Rd.length,gf--,Md=!1,Wd=[];Id<Pd;){if(Vd=Rd.charAt(Id),Vd===cd){if(qd=null,Md===!1){if(Mf===!1)return}else Wd.push(Md),Md=!1;Mf=!1}else if(Vd===od)qd=!0,Md=Md||null;else if(Vd===sd)Md===_d?Md=yd:qd&&Md===null?Md=Ed:Md=_d;else if(!Ja(Vd))return;Id++}if(Md!==!1&&Wd.push(Md),!(Wd.length<ud)){if(Nd)return!0;for(hf=-1,kf=[],Cf=Od(Ld).reset({type:"table",align:Wd,children:kf});++hf<gf;){for(bf=Fd[hf],jd={type:"tableRow",children:[]},hf&&Od(td),Od(bf).reset(jd,Cf),Pd=bf.length+1,Id=0,Ud="",zd="",Kd=!0;Id<Pd;){if(Vd=bf.charAt(Id),Vd===ed||Vd===rd){zd?Ud+=Vd:Od(Vd),Id++;continue}Vd===""||Vd===cd?Kd?Od(Vd):((zd||Vd)&&!Kd&&(Ld=zd,Ud.length>1&&(Vd?(Ld+=Ud.slice(0,-1),Ud=Ud.charAt(Ud.length-1)):(Ld+=Ud,Ud="")),Qd=Od.now(),Od(Ld)({type:"tableCell",children:kd.tokenizeInline(zd,Qd)},jd)),Od(Ud+Vd),Ud="",zd=""):(Ud&&(zd+=Ud,Ud=""),zd+=Vd,Vd===ld&&Id!==Pd-2&&(zd+=bf.charAt(Id+1),Id++)),Kd=!1,Id++}hf||Od(td+Rd)}return Cf}}}}),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,gd,_d){for(var yd=this,Ed=yd.options,Td=Ed.commonmark,Od=yd.blockTokenizers,Ad=yd.interruptParagraph,Nd=gd.indexOf(od),kd=gd.length,Id,Rd,Md,Ld,jd;Nd<kd;){if(Nd===-1){Nd=kd;break}if(gd.charAt(Nd+1)===od)break;if(Td){for(Ld=0,Id=Nd+1;Id<kd;){if(Md=gd.charAt(Id),Md===rd){Ld=ld;break}else if(Md===sd)Ld++;else break;Id++}if(Ld>=ld&&Md!==od){Nd=gd.indexOf(od,Nd+1);continue}}if(Rd=gd.slice(Nd+1),td(Ad,Od,yd,[ud,Rd,!0]))break;if(Id=Nd,Nd=gd.indexOf(od,Nd+1),Nd!==-1&&Ja(gd.slice(Id,Nd))===""){Nd=Id;break}}return Rd=gd.slice(0,Nd),_d?!0:(jd=ud.now(),Rd=ed(Rd),ud(Rd)({type:"paragraph",children:yd.tokenizeInline(Rd,jd)}))}}),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,gd;if(sd.charAt(0)===td&&(ud=sd.charAt(1),cd.escape.indexOf(ud)!==-1))return ld?!0:(ud===ed?gd={type:"break"}:gd={type:"text",value:ud},od(td+ud)(gd))}}),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=gd,gd.locator=td,gd.notInLink=!0;var rd="<",od=">",sd="@",ld="/",cd="mailto:",ud=cd.length;function gd(_d,yd,Ed){var Td=this,Od="",Ad=yd.length,Nd=0,kd="",Id=!1,Rd="",Md,Ld,jd,Pd,Fd;if(yd.charAt(0)===rd){for(Nd++,Od=rd;Nd<Ad&&(Md=yd.charAt(Nd),!(Ja(Md)||Md===od||Md===sd||Md===":"&&yd.charAt(Nd+1)===ld));)kd+=Md,Nd++;if(kd){if(Rd+=kd,kd="",Md=yd.charAt(Nd),Rd+=Md,Nd++,Md===sd)Id=!0;else{if(Md!==":"||yd.charAt(Nd+1)!==ld)return;Rd+=ld,Nd++}for(;Nd<Ad&&(Md=yd.charAt(Nd),!(Ja(Md)||Md===od));)kd+=Md,Nd++;if(Md=yd.charAt(Nd),!(!kd||Md!==od))return Ed?!0:(Rd+=kd,jd=Rd,Od+=Rd+Md,Ld=_d.now(),Ld.column++,Ld.offset++,Id&&(Rd.slice(0,ud).toLowerCase()===cd?(jd=jd.slice(ud),Ld.column+=ud,Ld.offset+=ud):Rd=cd+Rd),Pd=Td.inlineTokenizers,Td.inlineTokenizers={text:Pd.text},Fd=Td.enterLink(),jd=Td.tokenizeInline(jd,Ld),Td.inlineTokenizers=Pd,Fd(),_d(Od)({type:"link",title:null,url:ed(Rd,{nonTerminated:!1}),children:jd}))}}}}),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=Ld,Ld.locator=sd,Ld.notInLink=!0;var ld=33,cd=38,ud=41,gd=42,_d=44,yd=45,Ed=46,Td=58,Od=59,Ad=63,Nd=60,kd=95,Id=126,Rd="(",Md=")";function Ld(jd,Pd,Fd){var Ud=this,Vd=Ud.options.gfm,qd=Ud.inlineTokenizers,Wd=Pd.length,zd=-1,Kd=!1,Qd,hf,gf,bf,kf,Cf,Ef,yf,Mf,Af,Zd,mf,Pf,Ff;if(Vd){if(Pd.slice(0,4)==="www.")Kd=!0,bf=4;else if(Pd.slice(0,7).toLowerCase()==="http://")bf=7;else if(Pd.slice(0,8).toLowerCase()==="https://")bf=8;else return;for(zd=bf-1,gf=bf,Qd=[];bf<Wd;){if(Ef=Pd.charCodeAt(bf),Ef===Ed){if(zd===bf-1)break;Qd.push(bf),zd=bf,bf++;continue}if(td(Ef)||rd(Ef)||Ef===yd||Ef===kd){bf++;continue}break}if(Ef===Ed&&(Qd.pop(),bf--),Qd[0]!==void 0&&(hf=Qd.length<2?gf:Qd[Qd.length-2]+1,Pd.slice(hf,bf).indexOf("_")===-1)){if(Fd)return!0;for(yf=bf,kf=bf;bf<Wd&&(Ef=Pd.charCodeAt(bf),!(od(Ef)||Ef===Nd));)bf++,Ef===ld||Ef===gd||Ef===_d||Ef===Ed||Ef===Td||Ef===Ad||Ef===kd||Ef===Id||(yf=bf);if(bf=yf,Pd.charCodeAt(bf-1)===ud)for(Cf=Pd.slice(kf,bf),Mf=Ja(Cf,Rd),Af=Ja(Cf,Md);Af>Mf;)bf=kf+Cf.lastIndexOf(Md),Cf=Pd.slice(kf,bf),Af--;if(Pd.charCodeAt(bf-1)===Od&&(bf--,rd(Pd.charCodeAt(bf-1)))){for(yf=bf-2;rd(Pd.charCodeAt(yf));)yf--;Pd.charCodeAt(yf)===cd&&(bf=yf)}return Zd=Pd.slice(0,bf),Pf=ed(Zd,{nonTerminated:!1}),Kd&&(Pf="http://"+Pf),Ff=Ud.enterLink(),Ud.inlineTokenizers={text:qd.text},mf=Ud.tokenizeInline(Zd,jd.now()),Ud.inlineTokenizers=qd,Ff(),jd(Zd)({type:"link",title:null,url:Pf,children:mf})}}}}),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,gd){var _d=this,yd,Ed;if(!this.options.gfm||(yd=ud.indexOf("@",gd),yd===-1))return-1;if(Ed=yd,Ed===gd||!cd(ud.charCodeAt(Ed-1)))return ld.call(_d,ud,yd+1);for(;Ed>gd&&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=gd,gd.locator=rd,gd.notInLink=!0;var od=43,sd=45,ld=46,cd=64,ud=95;function gd(_d,yd,Ed){var Td=this,Od=Td.options.gfm,Ad=Td.inlineTokenizers,Nd=0,kd=yd.length,Id=-1,Rd,Md,Ld,jd;if(Od){for(Rd=yd.charCodeAt(Nd);ed(Rd)||td(Rd)||Rd===od||Rd===sd||Rd===ld||Rd===ud;)Rd=yd.charCodeAt(++Nd);if(Nd!==0&&Rd===cd){for(Nd++;Nd<kd;){if(Rd=yd.charCodeAt(Nd),ed(Rd)||td(Rd)||Rd===sd||Rd===ld||Rd===ud){Nd++,Id===-1&&Rd===ld&&(Id=Nd)
` ,rd="!",od='"',sd="'",ld="(",cd=")",ud="<",gd=">",_d="[",yd=" \\ ",Ed="]",Td=" ` ";function Od(Ad,Nd,kd){var Id=this,Rd=" ",Md=0,Ld=Nd.charAt(0),jd=Id.options.pedantic,Pd=Id.options.commonmark,Fd=Id.options.gfm,Ud,Vd,qd,Wd,zd,Kd,Qd,hf,gf,bf,kf,Cf,Ef,yf,Mf,Af,Zd,mf;if(Ld===rd&&(hf=!0,Rd=Ld,Ld=Nd.charAt(++Md)),Ld===_d&&!(!hf&&Id.inLink)){for(Rd+=Ld,yf=" ",Md++,kf=Nd.length,Af=Ad.now(),Ef=0,Af.column+=Md,Af.offset+=Md;Md<kf;){if(Ld=Nd.charAt(Md),Kd=Ld,Ld===Td){for(Vd=1;Nd.charAt(Md+1)===Td;)Kd+=Ld,Md++,Vd++;qd?Vd>=qd&&(qd=0):qd=Vd}else if(Ld===yd)Md++,Kd+=Nd.charAt(Md);else if((!qd||Fd)&&Ld===_d)Ef++;else if((!qd||Fd)&&Ld===Ed)if(Ef)Ef--;else{if(Nd.charAt(Md+1)!==ld)return;Kd+=ld,Ud=!0,Md++;break}yf+=Kd,Kd=" ",Md++}if(Ud){for(gf=yf,Rd+=yf+Kd,Md++;Md<kf&&(Ld=Nd.charAt(Md),!!Ja(Ld));)Rd+=Ld,Md++;if(Ld=Nd.charAt(Md),yf=" ",Wd=Rd,Ld===ud){for(Md++,Wd+=ud;Md<kf&&(Ld=Nd.charAt(Md),Ld!==gd);){if(Pd&&Ld===td)return;yf+=Ld,Md++}if(Nd.charAt(Md)!==gd)return;Rd+=ud+yf+gd,Mf=yf,Md++}else{for(Ld=null,Kd=" ";Md<kf&&(Ld=Nd.charAt(Md),!(Kd&&(Ld===od||Ld===sd||Pd&&Ld===ld)));){if(Ja(Ld)){if(!jd)break;Kd+=Ld}else{if(Ld===ld)Ef++;else if(Ld===cd){if(Ef===0)break;Ef--}yf+=Kd,Kd=" ",Ld===yd&&(yf+=yd,Ld=Nd.charAt(++Md)),yf+=Ld}Md++}Rd+=yf,Mf=yf,Md=Rd.length}for(yf=" ";Md<kf&&(Ld=Nd.charAt(Md),!!Ja(Ld));)yf+=Ld,Md++;if(Ld=Nd.charAt(Md),Rd+=yf,yf&&(Ld===od||Ld===sd||Pd&&Ld===ld))if(Md++,Rd+=Ld,yf=" ",bf=Ld===ld?cd:Ld,zd=Rd,Pd){for(;Md<kf&&(Ld=Nd.charAt(Md),Ld!==bf);)Ld===yd&&(yf+=yd,Ld=Nd.charAt(++Md)),Md++,yf+=Ld;if(Ld=Nd.charAt(Md),Ld!==bf)return;for(Cf=yf,Rd+=yf+Ld,Md++;Md<kf&&(Ld=Nd.charAt(Md),!!Ja(Ld));)Rd+=Ld,Md++}else for(Kd=" ";Md<kf;){if(Ld=Nd.charAt(Md),Ld===bf)Qd&&(yf+=bf+Kd,Kd=" "),Qd=!0;else if(!Qd)yf+=Ld;else if(Ld===cd){Rd+=yf+bf+Kd,Cf=yf;break}else Ja(Ld)?Kd+=Ld:(yf+=bf+Kd+Ld,Kd=" ",Qd=!1);Md++}if(Nd.charAt(Md)===cd)return kd?!0:(Rd+=cd,Mf=Id.decode.raw(Id.unescape(Mf),Ad(Wd).test().end,{nonTerminated:!1}),Cf&&(zd=Ad(zd).test().end,Cf=Id.decode.raw(Id.unescape(Cf),zd)),mf={type:hf?" image ":" link ",title:Cf||null,url:Mf},hf?mf.alt=Id.decode.raw(Id.unescape(gf),Af)||null:(Zd=Id.enterLink(),mf.children=Id.tokenizeInline(gf,Af),Zd()),Ad(Rd)(mf))}}}}),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=" ! ",gd=" [ ",_d=" \ \ ",yd=" ] ";function Ed(Td,Od,Ad){var Nd=this,kd=Nd.options.commonmark,Id=Od.charAt(0),Rd=0,Md=Od.length,Ld=" ",jd=" ",Pd=rd,Fd=sd,Ud,Vd,qd,Wd,zd,Kd,Qd,hf;if(Id===ud&&(Pd=od,jd=Id,Id=Od.charAt(++Rd)),Id===gd){for(Rd++,jd+=Id,Kd=" ",hf=0;Rd<Md;){if(Id=Od.charAt(Rd),Id===gd)Qd=!0,hf++;else if(Id===yd){if(!hf)break;hf--}Id===_d&&(Kd+=_d,Id=Od.charAt(++Rd)),Kd+=Id,Rd++}if(Ld=Kd,Ud=Kd,Id=Od.charAt(Rd),Id===yd){if(Rd++,Ld+=Id,Kd=" ",!kd)for(;Rd<Md&&(Id=Od.charAt(Rd),!!Ja(Id));)Kd+=Id,Rd++;if(Id=Od.charAt(Rd),Id===gd){for(Vd=" ",Kd+=Id,Rd++;Rd<Md&&(Id=Od.charAt(Rd),!(Id===gd||Id===yd));)Id===_d&&(Vd+=_d,Id=Od.charAt(++Rd)),Vd+=Id,Rd++;Id=Od.charAt(Rd),Id===yd?(Fd=Vd?cd:ld,Kd+=Vd+Id,Rd++):Vd=" ",Ld+=Kd,Kd=" "}else{if(!Ud)return;Vd=Ud}if(!(Fd!==cd&&Qd))return Ld=jd+Ld,Pd===rd&&Nd.inLink?null:Ad?!0:(qd=Td.now(),qd.column+=jd.length,qd.offset+=jd.length,Vd=Fd===cd?Vd:Ud,Wd={type:Pd+" Reference ",identifier:td(Vd),label:Vd,referenceType:Fd},Pd===rd?(zd=Nd.enterLink(),Wd.children=Nd.tokenizeInline(Ud,qd),zd()):Wd.alt=Nd.decode.raw(Nd.unescape(Ud),qd)||null,Td(Ld)(Wd))}}}}),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,gd){var _d=this,yd=0,Ed=ud.charAt(yd),Td,Od,Ad,Nd,kd,Id,Rd;if(!(Ed!==od&&Ed!==sd||ud.charAt(++yd)!==Ed)&&(Od=_d.options.pedantic,Ad=Ed,kd=Ad+Ad,Id=ud.length,yd++,Nd=" ",Ed=" ",!(Od&&ed(ud.charAt(yd)))))for(;yd<Id;){if(Rd=Ed,Ed=ud.charAt(yd),Ed===Ad&&ud.charAt(yd+1)===Ad&&(!Od||!ed(Rd))&&(Ed=ud.charAt(yd+2),Ed!==Ad))return Ja(Nd)?gd?!0:(Td=cd.now(),Td.column+=2,Td.offset+=2,cd(kd+Nd+kd)({type:" strong " , children : _d . tokenizeInline ( Nd , Td ) } ) ) : void
` ,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= `
` ,rd=2;function od(sd,ld,cd){for(var ud=ld.length,gd=-1,_d="",yd;++gd<ud;){if(yd=ld.charAt(gd),yd===td)return gd<rd?void 0:cd?!0:(_d+=yd,sd(_d)({type:"break"}));if(yd!==ed)return;_d+=yd}}}),Ls $ 3=C((Ra,qa)=>{qa.exports=Ja;function Ja(ed,td,rd){var od=this,sd,ld,cd,ud,gd,_d,yd,Ed,Td,Od;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])&&(yd=ld[Ed].locator,yd||ed.file.fail("Missing locator: ` "+Ed+" ` "),_d=yd.call(od,td,1),_d!==-1&&_d<Td&&(Td=_d));gd=td.slice(0,Td),Od=ed.now(),od.decode(gd,Od,Ad);function Ad(Nd,kd,Id){ed(Id||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(gd,_d){this.file=_d,this.offset={},this.options=Ja(this.options),this.setOptions({}),this.inList=!1,this.inBlock=!1,this.inLink=!1,this.atStart=!0,this.toOffset=td(_d).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(gd){var _d=[],yd;for(yd in gd)_d.push(yd);return _d}}),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 gd=Ja.call(ud,"constructor"),_d=ud.constructor&&ud.constructor.prototype&&Ja.call(ud.constructor.prototype,"isPrototypeOf");if(ud.constructor&&!gd&&!_d)return!1;var yd;for(yd in ud);return typeof yd>"u"||Ja.call(ud,yd)},ld=function(ud,gd){td&&gd.name==="__proto__"?td(ud,gd.name,{enumerable:!0,configurable:!0,value:gd.newValue,writable:!0}):ud[gd.name]=gd.newValue},cd=function(ud,gd){if(gd==="__proto__")if(Ja.call(ud,gd)){if(rd)return rd(ud,gd).value}else return;return ud[gd]};qa.exports=function ud(){var gd,_d,yd,Ed,Td,Od,Ad=arguments[0],Nd=1,kd=arguments.length,Id=!1;for(typeof Ad=="boolean"&&(Id=Ad,Ad=arguments[1]||{},Nd=2),(Ad==null||typeof Ad!="object"&&typeof Ad!="function")&&(Ad={});Nd<kd;++Nd)if(gd=arguments[Nd],gd!=null)for(_d in gd)yd=cd(Ad,_d),Ed=cd(gd,_d),Ad!==Ed&&(Id&&Ed&&(sd(Ed)||(Td=od(Ed)))?(Td?(Td=!1,Od=yd&&od(yd)?yd:[]):Od=yd&&sd(yd)?yd:{},ld(Ad,{name:_d,newValue:ud(Id,Od,Ed)})):typeof Ed<"u"&&ld(Ad,{name:_d,newV
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}' .
Expected it to be $ { ed } . ` }var Dt $ 3=class extends Error{constructor(Ja){super(fl $ 2(Ja));t1(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 ] ) } . ` );t1(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( `
` ,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 `
` }}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
` ?N $ 2(!1,Ed, `
` ,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:_d,mode:yd,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(_d,qa),mode:yd,doc:Ed.contents});break;case re $ 3:od.push({ind:Il $ 3(_d,Ed.n,qa),mode:yd,doc:Ed.contents});break;case oe $ 2:rd-=vt $ 2(sd);break;case K $ 2:switch(yd){case ne $ 2:if(!ld){od.push({ind:_d,mode:Ed.break?G $ 2:ne $ 2,doc:Ed.contents});break}case G $ 2:{ld=!1;let Td={ind:_d,mode:ne $ 2,doc:Ed.contents},Od=ed-rd,Ad=cd.length>0;if(!Ed.break&&Ir $ 2(Td,od,Od,Ad,Ja))od.push(Td);else if(Ed.expandedStates){let Nd=M $ 2(!1,Ed.expandedStates,-1);if(Ed.break){od.push({ind:_d,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:_d,mode:G $ 2,doc:Nd});break}else{let Id=Ed.expandedStates[kd],Rd={ind:_d,mode:ne $ 2,doc:Id};if(Ir $ 2(Rd,od,Od,Ad,Ja)){od.push(Rd);break}}}else od.push({ind:_d,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:Od}=Ed;if(Od.length===0)break;let[Ad,Nd]=Od,kd={ind:_d,mode:ne $ 2,doc:Ad},Id={ind:_d,mode:G $ 2,doc:Ad},Rd=Ir $ 2(kd,[],Td,cd.length>0,Ja,!0);if(Od.length===1){Rd?od.push(kd):od.push(Id);break}let Md={ind:_d,mode:ne $ 2,doc:Nd},Ld={ind:_d,mode:G $ 2,doc:Nd};if(Od.length===2){Rd?od.push(Md,kd):od.push(Ld,Id);break}Od.splice(0,2);let jd={ind:_d,mode:yd,doc:Ee $ 2(Od)},Pd=Od[0];Ir $ 2({ind:_d,mode:ne $ 2,doc:[Ad,Nd,Pd]},[],Td,cd.length>0,Ja,!0)?od.push(jd,Md,kd):Rd?od.push(jd,Ld,kd):od.push(jd,Ld,Id);break}case X $ 1:case se $ 1:{let Td=Ed.groupId?Ja[Ed.groupId]:yd;if(Td===G $ 2){let Od=Ed.type===X $ 1?Ed.breakContents:Ed.negate?Ed.contents:Ze $ 2(Ed.contents);Od&&od.push({ind:_d,mode:yd,doc:Od})}if(Td===ne $ 2){let Od=Ed.type===X $ 1?Ed.flatContents:Ed.negate?Ze $ 2(Ed.contents):Ed.contents;Od&&od.push({ind:_d,mode:yd,doc:Od})}break}case ce $ 2:cd.push({ind:_d,mode:yd,doc:Ed.contents});break;case le $ 2:cd.length>0&&od.push({ind:_d,mode:yd,doc:rr $ 1});break;case W $ 1:switch(yd){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:_d,mode:yd,doc:Ed},...cd.reverse()),cd.length=0;break}Ed.literal?_d.root?(sd.push(td,_d.root.value),rd=_d.root.length):(sd.push(td),rd=0):(rd-=vt $ 2(sd),sd.push(td+_d.value),rd=_d.length);break}break;case fe $ 2:od.push({ind:_d,mode:yd,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 gd=sd.indexOf(cr $ 1);if(gd!==-1){let _d=sd.indexOf(cr $ 1,gd+1),yd=sd.slice(0,gd).join(""),Ed=sd.slice(gd+1,_d).join(""),Td=sd.slice(_d+1).join("");return{formatted:yd+Ed+Td,cursorNodeStart:yd.length,cursorNodeText:Ed}}return{formatted:sd.join("")}}function mi $ 1(Ra,qa,Ja){let{node:ed}=Ra,td=[],rd=Ra.map(()=>Ra.map(({index:gd})=>{let _d=hi $ 2(Ja(),qa).formatted,yd=sr $ 1(_d);return td[gd]=Math.max(td[gd]??3,yd),{text:_d,width:yd}},"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(gd){return Tr $ 2(rr $ 1,[ud(rd[0],gd),cd(gd),...rd.slice(1).map(_d=>ud(_d,gd))].map(_d=> ` | $ { _d . join ( " | " ) } | ` ))}function cd(gd){return td.map((_d,yd)=>{let Ed=ed.align[yd],Td=Ed==="center"||Ed==="left"?":":"-",Od=Ed==="center"||Ed==="right"?":":"-",Ad=gd?"-":"-".repeat(_d-2);return ` $ { Td } $ { Ad } $ { Od } ` })}function ud(gd,_d){return gd.map(({text:yd,width:Ed},Td)=>{if(_d)return yd;let Od=td[Td]-Ed,Ad=ed.align[Td],Nd=0;Ad==="right"?Nd=Od:Ad==="center"&&(Nd=Math.floor(Od/2));let kd=Od-Nd;return ` $ { " " . repeat ( Nd ) } $ { yd } $ { " " . 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
` )return L $ 2;let td=qa===" "||qa=== `
` &&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,gd,_d,yd)=>N $ 2(!1,gd? ` $ { ud } $ { gd } ` : ` $ { _d } $ { yd } ` ,"_",String.raw ` \ _ ` )),sd=(cd,ud,gd)=>cd.type==="sentence"&&gd===0,ld=(cd,ud,gd)=>mt $ 2(cd.children[gd-1]);return od!==rd.value&&(Ra.match(void 0,sd,ld)||Ra.match(void 0,sd,(cd,ud,gd)=>cd.type==="emphasis"&&gd===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=gd(),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 gd(){let _d=rd.ordered?(ld.isFirst?rd.start:sd?1:rd.start+ld.index)+(od%2===0?" . ":" ) "):od%2===0?" - ":" * ";return rd.isAligned||rd.hasIndentedCodeblock?ef(_d,qa):_d}}})}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 (
` )}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= `
` ,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 $ 3=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 $ 3(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(Xd,Hd){if(Xd==null)return{};var Jd={},If=Object.keys(Xd),Qf,_h;for(_h=0;_h<If.length;_h++)Qf=If[_h],!(Hd.indexOf(Qf)>=0)&&(Jd[Qf]=Xd[Qf]);return Jd}var Ja=class{constructor(Xd,Hd,Jd){this.line=void 0,this.column=void 0,this.index=void 0,this.line=Xd,this.column=Hd,this.index=Jd}},ed=class{constructor(Xd,Hd){this.start=void 0,this.end=void 0,this.filename=void 0,this.identifierName=void 0,this.start=Xd,this.end=Hd}};function td(Xd,Hd){let{line:Jd,column:If,index:Qf}=Xd;return new Ja(Jd,If+Hd,Qf+Hd)}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 { ' ${ Xd } ' as ' ${ Hd } ' } from 'some-module' \` ? ` , ExportDefaultFromAsIdentifier : "'from' is not allowed as an identifier after 'export default'." , ForInOfLoopInitializer : ( { type : Xd } ) => ` ' ${ Xd === "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 : Xd } ) => ` Unsyntactic ${ Xd === "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 : Xd } ) => ` A string literal cannot be used as an imported binding.
- Did you mean \ ` import { " ${ Xd } " as foo } \` ? ` , ImportCallArgumentTrailingComma : "Trailing comma is disallowed inside import(...) arguments." , ImportCallArity : ( { maxArgumentCount : Xd } ) => ` \` import() \` requires exactly ${ Xd === 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 : Xd } ) => ` Expected number in radix ${ Xd } . ` , InvalidEscapeSequence : "Bad character escape sequence." , InvalidEscapeSequenceTemplate : "Invalid escape sequence in template." , InvalidEscapedReservedWord : ( { reservedWord : Xd } ) => ` Escape sequence in keyword ${ Xd } . ` , InvalidIdentifier : ( { identifierName : Xd } ) => ` Invalid identifier ${ Xd } . ` , InvalidLhs : ( { ancestor : Xd } ) => ` Invalid left-hand side in ${ ld ( Xd ) } . ` , InvalidLhsBinding : ( { ancestor : Xd } ) => ` Binding invalid left-hand side in ${ ld ( Xd ) } . ` , InvalidLhsOptionalChaining : ( { ancestor : Xd } ) => ` Invalid optional chaining in the left-hand side of ${ ld ( Xd ) } . ` , InvalidNumber : "Invalid number." , InvalidOrMissingExponent : "Floating-point numbers require a valid exponent after the 'e'." , InvalidOrUnexpectedToken : ( { unexpected : Xd } ) => ` Unexpected character ' ${ Xd } '. ` , InvalidParenthesizedAssignment : "Invalid parenthesized assignment pattern." , InvalidPrivateFieldResolution : ( { identifierName : Xd } ) => ` Private name # ${ Xd } 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 : Xd } ) => ` Label ' ${ Xd } ' 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 : Xd } ) => ` This experimental syntax requires enabling the parser plugin: ${ Xd . map ( Hd => JSON . stringify ( Hd ) ) . join ( ", " ) } . ` , MissingOneOfPlugins : ( { missingPlugin : Xd } ) => ` This experimental syntax requires enabling one of the following parser plugin(s): ${ Xd . map ( Hd => JSON . stringify ( Hd ) ) . 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 : Xd } ) => ` Duplicate key " ${ Xd } " is not allowed in module attributes. ` , ModuleExportNameHasLoneSurrogate : ( { surrogateCharCode : Xd } ) => ` An export name cannot include a lone surrogate, found ' \\ u ${ Xd . toString ( 16 ) } '. ` , ModuleExportUndefined : ( { localName : Xd } ) => ` Export ' ${ Xd } ' 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
` ,++Jd,a1===13&&Hd.charCodeAt(Jd)===10&&++Jd,++Qf,Qm=If=Jd):_h.unterminated( $ h,Vh,im):++Jd}return{pos:Jd,str:Qh,firstInvalidLoc: $ m,lineStart:If,curLine:Qf,containsInvalid:!! $ m}}function l1(Xd,Hd,Jd,If){return Xd==="template"?Hd===96||Hd===36&&Jd.charCodeAt(If+1)===123:Hd===(Xd==="double"?34:39)}function y1(Xd,Hd,Jd,If,Qf,_h){let $ h=!Qf;Hd++;let Vh=Qh=>({pos:Hd,ch:Qh,lineStart:Jd,curLine:If}),im=Xd.charCodeAt(Hd++);switch(im){case 110:return Vh( `
` );case 114:return Vh(" \r ");case 120:{let Qh;return{code:Qh,pos:Hd}=c1(Xd,Hd,Jd,If,2,!1, $ h,_h),Vh(Qh===null?null:String.fromCharCode(Qh))}case 117:{let Qh;return{code:Qh,pos:Hd}=C1(Xd,Hd,Jd,If, $ h,_h),Vh(Qh===null?null:String.fromCodePoint(Qh))}case 116:return Vh(" ");case 98:return Vh(" \b ");case 118:return Vh(" \v ");case 102:return Vh(" \f ");case 13:Xd.charCodeAt(Hd)===10&&++Hd;case 10:Jd=Hd,++If;case 8232:case 8233:return Vh("");case 56:case 57:if(Qf)return Vh(null);_h.strictNumericEscape(Hd-1,Jd,If);default:if(im>=48&&im<=55){let Qh=Hd-1, $ m=/^[0-7]+/.exec(Xd.slice(Qh,Hd+2))[0],Qm=parseInt( $ m,8);Qm>255&&( $ m= $ m.slice(0,-1),Qm=parseInt( $ m,8)),Hd+= $ m.length-1;let r1=Xd.charCodeAt(Hd);if( $ m!=="0"||r1===56||r1===57){if(Qf)return Vh(null);_h.strictNumericEscape(Qh,Jd,If)}return Vh(String.fromCharCode(Qm))}return Vh(String.fromCharCode(im))}}function c1(Xd,Hd,Jd,If,Qf,_h, $ h,Vh){let im=Hd,Qh;return{n:Qh,pos:Hd}=Pm(Xd,Hd,Jd,If,16,Qf,_h,!1,Vh,! $ h),Qh===null&&( $ h?Vh.invalidEscapeSequence(im,Jd,If):Hd=im-1),{code:Qh,pos:Hd}}function Pm(Xd,Hd,Jd,If,Qf,_h, $ h,Vh,im,Qh){let $ m=Hd,Qm=Qf===16?fm.hex:fm.decBinOct,r1=Qf===16?uh.hex:Qf===10?uh.dec:Qf===8?uh.oct:uh.bin,a1=!1,D1=0;for(let f0=0,U1=_h??1/0;f0<U1;++f0){let X1=Xd.charCodeAt(Hd),R0;if(X1===95&&Vh!=="bail"){let K_=Xd.charCodeAt(Hd-1),Tv=Xd.charCodeAt(Hd+1);if(Vh){if(Number.isNaN(Tv)||!r1(Tv)||Qm.has(K_)||Qm.has(Tv)){if(Qh)return{n:null,pos:Hd};im.unexpectedNumericSeparator(Hd,Jd,If)}}else{if(Qh)return{n:null,pos:Hd};im.numericSeparatorInEscapeSequence(Hd,Jd,If)}++Hd;continue}if(X1>=97?R0=X1-97+10:X1>=65?R0=X1-65+10:om(X1)?R0=X1-48:R0=1/0,R0>=Qf){if(R0<=9&&Qh)return{n:null,pos:Hd};if(R0<=9&&im.invalidDigit(Hd,Jd,If,Qf))R0=0;else if( $ h)R0=0,a1=!0;else break}++Hd,D1=D1*Qf+R0}return Hd=== $ m||_h!=null&&Hd- $ m!==_h||a1?{n:null,pos:Hd}:{n:D1,pos:Hd}}function C1(Xd,Hd,Jd,If,Qf,_h){let $ h=Xd.charCodeAt(Hd),Vh;if( $ h===123){if(++Hd,{code:Vh,pos:Hd}=c1(Xd,Hd,Jd,If,Xd.indexOf("}",Hd)-Hd,!0,Qf,_h),++Hd,Vh!==null&&Vh>1114111)if(Qf)_h.invalidCodePoint(Hd,Jd,If);else return{code:null,pos:Hd}}else({code:Vh,pos:Hd}=c1(Xd,Hd,Jd,If,4,!1,Qf,_h));return{code:Vh,pos:Hd}}function m1(Xd,Hd,Jd){return new Ja(Jd,Xd-Hd,Xd)}var d1=new Set([103,109,115,105,121,117,100,118]),Ch=class{constructor(Xd){this.type=Xd.type,this.value=Xd.value,this.start=Xd.start,this.end=Xd.end,this.loc=new ed(Xd.startLoc,Xd.endLoc)}},Kh=class extends Dh{constructor(Xd,Hd){super(),this.isLookahead=void 0,this.tokens=[],this.errorHandlers_readInt={invalidDigit:(Jd,If,Qf,_h)=>this.options.errorRecovery?(this.raise(Nd.InvalidDigit,m1(Jd,If,Qf),{radix:_h}),!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:(Jd,If,Qf)=>{this.recordStrictModeErrors(Nd.StrictNumericEscape,m1(Jd,If,Qf))},unterminated:(Jd,If,Qf)=>{throw this.raise(Nd.UnterminatedString,m1(Jd-1,If,Qf))}}),this.errorHandlers_readStringContents_template=Object.assign({},this.errorHandlers_readCodePoint,{strictNumericEscape:this.errorBuilder(Nd.StrictNumericEscape),unterminated:(Jd,If,Qf)=>{throw this.raise(Nd.UnterminatedTemplate,m1(Jd,If,Qf))}}),this.state=new zh,this.state.init(Xd),this.input=Hd,this.length=Hd.length,this.comments=[],this.isLookahead=!1}pushToken(Xd){this.tokens.length=this.state.tokensLength,this.tokens.push(Xd),++this.state.tokensLength}next(){this.checkKeywordEscapes(),this.options.tokens&&this.pushToken(new Ch(this.state)),this.state.lastTokEndLoc=this.state.endLoc,this.state.lastTokStartLoc=this.state.startLoc,this.nextToken()}eat(Xd){return this.match(Xd)?(this.next(),!0):!1}match(Xd){return this.state.type===Xd}createLookaheadState(Xd){return{pos:Xd.pos,value:null,type:Xd.type,start:Xd.start,end:Xd.end,context:[this.curContext
` : ` \ r
` ):If=String.fromCharCode(Jd),++this.state.curLine,this.state.lineStart=this.state.pos,If}jsxReadString(Hd){let Jd="",If=++this.state.pos;for(;;){if(this.state.pos>=this.length)throw this.raise(Nd.UnterminatedString,this.state.startLoc);let Qf=this.input.charCodeAt(this.state.pos);if(Qf===Hd)break;Qf===38?(Jd+=this.input.slice(If,this.state.pos),Jd+=this.jsxReadEntity(),If=this.state.pos):Xh(Qf)?(Jd+=this.input.slice(If,this.state.pos),Jd+=this.jsxReadNewLine(!1),If=this.state.pos):++this.state.pos}Jd+=this.input.slice(If,this.state.pos++),this.finishToken(133,Jd)}jsxReadEntity(){let Hd=++this.state.pos;if(this.codePointAtPos(this.state.pos)===35){++this.state.pos;let Jd=10;this.codePointAtPos(this.state.pos)===120&&(Jd=16,++this.state.pos);let If=this.readInt(Jd,void 0,!1,"bail");if(If!==null&&this.codePointAtPos(this.state.pos)===59)return++this.state.pos,String.fromCodePoint(If)}else{let Jd=0,If=!1;for(;Jd++<10&&this.state.pos<this.length&&!(If=this.codePointAtPos(this.state.pos)===59);)++this.state.pos;if(If){this.input.slice(Hd,this.state.pos);let Qf;++this.state.pos}}return this.state.pos=Hd,"&"}jsxReadWord(){let Hd,Jd=this.state.pos;do Hd=this.input.charCodeAt(++this.state.pos);while(Gh(Hd)||Hd===45);this.finishToken(140,this.input.slice(Jd,this.state.pos))}jsxParseIdentifier(){let Hd=this.startNode();return this.match(140)?Hd.name=this.state.value:Of(this.state.type)?Hd.name=Xf(this.state.type):this.unexpected(),this.next(),this.finishNode(Hd,"JSXIdentifier")}jsxParseNamespacedName(){let Hd=this.state.startLoc,Jd=this.jsxParseIdentifier();if(!this.eat(14))return Jd;let If=this.startNodeAt(Hd);return If.namespace=Jd,If.name=this.jsxParseIdentifier(),this.finishNode(If,"JSXNamespacedName")}jsxParseElementName(){let Hd=this.state.startLoc,Jd=this.jsxParseNamespacedName();if(Jd.type==="JSXNamespacedName")return Jd;for(;this.eat(16);){let If=this.startNodeAt(Hd);If.object=Jd,If.property=this.jsxParseIdentifier(),Jd=this.finishNode(If,"JSXMemberExpression")}return Jd}jsxParseAttributeValue(){let Hd;switch(this.state.type){case 5:return Hd=this.startNode(),this.setContext(jd.brace),this.next(),Hd=this.jsxParseExpressionContainer(Hd,jd.j_oTag),Hd.expression.type==="JSXEmptyExpression"&&this.raise(p0.AttributeIsEmpty,Hd),Hd;case 142:case 133:return this.parseExprAtom();default:throw this.raise(p0.UnsupportedJsxValue,this.state.startLoc)}}jsxParseEmptyExpression(){let Hd=this.startNodeAt(this.state.lastTokEndLoc);return this.finishNodeAt(Hd,"JSXEmptyExpression",this.state.startLoc)}jsxParseSpreadChild(Hd){return this.next(),Hd.expression=this.parseExpression(),this.setContext(jd.j_expr),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(Hd,"JSXSpreadChild")}jsxParseExpressionContainer(Hd,Jd){if(this.match(8))Hd.expression=this.jsxParseEmptyExpression();else{let If=this.parseExpression();Hd.expression=If}return this.setContext(Jd),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(Hd,"JSXExpressionContainer")}jsxParseAttribute(){let Hd=this.startNode();return this.match(5)?(this.setContext(jd.brace),this.next(),this.expect(21),Hd.argument=this.parseMaybeAssignAllowIn(),this.setContext(jd.j_oTag),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(Hd,"JSXSpreadAttribute")):(Hd.name=this.jsxParseNamespacedName(),Hd.value=this.eat(29)?this.jsxParseAttributeValue():null,this.finishNode(Hd,"JSXAttribute"))}jsxParseOpeningElementAt(Hd){let Jd=this.startNodeAt(Hd);return this.eat(143)?this.finishNode(Jd,"JSXOpeningFragment"):(Jd.name=this.jsxParseElementName(),this.jsxParseOpeningElementAfterName(Jd))}jsxParseOpeningElementAfterName(Hd){let Jd=[];for(;!this.match(56)&&!this.match(143);)Jd.push(this.jsxParseAttribute());return Hd.attributes=Jd,Hd.selfClosing=this.eat(56),this.expect(143),this.finishNode(Hd,"JSXOpeningElement")}jsxParseClosingElementAt(Hd){let Jd=this.startNodeAt(Hd);return this.eat(143)?this.finishNode(Jd,"JSXClosingFragment"):(Jd.name=this.jsxParseElementName(),this.expect(143),this.finishNode(Jd,"JSXClosingElement"))}jsxParseElementAt(Hd){let Jd=this.startNodeAt(Hd),If=[],Qf
` ),cooked:Qf===null?null:Qf.slice(1,im)}, $ h.tail=Vh,this.next();let $ m=this.finishNode( $ h,"TemplateElement");return this.resetEndLocation( $ m,td(this.state.lastTokEndLoc,im)), $ m}parseTemplate(Xd){let Hd=this.startNode(),Jd=this.parseTemplateElement(Xd),If=[Jd],Qf=[];for(;!Jd.tail;)Qf.push(this.parseTemplateSubstitution()),this.readTemplateContinuation(),If.push(Jd=this.parseTemplateElement(Xd));return Hd.expressions=Qf,Hd.quasis=If,this.finishNode(Hd,"TemplateLiteral")}parseTemplateSubstitution(){return this.parseExpression()}parseObjectLike(Xd,Hd,Jd,If){Jd&&this.expectPlugin("recordAndTuple");let Qf=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;let _h=Object.create(null), $ h=!0,Vh=this.startNode();for(Vh.properties=[],this.next();!this.match(Xd);){if( $ h) $ h=!1;else if(this.expect(12),this.match(Xd)){this.addTrailingCommaExtraToNode(Vh);break}let Qh;Hd?Qh=this.parseBindingProperty():(Qh=this.parsePropertyDefinition(If),this.checkProto(Qh,Jd,_h,If)),Jd&&!this.isObjectProperty(Qh)&&Qh.type!=="SpreadElement"&&this.raise(Nd.InvalidRecordProperty,Qh),Qh.shorthand&&this.addExtra(Qh,"shorthand",!0),Vh.properties.push(Qh)}this.next(),this.state.inFSharpPipelineDirectBody=Qf;let im="ObjectExpression";return Hd?im="ObjectPattern":Jd&&(im="RecordExpression"),this.finishNode(Vh,im)}addTrailingCommaExtraToNode(Xd){this.addExtra(Xd,"trailingComma",this.state.lastTokStartLoc.index),this.addExtra(Xd,"trailingCommaLoc",this.state.lastTokStartLoc,!1)}maybeAsyncOrAccessorProp(Xd){return!Xd.computed&&Xd.key.type==="Identifier"&&(this.isLiteralPropertyName()||this.match(0)||this.match(55))}parsePropertyDefinition(Xd){let Hd=[];if(this.match(26))for(this.hasPlugin("decorators")&&this.raise(Nd.UnsupportedPropertyDecorator,this.state.startLoc);this.match(26);)Hd.push(this.parseDecorator());let Jd=this.startNode(),If=!1,Qf=!1,_h;if(this.match(21))return Hd.length&&this.unexpected(),this.parseSpread();Hd.length&&(Jd.decorators=Hd,Hd=[]),Jd.method=!1,Xd&&(_h=this.state.startLoc);let $ h=this.eat(55);this.parsePropertyNamePrefixOperator(Jd);let Vh=this.state.containsEsc;if(this.parsePropertyName(Jd,Xd),! $ h&&!Vh&&this.maybeAsyncOrAccessorProp(Jd)){let{key:im}=Jd,Qh=im.name;Qh==="async"&&!this.hasPrecedingLineBreak()&&(If=!0,this.resetPreviousNodeTrailingComments(im), $ h=this.eat(55),this.parsePropertyName(Jd)),(Qh==="get"||Qh==="set")&&(Qf=!0,this.resetPreviousNodeTrailingComments(im),Jd.kind=Qh,this.match(55)&&( $ h=!0,this.raise(Nd.AccessorIsGenerator,this.state.curPosition(),{kind:Qh}),this.next()),this.parsePropertyName(Jd))}return this.parseObjPropValue(Jd,_h, $ h,If,!1,Qf,Xd)}getGetterSetterExpectedParamCount(Xd){return Xd.kind==="get"?0:1}getObjectOrClassMethodParams(Xd){return Xd.params}checkGetterSetterParams(Xd){var Hd;let Jd=this.getGetterSetterExpectedParamCount(Xd),If=this.getObjectOrClassMethodParams(Xd);If.length!==Jd&&this.raise(Xd.kind==="get"?Nd.BadGetterArity:Nd.BadSetterArity,Xd),Xd.kind==="set"&&((Hd=If[If.length-1])==null?void 0:Hd.type)==="RestElement"&&this.raise(Nd.BadSetterRestParameter,Xd)}parseObjectMethod(Xd,Hd,Jd,If,Qf){if(Qf){let _h=this.parseMethod(Xd,Hd,!1,!1,!1,"ObjectMethod");return this.checkGetterSetterParams(_h),_h}if(Jd||Hd||this.match(10))return If&&this.unexpected(),Xd.kind="method",Xd.method=!0,this.parseMethod(Xd,Hd,Jd,!1,!1,"ObjectMethod")}parseObjectProperty(Xd,Hd,Jd,If){if(Xd.shorthand=!1,this.eat(14))return Xd.value=Jd?this.parseMaybeDefault(this.state.startLoc):this.parseMaybeAssignAllowIn(If),this.finishNode(Xd,"ObjectProperty");if(!Xd.computed&&Xd.key.type==="Identifier"){if(this.checkReservedWord(Xd.key.name,Xd.key.loc.start,!0,!1),Jd)Xd.value=this.parseMaybeDefault(Hd,S0(Xd.key));else if(this.match(29)){let Qf=this.state.startLoc;If!=null?If.shorthandAssignLoc===null&&(If.shorthandAssignLoc=Qf):this.raise(Nd.InvalidCoverInitializedName,Qf),Xd.value=this.parseMaybeDefault(Hd,S0(Xd.key))}else Xd.value=S0(Xd.key);return Xd.shorthand=!0,this.finishNode(Xd,"ObjectProperty")}}parseObjPropValue(Xd,Hd,Jd,If,Qf,_h, $ h){let Vh=this.parseObjectMethod(Xd,Jd,If,Qf,_h)||this.parseObjectPr
` )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
` ;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
` )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}' .
Expected it to be $ { ed } . ` }var Jn $ 2=class extends Error{constructor(Ja){super(bo $ 1(Ja));t1(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
` )):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-30 15:19:18 +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 _d(),{...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?gd():_d()}function gd(){od>0&&ld(od),yd()}function _d(){sd>0&&cd(sd),yd()}function yd(){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(),gd=ut(ud);switch(gd){case rt $ 1:ld.push(ud),Ja-=et $ 1(ud);break;case _e $ 1:case Pe $ 1:{let _d=gd===_e $ 1?ud:ud.parts;for(let yd=_d.length-1;yd>=0;yd--)sd.push({mode:cd,doc:_d[yd]});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 _d=ud.break?Se $ 1:cd,yd=ud.expandedStates&&_d===Se $ 1?O $ 1(!1,ud.expandedStates,-1):ud.contents;sd.push({mode:_d,doc:yd});break}case xe $ 2:{let _d=(ud.groupId?td[ud.groupId]||at $ 1:cd)===Se $ 1?ud.breakContents:ud.flatContents;_d&&sd.push({mode:cd,doc:_d});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:_d,mode:yd,doc:Ed}=od.pop();switch(ut(Ed)){case rt $ 1:{let Td=td!== `
` ?N $ 1(!1,Ed, `
` ,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:_d,mode:yd,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(_d,qa),mode:yd,doc:Ed.contents});break;case Ye $ 1:od.push({ind:Ap(_d,Ed.n,qa),mode:yd,doc:Ed.contents});break;case st:rd-=Zn $ 1(sd);break;case le $ 1:switch(yd){case at $ 1:if(!ld){od.push({ind:_d,mode:Ed.break?Se $ 1:at $ 1,doc:Ed.contents});break}case Se $ 1:{ld=!1;let Td={ind:_d,mode:at $ 1,doc:Ed.contents},Od=ed-rd,Ad=cd.length>0;if(!Ed.break&&Jr $ 1(Td,od,Od,Ad,Ja))od.push(Td);else if(Ed.expandedStates){let Nd=O $ 1(!1,Ed.expandedStates,-1);if(Ed.break){od.push({ind:_d,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:_d,mode:Se $ 1,doc:Nd});break}else{let Id=Ed.expandedStates[kd],Rd={ind:_d,mode:at $ 1,doc:Id};if(Jr $ 1(Rd,od,Od,Ad,Ja)){od.push(Rd);break}}}else od.push({ind:_d,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:Od}=Ed;if(Od.length===0)break;let[Ad,Nd]=Od,kd={ind:_d,mode:at $ 1,doc:Ad},Id={ind:_d,mode:Se $ 1,doc:Ad},Rd=Jr $ 1(kd,[],Td,cd.length>0,Ja,!0);if(Od.length===1){Rd?od.push(kd):od.push(Id);break}let Md={ind:_d,mode:at $ 1,doc:Nd},Ld={ind:_d,mode:Se $ 1,doc:Nd};if(Od.length===2){Rd?od.push(Md,kd):od.push(Ld,Id);break}Od.splice(0,2);let jd={ind:_d,mode:yd,doc:qt $ 1(Od)},Pd=Od[0];Jr $ 1({ind:_d,mode:at $ 1,doc:[Ad,Nd,Pd]},[],Td,cd.length>0,Ja,!0)?od.push(jd,Md,kd):Rd?od.push(jd,Ld,kd):od.push(jd,Ld,Id);break}case xe $ 2:case He $ 1:{let Td=Ed.groupId?Ja[Ed.groupId]:yd;if(Td===Se $ 1){let Od=Ed.type===xe $ 2?Ed.breakContents:Ed.negate?Ed.contents:f(Ed.contents);Od&&od.push({ind:_d,mode:yd,doc:Od})}if(Td===at $ 1){let Od=Ed.type===xe $ 2?Ed.flatContents:Ed.negate?f(Ed.contents):Ed.contents;Od&&od.push({ind:_d,mode:yd,doc:Od})}break}case Ve $ 1:cd.push({ind:_d,mode:yd,doc:Ed.contents});break;case $ e $ 2:cd.length>0&&od.push({ind:_d,mode:yd,doc:Gn $ 2});break;case me:switch(yd){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:_d,mode:yd,doc:Ed},...cd.reverse()),cd.length=0;break}Ed.literal?_d.root?(sd.push(td,_d.root.value),rd=_d.root.length):(sd.push(td),rd=0):(rd-=Zn $ 1(sd),sd.push(td+_d.value),rd=_d.length);break}break;case je $ 2:od.push({ind:_d,mode:yd,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 gd=sd.indexOf(ar);if(gd!==-1){let _d=sd.indexOf(ar,gd+1),yd=sd.slice(0,gd).join(""),Ed=sd.slice(gd+1,_d).join(""),Td=sd.slice(_d+1).join("");return{formatted:yd+Ed+Td,cursorNodeStart:yd.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 , gd = cd . value . raw , _d = gd . includes ( `
` )?Gu $ 1(gd,ud):sd;sd=_d;let yd=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(yd,{...Ja,printWidth:Number.POSITIVE_INFINITY}).formatted;Ad.includes( `
` )?Td=!0:yd=Ad}Td&&(d(Ed)||Ed.type==="Identifier"||q $ 1(Ed)||Ed.type==="ConditionalExpression"||Ed.type==="SequenceExpression"||Te $ 1(Ed)||De(Ed))&&(yd=[f([E $ 1,yd]),E $ 1]);let Od=_d===0&&gd.endsWith( `
` )?he $ 1(Number.NEGATIVE_INFINITY,yd):xu(yd,_d,ud);rd.push(l([" ${ ",Od,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(_d=>" $ { "+es$1(_d,{...qa,printWidth:Number.POSITIVE_INFINITY,endOfLine:" lf "}).formatted+" } " ) , ld = [ { hasLineBreak : ! 1 , cells : [ ] } ] ; for ( let _d = 1 ; _d < ed . quasis . length ; _d ++ ) { let yd = O$1 ( ! 1 , ld , - 1 ) , Ed = sd [ _d - 1 ] ; yd . cells . push ( Ed ) , Ed . includes ( `
` )&&(yd.hasLineBreak=!0),ed.quasis[_d].value.raw.includes( `
` )&&ld.push({hasLineBreak:!1,cells:[]})}let cd=Math.max(td.length,...ld.map(_d=>_d.cells.length)),ud=Array.from({length:cd}).fill(0),gd=[{cells:td},...ld.filter(_d=>_d.cells.length>0)];for(let{cells:_d}of gd.filter(yd=>!yd.hasLineBreak))for(let[yd,Ed]of _d.entries())ud[yd]=Math.max(ud[yd],et $ 1(Ed));return od.push(ke $ 2," ` ",f([F,P$1(F,gd.map(_d=>P$1(" | ",_d.cells.map((yd,Ed)=>_d.hasLineBreak?yd:yd+" ".repeat(ud[Ed]-et$1(yd))))))]),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 , gd , _d ) => _d === 0 ? gd : ud + "@prettier-placeholder-" + rd ++ + "-id" + gd , "" ) , 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
` ),yd=_d.length,Ed=rd[sd],Td=yd>2&&_d[0].trim()===""&&_d[1].trim()==="",Od=yd>2&&_d[yd-1].trim()===""&&_d[yd-2].trim()==="",Ad=_d.every(kd=>/^ \s *(?:#[^ \n \r ]*)? $ /u.test(kd));if(!ud&&/#[^ \n \r ]* $ /u.test(_d[yd-1]))return null;let Nd=null;Ad?Nd=Op(_d):Nd=await Ra(gd,{parser:"graphql"}),Nd?(Nd=Wr $ 1(Nd,!1),!cd&&Td&&od.push(""),od.push(Nd),!ud&&Od&&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"),gd=0,_d=await qa(ld,{parser:Ra,__onHtmlRoot(Ad){gd=Ad.children.length}}),yd=mt $ 1(_d,Ad=>{if(typeof Ad!="string")return Ad;let Nd=[],kd=Ad.split(ud);for(let Id=0;Id<kd.length;Id++){let Rd=kd[Id];if(Id%2===0){Rd&&(Rd=ts $ 1(Rd),td.__embeddedInHtml&&(Rd=N $ 1(!1,Rd,/< \/ (?=script \b )/giu,String.raw ` < \ / ` )),Nd.push(Rd));continue}let Md=Number(Rd);Nd.push(cd[Md])}return Nd}),Ed=/^ \s /u.test(ld)?" ":"",Td=/ \s $ /u.test(ld)?" ":"",Od=td.htmlWhitespaceSensitivity==="ignore"?F:Ed&&Td?x:null;return Od?l([" ` ",f([Od,l(yd)]),Od," ` "]):it $ 1({hug:!1},l([" ` ",Ed,gd>1?f(l(yd)):l(yd),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 = `
` ;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-30 15:19:18 +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:gd,key:_d,parent:yd}=Ra;if(qa.__isInHtmlInterpolation&&!qa.bracketSpacing&&nc $ 2(gd)&&or(Ra))return!0;if(ec $ 2(gd))return!1;if(gd.type==="Identifier"){if((Ja=gd.extra)!=null&&Ja.parenthesized&&/^PRETTIER_HTML_PLACEHOLDER_ \d +_ \d +_IN_JS $ /u.test(gd.name)||_d==="left"&&(gd.name==="async"&&!yd.await||gd.name==="let")&&yd.type==="ForOfStatement")return!0;if(gd.name==="let"){let Ed=(ed=Ra.findAncestor(Td=>Td.type==="ForOfStatement"))==null?void 0:ed.left;if(Ed&&ie $ 1(Ed,Td=>Td===gd))return!0}if(_d==="object"&&gd.name==="let"&&yd.type==="MemberExpression"&&yd.computed&&!yd.optional){let Ed=Ra.findAncestor(Od=>Od.type==="ExpressionStatement"||Od.type==="ForStatement"||Od.type==="ForInStatement"),Td=Ed?Ed.type==="ExpressionStatement"?Ed.expression:Ed.type==="ForStatement"?Ed.init:Ed.left:void 0;if(Td&&ie $ 1(Td,Od=>Od===gd))return!0}if(_d==="expression")switch(gd.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!==yd&&Ed.type==="ExpressionStatement")return!0}}return!1}if(gd.type==="ObjectExpression"||gd.type==="FunctionExpression"||gd.type==="ClassExpression"||gd.type==="DoExpression"){let Ed=(td=Ra.findAncestor(Td=>Td.type==="ExpressionStatement"))==null?void 0:td.expression;if(Ed&&ie $ 1(Ed,Td=>Td===gd))return!0}if(gd.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===gd))return!0}switch(yd.type){case"ParenthesizedExpression":return!1;case"ClassDeclaration":case"ClassExpression":if(_d==="superClass"&&(gd.type==="ArrowFunctionExpression"||gd.type==="AssignmentExpression"||gd.type==="AwaitExpression"||gd.type==="BinaryExpression"||gd.type==="ConditionalExpression"||gd.type==="LogicalExpression"||gd.type==="NewExpression"||gd.type==="ObjectExpression"||gd.type==="SequenceExpression"||gd.type==="TaggedTemplateExpression"||gd.type==="UnaryExpression"||gd.type==="UpdateExpression"||gd.type==="YieldExpression"||gd.type==="TSNonNullExpression"||gd.type==="ClassExpression"&&w(gd.decorators)))return!0;break;case"ExportDefaultDeclaration":return li $ 2(Ra,qa)||gd.type==="SequenceExpression";case"Decorator":if(_d==="expression"&&!uc $ 1(gd))return!0;break;case"TypeAnnotation":if(Ra.match(void 0,void 0,(Ed,Td)=>Td==="returnType"&&Ed.type==="ArrowFunctionExpression")&&rc $ 1(gd))return!0;break;case"BinaryExpression":if(_d==="left"&&(yd.operator==="in"||yd.operator==="instanceof")&&gd.type==="UnaryExpression")return!0;break;case"VariableDeclarator":if(_d==="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(gd.type){case"UpdateExpression":if(yd.type==="UnaryExpression")return gd.prefix&&(gd.operator==="++"&&yd.operator==="+"||gd.operator==="--"&&yd.operator==="-");case"UnaryExpression":switch(yd.type){case"UnaryExpression":return gd.operator===yd.operator&&(gd.operator==="+"||gd.operator==="-");case"BindExpression":return!0;case"MemberExpression":case"OptionalMemberExpression":return _d==="object";case"TaggedTemplateExpression":return!0;case"NewExpression":case"CallExpression":case"OptionalCallExpression":return _d==="callee";case"BinaryExpression":return _d==="left"&&yd.operator==="**";case"TSNonNullExpression":return!0;default:return!1}case"BinaryExpression":if(yd.type==="UpdateExpression"||gd.operator==="in"&&tc $ 1(Ra))return!0;if(gd.operator==="|>"&&(od=gd.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(Md=>Sc(Md)?{type:"JSXText",value:" ",raw:" "}:Md);let cd=od.children.some(X),ud=od.children.filter(Md=>Md.type==="JSXExpressionContainer").length>1,gd=od.type==="JSXElement"&&od.openingElement.attributes.length>1,_d=ne $ 1(sd)||cd||gd||ud,yd=Ra.parent.rootMarker==="mdx",Ed=qa.singleQuote?"{' '}":'{" "}',Td=yd?" ":b([Ed,E $ 1]," "),Od=((td=(ed=od.openingElement)==null?void 0:ed.name)==null?void 0:td.name)==="fbt",Ad=lc $ 1(Ra,qa,Ja,Td,Od),Nd=od.children.some(Md=>pr(Md));for(let Md=Ad.length-2;Md>=0;Md--){let Ld=Ad[Md]===""&&Ad[Md+1]==="",jd=Ad[Md]===F&&Ad[Md+1]===""&&Ad[Md+2]===F,Pd=(Ad[Md]===E $ 1||Ad[Md]===F)&&Ad[Md+1]===""&&Ad[Md+2]===Td,Fd=Ad[Md]===Td&&Ad[Md+1]===""&&(Ad[Md+2]===E $ 1||Ad[Md+2]===F),Ud=Ad[Md]===Td&&Ad[Md+1]===""&&Ad[Md+2]===Td,Vd=Ad[Md]===E $ 1&&Ad[Md+1]===""&&Ad[Md+2]===F||Ad[Md]===F&&Ad[Md+1]===""&&Ad[Md+2]===E $ 1;jd&&Nd||Ld||Pd||Ud||Vd?Ad.splice(Md,2):Fd&&Ad.splice(Md+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[Md,Ld]of Ad.entries()){if(Ld===Td){if(Md===1&&Ad[Md-1]===""){if(Ad.length===2){kd.push(Ed);continue}kd.push([Ed,F]);continue}else if(Md===Ad.length-1){kd.push(Ed);continue}else if(Ad[Md-1]===""&&Ad[Md-2]===F){kd.push(Ed);continue}}kd.push(Ld),ne $ 1(Ld)&&(_d=!0)}let Id=Nd?qt $ 1(kd):l(kd,{shouldBreak:!0});if(((rd=qa.cursorNode)==null?void 0:rd.type)==="JSXText"&&od.children.includes(qa.cursorNode)&&(Id=[Un $ 1,Id,Un $ 1]),yd)return Id;let Rd=l([sd,f([F,Id]),F,ld]);return _d?Rd:ze $ 1([l([sd,...Ad,ld]),Rd])}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[gd,_d]of cd.entries())gd%2===1?rd.push(x):rd.push(_d);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
` )&&!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( `
` )),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 gd=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",_d=rd.type==="AssignmentExpression"||rd.type==="VariableDeclarator"||rd.type==="ClassProperty"||rd.type==="PropertyDefinition"||rd.type==="TSAbstractPropertyDefinition"||rd.type==="ClassPrivateProperty"||Ae $ 1(rd),yd=De(td.left)&&nr(td.operator,td.left.operator);if(gd||Ut $ 1(td)&&!yd||!Ut $ 1(
` +Nd+_d("^")}return" "+yd(Ad)+Ed}).join( `
` )}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( `
` )){let ud=this.raw(rd,null,"indent");if(ud.length)for(let gd=0;gd<cd;gd++)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 gd="raw"+ed(sd);this[gd]?ld=this[gd](ud,rd):ud.walk(_d=>{if(ld=_d.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( `
` )&&(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( `
` );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 gd=new cd.constructor;for(let _d in cd){if(!Object.prototype.hasOwnProperty.call(cd,_d)||_d==="proxyCache")continue;let yd=cd[_d],Ed=typeof yd;_d==="parent"&&Ed==="object"?ud&&(gd[_d]=ud):_d==="source"?gd[_d]=yd:Array.isArray(yd)?gd[_d]=yd.map(Td=>sd(Td,gd)):(Ed==="object"&&yd!==null&&(yd=sd(yd)),gd[_d]=yd)}return gd}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 gd of cd[ud])typeof gd.clone=="function"?this.append(gd.clone()):this.append(gd)}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 gd in cd)ud[gd]=cd[gd];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:gd,start:_d}=this.rangeBy(ud);return this.source.input.error(cd,{column:_d.column,line:_d.line},{column:gd.column,line:gd.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,gd){return cd[ud]===gd||(cd[ud]=gd,(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 gd=this.source.start;if(cd.index)gd=this.positionInside(cd.index,ud);else if(cd.word){ud=this.toString();let _d=ud.indexOf(cd.word);_d!==-1&&(gd=this.positionInside(_d,ud))}return gd}positionInside(cd,ud){let gd=ud||this.toString(),_d=this.source.start.column,yd=this.source.start.line;for(let Ed=0;Ed<cd;Ed++)gd[Ed]=== `
` ?(_d=1,yd+=1):_d+=1;return{column:_d,line:yd}}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},gd=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 _d=this.toString(),yd=_d.indexOf(cd.word);yd!==-1&&(ud=this.positionInside(yd,_d),gd=this.positionInside(yd+cd.word.length,_d))}else cd.start?ud={column:cd.start.column,line:cd.start.line}:cd.index&&(ud=this.positionInside(cd.index)),cd.end?gd={column:cd.end.column,line:cd.end.line}:typeof cd.endIndex=="number"?gd=this.positionInside(cd.endIndex):cd.index&&(gd=this.positionInside(cd.index+1));return(gd.line<ud.line||gd.line===ud.line&&gd.column<=ud.column)&&(gd={column:ud.column+1,line:ud.line}),{end:gd,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,gd=!1;for(let _d of cd)_d===this?gd=!0:gd?(this.parent.insertAfter(ud,_d),ud=_d):this.parent.insertBefore(ud,_d);gd||this.remove()}return this}root(){let cd=this;for(;cd.parent&&cd.parent.type!=="document";)cd=cd.parent;return cd}toJSON(cd,ud){let gd={},_d=ud==null;ud=ud||new Map;let yd=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))gd[Ed]=Td.map(Od=>typeof Od=="object"&&Od.toJSON?Od.toJSON(null,ud):Od);else if(typeof Td=="object"&&Td.toJSON)gd[Ed]=Td.toJSON(null,ud);else if(Ed==="source"){let Od=ud.get(Td.input);Od==null&&(Od=yd,ud.set(Td.input,yd),yd++),gd[Ed]={end:Td.end,inputId:Od,start:Td.start}}else gd[Ed]=Td}return _d&&(gd.inputs=[...ud.keys()].map(Ed=>Ed.toJSON())),gd}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,gd=>{ud+=gd}),ud}warn(cd,ud,gd){let _d={node:this};for(let yd in gd)_d[yd]=gd[yd];return cd.warn(ud,_d)}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 gd(Ed){return Ed.map(Td=>(Td.nodes&&(Td.nodes=gd(Td.nodes)),delete Td.source,Td))}function _d(Ed){if(Ed[Ja]=!1,Ed.proxyOf.nodes)for(let Td of Ed.proxyOf.nodes)_d(Td)}var yd=class iT extends od{append(...Td){for(let Od of Td){let Ad=this.normalize(Od,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 Od of this.nodes)Od.cleanRaws(Td)}each(Td){if(!this.proxyOf.nodes)return;let Od=this.getIterator(),Ad,Nd;for(;this.indexes[Od]<this.proxyOf.nodes.length&&(Ad=this.indexes[Od],Nd=Td(this.proxyOf.nodes[Ad],Ad),Nd!==!1);)this.indexes[Od]+=1;return delete this.indexes[Od],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,Od){return Od==="proxyOf"?Td:Td[Od]?Od==="each"||typeof Od=="string"&&Od.startsWith("walk")?(...Ad)=>Td[Od](...Ad.map(Nd=>typeof Nd=="function"?(kd,Id)=>Nd(kd.toProxy(),Id):Nd)):Od==="every"||Od==="some"?Ad=>Td[Od]((Nd,...kd)=>Ad(Nd.toProxy(),...kd)):Od==="root"?()=>Td.root().toProxy():Od==="nodes"?Td.nodes.map(Ad=>Ad.toProxy()):Od==="first"||Od==="last"?Td[Od].toProxy():Td[Od]:Td[Od]},set(Td,Od,Ad){return Td[Od]===Ad||(Td[Od]=Ad,(Od==="name"||Od==="params"||Od==="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,gd="",_d=!1;for(let yd of ed)_d?_d=!1:yd===" \\ "?_d=!0:ud?yd===gd&&(ud=!1):yd==='"'||yd==="'"?(ud=!0,gd=yd):yd==="("?cd+=1:yd===")"?cd>0&&(cd-=1):cd===0&&td.includes(yd)&&(ld=!0),ld?(sd!==""&&od.push(sd.trim()),sd="",ld=!1):sd+=yd;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(gd){for(let _d=gd.length-1;_d>=0;_d--){let yd=gd[_d],Ed=yd[3]||yd[2];if(Ed)return Ed}}var ud=class{constructor(gd){this.input=gd,this.root=new od,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:gd,start:{column:1,line:1,offset:0}}}atrule(gd){let _d=new rd;_d.name=gd[1].slice(1),_d.name===""&&this.unnamedAtrule(_d,gd),this.init(_d,gd[2]);let yd,Ed,Td,Od=!1,Ad=!1,Nd=[],kd=[];for(;!this.tokenizer.endOfFile();){if(gd=this.tokenizer.nextToken(),yd=gd[0],yd==="("||yd==="["?kd.push(yd==="("?")":"]"):yd==="{"&&kd.length>0?kd.push("}"):yd===kd[kd.length-1]&&kd.pop(),kd.length===0)if(yd===";"){_d.source.end=this.getPosition(gd[2]),_d.source.end.offset++,this.semicolon=!0;break}else if(yd==="{"){Ad=!0;break}else if(yd==="}"){if(Nd.length>0){for(Td=Nd.length-1,Ed=Nd[Td];Ed&&Ed[0]==="space";)Ed=Nd[--Td];Ed&&(_d.source.end=this.getPosition(Ed[3]||Ed[2]),_d.source.end.offset++)}this.end(gd);break}else Nd.push(gd);else Nd.push(gd);if(this.tokenizer.endOfFile()){Od=!0;break}}_d.raws.between=this.spacesAndCommentsFromEnd(Nd),Nd.length?(_d.raws.afterName=this.spacesAndCommentsFromStart(Nd),this.raw(_d,"params",Nd),Od&&(gd=Nd[Nd.length-1],_d.source.end=this.getPosition(gd[3]||gd[2]),_d.source.end.offset++,this.spaces=_d.raws.between,_d.raws.between="")):(_d.raws.afterName="",_d.params=""),Ad&&(_d.nodes=[],this.current=_d)}checkMissedSemicolon(gd){let _d=this.colon(gd);if(_d===!1)return;let yd=0,Ed;for(let Td=_d-1;Td>=0&&(Ed=gd[Td],!(Ed[0]!=="space"&&(yd+=1,yd===2)));Td--);throw this.input.error("Missed semicolon",Ed[0]==="word"?Ed[3]+1:Ed[2])}colon(gd){let _d=0,yd,Ed,Td;for(let[Od,Ad]of gd.entries()){if(yd=Ad,Ed=yd[0],Ed==="("&&(_d+=1),Ed===")"&&(_d-=1),_d===0&&Ed===":")if(!Td)this.doubleColon(yd);else{if(Td[0]==="word"&&Td[1]==="progid")continue;return Od}Td=yd}return!1}comment(gd){let _d=new td;this.init(_d,gd[2]),_d.source.end=this.getPosition(gd[3]||gd[2]),_d.source.end.offset++;let yd=gd[1].slice(2,-2);if(/^ \s * $ /.test(yd))_d.text="",_d.raws.left=yd,_d.raws.right="";else{let Ed=yd.match(/^( \s *)([^]* \S )( \s *) $ /);_d.text=Ed[2],_d.raws.left=Ed[1],_d.raws.right=Ed[3]}}createTokenizer(){this.tokenizer=ed(this.input)}decl(gd,_d){let yd=new Ja;this.init(yd,gd[0][2]);let Ed=gd[gd.length-1];for(Ed[0]===";"&&(this.semicolon=!0,gd.pop()),yd.source.end=this.getPosition(Ed[3]||Ed[2]||cd(gd)),yd.source.end.offset++;gd[0][0]!=="word";)gd.length===1&&this.unknownWord(gd),yd.raws.before+=gd.shift()[1];for(yd.source.start=this.getPosition(gd[0][2]),yd.prop="";gd.length;){let Nd=gd[0][0];if(Nd===":"||Nd==="space"||Nd==="comment")break;yd.prop+=gd.shift()[1]}yd.raws.between="";let Td;for(;gd.length;)if(Td=gd.shift(),Td[0]===":"){yd.raws.between+=Td[1];break}else Td[0]==="word"&&/ \w /.test(Td[1])&&this.unknownWord([Td]),yd.raws.between+=Td[1];(yd.prop[0]==="_"||yd.prop[0]==="*")&&(yd.raws.before+=yd.prop[0],yd.prop=yd.prop.slice(1));let Od=[],Ad;for(;gd.length&&(Ad=gd[0][0],!(Ad!=="space"&&Ad!=="comment"));)Od.push(gd.shift());this.precheckMissedSemicolon(gd);for(let Nd=gd.length-1;Nd>=0;Nd--){if(Td=gd[Nd],Td[1].toLowerCase()==="!important"){yd.important=!0;let kd=this.stringFrom(gd,Nd);kd=this.spacesFromEnd(gd)+kd,kd!==" !important"&&(yd.raws.important=kd);br
` );Nd=new Array(Id.length);let Rd=0;for(let Md=0,Ld=Id.length;Md<Ld;Md++)Nd[Md]=Rd,Rd+=Id[Md].length+1;this[_d]=Nd}Ad=Nd[Nd.length-1];let kd=0;if(Od>=Ad)kd=Nd.length-1;else{let Id=Nd.length-2,Rd;for(;kd<Id;)if(Rd=kd+(Id-kd>>1),Od<Nd[Rd])Id=Rd-1;else if(Od>=Nd[Rd+1])kd=Rd+1;else{kd=Rd;break}}return{col:Od-Nd[kd]+1,line:kd+1}}mapResolve(Od){return/^ \w +: \/ \/ /.test(Od)?Od:sd(this.map.consumer().sourceRoot||this.map.root||".",Od)}origin(Od,Ad,Nd,kd){if(!this.map)return!1;let Id=this.map.consumer(),Rd=Id.originalPositionFor({column:Ad,line:Od});if(!Rd.source)return!1;let Md;typeof Nd=="number"&&(Md=Id.originalPositionFor({column:kd,line:Nd}));let Ld;od(Rd.source)?Ld=rd(Rd.source):Ld=new URL(Rd.source,this.map.consumer().sourceRoot||rd(this.map.mapFile));let jd={column:Rd.column,endColumn:Md&&Md.column,endLine:Md&&Md.line,line:Rd.line,url:Ld.toString()};if(Ld.protocol==="file:")if(td)jd.file=td(Ld);else throw new Error("file: protocol is not available in this PostCSS build");let Pd=Id.sourceContentFor(Rd.source);return Pd&&(jd.source=Pd),jd}toJSON(){let Od={};for(let Ad of["hasBOM","css","file","id"])this[Ad]!=null&&(Od[Ad]=this[Ad]);return this.map&&(Od.map={...this.map},Od.map.consumerCache&&(Od.map.consumerCache=void 0)),Od}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( `
` ))),ld=td[1].substring(td[1].indexOf( `
` ));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 gd=ud.findIndex(Td=>Td[0]==="("),_d=ud.reverse().find(Td=>Td[0]===")"),yd=ud.reverse().indexOf(_d),Ed=ud.splice(gd,yd).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,gd,_d){super.init(ud,gd,_d),this.lastNode=ud}inlineComment(ud){let gd=new Ja,_d=ud[1].slice(2);if(this.init(gd,ud[2]),gd.source.end=this.getPosition(ud[3]||ud[2]),gd.inline=!0,gd.raws.begin="//",/^ \s * $ /.test(_d))gd.text="",gd.raws.left=_d,gd.raws.right="";else{let yd=_d.match(/^( \s *)([^]*[^ \s ])( \s *) $ /);[,gd.raws.left,gd.text,gd.raws.right]=yd}}mixin(ud){let[gd]=ud,_d=gd[1].slice(0,1),yd=ud.findIndex(Nd=>Nd[0]==="brackets"),Ed=ud.findIndex(Nd=>Nd[0]==="("),Td="";if((yd<0||yd>3)&&Ed>0){let Nd=ud.reduce((Ud,Vd,qd)=>Vd[0]===")"?qd:Ud),kd=ud.slice(Ed,Nd+Ed).map(Ud=>Ud[1]).join(""),[Id]=ud.slice(Ed),Rd=[Id[2],Id[3]],[Md]=ud.slice(Nd,Nd+1),Ld=[Md[2],Md[3]],jd=["brackets",kd].concat(Rd,Ld),Pd=ud.slice(0,Ed),Fd=ud.slice(Nd+1);ud=Pd,ud.push(jd),ud=ud.concat(Fd)}let Od=[];for(let Nd of ud)if((Nd[1]==="!"||Od.length)&&Od.push(Nd),Nd[1]==="important")break;if(Od.length){let[Nd]=Od,kd=ud.indexOf(Nd),Id=Od[Od.length-1],Rd=[Nd[2],Nd[3]],Md=[Id[4],Id[5]],Ld=["word",Od.map(jd=>jd[1]).join("")].concat(Rd,Md);ud.splice(kd,Od.length,Ld)}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=_d,Td&&(this.lastNode.important=!0,this.lastNode.raws.important=Td)}other(ud){td.bind(this)(ud)||super.other(ud)}rule(ud){let gd=ud[ud.length-1],_d
https : //evilmartians.com/chronicles/postcss-8-plugin-migration`));let Ud=Md(...Fd);return Ud.postcssPlugin=Rd,Ud.postcssVersion=new od().version,Ud}let Pd;return Object.defineProperty(jd,"postcss",{get(){return Pd||(Pd=jd()),Pd}}),jd.process=function(Fd,Ud,Vd){return Id([jd(Vd)]).process(Fd,Ud)},jd},Id.stringify=sd,Id.parse=Td,Id.fromJSON=ld,Id.list=Od,Id.comment=Rd=>new gd(Rd),Id.atRule=Rd=>new _d(Rd),Id.decl=Rd=>new ed(Rd),Id.rule=Rd=>new Ad(Rd),Id.root=Rd=>new Nd(Rd),Id.document=Rd=>new cd(Rd),Id.CssSyntaxError=Ja,Id.Declaration=ed,Id.Container=rd,Id.Processor=od,Id.Document=cd,Id.Comment=gd,Id.Warning=ud,Id.AtRule=_d,Id.Result=yd,Id.Input=Ed,Id.Rule=Ad,Id.Root=Nd,Id.Node=kd,td.registerPostcss(Id),qa.exports=Id,Id.default=Id}),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,gd,_d,yd,Ed,Td,Od,Ad,Nd,kd,Id=cd.length,Rd=0,Md=[],Ld=[],jd;function Pd(){return Rd}function Fd(zd){throw sd.error("Unclosed "+zd,Rd)}function Ud(){return Ld.length===0&&Rd>=Id}function Vd(){let zd=1,Kd=!1,Qd=!1;for(;zd>0;)_d+=1,cd.length<=_d&&Fd("interpolation"),gd=cd.charCodeAt(_d),Nd=cd.charCodeAt(_d+1),Kd?!Qd&&gd===Kd?(Kd=!1,Qd=!1):gd===92?Qd=!Qd:Qd&&(Qd=!1):gd===39||gd===34?Kd=gd:gd===125?zd-=1:gd===35&&Nd===123&&(zd+=1)}function qd(zd){if(Ld.length)return Ld.pop();if(Rd>=Id)return;let Kd=zd?zd.ignoreUnclosed:!1;switch(gd=cd.charCodeAt(Rd),gd){case 10:case 32:case 9:case 13:case 12:{_d=Rd;do _d+=1,gd=cd.charCodeAt(_d);while(gd===32||gd===10||gd===9||gd===13||gd===12);kd=["space",cd.slice(Rd,_d)],Rd=_d-1;break}case 91:case 93:case 123:case 125:case 58:case 59:case 41:{let Qd=String.fromCharCode(gd);kd=[Qd,Qd,Rd];break}case 44:{kd=["word",",",Rd,Rd+1];break}case 40:{if(Ad=Md.length?Md.pop()[1]:"",Nd=cd.charCodeAt(Rd+1),Ad==="url"&&Nd!==39&&Nd!==34){for(jd=1,Od=!1,_d=Rd+1;_d<=cd.length-1;){if(Nd=cd.charCodeAt(_d),Nd===92)Od=!Od;else if(Nd===40)jd+=1;else if(Nd===41&&(jd-=1,jd===0))break;_d+=1}Ed=cd.slice(Rd,_d+1),kd=["brackets",Ed,Rd,_d],Rd=_d}else _d=cd.indexOf(")",Rd+1),Ed=cd.slice(Rd,_d+1),_d===-1||td.test(Ed)?kd=["(","(",Rd]:(kd=["brackets",Ed,Rd,_d],Rd=_d);break}case 39:case 34:{for(yd=gd,_d=Rd,Od=!1;_d<Id&&(_d++,_d===Id&&Fd("string"),gd=cd.charCodeAt(_d),Nd=cd.charCodeAt(_d+1),!(!Od&&gd===yd));)gd===92?Od=!Od:Od?Od=!1:gd===35&&Nd===123&&Vd();kd=["string",cd.slice(Rd,_d+1),Rd,_d],Rd=_d;break}case 64:{Ja.lastIndex=Rd+1,Ja.test(cd),Ja.lastIndex===0?_d=cd.length-1:_d=Ja.lastIndex-2,kd=["at-word",cd.slice(Rd,_d+1),Rd,_d],Rd=_d;break}case 92:{for(_d=Rd,Td=!0;cd.charCodeAt(_d+1)===92;)_d+=1,Td=!Td;if(gd=cd.charCodeAt(_d+1),Td&&gd!==47&&gd!==32&&gd!==10&&gd!==9&&gd!==13&&gd!==12&&(_d+=1,rd.test(cd.charAt(_d)))){for(;rd.test(cd.charAt(_d+1));)_d+=1;cd.charCodeAt(_d+1)===32&&(_d+=1)}kd=["word",cd.slice(Rd,_d+1),Rd,_d],Rd=_d;break}default:Nd=cd.charCodeAt(Rd+1),gd===35&&Nd===123?(_d=Rd,Vd(),Ed=cd.slice(Rd,_d+1),kd=["word",Ed,Rd,_d],Rd=_d):gd===47&&Nd===42?(_d=cd.indexOf("*/",Rd+2)+1,_d===0&&(ud||Kd?_d=cd.length:Fd("comment")),kd=["comment",cd.slice(Rd,_d+1),Rd,_d],Rd=_d):gd===47&&Nd===47?(od.lastIndex=Rd+1,od.test(cd),od.lastIndex===0?_d=cd.length-1:_d=od.lastIndex-2,Ed=cd.slice(Rd,_d+1),kd=["comment",Ed,Rd,_d,"inline"],Rd=_d):(ed.lastIndex=Rd+1,ed.test(cd),ed.lastIndex===0?_d=cd.length-1:_d=ed.lastIndex-2,kd=["word",cd.slice(Rd,_d+1),Rd,_d],Md.push(kd),Rd=_d);break}return Rd++,kd}function Wd(zd){Ld.push(zd)}return{back:Wd,endOfFile:Ud,nextToken:qd,position:Pd}}}),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;gd[0]==="("?cd+=1:gd[0]===")"?cd-=1:cd===0&&gd[0]===":"&&(ld=!0)}if(!ld||ud.trim()===""||/^[#:A-Za-z-]/.test(ud))super.rule(sd);else{sd.pop();let gd=new td;this.init(gd,sd[0][2]);let _d;for(let Ed=sd.length-1;Ed>=0;Ed--)if(sd[Ed][0]!=="space"){_d=sd[Ed];break}if(_d[3]){let Ed=this.input.fromOffset(_d[3]);gd.source.end={column:Ed.col,line:Ed.line,offset:_d[3]+1}}else{let Ed=this.input.fromOffset(_d[2]);gd.source.end={column:Ed.col,line:Ed.line,offset:_d[2]+1}}for(;sd[0][0]!=="word";)gd.raws.before+=sd.shift()[1];if(sd[0][2]){let Ed=this.input.fromOffset(sd[0][2]);gd.source.start={column:Ed.col,line:Ed.line,offset:sd[0][2]}}for(gd.prop="";sd.length;){let Ed=sd[0][0];if(Ed===":"||Ed==="space"||Ed==="comment")break;gd.prop+=sd.shift()[1]}gd.raws.between="";let yd;for(;sd.length;)if(yd=sd.shift(),yd[0]===":"){gd.raws.between+=yd[1];break}else gd.raws.between+=yd[1];(gd.prop[0]==="_"||gd.prop[0]==="*")&&(gd.raws.before+=gd.prop[0],gd.prop=gd.prop.slice(1)),gd.raws.between+=this.spacesAndCommentsFromStart(sd),this.precheckMissedSemicolon(sd);for(let Ed=sd.length-1;Ed>0;Ed--){if(yd=sd[Ed],yd[1]==="!important"){gd.important=!0;let Td=this.stringFrom(sd,Ed);Td=this.spacesFromEnd(sd)+Td,Td!==" !important"&&(gd.raws.important=Td);break}else if(yd[1]==="important"){let Td=sd.slice(0),Od="";for(let Ad=Ed;Ad>0;Ad--){let Nd=Td[Ad][0];if(Od.trim().indexOf("!")===0&&Nd!=="space")break;Od=Td.pop()[1]+Od}Od.trim().indexOf("!")===0&&(gd.important=!0,gd.raws.important=Od,sd=Td)}if(yd[0]!=="space"&&yd[0]!=="comment")break}this.raw(gd,"value",sd),gd.value.includes(":")&&this.checkMissedSemicolon(sd),this.current=gd}}};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 gd=this.nodes[ud],_d=sd?cd.test(gd.type):!0;if(_d&&ld&&ld(gd,ud,this.nodes)===!1||gd.nodes&&gd.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],gd=[{mode:"normal",character:null}],_d=[],yd=0,Ed="",Td=null,Od=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 Id=Nd[kd];if((Id==="'"||Id==='"')&&(gd[yd].isCalculationEnabled===!0?(gd.push({mode:"string",isCalculationEnabled:!1,character:Id}),yd++):gd[yd].mode==="string"&&gd[yd].character===Id&&Nd[kd-1]!==" \\ "&&(gd.pop(),yd--)),Id==="{"?(gd.push({mode:"interpolation",isCalculationEnabled:!0}),yd++):Id==="}"&&(gd.pop(),yd--),gd[yd].mode==="normal"&&Id===":"){var Rd=Nd.substring(kd+1);Od={type:"value",before:/^( \s *)/.exec(Rd)[1],after:/( \s *) $ /.exec(Rd)[1],value:Rd.trim()},Od.sourceIndex=Od.before.length+kd+1+Ad,Td=
` ),gf=hf.length-1,gf>0?(Cf=mf+gf,Ef=Kd-hf[gf].length):(Cf=mf,Ef=Zd),qd.push(["comment",bf,mf,Pf-Zd,Cf,Kd-Ef,Pf]),Zd=Ef,mf=Cf,Pf=Kd):(Fd.lastIndex=Pf+1,Fd.test(Wd),Fd.lastIndex===0?Kd=Wd.length-1:Kd=Fd.lastIndex-2,qd.push(["word",Wd.slice(Pf,Kd+1),mf,Pf-Zd,mf,Kd-Zd,Pf]),Pf=Kd);break}Pf++}return qd}qa.exports=Ra.default}),tu $ 1=y((Ra,qa)=>{Ra.__esModule=!0;var Ja=function(){function Zd(mf,Pf){for(var Ff=0;Ff<Pf.length;Ff++){var Lf=Pf[Ff];Lf.enumerable=Lf.enumerable||!1,Lf.configurable=!0,"value"in Lf&&(Lf.writable=!0),Object.defineProperty(mf,Lf.key,Lf)}}return function(mf,Pf,Ff){return Pf&&Zd(mf.prototype,Pf),Ff&&Zd(mf,Ff),mf}}(),ed=qs $ 1(),td=yf(ed),rd=Ls(),od=yf(rd),sd=Ds(),ld=yf(sd),cd=ga $ 1(),ud=yf(cd),gd=xa(),_d=yf(gd),yd=ka(),Ed=yf(yd),Td=Sa(),Od=yf(Td),Ad=Oa $ 1(),Nd=yf(Ad),kd=Aa(),Id=yf(kd),Rd=Pa $ 1(),Md=yf(Rd),Ld=Ia(),jd=yf(Ld),Pd=La(),Fd=yf(Pd),Ud=Ma(),Vd=yf(Ud),qd=Ua $ 1(),Wd=yf(qd),zd= $ a $ 1(),Kd=yf(zd),Qd=Ya $ 1(),hf=yf(Qd),gf=Xa(),bf=yf(gf),kf=D(),Cf=Ef(kf);function Ef(Zd){if(Zd&&Zd.__esModule)return Zd;var mf={};if(Zd!=null)for(var Pf in Zd)Object.prototype.hasOwnProperty.call(Zd,Pf)&&(mf[Pf]=Zd[Pf]);return mf.default=Zd,mf}function yf(Zd){return Zd&&Zd.__esModule?Zd:{default:Zd}}function Mf(Zd,mf){if(!(Zd instanceof mf))throw new TypeError("Cannot call a class as a function")}var Af=function(){function Zd(mf){Mf(this,Zd),this.input=mf,this.lossy=mf.options.lossless===!1,this.position=0,this.root=new ud.default;var Pf=new _d.default;return this.root.append(Pf),this.current=Pf,this.lossy?this.tokens=(0,bf.default)({safe:mf.safe,css:mf.css.trim()}):this.tokens=(0,bf.default)(mf),this.loop()}return Zd.prototype.attribute=function(){var mf="",Pf=void 0,Ff=this.currToken;for(this.position++;this.position<this.tokens.length&&this.currToken[0]!=="]";)mf+=this.tokens[this.position][1],this.position++;this.position===this.tokens.length&&!~mf.indexOf("]")&&this.error("Expected a closing square bracket.");var Lf=mf.split(/((?:[*~^ $ |]?=))([^]*)/),jf=Lf[0].split(/( \| )/g),xf={operator:Lf[1],value:Lf[2],source:{start:{line:Ff[2],column:Ff[3]},end:{line:this.currToken[2],column:this.currToken[3]}},sourceIndex:Ff[4]};if(jf.length>1?(jf[0]===""&&(jf[0]=!0),xf.attribute=this.parseValue(jf[2]),xf.namespace=this.parseNamespace(jf[0])):xf.attribute=this.parseValue(Lf[0]),Pf=new Fd.default(xf),Lf[2]){var Nf=Lf[2].split(/( \s +i \s *?) $ /),Bf=Nf[0].trim();Pf.value=this.lossy?Bf:Nf[0],Nf[1]&&(Pf.insensitive=!0,this.lossy||(Pf.raws.insensitive=Nf[1])),Pf.quoted=Bf[0]==="'"||Bf[0]==='"',Pf.raws.unquoted=Pf.quoted?Bf.slice(1,-1):Bf}this.newNode(Pf),this.position++},Zd.prototype.combinator=function(){if(this.currToken[1]==="|")return this.namespace();for(var mf=new Wd.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"?(mf.spaces.before=this.parseSpace(this.currToken[1]),mf.source.start.line=this.nextToken[2],mf.source.start.column=this.nextToken[3],mf.source.end.column=this.nextToken[3],mf.source.end.line=this.nextToken[2],mf.sourceIndex=this.nextToken[4]):this.prevToken&&this.prevToken[0]==="combinator"?mf.spaces.after=this.parseSpace(this.currToken[1]):this.currToken[0]==="combinator"?mf.value=this.currToken[1]:this.currToken[0]==="space"&&(mf.value=this.parseSpace(this.currToken[1]," ")),this.position++;return this.newNode(mf)},Zd.prototype.comma=function(){if(this.position===this.tokens.length-1){this.root.trailingComma=!0,this.position++;return}var mf=new _d.default;this.current.parent.append(mf),this.current=mf,this.position++},Zd.prototype.comment=function(){var mf=new Od.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(mf),this.position++},Zd.prototype.error=function(mf){throw new this.input.error(mf)},Zd.prototype.missin
` ?(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=Wd!==-1?Wd-1:_d}Ld=gd.slice(Td,kd+1),Rd=Ld.split( `
` ),Md=Rd.length-1,Md>0?(jd=Ed+Md,Pd=kd-Rd[Md].length):(jd=Ed,Pd=yd),ud.push(["comment",Ld,Ed,Td-yd,jd,kd-Pd,Td]),yd=Pd,Ed=jd,Td=kd}else if(Nd===35&&!rd.test(gd.slice(Td+1,Td+2)))kd=Td+1,ud.push(["#",gd.slice(Td,kd),Ed,Td-yd,Ed,kd-yd,Td]),Td=kd-1;else if((Nd===117||Nd===85)&&gd.charCodeAt(Td+1)===43){kd=Td+2;do kd+=1,Nd=gd.charCodeAt(kd);while(kd<_d&&od.test(gd.slice(kd,kd+1)));ud.push(["unicoderange",gd.slice(Td,kd),Ed,Td-yd,Ed,kd-yd,Td]),Td=kd-1}else if(Nd===47)kd=Td+1,ud.push(["operator",gd.slice(Td,kd),Ed,Td-yd,Ed,kd-yd,Td]),Td=kd-1;else{let Wd=ed;if(Nd>=48&&Nd<=57&&(Wd=td),Wd.lastIndex=Td+1,Wd.test(gd),Wd.lastIndex===0?kd=gd.length-1:kd=Wd.lastIndex-2,Wd===td||Nd===46){let zd=gd.charCodeAt(kd),Kd=gd.charCodeAt(kd+1),Qd=gd.charCodeAt(kd+2);(zd===101||zd===69)&&(Kd===45||Kd===43)&&Qd>=48&&Qd<=57&&(td.lastIndex=kd+2,td.test(gd),td.lastIndex===0?kd=gd.length-1:kd=td.lastIndex-2)}ud.push(["word",gd.slice(Td,kd+1),Ed,Td-yd,Ed,kd-yd,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(),gd=Cu(),_d=Nu(),yd=Ru(),Ed=qu $ 1(),Td=Uu(),Od=qs $ 1(),Ad=Ls(),Nd=Ds(),kd= $ u();function Id(Rd){return Rd.sort((Md,Ld)=>Md-Ld)}qa.exports=class{constructor(Rd,Md){let Ld={loose:!1};this.cache=[],this.input=Rd,this.options=Object.assign({},Ld,Md),this.position=0,this.unbalanced=0,this.root=new Ja;let jd=new ed;this.root.append(jd),this.current=jd,this.tokens=Td(Rd,this.options)}parse(){return this.loop()}colon(){let Rd=this.currToken;this.newNode(new rd({value:Rd[1],source:{start:{line:Rd[2],column:Rd[3]},end:{line:Rd[4],column:Rd[5]}},sourceIndex:Rd[6]})),this.position++}comma(){let Rd=this.currToken;this.newNode(new od({value:Rd[1],source:{start:{line:Rd[2],column:Rd[3]},end:{line:Rd[4],column:Rd[5]}},sourceIndex:Rd[6]})),this.position++}comment(){let Rd=!1,Md=this.currToken[1].replace(/ \/ \* | \* \/ /g,""),Ld;this.options.loose&&Md.startsWith("//")&&(Md=Md.substring(2),Rd=!0),Ld=new sd({value:Md,inline:Rd,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(Ld),this.position++}error(Rd,Md){throw new kd(Rd+ ` at line : $ { Md [ 2 ] } , column $ { Md [ 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 Rd=this.currToken[1],Md;if(Rd==="+"||Rd==="-"){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 Md=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(Md)}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"opera
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}' .
Expected it to be $ { ed } . ` }var Fr=class extends Error{constructor(qa){super(yl(qa));t1(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 ] ) } . ` );t1(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"
` ,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+ `
` :"")+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
` )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 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:yd})=>typeof yd=="string"?yd: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 yd=es(Ra),Ed=V([",",yd?E:A],rd);return q(yd?[E,Ed]:L(Ge(Ed)))}let od=Ra.map(({node:yd,isLast:Ed,index:Td})=>{var Od;let Ad=rd[Td];if(Rt $ 1(yd)&&yd.type==="value-comma_group"&&yd.groups&&yd.groups[0].type!=="value-paren_group"&&((Od=yd.groups[2])==null?void 0:Od.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&&yd.type==="value-comma_group"&&ee(yd.groups)){let kd=G(!1,yd.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,gd=ld||sd,_d=L([ed.open?Ja("open"):"",q([M,V(A,od)]),M,ed.close?Ja("close"):""],{shouldBreak:ud});return gd?ue(_d):_d}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),gd=cd.raws.after.trim();return gd.startsWith(";")&&(gd=gd.slice(1).trim()),[cd.frontMatter?[Ja("frontMatter"),E]:"",ud,gd? ` $ { gd } ` :"",cd.nodes.length>0?E:""]}case"css-comment":{let ud=cd.inline||cd.raws.inline,gd=qa.originalText.slice(N(cd),P(cd));return ud?gd.trimEnd():gd}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:gd}=cd.raws,_d=gd.trim(),yd=_d===":",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,!yd&&Se(_d)&&!((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,"")
` }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( `
` )}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),gd=useStorage("size",fontSizeOptions[2].value),_d=useStorage("color",colorOptions[0].value),yd=useStorage("codeBlockTheme",codeBlockThemeOptions[2].value),Ed=useStorage("legend",legendOptions[3].value),Td=gd.value.replace("px",""),Od=new WxRenderer({theme:customizeTheme(themeMap[cd.value],{fontSize:Td,color:_d.value}),fonts:ud.value,size:gd.value}),Ad=ref $ 1(null),Nd=useStorage("__editor_content",DEFAULT_CONTENT),kd=()=>{formatDoc(Ad.value.getValue()).then(wf=>{Nd.value=wf,Ad.value.setValue(wf)})},Id=()=>{const wf=yd.value,Of=document.querySelector("#hljs");if(Of)Of.setAttribute("href",wf);else{const $ f=document.createElement("link"); $ f.setAttribute("type","text/css"), $ f.setAttribute("rel","stylesheet"), $ f.setAttribute("href",wf), $ f.setAttribute("id","hljs"),document.head.appendChild( $ f)}},Rd=()=>{Id();const wf=Od;wf.reset(),wf.setOptions({status:od.value,legend:Ed.value}),marked $ 1.setOptions({renderer:wf});let Of=marked $ 1.parse(Ad.value.getValue(0));Of=Of.replace(/(style=".*?)"/,' $ 1;margin-top: 0"'),od.value&&(Of+=Od.buildFootnotes(),Of+=Od.buildAddition()),Ja.value&&(Of+= `
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-30 15:19:18 +08:00
` ),ld.value=Of},Md=ref $ 1(null),Ld=wf=>{Md.value.setValue(wf)},jd=useStorage("__css_content",DEFAULT_CSS_CONTENT),Pd=useStorage(addPrefix("css_content_config"),{active:"方案1",tabs:[{title:"方案1",name:"方案1",content:jd.value||DEFAULT_CSS_CONTENT}]});onMounted(()=>{jd.value=""});const Fd=()=>Pd.value.tabs.find(wf=>wf.name===Pd.value.active),Ud=wf=>{Pd.value.active=wf;const Of=Pd.value.tabs.find( $ f=> $ f.name===wf).content;Ld(Of)},Vd=wf=>{const Of=Fd();Of.title=wf,Of.name=wf,Pd.value.active=wf},qd=wf=>{Pd.value.tabs.push({name:wf,title:wf,content:DEFAULT_CSS_CONTENT}),Pd.value.active=wf,Ld(DEFAULT_CSS_CONTENT)},Wd=wf=>Pd.value.tabs.every(({name:Of})=>Of!==wf),zd=()=>{const wf=css2json(Md.value.getValue()),Of=customCssWithTemplate(wf,_d.value,customizeTheme(themeMap[cd.value],{fontSize:Td,color:_d.value}));Od.setOptions({theme:Of}),Rd()};onMounted(()=>{const wf=document.querySelector("#cssEditor");wf.value=Fd().content,Md.value=markRaw(CodeMirror.fromTextArea(wf,{mode:"css",theme:"style-mirror",lineNumbers:!1,lineWrapping:!0,matchBrackets:!0,autofocus:!0,extraKeys:{[ ` $ { shiftKey } - $ { altKey } - F ` ]:function( $ f){formatDoc( $ f.getValue(),"css").then(Wf=>{Fd().content=Wf, $ f.setValue(Wf)})}}})),Md.value.on("keyup",(Of, $ f)=>{( $ f.keyCode>=65&& $ f.keyCode<=90|| $ f.keyCode===189)&&Of.showHint( $ f)}),Md.value.on("update",()=>{zd(),Fd().content=Md.value.getValue()})});const Kd=()=>{od.value=!1,Ja.value=!0,cd.value=themeOptions[0].value,ud.value=fontFamilyOptions[0].value,ud.value=fontFamilyOptions[0].value,gd.value=fontSizeOptions[2].value,_d.value=colorOptions[0].value,yd.value=codeBlockThemeOptions[2].value,Ed.value=legendOptions[3].value,Pd.value={active:"方案 1",tabs:[{title:"方案 1",name:"方案 1",content:jd.value||DEFAULT_CSS_CONTENT}]},Md.value.setValue(DEFAULT_CSS_CONTENT),zd(),Rd()},Qd=wf=>(...Of)=>{wf(...Of),Rd()},hf=(wf,Of)=>{const $ f=themeMap[cd.value],Wf=wf.replace("px","");return customizeTheme( $ f,{fontSize:Wf,color:Of})},gf=Qd(wf=>{Od.setOptions({theme:customizeTheme(themeMap[wf],{fontSize:Td,color:_d.value})}),cd.value=wf}),bf=Qd(wf=>{Od.setOptions({fonts:wf}),ud.value=wf}),kf=Qd(wf=>{const Of=hf(wf,_d.value);Od.setOptions({size:wf,theme:Of}),gd.value=wf}),Cf=Qd(wf=>{const Of=hf(gd.value,wf);Od.setOptions({theme:Of}),_d.value=wf}),Ef=Qd(wf=>{yd.value=wf}),yf=Qd(wf=>{Ed.value=wf}),Mf=Qd(()=>{ed()}),Af=Qd(()=>{sd()}),Zd=()=>{exportHTML(),document.querySelector("#output").innerHTML=ld.value},mf=()=>{downloadMD(Ad.value.getValue())},Pf=()=>{const wf=document.body,Of=document.createElement("input");Of.type="file",Of.name="filename",Of.accept=".md",Of.onchange=()=>{const $ f=Of.files[0];if(! $ f)return;const Wf=new FileReader;Wf.readAsText( $ f),Wf.onload=Kf=>{Ad.value.setValue(Kf.target.result),ElMessage.success("文档导入成功")}},wf.appendChild(Of),Of.click(),wf.removeChild(Of)},Ff=()=>{ElMessageBox.confirm("此操作将丢失本地自定义样式,是否继续?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning",center:!0}).then(()=>{Kd(),ElMessage({type:"success",message:"样式重置成功~"})}).catch(()=>{Ad.value.focus()})},Lf=ref $ 1(!1),jf=useToggle(Lf),xf=ref $ 1(!1),Nf=useToggle(xf),Bf=ref $ 1(!1),Tf=useToggle(Bf);return{isShowCssEditor:Lf,toggleShowCssEditor:jf,isShowInsertFormDialog:xf,toggleShowInsertFormDialog:Nf,isShowUploadImgDialog:Bf,toggleShowUploadImgDialog:Tf,isDark:Ra,toggleDark:qa,isEditOnLeft:td,toggleEditOnLeft:rd,isMacCodeBlock:Ja,isCiteStatus:od,citeStatusChanged:Af,output:ld,editor:Ad,cssEditor:Md,theme:cd,fontFamily:ud,fontSize:gd,fontColor:_d,codeBlockTheme:yd,legend:Ed,editorRefresh:Rd,themeChanged:gf,fontChanged:bf,sizeChanged:kf,colorChanged:Cf,codeBlockThemeChanged:Ef,legendChanged:yf,macCodeBlockChanged:Mf,formatContent:kd,exportEditorContent2HTML:Zd,exportEditorContent2MD:mf,importMarkdownContent:Pf,resetStyleConfirm:Ff,editorContent:Nd,cssContentConfig:Pd,addCssContentTab:qd,validatorTabName:Wd,setCssEditorValue:Ld,tabChanged:Ud,renameTab:Vd}}),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-30 15:19:18 +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 ] ) , g 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 ] ) , _ 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 ] ) , y 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 ( M d , L d ) { f o r ( v a r j d = 0 ; j d < 1 6 ; j d + + ) { v a r P d = L d + j d , F d = M d [ P d ] ; M d [ P d ] = ( F d < < 8 | F d > > > 2 4 ) & 1 6 7 1 1 9 3 5 | ( F d < < 2 4 | F d > > > 8 ) & 4 2 7 8 2 5 5 3 6 0 } v a r U d = t h i s . _ h a s h . w o r d s , V d = y d . w o r d s , q d = E d . w o r d s , W d = c d . w o r d s , z d = u d . w o r d s , K d = g d . w o r d s , Q d = _ d . w o r d s , h f , g f , b f , k f , C f , E f , y f , M f , A f , Z d ; E f = h f = U d [ 0 ] , y f = g f = U d [ 1 ] , M f = b f = U d [ 2 ] , A f = k f = U d [ 3 ] , Z d = C f = U d [ 4 ] ; f o r ( v a r m f , j d = 0 ; j d < 8 0 ; j d + = 1 ) m f = h f + M d [ L d + W d [ j d ] ] | 0 , j d < 1 6 ? m f + = O d ( g f , b f , k f ) + V d [ 0 ] : j d < 3 2 ? m f + = A d ( g f , b f , k f ) + V d [ 1 ] : j d < 4 8 ? m f + = N d ( g f , b f , k f ) + V d [ 2 ] : j d < 6 4 ? m f + = k d ( g f , b f , k f ) + V d [ 3 ] : m f + = I d ( g f , b f , k f ) + V d [ 4 ] , m f = m f | 0 , m f = R d ( m f , K d [ j d ] ) , m f = m f + C f | 0 , h f = C f , C f = k f , k f = R d ( b f , 1 0 ) , b f = g f , g f = m f , m f = E f + M d [ L d + z d [ j d ] ] | 0 , j d < 1 6 ? m f + = I d ( y f , M f , A f ) + q d [ 0 ] : j d < 3 2 ? m f + = k d ( y f , M f , A f ) + q d [ 1 ] : j d < 4 8 ? m f + = N d ( y f , M f , A f ) + q d [ 2 ] : j d < 6 4 ? m f + = A d ( y f , M f , A f ) + q d [ 3 ] : m f + = O d ( y f , M f , A f ) + q d [ 4 ] , m f = m f | 0 , m f = R d ( m f , Q d [ j d ] ) , m f = m f + Z d | 0 , E f = Z d , Z d = A f , A f = R d ( M f , 1 0 ) , M f = y f , y f = m f ; m f = U d [ 1 ] + b f + A f | 0 , U d [ 1 ] = U d [ 2 ] + k f + Z d | 0 , U d [ 2 ] = U d [ 3 ] + C f + E f | 0 , U d [ 3 ] = U d [ 4 ] + h f + y f | 0 , U d [ 4 ] = U d [ 0 ] + g f + M f | 0 , U d [ 0 ] = m f } , _ d o F i n a l i z e : f u n c t i o n ( ) { v a r M d = t h i s . _ d a t a , L d = M d . w o r d s , j d = t h i s . _ n D a t a B y t e s * 8 , P d = M d . s i g B y t e s * 8 ; L d [ P d > > > 5 ] | = 1 2 8 < < 2 4 - P d % 3 2 , L d [ ( P d + 6 4 > > > 9 < < 4 ) + 1 4 ] = ( j d < < 8 | j d > > > 2 4 ) & 1 6 7 1 1 9 3 5 | ( j d < < 2 4 | j d > > > 8 ) & 4 2 7 8 2 5 5 3 6 0 , M d . s i g B y t e s = ( L 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 F d = t h i s . _ h a s h , U d = F d . w o r d s , V d = 0 ; V d < 5 ; V d + + ) { v a r q d = U d [ V d ] ; U d [ V 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 F d } , c l o n e : f u n c t i o n ( ) { v a r M d = s d . c l o n e . c a l l ( t h i s ) ; r e t u r n M d . _ h a s h = t h i s . _ h a s h . c l o n e ( ) , M d } } ) ; f u n c t i o n O d ( M d , L d , j d ) { r e t u r n M d ^ L d ^ j d } f u n c t i o n A d ( M d , L d , j d ) { r e t u r n M d & L d | ~ M d & j d } f u n c t i o n N d ( M d , L d , j d ) { r e t u r n ( M d | ~ L d ) ^ j d } f u n c t i o n k d ( M d , L d , j d ) { r e t u r n M d & j d | L d & ~ j d } f u n c t i o n I d ( M d , L d , j d ) { r e t u r n M d ^ ( L d | ~ j d ) } f u n c t i o n R d ( M d , L d ) { r e t u r n M d < < L d | M d > > > 3 2 - L 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 g d = c d . b l o c k S i z e , _ d = g d * 4 ; u d . s i g B y t e s > _ 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 y 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 = y d . w o r d s , O d = E d . w o r d s , A d = 0 ; A d < g d ; A d + + ) T d [ A d ] ^ = 1 5 4 9 5 5 6 8 2 8 , O d [ A d ] ^ = 9 0 9 5 2 2 4 8 6 ; y d . s i g B y t e s = E d . s i g B y t e s = _ 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 , g d = u d . f i n a l i z e ( c d ) ; u d . r e s e t ( ) ; v a r _ 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 ( g d ) ) ; r e t u r n _ 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-30 15:19:18 +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 , g d = t h i s . _ i v , _ d = t h i s . _ c o u n t e r ; g d & & ( _ d = t h i s . _ c o u n t e r = g d . s l i c e ( 0 ) , t h i s . _ i v = v o i d 0 ) , r d ( _ d ) ; v a r y d = _ d . s l i c e ( 0 ) ; c d . e n c r y p t B l o c k ( y d , 0 ) ; f o r ( v a r E d = 0 ; E d < u d ; E d + + ) s d [ l d + E d ] ^ = y 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 g d = 0 ; g d < l d ; g d + + ) r d [ o d + g d ] ^ = u d [ g 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
2024-08-27 22:31:52 +08:00
< BucketLoggingStatus >
< LoggingEnabled >
2024-08-30 15:19:18 +08:00
< TargetBucket > ` .concat(Nd, ` < / T a r g e t B u c k e t >
` ),kd&&(Md+="<TargetPrefix>".concat(kd, ` < / T a r g e t P r e f i x >
` )),Md+= ` < / L o g g i n g E n a b l e d >
< / B u c k e t L o g g i n g S t a t u s > ` , R d . c o n t e n t = M d , R d . m i m e = " x m l " , R d . s u c c e s s S t a t u s e s = [ 2 0 0 ] , P d . n e x t = 9 , t h i s . r e q u e s t ( R d ) ; c a s e 9 : r e t u r n L d = P d . s e n t , P d . a b r u p t ( " r e t u r n " , { r e s : L d . r e s } ) ; c a s e 1 1 : c a s e " e n d " : r e t u r n P d . s t o p ( ) } } , A d , t h i s ) } ) ) ; f u n c t i o n O d ( A d , N d , k d ) { r e t u r n T d . a p p l y ( t h i s , a r g u m e n t s ) } r e t u r n O d } ( ) , _ d . g e t B u c k e t L o g g i n g = f u n c t i o n ( ) { v a r T d = ( 0 , l d . d e f a u l t ) ( s d . d e f a u l t . m a r k ( f u n c t i o n A d ( N d , k d ) { v a r I d , R d , M d ; r e t u r n s d . d e f a u l t . w r a p ( f u n c t i o n ( j d ) { f o r ( ; ; ) s w i t c h ( j d . p r e v = j d . n e x t ) { c a s e 0 : r e t u r n I d = t h i s . _ b u c k e t R e q u e s t P a r a m s ( " G E T " , N d , " l o g g i n g " , k d ) , I d . s u c c e s s S t a t u s e s = [ 2 0 0 ] , I d . x m l R e s p o n s e = ! 0 , j d . n e x t = 5 , t h i s . r e q u e s t ( I d ) ; c a s e 5 : r e t u r n R d = j d . s e n t , M d = R d . d a t a . L o g g i n g E n a b l e d , j d . a b r u p t ( " r e t u r n " , { e n a b l e : ! ! M d , p r e f i x : M d & & M d . T a r g e t P r e f i x | | n u l l , r e s : R d . r e s } ) ; c a s e 8 : c a s e " e n d " : r e t u r n j d . s t o p ( ) } } , A d , t h i s ) } ) ) ; f u n c t i o n O d ( A d , N d ) { r e t u r n T d . a p p l y ( t h i s , a r g u m e n t s ) } r e t u r n O d } ( ) , _ d . d e l e t e B u c k e t L o g g i n g = f u n c t i o n ( ) { v a r T d = ( 0 , l d . d e f a u l t ) ( s d . d e f a u l t . m a r k ( f u n c t i o n A d ( N d , k d ) { v a r I d , R d ; r e t u r n s d . d e f a u l t . w r a p ( f u n c t i o n ( L d ) { f o r ( ; ; ) s w i t c h ( L d . p r e v = L d . n e x t ) { c a s e 0 : r e t u r n I d = t h i s . _ b u c k e t R e q u e s t P a r a m s ( " D E L E T E " , N d , " l o g g i n g " , k d ) , I d . s u c c e s s S t a t u s e s = [ 2 0 4 , 2 0 0 ] , L d . n e x t = 4 , t h i s . r e q u e s t ( I d ) ; c a s e 4 : r e t u r n R d = L d . s e n t , L d . a b r u p t ( " r e t u r n " , { r e s : R d . r e s } ) ; c a s e 6 : c a s e " e n d " : r e t u r n L d . s t o p ( ) } } , A d , t h i s ) } ) ) ; f u n c t i o n O d ( A d , N d ) { r e t u r n T d . a p p l y ( t h i s , a r g u m e n t s ) } r e t u r n O d } ( ) , _ d . p u t B u c k e t C O R S = f u n c t i o n ( ) { v a r T d = ( 0 , l d . d e f a u l t ) ( s d . d e f a u l t . m a r k ( f u n c t i o n A d ( N d , k d , I d ) { v a r R d , M d , L d , j d , P d , F d , U d , V d , q d , W d ; r e t u r n s d . d e f a u l t . w r a p ( f u n c t i o n ( K d ) { f o r ( ; ; ) s w i t c h ( K d . p r e v = K d . n e x t ) { c a s e 0 : f o r ( k d = k d | | [ ] , c d ( k d . l e n g t h , " r u l e s i s r e q u i r e d " ) , k d . f o r E a c h ( f u n c t i o n ( Q d ) { c d ( Q d . a l l o w e d O r i g i n , " a l l o w e d O r i g i n i s r e q u i r e d " ) , c d ( Q d . a l l o w e d M e t h o d , " a l l o w e d M e t h o d i s r e q u i r e d " ) } ) , R d = t h i s . _ b u c k e t R e q u e s t P a r a m s ( " P U T " , N d , " c o r s " , I d ) , M d = ` < ? x m l v e r s i o n = " 1 . 0 " e n c o d i n g = " U T F - 8 " ? >
< CORSConfiguration > ` ,Ld=function(hf){Md+="<AllowedOrigin>".concat(hf,"</AllowedOrigin>")},jd=function(hf){Md+="<AllowedMethod>".concat(hf,"</AllowedMethod>")},Pd=function(hf){Md+="<AllowedHeader>".concat(hf,"</AllowedHeader>")},Fd=function(hf){Md+="<ExposeHeader>".concat(hf,"</ExposeHeader>")},Ud=0,Vd=kd.length;Ud<Vd;Ud++)qd=kd[Ud],Md+="<CORSRule>",Ed(qd.allowedOrigin).forEach(Ld),Ed(qd.allowedMethod).forEach(jd),Ed(qd.allowedHeader).forEach(Pd),Ed(qd.exposeHeader).forEach(Fd),qd.maxAgeSeconds&&(Md+="<MaxAgeSeconds>".concat(qd.maxAgeSeconds,"</MaxAgeSeconds>")),Md+="</CORSRule>";return Md+="</CORSConfiguration>",Rd.content=Md,Rd.mime="xml",Rd.successStatuses=[200],Kd.next=16,this.request(Rd);case 16:return Wd=Kd.sent,Kd.abrupt("return",{res:Wd.res});case 18:case"end":return Kd.stop()}},Ad,this)}));function Od(Ad,Nd,kd){return Td.apply(this,arguments)}return Od}(),_d.getBucketCORS=function(){var Td=(0,ld.default)(sd.default.mark(function Ad(Nd,kd){var Id,Rd,Md,Ld;return sd.default.wrap(function(Pd){for(;;)switch(Pd.prev=Pd.next){case 0:return Id=this._bucketRequestParams("GET",Nd,"cors",kd),Id.successStatuses=[200],Id.xmlResponse=!0,Pd.next=5,this.request(Id);case 5:return Rd=Pd.sent,Md=[],Rd.data&&Rd.data.CORSRule&&(Ld=Rd.data.CORSRule,yd(Ld)||(Ld=[Ld]),Ld.forEach(function(Fd){var Ud={};Object.keys(Fd).forEach(function(Vd){Ud[Vd.slice(0,1).toLowerCase()+Vd.slice(1,Vd.length)]=Fd[Vd]}),Md.push(Ud)})),Pd.abrupt("return",{rules:Md,res:Rd.res});case 9:case"end":return Pd.stop()}},Ad,this)}));function Od(Ad,Nd){return Td.apply(this,arguments)}return Od}(),_d.deleteBucketCORS=function(){var Td=(0,ld.default)(sd.default.mark(function Ad(Nd,kd){var Id,Rd;return sd.default.wrap(function(Ld){for(;;)switch(Ld.prev=Ld.next){case 0:return Id=this._bucketRequestParams("DELETE",Nd,"cors",kd),Id.successStatuses=[204],Ld.next=4,this.request(Id);case 4:return Rd=Ld.sent,Ld.abrupt("return",{res:Rd.res});case 6:case"end":return Ld.stop()}},Ad,this)}));function Od(Ad,Nd){return Td.apply(this,arguments)}return Od}(),_d.putBucketReferer=function(){var Td=(0,ld.default)(sd.default.mark(function Ad(Nd,kd,Id,Rd){var Md,Ld,jd,Pd;return sd.default.wrap(function(Ud){for(;;)switch(Ud.prev=Ud.next){case 0:if(Md=this._bucketRequestParams("PUT",Nd,"referer",Rd),Ld= ` < ? xml version = "1.0" encoding = "UTF-8" ? >
2024-08-27 22:31:52 +08:00
< RefererConfiguration >
2024-08-30 15:19:18 +08:00
` ,Ld+=" <AllowEmptyReferer>".concat(kd?"true":"false", ` < / A l l o w E m p t y R e f e r e r >
` ),Id&&Id.length>0){for(Ld+= ` < RefererList >
` ,jd=0;jd<Id.length;jd++)Ld+=" <Referer>".concat(Id[jd], ` < / R e f e r e r >
` );Ld+= ` < / R e f e r e r L i s t >
` }else Ld+= ` < RefererList / >
` ;return Ld+="</RefererConfiguration>",Md.content=Ld,Md.mime="xml",Md.successStatuses=[200],Ud.next=10,this.request(Md);case 10:return Pd=Ud.sent,Ud.abrupt("return",{res:Pd.res});case 12:case"end":return Ud.stop()}},Ad,this)}));function Od(Ad,Nd,kd,Id){return Td.apply(this,arguments)}return Od}(),_d.getBucketReferer=function(){var Td=(0,ld.default)(sd.default.mark(function Ad(Nd,kd){var Id,Rd,Md;return sd.default.wrap(function(jd){for(;;)switch(jd.prev=jd.next){case 0:return Id=this._bucketRequestParams("GET",Nd,"referer",kd),Id.successStatuses=[200],Id.xmlResponse=!0,jd.next=5,this.request(Id);case 5:return Rd=jd.sent,Md=Rd.data.RefererList.Referer||null,Md&&(yd(Md)||(Md=[Md])),jd.abrupt("return",{allowEmpty:Rd.data.AllowEmptyReferer==="true",referers:Md,res:Rd.res});case 9:case"end":return jd.stop()}},Ad,this)}));function Od(Ad,Nd){return Td.apply(this,arguments)}return Od}(),_d.deleteBucketReferer=function(){var Td=(0,ld.default)(sd.default.mark(function Ad(Nd,kd){return sd.default.wrap(function(Rd){for(;;)switch(Rd.prev=Rd.next){case 0:return Rd.next=2,this.putBucketReferer(Nd,!0,null,kd);case 2:return Rd.abrupt("return",Rd.sent);case 3:case"end":return Rd.stop()}},Ad,this)}));function Od(Ad,Nd){return Td.apply(this,arguments)}return Od}(),_d._bucketRequestParams=function(Od,Ad,Nd,kd){return{method:Od,bucket:Ad,subres:Nd,additionalHeaders:kd&&kd.additionalHeaders,timeout:kd&&kd.timeout,ctx:kd&&kd.ctx}}},{"../common/utils/checkBucketName":52,"@babel/runtime/helpers/asyncToGenerator":82,"@babel/runtime/helpers/interopRequireDefault":84,"@babel/runtime/regenerator":93,assert:95,"core-js/modules/es.array.slice.js":319,"core-js/modules/es.object.keys.js":330,"core-js/modules/es.object.to-string.js":331,"core-js/modules/es.regexp.to-string.js":341,"core-js/modules/web.dom-collections.for-each.js":382}],3:[function(ed,td,rd){(function(od,sd){(function(){var ld=ed("@babel/runtime/helpers/interopRequireDefault"),cd=ld(ed("@babel/runtime/regenerator")),ud=ld(ed("@babel/runtime/helpers/asyncToGenerator"));ed("core-js/modules/es.function.name.js"),ed("core-js/modules/es.object.assign.js"),ed("core-js/modules/es.array.includes.js"),ed("core-js/modules/es.regexp.exec.js"),ed("core-js/modules/es.string.replace.js"),ed("core-js/modules/es.array.concat.js"),ed("core-js/modules/es.symbol.js"),ed("core-js/modules/es.symbol.description.js"),ed("core-js/modules/es.array.slice.js"),ed("core-js/modules/es.object.to-string.js"),ed("core-js/modules/es.promise.js"),ed("core-js/modules/es.regexp.to-string.js");var gd=ed("debug")("ali-oss"),_d=ed("xml2js"),yd=ed("agentkeepalive"),Ed=ed("merge-descriptors"),Td=ed("platform"),Od=ed("utility"),Ad=ed("urllib"),Nd=ed("./version"),kd=ed("bowser"),Id=ed("../common/signUtils"),Rd=ed("../common/client/initOptions"),Md=ed("../common/utils/createRequest"),Ld=Md.createRequest,jd=ed("../common/utils/encoder"),Pd=jd.encoder,Fd=ed("../common/client/getReqUrl"),Ud=Fd.getReqUrl,Vd=ed("../common/utils/setSTSToken"),qd=Vd.setSTSToken,Wd=ed("../common/utils/retry"),zd=Wd.retry,Kd=ed("../common/utils/isFunction"),Qd=Kd.isFunction,hf=ed("../common/utils/getStandardRegion"),gf=hf.getStandardRegion,bf=new yd;function kf(){var Zd=Td.name,mf=Td.version;Zd&&Zd.toLowerCase&&Zd.toLowerCase()==="ie"&&mf.split(".")[0]<10&&console.warn("ali-oss does not support the current browser")}function Cf(){return location&&location.protocol==="https:"}function Ef(Zd,mf){if(kf(),!(this instanceof Ef))return new Ef(Zd,mf);Zd&&Zd.inited?this.options=Zd:this.options=Ef.initOptions(Zd),this.options.cancelFlag=!1,this.options.urllib?this.urllib=this.options.urllib:(this.urllib=Ad,this.agent=this.options.agent||bf),this.ctx=mf,this.userAgent=this._getUserAgent(),this.stsTokenFreshTime=new Date,this.options.amendTimeSkewed=0}td.exports=Ef,Ef.initOptions=function(mf){mf.stsToken||console.warn("Please use STS Token for safety, see more details at https://help.aliyun.com/document_detail/32077.html");var Pf=Object.assign({secure:Cf(),useFetch:!1},mf);return Rd(Pf)};var yf=Ef.prototype;yf.debug=gd,Ed(yf,ed("./object")),Ed(yf,ed("./bucket")),Ed(yf,
raw xml : ` .concat(Kf),hh.t1.status=Ff.status,hh.t1.requestId=Ff.headers["x-oss-request-id"],hh.abrupt("return",hh.t1);case 16:qf=Df.Message||"unknow request error, status: ".concat(Ff.status),Df.Condition&&(qf+=" (condition: ".concat(Df.Condition,")")),jf=new Error(qf),jf.name=Df.Code?"".concat(Df.Code,"Error"):"UnknownError",jf.status=Ff.status,jf.code=Df.Code,jf.ecCode=Df.EC,jf.requestId=Df.RequestId,jf.hostId=Df.HostId,jf.serverTime=Df.ServerTime;case 26:case"end":return hh.stop()}},Wf,null,[[0,9]])}));return function(Kf){return $ f.apply(this,arguments)}}(),!(!Ff.data||!Ff.data.length)){Of.next=37;break}if(!(Ff.status===-1||Ff.status===-2)){Of.next=10;break}jf=new Error(Ff.message),jf.name=Ff.name,jf.status=Ff.status,jf.code=Ff.name,Of.next=35;break;case 10:if(Ff.status!==404){Of.next=17;break}jf=new Error("Object not exists"),jf.name="NoSuchKeyError",jf.status=404,jf.code="NoSuchKey",Of.next=33;break;case 17:if(Ff.status!==412){Of.next=24;break}jf=new Error("Pre condition failed"),jf.name="PreconditionFailedError",jf.status=412,jf.code="PreconditionFailed",Of.next=33;break;case 24:if(jf=new Error("Unknow error, status: ".concat(Ff.status)),jf.name="UnknownError",jf.status=Ff.status,jf.res=Ff,Nf=Ff.headers["x-oss-err"],!Nf){Of.next=33;break}return Bf=atob(Nf),Of.next=33,xf(Bf);case 33:jf.requestId=Ff.headers["x-oss-request-id"],jf.host="";case 35:Of.next=41;break;case 37:return Tf=String(Ff.data),this.debug("request response error data: %s",Tf,"error"),Of.next=41,xf(Tf);case 41:return this.debug("generate error %j",jf,"error"),Of.abrupt("return",jf);case 43:case"end":return Of.stop()}},Pf,this)}));function mf(Pf){return Zd.apply(this,arguments)}return mf}()}).call(this)}).call(this,{isBuffer:ed("../../node_modules/is-buffer/index.js")},ed("_process"))},{"../../node_modules/is-buffer/index.js":411,"../common/bucket/abortBucketWorm":7,"../common/bucket/completeBucketWorm":8,"../common/bucket/deleteBucketInventory":9,"../common/bucket/deleteBucketLifecycle":10,"../common/bucket/deleteBucketWebsite":11,"../common/bucket/extendBucketWorm":12,"../common/bucket/getBucketInventory":13,"../common/bucket/getBucketLifecycle":14,"../common/bucket/getBucketVersioning":15,"../common/bucket/getBucketWebsite":16,"../common/bucket/getBucketWorm":17,"../common/bucket/initiateBucketWorm":18,"../common/bucket/listBucketInventory":19,"../common/bucket/putBucketInventory":20,"../common/bucket/putBucketLifecycle":21,"../common/bucket/putBucketVersioning":22,"../common/bucket/putBucketWebsite":23,"../common/client/getReqUrl":25,"../common/client/initOptions":26,"../common/multipart":30,"../common/multipart-copy":29,"../common/parallel":50,"../common/signUtils":51,"../common/utils/createRequest":57,"../common/utils/encoder":61,"../common/utils/getStandardRegion":64,"../common/utils/isFunction":71,"../common/utils/retry":77,"../common/utils/setSTSToken":79,"./bucket":2,"./managed-upload":4,"./object":5,"./version":6,"@babel/runtime/helpers/asyncToGenerator":82,"@babel/runtime/helpers/interopRequireDefault":84,"@babel/runtime/regenerator":93,_process:540,agentkeepalive:94,bowser:101,"core-js/modules/es.array.concat.js":310,"core-js/modules/es.array.includes.js":315,"core-js/modules/es.array.slice.js":319,"core-js/modules/es.function.name.js":322,"core-js/modules/es.object.assign.js":325,"core-js/modules/es.object.to-string.js":331,"core-js/modules/es.promise.js":335,"core-js/modules/es.regexp.exec.js":340,"core-js/modules/es.regexp.to-string.js":341,"core-js/modules/es.string.replace.js":347,"core-js/modules/es.symbol.description.js":353,"core-js/modules/es.symbol.js":356,debug:538,"merge-descriptors":430,platform:442,urllib:548,utility:547,xml2js:498}],4:[function(ed,td,rd){(function(od){(function(){var sd=ed("@babel/runtime/helpers/interopRequireDefault"),ld=sd(ed("@babel/runtime/regenerator"));ed("core-js/modules/es.function.name.js"),ed("core-js/modules/es.object.to-string.js"),ed("core-js/modules/es.promise.js"),ed("core-js/modules/es.array.from.js"),ed("core-js/modules/es.string.iterator.js"),ed("core-js/modules/es.array.map.js"),ed("cor
2024-08-27 22:31:52 +08:00
< CompleteMultipartUpload >
2024-08-30 15:19:18 +08:00
` ,Vd=0;Vd<Fd.length;Vd++)qd=Fd[Vd],Ud+= ` < Part >
` ,Ud+="<PartNumber>".concat(qd.number, ` < / P a r t N u m b e r >
` ),Ud+="<ETag>".concat(qd.etag, ` < / E T a g >
` ),Ud+= ` < / P a r t >
` ;return Ud+="</CompleteMultipartUpload>",Pd=Pd||{},Wd={},Wd=yd(Pd,function(bf){if(Td(bf))return null}),Wd.subres={uploadId:Ld},Wd.headers=Ad(Wd.headers,["x-oss-server-side-encryption","x-oss-storage-class"]),zd=this._objectRequestParams("POST",Md,Wd),gd.encodeCallback(zd,Wd),zd.mime="xml",zd.content=Ud,zd.headers&&zd.headers["x-oss-callback"]||(zd.xmlResponse=!0),zd.successStatuses=[200],gf.next=17,this.request(zd);case 17:if(Kd=gf.sent,!Pd.progress){gf.next=21;break}return gf.next=21,Pd.progress(1,null,Kd.res);case 21:return Qd={res:Kd.res,bucket:zd.bucket,name:Md,etag:Kd.res.headers.etag},zd.headers&&zd.headers["x-oss-callback"]&&(Qd.data=JSON.parse(Kd.data.toString())),gf.abrupt("return",Qd);case 24:case"end":return gf.stop()}},Rd,this)}));function Id(Rd,Md,Ld,jd){return kd.apply(this,arguments)}return Id}(),Nd._uploadPart=function(){var kd=(0,cd.default)(ld.default.mark(function Rd(Md,Ld,jd,Pd,Fd){var Ud,Vd,qd,Wd;return ld.default.wrap(function(Kd){for(;;)switch(Kd.prev=Kd.next){case 0:return Fd=Fd||{},Ud={},ud(Fd).to(Ud),Ud.headers=Ud.headers||{},Ud.headers["Content-Length"]=Pd.size,Ud.headers=Ad(Ud.headers,["x-oss-server-side-encryption","x-oss-storage-class"]),Ud.subres={partNumber:jd,uploadId:Ld},Vd=this._objectRequestParams("PUT",Md,Ud),Vd.mime=Ud.mime,qd=od&&od.browser,qd?Vd.content=Pd.content:Vd.stream=Pd.stream,Vd.successStatuses=[200],Vd.disabledMD5=Fd.disabledMD5,Kd.next=15,this.request(Vd);case 15:if(Wd=Kd.sent,Wd.res.headers.etag){Kd.next=18;break}throw new Error( ` Please set the etag of expose - headers in OSS
https : //help.aliyun.com/document_detail/32069.html`);case 18:return Pd.stream&&(Pd.stream=null,Vd.stream=null),Kd.abrupt("return",{name:Md,etag:Wd.res.headers.etag,res:Wd.res});case 20:case"end":return Kd.stop()}},Rd,this)}));function Id(Rd,Md,Ld,jd,Pd){return kd.apply(this,arguments)}return Id}()}).call(this)}).call(this,ed("_process"))},{"./callback":24,"./utils/deepCopy":59,"./utils/isBuffer":68,"./utils/omit":76,"@babel/runtime/helpers/asyncToGenerator":82,"@babel/runtime/helpers/interopRequireDefault":84,"@babel/runtime/regenerator":93,_process:540,"copy-to":107,"core-js/modules/es.array.concat.js":310,"core-js/modules/es.array.filter.js":312,"core-js/modules/es.array.map.js":318,"core-js/modules/es.array.sort.js":320,"core-js/modules/es.object.keys.js":330,"core-js/modules/es.object.to-string.js":331,"core-js/modules/es.regexp.to-string.js":341}],31:[function(ed,td,rd){var od=ed("@babel/runtime/helpers/interopRequireDefault"),sd=od(ed("@babel/runtime/regenerator"));ed("core-js/modules/es.regexp.exec.js");var ld=od(ed("@babel/runtime/helpers/asyncToGenerator")),cd=ed("url"),ud=ed("utility"),gd=ed("copy-to"),_d=ed("../../common/signUtils"),yd=ed("../utils/isIP"),Ed=yd.isIP,Td=ed("../utils/setSTSToken"),Od=Td.setSTSToken,Ad=ed("../utils/isFunction"),Nd=Ad.isFunction,kd=rd;kd.asyncSignatureUrl=function(){var Id=(0,ld.default)(sd.default.mark(function Md(Ld,jd){var Pd,Fd,Ud,Vd,qd,Wd,zd=arguments;return sd.default.wrap(function(Qd){for(;;)switch(Qd.prev=Qd.next){case 0:if(Pd=zd.length>2&&zd[2]!==void 0?zd[2]:!0,!Ed(this.options.endpoint.hostname)){Qd.next=3;break}throw new Error("can not get the object URL when endpoint is IP");case 3:if(!(Pd&&/^\?/.test(Ld))){Qd.next=5;break}throw new Error("Invalid object name ".concat(Ld));case 5:if(jd=jd||{},Ld=this._objectName(Ld),jd.method=jd.method||"GET",Fd=ud.timestamp()+(jd.expires||1800),Ud={bucket:this.options.bucket,object:Ld},Vd=this._getResource(Ud),!(this.options.stsToken&&Nd(this.options.refreshSTSToken))){Qd.next=14;break}return Qd.next=14,Od.call(this);case 14:return this.options.stsToken&&(jd["security-token"]=this.options.stsToken),qd=_d._signatureForURL(this.options.accessKeySecret,jd,Vd,Fd),Wd=cd.parse(this._getReqUrl(Ud)),Wd.query={OSSAccessKeyId:this.options.accessKeyId,Expires:Fd,Signature:qd.Signature},gd(qd.subResource).to(Wd.query),Qd.abrupt("return",Wd.format());case 20:case"end":return Qd.stop()}},Md,this)}));function Rd(Md,Ld){return Id.apply(this,arguments)}return Rd}()},{"../../common/signUtils":51,"../utils/isFunction":71,"../utils/isIP":72,"../utils/setSTSToken":79,"@babel/runtime/helpers/asyncToGenerator":82,"@babel/runtime/helpers/interopRequireDefault":84,"@babel/runtime/regenerator":93,"copy-to":107,"core-js/modules/es.regexp.exec.js":340,url:545,utility:547}],32:[function(ed,td,rd){var od=ed("@babel/runtime/helpers/interopRequireDefault"),sd=od(ed("@babel/runtime/regenerator"));ed("core-js/modules/es.object.to-string.js"),ed("core-js/modules/web.dom-collections.for-each.js"),ed("core-js/modules/es.object.keys.js"),ed("core-js/modules/es.array.find.js"),ed("core-js/modules/es.array.includes.js"),ed("core-js/modules/es.array.concat.js"),ed("core-js/modules/es.regexp.exec.js"),ed("core-js/modules/es.string.replace.js");var ld=od(ed("@babel/runtime/helpers/typeof")),cd=od(ed("@babel/runtime/helpers/asyncToGenerator")),ud=ed("../utils/checkBucketName"),gd=ud.checkBucketName,_d=rd,yd=["content-type","content-encoding","content-language","content-disposition","cache-control","expires"];_d.copy=function(){var Ed=(0,cd.default)(sd.default.mark(function Od(Ad,Nd,kd,Id){var Rd,Md,Ld;return sd.default.wrap(function(Pd){for(;;)switch(Pd.prev=Pd.next){case 0:return(0,ld.default)(kd)==="object"&&(Id=kd),Id=Id||{},Id.headers=Id.headers||{},Object.keys(Id.headers).forEach(function(Fd){Id.headers["x-oss-copy-source-".concat(Fd.toLowerCase())]=Id.headers[Fd]}),(Id.meta||Object.keys(Id.headers).find(function(Fd){return yd.includes(Fd.toLowerCase())}))&&(Id.headers["x-oss-metadata-directive"]="REPLACE"),this._convertMetaToHeaders(Id.meta,Id.headers),Nd=this._getSour
` )},rd.computeSignature=function(Ad,Nd){var kd=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"utf-8",Id=cd.createHmac("sha1",Ad);return Id.update(od.from(Nd,kd)).digest("base64")},rd.authorization=function(Ad,Nd,kd,Id){return"OSS ".concat(Ad,":").concat(this.computeSignature(Nd,kd,Id))},rd.fixAdditionalHeaders=function(Od){if(!Od)return[];var Ad="x-oss-";return(0,ld.default)(new Set(Od.map(function(Nd){return Nd.toLowerCase()}))).filter(function(Nd){return Nd!=="content-type"&&Nd!=="content-md5"&&!Nd.startsWith(Ad)}).sort()},rd.getCanonicalRequest=function(Ad,Nd,kd,Id,Rd){var Md=yd(Nd.headers),Ld=Nd.queries||{},jd="x-oss-";if(Id&&!kd)throw Error("Please ensure that bucketName is passed into getCanonicalRequest.");var Pd=[Ad.toUpperCase(),Td("/".concat(kd?"".concat(kd,"/"):"").concat(Id||"")).replace(/%2F/g,"/")];Pd.push(gd.stringify(Ld,{encoder:Td,sort:function(qd,Wd){return qd.localeCompare(Wd)},strictNullHandling:!0})),Rd&&Rd.forEach(function(Vd){if(!Object.prototype.hasOwnProperty.call(Md,Vd))throw Error("Can't find additional header ".concat(Vd," in request headers."))});var Fd=new Set(Rd);Object.keys(Md).forEach(function(Vd){(Vd==="content-type"||Vd==="content-md5"||Vd.startsWith(jd))&&Fd.add(Vd)});var Ud="".concat((0,ld.default)(Fd).sort().map(function(Vd){return"".concat(Vd,":").concat(ud.string(Md[Vd])?Md[Vd].trim():Md[Vd], `
` )}).join(""));return Pd.push(Ud),Rd.length>0?Pd.push(Rd.join(";")):Pd.push(""),Pd.push(Md["x-oss-content-sha256"]||"UNSIGNED-PAYLOAD"),Pd.join( `
` )},rd.getStringToSign=function(Ad,Nd,kd){var Id=["OSS4-HMAC-SHA256",Nd,"".concat(Nd.split("T")[0],"/").concat(Ad,"/oss/aliyun_v4_request"),cd.createHash("sha256").update(kd).digest("hex")];return Id.join( `
` )},rd.getSignatureV4=function(Ad,Nd,kd,Id){var Rd=cd.createHmac("sha256","aliyun_v4".concat(Ad)).update(Nd).digest(),Md=cd.createHmac("sha256",Rd).update(kd).digest(),Ld=cd.createHmac("sha256",Md).update("oss").digest(),jd=cd.createHmac("sha256",Ld).update("aliyun_v4_request").digest(),Pd=cd.createHmac("sha256",jd).update(Id).digest("hex");return Pd},rd.authorizationV4=function(Ad,Nd,kd,Id,Rd,Md,Ld,jd){var Pd=arguments.length>8&&arguments[8]!==void 0?arguments[8]:"utf-8",Fd=this.fixAdditionalHeaders(jd),Ud={};Object.entries(Rd.headers).forEach(function(hf){Ud[hf[0]]=ud.string(hf[1])?od.from(hf[1],Pd).toString():hf[1]});var Vd=Ud["x-oss-date"]||Rd.queries&&Rd.queries["x-oss-date"],qd=this.getCanonicalRequest(Id,{headers:Ud,queries:Rd.queries},Md,Ld,Fd),Wd=this.getStringToSign(kd,Vd,qd),zd=Vd.split("T")[0],Kd=this.getSignatureV4(Nd,zd,kd,Wd),Qd=Fd.length>0?"AdditionalHeaders=".concat(Fd.join(";"),","):"";return"OSS4-HMAC-SHA256 Credential=".concat(Ad,"/").concat(zd,"/").concat(kd,"/oss/aliyun_v4_request,").concat(Qd,"Signature=").concat(Kd)},rd._signatureForURL=function(Ad){var Nd=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},kd=arguments.length>2?arguments[2]:void 0,Id=arguments.length>3?arguments[3]:void 0,Rd=arguments.length>4?arguments[4]:void 0,Md={},Ld=Nd.subResource,jd=Ld===void 0?{}:Ld;if(Nd.process){var Pd="x-oss-process";jd[Pd]=Nd.process}if(Nd.trafficLimit){var Fd="x-oss-traffic-limit";jd[Fd]=Nd.trafficLimit}if(Nd.response&&Object.keys(Nd.response).forEach(function(Wd){var zd="response-".concat(Wd.toLowerCase());jd[zd]=Nd.response[Wd]}),Object.keys(Nd).forEach(function(Wd){var zd=Wd.toLowerCase(),Kd=Nd[Wd];zd.indexOf("x-oss-")===0?Md[zd]=Kd:(zd.indexOf("content-md5")===0||zd.indexOf("content-type")===0)&&(Md[Wd]=Kd)}),Object.prototype.hasOwnProperty.call(Nd,"security-token")&&(jd["security-token"]=Nd["security-token"]),Object.prototype.hasOwnProperty.call(Nd,"callback")){var Ud={callbackUrl:encodeURI(Nd.callback.url),callbackBody:Nd.callback.body};if(Nd.callback.host&&(Ud.callbackHost=Nd.callback.host),Nd.callback.contentType&&(Ud.callbackBodyType=Nd.callback.contentType),Nd.callback.callbackSNI&&(Ud.callbackSNI=Nd.callback.callbackSNI),jd.callback=od.from(JSON.stringify(Ud)).toString("base64"),Nd.callback.customValue){var Vd={};Object.keys(Nd.callback.customValue).forEach(function(Wd){Vd["x:".concat(Wd)]=Nd.callback.customValue[Wd]}),jd["callback-var"]=od.from(JSON.stringify(Vd)).toString("base64")}}var qd=this.buildCanonicalString(Nd.method,kd,{headers:Md,parameters:jd},Id.toString());return{Signature:this.computeSignature(Ad,qd,Rd),subResource:jd}}}).call(this)}).call(this,ed("buffer").Buffer)},{"./../../shims/crypto/crypto.js":533,"./utils/encodeString":60,"./utils/lowercaseKeyHeader":74,"@babel/runtime/helpers/interopRequireDefault":84,"@babel/runtime/helpers/toConsumableArray":88,buffer:103,"core-js/modules/es.array.concat.js":310,"core-js/modules/es.array.filter.js":312,"core-js/modules/es.array.iterator.js":316,"core-js/modules/es.array.join.js":317,"core-js/modules/es.array.map.js":318,"core-js/modules/es.array.sort.js":320,"core-js/modules/es.object.entries.js":326,"core-js/modules/es.object.keys.js":330,"core-js/modules/es.object.to-string.js":331,"core-js/modules/es.regexp.exec.js":340,"core-js/modules/es.regexp.to-string.js":341,"core-js/modules/es.set.js":343,"core-js/modules/es.string.iterator.js":345,"core-js/modules/es.string.replace.js":347,"core-js/modules/es.string.starts-with.js":350,"core-js/modules/es.string.trim.js":351,"core-js/modules/web.dom-collections.for-each.js":382,"core-js/modules/web.dom-collections.iterator.js":383,"is-type-of":539,qs:447}],52:[function(ed,td,rd){ed("core-js/modules/es.regexp.exec.js"),Object.defineProperty(rd,"__esModule",{value:!0}),rd.checkBucketName=void 0,rd.checkBucketName=function(od){var sd=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ld=sd?/^[a-z0-9][a-z0-9-]{1,61}[a-z0-9] $ /:/^[a-z0-9_][a-z0-9-_]{1,61}[a-z0-9_] $ /;if(!ld.test(od))throw new Error("The bucket must be conform to the specifications")}},{"core-js/modules/es.regexp.
` ),ud&&ud.firstUpperCase&&(cd=od.formatObjKey(cd,"firstUpperCase")),sd(cd)==="object"?Object.keys(cd).forEach(function(_d){sd(cd[_d])!=="undefined"&&sd(cd[_d])!=="null"&&(sd(cd[_d])==="string"||sd(cd[_d])==="number"?gd+="<".concat(_d,">").concat(cd[_d],"</").concat(_d,">"):sd(cd[_d])==="object"?gd+="<".concat(_d,">").concat(ld(cd[_d]),"</").concat(_d,">"):sd(cd[_d])==="array"?gd+=cd[_d].map(function(yd){return"<".concat(_d,">").concat(ld(yd),"</").concat(_d,">")}).join(""):gd+="<".concat(_d,">").concat(cd[_d].toString(),"</").concat(_d,">"))}):gd+=cd.toString(),gd}rd.obj2xml=ld},{"./formatObjKey":63,"core-js/modules/es.array.concat.js":310,"core-js/modules/es.array.join.js":317,"core-js/modules/es.array.map.js":318,"core-js/modules/es.object.keys.js":330,"core-js/modules/es.object.to-string.js":331,"core-js/modules/es.regexp.exec.js":340,"core-js/modules/es.regexp.to-string.js":341,"core-js/modules/es.string.replace.js":347,"core-js/modules/web.dom-collections.for-each.js":382}],76:[function(ed,td,rd){ed("core-js/modules/es.array.slice.js"),ed("core-js/modules/es.object.to-string.js"),ed("core-js/modules/es.regexp.to-string.js"),ed("core-js/modules/es.function.name.js"),ed("core-js/modules/es.array.from.js"),ed("core-js/modules/es.string.iterator.js"),ed("core-js/modules/es.regexp.exec.js"),ed("core-js/modules/es.symbol.js"),ed("core-js/modules/es.symbol.description.js"),ed("core-js/modules/es.symbol.iterator.js"),ed("core-js/modules/es.array.iterator.js"),ed("core-js/modules/web.dom-collections.iterator.js"),ed("core-js/modules/es.object.assign.js");function od(ud,gd){var _d=typeof Symbol<"u"&&ud[Symbol.iterator]||ud["@@iterator"];if(!_d){if(Array.isArray(ud)||(_d=sd(ud))||gd){_d&&(ud=_d);var yd=0,Ed=function(){};return{s:Ed,n:function(){return yd>=ud.length?{done:!0}:{done:!1,value:ud[yd++]}},e:function(kd){throw kd},f:Ed}}throw new TypeError( ` Invalid attempt to iterate non - iterable instance .
In order to be iterable , non - array objects must have a [ Symbol . iterator ] ( ) method . ` )}var Td=!0,Od=!1,Ad;return{s:function(){_d=_d.call(ud)},n:function(){var kd=_d.next();return Td=kd.done,kd},e:function(kd){Od=!0,Ad=kd},f:function(){try{!Td&&_d.return!=null&&_d.return()}finally{if(Od)throw Ad}}}}function sd(ud,gd){if(ud){if(typeof ud=="string")return ld(ud,gd);var _d=Object.prototype.toString.call(ud).slice(8,-1);if(_d==="Object"&&ud.constructor&&(_d=ud.constructor.name),_d==="Map"||_d==="Set")return Array.from(ud);if(_d==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array $ /.test(_d))return ld(ud,gd)}}function ld(ud,gd){(gd==null||gd>ud.length)&&(gd=ud.length);for(var _d=0,yd=new Array(gd);_d<gd;_d++)yd[_d]=ud[_d];return yd}Object.defineProperty(rd,"__esModule",{value:!0}),rd.omit=void 0;function cd(ud,gd){var _d=Object.assign({},ud),yd=od(gd),Ed;try{for(yd.s();!(Ed=yd.n()).done;){var Td=Ed.value;delete _d[Td]}}catch(Od){yd.e(Od)}finally{yd.f()}return _d}rd.omit=cd},{"core-js/modules/es.array.from.js":314,"core-js/modules/es.array.iterator.js":316,"core-js/modules/es.array.slice.js":319,"core-js/modules/es.function.name.js":322,"core-js/modules/es.object.assign.js":325,"core-js/modules/es.object.to-string.js":331,"core-js/modules/es.regexp.exec.js":340,"core-js/modules/es.regexp.to-string.js":341,"core-js/modules/es.string.iterator.js":345,"core-js/modules/es.symbol.description.js":353,"core-js/modules/es.symbol.iterator.js":355,"core-js/modules/es.symbol.js":356,"core-js/modules/web.dom-collections.iterator.js":383}],77:[function(ed,td,rd){ed("core-js/modules/es.object.to-string.js"),ed("core-js/modules/es.promise.js"),Object.defineProperty(rd,"__esModule",{value:!0}),rd.retry=void 0;function od(sd,ld){var cd=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},ud=0,gd=cd.retryDelay,_d=gd===void 0?500:gd,yd=cd.errorHandler,Ed=yd===void 0?function(){return!0}:yd,Td=function Od(){for(var Ad=arguments.length,Nd=new Array(Ad),kd=0;kd<Ad;kd++)Nd[kd]=arguments[kd];return new Promise(function(Id,Rd){sd.apply(void 0,Nd).then(function(Md){ud=0,Id(Md)}).catch(function(Md){ud<ld&&Ed(Md)?(ud++,setTimeout(function(){Id(Od.apply(void 0,Nd))},_d)):(ud=0,Rd(Md))})})};return Td}rd.retry=od},{"core-js/modules/es.object.to-string.js":331,"core-js/modules/es.promise.js":335}],78:[function(ed,td,rd){var od=function(ud){return ud&&ud.__esModule?ud:{default:ud}};Object.defineProperty(rd,"__esModule",{value:!0}),rd.setRegion=void 0;var sd=od(ed("url")),ld=ed("./checkConfigValid");function cd(ud){var gd=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,_d=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;ld.checkConfigValid(ud,"region");var yd=_d?"https://":"http://",Ed=gd?"-internal.aliyuncs.com":".aliyuncs.com",Td="vpc100-oss-cn-";return ud.substr(0,Td.length)===Td&&(Ed=".aliyuncs.com"),sd.default.parse(yd+ud+Ed)}rd.setRegion=cd},{"./checkConfigValid":53,url:545}],79:[function(ed,td,rd){var od=ed("@babel/runtime/helpers/interopRequireDefault"),sd=od(ed("@babel/runtime/regenerator"));ed("core-js/modules/es.object.keys.js"),ed("core-js/modules/es.object.to-string.js"),ed("core-js/modules/es.array.find.js"),ed("core-js/modules/es.object.assign.js");var ld=od(ed("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(rd,"__esModule",{value:!0}),rd.checkCredentials=rd.setSTSToken=void 0;var cd=ed("./formatObjKey");function ud(){return gd.apply(this,arguments)}function gd(){return gd=(0,ld.default)(sd.default.mark(function yd(){var Ed,Td;return sd.default.wrap(function(Ad){for(;;)switch(Ad.prev=Ad.next){case 0:if(this.options||(this.options={}),Ed=new Date,!this.stsTokenFreshTime){Ad.next=14;break}if(!(+Ed-this.stsTokenFreshTime>=this.options.refreshSTSTokenInterval)){Ad.next=12;break}return this.stsTokenFreshTime=Ed,Ad.next=7,this.options.refreshSTSToken();case 7:Td=Ad.sent,Td=cd.formatObjKey(Td,"firstLowerCase"),Td.securityToken&&(Td.stsToken=Td.securityToken),_d(Td),Object.assign(this.options,Td);case 12:Ad.next=15;break;case 14:this.stsTokenFreshTime=Ed;case 15:return Ad.abrupt("return",null);case 16:case"end"
In order to be iterable , non - array objects must have a [ Symbol . iterator ] ( ) method . ` )}td.exports=od,td.exports.__esModule=!0,td.exports.default=td.exports},{}],87:[function(ed,td,rd){var od=ed("./typeof.js").default;function sd(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */td.exports=sd=function(){return cd},td.exports.__esModule=!0,td.exports.default=td.exports;var ld,cd={},ud=Object.prototype,gd=ud.hasOwnProperty,_d=Object.defineProperty||function(yf,Mf,Af){yf[Mf]=Af.value},yd=typeof Symbol=="function"?Symbol:{},Ed=yd.iterator||"@@iterator",Td=yd.asyncIterator||"@@asyncIterator",Od=yd.toStringTag||"@@toStringTag";function Ad(yf,Mf,Af){return Object.defineProperty(yf,Mf,{value:Af,enumerable:!0,configurable:!0,writable:!0}),yf[Mf]}try{Ad({},"")}catch{Ad=function(Af,Zd,mf){return Af[Zd]=mf}}function Nd(yf,Mf,Af,Zd){var mf=Mf&&Mf.prototype instanceof Pd?Mf:Pd,Pf=Object.create(mf.prototype),Ff=new Cf(Zd||[]);return _d(Pf,"_invoke",{value:hf(yf,Af,Ff)}),Pf}function kd(yf,Mf,Af){try{return{type:"normal",arg:yf.call(Mf,Af)}}catch(Zd){return{type:"throw",arg:Zd}}}cd.wrap=Nd;var Id="suspendedStart",Rd="suspendedYield",Md="executing",Ld="completed",jd={};function Pd(){}function Fd(){}function Ud(){}var Vd={};Ad(Vd,Ed,function(){return this});var qd=Object.getPrototypeOf,Wd=qd&&qd(qd(Ef([])));Wd&&Wd!==ud&&gd.call(Wd,Ed)&&(Vd=Wd);var zd=Ud.prototype=Pd.prototype=Object.create(Vd);function Kd(yf){["next","throw","return"].forEach(function(Mf){Ad(yf,Mf,function(Af){return this._invoke(Mf,Af)})})}function Qd(yf,Mf){function Af(mf,Pf,Ff,Lf){var jf=kd(yf[mf],yf,Pf);if(jf.type!=="throw"){var xf=jf.arg,Nf=xf.value;return Nf&&od(Nf)=="object"&&gd.call(Nf,"__await")?Mf.resolve(Nf.__await).then(function(Bf){Af("next",Bf,Ff,Lf)},function(Bf){Af("throw",Bf,Ff,Lf)}):Mf.resolve(Nf).then(function(Bf){xf.value=Bf,Ff(xf)},function(Bf){return Af("throw",Bf,Ff,Lf)})}Lf(jf.arg)}var Zd;_d(this,"_invoke",{value:function(Pf,Ff){function Lf(){return new Mf(function(jf,xf){Af(Pf,Ff,jf,xf)})}return Zd=Zd?Zd.then(Lf,Lf):Lf()}})}function hf(yf,Mf,Af){var Zd=Id;return function(mf,Pf){if(Zd===Md)throw new Error("Generator is already running");if(Zd===Ld){if(mf==="throw")throw Pf;return{value:ld,done:!0}}for(Af.method=mf,Af.arg=Pf;;){var Ff=Af.delegate;if(Ff){var Lf=gf(Ff,Af);if(Lf){if(Lf===jd)continue;return Lf}}if(Af.method==="next")Af.sent=Af._sent=Af.arg;else if(Af.method==="throw"){if(Zd===Id)throw Zd=Ld,Af.arg;Af.dispatchException(Af.arg)}else Af.method==="return"&&Af.abrupt("return",Af.arg);Zd=Md;var jf=kd(yf,Mf,Af);if(jf.type==="normal"){if(Zd=Af.done?Ld:Rd,jf.arg===jd)continue;return{value:jf.arg,done:Af.done}}jf.type==="throw"&&(Zd=Ld,Af.method="throw",Af.arg=jf.arg)}}}function gf(yf,Mf){var Af=Mf.method,Zd=yf.iterator[Af];if(Zd===ld)return Mf.delegate=null,Af==="throw"&&yf.iterator.return&&(Mf.method="return",Mf.arg=ld,gf(yf,Mf),Mf.method==="throw")||Af!=="return"&&(Mf.method="throw",Mf.arg=new TypeError("The iterator does not provide a '"+Af+"' method")),jd;var mf=kd(Zd,yf.iterator,Mf.arg);if(mf.type==="throw")return Mf.method="throw",Mf.arg=mf.arg,Mf.delegate=null,jd;var Pf=mf.arg;return Pf?Pf.done?(Mf[yf.resultName]=Pf.value,Mf.next=yf.nextLoc,Mf.method!=="return"&&(Mf.method="next",Mf.arg=ld),Mf.delegate=null,jd):Pf:(Mf.method="throw",Mf.arg=new TypeError("iterator result is not an object"),Mf.delegate=null,jd)}function bf(yf){var Mf={tryLoc:yf[0]};1 in yf&&(Mf.catchLoc=yf[1]),2 in yf&&(Mf.finallyLoc=yf[2],Mf.afterLoc=yf[3]),this.tryEntries.push(Mf)}function kf(yf){var Mf=yf.completion||{};Mf.type="normal",delete Mf.arg,yf.completion=Mf}function Cf(yf){this.tryEntries=[{tryLoc:"root"}],yf.forEach(bf,this),this.reset(!0)}function Ef(yf){if(yf||yf===""){var Mf=yf[Ed];if(Mf)return Mf.call(yf);if(typeof yf.next=="function")return yf;if(!isNaN(yf.length)){var Af=-1,Zd=function mf(){for(;++Af<yf.length;)if(gd.call(yf,Af))return mf.value=yf[Af],mf.done=!1,mf;return mf.value=ld,mf.done=!0,mf};return Zd.next=Zd}}throw new TypeError(od(yf)+" is not iterab
2024-08-27 22:31:52 +08:00
* The buffer module from node . js , for the browser .
*
* @ author Feross Aboukhadijeh < feross @ feross . org > < http : //feross.org>
* @ license MIT
2024-08-30 15:19:18 +08:00
* /function ld(Qd,hf){if(Qd===hf)return 0;for(var gf=Qd.length,bf=hf.length,kf=0,Cf=Math.min(gf,bf);kf<Cf;++kf)if(Qd[kf]!==hf[kf]){gf=Qd[kf],bf=hf[kf];break}return gf<bf?-1:bf<gf?1:0}function cd(Qd){return od.Buffer&&typeof od.Buffer.isBuffer=="function"?od.Buffer.isBuffer(Qd):!!(Qd!=null&&Qd._isBuffer)}var ud=ed("util/ "),gd=Object.prototype.hasOwnProperty,_d=Array.prototype.slice,yd=function(){return(function(){}).name===" foo "}();function Ed(Qd){return Object.prototype.toString.call(Qd)}function Td(Qd){return cd(Qd)||typeof od.ArrayBuffer!=" function "?!1:typeof ArrayBuffer.isView==" function "?ArrayBuffer.isView(Qd):Qd?!!(Qd instanceof DataView||Qd.buffer&&Qd.buffer instanceof ArrayBuffer):!1}var Od=td.exports=Ld,Ad=/\s*function\s+([^\(\s]*)\s*/;function Nd(Qd){if(ud.isFunction(Qd)){if(yd)return Qd.name;var hf=Qd.toString(),gf=hf.match(Ad);return gf&&gf[1]}}Od.AssertionError=function(hf){this.name=" AssertionError " , this . actual = hf . actual , this . expected = hf . expected , this . operator = hf . operator , hf . message ? ( this . message = hf . message , this . generatedMessage = ! 1 ) : ( this . message = Rd ( this ) , this . generatedMessage = ! 0 ) ; var gf = hf . stackStartFunction || Md ; if ( Error . captureStackTrace ) Error . captureStackTrace ( this , gf ) ; else { var bf = new Error ; if ( bf . stack ) { var kf = bf . stack , Cf = Nd ( gf ) , Ef = kf . indexOf ( `
` +Cf);if(Ef>=0){var yf=kf.indexOf( `
` ,Ef+1);kf=kf.substring(yf+1)}this.stack=kf}}},ud.inherits(Od.AssertionError,Error);function kd(Qd,hf){return typeof Qd=="string"?Qd.length<hf?Qd:Qd.slice(0,hf):Qd}function Id(Qd){if(yd||!ud.isFunction(Qd))return ud.inspect(Qd);var hf=Nd(Qd),gf=hf?": "+hf:"";return"[Function"+gf+"]"}function Rd(Qd){return kd(Id(Qd.actual),128)+" "+Qd.operator+" "+kd(Id(Qd.expected),128)}function Md(Qd,hf,gf,bf,kf){throw new Od.AssertionError({message:gf,actual:Qd,expected:hf,operator:bf,stackStartFunction:kf})}Od.fail=Md;function Ld(Qd,hf){Qd||Md(Qd,!0,hf,"==",Od.ok)}Od.ok=Ld,Od.equal=function(hf,gf,bf){hf!=gf&&Md(hf,gf,bf,"==",Od.equal)},Od.notEqual=function(hf,gf,bf){hf==gf&&Md(hf,gf,bf,"!=",Od.notEqual)},Od.deepEqual=function(hf,gf,bf){jd(hf,gf,!1)||Md(hf,gf,bf,"deepEqual",Od.deepEqual)},Od.deepStrictEqual=function(hf,gf,bf){jd(hf,gf,!0)||Md(hf,gf,bf,"deepStrictEqual",Od.deepStrictEqual)};function jd(Qd,hf,gf,bf){if(Qd===hf)return!0;if(cd(Qd)&&cd(hf))return ld(Qd,hf)===0;if(ud.isDate(Qd)&&ud.isDate(hf))return Qd.getTime()===hf.getTime();if(ud.isRegExp(Qd)&&ud.isRegExp(hf))return Qd.source===hf.source&&Qd.global===hf.global&&Qd.multiline===hf.multiline&&Qd.lastIndex===hf.lastIndex&&Qd.ignoreCase===hf.ignoreCase;if((Qd===null||typeof Qd!="object")&&(hf===null||typeof hf!="object"))return gf?Qd===hf:Qd==hf;if(Td(Qd)&&Td(hf)&&Ed(Qd)===Ed(hf)&&!(Qd instanceof Float32Array||Qd instanceof Float64Array))return ld(new Uint8Array(Qd.buffer),new Uint8Array(hf.buffer))===0;if(cd(Qd)!==cd(hf))return!1;bf=bf||{actual:[],expected:[]};var kf=bf.actual.indexOf(Qd);return kf!==-1&&kf===bf.expected.indexOf(hf)?!0:(bf.actual.push(Qd),bf.expected.push(hf),Fd(Qd,hf,gf,bf))}function Pd(Qd){return Object.prototype.toString.call(Qd)=="[object Arguments]"}function Fd(Qd,hf,gf,bf){if(Qd==null||hf===null||hf===void 0)return!1;if(ud.isPrimitive(Qd)||ud.isPrimitive(hf))return Qd===hf;if(gf&&Object.getPrototypeOf(Qd)!==Object.getPrototypeOf(hf))return!1;var kf=Pd(Qd),Cf=Pd(hf);if(kf&&!Cf||!kf&&Cf)return!1;if(kf)return Qd=_d.call(Qd),hf=_d.call(hf),jd(Qd,hf,gf);var Ef=Kd(Qd),yf=Kd(hf),Mf,Af;if(Ef.length!==yf.length)return!1;for(Ef.sort(),yf.sort(),Af=Ef.length-1;Af>=0;Af--)if(Ef[Af]!==yf[Af])return!1;for(Af=Ef.length-1;Af>=0;Af--)if(Mf=Ef[Af],!jd(Qd[Mf],hf[Mf],gf,bf))return!1;return!0}Od.notDeepEqual=function(hf,gf,bf){jd(hf,gf,!1)&&Md(hf,gf,bf,"notDeepEqual",Od.notDeepEqual)},Od.notDeepStrictEqual=Ud;function Ud(Qd,hf,gf){jd(Qd,hf,!0)&&Md(Qd,hf,gf,"notDeepStrictEqual",Ud)}Od.strictEqual=function(hf,gf,bf){hf!==gf&&Md(hf,gf,bf,"===",Od.strictEqual)},Od.notStrictEqual=function(hf,gf,bf){hf===gf&&Md(hf,gf,bf,"!==",Od.notStrictEqual)};function Vd(Qd,hf){if(!Qd||!hf)return!1;if(Object.prototype.toString.call(hf)=="[object RegExp]")return hf.test(Qd);try{if(Qd instanceof hf)return!0}catch{}return Error.isPrototypeOf(hf)?!1:hf.call({},Qd)===!0}function qd(Qd){var hf;try{Qd()}catch(gf){hf=gf}return hf}function Wd(Qd,hf,gf,bf){var kf;if(typeof hf!="function")throw new TypeError('"block" argument must be a function');typeof gf=="string"&&(bf=gf,gf=null),kf=qd(hf),bf=(gf&&gf.name?" ("+gf.name+").":".")+(bf?" "+bf:"."),Qd&&!kf&&Md(kf,gf,"Missing expected exception"+bf);var Cf=typeof bf=="string",Ef=!Qd&&ud.isError(kf),yf=!Qd&&kf&&!gf;if((Ef&&Cf&&Vd(kf,gf)||yf)&&Md(kf,gf,"Got unwanted exception"+bf),Qd&&kf&&gf&&!Vd(kf,gf)||!Qd&&kf)throw kf}Od.throws=function(Qd,hf,gf){Wd(!0,Qd,hf,gf)},Od.doesNotThrow=function(Qd,hf,gf){Wd(!1,Qd,hf,gf)},Od.ifError=function(Qd){if(Qd)throw Qd};function zd(Qd,hf){Qd||Md(Qd,!0,hf,"==",zd)}Od.strict=sd(zd,Od,{equal:Od.strictEqual,deepEqual:Od.deepStrictEqual,notEqual:Od.notStrictEqual,notDeepEqual:Od.notDeepStrictEqual}),Od.strict.strict=Od.strict;var Kd=Object.keys||function(Qd){var hf=[];for(var gf in Qd)gd.call(Qd,gf)&&hf.push(gf);return hf}}).call(this)}).call(this,typeof Ja<"u"?Ja:typeof self<"u"?self:typeof window<"u"?window:{})},{"object.assign/polyfill":440,"util/":98}],96:[function(ed,td,rd){typeof Object.create=="function"?td.exports=function(sd,ld){sd.super_=ld,sd.prototype=Object.create(ld.prototype,{constructor:{value:sd,enumerable:!1,
` )>-1&&(Pf?Lf=Lf.split( `
` ).map(function(xf){return" "+xf}).join( `
` ).substr(2):Lf= `
` +Lf.split( `
` ).map(function(xf){return" "+xf}).join( `
` ))):Lf=yf.stylize("[Circular]","special")),Vd(Ff)){if(Pf&&mf.match(/^ \d + $ /))return Lf;Ff=JSON.stringify(""+mf),Ff.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)" $ /)?(Ff=Ff.substr(1,Ff.length-2),Ff=yf.stylize(Ff,"name")):(Ff=Ff.replace(/'/g," \\ '").replace(/ \\ "/g,'"').replace(/(^"|" $ )/g,"'"),Ff=yf.stylize(Ff,"string"))}return Ff+": "+Lf}function Id(yf,Mf,Af){var Zd=yf.reduce(function(mf,Pf){return Pf.indexOf( `
` )>=0,mf+Pf.replace(/ \u 001b \[ \d \d ?m/g,"").length+1},0);return Zd>60?Af[0]+(Mf===""?"":Mf+ `
` )+" "+yf.join( ` ,
` )+" "+Af[1]:Af[0]+Mf+" "+yf.join(", ")+" "+Af[1]}function Rd(yf){return Array.isArray(yf)}rd.isArray=Rd;function Md(yf){return typeof yf=="boolean"}rd.isBoolean=Md;function Ld(yf){return yf===null}rd.isNull=Ld;function jd(yf){return yf==null}rd.isNullOrUndefined=jd;function Pd(yf){return typeof yf=="number"}rd.isNumber=Pd;function Fd(yf){return typeof yf=="string"}rd.isString=Fd;function Ud(yf){return typeof yf=="symbol"}rd.isSymbol=Ud;function Vd(yf){return yf===void 0}rd.isUndefined=Vd;function qd(yf){return Wd(yf)&&gf(yf)==="[object RegExp]"}rd.isRegExp=qd;function Wd(yf){return typeof yf=="object"&&yf!==null}rd.isObject=Wd;function zd(yf){return Wd(yf)&&gf(yf)==="[object Date]"}rd.isDate=zd;function Kd(yf){return Wd(yf)&&(gf(yf)==="[object Error]"||yf instanceof Error)}rd.isError=Kd;function Qd(yf){return typeof yf=="function"}rd.isFunction=Qd;function hf(yf){return yf===null||typeof yf=="boolean"||typeof yf=="number"||typeof yf=="string"||typeof yf=="symbol"||typeof yf>"u"}rd.isPrimitive=hf,rd.isBuffer=ed("./support/isBuffer");function gf(yf){return Object.prototype.toString.call(yf)}function bf(yf){return yf<10?"0"+yf.toString(10):yf.toString(10)}var kf=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function Cf(){var yf=new Date,Mf=[bf(yf.getHours()),bf(yf.getMinutes()),bf(yf.getSeconds())].join(":");return[yf.getDate(),kf[yf.getMonth()],Mf].join(" ")}rd.log=function(){console.log("%s - %s",Cf(),rd.format.apply(rd,arguments))},rd.inherits=ed("inherits"),rd._extend=function(yf,Mf){if(!Mf||!Wd(Mf))return yf;for(var Af=Object.keys(Mf),Zd=Af.length;Zd--;)yf[Af[Zd]]=Mf[Af[Zd]];return yf};function Ef(yf,Mf){return Object.prototype.hasOwnProperty.call(yf,Mf)}}).call(this)}).call(this,ed("_process"),typeof Ja<"u"?Ja:typeof self<"u"?self:typeof window<"u"?window:{})},{"./support/isBuffer":97,_process:540,inherits:96}],99:[function(ed,td,rd){(function(od){(function(){var sd=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],ld=typeof globalThis>"u"?od:globalThis;td.exports=function(){for(var ud=[],gd=0;gd<sd.length;gd++)typeof ld[sd[gd]]=="function"&&(ud[ud.length]=sd[gd]);return ud}}).call(this)}).call(this,typeof Ja<"u"?Ja:typeof self<"u"?self:typeof window<"u"?window:{})},{}],100:[function(ed,td,rd){rd.byteLength=yd,rd.toByteArray=Td,rd.fromByteArray=Nd;for(var od=[],sd=[],ld=typeof Uint8Array<"u"?Uint8Array:Array,cd="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ud=0,gd=cd.length;ud<gd;++ud)od[ud]=cd[ud],sd[cd.charCodeAt(ud)]=ud;sd[45]=62,sd[95]=63;function _d(kd){var Id=kd.length;if(Id%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var Rd=kd.indexOf("=");Rd===-1&&(Rd=Id);var Md=Rd===Id?0:4-Rd%4;return[Rd,Md]}function yd(kd){var Id=_d(kd),Rd=Id[0],Md=Id[1];return(Rd+Md)*3/4-Md}function Ed(kd,Id,Rd){return(Id+Rd)*3/4-Rd}function Td(kd){var Id,Rd=_d(kd),Md=Rd[0],Ld=Rd[1],jd=new ld(Ed(kd,Md,Ld)),Pd=0,Fd=Ld>0?Md-4:Md,Ud;for(Ud=0;Ud<Fd;Ud+=4)Id=sd[kd.charCodeAt(Ud)]<<18|sd[kd.charCodeAt(Ud+1)]<<12|sd[kd.charCodeAt(Ud+2)]<<6|sd[kd.charCodeAt(Ud+3)],jd[Pd++]=Id>>16&255,jd[Pd++]=Id>>8&255,jd[Pd++]=Id&255;return Ld===2&&(Id=sd[kd.charCodeAt(Ud)]<<2|sd[kd.charCodeAt(Ud+1)]>>4,jd[Pd++]=Id&255),Ld===1&&(Id=sd[kd.charCodeAt(Ud)]<<10|sd[kd.charCodeAt(Ud+1)]<<4|sd[kd.charCodeAt(Ud+2)]>>2,jd[Pd++]=Id>>8&255,jd[Pd++]=Id&255),jd}function Od(kd){return od[kd>>18&63]+od[kd>>12&63]+od[kd>>6&63]+od[kd&63]}function Ad(kd,Id,Rd){for(var Md,Ld=[],jd=Id;jd<Rd;jd+=3)Md=(kd[jd]<<16&16711680)+(kd[jd+1]<<8&65280)+(kd[jd+2]&255),Ld.push(Od(Md));return Ld.join("")}function Nd(kd){for(var Id,Rd=kd.length,Md=Rd%3,Ld=[],jd=16383,Pd=0,Fd=Rd-Md;Pd<Fd;Pd+=jd)Ld.push(Ad(kd,Pd,Pd+jd>Fd?Fd:Pd+jd));return Md===1?(Id=kd[Rd-1],Ld.push(od[Id>>2]+od[Id<<4&63]+"==")):Md===2&&(Id=(kd[Rd-2]<<8)+kd[Rd-1],Ld.push(od[Id>>10]+od[Id>>4&63]+od[Id<<2&63]+"=")),Ld.join("")}},{}],101:[function(ed,td,rd){/*!
2024-08-27 22:31:52 +08:00
* Bowser - a browser detector
* https : //github.com/ded/bowser
* MIT License | ( c ) Dustin Diaz 2015
2024-08-30 15:19:18 +08:00
* /(function(od,sd,ld){typeof td<"u"&&td.exports?td.exports=ld():od[sd]=ld()})(this,"bowser",function(){var od=!0;function sd(Ed){function Td(yf){var Mf=Ed.match(yf);return Mf&&Mf.length>1&&Mf[1]||""}function Od(yf){var Mf=Ed.match(yf);return Mf&&Mf.length>1&&Mf[2]||""}var Ad=Td(/ ( ipod | iphone | ipad ) / i ) . toLowerCase ( ) , Nd = /like android/i . test ( Ed ) , kd = ! Nd && /android/i . test ( Ed ) , Id = /nexus\s*[0-6]\s*/i . test ( Ed ) , Rd = ! Id && /nexus\s*[0-9]+/i . test ( Ed ) , Md = /CrOS/ . test ( Ed ) , Ld = /silk/i . test ( Ed ) , jd = /sailfish/i . test ( Ed ) , Pd = /tizen/i . test ( Ed ) , Fd = /(web|hpw)(o|0)s/i . test ( Ed ) , Ud = /windows phone/i . test ( Ed ) , Vd = ! Ud && /windows/i . test ( Ed ) , qd = ! Ad && ! Ld && /macintosh/i . test ( Ed ) , Wd = ! kd && ! jd && ! Pd && ! Fd && /linux/i . test ( Ed ) , zd = Od ( /edg([ea]|ios)\/(\d+(\.\d+)?)/i ) , Kd = Td ( /version\/(\d+(\.\d+)?)/i ) , Qd = /tablet/i . test ( Ed ) && ! /tablet pc/i . test ( Ed ) , hf = ! Qd && /[^-]mobi/i . test ( Ed ) , gf = /xbox/i . test ( Ed ) , bf ; /opera/i . test ( Ed ) ? bf = { name : "Opera" , opera : od , version : Kd || Td ( /(?:opera|opr|opios)[\s\/](\d+(\.\d+)?)/i ) } : /opr\/|opios/i . test ( Ed ) ? bf = { name : "Opera" , opera : od , version : Td ( /(?:opr|opios)[\s\/](\d+(\.\d+)?)/i ) || Kd } : /SamsungBrowser/i . test ( Ed ) ? bf = { name : "Samsung Internet for Android" , samsungBrowser : od , version : Kd || Td ( /(?:SamsungBrowser)[\s\/](\d+(\.\d+)?)/i ) } : /Whale/i . test ( Ed ) ? bf = { name : "NAVER Whale browser" , whale : od , version : Td ( /(?:whale)[\s\/](\d+(?:\.\d+)+)/i ) } : /MZBrowser/i . test ( Ed ) ? bf = { name : "MZ Browser" , mzbrowser : od , version : Td ( /(?:MZBrowser)[\s\/](\d+(?:\.\d+)+)/i ) } : /coast/i . test ( Ed ) ? bf = { name : "Opera Coast" , coast : od , version : Kd || Td ( /(?:coast)[\s\/](\d+(\.\d+)?)/i ) } : /focus/i . test ( Ed ) ? bf = { name : "Focus" , focus : od , version : Td ( /(?:focus)[\s\/](\d+(?:\.\d+)+)/i ) } : /yabrowser/i . test ( Ed ) ? bf = { name : "Yandex Browser" , yandexbrowser : od , version : Kd || Td ( /(?:yabrowser)[\s\/](\d+(\.\d+)?)/i ) } : /ucbrowser/i . test ( Ed ) ? bf = { name : "UC Browser" , ucbrowser : od , version : Td ( /(?:ucbrowser)[\s\/](\d+(?:\.\d+)+)/i ) } : /mxios/i . test ( Ed ) ? bf = { name : "Maxthon" , maxthon : od , version : Td ( /(?:mxios)[\s\/](\d+(?:\.\d+)+)/i ) } : /epiphany/i . test ( Ed ) ? bf = { name : "Epiphany" , epiphany : od , version : Td ( /(?:epiphany)[\s\/](\d+(?:\.\d+)+)/i ) } : /puffin/i . test ( Ed ) ? bf = { name : "Puffin" , puffin : od , version : Td ( /(?:puffin)[\s\/](\d+(?:\.\d+)?)/i ) } : /sleipnir/i . test ( Ed ) ? bf = { name : "Sleipnir" , sleipnir : od , version : Td ( /(?:sleipnir)[\s\/](\d+(?:\.\d+)+)/i ) } : /k-meleon/i . test ( Ed ) ? bf = { name : "K-Meleon" , kMeleon : od , version : Td ( /(?:k-meleon)[\s\/](\d+(?:\.\d+)+)/i ) } : Ud ? ( bf = { name : "Windows Phone" , osname : "Windows Phone" , windowsphone : od } , zd ? ( bf . msedge = od , bf . version = zd ) : ( bf . msie = od , bf . version = Td ( /iemobile\/(\d+(\.\d+)?)/i ) ) ) : /msie|trident/i . test ( Ed ) ? bf = { name : "Internet Explorer" , msie : od , version : Td ( /(?:msie |rv:)(\d+(\.\d+)?)/i ) } : Md ? bf = { name : "Chrome" , osname : "Chrome OS" , chromeos : od , chromeBook : od , chrome : od , version : Td ( /(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i ) } : /edg([ea]|ios)/i . test ( Ed ) ? bf = { name : "Microsoft Edge" , msedge : od , version : zd } : /vivaldi/i . test ( Ed ) ? bf = { name : "Vivaldi" , vivaldi : od , version : Td ( /vivaldi\/(\d+(\.\d+)?)/i ) || Kd } : jd ? bf = { name : "Sailfish" , osname : "Sailfish OS" , sailfish : od , version : Td ( /sailfish\s?browser\/(\d+(\.\d+)?)/i ) } : /seamonkey\//i . test ( Ed ) ? bf = { name : "SeaMonkey" , seamonkey : od , version : Td ( /seamonkey\/(\d+(\.\d+)?)/i ) } : /firefox|iceweasel|fxios/i . test ( Ed ) ? ( bf = { name : "Firefox" , firefox : od , version : Td ( /(?:firefox|iceweasel|fxios)[ \/](\d+(\.\d+)?)/i ) } , /\((mobile|tablet);[^\)]*rv:[\d\.]+\)/i . test ( Ed ) && ( bf . firefoxos = od , bf . osname = "Firefox OS" ) ) : Ld ? bf = { name : "Amazon Silk" , silk : od , version : Td ( /silk\/(\d+(\.\d+)?)/i ) } : /phantom/i . test ( Ed ) ? bf = { name : "PhantomJS" , phantom : od , version : Td ( /phantomjs\/(\d+(\.\d+)?)/i ) } : /slimerjs/i . test ( Ed ) ? bf = { name : "SlimerJS" , slimer : od , version : Td ( /slimerjs\/(\d+(\.\d+)?)/i ) } : /blackberry|\bbb\d+/i . test ( Ed ) || /rim\stablet/i . test ( Ed ) ? bf = { name : "BlackBerry" , osname : "BlackBerry OS" , blackberry : od , version : Kd || Td ( /blackberry[\d]+\/(\d+(\.\d+)?)/i ) } : Fd ? ( bf = { name : "WebOS" , osname : "WebOS" , webos : od , version : Kd || Td ( /w(?:eb)?osbrowser\/(\d+(\.\d+)?)/i ) } , /touchpad\//i . test ( Ed ) && ( bf . touchpad = od ) ) : /bada/i . test ( Ed ) ? bf = { name : "Bada" , osname : "Bada" , bada : od , version : Td ( /dolfin\/(\d+(\.\d+)?)/i ) } : Pd ? bf = { name : "Tizen" , osname : "Tizen" , tizen : od , version : Td ( /(?:tizen\s?)?browser\/(\d+(\.\d+)?)/i ) || Kd } : /qupzilla/i . test ( Ed ) ? bf =
` )&&(Zd="(?: "+Zd+")",Pf=" "+Pf,mf++),hf=new RegExp("^(?:"+Zd+")",Af)),Pd&&(hf=new RegExp("^"+Zd+" $ (?! \\ s)",Af)),Ld&&(gf=qd.lastIndex),bf=od(Ad,Mf?hf:qd,Pf),Mf?bf?(bf.input=Md(bf.input,mf),bf[0]=Md(bf[0],mf),bf.index=qd.lastIndex,qd.lastIndex+=bf[0].length):qd.lastIndex=0:Ld&&bf&&(qd.lastIndex=qd.global?bf.index+bf[0].length:gf),Pd&&bf&&bf.length>1&&od(Od,bf[0],hf,function(){for(kf=1;kf<arguments.length-2;kf++)arguments[kf]===void 0&&(bf[kf]=void 0)}),bf&&yf)for(bf.groups=Cf=_d(null),kf=0;kf<yf.length;kf++)Ef=yf[kf],Cf[Ef[0]]=bf[Ef[1]];return bf}),td.exports=Nd},{"../internals/function-call":177,"../internals/function-uncurry-this":181,"../internals/internal-state":199,"../internals/object-create":229,"../internals/regexp-flags":257,"../internals/regexp-sticky-helpers":259,"../internals/regexp-unsupported-dot-all":260,"../internals/regexp-unsupported-ncg":261,"../internals/shared":269,"../internals/to-string":291}],257:[function(ed,td,rd){var od=ed("../internals/an-object");td.exports=function(){var sd=od(this),ld="";return sd.hasIndices&&(ld+="d"),sd.global&&(ld+="g"),sd.ignoreCase&&(ld+="i"),sd.multiline&&(ld+="m"),sd.dotAll&&(ld+="s"),sd.unicode&&(ld+="u"),sd.unicodeSets&&(ld+="v"),sd.sticky&&(ld+="y"),ld}},{"../internals/an-object":114}],258:[function(ed,td,rd){var od=ed("../internals/function-call"),sd=ed("../internals/has-own-property"),ld=ed("../internals/object-is-prototype-of"),cd=ed("../internals/regexp-flags"),ud=RegExp.prototype;td.exports=function(gd){var _d=gd.flags;return _d===void 0&&!("flags"in ud)&&!sd(gd,"flags")&&ld(ud,gd)?od(cd,gd):_d}},{"../internals/function-call":177,"../internals/has-own-property":189,"../internals/object-is-prototype-of":238,"../internals/regexp-flags":257}],259:[function(ed,td,rd){var od=ed("../internals/fails"),sd=ed("../internals/global"),ld=sd.RegExp,cd=od(function(){var _d=ld("a","y");return _d.lastIndex=2,_d.exec("abcd")!==null}),ud=cd||od(function(){return!ld("a","y").sticky}),gd=cd||od(function(){var _d=ld("^r","gy");return _d.lastIndex=2,_d.exec("str")!==null});td.exports={BROKEN_CARET:gd,MISSED_STICKY:ud,UNSUPPORTED_Y:cd}},{"../internals/fails":171,"../internals/global":188}],260:[function(ed,td,rd){var od=ed("../internals/fails"),sd=ed("../internals/global"),ld=sd.RegExp;td.exports=od(function(){var cd=ld(".","s");return!(cd.dotAll&&cd.test( `
` )&&cd.flags==="s")})},{"../internals/fails":171,"../internals/global":188}],261:[function(ed,td,rd){var od=ed("../internals/fails"),sd=ed("../internals/global"),ld=sd.RegExp;td.exports=od(function(){var cd=ld("(?<a>b)","g");return cd.exec("b").groups.a!=="b"||"b".replace(cd," $ <a>c")!=="bc"})},{"../internals/fails":171,"../internals/global":188}],262:[function(ed,td,rd){var od=ed("../internals/is-null-or-undefined"),sd=TypeError;td.exports=function(ld){if(od(ld))throw new sd("Can't call method on "+ld);return ld}},{"../internals/is-null-or-undefined":207}],263:[function(ed,td,rd){var od=ed("../internals/global"),sd=ed("../internals/descriptors"),ld=Object.getOwnPropertyDescriptor;td.exports=function(cd){if(!sd)return od[cd];var ud=ld(od,cd);return ud&&ud.value}},{"../internals/descriptors":153,"../internals/global":188}],264:[function(ed,td,rd){td.exports=Object.is||function(sd,ld){return sd===ld?sd!==0||1/sd===1/ld:sd!==sd&&ld!==ld}},{}],265:[function(ed,td,rd){var od=ed("../internals/get-built-in"),sd=ed("../internals/define-built-in-accessor"),ld=ed("../internals/well-known-symbol"),cd=ed("../internals/descriptors"),ud=ld("species");td.exports=function(gd){var _d=od(gd);cd&&_d&&!_d[ud]&&sd(_d,ud,{configurable:!0,get:function(){return this}})}},{"../internals/define-built-in-accessor":148,"../internals/descriptors":153,"../internals/get-built-in":182,"../internals/well-known-symbol":306}],266:[function(ed,td,rd){var od=ed("../internals/object-define-property").f,sd=ed("../internals/has-own-property"),ld=ed("../internals/well-known-symbol"),cd=ld("toStringTag");td.exports=function(ud,gd,_d){ud&&!_d&&(ud=ud.prototype),ud&&!sd(ud,cd)&&od(ud,cd,{configurable:!0,value:gd})}},{"../internals/has-own-property":189,"../internals/object-define-property":231,"../internals/well-known-symbol":306}],267:[function(ed,td,rd){var od=ed("../internals/shared"),sd=ed("../internals/uid"),ld=od("keys");td.exports=function(cd){return ld[cd]||(ld[cd]=sd(cd))}},{"../internals/shared":269,"../internals/uid":299}],268:[function(ed,td,rd){var od=ed("../internals/global"),sd=ed("../internals/define-global-property"),ld="__core-js_shared__",cd=od[ld]||sd(ld,{});td.exports=cd},{"../internals/define-global-property":151,"../internals/global":188}],269:[function(ed,td,rd){var od=ed("../internals/is-pure"),sd=ed("../internals/shared-store");(td.exports=function(ld,cd){return sd[ld]||(sd[ld]=cd!==void 0?cd:{})})("versions",[]).push({version:"3.35.0",mode:od?"pure":"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.35.0/LICENSE",source:"https://github.com/zloirock/core-js"})},{"../internals/is-pure":210,"../internals/shared-store":268}],270:[function(ed,td,rd){var od=ed("../internals/an-object"),sd=ed("../internals/a-constructor"),ld=ed("../internals/is-null-or-undefined"),cd=ed("../internals/well-known-symbol"),ud=cd("species");td.exports=function(gd,_d){var yd=od(gd).constructor,Ed;return yd===void 0||ld(Ed=od(yd)[ud])?_d:sd(Ed)}},{"../internals/a-constructor":109,"../internals/an-object":114,"../internals/is-null-or-undefined":207,"../internals/well-known-symbol":306}],271:[function(ed,td,rd){var od=ed("../internals/function-uncurry-this"),sd=ed("../internals/to-integer-or-infinity"),ld=ed("../internals/to-string"),cd=ed("../internals/require-object-coercible"),ud=od("".charAt),gd=od("".charCodeAt),_d=od("".slice),yd=function(Ed){return function(Td,Od){var Ad=ld(cd(Td)),Nd=sd(Od),kd=Ad.length,Id,Rd;return Nd<0||Nd>=kd?Ed?"":void 0:(Id=gd(Ad,Nd),Id<55296||Id>56319||Nd+1===kd||(Rd=gd(Ad,Nd+1))<56320||Rd>57343?Ed?ud(Ad,Nd):Id:Ed?_d(Ad,Nd,Nd+2):(Id-55296<<10)+(Rd-56320)+65536)}};td.exports={codeAt:yd(!1),charAt:yd(!0)}},{"../internals/function-uncurry-this":181,"../internals/require-object-coercible":262,"../internals/to-integer-or-infinity":283,"../internals/to-string":291}],272:[function(ed,td,rd){var od=ed("../internals/function-name").PROPER,sd=ed("../internals/fails"),ld=ed("../internals/whitespaces"),cd="
";td.exports=function(ud){return sd(function(){return!!ld[ud]()||cd[ud](
\ v \ f \ r \u2028\u2029\uFEFF ` },{}],308:[function(ed,td,rd){var od=ed("../internals/export"),sd=ed("../internals/global"),ld=ed("../internals/array-buffer"),cd=ed("../internals/set-species"),ud="ArrayBuffer",gd=ld[ud],_d=sd[ud];od({global:!0,constructor:!0,forced:_d!==gd},{ArrayBuffer:gd}),cd(ud)},{"../internals/array-buffer":118,"../internals/export":170,"../internals/global":188,"../internals/set-species":265}],309:[function(ed,td,rd){var od=ed("../internals/export"),sd=ed("../internals/function-uncurry-this-clause"),ld=ed("../internals/fails"),cd=ed("../internals/array-buffer"),ud=ed("../internals/an-object"),gd=ed("../internals/to-absolute-index"),_d=ed("../internals/to-length"),yd=ed("../internals/species-constructor"),Ed=cd.ArrayBuffer,Td=cd.DataView,Od=Td.prototype,Ad=sd(Ed.prototype.slice),Nd=sd(Od.getUint8),kd=sd(Od.setUint8),Id=ld(function(){return!new Ed(2).slice(1,void 0).byteLength});od({target:"ArrayBuffer",proto:!0,unsafe:!0,forced:Id},{slice:function(Md,Ld){if(Ad&&Ld===void 0)return Ad(ud(this),Md);for(var jd=ud(this).byteLength,Pd=gd(Md,jd),Fd=gd(Ld===void 0?jd:Ld,jd),Ud=new(yd(this,Ed))(_d(Fd-Pd)),Vd=new Td(this),qd=new Td(Ud),Wd=0;Pd<Fd;)kd(qd,Wd++,Nd(Vd,Pd++));return Ud}})},{"../internals/an-object":114,"../internals/array-buffer":118,"../internals/export":170,"../internals/fails":171,"../internals/function-uncurry-this-clause":180,"../internals/species-constructor":270,"../internals/to-absolute-index":279,"../internals/to-length":284}],310:[function(ed,td,rd){var od=ed("../internals/export"),sd=ed("../internals/fails"),ld=ed("../internals/is-array"),cd=ed("../internals/is-object"),ud=ed("../internals/to-object"),gd=ed("../internals/length-of-array-like"),_d=ed("../internals/does-not-exceed-safe-integer"),yd=ed("../internals/create-property"),Ed=ed("../internals/array-species-create"),Td=ed("../internals/array-method-has-species-support"),Od=ed("../internals/well-known-symbol"),Ad=ed("../internals/engine-v8-version"),Nd=Od("isConcatSpreadable"),kd=Ad>=51||!sd(function(){var Md=[];return Md[Nd]=!1,Md.concat()[0]!==Md}),Id=function(Md){if(!cd(Md))return!1;var Ld=Md[Nd];return Ld!==void 0?!!Ld:ld(Md)},Rd=!kd||!Td("concat");od({target:"Array",proto:!0,arity:1,forced:Rd},{concat:function(Ld){var jd=ud(this),Pd=Ed(jd,0),Fd=0,Ud,Vd,qd,Wd,zd;for(Ud=-1,qd=arguments.length;Ud<qd;Ud++)if(zd=Ud===-1?jd:arguments[Ud],Id(zd))for(Wd=gd(zd),_d(Fd+Wd),Vd=0;Vd<Wd;Vd++,Fd++)Vd in zd&&yd(Pd,Fd,zd[Vd]);else _d(Fd+1),yd(Pd,Fd++,zd);return Pd.length=Fd,Pd}})},{"../internals/array-method-has-species-support":127,"../internals/array-species-create":134,"../internals/create-property":147,"../internals/does-not-exceed-safe-integer":155,"../internals/engine-v8-version":167,"../internals/export":170,"../internals/fails":171,"../internals/is-array":201,"../internals/is-object":208,"../internals/length-of-array-like":219,"../internals/to-object":285,"../internals/well-known-symbol":306}],311:[function(ed,td,rd){var od=ed("../internals/export"),sd=ed("../internals/array-fill"),ld=ed("../internals/add-to-unscopables");od({target:"Array",proto:!0},{fill:sd}),ld("fill")},{"../internals/add-to-unscopables":111,"../internals/array-fill":120,"../internals/export":170}],312:[function(ed,td,rd){var od=ed("../internals/export"),sd=ed("../internals/array-iteration").filter,ld=ed("../internals/array-method-has-species-support"),cd=ld("filter");od({target:"Array",proto:!0,forced:!cd},{filter:function(gd){return sd(this,gd,arguments.length>1?arguments[1]:void 0)}})},{"../internals/array-iteration":125,"../internals/array-method-has-species-support":127,"../internals/export":170}],313:[function(ed,td,rd){var od=ed("../internals/export"),sd=ed("../internals/array-iteration").find,ld=ed("../internals/add-to-unscopables"),cd="find",ud=!0;cd in[]&&Array(1)[cd](function(){ud=!1}),od({target:"Array",proto:!0,forced:ud},{find:function(_d){return sd(this,_d,arguments.length>1?arguments[1]:void 0)}}),ld(cd)},{"../internals/add-to-unscopables":111,"../internals/array-iteration":125,"../internals/export":170}],314
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-30 15:19:18 +08:00
* /td.exports=function(ld){return ld!=null&&(od(ld)||sd(ld)||!!ld._isBuffer)};function od(ld){return!!ld.constructor&&typeof ld.constructor.isBuffer=="function"&&ld.constructor.isBuffer(ld)}function sd(ld){return typeof ld.readFloatLE=="function"&&typeof ld.slice=="function"&&od(ld.slice(0,0))}},{}],412:[function(ed,td,rd){var od=Function.prototype.toString,sd=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,ld,cd;if(typeof sd=="function"&&typeof Object.defineProperty=="function")try{ld=Object.defineProperty({},"length",{get:function(){throw cd}}),cd={},sd(function(){throw 42},null,ld)}catch(jd){jd!==cd&&(sd=null)}else sd=null;var ud=/^\s*class\b/,gd=function(Pd){try{var Fd=od.call(Pd);return ud.test(Fd)}catch{return!1}},_d=function(Pd){try{return gd(Pd)?!1:(od.call(Pd),!0)}catch{return!1}},yd=Object.prototype.toString,Ed="[object Object]",Td="[object Function]",Od="[object GeneratorFunction]",Ad="[object HTMLAllCollection]",Nd="[object HTML document.all class]",kd="[object HTMLCollection]",Id=typeof Symbol=="function"&&!!Symbol.toStringTag,Rd=!(0 in[,]),Md=function(){return!1};if(typeof document=="object"){var Ld=document.all;yd.call(Ld)===yd.call(document.all)&&(Md=function(Pd){if((Rd||!Pd)&&(typeof Pd>"u"||typeof Pd=="object"))try{var Fd=yd.call(Pd);return(Fd===Ad||Fd===Nd||Fd===kd||Fd===Ed)&&Pd("")==null}catch{}return!1})}td.exports=sd?function(Pd){if(Md(Pd))return!0;if(!Pd||typeof Pd!="function"&&typeof Pd!="object")return!1;try{sd(Pd,null,ld)}catch(Fd){if(Fd!==cd)return!1}return!gd(Pd)&&_d(Pd)}:function(Pd){if(Md(Pd))return!0;if(!Pd||typeof Pd!="function"&&typeof Pd!="object")return!1;if(Id)return _d(Pd);if(gd(Pd))return!1;var Fd=yd.call(Pd);return Fd!==Td&&Fd!==Od&&!/ ^ \ [ object HTML / . test ( Fd ) ? ! 1 : _d ( Pd ) } } , { } ] , 413 : [ function ( ed , td , rd ) { var od = Object . prototype . toString , sd = Function . prototype . toString , ld = /^\s*(?:function)?\*/ , cd = ed ( "has-tostringtag/shams" ) ( ) , ud = Object . getPrototypeOf , gd = function ( ) { if ( ! cd ) return ! 1 ; try { return Function ( "return function*() {}" ) ( ) } catch { } } , _d ; td . exports = function ( Ed ) { if ( typeof Ed != "function" ) return ! 1 ; if ( ld . test ( sd . call ( Ed ) ) ) return ! 0 ; if ( ! cd ) { var Td = od . call ( Ed ) ; return Td === "[object GeneratorFunction]" } if ( ! ud ) return ! 1 ; if ( typeof _d > "u" ) { var Od = gd ( ) ; _d = Od ? ud ( Od ) : ! 1 } return ud ( Ed ) === _d } } , { "has-tostringtag/shams" : 398 } ] , 414 : [ function ( ed , td , rd ) { var od = ed ( "which-typed-array" ) ; td . exports = function ( ld ) { return ! ! od ( ld ) } } , { "which-typed-array" : 492 } ] , 415 : [ function ( ed , td , rd ) { ( function ( od ) { ( function ( ) { ( function ( sd , ld ) { typeof rd == "object" && typeof td < "u" ? td . exports = ld ( sd ) : ld ( sd ) } ) ( typeof self < "u" ? self : typeof window < "u" ? window : typeof od < "u" ? od : this , function ( sd ) { sd = sd || { } ; var ld = sd . Base64 , cd = "2.6.4" , ud = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/" , gd = function ( gf ) { for ( var bf = { } , kf = 0 , Cf = gf . length ; kf < Cf ; kf ++ ) bf [ gf . charAt ( kf ) ] = kf ; return bf } ( ud ) , _d = String . fromCharCode , yd = function ( gf ) { if ( gf . length < 2 ) { var bf = gf . charCodeAt ( 0 ) ; return bf < 128 ? gf : bf < 2048 ? _d ( 192 | bf >>> 6 ) + _d ( 128 | bf & 63 ) : _d ( 224 | bf >>> 12 & 15 ) + _d ( 128 | bf >>> 6 & 63 ) + _d ( 128 | bf & 63 ) } else { var bf = 65536 + ( gf . charCodeAt ( 0 ) - 55296 ) * 1024 + ( gf . charCodeAt ( 1 ) - 56320 ) ; return _d ( 240 | bf >>> 18 & 7 ) + _d ( 128 | bf >>> 12 & 63 ) + _d ( 128 | bf >>> 6 & 63 ) + _d ( 128 | bf & 63 ) } } , Ed = /[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g , Td = function ( gf ) { return gf . replace ( Ed , yd ) } , Od = function ( gf ) { var bf = [ 0 , 2 , 1 ] [ gf . length % 3 ] , kf = gf . charCodeAt ( 0 ) << 16 | ( gf . length > 1 ? gf . charCodeAt ( 1 ) : 0 ) << 8 | ( gf . length > 2 ? gf . charCodeAt ( 2 ) : 0 ) , Cf = [ ud . charAt ( kf >>> 18 ) , ud . charAt ( kf >>> 12 & 63 ) , bf >= 2 ? "=" : ud . charAt ( kf >>> 6 & 63 ) , bf >= 1 ? "=" : ud . charAt ( kf & 63 ) ] ; return Cf . join ( "" ) } , Ad = sd . btoa && typeof sd . btoa == "function" ? function ( gf ) { return sd . btoa ( gf ) } : function ( gf ) { if ( gf . match ( /[^\x00-\xFF]/ ) ) throw new RangeError ( "The string contains invalid characters." ) ; return gf . replace ( /[\s\S]{1,3}/g , Od ) } , Nd = function ( gf ) { return Ad ( Td ( String ( gf ) ) ) } , kd = function ( gf ) { return gf . replace ( /[+\/]/g , function ( bf ) { return bf == "+" ? "-" : "_" } ) . replace ( /=/g , "" ) } , Id = function ( gf , bf ) { return bf ? kd ( Nd ( gf ) ) : Nd ( gf ) } , Rd = function ( gf ) { return Id ( gf , ! 0 ) } , Md ; sd . Uint8Array && ( Md = function ( gf , bf ) { for ( var kf = "" , Cf = 0 , Ef = gf . length ; Cf < Ef ; Cf += 3 ) { var yf = gf [ Cf ] , Mf = gf [ Cf + 1 ] , Af = gf [ Cf + 2 ] , Zd = yf << 16 | Mf << 8 | Af ; kf += ud .
` )>=0)return!1;return!0}function Gh(Rh,jh){var cm;if(Rh.indent===" ")cm=" ";else if(typeof Rh.indent=="number"&&Rh.indent>0)cm=zd.call(Array(Rh.indent+1)," ");else return null;return{base:cm,prev:zd.call(Array(jh+1),cm)}}function sm(Rh,jh){if(Rh.length===0)return"";var cm= `
` +jh.prev+jh.base;return cm+zd.call(Rh,","+cm)+ `
` +jh.prev}function kh(Rh,jh){var cm=Lf(Rh),Tm=[];if(cm){Tm.length=Rh.length;for(var Fm=0;Fm<Rh.length;Fm++)Tm[Fm]=Kf(Rh,Fm)?jh(Rh[Fm],Rh):""}var Gm=typeof gf=="function"?gf(Rh):[],s1;if(kf){s1={};for(var Km=0;Km<Gm.length;Km++)s1[" $ "+Gm[Km]]=Gm[Km]}for(var v1 in Rh)Kf(Rh,v1)&&(cm&&String(Number(v1))===v1&&v1<Rh.length||kf&&s1[" $ "+v1]instanceof Symbol||(qd.call(/[^ \w $ ]/,v1)?Tm.push(jh(v1,Rh)+": "+jh(Rh[v1],Rh)):Tm.push(v1+": "+jh(Rh[v1],Rh))));if(typeof gf=="function")for(var h1=0;h1<Gm.length;h1++)Ef.call(Rh,Gm[h1])&&Tm.push("["+jh(Gm[h1])+"]: "+jh(Rh[Gm[h1]],Rh));return Tm}}).call(this)}).call(this,typeof Ja<"u"?Ja:typeof self<"u"?self:typeof window<"u"?window:{})},{"./util.inspect":102}],436:[function(ed,td,rd){var od;if(!Object.keys){var sd=Object.prototype.hasOwnProperty,ld=Object.prototype.toString,cd=ed("./isArguments"),ud=Object.prototype.propertyIsEnumerable,gd=!ud.call({toString:null},"toString"),_d=ud.call(function(){},"prototype"),yd=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],Ed=function(Nd){var kd=Nd.constructor;return kd&&kd.prototype===Nd},Td={ $ applicationCache:!0, $ console:!0, $ external:!0, $ frame:!0, $ frameElement:!0, $ frames:!0, $ innerHeight:!0, $ innerWidth:!0, $ onmozfullscreenchange:!0, $ onmozfullscreenerror:!0, $ outerHeight:!0, $ outerWidth:!0, $ pageXOffset:!0, $ pageYOffset:!0, $ parent:!0, $ scrollLeft:!0, $ scrollTop:!0, $ scrollX:!0, $ scrollY:!0, $ self:!0, $ webkitIndexedDB:!0, $ webkitStorageInfo:!0, $ window:!0},Od=function(){if(typeof window>"u")return!1;for(var Nd in window)try{if(!Td[" $ "+Nd]&&sd.call(window,Nd)&&window[Nd]!==null&&typeof window[Nd]=="object")try{Ed(window[Nd])}catch{return!0}}catch{return!0}return!1}(),Ad=function(Nd){if(typeof window>"u"||!Od)return Ed(Nd);try{return Ed(Nd)}catch{return!1}};od=function(kd){var Id=kd!==null&&typeof kd=="object",Rd=ld.call(kd)==="[object Function]",Md=cd(kd),Ld=Id&&ld.call(kd)==="[object String]",jd=[];if(!Id&&!Rd&&!Md)throw new TypeError("Object.keys called on a non-object");var Pd=_d&&Rd;if(Ld&&kd.length>0&&!sd.call(kd,0))for(var Fd=0;Fd<kd.length;++Fd)jd.push(String(Fd));if(Md&&kd.length>0)for(var Ud=0;Ud<kd.length;++Ud)jd.push(String(Ud));else for(var Vd in kd)!(Pd&&Vd==="prototype")&&sd.call(kd,Vd)&&jd.push(String(Vd));if(gd)for(var qd=Ad(kd),Wd=0;Wd<yd.length;++Wd)!(qd&&yd[Wd]==="constructor")&&sd.call(kd,yd[Wd])&&jd.push(yd[Wd]);return jd}}td.exports=od},{"./isArguments":438}],437:[function(ed,td,rd){var od=Array.prototype.slice,sd=ed("./isArguments"),ld=Object.keys,cd=ld?function(_d){return ld(_d)}:ed("./implementation"),ud=Object.keys;cd.shim=function(){if(Object.keys){var _d=function(){var yd=Object.keys(arguments);return yd&&yd.length===arguments.length}(1,2);_d||(Object.keys=function(Ed){return sd(Ed)?ud(od.call(Ed)):ud(Ed)})}else Object.keys=cd;return Object.keys||cd},td.exports=cd},{"./implementation":436,"./isArguments":438}],438:[function(ed,td,rd){var od=Object.prototype.toString;td.exports=function(ld){var cd=od.call(ld),ud=cd==="[object Arguments]";return ud||(ud=cd!=="[object Array]"&&ld!==null&&typeof ld=="object"&&typeof ld.length=="number"&&ld.length>=0&&od.call(ld.callee)==="[object Function]"),ud}},{}],439:[function(ed,td,rd){var od=ed("object-keys"),sd=ed("has-symbols/shams")(),ld=ed("call-bind/callBound"),cd=Object,ud=ld("Array.prototype.push"),gd=ld("Object.prototype.propertyIsEnumerable"),_d=sd?Object.getOwnPropertySymbols:null;td.exports=function(Ed,Td){if(Ed==null)throw new TypeError("target must be an object");var Od=cd(Ed);if(arguments.length===1)return Od;for(var Ad=1;Ad<arguments.length;++Ad){var Nd=cd(arguments[Ad]),kd=od(Nd),Id=sd&&(Object.getOwnPropertySymbols||_d);if(Id)for(var Rd=Id(Nd),Md=0;Md<Rd.length;++Md){var Ld=Rd[Md];gd(Nd,Ld)&&ud(kd,Ld)}for(var jd=0;jd<kd.length;++jd){var Pd=kd[jd];if(gd(Nd,Pd)){var Fd=Nd[Pd];Od[Pd]=Fd}}}return Od}},{"call-bind/callBound":105,"has-symbols/shams":397,"object-keys":437}],440:[function(ed,td,rd){var od=ed("./implementation"),sd=function(){if(!Object.assign)return!1;for(var cd="abcdefghijklmnopqrst",ud=cd.split(""),gd={},_d=0;_d<ud
` ||xf===" \r "||xf===" "}function Ud(xf){return xf==='"'||xf==="'"}function Vd(xf){return xf===">"||Fd(xf)}function qd(xf,Nf){return xf.test(Nf)}function Wd(xf,Nf){return!qd(xf,Nf)}var zd=0;sd.STATE={BEGIN:zd++,BEGIN_WHITESPACE:zd++,TEXT:zd++,TEXT_ENTITY:zd++,OPEN_WAKA:zd++,SGML_DECL:zd++,SGML_DECL_QUOTED:zd++,DOCTYPE:zd++,DOCTYPE_QUOTED:zd++,DOCTYPE_DTD:zd++,DOCTYPE_DTD_QUOTED:zd++,COMMENT_STARTING:zd++,COMMENT:zd++,COMMENT_ENDING:zd++,COMMENT_ENDED:zd++,CDATA:zd++,CDATA_ENDING:zd++,CDATA_ENDING_2:zd++,PROC_INST:zd++,PROC_INST_BODY:zd++,PROC_INST_ENDING:zd++,OPEN_TAG:zd++,OPEN_TAG_SLASH:zd++,ATTRIB:zd++,ATTRIB_NAME:zd++,ATTRIB_NAME_SAW_WHITE:zd++,ATTRIB_VALUE:zd++,ATTRIB_VALUE_QUOTED:zd++,ATTRIB_VALUE_CLOSED:zd++,ATTRIB_VALUE_UNQUOTED:zd++,ATTRIB_VALUE_ENTITY_Q:zd++,ATTRIB_VALUE_ENTITY_U:zd++,CLOSE_TAG:zd++,CLOSE_TAG_SAW_WHITE:zd++,SCRIPT:zd++,SCRIPT_ENDING:zd++},sd.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},sd.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(sd.ENTITIES).forEach(function(xf){var Nf=sd.ENTITIES[xf],Bf=typeof Nf=="number"?String.fromCharCode(Nf):Nf;sd.ENTITIES[xf]=Bf});for(var Kd in sd.STATE)sd.STATE[sd.STATE[Kd]]=Kd;zd=sd.STATE;function Qd(xf,Nf,Bf){xf[Nf]&&xf[Nf](Bf)}function hf(xf,Nf,Bf){xf.textNode&&gf(xf),Qd(xf,Nf,Bf)}function gf(xf){xf.textNode=bf(xf.opt,xf.textNode),xf.textNode&&Qd(xf,"ontext",xf.textNode),xf.textNode=""}function bf(xf,Nf){return xf.trim&&(Nf=Nf.trim()),xf.normalize&&(Nf=Nf.replace(/ \s +/g," ")),Nf}function kf(xf,Nf){return gf(xf),xf.trackPosition&&(Nf+= `
Line : ` +xf.line+ `
Column : ` +xf.column+ `
Char : ` +xf.c),Nf=new Error(Nf),xf.error=Nf,Qd(xf,"onerror",Nf),xf}function Cf(xf){return xf.sawRoot&&!xf.closedRoot&&Ef(xf,"Unclosed root tag"),xf.state!==zd.BEGIN&&xf.state!==zd.BEGIN_WHITESPACE&&xf.state!==zd.TEXT&&kf(xf,"Unexpected end"),gf(xf),xf.c="",xf.closed=!0,Qd(xf,"onend"),cd.call(xf,xf.strict,xf.opt),xf}function Ef(xf,Nf){if(typeof xf!="object"||!(xf instanceof cd))throw new Error("bad call to strictFail");xf.strict&&kf(xf,Nf)}function yf(xf){xf.strict||(xf.tagName=xf.tagName[xf.looseCase]());var Nf=xf.tags[xf.tags.length-1]||xf,Bf=xf.tag={name:xf.tagName,attributes:{}};xf.opt.xmlns&&(Bf.ns=Nf.ns),xf.attribList.length=0,hf(xf,"onopentagstart",Bf)}function Mf(xf,Nf){var Bf=xf.indexOf(":"),Tf=Bf<0?["",xf]:xf.split(":"),wf=Tf[0],Of=Tf[1];return Nf&&xf==="xmlns"&&(wf="xmlns",Of=""),{prefix:wf,local:Of}}function Af(xf){if(xf.strict||(xf.attribName=xf.attribName[xf.looseCase]()),xf.attribList.indexOf(xf.attribName)!==-1||xf.tag.attributes.hasOwnProperty(xf.attribName)){xf.attribName=xf.attribValue="";return}if(xf.opt.xmlns){var Nf=Mf(xf.attribName,!0),Bf=Nf.prefix,Tf=Nf.local;if(Bf==="xmlns")if(Tf==="xml"&&xf.attribValue!==kd)Ef(xf,"xml: prefix must be bound to "+kd+ `
Actual : ` +xf.attribValue);else if(Tf==="xmlns"&&xf.attribValue!==Id)Ef(xf,"xmlns: prefix must be bound to "+Id+ `
Actual : ` +xf.attribValue);else{var wf=xf.tag,Of=xf.tags[xf.tags.length-1]||xf;wf.ns===Of.ns&&(wf.ns=Object.create(Of.ns)),wf.ns[Tf]=xf.attribValue}xf.attribList.push([xf.attribName,xf.attribValue])}else xf.tag.attributes[xf.attribName]=xf.attribValue,hf(xf,"onattribute",{name:xf.attribName,value:xf.attribValue});xf.attribName=xf.attribValue=""}function Zd(xf,Nf){if(xf.opt.xmlns){var Bf=xf.tag,Tf=Mf(xf.tagName);Bf.prefix=Tf.prefix,Bf.local=Tf.local,Bf.uri=Bf.ns[Tf.prefix]||"",Bf.prefix&&!Bf.uri&&(Ef(xf,"Unbound namespace prefix: "+JSON.stringify(xf.tagName)),Bf.uri=Tf.prefix);var wf=xf.tags[xf.tags.length-1]||xf;Bf.ns&&wf.ns!==Bf.ns&&Object.keys(Bf.ns).forEach(function(Bh){hf(xf,"onopennamespace",{prefix:Bh,uri:Bf.ns[Bh]})});for(var Of=0, $ f=xf.attribList.length;Of< $ f;Of++){var Wf=xf.attribList[Of],Kf=Wf[0],Df=Wf[1],qf=Mf(Kf,!0),Xf=qf.prefix,hh=qf.local,Mh=Xf===""?"":Bf.ns[Xf]||"",wh={name:Kf,value:Df,prefix:Xf,local:hh,uri:Mh};Xf&&Xf!=="xmlns"&&!Mh&&(Ef(xf,"Unbound namespace prefix: "+JSON.stringify(Xf)),wh.uri=Xf),xf.tag.attributes[Kf]=wh,hf(xf,"onattribute",wh)}xf.attribList.length=0}xf.tag.isSelfClosing=!!Nf,xf.sawRoot=!0,xf.tags.push(xf.tag),hf(xf,"onopentag",xf.tag),Nf||(!xf.noscript&&xf.tagName.toLowerCase()==="script"?xf.state=zd.SCRIPT:xf.state=zd.TEXT,xf.tag=null,xf.tagName=""),xf.attribName=xf.attribValue="",xf.attribList.length=0}function mf(xf){if(!xf.tagName){Ef(xf,"Weird empty close tag."),xf.textNode+="</>",xf.state=zd.TEXT;return}if(xf.script){if(xf.tagName!=="script"){xf.script+="</"+xf.tagName+">",xf.tagName="",xf.state=zd.SCRIPT;return}hf(xf,"onscript",xf.script),xf.script=""}var Nf=xf.tags.length,Bf=xf.tagName;xf.strict||(Bf=Bf[xf.looseCase]());for(var Tf=Bf;Nf--;){var wf=xf.tags[Nf];if(wf.name!==Tf)Ef(xf,"Unexpected close tag");else break}if(Nf<0){Ef(xf,"Unmatched closing tag: "+xf.tagName),xf.textNode+="</"+xf.tagName+">",xf.state=zd.TEXT;return}xf.tagName=Bf;for(var Of=xf.tags.length;Of-- >Nf;){var $ f=xf.tag=xf.tags.pop();xf.tagName=xf.tag.name,hf(xf,"onclosetag",xf.tagName);var Wf={};for(var Kf in $ f.ns)Wf[Kf]= $ f.ns[Kf];var Df=xf.tags[xf.tags.length-1]||xf;xf.opt.xmlns&& $ f.ns!==Df.ns&&Object.keys( $ f.ns).forEach(function(qf){var Xf= $ f.ns[qf];hf(xf,"onclosenamespace",{prefix:qf,uri:Xf})})}Nf===0&&(xf.closedRoot=!0),xf.tagName=xf.attribValue=xf.attribName="",xf.attribList.length=0,xf.state=zd.TEXT}function Pf(xf){var Nf=xf.entity,Bf=Nf.toLowerCase(),Tf,wf="";return xf.ENTITIES[Nf]?xf.ENTITIES[Nf]:xf.ENTITIES[Bf]?xf.ENTITIES[Bf]:(Nf=Bf,Nf.charAt(0)==="#"&&(Nf.charAt(1)==="x"?(Nf=Nf.slice(2),Tf=parseInt(Nf,16),wf=Tf.toString(16)):(Nf=Nf.slice(1),Tf=parseInt(Nf,10),wf=Tf.toString(10))),Nf=Nf.replace(/^0+/,""),isNaN(Tf)||wf.toLowerCase()!==Nf?(Ef(xf,"Invalid character entity"),"&"+xf.entity+";"):String.fromCodePoint(Tf))}function Ff(xf,Nf){Nf==="<"?(xf.state=zd.OPEN_WAKA,xf.startTagPosition=xf.position):Fd(Nf)||(Ef(xf,"Non-whitespace before first tag."),xf.textNode=Nf,xf.state=zd.TEXT)}function Lf(xf,Nf){var Bf="";return Nf<xf.length&&(Bf=xf.charAt(Nf)),Bf}function jf(xf){var Nf=this;if(this.error)throw this.error;if(Nf.closed)return kf(Nf,"Cannot write after close. Assign an onready handler.");if(xf===null)return Cf(Nf);typeof xf=="object"&&(xf=xf.toString());for(var Bf=0,Tf="";Tf=Lf(xf,Bf++),Nf.c=Tf,!!Tf;)switch(Nf.trackPosition&&(Nf.position++,Tf=== `
` ?(Nf.line++,Nf.column=0):Nf.column++),Nf.state){case zd.BEGIN:if(Nf.state=zd.BEGIN_WHITESPACE,Tf===" \u FEFF")continue;Ff(Nf,Tf);continue;case zd.BEGIN_WHITESPACE:Ff(Nf,Tf);continue;case zd.TEXT:if(Nf.sawRoot&&!Nf.closedRoot){for(var wf=Bf-1;Tf&&Tf!=="<"&&Tf!=="&";)Tf=Lf(xf,Bf++),Tf&&Nf.trackPosition&&(Nf.position++,Tf=== `
` ?(Nf.line++,Nf.column=0):Nf.column++);Nf.textNode+=xf.substring(wf,Bf-1)}Tf==="<"&&!(Nf.sawRoot&&Nf.closedRoot&&!Nf.strict)?(Nf.state=zd.OPEN_WAKA,Nf.startTagPosition=Nf.position):(!Fd(Tf)&&(!Nf.sawRoot||Nf.closedRoot)&&Ef(Nf,"Text data outside of root node."),Tf==="&"?Nf.state=zd.TEXT_ENTITY:Nf.textNode+=Tf);continue;case zd.SCRIPT:Tf==="<"?Nf.state=zd.SCRIPT_ENDING:Nf.script+=Tf;continue;case zd.SCRIPT_ENDING:Tf==="/"?Nf.state=zd.CLOSE_TAG:(Nf.script+="<"+Tf,Nf.state=zd.SCRIPT);continue;case zd.OPEN_WAKA:if(Tf==="!")Nf.state=zd.SGML_DECL,Nf.sgmlDecl="";else if(!Fd(Tf))if(qd(Md,Tf))Nf.state=zd.OPEN_TAG,Nf.tagName=Tf;else if(Tf==="/")Nf.state=zd.CLOSE_TAG,Nf.tagName="";else if(Tf==="?")Nf.state=zd.PROC_INST,Nf.procInstName=Nf.procInstBody="";else{if(Ef(Nf,"Unencoded <"),Nf.startTagPosition+1<Nf.position){var Of=Nf.position-Nf.startTagPosition;Tf=new Array(Of).join(" ")+Tf}Nf.textNode+="<"+Tf,Nf.state=zd.TEXT}continue;case zd.SGML_DECL:(Nf.sgmlDecl+Tf).toUpperCase()===Ad?(hf(Nf,"onopencdata"),Nf.state=zd.CDATA,Nf.sgmlDecl="",Nf.cdata=""):Nf.sgmlDecl+Tf==="--"?(Nf.state=zd.COMMENT,Nf.comment="",Nf.sgmlDecl=""):(Nf.sgmlDecl+Tf).toUpperCase()===Nd?(Nf.state=zd.DOCTYPE,(Nf.doctype||Nf.sawRoot)&&Ef(Nf,"Inappropriately located doctype declaration"),Nf.doctype="",Nf.sgmlDecl=""):Tf===">"?(hf(Nf,"onsgmldeclaration",Nf.sgmlDecl),Nf.sgmlDecl="",Nf.state=zd.TEXT):(Ud(Tf)&&(Nf.state=zd.SGML_DECL_QUOTED),Nf.sgmlDecl+=Tf);continue;case zd.SGML_DECL_QUOTED:Tf===Nf.q&&(Nf.state=zd.SGML_DECL,Nf.q=""),Nf.sgmlDecl+=Tf;continue;case zd.DOCTYPE:Tf===">"?(Nf.state=zd.TEXT,hf(Nf,"ondoctype",Nf.doctype),Nf.doctype=!0):(Nf.doctype+=Tf,Tf==="["?Nf.state=zd.DOCTYPE_DTD:Ud(Tf)&&(Nf.state=zd.DOCTYPE_QUOTED,Nf.q=Tf));continue;case zd.DOCTYPE_QUOTED:Nf.doctype+=Tf,Tf===Nf.q&&(Nf.q="",Nf.state=zd.DOCTYPE);continue;case zd.DOCTYPE_DTD:Nf.doctype+=Tf,Tf==="]"?Nf.state=zd.DOCTYPE:Ud(Tf)&&(Nf.state=zd.DOCTYPE_DTD_QUOTED,Nf.q=Tf);continue;case zd.DOCTYPE_DTD_QUOTED:Nf.doctype+=Tf,Tf===Nf.q&&(Nf.state=zd.DOCTYPE_DTD,Nf.q="");continue;case zd.COMMENT:Tf==="-"?Nf.state=zd.COMMENT_ENDING:Nf.comment+=Tf;continue;case zd.COMMENT_ENDING:Tf==="-"?(Nf.state=zd.COMMENT_ENDED,Nf.comment=bf(Nf.opt,Nf.comment),Nf.comment&&hf(Nf,"oncomment",Nf.comment),Nf.comment=""):(Nf.comment+="-"+Tf,Nf.state=zd.COMMENT);continue;case zd.COMMENT_ENDED:Tf!==">"?(Ef(Nf,"Malformed comment"),Nf.comment+="--"+Tf,Nf.state=zd.COMMENT):Nf.state=zd.TEXT;continue;case zd.CDATA:Tf==="]"?Nf.state=zd.CDATA_ENDING:Nf.cdata+=Tf;continue;case zd.CDATA_ENDING:Tf==="]"?Nf.state=zd.CDATA_ENDING_2:(Nf.cdata+="]"+Tf,Nf.state=zd.CDATA);continue;case zd.CDATA_ENDING_2:Tf===">"?(Nf.cdata&&hf(Nf,"oncdata",Nf.cdata),hf(Nf,"onclosecdata"),Nf.cdata="",Nf.state=zd.TEXT):Tf==="]"?Nf.cdata+="]":(Nf.cdata+="]]"+Tf,Nf.state=zd.CDATA);continue;case zd.PROC_INST:Tf==="?"?Nf.state=zd.PROC_INST_ENDING:Fd(Tf)?Nf.state=zd.PROC_INST_BODY:Nf.procInstName+=Tf;continue;case zd.PROC_INST_BODY:if(!Nf.procInstBody&&Fd(Tf))continue;Tf==="?"?Nf.state=zd.PROC_INST_ENDING:Nf.procInstBody+=Tf;continue;case zd.PROC_INST_ENDING:Tf===">"?(hf(Nf,"onprocessinginstruction",{name:Nf.procInstName,body:Nf.procInstBody}),Nf.procInstName=Nf.procInstBody="",Nf.state=zd.TEXT):(Nf.procInstBody+="?"+Tf,Nf.state=zd.PROC_INST_BODY);continue;case zd.OPEN_TAG:qd(Ld,Tf)?Nf.tagName+=Tf:(yf(Nf),Tf===">"?Zd(Nf):Tf==="/"?Nf.state=zd.OPEN_TAG_SLASH:(Fd(Tf)||Ef(Nf,"Invalid character in tag name"),Nf.state=zd.ATTRIB));continue;case zd.OPEN_TAG_SLASH:Tf===">"?(Zd(Nf,!0),mf(Nf)):(Ef(Nf,"Forward-slash in opening tag not followed by >"),Nf.state=zd.ATTRIB);continue;case zd.ATTRIB:if(Fd(Tf))continue;Tf===">"?Zd(Nf):Tf==="/"?Nf.state=zd.OPEN_TAG_SLASH:qd(Md,Tf)?(Nf.attribName=Tf,Nf.attribValue="",Nf.state=zd.ATTRIB_NAME):Ef(Nf,"Invalid attribute name");continue;case zd.ATTRIB_NAME:Tf==="="?Nf.state=zd.ATTRIB_VALUE:Tf===">"?(Ef(Nf,"Attribute without value"),Nf.attribValue=Nf.attribName,Af(Nf),Zd(Nf)):Fd(Tf)?Nf.state=zd.ATTRIB_NAME_SAW_WHITE:qd(Ld,Tf)?Nf.attribName+=Tf:Ef(Nf,"Invalid attribute name");continue;case zd.ATTRIB_NAME_SAW_WHITE:if(Tf==="=")Nf.state=zd.ATTRI
` )>-1&&(xf?Bf=Bf.split( `
` ).map(function(wf){return" "+wf}).join( `
` ).slice(2):Bf= `
` +Bf.split( `
` ).map(function(wf){return" "+wf}).join( `
` ))):Bf=mf.stylize("[Circular]","special")),qd(Nf)){if(xf&&jf.match(/^ \d + $ /))return Bf;Nf=JSON.stringify(""+jf),Nf.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)" $ /)?(Nf=Nf.slice(1,-1),Nf=mf.stylize(Nf,"name")):(Nf=Nf.replace(/'/g," \\ '").replace(/ \\ "/g,'"').replace(/(^"|" $ )/g,"'"),Nf=mf.stylize(Nf,"string"))}return Nf+": "+Bf}function Rd(mf,Pf,Ff){var Lf=mf.reduce(function(jf,xf){return xf.indexOf( `
` )>=0,jf+xf.replace(/ \u 001b \[ \d \d ?m/g,"").length+1},0);return Lf>60?Ff[0]+(Pf===""?"":Pf+ `
` )+" "+mf.join( ` ,
` )+" "+Ff[1]:Ff[0]+Pf+" "+mf.join(", ")+" "+Ff[1]}rd.types=ed("./support/types");function Md(mf){return Array.isArray(mf)}rd.isArray=Md;function Ld(mf){return typeof mf=="boolean"}rd.isBoolean=Ld;function jd(mf){return mf===null}rd.isNull=jd;function Pd(mf){return mf==null}rd.isNullOrUndefined=Pd;function Fd(mf){return typeof mf=="number"}rd.isNumber=Fd;function Ud(mf){return typeof mf=="string"}rd.isString=Ud;function Vd(mf){return typeof mf=="symbol"}rd.isSymbol=Vd;function qd(mf){return mf===void 0}rd.isUndefined=qd;function Wd(mf){return zd(mf)&&bf(mf)==="[object RegExp]"}rd.isRegExp=Wd,rd.types.isRegExp=Wd;function zd(mf){return typeof mf=="object"&&mf!==null}rd.isObject=zd;function Kd(mf){return zd(mf)&&bf(mf)==="[object Date]"}rd.isDate=Kd,rd.types.isDate=Kd;function Qd(mf){return zd(mf)&&(bf(mf)==="[object Error]"||mf instanceof Error)}rd.isError=Qd,rd.types.isNativeError=Qd;function hf(mf){return typeof mf=="function"}rd.isFunction=hf;function gf(mf){return mf===null||typeof mf=="boolean"||typeof mf=="number"||typeof mf=="string"||typeof mf=="symbol"||typeof mf>"u"}rd.isPrimitive=gf,rd.isBuffer=ed("./support/isBuffer");function bf(mf){return Object.prototype.toString.call(mf)}function kf(mf){return mf<10?"0"+mf.toString(10):mf.toString(10)}var Cf=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function Ef(){var mf=new Date,Pf=[kf(mf.getHours()),kf(mf.getMinutes()),kf(mf.getSeconds())].join(":");return[mf.getDate(),Cf[mf.getMonth()],Pf].join(" ")}rd.log=function(){console.log("%s - %s",Ef(),rd.format.apply(rd,arguments))},rd.inherits=ed("inherits"),rd._extend=function(mf,Pf){if(!Pf||!zd(Pf))return mf;for(var Ff=Object.keys(Pf),Lf=Ff.length;Lf--;)mf[Ff[Lf]]=Pf[Ff[Lf]];return mf};function yf(mf,Pf){return Object.prototype.hasOwnProperty.call(mf,Pf)}var Mf=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;rd.promisify=function(Pf){if(typeof Pf!="function")throw new TypeError('The "original" argument must be of type Function');if(Mf&&Pf[Mf]){var Ff=Pf[Mf];if(typeof Ff!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(Ff,Mf,{value:Ff,enumerable:!1,writable:!1,configurable:!0}),Ff}function Ff(){for(var Lf,jf,xf=new Promise(function(Tf,wf){Lf=Tf,jf=wf}),Nf=[],Bf=0;Bf<arguments.length;Bf++)Nf.push(arguments[Bf]);Nf.push(function(Tf,wf){Tf?jf(Tf):Lf(wf)});try{Pf.apply(this,Nf)}catch(Tf){jf(Tf)}return xf}return Object.setPrototypeOf(Ff,Object.getPrototypeOf(Pf)),Mf&&Object.defineProperty(Ff,Mf,{value:Ff,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(Ff,sd(Pf))},rd.promisify.custom=Mf;function Af(mf,Pf){if(!mf){var Ff=new Error("Promise was rejected with a falsy value");Ff.reason=mf,mf=Ff}return Pf(mf)}function Zd(mf){if(typeof mf!="function")throw new TypeError('The "original" argument must be of type Function');function Pf(){for(var Ff=[],Lf=0;Lf<arguments.length;Lf++)Ff.push(arguments[Lf]);var jf=Ff.pop();if(typeof jf!="function")throw new TypeError("The last argument must be of type Function");var xf=this,Nf=function(){return jf.apply(xf,arguments)};mf.apply(this,Ff).then(function(Bf){od.nextTick(Nf.bind(null,null,Bf))},function(Bf){od.nextTick(Af.bind(null,Bf,Nf))})}return Object.setPrototypeOf(Pf,Object.getPrototypeOf(mf)),Object.defineProperties(Pf,sd(mf)),Pf}rd.callbackify=Zd}).call(this)}).call(this,ed("_process"))},{"./support/isBuffer":489,"./support/types":490,_process:540,inherits:409}],492:[function(ed,td,rd){(function(od){(function(){var sd=ed("for-each"),ld=ed("available-typed-arrays"),cd=ed("call-bind"),ud=ed("call-bind/callBound"),gd=ed("gopd"),_d=ud("Object.prototype.toString"),yd=ed("has-tostringtag/shams")(),Ed=typeof globalThis>"u"?od:globalThis,Td=ld(),Od=ud("String.prototype.slice"),Ad=Object.getPrototypeOf,Nd=ud("Array.prototype.indexOf",!0)||function(Ld,jd){for(var Pd=0;Pd<Ld.length;Pd+=1)if(Ld[Pd]===jd)return Pd;return-1},kd={__proto__:null};yd&&gd&&Ad?sd(Td,function(Md){var Ld=new Ed[Md];if(Symbol.toStringTag in Ld){var jd=Ad(Ld),Pd=gd(jd,Symbol.toStringTag);if(!Pd)
` },headless:!1,chunkSize:1e4,emptyTag:"",cdata:!1}}}).call(this)},{}],496:[function(ed,td,rd){(function(){var od,sd,ld,cd,ud,gd,_d,yd,Ed,Td=function(Nd,kd){return function(){return Nd.apply(kd,arguments)}},Od=function(Nd,kd){for(var Id in kd)Ad.call(kd,Id)&&(Nd[Id]=kd[Id]);function Rd(){this.constructor=Nd}return Rd.prototype=kd.prototype,Nd.prototype=new Rd,Nd.__super__=kd.prototype,Nd},Ad={}.hasOwnProperty;yd=ed("sax"),cd=ed("events"),od=ed("./bom"),_d=ed("./processors"),Ed=ed("timers").setImmediate,sd=ed("./defaults").defaults,ud=function(Nd){return typeof Nd=="object"&&Nd!=null&&Object.keys(Nd).length===0},gd=function(Nd,kd,Id){var Rd,Md,Ld;for(Rd=0,Md=Nd.length;Rd<Md;Rd++)Ld=Nd[Rd],kd=Ld(kd,Id);return kd},ld=function(Nd,kd,Id){var Rd;return Rd=Object.create(null),Rd.value=Id,Rd.writable=!0,Rd.enumerable=!0,Rd.configurable=!0,Object.defineProperty(Nd,kd,Rd)},rd.Parser=function(Nd){Od(kd,Nd);function kd(Id){this.parseStringPromise=Td(this.parseStringPromise,this),this.parseString=Td(this.parseString,this),this.reset=Td(this.reset,this),this.assignOrPush=Td(this.assignOrPush,this),this.processAsync=Td(this.processAsync,this);var Rd,Md,Ld;if(!(this instanceof rd.Parser))return new rd.Parser(Id);this.options={},Md=sd["0.2"];for(Rd in Md)Ad.call(Md,Rd)&&(Ld=Md[Rd],this.options[Rd]=Ld);for(Rd in Id)Ad.call(Id,Rd)&&(Ld=Id[Rd],this.options[Rd]=Ld);this.options.xmlns&&(this.options.xmlnskey=this.options.attrkey+"ns"),this.options.normalizeTags&&(this.options.tagNameProcessors||(this.options.tagNameProcessors=[]),this.options.tagNameProcessors.unshift(_d.normalize)),this.reset()}return kd.prototype.processAsync=function(){var Id,Rd;try{return this.remaining.length<=this.options.chunkSize?(Id=this.remaining,this.remaining="",this.saxParser=this.saxParser.write(Id),this.saxParser.close()):(Id=this.remaining.substr(0,this.options.chunkSize),this.remaining=this.remaining.substr(this.options.chunkSize,this.remaining.length),this.saxParser=this.saxParser.write(Id),Ed(this.processAsync))}catch(Md){if(Rd=Md,!this.saxParser.errThrown)return this.saxParser.errThrown=!0,this.emit(Rd)}},kd.prototype.assignOrPush=function(Id,Rd,Md){return Rd in Id?(Id[Rd]instanceof Array||ld(Id,Rd,[Id[Rd]]),Id[Rd].push(Md)):this.options.explicitArray?ld(Id,Rd,[Md]):ld(Id,Rd,Md)},kd.prototype.reset=function(){var Id,Rd,Md,Ld;return this.removeAllListeners(),this.saxParser=yd.parser(this.options.strict,{trim:!1,normalize:!1,xmlns:this.options.xmlns}),this.saxParser.errThrown=!1,this.saxParser.onerror=function(jd){return function(Pd){if(jd.saxParser.resume(),!jd.saxParser.errThrown)return jd.saxParser.errThrown=!0,jd.emit("error",Pd)}}(this),this.saxParser.onend=function(jd){return function(){if(!jd.saxParser.ended)return jd.saxParser.ended=!0,jd.emit("end",jd.resultObject)}}(this),this.saxParser.ended=!1,this.EXPLICIT_CHARKEY=this.options.explicitCharkey,this.resultObject=null,Ld=[],Id=this.options.attrkey,Rd=this.options.charkey,this.saxParser.onopentag=function(jd){return function(Pd){var Fd,Ud,Vd,qd,Wd;if(Vd={},Vd[Rd]="",!jd.options.ignoreAttrs){Wd=Pd.attributes;for(Fd in Wd)Ad.call(Wd,Fd)&&(!(Id in Vd)&&!jd.options.mergeAttrs&&(Vd[Id]={}),Ud=jd.options.attrValueProcessors?gd(jd.options.attrValueProcessors,Pd.attributes[Fd],Fd):Pd.attributes[Fd],qd=jd.options.attrNameProcessors?gd(jd.options.attrNameProcessors,Fd):Fd,jd.options.mergeAttrs?jd.assignOrPush(Vd,qd,Ud):ld(Vd[Id],qd,Ud))}return Vd["#name"]=jd.options.tagNameProcessors?gd(jd.options.tagNameProcessors,Pd.name):Pd.name,jd.options.xmlns&&(Vd[jd.options.xmlnskey]={uri:Pd.uri,local:Pd.local}),Ld.push(Vd)}}(this),this.saxParser.onclosetag=function(jd){return function(){var Pd,Fd,Ud,Vd,qd,Wd,zd,Kd,Qd,hf;if(Wd=Ld.pop(),qd=Wd["#name"],(!jd.options.explicitChildren||!jd.options.preserveChildrenOrder)&&delete Wd["#name"],Wd.cdata===!0&&(Pd=Wd.cdata,delete Wd.cdata),Qd=Ld[Ld.length-1],Wd[Rd].match(/^ \s * $ /)&&!Pd?(Fd=Wd[Rd],delete Wd[Rd]):(jd.options.trim&&(Wd[Rd]=Wd[Rd].trim()),jd.options.normalize&&(Wd[Rd]=Wd[Rd].replace(/ \s {2,}/g," ").trim()),Wd[Rd]=jd.options.valueProcessors?gd(jd.options.valueProcessors
` ,_d.offset=(Td=gd.offset)!=null?Td:0,_d.dontPrettyTextNodes=(Od=(Ad=gd.dontPrettyTextNodes)!=null?Ad:gd.dontprettytextnodes)!=null?Od:0,_d.spaceBeforeSlash=(Nd=(kd=gd.spaceBeforeSlash)!=null?kd:gd.spacebeforeslash)!=null?Nd:"",_d.spaceBeforeSlash===!0&&(_d.spaceBeforeSlash=" "),_d.suppressPrettyCount=0,_d.user={},_d.state=sd.None,_d},ud.prototype.indent=function(gd,_d,yd){var Ed;return!_d.pretty||_d.suppressPrettyCount?"":_d.pretty&&(Ed=(yd||0)+_d.offset+1,Ed>0)?new Array(Ed).join(_d.indent):""},ud.prototype.endline=function(gd,_d,yd){return!_d.pretty||_d.suppressPrettyCount?"":_d.newline},ud.prototype.attribute=function(gd,_d,yd){var Ed;return this.openAttribute(gd,_d,yd),Ed=" "+gd.name+'="'+gd.value+'"',this.closeAttribute(gd,_d,yd),Ed},ud.prototype.cdata=function(gd,_d,yd){var Ed;return this.openNode(gd,_d,yd),_d.state=sd.OpenTag,Ed=this.indent(gd,_d,yd)+"<![CDATA[",_d.state=sd.InsideTag,Ed+=gd.value,_d.state=sd.CloseTag,Ed+="]]>"+this.endline(gd,_d,yd),_d.state=sd.None,this.closeNode(gd,_d,yd),Ed},ud.prototype.comment=function(gd,_d,yd){var Ed;return this.openNode(gd,_d,yd),_d.state=sd.OpenTag,Ed=this.indent(gd,_d,yd)+"<!-- ",_d.state=sd.InsideTag,Ed+=gd.value,_d.state=sd.CloseTag,Ed+=" -->"+this.endline(gd,_d,yd),_d.state=sd.None,this.closeNode(gd,_d,yd),Ed},ud.prototype.declaration=function(gd,_d,yd){var Ed;return this.openNode(gd,_d,yd),_d.state=sd.OpenTag,Ed=this.indent(gd,_d,yd)+"<?xml",_d.state=sd.InsideTag,Ed+=' version="'+gd.version+'"',gd.encoding!=null&&(Ed+=' encoding="'+gd.encoding+'"'),gd.standalone!=null&&(Ed+=' standalone="'+gd.standalone+'"'),_d.state=sd.CloseTag,Ed+=_d.spaceBeforeSlash+"?>",Ed+=this.endline(gd,_d,yd),_d.state=sd.None,this.closeNode(gd,_d,yd),Ed},ud.prototype.docType=function(gd,_d,yd){var Ed,Td,Od,Ad,Nd;if(yd||(yd=0),this.openNode(gd,_d,yd),_d.state=sd.OpenTag,Ad=this.indent(gd,_d,yd),Ad+="<!DOCTYPE "+gd.root().name,gd.pubID&&gd.sysID?Ad+=' PUBLIC "'+gd.pubID+'" "'+gd.sysID+'"':gd.sysID&&(Ad+=' SYSTEM "'+gd.sysID+'"'),gd.children.length>0){for(Ad+=" [",Ad+=this.endline(gd,_d,yd),_d.state=sd.InsideTag,Nd=gd.children,Td=0,Od=Nd.length;Td<Od;Td++)Ed=Nd[Td],Ad+=this.writeChildNode(Ed,_d,yd+1);_d.state=sd.CloseTag,Ad+="]"}return _d.state=sd.CloseTag,Ad+=_d.spaceBeforeSlash+">",Ad+=this.endline(gd,_d,yd),_d.state=sd.None,this.closeNode(gd,_d,yd),Ad},ud.prototype.element=function(gd,_d,yd){var Ed,Td,Od,Ad,Nd,kd,Id,Rd,Md,Ld,jd,Pd,Fd,Ud;yd||(yd=0),Ld=!1,jd="",this.openNode(gd,_d,yd),_d.state=sd.OpenTag,jd+=this.indent(gd,_d,yd)+"<"+gd.name,Pd=gd.attribs;for(Md in Pd)cd.call(Pd,Md)&&(Ed=Pd[Md],jd+=this.attribute(Ed,_d,yd));if(Od=gd.children.length,Ad=Od===0?null:gd.children[0],Od===0||gd.children.every(function(Vd){return(Vd.type===od.Text||Vd.type===od.Raw)&&Vd.value===""}))_d.allowEmpty?(jd+=">",_d.state=sd.CloseTag,jd+="</"+gd.name+">"+this.endline(gd,_d,yd)):(_d.state=sd.CloseTag,jd+=_d.spaceBeforeSlash+"/>"+this.endline(gd,_d,yd));else if(_d.pretty&&Od===1&&(Ad.type===od.Text||Ad.type===od.Raw)&&Ad.value!=null)jd+=">",_d.state=sd.InsideTag,_d.suppressPrettyCount++,Ld=!0,jd+=this.writeChildNode(Ad,_d,yd+1),_d.suppressPrettyCount--,Ld=!1,_d.state=sd.CloseTag,jd+="</"+gd.name+">"+this.endline(gd,_d,yd);else{if(_d.dontPrettyTextNodes){for(Fd=gd.children,Nd=0,Id=Fd.length;Nd<Id;Nd++)if(Td=Fd[Nd],(Td.type===od.Text||Td.type===od.Raw)&&Td.value!=null){_d.suppressPrettyCount++,Ld=!0;break}}for(jd+=">"+this.endline(gd,_d,yd),_d.state=sd.InsideTag,Ud=gd.children,kd=0,Rd=Ud.length;kd<Rd;kd++)Td=Ud[kd],jd+=this.writeChildNode(Td,_d,yd+1);_d.state=sd.CloseTag,jd+=this.indent(gd,_d,yd)+"</"+gd.name+">",Ld&&_d.suppressPrettyCount--,jd+=this.endline(gd,_d,yd),_d.state=sd.None}return this.closeNode(gd,_d,yd),jd},ud.prototype.writeChildNode=function(gd,_d,yd){switch(gd.type){case od.CData:return this.cdata(gd,_d,yd);case od.Comment:return this.comment(gd,_d,yd);case od.Element:return this.element(gd,_d,yd);case od.Raw:return this.raw(gd,_d,yd);case od.Text:return this.text(gd,_d,yd);case od.ProcessingInstruction:return this.processingInstruction(gd,_d,yd);case od.Dummy:return"";case od.Declaration:return
` ))}rd.createHash=function(Od){return Ed(Od)},rd.createHmac=function(Od,Ad){return Ed(Od,Ad)},rd.createCredentials=function(){Td("sorry,createCredentials is not implemented yet")},rd.createCipher=function(){Td("sorry,createCipher is not implemented yet")},rd.createCipheriv=function(){Td("sorry,createCipheriv is not implemented yet")},rd.createDecipher=function(){Td("sorry,createDecipher is not implemented yet")},rd.createDecipheriv=function(){Td("sorry,createDecipheriv is not implemented yet")},rd.createSign=function(){Td("sorry,createSign is not implemented yet")},rd.createVerify=function(){Td("sorry,createVerify is not implemented yet")},rd.createDiffieHellman=function(){Td("sorry,createDiffieHellman is not implemented yet")},rd.pbkdf2=function(){Td("sorry,pbkdf2 is not implemented yet")}},{"./md5":535,"./sha":536,"./sha256":537,buffer:103,"core-js/modules/es.array.concat.js":310,"core-js/modules/es.array.fill.js":311,"core-js/modules/es.array.join.js":317,"core-js/modules/es.array.slice.js":319,"core-js/modules/es.object.to-string.js":331,"core-js/modules/es.regexp.to-string.js":341}],534:[function(ed,td,rd){ed("core-js/modules/es.array.fill.js"),ed("core-js/modules/es.array.concat.js");var od=ed("buffer").Buffer,sd=4,ld=od.alloc(sd);ld.fill(0);var cd=8;function ud(yd,Ed){if(yd.length%sd!==0){var Td=yd.length+(sd-yd.length%sd);yd=od.concat([yd,ld],Td)}for(var Od=[],Ad=Ed?yd.readInt32BE:yd.readInt32LE,Nd=0;Nd<yd.length;Nd+=sd)Od.push(Ad.call(yd,Nd));return Od}function gd(yd,Ed,Td){for(var Od=od.alloc(Ed),Ad=Td?Od.writeInt32BE:Od.writeInt32LE,Nd=0;Nd<yd.length;Nd++)Ad.call(Od,yd[Nd],Nd*4,!0);return Od}function _d(yd,Ed,Td,Od){od.isBuffer(yd)||(yd=od.from(yd));var Ad=Ed(ud(yd,Od),yd.length*cd);return gd(Ad,Td,Od)}td.exports={hash:_d}},{buffer:103,"core-js/modules/es.array.concat.js":310,"core-js/modules/es.array.fill.js":311}],535:[function(ed,td,rd){var od=ed("./helpers");function sd(Td,Od){Td[Od>>5]|=128<<Od%32,Td[(Od+64>>>9<<4)+14]=Od;for(var Ad=1732584193,Nd=-271733879,kd=-1732584194,Id=271733878,Rd=0;Rd<Td.length;Rd+=16){var Md=Ad,Ld=Nd,jd=kd,Pd=Id;Ad=cd(Ad,Nd,kd,Id,Td[Rd+0],7,-680876936),Id=cd(Id,Ad,Nd,kd,Td[Rd+1],12,-389564586),kd=cd(kd,Id,Ad,Nd,Td[Rd+2],17,606105819),Nd=cd(Nd,kd,Id,Ad,Td[Rd+3],22,-1044525330),Ad=cd(Ad,Nd,kd,Id,Td[Rd+4],7,-176418897),Id=cd(Id,Ad,Nd,kd,Td[Rd+5],12,1200080426),kd=cd(kd,Id,Ad,Nd,Td[Rd+6],17,-1473231341),Nd=cd(Nd,kd,Id,Ad,Td[Rd+7],22,-45705983),Ad=cd(Ad,Nd,kd,Id,Td[Rd+8],7,1770035416),Id=cd(Id,Ad,Nd,kd,Td[Rd+9],12,-1958414417),kd=cd(kd,Id,Ad,Nd,Td[Rd+10],17,-42063),Nd=cd(Nd,kd,Id,Ad,Td[Rd+11],22,-1990404162),Ad=cd(Ad,Nd,kd,Id,Td[Rd+12],7,1804603682),Id=cd(Id,Ad,Nd,kd,Td[Rd+13],12,-40341101),kd=cd(kd,Id,Ad,Nd,Td[Rd+14],17,-1502002290),Nd=cd(Nd,kd,Id,Ad,Td[Rd+15],22,1236535329),Ad=ud(Ad,Nd,kd,Id,Td[Rd+1],5,-165796510),Id=ud(Id,Ad,Nd,kd,Td[Rd+6],9,-1069501632),kd=ud(kd,Id,Ad,Nd,Td[Rd+11],14,643717713),Nd=ud(Nd,kd,Id,Ad,Td[Rd+0],20,-373897302),Ad=ud(Ad,Nd,kd,Id,Td[Rd+5],5,-701558691),Id=ud(Id,Ad,Nd,kd,Td[Rd+10],9,38016083),kd=ud(kd,Id,Ad,Nd,Td[Rd+15],14,-660478335),Nd=ud(Nd,kd,Id,Ad,Td[Rd+4],20,-405537848),Ad=ud(Ad,Nd,kd,Id,Td[Rd+9],5,568446438),Id=ud(Id,Ad,Nd,kd,Td[Rd+14],9,-1019803690),kd=ud(kd,Id,Ad,Nd,Td[Rd+3],14,-187363961),Nd=ud(Nd,kd,Id,Ad,Td[Rd+8],20,1163531501),Ad=ud(Ad,Nd,kd,Id,Td[Rd+13],5,-1444681467),Id=ud(Id,Ad,Nd,kd,Td[Rd+2],9,-51403784),kd=ud(kd,Id,Ad,Nd,Td[Rd+7],14,1735328473),Nd=ud(Nd,kd,Id,Ad,Td[Rd+12],20,-1926607734),Ad=gd(Ad,Nd,kd,Id,Td[Rd+5],4,-378558),Id=gd(Id,Ad,Nd,kd,Td[Rd+8],11,-2022574463),kd=gd(kd,Id,Ad,Nd,Td[Rd+11],16,1839030562),Nd=gd(Nd,kd,Id,Ad,Td[Rd+14],23,-35309556),Ad=gd(Ad,Nd,kd,Id,Td[Rd+1],4,-1530992060),Id=gd(Id,Ad,Nd,kd,Td[Rd+4],11,1272893353),kd=gd(kd,Id,Ad,Nd,Td[Rd+7],16,-155497632),Nd=gd(Nd,kd,Id,Ad,Td[Rd+10],23,-1094730640),Ad=gd(Ad,Nd,kd,Id,Td[Rd+13],4,681279174),Id=gd(Id,Ad,Nd,kd,Td[Rd+0],11,-358537222),kd=gd(kd,Id,Ad,Nd,Td[Rd+3],16,-722521979),Nd=gd(Nd,kd,Id,Ad,Td[Rd+6],23,76029189),Ad=gd(Ad,Nd,kd,Id,Td[Rd+9],4,-640364487),Id=gd(Id,Ad,Nd,kd,Td[Rd+12],11,-421815835),kd=gd(kd,Id,Ad,Nd,Td[Rd+15],16,530742520),Nd=gd(Nd,kd,Id,Ad,Td[Rd+2],23,-995338
` ," "],Td=["{","}","|"," \\ ","^"," ` "].concat(Ed),Od=[" '"].concat(Td),Ad=["%","/","?",";","#"].concat(Od),Nd=["/","?","#"],kd=255,Id=/^[+a-z0-9A-Z_-]{0,63}$/,Rd=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,Md={javascript:!0,"javascript:":!0},Ld={javascript:!0,"javascript:":!0},jd={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},Pd=ed("querystring");function Fd(Wd,zd,Kd){if(Wd&&cd.isObject(Wd)&&Wd instanceof ud)return Wd;var Qd=new ud;return Qd.parse(Wd,zd,Kd),Qd}ud.prototype.parse=function(Wd,zd,Kd){if(!cd.isString(Wd))throw new TypeError("Parameter ' url ' must be a string , not "+(0,sd.default)(Wd));var Qd=Wd.indexOf(" ? "),hf=Qd!==-1&&Qd<Wd.indexOf(" # ")?" ? ":" # ",gf=Wd.split(hf),bf=/\\/g;gf[0]=gf[0].replace(bf," / "),Wd=gf.join(hf);var kf=Wd;if(kf=kf.trim(),!Kd&&Wd.split(" # ").length===1){var Cf=yd.exec(kf);if(Cf)return this.path=kf,this.href=kf,this.pathname=Cf[1],Cf[2]?(this.search=Cf[2],zd?this.query=Pd.parse(this.search.substr(1)):this.query=this.search.substr(1)):zd&&(this.search=" ",this.query={}),this}var Ef=gd.exec(kf);if(Ef){Ef=Ef[0];var yf=Ef.toLowerCase();this.protocol=yf,kf=kf.substr(Ef.length)}if(Kd||Ef||kf.match(/^\/\/[^@\/]+@[^@\/]+/)){var Mf=kf.substr(0,2)===" //";Mf&&!(Ef&&Ld[Ef])&&(kf=kf.substr(2),this.slashes=!0)}if(!Ld[Ef]&&(Mf||Ef&&!jd[Ef])){for(var Af=-1,Zd=0;Zd<Nd.length;Zd++){var mf=kf.indexOf(Nd[Zd]);mf!==-1&&(Af===-1||mf<Af)&&(Af=mf)}var Pf,Ff;Af===-1?Ff=kf.lastIndexOf("@"):Ff=kf.lastIndexOf("@",Af),Ff!==-1&&(Pf=kf.slice(0,Ff),kf=kf.slice(Ff+1),this.auth=decodeURIComponent(Pf)),Af=-1;for(var Zd=0;Zd<Ad.length;Zd++){var mf=kf.indexOf(Ad[Zd]);mf!==-1&&(Af===-1||mf<Af)&&(Af=mf)}Af===-1&&(Af=kf.length),this.host=kf.slice(0,Af),kf=kf.slice(Af),this.parseHost(),this.hostname=this.hostname||"";var Lf=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!Lf)for(var jf=this.hostname.split("."),Zd=0,xf=jf.length;Zd<xf;Zd++){var Nf=jf[Zd];if(Nf&&!Nf.match(Id)){for(var Bf="",Tf=0,wf=Nf.length;Tf<wf;Tf++)Nf.charCodeAt(Tf)>127?Bf+="x":Bf+=Nf[Tf];if(!Bf.match(Id)){var Of=jf.slice(0,Zd),$f=jf.slice(Zd+1),Wf=Nf.match(Rd);Wf&&(Of.push(Wf[1]),$f.unshift(Wf[2])),$f.length&&(kf="/"+$f.join(".")+kf),this.hostname=Of.join(".");break}}}this.hostname.length>kd?this.hostname="":this.hostname=this.hostname.toLowerCase(),Lf||(this.hostname=ld.toASCII(this.hostname));var Kf=this.port?":"+this.port:"",Df=this.hostname||"";this.host=Df+Kf,this.href+=this.host,Lf&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),kf[0]!=="/"&&(kf="/"+kf))}if(!Md[yf])for(var Zd=0,xf=Od.length;Zd<xf;Zd++){var qf=Od[Zd];if(kf.indexOf(qf)!==-1){var Xf=encodeURIComponent(qf);Xf===qf&&(Xf=escape(qf)),kf=kf.split(qf).join(Xf)}}var hh=kf.indexOf("#");hh!==-1&&(this.hash=kf.substr(hh),kf=kf.slice(0,hh));var Mh=kf.indexOf("?");if(Mh!==-1?(this.search=kf.substr(Mh),this.query=kf.substr(Mh+1),zd&&(this.query=Pd.parse(this.query)),kf=kf.slice(0,Mh)):zd&&(this.search="",this.query={}),kf&&(this.pathname=kf),jd[yf]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var Kf=this.pathname||"",wh=this.search||"";this.path=Kf+wh}return this.href=this.format(),this};function Ud(Wd){return cd.isString(Wd)&&(Wd=Fd(Wd)),Wd instanceof ud?Wd.format():ud.prototype.format.call(Wd)}ud.prototype.format=function(){var Wd=this.auth||"";Wd&&(Wd=encodeURIComponent(Wd),Wd=Wd.replace(/%3A/i,":"),Wd+="@");var zd=this.protocol||"",Kd=this.pathname||"",Qd=this.hash||"",hf=!1,gf="";this.host?hf=Wd+this.host:this.hostname&&(hf=Wd+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]"),this.port&&(hf+=":"+this.port)),this.query&&cd.isObject(this.query)&&Object.keys(this.query).length&&(gf=Pd.stringify(this.query));var bf=this.search||gf&&"?"+gf||"";return zd&&zd.substr(-1)!==":"&&(zd+=":"),this.slashes||(!zd||jd[zd])&&hf!==!1?(hf="//"+(hf||""),Kd&&Kd.charAt(0)!=="/"&&(Kd="/"+Kd)):hf||(hf=""),Qd&&Qd.charAt(0)!=="#"&&(Qd="#"+Qd),bf&&bf.charAt(0)!=="?"&&(bf="?"+bf),Kd=Kd.replace(/[?#]/g,function(kf){return encodeURIComponent(kf)}),bf=bf.replace("#","%23"),zd+hf+Kd+bf+Qd};function Vd(Wd,zd
stack : % s ` ,Date(),Vd,od.pid,Rf.name,Rf.message,Rf.stack);return}var Th=Fd;Fd=null;var Ah={};Jf&&(Nf=Jf.statusCode,Ah=Jf.headers);var Gh=Date.now()-Wd;Of&&(Of.contentDownload=Gh),Ed("[%sms] done, %s bytes HTTP %s %s %s %s, keepAliveSocket: %s, timing: %j",Gh,xf,Nf,kf.method,kf.host,kf.path,jf,Of);var sm={status:Nf,statusCode:Nf,headers:Ah,size:xf,aborted:Bf,rt:Gh,keepAliveSocket:jf,data:Zf,requestUrls:Pd.requestUrls,timing:Of,remoteAddress:Tf,remotePort:wf};if(Rf){var kh="";gf&&typeof gf.getCurrentStatus=="function"&&(kh=", agent status: "+JSON.stringify(gf.getCurrentStatus())),Rf.message+=", "+kf.method+" "+jd+" "+Nf+" (connected: "+Lf+", keepalive socket: "+jf+kh+ ` )
headers : ` +JSON.stringify(Ah),Rf.data=Zf,Rf.path=kf.path,Rf.status=Nf,Rf.headers=Ah,Rf.res=sm}Th(Rf,Zf,Pd.streaming?Jf:sm),Pd.emitter&&(qd.url=jd,qd.socket=oh&&oh.connection,qd.options=kf,qd.size=Af,Pd.emitter.emit("response",{requestId:Vd,error:Rf,ctx:Pd.ctx,req:qd,res:sm}))}function Df(Rf){var Zf=null;if(Pd.followRedirect&&statuses.redirect[Rf.statusCode]){Pd._followRedirectCount=(Pd._followRedirectCount||0)+1;var Jf=Rf.headers.location;if(!Jf)Zf=new Error("Got statusCode "+Rf.statusCode+" but cannot resolve next location from headers"),Zf.name="FollowRedirectError";else if(Pd._followRedirectCount>Pd.maxRedirects)Zf=new Error("Exceeded maxRedirects. Probably stuck in a redirect loop "+jd),Zf.name="MaxRedirectError";else{var Th=Pd.formatRedirectUrl?Pd.formatRedirectUrl(jd,Jf):gd.resolve(jd,Jf);Ed("Request#%d %s: ` redirected ` from %s to %s",Vd,kf.path,jd,Th),Wf(),Pd.headers&&Pd.headers.Host&&Nd.test(Jf)&&(Pd.headers.Host=null);var Ah=Fd;return Fd=null,rd.requestWithCallback(Th,Pd,Ah),{redirect:!0,error:null}}}return{redirect:!1,error:Zf}}Pd.gzip&&!kf.headers["Accept-Encoding"]&&!kf.headers["accept-encoding"]&&(kf.headers["Accept-Encoding"]="gzip");function qf(Rf,Zf,Jf){var Th=Rf.headers["content-encoding"];return Jf(null,Zf,Th)}var Xf=Pd.writeStream;Ed("Request#%d %s %s with headers %j, options.path: %s",Vd,Kd,jd,kf.headers,kf.path),Pd.requestUrls.push(jd);function hh(Rf){if(Of&&(Of.waiting=Date.now()-Wd),Ed("Request#%d %s ` req response ` event emit: status %d, headers: %j",Vd,jd,Rf.statusCode,Rf.headers),Pd.streaming){var Zf=Df(Rf);if(Zf.redirect){Rf.resume();return}return Zf.error?(Rf.resume(),Kf(Zf.error,null,Rf)):Kf(null,null,Rf)}if(Rf.on("close",function(){Ed("Request#%d %s: ` res close ` event emit, total size %d",Vd,jd,xf)}),Rf.on("error",function(){Ed("Request#%d %s: ` res error ` event emit, total size %d",Vd,jd,xf)}),Rf.on("aborted",function(){Bf=!0,Ed("Request#%d %s: ` res aborted ` event emit, total size %d",Vd,jd,xf)}),Xf){var Jf=Df(Rf);if(Jf.redirect){Rf.resume();return}return Jf.error?(Rf.resume(),Xf.end(),Kf(Jf.error,null,Rf)):(Pd.consumeWriteStream===!1?Rf.on("end",Kf.bind(null,null,null,Rf)):Xf.on("close",function(){Ed("Request#%d %s: writeStream close event emitted",Vd,jd),Kf(Ff||null,null,Rf)}),Rf.pipe(Xf))}var Th=[];Rf.on("data",function(Ah){Ed("Request#%d %s: ` res data ` event emit, size %d",Vd,jd,Ah.length),xf+=Ah.length,Th.push(Ah)}),Rf.on("end",function(){var Ah=sd.concat(Th,xf);if(Ed("Request#%d %s: ` res end ` event emit, total size %d, _dumped: %s",Vd,jd,xf,Rf._dumped),Ff)return Kf(Ff,Ah,Rf);var Gh=Df(Rf);if(Gh.error)return Kf(Gh.error,Ah,Rf);Gh.redirect||qf(Rf,Ah,function(sm,kh,Rh){if(sm)return Kf(sm,Ah,Rf);if(!Rh&&Md.indexOf(Pd.dataType)>=0){try{kh=decodeBodyByCharset(kh,Rf)}catch(cm){return Ed("decodeBodyByCharset error: %s",cm),Kf(null,kh,Rf)}if(Pd.dataType==="json")if(xf===0)kh=null;else{var jh=parseJSON(kh,bf);jh.error?sm=jh.error:kh=jh.data}}Bf&&Ed("Request#%d %s: Remote socket was terminated before ` response . end ( ) ` was called",Vd,jd),Kf(sm,kh,Rf)})})}var Mh,wh;Array.isArray(Pd.timeout)?(Mh=Td(Pd.timeout[0]),wh=Td(Pd.timeout[1])):Mh=wh=Td(Pd.timeout),Ed("ConnectTimeout: %d, ResponseTimeout: %d",Mh,wh);function Bh(){Ed("Connect timer ticking, timeout: %d",Mh),mf=setTimeout(function(){mf=null,Nf===-1&&(Nf=-2);var Rf="Connect timeout for "+Mh+"ms",Zf="ConnectionTimeoutError";oh.socket||(Zf="SocketAssignTimeoutError",Rf+=", working sockets is full"),Ff=new Error(Rf),Ff.name=Zf,Ff.requestId=Vd,Ed("ConnectTimeout: Request#%d %s %s: %s, connected: %s",Vd,jd,Ff.name,Rf,Lf),Vf()},Mh)}function Uh(){Ed("Response timer ticking, timeout: %d",wh),Pf=setTimeout(function(){Pf=null;var Rf="Response timeout for "+wh+"ms",Zf="ResponseTimeoutError";Ff=new Error(Rf),Ff.name=Zf,Ff.requestId=Vd,Ed("ResponseTimeout: Request#%d %s %s: %s, connected: %s",Vd,jd,Ff.name,Rf,Lf),Vf()},wh)}var oh;kf.mode=Pd.mode?Pd.mode:"";try{oh=hf.request(kf,hh)}catch(Rf){return Kf(Rf)}typeof window>"u"?Bh():oh.on("requestTimeout",function(){Nf===-1&&(Nf=-2);var Rf="Connect timeout for "+Mh+"ms",Zf="ConnectionTimeoutError";Ff=new Error(Rf),
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-30 15:19:18 +08:00
* / ( f u n c t i o n ( R a ) { v a r q a = 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 T f = n e w U i n t 8 A r r a y ( 1 ) , w 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 ( w 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 ( T f , w f ) , T 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 ( T f ) { i f ( T 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 " ' + T 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 w f = n e w U i n t 8 A r r a y ( T 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 ( w f , s d . p r o t o t y p e ) , w f } f u n c t i o n s d ( T f , w f , O f ) { i f ( t y p e o f T f = = " n u m b e r " ) { i f ( t y p e o f w 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 g d ( T f ) } r e t u r n l d ( T f , w f , O 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 ( T f , w f , O f ) { i f ( t y p e o f T f = = " s t r i n g " ) r e t u r n _ d ( T f , w f ) ; i f ( A r r a y B u f f e r . i s V i e w ( T f ) ) r e t u r n E d ( T f ) ; i f ( T 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 T f ) ; i f ( x f ( T f , A r r a y B u f f e r ) | | T f & & x f ( T 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 " & & ( x f ( T f , S h a r e d A r r a y B u f f e r ) | | T f & & x f ( T 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 ( T f , w f , O f ) ; i f ( t y p e o f T 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 = T f . v a l u e O f & & T f . v a l u e O f ( ) ; i f ( $ f ! = n u l l & & $ f ! = = T f ) r e t u r n s d . f r o m ( $ f , w f , O f ) ; v a r W f = O d ( T f ) ; i f ( W f ) r e t u r n W 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 T 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 ( T f [ S y m b o l . t o P r i m i t i v e ] ( " s t r i n g " ) , w f , O 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 T f ) } s d . f r o m = f u n c t i o n ( T f , w f , O f ) { r e t u r n l d ( T f , w f , O 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 ( T f ) { i f ( t y p e o f T 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 ( T 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 " ' + T 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 ( T f , w f , O f ) { r e t u r n c d ( T f ) , T f < = 0 ? o d ( T f ) : w f ! = = v o i d 0 ? t y p e o f O f = = " s t r i n g " ? o d ( T f ) . f i l l ( w f , O f ) : o d ( T f ) . f i l l ( w f ) : o d ( T f ) } s d . a l l o c = f u n c t i o n ( T f , w f , O f ) { r e t u r n u d ( T f , w f , O f ) } ; f u n c t i o n g d ( T f ) { r e t u r n c d ( T f ) , o d ( T f < 0 ? 0 : A d ( T f ) | 0 ) } s d . a l l o c U n s a f e = f u n c t i o n ( T f ) { r e t u r n g d ( T 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 ( T f ) { r e t u r n g d ( T f ) } ; f u n c t i o n _ d ( T f , w f ) { i f ( ( t y p e o f w f ! = " s t r i n g " | | w f = = = " " ) & & ( w f = " u t f 8 " ) , ! s d . i s E n c o d i n g ( w 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 : " + w f ) ; v a r O f = k d ( T f , w f ) | 0 , $ f = o d ( O f ) , W f = $ f . w r i t e ( T f , w f ) ; r e t u r n W f ! = = O f & & ( $ f = $ f . s l i c e ( 0 , W f ) ) , $ f } f u n c t i o n y d ( T f ) { f o r ( v a r w f = T f . l e n g t h < 0 ? 0 : A d ( T f . l e n g t h ) | 0 , O f = o d ( w f ) , $ f = 0 ; $ f < w f ; $ f + = 1 ) O f [ $ f ] = T f [ $ f ] & 2 5 5 ; r e t u r n O f } f u n c t i o n E d ( T f ) { i f ( x f ( T f , U i n t 8 A r r a y ) ) { v a r w f = n e w U i n t 8 A r r a y ( T f ) ; r e t u r n T d ( w f . b u f f e r , w f . b y t e O f f s e t , w f . b y t e L e n g t h ) } r e t u r n y d ( T f ) } f u n c t i o n T d ( T f , w f , O f ) { i f ( w f < 0 | | T f . b y t e L e n g t h < w 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 ( T f . b y t e L e n g t h < w f + ( O 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 ; r e t u r n w f = = = v o i d 0 & & O f = = = v o i d 0 ? $ f = n e w U i n t 8 A r r a y ( T f ) : O f = = = v o i d 0 ? $ f = n e w U i n t 8 A r r a y ( T f , w f ) : $ f = n e w U i n t 8 A r r a y ( T f , w f , O f ) , O b j e c t . s e t P r o t o t y p e O f ( $ f , s d . p r o t o t y p e ) , $ f } f u n c t i o n O d ( T f ) { i f ( s d . i s B u f f e r ( T f ) ) { v a r w f = A d ( T f . l e n g t h ) | 0 , O f = o d ( w f ) ; r e t u r n O f . l e n g t h = = = 0 | | T f . c o p y ( O f , 0 , 0 , w f ) , O f } i f ( T f . l e n g t h ! = = v o i d 0 ) r e t u r n t y p e o f T f . l e n g t h ! = " n u m b e r " | | N f ( T f . l e n g t h ) ? o d ( 0 ) : y d ( T f ) ; i f ( T f . t y p e = = = " B u f f e r " & & A r r a y . i s A r r a y ( T f . d a t a ) ) r e t u r n y d ( T f . d a t a ) } f u n c t i o n A d ( T f ) { i f ( T 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 n g ( 1 6 ) + "
` )>-1&&(Pf?Lf=Lf.split( `
` ).map(function(xf){return" "+xf}).join( `
` ).slice(2):Lf= `
` +Lf.split( `
` ).map(function(xf){return" "+xf}).join( `
` ))):Lf=yf.stylize("[Circular]","special")),Pd(Ff)){if(Pf&&mf.match(/^ \d + $ /))return Lf;Ff=JSON.stringify(""+mf),Ff.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)" $ /)?(Ff=Ff.slice(1,-1),Ff=yf.stylize(Ff,"name")):(Ff=Ff.replace(/'/g," \\ '").replace(/ \\ "/g,'"').replace(/(^"|" $ )/g,"'"),Ff=yf.stylize(Ff,"string"))}return Ff+": "+Lf}function Ad(yf,Mf,Af){var Zd=yf.reduce(function(mf,Pf){return Pf.indexOf( `
` )>=0,mf+Pf.replace(/ \u 001b \[ \d \d ?m/g,"").length+1},0);return Zd>60?Af[0]+(Mf===""?"":Mf+ `
` )+" "+yf.join( ` ,
` )+" "+Af[1]:Af[0]+Mf+" "+yf.join(", ")+" "+Af[1]}Ra.types=types;function Nd(yf){return Array.isArray(yf)}Ra.isArray=Nd;function kd(yf){return typeof yf=="boolean"}Ra.isBoolean=kd;function Id(yf){return yf===null}Ra.isNull=Id;function Rd(yf){return yf==null}Ra.isNullOrUndefined=Rd;function Md(yf){return typeof yf=="number"}Ra.isNumber=Md;function Ld(yf){return typeof yf=="string"}Ra.isString=Ld;function jd(yf){return typeof yf=="symbol"}Ra.isSymbol=jd;function Pd(yf){return yf===void 0}Ra.isUndefined=Pd;function Fd(yf){return Ud(yf)&&Kd(yf)==="[object RegExp]"}Ra.isRegExp=Fd,Ra.types.isRegExp=Fd;function Ud(yf){return typeof yf=="object"&&yf!==null}Ra.isObject=Ud;function Vd(yf){return Ud(yf)&&Kd(yf)==="[object Date]"}Ra.isDate=Vd,Ra.types.isDate=Vd;function qd(yf){return Ud(yf)&&(Kd(yf)==="[object Error]"||yf instanceof Error)}Ra.isError=qd,Ra.types.isNativeError=qd;function Wd(yf){return typeof yf=="function"}Ra.isFunction=Wd;function zd(yf){return yf===null||typeof yf=="boolean"||typeof yf=="number"||typeof yf=="string"||typeof yf=="symbol"||typeof yf>"u"}Ra.isPrimitive=zd,Ra.isBuffer=isBufferBrowser;function Kd(yf){return Object.prototype.toString.call(yf)}function Qd(yf){return yf<10?"0"+yf.toString(10):yf.toString(10)}var hf=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function gf(){var yf=new Date,Mf=[Qd(yf.getHours()),Qd(yf.getMinutes()),Qd(yf.getSeconds())].join(":");return[yf.getDate(),hf[yf.getMonth()],Mf].join(" ")}Ra.log=function(){console.log("%s - %s",gf(),Ra.format.apply(Ra,arguments))},Ra.inherits=inherits_browserExports,Ra._extend=function(yf,Mf){if(!Mf||!Ud(Mf))return yf;for(var Af=Object.keys(Mf),Zd=Af.length;Zd--;)yf[Af[Zd]]=Mf[Af[Zd]];return yf};function bf(yf,Mf){return Object.prototype.hasOwnProperty.call(yf,Mf)}var kf=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;Ra.promisify=function(Mf){if(typeof Mf!="function")throw new TypeError('The "original" argument must be of type Function');if(kf&&Mf[kf]){var Af=Mf[kf];if(typeof Af!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(Af,kf,{value:Af,enumerable:!1,writable:!1,configurable:!0}),Af}function Af(){for(var Zd,mf,Pf=new Promise(function(jf,xf){Zd=jf,mf=xf}),Ff=[],Lf=0;Lf<arguments.length;Lf++)Ff.push(arguments[Lf]);Ff.push(function(jf,xf){jf?mf(jf):Zd(xf)});try{Mf.apply(this,Ff)}catch(jf){mf(jf)}return Pf}return Object.setPrototypeOf(Af,Object.getPrototypeOf(Mf)),kf&&Object.defineProperty(Af,kf,{value:Af,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(Af,ed(Mf))},Ra.promisify.custom=kf;function Cf(yf,Mf){if(!yf){var Af=new Error("Promise was rejected with a falsy value");Af.reason=yf,yf=Af}return Mf(yf)}function Ef(yf){if(typeof yf!="function")throw new TypeError('The "original" argument must be of type Function');function Mf(){for(var Af=[],Zd=0;Zd<arguments.length;Zd++)Af.push(arguments[Zd]);var mf=Af.pop();if(typeof mf!="function")throw new TypeError("The last argument must be of type Function");var Pf=this,Ff=function(){return mf.apply(Pf,arguments)};yf.apply(this,Af).then(function(Lf){qa.nextTick(Ff.bind(null,null,Lf))},function(Lf){qa.nextTick(Cf.bind(null,Lf,Ff))})}return Object.setPrototypeOf(Mf,Object.getPrototypeOf(yf)),Object.defineProperties(Mf,ed(yf)),Mf}Ra.callbackify=Ef})(util $ 5);var buffer_list,hasRequiredBuffer_list;function requireBuffer_list(){if(hasRequiredBuffer_list)return buffer_list;hasRequiredBuffer_list=1;function Ra(Ed,Td){var Od=Object.keys(Ed);if(Object.getOwnPropertySymbols){var Ad=Object.getOwnPropertySymbols(Ed);Td&&(Ad=Ad.filter(function(Nd){return Object.getOwnPropertyDescriptor(Ed,Nd).enumerable})),Od.push.apply(Od,Ad)}return Od}function qa(Ed){for(var Td=1;Td<arguments.length;Td++){var Od=arguments[Td]!=null?arguments[Td]:{};Td%2?Ra(Object(Od),!0).forEach(function(Ad){Ja(Ed,Ad,Od[Ad])}):Object.getOwnPropertyDescriptors?Object.defineProperties(Ed,Object.getOwnPropertyDescriptors(Od)):Ra(Object(Od)).forEach(function(Ad){Object.defineProperty(Ed,Ad,Object.getOwnPropertyDescript
` ,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-30 15:19:18 +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 gd=rd.map(_d=>cd[_d]);gd.push(ud),wrapAsync(td)(...gd)}}),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 Id=(...Rd)=>{cd(Nd,Id),kd(...Rd)};od[Nd].push(Id)}function cd(Nd,kd){if(!Nd)return Object.keys(od).forEach(Id=>od[Id]=[]);if(!kd)return od[Nd]=[];od[Nd]=od[Nd].filter(Id=>Id!==kd)}function ud(Nd,...kd){od[Nd].forEach(Id=>Id(...kd))}var gd=!1;function _d(Nd,kd,Id,Rd){if(Rd!=null&&typeof Rd!="function")throw new Error("task callback must be a function");Ad.started=!0;var Md,Ld;function jd(Fd,...Ud){if(Fd)return Id?Ld(Fd):Md();if(Ud.length<=1)return Md(Ud[0]);Md(Ud)}var Pd=Ad._createTaskItem(Nd,Id?jd:Rd||jd);if(kd?Ad._tasks.unshift(Pd):Ad._tasks.push(Pd),gd||(gd=!0,setImmediate $ 1 $ 1(()=>{gd=!1,Ad.process()})),Id||!Rd)return new Promise((Fd,Ud)=>{Md=Fd,Ld=Ud})}function yd(Nd){return function(kd,...Id){td-=1;for(var Rd=0,Md=Nd.length;Rd<Md;Rd++){var Ld=Nd[Rd],jd=rd.indexOf(Ld);jd===0?rd.shift():jd>0&&rd.splice(jd,1),Ld.callback(kd,...Id),kd!=null&&ud("error",kd,Ld.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((Id,Rd)=>{ld(Nd,(Md,Ld)=>{if(Md)return Rd(Md);Id(Ld)})});cd(Nd),sd(Nd,kd)};var Od=!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(Id=>_d(Id,!1,!1,kd)):_d(Nd,!1,!1,kd)},pushAsync(Nd,kd){return Array.isArray(Nd)?Ed(Nd)?void 0:Nd.map(Id=>_d(Id,!1,!0,kd)):_d(Nd,!1,!0,kd)},kill(){cd(),Ad._tasks.empty()},unshift(Nd,kd){return Array.isArray(Nd)?Ed(Nd)?void 0:Nd.map(Id=>_d(Id,!0,!1,kd)):_d(Nd,!0,!1,kd)},unshiftAsync(Nd,kd){return Array.isArray(Nd)?Ed(Nd)?void 0:Nd.map(Id=>_d(Id,!0,!0,kd)):_d(Nd,!0,!0,kd)},remove(Nd){Ad._tasks.remove(Nd)},process(){if(!Od){for(Od=!0;!Ad.paused&&td<Ad.concurrency&&Ad._tasks.length;){var Nd=[],kd=[],Id=Ad._tasks.length;Ad.payload&&(Id=Math.min(Id,Ad.payload));for(var Rd=0;Rd<Id;Rd++){var Md=Ad._tasks.shift();Nd.push(Md),rd.push(Md),kd.push(Md.data)}td+=1,Ad._tasks.length===0&&ud("empty"),td===Ad.concurrency&&ud("saturated");var Ld=onlyOnce(yd(Nd));ed(kd,Ld)}Od=!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-30 15:19:18 +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 _ _ ",gd=1,_d=2,yd=4,Ed=1,Td=2,Od=1,Ad=2,Nd=4,kd=8,Id=16,Rd=32,Md=64,Ld=128,jd=256,Pd=512,Fd=30,Ud=" ... ",Vd=800,qd=16,Wd=1,zd=2,Kd=3,Qd=1/0,hf=9007199254740991,gf=17976931348623157e292,bf=NaN,kf=4294967295,Cf=kf-1,Ef=kf>>>1,yf=[[" ary ",Ld],[" bind ",Od],[" bindKey ",Ad],[" curry ",kd],[" curryRight ",Id],[" flip ",Pd],[" partial ",Rd],[" partialRight ",Md],[" rearg ",jd]],Mf=" [ object Arguments ] ",Af=" [ object Array ] ",Zd=" [ object AsyncFunction ] ",mf=" [ object Boolean ] ",Pf=" [ object Date ] ",Ff=" [ object DOMException ] ",Lf=" [ object Error ] ",jf=" [ object Function ] ",xf=" [ object GeneratorFunction ] ",Nf=" [ object Map ] ",Bf=" [ object Number ] ",Tf=" [ object Null ] ",wf=" [ object Object ] ",Of=" [ object Promise ] ",$f=" [ object Proxy ] ",Wf=" [ object RegExp ] ",Kf=" [ object Set ] ",Df=" [ object String ] ",qf=" [ object Symbol ] ",Xf=" [ object Undefined ] ",hh=" [ object WeakMap ] ",Mh=" [ object WeakSet ] ",wh=" [ object ArrayBuffer ] ",Bh=" [ object DataView ] ",Uh=" [ object Float32Array ] ",oh=" [ object Float64Array ] ",Vf=" [ object Int8Array ] ",Rf=" [ object Int16Array ] ",Zf=" [ object Int32Array ] ",Jf=" [ object Uint8Array ] ",Th=" [ object Uint8ClampedArray ] ",Ah=" [ object Uint16Array ] ",Gh=" [ object Uint32Array ] ",sm=/\b__p \+= '';/g,kh=/\b(__p \+=) '' \+/g,Rh=/(__e\(.*?\)|\b__t\)) \+\n'';/g,jh=/&(?:amp|lt|gt|quot|#39);/g,cm=/[&<>" ']/g,Tm=RegExp(jh.source),Fm=RegExp(cm.source),Gm=/<%-([\s\S]+?)%>/g,s1=/<%([\s\S]+?)%>/g,Km=/<%=([\s\S]+?)%>/g,v1=/\.|\[(?:[^[\]]*|(["' ] ) ( ? : ( ? ! \ 1 ) [ ^ \ \ ] | \ \ . ) * ? \ 1 ) \ ] / , h1 = /^\w*$/ , F1 = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g , M1 = /[\\^$.*+?()[\]{}|]/g , E1 = RegExp ( M1 . source ) , O1 = /^\s+/ , Hm = /\s/ , b1 = /\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/ , K1 = /\{\n\/\* \[wrapped with (.+)\] \*/ , I1 = /,? & / , zf = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g , Dh = /[()=,{}\[\]\/\s]/ , yh = /\\(\\)?/g , Ih = /\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g , Xh = /\w*$/ , qh = /^[-+]0x[0-9a-f]+$/i , Zh = /^0b[01]+$/i , Yh = /^\[object .+?Constructor\]$/ , Fh = /^0o[0-7]+$/i , zh = /^(?:0|[1-9]\d*)$/ , om = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g , fm = /($^)/ , uh = /['\n\r\u2028\u2029\\]/g , Om = "\\ud800-\\udfff" , l1 = "\\u0300-\\u036f" , y1 = "\\ufe20-\\ufe2f" , c1 = "\\u20d0-\\u20ff" , Pm = l1 + y1 + c1 , C1 = "\\u2700-\\u27bf" , m1 = "a-z\\xdf-\\xf6\\xf8-\\xff" , d1 = "\\xac\\xb1\\xd7\\xf7" , Ch = "\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf" , Kh = "\\u2000-\\u206f" , Dm = " \\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" , Um = "A-Z\\xc0-\\xd6\\xd8-\\xde" , _m = "\\ufe0e\\ufe0f" , Xm = d1 + Ch + Kh + Dm , w1 = "['’ ]" , n0 = "[" + Om + "]" , z1 = "[" + Xm + "]" , A0 = "[" + Pm + "]" , _0 = "\\d+" , S1 = "[" + C1 + "]" , U0 = "[" + m1 + "]" , H1 = "[^" + Om + Xm + _0 + C1 + m1 + Um + "]" , E0 = "\\ud83c[\\udffb-\\udfff]" , d0 = "(?:" + A0 + "|" + E0 + ")" , tg = "[^" + Om + "]" , vg = "(?:\\ud83c[\\udde6-\\uddff]){2}" , S0 = "[\\ud800-\\udbff][\\udc00-\\udfff]" , rg = "[" + Um + "]" , l _ = "\\u200d" , Kg = "(?:" + U0 + "|" + H1 + ")" , u1 = "(?:" + rg + "|" + H1 + ")" , bg = "(?:" + w1 + "(?:d|ll|m|re|s|t|ve))?" , v0 = "(?:" + w1 + "(?:D|LL|M|RE|S|T|VE))?" , c _ = d0 + "?" , E _ = "[" + _m + "]?" , yg = "(?:" + l _ + "(?:" + [ tg , vg , S0 ] . join ( "|" ) + ")" + E _ + c _ + ")*" , kg = "\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])" , p0 = "\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])" , W0 = E _ + c _ + yg , sg = "(?:" + [ S1 , vg , S0 ] . join ( "|" ) + ")" + W0 , ng = "(?:" + [ tg + A0 + "?" , A0 , vg , S0 , n0 ] . join ( "|" ) + ")" , Yg = RegExp ( w1 , "g" ) , _v = RegExp ( A0 , "g" ) , U _ = RegExp ( E0 + "(?=" + E0 + ")|" + ng + W0 , "g" ) , vv = RegExp ( [ rg + "?" + U0 + "+" + bg + "(?=" + [ z1 , rg , "$" ] . join ( "|" ) + ")" , u1 + "+" + v0 + "(?=" + [ z1 , rg + Kg , "$" ] . join ( "|" ) + ")" , rg + "?" + Kg + "+" + bg , rg + "+" + v0 , p0 , kg , _0 , sg ] . join ( "|" ) , "g" ) , Zv = RegExp ( "[" + l _ + Om + Pm + _m + "]" ) , H _ = /[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/ , V _ = [ "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 `+_f+`] */
` )}function Gd(Yd){return P1(Yd)||wb(Yd)||!!(wE&&Yd&&Yd[wE])}function pf(Yd,_f){var Uf=typeof Yd;return _f=_f??hf,!!_f&&(Uf=="number"||Uf!="symbol"&&zh.test(Yd))&&Yd>-1&&Yd%1==0&&Yd<_f}function df(Yd,_f,Uf){if(!N0(Uf))return!1;var ph=typeof _f;return(ph=="number"?Ng(Uf)&&pf(_f,Uf.length):ph=="string"&&_f in Uf)?b_(Uf[_f],Yd):!1}function Sf(Yd,_f){if(P1(Yd))return!1;var Uf=typeof Yd;return Uf=="number"||Uf=="symbol"||Uf=="boolean"||Yd==null||zg(Yd)?!0:h1.test(Yd)||!v1.test(Yd)||_f!=null&&Yd in a0(_f)}function Gf(Yd){var _f=typeof Yd;return _f=="string"||_f=="number"||_f=="symbol"||_f=="boolean"?Yd!=="__proto__":Yd===null}function ih(Yd){var _f=xb(Yd),Uf=Lh[_f];if(typeof Uf!="function"||!(_f in x1.prototype))return!1;if(Yd===Uf)return!0;var ph=Tb(Uf);return!!ph&&Yd===ph[0]}function gh(Yd){return!! $ b&& $ b in Yd}var bh=f_?fv:fS;function Nh(Yd){var _f=Yd&&Yd.constructor,Uf=typeof _f=="function"&&_f.prototype|| $ g;return Yd===Uf}function Wh(Yd){return Yd===Yd&&!N0(Yd)}function Jh(Yd,_f){return function(Uf){return Uf==null?!1:Uf[Yd]===_f&&(_f!==Ja||Yd in a0(Uf))}}function hm(Yd){var _f=g2(Yd,function(ph){return Uf.size===cd&&Uf.clear(),ph}),Uf=_f.cache;return _f}function dm(Yd,_f){var Uf=Yd[1],ph=_f[1],Oh=Uf|ph,Hh=Oh<(Od|Ad|Ld),am=ph==Ld&&Uf==kd||ph==Ld&&Uf==jd&&Yd[7].length<=_f[8]||ph==(Ld|jd)&&_f[7].length<=_f[8]&&Uf==kd;if(!(Hh||am))return Yd;ph&Od&&(Yd[2]=_f[2],Oh|=Uf&Od?0:Nd);var um=_f[3];if(um){var gm=Yd[3];Yd[3]=gm?Xb(gm,um,_f[4]):um,Yd[4]=gm?dg(Yd[3],ud):_f[4]}return um=_f[5],um&&(gm=Yd[5],Yd[5]=gm?sE(gm,um,_f[6]):um,Yd[6]=gm?dg(Yd[5],ud):_f[6]),um=_f[7],um&&(Yd[7]=um),ph&Ld&&(Yd[8]=Yd[8]==null?_f[8]:k0(Yd[8],_f[8])),Yd[9]==null&&(Yd[9]=_f[9]),Yd[0]=_f[0],Yd[1]=Oh,Yd}function Nm(Yd){var _f=[];if(Yd!=null)for(var Uf in a0(Yd))_f.push(Uf);return _f}function Mm(Yd){return Jg.call(Yd)}function Wm(Yd,_f,Uf){return _f=u0(_f===Ja?Yd.length-1:_f,0),function(){for(var ph=arguments,Oh=-1,Hh=u0(ph.length-_f,0),am=Sm(Hh);++Oh<Hh;)am[Oh]=ph[_f+Oh];Oh=-1;for(var um=Sm(_f+1);++Oh<_f;)um[Oh]=ph[Oh];return um[_f]=Uf(am),Vm(Yd,this,um)}}function Zm(Yd,_f){return _f.length<2?Yd:I_(Yd,P0(_f,0,-1))}function e1(Yd,_f){for(var Uf=Yd.length,ph=k0(_f.length,Uf),Oh=og(Yd);ph--;){var Hh=_f[ph];Yd[ph]=pf(Hh,Uf)?Oh[Hh]:Ja}return Yd}function Jm(Yd,_f){if(!(_f==="constructor"&&typeof Yd[_f]=="function")&&_f!="__proto__")return Yd[_f]}var n1=i0(ZE),f1=Bb||function(Yd,_f){return Y1.setTimeout(Yd,_f)},p1=i0(U2);function $ 1(Yd,_f,Uf){var ph=_f+"";return p1(Yd,Bd(ph,C0(b0(ph),Uf)))}function i0(Yd){var _f=0,Uf=0;return function(){var ph=w2(),Oh=qd-(ph-Uf);if(Uf=ph,Oh>0){if(++_f>=Vd)return arguments[0]}else _f=0;return Yd.apply(Ja,arguments)}}function y0(Yd,_f){var Uf=-1,ph=Yd.length,Oh=ph-1;for(_f=_f===Ja?ph:_f;++Uf<_f;){var Hh=Wb(Uf,Oh),am=Yd[Hh];Yd[Hh]=Yd[Uf],Yd[Uf]=am}return Yd.length=_f,Yd}var l0=hm(function(Yd){var _f=[];return Yd.charCodeAt(0)===46&&_f.push(""),Yd.replace(F1,function(Uf,ph,Oh,Hh){_f.push(Oh?Hh.replace(yh," $ 1"):ph||Uf)}),_f});function m0(Yd){if(typeof Yd=="string"||zg(Yd))return Yd;var _f=Yd+"";return _f=="0"&&1/Yd==-Qd?"-0":_f}function x0(Yd){if(Yd!=null){try{return wv.call(Yd)}catch{}try{return Yd+""}catch{}}return""}function C0(Yd,_f){return R1(yf,function(Uf){var ph="_."+Uf[0];_f&Uf[1]&&!W_(Yd,ph)&&Yd.push(ph)}),Yd.sort()}function Y0(Yd){if(Yd instanceof x1)return Yd.clone();var _f=new r0(Yd.__wrapped__,Yd.__chain__);return _f.__actions__=og(Yd.__actions__),_f.__index__=Yd.__index__,_f.__values__=Yd.__values__,_f}function z0(Yd,_f,Uf){(Uf?df(Yd,_f,Uf):_f===Ja)?_f=1:_f=u0(L1(_f),0);var ph=Yd==null?0:Yd.length;if(!ph||_f<1)return[];for(var Oh=0,Hh=0,am=Sm(nb(ph/_f));Oh<ph;)am[Hh++]=P0(Yd,Oh,Oh+=_f);return am}function O0(Yd){for(var _f=-1,Uf=Yd==null?0:Yd.length,ph=0,Oh=[];++_f<Uf;){var Hh=Yd[_f];Hh&&(Oh[ph++]=Hh)}return Oh}function w0(){var Yd=arguments.length;if(!Yd)return[];for(var _f=Sm(Yd-1),Uf=arguments[0],ph=Yd;ph--;)_f[ph-1]=arguments[ph];return Ig(P1(Uf)?og(Uf):[Uf],M0(_f,1))}var g0=B1(function(Yd,_f){return F0(Yd)?cb(Yd,M0(_f,1,F0,!0)):[]}),Z0=B1(function(Yd,_f){var Uf=o_(_f);return F0(Uf)&&(Uf=Ja),F0(Yd)?cb(Yd,M0(_f,1,F0,!0
` ;Yd.replace(i1,function(A1,V1,W1,qg,_g,Wg){return W1||(W1=qg),zm+=Yd.slice(Lm,Wg).replace(uh,Y_),V1&&(um=!0,zm+= ` ' +
_ _e ( ` +V1+ ` ) +
'`),_g&&(gm=!0,zm+=`' ;
` +_g+ ` ;
_ _p += '`),W1&&(zm+=`' +
( ( _ _t = ( ` +W1+ ` ) ) == null ? '' : _ _t ) +
'`),Lm=Wg+A1.length,A1}),zm+=`' ;
` ;var N1=e0.call(_f,"variable")&&_f.variable;if(!N1)zm= ` with ( obj ) {
` +zm+ `
2024-08-27 22:31:52 +08:00
}
2024-08-30 15:19:18 +08:00
` ;else if(Dh.test(N1))throw new k1(sd);zm=(gm?zm.replace(sm,""):zm).replace(kh," $ 1").replace(Rh," $ 1;"),zm="function("+(N1||"obj")+ ` ) {
` +(N1?"": ` obj || ( obj = { } ) ;
` )+"var __t, __p = ''"+(um?", __e = _.escape":"")+(gm? ` , _ _j = Array . prototype . join ;
2024-08-27 22:31:52 +08:00
function print ( ) { _ _p += _ _j . call ( arguments , '' ) }
` : ` ;
2024-08-30 15:19:18 +08:00
` )+zm+ ` return _ _p
} ` ;var j1=KS(function(){return q1(Hh,_1+"return "+zm).apply(Ja,am)});if(j1.source=zm,rS(j1))throw j1;return j1}function mw(Yd){return o0(Yd).toLowerCase()}function gw(Yd){return o0(Yd).toUpperCase()}function _w(Yd,_f,Uf){if(Yd=o0(Yd),Yd&&(Uf||_f===Ja))return a1(Yd);if(!Yd||!(_f=hg(_f)))return Yd;var ph=Rg(Yd),Oh=Rg(_f),Hh=X1(ph,Oh),am=R0(ph,Oh)+1;return v_(ph,Hh,am).join("")}function vw(Yd,_f,Uf){if(Yd=o0(Yd),Yd&&(Uf||_f===Ja))return Yd.slice(0,Ry(Yd)+1);if(!Yd||!(_f=hg(_f)))return Yd;var ph=Rg(Yd),Oh=R0(ph,Rg(_f))+1;return v_(ph,0,Oh).join("")}function bw(Yd,_f,Uf){if(Yd=o0(Yd),Yd&&(Uf||_f===Ja))return Yd.replace(O1,"");if(!Yd||!(_f=hg(_f)))return Yd;var ph=Rg(Yd),Oh=X1(ph,Rg(_f));return v_(ph,Oh).join("")}function yw(Yd,_f){var Uf=Fd,ph=Ud;if(N0(_f)){var Oh="separator"in _f?_f.separator:Oh;Uf="length"in _f?L1(_f.length):Uf,ph="omission"in _f?hg(_f.omission):ph}Yd=o0(Yd);var Hh=Yd.length;if(xv(Yd)){var am=Rg(Yd);Hh=am.length}if(Uf>=Hh)return Yd;var um=Uf-Cv(ph);if(um<1)return ph;var gm=am?v_(am,0,um).join(""):Yd.slice(0,um);if(Oh===Ja)return gm+ph;if(am&&(um+=gm.length-um),nS(Oh)){if(Yd.slice(um).search(Oh)){var Lm,jm=gm;for(Oh.global||(Oh=rb(Oh.source,o0(Xh.exec(Oh))+"g")),Oh.lastIndex=0;Lm=Oh.exec(jm);)var zm=Lm.index;gm=gm.slice(0,zm===Ja?um:zm)}}else if(Yd.indexOf(hg(Oh),um)!=um){var i1=gm.lastIndexOf(Oh);i1>-1&&(gm=gm.slice(0,i1))}return gm+ph}function Ew(Yd){return Yd=o0(Yd),Yd&&Tm.test(Yd)?Yd.replace(jh,SE):Yd}var Sw=qv(function(Yd,_f,Uf){return Yd+(Uf?" ":"")+_f.toUpperCase()}),sS=a2("toUpperCase");function WS(Yd,_f,Uf){return Yd=o0(Yd),_f=Uf?Ja:_f,_f===Ja?vE(Yd)?xE(Yd):Oy(Yd):Yd.match(_f)||[]}var KS=B1(function(Yd,_f){try{return Vm(Yd,Ja,_f)}catch(Uf){return rS(Uf)?Uf:new k1(Uf)}}),Tw=n_(function(Yd,_f){return R1(_f,function(Uf){Uf=m0(Uf),g_(Yd,Uf,eS(Yd[Uf],Yd))}),Yd});function xw(Yd){var _f=Yd==null?0:Yd.length,Uf=T1();return Yd=_f?s0(Yd,function(ph){if(typeof ph[1]!="function")throw new Tg(od);return[Uf(ph[0]),ph[1]]}):[],B1(function(ph){for(var Oh=-1;++Oh<_f;){var Hh=Yd[Oh];if(Vm(Hh[0],this,ph))return Vm(Hh[1],this,ph)}})}function Cw(Yd){return B2(fg(Yd,gd))}function lS(Yd){return function(){return Yd}}function ww(Yd,_f){return Yd==null||Yd!==Yd?_f:Yd}var Nw=o2(),Aw=o2(!0);function Dg(Yd){return Yd}function cS(Yd){return Lv(typeof Yd=="function"?Yd:fg(Yd,gd))}function Dw(Yd){return WE(fg(Yd,gd))}function kw(Yd,_f){return eE(Yd,fg(_f,gd))}var Ow=B1(function(Yd,_f){return function(Uf){return Pv(Uf,Yd,_f)}}),Iw=B1(function(Yd,_f){return function(Uf){return Pv(Yd,Uf,_f)}});function uS(Yd,_f,Uf){var ph=Q0(_f),Oh=qb(_f,ph);Uf==null&&!(N0(_f)&&(Oh.length||!ph.length))&&(Uf=_f,_f=Yd,Yd=this,Oh=qb(_f,Q0(_f)));var Hh=!(N0(Uf)&&"chain"in Uf)||!!Uf.chain,am=fv(Yd);return R1(Oh,function(um){var gm=_f[um];Yd[um]=gm,am&&(Yd.prototype[um]=function(){var Lm=this.__chain__;if(Hh||Lm){var jm=Yd(this.__wrapped__),zm=jm.__actions__=og(this.__actions__);return zm.push({func:gm,args:arguments,thisArg:Yd}),jm.__chain__=Lm,jm}return gm.apply(Yd,Ig([this.value()],arguments))})}),Yd}function Rw(){return Y1._===this&&(Y1._=J0),this}function dS(){}function $ w(Yd){return Yd=L1(Yd),B1(function(_f){return jv(_f,Yd)})}var Mw=Jb(s0),Pw=Jb(cg),Bw=Jb(x_);function YS(Yd){return Sf(Yd)? $ h(m0(Yd)):F2(Yd)}function Lw(Yd){return function(_f){return Yd==null?Ja:I_(Yd,_f)}}var Fw=pv(),jw=pv(!0);function pS(){return[]}function fS(){return!1}function Uw(){return{}}function Hw(){return""}function Vw(){return!0}function zw(Yd,_f){if(Yd=L1(Yd),Yd<1||Yd>hf)return[];var Uf=kf,ph=k0(Yd,kf);_f=T1(_f),Yd-=kf;for(var Oh=Qm(ph,_f);++Uf<Yd;)_f(Uf);return Oh}function qw(Yd){return P1(Yd)?s0(Yd,m0):zg(Yd)?[Yd]:og(l0(o0(Yd)))}function Gw(Yd){var _f=++CE;return o0(Yd)+_f}var Ww=Gv(function(Yd,_f){return Yd+_f},0),Kw=dE("ceil"),Yw=Gv(function(Yd,_f){return Yd/_f},1),Xw=dE("floor");function Qw(Yd){return Yd&&Yd.length?Vb(Yd,Dg,Gb):Ja}function Jw(Yd,_f){return Yd&&Yd.length?Vb(Yd,T1(_f,2),Gb):Ja}function Zw(Yd){return _h(Yd,Dg)}function e4(Yd,_f){return _h(Yd,T1(_f,2))}function t4(Yd){return Yd&&Yd.length?Vb(Yd,Dg,cv):Ja}function r4(Yd,_f){return Yd&&Yd.length?Vb(Yd,T1
` :"")),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: `
` },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,gd,_d,yd,Ed;if(Ed=arguments[0],yd=2<=arguments.length?sd.call(arguments,1):[],td(Object.assign))Object.assign.apply(null,arguments);else for(cd=0,gd=yd.length;cd<gd;cd++)if(_d=yd[cd],_d!=null)for(ud in _d)ld.call(_d,ud)&&(Ed[ud]=_d[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,gd;return rd(cd)&&(gd=Object.getPrototypeOf(cd))&&(ud=gd.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=(gd=rd.dontPrettyTextNodes)!=null?gd:rd.dontprettytextnodes)!=null?ud:0,od.spaceBeforeSlash=(_d=(yd=rd.spaceBeforeSlash)!=null?yd:rd.spacebeforeslash)!=null?_d:"",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,gd,_d;if(sd||(sd=0),this.openNode(rd,od,sd),od.state=qa.OpenTag,gd=this.indent(rd,od,sd),gd+="<!DOCTYPE "+rd.root().name,rd.pubID&&rd.sysID?gd+=' PUBLIC "'+rd.pubID+'" "'+rd.sysID+'"':rd.sysID&&(gd+=' SYSTEM "'+rd.sysID+'"'),rd.children.length>0){for(gd+=" [",gd+=this.endline(rd,od,sd),od.state=qa.InsideTag,_d=rd.children,cd=0,ud=_d.length;cd<ud;cd++)ld=_d[cd],gd+=this.writeChildNode(ld,od,sd+1);od.state=qa.CloseTag,gd+="]"}return od.state=qa.CloseTag,gd+=od.spaceBeforeSlash+">",gd+=this.endline(rd,od,sd),od.state=qa.None,this.closeNode(rd,od,sd),gd},td.prototype.element=function(rd,od,sd){var ld,cd,ud,gd,_d,yd,Ed,Td,Od,Ad,Nd,kd,Id,Rd;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(Od in kd)ed.call(kd,Od)&&(ld=kd[Od],Nd+=this.attribute(ld,od,sd));if(ud=rd.children.length,gd=ud===0?null:rd.children[0],ud===0||rd.children.every(function(Md){return(Md.type===Ra.Text||Md.type===Ra.Raw)&&Md.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&&(gd.type===Ra.Text||gd.type===Ra.Raw)&&gd.value!=null)Nd+=">",od.state=qa.InsideTag,od.suppressPrettyCount++,Ad=!0,Nd+=this.writeChildNode(gd,od,sd+1),od.suppressPrettyCount--,Ad=!1,od.state=qa.CloseTag,Nd+="</"+rd.name+">"+this.endline(rd,od,sd);else{if(od.dontPrettyTextNodes){for(Id=rd.children,_d=0,Ed=Id.length;_d<Ed;_d++)if(cd=Id[_d],(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,Rd=rd.children,yd=0,Td=Rd.length;yd<Td;yd++)cd=Rd[yd],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
` ||Zd===" \r "||Zd===" "}function Rd(Zd){return Zd==='"'||Zd==="'"}function Md(Zd){return Zd===">"||Id(Zd)}function Ld(Zd,mf){return Zd.test(mf)}function jd(Zd,mf){return!Ld(Zd,mf)}var Pd=0;qa.STATE={BEGIN:Pd++,BEGIN_WHITESPACE:Pd++,TEXT:Pd++,TEXT_ENTITY:Pd++,OPEN_WAKA:Pd++,SGML_DECL:Pd++,SGML_DECL_QUOTED:Pd++,DOCTYPE:Pd++,DOCTYPE_QUOTED:Pd++,DOCTYPE_DTD:Pd++,DOCTYPE_DTD_QUOTED:Pd++,COMMENT_STARTING:Pd++,COMMENT:Pd++,COMMENT_ENDING:Pd++,COMMENT_ENDED:Pd++,CDATA:Pd++,CDATA_ENDING:Pd++,CDATA_ENDING_2:Pd++,PROC_INST:Pd++,PROC_INST_BODY:Pd++,PROC_INST_ENDING:Pd++,OPEN_TAG:Pd++,OPEN_TAG_SLASH:Pd++,ATTRIB:Pd++,ATTRIB_NAME:Pd++,ATTRIB_NAME_SAW_WHITE:Pd++,ATTRIB_VALUE:Pd++,ATTRIB_VALUE_QUOTED:Pd++,ATTRIB_VALUE_CLOSED:Pd++,ATTRIB_VALUE_UNQUOTED:Pd++,ATTRIB_VALUE_ENTITY_Q:Pd++,ATTRIB_VALUE_ENTITY_U:Pd++,CLOSE_TAG:Pd++,CLOSE_TAG_SAW_WHITE:Pd++,SCRIPT:Pd++,SCRIPT_ENDING:Pd++},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(Zd){var mf=qa.ENTITIES[Zd],Pf=typeof mf=="number"?String.fromCharCode(mf):mf;qa.ENTITIES[Zd]=Pf});for(var Fd in qa.STATE)qa.STATE[qa.STATE[Fd]]=Fd;Pd=qa.STATE;function Ud(Zd,mf,Pf){Zd[mf]&&Zd[mf](Pf)}function Vd(Zd,mf,Pf){Zd.textNode&&qd(Zd),Ud(Zd,mf,Pf)}function qd(Zd){Zd.textNode=Wd(Zd.opt,Zd.textNode),Zd.textNode&&Ud(Zd,"ontext",Zd.textNode),Zd.textNode=""}function Wd(Zd,mf){return Zd.trim&&(mf=mf.trim()),Zd.normalize&&(mf=mf.replace(/ \s +/g," ")),mf}function zd(Zd,mf){return qd(Zd),Zd.trackPosition&&(mf+= `
Line : ` +Zd.line+ `
Column : ` +Zd.column+ `
Char : ` +Zd.c),mf=new Error(mf),Zd.error=mf,Ud(Zd,"onerror",mf),Zd}function Kd(Zd){return Zd.sawRoot&&!Zd.closedRoot&&Qd(Zd,"Unclosed root tag"),Zd.state!==Pd.BEGIN&&Zd.state!==Pd.BEGIN_WHITESPACE&&Zd.state!==Pd.TEXT&&zd(Zd,"Unexpected end"),qd(Zd),Zd.c="",Zd.closed=!0,Ud(Zd,"onend"),ed.call(Zd,Zd.strict,Zd.opt),Zd}function Qd(Zd,mf){if(typeof Zd!="object"||!(Zd instanceof ed))throw new Error("bad call to strictFail");Zd.strict&&zd(Zd,mf)}function hf(Zd){Zd.strict||(Zd.tagName=Zd.tagName[Zd.looseCase]());var mf=Zd.tags[Zd.tags.length-1]||Zd,Pf=Zd.tag={name:Zd.tagName,attributes:{}};Zd.opt.xmlns&&(Pf.ns=mf.ns),Zd.attribList.length=0,Vd(Zd,"onopentagstart",Pf)}function gf(Zd,mf){var Pf=Zd.indexOf(":"),Ff=Pf<0?["",Zd]:Zd.split(":"),Lf=Ff[0],jf=Ff[1];return mf&&Zd==="xmlns"&&(Lf="xmlns",jf=""),{prefix:Lf,local:jf}}function bf(Zd){if(Zd.strict||(Zd.attribName=Zd.attribName[Zd.looseCase]()),Zd.attribList.indexOf(Zd.attribName)!==-1||Zd.tag.attributes.hasOwnProperty(Zd.attribName)){Zd.attribName=Zd.attribValue="";return}if(Zd.opt.xmlns){var mf=gf(Zd.attribName,!0),Pf=mf.prefix,Ff=mf.local;if(Pf==="xmlns")if(Ff==="xml"&&Zd.attribValue!==yd)Qd(Zd,"xml: prefix must be bound to "+yd+ `
Actual : ` +Zd.attribValue);else if(Ff==="xmlns"&&Zd.attribValue!==Ed)Qd(Zd,"xmlns: prefix must be bound to "+Ed+ `
Actual : ` +Zd.attribValue);else{var Lf=Zd.tag,jf=Zd.tags[Zd.tags.length-1]||Zd;Lf.ns===jf.ns&&(Lf.ns=Object.create(jf.ns)),Lf.ns[Ff]=Zd.attribValue}Zd.attribList.push([Zd.attribName,Zd.attribValue])}else Zd.tag.attributes[Zd.attribName]=Zd.attribValue,Vd(Zd,"onattribute",{name:Zd.attribName,value:Zd.attribValue});Zd.attribName=Zd.attribValue=""}function kf(Zd,mf){if(Zd.opt.xmlns){var Pf=Zd.tag,Ff=gf(Zd.tagName);Pf.prefix=Ff.prefix,Pf.local=Ff.local,Pf.uri=Pf.ns[Ff.prefix]||"",Pf.prefix&&!Pf.uri&&(Qd(Zd,"Unbound namespace prefix: "+JSON.stringify(Zd.tagName)),Pf.uri=Ff.prefix);var Lf=Zd.tags[Zd.tags.length-1]||Zd;Pf.ns&&Lf.ns!==Pf.ns&&Object.keys(Pf.ns).forEach(function(Df){Vd(Zd,"onopennamespace",{prefix:Df,uri:Pf.ns[Df]})});for(var jf=0,xf=Zd.attribList.length;jf<xf;jf++){var Nf=Zd.attribList[jf],Bf=Nf[0],Tf=Nf[1],wf=gf(Bf,!0),Of=wf.prefix, $ f=wf.local,Wf=Of===""?"":Pf.ns[Of]||"",Kf={name:Bf,value:Tf,prefix:Of,local: $ f,uri:Wf};Of&&Of!=="xmlns"&&!Wf&&(Qd(Zd,"Unbound namespace prefix: "+JSON.stringify(Of)),Kf.uri=Of),Zd.tag.attributes[Bf]=Kf,Vd(Zd,"onattribute",Kf)}Zd.attribList.length=0}Zd.tag.isSelfClosing=!!mf,Zd.sawRoot=!0,Zd.tags.push(Zd.tag),Vd(Zd,"onopentag",Zd.tag),mf||(!Zd.noscript&&Zd.tagName.toLowerCase()==="script"?Zd.state=Pd.SCRIPT:Zd.state=Pd.TEXT,Zd.tag=null,Zd.tagName=""),Zd.attribName=Zd.attribValue="",Zd.attribList.length=0}function Cf(Zd){if(!Zd.tagName){Qd(Zd,"Weird empty close tag."),Zd.textNode+="</>",Zd.state=Pd.TEXT;return}if(Zd.script){if(Zd.tagName!=="script"){Zd.script+="</"+Zd.tagName+">",Zd.tagName="",Zd.state=Pd.SCRIPT;return}Vd(Zd,"onscript",Zd.script),Zd.script=""}var mf=Zd.tags.length,Pf=Zd.tagName;Zd.strict||(Pf=Pf[Zd.looseCase]());for(var Ff=Pf;mf--;){var Lf=Zd.tags[mf];if(Lf.name!==Ff)Qd(Zd,"Unexpected close tag");else break}if(mf<0){Qd(Zd,"Unmatched closing tag: "+Zd.tagName),Zd.textNode+="</"+Zd.tagName+">",Zd.state=Pd.TEXT;return}Zd.tagName=Pf;for(var jf=Zd.tags.length;jf-- >mf;){var xf=Zd.tag=Zd.tags.pop();Zd.tagName=Zd.tag.name,Vd(Zd,"onclosetag",Zd.tagName);var Nf={};for(var Bf in xf.ns)Nf[Bf]=xf.ns[Bf];var Tf=Zd.tags[Zd.tags.length-1]||Zd;Zd.opt.xmlns&&xf.ns!==Tf.ns&&Object.keys(xf.ns).forEach(function(wf){var Of=xf.ns[wf];Vd(Zd,"onclosenamespace",{prefix:wf,uri:Of})})}mf===0&&(Zd.closedRoot=!0),Zd.tagName=Zd.attribValue=Zd.attribName="",Zd.attribList.length=0,Zd.state=Pd.TEXT}function Ef(Zd){var mf=Zd.entity,Pf=mf.toLowerCase(),Ff,Lf="";return Zd.ENTITIES[mf]?Zd.ENTITIES[mf]:Zd.ENTITIES[Pf]?Zd.ENTITIES[Pf]:(mf=Pf,mf.charAt(0)==="#"&&(mf.charAt(1)==="x"?(mf=mf.slice(2),Ff=parseInt(mf,16),Lf=Ff.toString(16)):(mf=mf.slice(1),Ff=parseInt(mf,10),Lf=Ff.toString(10))),mf=mf.replace(/^0+/,""),isNaN(Ff)||Lf.toLowerCase()!==mf?(Qd(Zd,"Invalid character entity"),"&"+Zd.entity+";"):String.fromCodePoint(Ff))}function yf(Zd,mf){mf==="<"?(Zd.state=Pd.OPEN_WAKA,Zd.startTagPosition=Zd.position):Id(mf)||(Qd(Zd,"Non-whitespace before first tag."),Zd.textNode=mf,Zd.state=Pd.TEXT)}function Mf(Zd,mf){var Pf="";return mf<Zd.length&&(Pf=Zd.charAt(mf)),Pf}function Af(Zd){var mf=this;if(this.error)throw this.error;if(mf.closed)return zd(mf,"Cannot write after close. Assign an onready handler.");if(Zd===null)return Kd(mf);typeof Zd=="object"&&(Zd=Zd.toString());for(var Pf=0,Ff="";Ff=Mf(Zd,Pf++),mf.c=Ff,!!Ff;)switch(mf.trackPosition&&(mf.position++,Ff=== `
` ?(mf.line++,mf.column=0):mf.column++),mf.state){case Pd.BEGIN:if(mf.state=Pd.BEGIN_WHITESPACE,Ff===" \u FEFF")continue;yf(mf,Ff);continue;case Pd.BEGIN_WHITESPACE:yf(mf,Ff);continue;case Pd.TEXT:if(mf.sawRoot&&!mf.closedRoot){for(var Lf=Pf-1;Ff&&Ff!=="<"&&Ff!=="&";)Ff=Mf(Zd,Pf++),Ff&&mf.trackPosition&&(mf.position++,Ff=== `
` ?(mf.line++,mf.column=0):mf.column++);mf.textNode+=Zd.substring(Lf,Pf-1)}Ff==="<"&&!(mf.sawRoot&&mf.closedRoot&&!mf.strict)?(mf.state=Pd.OPEN_WAKA,mf.startTagPosition=mf.position):(!Id(Ff)&&(!mf.sawRoot||mf.closedRoot)&&Qd(mf,"Text data outside of root node."),Ff==="&"?mf.state=Pd.TEXT_ENTITY:mf.textNode+=Ff);continue;case Pd.SCRIPT:Ff==="<"?mf.state=Pd.SCRIPT_ENDING:mf.script+=Ff;continue;case Pd.SCRIPT_ENDING:Ff==="/"?mf.state=Pd.CLOSE_TAG:(mf.script+="<"+Ff,mf.state=Pd.SCRIPT);continue;case Pd.OPEN_WAKA:if(Ff==="!")mf.state=Pd.SGML_DECL,mf.sgmlDecl="";else if(!Id(Ff))if(Ld(Od,Ff))mf.state=Pd.OPEN_TAG,mf.tagName=Ff;else if(Ff==="/")mf.state=Pd.CLOSE_TAG,mf.tagName="";else if(Ff==="?")mf.state=Pd.PROC_INST,mf.procInstName=mf.procInstBody="";else{if(Qd(mf,"Unencoded <"),mf.startTagPosition+1<mf.position){var jf=mf.position-mf.startTagPosition;Ff=new Array(jf).join(" ")+Ff}mf.textNode+="<"+Ff,mf.state=Pd.TEXT}continue;case Pd.SGML_DECL:if(mf.sgmlDecl+Ff==="--"){mf.state=Pd.COMMENT,mf.comment="",mf.sgmlDecl="";continue}mf.doctype&&mf.doctype!==!0&&mf.sgmlDecl?(mf.state=Pd.DOCTYPE_DTD,mf.doctype+="<!"+mf.sgmlDecl+Ff,mf.sgmlDecl=""):(mf.sgmlDecl+Ff).toUpperCase()===gd?(Vd(mf,"onopencdata"),mf.state=Pd.CDATA,mf.sgmlDecl="",mf.cdata=""):(mf.sgmlDecl+Ff).toUpperCase()===_d?(mf.state=Pd.DOCTYPE,(mf.doctype||mf.sawRoot)&&Qd(mf,"Inappropriately located doctype declaration"),mf.doctype="",mf.sgmlDecl=""):Ff===">"?(Vd(mf,"onsgmldeclaration",mf.sgmlDecl),mf.sgmlDecl="",mf.state=Pd.TEXT):(Rd(Ff)&&(mf.state=Pd.SGML_DECL_QUOTED),mf.sgmlDecl+=Ff);continue;case Pd.SGML_DECL_QUOTED:Ff===mf.q&&(mf.state=Pd.SGML_DECL,mf.q=""),mf.sgmlDecl+=Ff;continue;case Pd.DOCTYPE:Ff===">"?(mf.state=Pd.TEXT,Vd(mf,"ondoctype",mf.doctype),mf.doctype=!0):(mf.doctype+=Ff,Ff==="["?mf.state=Pd.DOCTYPE_DTD:Rd(Ff)&&(mf.state=Pd.DOCTYPE_QUOTED,mf.q=Ff));continue;case Pd.DOCTYPE_QUOTED:mf.doctype+=Ff,Ff===mf.q&&(mf.q="",mf.state=Pd.DOCTYPE);continue;case Pd.DOCTYPE_DTD:Ff==="]"?(mf.doctype+=Ff,mf.state=Pd.DOCTYPE):Ff==="<"?(mf.state=Pd.OPEN_WAKA,mf.startTagPosition=mf.position):Rd(Ff)?(mf.doctype+=Ff,mf.state=Pd.DOCTYPE_DTD_QUOTED,mf.q=Ff):mf.doctype+=Ff;continue;case Pd.DOCTYPE_DTD_QUOTED:mf.doctype+=Ff,Ff===mf.q&&(mf.state=Pd.DOCTYPE_DTD,mf.q="");continue;case Pd.COMMENT:Ff==="-"?mf.state=Pd.COMMENT_ENDING:mf.comment+=Ff;continue;case Pd.COMMENT_ENDING:Ff==="-"?(mf.state=Pd.COMMENT_ENDED,mf.comment=Wd(mf.opt,mf.comment),mf.comment&&Vd(mf,"oncomment",mf.comment),mf.comment=""):(mf.comment+="-"+Ff,mf.state=Pd.COMMENT);continue;case Pd.COMMENT_ENDED:Ff!==">"?(Qd(mf,"Malformed comment"),mf.comment+="--"+Ff,mf.state=Pd.COMMENT):mf.doctype&&mf.doctype!==!0?mf.state=Pd.DOCTYPE_DTD:mf.state=Pd.TEXT;continue;case Pd.CDATA:Ff==="]"?mf.state=Pd.CDATA_ENDING:mf.cdata+=Ff;continue;case Pd.CDATA_ENDING:Ff==="]"?mf.state=Pd.CDATA_ENDING_2:(mf.cdata+="]"+Ff,mf.state=Pd.CDATA);continue;case Pd.CDATA_ENDING_2:Ff===">"?(mf.cdata&&Vd(mf,"oncdata",mf.cdata),Vd(mf,"onclosecdata"),mf.cdata="",mf.state=Pd.TEXT):Ff==="]"?mf.cdata+="]":(mf.cdata+="]]"+Ff,mf.state=Pd.CDATA);continue;case Pd.PROC_INST:Ff==="?"?mf.state=Pd.PROC_INST_ENDING:Id(Ff)?mf.state=Pd.PROC_INST_BODY:mf.procInstName+=Ff;continue;case Pd.PROC_INST_BODY:if(!mf.procInstBody&&Id(Ff))continue;Ff==="?"?mf.state=Pd.PROC_INST_ENDING:mf.procInstBody+=Ff;continue;case Pd.PROC_INST_ENDING:Ff===">"?(Vd(mf,"onprocessinginstruction",{name:mf.procInstName,body:mf.procInstBody}),mf.procInstName=mf.procInstBody="",mf.state=Pd.TEXT):(mf.procInstBody+="?"+Ff,mf.state=Pd.PROC_INST_BODY);continue;case Pd.OPEN_TAG:Ld(Ad,Ff)?mf.tagName+=Ff:(hf(mf),Ff===">"?kf(mf):Ff==="/"?mf.state=Pd.OPEN_TAG_SLASH:(Id(Ff)||Qd(mf,"Invalid character in tag name"),mf.state=Pd.ATTRIB));continue;case Pd.OPEN_TAG_SLASH:Ff===">"?(kf(mf,!0),Cf(mf)):(Qd(mf,"Forward-slash in opening tag not followed by >"),mf.state=Pd.ATTRIB);continue;case Pd.ATTRIB:if(Id(Ff))continue;Ff===">"?kf(mf):Ff==="/"?mf.state=Pd.OPEN_TAG_SLASH:Ld(Od,Ff)?(mf.attribName=Ff,mf.attribValue="",mf.state=Pd.ATTRIB_NAME):Qd(mf,"Invalid attribute name");continue;case Pd.ATTRIB_NAME:Ff==="="?mf.state
` &&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 gd;return ld.trim().length===0?gd="Invalid space after '<'.":gd="Tag '"+ld+"' is an invalid name.",getErrorObject("InvalidTag",gd,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 gd=rd-ud.length;ud=ud.substring(0,ud.length-1);const _d=validateAttributeString(ud,qa);if(_d===!0)ed=!0;else return getErrorObject(_d.err.code,_d.err.msg,getLineNumberForPosition(Ra,gd+_d.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 gd=Ja.pop();if(ld!==gd.tagName){let _d=getLineNumberForPosition(Ra,gd.tagStartPos);return getErrorObject("InvalidTag","Expected closing tag '"+gd.tagName+"' (opened in line "+_d.line+", col "+_d.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 gd=validateAttributeString(ud,qa);if(gd!==!0)return getErrorObject(gd.err.code,gd.err.msg,getLineNumberForPosition(Ra,rd-ud.length+gd.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 gd=validateAmpersand(Ra,rd);if(gd==-1)return getErrorObject("InvalidChar","char '&' is not expected.",getLineNumberForPosition(Ra,rd));rd=gd}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=== `
` ||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 )
` );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 gd=ld.indexOf(":");gd!==-1&&(ld=ld.substr(gd+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,gd=sd.attrExpPresent,_d=sd.closeIndex;this.options.transformTagName&&(ld=this.options.transformTagName(ld)),Ja&&ed&&Ja.tagname!=="!xml"&&(ed=this.saveTextToParentTag(ed,Ja,td,!1));const yd=Ja;if(yd&&this.options.unpairedTags.indexOf(yd.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 Od=this.readStopNodeData(Ra,cd,_d+1);if(!Od)throw new Error(`Unexpected end of ${cd}`);rd=Od.i,Ed=Od.tagContent}const Td=new xmlNode(ld);ld!==ud&&gd&&(Td[" : @ "]=this.buildAttributesMap(ud,td,ld)),Ed&&(Ed=this.parseTextData(Ed,ld,td,!0,gd,!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&&gd&&(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&&gd&&(Ed[" : @ "]=this.buildAttributesMap(ud,td,ld)),this.addChild(Ja,Ed,td),Ja=Ed}ed=" ",rd=_d}}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 Od=sd[ld][0][qa.textNodeName];Od=Od.length!==0?" "+Od:"",td+=Td+ ` < $ { ld } $ { Od } $ { Ed } ? > ` ,rd=!0;continue}let ud=ed;ud!==""&&(ud+=qa.indentBy);const gd=attr_to_str(sd[":@"],qa),_d=ed+ ` < $ { ld } $ { gd } ` ,yd=arrToStr(sd[ld],qa,cd,ud);qa.unpairedTags.indexOf(ld)!==-1?qa.suppressUnpairedNode?td+=_d+">":td+=_d+"/>":(!yd||yd.length===0)&&qa.suppressEmptyNode?td+=_d+"/>":yd&&yd.endsWith(">")?td+=_d+ ` > $ { yd } $ { ed } < /${ld}>`:(td+=_d+">",yd&&ed!==""&&(yd.includes("/ > ")||yd.includes(" < /"))?td+=ed+qa.indentBy+yd+ed:td+=yd,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-30 15:19:18 +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-30 15:19:18 +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 gd = ed . exec ( ud ) , _d = gd && qa [ gd [ 1 ] . toLowerCase ( ) ] ; return _d && _d . charset ? _d . charset : gd && td . test ( gd [ 1 ] ) ? "UTF-8" : ! 1 } function od ( ud ) { if ( ! ud || typeof ud != "string" ) return ! 1 ; var gd = ud . indexOf ( "/" ) === - 1 ? Ra . lookup ( ud ) : ud ; if ( ! gd ) return ! 1 ; if ( gd . indexOf ( "charset" ) === - 1 ) { var _d = Ra . charset ( gd ) ; _d && ( gd += "; charset=" + _d . toLowerCase ( ) ) } return gd } function sd ( ud ) { if ( ! ud || typeof ud != "string" ) return ! 1 ; var gd = ed . exec ( ud ) , _d = gd && Ra . extensions [ gd [ 1 ] . toLowerCase ( ) ] ; return ! _d || ! _d . length ? ! 1 : _d [ 0 ] } function ld ( ud ) { if ( ! ud || typeof ud != "string" ) return ! 1 ; var gd = Ja ( "x." + ud ) . toLowerCase ( ) . substr ( 1 ) ; return gd && Ra . types [ gd ] || ! 1 } function cd ( ud , gd ) { var _d = [ "nginx" , "apache" , void 0 , "iana" ] ; Object . keys ( qa ) . forEach ( function ( Ed ) { var Td = qa [ Ed ] , Od = Td . extensions ; if ( ! ( ! Od || ! Od . length ) ) { ud [ Ed ] = Od ; for ( var Ad = 0 ; Ad < Od . length ; Ad ++ ) { var Nd = Od [ Ad ] ; if ( gd [ Nd ] ) { var kd = _d . indexOf ( qa [ gd [ Nd ] ] . source ) , Id = _d . indexOf ( Td . source ) ; if ( gd [ Nd ] !== "application/octet-stream" && ( kd > Id || kd === Id && gd [ Nd ] . substr ( 0 , 12 ) === "application/" ) ) continue } gd [ 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( `
` )}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),gd=getSigningKey(td,ed,Ja,cd),_d=getCredential(qa,ed,td,cd),yd=(void 0)("sha256",gd).update(ud).digest("hex").toLowerCase();return ` $ { signV4Algorithm } Credential = $ { _d } , SignedHeaders = $ { sd . join ( ";" ) . toLowerCase ( ) } , Signature = $ { yd } ` }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",gd=[];gd.push( ` X - Amz - Algorithm = $ { signV4Algorithm } ` ),gd.push( ` X - Amz - Credential = $ { uriEscape ( cd ) } ` ),gd.push( ` X - Amz - Date = $ { sd } ` ),gd.push( ` X - Amz - Expires = $ { od } ` ),gd.push( ` X - Amz - SignedHeaders = $ { uriEscape ( ld . join ( ";" ) . toLowerCase ( ) ) } ` ),ed&&gd.push( ` X - Amz - Security - Token = $ { uriEscape ( ed ) } ` );const _d=Ra.path.split("?")[0];let yd=Ra.path.split("?")[1];yd?yd=yd+"&"+gd.join("&"):yd=gd.join("&");const Ed=_d+"?"+yd,Td=getCanonicalRequest(Ra.method,Ed,Ra.headers,ld,ud),Od=getStringToSign(Td,rd,td),Nd=(void 0)("sha256",getSigningKey(rd,td,Ja)).update(Od).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
` )}),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 }
` )}}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),gd=parseBucketRegion(ud)||DEFAULT_REGION;return this.regionMap[qa]=gd,gd},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
` ).forEach(function(Ad){if(Ad){var Nd=Ad.indexOf(":"),kd=Ad.substr(0,Nd).trim().toLowerCase(),Id=Ad.substr(Nd+1).trim();Td[kd]=Id}}),{error:_d,statusCode:yd.status,statusMessage:yd.statusText,headers:Td,body:Ed}},cd=function(_d,yd){return!yd&&yd==="text"?_d.responseText:_d.response},ud=function(_d,yd){var Ed=(_d.method||"GET").toUpperCase(),Td=_d.url;if(_d.qs){var Od=sd(_d.qs);Od&&(Td+=(Td.indexOf("?")===-1?"?":"&")+Od)}var Ad=new XMLHttpRequest;if(Ad.open(Ed,Td,!0),Ad.responseType=_d.dataType||"text",_d.xhrFields)for(var Nd in _d.xhrFields)Ad[Nd]=_d.xhrFields[Nd];var kd=_d.headers;if(kd)for(var Id in kd)kd.hasOwnProperty(Id)&&Id.toLowerCase()!=="content-length"&&Id.toLowerCase()!=="user-agent"&&Id.toLowerCase()!=="origin"&&Id.toLowerCase()!=="host"&&Ad.setRequestHeader(Id,kd[Id]);return _d.onProgress&&Ad.upload&&(Ad.upload.onprogress=_d.onProgress),_d.onDownloadProgress&&(Ad.onprogress=_d.onDownloadProgress),_d.timeout&&(Ad.timeout=_d.timeout),Ad.ontimeout=function(Rd){var Md=new Error("timeout");yd(ld(Md,Ad))},Ad.onload=function(){yd(ld(null,Ad,cd(Ad,_d.dataType)))},Ad.onerror=function(Rd){var Md=cd(Ad,_d.dataType);if(Md)yd(ld(null,Ad,Md));else{var Ld=Ad.statusText;!Ld&&Ad.status===0&&(Ld=new Error("CORS blocked or network error")),yd(ld(Ld,Ad,Md))}},Ad.send(_d.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 gd=cd[ud];gd.enumerable=gd.enumerable||!1,gd.configurable=!0,"value"in gd&&(gd.writable=!0),Object.defineProperty(ld,rd(gd.key),gd)}}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(gd,_d){const yd=[];l
` &&Md[Ud]!==" \r ";Ud++)Wd+=Md[Ud];if(Wd=Wd.trim(),Wd[Wd.length-1]==="/"&&(Wd=Wd.substring(0,Wd.length-1),Ud--),!kd(Wd)){let Qd;return Wd.trim().length===0?Qd="Invalid space after '<'.":Qd="Tag '"+Wd+"' is an invalid name.",Ad("InvalidTag",Qd,Id(Md,Ud))}const zd=_d(Md,Ud);if(zd===!1)return Ad("InvalidAttr","Attributes for '"+Wd+"' have open quote.",Id(Md,Ud));let Kd=zd.value;if(Ud=zd.index,Kd[Kd.length-1]==="/"){const Qd=Ud-Kd.length;Kd=Kd.substring(0,Kd.length-1);const hf=Ed(Kd,Ld);if(hf===!0)Pd=!0;else return Ad(hf.err.code,hf.err.msg,Id(Md,Qd+hf.err.line))}else if(qd)if(zd.tagClosed){if(Kd.trim().length>0)return Ad("InvalidTag","Closing tag '"+Wd+"' can't have attributes or invalid starting.",Id(Md,Vd));if(jd.length===0)return Ad("InvalidTag","Closing tag '"+Wd+"' has not been opened.",Id(Md,Vd));{const Qd=jd.pop();if(Wd!==Qd.tagName){let hf=Id(Md,Qd.tagStartPos);return Ad("InvalidTag","Expected closing tag '"+Qd.tagName+"' (opened in line "+hf.line+", col "+hf.col+") instead of closing tag '"+Wd+"'.",Id(Md,Vd))}jd.length==0&&(Fd=!0)}}else return Ad("InvalidTag","Closing tag '"+Wd+"' doesn't have proper closing.",Id(Md,Ud));else{const Qd=Ed(Kd,Ld);if(Qd!==!0)return Ad(Qd.err.code,Qd.err.msg,Id(Md,Ud-Kd.length+Qd.err.line));if(Fd===!0)return Ad("InvalidXml","Multiple possible root nodes found.",Id(Md,Ud));Ld.unpairedTags.indexOf(Wd)!==-1||jd.push({tagName:Wd,tagStartPos:Vd}),Pd=!0}for(Ud++;Ud<Md.length;Ud++)if(Md[Ud]==="<")if(Md[Ud+1]==="!"){Ud++,Ud=cd(Md,Ud);continue}else if(Md[Ud+1]==="?"){if(Ud=ld(Md,++Ud),Ud.err)return Ud}else break;else if(Md[Ud]==="&"){const Qd=Od(Md,Ud);if(Qd==-1)return Ad("InvalidChar","char '&' is not expected.",Id(Md,Ud));Ud=Qd}else if(Fd===!0&&!sd(Md[Ud]))return Ad("InvalidXml","Extra text at the end",Id(Md,Ud));Md[Ud]==="<"&&Ud--}}else{if(sd(Md[Ud]))continue;return Ad("InvalidChar","char '"+Md[Ud]+"' is not expected.",Id(Md,Ud))}if(Pd){if(jd.length==1)return Ad("InvalidTag","Unclosed tag '"+jd[0].tagName+"'.",Id(Md,jd[0].tagStartPos));if(jd.length>0)return Ad("InvalidXml","Invalid '"+JSON.stringify(jd.map(Ud=>Ud.tagName),null,4).replace(/ \r ? \n /g,"")+"' found.",{line:1,col:1})}else return Ad("InvalidXml","Start tag expected.",1);return!0};function sd(Md){return Md===" "||Md===" "||Md=== `
` ||Md===" \r "}function ld(Md,Ld){const jd=Ld;for(;Ld<Md.length;Ld++)if(Md[Ld]=="?"||Md[Ld]==" "){const Pd=Md.substr(jd,Ld-jd);if(Ld>5&&Pd==="xml")return Ad("InvalidXml","XML declaration allowed only at the start of the document.",Id(Md,Ld));if(Md[Ld]=="?"&&Md[Ld+1]==">"){Ld++;break}else continue}return Ld}function cd(Md,Ld){if(Md.length>Ld+5&&Md[Ld+1]==="-"&&Md[Ld+2]==="-"){for(Ld+=3;Ld<Md.length;Ld++)if(Md[Ld]==="-"&&Md[Ld+1]==="-"&&Md[Ld+2]===">"){Ld+=2;break}}else if(Md.length>Ld+8&&Md[Ld+1]==="D"&&Md[Ld+2]==="O"&&Md[Ld+3]==="C"&&Md[Ld+4]==="T"&&Md[Ld+5]==="Y"&&Md[Ld+6]==="P"&&Md[Ld+7]==="E"){let jd=1;for(Ld+=8;Ld<Md.length;Ld++)if(Md[Ld]==="<")jd++;else if(Md[Ld]===">"&&(jd--,jd===0))break}else if(Md.length>Ld+9&&Md[Ld+1]==="["&&Md[Ld+2]==="C"&&Md[Ld+3]==="D"&&Md[Ld+4]==="A"&&Md[Ld+5]==="T"&&Md[Ld+6]==="A"&&Md[Ld+7]==="["){for(Ld+=8;Ld<Md.length;Ld++)if(Md[Ld]==="]"&&Md[Ld+1]==="]"&&Md[Ld+2]===">"){Ld+=2;break}}return Ld}const ud='"',gd="'";function _d(Md,Ld){let jd="",Pd="",Fd=!1;for(;Ld<Md.length;Ld++){if(Md[Ld]===ud||Md[Ld]===gd)Pd===""?Pd=Md[Ld]:Pd!==Md[Ld]||(Pd="");else if(Md[Ld]===">"&&Pd===""){Fd=!0;break}jd+=Md[Ld]}return Pd!==""?!1:{value:jd,index:Ld,tagClosed:Fd}}const yd=new RegExp( ` ( \ \ s * ) ( [ ^ \ \ s = ] + ) ( \ \ s *= ) ? ( \ \ s * ( [ '"])(([\\s\\S])*?)\\5)?`,"g");function Ed(Md,Ld){const jd=rd.getAllMatches(Md,yd),Pd={};for(let Fd=0;Fd<jd.length;Fd++){if(jd[Fd][1].length===0)return Ad("InvalidAttr","Attribute ' "+jd[Fd][2]+" ' has no space in starting.",Rd(jd[Fd]));if(jd[Fd][3]!==void 0&&jd[Fd][4]===void 0)return Ad("InvalidAttr","Attribute ' "+jd[Fd][2]+" ' is without value.",Rd(jd[Fd]));if(jd[Fd][3]===void 0&&!Ld.allowBooleanAttributes)return Ad("InvalidAttr","boolean attribute ' "+jd[Fd][2]+" ' is not allowed.",Rd(jd[Fd]));const Ud=jd[Fd][2];if(!Nd(Ud))return Ad("InvalidAttr","Attribute ' "+Ud+" ' is an invalid name.",Rd(jd[Fd]));if(!Pd.hasOwnProperty(Ud))Pd[Ud]=1;else return Ad("InvalidAttr","Attribute ' "+Ud+" ' is repeated.",Rd(jd[Fd]))}return!0}function Td(Md,Ld){let jd=/\d/;for(Md[Ld]==="x"&&(Ld++,jd=/[\da-fA-F]/);Ld<Md.length;Ld++){if(Md[Ld]===";")return Ld;if(!Md[Ld].match(jd))break}return-1}function Od(Md,Ld){if(Ld++,Md[Ld]===";")return-1;if(Md[Ld]==="#")return Ld++,Td(Md,Ld);let jd=0;for(;Ld<Md.length;Ld++,jd++)if(!(Md[Ld].match(/\w/)&&jd<20)){if(Md[Ld]===";")break;return-1}return Ld}function Ad(Md,Ld,jd){return{err:{code:Md,msg:Ld,line:jd.line||jd,col:jd.col}}}function Nd(Md){return rd.isName(Md)}function kd(Md){return rd.isName(Md)}function Id(Md,Ld){const jd=Md.substring(0,Ld).split(/\r?\n/);return{line:jd.length,col:jd[jd.length-1].length+1}}function Rd(Md){return Md.startIndex+Md[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(gd,_d){return _d},attributeValueProcessor:function(gd,_d){return _d},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 ( gd ) { this . options = Object . assign ( { } , od , gd ) , 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-30 15:19:18 +08:00
` ):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}sd.prototype.build=function(gd){return this.options.preserveOrder?rd(gd,this.options):(Array.isArray(gd)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(gd={[this.options.arrayNodeName]:gd}),this.j2x(gd,0).val)},sd.prototype.j2x=function(gd,_d){let yd="",Ed="";for(let Td in gd)if(Object.prototype.hasOwnProperty.call(gd,Td))if(typeof gd[Td]>"u")this.isAttribute(Td)&&(Ed+="");else if(gd[Td]===null)this.isAttribute(Td)?Ed+="":Td[0]==="?"?Ed+=this.indentate(_d)+"<"+Td+"?"+this.tagEndChar:Ed+=this.indentate(_d)+"<"+Td+"/"+this.tagEndChar;else if(gd[Td]instanceof Date)Ed+=this.buildTextValNode(gd[Td],Td,"",_d);else if(typeof gd[Td]!="object"){const Od=this.isAttribute(Td);if(Od)yd+=this.buildAttrPairStr(Od,""+gd[Td]);else if(Td===this.options.textNodeName){let Ad=this.options.tagValueProcessor(Td,""+gd[Td]);Ed+=this.replaceEntitiesValue(Ad)}else Ed+=this.buildTextValNode(gd[Td],Td,"",_d)}else if(Array.isArray(gd[Td])){const Od=gd[Td].length;let Ad="";for(let Nd=0;Nd<Od;Nd++){const kd=gd[Td][Nd];typeof kd>"u"||(kd===null?Td[0]==="?"?Ed+=this.indentate(_d)+"<"+Td+"?"+this.tagEndChar:Ed+=this.indentate(_d)+"<"+Td+"/"+this.tagEndChar:typeof kd=="object"?this.options.oneListGroup?Ad+=this.j2x(kd,_d+1).val:Ad+=this.processTextOrObjNode(kd,Td,_d):Ad+=this.buildTextValNode(kd,Td,"",_d))}this.options.oneListGroup&&(Ad=this.buildObjectNode(Ad,Td,"",_d)),Ed+=Ad}else if(this.options.attributesGroupName&&Td===this.options.attributesGroupName){const Od=Object.keys(gd[Td]),Ad=Od.length;for(let Nd=0;Nd<Ad;Nd++)yd+=this.buildAttrPairStr(Od[Nd],""+gd[Td][Od[Nd]])}else Ed+=this.processTextOrObjNode(gd[Td],Td,_d);return{attrStr:yd,val:Ed}},sd.prototype.buildAttrPairStr=function(gd,_d){return _d=this.options.attributeValueProcessor(gd,""+_d),_d=this.replaceEntitiesValue(_d),this.options.suppressBooleanAttributes&&_d==="true"?" "+gd:" "+gd+'="'+_d+'"'};function ld(gd,_d,yd){const Ed=this.j2x(gd,yd+1);return gd[this.options.textNodeName]!==void 0&&Object.keys(gd).length===1?this.buildTextValNode(gd[this.options.textNodeName],_d,Ed.attrStr,yd):this.buildObjectNode(Ed.val,_d,Ed.attrStr,yd)}sd.prototype.buildObjectNode=function(gd,_d,yd,Ed){if(gd==="")return _d[0]==="?"?this.indentate(Ed)+"<"+_d+yd+"?"+this.tagEndChar:this.indentate(Ed)+"<"+_d+yd+this.closeTag(_d)+this.tagEndChar;{let Td="</"+_d+this.tagEndChar,Od="";return _d[0]==="?"&&(Od="?",Td=""),(yd||yd==="")&&gd.indexOf("<")===-1?this.indentate(Ed)+"<"+_d+yd+Od+">"+gd+Td:this.options.commentPropName!==!1&&_d===this.options.commentPropName&&Od.length===0?this.indentate(Ed)+ ` <!-- $ { gd } -- > ` +this.newLine:this.indentate(Ed)+"<"+_d+yd+Od+this.tagEndChar+gd+this.indentate(Ed)+Td}},sd.prototype.closeTag=function(gd){let _d="";return this.options.unpairedTags.indexOf(gd)!==-1?this.options.suppressUnpairedNode||(_d="/"):this.options.suppressEmptyNode?_d="/":_d= ` > < /${gd}`,_d},sd.prototype.buildTextValNode=function(gd,_d,yd,Ed){if(this.options.cdataPropName!==!1&&_d===this.options.cdataPropName)return this.indentate(Ed)+`<![CDATA[${gd}]]>`+this.newLine;if(this.options.commentPropName!==!1&&_d===this.options.commentPropName)return this.indentate(Ed)+`<!--${gd}-->`+this.newLine;if(_d[0]==="?")return this.indentate(Ed)+"<"+_d+yd+"?"+this.tagEndChar;{let Td=this.options.tagValueProcessor(_d,gd);return Td=this.replaceEntitiesValue(Td),Td===""?this.indentate(Ed)+"<"+_d+yd+this.closeTag(_d)+this.tagEndChar:this.indentate(Ed)+"<"+_d+yd+">"+Td+"</ "+_d+this.tagEndChar}},sd.prototype.replaceEntitiesValue=function(gd){if(gd&&gd.length>0&&this.options.processEntities)for(let _d=0;_d<this.options.entities.length;_d++){const yd=this.options.entities[_d];gd=gd.replace(yd.regex,yd.val)}return gd};function cd(gd){return this.options.indentBy.repeat(gd)}function ud(gd){return gd.startsWith(this.options.attributeNamePrefix)&&gd!==this.options.textNodeName?gd.substr(this.attrPrefixLen):!1}Ja.exports=sd}," . / node _modules / fast - xml - parser / src / xmlbuilder / orderedJs2Xml . js " : function ( Ja , ed ) { const td = `
` ;function rd(gd,_d){let yd="";return _d.format&&_d.indentBy.length>0&&(yd=td),od(gd,_d,"",yd)}function od(gd,_d,yd,Ed){let Td="",Od=!1;for(let Ad=0;Ad<gd.length;Ad++){const Nd=gd[Ad],kd=sd(Nd);if(kd===void 0)continue;let Id="";if(yd.length===0?Id=kd:Id= ` $ { yd } . $ { kd } ` ,kd===_d.textNodeName){let Pd=Nd[kd];cd(Id,_d)||(Pd=_d.tagValueProcessor(kd,Pd),Pd=ud(Pd,_d)),Od&&(Td+=Ed),Td+=Pd,Od=!1;continue}else if(kd===_d.cdataPropName){Od&&(Td+=Ed),Td+= ` < ! [ CDATA [ $ { Nd [ kd ] [ 0 ] [ _d . textNodeName ] } ] ] > ` ,Od=!1;continue}else if(kd===_d.commentPropName){Td+=Ed+ ` <!-- $ { Nd [ kd ] [ 0 ] [ _d . textNodeName ] } -- > ` ,Od=!0;continue}else if(kd[0]==="?"){const Pd=ld(Nd[":@"],_d),Fd=kd==="?xml"?"":Ed;let Ud=Nd[kd][0][_d.textNodeName];Ud=Ud.length!==0?" "+Ud:"",Td+=Fd+ ` < $ { kd } $ { Ud } $ { Pd } ? > ` ,Od=!0;continue}let Rd=Ed;Rd!==""&&(Rd+=_d.indentBy);const Md=ld(Nd[":@"],_d),Ld=Ed+ ` < $ { kd } $ { Md } ` ,jd=od(Nd[kd],_d,Id,Rd);_d.unpairedTags.indexOf(kd)!==-1?_d.suppressUnpairedNode?Td+=Ld+">":Td+=Ld+"/>":(!jd||jd.length===0)&&_d.suppressEmptyNode?Td+=Ld+"/>":jd&&jd.endsWith(">")?Td+=Ld+ ` > $ { jd } $ { Ed } < /${kd}>`:(Td+=Ld+">",jd&&Ed!==""&&(jd.includes("/ > ")||jd.includes(" < /"))?Td+=Ed+_d.indentBy+jd+Ed:Td+=jd,Td+=`</ $ { kd } > ` ),Od=!0}return Td}function sd(gd){const _d=Object.keys(gd);for(let yd=0;yd<_d.length;yd++){const Ed=_d[yd];if(gd.hasOwnProperty(Ed)&&Ed!==":@")return Ed}}function ld(gd,_d){let yd="";if(gd&&!_d.ignoreAttributes)for(let Ed in gd){if(!gd.hasOwnProperty(Ed))continue;let Td=_d.attributeValueProcessor(Ed,gd[Ed]);Td=ud(Td,_d),Td===!0&&_d.suppressBooleanAttributes?yd+= ` $ { Ed . substr ( _d . attributeNamePrefix . length ) } ` :yd+= ` $ { Ed . substr ( _d . attributeNamePrefix . length ) } = "${Td}" ` }return yd}function cd(gd,_d){gd=gd.substr(0,gd.length-_d.textNodeName.length-1);let yd=gd.substr(gd.lastIndexOf(".")+1);for(let Ed in _d.stopNodes)if(_d.stopNodes[Ed]===gd||_d.stopNodes[Ed]==="*."+yd)return!0;return!1}function ud(gd,_d){if(gd&&gd.length>0&&_d.processEntities)for(let yd=0;yd<_d.entities.length;yd++){const Ed=_d.entities[yd];gd=gd.replace(Ed.regex,Ed.val)}return gd}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 Od={};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,Id="";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&&(Od[yd(entityName)]={regx:RegExp( ` & $ { entityName } ; ` ,"g"),val});else if(Nd&&ud(Ed,Td))Td+=8;else if(Nd&&gd(Ed,Td))Td+=8;else if(Nd&&_d(Ed,Td))Td+=9;else if(ld)kd=!0;else throw new Error("Invalid DOCTYPE");Ad++,Id=""}else if(Ed[Td]===">"){if(kd?Ed[Td-1]==="-"&&Ed[Td-2]==="-"&&(kd=!1,Ad--):Ad--,Ad===0)break}else Ed[Td]==="["?Nd=!0:Id+=Ed[Td];if(Ad!==0)throw new Error("Unclosed DOCTYPE")}else throw new Error("Invalid Tag instead of DOCTYPE");return{entities:Od,i:Td}}function sd(Ed,Td){let Od="";for(;Td<Ed.length&&Ed[Td]!=="'"&&Ed[Td]!=='"';Td++)Od+=Ed[Td];if(Od=Od.trim(),Od.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[Od,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 gd(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 _d(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 yd(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 Fd=new od("!xml");let Ud=Fd,Vd="",qd="";for(let Wd=0;Wd<Pd.length;Wd++)if(Pd[Wd]==="<")if(Pd[Wd+1]==="/"){const Kd=Rd(Pd,">",Wd,"Closing Tag is not closed.");let Qd=Pd.substring(Wd+2,Kd).trim();if(this.options.removeNSPrefix){const bf=Qd.indexOf(":");bf!==-1&&(Qd=Qd.substr(bf+1))}this.options.transformTagName&&(Qd=this.options.transformTagName(Qd)),Ud&&(Vd=this.saveTextToParentTag(Vd,Ud,qd));const hf=qd.substring(qd.lastIndexOf(".")+1);if(Qd&&this.options.unpairedTags.indexOf(Qd)!==-1)throw new Error( ` Unpaired tag can not be used as closing tag : < /${Qd}>`);let gf=0;hf&&this.options.unpairedTags.indexOf(hf)!==-1?(gf=qd.lastIndexOf(".",qd.lastIndexOf(".")-1),this.tagsNodeStack.pop()):gf=qd.lastIndexOf("."),qd=qd.substring(0,gf),Ud=this.tagsNodeStack.pop(),Vd="",Wd=Kd}else if(Pd[Wd+1]==="?"){let Kd=Md(Pd,Wd,!1,"?>");if(!Kd)throw new Error("Pi Tag is not closed.");if(Vd=this.saveTextToParentTag(Vd,Ud,qd),!(this.options.ignoreDeclaration&&Kd.tagName==="?xml"||this.options.ignorePiTags)){const Qd=new od(Kd.tagName);Qd.add(this.options.textNodeName,""),Kd.tagName!==Kd.tagExp&&Kd.attrExpPresent&&(Qd[":@"]=this.buildAttributesMap(Kd.tagExp,qd,Kd.tagName)),this.addChild(Ud,Qd,qd)}Wd=Kd.closeIndex+1}else if(Pd.substr(Wd+1,3)==="!--"){const Kd=Rd(Pd,"-->",Wd+4,"Comment is not closed.");if(this.options.commentPropName){const Qd=Pd.substring(Wd+4,Kd-2);Vd=this.saveTextToParentTag(Vd,Ud,qd),Ud.add(this.options.commentPropName,[{[this.options.textNodeName]:Qd}])}Wd=Kd}else if(Pd.substr(Wd+1,2)==="!D"){const Kd=sd(Pd,Wd);this.docTypeEntities=Kd.entities,Wd=Kd.i}else if(Pd.substr(Wd+1,2)==="!["){const Kd=Rd(Pd,"]]>",Wd,"CDATA is not closed.")-2,Qd=Pd.substring(Wd+9,Kd);Vd=this.saveTextToParentTag(Vd,Ud,qd);let hf=this.parseTextData(Qd,Ud.tagname,qd,!0,!1,!0,!0);hf==null&&(hf=""),this.options.cdataPropName?Ud.add(this.options.cdataPropName,[{[this.options.textNodeName]:Qd}]):Ud.add(this.options.textNodeName,hf),Wd=Kd+2}else{let Kd=Md(Pd,Wd,this.options.removeNSPrefix),Qd=Kd.tagName;const hf=Kd.rawTagName;let gf=Kd.tagExp,bf=Kd.attrExpPresent,kf=Kd.closeIndex;this.options.transformTagName&&(Qd=this.options.transformTagName(Qd)),Ud&&Vd&&Ud.tagname!=="!xml"&&(Vd=this.saveTextToParentTag(Vd,Ud,qd,!1));const Cf=Ud;if(Cf&&this.options.unpairedTags.indexOf(Cf.tagname)!==-1&&(Ud=this.tagsNodeStack.pop(),qd=qd.substring(0,qd.lastIndexOf("."))),Qd!==Fd.tagname&&(qd+=qd?"."+Qd:Qd),this.isItStopNode(this.options.stopNodes,qd,Qd)){let Ef="";if(gf.length>0&&gf.lastIndexOf("/ ")===gf.length-1)Qd[Qd.length-1]===" / "?(Qd=Qd.substr(0,Qd.length-1),qd=qd.substr(0,qd.length-1),gf=Qd):gf=gf.substr(0,gf.length-1),Wd=Kd.closeIndex;else if(this.options.unpairedTags.indexOf(Qd)!==-1)Wd=Kd.closeIndex;else{const Mf=this.readStopNodeData(Pd,hf,kf+1);if(!Mf)throw new Error(`Unexpected end of ${hf}`);Wd=Mf.i,Ef=Mf.tagContent}const yf=new od(Qd);Qd!==gf&&bf&&(yf[" : @ "]=this.buildAttributesMap(gf,qd,Qd)),Ef&&(Ef=this.parseTextData(Ef,Qd,qd,!0,bf,!0,!0)),qd=qd.substr(0,qd.lastIndexOf(" . ")),yf.add(this.options.textNodeName,Ef),this.addChild(Ud,yf,qd)}else{if(gf.length>0&&gf.lastIndexOf(" / ")===gf.length-1){Qd[Qd.length-1]===" / "?(Qd=Qd.substr(0,Qd.length-1),qd=qd.substr(0,qd.length-1),gf=Qd):gf=gf.substr(0,gf.length-1),this.options.transformTagName&&(Qd=this.options.transformTagName(Qd));const Ef=new od(Qd);Qd!==gf&&bf&&(Ef[" : @ "]=this.buildAttributesMap(gf,qd,Qd)),this.addChild(Ud,Ef,qd),qd=qd.substr(0,qd.lastIndexOf(" . "))}else{const Ef=new od(Qd);this.tagsNodeStack.push(Ud),Qd!==gf&&bf&&(Ef[" : @ "]=this.buildAttributesMap(gf,qd,Qd)),this.addChild(Ud,Ef,qd),Ud=Ef}Vd=" ",Wd=kf}}else Vd+=Pd[Wd];return Fd.child};function Od(Pd,Fd,Ud){const Vd=this.options.updateTag(Fd.tagname,Ud,Fd[" : @ "]);Vd===!1||(typeof Vd==" string " && ( Fd . tagname = Vd ) , Pd . addChild ( Fd ) ) } const Ad = function ( Pd ) { if ( this . options . processEntities ) { for ( let Fd in this . docTypeEntities ) { const Ud = this . docTypeEntities [ Fd ] ; Pd = Pd . replace ( Ud . regx , Ud . val ) } for ( let Fd in this . lastEntities ) { const Ud = this . lastEntities [ Fd ] ; Pd = Pd . replace ( Ud . regex , Ud . val ) } if ( this . options . htmlEntities ) for ( let Fd in this . htmlEntities ) { const Ud = this . htm
In order to be iterable , non - array objects must have a [ Symbol . iterator ] ( ) method . ` )}var Ah=!0,Gh=!1,sm;return{s:function(){Zf=Zf.call(Vf)},n:function(){var Rh=Zf.next();return Ah=Rh.done,Rh},e:function(Rh){Gh=!0,sm=Rh},f:function(){try{!Ah&&Zf.return!=null&&Zf.return()}finally{if(Gh)throw sm}}}}function ld(Vf,Rf){if(Vf){if(typeof Vf=="string")return cd(Vf,Rf);var Zf=Object.prototype.toString.call(Vf).slice(8,-1);if(Zf==="Object"&&Vf.constructor&&(Zf=Vf.constructor.name),Zf==="Map"||Zf==="Set")return Array.from(Vf);if(Zf==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array $ /.test(Zf))return cd(Vf,Rf)}}function cd(Vf,Rf){(Rf==null||Rf>Vf.length)&&(Rf=Vf.length);for(var Zf=0,Jf=new Array(Rf);Zf<Rf;Zf++)Jf[Zf]=Vf[Zf];return Jf}var ud=td("./lib/md5.js"),gd=td("./lib/crypto.js"),_d=td("./node_modules/fast-xml-parser/src/fxp.js"),yd=_d.XMLParser,Ed=_d.XMLBuilder,Td=new yd({ignoreDeclaration:!0,ignoreAttributes:!0,parseTagValue:!1}),Od=new Ed,Ad=td("./lib/base64.js"),Nd=td("./src/tracker.js"),kd=function(Rf){var Zf=Td.parse(Rf);return Zf},Id=function(Rf){var Zf=Od.build(Rf);return Zf};function Rd(Vf){return encodeURIComponent(Vf).replace(/!/g,"%21").replace(/'/g,"%27").replace(/ \( /g,"%28").replace(/ \) /g,"%29").replace(/ \* /g,"%2A")}function Md(Vf,Rf){var Zf=[];for(var Jf in Vf)Vf.hasOwnProperty(Jf)&&Zf.push(Rf?Rd(Jf).toLowerCase():Jf);return Zf.sort(function(Th,Ah){return Th=Th.toLowerCase(),Ah=Ah.toLowerCase(),Th===Ah?0:Th>Ah?1:-1})}var Ld=function(Rf,Zf){var Jf,Th,Ah,Gh=[],sm=Md(Rf);for(Jf=0;Jf<sm.length;Jf++)Th=sm[Jf],Ah=Rf[Th]===void 0||Rf[Th]===null?"":""+Rf[Th],Th=Zf?Rd(Th).toLowerCase():Rd(Th),Ah=Rd(Ah)||"",Gh.push(Th+"="+Ah);return Gh.join("&")},jd=["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"],Pd=function(Rf){var Zf={};for(var Jf in Rf){var Th=Jf.toLowerCase();(Th.indexOf("x-cos-")>-1||jd.indexOf(Th)>-1)&&(Zf[Jf]=Rf[Jf])}return Zf},Fd=function(Rf){Rf=Rf||{};var Zf=Rf.SecretId,Jf=Rf.SecretKey,Th=Rf.KeyTime,Ah=(Rf.method||Rf.Method||"get").toLowerCase(),Gh=Ef(Rf.Query||Rf.params||{}),sm=Pd(Ef(Rf.Headers||Rf.headers||{})),kh=Rf.Key||"",Rh;Rf.UseRawKey?Rh=Rf.Pathname||Rf.pathname||"/"+kh:(Rh=Rf.Pathname||Rf.pathname||kh,Rh.indexOf("/")!==0&&(Rh="/"+Rh));var jh=Rf.ForceSignHost!==!1;if(!sm.Host&&!sm.host&&Rf.Bucket&&Rf.Region&&jh&&(sm.Host=Rf.Bucket+".cos."+Rf.Region+".myqcloud.com"),!Zf)throw new Error("missing param SecretId");if(!Jf)throw new Error("missing param SecretKey");var cm=Math.round( $ f(Rf.SystemClockOffset)/1e3)-1,Tm=cm,Fm=Rf.Expires||Rf.expires;Fm===void 0?Tm+=900:Tm+=Fm*1||0;var Gm="sha1",s1=Zf,Km=Th||cm+";"+Tm,v1=Th||cm+";"+Tm,h1=Md(sm,!0).join(";").toLowerCase(),F1=Md(Gh,!0).join(";").toLowerCase(),M1=gd.HmacSHA1(v1,Jf).toString(),E1=[Ah,Rh,oh.obj2str(Gh,!0),oh.obj2str(sm,!0),""].join( `
` ),O1=["sha1",Km,gd.SHA1(E1).toString(),""].join( `
` ),Hm=gd.HmacSHA1(O1,M1).toString(),b1=["q-sign-algorithm="+Gm,"q-ak="+s1,"q-sign-time="+Km,"q-key-time="+v1,"q-header-list="+h1,"q-url-param-list="+F1,"q-signature="+Hm].join("&");return b1},Ud=function(Rf,Zf,Jf){var Th=Zf/8,Ah=Rf.slice(Jf,Jf+Th);return new Uint8Array(Ah).reverse(),new{8:Uint8Array,16:Uint16Array,32:Uint32Array}[Zf](Ah)[0]},Vd=function(Rf,Zf,Jf,Th){var Ah=Rf.slice(Zf,Jf),Gh="";return new Uint8Array(Ah).forEach(function(sm){Gh+=String.fromCharCode(sm)}),Th&&(Gh=decodeURIComponent(escape(Gh))),Gh},qd=function(Rf){for(var Zf={},Jf=Vd(Rf),Th={records:[]};Rf.byteLength;){var Ah=Ud(Rf,32,0),Gh=Ud(Rf,32,4),sm=Ah-Gh-16,kh=0,Rh;for(Rf=Rf.slice(12);kh<Gh;){var jh=Ud(Rf,8,kh),cm=Vd(Rf,kh+1,kh+1+jh),Tm=Ud(Rf,16,kh+jh+2),Fm=Vd(Rf,kh+jh+4,kh+jh+4+Tm);Zf[cm]=Fm,kh+=jh+4+Tm}if(Zf[":event-type"]==="Records")Rh=Vd(Rf,kh,kh+sm,!0),Th.records.push(Rh);else if(Zf[":event-type"]==="Stats")Rh=Vd(Rf,kh,kh+sm,!0),Th.stats=oh.xml2json(Rh).Stats;else if(Zf[":event-type"]==="error"){var Gm=Zf[":error-code"],s1=Zf[":error-message"],Km=new Error(s1);Km.message=s1,Km.name=Km.code=Gm,Th.error=Km}Rf=Rf.slice(kh+sm+4)}return{payload:Th.records.join(""),body:Jf}},Wd=function(Rf){var Zf=this.options.CopySourceParser;if(Zf)return Zf(Rf);var Jf=Rf.match(/^([^.]+- \d +) \. cos(v6|-cdc|-cdz|-internal)? \. ([^.]+) \. ((myqcloud \. com)|(tencentcos \. cn)) \/ (.+) $ /);return Jf?{Bucket:Jf[1],Region:Jf[3],Key:Jf[7]}:null},zd=function(){},Kd=function(Rf){var Zf={};for(var Jf in Rf)Rf.hasOwnProperty(Jf)&&Rf[Jf]!==void 0&&Rf[Jf]!==null&&(Zf[Jf]=Rf[Jf]);return Zf},Qd=function(Rf,Zf){var Jf,Th=new FileReader;FileReader.prototype.readAsBinaryString?(Jf=FileReader.prototype.readAsBinaryString,Th.onload=function(){Zf(this.result)}):FileReader.prototype.readAsArrayBuffer?Jf=function(Gh){var sm="",kh=new FileReader;kh.onload=function(Rh){for(var jh=new Uint8Array(kh.result),cm=jh.byteLength,Tm=0;Tm<cm;Tm++)sm+=String.fromCharCode(jh[Tm]);Zf(sm)},kh.readAsArrayBuffer(Gh)}:console.error("FileReader not support readAsBinaryString"),Jf.call(Th,Rf)},hf=function(){var Vf=function(Jf,Th){Jf=Jf.split("."),Th=Th.split(".");for(var Ah=0;Ah<Th.length;Ah++)if(Jf[Ah]!==Th[Ah])return parseInt(Jf[Ah])>parseInt(Th[Ah])?1:-1;return 0},Rf=function(Jf){if(!Jf)return!1;var Th=(Jf.match(/Chrome \/ ([. \d ]+)/)||[])[1],Ah=(Jf.match(/QBCore \/ ([. \d ]+)/)||[])[1],Gh=(Jf.match(/QQBrowser \/ ([. \d ]+)/)||[])[1],sm=Th&&Vf(Th,"53.0.2785.116")<0&&Ah&&Vf(Ah,"3.53.991.400")<0&&Gh&&Vf(Gh,"9.0.2524.400")<=0||!1;return sm};return Rf(typeof navigator<"u"&&navigator.userAgent)}(),gf=function(Rf,Zf,Jf,Th,Ah){var Gh;if(Rf.slice?Gh=Rf.slice(Zf,Jf):Rf.mozSlice?Gh=Rf.mozSlice(Zf,Jf):Rf.webkitSlice&&(Gh=Rf.webkitSlice(Zf,Jf)),Th&&hf){var sm=new FileReader;sm.onload=function(kh){Gh=null,Ah(new Blob([sm.result]))},sm.readAsArrayBuffer(Gh)}else Ah(Gh)},bf=function(Rf,Zf,Jf,Th){Jf=Jf||zd,Rf?typeof Zf=="string"?Jf(oh.md5(Zf,!0)):Blob&&Zf instanceof Blob?oh.getFileMd5(Zf,function(Ah,Gh){Jf(Gh)},Th):Jf():Jf()},kf=1024*1024,Cf=function(Rf,Zf,Jf){var Th=Rf.size,Ah=0,Gh=ud.getCtx(),sm=function kh(Rh){if(Rh>=Th){var jh=Gh.digest("hex");Zf(null,jh);return}var cm=Math.min(Th,Rh+kf);oh.fileSlice(Rf,Rh,cm,!1,function(Tm){Qd(Tm,function(Fm){Tm=null,Gh=Gh.update(Fm,!0),Ah+=Fm.length,Fm=null,Jf&&Jf({loaded:Ah,total:Th,percent:Math.round(Ah/Th*1e4)/1e4}),kh(Rh+kf)})})};sm(0)};function Ef(Vf){return Ff(Vf,function(Rf){return od(Rf)==="object"&&Rf!==null?Ef(Rf):Rf})}function yf(Vf,Rf,Zf){return Vf&&Rf in Vf?Vf[Rf]:Zf}function Mf(Vf,Rf){return Pf(Rf,function(Zf,Jf){Vf[Jf]=Rf[Jf]}),Vf}function Af(Vf){return Vf instanceof Array}function Zd(Vf,Rf){for(var Zf=!1,Jf=0;Jf<Vf.length;Jf++)if(Rf===Vf[Jf]){Zf=!0;break}return Zf}function mf(Vf){return Af(Vf)?Vf:[Vf]}function Pf(Vf,Rf){for(var Zf in Vf)Vf.hasOwnProperty(Zf)&&Rf(Vf[Zf],Zf)}function Ff(Vf,Rf){var Zf=Af(Vf)?[]:{};for(var Jf in Vf)Vf.hasOwnProperty(Jf)&&(Zf[Jf]=Rf(Vf[Jf],Jf));return Zf}function Lf(Vf,Rf){var Zf=Af(Vf),Jf=Zf?[]:{};for(var Th in Vf)Vf.hasOwnProperty(Th)&&Rf(Vf[Th],Th)&&(Zf?Jf.push(Vf[Th]):Jf[Th]=Vf[Th]);return Jf}var jf=function(Rf){var Zf,Jf,Th,Ah="";for(Zf=0,Jf=Rf.length/2
` ).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 gd = utils$1 . findKey ( td , ud ) ; ( ! gd || td [ gd ] === void 0 || cd === ! 0 || cd === void 0 && td [ gd ] !== ! 1 ) && ( td [ gd || 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 gd=rd,_d=0;for(;gd!==td;)_d+=Ja[gd++],gd=gd%Ra;if(td=(td+1)%Ra,td===rd&&(rd=(rd+1)%Ra),cd-od<qa)return;const yd=ud&&cd-ud;return yd?Math.round(_d*1e3/yd):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(),gd=ud-Ja;gd>=ed?od(cd,ud):(td=cd,rd||(rd=setTimeout(()=>{rd=null,od(td)},ed-gd)))},()=>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 gd={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(gd)},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 + \- .]*
` +rd.map(renderReason).join( `
` ):" "+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.5",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,gd=0,_d;if(!ld){const Ed=[dispatchRequest.bind(this),void 0];for(Ed.unshift.apply(Ed,sd),Ed.push.apply(Ed,cd),_d=Ed.length,ud=Promise.resolve(Ja);gd<_d;)ud=ud.then(Ed[gd++],Ed[gd++]);return ud}_d=sd.length;let yd=Ja;for(gd=0;gd<_d;){const Ed=sd[gd++],Td=sd[gd++];try{yd=Ed(yd)}catch(Od){Td.call(this,Od);break}}try{ud=dispatchRequest.call(this,yd)}catch(Ed){return Promise.reject(Ed)}for(gd=0,_d=cd.length;gd<_d;)ud=ud.then(cd[gd++],cd[gd++]);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)}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,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,Precondi
2024-08-27 22:31:52 +08:00
async ( CUSTOM _ARG ) => {
$ { localStorage . getItem ( "formCustomConfig" ) }
}
2024-08-30 15:19:18 +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(Ra,qa.name);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"),gd=resolveComponent("el-input"),_d=resolveComponent("el-form-item"),yd=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(yd,{class:"postInfo","label-width":"50",model:td.value},{default:withCtx(()=>[createVNode(_d,{label:"封面"},{default:withCtx(()=>[createVNode(gd,{modelValue:td.value.thumb,"onUpdate:modelValue":ld[0]||(ld[0]=Td=>td.value.thumb=Td),placeholder:"自动提取第一张图"},null,8,["modelValue"])]),_:1}),createVNode(_d,{label:"标题"},{default:withCtx(()=>[createVNode(gd,{modelValue:td.value.title,"onUpdate:modelValue":ld[1]||(ld[1]=Td=>td.value.title=Td),placeholder:"自动提取第一个标题"},null,8,["modelValue"])]),_:1}),createVNode(_d,{label:"描述"},{default:withCtx(()=>[createVNode(gd,{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 Ld;return(Ld=toValue $ 1(Ja.open))!=null?Ld:!0}),rd=computed(()=>toValue $ 1(Ja.middleware)),od=computed(()=>{var Ld;return(Ld=toV
2024-08-27 22:31:52 +08:00
` )].join( `
2024-08-30 15:19:18 +08:00
` ))}return()=>rd.value||td.value||sd.value?h $ 2(qa.default({present:sd})[0],{ref:ud=>{const gd= $ e(ud);return typeof(gd==null?void 0:gd.hasAttribute)>"u"||(gd!=null&&gd.hasAttribute("data-radix-popper-content-wrapper")?od.value=gd.firstElementChild:od.value=gd),gd}}):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 gd=function(){Kt(Yi,Ra,_d)};const _d={originalEvent:cd};cd.pointerType==="touch"?(ed.removeEventListener("click",rd.value),rd.value=gd,ed.addEventListener("click",rd.value,{once:!0})):gd()}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),Od=Ed.indexOf(Td);return ld.value>=Od}),gd=Nl(async Ed=>{const Td=[...je.branches].some(Od=>Od.contains(Ed.target));!ud.value||Td||(ed("pointerDownOutside",Ed),ed("interactOutside",Ed),await nextTick $ 1(),Ed.defaultPrevented||ed("dismiss"))},rd),_d=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 yd;return watchEffect(Ed=>{rd.value&&(Ja.disableOutsidePointerEvents&&(je.layersWithOutsidePointerEventsDisabled.size===0&&(yd=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=yd)}))}),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-30 15:19:18 +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 , g d ) = > { c o n s t _ 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 " ) , y 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 " ) , O 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 : g d [ 0 ] | | ( g 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 : g d [ 1 ] | | ( g 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 : g d [ 2 ] | | ( g 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 ( y 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 ( _ d ) ] ) , _ : 1 } ) , c r e a t e T e x t V N o d e ( " 导 入
$ { ld }
` ,"end"),od(),Ja()}return(ld,cd)=>{const ud=resolveComponent("el-input-number"),gd=resolveComponent("el-col"),_d=resolveComponent("el-row"),yd=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]=Od=>unref(Ja)(!1))},{footer:withCtx(()=>[createBaseVNode("div",_hoisted_2 $ 2,[createVNode(Ed,{plain:"",onClick:cd[2]||(cd[2]=Od=>unref(Ja)(!1))},{default:withCtx(()=>[createTextVNode(" 取 消 ")]),_:1}),createVNode(Ed,{type:"primary",plain:"",onClick:sd},{default:withCtx(()=>[createTextVNode(" 确 定 ")]),_:1})])]),default:withCtx(()=>[createVNode(_d,{class:"tb-options",type:"flex",align:"middle",gutter:10},{default:withCtx(()=>[createVNode(gd,{span:12},{default:withCtx(()=>[createTextVNode(" 行数: "),createVNode(ud,{modelValue:ed.value,"onUpdate:modelValue":cd[0]||(cd[0]=Od=>ed.value=Od),"controls-position":"right",min:1,max:100,size:"small"},null,8,["modelValue"])]),_:1}),createVNode(gd,{span:12},{default:withCtx(()=>[createTextVNode(" 列数: "),createVNode(ud,{modelValue:td.value,"onUpdate:modelValue":cd[1]||(cd[1]=Od=>td.value=Od),"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,Od=>(openBlock(),createElementBlock("tr",{key:Od,class:normalizeClass({"head-style":Od===1})},[(openBlock(!0),createElementBlock(Fragment,null,renderList(td.value,Ad=>(openBlock(),createElementBlock("td",{key:Ad},[createVNode(yd,{modelValue:rd.value[ ` k _$ { Od - 1 } _$ { Ad - 1 } ` ],"onUpdate:modelValue":Nd=>rd.value[ ` k _$ { Od - 1 } _$ { Ad - 1 } ` ]=Nd,align:"center",placeholder:Od===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-a6100d60"),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:""}),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-30 15:19:18 +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:"自定义代码"}],gd=ref $ 1("default"),_d=ref $ 1(null),yd=ref $ 1("upload");watch(yd,async Ld=>{Ld==="formCustom"&&nextTick $ 1(()=>{const jd=_d.value. $ el.querySelector("textarea");cd.value.editor=cd.value.editor||CodeMirror.fromTextArea(jd,{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")&&(gd.value=localStorage.getItem("imgHost"))});function Ed(){localStorage.setItem("imgHost",gd.value),ElMessage.success("已成功切换图床")}function Td(){if(!(td.value.repo&&td.value.accessToken)){const Ld=td.value.repo?"token":"GitHub 仓库";ElMessage.error( ` 参数 「 $ { Ld } 」 不能为空 ` );return}localStorage.setItem("githubConfig",JSON.stringify(td.value)),ElMessage.success("保存成功")}function Od(){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&&sd.value.region)){ElMessage.error("七牛云 Kodo 参数配置不全");return}localStorage.setItem("qiniuConfig",JSON.stringify(sd.value)),ElMessage.success("保存成功")}function Id(){const Ld=cd.value.editor.getValue();localStorage.setItem("formCustomConfig",Ld),ElMessage.success("保存成功")}function Rd(Ld){const jd=checkImage(Ld);if(!jd.ok)return ElMessage.error(jd.msg),!1;let Pd=localStorage.getItem("imgHost");Pd=Pd||"default",localStorage.setItem("imgHost",Pd);const Fd=localStorage.getItem( ` $ { Pd } Config ` );return Pd==="default"||Fd?!0:(ElMessage.error( ` 请先配置 $ { Pd } 图床参数 ` ),!1)}function Md(Ld){Ja("uploadImage",Ld.file)}return(Ld,jd)=>{const Pd=resolveComponent("el-option"),Fd=resolveComponent("el-select"),Ud=resolveComponent("el-icon"),Vd=resolveComponent("el-upload"),qd=resolveComponent("el-tab-pane"),Wd=resolveComponent("el-input"),zd=resolveComponent("el-form-item"),Kd=resolveComponent("el-link"),Qd=resolveComponent("el-button"),hf=resolveComponent("el-form"),gf=resolveComponent("el-switch"),bf=resolveComponent("el-tabs"),kf=resolveComponent("el-dialog");return openBlock(),createBlock(kf,{title:"本地上传",class:"upload__dialog","model-value":unref(ed).isShowUploadImgDialog,onClose:jd[30]||(jd[30]=Cf=>unref(ed).toggleShowUploadImgDialog(!1))},{default:withCtx(()=>[createVNode(bf,{modelValue:yd.value,"onUpdate:modelValue":jd[29]||(jd[29]=Cf=>yd.value=Cf)},{default:withCtx(()=>[createVNode(qd,{class:"upload-panel",label:"选择上传",name:"upload"},{default:withCtx(()=>[createVNode(Fd,{modelValue:gd.value,"onUpdate:modelValue":jd[0]||(jd[0]=Cf=>gd.value=Cf),placeholder:"请选择",size:"small",onChange:Ed},{default:withCtx(()=>[(openBlock(),createElementBlock(Fragment,null,renderList(ud,Cf=>createVNode(Pd,{key:Cf.value,label:Cf.label,
$ { hf }
` ,Qd),ElMessage.success("图片上传成功")}function Pd(Kd,Qd){Ed.value=!0,toBase64(Kd).then(hf=>fileApi.fileUpload(hf,Kd)).then(hf=>{console.log(hf),Qd?Qd(hf):jd(hf)}).catch(hf=>{ElMessage.error(hf.message)}).finally(()=>{Ed.value=!1})}const Fd=ref $ 1(0);function Ud(){const Kd=document.querySelector("#editor");Kd.value||(Kd.value=td.value),ed.value=CodeMirror.fromTextArea(Kd,{mode:"text/x-markdown",theme:"xq-light",lineNumbers:!1,lineWrapping:!0,styleActiveLine:!0,autoCloseBrackets:!0,extraKeys:{[ ` $ { shiftKey } - $ { altKey } - F ` ]:function(hf){formatDoc(hf.getValue(0)).then(gf=>{hf.setValue(gf)})},[ ` $ { ctrlKey } - B ` ]:function(hf){const gf=hf.getSelection();hf.replaceSelection( ` * * $ { gf } * * ` )},[ ` $ { ctrlKey } - I ` ]:function(hf){const gf=hf.getSelection();hf.replaceSelection( ` * $ { gf } * ` )},[ ` $ { ctrlKey } - D ` ]:function(hf){const gf=hf.getSelection();hf.replaceSelection( ` ~ ~ $ { gf } ~ ~ ` )},[ ` $ { ctrlKey } - K ` ]:function(hf){const gf=hf.getSelection();hf.replaceSelection( ` [ $ { gf } ] ( ) ` )},[ ` $ { ctrlKey } - E ` ]:function(hf){const gf=hf.getSelection();hf.replaceSelection( ` \ ` ${ gf } \` ` ) } , [ ` ${ ctrlKey } -L ` ] : function ( hf ) { const gf = hf . getSelection ( ) ; hf . replaceSelection ( ` \` ${ gf } \` ` ) } } } ) , ed . value . on ( "change" , Qd => { clearTimeout ( Fd . value ) , Fd . value = setTimeout ( ( ) => { Nd ( ) , td . value = Qd . getValue ( ) } , 300 ) } ) , ed . value . on ( "paste" , ( Qd , hf ) => { if ( ! ( ! ( hf . clipboardData && hf . clipboardData . items ) || Ed . value ) ) for ( let gf = 0 , bf = hf . clipboardData . items . length ; gf < bf ; ++ gf ) { const kf = hf . clipboardData . items [ gf ] ; if ( kf . kind === "file" ) { const Cf = kf . getAsFile ( ) ; if ( ! Ld ( Cf ) ) continue ; Pd ( Cf ) } } } ) } const Vd = ref$1 ( null ) ; function qd ( Kd ) { ed . value . options . extraKeys [ Kd ] ( ed . value ) } const Wd = ref$1 ( null ) ; function zd ( ) { const Kd = Wd . value . $el , Qd = async ( { md : bf , list : kf } ) => { const Cf = [ ... bf . str . matchAll ( /!\[(.*?)\]\((.*?)\)/g ) || [ ] ] . filter ( Mf => Mf ) , Ef = bf . path . match ( /.+?\// ) [ 0 ] , yf = await Promise . all ( Cf . map ( Mf => new Promise ( Af => { let [ , , Zd ] = Mf ; Zd = Zd . replace ( /^.\// , "" ) ; const { file : mf } = kf . find ( Pf => Pf . path === ` ${ Ef } ${ Zd } ` ) || { } ; Pd ( mf , Pf => { Af ( { matchStr : Zd , url : Pf } ) } ) } ) ) ) ; yf . forEach ( Mf => { bf . str = bf . str . replace ( ` ](./ ${ Mf . matchStr } ) ` , ` ]( ${ Mf . url } ) ` ) . replace ( ` ]( ${ Mf . matchStr } ) ` , ` ]( ${ Mf . url } ) ` ) } ) , ed . value . setValue ( bf . str ) , console . log ( "resList" , yf , bf . str ) } ; Kd . ondragover = bf => bf . preventDefault ( ) , Kd . ondrop = async bf => { bf . preventDefault ( ) ; for ( const kf of bf . dataTransfer . items ) kf . getAsFileSystemHandle ( ) . then ( async Cf => { if ( Cf . kind === "directory" ) { const Ef = await gf ( Cf ) , yf = await hf ( { list : Ef } ) ; Qd ( { md : yf , list : Ef } ) } else { const Ef = await Cf . getFile ( ) ; console . log ( "file" , Ef ) } } ) } ; async function hf ( { list : bf } ) { return new Promise ( kf => { const { path : Cf , file : Ef } = bf . find ( Mf => Mf . path . match ( /\.md$/ ) ) , yf = new FileReader ; yf . readAsText ( Ef , "UTF-8" ) , yf . onload = Mf => { kf ( { str : Mf . target . result , file : Ef , path : Cf } ) } } ) } async function gf ( bf ) { const kf = [ ] ; let Cf = "" ; try { const Ef = [ bf ] ; for ( const yf of Ef ) { Cf += ` ${ yf . name } / ` ; for await ( const [ , Mf ] of yf ) Mf . kind === "file" ? kf . push ( { path : Cf + Mf . name , file : await Mf . getFile ( ) } ) : ( kf . push ( { path : ` ${ Cf + Mf . name } / ` } ) , Ef . push ( Mf ) ) } } catch ( Ef ) { console . error ( Ef ) } return kf } } return onMounted ( ( ) => { Ud ( ) , Nd ( ) , zd ( ) } ) , ( Kd , Qd ) => { const hf = resolveComponent ( "el-header" ) , gf = resolveComponent ( "el-col" ) , bf = resolveComponent ( "el-row" ) , kf = resolveComponent ( "el-main" ) , Cf = resolveComponent ( "el-container" ) ; return openBlock ( ) , createElementBlock ( "div" , { ref _key : "container" , ref : Vd , class : "container" } , [ createVNode ( Cf , null , { default : withCtx ( ( ) => [ createVNode ( hf , { class : "editor__header" } , { default : withCtx ( ( ) => [ createVNode ( EditorHeader , { onAddFormat : qd , onFormatContent : unref ( cd ) , onStartCopy : Rd , onEndCopy : Md } , null , 8 , [ "onFormatContent" ] ) ] ) , _ : 1 } ) , createVNode ( kf , { class : "container-main" } , { default : withCtx ( ( ) => [ createVNode ( bf , { class : "container-main-section" } , { default : withCtx ( ( ) => [ createVNode ( gf , { ref _key : "codeMirrorWrapper" , ref : Wd , 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 : Qd [ 0 ] || ( Qd [ 0 ] = Ef => unref ( yd ) ( ) ) } , { defa
` ;Ad.replaceSelection(Ld+Ld,null),_d(Ad,-1),Id=Ad.listSelections();for(var jd=0;jd<Id.length;jd++){var Pd=Id[jd].head.line;Ad.indentLine(Pd,null,!0),Ad.indentLine(Pd+1,null,!0)}})}function _d(Ad,Nd){for(var kd=[],Id=Ad.listSelections(),Rd=0,Md=0;Md<Id.length;Md++){var Ld=Id[Md];Ld.head==Ad.getCursor()&&(Rd=Md);var jd=Ld.head.ch||Nd>0?{line:Ld.head.line,ch:Ld.head.ch+Nd}:{line:Ld.head.line-1};kd.push({anchor:jd,head:jd})}Ad.setSelections(kd,Rd)}function yd(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 Id=rd(kd,"pairs"),Rd=Id.indexOf(Nd);if(Rd==-1)return Ja.Pass;for(var Md=rd(kd,"closeBefore"),Ld=rd(kd,"triples"),jd=Id.charAt(Rd+1)==Nd,Pd=Ad.listSelections(),Fd=Rd%2==0,Ud,Vd=0;Vd<Pd.length;Vd++){var qd=Pd[Vd],Wd=qd.head,zd,Kd=Ad.getRange(Wd,td(Wd.line,Wd.ch+1));if(Fd&&!qd.empty())zd="surround";else if((jd||!Fd)&&Kd==Nd)jd&&Od(Ad,Wd)?zd="both":Ld.indexOf(Nd)>=0&&Ad.getRange(Wd,td(Wd.line,Wd.ch+3))==Nd+Nd+Nd?zd="skipThree":zd="skip";else if(jd&&Wd.ch>1&&Ld.indexOf(Nd)>=0&&Ad.getRange(td(Wd.line,Wd.ch-2),Wd)==Nd+Nd){if(Wd.ch>2&&/ \b string/.test(Ad.getTokenTypeAt(td(Wd.line,Wd.ch-2))))return Ja.Pass;zd="addFour"}else if(jd){var Qd=Wd.ch==0?" ":Ad.getRange(td(Wd.line,Wd.ch-1),Wd);if(!Ja.isWordChar(Kd)&&Qd!=Nd&&!Ja.isWordChar(Qd))zd="both";else return Ja.Pass}else if(Fd&&(Kd.length===0||/ \s /.test(Kd)||Md.indexOf(Kd)>-1))zd="both";else return Ja.Pass;if(!Ud)Ud=zd;else if(Ud!=zd)return Ja.Pass}var hf=Rd%2?Id.charAt(Rd-1):Nd,gf=Rd%2?Nd:Id.charAt(Rd+1);Ad.operation(function(){if(Ud=="skip")_d(Ad,1);else if(Ud=="skipThree")_d(Ad,3);else if(Ud=="surround"){for(var bf=Ad.getSelections(),kf=0;kf<bf.length;kf++)bf[kf]=hf+bf[kf]+gf;Ad.replaceSelections(bf,"around"),bf=Ad.listSelections().slice();for(var kf=0;kf<bf.length;kf++)bf[kf]=yd(bf[kf]);Ad.setSelections(bf)}else Ud=="both"?(Ad.replaceSelection(hf+gf,null),Ad.triggerElectric(hf+gf),_d(Ad,-1)):Ud=="addFour"&&(Ad.replaceSelection(hf+hf+hf+hf,"before"),_d(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 Od(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(_d){return _d&&_d.bracketRegex||/[(){}[ \] ]/}function sd(_d,yd,Ed){var Td=_d.getLineHandle(yd.line),Od=yd.ch-1,Ad=Ed&&Ed.afterCursor;Ad==null&&(Ad=/(^| )cm-fat-cursor( $ | )/.test(_d.getWrapperElement().className));var Nd=od(Ed),kd=!Ad&&Od>=0&&Nd.test(Td.text.charAt(Od))&&rd[Td.text.charAt(Od)]||Nd.test(Td.text.charAt(Od+1))&&rd[Td.text.charAt(++Od)];if(!kd)return null;var Id=kd.charAt(1)==">"?1:-1;if(Ed&&Ed.strict&&Id>0!=(Od==yd.ch))return null;var Rd=_d.getTokenTypeAt(td(yd.line,Od+1)),Md=ld(_d,td(yd.line,Od+(Id>0?1:0)),Id,Rd,Ed);return Md==null?null:{from:td(yd.line,Od),to:Md&&Md.pos,match:Md&&Md.ch==kd.charAt(0),forward:Id>0}}function ld(_d,yd,Ed,Td,Od){for(var Ad=Od&&Od.maxScanLineLength||1e4,Nd=Od&&Od.maxScanLines||1e3,kd=[],Id=od(Od),Rd=Ed>0?Math.min(yd.line+Nd,_d.lastLine()+1):Math.max(_d.firstLine()-1,yd.line-Nd),Md=yd.line;Md!=Rd;Md+=Ed){var Ld=_d.getLine(Md);if(Ld){var jd=Ed>0?0:Ld.length-1,Pd=Ed>0?Ld.length:-1;if(!(Ld.length>Ad))for(Md==yd.line&&(jd=yd.ch-(Ed<0?1:0));jd!=Pd;jd+=Ed){var Fd=Ld.charAt(jd);if(Id.test(Fd)&&(Td===void 0||(_d.getTokenTypeAt(td(Md,jd+1))||"")==(Td||""))){var Ud=rd[Fd];if(Ud&&Ud.charAt(1)==">"==Ed>0)kd.push(Fd);else if(kd.length)kd.pop();else return{pos:td(Md,jd),ch:Fd}}}}}return Md-Ed==(Ed>0?_d.lastLine():_d.firstLine())?!1:null}function cd(_d,yd,Ed){for(var Td=_d.state.matchBrackets.maxHighlightLineLength||1e3,Od=Ed&&Ed.highlightNonMatching,Ad=[],Nd=_d.listSelections(