2024-08-25 11:35:35 +08:00
var Ib = Object . defineProperty ; var Mb = ( e , t , y ) => t in e ? Ib ( e , t , { enumerable : ! 0 , configurable : ! 0 , writable : ! 0 , value : y } ) : e [ t ] = y ; var Bb = ( e , t ) => ( ) => ( t || e ( ( t = { exports : { } } ) . exports , t ) , t . exports ) ; var np = ( e , t , y ) => Mb ( e , typeof t != "symbol" ? t + "" : t , y ) ; import mermaid from "https://cdn.jsdelivr.net/npm/mermaid@10/dist/mermaid.esm.min.mjs" ; var Pb = Bb ( ( exports , module ) => { ( function ( ) { const t = document . createElement ( "link" ) . relList ; if ( t && t . supports && t . supports ( "modulepreload" ) ) return ; for ( const k of document . querySelectorAll ( 'link[rel="modulepreload"]' ) ) n ( k ) ; new MutationObserver ( k => { for ( const L of k ) if ( L . type === "childList" ) for ( const $ of L . addedNodes ) $ . tagName === "LINK" && $ . rel === "modulepreload" && n ( $ ) } ) . observe ( document , { childList : ! 0 , subtree : ! 0 } ) ; function y ( k ) { const L = { } ; return k . integrity && ( L . integrity = k . integrity ) , k . referrerPolicy && ( L . referrerPolicy = k . referrerPolicy ) , k . crossOrigin === "use-credentials" ? L . credentials = "include" : k . crossOrigin === "anonymous" ? L . credentials = "omit" : L . credentials = "same-origin" , L } function n ( k ) { if ( k . ep ) return ; k . ep = ! 0 ; const L = y ( k ) ; fetch ( k . href , L ) } } ) ( ) ; const global$1 = globalThis || void 0 || self ; / * *
2024-08-21 13:12:53 +08:00
* @ vue / shared v3 . 4.38
* ( c ) 2018 - present Yuxi ( Evan ) You and Vue contributors
* @ license MIT
* * //*! #__NO_SIDE_EFFECTS__ */function makeMap(e,t){const y=new Set(e.split(","));return n=>y.has(n)}const EMPTY_OBJ={},EMPTY_ARR=[],NOOP=()=>{},NO=()=>!1,isOn=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),isModelListener=e=>e.startsWith("onUpdate:"),extend$1=Object.assign,remove=(e,t)=>{const y=e.indexOf(t);y>-1&&e.splice(y,1)},hasOwnProperty$g=Object.prototype.hasOwnProperty,hasOwn$1=(e,t)=>hasOwnProperty$g.call(e,t),isArray$2=Array.isArray,isMap$1=e=>toTypeString(e)==="[object Map]",isSet$1=e=>toTypeString(e)==="[object Set]",isDate$1=e=>toTypeString(e)==="[object Date]",isFunction$4=e=>typeof e=="function",isString$3=e=>typeof e=="string",isSymbol$1=e=>typeof e=="symbol",isObject$4=e=>e!==null&&typeof e=="object",isPromise=e=>(isObject$4(e)||isFunction$4(e))&&isFunction$4(e.then)&&isFunction$4(e.catch),objectToString$1=Object.prototype.toString,toTypeString=e=>objectToString$1.call(e),toRawType=e=>toTypeString(e).slice(8,-1),isPlainObject$3=e=>toTypeString(e)==="[object Object]",isIntegerKey=e=>isString$3(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,isReservedProp=makeMap(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),cacheStringFunction=e=>{const t=Object.create(null);return y=>t[y]||(t[y]=e(y))},camelizeRE=/-(\w)/g,camelize=cacheStringFunction(e=>e.replace(camelizeRE,(t,y)=>y?y.toUpperCase():"")),hyphenateRE=/\B([A-Z])/g,hyphenate$1=cacheStringFunction(e=>e.replace(hyphenateRE,"-$1").toLowerCase()),capitalize$1=cacheStringFunction(e=>e.charAt(0).toUpperCase()+e.slice(1)),toHandlerKey=cacheStringFunction(e=>e?`on${capitalize$1(e)}`:""),hasChanged=(e,t)=>!Object.is(e,t),invokeArrayFns=(e,...t)=>{for(let y=0;y<e.length;y++)e[y](...t)},def=(e,t,y,n=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:n,value:y})},looseToNumber=e=>{const t=parseFloat(e);return isNaN(t)?e:t},toNumber$3=e=>{const t=isString$3(e)?Number(e):NaN;return isNaN(t)?e:t};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(e){if(isArray$2(e)){const t={};for(let y=0;y<e.length;y++){const n=e[y],k=isString$3(n)?parseStringStyle(n):normalizeStyle(n);if(k)for(const L in k)t[L]=k[L]}return t}else if(isString$3(e)||isObject$4(e))return e}const listDelimiterRE=/;(?![^(]*\))/g,propertyDelimiterRE=/:([^]+)/,styleCommentRE=/\/\*[^]*?\*\//g;function parseStringStyle(e){const t={};return e.replace(styleCommentRE,"").split(listDelimiterRE).forEach(y=>{if(y){const n=y.split(propertyDelimiterRE);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function normalizeClass(e){let t="";if(isString$3(e))t=e;else if(isArray$2(e))for(let y=0;y<e.length;y++){const n=normalizeClass(e[y]);n&&(t+=n+" ")}else if(isObject$4(e))for(const y in e)e[y]&&(t+=y+" ");return t.trim()}function normalizeProps(e){if(!e)return null;let{class:t,style:y}=e;return t&&!isString$3(t)&&(e.class=normalizeClass(t)),y&&(e.style=normalizeStyle(y)),e}const specialBooleanAttrs="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",isSpecialBooleanAttr=makeMap(specialBooleanAttrs);function includeBooleanAttr(e){return!!e||e===""}function looseCompareArrays(e,t){if(e.length!==t.length)return!1;let y=!0;for(let n=0;y&&n<e.length;n++)y=looseEqual(e[n],t[n]);return y}function looseEqual(e,t){if(e===t)return!0;let y=isDate$1(e),n=isDate$1(t);if(y||n)return y&&n?e.getTime()===t.getTime():!1;if(y=isSymbol$1(e),n=isSymbol$1(t),y||n)return e===t;if(y=isArray$2(e),n=isArray$2(t),y||n)return y&&n?looseCompareArrays(e,t):!1;if(y=isObject$4(e),n=isObject$4(t),y||n){if(!y||!n)return!1;const k=Object.keys(e).length,L=Object.keys(t).length;if(k!==L)return!1;for(const $ in e){const j=e.hasOwnProperty($),V=t.hasOwnProperty($);if(j&&!V||!j&&V||!looseEqual(e[$],t[$]))return!1}}return String(e)===String(t)}function looseIndexOf(e,t){return e.findIndex(y=>looseEqual(y,t))}const isRef$1=e=>!!(e&&e.__v_is
* @ vue / reactivity v3 . 4.38
* ( c ) 2018 - present Yuxi ( Evan ) You and Vue contributors
* @ license MIT
* * / 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 ( t = ! 1 ) { t h i s . d e t a c h e d = t , 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 , ! t & & 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 ( t ) { i f ( t h i s . _ a c t i v e ) { c o n s t y = 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 , t ( ) } f i n a l l y { a c t i v e E f f e c t S c o p e = y } } } 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 ( t ) { i f ( t h i s . _ a c t i v e ) { l e t y , n ; f o r ( y = 0 , n = t h i s . e f f e c t s . l e n g t h ; y < n ; y + + ) t h i s . e f f e c t s [ y ] . s t o p ( ) ; f o r ( y = 0 , n = t h i s . c l e a n u p s . l e n g t h ; y < n ; y + + ) t h i s . c l e a n u p s [ y ] ( ) ; i f ( t h i s . s c o p e s ) f o r ( y = 0 , n = t h i s . s c o p e s . l e n g t h ; y < n ; y + + ) t h i s . s c o p e s [ y ] . 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 & & ! t ) { c o n s t k = t h i s . p a r e n t . s c o p e s . p o p ( ) ; k & & k ! = = 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 ] = k , k . 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 ( e ) { r e t u r n n e w E f f e c t S c o p e ( e ) } 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 ( e , t = a c t i v e E f f e c t S c o p e ) { t & & t . a c t i v e & & t . e f f e c t s . p u s h ( e ) } 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 ( e ) { 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 ( e ) } 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 ( t , y , n , k ) { t h i s . f n = t , t h i s . t r i g g e r = y , t h i s . s c h e d u l e r = n , 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 , k ) } 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 t = 0 ; t < t h i s . _ d e p s L e n g t h ; t + + ) { c o n s t y = t h i s . d e p s [ t ] ; i f ( y . c o m p u t e d & & ( t r i g g e r C o m p u t e d ( y . 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 ( t ) { t h i s . _ d i r t y L e v e l = t ? 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 t = s h o u l d T r a c k , y = 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 = y , s h o u l d T r a c k = t } } 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 ( e ) { r e t u r n e . 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 ( e ) { e . _ t r a c k I d + + , e . _ 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 ( e ) { i f ( e . d e p s . l e n g t h > e . _ d e p s L e n g t h ) { f o r ( l e t t = e . _ d e p s L e n g t h ; t < e . d e p s . l e n g t h ; t + + ) c l e a n u p D e p E f f e c t ( e . d e p s [ t ] , e ) ; e . d e p s . l e n g t h = e . _ 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 ( e , t ) { c o n s t y = e . g e t ( t ) ; y ! = = v o i d 0 & & t . _ t r a c k I d ! = = y & & ( e . d e l e t e ( t ) , e . s i z e = = = 0 & & e . 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 e = t r a c k S t a c k . p o p ( ) ; s h o u l d T r a c k = e = = = v o i d 0 ? ! 0 : e } 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 ( e , t , y ) { i f ( t . g e t ( e ) ! = = e . _ t r a c k I d ) { t . s e t ( e , e . _ t r a c k I d ) ; c o n s t n = e . d e p s [ e . _ d e p s L e n g t h ] ; n ! = = t ? ( n & & c l e a n u p D e p E f f e c t ( n , e ) , e . d e p s [ e . _ d e p s L e n g t h + + ] = t ) : e . _ 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 ( e , t , y ) { p a u s e S c h e d u l i n g ( ) ; f o r ( c o n s t n o f e . k e y s ( ) ) { l e t k ; n . _ d i r t y L e v e l < t & & ( k ? ? ( k = e . g e t ( n ) = = = n . _ t r a c k I d ) ) & & ( n . _ s h o u l d S c h e d u l e | | ( n . _ s h o u l d S c h e d u l e = n . _ d i r t y L e v e l = = = 0 ) , n . _ d i r t y L e v e l = t ) , n . _ s h o u l d S c h e d u l e & & ( k ? ? ( k = e . g e t ( n ) = = = n . _ t r a c k I d ) ) & & ( n . t r i g g e r ( ) , ( ! n . _ r u n n i n g s | | n . a l l o w R e c u r s e ) & & n . _ d i r t y L e v e l ! = = 2 & & ( n . _ s h o u l d S c h e d u l e = ! 1 , n . 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 ( n . 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 = ( e , t ) = > { c o n s t y = n e w M a p ; r e t u r n y . c l e a n u p = e , y . c o m p u t e d = t , y } , 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 ( e , t , y ) { 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 n = t a r g e t M a p . g e t ( e ) ; n | | t a r g e t M a p . s e t ( e , n = n e w M a p ) ; l e t k = n . g e t ( y ) ; k | | n . s e t ( y , k = c r e a t e D e p ( ( ) = > n . d e l e t e ( y ) ) ) , t r a c k E f f e c t ( a c t i v e E f f e c t , k ) } } f u n c t i o n t r i g g e r ( e , t , y , n , k , L ) { c o n s t $ = t a r g e t M a p . g e t ( e ) ; i f ( ! $ ) r e t u r n ; l e t j = [ ] ; i f ( t = = = " c l e a r " ) j = [ . . . $ . v a l u e s ( ) ] ; e l s e i f ( y = = = " l e n g t h " & & i s A r r a y $ 2 ( e ) ) { c o n s t V = N u m b e r ( n ) ; $ . f o r E a c h ( ( z , r e ) = > { ( r e = = = " l e n g t h " | | ! i s S y m b o l $ 1 ( r e ) & & r e > = V ) & & j . p u s h ( z ) } ) } e l s e s w i t c
* @ vue / runtime - core v3 . 4.38
* ( c ) 2018 - present Yuxi ( Evan ) You and Vue contributors
* @ license MIT
* * / 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 ( e , . . . t ) { 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 y = 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 , n = y & & y . 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 , k = g e t C o m p o n e n t T r a c e ( ) ; i f ( n ) c a l l W i t h E r r o r H a n d l i n g ( n , y , 1 1 , [ e + t . m a p ( L = > { v a r $ , j ; r e t u r n ( j = ( $ = L . t o S t r i n g ) = = n u l l ? v o i d 0 : $ . c a l l ( L ) ) ! = n u l l ? j : J S O N . s t r i n g i f y ( L ) } ) . j o i n ( " " ) , y & & y . p r o x y , k . m a p ( ( { v n o d e : L } ) = > ` a t < $ { f o r m a t C o m p o n e n t N a m e ( y , L . t y p e ) } > ` ) . j o i n ( `
` ),k]);else{const L=[ ` [ Vue warn ] : $ { e } ` ,...t];k.length&&L.push( `
` ,...formatTrace(k)),console.warn(...L)}resetTracking(),isWarning=!1}function getComponentTrace(){let e=stack[stack.length-1];if(!e)return[];const t=[];for(;e;){const y=t[0];y&&y.vnode===e?y.recurseCount++:t.push({vnode:e,recurseCount:0});const n=e.component&&e.component.parent;e=n&&n.vnode}return t}function formatTrace(e){const t=[];return e.forEach((y,n)=>{t.push(...n===0?[]:[ `
2024-08-25 11:35:35 +08:00
` ],...formatTraceEntry(y))}),t}function formatTraceEntry({vnode:e,recurseCount:t}){const y=t>0? ` ... ( $ { t } recursive calls ) ` :"",n=e.component?e.component.parent==null:!1,k= ` at < $ { formatComponentName ( e . component , e . type , n ) } ` ,L=">"+y;return e.props?[k,...formatProps(e.props),L]:[k+L]}function formatProps(e){const t=[],y=Object.keys(e);return y.slice(0,3).forEach(n=>{t.push(...formatProp(n,e[n]))}),y.length>3&&t.push(" ..."),t}function formatProp(e,t,y){return isString $ 3(t)?(t=JSON.stringify(t),y?t:[ ` $ { e } = $ { t } ` ]):typeof t=="number"||typeof t=="boolean"||t==null?y?t:[ ` $ { e } = $ { t } ` ]:isRef(t)?(t=formatProp(e,toRaw(t.value),!0),y?t:[ ` $ { e } = Ref < ` ,t,">"]):isFunction $ 4(t)?[ ` $ { e } = fn$ { t . name ? ` < ${ t . name } > ` : "" } ` ]:(t=toRaw(t),y?t:[ ` $ { e } = ` ,t])}function callWithErrorHandling(e,t,y,n){try{return n?e(...n):e()}catch(k){handleError(k,t,y)}}function callWithAsyncErrorHandling(e,t,y,n){if(isFunction $ 4(e)){const k=callWithErrorHandling(e,t,y,n);return k&&isPromise(k)&&k.catch(L=>{handleError(L,t,y)}),k}if(isArray $ 2(e)){const k=[];for(let L=0;L<e.length;L++)k.push(callWithAsyncErrorHandling(e[L],t,y,n));return k}}function handleError(e,t,y,n=!0){const k=t?t.vnode:null;if(t){let L=t.parent;const $ =t.proxy,j= ` https : //vuejs.org/error-reference/#runtime-${y}`;for(;L;){const z=L.ec;if(z){for(let re=0;re<z.length;re++)if(z[re](e,$,j)===!1)return}L=L.parent}const V=t.appContext.config.errorHandler;if(V){pauseTracking(),callWithErrorHandling(V,null,10,[e,$,j]),resetTracking();return}}logError(e,y,k,n)}function logError(e,t,y,n=!0){console.error(e)}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(e){const t=currentFlushPromise||resolvedPromise;return e?t.then(this?e.bind(this):e):t}function findInsertionIndex(e){let t=flushIndex+1,y=queue$2.length;for(;t<y;){const n=t+y>>>1,k=queue$2[n],L=getId(k);L<e||L===e&&k.pre?t=n+1:y=n}return t}function queueJob(e){(!queue$2.length||!queue$2.includes(e,isFlushing&&e.allowRecurse?flushIndex+1:flushIndex))&&(e.id==null?queue$2.push(e):queue$2.splice(findInsertionIndex(e.id),0,e),queueFlush())}function queueFlush(){!isFlushing&&!isFlushPending&&(isFlushPending=!0,currentFlushPromise=resolvedPromise.then(flushJobs))}function invalidateJob(e){const t=queue$2.indexOf(e);t>flushIndex&&queue$2.splice(t,1)}function queuePostFlushCb(e){isArray$2(e)?pendingPostFlushCbs.push(...e):(!activePostFlushCbs||!activePostFlushCbs.includes(e,e.allowRecurse?postFlushIndex+1:postFlushIndex))&&pendingPostFlushCbs.push(e),queueFlush()}function flushPreFlushCbs(e,t,y=isFlushing?flushIndex+1:0){for(;y<queue$2.length;y++){const n=queue$2[y];if(n&&n.pre){if(e&&n.id!==e.uid)continue;queue$2.splice(y,1),y--,n()}}}function flushPostFlushCbs(e){if(pendingPostFlushCbs.length){const t=[...new Set(pendingPostFlushCbs)].sort((y,n)=>getId(y)-getId(n));if(pendingPostFlushCbs.length=0,activePostFlushCbs){activePostFlushCbs.push(...t);return}for(activePostFlushCbs=t,postFlushIndex=0;postFlushIndex<activePostFlushCbs.length;postFlushIndex++){const y=activePostFlushCbs[postFlushIndex];y.active!==!1&&y()}activePostFlushCbs=null,postFlushIndex=0}}const getId=e=>e.id==null?1/0:e.id,comparator=(e,t)=>{const y=getId(e)-getId(t);if(y===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return y};function flushJobs(e){isFlushPending=!1,isFlushing=!0,queue$2.sort(comparator);try{for(flushIndex=0;flushIndex<queue$2.length;flushIndex++){const t=queue$2[flushIndex];t&&t.active!==!1&&callWithErrorHandling(t,t.i,t.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 setCurrentRenderingInstance(e){const t=currentRenderingInstance;return currentRenderingInstance=e,currentScopeId=e&&e.type.__scopeId||null,t}function pushScopeId(e){currentScopeId=e}function popScopeId(){currentScopeId=null}function withCtx(e,t=currentR
2024-08-21 13:12:53 +08:00
* @ vue / runtime - dom v3 . 4.38
* ( c ) 2018 - present Yuxi ( Evan ) You and Vue contributors
* @ license MIT
2024-08-25 11:35:35 +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:(e,t,y)=>{t.insertBefore(e,y||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,y,n)=>{const k=t==="svg"?doc.createElementNS(svgNS,e):t==="mathml"?doc.createElementNS(mathmlNS,e):y?doc.createElement(e,{is:y}):doc.createElement(e);return e==="select"&&n&&n.multiple!=null&&k.setAttribute("multiple",n.multiple),k},createText:e=>doc.createTextNode(e),createComment:e=>doc.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>doc.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,y,n,k,L){const $=y?y.previousSibling:t.lastChild;if(k&&(k===L||k.nextSibling))for(;t.insertBefore(k.cloneNode(!0),y),!(k===L||!(k=k.nextSibling)););else{templateContainer.innerHTML=n==="svg"?`<svg>${e}</svg>`:n==="mathml"?`<math>${e}</math>`:e;const j=templateContainer.content;if(n==="svg"||n==="mathml"){const V=j.firstChild;for(;V.firstChild;)j.appendChild(V.firstChild);j.removeChild(V)}t.insertBefore(j,y)}return[$?$.nextSibling:t.firstChild,y?y.previousSibling:t.lastChild]}},TRANSITION="transition",ANIMATION="animation",vtcKey=Symbol("_vtc"),Transition=(e,{slots:t})=>h$1(BaseTransition,resolveTransitionProps(e),t);Transition.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.props=extend$1({},BaseTransitionPropsValidators,DOMTransitionPropsValidators),callHook=(e,t=[])=>{isArray$2(e)?e.forEach(y=>y(...t)):e&&e(...t)},hasExplicitCallback=e=>e?isArray$2(e)?e.some(t=>t.length>1):e.length>1:!1;function resolveTransitionProps(e){const t={};for(const tr in e)tr in DOMTransitionPropsValidators||(t[tr]=e[tr]);if(e.css===!1)return t;const{name:y="v",type:n,duration:k,enterFromClass:L=`${y}-enter-from`,enterActiveClass:$=`${y}-enter-active`,enterToClass:j=`${y}-enter-to`,appearFromClass:V=L,appearActiveClass:z=$,appearToClass:re=j,leaveFromClass:ie=`${y}-leave-from`,leaveActiveClass:oe=`${y}-leave-active`,leaveToClass:ue=`${y}-leave-to`}=e,de=normalizeDuration(k),pe=de&&de[0],Ie=de&&de[1],{onBeforeEnter:_e,onEnter:Ce,onEnterCancelled:he,onLeave:Ne,onLeaveCancelled:Fe,onBeforeAppear:Ve=_e,onAppear:jt=Ce,onAppearCancelled:Et=he}=t,Ue=(tr,rr,ar)=>{removeTransitionClass(tr,rr?re:j),removeTransitionClass(tr,rr?z:$),ar&&ar()},qe=(tr,rr)=>{tr._isLeaving=!1,removeTransitionClass(tr,ie),removeTransitionClass(tr,ue),removeTransitionClass(tr,oe),rr&&rr()},kt=tr=>(rr,ar)=>{const nr=tr?jt:Ce,ur=()=>Ue(rr,tr,ar);callHook(nr,[rr,ur]),nextFrame(()=>{removeTransitionClass(rr,tr?V:L),addTransitionClass(rr,tr?re:j),hasExplicitCallback(nr)||whenTransitionEnds(rr,n,pe,ur)})};return extend$1(t,{onBeforeEnter(tr){callHook(_e,[tr]),addTransitionClass(tr,L),addTransitionClass(tr,$)},onBeforeAppear(tr){callHook(Ve,[tr]),addTransitionClass(tr,V),addTransitionClass(tr,z)},onEnter:kt(!1),onAppear:kt(!0),onLeave(tr,rr){tr._isLeaving=!0;const ar=()=>qe(tr,rr);addTransitionClass(tr,ie),addTransitionClass(tr,oe),forceReflow(),nextFrame(()=>{tr._isLeaving&&(removeTransitionClass(tr,ie),addTransitionClass(tr,ue),hasExplicitCallback(Ne)||whenTransitionEnds(tr,n,Ie,ar))}),callHook(Ne,[tr,ar])},onEnterCancelled(tr){Ue(tr,!1),callHook(he,[tr])},onAppearCancelled(tr){Ue(tr,!0),callHook(Et,[tr])},onLeaveCancelled(tr){qe(tr),callHook(Fe,[tr])}})}function normalizeDuration(e){if(e==null)return null;if(isObject$4(e))return[NumberOf(e.enter),NumberOf(e.leave)];{const t=NumberOf(e);return[t,t]}}function NumberOf(e){return toNumber$3(e)}function addTransitionClass(e,t){t.split(/\s+/).forEach(y=>y&&e.classList.add(y)),(e[v
2024-08-21 13:12:53 +08:00
` ).map(k=>{const L=k.match(/^ \s +/);if(L===null)return k;const[ $ ]=L;return $ .length>=n.length?k.slice(n.length):k}).join( `
` )}let Tokenizer $ 1=class{constructor(t){this.options=t||defaults $ 2}space(t){const y=this.rules.block.newline.exec(t);if(y&&y[0].length>0)return{type:"space",raw:y[0]}}code(t){const y=this.rules.block.code.exec(t);if(y){const n=y[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:y[0],codeBlockStyle:"indented",text:this.options.pedantic?n:rtrim(n, `
2024-08-22 08:49:17 +08:00
` )}}}fences(t){const y=this.rules.block.fences.exec(t);if(y){const n=y[0],k=indentCodeCompensation(n,y[3]||"");return{type:"code",raw:n,lang:y[2]?y[2].trim().replace(this.rules.inline._escapes," $ 1"):y[2],text:k}}}heading(t){const y=this.rules.block.heading.exec(t);if(y){let n=y[2].trim();if(/# $ /.test(n)){const k=rtrim(n,"#");(this.options.pedantic||!k||/ $ /.test(k))&&(n=k.trim())}return{type:"heading",raw:y[0],depth:y[1].length,text:n,tokens:this.lexer.inline(n)}}}hr(t){const y=this.rules.block.hr.exec(t);if(y)return{type:"hr",raw:y[0]}}blockquote(t){const y=this.rules.block.blockquote.exec(t);if(y){const n=y[0].replace(/^ *>[ \t ]?/gm,""),k=this.lexer.state.top;this.lexer.state.top=!0;const L=this.lexer.blockTokens(n);return this.lexer.state.top=k,{type:"blockquote",raw:y[0],tokens:L,text:n}}}list(t){let y=this.rules.block.list.exec(t);if(y){let n,k,L, $ ,j,V,z,re,ie,oe,ue,de,pe=y[1].trim();const Ie=pe.length>1,_e={type:"list",raw:"",ordered:Ie,start:Ie?+pe.slice(0,-1):"",loose:!1,items:[]};pe=Ie? ` \ \ d { 1 , 9 } \ \ $ { pe . slice ( - 1 ) } ` : ` \ \ $ { pe } ` ,this.options.pedantic&&(pe=Ie?pe:"[*+-]");const Ce=new RegExp( ` ^ ( { 0 , 3 } $ { pe } ) ( ( ? : [ ] [ ^ \ \ n ] * ) ? ( ? : \ \ n | $ ) ) ` );for(;t&&(de=!1,!(!(y=Ce.exec(t))||this.rules.block.hr.test(t)));){if(n=y[0],t=t.substring(n.length),re=y[2].split( `
2024-08-21 13:12:53 +08:00
` ,1)[0].replace(/^ \t +/,Ne=>" ".repeat(3*Ne.length)),ie=t.split( `
` ,1)[0],this.options.pedantic?( $ =2,ue=re.trimLeft()):( $ =y[2].search(/[^ ]/), $ = $ >4?1: $ ,ue=re.slice( $ ), $ +=y[1].length),V=!1,!re&&/^ * $ /.test(ie)&&(n+=ie+ `
2024-08-25 11:35:35 +08:00
` ,t=t.substring(ie.length+1),de=!0),!de){const Ne=new RegExp( ` ^ { 0 , $ { Math . min ( 3 , $ - 1 ) } } ( ? : [ * + - ] | \ \ d { 1 , 9 } [ . ) ] ) ( ( ? : [ ] [ ^ \ \ n ] * ) ? ( ? : \ \ n | $ ) ) ` ),Fe=new RegExp( ` ^ { 0 , $ { Math . min ( 3 , $ - 1 ) } } ( ( ? : - * ) { 3 , } | ( ? : _ * ) { 3 , } | ( ? : \ \ * * ) { 3 , } ) ( ? : \ \ n + | $ ) ` ),Ve=new RegExp( ` ^ { 0 , $ { Math . min ( 3 , $ - 1 ) } } ( ? : \ ` \` \` |~~~) ` ) , jt = new RegExp ( ` ^ {0, ${ Math . min ( 3 , $ - 1 ) } }# ` ) ; for ( ; t && ( oe = t . split ( `
` ,1)[0],ie=oe,this.options.pedantic&&(ie=ie.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),!(Ve.test(ie)||jt.test(ie)||Ne.test(ie)||Fe.test(t)));){if(ie.search(/[^ ]/)>= $ ||!ie.trim())ue+= `
` +ie.slice( $ );else{if(V||re.search(/[^ ]/)>=4||Ve.test(re)||jt.test(re)||Fe.test(re))break;ue+= `
2024-08-21 13:12:53 +08:00
` +ie}!V&&!ie.trim()&&(V=!0),n+=oe+ `
2024-08-25 11:35:35 +08:00
` ,t=t.substring(oe.length+1),re=ie.slice( $ )}}_e.loose||(z?_e.loose=!0:/ \n * \n * $ /.test(n)&&(z=!0)),this.options.gfm&&(k=/^ \[ [ xX] \] /.exec(ue),k&&(L=k[0]!=="[ ] ",ue=ue.replace(/^ \[ [ xX] \] +/,""))),_e.items.push({type:"list_item",raw:n,task:!!k,checked:L,loose:!1,text:ue}),_e.raw+=n}_e.items[_e.items.length-1].raw=n.trimRight(),_e.items[_e.items.length-1].text=ue.trimRight(),_e.raw=_e.raw.trimRight();const he=_e.items.length;for(j=0;j<he;j++)if(this.lexer.state.top=!1,_e.items[j].tokens=this.lexer.blockTokens(_e.items[j].text,[]),!_e.loose){const Ne=_e.items[j].tokens.filter(Ve=>Ve.type==="space"),Fe=Ne.length>0&&Ne.some(Ve=>/ \n .* \n /.test(Ve.raw));_e.loose=Fe}if(_e.loose)for(j=0;j<he;j++)_e.items[j].loose=!0;return _e}}html(t){const y=this.rules.block.html.exec(t);if(y){const n={type:"html",raw:y[0],pre:!this.options.sanitizer&&(y[1]==="pre"||y[1]==="script"||y[1]==="style"),text:y[0]};if(this.options.sanitize){const k=this.options.sanitizer?this.options.sanitizer(y[0]):escape $ 4(y[0]);n.type="paragraph",n.text=k,n.tokens=this.lexer.inline(k)}return n}}def(t){const y=this.rules.block.def.exec(t);if(y){const n=y[1].toLowerCase().replace(/ \s +/g," "),k=y[2]?y[2].replace(/^<(.*)> $ /," $ 1").replace(this.rules.inline._escapes," $ 1"):"",L=y[3]?y[3].substring(1,y[3].length-1).replace(this.rules.inline._escapes," $ 1"):y[3];return{type:"def",tag:n,raw:y[0],href:k,title:L}}}table(t){const y=this.rules.block.table.exec(t);if(y){const n={type:"table",header:splitCells(y[1]).map(k=>({text:k})),align:y[2].replace(/^ *| \| * $ /g,"").split(/ * \| */),rows:y[3]&&y[3].trim()?y[3].replace(/ \n [ \t ]* $ /,"").split( `
2024-08-21 13:12:53 +08:00
` ):[]};if(n.header.length===n.align.length){n.raw=y[0];let k=n.align.length,L, $ ,j,V;for(L=0;L<k;L++)/^ *-+: * $ /.test(n.align[L])?n.align[L]="right":/^ *:-+: * $ /.test(n.align[L])?n.align[L]="center":/^ *:-+ * $ /.test(n.align[L])?n.align[L]="left":n.align[L]=null;for(k=n.rows.length,L=0;L<k;L++)n.rows[L]=splitCells(n.rows[L],n.header.length).map(z=>({text:z}));for(k=n.header.length, $ =0; $ <k; $ ++)n.header[ $ ].tokens=this.lexer.inline(n.header[ $ ].text);for(k=n.rows.length, $ =0; $ <k; $ ++)for(V=n.rows[ $ ],j=0;j<V.length;j++)V[j].tokens=this.lexer.inline(V[j].text);return n}}}lheading(t){const y=this.rules.block.lheading.exec(t);if(y)return{type:"heading",raw:y[0],depth:y[2].charAt(0)==="="?1:2,text:y[1],tokens:this.lexer.inline(y[1])}}paragraph(t){const y=this.rules.block.paragraph.exec(t);if(y){const n=y[1].charAt(y[1].length-1)=== `
` ?y[1].slice(0,-1):y[1];return{type:"paragraph",raw:y[0],text:n,tokens:this.lexer.inline(n)}}}text(t){const y=this.rules.block.text.exec(t);if(y)return{type:"text",raw:y[0],text:y[0],tokens:this.lexer.inline(y[0])}}escape(t){const y=this.rules.inline.escape.exec(t);if(y)return{type:"escape",raw:y[0],text:escape $ 4(y[1])}}tag(t){const y=this.rules.inline.tag.exec(t);if(y)return!this.lexer.state.inLink&&/^<a /i.test(y[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&/^< \/ a>/i.test(y[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)( \s |>)/i.test(y[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^< \/ (pre|code|kbd|script)( \s |>)/i.test(y[0])&&(this.lexer.state.inRawBlock=!1),{type:this.options.sanitize?"text":"html",raw:y[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(y[0]):escape $ 4(y[0]):y[0]}}link(t){const y=this.rules.inline.link.exec(t);if(y){const n=y[2].trim();if(!this.options.pedantic&&/^</.test(n)){if(!/> $ /.test(n))return;const $ =rtrim(n.slice(0,-1)," \\ ");if((n.length- $ .length)%2===0)return}else{const $ =findClosingBracket(y[2],"()");if( $ >-1){const V=(y[0].indexOf("!")===0?5:4)+y[1].length+ $ ;y[2]=y[2].substring(0, $ ),y[0]=y[0].substring(0,V).trim(),y[3]=""}}let k=y[2],L="";if(this.options.pedantic){const $ =/^([^'"]*[^ \s ]) \s +(['"])(.*) \2 /.exec(k); $ &&(k= $ [1],L= $ [3])}else L=y[3]?y[3].slice(1,-1):"";return k=k.trim(),/^</.test(k)&&(this.options.pedantic&&!/> $ /.test(n)?k=k.slice(1):k=k.slice(1,-1)),outputLink(y,{href:k&&k.replace(this.rules.inline._escapes," $ 1"),title:L&&L.replace(this.rules.inline._escapes," $ 1")},y[0],this.lexer)}}reflink(t,y){let n;if((n=this.rules.inline.reflink.exec(t))||(n=this.rules.inline.nolink.exec(t))){let k=(n[2]||n[1]).replace(/ \s +/g," ");if(k=y[k.toLowerCase()],!k){const L=n[0].charAt(0);return{type:"text",raw:L,text:L}}return outputLink(n,k,n[0],this.lexer)}}emStrong(t,y,n=""){let k=this.rules.inline.emStrong.lDelim.exec(t);if(!k||k[3]&&n.match(/[ \p {L} \p {N}]/u))return;const L=k[1]||k[2]||"";if(!L||L&&(n===""||this.rules.inline.punctuation.exec(n))){const $ =k[0].length-1;let j,V,z= $ ,re=0;const ie=k[0][0]==="*"?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;for(ie.lastIndex=0,y=y.slice(-1*t.length+ $ );(k=ie.exec(y))!=null;){if(j=k[1]||k[2]||k[3]||k[4]||k[5]||k[6],!j)continue;if(V=j.length,k[3]||k[4]){z+=V;continue}else if((k[5]||k[6])&& $ %3&&!(( $ +V)%3)){re+=V;continue}if(z-=V,z>0)continue;V=Math.min(V,V+z+re);const oe=t.slice(0, $ +k.index+(k[0].length-j.length)+V);if(Math.min( $ ,V)%2){const de=oe.slice(1,-1);return{type:"em",raw:oe,text:de,tokens:this.lexer.inlineTokens(de)}}const ue=oe.slice(2,-2);return{type:"strong",raw:oe,text:ue,tokens:this.lexer.inlineTokens(ue)}}}}codespan(t){const y=this.rules.inline.code.exec(t);if(y){let n=y[2].replace(/ \n /g," ");const k=/[^ ]/.test(n),L=/^ /.test(n)&&/ $ /.test(n);return k&&L&&(n=n.substring(1,n.length-1)),n=escape $ 4(n,!0),{type:"codespan",raw:y[0],text:n}}}br(t){const y=this.rules.inline.br.exec(t);if(y)return{type:"br",raw:y[0]}}del(t){const y=this.rules.inline.del.exec(t);if(y)return{type:"del",raw:y[0],text:y[2],tokens:this.lexer.inlineTokens(y[2])}}autolink(t,y){const n=this.rules.inline.autolink.exec(t);if(n){let k,L;return n[2]==="@"?(k=escape $ 4(this.options.mangle?y(n[1]):n[1]),L="mailto:"+k):(k=escape $ 4(n[1]),L=k),{type:"link",raw:n[0],text:k,href:L,tokens:[{type:"text",raw:k,text:k}]}}}url(t,y){let n;if(n=this.rules.inline.url.exec(t)){let k,L;if(n[2]==="@")k=escape $ 4(this.options.mangle?y(n[0]):n[0]),L="mailto:"+k;else{let $ ;do $ =n[0],n[0]=this.rules.inline._backpedal.exec(n[0])[0];while( $ !==n[0]);k=escape $ 4(n[0]),n[1]==="www."?L="http://"+n[0]:L=n[0]}return{type:"link",raw:n[0],text:k,href:L,tokens:[{type:"text",raw:k,text:k}]}}}inlineText(t,y){const n=this.rules.inline.text.exec(t);if(n){let k;return this.lexer.state.inRawBlock?k=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(n[0]):escape $ 4(n[0]):n[0]:k=escape $ 4(this.options.smartypants?y(
2024-08-25 11:35:35 +08:00
] ` ).replace("lheading",block $ 2.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()};const inline $ 1={escape:/^ \\ ([!"# $ %&'()*+, \- ./:;<=>?@ \[ \] \\ ^_ ` { | } ~ ] ) / , autolink : /^<(scheme:[^\s\x00-\x1f<>]*|email)>/ , url : noopTest , tag : "^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>" , link : /^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/ , reflink : /^!?\[(label)\]\[(ref)\]/ , nolink : /^!?\[(ref)\](?:\[\])?/ , reflinkSearch : "reflink|nolink(?!\\()" , emStrong : { lDelim : /^(?:\*+(?:([punct_])|[^\s*]))|^_+(?:([punct*])|([^\s_]))/ , rDelimAst : /^(?:[^_*\\]|\\.)*?\_\_(?:[^_*\\]|\\.)*?\*(?:[^_*\\]|\\.)*?(?=\_\_)|(?:[^*\\]|\\.)+(?=[^*])|[punct_](\*+)(?=[\s]|$)|(?:[^punct*_\s\\]|\\.)(\*+)(?=[punct_\s]|$)|[punct_\s](\*+)(?=[^punct*_\s])|[\s](\*+)(?=[punct_])|[punct_](\*+)(?=[punct_])|(?:[^punct*_\s\\]|\\.)(\*+)(?=[^punct*_\s])/ , rDelimUnd : /^(?:[^_*\\]|\\.)*?\*\*(?:[^_*\\]|\\.)*?\_(?:[^_*\\]|\\.)*?(?=\*\*)|(?:[^_\\]|\\.)+(?=[^_])|[punct*](\_+)(?=[\s]|$)|(?:[^punct*_\s\\]|\\.)(\_+)(?=[punct*\s]|$)|[punct*\s](\_+)(?=[^punct*_\s])|[\s](\_+)(?=[punct*])|[punct*](\_+)(?=[punct*])/ } , code : /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/ , br : /^( {2,}|\\)\n(?!\s*$)/ , del : noopTest , text : /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/ , punctuation : /^([\spunctuation])/ } ; inline$1 . _punctuation = "!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~" ; inline$1 . punctuation = edit ( inline$1 . punctuation ) . replace ( /punctuation/g , inline$1 . _punctuation ) . getRegex ( ) ; inline$1 . blockSkip = /\[[^\]]*?\]\([^\)]*?\)|`[^`]*?`|<[^>]*?>/g ; inline$1 . escapedEmSt = /(?:^|[^\\])(?:\\\\)*\\[*_]/g ; inline$1 . _comment = edit ( block$2 . _comment ) . replace ( "(?:-->|$)" , "-->" ) . getRegex ( ) ; inline$1 . emStrong . lDelim = edit ( inline$1 . emStrong . lDelim ) . replace ( /punct/g , inline$1 . _punctuation ) . getRegex ( ) ; inline$1 . emStrong . rDelimAst = edit ( inline$1 . emStrong . rDelimAst , "g" ) . replace ( /punct/g , inline$1 . _punctuation ) . getRegex ( ) ; inline$1 . emStrong . rDelimUnd = edit ( inline$1 . emStrong . rDelimUnd , "g" ) . replace ( /punct/g , inline$1 . _punctuation ) . getRegex ( ) ; inline$1 . _escapes = /\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g ; inline$1 . _scheme = /[a-zA-Z][a-zA-Z0-9+.-]{1,31}/ ; inline$1 . _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])?)+(?![-_])/ ; inline$1 . autolink = edit ( inline$1 . autolink ) . replace ( "scheme" , inline$1 . _scheme ) . replace ( "email" , inline$1 . _email ) . getRegex ( ) ; inline$1 . _attribute = /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/ ; inline$1 . tag = edit ( inline$1 . tag ) . replace ( "comment" , inline$1 . _comment ) . replace ( "attribute" , inline$1 . _attribute ) . getRegex ( ) ; inline$1 . _label = /(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/ ; inline$1 . _href = /<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/ ; inline$1 . _title = /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/ ; inline$1 . link = edit ( inline$1 . link ) . replace ( "label" , inline$1 . _label ) . replace ( "href" , inline$1 . _href ) . replace ( "title" , inline$1 . _title ) . getRegex ( ) ; inline$1 . reflink = edit ( inline$1 . reflink ) . replace ( "label" , inline$1 . _label ) . replace ( "ref" , block$2 . _label ) . getRegex ( ) ; inline$1 . nolink = edit ( inline$1 . nolink ) . replace ( "ref" , block$2 . _label ) . getRegex ( ) ; inline$1 . reflinkSearch = edit ( inline$1 . reflinkSearch , "g" ) . replace ( "reflink" , inline$1 . reflink ) . replace ( "nolink" , inline$1 . nolink ) . getRegex ( ) ; inline$1 . normal = { ... inline$1 } ; inline$1 . pedantic = { ... inline$1 . normal , strong : { start : /^__|\*\*/ , middle : /^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/ , endAst : /\*\*(?!\*)/g , endUnd : /__(?!_)/g } , em : { start : /^_|\*/ , middle : /^()\*(?=\S)([\s\S]*?\S)\*(?!\*)|^_(?=\S)([\s\S]*?\S)_(?!_)/ , endAst : /\*(?!\*)/g , endUnd : /_(?!_)/g } , link : edit ( /^!?\[(label)\]\((.*?)\)/ ) . replace ( "label" , inline$1 . _label ) . getRegex ( ) , reflink : edit ( /^!?\[(label)\]\s*\[([^\]]*)\]/ ) . replace ( "label" , inline$1 . _label ) . getRegex ( ) } ; inline$1 . gfm = { ... inline$1 . normal , escape : edit ( inline$1 . escape ) . replace ( "])" , "~|])" ) . getRegex ( ) , _extended _email : /[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/ , url : / ^ ( ( ? :
2024-08-21 13:12:53 +08:00
` ),this.blockTokens(t,this.tokens);let y;for(;y=this.inlineQueue.shift();)this.inlineTokens(y.src,y.tokens);return this.tokens}blockTokens(t,y=[]){this.options.pedantic?t=t.replace(/ \t /g," ").replace(/^ + $ /gm,""):t=t.replace(/^( *)( \t +)/gm,(j,V,z)=>V+" ".repeat(z.length));let n,k,L, $ ;for(;t;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some(j=>(n=j.call({lexer:this},t,y))?(t=t.substring(n.raw.length),y.push(n),!0):!1))){if(n=this.tokenizer.space(t)){t=t.substring(n.raw.length),n.raw.length===1&&y.length>0?y[y.length-1].raw+= `
` :y.push(n);continue}if(n=this.tokenizer.code(t)){t=t.substring(n.raw.length),k=y[y.length-1],k&&(k.type==="paragraph"||k.type==="text")?(k.raw+= `
` +n.raw,k.text+= `
` +n.text,this.inlineQueue[this.inlineQueue.length-1].src=k.text):y.push(n);continue}if(n=this.tokenizer.fences(t)){t=t.substring(n.raw.length),y.push(n);continue}if(n=this.tokenizer.heading(t)){t=t.substring(n.raw.length),y.push(n);continue}if(n=this.tokenizer.hr(t)){t=t.substring(n.raw.length),y.push(n);continue}if(n=this.tokenizer.blockquote(t)){t=t.substring(n.raw.length),y.push(n);continue}if(n=this.tokenizer.list(t)){t=t.substring(n.raw.length),y.push(n);continue}if(n=this.tokenizer.html(t)){t=t.substring(n.raw.length),y.push(n);continue}if(n=this.tokenizer.def(t)){t=t.substring(n.raw.length),k=y[y.length-1],k&&(k.type==="paragraph"||k.type==="text")?(k.raw+= `
` +n.raw,k.text+= `
` +n.raw,this.inlineQueue[this.inlineQueue.length-1].src=k.text):this.tokens.links[n.tag]||(this.tokens.links[n.tag]={href:n.href,title:n.title});continue}if(n=this.tokenizer.table(t)){t=t.substring(n.raw.length),y.push(n);continue}if(n=this.tokenizer.lheading(t)){t=t.substring(n.raw.length),y.push(n);continue}if(L=t,this.options.extensions&&this.options.extensions.startBlock){let j=1/0;const V=t.slice(1);let z;this.options.extensions.startBlock.forEach(function(re){z=re.call({lexer:this},V),typeof z=="number"&&z>=0&&(j=Math.min(j,z))}),j<1/0&&j>=0&&(L=t.substring(0,j+1))}if(this.state.top&&(n=this.tokenizer.paragraph(L))){k=y[y.length-1], $ &&k.type==="paragraph"?(k.raw+= `
` +n.raw,k.text+= `
` +n.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=k.text):y.push(n), $ =L.length!==t.length,t=t.substring(n.raw.length);continue}if(n=this.tokenizer.text(t)){t=t.substring(n.raw.length),k=y[y.length-1],k&&k.type==="text"?(k.raw+= `
` +n.raw,k.text+= `
` +n.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=k.text):y.push(n);continue}if(t){const j="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(j);break}else throw new Error(j)}}return this.state.top=!0,y}inline(t,y=[]){return this.inlineQueue.push({src:t,tokens:y}),y}inlineTokens(t,y=[]){let n,k,L, $ =t,j,V,z;if(this.tokens.links){const re=Object.keys(this.tokens.links);if(re.length>0)for(;(j=this.tokenizer.rules.inline.reflinkSearch.exec( $ ))!=null;)re.includes(j[0].slice(j[0].lastIndexOf("[")+1,-1))&&( $ = $ .slice(0,j.index)+"["+repeatString("a",j[0].length-2)+"]"+ $ .slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(j=this.tokenizer.rules.inline.blockSkip.exec( $ ))!=null;) $ = $ .slice(0,j.index)+"["+repeatString("a",j[0].length-2)+"]"+ $ .slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;(j=this.tokenizer.rules.inline.escapedEmSt.exec( $ ))!=null;) $ = $ .slice(0,j.index+j[0].length-2)+"++"+ $ .slice(this.tokenizer.rules.inline.escapedEmSt.lastIndex),this.tokenizer.rules.inline.escapedEmSt.lastIndex--;for(;t;)if(V||(z=""),V=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some(re=>(n=re.call({lexer:this},t,y))?(t=t.substring(n.raw.length),y.push(n),!0):!1))){if(n=this.tokenizer.escape(t)){t=t.substring(n.raw.length),y.push(n);continue}if(n=this.tokenizer.tag(t)){t=t.substring(n.raw.length),k=y[y.length-1],k&&n.type==="text"&&k.type==="text"?(k.raw+=n.raw,k.text+=n.text):y.push(n);continue}if(n=this.tokenizer.link(t)){t=t.substring(n.raw.length),y.push(n);continue}if(n=this.tokenizer.reflink(t,this.tokens.links)){t=t.substring(n.raw.length),k=y[y.length-1],k&&n.type==="text"&&k.type==="text"?(k.raw+=n.raw,k.text+=n.text):y.push(n);continue}if(n=this.tokenizer.emStrong(t, $ ,z)){t=t.substring(n.raw.length),y.push(n);continue}if(n=this.tokenizer.codespan(t)){t=t.substring(n.raw.length),y.push(n);continue}if(n=this.tokenizer.br(t)){t=t.substring(n.raw.length),y.push(n);continue}if(n=this.tokenizer.del(t)){t=t.substring(n.raw.length),y.push(n);continue}if(n=this.tokenizer.autolink(t,mangle)){t=t.substring(n.raw.length),y.push(n);continue}if(!this.state.inLink&&(n=this.tokenizer.url(t,mangle))){t=t.substring(n.raw.length),y.push(n);continue}if(L=t,this.options.extensions&&this.options.extensions.startInline){let re=1/0;const ie=t.slice(1);let oe;this.options.extensions.startInline.forEach(function(ue){oe=ue.call({lexer:this},ie),typeof oe=="number"&&oe>=0&&(re=Math.min(re,oe))}),re<1/0&&re>=0&&(L=t.substring(0,re+1))}if(n=this.tokenizer.inlineText(L,smartypants)){t=t.substring(n.raw.length),n.raw.slice(-1)!=="_"&&(z=n.raw.slice(-1)),V=!0,k=y[y.length-1],k&&k.type==="text"?(k.raw+=n.raw,k.text+=n.text):y.push(n);continue}if(t){const re="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(re);break}else throw new Error(re)}}return y}};class Renderer{constructor(t){this.options=t||defaults $ 2}code(t,y,n){const k=(y||"").match(/ \S */)[0];if(this.options.highlight){const L=this.options.highlight(t,k);L!=null&&L!==t&&(n=!0,t=L)}return t=t.replace(/ \n $ /,"")+ `
` ,k?'<pre><code class="'+this.options.langPrefix+escape $ 4(k)+'">'+(n?t:escape $ 4(t,!0))+ ` < / c o d e > < / p r e >
` :"<pre><code>"+(n?t:escape $ 4(t,!0))+ ` < / c o d e > < / p r e >
` }blockquote(t){return ` < blockquote >
$ { t } < / b l o c k q u o t e >
` }html(t){return t}heading(t,y,n,k){if(this.options.headerIds){const L=this.options.headerPrefix+k.slug(n);return ` < h$ { y } id = "${L}" > $ { t } < / h $ { y } >
` }return ` < h$ { y } > $ { t } < / h $ { y } >
` }hr(){return this.options.xhtml? ` < hr / >
` : ` < hr >
` }list(t,y,n){const k=y?"ol":"ul",L=y&&n!==1?' start="'+n+'"':"";return"<"+k+L+ ` >
` +t+"</"+k+ ` >
` }listitem(t){return ` < li > $ { t } < / l i >
` }checkbox(t){return"<input "+(t?'checked="" ':"")+'disabled="" type="checkbox"'+(this.options.xhtml?" /":"")+"> "}paragraph(t){return ` < p > $ { t } < / p >
` }table(t,y){return y&&(y= ` < tbody > $ { y } < / t b o d y > ` ) , ` < t a b l e >
< thead >
` +t+ ` < / t h e a d >
` +y+ ` < / t a b l e >
` }tablerow(t){return ` < tr >
$ { t } < / t r >
` }tablecell(t,y){const n=y.header?"th":"td";return(y.align? ` < $ { n } align = "${y.align}" > ` : ` < $ { n } > ` )+t+ ` < / $ { n } >
2024-08-25 11:35:35 +08:00
` }strong(t){return ` < strong > $ { t } < / s t r o n g > ` } e m ( t ) { r e t u r n ` < e m > $ { t } < / e m > ` } c o d e s p a n ( t ) { r e t u r n ` < c o d e > $ { t } < / c o d e > ` } b r ( ) { r e t u r n t h i s . o p t i o n s . x h t m l ? " < b r / > " : " < b r > " } d e l ( t ) { r e t u r n ` < d e l > $ { t } < / d e l > ` } l i n k ( t , y , n ) { i f ( t = c l e a n U r l ( t h i s . o p t i o n s . s a n i t i z e , t h i s . o p t i o n s . b a s e U r l , t ) , t = = = n u l l ) r e t u r n n ; l e t k = ' < a h r e f = " ' + t + ' " ' ; r e t u r n y & & ( k + = ' t i t l e = " ' + y + ' " ' ) , k + = " > " + n + " < / a > " , k } i m a g e ( t , y , n ) { i f ( t = c l e a n U r l ( t h i s . o p t i o n s . s a n i t i z e , t h i s . o p t i o n s . b a s e U r l , t ) , t = = = n u l l ) r e t u r n n ; l e t k = ` < i m g s r c = " $ { t } " a l t = " $ { n } " ` ; r e t u r n y & & ( k + = ` t i t l e = " $ { y } " ` ) , k + = t h i s . o p t i o n s . x h t m l ? " / > " : " > " , k } t e x t ( t ) { r e t u r n 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 ) { r e t u r n t } e m ( t ) { r e t u r n t } c o d e s p a n ( t ) { r e t u r n t } d e l ( t ) { r e t u r n t } h t m l ( t ) { r e t u r n t } t e x t ( t ) { r e t u r n t } l i n k ( t , y , n ) { r e t u r n " " + n } i m a g e ( t , y , n ) { r e t u r n " " + n } b r ( ) { r e t u r n " " } } c l a s s S l u g g e r { c o n s t r u c t o r ( ) { t h i s . s e e n = { } } s e r i a l i z e ( t ) { r e t u r n t . t o L o w e r C a s e ( ) . t r i m ( ) . r e p l a c e ( / < [ ! \ / a - z ] . * ? > / i g , " " ) . r e p l a c e ( / [ \ u 2 0 0 0 - \ u 2 0 6 F \ u 2 E 0 0 - \ u 2 E 7 F \ \ ' ! " # $ % & ( ) * + , . / : ; < = > ? @ [ \ ] ^ ` { | } ~ ] / g , " " ) . r e p l a c e ( / \ s / g , " - " ) } g e t N e x t S a f e S l u g ( t , y ) { l e t n = t , k = 0 ; i f ( t h i s . s e e n . h a s O w n P r o p e r t y ( n ) ) { k = t h i s . s e e n [ t ] ; d o k + + , n = t + " - " + k ; w h i l e ( t h i s . s e e n . h a s O w n P r o p e r t y ( n ) ) } r e t u r n y | | ( t h i s . s e e n [ t ] = k , t h i s . s e e n [ n ] = 0 ) , n } s l u g ( t , y = { } ) { c o n s t n = t h i s . s e r i a l i z e ( t ) ; r e t u r n t h i s . g e t N e x t S a f e S l u g ( n , y . d r y r u n ) } } l e t P a r s e r $ 2 = c l a s s K 0 { c o n s t r u c t o r ( t ) { t h i s . o p t i o n s = t | | d e f a u l t s $ 2 , 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 . 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 , t h i s . s l u g g e r = n e w S l u g g e r } s t a t i c p a r s e ( t , y ) { r e t u r n n e w K 0 ( y ) . p a r s e ( t ) } s t a t i c p a r s e I n l i n e ( t , y ) { r e t u r n n e w K 0 ( y ) . p a r s e I n l i n e ( t ) } p a r s e ( t , y = ! 0 ) { l e t n = " " , k , L , $ , j , V , z , r e , i e , o e , u e , d e , p e , I e , _ e , C e , h e , N e , F e , V e ; c o n s t j t = t . l e n g t h ; f o r ( k = 0 ; k < j t ; k + + ) { i f ( u e = t [ k ] , 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 [ u e . t y p e ] & & ( V e = 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 [ u e . t y p e ] . c a l l ( { p a r s e r : t h i s } , u e ) , V e ! = = ! 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 ( u e . t y p e ) ) ) { n + = V e | | " " ; c o n t i n u e } s w i t c h ( u e . t y p e ) { c a s e " s p a c e " : c o n t i n u e ; c a s e " h r " : { n + = t h i s . r e n d e r e r . h r ( ) ; c o n t i n u e } c a s e " h e a d i n g " : { n + = t h i s . r e n d e r e r . h e a d i n g ( t h i s . p a r s e I n l i n e ( u e . t o k e n s ) , u e . d e p t h , u n e s c a p e $ 2 ( t h i s . p a r s e I n l i n e ( u e . t o k e n s , t h i s . t e x t R e n d e r e r ) ) , t h i s . s l u g g e r ) ; c o n t i n u e } c a s e " c o d e " : { n + = t h i s . r e n d e r e r . c o d e ( u e . t e x t , u e . l a n g , u e . e s c a p e d ) ; c o n t i n u e } c a s e " t a b l e " : { f o r ( i e = " " , r e = " " , j = u e . h e a d e r . l e n g t h , L = 0 ; L < j ; L + + ) r e + = t h i s . r e n d e r e r . t a b l e c e l l ( t h i s . p a r s e I n l i n e ( u e . h e a d e r [ L ] . t o k e n s ) , { h e a d e r : ! 0 , a l i g n : u e . a l i g n [ L ] } ) ; f o r ( i e + = t h i s . r e n d e r e r . t a b l e r o w ( r e ) , o e = " " , j = u e . r o w s . l e n g t h , L = 0 ; L < j ; L + + ) { f o r ( z = u e . r o w s [ L ] , r e = " " , V = z . l e n g t h , $ = 0 ; $ < V ; $ + + ) r e + = t h i s . r e n d e r e r . t a b l e c e l l ( t h i s . p a r s e I n l i n e ( z [ $ ] . t o k e n s ) , { h e a d e r : ! 1 , a l i g n : u e . a l i g n [ $ ] } ) ; o e + = t h i s . r e n d e r e r . t a b l e r o w ( r e ) } n + = t h i s . r e n d e r e r . t a b l e ( i e , o e ) ; c o n t i n u e } c a s e " b l o c k q u o t e " : { o e = t h i s . p a r s e ( u e . t o k e n s ) , n + = t h i s . r e n d e r e r . b l o c k q u o t e ( o e ) ; c o n t i n u e } c a s e " l i s t " : { f o r ( d e = u e . o r d e r e d , p e = u e . s t a r t , I e = u e . l o o s e , j = u e . i t e m s . l e n g t h , o e = " " , L = 0 ; L < j ; L + + ) C e = u e . i t e m s [ L ] , h e = C e . c h e c k e d , N e = C e . t a s k , _ e = " " , C e . t a s k & & ( F e = t h i s . r e n d e r e r . c h e c k b o x ( h e ) , I e ? C e . t o k e n s . l e n g t h > 0 & & C e . t o k e n s [ 0 ] . t y p e = = = " p a r a g r a p h " ? ( C e . t o k e n s [ 0 ] . t e x t = F e + " " + C e . t o k e n s [ 0 ] . t e x t , C e . t o k e n s [ 0 ] . t o k e n s & & C e . t o k e n s [ 0 ] . t o k e n s . l e n g t h > 0 & & C e . t o k e n s [ 0 ] . t o k e n s [ 0 ] . t y p e = = = " t e x t " & & ( C e . t o k e n s [ 0 ] . t o k e n s [ 0 ] . t e x t = F e + " " + C e . t o k e n s [ 0 ] . t o k e n s [ 0 ] . t e x t ) ) : C e . t o k e n s . u n s h i f t ( { t y p e : " t e x t " , t e x t : F e } ) : _ e + = F e ) , _ e + = t h i s . p a r s e ( C e . t o k e n s , I e ) , o e + = t h i s . r e n d e r e r . l i s t i t e m ( _ e , N e , h e ) ; n + = t h i s . r e n d e r e r . l i s t ( o e , d e , p e ) ; c o n t i n u e } c a s e " h t m l " : { n + = t h i s . r e n d e r e r . h t m l ( u e . t e x t ) ; c o n t i n u e } c a s e " p a r a g r a p h " : { n + = t h i s . r e n d e r e r . p a r a g r a p h ( t h i s . p a r s e I n l i n e ( u e . t o k e n s ) ) ; c o n t i n u e } c a s e " t e x t " : { f o r ( o e = u e . t o k e n s ? t h i s . p a r s e I n l i n e ( u e . t o k e n s ) : u e . t e x t ; k + 1 < j t & & t [ k + 1 ] . t y p e = = = " t e x t " ; ) u e = t [ + + k ] , o e + = `
` +(ue.tokens?this.parseInline(ue.tokens):ue.text);n+=y?this.renderer.paragraph(oe):oe;continue}default:{const Et='Token with "'+ue.type+'" type was not found.';if(this.options.silent){console.error(Et);return}else throw new Error(Et)}}}return n}parseInline(t,y){y=y||this.renderer;let n="",k,L, $ ;const j=t.length;for(k=0;k<j;k++){if(L=t[k],this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[L.type]&&( $ =this.options.extensions.renderers[L.type].call({parser:this},L), $ !==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(L.type))){n+= $ ||"";continue}switch(L.type){case"escape":{n+=y.text(L.text);break}case"html":{n+=y.html(L.text);break}case"link":{n+=y.link(L.href,L.title,this.parseInline(L.tokens,y));break}case"image":{n+=y.image(L.href,L.title,L.text);break}case"strong":{n+=y.strong(this.parseInline(L.tokens,y));break}case"em":{n+=y.em(this.parseInline(L.tokens,y));break}case"codespan":{n+=y.codespan(L.text);break}case"br":{n+=y.br();break}case"del":{n+=y.del(this.parseInline(L.tokens,y));break}case"text":{n+=y.text(L.text);break}default:{const V='Token with "'+L.type+'" type was not found.';if(this.options.silent){console.error(V);return}else throw new Error(V)}}}return n}};class Hooks{constructor(t){this.options=t||defaults $ 2}preprocess(t){return t}postprocess(t){return t}}np(Hooks,"passThroughHooks",new Set(["preprocess","postprocess"]));function onError(e,t,y){return n=>{if(n.message+= `
Please report this to https : //github.com/markedjs/marked.`,e){const k="<p>An error occurred:</p><pre>"+escape$4(n.message+"",!0)+"</pre>";if(t)return Promise.resolve(k);if(y){y(null,k);return}return k}if(t)return Promise.reject(n);if(y){y(n);return}throw n}}function parseMarkdown(e,t){return(y,n,k)=>{typeof n=="function"&&(k=n,n=null);const L={...n};n={...marked.defaults,...L};const $=onError(n.silent,n.async,k);if(typeof y>"u"||y===null)return $(new Error("marked(): input parameter is undefined or null"));if(typeof y!="string")return $(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(y)+", string expected"));if(checkSanitizeDeprecation(n),n.hooks&&(n.hooks.options=n),k){const j=n.highlight;let V;try{n.hooks&&(y=n.hooks.preprocess(y)),V=e(y,n)}catch(ie){return $(ie)}const z=function(ie){let oe;if(!ie)try{n.walkTokens&&marked.walkTokens(V,n.walkTokens),oe=t(V,n),n.hooks&&(oe=n.hooks.postprocess(oe))}catch(ue){ie=ue}return n.highlight=j,ie?$(ie):k(null,oe)};if(!j||j.length<3||(delete n.highlight,!V.length))return z();let re=0;marked.walkTokens(V,function(ie){ie.type==="code"&&(re++,setTimeout(()=>{j(ie.text,ie.lang,function(oe,ue){if(oe)return z(oe);ue!=null&&ue!==ie.text&&(ie.text=ue,ie.escaped=!0),re--,re===0&&z()})},0))}),re===0&&z();return}if(n.async)return Promise.resolve(n.hooks?n.hooks.preprocess(y):y).then(j=>e(j,n)).then(j=>n.walkTokens?Promise.all(marked.walkTokens(j,n.walkTokens)).then(()=>j):j).then(j=>t(j,n)).then(j=>n.hooks?n.hooks.postprocess(j):j).catch($);try{n.hooks&&(y=n.hooks.preprocess(y));const j=e(y,n);n.walkTokens&&marked.walkTokens(j,n.walkTokens);let V=t(j,n);return n.hooks&&(V=n.hooks.postprocess(V)),V}catch(j){return $(j)}}}function marked(e,t,y){return parseMarkdown(Lexer$1.lex,Parser$2.parse)(e,t,y)}marked.options=marked.setOptions=function(e){return marked.defaults={...marked.defaults,...e},changeDefaults(marked.defaults),marked};marked.getDefaults=getDefaults;marked.defaults=defaults$2;marked.use=function(...e){const t=marked.defaults.extensions||{renderers:{},childTokens:{}};e.forEach(y=>{const n={...y};if(n.async=marked.defaults.async||n.async||!1,y.extensions&&(y.extensions.forEach(k=>{if(!k.name)throw new Error("extension name required");if(k.renderer){const L=t.renderers[k.name];L?t.renderers[k.name]=function(...$){let j=k.renderer.apply(this,$);return j===!1&&(j=L.apply(this,$)),j}:t.renderers[k.name]=k.renderer}if(k.tokenizer){if(!k.level||k.level!=="block"&&k.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");t[k.level]?t[k.level].unshift(k.tokenizer):t[k.level]=[k.tokenizer],k.start&&(k.level==="block"?t.startBlock?t.startBlock.push(k.start):t.startBlock=[k.start]:k.level==="inline"&&(t.startInline?t.startInline.push(k.start):t.startInline=[k.start]))}k.childTokens&&(t.childTokens[k.name]=k.childTokens)}),n.extensions=t),y.renderer){const k=marked.defaults.renderer||new Renderer;for(const L in y.renderer){const $=k[L];k[L]=(...j)=>{let V=y.renderer[L].apply(k,j);return V===!1&&(V=$.apply(k,j)),V}}n.renderer=k}if(y.tokenizer){const k=marked.defaults.tokenizer||new Tokenizer$1;for(const L in y.tokenizer){const $=k[L];k[L]=(...j)=>{let V=y.tokenizer[L].apply(k,j);return V===!1&&(V=$.apply(k,j)),V}}n.tokenizer=k}if(y.hooks){const k=marked.defaults.hooks||new Hooks;for(const L in y.hooks){const $=k[L];Hooks.passThroughHooks.has(L)?k[L]=j=>{if(marked.defaults.async)return Promise.resolve(y.hooks[L].call(k,j)).then(z=>$.call(k,z));const V=y.hooks[L].call(k,j);return $.call(k,V)}:k[L]=(...j)=>{let V=y.hooks[L].apply(k,j);return V===!1&&(V=$.apply(k,j)),V}}n.hooks=k}if(y.walkTokens){const k=marked.defaults.walkTokens;n.walkTokens=function(L){let $=[];return $.push(y.walkTokens.call(this,L)),k&&($=$.concat(k.call(this,L))),$}}marked.setOptions(n)})};marked.walkTokens=function(e,t){let y=[];for(const n of e)switch(y=y.concat(t.call(marked,n)),n.type){case"table":{for(const k of n.header)y=y.concat(marked.walkTokens(k.tokens,t));for(const k of n.rows)for(const L of k)y=y.concat(marked.walkTokens(L.tokens,t));break}case"list":{y=y.con
2024-08-21 13:12:53 +08:00
b ` .split(/ \n /).length!=3?function( $ e){for(var er=0,ir=[],lr= $ e.length;er<=lr;){var dr= $ e.indexOf( `
2024-08-25 11:35:35 +08:00
` ,er);dr==-1&&(dr= $ e.length);var $ r= $ e.slice(er, $ e.charAt(dr-1)==" \r "?dr-1:dr),Zr= $ r.indexOf(" \r ");Zr!=-1?(ir.push( $ r.slice(0,Zr)),er+=Zr+1):(ir.push( $ r),er=dr+1)}return ir}:function( $ e){return $ e.split(/ \r \n ?| \n /)},Zn=window.getSelection?function( $ e){try{return $ e.selectionStart!= $ e.selectionEnd}catch{return!1}}:function( $ e){var er;try{er= $ e.ownerDocument.selection.createRange()}catch{}return!er||er.parentElement()!= $ e?!1:er.compareEndPoints("StartToEnd",er)!=0},hn=function(){var $ e=nr("div");return"oncopy"in $ e?!0:( $ e.setAttribute("oncopy","return;"),typeof $ e.oncopy=="function")}(),Ln=null;function Vi( $ e){if(Ln!=null)return Ln;var er=ar( $ e,nr("span","x")),ir=er.getBoundingClientRect(),lr=cr(er,0,1).getBoundingClientRect();return Ln=Math.abs(ir.left-lr.left)>1}var Wi={},pa={};function Ki( $ e,er){arguments.length>2&&(er.dependencies=Array.prototype.slice.call(arguments,2)),Wi[ $ e]=er}function Xo( $ e,er){pa[ $ e]=er}function Eo( $ e){if(typeof $ e=="string"&&pa.hasOwnProperty( $ e)) $ e=pa[ $ e];else if( $ e&&typeof $ e.name=="string"&&pa.hasOwnProperty( $ e.name)){var er=pa[ $ e.name];typeof er=="string"&&(er={name:er}), $ e=Qr(er, $ e), $ e.name=er.name}else{if(typeof $ e=="string"&&/^[ \w \- ]+ \/ [ \w \- ]+ \+ xml $ /.test( $ e))return Eo("application/xml");if(typeof $ e=="string"&&/^[ \w \- ]+ \/ [ \w \- ]+ \+ json $ /.test( $ e))return Eo("application/json")}return typeof $ e=="string"?{name: $ e}: $ e||{name:"null"}}function Fo( $ e,er){er=Eo(er);var ir=Wi[er.name];if(!ir)return Fo( $ e,"text/plain");var lr=ir( $ e,er);if(_s.hasOwnProperty(er.name)){var dr=_s[er.name];for(var $ r in dr)dr.hasOwnProperty( $ r)&&(lr.hasOwnProperty( $ r)&&(lr["_"+ $ r]=lr[ $ r]),lr[ $ r]=dr[ $ r])}if(lr.name=er.name,er.helperType&&(lr.helperType=er.helperType),er.modeProps)for(var Zr in er.modeProps)lr[Zr]=er.modeProps[Zr];return lr}var _s={};function An( $ e,er){var ir=_s.hasOwnProperty( $ e)?_s[ $ e]:_s[ $ e]={};_r(er,ir)}function Vo( $ e,er){if(er===!0)return er;if( $ e.copyState)return $ e.copyState(er);var ir={};for(var lr in er){var dr=er[lr];dr instanceof Array&&(dr=dr.concat([])),ir[lr]=dr}return ir}function pu( $ e,er){for(var ir; $ e.innerMode&&(ir= $ e.innerMode(er),!(!ir||ir.mode== $ e));)er=ir.state, $ e=ir.mode;return ir||{mode: $ e,state:er}}function Io( $ e,er,ir){return $ e.startState? $ e.startState(er,ir):!0}var yu=function( $ e,er,ir){this.pos=this.start=0,this.string= $ e,this.tabSize=er||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=ir};yu.prototype.eol=function(){return this.pos>=this.string.length},yu.prototype.sol=function(){return this.pos==this.lineStart},yu.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},yu.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},yu.prototype.eat=function( $ e){var er=this.string.charAt(this.pos),ir;if(typeof $ e=="string"?ir=er== $ e:ir=er&&( $ e.test? $ e.test(er): $ e(er)),ir)return++this.pos,er},yu.prototype.eatWhile=function( $ e){for(var er=this.pos;this.eat( $ e););return this.pos>er},yu.prototype.eatSpace=function(){for(var $ e=this.pos;/[ \s \u 00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos> $ e},yu.prototype.skipToEnd=function(){this.pos=this.string.length},yu.prototype.skipTo=function( $ e){var er=this.string.indexOf( $ e,this.pos);if(er>-1)return this.pos=er,!0},yu.prototype.backUp=function( $ e){this.pos-= $ e},yu.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=Fr(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?Fr(this.string,this.lineStart,this.tabSize):0)},yu.prototype.indentation=function(){return Fr(this.string,null,this.tabSize)-(this.lineStart?Fr(this.string,this.lineStart,this.tabSize):0)},yu.prototype.match=function( $ e,er,ir){if(typeof $ e=="string"){var lr=function(Zr){return ir?Zr.toLowerCase():Zr},dr=this.string.substr(this.pos, $ e.length);if(lr(dr)==lr( $ e))return er!==!1&&(this.pos+= $ e.length),!0}else{var $ r=this.string.slice(this.pos).match( $ e);return $ r&& $ r.index>0?null:( $ r&&er!==!1&&(this.pos+= $ r[0].length), $ r)}},yu.prototype.current=funct
` ?(Kl=io.appendChild(nr("span",vs[0]==" \r "?"␍":"","cm-invalidchar")),Kl.setAttribute("cm-text",vs[0]), $ e.col+=1):(Kl= $ e.cm.options.specialCharPlaceholder(vs[0]),Kl.setAttribute("cm-text",vs[0]),V&&z<9?io.appendChild(nr("span",[Kl])):io.appendChild(Kl), $ e.col+=1); $ e.map.push( $ e.pos, $ e.pos+1,Kl), $ e.pos++}}if( $ e.trailingSpace=Hn.charCodeAt(er.length-1)==32,ir||lr||dr||ma|| $ r||Zr){var vu=ir||"";lr&&(vu+=lr),dr&&(vu+=dr);var Es=nr("span",[io],vu, $ r);if(Zr)for(var mc in Zr)Zr.hasOwnProperty(mc)&&mc!="style"&&mc!="class"&&Es.setAttribute(mc,Zr[mc]);return $ e.content.appendChild(Es)} $ e.content.appendChild(io)}}function qm( $ e,er){if( $ e.length>1&&!/ /.test( $ e))return $ e;for(var ir=er,lr="",dr=0;dr< $ e.length;dr++){var $ r= $ e.charAt(dr); $ r==" "&&ir&&(dr== $ e.length-1|| $ e.charCodeAt(dr+1)==32)&&( $ r=" "),lr+= $ r,ir= $ r==" "}return lr}function sp( $ e,er){return function(ir,lr,dr, $ r,Zr,Hn,mi){dr=dr?dr+" cm-force-border":"cm-force-border";for(var ma=ir.pos,io=ma+lr.length;;){for(var gs=void 0,vs=0;vs<er.length&&(gs=er[vs],!(gs.to>ma&&gs.from<=ma));vs++);if(gs.to>=io)return $ e(ir,lr,dr, $ r,Zr,Hn,mi); $ e(ir,lr.slice(0,gs.to-ma),dr, $ r,null,Hn,mi), $ r=null,lr=lr.slice(gs.to-ma),ma=gs.to}}}function Wf( $ e,er,ir,lr){var dr=!lr&&ir.widgetNode;dr&& $ e.map.push( $ e.pos, $ e.pos+er,dr),!lr&& $ e.cm.display.input.needsContentAttribute&&(dr||(dr= $ e.content.appendChild(document.createElement("span"))),dr.setAttribute("cm-marker",ir.id)),dr&&( $ e.cm.display.input.setUneditable(dr), $ e.content.appendChild(dr)), $ e.pos+=er, $ e.trailingSpace=!1}function Wm( $ e,er,ir){var lr= $ e.markedSpans,dr= $ e.text, $ r=0;if(!lr){for(var Zr=1;Zr<ir.length;Zr+=2)er.addToken(er,dr.slice( $ r, $ r=ir[Zr]),Xd(ir[Zr+1],er.cm.options));return}for(var Hn=dr.length,mi=0,ma=1,io="",gs,vs,xs=0,tl,Kl,cl,hu,vu;;){if(xs==mi){tl=Kl=cl=vs="",vu=null,hu=null,xs=1/0;for(var Es=[],mc=void 0,yc=0;yc<lr.length;++yc){var Fu=lr[yc],fc=Fu.marker;if(fc.type=="bookmark"&&Fu.from==mi&&fc.widgetNode)Es.push(fc);else if(Fu.from<=mi&&(Fu.to==null||Fu.to>mi||fc.collapsed&&Fu.to==mi&&Fu.from==mi)){if(Fu.to!=null&&Fu.to!=mi&&xs>Fu.to&&(xs=Fu.to,Kl=""),fc.className&&(tl+=" "+fc.className),fc.css&&(vs=(vs?vs+";":"")+fc.css),fc.startStyle&&Fu.from==mi&&(cl+=" "+fc.startStyle),fc.endStyle&&Fu.to==xs&&(mc||(mc=[])).push(fc.endStyle,Fu.to),fc.title&&((vu||(vu={})).title=fc.title),fc.attributes)for(var qc in fc.attributes)(vu||(vu={}))[qc]=fc.attributes[qc];fc.collapsed&&(!hu||Wc(hu.marker,fc)<0)&&(hu=Fu)}else Fu.from>mi&&xs>Fu.from&&(xs=Fu.from)}if(mc)for(var Gd=0;Gd<mc.length;Gd+=2)mc[Gd+1]==xs&&(Kl+=" "+mc[Gd]);if(!hu||hu.from==mi)for(var co=0;co<Es.length;++co)Wf(er,0,Es[co]);if(hu&&(hu.from||0)==mi){if(Wf(er,(hu.to==null?Hn+1:hu.to)-mi,hu.marker,hu.from==null),hu.to==null)return;hu.to==mi&&(hu=!1)}}if(mi>=Hn)break;for(var il=Math.min(Hn,xs);;){if(io){var tc=mi+io.length;if(!hu){var Uc=tc>il?io.slice(0,il-mi):io;er.addToken(er,Uc,gs?gs+tl:tl,cl,mi+Uc.length==xs?Kl:"",vs,vu)}if(tc>=il){io=io.slice(il-mi),mi=il;break}mi=tc,cl=""}io=dr.slice( $ r, $ r=ir[ma++]),gs=Xd(ir[ma++],er.cm.options)}}}function Dh( $ e,er,ir){this.line=er,this.rest=Pf(er),this.size=this.rest?kn(Wr(this.rest))-ir+1:1,this.node=this.text=null,this.hidden=ip( $ e,er)}function Lm( $ e,er,ir){for(var lr=[],dr, $ r=er; $ r<ir; $ r=dr){var Zr=new Dh( $ e.doc,Hl( $ e.doc, $ r), $ r);dr= $ r+Zr.size,lr.push(Zr)}return lr}var Bp=null;function Yh( $ e){Bp?Bp.ops.push( $ e): $ e.ownsGroup=Bp={ops:[ $ e],delayedCallbacks:[]}}function t0( $ e){var er= $ e.delayedCallbacks,ir=0;do{for(;ir<er.length;ir++)er[ir].call(null);for(var lr=0;lr< $ e.ops.length;lr++){var dr= $ e.ops[lr];if(dr.cursorActivityHandlers)for(;dr.cursorActivityCalled<dr.cursorActivityHandlers.length;)dr.cursorActivityHandlers[dr.cursorActivityCalled++].call(null,dr.cm)}}while(ir<er.length)}function Xh( $ e,er){var ir= $ e.ownsGroup;if(ir)try{t0(ir)}finally{Bp=null,er(ir)}}var Kp=null;function lp( $ e,er){var ir=na( $ e,er);if(ir.length){var lr=Array.prototype.slice.call(arguments,2),dr;Bp?dr=Bp.delayedCallbacks:Kp?dr=Kp:(dr=Kp=[],setTimeout(Lh,0));for(var $ r=function(Hn){dr.push(function(){return ir[Hn].apply(null,lr)})},Zr=0;Zr<ir.length;++Zr) $ r(
top : ` +mc+"px; width: "+(yc??mi-Es)+ ` px ;
height : ` +(Fu-mc)+"px"))}function gs(Es,mc,yc){var Fu=Hl(dr,Es),fc=Fu.text.length,qc,Gd;function co(Uc,Yc){return cu( $ e,_l(Es,Uc),"div",Fu,Yc)}function il(Uc,Yc,ep){var Sd=Wd( $ e,Fu,null,Uc),Bd=Yc=="ltr"==(ep=="after")?"left":"right",Fd=ep=="after"?Sd.begin:Sd.end-(/ \s /.test(Fu.text.charAt(Sd.end-1))?2:1);return co(Fd,Bd)[Bd]}var tc=qa(Fu,dr.direction);return On(tc,mc||0,yc??fc,function(Uc,Yc,ep,Sd){var Bd=ep=="ltr",Fd=co(Uc,Bd?"left":"right"),Ud=co(Yc-1,Bd?"right":"left"),Fc=mc==null&&Uc==0,Jc=yc==null&&Yc==fc,Gp=Sd==0,Dm=!tc||Sd==tc.length-1;if(Ud.top-Fd.top<=3){var qp=(ma?Fc:Jc)&&Gp,h0=(ma?Jc:Fc)&&Dm,Hm=qp?Hn:(Bd?Fd:Ud).left,Ch=h0?mi:(Bd?Ud:Fd).right;io(Hm,Fd.top,Ch-Hm,Fd.bottom)}else{var ih,cf,p0,E0;Bd?(ih=ma&&Fc&&Gp?Hn:Fd.left,cf=ma?mi:il(Uc,ep,"before"),p0=ma?Hn:il(Yc,ep,"after"),E0=ma&&Jc&&Dm?mi:Ud.right):(ih=ma?il(Uc,ep,"before"):Hn,cf=!ma&&Fc&&Gp?mi:Fd.right,p0=!ma&&Jc&&Dm?Hn:Ud.left,E0=ma?il(Yc,ep,"after"):mi),io(ih,Fd.top,cf-ih,Fd.bottom),Fd.bottom<Ud.top&&io(Hn,Fd.bottom,null,Ud.top),io(p0,Ud.top,E0-p0,Ud.bottom)}(!qc||Qf(Fd,qc)<0)&&(qc=Fd),Qf(Ud,qc)<0&&(qc=Ud),(!Gd||Qf(Fd,Gd)<0)&&(Gd=Fd),Qf(Ud,Gd)<0&&(Gd=Ud)}),{start:qc,end:Gd}}var vs=er.from(),xs=er.to();if(vs.line==xs.line)gs(vs.line,vs.ch,xs.ch);else{var tl=Hl(dr,vs.line),Kl=Hl(dr,xs.line),cl=jd(tl)==jd(Kl),hu=gs(vs.line,vs.ch,cl?tl.text.length+1:null).end,vu=gs(xs.line,cl?0:null,xs.ch).start;cl&&(hu.top<vu.top-2?(io(hu.right,hu.top,null,hu.bottom),io(Hn,vu.top,vu.left,vu.bottom)):io(hu.right,hu.top,vu.left-hu.right,hu.bottom)),hu.bottom<vu.top&&io(Hn,hu.bottom,null,vu.top)}ir.appendChild( $ r)}function ks( $ e){if( $ e.state.focused){var er= $ e.display;clearInterval(er.blinker);var ir=!0;er.cursorDiv.style.visibility="", $ e.options.cursorBlinkRate>0?er.blinker=setInterval(function(){ $ e.hasFocus()||Ao( $ e),er.cursorDiv.style.visibility=(ir=!ir)?"":"hidden"}, $ e.options.cursorBlinkRate): $ e.options.cursorBlinkRate<0&&(er.cursorDiv.style.visibility="hidden")}}function us( $ e){ $ e.hasFocus()||( $ e.display.input.focus(), $ e.state.focused||Do( $ e))}function Co( $ e){ $ e.state.delayingBlurEvent=!0,setTimeout(function(){ $ e.state.delayingBlurEvent&&( $ e.state.delayingBlurEvent=!1, $ e.state.focused&&Ao( $ e))},100)}function Do( $ e,er){ $ e.state.delayingBlurEvent&&! $ e.state.draggingText&&( $ e.state.delayingBlurEvent=!1), $ e.options.readOnly!="nocursor"&&( $ e.state.focused||(Ds( $ e,"focus", $ e,er), $ e.state.focused=!0,br( $ e.display.wrapper,"CodeMirror-focused"),! $ e.curOp&& $ e.display.selForContextMenu!= $ e.doc.sel&&( $ e.display.input.reset(),re&&setTimeout(function(){return $ e.display.input.reset(!0)},20)), $ e.display.input.receivedFocus()),ks( $ e))}function Ao( $ e,er){ $ e.state.delayingBlurEvent||( $ e.state.focused&&(Ds( $ e,"blur", $ e,er), $ e.state.focused=!1,tr( $ e.display.wrapper,"CodeMirror-focused")),clearInterval( $ e.display.blinker),setTimeout(function(){ $ e.state.focused||( $ e.display.shift=!1)},150))}function eo( $ e){for(var er= $ e.display,ir=er.lineDiv.offsetTop,lr=Math.max(0,er.scroller.getBoundingClientRect().top),dr=er.lineDiv.getBoundingClientRect().top, $ r=0,Zr=0;Zr<er.view.length;Zr++){var Hn=er.view[Zr],mi= $ e.options.lineWrapping,ma=void 0,io=0;if(!Hn.hidden){if(dr+=Hn.line.height,V&&z<8){var gs=Hn.node.offsetTop+Hn.node.offsetHeight;ma=gs-ir,ir=gs}else{var vs=Hn.node.getBoundingClientRect();ma=vs.bottom-vs.top,!mi&&Hn.text.firstChild&&(io=Hn.text.firstChild.getBoundingClientRect().right-vs.left-1)}var xs=Hn.line.height-ma;if((xs>.005||xs<-.005)&&(dr<lr&&( $ r-=xs),Ju(Hn.line,ma),So(Hn.line),Hn.rest))for(var tl=0;tl<Hn.rest.length;tl++)So(Hn.rest[tl]);if(io> $ e.display.sizerWidth){var Kl=Math.ceil(io/Xf( $ e.display));Kl> $ e.display.maxLineLength&&( $ e.display.maxLineLength=Kl, $ e.display.maxLine=Hn.line, $ e.display.maxLineChanged=!0)}}}Math.abs( $ r)>2&&(er.scroller.scrollTop+= $ r)}function So( $ e){if( $ e.widgets)for(var er=0;er< $ e.widgets.length;++er){var ir= $ e.widgets[er],lr=ir.node.parentNode;lr&&(ir.height=lr.offsetHeight)}}function Ro( $ e,er,ir){var lr=ir&&ir.top!=null?Math.max(0,ir.top): $ e.scroller.scrollTop;lr=Math.floor(lr-Yf( $ e));var dr=ir&&ir.bottom!=null?ir.bottom:lr+ $ e.w
top : ` +(er.top-ir.viewOffset-Yf( $ e.display))+ ` px ;
height : ` +(er.bottom-er.top+Df( $ e)+ir.barHeight)+ ` px ;
left : ` +er.left+"px; width: "+Math.max(2,er.right-er.left)+"px;"); $ e.display.lineSpace.appendChild(Zr),Zr.scrollIntoView(dr), $ e.display.lineSpace.removeChild(Zr)}}}function Yo( $ e,er,ir,lr){lr==null&&(lr=0);var dr;! $ e.options.lineWrapping&&er==ir&&(ir=er.sticky=="before"?_l(er.line,er.ch+1,"before"):er,er=er.ch?_l(er.line,er.sticky=="before"?er.ch-1:er.ch,"after"):er);for(var $ r=0; $ r<5; $ r++){var Zr=!1,Hn=jl( $ e,er),mi=!ir||ir==er?Hn:jl( $ e,ir);dr={left:Math.min(Hn.left,mi.left),top:Math.min(Hn.top,mi.top)-lr,right:Math.max(Hn.left,mi.left),bottom:Math.max(Hn.bottom,mi.bottom)+lr};var ma= $ o( $ e,dr),io= $ e.doc.scrollTop,gs= $ e.doc.scrollLeft;if(ma.scrollTop!=null&&(is( $ e,ma.scrollTop),Math.abs( $ e.doc.scrollTop-io)>1&&(Zr=!0)),ma.scrollLeft!=null&&(Ts( $ e,ma.scrollLeft),Math.abs( $ e.doc.scrollLeft-gs)>1&&(Zr=!0)),!Zr)break}return dr}function Ja( $ e,er){var ir= $ o( $ e,er);ir.scrollTop!=null&&is( $ e,ir.scrollTop),ir.scrollLeft!=null&&Ts( $ e,ir.scrollLeft)}function $ o( $ e,er){var ir= $ e.display,lr=Ef( $ e.display);er.top<0&&(er.top=0);var dr= $ e.curOp&& $ e.curOp.scrollTop!=null? $ e.curOp.scrollTop:ir.scroller.scrollTop, $ r= $ m( $ e),Zr={};er.bottom-er.top> $ r&&(er.bottom=er.top+ $ r);var Hn= $ e.doc.height+Cm(ir),mi=er.top<lr,ma=er.bottom>Hn-lr;if(er.top<dr)Zr.scrollTop=mi?0:er.top;else if(er.bottom>dr+ $ r){var io=Math.min(er.top,(ma?Hn:er.bottom)- $ r);io!=dr&&(Zr.scrollTop=io)}var gs= $ e.options.fixedGutter?0:ir.gutters.offsetWidth,vs= $ e.curOp&& $ e.curOp.scrollLeft!=null? $ e.curOp.scrollLeft:ir.scroller.scrollLeft-gs,xs=sm( $ e)-ir.gutters.offsetWidth,tl=er.right-er.left>xs;return tl&&(er.right=er.left+xs),er.left<10?Zr.scrollLeft=0:er.left<vs?Zr.scrollLeft=Math.max(0,er.left+gs-(tl?0:10)):er.right>xs+vs-3&&(Zr.scrollLeft=er.right+(tl?0:10)-xs),Zr}function ws( $ e,er){er!=null&&(js( $ e), $ e.curOp.scrollTop=( $ e.curOp.scrollTop==null? $ e.doc.scrollTop: $ e.curOp.scrollTop)+er)}function fs( $ e){js( $ e);var er= $ e.getCursor(); $ e.curOp.scrollToPos={from:er,to:er,margin: $ e.options.cursorScrollMargin}}function Bs( $ e,er,ir){(er!=null||ir!=null)&&js( $ e),er!=null&&( $ e.curOp.scrollLeft=er),ir!=null&&( $ e.curOp.scrollTop=ir)}function Ks( $ e,er){js( $ e), $ e.curOp.scrollToPos=er}function js( $ e){var er= $ e.curOp.scrollToPos;if(er){ $ e.curOp.scrollToPos=null;var ir=bc( $ e,er.from),lr=bc( $ e,er.to);pl( $ e,ir,lr,er.margin)}}function pl( $ e,er,ir,lr){var dr= $ o( $ e,{left:Math.min(er.left,ir.left),top:Math.min(er.top,ir.top)-lr,right:Math.max(er.right,ir.right),bottom:Math.max(er.bottom,ir.bottom)+lr});Bs( $ e,dr.scrollLeft,dr.scrollTop)}function is( $ e,er){Math.abs( $ e.doc.scrollTop-er)<2||(k||xc( $ e,{top:er}),ol( $ e,er,!0),k&&xc( $ e),kl( $ e,100))}function ol( $ e,er,ir){er=Math.max(0,Math.min( $ e.display.scroller.scrollHeight- $ e.display.scroller.clientHeight,er)),!( $ e.display.scroller.scrollTop==er&&!ir)&&( $ e.doc.scrollTop=er, $ e.display.scrollbars.setScrollTop(er), $ e.display.scroller.scrollTop!=er&&( $ e.display.scroller.scrollTop=er))}function Ts( $ e,er,ir,lr){er=Math.max(0,Math.min(er, $ e.display.scroller.scrollWidth- $ e.display.scroller.clientWidth)),!((ir?er== $ e.doc.scrollLeft:Math.abs( $ e.doc.scrollLeft-er)<2)&&!lr)&&( $ e.doc.scrollLeft=er,dp( $ e), $ e.display.scroller.scrollLeft!=er&&( $ e.display.scroller.scrollLeft=er), $ e.display.scrollbars.setScrollLeft(er))}function Cs( $ e){var er= $ e.display,ir=er.gutters.offsetWidth,lr=Math.round( $ e.doc.height+Cm( $ e.display));return{clientHeight:er.scroller.clientHeight,viewHeight:er.wrapper.clientHeight,scrollWidth:er.scroller.scrollWidth,clientWidth:er.scroller.clientWidth,viewWidth:er.wrapper.clientWidth,barLeft: $ e.options.fixedGutter?ir:0,docHeight:lr,scrollHeight:lr+Df( $ e)+er.barHeight,nativeBarWidth:er.nativeBarWidth,gutterWidth:ir}}var Ns=function( $ e,er,ir){this.cm=ir;var lr=this.vert=nr("div",[nr("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),dr=this.horiz=nr("div",[nr("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");lr.tabIndex=dr.tabIndex=-1, $ e(lr), $ e(dr),Hi(lr,"scroll",function(){lr.clientHeight&&er(lr.scrollTop,"vertical")}),Hi(dr,"scroll",function(){dr.clientWidth&&er(dr.scrollLeft,"horizontal")}),this.
` },setDirection:Iu(function( $ e){ $ e!="rtl"&&( $ e="ltr"), $ e!=this.direction&&(this.direction= $ e,this.iter(function(er){return er.order=null}),this.cm&&dm(this.cm))})}),Zd.prototype.eachLine=Zd.prototype.iter;var Rf=0;function lf( $ e){var er=this;if(vp(er),!(ps(er, $ e)||tf(er.display, $ e))){As( $ e),V&&(Rf=+new Date);var ir=Xp(er, $ e,!0),lr= $ e.dataTransfer.files;if(!(!ir||er.isReadOnly()))if(lr&&lr.length&&window.FileReader&&window.File)for(var dr=lr.length, $ r=Array(dr),Zr=0,Hn=function(){++Zr==dr&&wu(er,function(){ir=kc(er.doc,ir);var xs={from:ir,to:ir,text:er.doc.splitLines( $ r.filter(function(tl){return tl!=null}).join(er.doc.lineSeparator())),origin:"paste"};Vc(er.doc,xs),cs(er.doc,Ip(kc(er.doc,ir),kc(er.doc,Hf(xs))))})()},mi=function(xs,tl){if(er.options.allowDropFileTypes&&Vr(er.options.allowDropFileTypes,xs.type)==-1){Hn();return}var Kl=new FileReader;Kl.onerror=function(){return Hn()},Kl.onload=function(){var cl=Kl.result;if(/[ \x 00- \x 08 \x 0e- \x 1f]{2}/.test(cl)){Hn();return} $ r[tl]=cl,Hn()},Kl.readAsText(xs)},ma=0;ma<lr.length;ma++)mi(lr[ma],ma);else{if(er.state.draggingText&&er.doc.sel.contains(ir)>-1){er.state.draggingText( $ e),setTimeout(function(){return er.display.input.focus()},20);return}try{var io= $ e.dataTransfer.getData("Text");if(io){var gs;if(er.state.draggingText&&!er.state.draggingText.copy&&(gs=er.listSelections()),No(er.doc,Ip(ir,ir)),gs)for(var vs=0;vs<gs.length;++vs)gu(er.doc,"",gs[vs].anchor,gs[vs].head,"drag");er.replaceSelection(io,"around","paste"),er.display.input.focus()}}catch{}}}}function Tp( $ e,er){if(V&&(! $ e.state.draggingText||+new Date-Rf<100)){ $ c(er);return}if(!(ps( $ e,er)||tf( $ e.display,er))&&(er.dataTransfer.setData("Text", $ e.getSelection()),er.dataTransfer.effectAllowed="copyMove",er.dataTransfer.setDragImage&&!pe)){var ir=nr("img",null,null,"position: fixed; left: 0; top: 0;");ir.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",de&&(ir.width=ir.height=1, $ e.display.wrapper.appendChild(ir),ir._top=ir.offsetTop),er.dataTransfer.setDragImage(ir,0,0),de&&ir.parentNode.removeChild(ir)}}function rd( $ e,er){var ir=Xp( $ e,er);if(ir){var lr=document.createDocumentFragment();xm( $ e,ir,lr), $ e.display.dragCursor||( $ e.display.dragCursor=nr("div",null,"CodeMirror-cursors CodeMirror-dragcursors"), $ e.display.lineSpace.insertBefore( $ e.display.dragCursor, $ e.display.cursorDiv)),ar( $ e.display.dragCursor,lr)}}function vp( $ e){ $ e.display.dragCursor&&( $ e.display.lineSpace.removeChild( $ e.display.dragCursor), $ e.display.dragCursor=null)}function Np( $ e){if(document.getElementsByClassName){for(var er=document.getElementsByClassName("CodeMirror"),ir=[],lr=0;lr<er.length;lr++){var dr=er[lr].CodeMirror;dr&&ir.push(dr)}ir.length&&ir[0].operation(function(){for(var $ r=0; $ r<ir.length; $ r++) $ e(ir[ $ r])})}}var Cp=!1;function n0(){Cp||(c0(),Cp=!0)}function c0(){var $ e;Hi(window,"resize",function(){ $ e==null&&( $ e=setTimeout(function(){ $ e=null,Np(y0)},100))}),Hi(window,"blur",function(){return Np(Ao)})}function y0( $ e){var er= $ e.display;er.cachedCharWidth=er.cachedTextHeight=er.cachedPaddingH=null,er.scrollbarsClipped=!1, $ e.setSize()}for(var Jp={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 "},i0=0;i0<10;i0++)Jp[i0+48]=Jp[i0+96]=String(i0);for(var Gh=65;Gh<=90;Gh++)Jp[Gh]=String.fromCharCode(Gh);for(var qh=1;qh<=12;qh++)Jp[qh+111]=Jp[qh+63235]=" F "+qh;var nh={};nh.basic={Left:" goCharLeft ",Right:" goCharRight ",Up:" goLineUp ",Down:" goLineDown ",End:" goLineEnd ",Home:" goLineStartSmart ",PageUp:" goPageUp ",PageDown:" goPageDown ",Delete:" delCharAfter ",Backspace:" delCharBefore "," Shift - Backspace ":" de
` ,"start")},toggleOverwrite:function( $ e){return $ e.toggleOverwrite()}};function Fn( $ e,er){var ir=Hl( $ e.doc,er),lr=jd(ir);return lr!=ir&&(er=kn(lr)),di(!0, $ e,lr,er,1)}function En( $ e,er){var ir=Hl( $ e.doc,er),lr=vm(ir);return lr!=ir&&(er=kn(lr)),di(!0, $ e,ir,er,-1)}function xn( $ e,er){var ir=Fn( $ e,er.line),lr=Hl( $ e.doc,ir.line),dr=qa(lr, $ e.doc.direction);if(!dr||dr[0].level==0){var $ r=Math.max(ir.ch,lr.text.search(/ \S /)),Zr=er.line==ir.line&&er.ch<= $ r&&er.ch;return _l(ir.line,Zr?0: $ r,ir.sticky)}return ir}function Nn( $ e,er,ir){if(typeof er=="string"&&(er=Vn[er],!er))return!1; $ e.display.input.ensurePolled();var lr= $ e.display.shift,dr=!1;try{ $ e.isReadOnly()&&( $ e.state.suppressEdits=!0),ir&&( $ e.display.shift=!1),dr=er( $ e)!=Tr}finally{ $ e.display.shift=lr, $ e.state.suppressEdits=!1}return dr}function ui( $ e,er,ir){for(var lr=0;lr< $ e.state.keyMaps.length;lr++){var dr=uf(er, $ e.state.keyMaps[lr],ir, $ e);if(dr)return dr}return $ e.options.extraKeys&&uf(er, $ e.options.extraKeys,ir, $ e)||uf(er, $ e.options.keyMap,ir, $ e)}var Mi=new zr;function ea( $ e,er,ir,lr){var dr= $ e.state.keySeq;if(dr){if(d0(er))return"handled";if(/ \' $ /.test(er)? $ e.state.keySeq=null:Mi.set(50,function(){ $ e.state.keySeq==dr&&( $ e.state.keySeq=null, $ e.display.input.reset())}),zi( $ e,dr+" "+er,ir,lr))return!0}return zi( $ e,er,ir,lr)}function zi( $ e,er,ir,lr){var dr=ui( $ e,er,lr);return dr=="multi"&&( $ e.state.keySeq=er),dr=="handled"&&lp( $ e,"keyHandled", $ e,er,ir),(dr=="handled"||dr=="multi")&&(As(ir),ks( $ e)),!!dr}function ta( $ e,er){var ir=a0(er,!0);return ir?er.shiftKey&&! $ e.state.keySeq?ea( $ e,"Shift-"+ir,er,function(lr){return Nn( $ e,lr,!0)})||ea( $ e,ir,er,function(lr){if(typeof lr=="string"?/^go[A-Z]/.test(lr):lr.motion)return Nn( $ e,lr)}):ea( $ e,ir,er,function(lr){return Nn( $ e,lr)}):!1}function ki( $ e,er,ir){return ea( $ e,"'"+ir+"'",er,function(lr){return Nn( $ e,lr,!0)})}var ji=null;function oa( $ e){var er=this;if(!( $ e.target&& $ e.target!=er.display.input.getField())&&(er.curOp.focus=hr(vr(er)),!ps(er, $ e))){V&&z<11&& $ e.keyCode==27&&( $ e.returnValue=!1);var ir= $ e.keyCode;er.display.shift=ir==16|| $ e.shiftKey;var lr=ta(er, $ e);de&&(ji=lr?ir:null,!lr&&ir==88&&!hn&&(Fe? $ e.metaKey: $ e.ctrlKey)&&er.replaceSelection("",null,"cut")),k&&!Fe&&!lr&&ir==46&& $ e.shiftKey&&! $ e.ctrlKey&&document.execCommand&&document.execCommand("cut"),ir==18&&!/ \b CodeMirror-crosshair \b /.test(er.display.lineDiv.className)&&Ra(er)}}function Ra( $ e){var er= $ e.display.lineDiv;br(er,"CodeMirror-crosshair");function ir(lr){(lr.keyCode==18||!lr.altKey)&&(tr(er,"CodeMirror-crosshair"),Ma(document,"keyup",ir),Ma(document,"mouseover",ir))}Hi(document,"keyup",ir),Hi(document,"mouseover",ir)}function Ba( $ e){ $ e.keyCode==16&&(this.doc.sel.shift=!1),ps(this, $ e)}function la( $ e){var er=this;if(!( $ e.target&& $ e.target!=er.display.input.getField())&&!(tf(er.display, $ e)||ps(er, $ e)|| $ e.ctrlKey&&! $ e.altKey||Fe&& $ e.metaKey)){var ir= $ e.keyCode,lr= $ e.charCode;if(de&&ir==ji){ji=null,As( $ e);return}if(!(de&&(! $ e.which|| $ e.which<10)&&ta(er, $ e))){var dr=String.fromCharCode(lr??ir);dr!=" \b "&&(ki(er, $ e,dr)||er.display.input.onKeyPress( $ e))}}}var La=400,Ea=function( $ e,er,ir){this.time= $ e,this.pos=er,this.button=ir};Ea.prototype.compare=function( $ e,er,ir){return this.time+La> $ e&&Hu(er,this.pos)==0&&ir==this.button};var Xa,Fa;function rs( $ e,er){var ir=+new Date;return Fa&&Fa.compare(ir, $ e,er)?(Xa=Fa=null,"triple"):Xa&&Xa.compare(ir, $ e,er)?(Fa=new Ea(ir, $ e,er),Xa=null,"double"):(Xa=new Ea(ir, $ e,er),Fa=null,"single")}function Ui( $ e){var er=this,ir=er.display;if(!(ps(er, $ e)||ir.activeTouch&&ir.input.supportsTouch())){if(ir.input.ensurePolled(),ir.shift= $ e.shiftKey,tf(ir, $ e)){re||(ir.scroller.draggable=!1,setTimeout(function(){return ir.scroller.draggable=!0},100));return}if(!Aa(er, $ e)){var lr=Xp(er, $ e),dr=vc( $ e), $ r=lr?rs(lr,dr):"single";Lr(er).focus(),dr==1&&er.state.selectingText&&er.state.selectingText( $ e),!(lr&&Ta(er,dr,lr, $ r, $ e))&&(dr==1?lr?aa(er,lr, $ r, $ e):Oc( $ e)==ir.scroller&&As( $ e):dr==2?(lr&&Sn(er.doc,lr),setTimeout(function(){return ir.input.focus()},20)):dr==3&&(qe?er.display.input.onContextMenu( $ e):Co(er)))}}}function Ta( $ e,er,ir,lr,dr){var $ r="Click";ret
` )==er){if(lr.ranges.length%Go.text.length==0){ma=[];for(var io=0;io<Go.text.length;io++)ma.push( $ r.splitLines(Go.text[io]))}}else mi.length==lr.ranges.length&& $ e.options.pasteLinesPerSelection&&(ma=Kr(mi,function(hu){return[hu]}));for(var gs= $ e.curOp.updateInput,vs=lr.ranges.length-1;vs>=0;vs--){var xs=lr.ranges[vs],tl=xs.from(),Kl=xs.to();xs.empty()&&(ir&&ir>0?tl=_l(tl.line,tl.ch-ir): $ e.state.overwrite&&!Hn?Kl=_l(Kl.line,Math.min(Hl( $ r,Kl.line).text.length,Kl.ch+Wr(mi).length)):Hn&&Go&&Go.lineWise&&Go.text.join( `
2024-08-21 13:12:53 +08:00
` )==mi.join( `
2024-08-25 11:35:35 +08:00
` )&&(tl=Kl=_l(tl.line,0)));var cl={from:tl,to:Kl,text:ma?ma[vs%ma.length]:mi,origin:dr||(Hn?"paste": $ e.state.cutIncoming>Zr?"cut":"+input")};Vc( $ e.doc,cl),lp( $ e,"inputRead", $ e,cl)}er&&!Hn&&ku( $ e,er),fs( $ e), $ e.curOp.updateInput<2&&( $ e.curOp.updateInput=gs), $ e.curOp.typing=!0, $ e.state.pasteIncoming= $ e.state.cutIncoming=-1}function sl( $ e,er){var ir= $ e.clipboardData&& $ e.clipboardData.getData("Text");if(ir)return $ e.preventDefault(),!er.isReadOnly()&&!er.options.disableInput&&er.hasFocus()&&Ec(er,function(){return fl(er,ir,0,null,"paste")}),!0}function ku( $ e,er){if(!(! $ e.options.electricChars||! $ e.options.smartIndent))for(var ir= $ e.doc.sel,lr=ir.ranges.length-1;lr>=0;lr--){var dr=ir.ranges[lr];if(!(dr.head.ch>100||lr&&ir.ranges[lr-1].head.line==dr.head.line)){var $ r= $ e.getModeAt(dr.head),Zr=!1;if( $ r.electricChars){for(var Hn=0;Hn< $ r.electricChars.length;Hn++)if(er.indexOf( $ r.electricChars.charAt(Hn))>-1){Zr=ml( $ e,dr.head.line,"smart");break}}else $ r.electricInput&& $ r.electricInput.test(Hl( $ e.doc,dr.head.line).text.slice(0,dr.head.ch))&&(Zr=ml( $ e,dr.head.line,"smart"));Zr&&lp( $ e,"electricInput", $ e,dr.head.line)}}}function Is( $ e){for(var er=[],ir=[],lr=0;lr< $ e.doc.sel.ranges.length;lr++){var dr= $ e.doc.sel.ranges[lr].head.line, $ r={anchor:_l(dr,0),head:_l(dr+1,0)};ir.push( $ r),er.push( $ e.getRange( $ r.anchor, $ r.head))}return{text:er,ranges:ir}}function hs( $ e,er,ir,lr){ $ e.setAttribute("autocorrect",ir?"on":"off"), $ e.setAttribute("autocapitalize",lr?"on":"off"), $ e.setAttribute("spellcheck",!!er)}function Vs(){var $ e=nr("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; min-height: 1em; outline: none"),er=nr("div",[ $ e],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return re? $ e.style.width="1000px": $ e.setAttribute("wrap","off"),Ce&&( $ e.style.border="1px solid black"),er}function Ys( $ e){var er= $ e.optionHandlers,ir= $ e.helpers={}; $ e.prototype={constructor: $ e,focus:function(){Lr(this).focus(),this.display.input.focus()},setOption:function(lr,dr){var $ r=this.options,Zr= $ r[lr]; $ r[lr]==dr&&lr!="mode"||( $ r[lr]=dr,er.hasOwnProperty(lr)&&wu(this,er[lr])(this,dr,Zr),Ds(this,"optionChange",this,lr))},getOption:function(lr){return this.options[lr]},getDoc:function(){return this.doc},addKeyMap:function(lr,dr){this.state.keyMaps[dr?"push":"unshift"](o0(lr))},removeKeyMap:function(lr){for(var dr=this.state.keyMaps, $ r=0; $ r<dr.length;++ $ r)if(dr[ $ r]==lr||dr[ $ r].name==lr)return dr.splice( $ r,1),!0},addOverlay:Ul(function(lr,dr){var $ r=lr.token?lr: $ e.getMode(this.options,lr);if( $ r.startState)throw new Error("Overlays may not be stateful.");Nr(this.state.overlays,{mode: $ r,modeSpec:lr,opaque:dr&&dr.opaque,priority:dr&&dr.priority||0},function(Zr){return Zr.priority}),this.state.modeGen++,Pp(this)}),removeOverlay:Ul(function(lr){for(var dr=this.state.overlays, $ r=0; $ r<dr.length;++ $ r){var Zr=dr[ $ r].modeSpec;if(Zr==lr||typeof lr=="string"&&Zr.name==lr){dr.splice( $ r,1),this.state.modeGen++,Pp(this);return}}}),indentLine:Ul(function(lr,dr, $ r){typeof dr!="string"&&typeof dr!="number"&&(dr==null?dr=this.options.smartIndent?"smart":"prev":dr=dr?"add":"subtract"),Wl(this.doc,lr)&&ml(this,lr,dr, $ r)}),indentSelection:Ul(function(lr){for(var dr=this.doc.sel.ranges, $ r=-1,Zr=0;Zr<dr.length;Zr++){var Hn=dr[Zr];if(Hn.empty())Hn.head.line> $ r&&(ml(this,Hn.head.line,lr,!0), $ r=Hn.head.line,Zr==this.doc.sel.primIndex&&fs(this));else{var mi=Hn.from(),ma=Hn.to(),io=Math.max( $ r,mi.line); $ r=Math.min(this.lastLine(),ma.line-(ma.ch?0:1))+1;for(var gs=io;gs< $ r;++gs)ml(this,gs,lr);var vs=this.doc.sel.ranges;mi.ch==0&&dr.length==vs.length&&vs[Zr].from().ch>0&&fa(this.doc,Zr,new ed(mi,vs[Zr].to()),Cr)}}}),getTokenAt:function(lr,dr){return Nf(this,lr,dr)},getLineTokens:function(lr,dr){return Nf(this,_l(lr),dr,!0)},getTokenTypeAt:function(lr){lr=kc(this.doc,lr);var dr=kf(this,Hl(this.doc,lr.line)), $ r=0,Zr=(dr.length-1)/2,Hn=lr.ch,mi;if(Hn==0)mi=dr[2];else for(;;){var ma= $ r+Zr>>1;if((ma?dr[ma*2-1]:0)>=Hn)Zr=ma;else if(dr[ma*2+1]<Hn) $ r=ma+1;else{mi=dr[ma*2+2];break}}var io=mi?mi.indexOf("overlay "):-1;return io<0?mi:io==0?null:m
` ,cl=Wa(Kl,xs)?"w":vs&&Kl== `
` ?"n":!vs||/ \s /.test(Kl)?null:"p";if(vs&&!tl&&!cl&&(cl="s"),gs&&gs!=cl){ir<0&&(ir=1,io(),er.sticky="after");break}if(cl&&(gs=cl),ir>0&&!io(!tl))break}var hu=Ku( $ e,er, $ r,Zr,!0);return Rc( $ r,hu)&&(hu.hitSide=!0),hu}function fu( $ e,er,ir,lr){var dr= $ e.doc, $ r=er.left,Zr;if(lr=="page"){var Hn=Math.min( $ e.display.wrapper.clientHeight,Lr( $ e).innerHeight||dr( $ e).documentElement.clientHeight),mi=Math.max(Hn-.5*Ef( $ e.display),3);Zr=(ir>0?er.bottom:er.top)+ir*mi}else lr=="line"&&(Zr=ir>0?er.bottom+3:er.top-3);for(var ma;ma=Ad( $ e, $ r,Zr),!!ma.outside;){if(ir<0?Zr<=0:Zr>=dr.height){ma.hitSide=!0;break}Zr+=ir*5}return ma}var Vl=function( $ e){this.cm= $ e,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new zr,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};Vl.prototype.init=function( $ e){var er=this,ir=this,lr=ir.cm,dr=ir.div= $ e.lineDiv;dr.contentEditable=!0,hs(dr,lr.options.spellcheck,lr.options.autocorrect,lr.options.autocapitalize);function $ r(Hn){for(var mi=Hn.target;mi;mi=mi.parentNode){if(mi==dr)return!0;if(/ \b CodeMirror-(?:line)?widget \b /.test(mi.className))break}return!1}Hi(dr,"paste",function(Hn){! $ r(Hn)||ps(lr,Hn)||sl(Hn,lr)||z<=11&&setTimeout(wu(lr,function(){return er.updateFromDOM()}),20)}),Hi(dr,"compositionstart",function(Hn){er.composing={data:Hn.data,done:!1}}),Hi(dr,"compositionupdate",function(Hn){er.composing||(er.composing={data:Hn.data,done:!1})}),Hi(dr,"compositionend",function(Hn){er.composing&&(Hn.data!=er.composing.data&&er.readFromDOMSoon(),er.composing.done=!0)}),Hi(dr,"touchstart",function(){return ir.forceCompositionEnd()}),Hi(dr,"input",function(){er.composing||er.readFromDOMSoon()});function Zr(Hn){if(!(! $ r(Hn)||ps(lr,Hn))){if(lr.somethingSelected())Os({lineWise:!1,text:lr.getSelections()}),Hn.type=="cut"&&lr.replaceSelection("",null,"cut");else if(lr.options.lineWiseCopyCut){var mi=Is(lr);Os({lineWise:!0,text:mi.text}),Hn.type=="cut"&&lr.operation(function(){lr.setSelections(mi.ranges,0,Cr),lr.replaceSelection("",null,"cut")})}else return;if(Hn.clipboardData){Hn.clipboardData.clearData();var ma=Go.text.join( `
` );if(Hn.clipboardData.setData("Text",ma),Hn.clipboardData.getData("Text")==ma){Hn.preventDefault();return}}var io=Vs(),gs=io.firstChild;hs(gs),lr.display.lineSpace.insertBefore(io,lr.display.lineSpace.firstChild),gs.value=Go.text.join( `
` );var vs=hr(Ir(dr));xr(gs),setTimeout(function(){lr.display.lineSpace.removeChild(io),vs.focus(),vs==dr&&ir.showPrimarySelection()},50)}}Hi(dr,"copy",Zr),Hi(dr,"cut",Zr)},Vl.prototype.screenReaderLabelChanged=function( $ e){ $ e?this.div.setAttribute("aria-label", $ e):this.div.removeAttribute("aria-label")},Vl.prototype.prepareSelection=function(){var $ e=Um(this.cm,!1);return $ e.focus=hr(Ir(this.div))==this.div, $ e},Vl.prototype.showSelection=function( $ e,er){! $ e||!this.cm.display.view.length||(( $ e.focus||er)&&this.showPrimarySelection(),this.showMultipleSelections( $ e))},Vl.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},Vl.prototype.showPrimarySelection=function(){var $ e=this.getSelection(),er=this.cm,ir=er.doc.sel.primary(),lr=ir.from(),dr=ir.to();if(er.display.viewTo==er.display.viewFrom||lr.line>=er.display.viewTo||dr.line<er.display.viewFrom){ $ e.removeAllRanges();return}var $ r=cc(er, $ e.anchorNode, $ e.anchorOffset),Zr=cc(er, $ e.focusNode, $ e.focusOffset);if(!( $ r&&! $ r.bad&&Zr&&!Zr.bad&&Hu(yp( $ r,Zr),lr)==0&&Hu(hd( $ r,Zr),dr)==0)){var Hn=er.display.view,mi=lr.line>=er.display.viewFrom&&uc(er,lr)||{node:Hn[0].measure.map[2],offset:0},ma=dr.line<er.display.viewTo&&uc(er,dr);if(!ma){var io=Hn[Hn.length-1].measure,gs=io.maps?io.maps[io.maps.length-1]:io.map;ma={node:gs[gs.length-1],offset:gs[gs.length-2]-gs[gs.length-3]}}if(!mi||!ma){ $ e.removeAllRanges();return}var vs= $ e.rangeCount&& $ e.getRangeAt(0),xs;try{xs=cr(mi.node,mi.offset,ma.offset,ma.node)}catch{}xs&&(!k&&er.state.focused?( $ e.collapse(mi.node,mi.offset),xs.collapsed||( $ e.removeAllRanges(), $ e.addRange(xs))):( $ e.removeAllRanges(), $ e.addRange(xs)),vs&& $ e.anchorNode==null? $ e.addRange(vs):k&&this.startGracePeriod()),this.rememberSelection()}},Vl.prototype.startGracePeriod=function(){var $ e=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){ $ e.gracePeriod=!1, $ e.selectionChanged()&& $ e.cm.operation(function(){return $ e.cm.curOp.selectionChanged=!0})},20)},Vl.prototype.showMultipleSelections=function( $ e){ar(this.cm.display.cursorDiv, $ e.cursors),ar(this.cm.display.selectionDiv, $ e.selection)},Vl.prototype.rememberSelection=function(){var $ e=this.getSelection();this.lastAnchorNode= $ e.anchorNode,this.lastAnchorOffset= $ e.anchorOffset,this.lastFocusNode= $ e.focusNode,this.lastFocusOffset= $ e.focusOffset},Vl.prototype.selectionInEditor=function(){var $ e=this.getSelection();if(! $ e.rangeCount)return!1;var er= $ e.getRangeAt(0).commonAncestorContainer;return mr(this.div,er)},Vl.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||hr(Ir(this.div))!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},Vl.prototype.blur=function(){this.div.blur()},Vl.prototype.getField=function(){return this.div},Vl.prototype.supportsTouch=function(){return!0},Vl.prototype.receivedFocus=function(){var $ e=this,er=this;this.selectionInEditor()?setTimeout(function(){return $ e.pollSelection()},20):Ec(this.cm,function(){return er.cm.curOp.selectionChanged=!0});function ir(){er.cm.state.focused&&(er.pollSelection(),er.polling.set(er.cm.options.pollInterval,ir))}this.polling.set(this.cm.options.pollInterval,ir)},Vl.prototype.selectionChanged=function(){var $ e=this.getSelection();return $ e.anchorNode!=this.lastAnchorNode|| $ e.anchorOffset!=this.lastAnchorOffset|| $ e.focusNode!=this.lastFocusNode|| $ e.focusOffset!=this.lastFocusOffset},Vl.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var $ e=this.getSelection(),er=this.cm;if(he&&oe&&this.cm.display.gutterSpecs.length&&nd( $ e.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var ir=cc(er, $ e.anchorNode, $ e.anchorOffset),lr=cc(er, $ e.focusNode, $ e.focusOffset);ir&&lr&&Ec(er,function(){ss(er.doc,Ip(ir,lr),Cr),(ir.bad||lr.bad)&&(er.curOp.selectionChanged=!0)})}}},Vl.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTim
` ),xr(dr))}else return;Zr.type=="cut"&&(lr.state.cutIncoming=+new Date)}}Hi(dr,"cut", $ r),Hi(dr,"copy", $ r),Hi( $ e.scroller,"paste",function(Zr){if(!(tf( $ e,Zr)||ps(lr,Zr))){if(!dr.dispatchEvent){lr.state.pasteIncoming=+new Date,ir.focus();return}var Hn=new Event("paste");Hn.clipboardData=Zr.clipboardData,dr.dispatchEvent(Hn)}}),Hi( $ e.lineSpace,"selectstart",function(Zr){tf( $ e,Zr)||As(Zr)}),Hi(dr,"compositionstart",function(){var Zr=lr.getCursor("from");ir.composing&&ir.composing.range.clear(),ir.composing={start:Zr,range:lr.markText(Zr,lr.getCursor("to"),{className:"CodeMirror-composing"})}}),Hi(dr,"compositionend",function(){ir.composing&&(ir.poll(),ir.composing.range.clear(),ir.composing=null)})},Jo.prototype.createField=function( $ e){this.wrapper=Vs(),this.textarea=this.wrapper.firstChild;var er=this.cm.options;hs(this.textarea,er.spellcheck,er.autocorrect,er.autocapitalize)},Jo.prototype.screenReaderLabelChanged=function( $ e){ $ e?this.textarea.setAttribute("aria-label", $ e):this.textarea.removeAttribute("aria-label")},Jo.prototype.prepareSelection=function(){var $ e=this.cm,er= $ e.display,ir= $ e.doc,lr=Um( $ e);if( $ e.options.moveInputWithCursor){var dr=jl( $ e,ir.sel.primary().head,"div"), $ r=er.wrapper.getBoundingClientRect(),Zr=er.lineDiv.getBoundingClientRect();lr.teTop=Math.max(0,Math.min(er.wrapper.clientHeight-10,dr.top+Zr.top- $ r.top)),lr.teLeft=Math.max(0,Math.min(er.wrapper.clientWidth-10,dr.left+Zr.left- $ r.left))}return lr},Jo.prototype.showSelection=function( $ e){var er=this.cm,ir=er.display;ar(ir.cursorDiv, $ e.cursors),ar(ir.selectionDiv, $ e.selection), $ e.teTop!=null&&(this.wrapper.style.top= $ e.teTop+"px",this.wrapper.style.left= $ e.teLeft+"px")},Jo.prototype.reset=function( $ e){if(!(this.contextMenuPending||this.composing&& $ e)){var er=this.cm;if(this.resetting=!0,er.somethingSelected()){this.prevInput="";var ir=er.getSelection();this.textarea.value=ir,er.state.focused&&xr(this.textarea),V&&z>=9&&(this.hasSelection=ir)}else $ e||(this.prevInput=this.textarea.value="",V&&z>=9&&(this.hasSelection=null));this.resetting=!1}},Jo.prototype.getField=function(){return this.textarea},Jo.prototype.supportsTouch=function(){return!1},Jo.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!Ne||hr(Ir(this.textarea))!=this.textarea))try{this.textarea.focus()}catch{}},Jo.prototype.blur=function(){this.textarea.blur()},Jo.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Jo.prototype.receivedFocus=function(){this.slowPoll()},Jo.prototype.slowPoll=function(){var $ e=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){ $ e.poll(), $ e.cm.state.focused&& $ e.slowPoll()})},Jo.prototype.fastPoll=function(){var $ e=!1,er=this;er.pollingFast=!0;function ir(){var lr=er.poll();!lr&&! $ e?( $ e=!0,er.polling.set(60,ir)):(er.pollingFast=!1,er.slowPoll())}er.polling.set(20,ir)},Jo.prototype.poll=function(){var $ e=this,er=this.cm,ir=this.textarea,lr=this.prevInput;if(this.contextMenuPending||this.resetting||!er.state.focused||Zn(ir)&&!lr&&!this.composing||er.isReadOnly()||er.options.disableInput||er.state.keySeq)return!1;var dr=ir.value;if(dr==lr&&!er.somethingSelected())return!1;if(V&&z>=9&&this.hasSelection===dr||Fe&&/[ \u f700- \u f7ff]/.test(dr))return er.display.input.reset(),!1;if(er.doc.sel==er.display.selForContextMenu){var $ r=dr.charCodeAt(0);if( $ r==8203&&!lr&&(lr=" "), $ r==8666)return this.reset(),this.cm.execCommand("undo")}for(var Zr=0,Hn=Math.min(lr.length,dr.length);Zr<Hn&&lr.charCodeAt(Zr)==dr.charCodeAt(Zr);)++Zr;return Ec(er,function(){fl(er,dr.slice(Zr),lr.length-Zr,null, $ e.composing?"*compose":null),dr.length>1e3||dr.indexOf( `
` )>-1?ir.value= $ e.prevInput="": $ e.prevInput=dr, $ e.composing&&( $ e.composing.range.clear(), $ e.composing.range=er.markText( $ e.composing.start,er.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},Jo.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Jo.prototype.onKeyPress=function(){V&&z>=9&&(this.hasSelection=null),this.fastPoll()},Jo.prototype.onContextMenu=function( $ e){var er=this,ir=er.cm,lr=ir.display,dr=er.textarea;er.contextMenuPending&&er.contextMenuPending();var $ r=Xp(ir, $ e),Zr=lr.scroller.scrollTop;if(! $ r||de)return;var Hn=ir.options.resetSelectionOnContextMenu;Hn&&ir.doc.sel.contains( $ r)==-1&&wu(ir,ss)(ir.doc,Ip( $ r),Cr);var mi=dr.style.cssText,ma=er.wrapper.style.cssText,io=er.wrapper.offsetParent.getBoundingClientRect();er.wrapper.style.cssText="position: static",dr.style.cssText= ` position : absolute ; width : 30 px ; height : 30 px ;
2024-08-21 13:12:53 +08:00
top : ` +( $ e.clientY-io.top-5)+"px; left: "+( $ e.clientX-io.left-5)+ ` px ;
z - index : 1000 ; background : ` +(V?"rgba(255, 255, 255, .05)":"transparent")+ ` ;
2024-08-25 11:35:35 +08:00
outline : none ; border - width : 0 ; outline : none ; overflow : hidden ; opacity : . 05 ; filter : alpha ( opacity = 5 ) ; ` ;var gs;re&&(gs=dr.ownerDocument.defaultView.scrollY),lr.input.focus(),re&&dr.ownerDocument.defaultView.scrollTo(null,gs),lr.input.reset(),ir.somethingSelected()||(dr.value=er.prevInput=" "),er.contextMenuPending=xs,lr.selForContextMenu=ir.doc.sel,clearTimeout(lr.detectingSelectAll);function vs(){if(dr.selectionStart!=null){var Kl=ir.somethingSelected(),cl=" "+(Kl?dr.value:"");dr.value="⇚",dr.value=cl,er.prevInput=Kl?"":" ",dr.selectionStart=1,dr.selectionEnd=cl.length,lr.selForContextMenu=ir.doc.sel}}function xs(){if(er.contextMenuPending==xs&&(er.contextMenuPending=!1,er.wrapper.style.cssText=ma,dr.style.cssText=mi,V&&z<9&&lr.scrollbars.setScrollTop(lr.scroller.scrollTop=Zr),dr.selectionStart!=null)){(!V||V&&z<9)&&vs();var Kl=0,cl=function(){lr.selForContextMenu==ir.doc.sel&&dr.selectionStart==0&&dr.selectionEnd>0&&er.prevInput==" "?wu(ir,Pc)(ir):Kl++<10?lr.detectingSelectAll=setTimeout(cl,500):(lr.selForContextMenu=null,lr.input.reset())};lr.detectingSelectAll=setTimeout(cl,200)}}if(V&&z>=9&&vs(),qe){ $ c( $ e);var tl=function(){Ma(window,"mouseup",tl),setTimeout(xs,20)};Hi(window,"mouseup",tl)}else setTimeout(xs,50)},Jo.prototype.readOnlyChanged=function( $ e){ $ e||this.reset(),this.textarea.disabled= $ e=="nocursor",this.textarea.readOnly=!! $ e},Jo.prototype.setUneditable=function(){},Jo.prototype.needsContentAttribute=!1;function hl( $ e,er){if(er=er?_r(er):{},er.value= $ e.value,!er.tabindex&& $ e.tabIndex&&(er.tabindex= $ e.tabIndex),!er.placeholder&& $ e.placeholder&&(er.placeholder= $ e.placeholder),er.autofocus==null){var ir=hr(Ir( $ e));er.autofocus=ir== $ e|| $ e.getAttribute("autofocus")!=null&&ir==document.body}function lr(){ $ e.value=Hn.getValue()}var dr;if( $ e.form&&(Hi( $ e.form,"submit",lr),!er.leaveSubmitMethodAlone)){var $ r= $ e.form;dr= $ r.submit;try{var Zr= $ r.submit=function(){lr(), $ r.submit=dr, $ r.submit(), $ r.submit=Zr}}catch{}}er.finishInit=function(mi){mi.save=lr,mi.getTextArea=function(){return $ e},mi.toTextArea=function(){mi.toTextArea=isNaN,lr(), $ e.parentNode.removeChild(mi.getWrapperElement()), $ e.style.display="", $ e.form&&(Ma( $ e.form,"submit",lr),!er.leaveSubmitMethodAlone&&typeof $ e.form.submit=="function"&&( $ e.form.submit=dr))}}, $ e.style.display="none";var Hn=Ss(function(mi){return $ e.parentNode.insertBefore(mi, $ e.nextSibling)},er);return Hn}function Ms( $ e){ $ e.off=Ma, $ e.on=Hi, $ e.wheelEventPixels=gp, $ e.Doc=Zd, $ e.splitLines=Br, $ e.countColumn=Fr, $ e.findColumn=Sr, $ e.isWordChar=Po, $ e.Pass=Tr, $ e.signal=Ds, $ e.Line=Wn, $ e.changeEnd=Hf, $ e.scrollbarModel=Eu, $ e.Pos=_l, $ e.cmpPos=Hu, $ e.modes=Wi, $ e.mimeModes=pa, $ e.resolveMode=Eo, $ e.getMode=Fo, $ e.modeExtensions=_s, $ e.extendMode=An, $ e.copyState=Vo, $ e.startState=Io, $ e.innerMode=pu, $ e.commands=Vn, $ e.keyMap=nh, $ e.keyName=a0, $ e.isModifierKey=d0, $ e.lookupKey=uf, $ e.normalizeKeyMap=mm, $ e.StringStream=yu, $ e.SharedTextMarker=Qu, $ e.TextMarker=Ml, $ e.LineWidget=zc, $ e.e_preventDefault=As, $ e.e_stopPropagation=Uu, $ e.e_stop= $ c, $ e.addClass=br, $ e.contains=mr, $ e.rmClass=tr, $ e.keyNames=Jp}Ls(Ss),Ys(Ss);var dl="iter insert remove copy getEditor constructor".split(" ");for(var Wu in Zd.prototype)Zd.prototype.hasOwnProperty(Wu)&&Vr(dl,Wu)<0&&(Ss.prototype[Wu]=function( $ e){return function(){return $ e.apply(this.doc,arguments)}}(Zd.prototype[Wu]));return Ou(Zd),Ss.inputStyles={textarea:Jo,contenteditable:Vl},Ss.defineMode=function( $ e){!Ss.defaults.mode&& $ e!="null"&&(Ss.defaults.mode= $ e),Ki.apply(this,arguments)},Ss.defineMIME=Xo,Ss.defineMode("null",function(){return{token:function( $ e){return $ e.skipToEnd()}}}),Ss.defineMIME("text/plain","null"),Ss.defineExtension=function( $ e,er){Ss.prototype[ $ e]=er},Ss.defineDocExtension=function( $ e,er){Zd.prototype[ $ e]=er},Ss.fromTextArea=hl,Ms(Ss),Ss.version="5.65.17",Ss})}(codemirror)),codemirror.exports}var codemirrorExports=requireCodemirror();const CodeMirror=getDefaultExportFromCjs(codemirrorExports);function tryOnScopeDispose $ 1(e){return getCurrentScope()?(onScopeDispose(e),!0):!1}function toValue $ 2(e){return typeof e=="function"?e():unref(e)}const isClien
2024-08-21 13:12:53 +08:00
( ? :
( ? : ` +n+":){7}(?:"+n+ ` | : ) | // 1:2:3:4:5:6:7:: 1:2:3:4:5:6:7:8
( ? : ` +n+":){6}(?:"+y+"|:"+n+ ` | : ) | // 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
( ? : ` +n+":){5}(?::"+y+"|(?::"+n+ ` ) { 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
( ? : ` +n+":){4}(?:(?::"+n+"){0,1}:"+y+"|(?::"+n+ ` ) { 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
( ? : ` +n+":){3}(?:(?::"+n+"){0,2}:"+y+"|(?::"+n+ ` ) { 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
( ? : ` +n+":){2}(?:(?::"+n+"){0,3}:"+y+"|(?::"+n+ ` ) { 1 , 5 } | : ) | // 1:2:: 1:2::4:5:6:7:8 1:2::8 1:2::4:5:6:7:1.2.3.4
( ? : ` +n+":){1}(?:(?::"+n+"){0,4}:"+y+"|(?::"+n+ ` ) { 1 , 6 } | : ) | // 1:: 1::3:4:5:6:7:8 1::8 1::3:4:5:6:7:1.2.3.4
( ? : : ( ? : ( ? : : ` +n+"){0,5}:"+y+"|(?::"+n+ ` ) { 1 , 7 } | : ) ) // ::2:3:4:5:6:7:8 ::2:3:4:5:6:7:8 ::8 ::1.2.3.4
) ( ? : % [ 0 - 9 a - zA - Z ] { 1 , } ) ? // %eth0 %1
2024-08-25 11:35:35 +08:00
` ).replace(/ \s * \/ \/ .* $ /gm,"").replace(/ \n /g,"").trim(),L=new RegExp("(?:^"+y+" $ )|(?:^"+k+" $ )"), $ =new RegExp("^"+y+" $ "),j=new RegExp("^"+k+" $ "),V=function(Ne){return Ne&&Ne.exact?L:new RegExp("(?:"+t(Ne)+y+t(Ne)+")|(?:"+t(Ne)+k+t(Ne)+")","g")};V.v4=function(he){return he&&he.exact? $ :new RegExp(""+t(he)+y+t(he),"g")},V.v6=function(he){return he&&he.exact?j:new RegExp(""+t(he)+k+t(he),"g")};var z="(?:(?:[a-z]+:)?//)",re="(?: \\ S+(?:: \\ S*)?@)?",ie=V.v4().source,oe=V.v6().source,ue="(?:(?:[a-z \\ u00a1- \\ uffff0-9][-_]*)*[a-z \\ u00a1- \\ uffff0-9]+)",de="(?: \\ .(?:[a-z \\ u00a1- \\ uffff0-9]-*)*[a-z \\ u00a1- \\ uffff0-9]+)*",pe="(?: \\ .(?:[a-z \\ u00a1- \\ uffff]{2,}))",Ie="(?:: \\ d{2,5})?",_e='(?:[/?#][^ \\ s"]*)?',Ce="(?:"+z+"|www \\ .)"+re+"(?:localhost|"+ie+"|"+oe+"|"+ue+de+pe+")"+Ie+_e;return urlReg=new RegExp("(?:^"+Ce+" $ )","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(t){return types $ 2.number(t)&&parseInt(t,10)===t},float:function(t){return types $ 2.number(t)&&!types $ 2.integer(t)},array:function(t){return Array.isArray(t)},regexp:function(t){if(t instanceof RegExp)return!0;try{return!!new RegExp(t)}catch{return!1}},date:function(t){return typeof t.getTime=="function"&&typeof t.getMonth=="function"&&typeof t.getYear=="function"&&!isNaN(t.getTime())},number:function(t){return isNaN(t)?!1:typeof t=="number"},object:function(t){return typeof t=="object"&&!types $ 2.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(pattern $ 2.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(getUrlRegex())},hex:function(t){return typeof t=="string"&&!!t.match(pattern $ 2.hex)}},type $ 1=function(t,y,n,k,L){if(t.required&&y===void 0){required $ 1(t,y,n,k,L);return}var $ =["integer","float","array","regexp","object","method","email","number","date","url","hex"],j=t.type; $ .indexOf(j)>-1?types $ 2[j](y)||k.push(format $ 1(L.messages.types[j],t.fullField,t.type)):j&&typeof y!==t.type&&k.push(format $ 1(L.messages.types[j],t.fullField,t.type))},range $ 4=function(t,y,n,k,L){var $ =typeof t.len=="number",j=typeof t.min=="number",V=typeof t.max=="number",z=/[ \u D800- \u DBFF][ \u DC00- \u DFFF]/g,re=y,ie=null,oe=typeof y=="number",ue=typeof y=="string",de=Array.isArray(y);if(oe?ie="number":ue?ie="string":de&&(ie="array"),!ie)return!1;de&&(re=y.length),ue&&(re=y.replace(z,"_").length), $ ?re!==t.len&&k.push(format $ 1(L.messages[ie].len,t.fullField,t.len)):j&&!V&&re<t.min?k.push(format $ 1(L.messages[ie].min,t.fullField,t.min)):V&&!j&&re>t.max?k.push(format $ 1(L.messages[ie].max,t.fullField,t.max)):j&&V&&(re<t.min||re>t.max)&&k.push(format $ 1(L.messages[ie].range,t.fullField,t.min,t.max))},ENUM $ 1="enum",enumerable $ 1=function(t,y,n,k,L){t[ENUM $ 1]=Array.isArray(t[ENUM $ 1])?t[ENUM $ 1]:[],t[ENUM $ 1].indexOf(y)===-1&&k.push(format $ 1(L.messages[ENUM $ 1],t.fullField,t[ENUM $ 1].join(", ")))},pattern $ 1=function(t,y,n,k,L){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(y)||k.push(format $ 1(L.messages.pattern.mismatch,t.fullField,y,t.pattern));else if(typeof t.pattern=="string"){var $ =new RegExp(t.pattern); $ .test(y)||k.push(format $ 1(L.messages.pattern.mismatch,t.fullField,y,t.pattern))}}},rules={required:required $ 1,whitespace,type:type $ 1,range:range $ 4,enum:enumerable $ 1,pattern:pattern $ 1},string=function(t,y,n,k,L){var $ =[],j=t.required||!t.required&&k.hasOwnProperty(t.field);if(j){if(isEmptyValue(y,"string")&&!t.required)return n();rules.required(t,y,k, $ ,L,"string"),isEmptyValue(y,"string")||(rules.type(t,y,k, $ ,L),rules.range(t,y,k, $ ,L),rules.pattern(t,y,k, $ ,L),t.whitespace===!0&&rules.whitespace(t,y,k, $ ,L))}n( $ )},method2=function(t,y,n,k,L){var $ =[],j=t.required||!t.required&&k.hasOwnProperty(t.field);if(j){if(isEmptyValue(y)&&!t.required)return n();rules.required(t,y,k, $ ,L),y!==void 0&&rules.type(t,y,k, $ ,L)}n( $
2024-08-21 13:12:53 +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-25 11:35:35 +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(e){const t=window.getComputedStyle(e),y=t.getPropertyValue("box-sizing"),n=Number.parseFloat(t.getPropertyValue("padding-bottom"))+Number.parseFloat(t.getPropertyValue("padding-top")),k=Number.parseFloat(t.getPropertyValue("border-bottom-width"))+Number.parseFloat(t.getPropertyValue("border-top-width"));return{contextStyle:CONTEXT_STYLE.map( $ => ` $ { $ } : $ { t . getPropertyValue ( $ ) } ` ).join(";"),paddingSize:n,borderSize:k,boxSizing:y}}function calcTextareaHeight(e,t=1,y){var n;hiddenTextarea||(hiddenTextarea=document.createElement("textarea"),document.body.appendChild(hiddenTextarea));const{paddingSize:k,borderSize:L,boxSizing: $ ,contextStyle:j}=calculateNodeStyling(e);hiddenTextarea.setAttribute("style", ` $ { j } ; $ { HIDDEN _STYLE } ` ),hiddenTextarea.value=e.value||e.placeholder||"";let V=hiddenTextarea.scrollHeight;const z={}; $ ==="border-box"?V=V+L: $ ==="content-box"&&(V=V-k),hiddenTextarea.value="";const re=hiddenTextarea.scrollHeight-k;if(isNumber $ 3(t)){let ie=re*t; $ ==="border-box"&&(ie=ie+k+L),V=Math.max(ie,V),z.minHeight= ` $ { ie } px ` }if(isNumber $ 3(y)){let ie=re*y; $ ==="border-box"&&(ie=ie+k+L),V=Math.min(ie,V)}return z.height= ` $ { V } px ` ,(n=hiddenTextarea.parentNode)==null||n.removeChild(hiddenTextarea),hiddenTextarea=void 0,z}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]:e=>isString $ 3(e),input:e=>isString $ 3(e),change:e=>isString $ 3(e),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,clear:()=>!0,mouseleave:e=>e instanceof MouseEvent,mouseenter:e=>e instanceof MouseEvent,keydown:e=>e instanceof Event,compositionstart:e=>e instanceof CompositionEvent,compositionupdate:e=>e instanceof CompositionEvent,compositionend:e=>e instanceof CompositionEvent},__default__ $ 1J=defineComponent({name:"ElInput",inheritAttrs:!1}),_sfc_main $ 2V=defineComponent({...__default__ $ 1J,props:inputProps,emits:inputEmits,setup(e,{expose:t,emit:y}){const n=e,k=useAttrs $ 1(),L=useSlots(), $ =computed(()=>{const jr={};return n.containerRole==="combobox"&&(jr["aria-haspopup"]=k["aria-haspopup"],jr["aria-owns"]=k["aria-owns"],jr["aria-expanded"]=k["aria-expanded"]),jr}),j=computed(()=>[n.type==="textarea"?Ie.b():pe.b(),pe.m(ue.value),pe.is("disabled",de.value),pe.is("exceed",Rr.value),{[pe.b("group")]:L.prepend||L.append,[pe.m("prefix")]:L.prefix||n.prefixIcon,[pe.m("suffix")]:L.suffix||n.suffixIcon||n.clearable||n.showPassword,[pe.bm("suffix","password-clear")]:cr.value&&mr.value,[pe.b("hidden")]:n.type==="hidden"},k.class]),V=computed(()=>[pe.e("wrapper"),pe.is("focus",Ue.value)]),z=useAttrs({excludeKeys:computed(()=>Object.keys( $ .value))}),{form:re,formItem:ie}=useFormItem(),{inputId:oe}=useFormItemInputId(n,{formItemContext:ie}),ue=useFormSize(),de=useFormDisabled(),pe=useNamespace("input"),Ie=useNamespace("textarea"),_e=shallowRef(),Ce=shallowRef(),he=ref $ 1(!1),Ne=ref $ 1(!1),Fe=ref $ 1(),Ve=shallowRef(n.inputStyle),jt=computed(()=>_e.value||Ce.value),{wrapperRef:Et,isFocused:Ue}=use
2024-08-21 13:12:53 +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-25 11:35:35 +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 ( e , t ) { i f ( e & & e . a d d E v e n t L i s t e n e r ) { c o n s t y = f u n c t i o n ( n ) { c o n s t k = Y ( n ) ; t & & R e f l e c t . a p p l y ( t , t h i s , [ n , k ] ) } ; e . a d d E v e n t L i s t e n e r ( " w h e e l " , y , { 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 ( e , t ) { m o u s e w h e e l ( e , t . 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 ( e , { e m i t : t } ) { c o n s t y = e , n = 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 : k , g e t M i n u t e s L i s t : L , g e t S e c o n d s L i s t : $ } = g e t T i m e L i s t s ( y . d i s a b l e d H o u r s , y . d i s a b l e d M i n u t e s , y . d i s a b l e d S e c o n d s ) ; l e t j = ! 1 ; c o n s t V = r e f $ 1 ( ) , z = r e f $ 1 ( ) , r e = r e f $ 1 ( ) , i e = r e f $ 1 ( ) , o e = { h o u r s : z , m i n u t e s : r e , s e c o n d s : i e } , u e = c o m p u t e d ( ( ) = > y . 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 ) ) , d e = c o m p u t e d ( ( ) = > { c o n s t { s p i n n e r D a t e : h r } = y , b r = h r . h o u r ( ) , R r = h r . m i n u t e ( ) , x r = h r . s e c o n d ( ) ; r e t u r n { h o u r s : b r , m i n u t e s : R r , s e c o n d s : x r } } ) , p e = c o m p u t e d ( ( ) = > { c o n s t { h o u r s : h r , m i n u t e s : b r } = u n r e f ( d e ) ; r e t u r n { h o u r s : k ( y . r o l e ) , m i n u t e s : L ( h r , y . r o l e ) , s e c o n d s : $ ( h r , b r , y . r o l e ) } } ) , I e = c o m p u t e d ( ( ) = > { c o n s t { h o u r s : h r , m i n u t e s : b r , s e c o n d s : R r } = u n r e f ( d e ) ; r e t u r n { h o u r s : b u i l d T i m e L i s t ( h r , 2 3 ) , m i n u t e s : b u i l d T i m e L i s t ( b r , 5 9 ) , s e c o n d s : b u i l d T i m e L i s t ( R r , 5 9 ) } } ) , _ e = d e b o u n c e ( h r = > { j = ! 1 , N e ( h r ) } , 2 0 0 ) , C e = h r = > { i f ( ! ! ! y . a m P m M o d e ) r e t u r n " " ; c o n s t R r = y . a m P m M o d e = = = " A " ; l e t x r = h r < 1 2 ? " a m " : " p m " ; r e t u r n R r & & ( x r = x r . t o U p p e r C a s e ( ) ) , x r } , h e = h r = > { l e t b r ; s w i t c h ( h r ) { c a s e " h o u r s " : b r = [ 0 , 2 ] ; b r e a k ; c a s e " m i n u t e s " : b r = [ 3 , 5 ] ; b r e a k ; c a s e " s e c o n d s " : b r = [ 6 , 8 ] ; b r e a k } c o n s t [ R r , x r ] = b r ; t ( " s e l e c t - r a n g e " , R r , x r ) , V . v a l u e = h r } , N e = h r = > { j t ( h r , u n r e f ( d e ) [ h r ] ) } , F e = ( ) = > { N e ( " h o u r s " ) , N e ( " m i n u t e s " ) , N e ( " s e c o n d s " ) } , V e = h r = > h r . q u e r y S e l e c t o r ( ` . $ { n . n a m e s p a c e . v a l u e } - s c r o l l b a r _ _ w r a p ` ) , j t = ( h r , b r ) = > { i f ( y . a r r o w C o n t r o l ) r e t u r n ; c o n s t R r = u n r e f ( o e [ h r ] ) ; R r & & R r . $ e l & & ( V e ( R r . $ e l ) . s c r o l l T o p = M a t h . m a x ( 0 , b r * E t ( h r ) ) ) } , E t = h r = > { c o n s t b r = u n r e f ( o e [ h r ] ) , R r = b r = = n u l l ? v o i d 0 : b r . $ e l . q u e r y S e l e c t o r ( " l i " ) ; r e t u r n R r & & N u m b e r . p a r s e F l o a t ( g e t S t y l e ( R r , " h e i g h t " ) ) | | 0 } , U e = ( ) = > { k t ( 1 ) } , q e = ( ) = > { k t ( - 1 ) } , k t = h r = > { V . v a l u e | | h e ( " h o u r s " ) ; c o n s t b r = V . v a l u e , R r = u n r e f ( d e ) [ b r ] , x r = V . v a l u e = = = " h o u r s " ? 2 4 : 6 0 , E r = t r ( b r , R r , h r , x r ) ; r r ( b r , E r ) , j t ( b r , E r ) , n e x t T i c k $ 1 ( ( ) = > h e ( b r ) ) } , t r = ( h r , b r , R r , x r ) = > { l e t E r = ( b r + R r + x r ) % x r ; c o n s t v r = u n r e f ( p e ) [ h r ] ; f o r ( ; v r [ E r ] & & E r ! = = b r ; ) E r = ( E r + R r + x r ) % x r ; r e t u r n E r } , r r = ( h r , b r ) = > { i f ( u n r e f ( p e ) [ h r ] [ b r ] ) r e t u r n ; c o n s t { h o u r s : E r , m i n u t e s : v r , s e c o n d s : I r } = u n r e f ( d e ) ; l e t L r ; s w i t c h ( h r ) { c a s e " h o u r s " : L r = y . s p i n n e r D a t e . h o u r ( b r ) . m i n u t e ( v r ) . s e c o n d ( I r ) ; b r e a k ; c a s e " m i n u t e s " : L r = y . s p i n n e r D a t e . h o u r ( E r ) . m i n u t e ( b r ) . s e c o n d ( I r ) ; b r e a k ; c a s e " s e c o n d s " : L r = y . s p i n n e r D a t e . h o u r ( E r ) . m i n u t e ( v r ) . s e c o n d ( b r ) ; b r e a k } t ( " c h a n g e " , L r ) } , a r = ( h r , { v a l u e : b r , d i s a b l e d : R r } ) = > { R r | | ( r r ( h r , b r ) , h e ( h r ) , j t ( h r , b r ) ) } , n r = h r = > { j = ! 0 , _ e ( h r ) ; c o n s t b r = M a t h . m i n ( M a t h . r o u n d ( ( V e ( u n r e f ( o e [ h r ] ) . $ e l ) . s c r o l l T o p - ( u r ( h r ) * . 5 - 1 0 ) / E t ( h r ) + 3 ) / E t ( h r ) ) , h r = = = " h o u r s " ? 2 3 : 5 9 ) ; r r ( h r , b r ) } , u r = h r = > u n r e f ( o e [ h r ] ) . $ e l . o f f s e t H e i g h t , c r = ( ) = > { c o n s t h r = b r = > { c o n s t R r = u n r e f ( o e [ b r ] ) ; R r & & R r . $ e l & & ( V e ( R r . $ e l ) . o n s c r o l l = ( ) = > { n r ( b r ) } ) } ; h r ( " h o u r s " ) , h r ( " m i n u t e s " ) , h r ( " 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 ( ( ) = > { ! y . a r r o w C o n t r o l & & c r ( ) , F e ( ) , y . r o l e = = = " s t a r t " & & h e ( " h o u r s " ) } ) } ) ; c o n s t m r = ( h r , b r ) = > { o e [ b r ] . v a l u e = h r } ; r e t u r n t ( " s e t - o p t i o n " , [ ` $ { y . r o l e } _ s c r o l l D o w n ` , k t ] ) , t ( " s e t - o p t i o n " , [ ` $ { y . r o l e } _ e m i t S e l e c t R a n g e ` , h e ] ) , w a t c h ( ( ) = > y . s p i n n e r D a t e , ( ) = > { j | | F e ( ) } ) , ( h r , b r ) = > ( 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 ( n ) . b ( " s p i n n e r " ) , { " h a s - s e c o n d s " : h r . s h o w S e c o n d s } ] ) } , [ h r . 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 ( u e ) , R r = > ( 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 : R r , r e f _ f o r : ! 0 , r e f : x r = > m r ( x r , R r ) , c l a s s : n o r m a l i z e C l a s s ( u n r e f ( n ) . 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 ( n ) . 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 : x r = > h e ( R r ) , o n M o u s e m o v e : x r = > N e ( R r ) } , { 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 ( p e ) [ R r ] , ( x r , E r ) = > ( 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 r , c l a s s : n o r m a l i z e C l a s s ( [ u n r e f ( n ) . b e ( " s p i n n e r " , " i t e m " ) , u n r e f ( n ) . i s ( " a c t i v e " , E r = = =
2024-08-21 13:12:53 +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-25 11:35:35 +08:00
` ),createBaseVNode("span")]),_:1},8,["model-value","label","disabled","onUpdate:modelValue","onClick"])):e.isLeaf&&e.node.checked?(openBlock(),createBlock(z,{key:2,class:normalizeClass(e.ns.e("prefix"))},{default:withCtx(()=>[createVNode(V)]),_:1},8,["class"])):createCommentVNode("v-if",!0),createCommentVNode(" content "),createVNode(re),createCommentVNode(" postfix "),e.isLeaf?createCommentVNode("v-if",!0):(openBlock(),createElementBlock(Fragment,{key:3},[e.node.loading?(openBlock(),createBlock(z,{key:0,class:normalizeClass([e.ns.is("loading"),e.ns.e("postfix")])},{default:withCtx(()=>[createVNode(ie)]),_:1},8,["class"])):(openBlock(),createBlock(z,{key:1,class:normalizeClass(["arrow-right",e.ns.e("postfix")])},{default:withCtx(()=>[createVNode(oe)]),_: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(e){const t=getCurrentInstance(),y=useNamespace("cascader-menu"),{t:n}=useLocale(),k=useId();let L=null, $ =null;const j=inject(CASCADER_PANEL_INJECTION_KEY),V=ref $ 1(null),z=computed(()=>!e.nodes.length),re=computed(()=>!j.initialLoaded),ie=computed(()=> ` $ { k . value } - $ { e . index } ` ),oe=Ie=>{L=Ie.target},ue=Ie=>{if(!(!j.isHoverMenu||!L||!V.value))if(L.contains(Ie.target)){de();const _e=t.vnode.el,{left:Ce}=_e.getBoundingClientRect(),{offsetWidth:he,offsetHeight:Ne}=_e,Fe=Ie.clientX-Ce,Ve=L.offsetTop,jt=Ve+L.offsetHeight;V.value.innerHTML= `
< path style = "pointer-events: auto;" fill = "transparent" d = "M${Fe} ${Ve} L${he} 0 V${Ve} Z" / >
< path style = "pointer-events: auto;" fill = "transparent" d = "M${Fe} ${jt} L${he} ${Ne} V${jt} Z" / >
` }else $ ||( $ =window.setTimeout(pe,j.config.hoverThreshold))},de=()=>{ $ &&(clearTimeout( $ ), $ =null)},pe=()=>{V.value&&(V.value.innerHTML="",de())};return{ns:y,panel:j,hoverZone:V,isEmpty:z,isLoading:re,menuId:ie,t:n,handleExpand:oe,handleMouseMove:ue,clearHoverZone:pe}}});function _sfc_render $ s(e,t,y,n,k,L){const $ =resolveComponent("el-cascader-node"),j=resolveComponent("loading"),V=resolveComponent("el-icon"),z=resolveComponent("el-scrollbar");return openBlock(),createBlock(z,{key:e.menuId,tag:"ul",role:"menu",class:normalizeClass(e.ns.b()),"wrap-class":e.ns.e("wrap"),"view-class":[e.ns.e("list"),e.ns.is("empty",e.isEmpty)],onMousemove:e.handleMouseMove,onMouseleave:e.clearHoverZone},{default:withCtx(()=>{var re;return[(openBlock(!0),createElementBlock(Fragment,null,renderList(e.nodes,ie=>(openBlock(),createBlock( $ ,{key:ie.uid,node:ie,"menu-id":e.menuId,onExpand:e.handleExpand},null,8,["node","menu-id","onExpand"]))),128)),e.isLoading?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(e.ns.e("empty-text"))},[createVNode(V,{size:"14",class:normalizeClass(e.ns.is("loading"))},{default:withCtx(()=>[createVNode(j)]),_:1},8,["class"]),createTextVNode(" "+toDisplayString(e.t("el.cascader.loading")),1)],2)):e.isEmpty?(openBlock(),createElementBlock("div",{key:1,class:normalizeClass(e.ns.e("empty-text"))},toDisplayString(e.t("el.cascader.noData")),3)):(re=e.panel)!=null&&re.isHoverMenu?(openBlock(),createElementBlock("svg",{key:2,ref:"hoverZone",class:normalizeClass(e.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=e=>{const t=[e];let{parent:y}=e;for(;y;)t.unshift(y),y=y.parent;return t};let Node $ 2=class Y0{constructor(t,y,n,k=!1){this.data=t,this.config=y,this.parent=n,this.root=k,this.uid=uid++,this.checked=!1,this.indeterminate=!1,this.loading=!1;const{value:L,label: $ ,children:j}=y,V=t[j],z=calculatePathNodes(this);this.level=k?0:n?n.level+1:1,this.value=t[L],this.label=t[ $ ],this.pathNodes=z,this.pathValues=z.map(re=>re.value),this.pathLabels=z.map(re=>re.label),this.childrenData=V,this.children=(V||[]).map(re=>new Y0(re,y,this)),this.loaded=!y.lazy||this.isLeaf||!isEmpty $ 1(V)}get isDisabled(){const{data:t,parent:y,config:n}=this,{disabled:k,checkStrictly:L}=n;return(isFunction $ 4(k)?k(t,this):!!t[k])||!L&&(y==null?void 0:y.isDisabled)}get isLeaf(){const{data:t,config:y,childrenData:n,loaded:k}=this,{lazy:L,leaf: $ }=y,j=isFunction $ 4( $ )? $ (t,this):t[ $ ];return isUndefined $ 1(j)?L&&!k?!1:!(Array.isArray(n)&&n.length):!!j}get valueByOption(){return this.config.emitPath?this.pathValues:this.value}appendChild(t){const{childrenData:y,children:n}=this,k=new Y0(t,this.config,this);return Array.isArray(y)?y.push(t):this.childrenData=[t],n.push(k),k}calcText(t,y){const n=t?this.pathLabels.join(y):this.label;return this.text=n,n}broadcast(t,...y){const n= ` onParent$ { capitalize ( t ) } ` ;this.children.forEach(k=>{k&&(k.broadcast(t,...y),k[n]&&k[n](...y))})}emit(t,...y){const{parent:n}=this,k= ` onChild$ { capitalize ( t ) } ` ;n&&(n[k]&&n[k](...y),n.emit(t,...y))}onParentCheck(t){this.isDisabled||this.setCheckState(t)}onChildCheck(){const{children:t}=this,y=t.filter(k=>!k.isDisabled),n=y.length?y.every(k=>k.checked):!1;this.setCheckState(n)}setCheckState(t){const y=this.children.length,n=this.children.reduce((k,L)=>{const $ =L.checked?1:L.indeterminate?.5:0;return k+ $ },0);this.checked=this.loaded&&this.children.filter(k=>!k.isDisabled).every(k=>k.loaded&&k.checked)&&t,this.indeterminate=this.loaded&&n!==y&&n>0}doCheck(t){if(this.checked===t)return;const{checkStrictly:y,multiple:n}=this.config;y||!n?this.checked=t:(this.broadcast("check",t),this.setCheckState(t),this.emit("check"))}};const flatNodes=(e,t)=>e.reduce((y,n)=>(n.isLeaf?y.push(n):(!t&&y.push(n),y=y.concat(flatNodes(n.children,t))),y),[]);let Store $ 1=class{constructor(t,y){this.config=y;const n=(t||[]).map(k=>new Node $ 2(k,this.config));this.nodes=n,this.allNodes=
2024-08-21 13:12:53 +08:00
M 50 50
2024-08-22 08:49:17 +08:00
m 0 $ { Ne ? "" : "-" } $ { he }
a $ { he } $ { he } 0 1 1 0 $ { Ne ? "-" : "" } $ { he * 2 }
a $ { he } $ { he } 0 1 1 0 $ { Ne ? "" : "-" } $ { he * 2 }
2024-08-25 11:35:35 +08:00
` }),V=computed(()=>2*Math.PI* $ .value),z=computed(()=>t.type==="dashboard"?.75:1),re=computed(()=> ` $ { - 1 * V . value * ( 1 - z . value ) / 2 } px ` ),ie=computed(()=>({strokeDasharray: ` $ { V . value * z . value } px , $ { V . value } px ` ,strokeDashoffset:re.value})),oe=computed(()=>({strokeDasharray: ` $ { V . value * z . value * ( t . percentage / 100 ) } px , $ { V . value } px ` ,strokeDashoffset:re.value,transition:"stroke-dasharray 0.6s ease 0s, stroke 0.6s ease, opacity ease 0.6s"})),ue=computed(()=>{let he;return t.color?he=Ce(t.percentage):he=y[t.status]||y.default,he}),de=computed(()=>t.status==="warning"?warning_filled_default:t.type==="line"?t.status==="success"?circle_check_default:circle_close_default:t.status==="success"?check_default:close_default),pe=computed(()=>t.type==="line"?12+t.strokeWidth*.4:t.width*.111111+2),Ie=computed(()=>t.format(t.percentage));function _e(he){const Ne=100/he.length;return he.map((Ve,jt)=>isString $ 3(Ve)?{color:Ve,percentage:(jt+1)*Ne}:Ve).sort((Ve,jt)=>Ve.percentage-jt.percentage)}const Ce=he=>{var Ne;const{color:Fe}=t;if(isFunction $ 4(Fe))return Fe(he);if(isString $ 3(Fe))return Fe;{const Ve=_e(Fe);for(const jt of Ve)if(jt.percentage>he)return jt.color;return(Ne=Ve[Ve.length-1])==null?void 0:Ne.color}};return(he,Ne)=>(openBlock(),createElementBlock("div",{class:normalizeClass([unref(n).b(),unref(n).m(he.type),unref(n).is(he.status),{[unref(n).m("without-text")]:!he.showText,[unref(n).m("text-inside")]:he.textInside}]),role:"progressbar","aria-valuenow":he.percentage,"aria-valuemin":"0","aria-valuemax":"100"},[he.type==="line"?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(n).b("bar"))},[createBaseVNode("div",{class:normalizeClass(unref(n).be("bar","outer")),style:normalizeStyle({height: ` $ { he . strokeWidth } px ` })},[createBaseVNode("div",{class:normalizeClass([unref(n).be("bar","inner"),{[unref(n).bem("bar","inner","indeterminate")]:he.indeterminate},{[unref(n).bem("bar","inner","striped")]:he.striped},{[unref(n).bem("bar","inner","striped-flow")]:he.stripedFlow}]),style:normalizeStyle(unref(k))},[(he.showText||he. $ slots.default)&&he.textInside?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(n).be("bar","innerText"))},[renderSlot(he. $ slots,"default",{percentage:he.percentage},()=>[createBaseVNode("span",null,toDisplayString(unref(Ie)),1)])],2)):createCommentVNode("v-if",!0)],6)],6)],2)):(openBlock(),createElementBlock("div",{key:1,class:normalizeClass(unref(n).b("circle")),style:normalizeStyle({height: ` $ { he . width } px ` ,width: ` $ { he . width } px ` })},[(openBlock(),createElementBlock("svg",{viewBox:"0 0 100 100"},[createBaseVNode("path",{class:normalizeClass(unref(n).be("circle","track")),d:unref(j),stroke: ` var ( $ { unref ( n ) . cssVarName ( "fill-color-light" ) } , # e5e9f2 ) ` ,"stroke-linecap":he.strokeLinecap,"stroke-width":unref(L),fill:"none",style:normalizeStyle(unref(ie))},null,14,["d","stroke","stroke-linecap","stroke-width"]),createBaseVNode("path",{class:normalizeClass(unref(n).be("circle","path")),d:unref(j),stroke:unref(ue),fill:"none",opacity:he.percentage?1:0,"stroke-linecap":he.strokeLinecap,"stroke-width":unref(L),style:normalizeStyle(unref(oe))},null,14,["d","stroke","opacity","stroke-linecap","stroke-width"])]))],6)),(he.showText||he. $ slots.default)&&!he.textInside?(openBlock(),createElementBlock("div",{key:2,class:normalizeClass(unref(n).e("text")),style:normalizeStyle({fontSize: ` $ { unref ( pe ) } px ` })},[renderSlot(he. $ slots,"default",{percentage:he.percentage},()=>[he.status?(openBlock(),createBlock(unref(ElIcon),{key:1},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(unref(de))))]),_:1})):(openBlock(),createElementBlock("span",{key:0},toDisplayString(unref(Ie)),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},colors:{type:definePropType([Array,Object]),default:()
` ||z===" \r "){ $ =V;continue}if(L.includes(z)){const re= $ ===-1?n: $ ;j={pattern:k.slice(V+1,re),start:V+1,end:re,prefix:z,prefixIndex:V,splitIndex: $ ,selectionEnd:n};break}}return j},getCursorPosition=(e,t={debug:!1,useSelectionEnd:!1})=>{const y=e.selectionStart!==null?e.selectionStart:0,n=e.selectionEnd!==null?e.selectionEnd:0,k=t.useSelectionEnd?n:y,L=["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(t.debug){const oe=document.querySelector("#input-textarea-caret-position-mirror-div");oe!=null&&oe.parentNode&&oe.parentNode.removeChild(oe)}const $ =document.createElement("div"); $ .id="input-textarea-caret-position-mirror-div",document.body.appendChild( $ );const j= $ .style,V=window.getComputedStyle(e),z=e.nodeName==="INPUT";j.whiteSpace=z?"nowrap":"pre-wrap",z||(j.wordWrap="break-word"),j.position="absolute",t.debug||(j.visibility="hidden"),L.forEach(oe=>{if(z&&oe==="lineHeight")if(V.boxSizing==="border-box"){const ue=Number.parseInt(V.height),de=Number.parseInt(V.paddingTop)+Number.parseInt(V.paddingBottom)+Number.parseInt(V.borderTopWidth)+Number.parseInt(V.borderBottomWidth),pe=de+Number.parseInt(V.lineHeight);ue>pe?j.lineHeight= ` $ { ue - de } px ` :ue===pe?j.lineHeight=V.lineHeight:j.lineHeight="0"}else j.lineHeight=V.height;else j[oe]=V[oe]}),isFirefox()?e.scrollHeight>Number.parseInt(V.height)&&(j.overflowY="scroll"):j.overflow="hidden", $ .textContent=e.value.slice(0,Math.max(0,k)),z&& $ .textContent&&( $ .textContent= $ .textContent.replace(/ \s /g," "));const re=document.createElement("span");re.textContent=e.value.slice(Math.max(0,k))||".",re.style.position="relative",re.style.left= ` $ { - e . scrollLeft } px ` ,re.style.top= ` $ { - e . scrollTop } px ` , $ .appendChild(re);const ie={top:re.offsetTop+Number.parseInt(V.borderTopWidth),left:re.offsetLeft+Number.parseInt(V.borderLeftWidth),height:Number.parseInt(V.fontSize)*1.5};return t.debug?re.style.backgroundColor="#aaa":document.body.removeChild( $ ),ie.left>=e.clientWidth&&(ie.left=e.clientWidth),ie},mentionProps=buildProps({...inputProps,options:{type:definePropType(Array),default:()=>[]},prefix:{type:definePropType([String,Array]),default:"@",validator:e=>isString $ 3(e)?e.length===1:e.every(t=>isString $ 3(t)&&t.length===1)},split:{type:String,default:" ",validator:e=>e.length===1},filterOption:{type:definePropType([Boolean,Function]),default:()=>filterOption,validator:e=>e===!1?!0:isFunction $ 4(e)},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]:e=>isString $ 3(e),search:(e,t)=>isString $ 3(e)&&isString $ 3(t),select:(e,t)=>isString $ 3(e.value)&&isString $ 3(t),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent},mentionDropdownProps=buildProps({options:{type:definePropType(Array),default:()=>[]},loading:Boolean,disabled:Boolean}),mentionDropdownEmits={select:e=>isString $ 3(e.value)},__default__ $ 3=defineComponent({name:"ElMentionDropdown"}),_sfc_main $ A=defineComponent({...__default__ $ 3,props:mentionDropdownProps,emits:mentionDropdownEmits,setup(e,{expose:t,emit:y}){const n=e,k=useNamespace("mention"),{t:L}=useLocale(), $ =ref $ 1(-1),j=ref $ 1(),V=ref $ 1(),z=ref $ 1(),re=(he,Ne)=>[k.be("dropdown","item"),k.is("hovering", $ .value===Ne),k.is("disabled",he.disabled||n.disabled)],ie=he=>{he.disabled||n.disabled||y("select",he)},oe=he=>{ $ .value=he},ue=computed(()=>n.disabled||n.options.every(he=>he.disabled)),de=computed(()=>n.options[ $ .value]),pe=()=>{de.value&&y("select",de.value)},Ie=he=>{const{options:Ne}=n;if(Ne.length===0||ue.value)return;he==="next"?( $ .va
https : //github.com/highlightjs/highlight.js/issues/2277`),Rr=cr,br=mr),hr===void 0&&(hr=!0);const xr={code:br,language:Rr};nr("before:highlight",xr);const Er=xr.result?xr.result:ie(xr.language,xr.code,hr);return Er.code=xr.code,nr("after:highlight",Er),Er}function ie(cr,mr,hr,br){const Rr=Object.create(null);function xr(Wa,qo){return Wa.keywords[qo]}function Er(){if(!kr.keywords){Kr.addText(Nr);return}let Wa=0;kr.keywordPatternRe.lastIndex=0;let qo=kr.keywordPatternRe.exec(Nr),ds="";for(;qo;){ds+=Nr.substring(Wa,qo.index);const Kn=yr.case_insensitive?qo[0].toLowerCase():qo[0],Hr=xr(kr,Kn);if(Hr){const[Ar,On]=Hr;if(Kr.addText(ds),ds="",Rr[Kn]=(Rr[Kn]||0)+1,Rr[Kn]<=MAX_KEYWORD_HITS&&(jr+=On),Ar.startsWith("_"))ds+=qo[0];else{const In=yr.classNameAliases[Ar]||Ar;Lr(qo[0],In)}}else ds+=qo[0];Wa=kr.keywordPatternRe.lastIndex,qo=kr.keywordPatternRe.exec(Nr)}ds+=Nr.substring(Wa),Kr.addText(ds)}function vr(){if(Nr==="")return;let Wa=null;if(typeof kr.subLanguage=="string"){if(!t[kr.subLanguage]){Kr.addText(Nr);return}Wa=ie(kr.subLanguage,Nr,!0,Wr[kr.subLanguage]),Wr[kr.subLanguage]=Wa._top}else Wa=ue(Nr,kr.subLanguage.length?kr.subLanguage:null);kr.relevance>0&&(jr+=Wa.relevance),Kr.__addSublanguage(Wa._emitter,Wa.language)}function Ir(){kr.subLanguage!=null?vr():Er(),Nr=""}function Lr(Wa,qo){Wa!==""&&(Kr.startScope(qo),Kr.addText(Wa),Kr.endScope())}function gr(Wa,qo){let ds=1;const Kn=qo.length-1;for(;ds<=Kn;){if(!Wa._emit[ds]){ds++;continue}const Hr=yr.classNameAliases[Wa[ds]]||Wa[ds],Ar=qo[ds];Hr?Lr(Ar,Hr):(Nr=Ar,Er(),Nr=""),ds++}}function _r(Wa,qo){return Wa.scope&&typeof Wa.scope=="string"&&Kr.openNode(yr.classNameAliases[Wa.scope]||Wa.scope),Wa.beginScope&&(Wa.beginScope._wrap?(Lr(Nr,yr.classNameAliases[Wa.beginScope._wrap]||Wa.beginScope._wrap),Nr=""):Wa.beginScope._multi&&(gr(Wa.beginScope,qo),Nr="")),kr=Object.create(Wa,{parent:{value:kr}}),kr}function Fr(Wa,qo,ds){let Kn=startsWith$1(Wa.endRe,ds);if(Kn){if(Wa["on:end"]){const Hr=new Response$1(Wa);Wa["on:end"](qo,Hr),Hr.isMatchIgnored&&(Kn=!1)}if(Kn){for(;Wa.endsParent&&Wa.parent;)Wa=Wa.parent;return Wa}}if(Wa.endsWithParent)return Fr(Wa.parent,qo,ds)}function zr(Wa){return kr.matcher.regexIndex===0?(Nr+=Wa[0],1):(Po=!0,0)}function Vr(Wa){const qo=Wa[0],ds=Wa.rule,Kn=new Response$1(ds),Hr=[ds.__beforeBegin,ds["on:begin"]];for(const Ar of Hr)if(Ar&&(Ar(Wa,Kn),Kn.isMatchIgnored))return zr(qo);return ds.skip?Nr+=qo:(ds.excludeBegin&&(Nr+=qo),Ir(),!ds.returnBegin&&!ds.excludeBegin&&(Nr=qo)),_r(ds,Wa),ds.returnBegin?0:qo.length}function Gr(Wa){const qo=Wa[0],ds=mr.substring(Wa.index),Kn=Fr(kr,Wa,ds);if(!Kn)return NO_MATCH;const Hr=kr;kr.endScope&&kr.endScope._wrap?(Ir(),Lr(qo,kr.endScope._wrap)):kr.endScope&&kr.endScope._multi?(Ir(),gr(kr.endScope,Wa)):Hr.skip?Nr+=qo:(Hr.returnEnd||Hr.excludeEnd||(Nr+=qo),Ir(),Hr.excludeEnd&&(Nr=qo));do kr.scope&&Kr.closeNode(),!kr.skip&&!kr.subLanguage&&(jr+=kr.relevance),kr=kr.parent;while(kr!==Kn.parent);return Kn.starts&&_r(Kn.starts,Wa),Hr.returnEnd?0:qo.length}function Tr(){const Wa=[];for(let qo=kr;qo!==yr;qo=qo.parent)qo.scope&&Wa.unshift(qo.scope);Wa.forEach(qo=>Kr.openNode(qo))}let Cr={};function Mr(Wa,qo){const ds=qo&&qo[0];if(Nr+=Wa,ds==null)return Ir(),0;if(Cr.type==="begin"&&qo.type==="end"&&Cr.index===qo.index&&ds===""){if(Nr+=mr.slice(qo.index,qo.index+1),!k){const Kn=new Error(`0 width match regex (${cr})`);throw Kn.languageName=cr,Kn.badRule=Cr.rule,Kn}return 1}if(Cr=qo,qo.type==="begin")return Vr(qo);if(qo.type==="illegal"&&!hr){const Kn=new Error('Illegal lexeme "'+ds+'" for mode "'+(kr.scope||"<unnamed>")+'"');throw Kn.mode=kr,Kn}else if(qo.type==="end"){const Kn=Gr(qo);if(Kn!==NO_MATCH)return Kn}if(qo.type==="illegal"&&ds==="")return 1;if(ca>1e5&&ca>qo.index*3)throw new Error("potential infinite loop, way more iterations than matches");return Nr+=ds,ds.length}const yr=Ue(cr);if(!yr)throw error(L.replace("{}",cr)),new Error('Unknown language: "'+cr+'"');const Sr=compileLanguage(yr);let Dr="",kr=br||Sr;const Wr={},Kr=new j.__emitter(j);Tr();let Nr="",jr=0,Qr=0,ca=0,Po=!1;try{if(yr.__emitTokens)yr.__emitTokens(mr,Kr);els
` },de]}}return kotlin_1=k,kotlin_1}var lasso_1,hasRequiredLasso;function requireLasso(){if(hasRequiredLasso)return lasso_1;hasRequiredLasso=1;function e(t){const y="[a-zA-Z_][ \\ w.]*",n="< \\ ?(lasso(script)?|=)",k=" \\ ]| \\ ?>",L={ $ pattern:y+"|&[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"}, $ =t.COMMENT("<!--","-->",{relevance:0}),j={className:"meta",begin:" \\ [noprocess \\ ]",starts:{end:" \\ [/noprocess \\ ]",returnEnd:!0,contains:[ $ ]}},V={className:"meta",begin:" \\ [/noprocess|"+n},z={className:"symbol",begin:"'"+y+"'"},re=[t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,t.inherit(t.C_NUMBER_MODE,{begin:t.C_NUMBER_RE+"|(-?infinity|NaN) \\ b"}),t.inherit(t.APOS_STRING_MODE,{illegal:null}),t.inherit(t.QUOTE_STRING_MODE,{illegal:null}),{className:"string",begin:" ` ",end:" ` "},{variants:[{begin:"[# $ ]"+y},{begin:"#",end:" \\ d+",illegal:" \\ W"}]},{className:"type",begin:":: \\ s*",end:y,illegal:" \\ W"},{className:"params",variants:[{begin:"-(?!infinity)"+y,relevance:0},{begin:"( \\ . \\ . \\ .)"}]},{begin:/(->| \. ) \s */,relevance:0,contains:[z]},{className:"class",beginKeywords:"define",returnEnd:!0,end:" \\ (|=>",contains:[t.inherit(t.TITLE_MODE,{begin:y+"(=(?!>))?|[-+*/%](?!>)"})]}];return{name:"Lasso",aliases:["ls","lassoscript"],case_insensitive:!0,keywords:L,contains:[{className:"meta",begin:k,relevance:0,starts:{end:" \\ [|"+n,returnEnd:!0,relevance:0,contains:[ $ ]}},j,V,{className:"meta",begin:" \\ [no_square_brackets",starts:{end:" \\ [/no_square_brackets \\ ]",keywords:L,contains:[{className:"meta",begin:k,relevance:0,starts:{end:" \\ [noprocess \\ ]|"+n,returnEnd:!0,contains:[ $ ]}},j,V].concat(re)}},{className:"meta",begin:" \\ [",relevance:0},{className:"meta",begin:"^#!",end:"lasso9 $ ",relevance:10}].concat(re)}}return lasso_1=e,lasso_1}var latex_1,hasRequiredLatex;function requireLatex(){if(hasRequiredLatex)return latex_1;hasRequiredLatex=1;function e(t){const n=t.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|middle|[bB]igg?)","(?:[lr]angle|q?quad|[lcvdi]?dots|d?
] ` ,de={scope:"string",variants:[re,z,ie,oe]},pe={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},Ie=["false","null","true"],_e=["__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"],Ce=["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"],Ne={keyword:_e,literal:(ar=>{const nr=[];return ar.forEach(ur=>{nr.push(ur),ur.toLowerCase()===ur?nr.push(ur.toUpperCase()):nr.push(ur.toLowerCase())}),nr})(Ie),built_in:Ce},Fe=ar=>ar.map(nr=>nr.replace(/ \| \d + $ /,"")),Ve={variants:[{match:[/new/,y.concat(ue,"+"),y.concat("(?!",Fe(Ce).join(" \\ b|")," \\ b)"),L],scope:{1:"keyword",4:"title.class"}}]},jt=y.concat(k," \\ b(?! \\ ()"),Et={variants:[{match:[y.concat(/::/,y.lookahead(/(?!class \b )/)),jt],scope:{2:"variable.constant"}},{match:[/::/,/class/],scope:{2:"variable.language"}},{match:[L,y.concat(/::/,y.lookahead(/(?!class \b )/)),jt],scope:{1:"title.class",3:"variable.constant"}},{match:[L,y.concat("::",y.lookahead(/(?!class \b )/))],scope:{1:"title.class"}},{match:[L,/::/,/class/],scope:{1:"title.class",3:"variable.language"}}]},Ue={scope:"attr",match:y.concat(k,y.lookahead(":"),y.lookahead(/(?!::)/))},qe={relevance:0,begin:/ \( /,end:/ \) /,keywords:Ne,contains:[Ue, $ ,Et,t.C_BLOCK_COMMENT_MODE,de,pe,Ve]},kt={relevance:0,match:[/ \b /,y.concat("(?!fn \\ b|function \\ b|",Fe(_e).join(" \\ b|"),"|",Fe(Ce).join(" \\ b|")," \\ b)"),k,y.concat(ue,"*"),y.lookahead(/(?= \( )/)],scope:{3:"title.function.invoke"},contains:[qe]};qe.contains.push(kt);const tr=[Ue,Et,t.C_BLOCK_COMMENT_MODE,de,pe,Ve],rr={begin:y.concat(/# \[ \s */,L),beginScope:"meta",end:/]/,endScope:"meta",keywords:{literal:Ie,keyword:["new","array"]},contains:[{begin:/ \[ /,end:/]/,keywords:{lit
] * ; ` ,relevance:0},{begin:"[vp][0-9]+"}]}}return smali_1=e,smali_1}var smalltalk_1,hasRequiredSmalltalk;function requireSmalltalk(){if(hasRequiredSmalltalk)return smalltalk_1;hasRequiredSmalltalk=1;function e(t){const y="[a-z][a-zA-Z0-9_]*",n={className:"string",begin:" \\ $ .{1}"},k={className:"symbol",begin:"#"+t.UNDERSCORE_IDENT_RE};return{name:"Smalltalk",aliases:["st"],keywords:["self","super","nil","true","false","thisContext"],contains:[t.COMMENT('"','"'),t.APOS_STRING_MODE,{className:"type",begin:" \\ b[A-Z][A-Za-z0-9_]*",relevance:0},{begin:y+":",relevance:0},t.C_NUMBER_MODE,k,n,{begin:" \\ |[ ]*"+y+"([ ]+"+y+")*[ ]* \\ |",returnBegin:!0,end:/ \| /,illegal:/ \S /,contains:[{begin:"( \\ |[ ]*)?"+y}]},{begin:"# \\ (",end:" \\ )",contains:[t.APOS_STRING_MODE,n,t.C_NUMBER_MODE,k]}]}}return smalltalk_1=e,smalltalk_1}var sml_1,hasRequiredSml;function requireSml(){if(hasRequiredSml)return sml_1;hasRequiredSml=1;function e(t){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},t.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' ] * "},t.inherit(t.APOS_STRING_MODE,{className:" string ",relevance:0}),t.inherit(t.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=e,sml_1}var sqf_1,hasRequiredSqf;function requireSqf(){if(hasRequiredSqf)return sqf_1;hasRequiredSqf=1;function e(t){const y={className:" variable ",begin:/\b_+[a-zA-Z]\w*/},n={className:" title ",begin:/[a-zA-Z][a-zA-Z_0-9]*_fnc_[a-zA-Z_0-9]+/},k={className:" string ",variants:[{begin:'" ',end:' "',contains:[{begin:'" "',relevance:0}]},{begin:" '",end:"' ",contains:[{begin:" '' ",relevance:0}]}]},L=[" 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 "],$=[" 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 "],j=[" 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 "," addPlayerScores "," addPrimaryWeaponItem "," addPubl
2024-08-21 13:12:53 +08:00
] * ? "'`},{begin:`" [ ^ \ r
"]*" ` }]},{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)(?= \\ ()"}]},t.COMMENT("^[ ]* \\ *.* $ ",!1),t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE]}}return stata_1=e,stata_1}var step21_1,hasRequiredStep21;function requireStep21(){if(hasRequiredStep21)return step21_1;hasRequiredStep21=1;function e(t){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},t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,t.COMMENT("/ \\ * \\ *!"," \\ */"),t.C_NUMBER_MODE,t.inherit(t.APOS_STRING_MODE,{illegal:null}),t.inherit(t.QUOTE_STRING_MODE,{illegal:null}),{className:"string",begin:"'",end:"'"},{className:"symbol",variants:[{begin:"#",end:" \\ d+",illegal:" \\ W"}]}]}}return step21_1=e,step21_1}var stylus_1,hasRequiredStylus;function requireStylus(){if(hasRequiredStylus)return stylus_1;hasRequiredStylus=1;const e=z=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:z.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:[z.APOS_STRING_MODE,z.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:z.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_-]*/}}),t=["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"],y=["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"],n=[...t,...y],k=["any-hover","any-pointer","aspe
( multipart ) ? ` ,end: ` \ \ ]
2024-08-25 11:35:35 +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=e,subunit_1}var swift_1,hasRequiredSwift;function requireSwift(){if(hasRequiredSwift)return swift_1;hasRequiredSwift=1;function e(Et){return Et?typeof Et=="string"?Et:Et.source:null}function t(Et){return y("(?=",Et,")")}function y(...Et){return Et.map(qe=>e(qe)).join("")}function n(Et){const Ue=Et[Et.length-1];return typeof Ue=="object"&&Ue.constructor===Object?(Et.splice(Et.length-1,1),Ue):{}}function k(...Et){return"("+(n(Et).capture?"":"?:")+Et.map(kt=>e(kt)).join("|")+")"}const L=Et=>y(/ \b /,Et,/ \w $ /.test(Et)?/ \b /:/ \B /), $ =["Protocol","Type"].map(L),j=["init","self"].map(L),V=["Any","Self"],z=["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"],re=["false","nil","true"],ie=["assignment","associativity","higherThan","left","lowerThan","none","right"],oe=["#colorLiteral","#column","#dsohandle","#else","#elseif","#endif","#error","#file","#fileID","#fileLiteral","#filePath","#function","#if","#imageLiteral","#keyPath","#line","#selector","#sourceLocation","#warning"],ue=["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"],de=k(/[/= \- +!*%<>&|^~?]/,/[ \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]/),pe=k(de,/[ \u 0300- \u 036F]/,/[ \u 1DC0- \u 1DFF]/,/[ \u 20D0- \u 20FF]/,/[ \u FE00- \u FE0F]/,/[ \u FE20- \u FE2F]/),Ie=y(de,pe,"*"),_e=k(/[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]/),Ce=k(_e,/ \d /,/[ \u 0300- \u 036F \u 1DC0- \u 1DFF \u 20D0- \u 20FF \u FE20- \u FE2F]/),he=y(_e,Ce,"*"),Ne=y(/[A-Z]/,Ce,"*"),Fe=["attached","autoclosure",y(/convention \( /,k("swift","block","c"),/ \) /),"discardableResult","dynamicCallable","dynamicMemberLookup","escaping","freestanding","frozen","GKInspectable","IBAction","IBDesignable","IBInspectable","IBOutlet","IBSegueAction","inlinable","main","nonobjc","NSApplicationMain","NSCopying","NSManaged",y(/objc \( /,he,/ \)
2024-08-21 13:12:53 +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
l ` +t/2.075+" -"+t+ `
c5 . 3 , - 9.3 , 12 , - 14 , 20 , - 14
H400000v ` +(40+t)+ ` H845 . 2724
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
M ` +(834+t)+" "+y+"h400000v"+(40+t)+"h-400000z"},sqrtSize1=function(t,y){return"M263,"+(601+t+y)+ ` c0 . 7 , 0 , 18 , 39.7 , 52 , 119
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
l ` +t/2.084+" -"+t+ `
c4 . 7 , - 7.3 , 11 , - 11 , 19 , - 11
H40000v ` +(40+t)+ ` H1012 . 3
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
M ` +(1001+t)+" "+y+"h400000v"+(40+t)+"h-400000z"},sqrtSize2=function(t,y){return"M983 "+(10+t+y)+ `
l ` +t/3.13+" -"+t+ `
c4 , - 6.7 , 10 , - 10 , 18 , - 10 H400000v ` +(40+t)+ `
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
M ` +(1001+t)+" "+y+"h400000v"+(40+t)+"h-400000z"},sqrtSize3=function(t,y){return"M424,"+(2398+t+y)+ `
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
l ` +t/4.223+" -"+t+ ` c4 , - 6.7 , 10 , - 10 , 18 , - 10 H400000
v ` +(40+t)+ ` H1014 . 6
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
c - 8 , 0 , - 12 , - 0.7 , - 12 , - 2 z M ` +(1001+t)+" "+y+ `
h400000v ` +(40+t)+"h-400000z"},sqrtSize4=function(t,y){return"M473,"+(2713+t+y)+ `
c339 . 3 , - 1799.3 , 509.3 , - 2700 , 510 , - 2702 l ` +t/5.298+" -"+t+ `
c3 . 3 , - 7.3 , 9.3 , - 11 , 18 , - 11 H400000v ` +(40+t)+ ` H1017 . 7
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 ,
606 zM ` +(1001+t)+" "+y+"h400000v"+(40+t)+"H1017.7z"},phasePath=function(t){var y=t/2;return"M400000 "+t+" H0 L"+y+" 0 l65 45 L145 "+(t-80)+" H400000z"},sqrtTall=function(t,y,n){var k=n-54-y-t;return"M702 "+(t+y)+"H400000"+(40+t)+ `
H742v ` +k+ ` 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
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
219 661 l218 661 zM702 ` +y+"H400000v"+(40+t)+"H742z"},sqrtPath=function(t,y,n){y=1e3*y;var k="";switch(t){case"sqrtMain":k=sqrtMain(y,hLinePad);break;case"sqrtSize1":k=sqrtSize1(y,hLinePad);break;case"sqrtSize2":k=sqrtSize2(y,hLinePad);break;case"sqrtSize3":k=sqrtSize3(y,hLinePad);break;case"sqrtSize4":k=sqrtSize4(y,hLinePad);break;case"sqrtTall":k=sqrtTall(y,hLinePad,n)}return k},innerPath=function(t,y){switch(t){case"⎜":return"M291 0 H417 V"+y+" H291z M291 0 H417 V"+y+" H291z";case"∣ ":return"M145 0 H188 V"+y+" H145z M145 0 H188 V"+y+" H145z";case"∥":return"M145 0 H188 V"+y+" H145z M145 0 H188 V"+y+" H145z"+("M367 0 H410 V"+y+" H367z M367 0 H410 V"+y+" H367z");case"⎟":return"M457 0 H583 V"+y+" H457z M457 0 H583 V"+y+" H457z";case"⎢":return"M319 0 H403 V"+y+" H319z M319 0 H403 V"+y+" H319z";case"⎥":return"M263 0 H347 V"+y+" H263z M263 0 H347 V"+y+" H263z";case"⎪":return"M384 0 H504 V"+y+" H384z M384 0 H504 V"+y+" H384z";case"⏐":return"M312 0 H355 V"+y+" H312z M312 0 H355 V"+y+" H312z";case"‖":return"M257 0 H300 V"+y+" H257z M257 0 H300 V"+y+" H257z"+("M478 0 H521 V"+y+" H478z M478 0 H521 V"+y+" H478z");default:return""}},path={doubleleftarrow: ` M262 157
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
M500 241 v40 H399408 v - 40 z M500 435 v40 H400000 v - 40 z ` },tallDelim=function(t,y){switch(t){case"lbrack":return"M403 1759 V84 H666 V0 H319 V1759 v"+y+ ` v1759 h347 v - 84
H403z M403 1759 V0 H319 V1759 v ` +y+" v1759 h84z";case"rbrack":return"M347 1759 V0 H0 V84 H263 V1759 v"+y+ ` v1759 H0 v84 H347z
M347 1759 V0 H263 V1759 v ` +y+" v1759 h84z";case"vert":return"M145 15 v585 v"+y+ ` v585 c2 . 667 , 10 , 9.667 , 15 , 21 , 15
c10 , 0 , 16.667 , - 5 , 20 , - 15 v - 585 v ` +-y+ ` 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 ` +y+" v585 h43z";case"doublevert":return"M145 15 v585 v"+y+ ` v585 c2 . 667 , 10 , 9.667 , 15 , 21 , 15
c10 , 0 , 16.667 , - 5 , 20 , - 15 v - 585 v ` +-y+ ` 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 ` +y+ ` v585 h43z
M367 15 v585 v ` +y+ ` v585 c2 . 667 , 10 , 9.667 , 15 , 21 , 15
c10 , 0 , 16.667 , - 5 , 20 , - 15 v - 585 v ` +-y+ ` 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 ` +y+" v585 h43z";case"lfloor":return"M319 602 V0 H403 V602 v"+y+ ` v1715 h263 v84 H319z
MM319 602 V0 H403 V602 v ` +y+" v1715 H319z";case"rfloor":return"M319 602 V0 H403 V602 v"+y+ ` v1799 H0 v - 84 H319z
MM319 602 V0 H403 V602 v ` +y+" v1715 H319z";case"lceil":return"M403 1759 V84 H666 V0 H319 V1759 v"+y+ ` v602 h84z
M403 1759 V0 H319 V1759 v ` +y+" v602 h84z";case"rceil":return"M347 1759 V0 H0 V84 H263 V1759 v"+y+ ` v602 h84z
M347 1759 V0 h - 84 V1759 v ` +y+" 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
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 ,
- 36 , 557 l0 , ` +(y+84)+ ` c0 . 2 , 6 , 0 , 26 , 0 , 60 c2 , 159.3 , 10 , 310.7 , 24 , 454 c53 . 3 , 528 , 210 ,
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
l0 , - ` +(y+92)+ ` c0 , - 162.7 , 5.7 , - 314 , 17 , - 454 c20 . 7 , - 272 , 63.7 , - 513 , 129 , - 723 c65 . 3 ,
- 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
c11 . 3 , 139.3 , 17 , 290.7 , 17 , 454 c0 , 28 , 1.7 , 43 , 3.3 , 45 l0 , ` +(y+9)+ `
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
l0 , - ` +(y+144)+ ` c - 2 , - 159.3 , - 10 , - 310.7 , - 24 , - 454 c - 53.3 , - 528 , - 210 , - 949.7 ,
2024-08-25 11:35:35 +08:00
- 470 , - 1265 c - 4.7 , - 6 , - 9.7 , - 11.7 , - 15 , - 17 c - 0.7 , - 0.7 , - 6.7 , - 1 , - 18 , - 1 z ` ;default:throw new Error("Unknown stretchy delimiter.")}};class DocumentFragment{constructor(t){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=t,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}hasClass(t){return utils $ 5.contains(this.classes,t)}toNode(){for(var t=document.createDocumentFragment(),y=0;y<this.children.length;y++)t.appendChild(this.children[y].toNode());return t}toMarkup(){for(var t="",y=0;y<this.children.length;y++)t+=this.children[y].toMarkup();return t}toText(){var t=y=>y.toText();return this.children.map(t).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,.77778],8809:[.25142,.757
` +jt+" children.");for(var kt=0;kt<jt;kt++){var tr=new PathNode(he[kt]),rr=new SvgNode([tr],{width:"400em",height:makeEm(Ve),viewBox:"0 0 "+j+" "+Fe,preserveAspectRatio:Ue[kt]+" slice"}),ar=buildCommon.makeSvgSpan([Et[kt]],[rr],y);if(jt===1)return{span:ar,minWidth:Ne,height:Ve};ar.style.height=makeEm(Ve),_e.push(ar)}return{span:buildCommon.makeSpan(["stretchy"],_e,y),minWidth:Ne,height:Ve}}}var{span:k,minWidth:L,height: $ }=n();return k.height= $ ,k.style.height=makeEm( $ ),L>0&&(k.style.minWidth=makeEm(L)),k},encloseSpan=function(t,y,n,k,L){var $ ,j=t.height+t.depth+n+k;if(/fbox|color|angl/.test(y)){if( $ =buildCommon.makeSpan(["stretchy",y],[],L),y==="fbox"){var V=L.color&&L.getColor();V&&( $ .style.borderColor=V)}}else{var z=[];/^[bx]cancel $ /.test(y)&&z.push(new LineNode({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel $ /.test(y)&&z.push(new LineNode({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var re=new SvgNode(z,{width:"100%",height:makeEm(j)}); $ =buildCommon.makeSvgSpan([],[re],L)}return $ .height=j, $ .style.height=makeEm(j), $ },stretchy={encloseSpan,mathMLnode,svgSpan};function assertNodeType(e,t){if(!e||e.type!==t)throw new Error("Expected node of type "+t+", but got "+(e?"node of type "+e.type:String(e)));return e}function assertSymbolNodeType(e){var t=checkSymbolNodeType(e);if(!t)throw new Error("Expected node of symbol group type, but got "+(e?"node of type "+e.type:String(e)));return t}function checkSymbolNodeType(e){return e&&(e.type==="atom"||NON_ATOMS.hasOwnProperty(e.type))?e:null}var htmlBuilder $ a=(e,t)=>{var y,n,k;e&&e.type==="supsub"?(n=assertNodeType(e.base,"accent"),y=n.base,e.base=y,k=assertSpan(buildGroup $ 1(e,t)),e.base=n):(n=assertNodeType(e,"accent"),y=n.base);var L=buildGroup $ 1(y,t.havingCrampedStyle()), $ =n.isShifty&&utils $ 5.isCharacterBox(y),j=0;if( $ ){var V=utils $ 5.getBaseElem(y),z=buildGroup $ 1(V,t.havingCrampedStyle());j=assertSymbolDomNode(z).skew}var re=n.label===" \\ c",ie=re?L.height+L.depth:Math.min(L.height,t.fontMetrics().xHeight),oe;if(n.isStretchy)oe=stretchy.svgSpan(n,t),oe=buildCommon.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:L},{type:"elem",elem:oe,wrapperClasses:["svg-align"],wrapperStyle:j>0?{width:"calc(100% - "+makeEm(2*j)+")",marginLeft:makeEm(2*j)}:void 0}]},t);else{var ue,de;n.label===" \\ vec"?(ue=buildCommon.staticSvg("vec",t),de=buildCommon.svgData.vec[1]):(ue=buildCommon.makeOrd({mode:n.mode,text:n.label},t,"textord"),ue=assertSymbolDomNode(ue),ue.italic=0,de=ue.width,re&&(ie+=ue.depth)),oe=buildCommon.makeSpan(["accent-body"],[ue]);var pe=n.label===" \\ textcircled";pe&&(oe.classes.push("accent-full"),ie=L.height);var Ie=j;pe||(Ie-=de/2),oe.style.left=makeEm(Ie),n.label===" \\ textcircled"&&(oe.style.top=".2em"),oe=buildCommon.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:L},{type:"kern",size:-ie},{type:"elem",elem:oe}]},t)}var _e=buildCommon.makeSpan(["mord","accent"],[oe],t);return k?(k.children[0]=_e,k.height=Math.max(_e.height,k.height),k.classes[0]="mord",k):_e},mathmlBuilder $ 9=(e,t)=>{var y=e.isStretchy?stretchy.mathMLnode(e.label):new mathMLTree.MathNode("mo",[makeText(e.label,e.mode)]),n=new mathMLTree.MathNode("mover",[buildGroup2(e.base,t),y]);return n.setAttribute("accent","true"),n},NON_STRETCHY_ACCENT_REGEX=new RegExp([" \\ acute"," \\ grave"," \\ ddot"," \\ tilde"," \\ bar"," \\ breve"," \\ check"," \\ hat"," \\ vec"," \\ dot"," \\ mathring"].map(e=>" \\ "+e).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:(e,t)=>{var y=normalizeArgument(t[0]),n=!NON_STRETCHY_ACCENT_REGEX.test(e.funcName),k=!n||e.funcName===" \\ widehat"||e.funcName===" \\ widetilde"||e.funcName===" \\ widecheck";return{type:"accent",mode:e.parser.mode,label:e.funcName,isStretchy:n,isShifty:k,base:y}},htmlBuilder
2024-08-21 13:12:53 +08:00
] ` ,controlWordRegexString=" \\ \\ [a-zA-Z@]+",controlSymbolRegexString=" \\ \\ [^ \u D800- \u DFFF]",controlWordWhitespaceRegexString="("+controlWordRegexString+")"+spaceRegexString+"*",controlSpaceRegexString= ` \ \ \ \ (
| [ \ r ] +
? ) [ \ 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(t,y){this.input=void 0,this.settings=void 0,this.tokenRegex=void 0,this.catcodes=void 0,this.input=t,this.settings=y,this.tokenRegex=new RegExp(tokenRegexString,"g"),this.catcodes={"%":14,"~":13}}setCatcode(t,y){this.catcodes[t]=y}lex(){var t=this.input,y=this.tokenRegex.lastIndex;if(y===t.length)return new Token("EOF",new SourceLocation(this,y,y));var n=this.tokenRegex.exec(t);if(n===null||n.index!==y)throw new ParseError("Unexpected character: '"+t[y]+"'",new Token(t[y],new SourceLocation(this,y,y+1)));var k=n[6]||n[3]||(n[2]?" \\ ":" ");if(this.catcodes[k]===14){var L=t.indexOf( `
2024-08-25 11:35:35 +08:00
` ,this.tokenRegex.lastIndex);return L===-1?(this.tokenRegex.lastIndex=t.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=L+1,this.lex()}return new Token(k,new SourceLocation(this,y,this.tokenRegex.lastIndex))}}class Namespace{constructor(t,y){t===void 0&&(t={}),y===void 0&&(y={}),this.current=void 0,this.builtins=void 0,this.undefStack=void 0,this.current=y,this.builtins=t,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 t=this.undefStack.pop();for(var y in t)t.hasOwnProperty(y)&&(t[y]==null?delete this.current[y]:this.current[y]=t[y])}endGroups(){for(;this.undefStack.length>0;)this.endGroup()}has(t){return this.current.hasOwnProperty(t)||this.builtins.hasOwnProperty(t)}get(t){return this.current.hasOwnProperty(t)?this.current[t]:this.builtins[t]}set(t,y,n){if(n===void 0&&(n=!1),n){for(var k=0;k<this.undefStack.length;k++)delete this.undefStack[k][t];this.undefStack.length>0&&(this.undefStack[this.undefStack.length-1][t]=y)}else{var L=this.undefStack[this.undefStack.length-1];L&&!L.hasOwnProperty(t)&&(L[t]=this.current[t])}y==null?delete this.current[t]:this.current[t]=y}}var macros=_macros;defineMacro(" \\ noexpand",function(e){var t=e.popToken();return e.isExpandable(t.text)&&(t.noexpand=!0,t.treatAsRelax=!0),{tokens:[t],numArgs:0}});defineMacro(" \\ expandafter",function(e){var t=e.popToken();return e.expandOnce(!0),{tokens:[t],numArgs:0}});defineMacro(" \\ @firstoftwo",function(e){var t=e.consumeArgs(2);return{tokens:t[0],numArgs:0}});defineMacro(" \\ @secondoftwo",function(e){var t=e.consumeArgs(2);return{tokens:t[1],numArgs:0}});defineMacro(" \\ @ifnextchar",function(e){var t=e.consumeArgs(3);e.consumeSpaces();var y=e.future();return t[0].length===1&&t[0][0].text===y.text?{tokens:t[1],numArgs:0}:{tokens:t[2],numArgs:0}});defineMacro(" \\ @ifstar"," \\ @ifnextchar *{ \\ @firstoftwo{#1}}");defineMacro(" \\ TextOrMath",function(e){var t=e.consumeArgs(2);return e.mode==="text"?{tokens:t[0],numArgs:0}:{tokens:t[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(e){var t=e.popToken(),y,n="";if(t.text==="'")y=8,t=e.popToken();else if(t.text==='"')y=16,t=e.popToken();else if(t.text===" ` ")if(t=e.popToken(),t.text[0]===" \ \ ")n=t.text.charCodeAt(1);else{if(t.text===" EOF ")throw new ParseError(" \ \ char ` missing argument");n=t.text.charCodeAt(0)}else y=10;if(y){if(n=digitToNumber[t.text],n==null||n>=y)throw new ParseError("Invalid base-"+y+" digit "+t.text);for(var k;(k=digitToNumber[e.future().text])!=null&&k<y;)n*=y,n+=k,e.popToken()}return" \\ @char{"+n+"}"});var newcommand=(e,t,y)=>{var n=e.consumeArg().tokens;if(n.length!==1)throw new ParseError(" \\ newcommand's first argument must be a macro name");var k=n[0].text,L=e.isDefined(k);if(L&&!t)throw new ParseError(" \\ newcommand{"+k+"} attempting to redefine "+(k+"; use \\ renewcommand"));if(!L&&!y)throw new ParseError(" \\ renewcommand{"+k+"} when command "+k+" does not yet exist; use \\ newcommand");var $ =0;if(n=e.consumeArg().tokens,n.length===1&&n[0].text==="["){for(var j="",V=e.expandNextToken();V.text!=="]"&&V.text!=="EOF";)j+=V.text,V=e.expandNextToken();if(!j.match(/^ \s *[0-9]+ \s * $ /))throw new ParseError("Invalid number of arguments: "+j); $ =parseInt(j),n=e.consumeArg().tokens}return e.macros.set(k,{tokens:n,numArgs: $ }),""};defineMacro(" \\ newcommand",e=>newcommand(e,!1,!0));defineMacro(" \\ renewcommand",e=>newcommand(e,!0,!1));defineMacro(" \\ providecommand",e=>newcommand(e,!0,!0));defineMacro(" \\ message",e=>{var t=e.consumeArgs(1)[0];return console.log(t.reverse().map(y=>y.text).join("")),""});defineMacro(" \\ errmessage",e=>{var t=e.consumeArgs(1)[0];return console.error(t.reverse().map(y=>y.text).join("")),""});defineMacro(" \\ show",e=>{var t=e.popToken(),y=t.text;return console.l
2024-08-21 13:12:53 +08:00
please report what input caused this bug ` );return n=n.slice(1,-1),{type:"verb",mode:"text",body:n,star:k}}unicodeSymbols.hasOwnProperty(y[0])&&!symbols[this.mode][y[0]]&&(this.settings.strict&&this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Accented Unicode text character "'+y[0]+'" used in math mode',t),y=unicodeSymbols[y[0]]+y.slice(1));var L=combiningDiacriticalMarksEndRegex.exec(y);L&&(y=y.substring(0,L.index),y==="i"?y="ı ":y==="j"&&(y="ȷ"));var $ ;if(symbols[this.mode][y]){this.settings.strict&&this.mode==="math"&&extraLatin.indexOf(y)>=0&&this.settings.reportNonstrict("unicodeTextInMathMode",'Latin-1/Unicode text character "'+y[0]+'" used in math mode',t);var j=symbols[this.mode][y].group,V=SourceLocation.range(t),z;if(ATOMS.hasOwnProperty(j)){var re=j;z={type:"atom",mode:this.mode,family:re,loc:V,text:y}}else z={type:j,mode:this.mode,loc:V,text:y}; $ =z}else if(y.charCodeAt(0)>=128)this.settings.strict&&(supportedCodepoint(y.charCodeAt(0))?this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Unicode text character "'+y[0]+'" used in math mode',t):this.settings.reportNonstrict("unknownSymbol",'Unrecognized Unicode character "'+y[0]+'"'+(" ("+y.charCodeAt(0)+")"),t)), $ ={type:"textord",mode:"text",loc:SourceLocation.range(t),text:y};else return null;if(this.consume(),L)for(var ie=0;ie<L[0].length;ie++){var oe=L[0][ie];if(!unicodeAccents[oe])throw new ParseError("Unknown accent ' "+oe+"'",t);var ue=unicodeAccents[oe][this.mode]||unicodeAccents[oe].text;if(!ue)throw new ParseError("Accent "+oe+" unsupported in "+this.mode+" mode",t); $ ={type:"accent",mode:this.mode,loc:SourceLocation.range(t),label:ue,isStretchy:!1,isShifty:!0,base: $ }}return $ }};Parser $ 1.endOfExpression=["}"," \\ endgroup"," \\ end"," \\ right","&"];var parseTree=function(t,y){if(!(typeof t=="string"||t instanceof String))throw new TypeError("KaTeX can only parse string typed expression");var n=new Parser $ 1(t,y);delete n.gullet.macros.current[" \\ df@tag"];var k=n.parse();if(delete n.gullet.macros.current[" \\ current@color"],delete n.gullet.macros.current[" \\ color"],n.gullet.macros.get(" \\ df@tag")){if(!y.displayMode)throw new ParseError(" \\ tag works only in display equations");k=[{type:"tag",mode:"text",body:k,tag:n.subparse([new Token(" \\ df@tag")])}]}return k},render=function(t,y,n){y.textContent="";var k=renderToDomTree(t,n).toNode();y.appendChild(k)};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=function(){throw new ParseError("KaTeX doesn't work in quirks mode.")});var renderToString=function(t,y){var n=renderToDomTree(t,y).toMarkup();return n},generateParseTree=function(t,y){var n=new Settings(y);return parseTree(t,n)},renderError=function(t,y,n){if(n.throwOnError||!(t instanceof ParseError))throw t;var k=buildCommon.makeSpan(["katex-error"],[new SymbolNode(y)]);return k.setAttribute("title",t.toString()),k.setAttribute("style","color:"+n.errorColor),k},renderToDomTree=function(t,y){var n=new Settings(y);try{var k=parseTree(t,n);return buildTree(k,t,n)}catch(L){return renderError(L,t,n)}},renderToHTMLTree=function(t,y){var n=new Settings(y);try{var k=parseTree(t,n);return buildHTMLTree(k,t,n)}catch(L){return renderError(L,t,n)}},katex={version:"0.16.11",render,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 inlineRule=/^( \$ {1,2})(?! \$ )((?: \\ .|[^ \\ \n ])*?(?: \\ .|[^ \\ \n \$ ])) \1 (?=[ \s ?! \. ,:?!。,:]| $ )/,inlineRuleNonStandard=/^( \$ {1,2})(?! \$ )((?: \\ .|[^ \\ \n ])*?(?: \\ .|[^ \\ \n \$ ])) \1 /,blockRule=/^( \$ {1,2}) \n ((?: \\ [^]|[^ \\ ])+?) \n \1 (?: \n | $ )/;function markedKatex(e={}){return{extensions:[inlineKatex(e,createRenderer(e,!1)),blockKatex(e,createRenderer(e,!0))]}}function createRendere
2024-08-25 11:35:35 +08:00
` :"")}function inlineKatex(e,t){const y=e&&e.nonStandard,n=y?inlineRuleNonStandard:inlineRule;return{name:"inlineKatex",level:"inline",start(k){let L, $ =k;for(; $ ;){if(L= $ .indexOf(" $ "),L===-1)return;if((y?L>-1:L===0|| $ .charAt(L-1)===" ")&& $ .substring(L).match(n))return L; $ = $ .substring(L+1).replace(/^ \$ +/,"")}},tokenizer(k,L){const $ =k.match(n);if( $ )return{type:"inlineKatex",raw: $ [0],text: $ [2].trim(),displayMode: $ [1].length===2}},renderer:t}}function blockKatex(e,t){return{name:"blockKatex",level:"block",tokenizer(y,n){const k=y.match(blockRule);if(k)return{type:"blockKatex",raw:k[0],text:k[2].trim(),displayMode:k[1].length===2}},renderer:t}}marked.use(markedKatex({throwOnError:!1,output:"html",nonStandard:!0}));class WxRenderer extends Renderer{constructor(y){super();np(this,"reset",()=>{this.footnotes=[],this.footnoteIndex=0});np(this,"merge",(y,n)=>({...y,...n}));np(this,"buildTheme",y=>{const n=this.merge(y.BASE,{"font-family":this.opts.fonts,"font-size":this.opts.size});return{...Object.fromEntries(Object.entries(y.inline).map(([L, $ ])=>[L,this.merge(n, $ )])),...Object.fromEntries(Object.entries(y.block).map(([L, $ ])=>[L,this.merge(n, $ )]))}});np(this,"getStyles",(y,n="")=>{const k=this.styleMapping[y];return k? ` style = "${Object.entries(k).map(([$,j])=>`${$}:${j}`).join(" ; ")}${n}" ` :""});np(this,"addFootnote",(y,n)=>(this.footnotes.push([++this.footnoteIndex,y,n]),this.footnoteIndex));np(this,"buildFootnotes",()=>{if(!this.footnotes.length)return"";const y=this.footnotes.map(([n,k,L])=>L===k? ` < code style = "font-size: 90%; opacity: 0.6;" > [ $ { n } ] < /code>: <i style="word-break: break-all">${k}</i > < br / > ` : ` < code style = "font-size: 90%; opacity: 0.6;" > [ $ { n } ] < /code> ${k}: <i style="word-break: break-all">${L}</i > < br / > ` ).join( `
` );return ` < h4 $ { this . getStyles ( "h4" ) } > 引用链接 < / h 4 > < p $ { t h i s . g e t S t y l e s ( " f o o t n o t e s " ) } > $ { y } < / p > ` } ) ; n p ( t h i s , " b u i l d A d d i t i o n " , ( ) = > `
2024-08-22 19:23:55 +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-25 11:35:35 +08:00
` );np(this,"setOptions",y=>{this.opts=this.merge(this.opts,y),this.styleMapping=this.buildTheme(this.opts.theme)});np(this,"heading",(y,n)=>{const k= ` h$ { n } ` ;return ` < $ { k } $ { this . getStyles ( k ) } > $ { y } < / $ { k } > ` } ) ; n p ( t h i s , " p a r a g r a p h " , y = > { c o n s t n = y . i n c l u d e s ( " < f i g u r e " ) & & y . i n c l u d e s ( " < i m g " ) , k = y . t r i m ( ) = = = " " ; r e t u r n n ? y : k ? " " : ` < p $ { t h i s . g e t S t y l e s ( " p " ) } > $ { y } < / p > ` } ) ; n p ( t h i s , " b l o c k q u o t e " , y = > ( y = y . r e p l a c e ( / < p . * ? > / g , ` < p $ { t h i s . g e t S t y l e s ( " b l o c k q u o t e _ p " ) } > ` ) , ` < b l o c k q u o t e $ { t h i s . g e t S t y l e s ( " b l o c k q u o t e " ) } > $ { y } < / b l o c k q u o t e > ` ) ) ; n p ( t h i s , " c o d e " , ( y , n = " " ) = > { i f ( n . s t a r t s W i t h ( " m e r m a i d " ) ) r e t u r n s e t T i m e o u t ( ( ) = > { v a r $ ; ( $ = w i n d o w . m e r m a i d ) = = n u l l | | $ . r u n ( ) } , 0 ) , ` < c e n t e r > < p r e c l a s s = " m e r m a i d " > $ { y } < / p r e > < / c e n t e r > ` ; c o n s t k = n . s p l i t ( " " ) [ 0 ] , L = H i g h l i g h t J S . g e t L a n g u a g e ( k ) ? k : " p l a i n t e x t " ; r e t u r n y = H i g h l i g h t J S . h i g h l i g h t ( y , { l a n g u a g e : L } ) . v a l u e , y = y . r e p l a c e ( / \ r \ n / g , " < b r / > " ) . r e p l a c e ( / \ n / g , " < b r / > " ) . r e p l a c e ( / ( > [ ^ < ] + ) | ( ^ [ ^ < ] + ) / g , $ = > $ . r e p l a c e ( / \ s / g , " & n b s p ; " ) ) , ` < p r e c l a s s = " h l j s c o d e _ _ p r e " $ { t h i s . g e t S t y l e s ( " c o d e _ p r e " ) } > < c o d e c l a s s = " l a n g u a g e - $ { n } " $ { t h i s . g e t S t y l e s ( " c o d e " ) } > $ { y } < / c o d e > < / p r e > ` } ) ; n p ( t h i s , " c o d e s p a n " , y = > ` < c o d e $ { t h i s . g e t S t y l e s ( " c o d e s p a n " ) } > $ { y } < / c o d e > ` ) ; n p ( t h i s , " l i s t i t e m " , y = > ` < l i $ { t h i s . g e t S t y l e s ( " l i s t i t e m " ) } > < s p a n > < % s / > < / s p a n > $ { y } < / l i > ` ) ; n p ( t h i s , " l i s t " , ( y , n ) = > { y = y . r e p l a c e ( / < \ / * p . * ? > / g , " " ) . r e p l a c e ( / < \ / * p > / g , " " ) ; c o n s t k = y . s p l i t ( " < % s / > " ) ; i f ( ! n ) r e t u r n ` < u l $ { t h i s . g e t S t y l e s ( " u l " ) } > $ { k . j o i n ( " • " ) } < / u l > ` ; c o n s t L = k . m a p ( ( $ , j ) = > ( j > 0 ? ` $ { j } . ` : " " ) + $ ) . j o i n ( " " ) ; r e t u r n ` < o l $ { t h i s . g e t S t y l e s ( " o l " ) } > $ { L } < / o l > ` } ) ; n p ( t h i s , " i m a g e " , ( y , n , k ) = > { c o n s t L = r e = > r e ? ` < f i g c a p t i o n $ { t h i s . g e t S t y l e s ( " f i g c a p t i o n " ) } > $ { r e } < / f i g c a p t i o n > ` : " " , $ = { a l t : ( ) = > k , t i t l e : ( ) = > n , " a l t - t i t l e " : ( ) = > k | | n , " t i t l e - a l t " : ( ) = > n | | k } [ t h i s . o p t s . l e g e n d ] | | ( ( ) = > " " ) , j = L ( $ ( ) ) , V = t h i s . g e t S t y l e s ( " f i g u r e " ) , z = t h i s . g e t S t y l e s ( " i m a g e " ) ; r e t u r n ` < f i g u r e $ { V } > < i m g $ { z } s r c = " $ { y } " t i t l e = " $ { n } " a l t = " $ { k } " / > $ { j } < / f i g u r e > ` } ) ; n p ( t h i s , " l i n k " , ( y , n , k ) = > { i f ( y . s t a r t s W i t h ( " h t t p s : / / m p . w e i x i n . q q . c o m " ) ) r e t u r n ` < a h r e f = " $ { y } " t i t l e = " $ { n | | k } " $ { t h i s . g e t S t y l e s ( " w x _ l i n k " ) } > $ { k } < / a > ` ; i f ( y = = = k ) r e t u r n k ; i f ( t h i s . o p t s . s t a t u s ) { c o n s t L = t h i s . a d d F o o t n o t e ( n | | k , y ) ; r e t u r n ` < s p a n $ { t h i s . g e t S t y l e s ( " l i n k " ) } > $ { k } < s u p > [ $ { L } ] < / s u p > < / s p a n > ` } r e t u r n ` < s p a n $ { t h i s . g e t S t y l e s ( " l i n k " ) } > $ { k } < / s p a n > ` } ) ; n p ( t h i s , " s t r o n g " , y = > ` < s t r o n g $ { t h i s . g e t S t y l e s ( " s t r o n g " ) } > $ { y } < / s t r o n g > ` ) ; n p ( t h i s , " e m " , y = > ` < s p a n s t y l e = " f o n t - s t y l e : i t a l i c ; " > $ { y } < / s p a n > ` ) ; n p ( t h i s , " t a b l e " , ( y , n ) = > `
2024-08-22 19:23:55 +08:00
< section style = "padding:0 8px;" >
< table class = "preview-table" >
< thead $ { this . getStyles ( "thead" ) } > $ { y } < / t h e a d >
< tbody > $ { n } < / t b o d y >
< / t a b l e >
2024-08-25 11:35:35 +08:00
< / s e c t i o n > ` ) ; n p ( t h i s , " t a b l e c e l l " , y = > ` < t d $ { t h i s . g e t S t y l e s ( " t d " ) } > $ { y } < / t d > ` ) ; n p ( t h i s , " h r " , ( ) = > ` < h r $ { t h i s . g e t S t y l e s ( " h r " ) } / > ` ) ; t h i s . o p t s = y , t h i s . f o o t n o t e s = [ ] , t h i s . f o o t n o t e I n d e x = 0 , t h i s . s t y l e M a p p i n g = t h i s . b u i l d T h e m e ( y . t h e m e ) } } 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-21 13:12:53 +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 >
` ,DEFAULT_CSS_CONTENT= ` / *
2024-08-25 11:35:35 +08:00
按 Alt / Option + Shift + F 可格式化
2024-08-21 13:12:53 +08:00
* /
/* 一级标题样式 */
h1 {
}
/* 二级标题样式 */
h2 {
}
/* 三级标题样式 */
h3 {
}
/* 四级标题样式 */
h4 {
}
/* 图片样式 */
image {
}
/* 引用样式 */
blockquote {
}
/* 引用段落样式 */
blockquote _p {
}
/* 段落样式 */
p {
}
/* 分割线样式 */
hr {
}
/* 行内代码样式 */
codespan {
}
/* 粗体样式 */
strong {
}
/* 链接样式 */
link {
}
/* 微信链接样式 */
wx _link {
}
/* 有序列表样式 */
ol {
}
/* 无序列表样式 */
ul {
}
/* 列表项样式 */
li {
}
/* 代码块样式 */
code {
}
2024-08-25 11:35:35 +08:00
` ;var cheerio $ 2={exports:{}},lib $ d={},extendStatics=function(e,t){return extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,n){y.__proto__=n}||function(y,n){for(var k in n)Object.prototype.hasOwnProperty.call(n,k)&&(y[k]=n[k])},extendStatics(e,t)};function __extends $ 4(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");extendStatics(e,t);function y(){this.constructor=e}e.prototype=t===null?Object.create(t):(y.prototype=t.prototype,new y)}var __assign $ 7=function(){return __assign $ 7=Object.assign||function(t){for(var y,n=1,k=arguments.length;n<k;n++){y=arguments[n];for(var L in y)Object.prototype.hasOwnProperty.call(y,L)&&(t[L]=y[L])}return t},__assign $ 7.apply(this,arguments)};function __rest $ 1(e,t){var y={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(y[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var k=0,n=Object.getOwnPropertySymbols(e);k<n.length;k++)t.indexOf(n[k])<0&&Object.prototype.propertyIsEnumerable.call(e,n[k])&&(y[n[k]]=e[n[k]]);return y}function __decorate(e,t,y,n){var k=arguments.length,L=k<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,y):n, $ ;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")L=Reflect.decorate(e,t,y,n);else for(var j=e.length-1;j>=0;j--)( $ =e[j])&&(L=(k<3? $ (L):k>3? $ (t,y,L): $ (t,y))||L);return k>3&&L&&Object.defineProperty(t,y,L),L}function __param(e,t){return function(y,n){t(y,n,e)}}function __esDecorate(e,t,y,n,k,L){function $ (_e){if(_e!==void 0&&typeof _e!="function")throw new TypeError("Function expected");return _e}for(var j=n.kind,V=j==="getter"?"get":j==="setter"?"set":"value",z=!t&&e?n.static?e:e.prototype:null,re=t||(z?Object.getOwnPropertyDescriptor(z,n.name):{}),ie,oe=!1,ue=y.length-1;ue>=0;ue--){var de={};for(var pe in n)de[pe]=pe==="access"?{}:n[pe];for(var pe in n.access)de.access[pe]=n.access[pe];de.addInitializer=function(_e){if(oe)throw new TypeError("Cannot add initializers after decoration has completed");L.push( $ (_e||null))};var Ie=(0,y[ue])(j==="accessor"?{get:re.get,set:re.set}:re[V],de);if(j==="accessor"){if(Ie===void 0)continue;if(Ie===null||typeof Ie!="object")throw new TypeError("Object expected");(ie= $ (Ie.get))&&(re.get=ie),(ie= $ (Ie.set))&&(re.set=ie),(ie= $ (Ie.init))&&k.unshift(ie)}else(ie= $ (Ie))&&(j==="field"?k.unshift(ie):re[V]=ie)}z&&Object.defineProperty(z,n.name,re),oe=!0}function __runInitializers(e,t,y){for(var n=arguments.length>2,k=0;k<t.length;k++)y=n?t[k].call(e,y):t[k].call(e);return n?y:void 0}function __propKey(e){return typeof e=="symbol"?e:"".concat(e)}function __setFunctionName(e,t,y){return typeof t=="symbol"&&(t=t.description?"[".concat(t.description,"]"):""),Object.defineProperty(e,"name",{configurable:!0,value:y?"".concat(y," ",t):t})}function __metadata(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}function __awaiter $ 8(e,t,y,n){function k(L){return L instanceof y?L:new y(function( $ ){ $ (L)})}return new(y||(y=Promise))(function(L, $ ){function j(re){try{z(n.next(re))}catch(ie){ $ (ie)}}function V(re){try{z(n.throw(re))}catch(ie){ $ (ie)}}function z(re){re.done?L(re.value):k(re.value).then(j,V)}z((n=n.apply(e,t||[])).next())})}function __generator $ 8(e,t){var y={label:0,sent:function(){if(L[0]&1)throw L[1];return L[1]},trys:[],ops:[]},n,k,L, $ ;return $ ={next:j(0),throw:j(1),return:j(2)},typeof Symbol=="function"&&( $ [Symbol.iterator]=function(){return this}), $ ;function j(z){return function(re){return V([z,re])}}function V(z){if(n)throw new TypeError("Generator is already executing.");for(; $ &&( $ =0,z[0]&&(y=0)),y;)try{if(n=1,k&&(L=z[0]&2?k.return:z[0]?k.throw||((L=k.return)&&L.call(k),0):k.next)&&!(L=L.call(k,z[1])).done)return L;switch(k=0,L&&(z=[z[0]&2,L.value]),z[0]){case 0:case 1:L=z;break;case 4:return y.label++,{value:z[1],done:!1};case 5:y.label++,k=z[1],z=[0];continue;case 7:z=y.ops.pop(),y.trys.pop();continue;default:if(L=y.trys,!(L=L.length>0&&L[L.length-1])&&(z[0]===6||z[0]===2)){y=0;continue}if(z[0]===3&&(!L||z[1]>L[0]&&z
` ,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 $ 1="∋",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 $ 1="Ν ",nu $ 2="ν ",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
` : $ (z.children):(0,t.isCDATA)(z)? $ (z.children):(0,t.isText)(z)?z.data:""}stringify $ 2.getText= $ ;function j(z){return Array.isArray(z)?z.map(j).join(""):(0,t.hasChildren)(z)&&!(0,t.isComment)(z)?j(z.children):(0,t.isText)(z)?z.data:""}stringify $ 2.textContent=j;function V(z){return Array.isArray(z)?z.map(V).join(""):(0,t.hasChildren)(z)&&(z.type===n.ElementType.Tag||(0,t.isCDATA)(z))?V(z.children):(0,t.isText)(z)?z.data:""}return stringify $ 2.innerText=V,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 e=requireLib $ a(),t=[];function y(re){var ie;return(ie=re.children)!==null&&ie!==void 0?ie:t}traversal.getChildren=y;function n(re){return re.parent||null}traversal.getParent=n;function k(re){var ie,oe,ue=n(re);if(ue!=null)return y(ue);for(var de=[re],pe=re.prev,Ie=re.next;pe!=null;)de.unshift(pe),ie=pe,pe=ie.prev;for(;Ie!=null;)de.push(Ie),oe=Ie,Ie=oe.next;return de}traversal.getSiblings=k;function L(re,ie){var oe;return(oe=re.attribs)===null||oe===void 0?void 0:oe[ie]}traversal.getAttributeValue=L;function $ (re,ie){return re.attribs!=null&&Object.prototype.hasOwnProperty.call(re.attribs,ie)&&re.attribs[ie]!=null}traversal.hasAttrib= $ ;function j(re){return re.name}traversal.getName=j;function V(re){for(var ie,oe=re.next;oe!==null&&!(0,e.isTag)(oe);)ie=oe,oe=ie.next;return oe}traversal.nextElementSibling=V;function z(re){for(var ie,oe=re.prev;oe!==null&&!(0,e.isTag)(oe);)ie=oe,oe=ie.prev;return oe}return traversal.prevElementSibling=z,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 e( $ ){if( $ .prev&&( $ .prev.next= $ .next), $ .next&&( $ .next.prev= $ .prev), $ .parent){var j= $ .parent.children;j.splice(j.lastIndexOf( $ ),1)}}manipulation $ 1.removeElement=e;function t( $ ,j){var V=j.prev= $ .prev;V&&(V.next=j);var z=j.next= $ .next;z&&(z.prev=j);var re=j.parent= $ .parent;if(re){var ie=re.children;ie[ie.lastIndexOf( $ )]=j}}manipulation $ 1.replaceElement=t;function y( $ ,j){if(e(j),j.next=null,j.parent= $ , $ .children.push(j)>1){var V= $ .children[ $ .children.length-2];V.next=j,j.prev=V}else j.prev=null}manipulation $ 1.appendChild=y;function n( $ ,j){e(j);var V= $ .parent,z= $ .next;if(j.next=z,j.prev= $ , $ .next=j,j.parent=V,z){if(z.prev=j,V){var re=V.children;re.splice(re.lastIndexOf(z),0,j)}}else V&&V.children.push(j)}manipulation $ 1.append=n;function k( $ ,j){if(e(j),j.parent= $ ,j.prev=null, $ .children.unshift(j)!==1){var V= $ .children[1];V.prev=j,j.next=V}else j.next=null}manipulation $ 1.prependChild=k;function L( $ ,j){e(j);var V= $ .parent;if(V){var z=V.children;z.splice(z.indexOf( $ ),0,j)} $ .prev&&( $ .prev.next=j),j.parent=V,j.prev= $ .prev,j.next= $ , $ .prev=j}return manipulation $ 1.prepend=L,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 e=requireLib $ a();function t(j,V,z,re){return z===void 0&&(z=!0),re===void 0&&(re=1/0),Array.isArray(V)||(V=[V]),y(j,V,z,re)}querying.filter=t;function y(j,V,z,re){for(var ie=[],oe=0,ue=V;oe<ue.length;oe++){var de=ue[oe];if(j(de)&&(ie.push(de),--re<=0))break;if(z&&(0,e.hasChildren)(de)&&de.children.length>0){var pe=y(j,de.children,z,re);if(ie.push.apply(ie,pe),re-=pe.length,re<=0)break}}return ie}querying.find=y;function n(j,V){return V.find(j)}querying.findOneChild=n;function k(j,V,z){z===void 0&
2024-08-21 13:12:53 +08:00
: is ( button , input , select , textarea , optgroup , option ) [ disabled ] ,
optgroup [ disabled ] > option ,
fieldset [ disabled ] : not ( fieldset [ disabled ] legend : first - of - type * )
2024-08-25 11:35:35 +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(e){var t=commonjsGlobal&&commonjsGlobal.__spreadArray||function(j,V,z){if(z||arguments.length===2)for(var re=0,ie=V.length,oe;re<ie;re++)(oe||!(re in V))&&(oe||(oe=Array.prototype.slice.call(V,0,re)),oe[re]=V[re]);return j.concat(oe||Array.prototype.slice.call(V))};Object.defineProperty(e,"__esModule",{value:!0}),e.subselects=e.getNextSiblings=e.ensureIsTag=e.PLACEHOLDER_ELEMENT=void 0;var y=requireBoolbase(),n=requireProcedure();e.PLACEHOLDER_ELEMENT={};function k(j,V){return j===y.falseFunc?y.falseFunc:function(z){return V.isTag(z)&&j(z)}}e.ensureIsTag=k;function L(j,V){var z=V.getSiblings(j);if(z.length<=1)return[];var re=z.indexOf(j);return re<0||re===z.length-1?[]:z.slice(re+1).filter(V.isTag)}e.getNextSiblings=L;var $ =function(j,V,z,re,ie){var oe={xmlMode:!!z.xmlMode,adapter:z.adapter,equals:z.equals},ue=ie(V,oe,re);return function(de){return ue(de)&&j(de)}};e.subselects={is: $ ,matches: $ ,where: $ ,not:function(j,V,z,re,ie){var oe={xmlMode:!!z.xmlMode,adapter:z.adapter,equals:z.equals},ue=ie(V,oe,re);return ue===y.falseFunc?j:ue===y.trueFunc?y.falseFunc:function(pe){return!ue(pe)&&j(pe)}},has:function(j,V,z,re,ie){var oe=z.adapter,ue={xmlMode:!!z.xmlMode,adapter:oe,equals:z.equals},de=V.some(function(he){return he.some(n.isTraversal)})?[e.PLACEHOLDER_ELEMENT]:void 0,pe=ie(V,ue,de);if(pe===y.falseFunc)return y.falseFunc;if(pe===y.trueFunc)return function(he){return oe.getChildren(he).some(oe.isTag)&&j(he)};var Ie=k(pe,oe),_e=pe.shouldTestNextSiblings,Ce=_e===void 0?!1:_e;return de?function(he){de[0]=he;var Ne=oe.getChildren(he),Fe=Ce?t(t([],Ne,!0),L(he,oe),!0):Ne;return j(he)&&oe.existsOne(Ie,Fe)}:function(he){return j(he)&&oe.existsOne(Ie,oe.getChildren(he))}}}}(subselects)),subselects}var hasRequiredPseudoSelectors;function requirePseudoSelectors(){return hasRequiredPseudoSelectors||(hasRequiredPseudoSelectors=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.compilePseudoSelector=e.aliases=e.pseudos=e.filters=void 0;var t=requireBoolbase(),y=require $ $ 0 $ 5,n=requireFilters();Object.defineProperty(e,"filters",{enumerable:!0,get:function(){return n.filters}});var k=requirePseudos();Object.defineProperty(e,"pseudos",{enumerable:!0,get:function(){return k.pseudos}});var L=requireAliases();Object.defineProperty(e,"aliases",{enumerable:!0,get:function(){return L.aliases}});var $ =requireSubselects();function j(V,z,re,ie,oe){var ue=z.name,de=z.data;if(Array.isArray(de))return $ .subselects[ue](V,de,re,ie,oe);if(ue in L.aliases){if(de!=null)throw new Error("Pseudo ".concat(ue," doesn't have any arguments"));var pe=(0,y.parse)(L.aliases[ue]);return $ .subselects.is(V,pe,re,ie,oe)}if(ue in n.filters)return n.filters[ue](V,de,re,ie);if(ue in k.pseudos){var Ie=k.pseudos[ue];return(0,k.verifyPseudoArgs)(Ie,ue,de),Ie===t.falseFunc?t.falseFunc:V===t.trueFunc?function(_e){return Ie(_e,re,de)}:function(_e){return Ie(_e,re,de)&&V(_e)}}throw new Error("unmatched pseudo-class :".concat(ue))}e.compilePseudoSelector=j}(pseudoSelectors)),pseudoSelectors}var hasRequiredGeneral;function requireGeneral(){if(hasRequiredGeneral)return general;hasRequiredGeneral=1,Object.defineProperty(general,"__esModule",{value:!0}),general.compileGeneralSelector=void 0;var e=requireAttributes $ 1(),t=requirePseudoSelectors(),y=require $ $ 0 $ 5;fun
` ,nexist="∄",nexists="∄",Nfr="𝔑 ",nfr="𝔫 ",ngE="≧̸",nge="≱",ngeq="≱",ngeqq="≧̸",ngeqslant="⩾̸",nges="⩾̸",nGg="⋙̸",ngsim="≵",nGt="≫⃒",ngt="≯",ngtr="≯",nGtv="≫̸",nharr="↮",nhArr="⇎",nhpar="⫲",ni="∋",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="Ν ",nu $ 1="ν ",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="⩔",or="∨ ",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="⫽",par
` ||Er===" "||Er===" \f "||Er===" \r "}function $ (Er){return Er>="a"&&Er<="z"||Er>="A"&&Er<="Z"}function j(Er,vr,Ir){var Lr=Er.toLowerCase();return Er===Lr?function(gr,_r){_r===Lr?gr._state=vr:(gr._state=Ir,gr._index--)}:function(gr,_r){_r===Lr||_r===Er?gr._state=vr:(gr._state=Ir,gr._index--)}}function V(Er,vr){var Ir=Er.toLowerCase();return function(Lr,gr){gr===Ir||gr===Er?Lr._state=vr:(Lr._state=3,Lr._index--)}}var z=j("C",24,16),re=j("D",25,16),ie=j("A",26,16),oe=j("T",27,16),ue=j("A",28,16),de=V("R",35),pe=V("I",36),Ie=V("P",37),_e=V("T",38),Ce=j("R",40,1),he=j("I",41,1),Ne=j("P",42,1),Fe=j("T",43,1),Ve=V("Y",45),jt=V("L",46),Et=V("E",47),Ue=j("Y",49,1),qe=j("L",50,1),kt=j("E",51,1),tr=V("I",54),rr=V("T",55),ar=V("L",56),nr=V("E",57),ur=j("I",58,1),cr=j("T",59,1),mr=j("L",60,1),hr=j("E",61,1),br=j("#",63,64),Rr=j("X",66,65),xr=function(){function Er(vr,Ir){var Lr;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=Ir,this.xmlMode=!!(vr!=null&&vr.xmlMode),this.decodeEntities=(Lr=vr==null?void 0:vr.decodeEntities)!==null&&Lr!==void 0?Lr:!0}return Er.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},Er.prototype.write=function(vr){this.ended&&this.cbs.onerror(Error(".write() after done!")),this.buffer+=vr,this.parse()},Er.prototype.end=function(vr){this.ended&&this.cbs.onerror(Error(".end() after done!")),vr&&this.write(vr),this.ended=!0,this.running&&this.finish()},Er.prototype.pause=function(){this.running=!1},Er.prototype.resume=function(){this.running=!0,this._index<this.buffer.length&&this.parse(),this.ended&&this.finish()},Er.prototype.getAbsoluteIndex=function(){return this.bufferOffset+this._index},Er.prototype.stateText=function(vr){vr==="<"?(this._index>this.sectionStart&&this.cbs.ontext(this.getSection()),this._state=2,this.sectionStart=this._index):this.decodeEntities&&vr==="&"&&(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)},Er.prototype.isTagStartChar=function(vr){return $ (vr)||this.xmlMode&&!L(vr)&&vr!=="/"&&vr!==">"},Er.prototype.stateBeforeTagName=function(vr){vr==="/"?this._state=5:vr==="<"?(this.cbs.ontext(this.getSection()),this.sectionStart=this._index):vr===">"||this.special!==1||L(vr)?this._state=1:vr==="!"?(this._state=15,this.sectionStart=this._index+1):vr==="?"?(this._state=17,this.sectionStart=this._index+1):this.isTagStartChar(vr)?(this._state=!this.xmlMode&&(vr==="s"||vr==="S")?32:!this.xmlMode&&(vr==="t"||vr==="T")?52:3,this.sectionStart=this._index):this._state=1},Er.prototype.stateInTagName=function(vr){(vr==="/"||vr===">"||L(vr))&&(this.emitToken("onopentagname"),this._state=8,this._index--)},Er.prototype.stateBeforeClosingTagName=function(vr){L(vr)||(vr===">"?this._state=1:this.special!==1?this.special!==4&&(vr==="s"||vr==="S")?this._state=33:this.special===4&&(vr==="t"||vr==="T")?this._state=53:(this._state=1,this._index--):this.isTagStartChar(vr)?(this._state=6,this.sectionStart=this._index):(this._state=20,this.sectionStart=this._index))},Er.prototype.stateInClosingTagName=function(vr){(vr===">"||L(vr))&&(this.emitToken("onclosetag"),this._state=7,this._index--)},Er.prototype.stateAfterClosingTagName=function(vr){vr===">"&&(this._state=1,this.sectionStart=this._index+1)},Er.prototype.stateBeforeAttributeName=function(vr){vr===">"?(this.cbs.onopentagend(),this._state=1,this.sectionStart=this._index+1):vr==="/"?this._state=4:L(vr)||(this._state=9,this.sectionStart=this._index)},Er.prototype.stateInSelfClosingTag=function(vr){vr===">"?(this.cbs.onselfclosingtag(),this._state=1,this.sectionStart=this._index+1,this.special=1):L(vr)||(this._state=8,this._index--)},Er.prototype.stateInAttributeName=function(vr){(vr==="="||vr==="/"||vr===">"||L(vr))&&(this.cbs.onattribname(this.getSection()),this.sectionStart=-1,this._state=10,this._index--)},Er.prototype.
2024-08-21 13:12:53 +08:00
` || $ ===" \r "&&this.html[L+1]!== `
2024-08-25 11:35:35 +08:00
` )&&(n.isEol=!0),n.col=L-n.lineStartPos+1,n.offset=n.droppedBufferSize+L,k.advance.call(this)},retreat(){k.retreat.call(this),n.isEol=!1,n.col=this.pos-n.lineStartPos+1},dropParsedChunk(){const L=this.pos;k.dropParsedChunk.call(this);const $ =L-this.pos;n.lineStartPos-= $ ,n.droppedBufferSize+= $ ,n.offset=n.droppedBufferSize+this.pos}}}}return preprocessorMixin $ 1=t,preprocessorMixin $ 1}var tokenizerMixin $ 1,hasRequiredTokenizerMixin $ 1;function requireTokenizerMixin $ 1(){if(hasRequiredTokenizerMixin $ 1)return tokenizerMixin $ 1;hasRequiredTokenizerMixin $ 1=1;const e=requireMixin(),t=requireTokenizer(),y=requirePreprocessorMixin $ 1();class n extends e{constructor(L){super(L),this.tokenizer=L,this.posTracker=e.install(L.preprocessor,y),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 L=this.tokenizer.currentToken, $ =this.tokenizer.currentAttr;L.location.attrs||(L.location.attrs=Object.create(null)),L.location.attrs[ $ .name]=this.currentAttrLocation}_getOverriddenMethods(L, $ ){const j={_createStartTagToken(){ $ ._createStartTagToken.call(this),this.currentToken.location=L.ctLoc},_createEndTagToken(){ $ ._createEndTagToken.call(this),this.currentToken.location=L.ctLoc},_createCommentToken(){ $ ._createCommentToken.call(this),this.currentToken.location=L.ctLoc},_createDoctypeToken(V){ $ ._createDoctypeToken.call(this,V),this.currentToken.location=L.ctLoc},_createCharacterToken(V,z){ $ ._createCharacterToken.call(this,V,z),this.currentCharacterToken.location=L.ctLoc},_createEOFToken(){ $ ._createEOFToken.call(this),this.currentToken.location=L._getCurrentLocation()},_createAttr(V){ $ ._createAttr.call(this,V),L.currentAttrLocation=L._getCurrentLocation()},_leaveAttrName(V){ $ ._leaveAttrName.call(this,V),L._attachCurrentAttrLocationInfo()},_leaveAttrValue(V){ $ ._leaveAttrValue.call(this,V),L._attachCurrentAttrLocationInfo()},_emitCurrentToken(){const V=this.currentToken.location;this.currentCharacterToken&&(this.currentCharacterToken.location.endLine=V.startLine,this.currentCharacterToken.location.endCol=V.startCol,this.currentCharacterToken.location.endOffset=V.startOffset),this.currentToken.type===t.EOF_TOKEN?(V.endLine=V.startLine,V.endCol=V.startCol,V.endOffset=V.startOffset):(V.endLine=L.posTracker.line,V.endCol=L.posTracker.col+1,V.endOffset=L.posTracker.offset+1), $ ._emitCurrentToken.call(this)},_emitCurrentCharacterToken(){const V=this.currentCharacterToken&&this.currentCharacterToken.location;V&&V.endOffset===-1&&(V.endLine=L.posTracker.line,V.endCol=L.posTracker.col,V.endOffset=L.posTracker.offset), $ ._emitCurrentCharacterToken.call(this)}};return Object.keys(t.MODE).forEach(V=>{const z=t.MODE[V];j[z]=function(re){L.ctLoc=L._getCurrentLocation(), $ [z].call(this,re)}}),j}}return tokenizerMixin $ 1=n,tokenizerMixin $ 1}var openElementStackMixin,hasRequiredOpenElementStackMixin;function requireOpenElementStackMixin(){if(hasRequiredOpenElementStackMixin)return openElementStackMixin;hasRequiredOpenElementStackMixin=1;const e=requireMixin();class t extends e{constructor(n,k){super(n),this.onItemPop=k.onItemPop}_getOverriddenMethods(n,k){return{pop(){n.onItemPop(this.current),k.pop.call(this)},popAllUpToHtmlElement(){for(let L=this.stackTop;L>0;L--)n.onItemPop(this.items[L]);k.popAllUpToHtmlElement.call(this)},remove(L){n.onItemPop(this.current),k.remove.call(this,L)}}}}return openElementStackMixin=t,openElementStackMixin}var parserMixin $ 1,hasRequiredParserMixin $ 1;function requireParserMixin $ 1(){if(hasRequiredParserMixin $ 1)return parserMixin $ 1;hasRequiredParserMixin $ 1=1;const e=requireMixin(),t=requireTokenizer(),y=requireTokenizerMixin $ 1(),n=requireOpenElementStackMixin(),L=requireHtml().TAG_NAMES;class $ extends e{constructor(V){super(V),this.parser=V,this.treeAdapter=this.parser.treeAdapter,this.posTracker=
` )){if(vi.chars.length===1)continue;vi.chars=vi.chars.substr(1)}if(this._processInputToken(vi),Wn&&this.pendingScript)break}}runParsingLoopForCurrentChunk(Wn,vi){if(this._runParsingLoop(vi),vi&&this.pendingScript){const Ru=this.pendingScript;this.pendingScript=null,vi(Ru);return}Wn&&Wn()}_setupTokenizerCDATAMode(){const Wn=this._getAdjustedCurrentElement();this.tokenizer.allowCDATA=Wn&&Wn!==this.document&&this.treeAdapter.getNamespaceURI(Wn)!==de.HTML&&!this._isIntegrationPoint(Wn)}_switchToTextParsing(Wn,vi){this._insertElement(Wn,de.HTML),this.tokenizer.state=vi,this.originalInsertionMode=this.insertionMode,this.insertionMode=kt}switchToPlaintextParsing(){this.insertionMode=kt,this.originalInsertionMode=qe,this.tokenizer.state=e.MODE.PLAINTEXT}_getAdjustedCurrentElement(){return this.openElements.stackTop===0&&this.fragmentContext?this.fragmentContext:this.openElements.current}_findFormInFragmentContext(){let Wn=this.fragmentContext;do{if(this.treeAdapter.getTagName(Wn)===ue.FORM){this.formElement=Wn;break}Wn=this.treeAdapter.getParentNode(Wn)}while(Wn)}_initTokenizerForFragmentParsing(){if(this.treeAdapter.getNamespaceURI(this.fragmentContext)===de.HTML){const Wn=this.treeAdapter.getTagName(this.fragmentContext);Wn===ue.TITLE||Wn===ue.TEXTAREA?this.tokenizer.state=e.MODE.RCDATA:Wn===ue.STYLE||Wn===ue.XMP||Wn===ue.IFRAME||Wn===ue.NOEMBED||Wn===ue.NOFRAMES||Wn===ue.NOSCRIPT?this.tokenizer.state=e.MODE.RAWTEXT:Wn===ue.SCRIPT?this.tokenizer.state=e.MODE.SCRIPT_DATA:Wn===ue.PLAINTEXT&&(this.tokenizer.state=e.MODE.PLAINTEXT)}}_setDocumentType(Wn){const vi=Wn.name||"",Ru=Wn.publicId||"",Kc=Wn.systemId||"";this.treeAdapter.setDocumentType(this.document,vi,Ru,Kc)}_attachElementToTree(Wn){if(this._shouldFosterParentOnInsertion())this._fosterParentElement(Wn);else{const vi=this.openElements.currentTmplContent||this.openElements.current;this.treeAdapter.appendChild(vi,Wn)}}_appendElement(Wn,vi){const Ru=this.treeAdapter.createElement(Wn.tagName,vi,Wn.attrs);this._attachElementToTree(Ru)}_insertElement(Wn,vi){const Ru=this.treeAdapter.createElement(Wn.tagName,vi,Wn.attrs);this._attachElementToTree(Ru),this.openElements.push(Ru)}_insertFakeElement(Wn){const vi=this.treeAdapter.createElement(Wn,de.HTML,[]);this._attachElementToTree(vi),this.openElements.push(vi)}_insertTemplate(Wn){const vi=this.treeAdapter.createElement(Wn.tagName,de.HTML,Wn.attrs),Ru=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(vi,Ru),this._attachElementToTree(vi),this.openElements.push(vi)}_insertFakeRootElement(){const Wn=this.treeAdapter.createElement(ue.HTML,de.HTML,[]);this.treeAdapter.appendChild(this.openElements.current,Wn),this.openElements.push(Wn)}_appendCommentNode(Wn,vi){const Ru=this.treeAdapter.createCommentNode(Wn.data);this.treeAdapter.appendChild(vi,Ru)}_insertCharacters(Wn){if(this._shouldFosterParentOnInsertion())this._fosterParentText(Wn.chars);else{const vi=this.openElements.currentTmplContent||this.openElements.current;this.treeAdapter.insertText(vi,Wn.chars)}}_adoptNodes(Wn,vi){for(let Ru=this.treeAdapter.getFirstChild(Wn);Ru;Ru=this.treeAdapter.getFirstChild(Wn))this.treeAdapter.detachNode(Ru),this.treeAdapter.appendChild(vi,Ru)}_shouldProcessTokenInForeignContent(Wn){const vi=this._getAdjustedCurrentElement();if(!vi||vi===this.document)return!1;const Ru=this.treeAdapter.getNamespaceURI(vi);if(Ru===de.HTML||this.treeAdapter.getTagName(vi)===ue.ANNOTATION_XML&&Ru===de.MATHML&&Wn.type===e.START_TAG_TOKEN&&Wn.tagName===ue.SVG)return!1;const Kc=Wn.type===e.CHARACTER_TOKEN||Wn.type===e.NULL_CHARACTER_TOKEN||Wn.type===e.WHITESPACE_CHARACTER_TOKEN;return(Wn.type===e.START_TAG_TOKEN&&Wn.tagName!==ue.MGLYPH&&Wn.tagName!==ue.MALIGNMARK||Kc)&&this._isIntegrationPoint(vi,de.MATHML)||(Wn.type===e.START_TAG_TOKEN||Kc)&&this._isIntegrationPoint(vi,de.HTML)?!1:Wn.type!==e.EOF_TOKEN}_processToken(Wn){Fr[this.insertionMode][Wn.type](this,Wn)}_processTokenInBodyMode(Wn){Fr[qe][Wn.type](this,Wn)}_processTokenInForeignContent(Wn){Wn.type===e.CHARACTER_TOKEN?ym(this,Wn):Wn.type===e.NULL_CHARACTER_TOKEN?ip(this,Wn):Wn.type===e.W
2024-08-21 13:12:53 +08:00
* The buffer module from node . js , for the browser .
*
* @ author Feross Aboukhadijeh < https : //feross.org>
* @ license MIT
2024-08-25 11:35:35 +08:00
* / ( f u n c t i o n ( e ) { c o n s t t = b a s e 6 4 J s $ 1 , y = i e e e 7 5 4 $ 1 , n = 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 ; e . B u f f e r = r e , e . S l o w B u f f e r = F e , e . I N S P E C T _ M A X _ B Y T E S = 5 0 ; c o n s t k = 2 1 4 7 4 8 3 6 4 7 ; e . k M a x L e n g t h = k ; c o n s t { U i n t 8 A r r a y : L , A r r a y B u f f e r : $ , S h a r e d A r r a y B u f f e r : j } = g l o b a l T h i s ; r e . T Y P E D _ A R R A Y _ S U P P O R T = V ( ) , ! r e . 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 V ( ) { t r y { c o n s t K n = n e w L ( 1 ) , H r = { 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 ( H r , L . 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 ( K n , H r ) , K n . 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 ( r e . 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 ( r e . 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 ( r e . 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 ( r e . 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 z ( K n ) { i f ( K n > k ) 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 " ' + K n + ' " 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 H r = n e w L ( K n ) ; 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 ( H r , r e . p r o t o t y p e ) , H r } f u n c t i o n r e ( K n , H r , A r ) { i f ( t y p e o f K n = = " n u m b e r " ) { i f ( t y p e o f H r = = " s t r i n g " ) t h r o w n e w T y p e E r r o r ( ' T h e " s t r i n g " a r g u m e n t m u s t b e o f t y p e s t r i n g . R e c e i v e d t y p e n u m b e r ' ) ; r e t u r n d e ( K n ) } r e t u r n i e ( K n , H r , A r ) } r e . p o o l S i z e = 8 1 9 2 ; f u n c t i o n i e ( K n , H r , A r ) { i f ( t y p e o f K n = = " s t r i n g " ) r e t u r n p e ( K n , H r ) ; i f ( $ . i s V i e w ( K n ) ) r e t u r n _ e ( K n ) ; i f ( K n = = 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 K n ) ; i f ( c a ( K n , $ ) | | K n & & c a ( K n . b u f f e r , $ ) | | t y p e o f j < " u " & & ( c a ( K n , j ) | | K n & & c a ( K n . b u f f e r , j ) ) ) r e t u r n C e ( K n , H r , A r ) ; i f ( t y p e o f K n = = " 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 O n = K n . v a l u e O f & & K n . v a l u e O f ( ) ; i f ( O n ! = n u l l & & O n ! = = K n ) r e t u r n r e . f r o m ( O n , H r , A r ) ; c o n s t I n = h e ( K n ) ; i f ( I n ) r e t u r n I n ; 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 K n [ 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 r e . f r o m ( K n [ S y m b o l . t o P r i m i t i v e ] ( " s t r i n g " ) , H r , A r ) ; 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 K n ) } r e . f r o m = f u n c t i o n ( K n , H r , A r ) { r e t u r n i e ( K n , H r , A r ) } , O b j e c t . s e t P r o t o t y p e O f ( r e . p r o t o t y p e , L . 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 ( r e , L ) ; f u n c t i o n o e ( K n ) { i f ( t y p e o f K n ! = " 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 ( K n < 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 " ' + K n + ' " 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 e ( K n , H r , A r ) { r e t u r n o e ( K n ) , K n < = 0 ? z ( K n ) : H r ! = = v o i d 0 ? t y p e o f A r = = " s t r i n g " ? z ( K n ) . f i l l ( H r , A r ) : z ( K n ) . f i l l ( H r ) : z ( K n ) } r e . a l l o c = f u n c t i o n ( K n , H r , A r ) { r e t u r n u e ( K n , H r , A r ) } ; f u n c t i o n d e ( K n ) { r e t u r n o e ( K n ) , z ( K n < 0 ? 0 : N e ( K n ) | 0 ) } r e . a l l o c U n s a f e = f u n c t i o n ( K n ) { r e t u r n d e ( K n ) } , r e . a l l o c U n s a f e S l o w = f u n c t i o n ( K n ) { r e t u r n d e ( K n ) } ; f u n c t i o n p e ( K n , H r ) { i f ( ( t y p e o f H r ! = " s t r i n g " | | H r = = = " " ) & & ( H r = " u t f 8 " ) , ! r e . i s E n c o d i n g ( H r ) ) 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 : " + H r ) ; c o n s t A r = V e ( K n , H r ) | 0 ; l e t O n = z ( A r ) ; c o n s t I n = O n . w r i t e ( K n , H r ) ; r e t u r n I n ! = = A r & & ( O n = O n . s l i c e ( 0 , I n ) ) , O n } f u n c t i o n I e ( K n ) { c o n s t H r = K n . l e n g t h < 0 ? 0 : N e ( K n . l e n g t h ) | 0 , A r = z ( H r ) ; f o r ( l e t O n = 0 ; O n < H r ; O n + = 1 ) A r [ O n ] = K n [ O n ] & 2 5 5 ; r e t u r n A r } f u n c t i o n _ e ( K n ) { i f ( c a ( K n , L ) ) { c o n s t H r = n e w L ( K n ) ; r e t u r n C e ( H r . b u f f e r , H r . b y t e O f f s e t , H r . b y t e L e n g t h ) } r e t u r n I e ( K n ) } f u n c t i o n C e ( K n , H r , A r ) { i f ( H r < 0 | | K n . b y t e L e n g t h < H r ) 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 ( K n . b y t e L e n g t h < H r + ( A r | | 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 O n ; r e t u r n H r = = = v o i d 0 & & A r = = = v o i d 0 ? O n = n e w L ( K n ) : A r = = = v o i d 0 ? O n = n e w L ( K n , H r ) : O n = n e w L ( K n , H r , A r ) , O b j e c t . s e t P r o t o t y p e O f ( O n , r e . p r o t o t y p e ) , O n } f u n c t i o n h e ( K n ) { i f ( r e . i s B u f f e r ( K n ) ) { c o n s t H r = N e ( K n . l e n g t h ) | 0 , A r = z ( H r ) ; r e t u r n A r . l e n g t h = = = 0 | | K n . c o p y ( A r , 0 , 0 , H r ) , A r } i f ( K n . l e n g t h ! = = v o i d 0 ) r e t u r n t y p e o f K n . l e n g t h ! = " n u m b e r " | | P o ( K n . l e n g t h ) ? z ( 0 ) : I e ( K n ) ; i f ( K n . t y p e = = = " B u f f e r " & & A r r a y . i s A r r a y ( K n . d a t a ) ) r e t u r n I e ( K n . d a t a ) } f u n c t i o n N e ( K n ) { i f ( K n > = k ) 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 " + k . t o S t r i n g ( 1 6 ) + " b y t e s " ) ; r e t u r n K n | 0 } f u n c t i o n F e ( K n ) { r e t u r n + K n ! = K n & & ( K n = 0 ) , r e . a l l o c ( + K n ) } r e . i s B u f f e r = f u n c t i
2024-08-21 13:12:53 +08:00
` )}}):{name:ie,value:oe.replace(n, ` \ r
2024-08-25 11:35:35 +08:00
` )}}).toArray()}return forms.serializeArray=L,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 e=require $ $ 0 $ 6,t=e.__importDefault(requireParse()),y=e.__importDefault(requireOptions()),n=requireUtils $ 1(),k=e.__importStar(requireAttributes()),L=e.__importStar(requireTraversing()), $ =e.__importStar(requireManipulation()),j=e.__importStar(requireCss()),V=e.__importStar(requireForms()),z=function(){function ie(oe,ue,de,pe){var Ie=this;if(pe===void 0&&(pe=y.default),this.length=0,this.options=pe,!oe)return this;if(de&&(typeof de=="string"&&(de=t.default(de,this.options,!1)),this._root=new this.constructor(de,null,null,this.options),this._root._root=this._root),n.isCheerio(oe))return oe;var _e=typeof oe=="string"&&n.isHtml(oe)?t.default(oe,this.options,!1).children:re(oe)?[oe]:Array.isArray(oe)?oe:null;if(_e)return _e.forEach(function(Ne,Fe){Ie[Fe]=Ne}),this.length=_e.length,this;var Ce=oe,he=ue?typeof ue=="string"?n.isHtml(ue)?this._make(t.default(ue,this.options,!1)):(Ce=ue+" "+Ce,this._root):n.isCheerio(ue)?ue:this._make(ue):this._root;return he?he.find(Ce):this}return ie.prototype._make=function(oe,ue){var de=new this.constructor(oe,ue,this._root,this.options);return de.prevObject=this,de},ie}();cheerio $ 1.Cheerio=z,z.prototype.cheerio="[cheerio object]",z.prototype.splice=Array.prototype.splice,z.prototype[Symbol.iterator]=Array.prototype[Symbol.iterator],Object.assign(z.prototype,k,L, $ ,j,V);function re(ie){return!!ie.name||ie.type==="root"||ie.type==="text"||ie.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 e=require $ $ 0 $ 6,t=e.__importStar(requireOptions()),y=e.__importStar(require_static()),n=requireCheerio(),k=e.__importDefault(requireParse());function L( $ ,j,V){if(V===void 0&&(V=!0), $ ==null)throw new Error("cheerio.load() expects a string");var z=e.__assign(e.__assign({},t.default),t.flatten(j)),re=k.default( $ ,z,V),ie=function(ue){e.__extends(de,ue);function de(){return ue!==null&&ue.apply(this,arguments)||this}return de}(n.Cheerio);function oe(ue,de,pe,Ie){return pe===void 0&&(pe=re),new ie(ue,de,pe,e.__assign(e.__assign({},z),t.flatten(Ie)))}return Object.assign(oe,y,{load:L,_root:re,_options:z,fn:ie.prototype,prototype:ie.prototype}),oe}return load.load=L,load}(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.root=e.parseHTML=e.merge=e.contains=void 0;var t=require $ $ 0 $ 6;t.__exportStar(requireTypes(),e),t.__exportStar(requireLoad(),e);var y=requireLoad();e.default=y.load([]);var n=t.__importStar(require_static());e.contains=n.contains,e.merge=n.merge,e.parseHTML=n.parseHTML,e.root=n.root})(lib $ d);var utils $ 3={},lexer={exports:{}},debug={exports:{}};(function(e,t){var y={version:"v20.16.0",versions:{node:"20.16.0",acorn:"8.11.3",ada:"2.8.0",ares:"1.31.0",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.2.8",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.16.0/node-v20.16.0.tar.gz",headersUrl:"https://nodejs.org/download/release/v20.16.0/node-v20.16.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","Internal Binding options","NativeModule internal/options","Internal Binding string_decoder","NativeModule
` )}})(debug);var debugExports=debug.exports;(function(e,t){debugExports("lex"),e.exports=y;function y(n){var k="",L, $ =0,j=-1,V=0,z=1,re="before-selector",ie=[re],oe={},ue=[],de=["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 pe(){return Et(),n[j]}function Ie(cr){return cr?ie[ie.length-1-cr]:re}function _e(cr){var mr=j+1;return cr===n.slice(mr,mr+cr.length)}function Ce(cr){var mr=n.slice(j).indexOf(cr);return mr>0?mr:!1}function he(cr){return cr===Ne(1)}function Ne(cr){return n[j+(cr||1)]}function Fe(){var cr=ie.pop();return re=ie[ie.length-1],cr}function Ve(cr){return re=cr,ie.push(re),ie.length}function jt(cr){var mr=re;return ie[ie.length-1]=re=cr,mr}function Et(cr){if((cr||1)==1)n[j]== `
` ?(z++, $ =1): $ ++,j++;else{var mr=n.slice(j,j+cr).split( `
` );mr.length>1&&(z+=mr.length-1, $ =1), $ +=mr[mr.length-1].length,j=j+cr}}function Ue(){oe.end={line:z,col: $ },ue.push(oe),k="",oe={}}function qe(cr){oe={type:cr,start:{line:z,col: $ }}}for(;L=pe();)switch(L){case" ":switch(Ie()){case"selector":case"value":case"value-paren":case"at-group":case"at-value":case"comment":case"double-string":case"single-string":k+=L;break}break;case `
2024-08-21 13:12:53 +08:00
` :case" ":case" \r ":case" \f ":switch(Ie()){case"value":case"value-paren":case"at-group":case"comment":case"single-string":case"double-string":case"selector":k+=L;break;case"at-value":L=== `
2024-08-25 11:35:35 +08:00
` &&(oe.value=k.trim(),Ue(),Fe());break}break;case":":switch(Ie()){case"name":oe.name=k.trim(),k="",jt("before-value");break;case"before-selector":k+=L,qe("selector"),Ve("selector");break;case"before-value":jt("value"),k+=L;break;default:k+=L;break}break;case";":switch(Ie()){case"name":case"before-value":case"value":k.trim().length>0&&(oe.value=k.trim(),Ue()),jt("before-name");break;case"value-paren":k+=L;break;case"at-value":oe.value=k.trim(),Ue(),Fe();break;case"before-name":break;default:k+=L;break}break;case"{":switch(Ie()){case"selector":if(Ne(-1)===" \\ "){k+=L;break}oe.text=k.trim(),Ue(),jt("before-name"),V=V+1;break;case"at-group":switch(oe.name=k.trim(),oe.type){case"font-face":case"viewport":case"page":Ve("before-name");break;default:Ve("before-selector")}Ue(),V=V+1;break;case"name":case"at-rule":oe.name=k.trim(),Ue(),Ve("before-name"),V=V+1;break;case"comment":case"double-string":case"single-string":k+=L;break;case"before-value":jt("value"),k+=L;break}break;case"}":switch(Ie()){case"before-name":case"name":case"before-value":case"value":k&&(oe.value=k.trim()),oe.name&&oe.value&&Ue(),qe("end"),Ue(),Fe(),Ie()==="at-group"&&(qe("at-group-end"),Ue(),Fe()),V>0&&(V=V-1);break;case"at-group":case"before-selector":case"selector":if(Ne(-1)===" \\ "){k+=L;break}V>0&&Ie(1)==="at-group"&&(qe("at-group-end"),Ue()),V>1&&Fe(),V>0&&(V=V-1);break;case"double-string":case"single-string":case"comment":k+=L;break}break;case'"':case"'":switch(Ie()){case"double-string":L==='"'&&Ne(-1)!==" \\ "&&Fe();break;case"single-string":L==="'"&&Ne(-1)!==" \\ "&&Fe();break;case"before-at-value":jt("at-value"),Ve(L==='"'?"double-string":"single-string");break;case"before-value":jt("value"),Ve(L==='"'?"double-string":"single-string");break;case"comment":break;default:Ne(-1)!==" \\ "&&Ve(L==='"'?"double-string":"single-string")}k+=L;break;case"/":switch(Ie()){case"comment":case"double-string":case"single-string":k+=L;break;case"before-value":case"selector":case"name":case"value":if(he("*")){var kt=Ce("*/");kt&&Et(kt+1)}else Ie()=="before-value"&&jt("value"),k+=L;break;default:he("*")?(qe("comment"),Ve("comment"),Et()):k+=L;break}break;case"*":switch(Ie()){case"comment":he("/")?(oe.text=k,Et(),Ue(),Fe()):k+=L;break;case"before-selector":k+=L,qe("selector"),Ve("selector");break;case"before-value":jt("value"),k+=L;break;default:k+=L}break;case"@":switch(Ie()){case"comment":case"double-string":case"single-string":k+=L;break;case"before-value":jt("value"),k+=L;break;default:for(var tr=!1,rr,ar,nr=0,ur=de.length;!tr&&nr<ur;++nr)ar=de[nr],rr=ar.name||ar,_e(rr)&&(tr=!0,qe(rr),Ve(ar.state||"at-group"),Et(rr.length),ar.prefix&&(oe.prefix=ar.prefix),ar.type&&(oe.type=ar.type));tr||(k+=L);break}break;case"(":switch(Ie()){case"value":Ve("value-paren");break;case"before-value":jt("value");break}k+=L;break;case")":switch(Ie()){case"value-paren":Fe();break;case"before-value":jt("value");break}k+=L;break;default:switch(Ie()){case"before-selector":qe("selector"),Ve("selector");break;case"before-name":qe("property"),jt("name");break;case"before-value":jt("value");break;case"before-at-value":jt("at-value");break}k+=L;break}return ue}})(lexer);var lexerExports=lexer.exports,parser $ 2={exports:{}};(function(e,t){debugExports("parse");var y=lexerExports;e.exports=j;var n,k,L, $ ;function j(Fe,Ve){Ve||(Ve={}),n=!!Ve.comments,L=!!Ve.position,k=0, $ =Array.isArray(Fe)?Fe.slice():y(Fe);for(var jt,Et=[],Ue;Ue=z();)jt=_e(Ue),jt&&Et.push(jt);return{type:"stylesheet",stylesheet:{rules:Et}}}function V(Fe,Ve){Ve||(Ve={});for(var jt,Et=["type","name","value"],Ue={},qe=0;qe<Et.length;++qe)jt=Et[qe],Fe[jt]&&(Ue[jt]=Ve[jt]||Fe[jt]);for(Et=Object.keys(Ve),qe=0;qe<Et.length;++qe)jt=Et[qe],Ue[jt]||(Ue[jt]=Ve[jt]);return L&&(Ue.position={start:Fe.start,end:Fe.end}),Ue}function z(){var Fe= $ .shift();return Fe}function re(Fe){k=k+1;var Ve={};switch(Fe.type){case"font-face":case"viewport":Ve.declarations=he();break;case"page":Ve.prefix=Fe.prefix,Ve.declarations=he();break;default:Ve.prefix=Fe.prefix,Ve.rules=Ne()}return V(Fe,Ve)}function ie(Fe){return V(Fe)}function oe(Fe){return V(Fe)}function ue(Fe){ret
` ,j=" ");var Ve=de(Ne.stylesheet.rules,Ce).join( `
` ).trim();return Ve}function z(Ne){if(Ne){L+=Ne;return}return n?"":Array(L).join(k||"")}function re(Ne){return"@"+Ne.type+" "+Ne.value+";"+ $ }function ie(Ne){var Fe="",Ve=Ne.prefix||"";Ne.name&&(Fe=" "+Ne.name);var jt=Ne.type!=="page";return"@"+Ve+Ne.type+Fe+j+pe(Ne,jt)+ $ }function oe(Ne){return y?"/*"+(Ne.text||"")+"*/"+ $ :""}function ue(Ne){var Fe;return Ne.selectors?Fe=Ne.selectors.join(","+ $ ):(Fe="@"+Ne.type,Fe+=Ne.name?" "+Ne.name:""),z()+Fe+j+pe(Ne)+ $ }function de(Ne,Fe){return Ne.reduce(function(Ve,jt){var Et=jt.type==="comment"?oe(jt):Fe(jt);return Et&&Ve.push(Et),Ve},[])}function pe(Ne,Fe){var Ve=Ne.declarations,jt=_e;return Ne.rules&&(Ve=Ne.rules,jt=ue),Ve=Ie(Ve,jt),Ve&&(Ve= $ +Ve+(Fe?"": $ )),"{"+Ve+z()+"}"}function Ie(Ne,Fe){if(!Ne)return"";z(1);var Ve=de(Ne,Fe);return z(-1),Ve.length?Ve.join( $ ):""}function _e(Ne){if(Ne.type==="property")return he(Ne)}function Ce(Ne){switch(Ne.type){case"rule":return ue(Ne);case"media":case"keyframes":return ie(Ne);case"comment":return oe(Ne);case"import":case"charset":case"namespace":return re(Ne);case"font-face":case"supports":case"viewport":case"document":case"page":return ie(Ne)}}function he(Ne){var Fe=Ne.name?Ne.name+":"+j:"";return z()+Fe+Ne.value+";"}})(stringify $ 1);var stringifyExports=stringify $ 1.exports,mensch={lex:lexerExports,parse:parserExports,stringify:stringifyExports},selector={exports:{}},escapeRe=/([-.*+?^ ${ } ()|[ \] \/ \\ ])/g,unescapeRe=/ \\ /g,escape $ 1=function(e){return(e+"").replace(escapeRe," \\ $ 1")},unescape $ 1=function(e){return(e+"").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(t){this.combinator=t||" ",this.tag="*"};Part.prototype.toString=function(){if(!this.raw){var e="",t,y;if(e+=this.tag||"*",this.id&&(e+="#"+this.id),this.classes&&(e+="."+this.classList.join(".")),this.attributes)for(t=0;y=this.attributes[t++];)e+="["+y.name+(y.operator?y.operator+' "'+y.value+'" ' : "" ) + "]" ; if ( this . pseudos ) for ( t = 0 ; y = this . pseudos [ t ++ ] ; ) e += ":" + y . name , y . value && ( e += "(" + y . value + ")" ) ; this . raw = e } return this . raw } ; var Expression = function ( ) { this . length = 0 } ; Expression . prototype . toString = function ( ) { if ( ! this . raw ) { for ( var e = "" , t = 0 , y ; y = this [ t ++ ] ; ) t !== 1 && ( e += " " ) , y . combinator !== " " && ( e += y . combinator + " " ) , e += y ; this . raw = e } return this . raw } ; var replacer = function ( e , t , y , n , k , L , $ , j , V , z , re , ie , oe , ue , de , pe ) { var Ie , _e ; if ( ( t || ! this . length ) && ( Ie = this [ this . length ++ ] = new Expression , t ) ) return "" ; if ( Ie || ( Ie = this [ this . length - 1 ] ) , ( y || n || ! Ie . length ) && ( _e = Ie [ Ie . length ++ ] = new Part ( y ) ) , _e || ( _e = Ie [ Ie . length - 1 ] ) , k ) _e . tag = unescape$1 ( k ) ; else if ( L ) _e . id = unescape$1 ( L ) ; else if ( $ ) { var Ce = unescape$1 ( $ ) , he = _e . classes || ( _e . classes = { } ) ; if ( ! he [ Ce ] ) { he [ Ce ] = escape$1 ( $ ) ; var Ne = _e . classList || ( _e . classList = [ ] ) ; Ne . push ( Ce ) , Ne . sort ( ) } } else oe ? ( pe = pe || de , ( _e . pseudos || ( _e . pseudos = [ ] ) ) . push ( { type : ie . length == 1 ? "class" : "element" , name : unescape$1 ( oe ) , escapedName : escape$1 ( oe ) , value : pe ? unescape$1 ( pe ) : null , escapedValue : pe ? escape$1 ( pe ) : null } ) ) : j && ( re = re ? escape$1 ( re ) : null , ( _e . attributes || ( _e . attributes = [ ] ) ) . push ( { operator : V , name : unescape$1 ( j ) , escapedName : escape$1 ( j ) , value : re ? unescape$1 ( re ) : null , escapedValue : re ? escape$1 ( re ) : null } ) ) ; return "" } , Expressions = function ( t ) { this . length = 0 ; for ( var y = this , n = t , k ; t ; ) { if ( k = t . replace ( slickRe , function ( ) { return replacer . apply ( y , arguments ) } ) , k === t ) throw new Error ( n + " is an invalid expression" ) ; t = k } } ; Expressions . prototype . toString = function ( ) { if ( ! this . raw ) { for ( var e = [ ] , t = 0 , y ; y = this [ t ++ ] ; ) e . push ( y ) ; this . raw = e . join ( ", " ) } return this . raw } ; var cache$1 = { } , parse = function ( e ) { return e == null ? null : ( e = ( "" + e ) . replace ( /^\s+|\s+$/g , "" ) , cache$1 [ e ] || ( cache$1 [ e ] = new Expressions ( e ) ) ) } , parser$1 = parse ; ( function ( e , t ) { var y = parser$1 ; e . exports = n ; function n ( L , $ ) { this . text = L , this . spe
2024-08-21 13:12:53 +08:00
* Returns an array of the selectors .
*
* @ license Sizzle CSS Selector Engine - MIT
* @ param { String } selectorText from mensch
* @ api public
* / e . e x t r a c t = f u n c t i o n ( L ) { f o r ( v a r $ = 0 , j = [ ] , V = " " , z = 0 , r e = L . l e n g t h ; z < r e ; z + + ) { v a r i e = L . c h a r A t ( z ) ; $ ? ( ( i e = = = " ] " | | i e = = = " ) " ) & & $ - - , V + = i e ) : i e = = = " , " ? ( j . p u s h ( V ) , V = " " ) : ( ( i e = = = " [ " | | i e = = = " ( " ) & & $ + + , ( V . l e n g t h | | i e ! = = " , " & & i e ! = = `
` &&ie!==" ")&&(V+=ie))}return V.length&&j.push(V),j},e.parseCSS=function(k){for(var L=t.parse(k,{position:!0,comments:!0}), $ =typeof L.stylesheet<"u"&&L.stylesheet.rules?L.stylesheet.rules:[],j=[],V=0,z= $ .length;V<z;V++)if( $ [V].type=="rule")for(var re= $ [V],ie=re.selectors,oe=0,ue=ie.length;oe<ue;oe++)j.push([ie[oe],re.declarations]);return j},e.getPreservedText=function(k,L, $ ){for(var j=t.parse(k,{position:!0,comments:!0}),V=typeof j.stylesheet<"u"&&j.stylesheet.rules?j.stylesheet.rules:[],z=[],re=V.length-1;re>=0;re--)(L.fontFaces&&V[re].type==="font-face"||L.mediaQueries&&V[re].type==="media"||L.keyFrames&&V[re].type==="keyframes"||L.pseudos&&V[re].selectors&&this.matchesPseudo(V[re].selectors[0], $ ))&&z.unshift(t.stringify({stylesheet:{rules:[V[re]]}},{comments:!1,indentation:" "})),V[re].position.start;return z.length===0?!1: `
` +z.join( `
` )+ `
` },e.normalizeLineEndings=function(k){return k.replace(/ \r \n /g, `
` ).replace(/ \n /g, ` \ r
2024-08-25 11:35:35 +08:00
` )},e.matchesPseudo=function(k,L){return L.find(function( $ ){return k.indexOf( $ )>-1})},e.compareFunc=function(k,L){for(var $ =Math.min(k.length,L.length),j=0;j< $ ;j++)if(k[j]!==L[j])return k[j]>L[j]?1:-1;return k.length-L.length},e.compare=function(k,L){return e.compareFunc(k,L)==1?k:L},e.getDefaultOptions=function(k){var L=Object.assign({extraCss:"",insertPreservedExtraCss:!0,applyStyleTags:!0,removeStyleTags:!0,preserveMediaQueries:!0,preserveFontFaces:!0,preserveKeyFrames:!0,preservePseudos:!0,applyWidthAttributes:!0,applyHeightAttributes:!0,applyAttributesTableElements:!0,url:""},k);return L.webResources=L.webResources||{},L}}(utils $ 3)),utils $ 3}(function(e){var t=lib $ d;requireUtils();var y=function(k,L, $ ){return L=Object.assign({decodeEntities:!1,_useHtmlParser2:!0},L),k= $ (k),t.load(k,L)},n=function(){var k=[],L=function(j){var V=e.exports.codeBlocks;return Object.keys(V).forEach(function(z){var re=new RegExp(V[z].start+"([ \\ S \\ s]*?)"+V[z].end,"g");j=j.replace(re,function(ie,oe){return k.push(ie),"JUICE_CODE_BLOCK_"+(k.length-1)+"_"})}),j}, $ =function(j){for(var V=0;V<k.length;V++){var z=new RegExp("JUICE_CODE_BLOCK_"+V+'_(="")?',"gi");j=j.replace(z,function(){return k[V]})}return j};return{encodeEntities:L,decodeEntities: $ }};e.exports=function(k,L, $ ,j){var V=n(),z=y(k,L,V.encodeEntities),re=[z];re.push.apply(re,j);var ie= $ .apply(void 0,re)||z;return L&&L.xmlMode?V.decodeEntities(ie.xml()):V.decodeEntities(ie.html())},e.exports.codeBlocks={EJS:{start:"<%",end:"%>"},HBS:{start:"{{",end:"}}"}}})(cheerio $ 2);var cheerioExports=cheerio $ 2.exports,numbers $ 1={};numbers $ 1.romanize=function(e){if(isNaN(e))return NaN;for(var t=String(+e).split(""),y=["","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"],n="",k=3;k--;)n=(y[+t.pop()+k*10]||"")+n;return Array(+t.join("")+1).join("M")+n};numbers $ 1.alphanumeric=function(e){for(var t="",y;e>0;)y=(e-1)%26,t=String.fromCharCode(65+y)+t,e=(e-y)/26|0;return t||void 0};var utils $ 2=requireUtils(),numbers=numbers $ 1,inline=function(t){t.ignoredPseudos=["hover","active","focus","visited","link"],t.widthElements=["TABLE","TD","TH","IMG"],t.heightElements=["TABLE","TD","TH","IMG"],t.tableElements=["TABLE","TH","TR","TD","CAPTION","COLGROUP","COL","THEAD","TBODY","TFOOT"],t.nonVisualElements=["HEAD","TITLE","BASE","LINK","STYLE","META","SCRIPT","NOSCRIPT"],t.styleToAttribute={"background-color":"bgcolor","background-image":"background","text-align":"align","vertical-align":"valign"},t.excludedProperties=[],t.juiceDocument=re,t.inlineDocument=y;function y(ue,de,pe){pe=pe||{};var Ie=utils $ 2.parseCSS(de),_e=[],Ce="style",he={};if(pe.styleAttributeName&&(Ce=pe.styleAttributeName),Ie.forEach(Ve),_e.forEach(jt),pe.inlinePseudoElements&&_e.forEach(Et),pe.applyWidthAttributes&&_e.forEach(function(tr){Ue(tr,"width")}),pe.applyHeightAttributes&&_e.forEach(function(tr){Ue(tr,"height")}),pe.applyAttributesTableElements&&_e.forEach(kt),pe.insertPreservedExtraCss&&pe.extraCss){var Ne=utils $ 2.getPreservedText(pe.extraCss,{mediaQueries:pe.preserveMediaQueries,fontFaces:pe.preserveFontFaces,keyFrames:pe.preserveKeyFrames});if(Ne){var Fe=null;pe.insertPreservedExtraCss!==!0?Fe=ue(pe.insertPreservedExtraCss):(Fe=ue("head"),Fe.length||(Fe=ue("body")),Fe.length||(Fe=ue.root())),Fe.first().append("<style>"+Ne+"</style>")}}function Ve(tr){var rr=tr[0],ar=tr[1],nr=new utils $ 2.Selector(rr),ur=nr.parsed();if(ur){for(var cr=j(ur),mr=0;mr<ur.length;++mr){var hr=ur[mr];if(hr.pseudos)for(var br=0;br<hr.pseudos.length;++br){var Rr=hr.pseudos[br];if(t.ignoredPseudos.indexOf(Rr.name)>=0)return}}if(cr){var xr=ur[ur.length-1],Er=xr.pseudos;xr.pseudos=z(xr.pseudos),rr=ur.toString(),xr.pseudos=Er}var vr;try{vr=ue(rr)}catch{return}vr.each(function(){var Ir=this;if(Ir.name&&t.nonVisualElements.indexOf(Ir.name.toUpperCase())>=0)return;if(cr){var Lr="pseudo"+cr,gr=Ir[Lr];gr||(gr=Ir[Lr]=ue("<span />").get(0),gr.pseudoElementType=cr,gr.pseudoElementParent=Ir,gr.counterProps=Ir.counterProps,Ir[Lr]=gr),Ir=gr}if(!Ir.styleProps){if(Ir.styleProps={},
` +de.extraCss,y(ue,pe,de),ue}function ie(ue,de){var pe=[],Ie=ue("style"),_e,Ce,he;return Ie.each(function(){he=this;var Ne=!!he.childNodes;if(_e=Ne?he.childNodes:he.children,_e.length!==1){de.removeStyleTags&&ue(he).remove();return}if(Ce=_e[0].data,de.applyStyleTags&&ue(he).attr("data-embed")===void 0&&pe.push(Ce),de.removeStyleTags&&ue(he).attr("data-embed")===void 0){var Fe=Ne?he.childNodes[0].nodeValue:he.children[0].data,Ve=utils $ 2.getPreservedText(Fe,{mediaQueries:de.preserveMediaQueries,fontFaces:de.preserveFontFaces,keyFrames:de.preserveKeyFrames,pseudos:de.preservePseudos},t.ignoredPseudos);Ve?Ne?he.childNodes[0].nodeValue=Ve:he.children[0].data=Ve:ue(he).remove()}ue(he).removeAttr("data-embed")}),pe}function oe(ue,de){var pe=ie(ue,de),Ie=pe.join( `
` );return Ie}return t},cheerio=cheerioExports,makeJuiceClient=inline,juiceClient=makeJuiceClient(function(e,t){return cheerio(e,{xmlMode:t&&t.xmlMode},juiceDocument,[t])}),juiceDocument=function(e,t){return juiceClient.juiceDocument(e,t)};juiceClient.inlineContent=function(e,t,y){return cheerio(e,{xmlMode:y&&y.xmlMode},juiceClient.inlineDocument,[t,y])};var client=juiceClient;const juice=getDefaultExportFromCjs(client);var standalone={exports:{}};(function(e,t){(function(y){e.exports=y()})(function(){var y=(Zn,hn)=>()=>(hn||Zn((hn={exports:{}}).exports,hn),hn.exports),n=y((Zn,hn)=>{var Ln=function(Vi){return Vi&&Vi.Math==Math&&Vi};hn.exports=Ln(typeof globalThis=="object"&&globalThis)||Ln(typeof window=="object"&&window)||Ln(typeof self=="object"&&self)||Ln(typeof commonjsGlobal=="object"&&commonjsGlobal)||function(){return this}()||Function("return this")()}),k=y((Zn,hn)=>{hn.exports=function(Ln){try{return!!Ln()}catch{return!0}}}),L=y((Zn,hn)=>{var Ln=k();hn.exports=!Ln(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})}), $ =y((Zn,hn)=>{var Ln=k();hn.exports=!Ln(function(){var Vi=(function(){}).bind();return typeof Vi!="function"||Vi.hasOwnProperty("prototype")})}),j=y((Zn,hn)=>{var Ln= $ (),Vi=Function.prototype.call;hn.exports=Ln?Vi.bind(Vi):function(){return Vi.apply(Vi,arguments)}}),V=y(Zn=>{var hn={}.propertyIsEnumerable,Ln=Object.getOwnPropertyDescriptor,Vi=Ln&&!hn.call({1:2},1);Zn.f=Vi?function(Wi){var pa=Ln(this,Wi);return!!pa&&pa.enumerable}:hn}),z=y((Zn,hn)=>{hn.exports=function(Ln,Vi){return{enumerable:!(Ln&1),configurable:!(Ln&2),writable:!(Ln&4),value:Vi}}}),re=y((Zn,hn)=>{var Ln= $ (),Vi=Function.prototype,Wi=Vi.call,pa=Ln&&Vi.bind.bind(Wi,Wi);hn.exports=Ln?pa:function(Ki){return function(){return Wi.apply(Ki,arguments)}}}),ie=y((Zn,hn)=>{var Ln=re(),Vi=Ln({}.toString),Wi=Ln("".slice);hn.exports=function(pa){return Wi(Vi(pa),8,-1)}}),oe=y((Zn,hn)=>{var Ln=re(),Vi=k(),Wi=ie(),pa=Object,Ki=Ln("".split);hn.exports=Vi(function(){return!pa("z").propertyIsEnumerable(0)})?function(Xo){return Wi(Xo)=="String"?Ki(Xo,""):pa(Xo)}:pa}),ue=y((Zn,hn)=>{hn.exports=function(Ln){return Ln==null}}),de=y((Zn,hn)=>{var Ln=ue(),Vi=TypeError;hn.exports=function(Wi){if(Ln(Wi))throw Vi("Can't call method on "+Wi);return Wi}}),pe=y((Zn,hn)=>{var Ln=oe(),Vi=de();hn.exports=function(Wi){return Ln(Vi(Wi))}}),Ie=y((Zn,hn)=>{var Ln=typeof document=="object"&&document.all,Vi=typeof Ln>"u"&&Ln!==void 0;hn.exports={all:Ln,IS_HTMLDDA:Vi}}),_e=y((Zn,hn)=>{var Ln=Ie(),Vi=Ln.all;hn.exports=Ln.IS_HTMLDDA?function(Wi){return typeof Wi=="function"||Wi===Vi}:function(Wi){return typeof Wi=="function"}}),Ce=y((Zn,hn)=>{var Ln=_e(),Vi=Ie(),Wi=Vi.all;hn.exports=Vi.IS_HTMLDDA?function(pa){return typeof pa=="object"?pa!==null:Ln(pa)||pa===Wi}:function(pa){return typeof pa=="object"?pa!==null:Ln(pa)}}),he=y((Zn,hn)=>{var Ln=n(),Vi=_e(),Wi=function(pa){return Vi(pa)?pa:void 0};hn.exports=function(pa,Ki){return arguments.length<2?Wi(Ln[pa]):Ln[pa]&&Ln[pa][Ki]}}),Ne=y((Zn,hn)=>{var Ln=re();hn.exports=Ln({}.isPrototypeOf)}),Fe=y((Zn,hn)=>{var Ln=he();hn.exports=Ln("navigator","userAgent")||""}),Ve=y((Zn,hn)=>{var Ln=n(),Vi=Fe(),Wi=Ln.process,pa=Ln.Deno,Ki=Wi&&Wi.versions||pa&&pa.version,Xo=Ki&&Ki.v8,Eo,Fo;Xo&&(Eo=Xo.split("."),Fo=Eo[0]>0&&Eo[0]<4?1:+(Eo[0]+Eo[1])),!Fo&&Vi&&(Eo=Vi.match(/Edge \/ ( \d +)/),(!Eo||Eo[1]>=74)&&(Eo=Vi.match(/Chrome \/ ( \d +)/),Eo&&(Fo=+Eo[1]))),hn.exports=Fo}),jt=y((Zn,hn)=>{var Ln=Ve(),Vi=k();hn.exports=!!Object.getOwnPropertySymbols&&!Vi(function(){var Wi=Symbol();return!String(Wi)||!(Object(Wi)instanceof Symbol)||!Symbol.sham&&Ln&&Ln<41})}),Et=y((Zn,hn)=>{var Ln=jt();hn.exports=Ln&&!Symbol.sham&&typeof Symbol.iterator=="symbol"}),Ue=y((Zn,hn)=>{var Ln=he(),Vi=_e(),Wi=Ne(),pa=Et(),Ki=Object;hn.exports=pa?function(Xo){return typeof Xo=="symbol"}:function(Xo){var Eo=Ln("Symbol");return Vi(Eo)&&Wi(Eo.prototype,Ki(Xo))}}),qe=y((Zn,hn)=>{var Ln=String;hn.exports=function(Vi){try{return Ln(Vi)}catch{return"Object"}}}),kt=y((Zn,hn)=>{var Ln=_e(),Vi=qe(),Wi=TypeError;hn.exports=function(pa){if(Ln(pa))return pa;throw
2024-08-21 13:12:53 +08:00
` ?"crlf":"cr":"lf"}function Vn(xn){switch(xn){case"cr":return" \r ";case"crlf":return ` \ r
` ;default:return `
` }}function Fn(xn,Nn){let ui;switch(Nn){case `
` :ui=/ \n /g;break;case" \r ":ui=/ \r /g;break;case ` \ r
` :ui=/ \r \n /g;break;default:throw new Error( ` Unexpected "eol" $ { JSON . stringify ( Nn ) } . ` )}let Mi=xn.match(ui);return Mi?Mi.length:0}function En(xn){return xn.replace(/ \r \n ?/g, `
2024-08-25 11:35:35 +08:00
` )}di.exports={guessEndOfLine:vn,convertEndOfLineToChars:Vn,countEndOfLineChars:Fn,normalizeEndOfLine:En}}}),Rc=Io({"src/utils/get-last.js"(Rn,di){kn();var vn=Vn=>Vn[Vn.length-1];di.exports=vn}});function ld(){let{onlyFirst:Rn=!1}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},di=["[ \\ u001B \\ u009B][[ \\ ]()#;?]*(?:(?:(?:(?:;[-a-zA-Z \\ d \\ /#&.:=?%@~_]+)*|[a-zA-Z \\ d]+(?:;[-a-zA-Z \\ d \\ /#&.:=?%@~_]*)*)? \\ u0007)","(?:(?: \\ d{1,4}(?:; \\ d{0,4})*)?[ \\ dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(di,Rn?void 0:"g")}var hd=pu({"node_modules/strip-ansi/node_modules/ansi-regex/index.js"(){kn()}});function yp(Rn){if(typeof Rn!="string")throw new TypeError( ` Expected a \ ` string \` , got \` ${ typeof Rn } \` ` ) ; return Rn . replace ( ld ( ) , "" ) } var fp = pu ( { "node_modules/strip-ansi/index.js" ( ) { kn ( ) , hd ( ) } } ) ; function kc ( Rn ) { return Number . isInteger ( Rn ) ? Rn >= 4352 && ( Rn <= 4447 || Rn === 9001 || Rn === 9002 || 11904 <= Rn && Rn <= 12871 && Rn !== 12351 || 12880 <= Rn && Rn <= 19903 || 19968 <= Rn && Rn <= 42182 || 43360 <= Rn && Rn <= 43388 || 44032 <= Rn && Rn <= 55203 || 63744 <= Rn && Rn <= 64255 || 65040 <= Rn && Rn <= 65049 || 65072 <= Rn && Rn <= 65131 || 65281 <= Rn && Rn <= 65376 || 65504 <= Rn && Rn <= 65510 || 110592 <= Rn && Rn <= 110593 || 127488 <= Rn && Rn <= 127569 || 131072 <= Rn && Rn <= 262141 ) : ! 1 } var qd = pu ( { "node_modules/is-fullwidth-code-point/index.js" ( ) { kn ( ) } } ) , od = Io ( { "node_modules/emoji-regex/index.js" ( Rn , di ) { kn ( ) , di . exports = function ( ) { return / \ u D 8 3 C \ u D F F 4 \ u D B 4 0 \ u D C 6 7 \ u D B 4 0 \ u D C 6 2 ( ? : \ u D B 4 0 \ u D C 7 7 \ u D B 4 0 \ u D C 6 C \ u D B 4 0 \ u D C 7 3 | \ u D B 4 0 \ u D C 7 3 \ u D B 4 0 \ u D C 6 3 \ u D B 4 0 \ u D C 7 4 | \ u D B 4 0 \ u D C 6 5 \ u D B 4 0 \ u D C 6 E \ u D B 4 0 \ u D C 6 7 ) \ u D B 4 0 \ u D C 7 F | ( ? : \ u D 8 3 E \ u D D D 1 \ u D 8 3 C \ u D F F F \ u 2 0 0 D \ u 2 7 6 4 \ u F E 0 F \ u 2 0 0 D ( ? : \ u D 8 3 D \ u D C 8 B \ u 2 0 0 D ) ? \ u D 8 3 E \ u D D D 1 | \ u D 8 3 D \ u D C 6 9 \ u D 8 3 C \ u D F F F \ u 2 0 0 D \ u D 8 3 E \ u D D 1 D \ u 2 0 0 D ( ? : \ u D 8 3 D [ \ u D C 6 8 \ u D C 6 9 ] ) ) ( ? : \ u D 8 3 C [ \ u D F F B - \ u D F F E ] ) | ( ? : \ u D 8 3 E \ u D D D 1 \ u D 8 3 C \ u D F F E \ u 2 0 0 D \ u 2 7 6 4 \ u F E 0 F \ u 2 0 0 D ( ? : \ u D 8 3 D \ u D C 8 B \ u 2 0 0 D ) ? \ u D 8 3 E \ u D D D 1 | \ u D 8 3 D \ u D C 6 9 \ u D 8 3 C \ u D F F E \ u 2 0 0 D \ u D 8 3 E \ u D D 1 D \ u 2 0 0 D ( ? : \ u D 8 3 D [ \ u D C 6 8 \ u D C 6 9 ] ) ) ( ? : \ u D 8 3 C [ \ u D F F B - \ u D F F D \ u D F F F ] ) | ( ? : \ u D 8 3 E \ u D D D 1 \ u D 8 3 C \ u D F F D \ u 2 0 0 D \ u 2 7 6 4 \ u F E 0 F \ u 2 0 0 D ( ? : \ u D 8 3 D \ u D C 8 B \ u 2 0 0 D ) ? \ u D 8 3 E \ u D D D 1 | \ u D 8 3 D \ u D C 6 9 \ u D 8 3 C \ u D F F D \ u 2 0 0 D \ u D 8 3 E \ u D D 1 D \ u 2 0 0 D ( ? : \ u D 8 3 D [ \ u D C 6 8 \ u D C 6 9 ] ) ) ( ? : \ u D 8 3 C [ \ u D F F B \ u D F F C \ u D F F E \ u D F F F ] ) | ( ? : \ u D 8 3 E \ u D D D 1 \ u D 8 3 C \ u D F F C \ u 2 0 0 D \ u 2 7 6 4 \ u F E 0 F \ u 2 0 0 D ( ? : \ u D 8 3 D \ u D C 8 B \ u 2 0 0 D ) ? \ u D 8 3 E \ u D D D 1 | \ u D 8 3 D \ u D C 6 9 \ u D 8 3 C \ u D F F C \ u 2 0 0 D \ u D 8 3 E \ u D D 1 D \ u 2 0 0 D ( ? : \ u D 8 3 D [ \ u D C 6 8 \ u D C 6 9 ] ) ) ( ? : \ u D 8 3 C [ \ u D F F B \ u D F F D - \ u D F F F ] ) | ( ? : \ u D 8 3 E \ u D D D 1 \ u D 8 3 C \ u D F F B \ u 2 0 0 D \ u 2 7 6 4 \ u F E 0 F \ u 2 0 0 D ( ? : \ u D 8 3 D \ u D C 8 B \ u 2 0 0 D ) ? \ u D 8 3 E \ u D D D 1 | \ u D 8 3 D \ u D C 6 9 \ u D 8 3 C \ u D F F B \ u 2 0 0 D \ u D 8 3 E \ u D D 1 D \ u 2 0 0 D ( ? : \ u D 8 3 D [ \ u D C 6 8 \ u D C 6 9 ] ) ) ( ? : \ u D 8 3 C [ \ u D F F C - \ u D F F F ] ) | \ u D 8 3 D \ u D C 6 8 ( ? : \ u D 8 3 C \ u D F F B ( ? : \ u 2 0 0 D ( ? : \ u 2 7 6 4 \ u F E 0 F \ u 2 0 0 D ( ? : \ u D 8 3 D \ u D C 8 B \ u 2 0 0 D \ u D 8 3 D \ u D C 6 8 ( ? : \ u D 8 3 C [ \ u D F F B - \ u D F F F ] ) | \ u D 8 3 D \ u D C 6 8 ( ? : \ u D 8 3 C [ \ u D F F B - \ u D F F F ] ) ) | \ u D 8 3 E \ u D D 1 D \ u 2 0 0 D \ u D 8 3 D \ u D C 6 8 ( ? : \ u D 8 3 C [ \ u D F F C - \ u D F F F ] ) | [ \ u 2 6 9 5 \ u 2 6 9 6 \ u 2 7 0 8 ] \ u F E 0 F | \ u D 8 3 C [ \ u D F 3 E \ u D F 7 3 \ u D F 7 C \ u D F 9 3 \ u D F A 4 \ u D F A 8 \ u D F E B \ u D F E D ] | \ u D 8 3 D [ \ u D C B B \ u D C B C \ u D D 2 7 \ u D D 2 C \ u D E 8 0 \ u D E 9 2 ] | \ u D 8 3 E [ \ u D D A F - \ u D D B 3 \ u D D B C \ u D D B D ] ) ) ? | ( ? : \ u D 8 3 C [ \ u D F F C - \ u D F F F ] ) \ u 2 0 0 D \ u 2 7 6 4 \ u F E 0 F \ u 2 0 0 D ( ? : \ u D 8 3 D \ u D C 8 B \ u 2 0 0 D \ u D 8 3 D \ u D C 6 8 ( ? : \ u D 8 3 C [ \ u D F F B - \ u D F F F ] ) | \ u D 8 3 D \ u D C 6 8 ( ? : \ u D 8 3 C [ \ u D F F B - \ u D F F F ] ) ) | \ u 2 0 0 D ( ? : \ u 2 7 6 4 \ u F E 0 F \ u 2 0 0 D ( ? : \ u D 8 3 D \ u D C 8 B \ u 2 0 0 D ) ? \ u D 8 3 D \ u D C 6 8 | ( ? : \ u D 8 3 D [ \ u D C 6 8 \ u D C 6 9 ] ) \ u 2 0 0 D ( ? : \ u D 8 3 D \ u D C 6 6 \ u 2 0 0 D \ u D 8 3 D \ u D C 6 6 | \ u D 8 3 D \ u D C 6 7 \ u 2 0 0 D ( ? : \ u D 8 3 D [ \ u D C 6 6 \ u D C 6 7 ] ) ) | \ u D 8 3 D \ u D C 6 6 \ u 2 0 0 D \ u D 8 3 D \ u D C 6 6 | \ u D 8 3 D \ u D C 6 7 \ u 2 0 0 D ( ? : \ u D 8 3 D [ \ u D C 6 6 \ u D C 6 7 ] ) | \ u D 8 3 C [ \ u D F 3 E \ u D F 7 3 \ u D F 7 C \ u D F 9 3 \ u D F A 4 \ u D F A 8 \ u D F E B \ u D F E D ] | \ u D 8 3 D [ \ u D C B B \ u D C B C \ u D D 2 7 \ u D D 2 C \ u D E 8 0 \ u D E 9 2 ] | \ u D 8 3 E [ \ u D D A F - \ u D D B 3 \ u D D B C \ u D D B D ] ) | \ u D 8 3 C \ u D F F F \ u 2 0 0 D ( ? : \ u D 8 3 E \ u D D 1 D \ u 2 0 0 D \ u D 8 3 D \ u D C 6 8 ( ? : \ u D 8 3 C [ \ u D F F B - \ u D F F E ] ) | \ u D 8 3 C [ \ u D F 3 E \ u D F 7 3 \ u D F 7 C \ u D F 9 3 \ u D F A 4 \ u D F A 8 \ u D F E B \ u D F E D ] | \ u D 8 3 D [ \ u D C B B \ u D C B C \ u D D 2 7 \ u D D 2 C \ u D E 8 0 \ u D E 9 2 ] | \ u D 8 3 E [ \ u D D A F - \ u D D B 3 \ u D D B C \ u D D B D ] ) | \ u D 8 3 C \ u D F F E \ u 2 0 0 D ( ? : \ u D 8 3 E \ u D D 1 D \ u 2 0 0 D \ u D 8 3 D \ u D C 6 8 ( ? : \ u D 8 3 C [ \ u D F F B - \ u D F F D \ u D F F F ] ) | \ u D 8 3 C [ \ u D F 3 E \ u D F 7 3 \ u D F 7 C \ u D F 9 3 \ u D F A 4 \ u D F A 8 \ u D F E B \ u D F E D ] | \ u D 8 3 D [ \ u D C B B \ u D C B C \ u D D 2 7 \ u D D 2 C \ u D E 8 0 \ u D E 9 2 ] | \ u D 8 3 E [ \ u D D A F - \ u D D B 3 \ u D D B C \ u D D B D ] ) | \ u D 8 3 C \ u D F F D \ u 2 0 0 D ( ? : \ u D 8 3 E \ u D D 1 D \ u 2 0 0 D \ u D 8 3 D \ u D C 6 8 ( ? : \ u D 8 3 C [ \ u D F F B \ u D F F C \ u D F F E \ u D F F F ] ) | \ u D 8 3 C [ \ u D F 3 E \ u D F 7 3 \ u D F 7 C \ u D F 9 3 \ u D F A 4 \ u D F A 8 \ u D F E B \ u D F E D ] | \ u D 8 3 D [ \ u D C B B \ u D C B C \ u D D 2 7 \ u D D 2 C \ u D E 8 0 \ u D E 9 2 ] | \ u D 8 3 E [ \ u D D A F - \ u D D B 3 \ u D D B C \ u D D B D ] ) | \ u D 8 3 C \ u D F F C \ u 2 0 0 D ( ? : \ u D 8 3 E \ u D D 1 D \ u 2 0 0 D \ u D 8 3 D \ u D C 6 8 ( ? : \ u D 8 3 C [ \ u D F F B
2024-08-21 13:12:53 +08:00
` )?Ta(Gi):Gi)}function Ta(Un){let Gi=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Vn;return Fn(Gi,Un.split( `
2024-08-25 11:35:35 +08:00
` )).parts}function Fi(Un){if(Un.type==="line")return!0}function aa(Un){return ea(Un,Fi,!1)}di.exports={isConcat:En,getDocParts:xn,willBreak:ta,traverseDoc:ui,findInDoc:ea,mapDoc:Mi,propagateBreaks:ji,removeLines:Ra,stripTrailingHardline:La,normalizeParts:Fa,normalizeDoc:rs,cleanDoc:Xa,replaceTextEndOfLine:Ta,replaceEndOfLine:Ui,canBreak:aa}}}),hm=Io({"src/document/doc-printer.js"(Rn,di){kn();var{convertEndOfLineToChars:vn}=Hu(),Vn=Rc(),Fn=pf(),{fill:En,cursor:xn,indent:Nn}=_l(),{isConcat:ui,getDocParts:Mi}=Mp(),ea,zi=1,ta=2;function ki(){return{value:"",length:0,queue:[]}}function ji(Ea,Xa){return Ra(Ea,{type:"indent"},Xa)}function oa(Ea,Xa,Fa){return Xa===Number.NEGATIVE_INFINITY?Ea.root||ki():Xa<0?Ra(Ea,{type:"dedent"},Fa):Xa?Xa.type==="root"?Object.assign(Object.assign({},Ea),{},{root:Ea}):Ra(Ea,{type:typeof Xa=="string"?"stringAlign":"numberAlign",n:Xa},Fa):Ea}function Ra(Ea,Xa,Fa){let rs=Xa.type==="dedent"?Ea.queue.slice(0,-1):[...Ea.queue,Xa],Ui="",Ta=0,Fi=0,aa=0;for(let to of rs)switch(to.type){case"indent":ra(),Fa.useTabs?Un(1):Gi(Fa.tabWidth);break;case"stringAlign":ra(),Ui+=to.n,Ta+=to.n.length;break;case"numberAlign":Fi+=1,aa+=to.n;break;default:throw new Error( ` Unexpected type '${to.type}' ` )}return va(),Object.assign(Object.assign({},Ea),{},{value:Ui,length:Ta,queue:rs});function Un(to){Ui+=" ".repeat(to),Ta+=Fa.tabWidth*to}function Gi(to){Ui+=" ".repeat(to),Ta+=to}function ra(){Fa.useTabs?da():va()}function da(){Fi>0&&Un(Fi),Aa()}function va(){aa>0&&Gi(aa),Aa()}function Aa(){Fi=0,aa=0}}function Ba(Ea){if(Ea.length===0)return 0;let Xa=0;for(;Ea.length>0&&typeof Vn(Ea)=="string"&&/^[ \t ]* $ /.test(Vn(Ea));)Xa+=Ea.pop().length;if(Ea.length>0&&typeof Vn(Ea)=="string"){let Fa=Vn(Ea).replace(/[ \t ]* $ /,"");Xa+=Vn(Ea).length-Fa.length,Ea[Ea.length-1]=Fa}return Xa}function la(Ea,Xa,Fa,rs,Ui){let Ta=Xa.length,Fi=[Ea],aa=[];for(;Fa>=0;){if(Fi.length===0){if(Ta===0)return!0;Fi.push(Xa[--Ta]);continue}let{mode:Un,doc:Gi}=Fi.pop();if(typeof Gi=="string")aa.push(Gi),Fa-=Fn(Gi);else if(ui(Gi)||Gi.type==="fill"){let ra=Mi(Gi);for(let da=ra.length-1;da>=0;da--)Fi.push({mode:Un,doc:ra[da]})}else switch(Gi.type){case"indent":case"align":case"indent-if-break":case"label":Fi.push({mode:Un,doc:Gi.contents});break;case"trim":Fa+=Ba(aa);break;case"group":{if(Ui&&Gi.break)return!1;let ra=Gi.break?zi:Un,da=Gi.expandedStates&&ra===zi?Vn(Gi.expandedStates):Gi.contents;Fi.push({mode:ra,doc:da});break}case"if-break":{let ra=(Gi.groupId?ea[Gi.groupId]||ta:Un)===zi?Gi.breakContents:Gi.flatContents;ra&&Fi.push({mode:Un,doc:ra});break}case"line":if(Un===zi||Gi.hard)return!0;Gi.soft||(aa.push(" "),Fa--);break;case"line-suffix":rs=!0;break;case"line-suffix-boundary":if(rs)return!1;break}}return!1}function La(Ea,Xa){ea={};let Fa=Xa.printWidth,rs=vn(Xa.endOfLine),Ui=0,Ta=[{ind:ki(),mode:zi,doc:Ea}],Fi=[],aa=!1,Un=[];for(;Ta.length>0;){let{ind:ra,mode:da,doc:va}=Ta.pop();if(typeof va=="string"){let Aa=rs!== `
` ?va.replace(/ \n /g,rs):va;Fi.push(Aa),Ui+=Fn(Aa)}else if(ui(va)){let Aa=Mi(va);for(let to=Aa.length-1;to>=0;to--)Ta.push({ind:ra,mode:da,doc:Aa[to]})}else switch(va.type){case"cursor":Fi.push(xn.placeholder);break;case"indent":Ta.push({ind:ji(ra,Xa),mode:da,doc:va.contents});break;case"align":Ta.push({ind:oa(ra,va.n,Xa),mode:da,doc:va.contents});break;case"trim":Ui-=Ba(Fi);break;case"group":switch(da){case ta:if(!aa){Ta.push({ind:ra,mode:va.break?zi:ta,doc:va.contents});break}case zi:{aa=!1;let Aa={ind:ra,mode:ta,doc:va.contents},to=Fa-Ui,Bo=Un.length>0;if(!va.break&&la(Aa,Ta,to,Bo))Ta.push(Aa);else if(va.expandedStates){let Zo=Vn(va.expandedStates);if(va.break){Ta.push({ind:ra,mode:zi,doc:Zo});break}else for(let Mo=1;Mo<va.expandedStates.length+1;Mo++)if(Mo>=va.expandedStates.length){Ta.push({ind:ra,mode:zi,doc:Zo});break}else{let ys=va.expandedStates[Mo],bo={ind:ra,mode:ta,doc:ys};if(la(bo,Ta,to,Bo)){Ta.push(bo);break}}}else Ta.push({ind:ra,mode:zi,doc:va.contents});break}}va.id&&(ea[va.id]=Vn(Ta).mode);break;case"fill":{let Aa=Fa-Ui,{parts:to}=va;if(to.length===0)break;let[Bo,Zo]=to,Mo={ind:ra,mode:ta,doc:Bo},ys={ind:ra,mode:zi,doc:Bo},bo=la(Mo,[],Aa,Un.length>0,!0);if(to.length===1){bo?Ta.push(Mo):Ta.push(ys);break}let Ls={ind:ra,mode:ta,doc:Zo},Qo={ind:ra,mode:zi,doc:Zo};if(to.length===2){bo?Ta.push(Ls,Mo):Ta.push(Qo,ys);break}to.splice(0,2);let Oo={ind:ra,mode:da,doc:En(to)},Ss=to[0];la({ind:ra,mode:ta,doc:[Bo,Zo,Ss]},[],Aa,Un.length>0,!0)?Ta.push(Oo,Ls,Mo):bo?Ta.push(Oo,Qo,Mo):Ta.push(Oo,Qo,ys);break}case"if-break":case"indent-if-break":{let Aa=va.groupId?ea[va.groupId]:da;if(Aa===zi){let to=va.type==="if-break"?va.breakContents:va.negate?va.contents:Nn(va.contents);to&&Ta.push({ind:ra,mode:da,doc:to})}if(Aa===ta){let to=va.type==="if-break"?va.flatContents:va.negate?Nn(va.contents):va.contents;to&&Ta.push({ind:ra,mode:da,doc:to})}break}case"line-suffix":Un.push({ind:ra,mode:da,doc:va.contents});break;case"line-suffix-boundary":Un.length>0&&Ta.push({ind:ra,mode:da,doc:{type:"line",hard:!0}});break;case"line":switch(da){case ta:if(va.hard)aa=!0;else{va.soft||(Fi.push(" "),Ui+=1);break}case zi:if(Un.length>0){Ta.push({ind:ra,mode:da,doc:va},...Un.reverse()),Un.length=0;break}va.literal?ra.root?(Fi.push(rs,ra.root.value),Ui=ra.root.length):(Fi.push(rs),Ui=0):(Ui-=Ba(Fi),Fi.push(rs+ra.value),Ui=ra.length);break}break;case"label":Ta.push({ind:ra,mode:da,doc:va.contents});break}Ta.length===0&&Un.length>0&&(Ta.push(...Un.reverse()),Un.length=0)}let Gi=Fi.indexOf(xn.placeholder);if(Gi!==-1){let ra=Fi.indexOf(xn.placeholder,Gi+1),da=Fi.slice(0,Gi).join(""),va=Fi.slice(Gi+1,ra).join(""),Aa=Fi.slice(ra+1).join("");return{formatted:da+va+Aa,cursorNodeStart:da.length,cursorNodeText:va}}return{formatted:Fi.join("")}}di.exports={printDocToString:La}}}),If=Io({"src/document/doc-debug.js"(Rn,di){kn();var{isConcat:vn,getDocParts:Vn}=Mp();function Fn(xn){if(!xn)return"";if(vn(xn)){let Nn=[];for(let ui of Vn(xn))if(vn(ui))Nn.push(...Fn(ui).parts);else{let Mi=Fn(ui);Mi!==""&&Nn.push(Mi)}return{type:"concat",parts:Nn}}return xn.type==="if-break"?Object.assign(Object.assign({},xn),{},{breakContents:Fn(xn.breakContents),flatContents:Fn(xn.flatContents)}):xn.type==="group"?Object.assign(Object.assign({},xn),{},{contents:Fn(xn.contents),expandedStates:xn.expandedStates&&xn.expandedStates.map(Fn)}):xn.type==="fill"?{type:"fill",parts:xn.parts.map(Fn)}:xn.contents?Object.assign(Object.assign({},xn),{},{contents:Fn(xn.contents)}):xn}function En(xn){let Nn=Object.create(null),ui=new Set;return Mi(Fn(xn));function Mi(zi,ta,ki){if(typeof zi=="string")return JSON.stringify(zi);if(vn(zi)){let ji=Vn(zi).map(Mi).filter(Boolean);return ji.length===1?ji[0]: ` [ $ { ji . join ( ", " ) } ] ` }if(zi.type==="line"){let ji=Array.isArray(ki)&&ki[ta+1]&&ki[ta+1].type==="break-parent";return zi.literal?ji?"literalline":"literallineWithoutBreakParent":zi.hard?ji?"hardline":"hardlineWithoutBreakParent":zi.soft?"softline":"line"}if(zi.type==="break-parent")return Array.isArray(ki)&&ki[ta-1]&&ki[ta-1].type==="line"&&ki[ta-1].hard?void 0:"breakParent";if(zi.type==="trim")retur
2024-08-21 13:12:53 +08:00
Print ( to stderr ) where a cursor at the given position would move to after formatting .
This option cannot be used with -- range - start and -- range - end .
` ,cliCategory:Fn},endOfLine:{since:"1.15.0",category:ui,type:"choice",default:[{since:"1.15.0",value:"auto"},{since:"2.0.0",value:"lf"}],description:"Which end of line characters to apply.",choices:[{value:"lf",description:"Line Feed only ( \\ n), common on Linux and macOS as well as inside git repos"},{value:"crlf",description:"Carriage Return + Line Feed characters ( \\ r \\ n), common on Windows"},{value:"cr",description:"Carriage Return character only ( \\ r), used very rarely"},{value:"auto",description:vn `
Maintain existing
( mixed values within one file are normalised by looking at what ' s used after the first line )
` }]},filepath:{since:"1.4.0",category:Mi,type:"path",description:"Specify the input filepath. This will be used to do parser inference.",cliName:"stdin-filepath",cliCategory:xn,cliDescription:"Path to the file to pretend that stdin comes from."},insertPragma:{since:"1.8.0",category:Mi,type:"boolean",default:!1,description:"Insert @format pragma into file's first docblock comment.",cliCategory:xn},parser:{since:"0.0.10",category:ui,type:"choice",default:[{since:"0.0.10",value:"babylon"},{since:"1.13.0",value:void 0}],description:"Which parser to use.",exception:zi=>typeof zi=="string"||typeof zi=="function",choices:[{value:"flow",description:"Flow"},{value:"babel",since:"1.16.0",description:"JavaScript"},{value:"babel-flow",since:"1.16.0",description:"Flow"},{value:"babel-ts",since:"2.0.0",description:"TypeScript"},{value:"typescript",since:"1.4.0",description:"TypeScript"},{value:"acorn",since:"2.6.0",description:"JavaScript"},{value:"espree",since:"2.2.0",description:"JavaScript"},{value:"meriyah",since:"2.2.0",description:"JavaScript"},{value:"css",since:"1.7.1",description:"CSS"},{value:"less",since:"1.7.1",description:"Less"},{value:"scss",since:"1.7.1",description:"SCSS"},{value:"json",since:"1.5.0",description:"JSON"},{value:"json5",since:"1.13.0",description:"JSON5"},{value:"json-stringify",since:"1.13.0",description:"JSON.stringify"},{value:"graphql",since:"1.5.0",description:"GraphQL"},{value:"markdown",since:"1.8.0",description:"Markdown"},{value:"mdx",since:"1.15.0",description:"MDX"},{value:"vue",since:"1.10.0",description:"Vue"},{value:"yaml",since:"1.14.0",description:"YAML"},{value:"glimmer",since:"2.3.0",description:"Ember / Handlebars"},{value:"html",since:"1.15.0",description:"HTML"},{value:"angular",since:"1.15.0",description:"Angular"},{value:"lwc",since:"1.17.0",description:"Lightning Web Components"}]},plugins:{since:"1.10.0",type:"path",array:!0,default:[{value:[]}],category:ui,description:"Add a plugin. Multiple plugins can be passed as separate ` -- plugin ` s.",exception:zi=>typeof zi=="string"||typeof zi=="object",cliName:"plugin",cliCategory:Vn},pluginSearchDirs:{since:"1.13.0",type:"path",array:!0,default:[{value:[]}],category:ui,description:vn `
Custom directory that contains prettier plugins in node _modules subdirectory .
Overrides default behavior when plugins are searched relatively to the location of Prettier .
Multiple values are accepted .
` ,exception:zi=>typeof zi=="string"||typeof zi=="object",cliName:"plugin-search-dir",cliCategory:Vn},printWidth:{since:"0.0.0",category:ui,type:"int",default:80,description:"The line length where Prettier will try wrap.",range:{start:0,end:Number.POSITIVE_INFINITY,step:1}},rangeEnd:{since:"1.4.0",category:Mi,type:"int",default:Number.POSITIVE_INFINITY,range:{start:0,end:Number.POSITIVE_INFINITY,step:1},description:vn `
Format code ending at a given character offset ( exclusive ) .
The range will extend forwards to the end of the selected statement .
This option cannot be used with -- cursor - offset .
` ,cliCategory:Fn},rangeStart:{since:"1.4.0",category:Mi,type:"int",default:0,range:{start:0,end:Number.POSITIVE_INFINITY,step:1},description:vn `
Format code starting at a given character offset .
The range will extend backwards to the start of the first line containing the selected statement .
This option cannot be used with -- cursor - offset .
` ,cliCategory:Fn},requirePragma:{since:"1.7.0",category:Mi,type:"boolean",default:!1,description:vn `
Require either '@prettier' or '@format' to be present in the file ' s first docblock comment
in order for it to be formatted .
2024-08-25 11:35:35 +08:00
` ,cliCategory:xn},tabWidth:{type:"int",category:ui,default:2,description:"Number of spaces per indentation level.",range:{start:0,end:Number.POSITIVE_INFINITY,step:1}},useTabs:{since:"1.0.0",category:ui,type:"boolean",default:!1,description:"Indent with tabs instead of spaces."},embeddedLanguageFormatting:{since:"2.1.0",category:ui,type:"choice",default:[{since:"2.1.0",value:"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."}]}};di.exports={CATEGORY_CONFIG:Vn,CATEGORY_EDITOR:Fn,CATEGORY_FORMAT:En,CATEGORY_OTHER:xn,CATEGORY_OUTPUT:Nn,CATEGORY_GLOBAL:ui,CATEGORY_SPECIAL:Mi,options:ea}}}),_m=Io({"src/main/support.js"(Rn,di){kn();var vn={compare:ef(),lt:rm(),gte:Mf()},Vn=mh(),Fn=ns().version,En=Ph().options;function xn(){let{plugins:ui=[],showUnreleased:Mi=!1,showDeprecated:ea=!1,showInternal:zi=!1}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},ta=Fn.split("-",1)[0],ki=ui.flatMap(la=>la.languages||[]).filter(oa),ji=Vn(Object.assign({},...ui.map(la=>{let{options:La}=la;return La}),En),"name").filter(la=>oa(la)&&Ra(la)).sort((la,La)=>la.name===La.name?0:la.name<La.name?-1:1).map(Ba).map(la=>{la=Object.assign({},la),Array.isArray(la.default)&&(la.default=la.default.length===1?la.default[0].value:la.default.filter(oa).sort((Ea,Xa)=>vn.compare(Xa.since,Ea.since))[0].value),Array.isArray(la.choices)&&(la.choices=la.choices.filter(Ea=>oa(Ea)&&Ra(Ea)),la.name==="parser"&&Nn(la,ki,ui));let La=Object.fromEntries(ui.filter(Ea=>Ea.defaultOptions&&Ea.defaultOptions[la.name]!==void 0).map(Ea=>[Ea.name,Ea.defaultOptions[la.name]]));return Object.assign(Object.assign({},la),{},{pluginDefaults:La})});return{languages:ki,options:ji};function oa(la){return Mi||!("since"in la)||la.since&&vn.gte(ta,la.since)}function Ra(la){return ea||!("deprecated"in la)||la.deprecated&&vn.lt(ta,la.deprecated)}function Ba(la){return zi?la:pa(la,Ln)}}function Nn(ui,Mi,ea){let zi=new Set(ui.choices.map(ta=>ta.value));for(let ta of Mi)if(ta.parsers){for(let ki of ta.parsers)if(!zi.has(ki)){zi.add(ki);let ji=ea.find(Ra=>Ra.parsers&&Ra.parsers[ki]),oa=ta.name;ji&&ji.name&&(oa+= ` ( plugin : $ { ji . name } ) ` ),ui.choices.push({value:ki,description:oa})}}}di.exports={getSupportInfo:xn}}}),Rm=Io({"src/utils/is-non-empty-array.js"(Rn,di){kn();function vn(Vn){return Array.isArray(Vn)&&Vn.length>0}di.exports=vn}}),km=Io({"src/utils/text/skip.js"(Rn,di){kn();function vn(Nn){return(ui,Mi,ea)=>{let zi=ea&&ea.backwards;if(Mi===!1)return!1;let{length:ta}=ui,ki=Mi;for(;ki>=0&&ki<ta;){let ji=ui.charAt(ki);if(Nn instanceof RegExp){if(!Nn.test(ji))return ki}else if(!Nn.includes(ji))return ki;zi?ki--:ki++}return ki===-1||ki===ta?ki:!1}}var Vn=vn(/ \s /),Fn=vn(" "),En=vn(",; "),xn=vn(/[^ \n \r ]/);di.exports={skipWhitespace:Vn,skipSpaces:Fn,skipToLineEnd:En,skipEverythingButNewLine:xn}}}),Nd=Io({"src/utils/text/skip-inline-comment.js"(Rn,di){kn();function vn(Vn,Fn){if(Fn===!1)return!1;if(Vn.charAt(Fn)==="/"&&Vn.charAt(Fn+1)==="*"){for(let En=Fn+2;En<Vn.length;++En)if(Vn.charAt(En)==="*"&&Vn.charAt(En+1)==="/")return En+2}return Fn}di.exports=vn}}),wd=Io({"src/utils/text/skip-trailing-comment.js"(Rn,di){kn();var{skipEverythingButNewLine:vn}=km();function Vn(Fn,En){return En===!1?!1:Fn.charAt(En)==="/"&&Fn.charAt(En+1)==="/"?vn(Fn,En):En}di.exports=Vn}}),Fp=Io({"src/utils/text/skip-newline.js"(Rn,di){kn();function vn(Vn,Fn,En){let xn=En&&En.backwards;if(Fn===!1)return!1;let Nn=Vn.charAt(Fn);if(xn){if(Vn.charAt(Fn-1)===" \r "&&Nn=== `
2024-08-21 13:12:53 +08:00
` )return Fn-2;if(Nn=== `
` ||Nn===" \r "||Nn===" \u 2028"||Nn===" \u 2029")return Fn-1}else{if(Nn===" \r "&&Vn.charAt(Fn+1)=== `
` )return Fn+2;if(Nn=== `
2024-08-25 11:35:35 +08:00
` ||Nn===" \r "||Nn===" \u 2028"||Nn===" \u 2029")return Fn+1}return Fn}di.exports=vn}}),hf=Io({"src/utils/text/get-next-non-space-non-comment-character-index-with-start-index.js"(Rn,di){kn();var vn=Nd(),Vn=Fp(),Fn=wd(),{skipSpaces:En}=km();function xn(Nn,ui){let Mi=null,ea=ui;for(;ea!==Mi;)Mi=ea,ea=En(Nn,ea),ea=vn(Nn,ea),ea=Fn(Nn,ea),ea=Vn(Nn,ea);return ea}di.exports=xn}}),Wc=Io({"src/common/util.js"(Rn,di){kn();var{default:vn}=(mf(),Vu(Nf)),Vn=Rc(),{getSupportInfo:Fn}=_m(),En=Rm(),xn=pf(),{skipWhitespace:Nn,skipSpaces:ui,skipToLineEnd:Mi,skipEverythingButNewLine:ea}=km(),zi=Nd(),ta=wd(),ki=Fp(),ji=hf(),oa=Qo=>Qo[Qo.length-2];function Ra(Qo){return(Oo,Ss,nl)=>{let Fs=nl&&nl.backwards;if(Ss===!1)return!1;let{length:ml}=Oo,Go=Ss;for(;Go>=0&&Go<ml;){let Os=Oo.charAt(Go);if(Qo instanceof RegExp){if(!Qo.test(Os))return Go}else if(!Qo.includes(Os))return Go;Fs?Go--:Go++}return Go===-1||Go===ml?Go:!1}}function Ba(Qo,Oo){let Ss=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},nl=ui(Qo,Ss.backwards?Oo-1:Oo,Ss),Fs=ki(Qo,nl,Ss);return nl!==Fs}function la(Qo,Oo,Ss){for(let nl=Oo;nl<Ss;++nl)if(Qo.charAt(nl)=== `
` )return!0;return!1}function La(Qo,Oo,Ss){let nl=Ss(Oo)-1;nl=ui(Qo,nl,{backwards:!0}),nl=ki(Qo,nl,{backwards:!0}),nl=ui(Qo,nl,{backwards:!0});let Fs=ki(Qo,nl,{backwards:!0});return nl!==Fs}function Ea(Qo,Oo){let Ss=null,nl=Oo;for(;nl!==Ss;)Ss=nl,nl=Mi(Qo,nl),nl=zi(Qo,nl),nl=ui(Qo,nl);return nl=ta(Qo,nl),nl=ki(Qo,nl),nl!==!1&&Ba(Qo,nl)}function Xa(Qo,Oo,Ss){return Ea(Qo,Ss(Oo))}function Fa(Qo,Oo,Ss){return ji(Qo,Ss(Oo))}function rs(Qo,Oo,Ss){return Qo.charAt(Fa(Qo,Oo,Ss))}function Ui(Qo,Oo){let Ss=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return ui(Qo,Ss.backwards?Oo-1:Oo,Ss)!==Oo}function Ta(Qo,Oo){let Ss=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,nl=0;for(let Fs=Ss;Fs<Qo.length;++Fs)Qo[Fs]===" "?nl=nl+Oo-nl%Oo:nl++;return nl}function Fi(Qo,Oo){let Ss=Qo.lastIndexOf( `
` );return Ss===-1?0:Ta(Qo.slice(Ss+1).match(/^[ \t ]*/)[0],Oo)}function aa(Qo,Oo){let Ss={quote:'"',regex:/"/g,escaped:"""},nl={quote:"'",regex:/'/g,escaped:"'"},Fs=Oo==="'"?nl:Ss,ml=Fs===nl?Ss:nl,Go=Fs;if(Qo.includes(Fs.quote)||Qo.includes(ml.quote)){let Os=(Qo.match(Fs.regex)||[]).length,fl=(Qo.match(ml.regex)||[]).length;Go=Os>fl?ml:Fs}return Go}function Un(Qo,Oo){let Ss=Qo.slice(1,-1),nl=Oo.parser==="json"||Oo.parser==="json5"&&Oo.quoteProps==="preserve"&&!Oo.singleQuote?'"':Oo.__isInHtmlAttribute?"'":aa(Ss,Oo.singleQuote?"'":'"').quote;return Gi(Ss,nl,!(Oo.parser==="css"||Oo.parser==="less"||Oo.parser==="scss"||Oo.__embeddedInHtml))}function Gi(Qo,Oo,Ss){let nl=Oo==='"'?"'":'"',Fs=/ \\ (.)|(["'])/gs,ml=Qo.replace(Fs,(Go,Os,fl)=>Os===nl?Os:fl===Oo?" \\ "+fl:fl||(Ss&&/^[^ \n \r "'0-7 \\ bfnrt-vx \u 2028 \u 2029] $ /.test(Os)?Os:" \\ "+Os));return Oo+ml+Oo}function ra(Qo){return Qo.toLowerCase().replace(/^([+-]?[ \d .]+e)(?: \+ |(-))?0*( \d )/," $ 1 $ 2 $ 3").replace(/^([+-]?[ \d .]+)e[+-]?0+ $ /," $ 1").replace(/^([+-])? \. /," $ 10.").replace(/( \. \d +?)0+(?=e| $ )/," $ 1").replace(/ \. (?=e| $ )/,"")}function da(Qo,Oo){let Ss=Qo.match(new RegExp( ` ( $ { vn ( Oo ) } ) + ` ,"g"));return Ss===null?0:Ss.reduce((nl,Fs)=>Math.max(nl,Fs.length/Oo.length),0)}function va(Qo,Oo){let Ss=Qo.match(new RegExp( ` ( $ { vn ( Oo ) } ) + ` ,"g"));if(Ss===null)return 0;let nl=new Map,Fs=0;for(let ml of Ss){let Go=ml.length/Oo.length;nl.set(Go,!0),Go>Fs&&(Fs=Go)}for(let ml=1;ml<Fs;ml++)if(!nl.get(ml))return ml;return Fs+1}function Aa(Qo,Oo){(Qo.comments||(Qo.comments=[])).push(Oo),Oo.printed=!1,Oo.nodeDescription=Ls(Qo)}function to(Qo,Oo){Oo.leading=!0,Oo.trailing=!1,Aa(Qo,Oo)}function Bo(Qo,Oo,Ss){Oo.leading=!1,Oo.trailing=!1,Ss&&(Oo.marker=Ss),Aa(Qo,Oo)}function Zo(Qo,Oo){Oo.leading=!1,Oo.trailing=!0,Aa(Qo,Oo)}function Mo(Qo,Oo){let{languages:Ss}=Fn({plugins:Oo.plugins}),nl=Ss.find(Fs=>{let{name:ml}=Fs;return ml.toLowerCase()===Qo})||Ss.find(Fs=>{let{aliases:ml}=Fs;return Array.isArray(ml)&&ml.includes(Qo)})||Ss.find(Fs=>{let{extensions:ml}=Fs;return Array.isArray(ml)&&ml.includes( ` . $ { Qo } ` )});return nl&&nl.parsers[0]}function ys(Qo){return Qo&&Qo.type==="front-matter"}function bo(Qo){let Oo=new WeakMap;return function(Ss){return Oo.has(Ss)||Oo.set(Ss,Symbol(Qo)),Oo.get(Ss)}}function Ls(Qo){let Oo=Qo.type||Qo.kind||"(unknown type)",Ss=String(Qo.name||Qo.id&&(typeof Qo.id=="object"?Qo.id.name:Qo.id)||Qo.key&&(typeof Qo.key=="object"?Qo.key.name:Qo.key)||Qo.value&&(typeof Qo.value=="object"?"":String(Qo.value))||Qo.operator||"");return Ss.length>20&&(Ss=Ss.slice(0,19)+"…"),Oo+(Ss?" "+Ss:"")}di.exports={inferParserByLanguage:Mo,getStringWidth:xn,getMaxContinuousCount:da,getMinNotPresentContinuousCount:va,getPenultimate:oa,getLast:Vn,getNextNonSpaceNonCommentCharacterIndexWithStartIndex:ji,getNextNonSpaceNonCommentCharacterIndex:Fa,getNextNonSpaceNonCommentCharacter:rs,skip:Ra,skipWhitespace:Nn,skipSpaces:ui,skipToLineEnd:Mi,skipEverythingButNewLine:ea,skipInlineComment:zi,skipTrailingComment:ta,skipNewline:ki,isNextLineEmptyAfterIndex:Ea,isNextLineEmpty:Xa,isPreviousLineEmpty:La,hasNewline:Ba,hasNewlineInRange:la,hasSpaces:Ui,getAlignmentSize:Ta,getIndentSize:Fi,getPreferredQuote:aa,printString:Un,printNumber:ra,makeString:Gi,addLeadingComment:to,addDanglingComment:Bo,addTrailingComment:Zo,isFrontMatterNode:ys,isNonEmptyArray:En,createGroupIdMapper:bo}}}),nm={};yu(nm,{basename:()=>Lf,default:()=>Wn,delimiter:()=>Yr,dirname:()=>Pf,extname:()=>bm,isAbsolute:()=>Bm,join:()=>jd,normalize:()=>Mm,relative:()=>vm,resolve:()=>gf,sep:()=>qf});function Gm(Rn,di){for(var vn=0,Vn=Rn.length-1;Vn>=0;Vn--){var Fn=Rn[Vn];Fn==="."?Rn.splice(Vn,1):Fn===".."?(Rn.splice(Vn,1),vn++):vn&&(Rn.splice(Vn,1),vn--)}if(di)for(;vn--;vn)Rn.unshift("..");return Rn}function gf(){for(var Rn="",di=!1,vn=arguments.length-1;vn>=-1&&!di;vn--){var Vn=vn>=0?arguments[vn]:"/";if(typeof Vn!="string")throw new TypeError("Arguments to path.resolve must be strings");Vn&&(Rn=Vn+"/"+Rn,di=Vn.charAt(0)==="/")}return Rn=Gm(ip(Rn.split("/"),function(Fn){return!!Fn}),!di).join("/"),(di?"/":"")+Rn||"."}function Mm(Rn){var di=Bm(Rn),vn=vi(Rn,-1)==="
2024-08-21 13:12:53 +08:00
` ,ji(ki.gutter,Ta.replace(/ \d /g," "))," ",Gi,ji(ki.marker,"^").repeat(ra)].join(""),aa&&ea.message&&(Un+=" "+ji(ki.message,ea.message))}return[ji(ki.marker,">"),ji(ki.gutter,Ta),Fa.length>0? ` $ { Fa } ` :"",Un].join("")}else return ` $ { ji ( ki . gutter , Ta ) } $ { Fa . length > 0 ? ` ${ Fa } ` : "" } ` }).join( `
` );return ea.message&&!La&&(Xa= ` $ { " " . repeat ( Ea + 1 ) } $ { ea . message }
2024-08-25 11:35:35 +08:00
$ { Xa } ` ),zi?ta.reset(Xa):Xa}function Nn(ui,Mi,ea){let zi=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};if(!vn){vn=!0;let ta="Passing lineNumber and colNumber is deprecated to @babel/code-frame. Please use ` codeFrameColumns ` .";if(Ju.emitWarning)Ju.emitWarning(ta,"DeprecationWarning");else{let ki=new Error(ta);ki.name="DeprecationWarning",console.warn(new Error(ta))}}return ea=Math.max(ea,0),xn(ui,{start:{column:ea,line:Mi}},zi)}}}),Js=Io({"src/main/parser.js"(Rn,di){kn();var{ConfigError:vn}=sd(),Vn=Op();Qh();var{locStart:Fn,locEnd:En}=Vn,xn=Object.getOwnPropertyNames,Nn=Object.getOwnPropertyDescriptor;function ui(zi){let ta={};for(let ki of zi.plugins)if(ki.parsers)for(let ji of xn(ki.parsers))Object.defineProperty(ta,ji,Nn(ki.parsers,ji));return ta}function Mi(zi){let ta=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ui(zi);if(typeof zi.parser=="function")return{parse:zi.parser,astFormat:"estree",locStart:Fn,locEnd:En};if(typeof zi.parser=="string"){if(Object.prototype.hasOwnProperty.call(ta,zi.parser))return ta[zi.parser];throw new vn( ` Couldn ' t resolve parser "${zi.parser}" . Parsers must be explicitly added to the standalone bundle . ` )}}function ea(zi,ta){let ki=ui(ta),ji=Object.defineProperties({},Object.fromEntries(Object.keys(ki).map(Ra=>[Ra,{enumerable:!0,get(){return ki[Ra].parse}}]))),oa=Mi(ta,ki);try{return oa.preprocess&&(zi=oa.preprocess(zi,ta)),{text:zi,ast:oa.parse(zi,ji,ta)}}catch(Ra){let{loc:Ba}=Ra;if(Ba){let{codeFrameColumns:la}=lm();throw Ra.codeFrame=la(zi,Ba,{highlightCode:!0}),Ra.message+= `
` +Ra.codeFrame,Ra}throw Ra}}di.exports={parse:ea,resolveParser:Mi}}}),cu=Io({"src/main/options.js"(Rn,di){kn();var vn=Kc(),{UndefinedParserError:Vn}=sd(),{getSupportInfo:Fn}=_m(),En=Jm(),{resolveParser:xn}=Js(),Nn={astFormat:"estree",printer:{},originalText:void 0,locStart:null,locEnd:null};function ui(zi){let ta=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ki=Object.assign({},zi),ji=Fn({plugins:zi.plugins,showUnreleased:!0,showDeprecated:!0}).options,oa=Object.assign(Object.assign({},Nn),Object.fromEntries(ji.filter(Ea=>Ea.default!==void 0).map(Ea=>[Ea.name,Ea.default])));if(!ki.parser){if(!ki.filepath)(ta.logger||console).warn("No parser and no filepath given, using 'babel' the parser now but this will throw an error in the future. Please specify a parser or a filepath so one can be inferred."),ki.parser="babel";else if(ki.parser=ea(ki.filepath,ki.plugins),!ki.parser)throw new Vn( ` No parser could be inferred for file : $ { ki . filepath } ` )}let Ra=xn(En.normalizeApiOptions(ki,[ji.find(Ea=>Ea.name==="parser")],{passThrough:!0,logger:!1}));ki.astFormat=Ra.astFormat,ki.locEnd=Ra.locEnd,ki.locStart=Ra.locStart;let Ba=Mi(ki);ki.printer=Ba.printers[ki.astFormat];let la=Object.fromEntries(ji.filter(Ea=>Ea.pluginDefaults&&Ea.pluginDefaults[Ba.name]!==void 0).map(Ea=>[Ea.name,Ea.pluginDefaults[Ba.name]])),La=Object.assign(Object.assign({},oa),la);for(let[Ea,Xa]of Object.entries(La))(ki[Ea]===null||ki[Ea]===void 0)&&(ki[Ea]=Xa);return ki.parser==="json"&&(ki.trailingComma="none"),En.normalizeApiOptions(ki,ji,Object.assign({passThrough:Object.keys(Nn)},ta))}function Mi(zi){let{astFormat:ta}=zi;if(!ta)throw new Error("getPlugin() requires astFormat to be set");let ki=zi.plugins.find(ji=>ji.printers&&ji.printers[ta]);if(!ki)throw new Error( ` Couldn ' t find plugin for AST format "${ta}" ` );return ki}function ea(zi,ta){let ki=vn.basename(zi).toLowerCase(),ji=Fn({plugins:ta}).languages.filter(oa=>oa.since!==null).find(oa=>oa.extensions&&oa.extensions.some(Ra=>ki.endsWith(Ra))||oa.filenames&&oa.filenames.some(Ra=>Ra.toLowerCase()===ki));return ji&&ji.parsers[0]}di.exports={normalize:ui,hiddenDefaults:Nn,inferParser:ea}}}),jl=Io({"src/main/massage-ast.js"(Rn,di){kn();function vn(Vn,Fn,En){if(Array.isArray(Vn))return Vn.map(Mi=>vn(Mi,Fn,En)).filter(Boolean);if(!Vn||typeof Vn!="object")return Vn;let xn=Fn.printer.massageAstNode,Nn;xn&&xn.ignoredProperties?Nn=xn.ignoredProperties:Nn=new Set;let ui={};for(let[Mi,ea]of Object.entries(Vn))!Nn.has(Mi)&&typeof ea!="function"&&(ui[Mi]=vn(ea,Fn,Vn));if(xn){let Mi=xn(Vn,ui,En);if(Mi===null)return;if(Mi)return Mi}return ui}di.exports=vn}}),bc=Io({"scripts/build/shims/assert.cjs"(Rn,di){kn();var vn=()=>{};vn.ok=vn,vn.strictEqual=vn,di.exports=vn}}),wc=Io({"src/main/comments.js"(Rn,di){kn();var vn=bc(),{builders:{line:Vn,hardline:Fn,breakParent:En,indent:xn,lineSuffix:Nn,join:ui,cursor:Mi}}=Cc(),{hasNewline:ea,skipNewline:zi,skipSpaces:ta,isPreviousLineEmpty:ki,addLeadingComment:ji,addDanglingComment:oa,addTrailingComment:Ra}=Wc(),Ba=new WeakMap;function la(to,Bo,Zo){if(!to)return;let{printer:Mo,locStart:ys,locEnd:bo}=Bo;if(Zo){if(Mo.canAttachComment&&Mo.canAttachComment(to)){let Qo;for(Qo=Zo.length-1;Qo>=0&&!(ys(Zo[Qo])<=ys(to)&&bo(Zo[Qo])<=bo(to));--Qo);Zo.splice(Qo+1,0,to);return}}else if(Ba.has(to))return Ba.get(to);let Ls=Mo.getCommentChildNodes&&Mo.getCommentChildNodes(to,Bo)||typeof to=="object"&&Object.entries(to).filter(Qo=>{let[Oo]=Qo;return Oo!=="enclosingNode"&&Oo!=="precedingNode"&&Oo!=="followingNode"&&Oo!=="tokens"&&Oo!=="comments"&&Oo!=="parent"}).map(Qo=>{let[,Oo]=Qo;return Oo});if(Ls){Zo||(Zo=[],Ba.set(to,Zo));for(let Qo of Ls)la(Qo,Bo,Zo);return Zo}}function La(to,Bo,Zo,Mo){let{locStart:ys,locEnd:bo}=Zo,Ls=ys(Bo),Qo=bo(Bo),Oo=la(to,Zo),Ss,nl,Fs=0,ml=Oo.length;for(;Fs<ml;){let Go=Fs+ml>>1,Os=Oo[Go],fl=ys(Os),sl=bo(Os);if(fl<=Ls&&Qo<=sl)return La(Os,Bo,Zo,Os);if(sl<=Ls){Ss=Os,Fs=Go+1;continue}if(Qo<=fl){nl=Os,ml=Go;continue}throw new Error("Comment location overlaps with node location")}if(Mo&&Mo.type==="TemplateLiteral"){let{quasis:Go}=Mo,Os=aa(Go,Bo,Zo);Ss&&aa(Go,Ss,Zo)!==Os&&
` ,ra)+1),to=Gi.slice(Aa,ra).match(/^ \s */)[0],Bo=En(to,aa.tabWidth),Zo=La(va,Object.assign(Object.assign({},aa),{},{rangeStart:0,rangeEnd:Number.POSITIVE_INFINITY,cursorOffset:aa.cursorOffset>ra&&aa.cursorOffset<=da?aa.cursorOffset-ra:-1,endOfLine:"lf"}),Bo),Mo=Zo.formatted.trimEnd(),{cursorOffset:ys}=aa;ys>da?ys+=Mo.length-va.length:Zo.cursorOffset>=0&&(ys=Zo.cursorOffset+ra);let bo=Gi.slice(0,ra)+Mo+Gi.slice(da);if(aa.endOfLine!=="lf"){let Ls=Nn(aa.endOfLine);ys>=0&&Ls=== ` \ r
` &&(ys+=ui(bo.slice(0,ys), `
` )),bo=bo.replace(/ \n /g,Ls)}return{formatted:bo,cursorOffset:ys,comments:Zo.comments}}function Xa(Fi,aa,Un){return typeof aa!="number"||Number.isNaN(aa)||aa<0||aa>Fi.length?Un:aa}function Fa(Fi,aa){let{cursorOffset:Un,rangeStart:Gi,rangeEnd:ra}=aa;return Un=Xa(Fi,Un,-1),Gi=Xa(Fi,Gi,0),ra=Xa(Fi,ra,Fi.length),Object.assign(Object.assign({},aa),{},{cursorOffset:Un,rangeStart:Gi,rangeEnd:ra})}function rs(Fi,aa){let{cursorOffset:Un,rangeStart:Gi,rangeEnd:ra,endOfLine:da}=Fa(Fi,aa),va=Fi.charAt(0)===Ra;if(va&&(Fi=Fi.slice(1),Un--,Gi--,ra--),da==="auto"&&(da=xn(Fi)),Fi.includes(" \r ")){let Aa=to=>ui(Fi.slice(0,Math.max(to,0)), ` \ r
` );Un-=Aa(Un),Gi-=Aa(Gi),ra-=Aa(ra),Fi=Mi(Fi)}return{hasBOM:va,text:Fi,options:Fa(Fi,Object.assign(Object.assign({},aa),{},{cursorOffset:Un,rangeStart:Gi,rangeEnd:ra,endOfLine:da}))}}function Ui(Fi,aa){let Un=ki.resolveParser(aa);return!Un.hasPragma||Un.hasPragma(Fi)}function Ta(Fi,aa){let{hasBOM:Un,text:Gi,options:ra}=rs(Fi,ea(aa));if(ra.rangeStart>=ra.rangeEnd&&Gi!==""||ra.requirePragma&&!Ui(Gi,ra))return{formatted:Fi,cursorOffset:aa.cursorOffset,comments:[]};let da;return ra.rangeStart>0||ra.rangeEnd<Gi.length?da=Ea(Gi,ra):(!ra.requirePragma&&ra.insertPragma&&ra.printer.insertPragma&&!Ui(Gi,ra)&&(Gi=ra.printer.insertPragma(Gi)),da=La(Gi,ra)),Un&&(da.formatted=Ra+da.formatted,da.cursorOffset>=0&&da.cursorOffset++),da}di.exports={formatWithCursor:Ta,parse(Fi,aa,Un){let{text:Gi,options:ra}=rs(Fi,ea(aa)),da=ki.parse(Gi,ra);return Un&&(da.ast=zi(da.ast,ra)),da},formatAST(Fi,aa){aa=ea(aa);let Un=ji(Fi,aa);return Vn(Un,aa)},formatDoc(Fi,aa){return Ta(Fn(Fi),Object.assign(Object.assign({},aa),{},{parser:"__js_expression"})).formatted},printToDoc(Fi,aa){aa=ea(aa);let{ast:Un,text:Gi}=ki.parse(Fi,aa);return la(Gi,Un,aa),ji(Un,aa)},printDocToString(Fi,aa){return Vn(Fi,ea(aa))}}}}),yf=Io({"src/common/util-shared.js"(Rn,di){kn();var{getMaxContinuousCount:vn,getStringWidth:Vn,getAlignmentSize:Fn,getIndentSize:En,skip:xn,skipWhitespace:Nn,skipSpaces:ui,skipNewline:Mi,skipToLineEnd:ea,skipEverythingButNewLine:zi,skipInlineComment:ta,skipTrailingComment:ki,hasNewline:ji,hasNewlineInRange:oa,hasSpaces:Ra,isNextLineEmpty:Ba,isNextLineEmptyAfterIndex:la,isPreviousLineEmpty:La,getNextNonSpaceNonCommentCharacterIndex:Ea,makeString:Xa,addLeadingComment:Fa,addDanglingComment:rs,addTrailingComment:Ui}=Wc();di.exports={getMaxContinuousCount:vn,getStringWidth:Vn,getAlignmentSize:Fn,getIndentSize:En,skip:xn,skipWhitespace:Nn,skipSpaces:ui,skipNewline:Mi,skipToLineEnd:ea,skipEverythingButNewLine:zi,skipInlineComment:ta,skipTrailingComment:ki,hasNewline:ji,hasNewlineInRange:oa,hasSpaces:Ra,isNextLineEmpty:Ba,isNextLineEmptyAfterIndex:la,isPreviousLineEmpty:La,getNextNonSpaceNonCommentCharacterIndex:Ea,makeString:Xa,addLeadingComment:Fa,addDanglingComment:rs,addTrailingComment:Ui}}}),Ff=Io({"src/utils/create-language.js"(Rn,di){kn(),di.exports=function(vn,Vn){let{languageId:Fn}=vn,En=pa(vn,Wi);return Object.assign(Object.assign({linguistLanguageId:Fn},En),Vn(vn))}}}),wm=Io({"node_modules/esutils/lib/ast.js"(Rn,di){kn(),function(){function vn(ui){if(ui==null)return!1;switch(ui.type){case"ArrayExpression":case"AssignmentExpression":case"BinaryExpression":case"CallExpression":case"ConditionalExpression":case"FunctionExpression":case"Identifier":case"Literal":case"LogicalExpression":case"MemberExpression":case"NewExpression":case"ObjectExpression":case"SequenceExpression":case"ThisExpression":case"UnaryExpression":case"UpdateExpression":return!0}return!1}function Vn(ui){if(ui==null)return!1;switch(ui.type){case"DoWhileStatement":case"ForInStatement":case"ForStatement":case"WhileStatement":return!0}return!1}function Fn(ui){if(ui==null)return!1;switch(ui.type){case"BlockStatement":case"BreakStatement":case"ContinueStatement":case"DebuggerStatement":case"DoWhileStatement":case"EmptyStatement":case"ExpressionStatement":case"ForInStatement":case"ForStatement":case"IfStatement":case"LabeledStatement":case"ReturnStatement":case"SwitchStatement":case"ThrowStatement":case"TryStatement":case"VariableDeclaration":case"WhileStatement":case"WithStatement":return!0}return!1}function En(ui){return Fn(ui)||ui!=null&&ui.type==="FunctionDeclaration"}function xn(ui){switch(ui.type){case"IfStatement":return ui.alternate!=null?ui.alternate:ui.consequent;case"LabeledStatement":case"ForStatement":case"ForInStatement":case"WhileStatement":case"WithStatement":return ui.body}return null}function Nn(ui){var Mi;if(ui.type!=="IfStatement"||ui.alternate==null)return!1;Mi=ui.consequent;do{if(Mi.type==="IfStatement"&&Mi.alternate==null)return!0;Mi=xn(Mi)}while(Mi);return!1}di.exports={isExpression:vn,isStatement:Fn,isIterationStatement:Vn,isSourceElement:En,isProblematicIfStatement:N
` ))}function uc(co,il){return(co.type==="TemplateLiteral"&&Vl(co)||co.type==="TaggedTemplateExpression"&&Vl(co.quasi))&&!Fn(il,Mi(co),{backwards:!0})}function nd(co){if(!vu(co))return!1;let il=Vn(Es(co,cl.Dangling));return il&&!ta(il)}function Hc(co){if(co.length<=1)return!1;let il=0;for(let tc of co)if(va(tc)){if(il+=1,il>1)return!0}else if(fl(tc)){for(let Uc of tc.arguments)if(va(Uc))return!0}return!1}function hc(co){let il=co.getValue(),tc=co.getParentNode();return fl(il)&&fl(tc)&&tc.callee===il&&il.arguments.length>tc.arguments.length&&tc.arguments.length>0}function cc(co,il){if(il>=2)return!1;let tc=Sd=>cc(Sd,il+1),Uc=co.type==="Literal"&&"regex"in co&&co.regex.pattern||co.type==="RegExpLiteral"&&co.pattern;if(Uc&&ui(Uc)>5)return!1;if(co.type==="Literal"||co.type==="BigIntLiteral"||co.type==="DecimalLiteral"||co.type==="BooleanLiteral"||co.type==="NullLiteral"||co.type==="NumericLiteral"||co.type==="RegExpLiteral"||co.type==="StringLiteral"||co.type==="Identifier"||co.type==="ThisExpression"||co.type==="Super"||co.type==="PrivateName"||co.type==="PrivateIdentifier"||co.type==="ArgumentPlaceholder"||co.type==="Import")return!0;if(co.type==="TemplateLiteral")return co.quasis.every(Sd=>!Sd.value.raw.includes( `
` ))&&co.expressions.every(tc);if(co.type==="ObjectExpression")return co.properties.every(Sd=>!Sd.computed&&(Sd.shorthand||Sd.value&&tc(Sd.value)));if(co.type==="ArrayExpression")return co.elements.every(Sd=>Sd===null||tc(Sd));if(yc(co))return(co.type==="ImportExpression"||cc(co.callee,il))&&gs(co).every(tc);if(sl(co))return cc(co.object,il)&&cc(co.property,il);let Yc={"!":!0,"-":!0,"+":!0,"~":!0};if(co.type==="UnaryExpression"&&Yc[co.operator])return cc(co.argument,il);let ep={"++":!0,"--":!0};return co.type==="UpdateExpression"&&ep[co.operator]?cc(co.argument,il):co.type==="TSNonNullExpression"?cc(co.expression,il):!1}function ul(co){var il,tc;return(il=(tc=co.extra)===null||tc===void 0?void 0:tc.raw)!==null&&il!==void 0?il:co.raw}function Jo(co){return co}function hl(co){return co.filepath&&/ \. tsx $ /i.test(co.filepath)}function Ms(co){let il=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"es5";return co.trailingComma==="es5"&&il==="es5"||co.trailingComma==="all"&&(il==="all"||il==="es5")}function dl(co,il){switch(co.type){case"BinaryExpression":case"LogicalExpression":case"AssignmentExpression":case"NGPipeExpression":return dl(co.left,il);case"MemberExpression":case"OptionalMemberExpression":return dl(co.object,il);case"TaggedTemplateExpression":return co.tag.type==="FunctionExpression"?!1:dl(co.tag,il);case"CallExpression":case"OptionalCallExpression":return co.callee.type==="FunctionExpression"?!1:dl(co.callee,il);case"ConditionalExpression":return dl(co.test,il);case"UpdateExpression":return!co.prefix&&dl(co.argument,il);case"BindExpression":return co.object&&dl(co.object,il);case"SequenceExpression":return dl(co.expressions[0],il);case"TSSatisfiesExpression":case"TSAsExpression":case"TSNonNullExpression":return dl(co.expression,il);default:return il(co)}}var Wu={"==":!0,"!=":!0,"===":!0,"!==":!0}, $ e={"*":!0,"/":!0,"%":!0},er={">>":!0,">>>":!0,"<<":!0};function ir(co,il){return!(dr(il)!==dr(co)||co==="**"||Wu[co]&&Wu[il]||il==="%"&& $ e[co]||co==="%"&& $ e[il]||il!==co&& $ e[il]&& $ e[co]||er[co]&&er[il])}var lr=new Map([["|>"],["??"],["||"],["&&"],["|"],["^"],["&"],["==","===","!=","!=="],["<",">","<=",">=","in","instanceof"],[">>","<<",">>>"],["+","-"],["*","/","%"],["**"]].flatMap((co,il)=>co.map(tc=>[tc,il])));function dr(co){return lr.get(co)}function $ r(co){return!!er[co]||co==="|"||co==="^"||co==="&"}function Zr(co){var il;if(co.rest)return!0;let tc=mi(co);return((il=Vn(tc))===null||il===void 0?void 0:il.type)==="RestElement"}var Hn=new WeakMap;function mi(co){if(Hn.has(co))return Hn.get(co);let il=[];return co.this&&il.push(co.this),Array.isArray(co.parameters)?il.push(...co.parameters):Array.isArray(co.params)&&il.push(...co.params),co.rest&&il.push(co.rest),Hn.set(co,il),il}function ma(co,il){let tc=co.getValue(),Uc=0,Yc=ep=>il(ep,Uc++);tc.this&&co.call(Yc,"this"),Array.isArray(tc.parameters)?co.each(Yc,"parameters"):Array.isArray(tc.params)&&co.each(Yc,"params"),tc.rest&&co.call(Yc,"rest")}var io=new WeakMap;function gs(co){if(io.has(co))return io.get(co);let il=co.arguments;return co.type==="ImportExpression"&&(il=[co.source],co.attributes&&il.push(co.attributes)),io.set(co,il),il}function vs(co,il){let tc=co.getValue();tc.type==="ImportExpression"?(co.call(Uc=>il(Uc,0),"source"),tc.attributes&&co.call(Uc=>il(Uc,1),"attributes")):co.each(il,"arguments")}function xs(co){return co.value.trim()==="prettier-ignore"&&!co.unignore}function tl(co){return co&&(co.prettierIgnore||vu(co,cl.PrettierIgnore))}function Kl(co){let il=co.getValue();return tl(il)}var cl={Leading:2,Trailing:4,Dangling:8,Block:16,Line:32,PrettierIgnore:64,First:128,Last:256},hu=(co,il)=>{if(typeof co=="function"&&(il=co,co=0),co||il)return(tc,Uc,Yc)=>!(co&cl.Leading&&!tc.leading||co&cl.Trailing&&!tc.trailing||co&cl.Dangling&&(tc.leading||tc.trailing)||co&cl.Block&&!ta(tc)||co&cl.Line&&!Ui(tc)||co&cl.First&&Uc!==0||co&cl.Last&&Uc!==Yc.length-1||co&cl.PrettierIgnore&&!xs(tc)||il&&!il(tc))};function vu(co,il,tc){if(!xn(co==null?void 0:co.comments))return!1;let Uc=hu(il,tc);return Uc?co.comments.some(Uc):!0}function Es(co,il,tc){if(!Array.isAr
` )?ea(Number.NEGATIVE_INFINITY,Ls):ta(Ls,bo,Mo);va.push(ui([" ${ ",Qo,zi," } "]))}},"quasis"),va.push(" ` "),va}function Fa(aa,Un,Gi){let ra=aa.getNode(),da=ra.quasis[0].value.raw.trim().split(/\s*\|\s*/);if(da.length>1||da.some(va=>va.length>0)){Un.__inJestEach=!0;let va=aa.map(Gi," expressions ");Un.__inJestEach=!1;let Aa=[],to=va.map(bo=>" $ { "+ki(bo,Object.assign(Object.assign({},Un),{},{printWidth:Number.POSITIVE_INFINITY,endOfLine:" lf "})).formatted+" } " ) , Bo = [ { hasLineBreak : ! 1 , cells : [ ] } ] ; for ( let bo = 1 ; bo < ra . quasis . length ; bo ++ ) { let Ls = vn ( Bo ) , Qo = to [ bo - 1 ] ; Ls . cells . push ( Qo ) , Qo . includes ( `
` )&&(Ls.hasLineBreak=!0),ra.quasis[bo].value.raw.includes( `
` )&&Bo.push({hasLineBreak:!1,cells:[]})}let Zo=Math.max(da.length,...Bo.map(bo=>bo.cells.length)),Mo=Array.from({length:Zo}).fill(0),ys=[{cells:da},...Bo.filter(bo=>bo.cells.length>0)];for(let{cells:bo}of ys.filter(Ls=>!Ls.hasLineBreak))for(let[Ls,Qo]of bo.entries())Mo[Ls]=Math.max(Mo[Ls],Vn(Qo));return Aa.push(zi," ` ",Mi([xn,En(xn,ys.map(bo=>En(" | ",bo.cells.map((Ls,Qo)=>bo.hasLineBreak?Ls:Ls+" ".repeat(Mo[Qo]-Vn(Ls))))))]),xn," ` "),Aa}}function rs(aa,Un){let Gi=aa.getValue(),ra=Un();return la(Gi)&&(ra=ui([Mi([Nn,ra]),Nn])),[" ${ ",ra,zi," } "]}function Ui(aa,Un){return aa.map(Gi=>rs(Gi,Un),"expressions")}function Ta(aa,Un){return ji(aa,Gi=>typeof Gi=="string"?Un?Gi.replace(/( \\ *) ` / g , "$1$1\\`" ) : Fi ( Gi ) : Gi ) } function Fi ( aa ) { return aa . replace ( /([\\`]|\${)/g , "\\$1" ) } di . exports = { printTemplateLiteral : Xa , printTemplateExpressions : Ui , escapeTemplateCharacters : Ta , uncookTemplateElementValue : Fi } } } ) , Fm = Io ( { "src/language-js/embed/markdown.js" ( Rn , di ) { kn ( ) ; var { builders : { indent : vn , softline : Vn , literalline : Fn , dedentToRoot : En } } = Cc ( ) , { escapeTemplateCharacters : xn } = Xp ( ) ; function Nn ( Mi , ea , zi ) { let ta = Mi . getValue ( ) . quasis [ 0 ] . value . raw . replace ( /((?:\\\\)*)\\`/g , ( Ra , Ba ) => "\\" . repeat ( Ba . length / 2 ) + "`" ) , ki = ui ( ta ) , ji = ki !== "" ; ji && ( ta = ta . replace ( new RegExp ( ` ^ ${ ki } ` , "gm" ) , "" ) ) ; let oa = xn ( zi ( ta , { parser : "markdown" , _ _inJsTemplate : ! 0 } , { stripTrailingHardline : ! 0 } ) , ! 0 ) ; return [ "`" , ji ? vn ( [ Vn , oa ] ) : [ Fn , En ( oa ) ] , Vn , "`" ] } function ui ( Mi ) { let ea = Mi . match ( /^([^\S\n]*)\S/m ) ; return ea === null ? "" : ea [ 1 ] } di . exports = Nn } } ) , Pp = Io ( { "src/language-js/embed/css.js" ( Rn , di ) { kn ( ) ; var { isNonEmptyArray : vn } = Wc ( ) , { builders : { indent : Vn , hardline : Fn , softline : En } , utils : { mapDoc : xn , replaceEndOfLine : Nn , cleanDoc : ui } } = Cc ( ) , { printTemplateExpressions : Mi } = Xp ( ) ; function ea ( ki , ji , oa ) { let Ra = ki . getValue ( ) , Ba = Ra . quasis . map ( Fa => Fa . value . raw ) , la = 0 , La = Ba . reduce ( ( Fa , rs , Ui ) => Ui === 0 ? rs : Fa + "@prettier-placeholder-" + la ++ + "-id" + rs , "" ) , Ea = oa ( La , { parser : "scss" } , { stripTrailingHardline : ! 0 } ) , Xa = Mi ( ki , ji ) ; return zi ( Ea , Ra , Xa ) } function zi ( ki , ji , oa ) { if ( ji . quasis . length === 1 && ! ji . quasis [ 0 ] . value . raw . trim ( ) ) return "``" ; let Ra = ta ( ki , oa ) ; if ( ! Ra ) throw new Error ( "Couldn't insert all the expressions" ) ; return [ "`" , Vn ( [ Fn , Ra ] ) , En , "`" ] } function ta ( ki , ji ) { if ( ! vn ( ji ) ) return ki ; let oa = 0 , Ra = xn ( ui ( ki ) , Ba => typeof Ba != "string" || ! Ba . includes ( "@prettier-placeholder" ) ? Ba : Ba . split ( /@prettier-placeholder-(\d+)-id/ ) . map ( ( la , La ) => La % 2 === 0 ? Nn ( la ) : ( oa ++ , ji [ la ] ) ) ) ; return ji . length === oa ? Ra : null } di . exports = ea } } ) , um = Io ( { "src/language-js/embed/graphql.js" ( Rn , di ) { kn ( ) ; var { builders : { indent : vn , join : Vn , hardline : Fn } } = Cc ( ) , { escapeTemplateCharacters : En , printTemplateExpressions : xn } = Xp ( ) ; function Nn ( Mi , ea , zi ) { let ta = Mi . getValue ( ) , ki = ta . quasis . length ; if ( ki === 1 && ta . quasis [ 0 ] . value . raw . trim ( ) === "" ) return "``" ; let ji = xn ( Mi , ea ) , oa = [ ] ; for ( let Ra = 0 ; Ra < ki ; Ra ++ ) { let Ba = ta . quasis [ Ra ] , la = Ra === 0 , La = Ra === ki - 1 , Ea = Ba . value . cooked , Xa = Ea . split ( `
` ),Fa=Xa.length,rs=ji[Ra],Ui=Fa>2&&Xa[0].trim()===""&&Xa[1].trim()==="",Ta=Fa>2&&Xa[Fa-1].trim()===""&&Xa[Fa-2].trim()==="",Fi=Xa.every(Un=>/^ \s *(?:#[^ \n \r ]*)? $ /.test(Un));if(!La&&/#[^ \n \r ]* $ /.test(Xa[Fa-1]))return null;let aa=null;Fi?aa=ui(Xa):aa=zi(Ea,{parser:"graphql"},{stripTrailingHardline:!0}),aa?(aa=En(aa,!1),!la&&Ui&&oa.push(""),oa.push(aa),!La&&Ta&&oa.push("")):!la&&!La&&Ui&&oa.push(""),rs&&oa.push(rs)}return[" ` ",vn([Fn,Vn(Fn,oa)]),Fn," ` "]}function ui(Mi){let ea=[],zi=!1,ta=Mi.map(ki=>ki.trim());for(let[ki,ji]of ta.entries())ji!==""&&(ta[ki-1]===""&&zi?ea.push([Fn,ji]):ea.push(ji),zi=!0);return ea.length===0?null:Vn(Fn,ea)}di.exports=Nn}}),Uf=Io({"src/language-js/embed/html.js"(Rn,di){kn();var{builders:{indent:vn,line:Vn,hardline:Fn,group:En},utils:{mapDoc:xn}}=Cc(),{printTemplateExpressions:Nn,uncookTemplateElementValue:ui}=Xp(),Mi=0;function ea(zi,ta,ki,ji,oa){let{parser:Ra}=oa,Ba=zi.getValue(),la=Mi;Mi=Mi+1>>>0;let La=Gi=> ` PRETTIER _HTML _PLACEHOLDER _$ { Gi } _$ { la } _IN _JS ` ,Ea=Ba.quasis.map((Gi,ra,da)=>ra===da.length-1?Gi.value.cooked:Gi.value.cooked+La(ra)).join(""),Xa=Nn(zi,ta);if(Xa.length===0&&Ea.trim().length===0)return" ` ` ";let Fa=new RegExp(La("( \\ d+)"),"g"),rs=0,Ui=ki(Ea,{parser:Ra,__onHtmlRoot(Gi){rs=Gi.children.length}},{stripTrailingHardline:!0}),Ta=xn(Ui,Gi=>{if(typeof Gi!="string")return Gi;let ra=[],da=Gi.split(Fa);for(let va=0;va<da.length;va++){let Aa=da[va];if(va%2===0){Aa&&(Aa=ui(Aa),ji.__embeddedInHtml&&(Aa=Aa.replace(/< \/ (script) \b /gi,"< \\ / $ 1")),ra.push(Aa));continue}let to=Number(Aa);ra.push(Xa[to])}return ra}),Fi=/^ \s /.test(Ea)?" ":"",aa=/ \s $ /.test(Ea)?" ":"",Un=ji.htmlWhitespaceSensitivity==="ignore"?Fn:Fi&&aa?Vn:null;return En(Un?[" ` ",vn([Un,En(Ta)]),Un," ` "]:[" ` ",Fi,rs>1?vn(En(Ta)):En(Ta),aa," ` "])}di.exports=ea}}),Vf=Io({"src/language-js/embed.js"(Rn,di){kn();var{hasComment:vn,CommentCheckFlags:Vn,isObjectProperty:Fn}=kd(),En=Fm(),xn=Pp(),Nn=um(),ui=Uf();function Mi(Ui){if(ta(Ui)||Ra(Ui)||Ba(Ui)||ki(Ui))return"css";if(Ea(Ui))return"graphql";if(Fa(Ui))return"html";if(ji(Ui))return"angular";if(zi(Ui))return"markdown"}function ea(Ui,Ta,Fi,aa){let Un=Ui.getValue();if(Un.type!=="TemplateLiteral"||rs(Un))return;let Gi=Mi(Ui);if(Gi){if(Gi==="markdown")return En(Ui,Ta,Fi);if(Gi==="css")return xn(Ui,Ta,Fi);if(Gi==="graphql")return Nn(Ui,Ta,Fi);if(Gi==="html"||Gi==="angular")return ui(Ui,Ta,Fi,aa,{parser:Gi})}}function zi(Ui){let Ta=Ui.getValue(),Fi=Ui.getParentNode();return Fi&&Fi.type==="TaggedTemplateExpression"&&Ta.quasis.length===1&&Fi.tag.type==="Identifier"&&(Fi.tag.name==="md"||Fi.tag.name==="markdown")}function ta(Ui){let Ta=Ui.getValue(),Fi=Ui.getParentNode(),aa=Ui.getParentNode(1);return aa&&Ta.quasis&&Fi.type==="JSXExpressionContainer"&&aa.type==="JSXElement"&&aa.openingElement.name.name==="style"&&aa.openingElement.attributes.some(Un=>Un.name.name==="jsx")||Fi&&Fi.type==="TaggedTemplateExpression"&&Fi.tag.type==="Identifier"&&Fi.tag.name==="css"||Fi&&Fi.type==="TaggedTemplateExpression"&&Fi.tag.type==="MemberExpression"&&Fi.tag.object.name==="css"&&(Fi.tag.property.name==="global"||Fi.tag.property.name==="resolve")}function ki(Ui){return Ui.match(Ta=>Ta.type==="TemplateLiteral",(Ta,Fi)=>Ta.type==="ArrayExpression"&&Fi==="elements",(Ta,Fi)=>Fn(Ta)&&Ta.key.type==="Identifier"&&Ta.key.name==="styles"&&Fi==="value",...oa)}function ji(Ui){return Ui.match(Ta=>Ta.type==="TemplateLiteral",(Ta,Fi)=>Fn(Ta)&&Ta.key.type==="Identifier"&&Ta.key.name==="template"&&Fi==="value",...oa)}var oa=[(Ui,Ta)=>Ui.type==="ObjectExpression"&&Ta==="properties",(Ui,Ta)=>Ui.type==="CallExpression"&&Ui.callee.type==="Identifier"&&Ui.callee.name==="Component"&&Ta==="arguments",(Ui,Ta)=>Ui.type==="Decorator"&&Ta==="expression"];function Ra(Ui){let Ta=Ui.getParentNode();if(!Ta||Ta.type!=="TaggedTemplateExpression")return!1;let Fi=Ta.tag.type==="ParenthesizedExpression"?Ta.tag.expression:Ta.tag;switch(Fi.type){case"MemberExpression":return la(Fi.object)||La(Fi);case"CallExpression":return la(Fi.callee)||Fi.callee.type==="MemberExpression"&&(Fi.callee.object.type==="MemberExpression"&&(la(Fi.callee.object.object)||La(Fi.cal
` ,ws={EOL: $ o,tmpdir:Ja,tmpDir:no,networkInterfaces:Ao,getNetworkInterfaces:eo,release:Do,type:Co,cpus:us,totalmem:ks,freemem:Ih,uptime:Qf,loadavg:xm,hostname:Um,endianness:Sf}}}),Bs=Io({"node-modules-polyfills-commonjs:os"(Rn,di){kn();var vn=(fs(),Vu(Th));if(vn&&vn.default){di.exports=vn.default;for(let Vn in vn)di.exports[Vn]=vn[Vn]}else vn&&(di.exports=vn)}}),Ks=Io({"node_modules/detect-newline/index.js"(Rn,di){kn();var vn=Vn=>{if(typeof Vn!="string")throw new TypeError("Expected a string");let Fn=Vn.match(/(?: \r ? \n )/g)||[];if(Fn.length===0)return;let En=Fn.filter(Nn=>Nn=== ` \ r
2024-08-21 13:12:53 +08:00
` ).length,xn=Fn.length-En;return En>xn? ` \ r
` : `
` };di.exports=vn,di.exports.graceful=Vn=>typeof Vn=="string"&&vn(Vn)|| `
2024-08-25 11:35:35 +08:00
` }}),js=Io({"node_modules/jest-docblock/build/index.js"(Rn){kn(),Object.defineProperty(Rn,"__esModule",{value:!0}),Rn.extract=ki,Rn.parse=oa,Rn.parseWithComments=Ra,Rn.print=Ba,Rn.strip=ji;function di(){let La=Bs();return di=function(){return La},La}function vn(){let La=Vn(Ks());return vn=function(){return La},La}function Vn(La){return La&&La.__esModule?La:{default:La}}var Fn=/ \* \/ $ /,En=/^ \/ \* \* ?/,xn=/^ \s *( \/ \* \* ?(.| \r ? \n )*? \* \/ )/,Nn=/(^| \s +) \/ \/ ([^ \r \n ]*)/g,ui=/^( \r ? \n )+/,Mi=/(?:^| \r ? \n ) *(@[^ \r \n ]*?) * \r ? \n *(?![^@ \r \n ]* \/ \/ [^]*)([^@ \r \n \s ][^@ \r \n ]+?) * \r ? \n /g,ea=/(?:^| \r ? \n ) *@( \S +) *([^ \r \n ]*)/g,zi=/( \r ? \n |^) * \* ?/g,ta=[];function ki(La){let Ea=La.match(xn);return Ea?Ea[0].trimLeft():""}function ji(La){let Ea=La.match(xn);return Ea&&Ea[0]?La.substring(Ea[0].length):La}function oa(La){return Ra(La).pragmas}function Ra(La){let Ea=(0,vn().default)(La)||di().EOL;La=La.replace(En,"").replace(Fn,"").replace(zi," $ 1");let Xa="";for(;Xa!==La;)Xa=La,La=La.replace(Mi, ` $ { Ea } $1 $2$ { Ea } ` );La=La.replace(ui,"").trimRight();let Fa=Object.create(null),rs=La.replace(ea,"").replace(ui,"").trimRight(),Ui;for(;Ui=ea.exec(La);){let Ta=Ui[2].replace(Nn,"");typeof Fa[Ui[1]]=="string"||Array.isArray(Fa[Ui[1]])?Fa[Ui[1]]=ta.concat(Fa[Ui[1]],Ta):Fa[Ui[1]]=Ta}return{comments:rs,pragmas:Fa}}function Ba(La){let{comments:Ea="",pragmas:Xa={}}=La,Fa=(0,vn().default)(Ea)||di().EOL,rs="/**",Ui=" *",Ta=" */",Fi=Object.keys(Xa),aa=Fi.map(Gi=>la(Gi,Xa[Gi])).reduce((Gi,ra)=>Gi.concat(ra),[]).map(Gi=> ` $ { Ui } $ { Gi } $ { Fa } ` ).join("");if(!Ea){if(Fi.length===0)return"";if(Fi.length===1&&!Array.isArray(Xa[Fi[0]])){let Gi=Xa[Fi[0]];return ` $ { rs } $ { la ( Fi [ 0 ] , Gi ) [ 0 ] } $ { Ta } ` }}let Un=Ea.split(Fa).map(Gi=> ` $ { Ui } $ { Gi } ` ).join(Fa)+Fa;return rs+Fa+(Ea?Un:"")+(Ea&&Fi.length?Ui+Fa:"")+aa+Ta}function la(La,Ea){return ta.concat(Ea).map(Xa=> ` @ $ { La } $ { Xa } ` .trim())}}}),pl=Io({"src/language-js/utils/get-shebang.js"(Rn,di){kn();function vn(Vn){if(!Vn.startsWith("#!"))return"";let Fn=Vn.indexOf( `
` );return Fn===-1?Vn:Vn.slice(0,Fn)}di.exports=vn}}),is=Io({"src/language-js/pragma.js"(Rn,di){kn();var{parseWithComments:vn,strip:Vn,extract:Fn,print:En}=js(),{normalizeEndOfLine:xn}=Hu(),Nn=pl();function ui(zi){let ta=Nn(zi);ta&&(zi=zi.slice(ta.length+1));let ki=Fn(zi),{pragmas:ji,comments:oa}=vn(ki);return{shebang:ta,text:zi,pragmas:ji,comments:oa}}function Mi(zi){let ta=Object.keys(ui(zi).pragmas);return ta.includes("prettier")||ta.includes("format")}function ea(zi){let{shebang:ta,text:ki,pragmas:ji,comments:oa}=ui(zi),Ra=Vn(ki),Ba=En({pragmas:Object.assign({format:""},ji),comments:oa.trimStart()});return(ta? ` $ { ta }
2024-08-21 13:12:53 +08:00
` :"")+xn(Ba)+(Ra.startsWith( `
` )? `
` : `
2024-08-25 11:35:35 +08:00
` )+Ra}di.exports={hasPragma:Mi,insertPragma:ea}}}),ol=Io({"src/language-js/utils/is-type-cast-comment.js"(Rn,di){kn();var vn=Od();function Vn(Fn){return vn(Fn)&&Fn.value[0]==="*"&&/@(?:type|satisfies) \b /.test(Fn.value)}di.exports=Vn}}),Ts=Io({"src/language-js/comments.js"(Rn,di){kn();var{getLast:vn,hasNewline:Vn,getNextNonSpaceNonCommentCharacterIndexWithStartIndex:Fn,getNextNonSpaceNonCommentCharacter:En,hasNewlineInRange:xn,addLeadingComment:Nn,addTrailingComment:ui,addDanglingComment:Mi,getNextNonSpaceNonCommentCharacterIndex:ea,isNonEmptyArray:zi}=Wc(),{getFunctionParameters:ta,isPrettierIgnoreComment:ki,isJsxNode:ji,hasFlowShorthandAnnotationComment:oa,hasFlowAnnotationComment:Ra,hasIgnoreComment:Ba,isCallLikeExpression:la,getCallArguments:La,isCallExpression:Ea,isMemberExpression:Xa,isObjectProperty:Fa,isLineComment:rs,getComments:Ui,CommentCheckFlags:Ta,markerForIfWithoutBlockAndSameLineComment:Fi}=kd(),{locStart:aa,locEnd:Un}=Op(),Gi=Od(),ra=ol();function da(er){return[Jo,ku,Ls,Mo,ys,bo,nl,Vl,Ys,fu,uc,nd,ml,Is,hs].some(ir=>ir(er))}function va(er){return[Zo,ku,Qo,uc,Mo,ys,bo,nl,Is,Vs,Gs,fu,cc,hs,Ms].some(ir=>ir(er))}function Aa(er){return[Jo,Mo,ys,Oo,sl,ml,fu,fl,Os,hl,hs,ul].some(ir=>ir(er))}function to(er,ir){let lr=(er.body||er.properties).find(dr=>{let{type: $ r}=dr;return $ r!=="EmptyStatement"});lr?Nn(lr,ir):Mi(er,ir)}function Bo(er,ir){er.type==="BlockStatement"?to(er,ir):Nn(er,ir)}function Zo(er){let{comment:ir,followingNode:lr}=er;return lr&&ra(ir)?(Nn(lr,ir),!0):!1}function Mo(er){let{comment:ir,precedingNode:lr,enclosingNode:dr,followingNode: $ r,text:Zr}=er;if((dr==null?void 0:dr.type)!=="IfStatement"||! $ r)return!1;if(En(Zr,ir,Un)===")")return ui(lr,ir),!0;if(lr===dr.consequent&& $ r===dr.alternate){if(lr.type==="BlockStatement")ui(lr,ir);else{let Hn=ir.type==="SingleLine"||ir.loc.start.line===ir.loc.end.line,mi=ir.loc.start.line===lr.loc.start.line;Hn&&mi?Mi(lr,ir,Fi):Mi(dr,ir)}return!0}return $ r.type==="BlockStatement"?(to( $ r,ir),!0): $ r.type==="IfStatement"?(Bo( $ r.consequent,ir),!0):dr.consequent=== $ r?(Nn( $ r,ir),!0):!1}function ys(er){let{comment:ir,precedingNode:lr,enclosingNode:dr,followingNode: $ r,text:Zr}=er;return(dr==null?void 0:dr.type)!=="WhileStatement"||! $ r?!1:En(Zr,ir,Un)===")"?(ui(lr,ir),!0): $ r.type==="BlockStatement"?(to( $ r,ir),!0):dr.body=== $ r?(Nn( $ r,ir),!0):!1}function bo(er){let{comment:ir,precedingNode:lr,enclosingNode:dr,followingNode: $ r}=er;return(dr==null?void 0:dr.type)!=="TryStatement"&&(dr==null?void 0:dr.type)!=="CatchClause"||! $ r?!1:dr.type==="CatchClause"&&lr?(ui(lr,ir),!0): $ r.type==="BlockStatement"?(to( $ r,ir),!0): $ r.type==="TryStatement"?(Bo( $ r.finalizer,ir),!0): $ r.type==="CatchClause"?(Bo( $ r.body,ir),!0):!1}function Ls(er){let{comment:ir,enclosingNode:lr,followingNode:dr}=er;return Xa(lr)&&(dr==null?void 0:dr.type)==="Identifier"?(Nn(lr,ir),!0):!1}function Qo(er){let{comment:ir,precedingNode:lr,enclosingNode:dr,followingNode: $ r,text:Zr}=er,Hn=lr&&!xn(Zr,Un(lr),aa(ir));return(!lr||!Hn)&&((dr==null?void 0:dr.type)==="ConditionalExpression"||(dr==null?void 0:dr.type)==="TSConditionalType")&& $ r?(Nn( $ r,ir),!0):!1}function Oo(er){let{comment:ir,precedingNode:lr,enclosingNode:dr}=er;return Fa(dr)&&dr.shorthand&&dr.key===lr&&dr.value.type==="AssignmentPattern"?(ui(dr.value.left,ir),!0):!1}var Ss=new Set(["ClassDeclaration","ClassExpression","DeclareClass","DeclareInterface","InterfaceDeclaration","TSInterfaceDeclaration"]);function nl(er){let{comment:ir,precedingNode:lr,enclosingNode:dr,followingNode: $ r}=er;if(Ss.has(dr==null?void 0:dr.type)){if(zi(dr.decorators)&&!( $ r&& $ r.type==="Decorator"))return ui(vn(dr.decorators),ir),!0;if(dr.body&& $ r===dr.body)return to(dr.body,ir),!0;if( $ r){if(dr.superClass&& $ r===dr.superClass&&lr&&(lr===dr.id||lr===dr.typeParameters))return ui(lr,ir),!0;for(let Zr of["implements","extends","mixins"])if(dr[Zr]&& $ r===dr[Zr][0])return lr&&(lr===dr.id||lr===dr.typeParameters||lr===dr.superClass)?ui(lr,ir):Mi(dr,ir,Zr),!0}}return!1}var Fs=new Set(["ClassMethod","ClassProperty","PropertyDefinition","TSAbstractPropertyDefinition","TSAbstractMethodDefinition","TSDeclar
` )&&!fu&&!rs(Gs.attributes[0]))return ui(["<",Ys("name"),Ys("typeParameters")," ",...hs.map(Ys,"attributes"),Gs.selfClosing?" />":">"]);let Vl=Gs.attributes&&Gs.attributes.some(nd=>nd.value&&Xa(nd.value)&&nd.value.value.includes( `
` )),uc=Vs.singleAttributePerLine&&Gs.attributes.length>1?xn:En;return ui(["<",Ys("name"),Ys("typeParameters"),Mi(hs.map(()=>[uc,Ys()],"attributes")),...Mo(Gs,Vs,fu)],{shouldBreak:Vl})}function Mo(hs,Vs,Ys){return hs.selfClosing?[En,"/>"]:ys(hs,Vs,Ys)?[">"]:[Nn,">"]}function ys(hs,Vs,Ys){let Gs=hs.attributes.length>0&&rs(Ra(hs.attributes),Ui.Trailing);return hs.attributes.length===0&&!Ys||(Vs.bracketSameLine||Vs.jsxBracketSameLine)&&(!Ys||hs.attributes.length>0)&&!Gs}function bo(hs,Vs,Ys){let Gs=hs.getValue(),fu=[];fu.push("</");let Vl=Ys("name");return rs(Gs.name,Ui.Leading|Ui.Line)?fu.push(Mi([xn,Vl]),xn):rs(Gs.name,Ui.Leading|Ui.Block)?fu.push(" ",Vl):fu.push(Vl),fu.push(">"),fu}function Ls(hs,Vs){let Ys=hs.getValue(),Gs=rs(Ys),fu=rs(Ys,Ui.Line),Vl=Ys.type==="JSXOpeningFragment";return[Vl?"<":"</",Mi([fu?xn:Gs&&!Vl?" ":"",Vn(hs,Vs,!0)]),fu?xn:"",">"]}function Qo(hs,Vs,Ys){let Gs=vn(hs,Gi(hs,Vs,Ys),Vs);return Aa(hs,Gs,Vs)}function Oo(hs,Vs){let Ys=hs.getValue(),Gs=rs(Ys,Ui.Line);return[Vn(hs,Vs,!Gs),Gs?xn:""]}function Ss(hs,Vs,Ys){let Gs=hs.getValue();return["{",hs.call(fu=>{let Vl=["...",Ys()],uc=fu.getValue();return!rs(uc)||!aa(fu)?Vl:[Mi([Nn,vn(fu,Vl,Vs)]),Nn]},Gs.type==="JSXSpreadAttribute"?"argument":"expression"),"}"]}function nl(hs,Vs,Ys){let Gs=hs.getValue();if(Gs.type.startsWith("JSX"))switch(Gs.type){case"JSXAttribute":return to(hs,Vs,Ys);case"JSXIdentifier":return String(Gs.name);case"JSXNamespacedName":return ji(":",[Ys("namespace"),Ys("name")]);case"JSXMemberExpression":return ji(".",[Ys("object"),Ys("property")]);case"JSXSpreadAttribute":return Ss(hs,Vs,Ys);case"JSXSpreadChild":return Ss(hs,Vs,Ys);case"JSXExpressionContainer":return Bo(hs,Vs,Ys);case"JSXFragment":case"JSXElement":return Qo(hs,Vs,Ys);case"JSXOpeningElement":return Zo(hs,Vs,Ys);case"JSXClosingElement":return bo(hs,Vs,Ys);case"JSXOpeningFragment":case"JSXClosingFragment":return Ls(hs,Vs);case"JSXEmptyExpression":return Oo(hs,Vs);case"JSXText":throw new Error("JSXText should be handled by JSXElement");default:throw new Error( ` Unknown JSX node type : $ { JSON . stringify ( Gs . type ) } . ` )}}var Fs= `
\ r ` ,ml=new RegExp("(["+Fs+"]+)"),Go=new RegExp("[^"+Fs+"]"),Os=hs=>hs.replace(new RegExp("(?:^"+ml.source+"|"+ml.source+" $ )"),"");function fl(hs){if(hs.children.length===0)return!0;if(hs.children.length>1)return!1;let Vs=hs.children[0];return Vs.type==="JSXText"&&!sl(Vs)}function sl(hs){return hs.type==="JSXText"&&(Go.test(La(hs))||!/ \n /.test(La(hs)))}function ku(hs){return hs.type==="JSXExpressionContainer"&&Xa(hs.expression)&&hs.expression.value===" "&&!rs(hs.expression)}function Is(hs){let Vs=hs.getValue(),Ys=hs.getParentNode();if(!Ys||!Vs||!la(Vs)||!la(Ys))return!1;let Gs=Ys.children.indexOf(Vs),fu=null;for(let Vl=Gs;Vl>0;Vl--){let uc=Ys.children[Vl-1];if(!(uc.type==="JSXText"&&!sl(uc))){fu=uc;break}}return fu&&fu.type==="JSXExpressionContainer"&&fu.expression.type==="JSXEmptyExpression"&&Ta(fu.expression)}di.exports={hasJsxIgnoreComment:Is,printJsx:nl}}}),vl=Io({"src/language-js/print/misc.js"(Rn,di){kn();var{isNonEmptyArray:vn}=Wc(),{builders:{indent:Vn,join:Fn,line:En}}=Cc(),{isFlowAnnotationComment:xn}=kd();function Nn(Ra){let Ba=Ra.getValue();return!Ba.optional||Ba.type==="Identifier"&&Ba===Ra.getParentNode().key?"":Ba.type==="OptionalCallExpression"||Ba.type==="OptionalMemberExpression"&&Ba.computed?"?.":"?"}function ui(Ra){return Ra.getValue().definite||Ra.match(void 0,(Ba,la)=>la==="id"&&Ba.type==="VariableDeclarator"&&Ba.definite)?"!":""}function Mi(Ra,Ba,la){let La=Ra.getValue();return La.typeArguments?la("typeArguments"):La.typeParameters?la("typeParameters"):""}function ea(Ra,Ba,la){let La=Ra.getValue();if(!La.typeAnnotation)return"";let Ea=Ra.getParentNode(),Xa=Ea.type==="DeclareFunction"&&Ea.id===La;return xn(Ba.originalText,La.typeAnnotation)?[" /*: ",la("typeAnnotation")," */"]:[Xa?"":": ",la("typeAnnotation")]}function zi(Ra,Ba,la){return["::",la("callee")]}function ta(Ra,Ba,la){let La=Ra.getValue();return vn(La.modifiers)?[Fn(" ",Ra.map(la,"modifiers"))," "]:""}function ki(Ra,Ba,la){return Ra.type==="EmptyStatement"?";":Ra.type==="BlockStatement"||la?[" ",Ba]:Vn([En,Ba])}function ji(Ra,Ba,la){return["...",la("argument"),ea(Ra,Ba,la)]}function oa(Ra,Ba){let la=Ra.slice(1,-1);if(la.includes('"')||la.includes("'"))return Ra;let La=Ba.singleQuote?"'":'"';return La+la+La}di.exports={printOptionalToken:Nn,printDefiniteToken:ui,printFunctionTypeParameters:Mi,printBindExpressionCallee:zi,printTypeScriptModifiers:ta,printTypeAnnotation:ea,printRestSpread:ji,adjustClause:ki,printDirective:oa}}}),Zl=Io({"src/language-js/print/array.js"(Rn,di){kn();var{printDanglingComments:vn}=wc(),{builders:{line:Vn,softline:Fn,hardline:En,group:xn,indent:Nn,ifBreak:ui,fill:Mi}}=Cc(),{getLast:ea,hasNewline:zi}=Wc(),{shouldPrintComma:ta,hasComment:ki,CommentCheckFlags:ji,isNextLineEmpty:oa,isNumericLiteral:Ra,isSignedNumericLiteral:Ba}=kd(),{locStart:la}=Op(),{printOptionalToken:La,printTypeAnnotation:Ea}=vl();function Xa(Ta,Fi,aa){let Un=Ta.getValue(),Gi=[],ra=Un.type==="TupleExpression"?"#[":"[",da="]";if(Un.elements.length===0)ki(Un,ji.Dangling)?Gi.push(xn([ra,vn(Ta,Fi),Fn,da])):Gi.push(ra,da);else{let va=ea(Un.elements),Aa=!(va&&va.type==="RestElement"),to=va===null,Bo=Symbol("array"),Zo=!Fi.__inJestEach&&Un.elements.length>1&&Un.elements.every((bo,Ls,Qo)=>{let Oo=bo&&bo.type;if(Oo!=="ArrayExpression"&&Oo!=="ObjectExpression")return!1;let Ss=Qo[Ls+1];if(Ss&&Oo!==Ss.type)return!1;let nl=Oo==="ArrayExpression"?"elements":"properties";return bo[nl]&&bo[nl].length>1}),Mo=Fa(Un,Fi),ys=Aa?to?",":ta(Fi)?Mo?ui(",","",{groupId:Bo}):ui(","):"":"";Gi.push(xn([ra,Nn([Fn,Mo?Ui(Ta,Fi,aa,ys):[rs(Ta,Fi,"elements",aa),ys],vn(Ta,Fi,!0)]),Fn,da],{shouldBreak:Zo,id:Bo}))}return Gi.push(La(Ta),Ea(Ta,Fi,aa)),Gi}function Fa(Ta,Fi){return Ta.elements.length>1&&Ta.elements.every(aa=>aa&&(Ra(aa)||Ba(aa)&&!ki(aa.argument))&&!ki(aa,ji.Trailing|ji.Line,Un=>!zi(Fi.originalText,la(Un),{backwards:!0})))}function rs(Ta,Fi,aa,Un){let Gi=[],ra=[];return Ta.each(da=>{Gi.push(ra,xn(Un())),ra=[",",Vn],da.getValue()&&oa(da.getValue(),Fi)&&ra.push(Fn)},aa),Gi}function Ui(Ta,Fi,aa,Un){let Gi=[];return Ta.each((ra,da,va)=>{let Aa=da===va.length-1;Gi.push([aa(),A
` ):oa(Go)}function nl(Go,Os,fl){return rs(Go)?(Os=Mi(Os),typeof Os=="string"&&Vn(Os)<fl.tabWidth+3):!1}function Fs(Go,Os){let fl=ml(Go);if(vn(fl)){if(fl.length>1)return!0;if(fl.length===1){let ku=fl[0];if(ku.type==="TSUnionType"||ku.type==="UnionTypeAnnotation"||ku.type==="TSIntersectionType"||ku.type==="IntersectionTypeAnnotation"||ku.type==="TSTypeLiteral"||ku.type==="ObjectTypeAnnotation")return!0}let sl=Go.typeParameters?"typeParameters":"typeArguments";if(ea(Os(sl)))return!0}return!1}function ml(Go){return Go.typeParameters&&Go.typeParameters.params||Go.typeArguments&&Go.typeArguments.params}di.exports={printVariableDeclarator:Un,printAssignmentExpression:aa,printAssignment:Fi,isArrowFunctionVariableDeclarator:ys}}}),rc=Io({"src/language-js/print/function-parameters.js"(Rn,di){kn();var{getNextNonSpaceNonCommentCharacter:vn}=Wc(),{printDanglingComments:Vn}=wc(),{builders:{line:Fn,hardline:En,softline:xn,group:Nn,indent:ui,ifBreak:Mi},utils:{removeLines:ea,willBreak:zi}}=Cc(),{getFunctionParameters:ta,iterateFunctionParametersPath:ki,isSimpleType:ji,isTestCall:oa,isTypeAnnotationAFunction:Ra,isObjectType:Ba,isObjectTypePropertyAFunction:la,hasRestParameter:La,shouldPrintComma:Ea,hasComment:Xa,isNextLineEmpty:Fa}=kd(),{locEnd:rs}=Op(),{ArgExpansionBailout:Ui}=sd(),{printFunctionTypeParameters:Ta}=vl();function Fi(ra,da,va,Aa,to){let Bo=ra.getValue(),Zo=ta(Bo),Mo=to?Ta(ra,va,da):"";if(Zo.length===0)return[Mo,"(",Vn(ra,va,!0,Ss=>vn(va.originalText,Ss,rs)===")"),")"];let ys=ra.getParentNode(),bo=oa(ys),Ls=aa(Bo),Qo=[];if(ki(ra,(Ss,nl)=>{let Fs=nl===Zo.length-1;Fs&&Bo.rest&&Qo.push("..."),Qo.push(da()),!Fs&&(Qo.push(","),bo||Ls?Qo.push(" "):Fa(Zo[nl],va)?Qo.push(En,En):Qo.push(Fn))}),Aa){if(zi(Mo)||zi(Qo))throw new Ui;return Nn([ea(Mo),"(",ea(Qo),")"])}let Oo=Zo.every(Ss=>!Ss.decorators);return Ls&&Oo?[Mo,"(",...Qo,")"]:bo?[Mo,"(",...Qo,")"]:(la(ys)||Ra(ys)||ys.type==="TypeAlias"||ys.type==="UnionTypeAnnotation"||ys.type==="TSUnionType"||ys.type==="IntersectionTypeAnnotation"||ys.type==="FunctionTypeAnnotation"&&ys.returnType===Bo)&&Zo.length===1&&Zo[0].name===null&&Bo.this!==Zo[0]&&Zo[0].typeAnnotation&&Bo.typeParameters===null&&ji(Zo[0].typeAnnotation)&&!Bo.rest?va.arrowParens==="always"?["(",...Qo,")"]:Qo:[Mo,"(",ui([xn,...Qo]),Mi(!La(Bo)&&Ea(va,"all")?",":""),xn,")"]}function aa(ra){if(!ra)return!1;let da=ta(ra);if(da.length!==1)return!1;let[va]=da;return!Xa(va)&&(va.type==="ObjectPattern"||va.type==="ArrayPattern"||va.type==="Identifier"&&va.typeAnnotation&&(va.typeAnnotation.type==="TypeAnnotation"||va.typeAnnotation.type==="TSTypeAnnotation")&&Ba(va.typeAnnotation.typeAnnotation)||va.type==="FunctionTypeParam"&&Ba(va.typeAnnotation)||va.type==="AssignmentPattern"&&(va.left.type==="ObjectPattern"||va.left.type==="ArrayPattern")&&(va.right.type==="Identifier"||va.right.type==="ObjectExpression"&&va.right.properties.length===0||va.right.type==="ArrayExpression"&&va.right.elements.length===0))}function Un(ra){let da;return ra.returnType?(da=ra.returnType,da.typeAnnotation&&(da=da.typeAnnotation)):ra.typeAnnotation&&(da=ra.typeAnnotation),da}function Gi(ra,da){let va=Un(ra);if(!va)return!1;let Aa=ra.typeParameters&&ra.typeParameters.params;if(Aa){if(Aa.length>1)return!1;if(Aa.length===1){let to=Aa[0];if(to.constraint||to.default)return!1}}return ta(ra).length===1&&(Ba(va)||zi(da))}di.exports={printFunctionParameters:Fi,shouldHugFunctionParameters:aa,shouldGroupFunctionParameters:Gi}}}),Ka=Io({"src/language-js/print/type-annotation.js"(Rn,di){kn();var{printComments:vn,printDanglingComments:Vn}=wc(),{isNonEmptyArray:Fn}=Wc(),{builders:{group:En,join:xn,line:Nn,softline:ui,indent:Mi,align:ea,ifBreak:zi}}=Cc(),ta=Cs(),{locStart:ki}=Op(),{isSimpleType:ji,isObjectType:oa,hasLeadingOwnLineComment:Ra,isObjectTypePropertyAFunction:Ba,shouldPrintComma:la}=kd(),{printAssignment:La}=ec(),{printFunctionParameters:Ea,shouldGroupFunctionParameters:Xa}=rc(),{printArrayItems:Fa}=Zl();function rs(va){if(ji(va)||oa(va))return!0;if(va.type==="UnionTypeAnnotation"||va.type==="TSUnionType"){let Aa=va.types.filter(Bo=>Bo.type==="VoidTypeAnnot
2024-08-21 13:12:53 +08:00
` );return ji.length>1&&ji.every(oa=>oa.trim()[0]==="*")}function ta(ki){let ji=ki.value.split( `
2024-08-25 11:35:35 +08:00
` );return["/*",Vn(Fn,ji.map((oa,Ra)=>Ra===0?oa.trimEnd():" "+(Ra<ji.length-1?oa.trim():oa.trimStart()))),"*/"]}di.exports={printComment:ea}}}),Hp=Io({"src/language-js/print/literal.js"(Rn,di){kn();var{printString:vn,printNumber:Vn}=Wc(),{replaceTextEndOfLine:Fn}=Mp(),{printDirective:En}=vl();function xn(ea,zi){let ta=ea.getNode();switch(ta.type){case"RegExpLiteral":return Mi(ta);case"BigIntLiteral":return ui(ta.bigint||ta.extra.raw);case"NumericLiteral":return Vn(ta.extra.raw);case"StringLiteral":return Fn(vn(ta.extra.raw,zi));case"NullLiteral":return"null";case"BooleanLiteral":return String(ta.value);case"DecimalLiteral":return Vn(ta.value)+"m";case"Literal":{if(ta.regex)return Mi(ta.regex);if(ta.bigint)return ui(ta.raw);if(ta.decimal)return Vn(ta.decimal)+"m";let{value:ki}=ta;return typeof ki=="number"?Vn(ta.raw):typeof ki=="string"?Nn(ea)?En(ta.raw,zi):Fn(vn(ta.raw,zi)):String(ki)}}}function Nn(ea){if(ea.getName()!=="expression")return;let zi=ea.getParentNode();return zi.type==="ExpressionStatement"&&zi.directive}function ui(ea){return ea.toLowerCase()}function Mi(ea){let{pattern:zi,flags:ta}=ea;return ta=[...ta].sort().join(""), ` / $ { zi } / $ { ta } ` }di.exports={printLiteral:xn}}}),Rp=Io({"src/language-js/printer-estree.js"(Rn,di){kn();var{printDanglingComments:vn}=wc(),{hasNewline:Vn}=Wc(),{builders:{join:Fn,line:En,hardline:xn,softline:Nn,group:ui,indent:Mi},utils:{replaceTextEndOfLine:ea}}=Cc(),zi=Vf(),ta=yh(),{insertPragma:ki}=is(),ji=Ts(),oa=Cs(),Ra=Ns(),{hasFlowShorthandAnnotationComment:Ba,hasComment:la,CommentCheckFlags:La,isTheOnlyJsxElementInMarkdown:Ea,isLineComment:Xa,isNextLineEmpty:Fa,needsHardlineAfterDanglingComment:rs,hasIgnoreComment:Ui,isCallExpression:Ta,isMemberExpression:Fi,markerForIfWithoutBlockAndSameLineComment:aa}=kd(),{locStart:Un,locEnd:Gi}=Op(),ra=Od(),{printHtmlBinding:da,isVueEventBindingExpression:va}=Ps(),{printAngular:Aa}=Bl(),{printJsx:to,hasJsxIgnoreComment:Bo}=Eu(),{printFlow:Zo}=Au(),{printTypescript:Mo}=xc(),{printOptionalToken:ys,printBindExpressionCallee:bo,printTypeAnnotation:Ls,adjustClause:Qo,printRestSpread:Oo,printDefiniteToken:Ss,printDirective:nl}=vl(),{printImportDeclaration:Fs,printExportDeclaration:ml,printExportAllDeclaration:Go,printModuleSpecifier:Os}=bl(),{printTernary:fl}=Ic(),{printTemplateLiteral:sl}=Xp(),{printArray:ku}=Zl(),{printObject:Is}=Pl(),{printClass:hs,printClassMethod:Vs,printClassProperty:Ys}=Iu(),{printProperty:Gs}=Ec(),{printFunction:fu,printArrowFunction:Vl,printMethod:uc,printReturnStatement:nd,printThrowStatement:Hc}=wu(),{printCallExpression:hc}=Cu(),{printVariableDeclarator:cc,printAssignmentExpression:ul}=ec(),{printBinaryishExpression:Jo}=Cl(),{printSwitchCaseConsequent:hl}=jc(),{printMemberExpression:Ms}=xu(),{printBlock:dl,printBlockBody:Wu}=Id(),{printComment: $ e}=rp(),{printLiteral:er}=Hp(),{printDecorators:ir}=Ul();function lr(Zr,Hn,mi,ma){let io=dr(Zr,Hn,mi,ma);if(!io)return"";let gs=Zr.getValue(),{type:vs}=gs;if(vs==="ClassMethod"||vs==="ClassPrivateMethod"||vs==="ClassProperty"||vs==="ClassAccessorProperty"||vs==="AccessorProperty"||vs==="TSAbstractAccessorProperty"||vs==="PropertyDefinition"||vs==="TSAbstractPropertyDefinition"||vs==="ClassPrivateProperty"||vs==="MethodDefinition"||vs==="TSAbstractMethodDefinition"||vs==="TSDeclareMethod")return io;let xs=[io],tl=ir(Zr,Hn,mi),Kl=gs.type==="ClassExpression"&&tl;if(tl&&(xs=[...tl,io],!Kl))return ui(xs);if(!oa(Zr,Hn))return ma&&ma.needsSemi&&xs.unshift(";"),xs.length===1&&xs[0]===io?io:xs;if(Kl&&(xs=[Mi([En,...xs])]),xs.unshift("("),ma&&ma.needsSemi&&xs.unshift(";"),Ba(gs)){let[cl]=gs.trailingComments;xs.push(" /*",cl.value.trimStart(),"*/"),cl.printed=!0}return Kl&&xs.push(En),xs.push(")"),xs}function dr(Zr,Hn,mi,ma){let io=Zr.getValue(),gs=Hn.semi?";":"";if(!io)return"";if(typeof io=="string")return io;for(let xs of[er,da,Aa,to,Zo,Mo]){let tl=xs(Zr,Hn,mi);if(typeof tl<"u")return tl}let vs=[];switch(io.type){case"JsExpressionRoot":return mi("node");case"JsonRoot":return[mi("node"),xn];case"File":return io.program&&io.program.interpreter&&vs.push(mi(["program","interpreter"])),vs.push(mi("p
2024-08-21 13:12:53 +08:00
2024-08-25 11:35:35 +08:00
` :"")+vn.insertPragma(ui)}di.exports={hasPragma:Fn,insertPragma:En}}}),rh=Io({"src/language-css/utils/index.js"(Rn,di){kn();var vn=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 Vn(Is,hs){let Vs=Array.isArray(hs)?hs:[hs],Ys=-1,Gs;for(;Gs=Is.getParentNode(++Ys);)if(Vs.includes(Gs.type))return Ys;return-1}function Fn(Is,hs){let Vs=Vn(Is,hs);return Vs===-1?null:Is.getParentNode(Vs)}function En(Is){var hs;let Vs=Fn(Is,"css-decl");return Vs==null||(hs=Vs.prop)===null||hs===void 0?void 0:hs.toLowerCase()}var xn=new Set(["initial","inherit","unset","revert"]);function Nn(Is){return xn.has(Is.toLowerCase())}function ui(Is,hs){let Vs=Fn(Is,"css-atrule");return(Vs==null?void 0:Vs.name)&&Vs.name.toLowerCase().endsWith("keyframes")&&["from","to"].includes(hs.toLowerCase())}function Mi(Is){return Is.includes(" $ ")||Is.includes("@")||Is.includes("#")||Is.startsWith("%")||Is.startsWith("--")||Is.startsWith(":--")||Is.includes("(")&&Is.includes(")")?Is:Is.toLowerCase()}function ea(Is,hs){var Vs;let Ys=Fn(Is,"value-func");return(Ys==null||(Vs=Ys.value)===null||Vs===void 0?void 0:Vs.toLowerCase())===hs}function zi(Is){var hs;let Vs=Fn(Is,"css-rule"),Ys=Vs==null||(hs=Vs.raws)===null||hs===void 0?void 0:hs.selector;return Ys&&(Ys.startsWith(":import")||Ys.startsWith(":export"))}function ta(Is,hs){let Vs=Array.isArray(hs)?hs:[hs],Ys=Fn(Is,"css-atrule");return Ys&&Vs.includes(Ys.name.toLowerCase())}function ki(Is){let hs=Is.getValue(),Vs=Fn(Is,"css-atrule");return(Vs==null?void 0:Vs.name)==="import"&&hs.groups[0].value==="url"&&hs.groups.length===2}function ji(Is){return Is.type==="value-func"&&Is.value.toLowerCase()==="url"}function oa(Is,hs){var Vs;let Ys=(Vs=Is.getParentNode())===null||Vs===void 0?void 0:Vs.nodes;return Ys&&Ys.indexOf(hs)===Ys.length-1}function Ra(Is){let{selector:hs}=Is;return hs?typeof hs=="string"&&/^@.+:.* $ /.test(hs)||hs.value&&/^@.+:.* $ /.test(hs.value):!1}function Ba(Is){return Is.type==="value-word"&&["from","through","end"].includes(Is.value)}function la(Is){return Is.type==="value-word"&&["and","or","not"].includes(Is.value)}function La(Is){return Is.type==="value-word"&&Is.value==="in"}function Ea(Is){return Is.type==="value-operator"&&Is.value==="*"}function Xa(Is){return Is.type==="value-operator"&&Is.value==="/"}function Fa(Is){return Is.type==="value-operator"&&Is.value==="+"}function rs(Is){return Is.type==="value-operator"&&Is.value==="-"}function Ui(Is){return Is.type==="value-operator"&&Is.value==="%"}function Ta(Is){return Ea(Is)||Xa(Is)||Fa(Is)||rs(Is)||Ui(Is)}function Fi(Is){return Is.type==="value-word"&&["==","!="].includes(Is.value)}function aa(Is){return Is.type==="value-word"&&["<",">","<=",">="].includes(Is.value)}function Un(Is){return Is.type==="css-atrule"&&["if","else","for","each","while"].includes(Is.name)}function Gi(Is){var hs;return((hs=Is.raws)===null||hs===void 0?void 0:hs.params)&&/^ \( \s * \) $ /.test(Is.raws.params)}function ra(Is){return Is.name.startsWith("prettier-placeholder")}function da(Is){return Is.prop.startsWith("@prettier-placeholder")}function va(Is,hs){return Is.value===" $ $ "&&Is.type==="value-func"&&(hs==null?void 0:hs.type)==="value-word"&&!hs.raws.before}function Aa(Is){var hs,Vs;return((hs=Is.value)===null||hs===void 0?void 0:hs.type)==="value-root"&&((Vs=Is.value.group)===null||Vs===void 0?void 0:Vs.type)==="value-value"&&Is.prop.toLowerCase()==="composes"}function to(Is){var hs,Vs,Ys;return((hs=Is.value)===null||hs===void 0||(Vs=hs.group)===null||Vs===void 0||(Ys=Vs.group)===null||Ys===void 0?void 0:Ys.type)==="value-paren_group"&&Is.value.group.group.open!==null&&Is.value.group.group.close!==null}function Bo(Is){var hs;return((hs=Is.raws)===null||hs===void 0?void 0:hs.before)===""}function Zo(Is){var hs,Vs;return Is.type==="value-comma_group"&&((hs=Is.groups)===null||hs===void 0||(Vs=hs[1])===null||Vs===void 0?void 0:Vs.type)==="value-colon"}function Mo(Is){var hs;return Is.type==="value-paren_group"&&((hs=Is.groups)
` ,Fn)+1;return Fn+vn.column}}}),Nm=Io({"src/language-css/loc.js"(Rn,di){kn();var{skipEverythingButNewLine:vn}=km(),Vn=Rc(),Fn=of();function En(ki,ji){return typeof ki.sourceIndex=="number"?ki.sourceIndex:ki.source?Fn(ki.source.start,ji)-1:null}function xn(ki,ji){if(ki.type==="css-comment"&&ki.inline)return vn(ji,ki.source.startOffset);let oa=ki.nodes&&Vn(ki.nodes);return oa&&ki.source&&!ki.source.end&&(ki=oa),ki.source&&ki.source.end?Fn(ki.source.end,ji):null}function Nn(ki,ji){ki.source&&(ki.source.startOffset=En(ki,ji),ki.source.endOffset=xn(ki,ji));for(let oa in ki){let Ra=ki[oa];oa==="source"||!Ra||typeof Ra!="object"||(Ra.type==="value-root"||Ra.type==="value-unknown"?ui(Ra,Mi(ki),Ra.text||Ra.value):Nn(Ra,ji))}}function ui(ki,ji,oa){ki.source&&(ki.source.startOffset=En(ki,oa)+ji,ki.source.endOffset=xn(ki,oa)+ji);for(let Ra in ki){let Ba=ki[Ra];Ra==="source"||!Ba||typeof Ba!="object"||ui(Ba,ji,oa)}}function Mi(ki){let ji=ki.source.startOffset;return typeof ki.prop=="string"&&(ji+=ki.prop.length),ki.type==="css-atrule"&&typeof ki.name=="string"&&(ji+=1+ki.name.length+ki.raws.afterName.match(/^ \s *:? \s */)[0].length),ki.type!=="css-atrule"&&ki.raws&&typeof ki.raws.between=="string"&&(ji+=ki.raws.between.length),ji}function ea(ki){let ji="initial",oa="initial",Ra,Ba=!1,la=[];for(let La=0;La<ki.length;La++){let Ea=ki[La];switch(ji){case"initial":if(Ea==="'"){ji="single-quotes";continue}if(Ea==='"'){ji="double-quotes";continue}if((Ea==="u"||Ea==="U")&&ki.slice(La,La+4).toLowerCase()==="url("){ji="url",La+=3;continue}if(Ea==="*"&&ki[La-1]==="/"){ji="comment-block";continue}if(Ea==="/"&&ki[La-1]==="/"){ji="comment-inline",Ra=La-1;continue}continue;case"single-quotes":if(Ea==="'"&&ki[La-1]!==" \\ "&&(ji=oa,oa="initial"),Ea=== `
2024-08-21 13:12:53 +08:00
` ||Ea===" \r ")return ki;continue;case"double-quotes":if(Ea==='"'&&ki[La-1]!==" \\ "&&(ji=oa,oa="initial"),Ea=== `
` ||Ea===" \r ")return ki;continue;case"url":if(Ea===")"&&(ji="initial"),Ea=== `
` ||Ea===" \r ")return ki;if(Ea==="'"){ji="single-quotes",oa="url";continue}if(Ea==='"'){ji="double-quotes",oa="url";continue}continue;case"comment-block":Ea==="/"&&ki[La-1]==="*"&&(ji="initial");continue;case"comment-inline":(Ea==='"'||Ea==="'"||Ea==="*")&&(Ba=!0),(Ea=== `
2024-08-25 11:35:35 +08:00
` ||Ea===" \r ")&&(Ba&&la.push([Ra,La]),ji="initial",Ba=!1);continue}}for(let[La,Ea]of la)ki=ki.slice(0,La)+ki.slice(La,Ea).replace(/["'*]/g," ")+ki.slice(Ea);return ki}function zi(ki){return ki.source.startOffset}function ta(ki){return ki.source.endOffset}di.exports={locStart:zi,locEnd:ta,calculateLoc:Nn,replaceQuotesInInlineComments:ea}}}),Am=Io({"src/language-css/utils/is-less-parser.js"(Rn,di){kn();function vn(Vn){return Vn.parser==="css"||Vn.parser==="less"}di.exports=vn}}),Lp=Io({"src/language-css/utils/is-scss.js"(Rn,di){kn();function vn(Vn,Fn){return Vn==="less"||Vn==="scss"?Vn==="scss":/(?: \w \s *: \s *[^:}]+|#){|@import[^ \n ]+(?:url|,)/.test(Fn)}di.exports=vn}}),sf=Io({"src/language-css/utils/css-units.evaluate.js"(Rn,di){di.exports={em:"em",rem:"rem",ex:"ex",rex:"rex",cap:"cap",rcap:"rcap",ch:"ch",rch:"rch",ic:"ic",ric:"ric",lh:"lh",rlh:"rlh",vw:"vw",svw:"svw",lvw:"lvw",dvw:"dvw",vh:"vh",svh:"svh",lvh:"lvh",dvh:"dvh",vi:"vi",svi:"svi",lvi:"lvi",dvi:"dvi",vb:"vb",svb:"svb",lvb:"lvb",dvb:"dvb",vmin:"vmin",svmin:"svmin",lvmin:"lvmin",dvmin:"dvmin",vmax:"vmax",svmax:"svmax",lvmax:"lvmax",dvmax:"dvmax",cm:"cm",mm:"mm",q:"Q",in:"in",pt:"pt",pc:"pc",px:"px",deg:"deg",grad:"grad",rad:"rad",turn:"turn",s:"s",ms:"ms",hz:"Hz",khz:"kHz",dpi:"dpi",dpcm:"dpcm",dppx:"dppx",x:"x"}}}),Jf=Io({"src/language-css/utils/print-unit.js"(Rn,di){kn();var vn=sf();function Vn(Fn){let En=Fn.toLowerCase();return Object.prototype.hasOwnProperty.call(vn,En)?vn[En]:Fn}di.exports=Vn}}),cm=Io({"src/language-css/printer-postcss.js"(Rn,di){kn();var vn=Rc(),{printNumber:Vn,printString:Fn,hasNewline:En,isFrontMatterNode:xn,isNextLineEmpty:Nn,isNonEmptyArray:ui}=Wc(),{builders:{join:Mi,line:ea,hardline:zi,softline:ta,group:ki,fill:ji,indent:oa,dedent:Ra,ifBreak:Ba,breakParent:la},utils:{removeLines:La,getDocParts:Ea}}=Cc(),Xa=Hd(),Fa=zd(),{insertPragma:rs}=Hf(),{getAncestorNode:Ui,getPropOfDeclNode:Ta,maybeToLowerCase:Fi,insideValueFunctionNode:aa,insideICSSRuleNode:Un,insideAtRuleNode:Gi,insideURLFunctionInImportAtRuleNode:ra,isKeyframeAtRuleKeywords:da,isWideKeywords:va,isLastNode:Aa,isSCSSControlDirectiveNode:to,isDetachedRulesetDeclarationNode:Bo,isRelationalOperatorNode:Zo,isEqualityOperatorNode:Mo,isMultiplicationNode:ys,isDivisionNode:bo,isAdditionNode:Ls,isSubtractionNode:Qo,isMathOperatorNode:Oo,isEachKeywordNode:Ss,isForKeywordNode:nl,isURLFunctionNode:Fs,isIfElseKeywordNode:ml,hasComposesNode:Go,hasParensAroundNode:Os,hasEmptyRawBefore:fl,isKeyValuePairNode:sl,isKeyInValuePairNode:ku,isDetachedRulesetCallNode:Is,isTemplatePlaceholderNode:hs,isTemplatePropNode:Vs,isPostcssSimpleVarNode:Ys,isSCSSMapItemNode:Gs,isInlineValueCommentNode:fu,isHashNode:Vl,isLeftCurlyBraceNode:uc,isRightCurlyBraceNode:nd,isWordNode:Hc,isColonNode:hc,isMediaAndSupportsKeywords:cc,isColorAdjusterFuncNode:ul,lastLineHasInlineComment:Jo,isAtWordPlaceholderNode:hl,isConfigurationNode:Ms,isParenGroupNode:dl}=rh(),{locStart:Wu,locEnd: $ e}=Nm(),er=Am(),ir=Lp(),lr=Jf();function dr(cl){return cl.trailingComma==="es5"||cl.trailingComma==="all"}function $ r(cl,hu,vu){let Es=cl.getValue();if(!Es)return"";if(typeof Es=="string")return Es;switch(Es.type){case"front-matter":return[Es.raw,zi];case"css-root":{let Fu=Zr(cl,hu,vu),fc=Es.raws.after.trim();return fc.startsWith(";")&&(fc=fc.slice(1).trim()),[Fu,fc? ` $ { fc } ` :"",Ea(Fu).length>0?zi:""]}case"css-comment":{let Fu=Es.inline||Es.raws.inline,fc=hu.originalText.slice(Wu(Es), $ e(Es));return Fu?fc.trimEnd():fc}case"css-rule":return[vu("selector"),Es.important?" !important":"",Es.nodes?[Es.selector&&Es.selector.type==="selector-unknown"&&Jo(Es.selector.value)?ea:" ","{",Es.nodes.length>0?oa([zi,Zr(cl,hu,vu)]):"",zi,"}",Bo(Es)?";":""]:";"];case"css-decl":{let Fu=cl.getParentNode(),{between:fc}=Es.raws,qc=fc.trim(),Gd=qc===":",co=Go(Es)?La(vu("value")):vu("value");return!Gd&&Jo(qc)&&(co=oa([zi,Ra(co)])),[Es.raws.before.replace(/[ \s ;]/g,""),Fu.type==="css-atrule"&&Fu.variable||Un(cl)?Es.prop:Fi(Es.prop),qc.startsWith("//")?" ":"",qc,Es.extend?"":" ",er(hu)&&Es.extend&&Es.selector?["extend(",vu("selector"),")"]:"",co,Es.raws.important?Es.raws.i
` ).length-1}function Ys(Jo){Jo=typeof Jo=="string"?Jo:"";let hl=(Jo.match(/^([^ \S \n \r ]*[ \n \r ])+/g)||[])[0]||"";return Vs(hl)}function Gs(Jo){Jo=typeof Jo=="string"?Jo:"";let hl=(Jo.match(/([ \n \r ][^ \S \n \r ]*)+ $ /g)||[])[0]||"";return Vs(hl)}function fu(){let Jo=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;return Array.from({length:Math.min(Jo,Un)}).fill(En)}function Vl(Jo,hl){let{quote:Ms,regex:dl}=ki(Jo,hl);return[Ms,Jo.replace(dl, ` \ \ $ { Ms } ` ),Ms]}function uc(Jo){let hl=0,Ms=Jo.getParentNode(hl);for(;Ms&&rs(Ms,["SubExpression"]);)hl++,Ms=Jo.getParentNode(hl);return!!(Ms&&rs(Jo.getParentNode(hl+1),["ConcatStatement"])&&rs(Jo.getParentNode(hl+2),["AttrNode"]))}function nd(Jo,hl){let Ms=hc(Jo,hl),dl=cc(Jo,hl);return dl?Nn([Ms,Mi,Fn(dl)]):Ms}function Hc(Jo,hl){let Ms=hc(Jo,hl),dl=cc(Jo,hl);return dl?[Nn([Ms,Mi,dl]),ea]:Ms}function hc(Jo,hl){return hl("path")}function cc(Jo,hl){let Ms=Jo.getValue(),dl=[];if(Ms.params.length>0){let Wu=Jo.map(hl,"params");dl.push(...Wu)}if(Ms.hash&&Ms.hash.pairs.length>0){let Wu=hl("hash");dl.push(Wu)}return dl.length===0?"":ui(Mi,dl)}function ul(Jo){return["as |",Jo.blockParams.join(" "),"|"]}di.exports={print:Gi,massageAstNode:Ba}}}),_o=Io({"src/language-handlebars/parsers.js"(){kn()}}),ro=Io({"node_modules/linguist-languages/data/Handlebars.json"(Rn,di){di.exports={name:"Handlebars",type:"markup",color:"#f7931e",aliases:["hbs","htmlbars"],extensions:[".handlebars",".hbs"],tmScope:"text.html.handlebars",aceMode:"handlebars",languageId:155}}}),vo=Io({"src/language-handlebars/index.js"(Rn,di){kn();var vn=Ff(),Vn=Ha(),Fn=_o(),En=[vn(ro(),()=>({since:"2.3.0",parsers:["glimmer"],vscodeLanguageIds:["handlebars"]}))],xn={glimmer:Vn};di.exports={languages:En,printers:xn,parsers:Fn}}}),za=Io({"src/language-graphql/pragma.js"(Rn,di){kn();function vn(Fn){return/^ \s *#[^ \S \n ]*@(?:format|prettier) \s *(?: \n | $ )/.test(Fn)}function Vn(Fn){return ` # @ format
2024-08-21 13:12:53 +08:00
2024-08-25 11:35:35 +08:00
` +Fn}di.exports={hasPragma:vn,insertPragma:Vn}}}),fo=Io({"src/language-graphql/loc.js"(Rn,di){kn();function vn(Fn){return typeof Fn.start=="number"?Fn.start:Fn.loc&&Fn.loc.start}function Vn(Fn){return typeof Fn.end=="number"?Fn.end:Fn.loc&&Fn.loc.end}di.exports={locStart:vn,locEnd:Vn}}}),zn=Io({"src/language-graphql/printer-graphql.js"(Rn,di){kn();var{builders:{join:vn,hardline:Vn,line:Fn,softline:En,group:xn,indent:Nn,ifBreak:ui}}=Cc(),{isNextLineEmpty:Mi,isNonEmptyArray:ea}=Wc(),{insertPragma:zi}=za(),{locStart:ta,locEnd:ki}=fo();function ji(Fa,rs,Ui){let Ta=Fa.getValue();if(!Ta)return"";if(typeof Ta=="string")return Ta;switch(Ta.kind){case"Document":{let Fi=[];return Fa.each((aa,Un,Gi)=>{Fi.push(Ui()),Un!==Gi.length-1&&(Fi.push(Vn),Mi(rs.originalText,aa.getValue(),ki)&&Fi.push(Vn))},"definitions"),[...Fi,Vn]}case"OperationDefinition":{let Fi=rs.originalText[ta(Ta)]!=="{",aa=!!Ta.name;return[Fi?Ta.operation:"",Fi&&aa?[" ",Ui("name")]:"",Fi&&!aa&&ea(Ta.variableDefinitions)?" ":"",ea(Ta.variableDefinitions)?xn(["(",Nn([En,vn([ui("",", "),En],Fa.map(Ui,"variableDefinitions"))]),En,")"]):"",oa(Fa,Ui,Ta),Ta.selectionSet?!Fi&&!aa?"":" ":"",Ui("selectionSet")]}case"FragmentDefinition":return["fragment ",Ui("name"),ea(Ta.variableDefinitions)?xn(["(",Nn([En,vn([ui("",", "),En],Fa.map(Ui,"variableDefinitions"))]),En,")"]):""," on ",Ui("typeCondition"),oa(Fa,Ui,Ta)," ",Ui("selectionSet")];case"SelectionSet":return["{",Nn([Vn,vn(Vn,Ra(Fa,rs,Ui,"selections"))]),Vn,"}"];case"Field":return xn([Ta.alias?[Ui("alias"),": "]:"",Ui("name"),Ta.arguments.length>0?xn(["(",Nn([En,vn([ui("",", "),En],Ra(Fa,rs,Ui,"arguments"))]),En,")"]):"",oa(Fa,Ui,Ta),Ta.selectionSet?" ":"",Ui("selectionSet")]);case"Name":return Ta.value;case"StringValue":{if(Ta.block){let Fi=Ta.value.replace(/"""/g," \\ $ &").split( `
` );return Fi.length===1&&(Fi[0]=Fi[0].trim()),Fi.every(aa=>aa==="")&&(Fi.length=0),vn(Vn,['"""',...Fi,'"""'])}return['"',Ta.value.replace(/[" \\ ]/g," \\ $ &").replace(/ \n /g," \\ n"),'"']}case"IntValue":case"FloatValue":case"EnumValue":return Ta.value;case"BooleanValue":return Ta.value?"true":"false";case"NullValue":return"null";case"Variable":return[" $ ",Ui("name")];case"ListValue":return xn(["[",Nn([En,vn([ui("",", "),En],Fa.map(Ui,"values"))]),En,"]"]);case"ObjectValue":return xn(["{",rs.bracketSpacing&&Ta.fields.length>0?" ":"",Nn([En,vn([ui("",", "),En],Fa.map(Ui,"fields"))]),En,ui("",rs.bracketSpacing&&Ta.fields.length>0?" ":""),"}"]);case"ObjectField":case"Argument":return[Ui("name"),": ",Ui("value")];case"Directive":return["@",Ui("name"),Ta.arguments.length>0?xn(["(",Nn([En,vn([ui("",", "),En],Ra(Fa,rs,Ui,"arguments"))]),En,")"]):""];case"NamedType":return Ui("name");case"VariableDefinition":return[Ui("variable"),": ",Ui("type"),Ta.defaultValue?[" = ",Ui("defaultValue")]:"",oa(Fa,Ui,Ta)];case"ObjectTypeExtension":case"ObjectTypeDefinition":return[Ui("description"),Ta.description?Vn:"",Ta.kind==="ObjectTypeExtension"?"extend ":"","type ",Ui("name"),Ta.interfaces.length>0?[" implements ",...La(Fa,rs,Ui)]:"",oa(Fa,Ui,Ta),Ta.fields.length>0?[" {",Nn([Vn,vn(Vn,Ra(Fa,rs,Ui,"fields"))]),Vn,"}"]:""];case"FieldDefinition":return[Ui("description"),Ta.description?Vn:"",Ui("name"),Ta.arguments.length>0?xn(["(",Nn([En,vn([ui("",", "),En],Ra(Fa,rs,Ui,"arguments"))]),En,")"]):"",": ",Ui("type"),oa(Fa,Ui,Ta)];case"DirectiveDefinition":return[Ui("description"),Ta.description?Vn:"","directive ","@",Ui("name"),Ta.arguments.length>0?xn(["(",Nn([En,vn([ui("",", "),En],Ra(Fa,rs,Ui,"arguments"))]),En,")"]):"",Ta.repeatable?" repeatable":""," on ",vn(" | ",Fa.map(Ui,"locations"))];case"EnumTypeExtension":case"EnumTypeDefinition":return[Ui("description"),Ta.description?Vn:"",Ta.kind==="EnumTypeExtension"?"extend ":"","enum ",Ui("name"),oa(Fa,Ui,Ta),Ta.values.length>0?[" {",Nn([Vn,vn(Vn,Ra(Fa,rs,Ui,"values"))]),Vn,"}"]:""];case"EnumValueDefinition":return[Ui("description"),Ta.description?Vn:"",Ui("name"),oa(Fa,Ui,Ta)];case"InputValueDefinition":return[Ui("description"),Ta.description?Ta.description.block?Vn:Fn:"",Ui("name"),": ",Ui("type"),Ta.defaultValue?[" = ",Ui("defaultValue")]:"",oa(Fa,Ui,Ta)];case"InputObjectTypeExtension":case"InputObjectTypeDefinition":return[Ui("description"),Ta.description?Vn:"",Ta.kind==="InputObjectTypeExtension"?"extend ":"","input ",Ui("name"),oa(Fa,Ui,Ta),Ta.fields.length>0?[" {",Nn([Vn,vn(Vn,Ra(Fa,rs,Ui,"fields"))]),Vn,"}"]:""];case"SchemaExtension":return["extend schema",oa(Fa,Ui,Ta),...Ta.operationTypes.length>0?[" {",Nn([Vn,vn(Vn,Ra(Fa,rs,Ui,"operationTypes"))]),Vn,"}"]:[]];case"SchemaDefinition":return[Ui("description"),Ta.description?Vn:"","schema",oa(Fa,Ui,Ta)," {",Ta.operationTypes.length>0?Nn([Vn,vn(Vn,Ra(Fa,rs,Ui,"operationTypes"))]):"",Vn,"}"];case"OperationTypeDefinition":return[Ui("operation"),": ",Ui("type")];case"InterfaceTypeExtension":case"InterfaceTypeDefinition":return[Ui("description"),Ta.description?Vn:"",Ta.kind==="InterfaceTypeExtension"?"extend ":"","interface ",Ui("name"),Ta.interfaces.length>0?[" implements ",...La(Fa,rs,Ui)]:"",oa(Fa,Ui,Ta),Ta.fields.length>0?[" {",Nn([Vn,vn(Vn,Ra(Fa,rs,Ui,"fields"))]),Vn,"}"]:""];case"FragmentSpread":return["...",Ui("name"),oa(Fa,Ui,Ta)];case"InlineFragment":return["...",Ta.typeCondition?[" on ",Ui("typeCondition")]:"",oa(Fa,Ui,Ta)," ",Ui("selectionSet")];case"UnionTypeExtension":case"UnionTypeDefinition":return xn([Ui("description"),Ta.description?Vn:"",xn([Ta.kind==="UnionTypeExtension"?"extend ":"","union ",Ui("name"),oa(Fa,Ui,Ta),Ta.types.length>0?[" =",ui(""," "),Nn([ui([Fn," "]),vn([Fn,"| "],Fa.map(Ui,"types"))])]:""])]);case"ScalarTypeExtension":case"ScalarTypeDefinition":return[Ui("description"),Ta.description?Vn:"",Ta.kind==="ScalarTypeExtension"?"extend ":"","scalar ",Ui("name"),oa(Fa,Ui,Ta)];case"NonNullType":return[Ui("type"),"!"];case"ListType":return["[",Ui("type"),"]"];default:throw new Error("unknown graphql type: "+JSON.stringify(Ta.ki
` )&&(rs.value=rs.value.trim())}Ea.ignoredProperties=new Set(["loc","comments"]);function Xa(Fa){var rs;let Ui=Fa.getValue();return Ui==null||(rs=Ui.comments)===null||rs===void 0?void 0:rs.some(Ta=>Ta.value.trim()==="prettier-ignore")}di.exports={print:ji,massageAstNode:Ea,hasPrettierIgnore:Xa,insertPragma:zi,printComment:la,canAttachComment:Ba}}}),Sn=Io({"src/language-graphql/options.js"(Rn,di){kn();var vn=Xc();di.exports={bracketSpacing:vn.bracketSpacing}}}),ka=Io({"src/language-graphql/parsers.js"(){kn()}}),fa=Io({"node_modules/linguist-languages/data/GraphQL.json"(Rn,di){di.exports={name:"GraphQL",type:"data",color:"#e10098",extensions:[".graphql",".gql",".graphqls"],tmScope:"source.graphql",aceMode:"text",languageId:139}}}),ko=Io({"src/language-graphql/index.js"(Rn,di){kn();var vn=Ff(),Vn=zn(),Fn=Sn(),En=ka(),xn=[vn(fa(),()=>({since:"1.5.0",parsers:["graphql"],vscodeLanguageIds:["graphql"]}))],Nn={graphql:Vn};di.exports={languages:xn,options:Fn,printers:Nn,parsers:En}}}),xo=Io({"node_modules/collapse-white-space/index.js"(Rn,di){kn(),di.exports=vn;function vn(Vn){return String(Vn).replace(/ \s +/g," ")}}}),cs=Io({"src/language-markdown/loc.js"(Rn,di){kn();function vn(Fn){return Fn.position.start.offset}function Vn(Fn){return Fn.position.end.offset}di.exports={locStart:vn,locEnd:Vn}}}),ss=Io({"src/language-markdown/constants.evaluate.js"(Rn,di){di.exports={cjkPattern:"(?:[ \\ u02ea- \\ u02eb \\ u1100- \\ u11ff \\ u2e80- \\ u2e99 \\ u2e9b- \\ u2ef3 \\ u2f00- \\ u2fd5 \\ u2ff0- \\ u303f \\ u3041- \\ u3096 \\ u3099- \\ u309f \\ u30a1- \\ u30fa \\ u30fc- \\ u30ff \\ u3105- \\ u312f \\ u3131- \\ u318e \\ u3190- \\ u3191 \\ u3196- \\ u31ba \\ u31c0- \\ u31e3 \\ u31f0- \\ u321e \\ u322a- \\ u3247 \\ u3260- \\ u327e \\ u328a- \\ u32b0 \\ u32c0- \\ u32cb \\ u32d0- \\ u3370 \\ u337b- \\ u337f \\ u33e0- \\ u33fe \\ u3400- \\ u4db5 \\ u4e00- \\ u9fef \\ ua960- \\ ua97c \\ uac00- \\ ud7a3 \\ ud7b0- \\ ud7c6 \\ ud7cb- \\ ud7fb \\ uf900- \\ ufa6d \\ ufa70- \\ ufad9 \\ ufe10- \\ ufe1f \\ ufe30- \\ ufe6f \\ uff00- \\ uffef]|[ \\ ud840- \\ ud868 \\ ud86a- \\ ud86c \\ ud86f- \\ ud872 \\ ud874- \\ ud879][ \\ udc00- \\ udfff]| \\ ud82c[ \\ udc00- \\ udd1e \\ udd50- \\ udd52 \\ udd64- \\ udd67]| \\ ud83c[ \\ ude00 \\ ude50- \\ ude51]| \\ ud869[ \\ udc00- \\ uded6 \\ udf00- \\ udfff]| \\ ud86d[ \\ udc00- \\ udf34 \\ udf40- \\ udfff]| \\ ud86e[ \\ udc00- \\ udc1d \\ udc20- \\ udfff]| \\ ud873[ \\ udc00- \\ udea1 \\ udeb0- \\ udfff]| \\ ud87a[ \\ udc00- \\ udfe0]| \\ ud87e[ \\ udc00- \\ ude1d])(?:[ \\ ufe00- \\ ufe0f]| \\ udb40[ \\ udd00- \\ uddef])?",kPattern:"[ \\ u1100- \\ u11ff \\ u3001- \\ u3003 \\ u3008- \\ u3011 \\ u3013- \\ u301f \\ u302e- \\ u3030 \\ u3037 \\ u30fb \\ u3131- \\ u318e \\ u3200- \\ u321e \\ u3260- \\ u327e \\ ua960- \\ ua97c \\ uac00- \\ ud7a3 \\ ud7b0- \\ ud7c6 \\ ud7cb- \\ ud7fb \\ ufe45- \\ ufe46 \\ uff61- \\ uff65 \\ uffa0- \\ uffbe \\ uffc2- \\ uffc7 \\ uffca- \\ uffcf \\ uffd2- \\ uffd7 \\ uffda- \\ uffdc]",punctuationPattern:"[ \\ u0021- \\ u002f \\ u003a- \\ u0040 \\ u005b- \\ u0060 \\ u007b- \\ u007e \\ u00a1 \\ u00a7 \\ u00ab \\ u00b6- \\ u00b7 \\ u00bb \\ u00bf \\ u037e \\ u0387 \\ u055a- \\ u055f \\ u0589- \\ u058a \\ u05be \\ u05c0 \\ u05c3 \\ u05c6 \\ u05f3- \\ u05f4 \\ u0609- \\ u060a \\ u060c- \\ u060d \\ u061b \\ u061e- \\ u061f \\ u066a- \\ u066d \\ u06d4 \\ u0700- \\ u070d \\ u07f7- \\ u07f9 \\ u0830- \\ u083e \\ u085e \\ u0964- \\ u0965 \\ u0970 \\ u09fd \\ u0a76 \\ u0af0 \\ u0c77 \\ u0c84 \\ u0df4 \\ u0e4f \\ u0e5a- \\ u0e5b \\ u0f04- \\ u0f12 \\ u0f14 \\ u0f3a- \\ u0f3d \\ u0f85 \\ u0fd0- \\ u0fd4 \\ u0fd9- \\ u0fda \\ u104a- \\ u104f \\ u10fb \\ u1360- \\ u1368 \\ u1400 \\ u166e \\ u169b- \\ u169c \\ u16eb- \\ u16ed \\ u1735- \\ u1736 \\ u17d4- \\ u17d6 \\ u17d8- \\ u17da \\ u1800- \\ u180a \\ u1944- \\ u1945 \\ u1a1e- \\ u1a1f \\ u1aa0- \\ u1aa6 \\ u1aa8- \\ u1aad \\ u1b5a- \\ u1b60 \\ u1bfc- \\ u1bff \\ u1c3b- \\ u1c3f \\ u1c7e- \\ u1c7f \\ u1cc0- \\ u1cc7 \\ u1cd3 \\ u2010- \\ u2027 \\ u2030- \\ u2043 \\ u2045- \\ u2051 \\ u2053- \\ u205e \\ u207d- \\ u207e \\ u208d- \\ u208e \\ u2308- \\ u230b \\ u2329- \\ u232a \\ u2768- \\ u2775 \\ u27c5- \\ u27c6 \\ u27e6- \\ u27ef \\ u2983- \\ u2998 \\ u29d8- \\ u29db \\ u29fc- \\ u29fd \\ u2cf9- \\ u2cfc \\ u2cfe- \\ u2cff \\ u2d70 \\ u2e00- \\ u2e2e \\ u2e30- \\ u2e4f \\ u3001- \\ u3003 \\ u3008- \\ u3011 \\ u3014- \\ u301f \\ u3030 \\ u303d \\ u30a0 \\ u30fb \\ ua4fe- \\ ua4ff \\ ua60d- \\ ua60f \\ ua673 \\ ua67e \\ ua6f2- \\ ua6f7 \\ ua874- \\ ua877 \\ ua8ce- \\ ua8cf \\ ua8f8- \\ ua8fa \\ ua8fc \\ ua92e- \\ ua92f \\ ua95f \\ ua9c1- \\ ua9cd \\ ua9de- \\ ua9df \\ uaa5c- \\ uaa5f \\ uaade- \\ uaadf \\ uaaf0- \\ uaaf1 \\ uabeb \\ ufd3e- \\ ufd3f \\ ufe10- \\ ufe19 \\ ufe30- \\ ufe52 \\ ufe54- \\ ufe61 \\ ufe63 \\ ufe68 \\ ufe6a- \\ ufe6b \\ uff01
2024-08-21 13:12:53 +08:00
( $ { En } ) ` ,"g")," $ 1 $ 2")).split(/([ \t \n ]+)/);for(let[aa,Un]of Ta.entries()){if(aa%2===1){Ui.push({type:"whitespace",value:/ \n /.test(Un)? `
2024-08-25 11:35:35 +08:00
` :" "});continue}if((aa===0||aa===Ta.length-1)&&Un==="")continue;let Gi=Un.split(new RegExp( ` ( $ { En } ) ` ));for(let[ra,da]of Gi.entries())if(!((ra===0||ra===Gi.length-1)&&da==="")){if(ra%2===0){da!==""&&Fi({type:"word",value:da,kind:Ea,hasLeadingPunctuation:zi.test(da[0]),hasTrailingPunctuation:zi.test(vn(da))});continue}Fi(zi.test(da)?{type:"word",value:da,kind:rs,hasLeadingPunctuation:!0,hasTrailingPunctuation:!0}:{type:"word",value:da,kind:ea.test(da)?Fa:Xa,hasLeadingPunctuation:!1,hasTrailingPunctuation:!1})}}return Ui;function Fi(aa){let Un=vn(Ui);Un&&Un.type==="word"&&(Un.kind===Ea&&aa.kind===Xa&&!Un.hasTrailingPunctuation||Un.kind===Xa&&aa.kind===Ea&&!aa.hasLeadingPunctuation?Ui.push({type:"whitespace",value:" "}):!Gi(Ea,rs)&&![Un.value,aa.value].some(ra=>/ \u 3000/.test(ra))&&Ui.push({type:"whitespace",value:""})),Ui.push(aa);function Gi(ra,da){return Un.kind===ra&&aa.kind===da||Un.kind===da&&aa.kind===ra}}}function ki(la,La){let[,Ea,Xa,Fa]=La.slice(la.position.start.offset,la.position.end.offset).match(/^ \s *( \d +)( \. | \) )( \s *)/);return{numberText:Ea,marker:Xa,leadingSpaces:Fa}}function ji(la,La){if(!la.ordered||la.children.length<2)return!1;let Ea=Number(ki(la.children[0],La.originalText).numberText),Xa=Number(ki(la.children[1],La.originalText).numberText);if(Ea===0&&la.children.length>2){let Fa=Number(ki(la.children[2],La.originalText).numberText);return Xa===1&&Fa===1}return Xa===1}function oa(la,La){let{value:Ea}=la;return la.position.end.offset===La.length&&Ea.endsWith( `
2024-08-21 13:12:53 +08:00
` )&&La.endsWith( `
2024-08-25 11:35:35 +08:00
` )?Ea.slice(0,-1):Ea}function Ra(la,La){return function Ea(Xa,Fa,rs){let Ui=Object.assign({},La(Xa,Fa,rs));return Ui.children&&(Ui.children=Ui.children.map((Ta,Fi)=>Ea(Ta,Fi,[Ui,...rs]))),Ui}(la,null,[])}function Ba(la){if((la==null?void 0:la.type)!=="link"||la.children.length!==1)return!1;let[La]=la.children;return Vn(la)===Vn(La)&&Fn(la)===Fn(La)}di.exports={mapAst:Ra,splitText:ta,punctuationPattern:Nn,getFencedCodeBlockValue:oa,getOrderedListItemInfo:ki,hasGitDiffFriendlyOrderedList:ji,INLINE_NODE_TYPES:ui,INLINE_NODE_WRAPPER_TYPES:Mi,isAutolink:Ba}}}),Us=Io({"src/language-markdown/embed.js"(Rn,di){kn();var{inferParserByLanguage:vn,getMaxContinuousCount:Vn}=Wc(),{builders:{hardline:Fn,markAsRoot:En},utils:{replaceEndOfLine:xn}}=Cc(),Nn=ed(),{getFencedCodeBlockValue:ui}=No();function Mi(ea,zi,ta,ki){let ji=ea.getValue();if(ji.type==="code"&&ji.lang!==null){let oa=vn(ji.lang,ki);if(oa){let Ra=ki.__inJsTemplate?"~":" ` ",Ba=Ra.repeat(Math.max(3,Vn(ji.value,Ra)+1)),la={parser:oa};ji.lang===" tsx "&&(la.filepath=" dummy . tsx ");let La=ta(ui(ji,ki.originalText),la,{stripTrailingHardline:!0});return En([Ba,ji.lang,ji.meta?" "+ji.meta:" ",Fn,xn(La),Fn,Ba])}}switch(ji.type){case" front - matter ":return Nn(ji,ta);case" importExport ":return[ta(ji.value,{parser:" babel "},{stripTrailingHardline:!0}),Fn];case" jsx ":return ta(`<$>${ji.value}</$>`,{parser:" _ _js _expression ",rootMarker:" mdx "},{stripTrailingHardline:!0})}return null}di.exports=Mi}}),Ws=Io({" src / language - markdown / pragma . js "(Rn,di){kn();var vn=Ip(),Vn=[" format "," prettier "];function Fn(En){let xn=`@(${Vn.join(" | " ) } ) ` ,Nn=new RegExp([ ` <!-- \ \ s * $ { xn } \ \ s * -- > ` , ` { \ \ s * \ \ / \ \ * \ \ s * $ { xn } \ \ s * \ \ * \ \ / \ \ s * } ` , ` <!-- . * \ r ?
2024-08-21 13:12:53 +08:00
[ \ \ s \ \ S ] * ( ^ |
) [ ^ \ \ S
] * $ { xn } [ ^ \ \ S
] * ( $ |
) [ \ \ s \ \ S ] *
. * -- > ` ].join("|"),"m"),ui=En.match(Nn);return(ui==null?void 0:ui.index)===0}di.exports={startWithPragma:Fn,hasPragma:En=>Fn(vn(En).content.trimStart()),insertPragma:En=>{let xn=vn(En),Nn= ` <!-- @ $ { Vn [ 0 ] } -- > ` ;return xn.frontMatter? ` $ { xn . frontMatter . raw }
$ { Nn }
$ { xn . content } ` : ` $ { Nn }
2024-08-25 11:35:35 +08:00
$ { xn . content } ` }}}}),al=Io({"src/language-markdown/print-preprocess.js"(Rn,di){kn();var vn=Rc(),{getOrderedListItemInfo:Vn,mapAst:Fn,splitText:En}=No(),xn=/^. $ /su;function Nn(Ba,la){return Ba=ea(Ba,la),Ba=ki(Ba),Ba=Mi(Ba,la),Ba=oa(Ba,la),Ba=Ra(Ba,la),Ba=ji(Ba,la),Ba=ui(Ba),Ba=zi(Ba),Ba}function ui(Ba){return Fn(Ba,la=>la.type!=="import"&&la.type!=="export"?la:Object.assign(Object.assign({},la),{},{type:"importExport"}))}function Mi(Ba,la){return Fn(Ba,La=>La.type!=="inlineCode"||la.proseWrap==="preserve"?La:Object.assign(Object.assign({},La),{},{value:La.value.replace(/ \s +/g," ")}))}function ea(Ba,la){return Fn(Ba,La=>La.type!=="text"||La.value==="*"||La.value==="_"||!xn.test(La.value)||La.position.end.offset-La.position.start.offset===La.value.length?La:Object.assign(Object.assign({},La),{},{value:la.originalText.slice(La.position.start.offset,La.position.end.offset)}))}function zi(Ba){return ta(Ba,(la,La)=>la.type==="importExport"&&La.type==="importExport",(la,La)=>({type:"importExport",value:la.value+ `
2024-08-21 13:12:53 +08:00
2024-08-25 11:35:35 +08:00
` +La.value,position:{start:la.position.start,end:La.position.end}}))}function ta(Ba,la,La){return Fn(Ba,Ea=>{if(!Ea.children)return Ea;let Xa=Ea.children.reduce((Fa,rs)=>{let Ui=vn(Fa);return Ui&&la(Ui,rs)?Fa.splice(-1,1,La(Ui,rs)):Fa.push(rs),Fa},[]);return Object.assign(Object.assign({},Ea),{},{children:Xa})})}function ki(Ba){return ta(Ba,(la,La)=>la.type==="text"&&La.type==="text",(la,La)=>({type:"text",value:la.value+La.value,position:{start:la.position.start,end:La.position.end}}))}function ji(Ba,la){return Fn(Ba,(La,Ea,Xa)=>{let[Fa]=Xa;if(La.type!=="text")return La;let{value:rs}=La;return Fa.type==="paragraph"&&(Ea===0&&(rs=rs.trimStart()),Ea===Fa.children.length-1&&(rs=rs.trimEnd())),{type:"sentence",position:La.position,children:En(rs,la)}})}function oa(Ba,la){return Fn(Ba,(La,Ea,Xa)=>{if(La.type==="code"){let Fa=/^ \n ?(?: {4,}| \t )/.test(la.originalText.slice(La.position.start.offset,La.position.end.offset));if(La.isIndented=Fa,Fa)for(let rs=0;rs<Xa.length;rs++){let Ui=Xa[rs];if(Ui.hasIndentedCodeblock)break;Ui.type==="list"&&(Ui.hasIndentedCodeblock=!0)}}return La})}function Ra(Ba,la){return Fn(Ba,(Xa,Fa,rs)=>{if(Xa.type==="list"&&Xa.children.length>0){for(let Ui=0;Ui<rs.length;Ui++){let Ta=rs[Ui];if(Ta.type==="list"&&!Ta.isAligned)return Xa.isAligned=!1,Xa}Xa.isAligned=Ea(Xa)}return Xa});function La(Xa){return Xa.children.length===0?-1:Xa.children[0].position.start.column-1}function Ea(Xa){if(!Xa.ordered)return!0;let[Fa,rs]=Xa.children;if(Vn(Fa,la.originalText).leadingSpaces.length>1)return!0;let Ui=La(Fa);if(Ui===-1)return!1;if(Xa.children.length===1)return Ui%la.tabWidth===0;let Ta=La(rs);return Ui!==Ta?!1:Ui%la.tabWidth===0?!0:Vn(rs,la.originalText).leadingSpaces.length>1}}di.exports=Nn}}),Du=Io({"src/language-markdown/clean.js"(Rn,di){kn();var vn=xo(),{isFrontMatterNode:Vn}=Wc(),{startWithPragma:Fn}=Ws(),En=new Set(["position","raw"]);function xn(Nn,ui,Mi){if((Nn.type==="front-matter"||Nn.type==="code"||Nn.type==="yaml"||Nn.type==="import"||Nn.type==="export"||Nn.type==="jsx")&&delete ui.value,Nn.type==="list"&&delete ui.isAligned,(Nn.type==="list"||Nn.type==="listItem")&&(delete ui.spread,delete ui.loose),Nn.type==="text"||(Nn.type==="inlineCode"&&(ui.value=Nn.value.replace(/[ \t \n ]+/g," ")),Nn.type==="wikiLink"&&(ui.value=Nn.value.trim().replace(/[ \t \n ]+/g," ")),(Nn.type==="definition"||Nn.type==="linkReference"||Nn.type==="imageReference")&&(ui.label=vn(Nn.label)),(Nn.type==="definition"||Nn.type==="link"||Nn.type==="image")&&Nn.title&&(ui.title=Nn.title.replace(/ \\ (["')])/g," $ 1")),Mi&&Mi.type==="root"&&Mi.children.length>0&&(Mi.children[0]===Nn||Vn(Mi.children[0])&&Mi.children[1]===Nn)&&Nn.type==="html"&&Fn(Nn.value)))return null}xn.ignoredProperties=En,di.exports=xn}}),Ku=Io({"src/language-markdown/printer-markdown.js"(Rn,di){kn();var vn=xo(),{getLast:Vn,getMinNotPresentContinuousCount:Fn,getMaxContinuousCount:En,getStringWidth:xn,isNonEmptyArray:Nn}=Wc(),{builders:{breakParent:ui,join:Mi,line:ea,literalline:zi,markAsRoot:ta,hardline:ki,softline:ji,ifBreak:oa,fill:Ra,align:Ba,indent:la,group:La,hardlineWithoutBreakParent:Ea},utils:{normalizeDoc:Xa,replaceTextEndOfLine:Fa},printer:{printDocToString:rs}}=Cc(),Ui=Us(),{insertPragma:Ta}=Ws(),{locStart:Fi,locEnd:aa}=cs(),Un=al(),Gi=Du(),{getFencedCodeBlockValue:ra,hasGitDiffFriendlyOrderedList:da,splitText:va,punctuationPattern:Aa,INLINE_NODE_TYPES:to,INLINE_NODE_WRAPPER_TYPES:Bo,isAutolink:Zo}=No(),Mo=new Set(["importExport"]),ys=["heading","tableCell","link","wikiLink"],bo=new Set(["listItem","definition","footnoteDefinition"]);function Ls(ul,Jo,hl){let Ms=ul.getValue();if(fu(ul))return va(Jo.originalText.slice(Ms.position.start.offset,Ms.position.end.offset),Jo).map(dl=>dl.type==="word"?dl.value:dl.value===""?"":Go(ul,dl.value,Jo));switch(Ms.type){case"front-matter":return Jo.originalText.slice(Ms.position.start.offset,Ms.position.end.offset);case"root":return Ms.children.length===0?"":[Xa(fl(ul,Jo,hl)),Mo.has(Is(Ms).type)?"":ki];case"paragraph":return sl(ul,Jo,hl,{postprocessor:Ra});case"sentence":return sl(ul,Jo,hl);case"word":{let dl=Ms.value.replace(
` )return ki;let Ms=hl.proseWrap==="always"&&!ml(ul,ys);return Jo!==""?Ms?ea:" ":Ms?ji:""}function Os(ul,Jo,hl){let Ms=ul.getValue(),dl=[],Wu=ul.map( $ r=> $ r.map((Zr,Hn)=>{let mi=rs(hl(),Jo).formatted,ma=xn(mi);return dl[Hn]=Math.max(dl[Hn]||3,ma),{text:mi,width:ma}},"children"),"children"), $ e=ir(!1);if(Jo.proseWrap!=="never")return[ui, $ e];let er=ir(!0);return[ui,La(oa(er, $ e))];function ir( $ r){let Zr=[dr(Wu[0], $ r),lr( $ r)];return Wu.length>1&&Zr.push(Mi(Ea,Wu.slice(1).map(Hn=>dr(Hn, $ r)))),Mi(Ea,Zr)}function lr( $ r){return ` | $ { dl . map ( ( Zr , Hn ) => { let mi = Ms . align [ Hn ] , ma = mi === "center" || mi === "left" ? ":" : "-" , io = mi === "center" || mi === "right" ? ":" : "-" , gs = $r ? "-" : "-" . repeat ( Zr - 2 ) ; return ` ${ ma } ${ gs } ${ io } ` } ) . join ( " | " ) } | ` }function dr( $ r,Zr){return ` | $ { $r . map ( ( Hn , mi ) => { let { text : ma , width : io } = Hn ; if ( Zr ) return ma ; let gs = dl [ mi ] - io , vs = Ms . align [ mi ] , xs = 0 ; vs === "right" ? xs = gs : vs === "center" && ( xs = Math . floor ( gs / 2 ) ) ; let tl = gs - xs ; return ` ${ " " . repeat ( xs ) } ${ ma } ${ " " . repeat ( tl ) } ` } ) . join ( " | " ) } | ` }}function fl(ul,Jo,hl){let Ms=[],dl=null,{children:Wu}=ul.getValue();for(let[ $ e,er]of Wu.entries())switch(hs(er)){case"start":dl===null&&(dl={index: $ e,offset:er.position.end.offset});break;case"end":dl!==null&&(Ms.push({start:dl,end:{index: $ e,offset:er.position.start.offset}}),dl=null);break}return sl(ul,Jo,hl,{processor:( $ e,er)=>{if(Ms.length>0){let ir=Ms[0];if(er===ir.start.index)return[ku(Wu[ir.start.index]),Jo.originalText.slice(ir.start.offset,ir.end.offset),ku(Wu[ir.end.index])];if(ir.start.index<er&&er<ir.end.index)return!1;if(er===ir.end.index)return Ms.shift(),!1}return hl()}})}function sl(ul,Jo,hl){let Ms=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},{postprocessor:dl}=Ms,Wu=Ms.processor||(()=>hl()), $ e=ul.getValue(),er=[],ir;return ul.each((lr,dr)=>{let $ r=lr.getValue(),Zr=Wu(lr,dr);if(Zr!==!1){let Hn={parts:er,prevNode:ir,parentNode: $ e,options:Jo};Vs( $ r,Hn)&&(er.push(ki),ir&&Mo.has(ir.type)||(Ys( $ r,Hn)||Gs( $ r,Hn))&&er.push(ki),Gs( $ r,Hn)&&er.push(ki)),er.push(Zr),ir= $ r}},"children"),dl?dl(er):er}function ku(ul){if(ul.type==="html")return ul.value;if(ul.type==="paragraph"&&Array.isArray(ul.children)&&ul.children.length===1&&ul.children[0].type==="esComment")return["{/* ",ul.children[0].value," */}"]}function Is(ul){let Jo=ul;for(;Nn(Jo.children);)Jo=Vn(Jo.children);return Jo}function hs(ul){let Jo;if(ul.type==="html")Jo=ul.value.match(/^<!-- \s *prettier-ignore(?:-(start|end))? \s *--> $ /);else{let hl;ul.type==="esComment"?hl=ul:ul.type==="paragraph"&&ul.children.length===1&&ul.children[0].type==="esComment"&&(hl=ul.children[0]),hl&&(Jo=hl.value.match(/^prettier-ignore(?:-(start|end))? $ /))}return Jo?Jo[1]||"next":!1}function Vs(ul,Jo){let hl=Jo.parts.length===0,Ms=to.includes(ul.type),dl=ul.type==="html"&&Bo.includes(Jo.parentNode.type);return!hl&&!Ms&&!dl}function Ys(ul,Jo){var hl,Ms,dl;let Wu=(Jo.prevNode&&Jo.prevNode.type)===ul.type&&bo.has(ul.type), $ e=Jo.parentNode.type==="listItem"&&!Jo.parentNode.loose,er=((hl=Jo.prevNode)===null||hl===void 0?void 0:hl.type)==="listItem"&&Jo.prevNode.loose,ir=hs(Jo.prevNode)==="next",lr=ul.type==="html"&&((Ms=Jo.prevNode)===null||Ms===void 0?void 0:Ms.type)==="html"&&Jo.prevNode.position.end.line+1===ul.position.start.line,dr=ul.type==="html"&&Jo.parentNode.type==="listItem"&&((dl=Jo.prevNode)===null||dl===void 0?void 0:dl.type)==="paragraph"&&Jo.prevNode.position.end.line+1===ul.position.start.line;return er||!(Wu|| $ e||ir||lr||dr)}function Gs(ul,Jo){let hl=Jo.prevNode&&Jo.prevNode.type==="list",Ms=ul.type==="code"&&ul.isIndented;return hl&&Ms}function fu(ul){let Jo=ml(ul,["linkReference","imageReference"]);return Jo&&(Jo.type!=="linkReference"||Jo.referenceType!=="full")}function Vl(ul){let Jo=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],hl=[" ",...Array.isArray(Jo)?Jo:[Jo]];return new RegExp(hl.map(Ms=> ` \ \ $ { Ms } ` ).join("|")).test(ul)? ` < $ { ul } > ` :ul}function uc(ul,Jo){let hl=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!ul)return"";if(hl)return" "+uc(ul,Jo,!1);if(ul=ul.replace(/ \\ (["')])/g," $ 1"),ul.includes('"')&&ul.includes("'")&&!ul.includes(")"))return ` ( $ { ul } ) ` ;let Ms=ul.split("'").l
` ," \f "," \r "," "]),oa=ir=>ir.replace(/^[ \t \n \f \r ]+/,""),Ra=ir=>ir.replace(/[ \t \n \f \r ]+ $ /,""),Ba=ir=>oa(Ra(ir)),la=ir=>ir.replace(/^[ \t \f \r ]* \n /g,""),La=ir=>la(Ra(ir)),Ea=ir=>ir.split(/[ \t \n \f \r ]+/),Xa=ir=>ir.match(/^[ \t \n \f \r ]*/)[0],Fa=ir=>{let[,lr,dr, $ r]=ir.match(/^([ \t \n \f \r ]*)(.*?)([ \t \n \f \r ]*) $ /s);return{leadingWhitespace:lr,trailingWhitespace: $ r,text:dr}},rs=ir=>/[ \t \n \f \r ]/.test(ir);function Ui(ir,lr){return!!(ir.type==="ieConditionalComment"&&ir.lastChild&&!ir.lastChild.isSelfClosing&&!ir.lastChild.endSourceSpan||ir.type==="ieConditionalComment"&&!ir.complete||Ys(ir)&&ir.children.some(dr=>dr.type!=="text"&&dr.type!=="interpolation")||Ms(ir,lr)&&!Un(ir)&&ir.type!=="interpolation")}function Ta(ir){return ir.type==="attribute"||!ir.parent||!ir.prev?!1:Fi(ir.prev)}function Fi(ir){return ir.type==="comment"&&ir.value.trim()==="prettier-ignore"}function aa(ir){return ir.type==="text"||ir.type==="comment"}function Un(ir){return ir.type==="element"&&(ir.fullName==="script"||ir.fullName==="style"||ir.fullName==="svg:style"||ki(ir)&&(ir.name==="script"||ir.name==="style"))}function Gi(ir){return ir.children&&!Un(ir)}function ra(ir){return Un(ir)||ir.type==="interpolation"||da(ir)}function da(ir){return uc(ir).startsWith("pre")}function va(ir,lr){let dr= $ r();if(dr&&!ir.prev&&ir.parent&&ir.parent.tagDefinition&&ir.parent.tagDefinition.ignoreFirstLf)return ir.type==="interpolation";return dr;function $ r(){return Vn(ir)?!1:(ir.type==="text"||ir.type==="interpolation")&&ir.prev&&(ir.prev.type==="text"||ir.prev.type==="interpolation")?!0:!ir.parent||ir.parent.cssDisplay==="none"?!1:Ys(ir.parent)?!0:!(!ir.prev&&(ir.parent.type==="root"||Ys(ir)&&ir.parent||Un(ir.parent)||Jo(ir.parent,lr)||!sl(ir.parent.cssDisplay))||ir.prev&&!hs(ir.prev.cssDisplay))}}function Aa(ir,lr){return Vn(ir)?!1:(ir.type==="text"||ir.type==="interpolation")&&ir.next&&(ir.next.type==="text"||ir.next.type==="interpolation")?!0:!ir.parent||ir.parent.cssDisplay==="none"?!1:Ys(ir.parent)?!0:!(!ir.next&&(ir.parent.type==="root"||Ys(ir)&&ir.parent||Un(ir.parent)||Jo(ir.parent,lr)||!ku(ir.parent.cssDisplay))||ir.next&&!Is(ir.next.cssDisplay))}function to(ir){return Vs(ir.cssDisplay)&&!Un(ir)}function Bo(ir){return Vn(ir)||ir.next&&ir.sourceSpan.end&&ir.sourceSpan.end.line+1<ir.next.sourceSpan.start.line}function Zo(ir){return Mo(ir)||ir.type==="element"&&ir.children.length>0&&(["body","script","style"].includes(ir.name)||ir.children.some(lr=>Fs(lr)))||ir.firstChild&&ir.firstChild===ir.lastChild&&ir.firstChild.type!=="text"&&Qo(ir.firstChild)&&(!ir.lastChild.isTrailingSpaceSensitive||Oo(ir.lastChild))}function Mo(ir){return ir.type==="element"&&ir.children.length>0&&(["html","head","ul","ol","select"].includes(ir.name)||ir.cssDisplay.startsWith("table")&&ir.cssDisplay!=="table-cell")}function ys(ir){return Ss(ir)||ir.prev&&bo(ir.prev)||Ls(ir)}function bo(ir){return Ss(ir)||ir.type==="element"&&ir.fullName==="br"||Ls(ir)}function Ls(ir){return Qo(ir)&&Oo(ir)}function Qo(ir){return ir.hasLeadingSpaces&&(ir.prev?ir.prev.sourceSpan.end.line<ir.sourceSpan.start.line:ir.parent.type==="root"||ir.parent.startSourceSpan.end.line<ir.sourceSpan.start.line)}function Oo(ir){return ir.hasTrailingSpaces&&(ir.next?ir.next.sourceSpan.start.line>ir.sourceSpan.end.line:ir.parent.type==="root"||ir.parent.endSourceSpan&&ir.parent.endSourceSpan.start.line>ir.sourceSpan.end.line)}function Ss(ir){switch(ir.type){case"ieConditionalComment":case"comment":case"directive":return!0;case"element":return["script","select"].includes(ir.name)}return!1}function nl(ir){return ir.lastChild?nl(ir.lastChild):ir}function Fs(ir){return ir.children&&ir.children.some(lr=>lr.type!=="text")}function ml(ir){let{type:lr,lang:dr}=ir.attrMap;if(lr==="module"||lr==="text/javascript"||lr==="text/babel"||lr==="application/javascript"||dr==="jsx")return"babel";if(lr==="application/x-typescript"||dr==="ts"||dr==="tsx")return"typescript";if(lr==="text/markdown")return"markdown";if(lr==="text/html")return"html";if(lr&&(lr.endsWith("json")||lr.endsWith("importmap"))||lr==="speculationrules")return"json";if(lr==="t
` )){if(dr.length===0)continue;if(!ji.has(dr[0]))return 0;let $ r=Xa(dr).length;dr.length!== $ r&& $ r<lr&&(lr= $ r)}return lr===Number.POSITIVE_INFINITY?0:lr}function Hc(ir){let lr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:nd(ir);return lr===0?ir:ir.split( `
2024-08-21 13:12:53 +08:00
` ).map(dr=>dr.slice(lr)).join( `
2024-08-25 11:35:35 +08:00
` )}function hc(ir,lr){let dr=0;for(let $ r=0; $ r<ir.length; $ r++)ir[ $ r]===lr&&dr++;return dr}function cc(ir){return ir.replace(/'/g,"'").replace(/"/g,'"')}var ul=new Set(["template","style","script"]);function Jo(ir,lr){return hl(ir,lr)&&!ul.has(ir.fullName)}function hl(ir,lr){return lr.parser==="vue"&&ir.type==="element"&&ir.parent.type==="root"&&ir.fullName.toLowerCase()!=="html"}function Ms(ir,lr){return hl(ir,lr)&&(Jo(ir,lr)||ir.attrMap.lang&&ir.attrMap.lang!=="html")}function dl(ir){let lr=ir.fullName;return lr.charAt(0)==="#"||lr==="slot-scope"||lr==="v-slot"||lr.startsWith("v-slot:")}function Wu(ir,lr){let dr=ir.parent;if(!hl(dr,lr))return!1;let $ r=dr.fullName,Zr=ir.fullName;return $ r==="script"&&Zr==="setup"|| $ r==="style"&&Zr==="vars"}function $ e(ir){let lr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ir.value;return ir.parent.isWhitespaceSensitive?ir.parent.isIndentationSensitive?ui(lr):ui(Hc(La(lr)),En):Nn(xn(Fn,Ea(lr)))}function er(ir,lr){return hl(ir,lr)&&ir.name==="script"}di.exports={htmlTrim:Ba,htmlTrimPreserveIndentation:La,hasHtmlWhitespace:rs,getLeadingAndTrailingHtmlWhitespace:Fa,canHaveInterpolation:Gi,countChars:hc,countParents:Gs,dedentString:Hc,forceBreakChildren:Mo,forceBreakContent:Zo,forceNextEmptyLine:Bo,getLastDescendant:nl,getNodeCssStyleDisplay:Vl,getNodeCssStyleWhiteSpace:uc,hasPrettierIgnore:Ta,inferScriptParser:Os,isVueCustomBlock:Jo,isVueNonHtmlBlock:Ms,isVueScriptTag:er,isVueSlotAttribute:dl,isVueSfcBindingsAttribute:Wu,isVueSfcBlock:hl,isDanglingSpaceSensitiveNode:to,isIndentationSensitiveNode:da,isLeadingSpaceSensitiveNode:va,isPreLikeNode:Ys,isScriptLikeTag:Un,isTextLikeNode:aa,isTrailingSpaceSensitiveNode:Aa,isWhitespaceSensitiveNode:ra,isUnknownNamespace:ki,preferHardlineAsLeadingSpaces:ys,preferHardlineAsTrailingSpaces:bo,shouldPreserveContent:Ui,unescapeQuoteEntities:cc,getTextValueParts: $ e}}}), $ u=Io({"node_modules/angular-html-parser/lib/compiler/src/chars.js"(Rn){kn(),Object.defineProperty(Rn,"__esModule",{value:!0}),Rn. $ EOF=0,Rn. $ BSPACE=8,Rn. $ TAB=9,Rn. $ LF=10,Rn. $ VTAB=11,Rn. $ FF=12,Rn. $ CR=13,Rn. $ SPACE=32,Rn. $ BANG=33,Rn. $ DQ=34,Rn. $ HASH=35,Rn. $ $ =36,Rn. $ PERCENT=37,Rn. $ AMPERSAND=38,Rn. $ SQ=39,Rn. $ LPAREN=40,Rn. $ RPAREN=41,Rn. $ STAR=42,Rn. $ PLUS=43,Rn. $ COMMA=44,Rn. $ MINUS=45,Rn. $ PERIOD=46,Rn. $ SLASH=47,Rn. $ COLON=58,Rn. $ SEMICOLON=59,Rn. $ LT=60,Rn. $ EQ=61,Rn. $ GT=62,Rn. $ QUESTION=63,Rn. $ 0=48,Rn. $ 7=55,Rn. $ 9=57,Rn. $ A=65,Rn. $ E=69,Rn. $ F=70,Rn. $ X=88,Rn. $ Z=90,Rn. $ LBRACKET=91,Rn. $ BACKSLASH=92,Rn. $ RBRACKET=93,Rn. $ CARET=94,Rn. $ _=95,Rn. $ a=97,Rn. $ b=98,Rn. $ e=101,Rn. $ f=102,Rn. $ n=110,Rn. $ r=114,Rn. $ t=116,Rn. $ u=117,Rn. $ v=118,Rn. $ x=120,Rn. $ z=122,Rn. $ LBRACE=123,Rn. $ BAR=124,Rn. $ RBRACE=125,Rn. $ NBSP=160,Rn. $ PIPE=124,Rn. $ TILDA=126,Rn. $ AT=64,Rn. $ BT=96;function di(Nn){return Nn>=Rn. $ TAB&&Nn<=Rn. $ SPACE||Nn==Rn. $ NBSP}Rn.isWhitespace=di;function vn(Nn){return Rn. $ 0<=Nn&&Nn<=Rn. $ 9}Rn.isDigit=vn;function Vn(Nn){return Nn>=Rn. $ a&&Nn<=Rn. $ z||Nn>=Rn. $ A&&Nn<=Rn. $ Z}Rn.isAsciiLetter=Vn;function Fn(Nn){return Nn>=Rn. $ a&&Nn<=Rn. $ f||Nn>=Rn. $ A&&Nn<=Rn. $ F||vn(Nn)}Rn.isAsciiHexDigit=Fn;function En(Nn){return Nn===Rn. $ LF||Nn===Rn. $ CR}Rn.isNewLine=En;function xn(Nn){return Rn. $ 0<=Nn&&Nn<=Rn. $ 7}Rn.isOctalDigit=xn}}),gu=Io({"node_modules/angular-html-parser/lib/compiler/src/aot/static_symbol.js"(Rn){kn(),Object.defineProperty(Rn,"__esModule",{value:!0});var di=class{constructor(Vn,Fn,En){this.filePath=Vn,this.name=Fn,this.members=En}assertNoMembers(){if(this.members.length)throw new Error( ` Illegal state : symbol without members expected , but got $ { JSON . stringify ( this ) } . ` )}};Rn.StaticSymbol=di;var vn=class{constructor(){this.cache=new Map}get(Vn,Fn,En){En=En||[];let xn=En.length? ` . $ { En . join ( "." ) } ` :"",Nn= ` "${Vn}" . $ { Fn } $ { xn } ` ,ui=this.cache.get(Nn);return ui||(ui=new di(Vn,Fn,En),this.cache.set(Nn,ui)),ui}};Rn.StaticSymbolCache=vn}}),_p=Io({"node_modules/angular-html-parser/lib/compiler/src/util.js"(Rn){kn(),Object.defineProperty(Rn,"__esModule",{value:!0});var di=/-+([a-z0-9])/g;function vn(Un){return Un.replace(di,function(){for(var Gi=arguments.length,ra=new Array(Gi),da=0;da<Gi;da++)ra[da]=arguments[da];return ra[1].toUpper
` );return ra===-1?Gi:Gi.substring(0,ra)}Rn.stringify=Ea;function Xa(Un){return typeof Un=="function"&&Un.hasOwnProperty("__forward_ref__")?Un():Un}Rn.resolveForwardRef=Xa;function Fa(Un){return!!Un&&typeof Un.then=="function"}Rn.isPromise=Fa;var rs=class{constructor(Un){this.full=Un;let Gi=Un.split(".");this.major=Gi[0],this.minor=Gi[1],this.patch=Gi.slice(2).join(".")}};Rn.Version=rs;var Ui=typeof window<"u"&&window,Ta=typeof self<"u"&&typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&self,Fi=typeof globalThis<"u"&&globalThis,aa=Fi||Ui||Ta;Rn.global=aa}}),Md=Io({"node_modules/angular-html-parser/lib/compiler/src/compile_metadata.js"(Rn){kn(),Object.defineProperty(Rn,"__esModule",{value:!0});var di=gu(),vn=_p(),Vn=/^(?:(?: \[ ([^ \] ]+) \] )|(?: \( ([^ \) ]+) \) ))|( \@ [- \w ]+) $ /;function Fn(ra){return ra.replace(/ \W /g,"_")}Rn.sanitizeIdentifier=Fn;var En=0;function xn(ra){if(!ra||!ra.reference)return null;let da=ra.reference;if(da instanceof di.StaticSymbol)return da.name;if(da.__anonymousType)return da.__anonymousType;let va=vn.stringify(da);return va.indexOf("(")>=0?(va= ` anonymous _$ { En ++ } ` ,da.__anonymousType=va):va=Fn(va),va}Rn.identifierName=xn;function Nn(ra){let da=ra.reference;return da instanceof di.StaticSymbol?da.filePath: ` . / $ { vn . stringify ( da ) } ` }Rn.identifierModuleUrl=Nn;function ui(ra,da){return ` View _$ { xn ( { reference : ra } ) } _$ { da } ` }Rn.viewClassName=ui;function Mi(ra){return ` RenderType _$ { xn ( { reference : ra } ) } ` }Rn.rendererTypeName=Mi;function ea(ra){return ` HostView _$ { xn ( { reference : ra } ) } ` }Rn.hostViewClassName=ea;function zi(ra){return ` $ { xn ( { reference : ra } ) } NgFactory ` }Rn.componentFactoryName=zi;var ta;(function(ra){ra[ra.Pipe=0]="Pipe",ra[ra.Directive=1]="Directive",ra[ra.NgModule=2]="NgModule",ra[ra.Injectable=3]="Injectable"})(ta=Rn.CompileSummaryKind||(Rn.CompileSummaryKind={}));function ki(ra){return ra.value!=null?Fn(ra.value):xn(ra.identifier)}Rn.tokenName=ki;function ji(ra){return ra.identifier!=null?ra.identifier.reference:ra.value}Rn.tokenReference=ji;var oa=class{constructor(){let{moduleUrl:ra,styles:da,styleUrls:va}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.moduleUrl=ra||null,this.styles=Fa(da),this.styleUrls=Fa(va)}};Rn.CompileStylesheetMetadata=oa;var Ra=class{constructor(ra){let{encapsulation:da,template:va,templateUrl:Aa,htmlAst:to,styles:Bo,styleUrls:Zo,externalStylesheets:Mo,animations:ys,ngContentSelectors:bo,interpolation:Ls,isInline:Qo,preserveWhitespaces:Oo}=ra;if(this.encapsulation=da,this.template=va,this.templateUrl=Aa,this.htmlAst=to,this.styles=Fa(Bo),this.styleUrls=Fa(Zo),this.externalStylesheets=Fa(Mo),this.animations=ys?Ui(ys):[],this.ngContentSelectors=bo||[],Ls&&Ls.length!=2)throw new Error("'interpolation' should have a start and an end symbol.");this.interpolation=Ls,this.isInline=Qo,this.preserveWhitespaces=Oo}toSummary(){return{ngContentSelectors:this.ngContentSelectors,encapsulation:this.encapsulation,styles:this.styles,animations:this.animations}}};Rn.CompileTemplateMetadata=Ra;var Ba=class{static create(ra){let{isHost:da,type:va,isComponent:Aa,selector:to,exportAs:Bo,changeDetection:Zo,inputs:Mo,outputs:ys,host:bo,providers:Ls,viewProviders:Qo,queries:Oo,guards:Ss,viewQueries:nl,entryComponents:Fs,template:ml,componentViewType:Go,rendererType:Os,componentFactory:fl}=ra,sl={},ku={},Is={};bo!=null&&Object.keys(bo).forEach(Ys=>{let Gs=bo[Ys],fu=Ys.match(Vn);fu===null?Is[Ys]=Gs:fu[1]!=null?ku[fu[1]]=Gs:fu[2]!=null&&(sl[fu[2]]=Gs)});let hs={};Mo!=null&&Mo.forEach(Ys=>{let Gs=vn.splitAtColon(Ys,[Ys,Ys]);hs[Gs[0]]=Gs[1]});let Vs={};return ys!=null&&ys.forEach(Ys=>{let Gs=vn.splitAtColon(Ys,[Ys,Ys]);Vs[Gs[0]]=Gs[1]}),new Ba({isHost:da,type:va,isComponent:!!Aa,selector:to,exportAs:Bo,changeDetection:Zo,inputs:hs,outputs:Vs,hostListeners:sl,hostProperties:ku,hostAttributes:Is,providers:Ls,viewProviders:Qo,queries:Oo,guards:Ss,viewQueries:nl,entryComponents:Fs,template:ml,componentViewType:Go,rendererType:Os,componentFactory:fl})}constructor(ra){let{isHost:da,type:va,isComponent:Aa,selector:to,exportAs:Bo,changeDetection:Zo,inputs:Mo,outputs:ys,hostListeners:bo,hostPrope
2024-08-21 13:12:53 +08:00
` &&++Ra==zi)););for(oa=0,Ra=0;oa<ea&&ji<ta.length-1&&(ji++,oa++,!(ta[ji]== `
2024-08-25 11:35:35 +08:00
` &&++Ra==zi)););return{before:ta.substring(ki,this.offset),after:ta.substring(this.offset,ji+1)}}return null}};Rn.ParseLocation=Vn;var Fn=class{constructor(ea,zi){this.content=ea,this.url=zi}};Rn.ParseSourceFile=Fn;var En=class{constructor(ea,zi){let ta=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;this.start=ea,this.end=zi,this.details=ta}toString(){return this.start.file.content.substring(this.start.offset,this.end.offset)}};Rn.ParseSourceSpan=En,Rn.EMPTY_PARSE_LOCATION=new Vn(new Fn("",""),0,0,0),Rn.EMPTY_SOURCE_SPAN=new En(Rn.EMPTY_PARSE_LOCATION,Rn.EMPTY_PARSE_LOCATION);var xn;(function(ea){ea[ea.WARNING=0]="WARNING",ea[ea.ERROR=1]="ERROR"})(xn=Rn.ParseErrorLevel||(Rn.ParseErrorLevel={}));var Nn=class{constructor(ea,zi){let ta=arguments.length>2&&arguments[2]!==void 0?arguments[2]:xn.ERROR;this.span=ea,this.msg=zi,this.level=ta}contextualMessage(){let ea=this.span.start.getContext(100,3);return ea? ` $ { this . msg } ( "${ea.before}[${xn[this.level]} ->]${ea.after}" ) ` :this.msg}toString(){let ea=this.span.details? ` , $ { this . span . details } ` :"";return ` $ { this . contextualMessage ( ) } : $ { this . span . start } $ { ea } ` }};Rn.ParseError=Nn;function ui(ea,zi){let ta=vn.identifierModuleUrl(zi),ki=ta!=null? ` in $ { ea } $ { vn . identifierName ( zi ) } in $ { ta } ` : ` in $ { ea } $ { vn . identifierName ( zi ) } ` ,ji=new Fn("",ki);return new En(new Vn(ji,-1,-1,-1),new Vn(ji,-1,-1,-1))}Rn.typeSourceSpan=ui;function Mi(ea,zi,ta){let ki= ` in $ { ea } $ { zi } in $ { ta } ` ,ji=new Fn("",ki);return new En(new Vn(ji,-1,-1,-1),new Vn(ji,-1,-1,-1))}Rn.r3JitTypeSourceSpan=Mi}}),Td=Io({"src/language-html/print-preprocess.js"(Rn,di){kn();var{ParseSourceSpan:vn}=Kd(),{htmlTrim:Vn,getLeadingAndTrailingHtmlWhitespace:Fn,hasHtmlWhitespace:En,canHaveInterpolation:xn,getNodeCssStyleDisplay:Nn,isDanglingSpaceSensitiveNode:ui,isIndentationSensitiveNode:Mi,isLeadingSpaceSensitiveNode:ea,isTrailingSpaceSensitiveNode:zi,isWhitespaceSensitiveNode:ta,isVueScriptTag:ki}=_u(),ji=[Ra,Ba,La,Xa,Fa,Ta,rs,Ui,Fi,Ea,aa];function oa(Un,Gi){for(let ra of ji)ra(Un,Gi);return Un}function Ra(Un){Un.walk(Gi=>{if(Gi.type==="element"&&Gi.tagDefinition.ignoreFirstLf&&Gi.children.length>0&&Gi.children[0].type==="text"&&Gi.children[0].value[0]=== `
` ){let ra=Gi.children[0];ra.value.length===1?Gi.removeChild(ra):ra.value=ra.value.slice(1)}})}function Ba(Un){let Gi=ra=>ra.type==="element"&&ra.prev&&ra.prev.type==="ieConditionalStartComment"&&ra.prev.sourceSpan.end.offset===ra.startSourceSpan.start.offset&&ra.firstChild&&ra.firstChild.type==="ieConditionalEndComment"&&ra.firstChild.sourceSpan.start.offset===ra.startSourceSpan.end.offset;Un.walk(ra=>{if(ra.children)for(let da=0;da<ra.children.length;da++){let va=ra.children[da];if(!Gi(va))continue;let Aa=va.prev,to=va.firstChild;ra.removeChild(Aa),da--;let Bo=new vn(Aa.sourceSpan.start,to.sourceSpan.end),Zo=new vn(Bo.start,va.sourceSpan.end);va.condition=Aa.condition,va.sourceSpan=Zo,va.startSourceSpan=Bo,va.removeChild(to)}})}function la(Un,Gi,ra){Un.walk(da=>{if(da.children)for(let va=0;va<da.children.length;va++){let Aa=da.children[va];if(Aa.type!=="text"&&!Gi(Aa))continue;Aa.type!=="text"&&(Aa.type="text",Aa.value=ra(Aa));let to=Aa.prev;!to||to.type!=="text"||(to.value+=Aa.value,to.sourceSpan=new vn(to.sourceSpan.start,Aa.sourceSpan.end),da.removeChild(Aa),va--)}})}function La(Un){return la(Un,Gi=>Gi.type==="cdata",Gi=> ` < ! [ CDATA [ $ { Gi . value } ] ] > ` )}function Ea(Un){let Gi=ra=>ra.type==="element"&&ra.attrs.length===0&&ra.children.length===1&&ra.firstChild.type==="text"&&!En(ra.children[0].value)&&!ra.firstChild.hasLeadingSpaces&&!ra.firstChild.hasTrailingSpaces&&ra.isLeadingSpaceSensitive&&!ra.hasLeadingSpaces&&ra.isTrailingSpaceSensitive&&!ra.hasTrailingSpaces&&ra.prev&&ra.prev.type==="text"&&ra.next&&ra.next.type==="text";Un.walk(ra=>{if(ra.children)for(let da=0;da<ra.children.length;da++){let va=ra.children[da];if(!Gi(va))continue;let Aa=va.prev,to=va.next;Aa.value+= ` < $ { va . rawName } > ` +va.firstChild.value+ ` < /${va.rawName}>`+to.value,Aa.sourceSpan=new vn(Aa.sourceSpan.start,to.sourceSpan.end),Aa.isTrailingSpaceSensitive=to.isTrailingSpaceSensitive,Aa.hasTrailingSpaces=to.hasTrailingSpaces,ra.removeChild(va),da--,ra.removeChild(to)}})}function Xa(Un,Gi){if(Gi.parser==="html")return;let ra=/ { { ( . + ? ) } } / s ; Un . walk ( da => { if ( xn ( da ) ) for ( let va of da . children ) { if ( va . type !== "text" ) continue ; let Aa = va . sourceSpan . start , to = null , Bo = va . value . split ( ra ) ; for ( let Zo = 0 ; Zo < Bo . length ; Zo ++ , Aa = to ) { let Mo = Bo [ Zo ] ; if ( Zo % 2 === 0 ) { to = Aa . moveBy ( Mo . length ) , Mo . length > 0 && da . insertChildBefore ( va , { type : "text" , value : Mo , sourceSpan : new vn ( Aa , to ) } ) ; continue } to = Aa . moveBy ( Mo . length + 4 ) , da . insertChildBefore ( va , { type : "interpolation" , sourceSpan : new vn ( Aa , to ) , children : Mo . length === 0 ? [ ] : [ { type : "text" , value : Mo , sourceSpan : new vn ( Aa . moveBy ( 2 ) , to . moveBy ( - 2 ) ) } ] } ) } da . removeChild ( va ) } } ) } function Fa ( Un ) { Un . walk ( Gi => { if ( ! Gi . children ) return ; if ( Gi . children . length === 0 || Gi . children . length === 1 && Gi . children [ 0 ] . type === "text" && Vn ( Gi . children [ 0 ] . value ) . length === 0 ) { Gi . hasDanglingSpaces = Gi . children . length > 0 , Gi . children = [ ] ; return } let ra = ta ( Gi ) , da = Mi ( Gi ) ; if ( ! ra ) for ( let va = 0 ; va < Gi . children . length ; va ++ ) { let Aa = Gi . children [ va ] ; if ( Aa . type !== "text" ) continue ; let { leadingWhitespace : to , text : Bo , trailingWhitespace : Zo } = Fn ( Aa . value ) , Mo = Aa . prev , ys = Aa . next ; Bo ? ( Aa . value = Bo , Aa . sourceSpan = new vn ( Aa . sourceSpan . start . moveBy ( to . length ) , Aa . sourceSpan . end . moveBy ( - Zo . length ) ) , to && ( Mo && ( Mo . hasTrailingSpaces = ! 0 ) , Aa . hasLeadingSpaces = ! 0 ) , Zo && ( Aa . hasTrailingSpaces = ! 0 , ys && ( ys . hasLeadingSpaces = ! 0 ) ) ) : ( Gi . removeChild ( Aa ) , va -- , ( to || Zo ) && ( Mo && ( Mo . hasTrailingSpaces = ! 0 ) , ys && ( ys . hasLeadingSpaces = ! 0 ) ) ) } Gi . isWhitespaceSensitive = ra , Gi . isIndentationSensitive = da } ) } function rs ( Un ) { Un . walk ( Gi => { Gi . isSelfClosing = ! Gi . children || Gi . type === "element" && ( Gi . tagDefinition . isVoid || Gi . startSourceSpan === Gi . endSourceSpan ) } ) } function Ui ( Un , Gi ) { Un . walk ( ra => { ra . type === "element" && ( ra . hasHtmComponentClosingTag = ra . endSourceSpan && /^<\s*\/\s*\/\s*>$/ . test ( Gi . originalText . slice ( ra . endSourceSpan . start . offset , ra . endSourceSpan . end . offset ) ) ) } ) } function Ta ( Un , Gi ) { Un . walk ( ra => { ra . cssDisplay = Nn ( ra , Gi ) } ) } function Fi ( Un , Gi ) { Un . walk ( ra => { let { children : da } = ra ; if ( da ) { if ( da . length === 0 ) { ra . isDanglingSpaceSensitive = ui ( ra ) ; return } for ( let va of da ) va . isLeadingSpaceSensitive = ea ( va , Gi ) , va . isTrailingSpaceSensitive = zi ( va , Gi ) ; for ( let va = 0 ; va < da . length ; va ++ ) { let Aa = da [ va ] ; Aa . isLead
2024-08-21 13:12:53 +08:00
2024-08-25 11:35:35 +08:00
` +Fn.replace(/^ \s * \n /,"")}di.exports={hasPragma:vn,insertPragma:Vn}}}),_c=Io({"src/language-html/loc.js"(Rn,di){kn();function vn(Fn){return Fn.sourceSpan.start.offset}function Vn(Fn){return Fn.sourceSpan.end.offset}di.exports={locStart:vn,locEnd:Vn}}}),zc=Io({"src/language-html/print/tag.js"(Rn,di){kn();var vn=bc(),{isNonEmptyArray:Vn}=Wc(),{builders:{indent:Fn,join:En,line:xn,softline:Nn,hardline:ui},utils:{replaceTextEndOfLine:Mi}}=Cc(),{locStart:ea,locEnd:zi}=_c(),{isTextLikeNode:ta,getLastDescendant:ki,isPreLikeNode:ji,hasPrettierIgnore:oa,shouldPreserveContent:Ra,isVueSfcBlock:Ba}=_u();function la(bo,Ls){return[bo.isSelfClosing?"":La(bo,Ls),Ea(bo,Ls)]}function La(bo,Ls){return bo.lastChild&&Un(bo.lastChild)?"":[Xa(bo,Ls),rs(bo,Ls)]}function Ea(bo,Ls){return(bo.next?Fi(bo.next):aa(bo.parent))?"":[Ui(bo,Ls),Fa(bo,Ls)]}function Xa(bo,Ls){return aa(bo)?Ui(bo.lastChild,Ls):""}function Fa(bo,Ls){return Un(bo)?rs(bo.parent,Ls):Gi(bo)?Mo(bo.next):""}function rs(bo,Ls){if(vn(!bo.isSelfClosing),Ta(bo,Ls))return"";switch(bo.type){case"ieConditionalComment":return"<!";case"element":if(bo.hasHtmComponentClosingTag)return"<//";default:return ` < /${bo.rawName}`}}function Ui(bo,Ls){if(Ta(bo,Ls))return"";switch(bo.type){case"ieConditionalComment":case"ieConditionalEndComment":return"[endif]-->";case"ieConditionalStartComment":return"]><!-->";case"interpolation":return"}}";case"element":if(bo.isSelfClosing)return"/ > ";default:return" > "}}function Ta(bo,Ls){return!bo.isSelfClosing&&!bo.endSourceSpan&&(oa(bo)||Ra(bo.parent,Ls))}function Fi(bo){return bo.prev&&bo.prev.type!==" docType "&&!ta(bo.prev)&&bo.isLeadingSpaceSensitive&&!bo.hasLeadingSpaces}function aa(bo){return bo.lastChild&&bo.lastChild.isTrailingSpaceSensitive&&!bo.lastChild.hasTrailingSpaces&&!ta(ki(bo.lastChild))&&!ji(bo)}function Un(bo){return!bo.next&&!bo.hasTrailingSpaces&&bo.isTrailingSpaceSensitive&&ta(ki(bo))}function Gi(bo){return bo.next&&!ta(bo.next)&&ta(bo)&&bo.isTrailingSpaceSensitive&&!bo.hasTrailingSpaces}function ra(bo){let Ls=bo.trim().match(/^prettier-ignore-attribute(?:\s+(.+))?$/s);return Ls?Ls[1]?Ls[1].split(/\s+/):!0:!1}function da(bo){return!bo.prev&&bo.isLeadingSpaceSensitive&&!bo.hasLeadingSpaces}function va(bo,Ls,Qo){let Oo=bo.getValue();if(!Vn(Oo.attrs))return Oo.isSelfClosing?" ":" ";let Ss=Oo.prev&&Oo.prev.type===" comment "&&ra(Oo.prev.value),nl=typeof Ss==" boolean "?()=>Ss:Array.isArray(Ss)?fl=>Ss.includes(fl.rawName):()=>!1,Fs=bo.map(fl=>{let sl=fl.getValue();return nl(sl)?Mi(Ls.originalText.slice(ea(sl),zi(sl))):Qo()}," attrs "),ml=Oo.type===" element "&&Oo.fullName===" script "&&Oo.attrs.length===1&&Oo.attrs[0].fullName===" src "&&Oo.children.length===0,Go=Ls.singleAttributePerLine&&Oo.attrs.length>1&&!Ba(Oo,Ls)?ui:xn,Os=[Fn([ml?" ":xn,En(Go,Fs)])];return Oo.firstChild&&da(Oo.firstChild)||Oo.isSelfClosing&&aa(Oo.parent)||ml?Os.push(Oo.isSelfClosing?" ":" "):Os.push(Ls.bracketSameLine?Oo.isSelfClosing?" ":" ":Oo.isSelfClosing?xn:Nn),Os}function Aa(bo){return bo.firstChild&&da(bo.firstChild)?" ":ys(bo)}function to(bo,Ls,Qo){let Oo=bo.getValue();return[Bo(Oo,Ls),va(bo,Ls,Qo),Oo.isSelfClosing?" ":Aa(Oo)]}function Bo(bo,Ls){return bo.prev&&Gi(bo.prev)?" ":[Zo(bo,Ls),Mo(bo)]}function Zo(bo,Ls){return da(bo)?ys(bo.parent):Fi(bo)?Ui(bo.prev,Ls):" "}function Mo(bo){switch(bo.type){case" ieConditionalComment ":case" ieConditionalStartComment ":return`<!--[if ${bo.condition}`;case" ieConditionalEndComment ":return" <!-- < ! ";case" interpolation ":return" { { ";case" docType ":return" < ! DOCTYPE ";case" element ":if(bo.condition)return`<!--[if ${bo.condition}]><!--><${bo.rawName}`;default:return`<${bo.rawName}`}}function ys(bo){switch(vn(!bo.isSelfClosing),bo.type){case" ieConditionalComment ":return" ] > ";case" element ":if(bo.condition)return" > <!-- < ! [ endif ] -- > ";default:return" > " } } di . exports = { printClosingTag : la , printClosingTagStart : La , printClosingTagStartMarker : rs , printClosingTagEndMarker : Ui , printClosingTagSuffix : Fa , printClosingTagEnd : Ea , needsToBorrowLastChildClosingTagEndMarker : aa , needsToBorrowParentClosingTagStartMarker : Un , needsToBorrowPrevClosingTagEndMarker : Fi , printOpeningTag : to , printOpeningTagSt
` ||rs===" \f "||rs===" \r "}function xn(rs){var Ui,Ta=rs.exec(vn.substring(La));if(Ta)return Ui=Ta[0],La+=Ui.length,Ui}for(var Nn=vn.length,ui=/^[ \t \n \r \u 000c]+/,Mi=/^[, \t \n \r \u 000c]+/,ea=/^[^ \t \n \r \u 000c]+/,zi=/[,]+ $ /,ta=/^ \d + $ /,ki=/^-?(?:[0-9]+|[0-9]* \. [0-9]+)(?:[eE][+-]?[0-9]+)? $ /,ji,oa,Ra,Ba,la,La=0,Ea=[];;){if(xn(Mi),La>=Nn)return Ea;ji=xn(ea),oa=[],ji.slice(-1)===","?(ji=ji.replace(zi,""),Fa()):Xa()}function Xa(){for(xn(ui),Ra="",Ba="in descriptor";;){if(la=vn.charAt(La),Ba==="in descriptor")if(En(la))Ra&&(oa.push(Ra),Ra="",Ba="after descriptor");else if(la===","){La+=1,Ra&&oa.push(Ra),Fa();return}else if(la==="(")Ra=Ra+la,Ba="in parens";else if(la===""){Ra&&oa.push(Ra),Fa();return}else Ra=Ra+la;else if(Ba==="in parens")if(la===")")Ra=Ra+la,Ba="in descriptor";else if(la===""){oa.push(Ra),Fa();return}else Ra=Ra+la;else if(Ba==="after descriptor"&&!En(la))if(la===""){Fa();return}else Ba="in descriptor",La-=1;La+=1}}function Fa(){var rs=!1,Ui,Ta,Fi,aa,Un={},Gi,ra,da,va,Aa;for(aa=0;aa<oa.length;aa++)Gi=oa[aa],ra=Gi[Gi.length-1],da=Gi.substring(0,Gi.length-1),va=parseInt(da,10),Aa=parseFloat(da),ta.test(da)&&ra==="w"?((Ui||Ta)&&(rs=!0),va===0?rs=!0:Ui=va):ki.test(da)&&ra==="x"?((Ui||Ta||Fi)&&(rs=!0),Aa<0?rs=!0:Ta=Aa):ta.test(da)&&ra==="h"?((Fi||Ta)&&(rs=!0),va===0?rs=!0:Fi=va):rs=!0;rs?Fn&&Fn.error&&Fn.error("Invalid srcset descriptor found in '"+vn+"' at '"+Gi+"'."):(Un.url=ji,Ui&&(Un.w=Ui),Ta&&(Un.d=Ta),Fi&&(Un.h=Fi),Ea.push(Un))}}})}}),Qc=Io({"src/language-html/syntax-attribute.js"(Rn,di){kn();var vn=Gc(),{builders:{ifBreak:Vn,join:Fn,line:En}}=Cc();function xn(ui){let Mi=vn(ui,{logger:{error(Xa){throw new Error(Xa)}}}),ea=Mi.some(Xa=>{let{w:Fa}=Xa;return Fa}),zi=Mi.some(Xa=>{let{h:Fa}=Xa;return Fa}),ta=Mi.some(Xa=>{let{d:Fa}=Xa;return Fa});if(ea+zi+ta>1)throw new Error("Mixed descriptor in srcset is not supported");let ki=ea?"w":zi?"h":"d",ji=ea?"w":zi?"h":"x",oa=Xa=>Math.max(...Xa),Ra=Mi.map(Xa=>Xa.url),Ba=oa(Ra.map(Xa=>Xa.length)),la=Mi.map(Xa=>Xa[ki]).map(Xa=>Xa?Xa.toString():""),La=la.map(Xa=>{let Fa=Xa.indexOf(".");return Fa===-1?Xa.length:Fa}),Ea=oa(La);return Fn([",",En],Ra.map((Xa,Fa)=>{let rs=[Xa],Ui=la[Fa];if(Ui){let Ta=Ba-Xa.length+1,Fi=Ea-La[Fa],aa=" ".repeat(Ta+Fi);rs.push(Vn(aa," "),Ui+ji)}return rs}))}function Nn(ui){return ui.trim().split(/ \s +/).join(" ")}di.exports={printImgSrcset:xn,printClassNames:Nn}}}),rl=Io({"src/language-html/syntax-vue.js"(Rn,di){kn();var{builders:{group:vn}}=Cc();function Vn(Nn,ui){let{left:Mi,operator:ea,right:zi}=Fn(Nn);return[vn(ui( ` function _ ( $ { Mi } ) { } ` ,{parser:"babel",__isVueForBindingLeft:!0}))," ",ea," ",ui(zi,{parser:"__js_expression"},{stripTrailingHardline:!0})]}function Fn(Nn){let ui=/(.*?) \s +(in|of) \s +(.*)/s,Mi=/,([^, \] }]*)(?:,([^, \] }]*))? $ /,ea=/^ \( | \) $ /g,zi=Nn.match(ui);if(!zi)return;let ta={};if(ta.for=zi[3].trim(),!ta.for)return;let ki=zi[1].trim().replace(ea,""),ji=ki.match(Mi);ji?(ta.alias=ki.replace(Mi,""),ta.iterator1=ji[1].trim(),ji[2]&&(ta.iterator2=ji[2].trim())):ta.alias=ki;let oa=[ta.alias,ta.iterator1,ta.iterator2];if(!oa.some((Ra,Ba)=>!Ra&&(Ba===0||oa.slice(Ba+1).some(Boolean))))return{left:oa.filter(Boolean).join(","),operator:zi[2],right:ta.for}}function En(Nn,ui){return ui( ` function _ ( $ { Nn } ) { } ` ,{parser:"babel",__isVueBindings:!0})}function xn(Nn){let ui=/^(?:[ \w $ ]+| \( [^)]* \) ) \s *=>|^function \s * \( /,Mi=/^[ $ A-Z_a-z][ \w $ ]*(?: \. [ $ A-Z_a-z][ \w $ ]*| \[ '[^']*']| \[ "[^"]*"]| \[ \d +]| \[ [ $ A-Z_a-z][ \w $ ]*])* $ /,ea=Nn.trim();return ui.test(ea)||Mi.test(ea)}di.exports={isVueEventBindingExpression:xn,printVueFor:Vn,printVueBindings:En}}}),Ml=Io({"src/language-html/get-node-content.js"(Rn,di){kn();var{needsToBorrowParentClosingTagStartMarker:vn,printClosingTagStartMarker:Vn,needsToBorrowLastChildClosingTagEndMarker:Fn,printClosingTagEndMarker:En,needsToBorrowParentOpeningTagEndMarker:xn,printOpeningTagEndMarker:Nn}=zc();function ui(Mi,ea){let zi=Mi.startSourceSpan.end.offset;Mi.firstChild&&xn(Mi.firstChild)&&(zi-=Nn(Mi).length);let ta=Mi.endSourceSpan.start.offset;return Mi.lastChild&&vn(Mi.lastChild)?ta+=Vn(Mi,ea).length:Fn(Mi)&&(ta-=En(Mi.lastChild,ea).length),ea.orig
2024-08-21 13:12:53 +08:00
2024-08-25 11:35:35 +08:00
$ { En } ` }di.exports={isPragma:vn,hasPragma:Vn,insertPragma:Fn}}}),Tp=Io({"src/language-yaml/loc.js"(Rn,di){kn();function vn(Fn){return Fn.position.start.offset}function Vn(Fn){return Fn.position.end.offset}di.exports={locStart:vn,locEnd:Vn}}}),rd=Io({"src/language-yaml/embed.js"(Rn,di){kn();function vn(Vn,Fn,En,xn){if(Vn.getValue().type==="root"&&xn.filepath&&/(?:[/ \\ ]|^) \. (?:prettier|stylelint|lintstaged)rc $ /.test(xn.filepath))return En(xn.originalText,Object.assign(Object.assign({},xn),{},{parser:"json"}))}di.exports=vn}}),vp=Io({"src/language-yaml/utils.js"(Rn,di){kn();var{getLast:vn,isNonEmptyArray:Vn}=Wc();function Fn(Ui,Ta){let Fi=0,aa=Ui.stack.length-1;for(let Un=0;Un<aa;Un++){let Gi=Ui.stack[Un];En(Gi)&&Ta(Gi)&&Fi++}return Fi}function En(Ui,Ta){return Ui&&typeof Ui.type=="string"&&(!Ta||Ta.includes(Ui.type))}function xn(Ui,Ta,Fi){return Ta("children"in Ui?Object.assign(Object.assign({},Ui),{},{children:Ui.children.map(aa=>xn(aa,Ta,Ui))}):Ui,Fi)}function Nn(Ui,Ta,Fi){Object.defineProperty(Ui,Ta,{get:Fi,enumerable:!1})}function ui(Ui,Ta){let Fi=0,aa=Ta.length;for(let Un=Ui.position.end.offset-1;Un<aa;Un++){let Gi=Ta[Un];if(Gi=== `
2024-08-21 13:12:53 +08:00
` &&Fi++,Fi===1&&/ \S /.test(Gi))return!1;if(Fi===2)return!0}return!1}function Mi(Ui){switch(Ui.getValue().type){case"tag":case"anchor":case"comment":return!1}let Ta=Ui.stack.length;for(let Fi=1;Fi<Ta;Fi++){let aa=Ui.stack[Fi],Un=Ui.stack[Fi-1];if(Array.isArray(Un)&&typeof aa=="number"&&aa!==Un.length-1)return!1}return!0}function ea(Ui){return Vn(Ui.children)?ea(vn(Ui.children)):Ui}function zi(Ui){return Ui.value.trim()==="prettier-ignore"}function ta(Ui){let Ta=Ui.getValue();if(Ta.type==="documentBody"){let Fi=Ui.getParentNode();return La(Fi.head)&&zi(vn(Fi.head.endComments))}return oa(Ta)&&zi(vn(Ta.leadingComments))}function ki(Ui){return!Vn(Ui.children)&&!ji(Ui)}function ji(Ui){return oa(Ui)||Ra(Ui)||Ba(Ui)||la(Ui)||La(Ui)}function oa(Ui){return Vn(Ui==null?void 0:Ui.leadingComments)}function Ra(Ui){return Vn(Ui==null?void 0:Ui.middleComments)}function Ba(Ui){return Ui==null?void 0:Ui.indicatorComment}function la(Ui){return Ui==null?void 0:Ui.trailingComment}function La(Ui){return Vn(Ui==null?void 0:Ui.endComments)}function Ea(Ui){let Ta=[],Fi;for(let aa of Ui.split(/( +)/))aa!==" "?Fi===" "?Ta.push(aa):Ta.push((Ta.pop()||"")+aa):Fi===void 0&&Ta.unshift(""),Fi=aa;return Fi===" "&&Ta.push((Ta.pop()||"")+" "),Ta[0]===""&&(Ta.shift(),Ta.unshift(" "+(Ta.shift()||""))),Ta}function Xa(Ui,Ta,Fi){let aa=Ta.split( `
` ).map((Un,Gi,ra)=>Gi===0&&Gi===ra.length-1?Un:Gi!==0&&Gi!==ra.length-1?Un.trim():Gi===0?Un.trimEnd():Un.trimStart());return Fi.proseWrap==="preserve"?aa.map(Un=>Un.length===0?[]:[Un]):aa.map(Un=>Un.length===0?[]:Ea(Un)).reduce((Un,Gi,ra)=>ra!==0&&aa[ra-1].length>0&&Gi.length>0&&!(Ui==="quoteDouble"&&vn(vn(Un)).endsWith(" \\ "))?[...Un.slice(0,-1),[...vn(Un),...Gi]]:[...Un,Gi],[]).map(Un=>Fi.proseWrap==="never"?[Un.join(" ")]:Un)}function Fa(Ui,Ta){let{parentIndent:Fi,isLastDescendant:aa,options:Un}=Ta,Gi=Ui.position.start.line===Ui.position.end.line?"":Un.originalText.slice(Ui.position.start.offset,Ui.position.end.offset).match(/^[^ \n ]* \n (.*) $ /s)[1],ra;if(Ui.indent===null){let Aa=Gi.match(/^(?<leadingSpace> *)[^ \n \r ]/m);ra=Aa?Aa.groups.leadingSpace.length:Number.POSITIVE_INFINITY}else ra=Ui.indent-1+Fi;let da=Gi.split( `
2024-08-25 11:35:35 +08:00
` ).map(Aa=>Aa.slice(ra));if(Un.proseWrap==="preserve"||Ui.type==="blockLiteral")return va(da.map(Aa=>Aa.length===0?[]:[Aa]));return va(da.map(Aa=>Aa.length===0?[]:Ea(Aa)).reduce((Aa,to,Bo)=>Bo!==0&&da[Bo-1].length>0&&to.length>0&&!/^ \s /.test(to[0])&&!/^ \s | \s $ /.test(vn(Aa))?[...Aa.slice(0,-1),[...vn(Aa),...to]]:[...Aa,to],[]).map(Aa=>Aa.reduce((to,Bo)=>to.length>0&&/ \s $ /.test(vn(to))?[...to.slice(0,-1),vn(to)+" "+Bo]:[...to,Bo],[])).map(Aa=>Un.proseWrap==="never"?[Aa.join(" ")]:Aa));function va(Aa){if(Ui.chomping==="keep")return vn(Aa).length===0?Aa.slice(0,-1):Aa;let to=0;for(let Bo=Aa.length-1;Bo>=0&&Aa[Bo].length===0;Bo--)to++;return to===0?Aa:to>=2&&!aa?Aa.slice(0,-(to-1)):Aa.slice(0,-to)}}function rs(Ui){if(!Ui)return!0;switch(Ui.type){case"plain":case"quoteDouble":case"quoteSingle":case"alias":case"flowMapping":case"flowSequence":return!0;default:return!1}}di.exports={getLast:vn,getAncestorCount:Fn,isNode:En,isEmptyNode:ki,isInlineNode:rs,mapNode:xn,defineShortcut:Nn,isNextLineEmpty:ui,isLastDescendantNode:Mi,getBlockValueLineContents:Fa,getFlowScalarLineContents:Xa,getLastDescendantNode:ea,hasPrettierIgnore:ta,hasLeadingComments:oa,hasMiddleComments:Ra,hasIndicatorComment:Ba,hasTrailingComment:la,hasEndComments:La}}}),Np=Io({"src/language-yaml/print-preprocess.js"(Rn,di){kn();var{defineShortcut:vn,mapNode:Vn}=vp();function Fn(xn){return Vn(xn,En)}function En(xn){switch(xn.type){case"document":vn(xn,"head",()=>xn.children[0]),vn(xn,"body",()=>xn.children[1]);break;case"documentBody":case"sequenceItem":case"flowSequenceItem":case"mappingKey":case"mappingValue":vn(xn,"content",()=>xn.children[0]);break;case"mappingItem":case"flowMappingItem":vn(xn,"key",()=>xn.children[0]),vn(xn,"value",()=>xn.children[1]);break}return xn}di.exports=Fn}}),Cp=Io({"src/language-yaml/print/misc.js"(Rn,di){kn();var{builders:{softline:vn,align:Vn}}=Cc(),{hasEndComments:Fn,isNextLineEmpty:En,isNode:xn}=vp(),Nn=new WeakMap;function ui(zi,ta){let ki=zi.getValue(),ji=zi.stack[0],oa;return Nn.has(ji)?oa=Nn.get(ji):(oa=new Set,Nn.set(ji,oa)),!oa.has(ki.position.end.line)&&(oa.add(ki.position.end.line),En(ki,ta)&&!Mi(zi.getParentNode()))?vn:""}function Mi(zi){return Fn(zi)&&!xn(zi,["documentHead","documentBody","flowMapping","flowSequence"])}function ea(zi,ta){return Vn(" ".repeat(zi),ta)}di.exports={alignWithSpaces:ea,shouldPrintEndComments:Mi,printNextEmptyLine:ui}}}),n0=Io({"src/language-yaml/print/flow-mapping-sequence.js"(Rn,di){kn();var{builders:{ifBreak:vn,line:Vn,softline:Fn,hardline:En,join:xn}}=Cc(),{isEmptyNode:Nn,getLast:ui,hasEndComments:Mi}=vp(),{printNextEmptyLine:ea,alignWithSpaces:zi}=Cp();function ta(ji,oa,Ra){let Ba=ji.getValue(),la=Ba.type==="flowMapping",La=la?"{":"[",Ea=la?"}":"]",Xa=Fn;la&&Ba.children.length>0&&Ra.bracketSpacing&&(Xa=Vn);let Fa=ui(Ba.children),rs=Fa&&Fa.type==="flowMappingItem"&&Nn(Fa.key)&&Nn(Fa.value);return[La,zi(Ra.tabWidth,[Xa,ki(ji,oa,Ra),Ra.trailingComma==="none"?"":vn(","),Mi(Ba)?[En,xn(En,ji.map(oa,"endComments"))]:""]),rs?"":Xa,Ea]}function ki(ji,oa,Ra){let Ba=ji.getValue();return ji.map((la,La)=>[oa(),La===Ba.children.length-1?"":[",",Vn,Ba.children[La].position.start.line!==Ba.children[La+1].position.start.line?ea(la,Ra.originalText):""]],"children")}di.exports={printFlowMapping:ta,printFlowSequence:ta}}}),c0=Io({"src/language-yaml/print/mapping-item.js"(Rn,di){kn();var{builders:{conditionalGroup:vn,group:Vn,hardline:Fn,ifBreak:En,join:xn,line:Nn}}=Cc(),{hasLeadingComments:ui,hasMiddleComments:Mi,hasTrailingComment:ea,hasEndComments:zi,isNode:ta,isEmptyNode:ki,isInlineNode:ji}=vp(),{alignWithSpaces:oa}=Cp();function Ra(Ea,Xa,Fa,rs,Ui){let{key:Ta,value:Fi}=Ea,aa=ki(Ta),Un=ki(Fi);if(aa&&Un)return": ";let Gi=rs("key"),ra=la(Ea)?" ":"";if(Un)return Ea.type==="flowMappingItem"&&Xa.type==="flowMapping"?Gi:Ea.type==="mappingItem"&&Ba(Ta.content,Ui)&&!ea(Ta.content)&&(!Xa.tag||Xa.tag.value!=="tag:yaml.org,2002:set")?[Gi,ra,":"]:["? ",oa(2,Gi)];let da=rs("value");if(aa)return[": ",oa(2,da)];if(ui(Fi)||!ji(Ta.content))return["? ",oa(2,Gi),Fn,xn("",Fa.map(rs,"value","leadingComments").map(Mo=>[Mo,Fn])),":
` );case"always":return!/[ \n ]/.test(Ea.value);default:return!1}}function la(Ea){return Ea.key.content&&Ea.key.content.type==="alias"}function La(Ea){if(!Ea)return!0;switch(Ea.type){case"plain":case"quoteDouble":case"quoteSingle":return Ea.position.start.line===Ea.position.end.line;case"alias":return!0;default:return!1}}di.exports=Ra}}),y0=Io({"src/language-yaml/print/block.js"(Rn,di){kn();var{builders:{dedent:vn,dedentToRoot:Vn,fill:Fn,hardline:En,join:xn,line:Nn,literalline:ui,markAsRoot:Mi},utils:{getDocParts:ea}}=Cc(),{getAncestorCount:zi,getBlockValueLineContents:ta,hasIndicatorComment:ki,isLastDescendantNode:ji,isNode:oa}=vp(),{alignWithSpaces:Ra}=Cp();function Ba(la,La,Ea){let Xa=la.getValue(),Fa=zi(la,aa=>oa(aa,["sequence","mapping"])),rs=ji(la),Ui=[Xa.type==="blockFolded"?">":"|"];Xa.indent!==null&&Ui.push(Xa.indent.toString()),Xa.chomping!=="clip"&&Ui.push(Xa.chomping==="keep"?"+":"-"),ki(Xa)&&Ui.push(" ",La("indicatorComment"));let Ta=ta(Xa,{parentIndent:Fa,isLastDescendant:rs,options:Ea}),Fi=[];for(let[aa,Un]of Ta.entries())aa===0&&Fi.push(En),Fi.push(Fn(ea(xn(Nn,Un)))),aa!==Ta.length-1?Fi.push(Un.length===0?En:Mi(ui)):Xa.chomping==="keep"&&rs&&Fi.push(Vn(Un.length===0?En:ui));return Xa.indent===null?Ui.push(vn(Ra(Ea.tabWidth,Fi))):Ui.push(Vn(Ra(Xa.indent-1+Fa,Fi))),Ui}di.exports=Ba}}),Jp=Io({"src/language-yaml/printer-yaml.js"(Rn,di){kn();var{builders:{breakParent:vn,fill:Vn,group:Fn,hardline:En,join:xn,line:Nn,lineSuffix:ui,literalline:Mi},utils:{getDocParts:ea,replaceTextEndOfLine:zi}}=Cc(),{isPreviousLineEmpty:ta}=Wc(),{insertPragma:ki,isPragma:ji}=lf(),{locStart:oa}=Tp(),Ra=rd(),{getFlowScalarLineContents:Ba,getLastDescendantNode:la,hasLeadingComments:La,hasMiddleComments:Ea,hasTrailingComment:Xa,hasEndComments:Fa,hasPrettierIgnore:rs,isLastDescendantNode:Ui,isNode:Ta,isInlineNode:Fi}=vp(),aa=Np(),{alignWithSpaces:Un,printNextEmptyLine:Gi,shouldPrintEndComments:ra}=Cp(),{printFlowMapping:da,printFlowSequence:va}=n0(),Aa=c0(),to=y0();function Bo(Oo,Ss,nl){let Fs=Oo.getValue(),ml=[];Fs.type!=="mappingValue"&&La(Fs)&&ml.push([xn(En,Oo.map(nl,"leadingComments")),En]);let{tag:Go,anchor:Os}=Fs;Go&&ml.push(nl("tag")),Go&&Os&&ml.push(" "),Os&&ml.push(nl("anchor"));let fl="";Ta(Fs,["mapping","sequence","comment","directive","mappingItem","sequenceItem"])&&!Ui(Oo)&&(fl=Gi(Oo,Ss.originalText)),(Go||Os)&&(Ta(Fs,["sequence","mapping"])&&!Ea(Fs)?ml.push(En):ml.push(" ")),Ea(Fs)&&ml.push([Fs.middleComments.length===1?"":En,xn(En,Oo.map(nl,"middleComments")),En]);let sl=Oo.getParentNode();return rs(Oo)?ml.push(zi(Ss.originalText.slice(Fs.position.start.offset,Fs.position.end.offset).trimEnd(),Mi)):ml.push(Fn(Zo(Fs,sl,Oo,Ss,nl))),Xa(Fs)&&!Ta(Fs,["document","documentHead"])&&ml.push(ui([Fs.type==="mappingValue"&&!Fs.content?"":" ",sl.type==="mappingKey"&&Oo.getParentNode(2).type==="mapping"&&Fi(Fs)?"":vn,nl("trailingComment")])),ra(Fs)&&ml.push(Un(Fs.type==="sequenceItem"?2:0,[En,xn(En,Oo.map(ku=>[ta(Ss.originalText,ku.getValue(),oa)?En:"",nl()],"endComments"))])),ml.push(fl),ml}function Zo(Oo,Ss,nl,Fs,ml){switch(Oo.type){case"root":{let{children:Go}=Oo,Os=[];nl.each((sl,ku)=>{let Is=Go[ku],hs=Go[ku+1];ku!==0&&Os.push(En),Os.push(ml()),ys(Is,hs)?(Os.push(En,"..."),Xa(Is)&&Os.push(" ",ml("trailingComment"))):hs&&!Xa(hs.head)&&Os.push(En,"---")},"children");let fl=la(Oo);return(!Ta(fl,["blockLiteral","blockFolded"])||fl.chomping!=="keep")&&Os.push(En),Os}case"document":{let Go=Ss.children[nl.getName()+1],Os=[];return bo(Oo,Go,Ss,Fs)==="head"&&((Oo.head.children.length>0||Oo.head.endComments.length>0)&&Os.push(ml("head")),Xa(Oo.head)?Os.push(["---"," ",ml(["head","trailingComment"])]):Os.push("---")),Mo(Oo)&&Os.push(ml("body")),xn(En,Os)}case"documentHead":return xn(En,[...nl.map(ml,"children"),...nl.map(ml,"endComments")]);case"documentBody":{let{children:Go,endComments:Os}=Oo,fl="";if(Go.length>0&&Os.length>0){let sl=la(Oo);Ta(sl,["blockFolded","blockLiteral"])?sl.chomping!=="keep"&&(fl=[En,En]):fl=En}return[xn(En,nl.map(ml,"children")),fl,xn(En,nl.map(ml,"endComments"))]}case"directive":return["%",xn(" ",[Oo.name,...Oo.pa
` ,_s={EOL:Fo,tmpdir:Eo,tmpDir:Ki,networkInterfaces:Ln,getNetworkInterfaces:Vi,release:hn,type:Zn,cpus:Br,totalmem:zs,freemem:Hs,uptime:Rs,loadavg:ms,hostname:Yl,endianness:vc}}}),Vo=ps({"node-modules-polyfills-commonjs:os"(Mn,Ia){As();var xa=(An(),Ou(Oc));if(xa&&xa.default){Ia.exports=xa.default;for(let Na in xa)Ia.exports[Na]=xa[Na]}else xa&&(Ia.exports=xa)}}),pu=ps({"node_modules/detect-newline/index.js"(Mn,Ia){As();var xa=Na=>{if(typeof Na!="string")throw new TypeError("Expected a string");let Ha=Na.match(/(?: \r ? \n )/g)||[];if(Ha.length===0)return;let _o=Ha.filter(vo=>vo=== ` \ r
2024-08-21 13:12:53 +08:00
` ).length,ro=Ha.length-_o;return _o>ro? ` \ r
` : `
2024-08-24 19:24:09 +08:00
` };Ia.exports=xa,Ia.exports.graceful=Na=>typeof Na=="string"&&xa(Na)|| `
2024-08-25 11:35:35 +08:00
` }}),Io=ps({"node_modules/jest-docblock/build/index.js"(Mn){As(),Object.defineProperty(Mn,"__esModule",{value:!0}),Mn.extract=fa,Mn.parse=xo,Mn.parseWithComments=cs,Mn.print=ss,Mn.strip=ko;function Ia(){let Us=Vo();return Ia=function(){return Us},Us}function xa(){let Us=Na(pu());return xa=function(){return Us},Us}function Na(Us){return Us&&Us.__esModule?Us:{default:Us}}var Ha=/ \* \/ $ /,_o=/^ \/ \* \* ?/,ro=/^ \s *( \/ \* \* ?(.| \r ? \n )*? \* \/ )/,vo=/(^| \s +) \/ \/ ([^ \r \n ]*)/g,za=/^( \r ? \n )+/,fo=/(?:^| \r ? \n ) *(@[^ \r \n ]*?) * \r ? \n *(?![^@ \r \n ]* \/ \/ [^]*)([^@ \r \n \s ][^@ \r \n ]+?) * \r ? \n /g,zn=/(?:^| \r ? \n ) *@( \S +) *([^ \r \n ]*)/g,Sn=/( \r ? \n |^) * \* ?/g,ka=[];function fa(Us){let Ws=Us.match(ro);return Ws?Ws[0].trimLeft():""}function ko(Us){let Ws=Us.match(ro);return Ws&&Ws[0]?Us.substring(Ws[0].length):Us}function xo(Us){return cs(Us).pragmas}function cs(Us){let Ws=(0,xa().default)(Us)||Ia().EOL;Us=Us.replace(_o,"").replace(Ha,"").replace(Sn," $ 1");let al="";for(;al!==Us;)al=Us,Us=Us.replace(fo, ` $ { Ws } $1 $2$ { Ws } ` );Us=Us.replace(za,"").trimRight();let Du=Object.create(null),Ku=Us.replace(zn,"").replace(za,"").trimRight(),pc;for(;pc=zn.exec(Us);){let Pc=pc[2].replace(vo,"");typeof Du[pc[1]]=="string"||Array.isArray(Du[pc[1]])?Du[pc[1]]=ka.concat(Du[pc[1]],Pc):Du[pc[1]]=Pc}return{comments:Ku,pragmas:Du}}function ss(Us){let{comments:Ws="",pragmas:al={}}=Us,Du=(0,xa().default)(Ws)||Ia().EOL,Ku="/**",pc=" *",Pc=" */",Bc=Object.keys(al),Vc=Bc.map(Mc=>No(Mc,al[Mc])).reduce((Mc,Lu)=>Mc.concat(Lu),[]).map(Mc=> ` $ { pc } $ { Mc } $ { Du } ` ).join("");if(!Ws){if(Bc.length===0)return"";if(Bc.length===1&&!Array.isArray(al[Bc[0]])){let Mc=al[Bc[0]];return ` $ { Ku } $ { No ( Bc [ 0 ] , Mc ) [ 0 ] } $ { Pc } ` }}let Lc=Ws.split(Du).map(Mc=> ` $ { pc } $ { Mc } ` ).join(Du)+Du;return Ku+Du+(Ws?Lc:"")+(Ws&&Bc.length?pc+Du:"")+Vc+Pc}function No(Us,Ws){return ka.concat(Ws).map(al=> ` @ $ { Us } $ { al } ` .trim())}}}),yu=ps({"src/common/end-of-line.js"(Mn,Ia){As();function xa(ro){let vo=ro.indexOf(" \r ");return vo>=0?ro.charAt(vo+1)=== `
2024-08-21 13:12:53 +08:00
` ?"crlf":"cr":"lf"}function Na(ro){switch(ro){case"cr":return" \r ";case"crlf":return ` \ r
` ;default:return `
` }}function Ha(ro,vo){let za;switch(vo){case `
` :za=/ \n /g;break;case" \r ":za=/ \r /g;break;case ` \ r
` :za=/ \r \n /g;break;default:throw new Error( ` Unexpected "eol" $ { JSON . stringify ( vo ) } . ` )}let fo=ro.match(za);return fo?fo.length:0}function _o(ro){return ro.replace(/ \r \n ?/g, `
2024-08-25 11:35:35 +08:00
` )}Ia.exports={guessEndOfLine:xa,convertEndOfLineToChars:Na,countEndOfLineChars:Ha,normalizeEndOfLine:_o}}}),Hl=ps({"src/language-js/utils/get-shebang.js"(Mn,Ia){As();function xa(Na){if(!Na.startsWith("#!"))return"";let Ha=Na.indexOf( `
` );return Ha===-1?Na:Na.slice(0,Ha)}Ia.exports=xa}}),lc=ps({"src/language-js/pragma.js"(Mn,Ia){As();var{parseWithComments:xa,strip:Na,extract:Ha,print:_o}=Io(),{normalizeEndOfLine:ro}=yu(),vo=Hl();function za(Sn){let ka=vo(Sn);ka&&(Sn=Sn.slice(ka.length+1));let fa=Ha(Sn),{pragmas:ko,comments:xo}=xa(fa);return{shebang:ka,text:Sn,pragmas:ko,comments:xo}}function fo(Sn){let ka=Object.keys(za(Sn).pragmas);return ka.includes("prettier")||ka.includes("format")}function zn(Sn){let{shebang:ka,text:fa,pragmas:ko,comments:xo}=za(Sn),cs=Na(fa),ss=_o({pragmas:Object.assign({format:""},ko),comments:xo.trimStart()});return(ka? ` $ { ka }
` :"")+ro(ss)+(cs.startsWith( `
2024-08-21 13:12:53 +08:00
` )? `
` : `
2024-08-25 11:35:35 +08:00
` )+cs}Ia.exports={hasPragma:fo,insertPragma:zn}}}),Vu=ps({"src/language-css/pragma.js"(Mn,Ia){As();var xa=lc(),Na= $ c();function Ha(ro){return xa.hasPragma(Na(ro).content)}function _o(ro){let{frontMatter:vo,content:za}=Na(ro);return(vo?vo.raw+ `
2024-08-21 13:12:53 +08:00
2024-08-25 11:35:35 +08:00
` :"")+xa.insertPragma(za)}Ia.exports={hasPragma:Ha,insertPragma:_o}}}),Ju=ps({"src/utils/text/skip.js"(Mn,Ia){As();function xa(vo){return(za,fo,zn)=>{let Sn=zn&&zn.backwards;if(fo===!1)return!1;let{length:ka}=za,fa=fo;for(;fa>=0&&fa<ka;){let ko=za.charAt(fa);if(vo instanceof RegExp){if(!vo.test(ko))return fa}else if(!vo.includes(ko))return fa;Sn?fa--:fa++}return fa===-1||fa===ka?fa:!1}}var Na=xa(/ \s /),Ha=xa(" "),_o=xa(",; "),ro=xa(/[^ \n \r ]/);Ia.exports={skipWhitespace:Na,skipSpaces:Ha,skipToLineEnd:_o,skipEverythingButNewLine:ro}}}),kn=ps({"src/utils/line-column-to-index.js"(Mn,Ia){As(),Ia.exports=function(xa,Na){let Ha=0;for(let _o=0;_o<xa.line-1;++_o)Ha=Na.indexOf( `
` ,Ha)+1;return Ha+xa.column}}}),ns=ps({"src/language-css/loc.js"(Mn,Ia){As();var{skipEverythingButNewLine:xa}=Ju(),Na=ju(),Ha=kn();function _o(fa,ko){return typeof fa.sourceIndex=="number"?fa.sourceIndex:fa.source?Ha(fa.source.start,ko)-1:null}function ro(fa,ko){if(fa.type==="css-comment"&&fa.inline)return xa(ko,fa.source.startOffset);let xo=fa.nodes&&Na(fa.nodes);return xo&&fa.source&&!fa.source.end&&(fa=xo),fa.source&&fa.source.end?Ha(fa.source.end,ko):null}function vo(fa,ko){fa.source&&(fa.source.startOffset=_o(fa,ko),fa.source.endOffset=ro(fa,ko));for(let xo in fa){let cs=fa[xo];xo==="source"||!cs||typeof cs!="object"||(cs.type==="value-root"||cs.type==="value-unknown"?za(cs,fo(fa),cs.text||cs.value):vo(cs,ko))}}function za(fa,ko,xo){fa.source&&(fa.source.startOffset=_o(fa,xo)+ko,fa.source.endOffset=ro(fa,xo)+ko);for(let cs in fa){let ss=fa[cs];cs==="source"||!ss||typeof ss!="object"||za(ss,ko,xo)}}function fo(fa){let ko=fa.source.startOffset;return typeof fa.prop=="string"&&(ko+=fa.prop.length),fa.type==="css-atrule"&&typeof fa.name=="string"&&(ko+=1+fa.name.length+fa.raws.afterName.match(/^ \s *:? \s */)[0].length),fa.type!=="css-atrule"&&fa.raws&&typeof fa.raws.between=="string"&&(ko+=fa.raws.between.length),ko}function zn(fa){let ko="initial",xo="initial",cs,ss=!1,No=[];for(let Us=0;Us<fa.length;Us++){let Ws=fa[Us];switch(ko){case"initial":if(Ws==="'"){ko="single-quotes";continue}if(Ws==='"'){ko="double-quotes";continue}if((Ws==="u"||Ws==="U")&&fa.slice(Us,Us+4).toLowerCase()==="url("){ko="url",Us+=3;continue}if(Ws==="*"&&fa[Us-1]==="/"){ko="comment-block";continue}if(Ws==="/"&&fa[Us-1]==="/"){ko="comment-inline",cs=Us-1;continue}continue;case"single-quotes":if(Ws==="'"&&fa[Us-1]!==" \\ "&&(ko=xo,xo="initial"),Ws=== `
` ||Ws===" \r ")return fa;continue;case"double-quotes":if(Ws==='"'&&fa[Us-1]!==" \\ "&&(ko=xo,xo="initial"),Ws=== `
` ||Ws===" \r ")return fa;continue;case"url":if(Ws===")"&&(ko="initial"),Ws=== `
` ||Ws===" \r ")return fa;if(Ws==="'"){ko="single-quotes",xo="url";continue}if(Ws==='"'){ko="double-quotes",xo="url";continue}continue;case"comment-block":Ws==="/"&&fa[Us-1]==="*"&&(ko="initial");continue;case"comment-inline":(Ws==='"'||Ws==="'"||Ws==="*")&&(ss=!0),(Ws=== `
` ||Ws===" \r ")&&(ss&&No.push([cs,Us]),ko="initial",ss=!1);continue}}for(let[Us,Ws]of No)fa=fa.slice(0,Us)+fa.slice(Us,Ws).replace(/["'*]/g," ")+fa.slice(Ws);return fa}function Sn(fa){return fa.source.startOffset}function ka(fa){return fa.source.endOffset}Ia.exports={locStart:Sn,locEnd:ka,calculateLoc:vo,replaceQuotesInInlineComments:zn}}}),Wl=ps({"src/utils/is-non-empty-array.js"(Mn,Ia){As();function xa(Na){return Array.isArray(Na)&&Na.length>0}Ia.exports=xa}}),Tu=ps({"src/language-css/utils/has-scss-interpolation.js"(Mn,Ia){As();var xa=Wl();function Na(Ha){if(xa(Ha)){for(let _o=Ha.length-1;_o>0;_o--)if(Ha[_o].type==="word"&&Ha[_o].value==="{"&&Ha[_o-1].type==="word"&&Ha[_o-1].value.endsWith("#"))return!0}return!1}Ia.exports=Na}}),_l=ps({"src/language-css/utils/has-string-or-function.js"(Mn,Ia){As();function xa(Na){return Na.some(Ha=>Ha.type==="string"||Ha.type==="func")}Ia.exports=xa}}),Hu=ps({"src/language-css/utils/is-less-parser.js"(Mn,Ia){As();function xa(Na){return Na.parser==="css"||Na.parser==="less"}Ia.exports=xa}}),Rc=ps({"src/language-css/utils/is-scss.js"(Mn,Ia){As();function xa(Na,Ha){return Na==="less"||Na==="scss"?Na==="scss":/(?: \w \s *: \s *[^:}]+|#){|@import[^ \n ]+(?:url|,)/.test(Ha)}Ia.exports=xa}}),ld=ps({"src/language-css/utils/is-scss-nested-property-node.js"(Mn,Ia){As();function xa(Na){return Na.selector?Na.selector.replace(/ \/ \* .*? \* \/ /,"").replace(/ \/ \/ .* \n /,"").trim().endsWith(":"):!1}Ia.exports=xa}}),hd=ps({"src/language-css/utils/is-scss-variable.js"(Mn,Ia){As();function xa(Na){return!!((Na==null?void 0:Na.type)==="word"&&Na.value.startsWith(" $ "))}Ia.exports=xa}}),yp=ps({"src/language-css/utils/stringify-node.js"(Mn,Ia){As();function xa(Na){var Ha,_o,ro;if(Na.groups){var vo,za,fo;let ss=((vo=Na.open)===null||vo===void 0?void 0:vo.value)||"",No=Na.groups.map(Ws=>xa(Ws)).join(((za=Na.groups[0])===null||za===void 0?void 0:za.type)==="comma_group"?",":""),Us=((fo=Na.close)===null||fo===void 0?void 0:fo.value)||"";return ss+No+Us}let zn=((Ha=Na.raws)===null||Ha===void 0?void 0:Ha.before)||"",Sn=((_o=Na.raws)===null||_o===void 0?void 0:_o.quote)||"",ka=Na.type==="atword"?"@":"",fa=Na.value||"",ko=Na.unit||"",xo=Na.group?xa(Na.group):"",cs=((ro=Na.raws)===null||ro===void 0?void 0:ro.after)||"";return zn+Sn+ka+fa+Sn+ko+xo+cs}Ia.exports=xa}}),fp=ps({"src/language-css/utils/is-module-rule-name.js"(Mn,Ia){As();var xa=new Set(["import","use","forward"]);function Na(Ha){return xa.has(Ha)}Ia.exports=Na}}),kc=ps({"node_modules/postcss-values-parser/lib/node.js"(Mn,Ia){As();var xa=function(Na,Ha){let _o=new Na.constructor;for(let ro in Na){if(!Na.hasOwnProperty(ro))continue;let vo=Na[ro],za=typeof vo;ro==="parent"&&za==="object"?Ha&&(_o[ro]=Ha):ro==="source"?_o[ro]=vo:vo instanceof Array?_o[ro]=vo.map(fo=>xa(fo,_o)):ro!=="before"&&ro!=="after"&&ro!=="between"&&ro!=="semicolon"&&(za==="object"&&vo!==null&&(vo=xa(vo)),_o[ro]=vo)}return _o};Ia.exports=class{constructor(Na){Na=Na||{},this.raws={before:"",after:""};for(let Ha in Na)this[Ha]=Na[Ha]}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}toString(){return[this.raws.before,String(this.value),this.raws.after].join("")}clone(Na){Na=Na||{};let Ha=xa(this);for(let _o in Na)Ha[_o]=Na[_o];return Ha}cloneBefore(Na){Na=Na||{};let Ha=this.clone(Na);return this.parent.insertBefore(this,Ha),Ha}cloneAfter(Na){Na=Na||{};let Ha=this.clone(Na);return this.parent.insertAfter(this,Ha),Ha}replaceWith(){let Na=Array.prototype.slice.call(arguments);if(this.parent){for(let Ha of Na)this.parent.insertBefore(this,Ha);this.remove()}return this}moveTo(Na){return this.cleanRaws(this.root()===Na.root()),this.remove(),Na.append(this),this}moveBefore(Na){return this.cleanRaws(this.root()===Na.root()),this.remove(),Na.parent.insertBefore(Na,this),this}moveAfter(Na){return this.cleanRaws(this.root()===Na.root()),this.remove(),Na.parent.insertAfter(Na,this),this}next(){let Na=this.parent.index(this);return this.parent.nodes[Na+1]}prev(){let Na=this.parent.index(this);return this.parent.nodes[Na-1]}toJSON(){let Na={};for(let Ha in this){if(!this.hasOwnProperty(
` ?(_o=1,ro+=1):_o+=1;return{line:ro,column:_o}}positionBy(Na){let Ha=this.source.start;if(Object(Na).index)Ha=this.positionInside(Na.index);else if(Object(Na).word){let _o=this.toString().indexOf(Na.word);_o!==-1&&(Ha=this.positionInside(_o))}return Ha}}}}),qd=ps({"node_modules/postcss-values-parser/lib/container.js"(Mn,Ia){As();var xa=kc(),Na=class extends xa{constructor(Ha){super(Ha),this.nodes||(this.nodes=[])}push(Ha){return Ha.parent=this,this.nodes.push(Ha),this}each(Ha){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let _o=this.lastEach,ro,vo;if(this.indexes[_o]=0,!!this.nodes){for(;this.indexes[_o]<this.nodes.length&&(ro=this.indexes[_o],vo=Ha(this.nodes[ro],ro),vo!==!1);)this.indexes[_o]+=1;return delete this.indexes[_o],vo}}walk(Ha){return this.each((_o,ro)=>{let vo=Ha(_o,ro);return vo!==!1&&_o.walk&&(vo=_o.walk(Ha)),vo})}walkType(Ha,_o){if(!Ha||!_o)throw new Error("Parameters {type} and {callback} are required.");let ro=typeof Ha=="function";return this.walk((vo,za)=>{if(ro&&vo instanceof Ha||!ro&&vo.type===Ha)return _o.call(this,vo,za)})}append(Ha){return Ha.parent=this,this.nodes.push(Ha),this}prepend(Ha){return Ha.parent=this,this.nodes.unshift(Ha),this}cleanRaws(Ha){if(super.cleanRaws(Ha),this.nodes)for(let _o of this.nodes)_o.cleanRaws(Ha)}insertAfter(Ha,_o){let ro=this.index(Ha),vo;this.nodes.splice(ro+1,0,_o);for(let za in this.indexes)vo=this.indexes[za],ro<=vo&&(this.indexes[za]=vo+this.nodes.length);return this}insertBefore(Ha,_o){let ro=this.index(Ha),vo;this.nodes.splice(ro,0,_o);for(let za in this.indexes)vo=this.indexes[za],ro<=vo&&(this.indexes[za]=vo+this.nodes.length);return this}removeChild(Ha){Ha=this.index(Ha),this.nodes[Ha].parent=void 0,this.nodes.splice(Ha,1);let _o;for(let ro in this.indexes)_o=this.indexes[ro],_o>=Ha&&(this.indexes[ro]=_o-1);return this}removeAll(){for(let Ha of this.nodes)Ha.parent=void 0;return this.nodes=[],this}every(Ha){return this.nodes.every(Ha)}some(Ha){return this.nodes.some(Ha)}index(Ha){return typeof Ha=="number"?Ha:this.nodes.indexOf(Ha)}get first(){if(this.nodes)return this.nodes[0]}get last(){if(this.nodes)return this.nodes[this.nodes.length-1]}toString(){let Ha=this.nodes.map(String).join("");return this.value&&(Ha=this.value+Ha),this.raws.before&&(Ha=this.raws.before+Ha),this.raws.after&&(Ha+=this.raws.after),Ha}};Na.registerWalker=Ha=>{let _o="walk"+Ha.name;_o.lastIndexOf("s")!==_o.length-1&&(_o+="s"),!Na.prototype[_o]&&(Na.prototype[_o]=function(ro){return this.walkType(Ha,ro)})},Ia.exports=Na}}),od=ps({"node_modules/postcss-values-parser/lib/root.js"(Mn,Ia){As();var xa=qd();Ia.exports=class extends xa{constructor(Na){super(Na),this.type="root"}}}}),kp=ps({"node_modules/postcss-values-parser/lib/value.js"(Mn,Ia){As();var xa=qd();Ia.exports=class extends xa{constructor(Na){super(Na),this.type="value",this.unbalanced=0}}}}),Ap=ps({"node_modules/postcss-values-parser/lib/atword.js"(Mn,Ia){As();var xa=qd(),Na=class extends xa{constructor(Ha){super(Ha),this.type="atword"}toString(){return this.quoted&&this.raws.quote,[this.raws.before,"@",String.prototype.toString.call(this.value),this.raws.after].join("")}};xa.registerWalker(Na),Ia.exports=Na}}),xf=ps({"node_modules/postcss-values-parser/lib/colon.js"(Mn,Ia){As();var xa=qd(),Na=kc(),Ha=class extends Na{constructor(_o){super(_o),this.type="colon"}};xa.registerWalker(Ha),Ia.exports=Ha}}),kf=ps({"node_modules/postcss-values-parser/lib/comma.js"(Mn,Ia){As();var xa=qd(),Na=kc(),Ha=class extends Na{constructor(_o){super(_o),this.type="comma"}};xa.registerWalker(Ha),Ia.exports=Ha}}),pf=ps({"node_modules/postcss-values-parser/lib/comment.js"(Mn,Ia){As();var xa=qd(),Na=kc(),Ha=class extends Na{constructor(_o){super(_o),this.type="comment",this.inline=Object(_o).inline||!1}toString(){return[this.raws.before,this.inline?"//":"/*",String(this.value),this.inline?"":"*/",this.raws.after].join("")}};xa.registerWalker(Ha),Ia.exports=Ha}}),Mp=ps({"node_modules/postcss-values-parser/lib/function.js"(Mn,Ia){As();var xa=qd(),Na=class extends xa{constructor(Ha){super(Ha),this.type="func",th
2024-08-21 13:12:53 +08:00
` )>-1&&(_o?vo=vo.split( `
` ).map(function(fo){return" "+fo}).join( `
` ).substr(2):vo= `
` +vo.split( `
` ).map(function(fo){return" "+fo}).join( `
2024-08-25 11:35:35 +08:00
` ))):vo=Mn.stylize("[Circular]","special")),cp(ro)){if(_o&&Ha.match(/^ \d + $ /))return vo;ro=JSON.stringify(""+Ha),ro.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)" $ /)?(ro=ro.substr(1,ro.length-2),ro=Mn.stylize(ro,"name")):(ro=ro.replace(/'/g," \\ '").replace(/ \\ "/g,'"').replace(/(^"|" $ )/g,"'"),ro=Mn.stylize(ro,"string"))}return ro+": "+vo}function $ h(Mn,Ia,xa){var Na=0,Ha=Mn.reduce(function(_o,ro){return Na++,ro.indexOf( `
2024-08-24 19:24:09 +08:00
` )>=0&&Na++,_o+ro.replace(/ \u 001b \[ \d \d ?m/g,"").length+1},0);return Ha>60?xa[0]+(Ia===""?"":Ia+ `
2024-08-21 13:12:53 +08:00
` )+" "+Mn.join( ` ,
2024-08-25 11:35:35 +08:00
` )+" "+xa[1]:xa[0]+Ia+" "+Mn.join(", ")+" "+xa[1]}function Km(Mn){return Array.isArray(Mn)}function hh(Mn){return typeof Mn=="boolean"}function Sm(Mn){return Mn===null}function Tm(Mn){return Mn==null}function im(Mn){return typeof Mn=="number"}function vf(Mn){return typeof Mn=="string"}function Ym(Mn){return typeof Mn=="symbol"}function cp(Mn){return Mn===void 0}function Kf(Mn){return Vp(Mn)&&sm(Mn)==="[object RegExp]"}function Vp(Mn){return typeof Mn=="object"&&Mn!==null}function tf(Mn){return Vp(Mn)&&sm(Mn)==="[object Date]"}function Yf(Mn){return Vp(Mn)&&(sm(Mn)==="[object Error]"||Mn instanceof Error)}function Cm(Mn){return typeof Mn=="function"}function jh(Mn){return Mn===null||typeof Mn=="boolean"||typeof Mn=="number"||typeof Mn=="string"||typeof Mn=="symbol"||typeof Mn>"u"}function Df(Mn){return Buffer $ 2.isBuffer(Mn)}function sm(Mn){return Object.prototype.toString.call(Mn)}function $ m(Mn){return Mn<10?"0"+Mn.toString(10):Mn.toString(10)}function bf(){var Mn=new Date,Ia=[ $ m(Mn.getHours()), $ m(Mn.getMinutes()), $ m(Mn.getSeconds())].join(":");return[Mn.getDate(),Rh[Mn.getMonth()],Ia].join(" ")}function Fh(){console.log("%s - %s",bf(),Wm.apply(null,arguments))}function Uh(Mn,Ia){if(!Ia||!Vp(Ia))return Mn;for(var xa=Object.keys(Ia),Na=xa.length;Na--;)Mn[xa[Na]]=Ia[xa[Na]];return Mn}function gh(Mn,Ia){return Object.prototype.hasOwnProperty.call(Mn,Ia)}var bh,Dp,Yp,Rh,Vh,r0=Ds({"node-modules-polyfills:util"(){As(), $ f(),sp(),bh=/%[sdj%]/g,Dp={},Bp.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},Bp.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},Rh=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],Vh={inherits:qm,_extend:Uh,log:Fh,isBuffer:Df,isPrimitive:jh,isFunction:Cm,isError:Yf,isDate:tf,isObject:Vp,isRegExp:Kf,isUndefined:cp,isSymbol:Ym,isString:vf,isNumber:im,isNullOrUndefined:Tm,isNull:Sm,isBoolean:hh,isArray:Km,inspect:Bp,deprecate:Dh,format:Wm,debuglog:Lm}}}),Xm=ps({"node-modules-polyfills-commonjs:util"(Mn,Ia){As();var xa=(r0(),Ou(Wf));if(xa&&xa.default){Ia.exports=xa.default;for(let Na in xa)Ia.exports[Na]=xa[Na]}else xa&&(Ia.exports=xa)}}),jf=ps({"node_modules/postcss-values-parser/lib/errors/TokenizeError.js"(Mn,Ia){As();var xa=class extends Error{constructor(Na){super(Na),this.name=this.constructor.name,this.message=Na||"An error ocurred while tokzenizing.",typeof Error.captureStackTrace=="function"?Error.captureStackTrace(this,this.constructor):this.stack=new Error(Na).stack}};Ia.exports=xa}}),Hh=ps({"node_modules/postcss-values-parser/lib/tokenize.js"(Mn,Ia){As();var xa=123,Na=125,Ha=40,_o=41,ro=39,vo=34,za=92,fo=47,zn=46,Sn=44,ka=58,fa=42,ko=45,xo=43,cs=35,ss=10,No=32,Us=12,Ws=9,al=13,Du=64,Ku=101,pc=69,Pc=48,Bc=57,Vc=117,Lc=85,Mc=/[ \n \t \r \{ \( \) '" \\ ;,/]/g,Lu=/[ \n \t \r \( \) \{ \} \* :;@!&'" \+ \| ~>, \[ \] \\ ]| \/ (?= \* )/g,_u=/[ \n \t \r \( \) \{ \} \* :;@!&'" \- \+ \| ~>, \[ \] \\ ]| \/ /g, $ u=/^[a-z0-9]/i,gu=/^[a-f0-9? \- ]/i,_p=Xm(),Md=jf();Ia.exports=function(Kd,Td){Td=Td||{};let id=[],_c=Kd.valueOf(),zc=_c.length,Gc=-1,Qc=1,rl=0,Ml=0,du=null,Qu,Qs,Nc,gc,jp,pp,Zd,Rf,lf,Tp,rd;function vp(Np){let Cp=_p.format("Unclosed %s at line: %d, column: %d, token: %d",Np,Qc,rl-Gc,rl);throw new Md(Cp)}for(;rl<zc;){switch(Qu=_c.charCodeAt(rl),Qu===ss&&(Gc=rl,Qc+=1),Qu){case ss:case No:case Ws:case al:case Us:Qs=rl;do Qs+=1,Qu=_c.charCodeAt(Qs),Qu===ss&&(Gc=Qs,Qc+=1);while(Qu===No||Qu===ss||Qu===Ws||Qu===al||Qu===Us);id.push(["space",_c.slice(rl,Qs),Qc,rl-Gc,Qc,Qs-Gc,rl]),rl=Qs-1;break;case ka:Qs=rl+1,id.push(["colon",_c.slice(rl,Qs),Qc,rl-Gc,Qc,Qs-Gc,rl]),rl=Qs-1;break;case Sn:Qs=rl+1,id.push(["comma",_c.slice(rl,Qs),Qc,rl-Gc,Qc,Qs-Gc,rl]),rl=Qs-1;break;case xa:id.push(["{","{",Qc,rl-Gc,Qc,Qs-Gc,rl]);break;case Na:id.push(["}","}",Qc,rl-Gc,Qc,Qs-Gc,rl]);break;case Ha:Ml++,du=!du&&Ml===1&&id.length>0&&id[id.length-1][0]==="word"&&id[id.length-1][1]==="url",id.push(["(","(",Qc,rl-Gc,Qc,Qs-Gc,rl]);break;case
` ,rl+2);Qs=Np!==-1?Np-1:zc}pp=_c.slice(rl,Qs+1),gc=pp.split( `
` ),jp=gc.length-1,jp>0?(Zd=Qc+jp,Rf=Qs-gc[jp].length):(Zd=Qc,Rf=Gc),id.push(["comment",pp,Qc,rl-Gc,Zd,Qs-Rf,rl]),Gc=Rf,Qc=Zd,rl=Qs}else if(Qu===cs&&! $ u.test(_c.slice(rl+1,rl+2)))Qs=rl+1,id.push(["#",_c.slice(rl,Qs),Qc,rl-Gc,Qc,Qs-Gc,rl]),rl=Qs-1;else if((Qu===Vc||Qu===Lc)&&_c.charCodeAt(rl+1)===xo){Qs=rl+2;do Qs+=1,Qu=_c.charCodeAt(Qs);while(Qs<zc&&gu.test(_c.slice(Qs,Qs+1)));id.push(["unicoderange",_c.slice(rl,Qs),Qc,rl-Gc,Qc,Qs-Gc,rl]),rl=Qs-1}else if(Qu===fo)Qs=rl+1,id.push(["operator",_c.slice(rl,Qs),Qc,rl-Gc,Qc,Qs-Gc,rl]),rl=Qs-1;else{let Np=Lu;if(Qu>=Pc&&Qu<=Bc&&(Np=_u),Np.lastIndex=rl+1,Np.test(_c),Np.lastIndex===0?Qs=_c.length-1:Qs=Np.lastIndex-2,Np===_u||Qu===zn){let Cp=_c.charCodeAt(Qs),n0=_c.charCodeAt(Qs+1),c0=_c.charCodeAt(Qs+2);(Cp===Ku||Cp===pc)&&(n0===ko||n0===xo)&&c0>=Pc&&c0<=Bc&&(_u.lastIndex=Qs+2,_u.test(_c),_u.lastIndex===0?Qs=_c.length-1:Qs=_u.lastIndex-2)}id.push(["word",_c.slice(rl,Qs+1),Qc,rl-Gc,Qc,Qs-Gc,rl]),rl=Qs}break}rl++}return id}}}),zh=ps({"node_modules/flatten/index.js"(Mn,Ia){As(),Ia.exports=function(xa,Na){if(Na=typeof Na=="number"?Na:1/0,!Na)return Array.isArray(xa)?xa.map(function(_o){return _o}):xa;return Ha(xa,1);function Ha(_o,ro){return _o.reduce(function(vo,za){return Array.isArray(za)&&ro<Na?vo.concat(Ha(za,ro+1)):vo.concat(za)},[])}}}}),Jm=ps({"node_modules/indexes-of/index.js"(Mn,Ia){As(),Ia.exports=function(xa,Na){for(var Ha=-1,_o=[];(Ha=xa.indexOf(Na,Ha+1))!==-1;)_o.push(Ha);return _o}}}),Op=ps({"node_modules/uniq/uniq.js"(Mn,Ia){As();function xa(_o,ro){for(var vo=1,za=_o.length,fo=_o[0],zn=_o[0],Sn=1;Sn<za;++Sn)if(zn=fo,fo=_o[Sn],ro(fo,zn)){if(Sn===vo){vo++;continue}_o[vo++]=fo}return _o.length=vo,_o}function Na(_o){for(var ro=1,vo=_o.length,za=_o[0],fo=_o[0],zn=1;zn<vo;++zn,fo=za)if(fo=za,za=_o[zn],za!==fo){if(zn===ro){ro++;continue}_o[ro++]=za}return _o.length=ro,_o}function Ha(_o,ro,vo){return _o.length===0?_o:ro?(vo||_o.sort(ro),xa(_o,ro)):(vo||_o.sort(),Na(_o))}Ia.exports=Ha}}),Qh=ps({"node_modules/postcss-values-parser/lib/errors/ParserError.js"(Mn,Ia){As();var xa=class extends Error{constructor(Na){super(Na),this.name=this.constructor.name,this.message=Na||"An error ocurred while parsing.",typeof Error.captureStackTrace=="function"?Error.captureStackTrace(this,this.constructor):this.stack=new Error(Na).stack}};Ia.exports=xa}}),kh=ps({"node_modules/postcss-values-parser/lib/parser.js"(Mn,Ia){As();var xa=od(),Na=kp(),Ha=Ap(),_o=xf(),ro=kf(),vo=pf(),za=Mp(),fo=hm(),zn=If(),Sn=Cc(),ka=Nf(),fa=xp(),ko=mf(),xo=Hh(),cs=zh(),ss=Jm(),No=Op(),Us=Qh();function Ws(al){return al.sort((Du,Ku)=>Du-Ku)}Ia.exports=class{constructor(al,Du){let Ku={loose:!1};this.cache=[],this.input=al,this.options=Object.assign({},Ku,Du),this.position=0,this.unbalanced=0,this.root=new xa;let pc=new Na;this.root.append(pc),this.current=pc,this.tokens=xo(al,this.options)}parse(){return this.loop()}colon(){let al=this.currToken;this.newNode(new _o({value:al[1],source:{start:{line:al[2],column:al[3]},end:{line:al[4],column:al[5]}},sourceIndex:al[6]})),this.position++}comma(){let al=this.currToken;this.newNode(new ro({value:al[1],source:{start:{line:al[2],column:al[3]},end:{line:al[4],column:al[5]}},sourceIndex:al[6]})),this.position++}comment(){let al=!1,Du=this.currToken[1].replace(/ \/ \* | \* \/ /g,""),Ku;this.options.loose&&Du.startsWith("//")&&(Du=Du.substring(2),al=!0),Ku=new vo({value:Du,inline:al,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(Ku),this.position++}error(al,Du){throw new Us(al+ ` at line : $ { Du [ 2 ] } , column $ { Du [ 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 al=this.currToken[1],Du;if(al==="+"||al==="-"){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.cu
` ),Md=_p.length-1,Md>0?(id=Ml+Md,_c= $ u-_p[Md].length):(id=Ml,_c=rl),Mc.push(["comment",Kd,Ml,du-rl,id, $ u-_c,du]),rl=_c,Ml=id,du= $ u):(Bc.lastIndex=du+1,Bc.test(Lu),Bc.lastIndex===0? $ u=Lu.length-1: $ u=Bc.lastIndex-2,Mc.push(["word",Lu.slice(du, $ u+1),Ml,du-rl,Ml, $ u-rl,du]),du= $ u);break}du++}return Mc}Ia.exports=Mn.default}}),kd=ps({"node_modules/postcss-selector-parser/dist/parser.js"(Mn,Ia){As(),Mn.__esModule=!0;var xa=function(){function rl(Ml,du){for(var Qu=0;Qu<du.length;Qu++){var Qs=du[Qu];Qs.enumerable=Qs.enumerable||!1,Qs.configurable=!0,"value"in Qs&&(Qs.writable=!0),Object.defineProperty(Ml,Qs.key,Qs)}}return function(Ml,du,Qu){return du&&rl(Ml.prototype,du),Qu&&rl(Ml,Qu),Ml}}(),Na=zh(),Ha=zc(Na),_o=Jm(),ro=zc(_o),vo=Op(),za=zc(vo),fo=bc(),zn=zc(fo),Sn=wc(),ka=zc(Sn),fa=Ep(),ko=zc(fa),xo=Wd(),cs=zc(xo),ss=Zm(),No=zc(ss),Us=Jh(),Ws=zc(Us),al=yf(),Du=zc(al),Ku=Ff(),pc=zc(Ku),Pc=wm(),Bc=zc(Pc),Vc=Ef(),Lc=zc(Vc),Mc=Xf(),Lu=zc(Mc),_u=jm(), $ u=zc(_u),gu=Od(),_p=zc(gu),Md=Zh(),Kd=zc(Md),Td=cu(),id=_c(Td);function _c(rl){if(rl&&rl.__esModule)return rl;var Ml={};if(rl!=null)for(var du in rl)Object.prototype.hasOwnProperty.call(rl,du)&&(Ml[du]=rl[du]);return Ml.default=rl,Ml}function zc(rl){return rl&&rl.__esModule?rl:{default:rl}}function Gc(rl,Ml){if(!(rl instanceof Ml))throw new TypeError("Cannot call a class as a function")}var Qc=function(){function rl(Ml){Gc(this,rl),this.input=Ml,this.lossy=Ml.options.lossless===!1,this.position=0,this.root=new zn.default;var du=new ka.default;return this.root.append(du),this.current=du,this.lossy?this.tokens=(0,Kd.default)({safe:Ml.safe,css:Ml.css.trim()}):this.tokens=(0,Kd.default)(Ml),this.loop()}return rl.prototype.attribute=function(){var Ml="",du=void 0,Qu=this.currToken;for(this.position++;this.position<this.tokens.length&&this.currToken[0]!=="]";)Ml+=this.tokens[this.position][1],this.position++;this.position===this.tokens.length&&!~Ml.indexOf("]")&&this.error("Expected a closing square bracket.");var Qs=Ml.split(/((?:[*~^ $ |]?=))([^]*)/),Nc=Qs[0].split(/( \| )/g),gc={operator:Qs[1],value:Qs[2],source:{start:{line:Qu[2],column:Qu[3]},end:{line:this.currToken[2],column:this.currToken[3]}},sourceIndex:Qu[4]};if(Nc.length>1?(Nc[0]===""&&(Nc[0]=!0),gc.attribute=this.parseValue(Nc[2]),gc.namespace=this.parseNamespace(Nc[0])):gc.attribute=this.parseValue(Qs[0]),du=new Bc.default(gc),Qs[2]){var jp=Qs[2].split(/( \s +i \s *?) $ /),pp=jp[0].trim();du.value=this.lossy?pp:jp[0],jp[1]&&(du.insensitive=!0,this.lossy||(du.raws.insensitive=jp[1])),du.quoted=pp[0]==="'"||pp[0]==='"',du.raws.unquoted=du.quoted?pp.slice(1,-1):pp}this.newNode(du),this.position++},rl.prototype.combinator=function(){if(this.currToken[1]==="|")return this.namespace();for(var Ml=new Lu.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"?(Ml.spaces.before=this.parseSpace(this.currToken[1]),Ml.source.start.line=this.nextToken[2],Ml.source.start.column=this.nextToken[3],Ml.source.end.column=this.nextToken[3],Ml.source.end.line=this.nextToken[2],Ml.sourceIndex=this.nextToken[4]):this.prevToken&&this.prevToken[0]==="combinator"?Ml.spaces.after=this.parseSpace(this.currToken[1]):this.currToken[0]==="combinator"?Ml.value=this.currToken[1]:this.currToken[0]==="space"&&(Ml.value=this.parseSpace(this.currToken[1]," ")),this.position++;return this.newNode(Ml)},rl.prototype.comma=function(){if(this.position===this.tokens.length-1){this.root.trailingComma=!0,this.position++;return}var Ml=new ka.default;this.current.parent.append(Ml),this.current=Ml,this.position++},rl.prototype.comment=function(){var Ml=new cs.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(Ml),this.position++},rl.prototype.error=function(Ml){throw n
` +_u+Pc("^")}return" "+Bc(Lu)+Vc}).join( `
` )},ss.toString=function(){var No=this.showSourceCode();return No&&(No= `
2024-08-21 13:12:53 +08:00
` +No+ `
2024-08-25 11:35:35 +08:00
` ),this.name+": "+this.message+No},cs}(vo(Error)),ko=fa;Mn.default=ko,Ia.exports=Mn.default}}),Ks=ps({"node_modules/postcss/lib/previous-map.js"(Mn,Ia){As(),Ia.exports=class{}}}),js=ps({"node_modules/postcss/lib/input.js"(Mn,Ia){As(),Mn.__esModule=!0,Mn.default=void 0;var xa=_o( $ o()),Na=_o(Bs()),Ha=_o(Ks());function _o(Sn){return Sn&&Sn.__esModule?Sn:{default:Sn}}function ro(Sn,ka){for(var fa=0;fa<ka.length;fa++){var ko=ka[fa];ko.enumerable=ko.enumerable||!1,ko.configurable=!0,"value"in ko&&(ko.writable=!0),Object.defineProperty(Sn,ko.key,ko)}}function vo(Sn,ka,fa){return ka&&ro(Sn.prototype,ka),Sn}var za=0,fo=function(){function Sn(fa,ko){if(ko===void 0&&(ko={}),fa===null||typeof fa>"u"||typeof fa=="object"&&!fa.toString)throw new Error("PostCSS received "+fa+" instead of CSS string");this.css=fa.toString(),this.css[0]===" \u FEFF"||this.css[0]===""?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,ko.from&&(/^ \w +: \/ \/ /.test(ko.from)||xa.default.isAbsolute(ko.from)?this.file=ko.from:this.file=xa.default.resolve(ko.from));var xo=new Ha.default(this.css,ko);if(xo.text){this.map=xo;var cs=xo.consumer().file;!this.file&&cs&&(this.file=this.mapResolve(cs))}this.file||(za+=1,this.id="<input css "+za+">"),this.map&&(this.map.file=this.from)}var ka=Sn.prototype;return ka.error=function(fa,ko,xo,cs){cs===void 0&&(cs={});var ss,No=this.origin(ko,xo);return No?ss=new Na.default(fa,No.line,No.column,No.source,No.file,cs.plugin):ss=new Na.default(fa,ko,xo,this.css,this.file,cs.plugin),ss.input={line:ko,column:xo,source:this.css},this.file&&(ss.input.file=this.file),ss},ka.origin=function(fa,ko){if(!this.map)return!1;var xo=this.map.consumer(),cs=xo.originalPositionFor({line:fa,column:ko});if(!cs.source)return!1;var ss={file:this.mapResolve(cs.source),line:cs.line,column:cs.column},No=xo.sourceContentFor(cs.source);return No&&(ss.source=No),ss},ka.mapResolve=function(fa){return/^ \w +: \/ \/ /.test(fa)?fa:xa.default.resolve(this.map.consumer().sourceRoot||".",fa)},vo(Sn,[{key:"from",get:function(){return this.file||this.id}}]),Sn}(),zn=fo;Mn.default=zn,Ia.exports=Mn.default}}),pl=ps({"node_modules/postcss/lib/stringifier.js"(Mn,Ia){As(),Mn.__esModule=!0,Mn.default=void 0;var xa={colon:": ",indent:" ",beforeDecl: `
2024-08-21 13:12:53 +08:00
` ,beforeRule: `
` ,beforeOpen:" ",beforeClose: `
` ,beforeComment: `
` ,after: `
2024-08-24 19:24:09 +08:00
` ,emptyBody:"",commentLeft:" ",commentRight:" ",semicolon:!1};function Na(ro){return ro[0].toUpperCase()+ro.slice(1)}var Ha=function(){function ro(za){this.builder=za}var vo=ro.prototype;return vo.stringify=function(za,fo){this[za.type](za,fo)},vo.root=function(za){this.body(za),za.raws.after&&this.builder(za.raws.after)},vo.comment=function(za){var fo=this.raw(za,"left","commentLeft"),zn=this.raw(za,"right","commentRight");this.builder("/*"+fo+za.text+zn+"*/",za)},vo.decl=function(za,fo){var zn=this.raw(za,"between","colon"),Sn=za.prop+zn+this.rawValue(za,"value");za.important&&(Sn+=za.raws.important||" !important"),fo&&(Sn+=";"),this.builder(Sn,za)},vo.rule=function(za){this.block(za,this.rawValue(za,"selector")),za.raws.ownSemicolon&&this.builder(za.raws.ownSemicolon,za,"end")},vo.atrule=function(za,fo){var zn="@"+za.name,Sn=za.params?this.rawValue(za,"params"):"";if(typeof za.raws.afterName<"u"?zn+=za.raws.afterName:Sn&&(zn+=" "),za.nodes)this.block(za,zn+Sn);else{var ka=(za.raws.between||"")+(fo?";":"");this.builder(zn+Sn+ka,za)}},vo.body=function(za){for(var fo=za.nodes.length-1;fo>0&&za.nodes[fo].type==="comment";)fo-=1;for(var zn=this.raw(za,"semicolon"),Sn=0;Sn<za.nodes.length;Sn++){var ka=za.nodes[Sn],fa=this.raw(ka,"before");fa&&this.builder(fa),this.stringify(ka,fo!==Sn||zn)}},vo.block=function(za,fo){var zn=this.raw(za,"between","beforeOpen");this.builder(fo+zn+"{",za,"start");var Sn;za.nodes&&za.nodes.length?(this.body(za),Sn=this.raw(za,"after")):Sn=this.raw(za,"after","emptyBody"),Sn&&this.builder(Sn),this.builder("}",za,"end")},vo.raw=function(za,fo,zn){var Sn;if(zn||(zn=fo),fo&&(Sn=za.raws[fo],typeof Sn<"u"))return Sn;var ka=za.parent;if(zn==="before"&&(!ka||ka.type==="root"&&ka.first===za))return"";if(!ka)return xa[zn];var fa=za.root();if(fa.rawCache||(fa.rawCache={}),typeof fa.rawCache[zn]<"u")return fa.rawCache[zn];if(zn==="before"||zn==="after")return this.beforeAfter(za,zn);var ko="raw"+Na(zn);return this[ko]?Sn=this[ko](fa,za):fa.walk(function(xo){if(Sn=xo.raws[fo],typeof Sn<"u")return!1}),typeof Sn>"u"&&(Sn=xa[zn]),fa.rawCache[zn]=Sn,Sn},vo.rawSemicolon=function(za){var fo;return za.walk(function(zn){if(zn.nodes&&zn.nodes.length&&zn.last.type==="decl"&&(fo=zn.raws.semicolon,typeof fo<"u"))return!1}),fo},vo.rawEmptyBody=function(za){var fo;return za.walk(function(zn){if(zn.nodes&&zn.nodes.length===0&&(fo=zn.raws.after,typeof fo<"u"))return!1}),fo},vo.rawIndent=function(za){if(za.raws.indent)return za.raws.indent;var fo;return za.walk(function(zn){var Sn=zn.parent;if(Sn&&Sn!==za&&Sn.parent&&Sn.parent===za&&typeof zn.raws.before<"u"){var ka=zn.raws.before.split( `
` );return fo=ka[ka.length-1],fo=fo.replace(/[^ \s ]/g,""),!1}}),fo},vo.rawBeforeComment=function(za,fo){var zn;return za.walkComments(function(Sn){if(typeof Sn.raws.before<"u")return zn=Sn.raws.before,zn.indexOf( `
2024-08-21 13:12:53 +08:00
` )!==-1&&(zn=zn.replace(/[^ \n ]+ $ /,"")),!1}),typeof zn>"u"?zn=this.raw(fo,null,"beforeDecl"):zn&&(zn=zn.replace(/[^ \s ]/g,"")),zn},vo.rawBeforeDecl=function(za,fo){var zn;return za.walkDecls(function(Sn){if(typeof Sn.raws.before<"u")return zn=Sn.raws.before,zn.indexOf( `
` )!==-1&&(zn=zn.replace(/[^ \n ]+ $ /,"")),!1}),typeof zn>"u"?zn=this.raw(fo,null,"beforeRule"):zn&&(zn=zn.replace(/[^ \s ]/g,"")),zn},vo.rawBeforeRule=function(za){var fo;return za.walk(function(zn){if(zn.nodes&&(zn.parent!==za||za.first!==zn)&&typeof zn.raws.before<"u")return fo=zn.raws.before,fo.indexOf( `
` )!==-1&&(fo=fo.replace(/[^ \n ]+ $ /,"")),!1}),fo&&(fo=fo.replace(/[^ \s ]/g,"")),fo},vo.rawBeforeClose=function(za){var fo;return za.walk(function(zn){if(zn.nodes&&zn.nodes.length>0&&typeof zn.raws.after<"u")return fo=zn.raws.after,fo.indexOf( `
2024-08-24 19:24:09 +08:00
` )!==-1&&(fo=fo.replace(/[^ \n ]+ $ /,"")),!1}),fo&&(fo=fo.replace(/[^ \s ]/g,"")),fo},vo.rawBeforeOpen=function(za){var fo;return za.walk(function(zn){if(zn.type!=="decl"&&(fo=zn.raws.between,typeof fo<"u"))return!1}),fo},vo.rawColon=function(za){var fo;return za.walkDecls(function(zn){if(typeof zn.raws.between<"u")return fo=zn.raws.between.replace(/[^ \s :]/g,""),!1}),fo},vo.beforeAfter=function(za,fo){var zn;za.type==="decl"?zn=this.raw(za,null,"beforeDecl"):za.type==="comment"?zn=this.raw(za,null,"beforeComment"):fo==="before"?zn=this.raw(za,null,"beforeRule"):zn=this.raw(za,null,"beforeClose");for(var Sn=za.parent,ka=0;Sn&&Sn.type!=="root";)ka+=1,Sn=Sn.parent;if(zn.indexOf( `
2024-08-25 11:35:35 +08:00
` )!==-1){var fa=this.raw(za,null,"indent");if(fa.length)for(var ko=0;ko<ka;ko++)zn+=fa}return zn},vo.rawValue=function(za,fo){var zn=za[fo],Sn=za.raws[fo];return Sn&&Sn.value===zn?Sn.raw:zn},ro}(),_o=Ha;Mn.default=_o,Ia.exports=Mn.default}}),is=ps({"node_modules/postcss/lib/stringify.js"(Mn,Ia){As(),Mn.__esModule=!0,Mn.default=void 0;var xa=Na(pl());function Na(ro){return ro&&ro.__esModule?ro:{default:ro}}function Ha(ro,vo){var za=new xa.default(vo);za.stringify(ro)}var _o=Ha;Mn.default=_o,Ia.exports=Mn.default}}),ol=ps({"node_modules/postcss/lib/node.js"(Mn,Ia){As(),Mn.__esModule=!0,Mn.default=void 0;var xa=_o(Bs()),Na=_o(pl()),Ha=_o(is());function _o(fo){return fo&&fo.__esModule?fo:{default:fo}}function ro(fo,zn){var Sn=new fo.constructor;for(var ka in fo)if(fo.hasOwnProperty(ka)){var fa=fo[ka],ko=typeof fa;ka==="parent"&&ko==="object"?zn&&(Sn[ka]=zn):ka==="source"?Sn[ka]=fa:fa instanceof Array?Sn[ka]=fa.map(function(xo){return ro(xo,Sn)}):(ko==="object"&&fa!==null&&(fa=ro(fa)),Sn[ka]=fa)}return Sn}var vo=function(){function fo(Sn){Sn===void 0&&(Sn={}),this.raws={};for(var ka in Sn)this[ka]=Sn[ka]}var zn=fo.prototype;return zn.error=function(Sn,ka){if(ka===void 0&&(ka={}),this.source){var fa=this.positionBy(ka);return this.source.input.error(Sn,fa.line,fa.column,ka)}return new xa.default(Sn)},zn.warn=function(Sn,ka,fa){var ko={node:this};for(var xo in fa)ko[xo]=fa[xo];return Sn.warn(ka,ko)},zn.remove=function(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this},zn.toString=function(Sn){Sn===void 0&&(Sn=Ha.default),Sn.stringify&&(Sn=Sn.stringify);var ka="";return Sn(this,function(fa){ka+=fa}),ka},zn.clone=function(Sn){Sn===void 0&&(Sn={});var ka=ro(this);for(var fa in Sn)ka[fa]=Sn[fa];return ka},zn.cloneBefore=function(Sn){Sn===void 0&&(Sn={});var ka=this.clone(Sn);return this.parent.insertBefore(this,ka),ka},zn.cloneAfter=function(Sn){Sn===void 0&&(Sn={});var ka=this.clone(Sn);return this.parent.insertAfter(this,ka),ka},zn.replaceWith=function(){if(this.parent){for(var Sn=arguments.length,ka=new Array(Sn),fa=0;fa<Sn;fa++)ka[fa]=arguments[fa];for(var ko=0,xo=ka;ko<xo.length;ko++){var cs=xo[ko];this.parent.insertBefore(this,cs)}this.remove()}return this},zn.next=function(){if(this.parent){var Sn=this.parent.index(this);return this.parent.nodes[Sn+1]}},zn.prev=function(){if(this.parent){var Sn=this.parent.index(this);return this.parent.nodes[Sn-1]}},zn.before=function(Sn){return this.parent.insertBefore(this,Sn),this},zn.after=function(Sn){return this.parent.insertAfter(this,Sn),this},zn.toJSON=function(){var Sn={};for(var ka in this)if(this.hasOwnProperty(ka)&&ka!=="parent"){var fa=this[ka];fa instanceof Array?Sn[ka]=fa.map(function(ko){return typeof ko=="object"&&ko.toJSON?ko.toJSON():ko}):typeof fa=="object"&&fa.toJSON?Sn[ka]=fa.toJSON():Sn[ka]=fa}return Sn},zn.raw=function(Sn,ka){var fa=new Na.default;return fa.raw(this,Sn,ka)},zn.root=function(){for(var Sn=this;Sn.parent;)Sn=Sn.parent;return Sn},zn.cleanRaws=function(Sn){delete this.raws.before,delete this.raws.after,Sn||delete this.raws.between},zn.positionInside=function(Sn){for(var ka=this.toString(),fa=this.source.start.column,ko=this.source.start.line,xo=0;xo<Sn;xo++)ka[xo]=== `
` ?(fa=1,ko+=1):fa+=1;return{line:ko,column:fa}},zn.positionBy=function(Sn){var ka=this.source.start;if(Sn.index)ka=this.positionInside(Sn.index);else if(Sn.word){var fa=this.toString().indexOf(Sn.word);fa!==-1&&(ka=this.positionInside(fa))}return ka},fo}(),za=vo;Mn.default=za,Ia.exports=Mn.default}}),Ts=ps({"node_modules/postcss/lib/comment.js"(Mn,Ia){As(),Mn.__esModule=!0,Mn.default=void 0;var xa=Na(ol());function Na(vo){return vo&&vo.__esModule?vo:{default:vo}}function Ha(vo,za){vo.prototype=Object.create(za.prototype),vo.prototype.constructor=vo,vo.__proto__=za}var _o=function(vo){Ha(za,vo);function za(fo){var zn;return zn=vo.call(this,fo)||this,zn.type="comment",zn}return za}(xa.default),ro=_o;Mn.default=ro,Ia.exports=Mn.default}}),Cs=ps({"node_modules/postcss/lib/declaration.js"(Mn,Ia){As(),Mn.__esModule=!0,Mn.default=void 0;var xa=Na(ol());function Na(vo){return vo&&vo.__esModule?vo:{default:vo}}function Ha(vo,za){vo.prototype=Object.create(za.prototype),vo.prototype.constructor=vo,vo.__proto__=za}var _o=function(vo){Ha(za,vo);function za(fo){var zn;return zn=vo.call(this,fo)||this,zn.type="decl",zn}return za}(xa.default),ro=_o;Mn.default=ro,Ia.exports=Mn.default}}),Ns=ps({"node_modules/postcss/lib/tokenize.js"(Mn,Ia){As(),Mn.__esModule=!0,Mn.default=Pc;var xa=39,Na=34,Ha=92,_o=47,ro=10,vo=32,za=12,fo=9,zn=13,Sn=91,ka=93,fa=40,ko=41,xo=123,cs=125,ss=59,No=42,Us=58,Ws=64,al=/[ \n \t \r \f {}()'" \\ ;/[ \] #]/g,Du=/[ \n \t \r \f (){}:;@!'" \\ \] [#]| \/ (?= \* )/g,Ku=/.[ \\ /("' \n ]/,pc=/[a-f0-9]/i;function Pc(Bc,Vc){Vc===void 0&&(Vc={});var Lc=Bc.css.valueOf(),Mc=Vc.ignoreErrors,Lu,_u, $ u,gu,_p,Md,Kd,Td,id,_c,zc,Gc,Qc,rl,Ml=Lc.length,du=-1,Qu=1,Qs=0,Nc=[],gc=[];function jp(){return Qs}function pp(Tp){throw Bc.error("Unclosed "+Tp,Qu,Qs-du)}function Zd(){return gc.length===0&&Qs>=Ml}function Rf(Tp){if(gc.length)return gc.pop();if(!(Qs>=Ml)){var rd=Tp?Tp.ignoreUnclosed:!1;switch(Lu=Lc.charCodeAt(Qs),(Lu===ro||Lu===za||Lu===zn&&Lc.charCodeAt(Qs+1)!==ro)&&(du=Qs,Qu+=1),Lu){case ro:case vo:case fo:case zn:case za:_u=Qs;do _u+=1,Lu=Lc.charCodeAt(_u),Lu===ro&&(du=_u,Qu+=1);while(Lu===vo||Lu===ro||Lu===fo||Lu===zn||Lu===za);rl=["space",Lc.slice(Qs,_u)],Qs=_u-1;break;case Sn:case ka:case xo:case cs:case Us:case ss:case ko:var vp=String.fromCharCode(Lu);rl=[vp,vp,Qu,Qs-du];break;case fa:if(Gc=Nc.length?Nc.pop()[1]:"",Qc=Lc.charCodeAt(Qs+1),Gc==="url"&&Qc!==xa&&Qc!==Na&&Qc!==vo&&Qc!==ro&&Qc!==fo&&Qc!==za&&Qc!==zn){_u=Qs;do{if(_c=!1,_u=Lc.indexOf(")",_u+1),_u===-1)if(Mc||rd){_u=Qs;break}else pp("bracket");for(zc=_u;Lc.charCodeAt(zc-1)===Ha;)zc-=1,_c=!_c}while(_c);rl=["brackets",Lc.slice(Qs,_u+1),Qu,Qs-du,Qu,_u-du],Qs=_u}else _u=Lc.indexOf(")",Qs+1),Md=Lc.slice(Qs,_u+1),_u===-1||Ku.test(Md)?rl=["(","(",Qu,Qs-du]:(rl=["brackets",Md,Qu,Qs-du,Qu,_u-du],Qs=_u);break;case xa:case Na: $ u=Lu===xa?"'":'"',_u=Qs;do{if(_c=!1,_u=Lc.indexOf( $ u,_u+1),_u===-1)if(Mc||rd){_u=Qs+1;break}else pp("string");for(zc=_u;Lc.charCodeAt(zc-1)===Ha;)zc-=1,_c=!_c}while(_c);Md=Lc.slice(Qs,_u+1),gu=Md.split( `
` ),_p=gu.length-1,_p>0?(Td=Qu+_p,id=_u-gu[_p].length):(Td=Qu,id=du),rl=["string",Lc.slice(Qs,_u+1),Qu,Qs-du,Td,_u-id],du=id,Qu=Td,Qs=_u;break;case Ws:al.lastIndex=Qs+1,al.test(Lc),al.lastIndex===0?_u=Lc.length-1:_u=al.lastIndex-2,rl=["at-word",Lc.slice(Qs,_u+1),Qu,Qs-du,Qu,_u-du],Qs=_u;break;case Ha:for(_u=Qs,Kd=!0;Lc.charCodeAt(_u+1)===Ha;)_u+=1,Kd=!Kd;if(Lu=Lc.charCodeAt(_u+1),Kd&&Lu!==_o&&Lu!==vo&&Lu!==ro&&Lu!==fo&&Lu!==zn&&Lu!==za&&(_u+=1,pc.test(Lc.charAt(_u)))){for(;pc.test(Lc.charAt(_u+1));)_u+=1;Lc.charCodeAt(_u+1)===vo&&(_u+=1)}rl=["word",Lc.slice(Qs,_u+1),Qu,Qs-du,Qu,_u-du],Qs=_u;break;default:Lu===_o&&Lc.charCodeAt(Qs+1)===No?(_u=Lc.indexOf("*/",Qs+2)+1,_u===0&&(Mc||rd?_u=Lc.length:pp("comment")),Md=Lc.slice(Qs,_u+1),gu=Md.split( `
` ),_p=gu.length-1,_p>0?(Td=Qu+_p,id=_u-gu[_p].length):(Td=Qu,id=du),rl=["comment",Md,Qu,Qs-du,Td,_u-id],du=id,Qu=Td,Qs=_u):(Du.lastIndex=Qs+1,Du.test(Lc),Du.lastIndex===0?_u=Lc.length-1:_u=Du.lastIndex-2,rl=["word",Lc.slice(Qs,_u+1),Qu,Qs-du,Qu,_u-du],Nc.push(rl),Qs=_u);break}return Qs++,rl}}function lf(Tp){gc.push(Tp)}return{back:lf,nextToken:Rf,endOfFile:Zd,position:jp}}Ia.exports=Mn.default}}),Ps=ps({"node_modules/postcss/lib/parse.js"(Mn,Ia){As(),Mn.__esModule=!0,Mn.default=void 0;var xa=Ha(Ka()),Na=Ha(js());function Ha(vo){return vo&&vo.__esModule?vo:{default:vo}}function _o(vo,za){var fo=new Na.default(vo,za),zn=new xa.default(fo);try{zn.parse()}catch(Sn){throw Sn}return zn.root}var ro=_o;Mn.default=ro,Ia.exports=Mn.default}}),Cl=ps({"node_modules/postcss/lib/list.js"(Mn,Ia){As(),Mn.__esModule=!0,Mn.default=void 0;var xa={split:function(Ha,_o,ro){for(var vo=[],za="",fo=!1,zn=0,Sn=!1,ka=!1,fa=0;fa<Ha.length;fa++){var ko=Ha[fa];Sn?ka?ka=!1:ko===" \\ "?ka=!0:ko===Sn&&(Sn=!1):ko==='"'||ko==="'"?Sn=ko:ko==="("?zn+=1:ko===")"?zn>0&&(zn-=1):zn===0&&_o.indexOf(ko)!==-1&&(fo=!0),fo?(za!==""&&vo.push(za.trim()),za="",fo=!1):za+=ko}return(ro||za!=="")&&vo.push(za.trim()),vo},space:function(Ha){var _o=[" ", `
` ," "];return xa.split(Ha,_o)},comma:function(Ha){return xa.split(Ha,[","],!0)}},Na=xa;Mn.default=Na,Ia.exports=Mn.default}}),Bl=ps({"node_modules/postcss/lib/rule.js"(Mn,Ia){As(),Mn.__esModule=!0,Mn.default=void 0;var xa=Ha(Eu()),Na=Ha(Cl());function Ha(zn){return zn&&zn.__esModule?zn:{default:zn}}function _o(zn,Sn){for(var ka=0;ka<Sn.length;ka++){var fa=Sn[ka];fa.enumerable=fa.enumerable||!1,fa.configurable=!0,"value"in fa&&(fa.writable=!0),Object.defineProperty(zn,fa.key,fa)}}function ro(zn,Sn,ka){return Sn&&_o(zn.prototype,Sn),zn}function vo(zn,Sn){zn.prototype=Object.create(Sn.prototype),zn.prototype.constructor=zn,zn.__proto__=Sn}var za=function(zn){vo(Sn,zn);function Sn(ka){var fa;return fa=zn.call(this,ka)||this,fa.type="rule",fa.nodes||(fa.nodes=[]),fa}return ro(Sn,[{key:"selectors",get:function(){return Na.default.comma(this.selector)},set:function(ka){var fa=this.selector?this.selector.match(/, \s */):null,ko=fa?fa[0]:","+this.raw("between","beforeOpen");this.selector=ka.join(ko)}}]),Sn}(xa.default),fo=za;Mn.default=fo,Ia.exports=Mn.default}}),Eu=ps({"node_modules/postcss/lib/container.js"(Mn,Ia){As(),Mn.__esModule=!0,Mn.default=void 0;var xa=_o(Cs()),Na=_o(Ts()),Ha=_o(ol());function _o(xo){return xo&&xo.__esModule?xo:{default:xo}}function ro(xo,cs){var ss;if(typeof Symbol>"u"||xo[Symbol.iterator]==null){if(Array.isArray(xo)||(ss=vo(xo))||cs){ss&&(xo=ss);var No=0;return function(){return No>=xo.length?{done:!0}:{done:!1,value:xo[No++]}}}throw new TypeError( ` Invalid attempt to iterate non - iterable instance .
In order to be iterable , non - array objects must have a [ Symbol . iterator ] ( ) method . ` )}return ss=xo[Symbol.iterator](),ss.next.bind(ss)}function vo(xo,cs){if(xo){if(typeof xo=="string")return za(xo,cs);var ss=Object.prototype.toString.call(xo).slice(8,-1);if(ss==="Object"&&xo.constructor&&(ss=xo.constructor.name),ss==="Map"||ss==="Set")return Array.from(xo);if(ss==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array $ /.test(ss))return za(xo,cs)}}function za(xo,cs){(cs==null||cs>xo.length)&&(cs=xo.length);for(var ss=0,No=new Array(cs);ss<cs;ss++)No[ss]=xo[ss];return No}function fo(xo,cs){for(var ss=0;ss<cs.length;ss++){var No=cs[ss];No.enumerable=No.enumerable||!1,No.configurable=!0,"value"in No&&(No.writable=!0),Object.defineProperty(xo,No.key,No)}}function zn(xo,cs,ss){return cs&&fo(xo.prototype,cs),xo}function Sn(xo,cs){xo.prototype=Object.create(cs.prototype),xo.prototype.constructor=xo,xo.__proto__=cs}function ka(xo){return xo.map(function(cs){return cs.nodes&&(cs.nodes=ka(cs.nodes)),delete cs.source,cs})}var fa=function(xo){Sn(cs,xo);function cs(){return xo.apply(this,arguments)||this}var ss=cs.prototype;return ss.push=function(No){return No.parent=this,this.nodes.push(No),this},ss.each=function(No){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;var Us=this.lastEach;if(this.indexes[Us]=0,!!this.nodes){for(var Ws,al;this.indexes[Us]<this.nodes.length&&(Ws=this.indexes[Us],al=No(this.nodes[Ws],Ws),al!==!1);)this.indexes[Us]+=1;return delete this.indexes[Us],al}},ss.walk=function(No){return this.each(function(Us,Ws){var al;try{al=No(Us,Ws)}catch(Ku){if(Ku.postcssNode=Us,Ku.stack&&Us.source&&/ \n \s {4}at /.test(Ku.stack)){var Du=Us.source;Ku.stack=Ku.stack.replace(/ \n \s {4}at /," $ &"+Du.input.from+":"+Du.start.line+":"+Du.start.column+" $ &")}throw Ku}return al!==!1&&Us.walk&&(al=Us.walk(No)),al})},ss.walkDecls=function(No,Us){return Us?No instanceof RegExp?this.walk(function(Ws,al){if(Ws.type==="decl"&&No.test(Ws.prop))return Us(Ws,al)}):this.walk(function(Ws,al){if(Ws.type==="decl"&&Ws.prop===No)return Us(Ws,al)}):(Us=No,this.walk(function(Ws,al){if(Ws.type==="decl")return Us(Ws,al)}))},ss.walkRules=function(No,Us){return Us?No instanceof RegExp?this.walk(function(Ws,al){if(Ws.type==="rule"&&No.test(Ws.selector))return Us(Ws,al)}):this.walk(function(Ws,al){if(Ws.type==="rule"&&Ws.selector===No)return Us(Ws,al)}):(Us=No,this.walk(function(Ws,al){if(Ws.type==="rule")return Us(Ws,al)}))},ss.walkAtRules=function(No,Us){return Us?No instanceof RegExp?this.walk(function(Ws,al){if(Ws.type==="atrule"&&No.test(Ws.name))return Us(Ws,al)}):this.walk(function(Ws,al){if(Ws.type==="atrule"&&Ws.name===No)return Us(Ws,al)}):(Us=No,this.walk(function(Ws,al){if(Ws.type==="atrule")return Us(Ws,al)}))},ss.walkComments=function(No){return this.walk(function(Us,Ws){if(Us.type==="comment")return No(Us,Ws)})},ss.append=function(){for(var No=arguments.length,Us=new Array(No),Ws=0;Ws<No;Ws++)Us[Ws]=arguments[Ws];for(var al=0,Du=Us;al<Du.length;al++)for(var Ku=Du[al],pc=this.normalize(Ku,this.last),Pc=ro(pc),Bc;!(Bc=Pc()).done;){var Vc=Bc.value;this.nodes.push(Vc)}return this},ss.prepend=function(){for(var No=arguments.length,Us=new Array(No),Ws=0;Ws<No;Ws++)Us[Ws]=arguments[Ws];Us=Us.reverse();for(var al=ro(Us),Du;!(Du=al()).done;){for(var Ku=Du.value,pc=this.normalize(Ku,this.first,"prepend").reverse(),Pc=ro(pc),Bc;!(Bc=Pc()).done;){var Vc=Bc.value;this.nodes.unshift(Vc)}for(var Lc in this.indexes)this.indexes[Lc]=this.indexes[Lc]+pc.length}return this},ss.cleanRaws=function(No){if(xo.prototype.cleanRaws.call(this,No),this.nodes)for(var Us=ro(this.nodes),Ws;!(Ws=Us()).done;){var al=Ws.value;al.cleanRaws(No)}},ss.insertBefore=function(No,Us){No=this.index(No);for(var Ws=No===0?"prepend":!1,al=this.normalize(Us,this.nodes[No],Ws).reverse(),Du=ro(al),Ku;!(Ku=Du()).done;){var pc=Ku.value;this.nodes.splice(No,0,pc)}var Pc;for(var Bc in this.indexes)Pc=this.indexes[Bc],No<=Pc&&(this.indexes[Bc]=Pc+al.length);return this},ss.insertAfter=function(No,Us){No=this.index(No);for(var Ws=this.normalize(Us,this.nodes[No]).revers
In order to be iterable , non - array objects must have a [ Symbol . iterator ] ( ) method . ` )}return ss=xo[Symbol.iterator](),ss.next.bind(ss)}function za(xo,cs){if(xo){if(typeof xo=="string")return fo(xo,cs);var ss=Object.prototype.toString.call(xo).slice(8,-1);if(ss==="Object"&&xo.constructor&&(ss=xo.constructor.name),ss==="Map"||ss==="Set")return Array.from(xo);if(ss==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array $ /.test(ss))return fo(xo,cs)}}function fo(xo,cs){(cs==null||cs>xo.length)&&(cs=xo.length);for(var ss=0,No=new Array(cs);ss<cs;ss++)No[ss]=xo[ss];return No}function zn(xo,cs){for(var ss=0;ss<cs.length;ss++){var No=cs[ss];No.enumerable=No.enumerable||!1,No.configurable=!0,"value"in No&&(No.writable=!0),Object.defineProperty(xo,No.key,No)}}function Sn(xo,cs,ss){return cs&&zn(xo.prototype,cs),xo}function ka(xo){return typeof xo=="object"&&typeof xo.then=="function"}var fa=function(){function xo(ss,No,Us){this.stringified=!1,this.processed=!1;var Ws;if(typeof No=="object"&&No!==null&&No.type==="root")Ws=No;else if(No instanceof xo||No instanceof Ha.default)Ws=No.root,No.map&&(typeof Us.map>"u"&&(Us.map={}),Us.map.inline||(Us.map.inline=!1),Us.map.prev=No.map);else{var al=_o.default;Us.syntax&&(al=Us.syntax.parse),Us.parser&&(al=Us.parser),al.parse&&(al=al.parse);try{Ws=al(No,Us)}catch(Du){this.error=Du}}this.result=new Ha.default(ss,Ws,Us)}var cs=xo.prototype;return cs.warnings=function(){return this.sync().warnings()},cs.toString=function(){return this.css},cs.then=function(ss,No){return this.async().then(ss,No)},cs.catch=function(ss){return this.async().catch(ss)},cs.finally=function(ss){return this.async().then(ss,ss)},cs.handleError=function(ss,No){try{if(this.error=ss,ss.name==="CssSyntaxError"&&!ss.plugin)ss.plugin=No.postcssPlugin,ss.setMessage();else if(No.postcssVersion&&!1)var Us,Ws,al,Du,Ku}catch(pc){console&&console.error&&console.error(pc)}},cs.asyncTick=function(ss,No){var Us=this;if(this.plugin>=this.processor.plugins.length)return this.processed=!0,ss();try{var Ws=this.processor.plugins[this.plugin],al=this.run(Ws);this.plugin+=1,ka(al)?al.then(function(){Us.asyncTick(ss,No)}).catch(function(Du){Us.handleError(Du,Ws),Us.processed=!0,No(Du)}):this.asyncTick(ss,No)}catch(Du){this.processed=!0,No(Du)}},cs.async=function(){var ss=this;return this.processed?new Promise(function(No,Us){ss.error?Us(ss.error):No(ss.stringify())}):this.processing?this.processing:(this.processing=new Promise(function(No,Us){if(ss.error)return Us(ss.error);ss.plugin=0,ss.asyncTick(No,Us)}).then(function(){return ss.processed=!0,ss.stringify()}),this.processing)},cs.sync=function(){if(this.processed)return this.result;if(this.processed=!0,this.processing)throw new Error("Use process(css).then(cb) to work with async plugins");if(this.error)throw this.error;for(var ss=vo(this.result.processor.plugins),No;!(No=ss()).done;){var Us=No.value,Ws=this.run(Us);if(ka(Ws))throw new Error("Use process(css).then(cb) to work with async plugins")}return this.result},cs.run=function(ss){this.result.lastPlugin=ss;try{return ss(this.result.root,this.result)}catch(No){throw this.handleError(No,ss),No}},cs.stringify=function(){if(this.stringified)return this.result;this.stringified=!0,this.sync();var ss=this.result.opts,No=Na.default;ss.syntax&&(No=ss.syntax.stringify),ss.stringifier&&(No=ss.stringifier),No.stringify&&(No=No.stringify);var Us=new xa.default(No,this.result.root,this.result.opts),Ws=Us.generate();return this.result.css=Ws[0],this.result.map=Ws[1],this.result},Sn(xo,[{key:"processor",get:function(){return this.result.processor}},{key:"opts",get:function(){return this.result.opts}},{key:"css",get:function(){return this.stringify().css}},{key:"content",get:function(){return this.stringify().content}},{key:"map",get:function(){return this.stringify().map}},{key:"root",get:function(){return this.sync().root}},{key:"messages",get:function(){return this.sync().messages}}]),xo}(),ko=fa;Mn.default=ko,Ia.exports=Mn.default}}),ec=ps({"node_modules/postcss/lib/processor.js"(Mn,Ia){As(),Mn.__esModule=!0,Mn.default=void 0;var xa=Na(Cu());functio
In order to be iterable , non - array objects must have a [ Symbol . iterator ] ( ) method . ` )}return Sn=fo[Symbol.iterator](),Sn.next.bind(Sn)}function _o(fo,zn){if(fo){if(typeof fo=="string")return ro(fo,zn);var Sn=Object.prototype.toString.call(fo).slice(8,-1);if(Sn==="Object"&&fo.constructor&&(Sn=fo.constructor.name),Sn==="Map"||Sn==="Set")return Array.from(fo);if(Sn==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array $ /.test(Sn))return ro(fo,zn)}}function ro(fo,zn){(zn==null||zn>fo.length)&&(zn=fo.length);for(var Sn=0,ka=new Array(zn);Sn<zn;Sn++)ka[Sn]=fo[Sn];return ka}var vo=function(){function fo(Sn){Sn===void 0&&(Sn=[]),this.version="7.0.39",this.plugins=this.normalize(Sn)}var zn=fo.prototype;return zn.use=function(Sn){return this.plugins=this.plugins.concat(this.normalize([Sn])),this},zn.process=function(Sn){function ka(fa){return Sn.apply(this,arguments)}return ka.toString=function(){return Sn.toString()},ka}(function(Sn,ka){return ka===void 0&&(ka={}),this.plugins.length===0&&(ka.parser,ka.stringifier),new xa.default(this,Sn,ka)}),zn.normalize=function(Sn){for(var ka=[],fa=Ha(Sn),ko;!(ko=fa()).done;){var xo=ko.value;if(xo.postcss===!0){var cs=xo();throw new Error("PostCSS plugin "+cs.postcssPlugin+ ` requires PostCSS 8.
2024-08-21 13:12:53 +08:00
Migration guide for end - users :
2024-08-24 19:24:09 +08:00
https : //github.com/postcss/postcss/wiki/PostCSS-8-for-end-users`)}if(xo.postcss&&(xo=xo.postcss),typeof xo=="object"&&Array.isArray(xo.plugins))ka=ka.concat(xo.plugins);else if(typeof xo=="function")ka.push(xo);else if(!(typeof xo=="object"&&(xo.parse||xo.stringify)))throw typeof xo=="object"&&xo.postcssPlugin?new Error("PostCSS plugin "+xo.postcssPlugin+` requires PostCSS 8.
2024-08-21 13:12:53 +08:00
Migration guide for end - users :
2024-08-25 11:35:35 +08:00
https : //github.com/postcss/postcss/wiki/PostCSS-8-for-end-users`):new Error(xo+" is not a PostCSS plugin")}return ka},fo}(),za=vo;Mn.default=za,Ia.exports=Mn.default}}),rc=ps({"node_modules/postcss/lib/root.js"(Mn,Ia){As(),Mn.__esModule=!0,Mn.default=void 0;var xa=Na(Eu());function Na(zn){return zn&&zn.__esModule?zn:{default:zn}}function Ha(zn,Sn){var ka;if(typeof Symbol>"u"||zn[Symbol.iterator]==null){if(Array.isArray(zn)||(ka=_o(zn))||Sn){ka&&(zn=ka);var fa=0;return function(){return fa>=zn.length?{done:!0}:{done:!1,value:zn[fa++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable , non - array objects must have a [ Symbol . iterator ] ( ) method . ` )}return ka=zn[Symbol.iterator](),ka.next.bind(ka)}function _o(zn,Sn){if(zn){if(typeof zn=="string")return ro(zn,Sn);var ka=Object.prototype.toString.call(zn).slice(8,-1);if(ka==="Object"&&zn.constructor&&(ka=zn.constructor.name),ka==="Map"||ka==="Set")return Array.from(zn);if(ka==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array $ /.test(ka))return ro(zn,Sn)}}function ro(zn,Sn){(Sn==null||Sn>zn.length)&&(Sn=zn.length);for(var ka=0,fa=new Array(Sn);ka<Sn;ka++)fa[ka]=zn[ka];return fa}function vo(zn,Sn){zn.prototype=Object.create(Sn.prototype),zn.prototype.constructor=zn,zn.__proto__=Sn}var za=function(zn){vo(Sn,zn);function Sn(fa){var ko;return ko=zn.call(this,fa)||this,ko.type="root",ko.nodes||(ko.nodes=[]),ko}var ka=Sn.prototype;return ka.removeChild=function(fa,ko){var xo=this.index(fa);return!ko&&xo===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[xo].raws.before),zn.prototype.removeChild.call(this,fa)},ka.normalize=function(fa,ko,xo){var cs=zn.prototype.normalize.call(this,fa);if(ko){if(xo==="prepend")this.nodes.length>1?ko.raws.before=this.nodes[1].raws.before:delete ko.raws.before;else if(this.first!==ko)for(var ss=Ha(cs),No;!(No=ss()).done;){var Us=No.value;Us.raws.before=ko.raws.before}}return cs},ka.toResult=function(fa){fa===void 0&&(fa={});var ko=Cu(),xo=ec(),cs=new ko(new xo,this,fa);return cs.stringify()},Sn}(xa.default),fo=za;Mn.default=fo,Ia.exports=Mn.default}}),Ka=ps({"node_modules/postcss/lib/parser.js"(Mn,Ia){As(),Mn.__esModule=!0,Mn.default=void 0;var xa=za(Cs()),Na=za(Ns()),Ha=za(Ts()),_o=za(vl()),ro=za(rc()),vo=za(Bl());function za(zn){return zn&&zn.__esModule?zn:{default:zn}}var fo=function(){function zn(ka){this.input=ka,this.root=new ro.default,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:ka,start:{line:1,column:1}}}var Sn=zn.prototype;return Sn.createTokenizer=function(){this.tokenizer=(0,Na.default)(this.input)},Sn.parse=function(){for(var ka;!this.tokenizer.endOfFile();)switch(ka=this.tokenizer.nextToken(),ka[0]){case"space":this.spaces+=ka[1];break;case";":this.freeSemicolon(ka);break;case"}":this.end(ka);break;case"comment":this.comment(ka);break;case"at-word":this.atrule(ka);break;case"{":this.emptyRule(ka);break;default:this.other(ka);break}this.endFile()},Sn.comment=function(ka){var fa=new Ha.default;this.init(fa,ka[2],ka[3]),fa.source.end={line:ka[4],column:ka[5]};var ko=ka[1].slice(2,-2);if(/^ \s * $ /.test(ko))fa.text="",fa.raws.left=ko,fa.raws.right="";else{var xo=ko.match(/^( \s *)([^]*[^ \s ])( \s *) $ /);fa.text=xo[2],fa.raws.left=xo[1],fa.raws.right=xo[3]}},Sn.emptyRule=function(ka){var fa=new vo.default;this.init(fa,ka[2],ka[3]),fa.selector="",fa.raws.between="",this.current=fa},Sn.other=function(ka){for(var fa=!1,ko=null,xo=!1,cs=null,ss=[],No=[],Us=ka;Us;){if(ko=Us[0],No.push(Us),ko==="("||ko==="[")cs||(cs=Us),ss.push(ko==="("?")":"]");else if(ss.length===0)if(ko===";")if(xo){this.decl(No);return}else break;else if(ko==="{"){this.rule(No);return}else if(ko==="}"){this.tokenizer.back(No.pop()),fa=!0;break}else ko===":"&&(xo=!0);else ko===ss[ss.length-1]&&(ss.pop(),ss.length===0&&(cs=null));Us=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(fa=!0),ss.length>0&&this.unclosedBracket(cs),fa&&xo){for(;No.length&&(Us=No[No.length-1][0],!(Us!=="space"&&Us!=="comment"));)this.tokenizer.back(No.pop());this.decl(No)}else this.unknownWord(No)},Sn.rule=function(ka){ka.pop();var fa=new vo.default;this.init(fa,ka[0][2],ka[0][3]),fa.raws.between=this.spacesAndCommentsFromEnd(ka),this.raw(fa,"selector",ka),this.current=fa},Sn.decl=function(ka){var fa=new xa.default;this.init(fa);var ko=ka[ka.length-1];for(ko[0]===";"&&(this.semicolon=!0,ka.pop()),ko[4]?fa.source.end={line:ko[4],column:ko[5]}:fa.source.end={line:ko[2],column:ko[3]};ka[0][0]!=="word";)ka.length===1&&this.unknownWord(ka),fa.raws.before+=ka.shift()[1];for(fa.source.start={line:ka[0][2],column:ka[0][3]},fa.prop="";ka.length;){var xo=ka[0][0];if(xo===":"||xo==="space"||xo==="co
2024-08-21 13:12:53 +08:00
` )));let fo=Ha[1].substring(Ha[1].indexOf( `
2024-08-25 11:35:35 +08:00
` ));fo+=this.input.css.valueOf().substring(this.tokenizer.position()),this.input=new Na(fo),this.tokenizer=xa(this.input)}else this.tokenizer.back(Ha);break}ro.push(Ha[1]),vo=Ha,Ha=this.tokenizer.nextToken({ignoreUnclosed:!0})}let za=["comment",ro.join(""),_o[2],_o[3],vo[2],vo[3]];return this.inlineComment(za),!0}else if(Ha[1]==="/"){let _o=this.tokenizer.nextToken({ignoreUnclosed:!0});if(_o[0]==="comment"&&/^ \/ \* /.test(_o[1]))return _o[0]="word",_o[1]=_o[1].slice(1),Ha[1]="//",this.tokenizer.back(_o),Ia.exports.isInlineComment.bind(this)(Ha)}return!1}}}}),Ec=ps({"node_modules/postcss-less/lib/nodes/interpolation.js"(Mn,Ia){As(),Ia.exports={interpolation(xa){let Na=xa,Ha=[xa],_o=["word","{","}"];if(xa=this.tokenizer.nextToken(),Na[1].length>1||xa[0]!=="{")return this.tokenizer.back(xa),!1;for(;xa&&_o.includes(xa[0]);)Ha.push(xa),xa=this.tokenizer.nextToken();let ro=Ha.map(Sn=>Sn[1]);[Na]=Ha;let vo=Ha.pop(),za=[Na[2],Na[3]],fo=[vo[4]||vo[2],vo[5]||vo[3]],zn=["word",ro.join("")].concat(za,fo);return this.tokenizer.back(xa),this.tokenizer.back(zn),!0}}}}),wu=ps({"node_modules/postcss-less/lib/nodes/mixin.js"(Mn,Ia){As();var xa=/^#[0-9a-fA-F]{6} $ |^#[0-9a-fA-F]{3} $ /,Na=/ \. [0-9]/,Ha=_o=>{let[,ro]=_o,[vo]=ro;return(vo==="."||vo==="#")&&xa.test(ro)===!1&&Na.test(ro)===!1};Ia.exports={isMixinToken:Ha}}}),Ul=ps({"node_modules/postcss-less/lib/nodes/import.js"(Mn,Ia){As();var xa=Ns(),Na=/^url \( (.+) \) /;Ia.exports=Ha=>{let{name:_o,params:ro=""}=Ha;if(_o==="import"&&ro.length){Ha.import=!0;let vo=xa({css:ro});for(Ha.filename=ro.replace(Na," $ 1");!vo.endOfFile();){let[za,fo]=vo.nextToken();if(za==="word"&&fo==="url")return;if(za==="brackets"){Ha.options=fo,Ha.filename=ro.replace(fo,"").trim();break}}}}}}),Iu=ps({"node_modules/postcss-less/lib/nodes/variable.js"(Mn,Ia){As();var xa=/: $ /,Na=/^:( \s +)?/;Ia.exports=Ha=>{let{name:_o,params:ro=""}=Ha;if(Ha.name.slice(-1)===":"){if(xa.test(_o)){let[vo]=_o.match(xa);Ha.name=_o.replace(vo,""),Ha.raws.afterName=vo+(Ha.raws.afterName||""),Ha.variable=!0,Ha.value=Ha.params}if(Na.test(ro)){let[vo]=ro.match(Na);Ha.value=ro.replace(vo,""),Ha.raws.afterName=(Ha.raws.afterName||"")+vo,Ha.variable=!0}}}}}),kl=ps({"node_modules/postcss-less/lib/LessParser.js"(Mn,Ia){As();var xa=Ts(),Na=Ka(),{isInlineComment:Ha}=Su(),{interpolation:_o}=Ec(),{isMixinToken:ro}=wu(),vo=Ul(),za=Iu(),fo=/(! \s *important) $ /i;Ia.exports=class extends Na{constructor(){super(...arguments),this.lastNode=null}atrule(zn){_o.bind(this)(zn)||(super.atrule(zn),vo(this.lastNode),za(this.lastNode))}decl(){super.decl(...arguments),/extend \( .+ \) /i.test(this.lastNode.value)&&(this.lastNode.extend=!0)}each(zn){zn[0][1]= ` $ { zn [ 0 ] [ 1 ] } ` ;let Sn=zn.findIndex(xo=>xo[0]==="("),ka=zn.reverse().find(xo=>xo[0]===")"),fa=zn.reverse().indexOf(ka),ko=zn.splice(Sn,fa).map(xo=>xo[1]).join("");for(let xo of zn.reverse())this.tokenizer.back(xo);this.atrule(this.tokenizer.nextToken()),this.lastNode.function=!0,this.lastNode.params=ko}init(zn,Sn,ka){super.init(zn,Sn,ka),this.lastNode=zn}inlineComment(zn){let Sn=new xa,ka=zn[1].slice(2);if(this.init(Sn,zn[2],zn[3]),Sn.source.end={line:zn[4],column:zn[5]},Sn.inline=!0,Sn.raws.begin="//",/^ \s * $ /.test(ka))Sn.text="",Sn.raws.left=ka,Sn.raws.right="";else{let fa=ka.match(/^( \s *)([^]*[^ \s ])( \s *) $ /);[,Sn.raws.left,Sn.text,Sn.raws.right]=fa}}mixin(zn){let[Sn]=zn,ka=Sn[1].slice(0,1),fa=zn.findIndex(No=>No[0]==="brackets"),ko=zn.findIndex(No=>No[0]==="("),xo="";if((fa<0||fa>3)&&ko>0){let No=zn.reduce((Vc,Lc,Mc)=>Lc[0]===")"?Mc:Vc),Us=zn.slice(ko,No+ko).map(Vc=>Vc[1]).join(""),[Ws]=zn.slice(ko),al=[Ws[2],Ws[3]],[Du]=zn.slice(No,No+1),Ku=[Du[2],Du[3]],pc=["brackets",Us].concat(al,Ku),Pc=zn.slice(0,ko),Bc=zn.slice(No+1);zn=Pc,zn.push(pc),zn=zn.concat(Bc)}let cs=[];for(let No of zn)if((No[1]==="!"||cs.length)&&cs.push(No),No[1]==="important")break;if(cs.length){let[No]=cs,Us=zn.indexOf(No),Ws=cs[cs.length-1],al=[No[2],No[3]],Du=[Ws[4],Ws[5]],Ku=["word",cs.map(pc=>pc[1]).join("")].concat(al,Du);zn.splice(Us,cs.length,Ku)}let ss=zn.findIndex(No=>fo.test(No[1]));ss>0&&([,xo]=zn[ss],zn.splice(ss,1));for(let No of zn.reverse())this.t
` ),Kd=Md.length-1,Kd>0?(_c=Nc+Kd,zc=gu-Md[Kd].length):(_c=Nc,zc=Qs),Ml=["brackets",Td,Nc,gc-Qs,_c,gu-zc],Qs=zc,Nc=_c,gc=gu}else gu=Lu.indexOf(")",gc+1),Td=Lu.slice(gc,gu+1),gu===-1||Pc.test(Td)?Ml=["(","(",Nc,gc-Qs]:(Ml=["brackets",Td,Nc,gc-Qs,Nc,gu-Qs],gc=gu);break;case ko:Ml=[")",")",Nc,gc-Qs];break;case xa:case Na:for(_p= $ u,gu=gc,Gc=!1;gu<Qu&&(gu++,gu===Qu&&Zd("string"), $ u=Lu.charCodeAt(gu),rl=Lu.charCodeAt(gu+1),!(!Gc&& $ u===_p));) $ u===Ha?Gc=!Gc:Gc?Gc=!1: $ u===Du&&rl===xo&&lf();Td=Lu.slice(gc,gu+1),Md=Td.split( `
` ),Kd=Md.length-1,Kd>0?(_c=Nc+Kd,zc=gu-Md[Kd].length):(_c=Nc,zc=Qs),Ml=["string",Lu.slice(gc,gu+1),Nc,gc-Qs,_c,gu-zc],Qs=zc,Nc=_c,gc=gu;break;case Ws:Ku.lastIndex=gc+1,Ku.test(Lu),Ku.lastIndex===0?gu=Lu.length-1:gu=Ku.lastIndex-2,Ml=["at-word",Lu.slice(gc,gu+1),Nc,gc-Qs,Nc,gu-Qs],gc=gu;break;case Ha:for(gu=gc,id=!0;Lu.charCodeAt(gu+1)===Ha;)gu+=1,id=!id;if( $ u=Lu.charCodeAt(gu+1),id&& $ u!==_o&& $ u!==vo&& $ u!==ro&& $ u!==fo&& $ u!==zn&& $ u!==za&&(gu+=1,Bc.test(Lu.charAt(gu)))){for(;Bc.test(Lu.charAt(gu+1));)gu+=1;Lu.charCodeAt(gu+1)===vo&&(gu+=1)}Ml=["word",Lu.slice(gc,gu+1),Nc,gc-Qs,Nc,gu-Qs],gc=gu;break;default:rl=Lu.charCodeAt(gc+1), $ u===Du&&rl===xo?(gu=gc,lf(),Td=Lu.slice(gc,gu+1),Md=Td.split( `
` ),Kd=Md.length-1,Kd>0?(_c=Nc+Kd,zc=gu-Md[Kd].length):(_c=Nc,zc=Qs),Ml=["word",Td,Nc,gc-Qs,_c,gu-zc],Qs=zc,Nc=_c,gc=gu): $ u===_o&&rl===No?(gu=Lu.indexOf("*/",gc+2)+1,gu===0&&(_u?gu=Lu.length:Zd("comment")),Td=Lu.slice(gc,gu+1),Md=Td.split( `
` ),Kd=Md.length-1,Kd>0?(_c=Nc+Kd,zc=gu-Md[Kd].length):(_c=Nc,zc=Qs),Ml=["comment",Td,Nc,gc-Qs,_c,gu-zc],Qs=zc,Nc=_c,gc=gu): $ u===_o&&rl===_o?(Vc.lastIndex=gc+1,Vc.test(Lu),Vc.lastIndex===0?gu=Lu.length-1:gu=Vc.lastIndex-2,Td=Lu.slice(gc,gu+1),Ml=["comment",Td,Nc,gc-Qs,Nc,gu-Qs,"inline"],gc=gu):(pc.lastIndex=gc+1,pc.test(Lu),pc.lastIndex===0?gu=Lu.length-1:gu=pc.lastIndex-2,Ml=["word",Lu.slice(gc,gu+1),Nc,gc-Qs,Nc,gu-Qs],jp.push(Ml),gc=gu);break}return gc++,Ml}}function rd(vp){pp.push(vp)}return{back:rd,nextToken:Tp,endOfFile:Rf}}}}),Id=ps({"node_modules/postcss-scss/lib/scss-parser.js"(Mn,Ia){As();function xa(za,fo){za.prototype=Object.create(fo.prototype),za.prototype.constructor=za,za.__proto__=fo}var Na=Ts(),Ha=Ka(),_o=Ic(),ro=jc(),vo=function(za){xa(fo,za);function fo(){return za.apply(this,arguments)||this}var zn=fo.prototype;return zn.createTokenizer=function(){this.tokenizer=ro(this.input)},zn.rule=function(Sn){for(var ka=!1,fa=0,ko="",ss=Sn,xo=Array.isArray(ss),cs=0,ss=xo?ss:ss[Symbol.iterator]();;){var No;if(xo){if(cs>=ss.length)break;No=ss[cs++]}else{if(cs=ss.next(),cs.done)break;No=cs.value}var Us=No;if(ka)Us[0]!=="comment"&&Us[0]!=="{"&&(ko+=Us[1]);else{if(Us[0]==="space"&&Us[1].indexOf( `
` )!==-1)break;Us[0]==="("?fa+=1:Us[0]===")"?fa-=1:fa===0&&Us[0]===":"&&(ka=!0)}}if(!ka||ko.trim()===""||/^[a-zA-Z-:#]/.test(ko))za.prototype.rule.call(this,Sn);else{Sn.pop();var Ws=new _o;this.init(Ws);var al=Sn[Sn.length-1];for(al[4]?Ws.source.end={line:al[4],column:al[5]}:Ws.source.end={line:al[2],column:al[3]};Sn[0][0]!=="word";)Ws.raws.before+=Sn.shift()[1];for(Ws.source.start={line:Sn[0][2],column:Sn[0][3]},Ws.prop="";Sn.length;){var Du=Sn[0][0];if(Du===":"||Du==="space"||Du==="comment")break;Ws.prop+=Sn.shift()[1]}Ws.raws.between="";for(var Ku;Sn.length;)if(Ku=Sn.shift(),Ku[0]===":"){Ws.raws.between+=Ku[1];break}else Ws.raws.between+=Ku[1];(Ws.prop[0]==="_"||Ws.prop[0]==="*")&&(Ws.raws.before+=Ws.prop[0],Ws.prop=Ws.prop.slice(1)),Ws.raws.between+=this.spacesAndCommentsFromStart(Sn),this.precheckMissedSemicolon(Sn);for(var pc=Sn.length-1;pc>0;pc--){if(Ku=Sn[pc],Ku[1]==="!important"){Ws.important=!0;var Pc=this.stringFrom(Sn,pc);Pc=this.spacesFromEnd(Sn)+Pc,Pc!==" !important"&&(Ws.raws.important=Pc);break}else if(Ku[1]==="important"){for(var Bc=Sn.slice(0),Vc="",Lc=pc;Lc>0;Lc--){var Mc=Bc[Lc][0];if(Vc.trim().indexOf("!")===0&&Mc!=="space")break;Vc=Bc.pop()[1]+Vc}Vc.trim().indexOf("!")===0&&(Ws.important=!0,Ws.raws.important=Vc,Sn=Bc)}if(Ku[0]!=="space"&&Ku[0]!=="comment")break}this.raw(Ws,"value",Sn),Ws.value.indexOf(":")!==-1&&this.checkMissedSemicolon(Sn),this.current=Ws}},zn.comment=function(Sn){if(Sn[6]==="inline"){var ka=new Na;this.init(ka,Sn[2],Sn[3]),ka.raws.inline=!0,ka.source.end={line:Sn[4],column:Sn[5]};var fa=Sn[1].slice(2);if(/^ \s * $ /.test(fa))ka.text="",ka.raws.left=fa,ka.raws.right="";else{var ko=fa.match(/^( \s *)([^]*[^ \s ])( \s *) $ /),xo=ko[2].replace(/( \* \/ | \/ \* )/g,"*//*");ka.text=xo,ka.raws.left=ko[1],ka.raws.right=ko[3],ka.raws.text=ko[2]}}else za.prototype.comment.call(this,Sn)},zn.raw=function(Sn,ka,fa){if(za.prototype.raw.call(this,Sn,ka,fa),Sn.raws[ka]){var ko=Sn.raws[ka].raw;Sn.raws[ka].raw=fa.reduce(function(xo,cs){if(cs[0]==="comment"&&cs[6]==="inline"){var ss=cs[1].slice(2).replace(/( \* \/ | \/ \* )/g,"*//*");return xo+"/*"+ss+"*/"}else return xo+cs[1]},""),ko!==Sn.raws[ka].raw&&(Sn.raws[ka].scss=ko)}},fo}(Ha);Ia.exports=vo}}),xc=ps({"node_modules/postcss-scss/lib/scss-parse.js"(Mn,Ia){As();var xa=js(),Na=Id();Ia.exports=function(Ha,_o){var ro=new xa(Ha,_o),vo=new Na(ro);return vo.parse(),vo.root}}}),rp=ps({"node_modules/postcss-scss/lib/scss-syntax.js"(Mn,Ia){As();var xa=dc(),Na=xc();Ia.exports={parse:Na,stringify:xa}}});As();var Hp=Uu(),Rp=ju(),dp= $ c(),{hasPragma:Xc}=Vu(),{locStart:ud,locEnd:rf}=ns(),{calculateLoc:nf,replaceQuotesInInlineComments:Tf}=ns(),Qp=Tu(),Jd=_l(),hp=Hu(),gp=Rc(),Vd=ld(),Hd=hd(),ed=yp(),zd=fp(),Ip=Mn=>{for(;Mn.parent;)Mn=Mn.parent;return Mn};function Hf(Mn,Ia){let{nodes:xa}=Mn,Na={open:null,close:null,groups:[],type:"paren_group"},Ha=[Na],_o=Na,ro={groups:[],type:"comma_group"},vo=[ro];for(let za=0;za<xa.length;++za){let fo=xa[za];if(gp(Ia.parser,fo.value)&&fo.type==="number"&&fo.unit===".."&&Rp(fo.value)==="."&&(fo.value=fo.value.slice(0,-1),fo.unit="..."),fo.type==="func"&&fo.value==="selector"&&(fo.group.groups=[sf(Ip(Mn).text.slice(fo.group.open.sourceIndex+1,fo.group.close.sourceIndex))]),fo.type==="func"&&fo.value==="url"){let zn=fo.group&&fo.group.groups||[],Sn=[];for(let ka=0;ka<zn.length;ka++){let fa=zn[ka];fa.type==="comma_group"?Sn=[...Sn,...fa.groups]:Sn.push(fa)}if(Qp(Sn)||!Jd(Sn)&&!Hd(Sn[0])){let ka=ed({groups:fo.group.groups});fo.group.groups=[ka.trim()]}}if(fo.type==="paren"&&fo.value==="(")Na={open:fo,close:null,groups:[],type:"paren_group"},Ha.push(Na),ro={groups:[],type:"comma_group"},vo.push(ro);else if(fo.type==="paren"&&fo.value===")"){if(ro.groups.length>0&&Na.groups.push(ro),Na.close=fo,vo.length===1)throw new Error("Unbalanced parenthesis");vo.pop(),ro=Rp(vo),ro.groups.push(Na),Ha.pop(),Na=Rp(Ha)}else fo.type==="comma"?(Na.groups.push(ro),ro={groups:[],type:"comma_group"},vo[vo.length-1]=ro):ro.groups.push(fo)}return ro.groups.length>0&&Na.groups.push(ro),_o}function rh(Mn){return Mn.type==="paren_group"&&!Mn.open&&!Mn.close&&Mn.groups.length===1||
` ,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:"
` );ec!==-1;)Ks++,Cu=ec,ec=Zs.indexOf( `
` ,ec+1);Cu===-1?js+=Zs.length:js=Zs.length-Cu,Ks in $ o&&(Cu!==-1?js+= $ o[Ks]:js<= $ o[Ks]&&(js= $ o[Ks]+1))}function Cl(){var Zs=[],Cu=Ks+1;return function(){for(var ec=Ks+1;Cu<ec;)Zs.push(( $ o[Cu]||0)+1),Cu++;return Zs}}function Bl(){var Zs={line:Ks,column:js};return Zs.offset=Ja.toOffset(Zs),Zs}function Eu(Zs){this.start=Zs,this.end=Bl()}function vl(Zs){no.slice(0,Zs.length)!==Zs&&Ja.file.fail(new Error("Incorrectly eaten value: please report this warning on https://git.io/vg5Ft"),Bl())}function Zl(){var Zs=Bl();return Cu;function Cu(ec,rc){var Ka=ec.position,Su=Ka?Ka.start:Zs,Ec=[],wu=Ka&&Ka.end.line,Ul=Zs.line;if(ec.position=new Eu(Su),Ka&&rc&&Ka.indent){if(Ec=Ka.indent,wu<Ul){for(;++wu<Ul;)Ec.push(( $ o[wu]||0)+1);Ec.push(Zs.column)}rc=Ec.concat(rc)}return ec.position.indent=rc||[],ec}}function bu(Zs,Cu){var ec=Cu?Cu.children:ws,rc=ec[ec.length-1],Ka;return rc&&Zs.type===rc.type&&(Zs.type==="text"||Zs.type==="blockquote")&&Do(rc)&&Do(Zs)&&(Ka=Zs.type==="text"?Ao:eo,Zs=Ka.call(Ja,rc,Zs)),Zs!==rc&&ec.push(Zs),Ja.atStart&&ws.length!==0&&Ja.exitStart(),Zs}function xu(Zs){var Cu=Cl(),ec=Zl(),rc=Bl();return vl(Zs),Ka.reset=Su,Su.test=Ec,Ka.test=Ec,no=no.slice(Zs.length),Ps(Zs),Cu=Cu(),Ka;function Ka(wu,Ul){return ec(bu(ec(wu),Ul),Cu)}function Su(){var wu=Ka.apply(null,arguments);return Ks=rc.line,js=rc.column,no=Zs+no,wu}function Ec(){var wu=ec({});return Ks=rc.line,js=rc.column,no=Zs+no,wu.position}}}}function Do(So){var Ro,no;return So.type!=="text"||!So.position?!0:(Ro=So.position.start,no=So.position.end,Ro.line!==no.line||no.column-Ro.column===So.value.length)}function Ao(So,Ro){return So.value+=Ro.value,So}function eo(So,Ro){return this.options.commonmark||this.options.gfm?Ro:(So.children=So.children.concat(Ro.children),So)}}}),fp=Ki({"node_modules/markdown-escapes/index.js"(ks,us){Vo(),us.exports=eo;var Co=[" \\ "," ` "," * "," { "," } "," [ "," ] "," ( "," ) "," # "," + "," - "," . "," ! "," _ "," > "],Do=Co.concat([" ~ "," | " ] ) , Ao = Do . concat ( [ `
` ,'"'," $ ","%","&","'",",","/",":",";","<","=","?","@","^"]);eo.default=Co,eo.gfm=Do,eo.commonmark=Ao;function eo(So){var Ro=So||{};return Ro.commonmark?Ao:Ro.gfm?Do:Co}}}),kc=Ki({"node_modules/remark-parse/lib/block-elements.js"(ks,us){Vo(),us.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"]}}),qd=Ki({"node_modules/remark-parse/lib/defaults.js"(ks,us){Vo(),us.exports={position:!0,gfm:!0,commonmark:!1,pedantic:!1,blocks:kc()}}}),od=Ki({"node_modules/remark-parse/lib/set-options.js"(ks,us){Vo();var Co=pu(),Do=fp(),Ao=qd();us.exports=eo;function eo(So){var Ro=this,no=Ro.options,Yo,Ja;if(So==null)So={};else if(typeof So=="object")So=Co(So);else throw new Error("Invalid value ` "+So+" ` for setting ` options ` ");for(Yo in Ao){if(Ja=So[Yo],Ja==null&&(Ja=no[Yo]),Yo!=="blocks"&&typeof Ja!="boolean"||Yo==="blocks"&&typeof Ja!="object")throw new Error("Invalid value ` "+Ja+" ` for setting ` options . "+Yo+" ` ");So[Yo]=Ja}return Ro.options=So,Ro.escape=Do(So),Ro}}}),kp=Ki({"node_modules/unist-util-is/convert.js"(ks,us){Vo(),us.exports=Co;function Co(Ro){if(Ro==null)return So;if(typeof Ro=="string")return eo(Ro);if(typeof Ro=="object")return"length"in Ro?Ao(Ro):Do(Ro);if(typeof Ro=="function")return Ro;throw new Error("Expected function, string, or object as test")}function Do(Ro){return no;function no(Yo){var Ja;for(Ja in Ro)if(Yo[Ja]!==Ro[Ja])return!1;return!0}}function Ao(Ro){for(var no=[],Yo=-1;++Yo<Ro.length;)no[Yo]=Co(Ro[Yo]);return Ja;function Ja(){for(var $ o=-1;++ $ o<no.length;)if(no[ $ o].apply(this,arguments))return!0;return!1}}function eo(Ro){return no;function no(Yo){return!!(Yo&&Yo.type===Ro)}}function So(){return!0}}}),Ap=Ki({"node_modules/unist-util-visit-parents/color.browser.js"(ks,us){Vo(),us.exports=Co;function Co(Do){return Do}}}),xf=Ki({"node_modules/unist-util-visit-parents/index.js"(ks,us){Vo(),us.exports=Ro;var Co=kp(),Do=Ap(),Ao=!0,eo="skip",So=!1;Ro.CONTINUE=Ao,Ro.SKIP=eo,Ro.EXIT=So;function Ro(Yo,Ja, $ o,ws){var fs,Bs;typeof Ja=="function"&&typeof $ o!="function"&&(ws= $ o, $ o=Ja,Ja=null),Bs=Co(Ja),fs=ws?-1:1,Ks(Yo,null,[])();function Ks(js,pl,is){var ol=typeof js=="object"&&js!==null?js:{},Ts;return typeof ol.type=="string"&&(Ts=typeof ol.tagName=="string"?ol.tagName:typeof ol.name=="string"?ol.name:void 0,Cs.displayName="node ("+Do(ol.type+(Ts?"<"+Ts+">":""))+")"),Cs;function Cs(){var Ns=is.concat(js),Ps=[],Cl,Bl;if((!Ja||Bs(js,pl,is[is.length-1]||null))&&(Ps=no( $ o(js,is)),Ps[0]===So))return Ps;if(js.children&&Ps[0]!==eo)for(Bl=(ws?js.children.length:-1)+fs;Bl>-1&&Bl<js.children.length;){if(Cl=Ks(js.children[Bl],Bl,Ns)(),Cl[0]===So)return Cl;Bl=typeof Cl[1]=="number"?Cl[1]:Bl+fs}return Ps}}}function no(Yo){return Yo!==null&&typeof Yo=="object"&&"length"in Yo?Yo:typeof Yo=="number"?[Ao,Yo]:[Yo]}}}),kf=Ki({"node_modules/unist-util-visit/index.js"(ks,us){Vo(),us.exports=So;var Co=xf(),Do=Co.CONTINUE,Ao=Co.SKIP,eo=Co.EXIT;So.CONTINUE=Do,So.SKIP=Ao,So.EXIT=eo;function So(Ro,no,Yo,Ja){typeof no=="function"&&typeof Yo!="function"&&(Ja=Yo,Yo=no,no=null),Co(Ro,no, $ o,Ja);function $ o(ws,fs){var Bs=fs[fs.length-1],Ks=Bs?Bs.children.indexOf(ws):null;return Yo(ws,Ks,Bs)}}}}),pf=Ki({"node_modules/unist-util-remove-position/index.js"(ks,us){Vo();var Co=kf();us.exports=Do;function Do(So,Ro){return Co(So,Ro?Ao:eo),So}function Ao(So){delete So.position}function eo(So){So.position=void 0}}}),Mp=Ki({"node_modules/remark-parse/lib/parse.js"(ks,us){Vo();var Co=pu(),Do=pf();us.exports=So;var Ao= `
` ,eo=/ \r \n | \r /g;function So(){var Ro=this,no=String(Ro.file),Yo={line:1,column:1,offset:0},Ja=Co(Yo), $ o;return no=no.replace(eo,Ao),no.charCodeAt(0)===65279&&(no=no.slice(1),Ja.column++,Ja.offset++), $ o={type:"root",children:Ro.tokenizeBlock(no,Ja),position:{start:Yo,end:Ro.eof||Co(Yo)}},Ro.options.position||Do( $ o,!0), $ o}}}),hm=Ki({"node_modules/remark-parse/lib/tokenize/blank-line.js"(ks,us){Vo();var Co=/^[ \t ]*( \n | $ )/;us.exports=Do;function Do(Ao,eo,So){for(var Ro,no="",Yo=0,Ja=eo.length;Yo<Ja&&(Ro=Co.exec(eo.slice(Yo)),Ro!=null);)Yo+=Ro[0].length,no+=Ro[0];if(no!==""){if(So)return!0;Ao(no)}}}}),If=Ki({"node_modules/repeat-string/index.js"(ks,us){Vo();var Co="",Do;us.exports=Ao;function Ao(eo,So){if(typeof eo!="string")throw new TypeError("expected a string");if(So===1)return eo;if(So===2)return eo+eo;var Ro=eo.length*So;if(Do!==eo||typeof Do>"u")Do=eo,Co="";else if(Co.length>=Ro)return Co.substr(0,Ro);for(;Ro>Co.length&&So>1;)So&1&&(Co+=eo),So>>=1,eo+=eo;return Co+=eo,Co=Co.substr(0,Ro),Co}}}),Cc=Ki({"node_modules/trim-trailing-lines/index.js"(ks,us){Vo(),us.exports=Co;function Co(Do){return String(Do).replace(/ \n + $ /,"")}}}),Nf=Ki({"node_modules/remark-parse/lib/tokenize/code-indented.js"(ks,us){Vo();var Co=If(),Do=Cc();us.exports=Yo;var Ao= `
` ,eo=" ",So=" ",Ro=4,no=Co(So,Ro);function Yo(Ja, $ o,ws){for(var fs=-1,Bs= $ o.length,Ks="",js="",pl="",is="",ol,Ts,Cs;++fs<Bs;)if(ol= $ o.charAt(fs),Cs)if(Cs=!1,Ks+=pl,js+=is,pl="",is="",ol===Ao)pl=ol,is=ol;else for(Ks+=ol,js+=ol;++fs<Bs;){if(ol= $ o.charAt(fs),!ol||ol===Ao){is=ol,pl=ol;break}Ks+=ol,js+=ol}else if(ol===So&& $ o.charAt(fs+1)===ol&& $ o.charAt(fs+2)===ol&& $ o.charAt(fs+3)===ol)pl+=no,fs+=3,Cs=!0;else if(ol===eo)pl+=ol,Cs=!0;else{for(Ts="";ol===eo||ol===So;)Ts+=ol,ol= $ o.charAt(++fs);if(ol!==Ao)break;pl+=Ts+ol,is+=ol}if(js)return ws?!0:Ja(Ks)({type:"code",lang:null,meta:null,value:Do(js)})}}}),xp=Ki({"node_modules/remark-parse/lib/tokenize/code-fenced.js"(ks,us){Vo(),us.exports=Yo;var Co= `
` ,Do=" ",Ao=" ",eo="~",So=" ` ",Ro=3,no=4;function Yo(Ja,$o,ws){var fs=this,Bs=fs.options.gfm,Ks=$o.length+1,js=0,pl=" ",is,ol,Ts,Cs,Ns,Ps,Cl,Bl,Eu,vl,Zl,bu,xu;if(Bs){for(;js<Ks&&(Ts=$o.charAt(js),!(Ts!==Ao&&Ts!==Do));)pl+=Ts,js++;if(bu=js,Ts=$o.charAt(js),!(Ts!==eo&&Ts!==So)){for(js++,ol=Ts,is=1,pl+=Ts;js<Ks&&(Ts=$o.charAt(js),Ts===ol);)pl+=Ts,is++,js++;if(!(is<Ro)){for(;js<Ks&&(Ts=$o.charAt(js),!(Ts!==Ao&&Ts!==Do));)pl+=Ts,js++;for(Cs=" ",Cl=" ";js<Ks&&(Ts=$o.charAt(js),!(Ts===Co||ol===So&&Ts===ol));)Ts===Ao||Ts===Do?Cl+=Ts:(Cs+=Cl+Ts,Cl=" "),js++;if(Ts=$o.charAt(js),!(Ts&&Ts!==Co)){if(ws)return!0;xu=Ja.now(),xu.column+=pl.length,xu.offset+=pl.length,pl+=Cs,Cs=fs.decode.raw(fs.unescape(Cs),xu),Cl&&(pl+=Cl),Cl=" ",vl=" ",Zl=" ",Bl=" ",Eu=" ";for(var Zs=!0;js<Ks;){if(Ts=$o.charAt(js),Bl+=vl,Eu+=Zl,vl=" ",Zl=" ",Ts!==Co){Bl+=Ts,Zl+=Ts,js++;continue}for(Zs?(pl+=Ts,Zs=!1):(vl+=Ts,Zl+=Ts),Cl=" ",js++;js<Ks&&(Ts=$o.charAt(js),Ts===Ao);)Cl+=Ts,js++;if(vl+=Cl,Zl+=Cl.slice(bu),!(Cl.length>=no)){for(Cl=" ";js<Ks&&(Ts=$o.charAt(js),Ts===ol);)Cl+=Ts,js++;if(vl+=Cl,Zl+=Cl,!(Cl.length<is)){for(Cl=" ";js<Ks&&(Ts=$o.charAt(js),!(Ts!==Ao&&Ts!==Do));)vl+=Ts,Zl+=Ts,js++;if(!Ts||Ts===Co)break}}}for(pl+=Bl+vl,js=-1,Ks=Cs.length;++js<Ks;)if(Ts=Cs.charAt(js),Ts===Ao||Ts===Do)Ns||(Ns=Cs.slice(0,js));else if(Ns){Ps=Cs.slice(js);break}return Ja(pl)({type:" code ",lang:Ns||Cs||null,meta:Ps||null,value:Eu})}}}}}}}),mf=Ki({" node _modules / trim / index . js "(ks,us){Vo(),ks=us.exports=Co;function Co(Do){return Do.replace(/^\s*|\s*$/g," ")}ks.left=function(Do){return Do.replace(/^\s*/," ")},ks.right=function(Do){return Do.replace(/\s*$/," ")}}}),zf=Ki({" node _modules / remark - parse / lib / util / interrupt . js "(ks,us){Vo(),us.exports=Co;function Co(Do,Ao,eo,So){for(var Ro=Do.length,no=-1,Yo,Ja;++no<Ro;)if(Yo=Do[no],Ja=Yo[1]||{},!(Ja.pedantic!==void 0&&Ja.pedantic!==eo.options.pedantic)&&!(Ja.commonmark!==void 0&&Ja.commonmark!==eo.options.commonmark)&&Ao[Yo[0]].apply(eo,So))return!0;return!1}}}),Af=Ki({" node _modules / remark - parse / lib / tokenize / blockquote . js " ( ks , us ) { Vo ( ) ; var Co = mf ( ) , Do = zf ( ) ; us . exports = no ; var Ao = `
` ,eo=" ",So=" ",Ro=">";function no(Yo,Ja, $ o){for(var ws=this,fs=ws.offset,Bs=ws.blockTokenizers,Ks=ws.interruptBlockquote,js=Yo.now(),pl=js.line,is=Ja.length,ol=[],Ts=[],Cs=[],Ns,Ps=0,Cl,Bl,Eu,vl,Zl,bu,xu,Zs;Ps<is&&(Cl=Ja.charAt(Ps),!(Cl!==So&&Cl!==eo));)Ps++;if(Ja.charAt(Ps)===Ro){if( $ o)return!0;for(Ps=0;Ps<is;){for(Eu=Ja.indexOf(Ao,Ps),bu=Ps,xu=!1,Eu===-1&&(Eu=is);Ps<is&&(Cl=Ja.charAt(Ps),!(Cl!==So&&Cl!==eo));)Ps++;if(Ja.charAt(Ps)===Ro?(Ps++,xu=!0,Ja.charAt(Ps)===So&&Ps++):Ps=bu,vl=Ja.slice(Ps,Eu),!xu&&!Co(vl)){Ps=bu;break}if(!xu&&(Bl=Ja.slice(Ps),Do(Ks,Bs,ws,[Yo,Bl,!0])))break;Zl=bu===Ps?vl:Ja.slice(bu,Eu),Cs.push(Ps-bu),ol.push(Zl),Ts.push(vl),Ps=Eu+1}for(Ps=-1,is=Cs.length,Ns=Yo(ol.join(Ao));++Ps<is;)fs[pl]=(fs[pl]||0)+Cs[Ps],pl++;return Zs=ws.enterBlock(),Ts=ws.tokenizeBlock(Ts.join(Ao),js),Zs(),Ns({type:"blockquote",children:Ts})}}}}),Gf=Ki({"node_modules/remark-parse/lib/tokenize/heading-atx.js"(ks,us){Vo(),us.exports=Ro;var Co= `
` ,Do=" ",Ao=" ",eo="#",So=6;function Ro(no,Yo,Ja){for(var $ o=this,ws= $ o.options.pedantic,fs=Yo.length+1,Bs=-1,Ks=no.now(),js="",pl="",is,ol,Ts;++Bs<fs;){if(is=Yo.charAt(Bs),is!==Ao&&is!==Do){Bs--;break}js+=is}for(Ts=0;++Bs<=fs;){if(is=Yo.charAt(Bs),is!==eo){Bs--;break}js+=is,Ts++}if(!(Ts>So)&&!(!Ts||!ws&&Yo.charAt(Bs+1)===eo)){for(fs=Yo.length+1,ol="";++Bs<fs;){if(is=Yo.charAt(Bs),is!==Ao&&is!==Do){Bs--;break}ol+=is}if(!(!ws&&ol.length===0&&is&&is!==Co)){if(Ja)return!0;for(js+=ol,ol="",pl="";++Bs<fs&&(is=Yo.charAt(Bs),!(!is||is===Co));){if(is!==Ao&&is!==Do&&is!==eo){pl+=ol+is,ol="";continue}for(;is===Ao||is===Do;)ol+=is,is=Yo.charAt(++Bs);if(!ws&&pl&&!ol&&is===eo){pl+=is;continue}for(;is===eo;)ol+=is,is=Yo.charAt(++Bs);for(;is===Ao||is===Do;)ol+=is,is=Yo.charAt(++Bs);Bs--}return Ks.column+=js.length,Ks.offset+=js.length,js+=pl+ol,no(js)({type:"heading",depth:Ts,children: $ o.tokenizeInline(pl,Ks)})}}}}}),Wp=Ki({"node_modules/remark-parse/lib/tokenize/thematic-break.js"(ks,us){Vo(),us.exports=Yo;var Co=" ",Do= `
` ,Ao=" ",eo="*",So="-",Ro="_",no=3;function Yo(Ja, $ o,ws){for(var fs=-1,Bs= $ o.length+1,Ks="",js,pl,is,ol;++fs<Bs&&(js= $ o.charAt(fs),!(js!==Co&&js!==Ao));)Ks+=js;if(!(js!==eo&&js!==So&&js!==Ro))for(pl=js,Ks+=js,is=1,ol="";++fs<Bs;)if(js= $ o.charAt(fs),js===pl)is++,Ks+=ol+pl,ol="";else if(js===Ao)ol+=js;else return is>=no&&(!js||js===Do)?(Ks+=ol,ws?!0:Ja(Ks)({type:"thematicBreak"})):void 0}}}),gm=Ki({"node_modules/remark-parse/lib/util/get-indentation.js"(ks,us){Vo(),us.exports=So;var Co=" ",Do=" ",Ao=1,eo=4;function So(Ro){for(var no=0,Yo=0,Ja=Ro.charAt(no), $ o={},ws,fs=0;Ja===Co||Ja===Do;){for(ws=Ja===Co?eo:Ao,Yo+=ws,ws>1&&(Yo=Math.floor(Yo/ws)*ws);fs<Yo;) $ o[++fs]=no;Ja=Ro.charAt(++no)}return{indent:Yo,stops: $ o}}}}),Om=Ki({"node_modules/remark-parse/lib/util/remove-indentation.js"(ks,us){Vo();var Co=mf(),Do=If(),Ao=gm();us.exports=no;var eo= `
` ,So=" ",Ro="!";function no(Yo,Ja){var $ o=Yo.split(eo),ws= $ o.length+1,fs=1/0,Bs=[],Ks,js,pl;for( $ o.unshift(Do(So,Ja)+Ro);ws--;)if(js=Ao( $ o[ws]),Bs[ws]=js.stops,Co( $ o[ws]).length!==0)if(js.indent)js.indent>0&&js.indent<fs&&(fs=js.indent);else{fs=1/0;break}if(fs!==1/0)for(ws= $ o.length;ws--;){for(pl=Bs[ws],Ks=fs;Ks&&!(Ks in pl);)Ks--; $ o[ws]= $ o[ws].slice(pl[Ks]+1)}return $ o.shift(), $ o.join(eo)}}}),ef=Ki({"node_modules/remark-parse/lib/tokenize/list.js"(ks,us){Vo();var Co=mf(),Do=If(),Ao=ns(),eo=gm(),So=Om(),Ro=zf();us.exports=Cl;var no="*",Yo="_",Ja="+", $ o="-",ws=".",fs=" ",Bs= `
` ,Ks=" ",js=")",pl="x",is=4,ol=/ \n \n (?! \s * $ )/,Ts=/^ \[ ([ X \t x])][ \t ]/,Cs=/^([ \t ]*)([*+-]| \d +[.)])( {1,4}(?! )| | \t | $ |(?= \n ))([^ \n ]*)/,Ns=/^([ \t ]*)([*+-]| \d +[.)])([ \t ]+)/,Ps=/^( {1,4}| \t )?/gm;function Cl(Zl,bu,xu){for(var Zs=this,Cu=Zs.options.commonmark,ec=Zs.options.pedantic,rc=Zs.blockTokenizers,Ka=Zs.interruptList,Su=0,Ec=bu.length,wu=null,Ul,Iu,kl,bl,Pl,Au,dc,Ic,jc,Id,xc,rp,Hp,Rp,dp,Xc,ud,rf,nf,Tf=!1,Qp,Jd,hp,gp;Su<Ec&&(bl=bu.charAt(Su),!(bl!==Ks&&bl!==fs));)Su++;if(bl=bu.charAt(Su),bl===no||bl===Ja||bl=== $ o)Pl=bl,kl=!1;else{for(kl=!0,Iu="";Su<Ec&&(bl=bu.charAt(Su),!!Ao(bl));)Iu+=bl,Su++;if(bl=bu.charAt(Su),!Iu||!(bl===ws||Cu&&bl===js)||xu&&Iu!=="1")return;wu=parseInt(Iu,10),Pl=bl}if(bl=bu.charAt(++Su),!(bl!==fs&&bl!==Ks&&(ec||bl!==Bs&&bl!==""))){if(xu)return!0;for(Su=0,Rp=[],dp=[],Xc=[];Su<Ec;){for(Au=bu.indexOf(Bs,Su),dc=Su,Ic=!1,gp=!1,Au===-1&&(Au=Ec),Ul=0;Su<Ec;){if(bl=bu.charAt(Su),bl===Ks)Ul+=is-Ul%is;else if(bl===fs)Ul++;else break;Su++}if(ud&&Ul>=ud.indent&&(gp=!0),bl=bu.charAt(Su),jc=null,!gp){if(bl===no||bl===Ja||bl=== $ o)jc=bl,Su++,Ul++;else{for(Iu="";Su<Ec&&(bl=bu.charAt(Su),!!Ao(bl));)Iu+=bl,Su++;bl=bu.charAt(Su),Su++,Iu&&(bl===ws||Cu&&bl===js)&&(jc=bl,Ul+=Iu.length+1)}if(jc)if(bl=bu.charAt(Su),bl===Ks)Ul+=is-Ul%is,Su++;else if(bl===fs){for(hp=Su+is;Su<hp&&bu.charAt(Su)===fs;)Su++,Ul++;Su===hp&&bu.charAt(Su)===fs&&(Su-=is-1,Ul-=is-1)}else bl!==Bs&&bl!==""&&(jc=null)}if(jc){if(!ec&&Pl!==jc)break;Ic=!0}else!Cu&&!gp&&bu.charAt(dc)===fs?gp=!0:Cu&&ud&&(gp=Ul>=ud.indent||Ul>is),Ic=!1,Su=dc;if(xc=bu.slice(dc,Au),Id=dc===Su?xc:bu.slice(Su,Au),(jc===no||jc===Yo||jc=== $ o)&&rc.thematicBreak.call(Zs,Zl,xc,!0))break;if(rp=Hp,Hp=!Ic&&!Co(Id).length,gp&&ud)ud.value=ud.value.concat(Xc,xc),dp=dp.concat(Xc,xc),Xc=[];else if(Ic)Xc.length!==0&&(Tf=!0,ud.value.push(""),ud.trail=Xc.concat()),ud={value:[xc],indent:Ul,trail:[]},Rp.push(ud),dp=dp.concat(Xc,xc),Xc=[];else if(Hp){if(rp&&!Cu)break;Xc.push(xc)}else{if(rp||Ro(Ka,rc,Zs,[Zl,xc,!0]))break;ud.value=ud.value.concat(Xc,xc),dp=dp.concat(Xc,xc),Xc=[]}Su=Au+1}for(Qp=Zl(dp.join(Bs)).reset({type:"list",ordered:kl,start:wu,spread:Tf,children:[]}),rf=Zs.enterList(),nf=Zs.enterBlock(),Su=-1,Ec=Rp.length;++Su<Ec;)ud=Rp[Su].value.join(Bs),Jd=Zl.now(),Zl(ud)(Bl(Zs,ud,Jd),Qp),ud=Rp[Su].trail.join(Bs),Su!==Ec-1&&(ud+=Bs),Zl(ud);return rf(),nf(),Qp}}function Bl(Zl,bu,xu){var Zs=Zl.offset,Cu=Zl.options.pedantic?Eu:vl,ec=null,rc,Ka;return bu=Cu.apply(null,arguments),Zl.options.gfm&&(rc=bu.match(Ts),rc&&(Ka=rc[0].length,ec=rc[1].toLowerCase()===pl,Zs[xu.line]+=Ka,bu=bu.slice(Ka))),{type:"listItem",spread:ol.test(bu),checked:ec,children:Zl.tokenizeBlock(bu,xu)}}function Eu(Zl,bu,xu){var Zs=Zl.offset,Cu=xu.line;return bu=bu.replace(Ns,ec),Cu=xu.line,bu.replace(Ps,ec);function ec(rc){return Zs[Cu]=(Zs[Cu]||0)+rc.length,Cu++,""}}function vl(Zl,bu,xu){var Zs=Zl.offset,Cu=xu.line,ec,rc,Ka,Su,Ec,wu,Ul;for(bu=bu.replace(Cs,Iu),Su=bu.split(Bs),Ec=So(bu,eo(ec).indent).split(Bs),Ec[0]=Ka,Zs[Cu]=(Zs[Cu]||0)+rc.length,Cu++,wu=0,Ul=Su.length;++wu<Ul;)Zs[Cu]=(Zs[Cu]||0)+Su[wu].length-Ec[wu].length,Cu++;return Ec.join(Bs);function Iu(kl,bl,Pl,Au,dc){return rc=bl+Pl+Au,Ka=dc,Number(Pl)<10&&rc.length%2===1&&(Pl=fs+Pl),ec=bl+Do(fs,Pl.length)+Au,ec+Ka}}}}),rm=Ki({"node_modules/remark-parse/lib/tokenize/heading-setext.js"(ks,us){Vo(),us.exports=Ja;var Co= `
` ,Do=" ",Ao=" ",eo="=",So="-",Ro=3,no=1,Yo=2;function Ja( $ o,ws,fs){for(var Bs=this,Ks= $ o.now(),js=ws.length,pl=-1,is="",ol,Ts,Cs,Ns,Ps;++pl<js;){if(Cs=ws.charAt(pl),Cs!==Ao||pl>=Ro){pl--;break}is+=Cs}for(ol="",Ts="";++pl<js;){if(Cs=ws.charAt(pl),Cs===Co){pl--;break}Cs===Ao||Cs===Do?Ts+=Cs:(ol+=Ts+Cs,Ts="")}if(Ks.column+=is.length,Ks.offset+=is.length,is+=ol+Ts,Cs=ws.charAt(++pl),Ns=ws.charAt(++pl),!(Cs!==Co||Ns!==eo&&Ns!==So)){for(is+=Cs,Ts=Ns,Ps=Ns===eo?no:Yo;++pl<js;){if(Cs=ws.charAt(pl),Cs!==Ns){if(Cs!==Co)return;pl--;break}Ts+=Cs}return fs?!0: $ o(is+Ts)({type:"heading",depth:Ps,children:Bs.tokenizeInline(ol,Ks)})}}}}),Mf=Ki({"node_modules/remark-parse/lib/util/html.js"(ks){Vo();var us="[a-zA-Z_:][a-zA-Z0-9:._-]*",Co="[^ \" '=<> ` \ \u0000 - \ \u0020 ] + ",Do=" '[^' ] * '",Ao=' "[^" ] * "',eo=" ( ? : "+Co+" | "+Do+" | "+Ao+" ) ",So=" ( ? : \ \ s + "+us+" ( ? : \ \ s *= \ \ s * "+eo+" ) ? ) ",Ro=" < [ A - Za - z ] [ A - Za - z0 - 9 \ \ - ] * "+So+" * \ \ s * \ \ / ? > ",no=" < \ \ / [ A - Za - z ] [ A - Za - z0 - 9 \ \ - ] * \ \ s * > ",Yo=" <!-- -- > | <!-- ( ? : - ? [ ^ > - ] ) ( ? : - ? [ ^ - ] ) * -- > ",Ja=" < [ ? ] . * ? [ ? ] > ",$o=" < ! [ A - Za - z ] + \ \ s + [ ^ > ] * > ",ws=" < ! \ \ [ CDATA \ \ [ [ \ \ s \ \ S ] * ? \ \ ] \ \ ] > ";ks.openCloseTag=new RegExp(" ^ ( ? : "+Ro+" | "+no+" ) "),ks.tag=new RegExp(" ^ ( ? : "+Ro+" | "+no+" | "+Yo+" | "+Ja+" | "+$o+" | "+ws+" ) ")}}),mh=Ki({" node _modules / remark - parse / lib / tokenize / html - block . js "(ks,us){Vo();var Co=Mf().openCloseTag;us.exports=ol;var Do=" ",Ao=" " , eo = `
` ,So="<",Ro=/^<(script|pre|style)(?=( \s |>| $ ))/i,no=/< \/ (script|pre|style)>/i,Yo=/^<!--/,Ja=/-->/, $ o=/^< \? /,ws=/ \? >/,fs=/^<![A-Za-z]/,Bs=/>/,Ks=/^<! \[ CDATA \[ /,js=/]]>/,pl=/^ $ /,is=new RegExp(Co.source+" \\ s* $ ");function ol(Ts,Cs,Ns){for(var Ps=this,Cl=Ps.options.blocks.join("|"),Bl=new RegExp("^</?("+Cl+")(?=( \\ s|/?>| $ ))","i"),Eu=Cs.length,vl=0,Zl,bu,xu,Zs,Cu,ec,rc,Ka=[[Ro,no,!0],[Yo,Ja,!0],[ $ o,ws,!0],[fs,Bs,!0],[Ks,js,!0],[Bl,pl,!0],[is,pl,!1]];vl<Eu&&(Zs=Cs.charAt(vl),!(Zs!==Do&&Zs!==Ao));)vl++;if(Cs.charAt(vl)===So){for(Zl=Cs.indexOf(eo,vl+1),Zl=Zl===-1?Eu:Zl,bu=Cs.slice(vl,Zl),xu=-1,Cu=Ka.length;++xu<Cu;)if(Ka[xu][0].test(bu)){ec=Ka[xu];break}if(ec){if(Ns)return ec[2];if(vl=Zl,!ec[1].test(bu))for(;vl<Eu;){if(Zl=Cs.indexOf(eo,vl+1),Zl=Zl===-1?Eu:Zl,bu=Cs.slice(vl+1,Zl),ec[1].test(bu)){bu&&(vl=Zl);break}vl=Zl}return rc=Cs.slice(0,vl),Ts(rc)({type:"html",value:rc})}}}}}),Bf=Ki({"node_modules/is-whitespace-character/index.js"(ks,us){Vo(),us.exports=Ao;var Co=String.fromCharCode,Do=/ \s /;function Ao(eo){return Do.test(typeof eo=="number"?Co(eo):eo.charAt(0))}}}),Ph=Ki({"node_modules/collapse-white-space/index.js"(ks,us){Vo(),us.exports=Co;function Co(Do){return String(Do).replace(/ \s +/g," ")}}}),_m=Ki({"node_modules/remark-parse/lib/util/normalize.js"(ks,us){Vo();var Co=Ph();us.exports=Do;function Do(Ao){return Co(Ao).toLowerCase()}}}),Rm=Ki({"node_modules/remark-parse/lib/tokenize/definition.js"(ks,us){Vo();var Co=Bf(),Do=_m();us.exports=pl;var Ao='"',eo="'",So=" \\ ",Ro= `
` ,no=" ",Yo=" ",Ja="[", $ o="]",ws="(",fs=")",Bs=":",Ks="<",js=">";function pl(Ts,Cs,Ns){for(var Ps=this,Cl=Ps.options.commonmark,Bl=0,Eu=Cs.length,vl="",Zl,bu,xu,Zs,Cu,ec,rc,Ka;Bl<Eu&&(Zs=Cs.charAt(Bl),!(Zs!==Yo&&Zs!==no));)vl+=Zs,Bl++;if(Zs=Cs.charAt(Bl),Zs===Ja){for(Bl++,vl+=Zs,xu="";Bl<Eu&&(Zs=Cs.charAt(Bl),Zs!== $ o);)Zs===So&&(xu+=Zs,Bl++,Zs=Cs.charAt(Bl)),xu+=Zs,Bl++;if(!(!xu||Cs.charAt(Bl)!== $ o||Cs.charAt(Bl+1)!==Bs)){for(ec=xu,vl+=xu+ $ o+Bs,Bl=vl.length,xu="";Bl<Eu&&(Zs=Cs.charAt(Bl),!(Zs!==no&&Zs!==Yo&&Zs!==Ro));)vl+=Zs,Bl++;if(Zs=Cs.charAt(Bl),xu="",Zl=vl,Zs===Ks){for(Bl++;Bl<Eu&&(Zs=Cs.charAt(Bl),!!is(Zs));)xu+=Zs,Bl++;if(Zs=Cs.charAt(Bl),Zs===is.delimiter)vl+=Ks+xu+Zs,Bl++;else{if(Cl)return;Bl-=xu.length+1,xu=""}}if(!xu){for(;Bl<Eu&&(Zs=Cs.charAt(Bl),!!ol(Zs));)xu+=Zs,Bl++;vl+=xu}if(xu){for(rc=xu,xu="";Bl<Eu&&(Zs=Cs.charAt(Bl),!(Zs!==no&&Zs!==Yo&&Zs!==Ro));)xu+=Zs,Bl++;if(Zs=Cs.charAt(Bl),Cu=null,Zs===Ao?Cu=Ao:Zs===eo?Cu=eo:Zs===ws&&(Cu=fs),!Cu)xu="",Bl=vl.length;else if(xu){for(vl+=xu+Zs,Bl=vl.length,xu="";Bl<Eu&&(Zs=Cs.charAt(Bl),Zs!==Cu);){if(Zs===Ro){if(Bl++,Zs=Cs.charAt(Bl),Zs===Ro||Zs===Cu)return;xu+=Ro}xu+=Zs,Bl++}if(Zs=Cs.charAt(Bl),Zs!==Cu)return;bu=vl,vl+=xu+Zs,Bl++,Ka=xu,xu=""}else return;for(;Bl<Eu&&(Zs=Cs.charAt(Bl),!(Zs!==no&&Zs!==Yo));)vl+=Zs,Bl++;if(Zs=Cs.charAt(Bl),!Zs||Zs===Ro)return Ns?!0:(Zl=Ts(Zl).test().end,rc=Ps.decode.raw(Ps.unescape(rc),Zl,{nonTerminated:!1}),Ka&&(bu=Ts(bu).test().end,Ka=Ps.decode.raw(Ps.unescape(Ka),bu)),Ts(vl)({type:"definition",identifier:Do(ec),label:ec,title:Ka||null,url:rc}))}}}}function is(Ts){return Ts!==js&&Ts!==Ja&&Ts!== $ o}is.delimiter=js;function ol(Ts){return Ts!==Ja&&Ts!== $ o&&!Co(Ts)}}}),km=Ki({"node_modules/remark-parse/lib/tokenize/table.js"(ks,us){Vo();var Co=Bf();us.exports=Ks;var Do=" ",Ao= `
` ,eo=" ",So="-",Ro=":",no=" \\ ",Yo="|",Ja=1, $ o=2,ws="left",fs="center",Bs="right";function Ks(js,pl,is){var ol=this,Ts,Cs,Ns,Ps,Cl,Bl,Eu,vl,Zl,bu,xu,Zs,Cu,ec,rc,Ka,Su,Ec,wu,Ul,Iu,kl;if(ol.options.gfm){for(Ts=0,Ka=0,Bl=pl.length+1,Eu=[];Ts<Bl;){if(Ul=pl.indexOf(Ao,Ts),Iu=pl.indexOf(Yo,Ts+1),Ul===-1&&(Ul=pl.length),Iu===-1||Iu>Ul){if(Ka< $ o)return;break}Eu.push(pl.slice(Ts,Ul)),Ka++,Ts=Ul+1}for(Ps=Eu.join(Ao),Cs=Eu.splice(1,1)[0]||[],Ts=0,Bl=Cs.length,Ka--,Ns=!1,xu=[];Ts<Bl;){if(Zl=Cs.charAt(Ts),Zl===Yo){if(bu=null,Ns===!1){if(kl===!1)return}else xu.push(Ns),Ns=!1;kl=!1}else if(Zl===So)bu=!0,Ns=Ns||null;else if(Zl===Ro)Ns===ws?Ns=fs:bu&&Ns===null?Ns=Bs:Ns=ws;else if(!Co(Zl))return;Ts++}if(Ns!==!1&&xu.push(Ns),!(xu.length<Ja)){if(is)return!0;for(rc=-1,Ec=[],wu=js(Ps).reset({type:"table",align:xu,children:Ec});++rc<Ka;){for(Su=Eu[rc],Cl={type:"tableRow",children:[]},rc&&js(Ao),js(Su).reset(Cl,wu),Bl=Su.length+1,Ts=0,vl="",Zs="",Cu=!0;Ts<Bl;){if(Zl=Su.charAt(Ts),Zl===Do||Zl===eo){Zs?vl+=Zl:js(Zl),Ts++;continue}Zl===""||Zl===Yo?Cu?js(Zl):((Zs||Zl)&&!Cu&&(Ps=Zs,vl.length>1&&(Zl?(Ps+=vl.slice(0,-1),vl=vl.charAt(vl.length-1)):(Ps+=vl,vl="")),ec=js.now(),js(Ps)({type:"tableCell",children:ol.tokenizeInline(Zs,ec)},Cl)),js(vl+Zl),vl="",Zs=""):(vl&&(Zs+=vl,vl=""),Zs+=Zl,Zl===no&&Ts!==Bl-2&&(Zs+=Su.charAt(Ts+1),Ts++)),Cu=!1,Ts++}rc||js(Ao+Cs)}return wu}}}}}),Nd=Ki({"node_modules/remark-parse/lib/tokenize/paragraph.js"(ks,us){Vo();var Co=mf(),Do=Cc(),Ao=zf();us.exports=Yo;var eo=" ",So= `
` ,Ro=" ",no=4;function Yo(Ja, $ o,ws){for(var fs=this,Bs=fs.options,Ks=Bs.commonmark,js=fs.blockTokenizers,pl=fs.interruptParagraph,is= $ o.indexOf(So),ol= $ o.length,Ts,Cs,Ns,Ps,Cl;is<ol;){if(is===-1){is=ol;break}if( $ o.charAt(is+1)===So)break;if(Ks){for(Ps=0,Ts=is+1;Ts<ol;){if(Ns= $ o.charAt(Ts),Ns===eo){Ps=no;break}else if(Ns===Ro)Ps++;else break;Ts++}if(Ps>=no&&Ns!==So){is= $ o.indexOf(So,is+1);continue}}if(Cs= $ o.slice(is+1),Ao(pl,js,fs,[Ja,Cs,!0]))break;if(Ts=is,is= $ o.indexOf(So,is+1),is!==-1&&Co( $ o.slice(Ts,is))===""){is=Ts;break}}return Cs= $ o.slice(0,is),ws?!0:(Cl=Ja.now(),Cs=Do(Cs),Ja(Cs)({type:"paragraph",children:fs.tokenizeInline(Cs,Cl)}))}}}),wd=Ki({"node_modules/remark-parse/lib/locate/escape.js"(ks,us){Vo(),us.exports=Co;function Co(Do,Ao){return Do.indexOf(" \\ ",Ao)}}}),Fp=Ki({"node_modules/remark-parse/lib/tokenize/escape.js"(ks,us){Vo();var Co=wd();us.exports=eo,eo.locator=Co;var Do= `
` ,Ao=" \\ ";function eo(So,Ro,no){var Yo=this,Ja, $ o;if(Ro.charAt(0)===Ao&&(Ja=Ro.charAt(1),Yo.escape.indexOf(Ja)!==-1))return no?!0:(Ja===Do? $ o={type:"break"}: $ o={type:"text",value:Ja},So(Ao+Ja)( $ o))}}}),hf=Ki({"node_modules/remark-parse/lib/locate/tag.js"(ks,us){Vo(),us.exports=Co;function Co(Do,Ao){return Do.indexOf("<",Ao)}}}),Wc=Ki({"node_modules/remark-parse/lib/tokenize/auto-link.js"(ks,us){Vo();var Co=Bf(),Do=ld(),Ao=hf();us.exports= $ o, $ o.locator=Ao, $ o.notInLink=!0;var eo="<",So=">",Ro="@",no="/",Yo="mailto:",Ja=Yo.length;function $ o(ws,fs,Bs){var Ks=this,js="",pl=fs.length,is=0,ol="",Ts=!1,Cs="",Ns,Ps,Cl,Bl,Eu;if(fs.charAt(0)===eo){for(is++,js=eo;is<pl&&(Ns=fs.charAt(is),!(Co(Ns)||Ns===So||Ns===Ro||Ns===":"&&fs.charAt(is+1)===no));)ol+=Ns,is++;if(ol){if(Cs+=ol,ol="",Ns=fs.charAt(is),Cs+=Ns,is++,Ns===Ro)Ts=!0;else{if(Ns!==":"||fs.charAt(is+1)!==no)return;Cs+=no,is++}for(;is<pl&&(Ns=fs.charAt(is),!(Co(Ns)||Ns===So));)ol+=Ns,is++;if(Ns=fs.charAt(is),!(!ol||Ns!==So))return Bs?!0:(Cs+=ol,Cl=Cs,js+=Cs+Ns,Ps=ws.now(),Ps.column++,Ps.offset++,Ts&&(Cs.slice(0,Ja).toLowerCase()===Yo?(Cl=Cl.slice(Ja),Ps.column+=Ja,Ps.offset+=Ja):Cs=Yo+Cs),Bl=Ks.inlineTokenizers,Ks.inlineTokenizers={text:Bl.text},Eu=Ks.enterLink(),Cl=Ks.tokenizeInline(Cl,Ps),Ks.inlineTokenizers=Bl,Eu(),ws(js)({type:"link",title:null,url:Do(Cs,{nonTerminated:!1}),children:Cl}))}}}}}),nm=Ki({"node_modules/ccount/index.js"(ks,us){Vo(),us.exports=Co;function Co(Do,Ao){var eo=String(Do),So=0,Ro;if(typeof Ao!="string")throw new Error("Expected character");for(Ro=eo.indexOf(Ao);Ro!==-1;)So++,Ro=eo.indexOf(Ao,Ro+Ao.length);return So}}}),Gm=Ki({"node_modules/remark-parse/lib/locate/url.js"(ks,us){Vo(),us.exports=Do;var Co=["www.","http://","https://"];function Do(Ao,eo){var So=-1,Ro,no,Yo;if(!this.options.gfm)return So;for(no=Co.length,Ro=-1;++Ro<no;)Yo=Ao.indexOf(Co[Ro],eo),Yo!==-1&&(So===-1||Yo<So)&&(So=Yo);return So}}}),gf=Ki({"node_modules/remark-parse/lib/tokenize/url.js"(ks,us){Vo();var Co=nm(),Do=ld(),Ao=ns(),eo=Tu(),So=Bf(),Ro=Gm();us.exports=Ps,Ps.locator=Ro,Ps.notInLink=!0;var no=33,Yo=38,Ja=41, $ o=42,ws=44,fs=45,Bs=46,Ks=58,js=59,pl=63,is=60,ol=95,Ts=126,Cs="(",Ns=")";function Ps(Cl,Bl,Eu){var vl=this,Zl=vl.options.gfm,bu=vl.inlineTokenizers,xu=Bl.length,Zs=-1,Cu=!1,ec,rc,Ka,Su,Ec,wu,Ul,Iu,kl,bl,Pl,Au,dc,Ic;if(Zl){if(Bl.slice(0,4)==="www.")Cu=!0,Su=4;else if(Bl.slice(0,7).toLowerCase()==="http://")Su=7;else if(Bl.slice(0,8).toLowerCase()==="https://")Su=8;else return;for(Zs=Su-1,Ka=Su,ec=[];Su<xu;){if(Ul=Bl.charCodeAt(Su),Ul===Bs){if(Zs===Su-1)break;ec.push(Su),Zs=Su,Su++;continue}if(Ao(Ul)||eo(Ul)||Ul===fs||Ul===ol){Su++;continue}break}if(Ul===Bs&&(ec.pop(),Su--),ec[0]!==void 0&&(rc=ec.length<2?Ka:ec[ec.length-2]+1,Bl.slice(rc,Su).indexOf("_")===-1)){if(Eu)return!0;for(Iu=Su,Ec=Su;Su<xu&&(Ul=Bl.charCodeAt(Su),!(So(Ul)||Ul===is));)Su++,Ul===no||Ul=== $ o||Ul===ws||Ul===Bs||Ul===Ks||Ul===pl||Ul===ol||Ul===Ts||(Iu=Su);if(Su=Iu,Bl.charCodeAt(Su-1)===Ja)for(wu=Bl.slice(Ec,Su),kl=Co(wu,Cs),bl=Co(wu,Ns);bl>kl;)Su=Ec+wu.lastIndexOf(Ns),wu=Bl.slice(Ec,Su),bl--;if(Bl.charCodeAt(Su-1)===js&&(Su--,eo(Bl.charCodeAt(Su-1)))){for(Iu=Su-2;eo(Bl.charCodeAt(Iu));)Iu--;Bl.charCodeAt(Iu)===Yo&&(Su=Iu)}return Pl=Bl.slice(0,Su),dc=Do(Pl,{nonTerminated:!1}),Cu&&(dc="http://"+dc),Ic=vl.enterLink(),vl.inlineTokenizers={text:bu.text},Au=vl.tokenizeInline(Pl,Cl.now()),vl.inlineTokenizers=bu,Ic(),Cl(Pl)({type:"link",title:null,url:dc,children:Au})}}}}}),Mm=Ki({"node_modules/remark-parse/lib/locate/email.js"(ks,us){Vo();var Co=ns(),Do=Tu(),Ao=43,eo=45,So=46,Ro=95;us.exports=no;function no(Ja, $ o){var ws=this,fs,Bs;if(!this.options.gfm||(fs=Ja.indexOf("@", $ o),fs===-1))return-1;if(Bs=fs,Bs=== $ o||!Yo(Ja.charCodeAt(Bs-1)))return no.call(ws,Ja,fs+1);for(;Bs> $ o&&Yo(Ja.charCodeAt(Bs-1));)Bs--;return Bs}function Yo(Ja){return Co(Ja)||Do(Ja)||Ja===Ao||Ja===eo||Ja===So||Ja===Ro}}}),Bm=Ki({"node_modules/remark-parse/lib/tokenize/email.js"(ks,us){Vo();var Co=ld(),Do=ns(),Ao=Tu(),eo=Mm();us.exports= $ o, $ o.locator=eo, $ o.notInLink=!0;var So=43,Ro=45,no=46,Yo=64,Ja=95;function $ o(ws,fs,Bs){var Ks=this,js=K
` ,eo="!",So='"',Ro="'",no="(",Yo=")",Ja="<", $ o=">",ws="[",fs=" \\ ",Bs="]",Ks=" ` ";function js(pl,is,ol){var Ts=this,Cs=" ",Ns=0,Ps=is.charAt(0),Cl=Ts.options.pedantic,Bl=Ts.options.commonmark,Eu=Ts.options.gfm,vl,Zl,bu,xu,Zs,Cu,ec,rc,Ka,Su,Ec,wu,Ul,Iu,kl,bl,Pl,Au;if(Ps===eo&&(rc=!0,Cs=Ps,Ps=is.charAt(++Ns)),Ps===ws&&!(!rc&&Ts.inLink)){for(Cs+=Ps,Iu=" ",Ns++,Ec=is.length,bl=pl.now(),Ul=0,bl.column+=Ns,bl.offset+=Ns;Ns<Ec;){if(Ps=is.charAt(Ns),Cu=Ps,Ps===Ks){for(Zl=1;is.charAt(Ns+1)===Ks;)Cu+=Ps,Ns++,Zl++;bu?Zl>=bu&&(bu=0):bu=Zl}else if(Ps===fs)Ns++,Cu+=is.charAt(Ns);else if((!bu||Eu)&&Ps===ws)Ul++;else if((!bu||Eu)&&Ps===Bs)if(Ul)Ul--;else{if(is.charAt(Ns+1)!==no)return;Cu+=no,vl=!0,Ns++;break}Iu+=Cu,Cu=" ",Ns++}if(vl){for(Ka=Iu,Cs+=Iu+Cu,Ns++;Ns<Ec&&(Ps=is.charAt(Ns),!!Co(Ps));)Cs+=Ps,Ns++;if(Ps=is.charAt(Ns),Iu=" ",xu=Cs,Ps===Ja){for(Ns++,xu+=Ja;Ns<Ec&&(Ps=is.charAt(Ns),Ps!==$o);){if(Bl&&Ps===Ao)return;Iu+=Ps,Ns++}if(is.charAt(Ns)!==$o)return;Cs+=Ja+Iu+$o,kl=Iu,Ns++}else{for(Ps=null,Cu=" ";Ns<Ec&&(Ps=is.charAt(Ns),!(Cu&&(Ps===So||Ps===Ro||Bl&&Ps===no)));){if(Co(Ps)){if(!Cl)break;Cu+=Ps}else{if(Ps===no)Ul++;else if(Ps===Yo){if(Ul===0)break;Ul--}Iu+=Cu,Cu=" ",Ps===fs&&(Iu+=fs,Ps=is.charAt(++Ns)),Iu+=Ps}Ns++}Cs+=Iu,kl=Iu,Ns=Cs.length}for(Iu=" ";Ns<Ec&&(Ps=is.charAt(Ns),!!Co(Ps));)Iu+=Ps,Ns++;if(Ps=is.charAt(Ns),Cs+=Iu,Iu&&(Ps===So||Ps===Ro||Bl&&Ps===no))if(Ns++,Cs+=Ps,Iu=" ",Su=Ps===no?Yo:Ps,Zs=Cs,Bl){for(;Ns<Ec&&(Ps=is.charAt(Ns),Ps!==Su);)Ps===fs&&(Iu+=fs,Ps=is.charAt(++Ns)),Ns++,Iu+=Ps;if(Ps=is.charAt(Ns),Ps!==Su)return;for(wu=Iu,Cs+=Iu+Ps,Ns++;Ns<Ec&&(Ps=is.charAt(Ns),!!Co(Ps));)Cs+=Ps,Ns++}else for(Cu=" ";Ns<Ec;){if(Ps=is.charAt(Ns),Ps===Su)ec&&(Iu+=Su+Cu,Cu=" "),ec=!0;else if(!ec)Iu+=Ps;else if(Ps===Yo){Cs+=Iu+Su+Cu,wu=Iu;break}else Co(Ps)?Cu+=Ps:(Iu+=Su+Cu+Ps,Cu=" ",ec=!1);Ns++}if(is.charAt(Ns)===Yo)return ol?!0:(Cs+=Yo,kl=Ts.decode.raw(Ts.unescape(kl),pl(xu).test().end,{nonTerminated:!1}),wu&&(Zs=pl(Zs).test().end,wu=Ts.decode.raw(Ts.unescape(wu),Zs)),Au={type:rc?" image ":" link ",title:wu||null,url:kl},rc?Au.alt=Ts.decode.raw(Ts.unescape(Ka),bl)||null:(Pl=Ts.enterLink(),Au.children=Ts.tokenizeInline(Ka,bl),Pl()),pl(Cs)(Au))}}}}}),Lf=Ki({" node _modules / remark - parse / lib / tokenize / reference . js "(ks,us){Vo();var Co=Bf(),Do=vm(),Ao=_m();us.exports=Bs,Bs.locator=Do;var eo=" link ",So=" image ",Ro=" shortcut ",no=" collapsed ",Yo=" full ",Ja=" ! ",$o=" [ ",ws=" \ \ ",fs=" ] ";function Bs(Ks,js,pl){var is=this,ol=is.options.commonmark,Ts=js.charAt(0),Cs=0,Ns=js.length,Ps=" ",Cl=" ",Bl=eo,Eu=Ro,vl,Zl,bu,xu,Zs,Cu,ec,rc;if(Ts===Ja&&(Bl=So,Cl=Ts,Ts=js.charAt(++Cs)),Ts===$o){for(Cs++,Cl+=Ts,Cu=" ",rc=0;Cs<Ns;){if(Ts=js.charAt(Cs),Ts===$o)ec=!0,rc++;else if(Ts===fs){if(!rc)break;rc--}Ts===ws&&(Cu+=ws,Ts=js.charAt(++Cs)),Cu+=Ts,Cs++}if(Ps=Cu,vl=Cu,Ts=js.charAt(Cs),Ts===fs){if(Cs++,Ps+=Ts,Cu=" ",!ol)for(;Cs<Ns&&(Ts=js.charAt(Cs),!!Co(Ts));)Cu+=Ts,Cs++;if(Ts=js.charAt(Cs),Ts===$o){for(Zl=" ",Cu+=Ts,Cs++;Cs<Ns&&(Ts=js.charAt(Cs),!(Ts===$o||Ts===fs));)Ts===ws&&(Zl+=ws,Ts=js.charAt(++Cs)),Zl+=Ts,Cs++;Ts=js.charAt(Cs),Ts===fs?(Eu=Zl?Yo:no,Cu+=Zl+Ts,Cs++):Zl=" ",Ps+=Cu,Cu=" "}else{if(!vl)return;Zl=vl}if(!(Eu!==Yo&&ec))return Ps=Cl+Ps,Bl===eo&&is.inLink?null:pl?!0:(bu=Ks.now(),bu.column+=Cl.length,bu.offset+=Cl.length,Zl=Eu===Yo?Zl:vl,xu={type:Bl+" Reference ",identifier:Ao(Zl),label:Zl,referenceType:Eu},Bl===eo?(Zs=is.enterLink(),xu.children=is.tokenizeInline(vl,bu),Zs()):xu.alt=is.decode.raw(is.unescape(vl),bu)||null,Ks(Ps)(xu))}}}}}),bm=Ki({" node _modules / remark - parse / lib / locate / strong . js "(ks,us){Vo(),us.exports=Co;function Co(Do,Ao){var eo=Do.indexOf(" * * ",Ao),So=Do.indexOf(" _ _ ",Ao);return So===-1?eo:eo===-1||So<eo?So:eo}}}),ip=Ki({" node _modules / remark - parse / lib / tokenize / strong . js "(ks,us){Vo();var Co=mf(),Do=Bf(),Ao=bm();us.exports=no,no.locator=Ao;var eo=" \ \ ",So=" * ",Ro=" _ ";function no(Yo,Ja,$o){var ws=this,fs=0,Bs=Ja.charAt(fs),Ks,js,pl,is,ol,Ts,Cs;if(!(Bs!==So&&Bs!==Ro||Ja.charAt(++fs)!==Bs)&&(js=ws.options.pedantic,pl=Bs,ol=pl+pl,Ts=Ja.length,fs++,is=" ",Bs=" " , ! ( js && Do ( Ja . charAt ( fs ) ) ) ) ) for ( ; fs < Ts ; ) { if ( Cs = Bs , Bs = Ja . charAt ( fs ) , Bs === pl && Ja . charAt ( fs + 1 ) === pl && ( ! js || ! Do ( Cs ) ) && ( Bs = Ja .
` ,Ao);eo>Ao&&Do.charAt(eo-1)===" ";)eo--;return eo}}}),sd=Ki({"node_modules/remark-parse/lib/tokenize/break.js"(ks,us){Vo();var Co=Kc();us.exports=So,So.locator=Co;var Do=" ",Ao= `
` ,eo=2;function So(Ro,no,Yo){for(var Ja=no.length, $ o=-1,ws="",fs;++ $ o<Ja;){if(fs=no.charAt( $ o),fs===Ao)return $ o<eo?void 0:Yo?!0:(ws+=fs,Ro(ws)({type:"break"}));if(fs!==Do)return;ws+=fs}}}}),Xd=Ki({"node_modules/remark-parse/lib/tokenize/text.js"(ks,us){Vo(),us.exports=Co;function Co(Do,Ao,eo){var So=this,Ro,no,Yo,Ja, $ o,ws,fs,Bs,Ks,js;if(eo)return!0;for(Ro=So.inlineMethods,Ja=Ro.length,no=So.inlineTokenizers,Yo=-1,Ks=Ao.length;++Yo<Ja;)Bs=Ro[Yo],!(Bs==="text"||!no[Bs])&&(fs=no[Bs].locator,fs||Do.file.fail("Missing locator: ` "+Bs+" ` "),ws=fs.call(So,Ao,1),ws!==-1&&ws<Ks&&(Ks=ws)); $ o=Ao.slice(0,Ks),js=Do.now(),So.decode( $ o,js,pl);function pl(is,ol,Ts){Do(Ts||is)({type:"text",value:is})}}}}),_f=Ki({"node_modules/remark-parse/lib/parser.js"(ks,us){Vo();var Co=pu(),Do=Hl(),Ao=lc(),eo=Vu(),So=hd(),Ro=yp();us.exports=no;function no( $ o,ws){this.file=ws,this.offset={},this.options=Co(this.options),this.setOptions({}),this.inList=!1,this.inBlock=!1,this.inLink=!1,this.atStart=!0,this.toOffset=Ao(ws).toOffset,this.unescape=eo(this,"escape"),this.decode=So(this)}var Yo=no.prototype;Yo.setOptions=od(),Yo.parse=Mp(),Yo.options=qd(),Yo.exitStart=Do("atStart",!0),Yo.enterList=Do("inList",!1),Yo.enterLink=Do("inLink",!1),Yo.enterBlock=Do("inBlock",!1),Yo.interruptParagraph=[["thematicBreak"],["list"],["atxHeading"],["fencedCode"],["blockquote"],["html"],["setextHeading",{commonmark:!1}],["definition",{commonmark:!1}]],Yo.interruptList=[["atxHeading",{pedantic:!1}],["fencedCode",{pedantic:!1}],["thematicBreak",{pedantic:!1}],["definition",{commonmark:!1}]],Yo.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}]],Yo.blockTokenizers={blankLine:hm(),indentedCode:Nf(),fencedCode:xp(),blockquote:Af(),atxHeading:Gf(),thematicBreak:Wp(),list:ef(),setextHeading:rm(),html:mh(),definition:Rm(),table:km(),paragraph:Nd()},Yo.inlineTokenizers={escape:Fp(),autoLink:Wc(),url:gf(),email:Bm(),html:jd(),link:Pf(),reference:Lf(),strong:ip(),emphasis:qf(),deletion:Wn(),code:Ru(),break:sd(),text:Xd()},Yo.blockMethods=Ja(Yo.blockTokenizers),Yo.inlineMethods=Ja(Yo.inlineTokenizers),Yo.tokenizeBlock=Ro("block"),Yo.tokenizeInline=Ro("inline"),Yo.tokenizeFactory=Ro;function Ja( $ o){var ws=[],fs;for(fs in $ o)ws.push(fs);return ws}}}), $ f=Ki({"node_modules/remark-parse/index.js"(ks,us){Vo();var Co=yu(),Do=pu(),Ao=_f();us.exports=eo,eo.Parser=Ao;function eo(So){var Ro=this.data("settings"),no=Co(Ao);no.prototype.options=Do(no.prototype.options,Ro,So),this.Parser=no}}}),Pm=Ki({"node_modules/bail/index.js"(ks,us){Vo(),us.exports=Co;function Co(Do){if(Do)throw Do}}}),qm=Ki({"node_modules/is-buffer/index.js"(ks,us){Vo(),us.exports=function(Co){return Co!=null&&Co.constructor!=null&&typeof Co.constructor.isBuffer=="function"&&Co.constructor.isBuffer(Co)}}}),sp=Ki({"node_modules/extend/index.js"(ks,us){Vo();var Co=Object.prototype.hasOwnProperty,Do=Object.prototype.toString,Ao=Object.defineProperty,eo=Object.getOwnPropertyDescriptor,So=function(Ja){return typeof Array.isArray=="function"?Array.isArray(Ja):Do.call(Ja)==="[object Array]"},Ro=function(Ja){if(!Ja||Do.call(Ja)!=="[object Object]")return!1;var $ o=Co.call(Ja,"constructor"),ws=Ja.constructor&&Ja.constructor.prototype&&Co.call(Ja.constructor.prototype,"isPrototypeOf");if(Ja.constructor&&! $ o&&!ws)return!1;var fs;for(fs in Ja);return typeof fs>"u"||Co.call(Ja,fs)},no=function(Ja, $ o){Ao&& $ o.name==="__proto__"?Ao(Ja, $ o.name,{enumerable:!0,configurable:!0,value: $ o.newValue,writable:!0}):Ja[ $ o.name]= $ o.newValue},Yo=function(Ja, $ o){if( $ o==="__proto__")if(Co.call(Ja, $ o)){if(eo)return eo(Ja, $ o).value}else return;return Ja[ $ o]};us.exports=function Ja(){var $ o,ws,fs,Bs,Ks,js,pl=arguments[0],is=1,ol=arguments.length,Ts=!1;for(typeof pl=="boolean"&&(Ts=pl,pl=arguments[1]||{},is=2),(pl==null||typeof pl!="object"&&typeof pl!="function")&&(pl={});is<ol;++is)if( $ o=arguments[is], $ o!=null)for(ws in $ o)fs=Yo(pl,ws),Bs=Yo( $ o,ws),
` ,Ro=" $ ",no=2,Yo=["math","math-display"];function Ja(){let fs=this.Parser,Bs=this.Compiler;Co.isRemarkParser(fs)&& $ o(fs),Co.isRemarkCompiler(Bs)&&ws(Bs)}function $ o(fs){let Bs=fs.prototype,Ks=Bs.blockMethods,js=Bs.interruptParagraph,pl=Bs.interruptList,is=Bs.interruptBlockquote;Bs.blockTokenizers.math=ol,Ks.splice(Ks.indexOf("fencedCode")+1,0,"math"),js.splice(js.indexOf("fencedCode")+1,0,["math"]),pl.splice(pl.indexOf("fencedCode")+1,0,["math"]),is.splice(is.indexOf("fencedCode")+1,0,["math"]);function ol(Ts,Cs,Ns){var Ps=Cs.length,Cl=0;let Bl,Eu,vl,Zl,bu,xu,Zs,Cu,ec,rc,Ka;for(;Cl<Ps&&Cs.charCodeAt(Cl)===Ao;)Cl++;for(bu=Cl;Cl<Ps&&Cs.charCodeAt(Cl)===eo;)Cl++;if(xu=Cl-bu,!(xu<no)){for(;Cl<Ps&&Cs.charCodeAt(Cl)===Ao;)Cl++;for(Zs=Cl;Cl<Ps;){if(Bl=Cs.charCodeAt(Cl),Bl===eo)return;if(Bl===Do)break;Cl++}if(Cs.charCodeAt(Cl)===Do){if(Ns)return!0;for(Eu=[],Zs!==Cl&&Eu.push(Cs.slice(Zs,Cl)),Cl++,vl=Cs.indexOf(So,Cl+1),vl=vl===-1?Ps:vl;Cl<Ps;){for(Cu=!1,rc=Cl,Ka=vl,Zl=vl,ec=0;Zl>rc&&Cs.charCodeAt(Zl-1)===Ao;)Zl--;for(;Zl>rc&&Cs.charCodeAt(Zl-1)===eo;)ec++,Zl--;for(xu<=ec&&Cs.indexOf(Ro,rc)===Zl&&(Cu=!0,Ka=Zl);rc<=Ka&&rc-Cl<bu&&Cs.charCodeAt(rc)===Ao;)rc++;if(Cu)for(;Ka>rc&&Cs.charCodeAt(Ka-1)===Ao;)Ka--;if((!Cu||rc!==Ka)&&Eu.push(Cs.slice(rc,Ka)),Cu)break;Cl=vl+1,vl=Cs.indexOf(So,Cl+1),vl=vl===-1?Ps:vl}return Eu=Eu.join( `
` ),Ts(Cs.slice(0,vl))({type:"math",value:Eu,data:{hName:"div",hProperties:{className:Yo.concat()},hChildren:[{type:"text",value:Eu}]}})}}}}function ws(fs){let Bs=fs.prototype;Bs.visitors.math=Ks;function Ks(js){return ` $$
` +js.value+ `
$$ ` }}}}),Km=Ki({"node_modules/remark-math/index.js"(ks,us){Vo();var Co=Em(),Do= $ h();us.exports=Ao;function Ao(eo){var So=eo||{};Do.call(this,So),Co.call(this,So)}}}),hh=Ki({"node_modules/remark-footnotes/index.js"(ks,us){Vo(),us.exports=Bs;var Co=9,Do=10,Ao=32,eo=33,So=58,Ro=91,no=92,Yo=93,Ja=94, $ o=96,ws=4,fs=1024;function Bs(Cs){var Ns=this.Parser,Ps=this.Compiler;Ks(Ns)&&pl(Ns,Cs),js(Ps)&&is(Ps)}function Ks(Cs){return!!(Cs&&Cs.prototype&&Cs.prototype.blockTokenizers)}function js(Cs){return!!(Cs&&Cs.prototype&&Cs.prototype.visitors)}function pl(Cs,Ns){for(var Ps=Ns||{},Cl=Cs.prototype,Bl=Cl.blockTokenizers,Eu=Cl.inlineTokenizers,vl=Cl.blockMethods,Zl=Cl.inlineMethods,bu=Bl.definition,xu=Eu.reference,Zs=[],Cu=-1,ec=vl.length,rc;++Cu<ec;)rc=vl[Cu],!(rc==="newline"||rc==="indentedCode"||rc==="paragraph"||rc==="footnoteDefinition")&&Zs.push([rc]);Zs.push(["footnoteDefinition"]),Ps.inlineNotes&&(ol(Zl,"reference","inlineNote"),Eu.inlineNote=Ec),ol(vl,"definition","footnoteDefinition"),ol(Zl,"reference","footnoteCall"),Bl.definition=Ul,Bl.footnoteDefinition=Ka,Eu.footnoteCall=Su,Eu.reference=wu,Cl.interruptFootnoteDefinition=Zs,wu.locator=xu.locator,Su.locator=Iu,Ec.locator=kl;function Ka(bl,Pl,Au){for(var dc=this,Ic=dc.interruptFootnoteDefinition,jc=dc.offset,Id=Pl.length+1,xc=0,rp=[],Hp,Rp,dp,Xc,ud,rf,nf,Tf,Qp,Jd,hp,gp,Vd;xc<Id&&(Xc=Pl.charCodeAt(xc),!(Xc!==Co&&Xc!==Ao));)xc++;if(Pl.charCodeAt(xc++)===Ro&&Pl.charCodeAt(xc++)===Ja){for(Rp=xc;xc<Id;){if(Xc=Pl.charCodeAt(xc),Xc!==Xc||Xc===Do||Xc===Co||Xc===Ao)return;if(Xc===Yo){dp=xc,xc++;break}xc++}if(!(dp===void 0||Rp===dp||Pl.charCodeAt(xc++)!==So)){if(Au)return!0;for(Hp=Pl.slice(Rp,dp),ud=bl.now(),Qp=0,Jd=0,hp=xc,gp=[];xc<Id;){if(Xc=Pl.charCodeAt(xc),Xc!==Xc||Xc===Do)Vd={start:Qp,contentStart:hp||xc,contentEnd:xc,end:xc},gp.push(Vd),Xc===Do&&(Qp=xc+1,Jd=0,hp=void 0,Vd.end=Qp);else if(Jd!==void 0)if(Xc===Ao||Xc===Co)Jd+=Xc===Ao?1:ws-Jd%ws,Jd>ws&&(Jd=void 0,hp=xc);else{if(Jd<ws&&Vd&&(Vd.contentStart===Vd.contentEnd||Ts(Ic,Bl,dc,[bl,Pl.slice(xc,fs),!0])))break;Jd=void 0,hp=xc}xc++}for(xc=-1,Id=gp.length;Id>0&&(Vd=gp[Id-1],Vd.contentStart===Vd.contentEnd);)Id--;for(rf=bl(Pl.slice(0,Vd.contentEnd));++xc<Id;)Vd=gp[xc],jc[ud.line+xc]=(jc[ud.line+xc]||0)+(Vd.contentStart-Vd.start),rp.push(Pl.slice(Vd.contentStart,Vd.end));return nf=dc.enterBlock(),Tf=dc.tokenizeBlock(rp.join(""),ud),nf(),rf({type:"footnoteDefinition",identifier:Hp.toLowerCase(),label:Hp,children:Tf})}}}function Su(bl,Pl,Au){var dc=Pl.length+1,Ic=0,jc,Id,xc,rp;if(Pl.charCodeAt(Ic++)===Ro&&Pl.charCodeAt(Ic++)===Ja){for(Id=Ic;Ic<dc;){if(rp=Pl.charCodeAt(Ic),rp!==rp||rp===Do||rp===Co||rp===Ao)return;if(rp===Yo){xc=Ic,Ic++;break}Ic++}if(!(xc===void 0||Id===xc))return Au?!0:(jc=Pl.slice(Id,xc),bl(Pl.slice(0,Ic))({type:"footnoteReference",identifier:jc.toLowerCase(),label:jc}))}}function Ec(bl,Pl,Au){var dc=this,Ic=Pl.length+1,jc=0,Id=0,xc,rp,Hp,Rp,dp,Xc,ud;if(Pl.charCodeAt(jc++)===Ja&&Pl.charCodeAt(jc++)===Ro){for(Hp=jc;jc<Ic;){if(rp=Pl.charCodeAt(jc),rp!==rp)return;if(Xc===void 0)if(rp===no)jc+=2;else if(rp===Ro)Id++,jc++;else if(rp===Yo)if(Id===0){Rp=jc,jc++;break}else Id--,jc++;else if(rp=== $ o){for(dp=jc,Xc=1;Pl.charCodeAt(dp+Xc)=== $ o;)Xc++;jc+=Xc}else jc++;else if(rp=== $ o){for(dp=jc,ud=1;Pl.charCodeAt(dp+ud)=== $ o;)ud++;jc+=ud,Xc===ud&&(Xc=void 0),ud=void 0}else jc++}if(Rp!==void 0)return Au?!0:(xc=bl.now(),xc.column+=2,xc.offset+=2,bl(Pl.slice(0,jc))({type:"footnote",children:dc.tokenizeInline(Pl.slice(Hp,Rp),xc)}))}}function wu(bl,Pl,Au){var dc=0;if(Pl.charCodeAt(dc)===eo&&dc++,Pl.charCodeAt(dc)===Ro&&Pl.charCodeAt(dc+1)!==Ja)return xu.call(this,bl,Pl,Au)}function Ul(bl,Pl,Au){for(var dc=0,Ic=Pl.charCodeAt(dc);Ic===Ao||Ic===Co;)Ic=Pl.charCodeAt(++dc);if(Ic===Ro&&Pl.charCodeAt(dc+1)!==Ja)return bu.call(this,bl,Pl,Au)}function Iu(bl,Pl){return bl.indexOf("[",Pl)}function kl(bl,Pl){return bl.indexOf("^[",Pl)}}function is(Cs){var Ns=Cs.prototype.visitors,Ps=" ";Ns.footnote=Cl,Ns.footnoteReference=Bl,Ns.footnoteDefinition=Eu;function Cl(vl){return"^["+this.all(vl).join("")+"]"}function Bl(vl){return"[^"+(vl.label||v
2024-08-21 13:12:53 +08:00
` ).split( `
2024-08-25 11:35:35 +08:00
` ),bu=0,xu=Zl.length,Zs;++bu<xu;)Zs=Zl[bu],Zs!==""&&(Zl[bu]=Ps+Zs);return"[^"+(vl.label||vl.identifier)+"]: "+Zl.join( `
` )}}function ol(Cs,Ns,Ps){Cs.splice(Cs.indexOf(Ns),0,Ps)}function Ts(Cs,Ns,Ps,Cl){for(var Bl=Cs.length,Eu=-1;++Eu<Bl;)if(Ns[Cs[Eu][0]].apply(Ps,Cl))return!0;return!1}}}),Sm=Ki({"src/utils/front-matter/parse.js"(ks,us){Vo();var Co=new RegExp("^(?<startDelimiter>-{3}| \\ +{3})(?<language>[^ \\ n]*) \\ n(?:|(?<value>.*?) \\ n)(?<endDelimiter> \\ k<startDelimiter>| \\ .{3})[^ \\ S \\ n]*(?: \\ n| $ )","s");function Do(Ao){let eo=Ao.match(Co);if(!eo)return{content:Ao};let{startDelimiter:So,language:Ro,value:no="",endDelimiter:Yo}=eo.groups,Ja=Ro.trim()||"yaml";if(So==="+++"&&(Ja="toml"),Ja!=="yaml"&&So!==Yo)return{content:Ao};let[ $ o]=eo;return{frontMatter:{type:"front-matter",lang:Ja,value:no,startDelimiter:So,endDelimiter:Yo,raw: $ o.replace(/ \n $ /,"")},content: $ o.replace(/[^ \n ]/g," ")+Ao.slice( $ o.length)}}us.exports=Do}}),Tm=Ki({"src/language-markdown/pragma.js"(ks,us){Vo();var Co=Sm(),Do=["format","prettier"];function Ao(eo){let So= ` @ ( $ { Do . join ( "|" ) } ) ` ,Ro=new RegExp([ ` <!-- \ \ s * $ { So } \ \ s * -- > ` , ` { \ \ s * \ \ / \ \ * \ \ s * $ { So } \ \ s * \ \ * \ \ / \ \ s * } ` , ` <!-- . * \ r ?
2024-08-21 13:12:53 +08:00
[ \ \ s \ \ S ] * ( ^ |
) [ ^ \ \ S
] * $ { So } [ ^ \ \ S
] * ( $ |
) [ \ \ s \ \ S ] *
2024-08-25 11:35:35 +08:00
. * -- > ` ].join("|"),"m"),no=eo.match(Ro);return(no==null?void 0:no.index)===0}us.exports={startWithPragma:Ao,hasPragma:eo=>Ao(Co(eo).content.trimStart()),insertPragma:eo=>{let So=Co(eo),Ro= ` <!-- @ $ { Do [ 0 ] } -- > ` ;return So.frontMatter? ` $ { So . frontMatter . raw }
2024-08-21 13:12:53 +08:00
$ { Ro }
$ { So . content } ` : ` $ { Ro }
2024-08-25 11:35:35 +08:00
$ { So . content } ` }}}}),im=Ki({"src/language-markdown/loc.js"(ks,us){Vo();function Co(Ao){return Ao.position.start.offset}function Do(Ao){return Ao.position.end.offset}us.exports={locStart:Co,locEnd:Do}}}),vf=Ki({"src/language-markdown/mdx.js"(ks,us){Vo();var Co=/^import \s /,Do=/^export \s /,Ao="[a-z][a-z0-9]*( \\ .[a-z][a-z0-9]*)*|",eo=/<!---->|<!---?[^>-](?:-?[^-])*-->/,So=/^{ \s * \/ \* (.*) \* \/ \s *}/,Ro= `
2024-08-21 13:12:53 +08:00
2024-08-25 11:35:35 +08:00
` ,no=fs=>Co.test(fs),Yo=fs=>Do.test(fs),Ja=(fs,Bs)=>{let Ks=Bs.indexOf(Ro),js=Bs.slice(0,Ks);if(Yo(js)||no(js))return fs(js)({type:Yo(js)?"export":"import",value:js})}, $ o=(fs,Bs)=>{let Ks=So.exec(Bs);if(Ks)return fs(Ks[0])({type:"esComment",value:Ks[1].trim()})};Ja.locator=fs=>Yo(fs)||no(fs)?-1:1, $ o.locator=(fs,Bs)=>fs.indexOf("{",Bs);function ws(){let{Parser:fs}=this,{blockTokenizers:Bs,blockMethods:Ks,inlineTokenizers:js,inlineMethods:pl}=fs.prototype;Bs.esSyntax=Ja,js.esComment= $ o,Ks.splice(Ks.indexOf("paragraph"),0,"esSyntax"),pl.splice(pl.indexOf("text"),0,"esComment")}us.exports={esSyntax:ws,BLOCKS_REGEX:Ao,COMMENT_REGEX:eo}}}),Ym={};Xo(Ym,{default:()=>cp});function cp(ks){if(typeof ks!="string")throw new TypeError("Expected a string");return ks.replace(/[| \\ {}()[ \] ^ $ +*?.]/g," \\ $ &").replace(/-/g," \\ x2d")}var Kf=pa({"node_modules/escape-string-regexp/index.js"(){Vo()}}),Vp=Ki({"src/utils/get-last.js"(ks,us){Vo();var Co=Do=>Do[Do.length-1];us.exports=Co}}),tf=Ki({"node_modules/semver/internal/debug.js"(ks,us){Vo();var Co=typeof An=="object"&&An.env&&An.env.NODE_DEBUG&&/ \b semver \b /i.test(An.env.NODE_DEBUG)?function(){for(var Do=arguments.length,Ao=new Array(Do),eo=0;eo<Do;eo++)Ao[eo]=arguments[eo];return console.error("SEMVER",...Ao)}:()=>{};us.exports=Co}}),Yf=Ki({"node_modules/semver/internal/constants.js"(ks,us){Vo();var Co="2.0.0",Do=256,Ao=Number.MAX_SAFE_INTEGER||9007199254740991,eo=16;us.exports={SEMVER_SPEC_VERSION:Co,MAX_LENGTH:Do,MAX_SAFE_INTEGER:Ao,MAX_SAFE_COMPONENT_LENGTH:eo}}}),Cm=Ki({"node_modules/semver/internal/re.js"(ks,us){Vo();var{MAX_SAFE_COMPONENT_LENGTH:Co}=Yf(),Do=tf();ks=us.exports={};var Ao=ks.re=[],eo=ks.src=[],So=ks.t={},Ro=0,no=(Yo,Ja, $ o)=>{let ws=Ro++;Do(Yo,ws,Ja),So[Yo]=ws,eo[ws]=Ja,Ao[ws]=new RegExp(Ja, $ o?"g":void 0)};no("NUMERICIDENTIFIER","0|[1-9] \\ d*"),no("NUMERICIDENTIFIERLOOSE","[0-9]+"),no("NONNUMERICIDENTIFIER"," \\ d*[a-zA-Z-][a-zA-Z0-9-]*"),no("MAINVERSION", ` ( $ { eo [ So . NUMERICIDENTIFIER ] } ) \ \ . ( $ { eo [ So . NUMERICIDENTIFIER ] } ) \ \ . ( $ { eo [ So . NUMERICIDENTIFIER ] } ) ` ),no("MAINVERSIONLOOSE", ` ( $ { eo [ So . NUMERICIDENTIFIERLOOSE ] } ) \ \ . ( $ { eo [ So . NUMERICIDENTIFIERLOOSE ] } ) \ \ . ( $ { eo [ So . NUMERICIDENTIFIERLOOSE ] } ) ` ),no("PRERELEASEIDENTIFIER", ` ( ? : $ { eo [ So . NUMERICIDENTIFIER ] } | $ { eo [ So . NONNUMERICIDENTIFIER ] } ) ` ),no("PRERELEASEIDENTIFIERLOOSE", ` ( ? : $ { eo [ So . NUMERICIDENTIFIERLOOSE ] } | $ { eo [ So . NONNUMERICIDENTIFIER ] } ) ` ),no("PRERELEASE", ` ( ? : - ( $ { eo [ So . PRERELEASEIDENTIFIER ] } ( ? : \ \ . $ { eo [ So . PRERELEASEIDENTIFIER ] } ) * ) ) ` ),no("PRERELEASELOOSE", ` ( ? : - ? ( $ { eo [ So . PRERELEASEIDENTIFIERLOOSE ] } ( ? : \ \ . $ { eo [ So . PRERELEASEIDENTIFIERLOOSE ] } ) * ) ) ` ),no("BUILDIDENTIFIER","[0-9A-Za-z-]+"),no("BUILD", ` ( ? : \ \ + ( $ { eo [ So . BUILDIDENTIFIER ] } ( ? : \ \ . $ { eo [ So . BUILDIDENTIFIER ] } ) * ) ) ` ),no("FULLPLAIN", ` v ? $ { eo [ So . MAINVERSION ] } $ { eo [ So . PRERELEASE ] } ? $ { eo [ So . BUILD ] } ? ` ),no("FULL", ` ^ $ { eo [ So . FULLPLAIN ] } $ ` ),no("LOOSEPLAIN", ` [ v = \ \ s ] * $ { eo [ So . MAINVERSIONLOOSE ] } $ { eo [ So . PRERELEASELOOSE ] } ? $ { eo [ So . BUILD ] } ? ` ),no("LOOSE", ` ^ $ { eo [ So . LOOSEPLAIN ] } $ ` ),no("GTLT","((?:<|>)?=?)"),no("XRANGEIDENTIFIERLOOSE", ` $ { eo [ So . NUMERICIDENTIFIERLOOSE ] } | x | X | \ \ * ` ),no("XRANGEIDENTIFIER", ` $ { eo [ So . NUMERICIDENTIFIER ] } | x | X | \ \ * ` ),no("XRANGEPLAIN", ` [ v = \ \ s ] * ( $ { eo [ So . XRANGEIDENTIFIER ] } ) ( ? : \ \ . ( $ { eo [ So . XRANGEIDENTIFIER ] } ) ( ? : \ \ . ( $ { eo [ So . XRANGEIDENTIFIER ] } ) ( ? : $ { eo [ So . PRERELEASE ] } ) ? $ { eo [ So . BUILD ] } ? ) ? ) ? ` ),no("XRANGEPLAINLOOSE", ` [ v = \ \ s ] * ( $ { eo [ So . XRANGEIDENTIFIERLOOSE ] } ) ( ? : \ \ . ( $ { eo [ So . XRANGEIDENTIFIERLOOSE ] } ) ( ? : \ \ . ( $ { eo [ So . XRANGEIDENTIFIERLOOSE ] } ) ( ? : $ { eo [ So . PRERELEASELOOSE ] } ) ? $ { eo [ So . BUILD ] } ? ) ? ) ? ` ),no("XRANGE", ` ^ $ { eo [ So . GTLT ] } \ \ s * $ { eo [ So . XRANGEPLAIN ] } $ ` ),no("XRANGELOOSE", ` ^ $ { eo [ So . GTLT ] } \ \ s * $ { eo [ So . XRANGEPLAINLOOSE ] } $ ` ),no("COERCE", ` ( ^ | [ ^ \ \ d ] ) ( \ \ d { 1 , $ { Co } } ) ( ? : \ \ . ( \ \ d { 1 , $ { Co } } ) ) ? ( ? : \ \ . ( \ \ d { 1 , $ { Co } } ) ) ? ( ? : $ | [ ^ \ \ d ] ) ` ),no("COERCERTL",eo[So.COERCE],!0),no("LONETILDE","(?:~>?)"),no("TILDETRIM", ` ( \ \ s * ) $ { eo [ So . LONETILDE ] } \ \ s + ` ,!0),ks.tildeTrimReplace=" $ 1~",no("TILDE", ` ^ $ { eo [ So . LONETILDE ] } $ { eo [ So . XRANGEPLAIN ] } $ ` ),no("TILDELOOSE", ` ^ $ { eo [ So . LONETILDE ] } $ { eo [ So . XRANGEPLAINLOOSE ] } $ ` ),no("LONECARET","(?: \\ ^)"),no("CARETTRIM", ` ( \ \ s * ) $ { eo [ So . LONECARET ] } \ \ s + ` ,!0),ks.caretTrimReplace=" $ 1^",no("CARET", ` ^ $ { eo [ So . LONECARET ] } $ { eo [ So . XRANGEPLAIN ] } $ ` ),no
2024-08-21 13:12:53 +08:00
Print ( to stderr ) where a cursor at the given position would move to after formatting .
This option cannot be used with -- range - start and -- range - end .
` ,cliCategory:Ao},endOfLine:{since:"1.15.0",category:no,type:"choice",default:[{since:"1.15.0",value:"auto"},{since:"2.0.0",value:"lf"}],description:"Which end of line characters to apply.",choices:[{value:"lf",description:"Line Feed only ( \\ n), common on Linux and macOS as well as inside git repos"},{value:"crlf",description:"Carriage Return + Line Feed characters ( \\ r \\ n), common on Windows"},{value:"cr",description:"Carriage Return character only ( \\ r), used very rarely"},{value:"auto",description:Co `
Maintain existing
( mixed values within one file are normalised by looking at what ' s used after the first line )
2024-08-25 11:35:35 +08:00
` }]},filepath:{since:"1.4.0",category:Yo,type:"path",description:"Specify the input filepath. This will be used to do parser inference.",cliName:"stdin-filepath",cliCategory:So,cliDescription:"Path to the file to pretend that stdin comes from."},insertPragma:{since:"1.8.0",category:Yo,type:"boolean",default:!1,description:"Insert @format pragma into file's first docblock comment.",cliCategory:So},parser:{since:"0.0.10",category:no,type:"choice",default:[{since:"0.0.10",value:"babylon"},{since:"1.13.0",value:void 0}],description:"Which parser to use.",exception: $ o=>typeof $ o=="string"||typeof $ o=="function",choices:[{value:"flow",description:"Flow"},{value:"babel",since:"1.16.0",description:"JavaScript"},{value:"babel-flow",since:"1.16.0",description:"Flow"},{value:"babel-ts",since:"2.0.0",description:"TypeScript"},{value:"typescript",since:"1.4.0",description:"TypeScript"},{value:"acorn",since:"2.6.0",description:"JavaScript"},{value:"espree",since:"2.2.0",description:"JavaScript"},{value:"meriyah",since:"2.2.0",description:"JavaScript"},{value:"css",since:"1.7.1",description:"CSS"},{value:"less",since:"1.7.1",description:"Less"},{value:"scss",since:"1.7.1",description:"SCSS"},{value:"json",since:"1.5.0",description:"JSON"},{value:"json5",since:"1.13.0",description:"JSON5"},{value:"json-stringify",since:"1.13.0",description:"JSON.stringify"},{value:"graphql",since:"1.5.0",description:"GraphQL"},{value:"markdown",since:"1.8.0",description:"Markdown"},{value:"mdx",since:"1.15.0",description:"MDX"},{value:"vue",since:"1.10.0",description:"Vue"},{value:"yaml",since:"1.14.0",description:"YAML"},{value:"glimmer",since:"2.3.0",description:"Ember / Handlebars"},{value:"html",since:"1.15.0",description:"HTML"},{value:"angular",since:"1.15.0",description:"Angular"},{value:"lwc",since:"1.17.0",description:"Lightning Web Components"}]},plugins:{since:"1.10.0",type:"path",array:!0,default:[{value:[]}],category:no,description:"Add a plugin. Multiple plugins can be passed as separate ` -- plugin ` s.",exception: $ o=>typeof $ o=="string"||typeof $ o=="object",cliName:"plugin",cliCategory:Do},pluginSearchDirs:{since:"1.13.0",type:"path",array:!0,default:[{value:[]}],category:no,description:Co `
2024-08-21 13:12:53 +08:00
Custom directory that contains prettier plugins in node _modules subdirectory .
Overrides default behavior when plugins are searched relatively to the location of Prettier .
Multiple values are accepted .
2024-08-25 11:35:35 +08:00
` ,exception: $ o=>typeof $ o=="string"||typeof $ o=="object",cliName:"plugin-search-dir",cliCategory:Do},printWidth:{since:"0.0.0",category:no,type:"int",default:80,description:"The line length where Prettier will try wrap.",range:{start:0,end:Number.POSITIVE_INFINITY,step:1}},rangeEnd:{since:"1.4.0",category:Yo,type:"int",default:Number.POSITIVE_INFINITY,range:{start:0,end:Number.POSITIVE_INFINITY,step:1},description:Co `
2024-08-21 13:12:53 +08:00
Format code ending at a given character offset ( exclusive ) .
The range will extend forwards to the end of the selected statement .
This option cannot be used with -- cursor - offset .
2024-08-25 11:35:35 +08:00
` ,cliCategory:Ao},rangeStart:{since:"1.4.0",category:Yo,type:"int",default:0,range:{start:0,end:Number.POSITIVE_INFINITY,step:1},description:Co `
2024-08-21 13:12:53 +08:00
Format code starting at a given character offset .
The range will extend backwards to the start of the first line containing the selected statement .
This option cannot be used with -- cursor - offset .
2024-08-25 11:35:35 +08:00
` ,cliCategory:Ao},requirePragma:{since:"1.7.0",category:Yo,type:"boolean",default:!1,description:Co `
2024-08-21 13:12:53 +08:00
Require either '@prettier' or '@format' to be present in the file ' s first docblock comment
in order for it to be formatted .
2024-08-25 11:35:35 +08:00
` ,cliCategory:So},tabWidth:{type:"int",category:no,default:2,description:"Number of spaces per indentation level.",range:{start:0,end:Number.POSITIVE_INFINITY,step:1}},useTabs:{since:"1.0.0",category:no,type:"boolean",default:!1,description:"Indent with tabs instead of spaces."},embeddedLanguageFormatting:{since:"2.1.0",category:no,type:"choice",default:[{since:"2.1.0",value:"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."}]}};us.exports={CATEGORY_CONFIG:Do,CATEGORY_EDITOR:Ao,CATEGORY_FORMAT:eo,CATEGORY_OTHER:So,CATEGORY_OUTPUT:Ro,CATEGORY_GLOBAL:no,CATEGORY_SPECIAL:Yo,options:Ja}}}),Yp=Ki({"src/main/support.js"(ks,us){Vo();var Co={compare: $ m(),lt:bf(),gte:Fh()},Do=Uh(),Ao=gh().version,eo=Dp().options;function So(){let{plugins:no=[],showUnreleased:Yo=!1,showDeprecated:Ja=!1,showInternal: $ o=!1}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},ws=Ao.split("-",1)[0],fs=no.flatMap(is=>is.languages||[]).filter(Ks),Bs=Do(Object.assign({},...no.map(is=>{let{options:ol}=is;return ol}),eo),"name").filter(is=>Ks(is)&&js(is)).sort((is,ol)=>is.name===ol.name?0:is.name<ol.name?-1:1).map(pl).map(is=>{is=Object.assign({},is),Array.isArray(is.default)&&(is.default=is.default.length===1?is.default[0].value:is.default.filter(Ks).sort((Ts,Cs)=>Co.compare(Cs.since,Ts.since))[0].value),Array.isArray(is.choices)&&(is.choices=is.choices.filter(Ts=>Ks(Ts)&&js(Ts)),is.name==="parser"&&Ro(is,fs,no));let ol=Object.fromEntries(no.filter(Ts=>Ts.defaultOptions&&Ts.defaultOptions[is.name]!==void 0).map(Ts=>[Ts.name,Ts.defaultOptions[is.name]]));return Object.assign(Object.assign({},is),{},{pluginDefaults:ol})});return{languages:fs,options:Bs};function Ks(is){return Yo||!("since"in is)||is.since&&Co.gte(ws,is.since)}function js(is){return Ja||!("deprecated"in is)||is.deprecated&&Co.lt(ws,is.deprecated)}function pl(is){return $ o?is:Hs(is,Rs)}}function Ro(no,Yo,Ja){let $ o=new Set(no.choices.map(ws=>ws.value));for(let ws of Yo)if(ws.parsers){for(let fs of ws.parsers)if(! $ o.has(fs)){ $ o.add(fs);let Bs=Ja.find(js=>js.parsers&&js.parsers[fs]),Ks=ws.name;Bs&&Bs.name&&(Ks+= ` ( plugin : $ { Bs . name } ) ` ),no.choices.push({value:fs,description:Ks})}}}us.exports={getSupportInfo:So}}}),Rh=Ki({"src/utils/is-non-empty-array.js"(ks,us){Vo();function Co(Do){return Array.isArray(Do)&&Do.length>0}us.exports=Co}});function Vh(){let{onlyFirst:ks=!1}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},us=["[ \\ u001B \\ u009B][[ \\ ]()#;?]*(?:(?:(?:(?:;[-a-zA-Z \\ d \\ /#&.:=?%@~_]+)*|[a-zA-Z \\ d]+(?:;[-a-zA-Z \\ d \\ /#&.:=?%@~_]*)*)? \\ u0007)","(?:(?: \\ d{1,4}(?:; \\ d{0,4})*)?[ \\ dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(us,ks?void 0:"g")}var r0=pa({"node_modules/strip-ansi/node_modules/ansi-regex/index.js"(){Vo()}});function Xm(ks){if(typeof ks!="string")throw new TypeError( ` Expected a \ ` string \` , got \` ${ typeof ks } \` ` ) ; return ks . replace ( Vh ( ) , "" ) } var jf = pa ( { "node_modules/strip-ansi/index.js" ( ) { Vo ( ) , r0 ( ) } } ) ; function Hh ( ks ) { return Number . isInteger ( ks ) ? ks >= 4352 && ( ks <= 4447 || ks === 9001 || ks === 9002 || 11904 <= ks && ks <= 12871 && ks !== 12351 || 12880 <= ks && ks <= 19903 || 19968 <= ks && ks <= 42182 || 43360 <= ks && ks <= 43388 || 44032 <= ks && ks <= 55203 || 63744 <= ks && ks <= 64255 || 65040 <= ks && ks <= 65049 || 65072 <= ks && ks <= 65131 || 65281 <= ks && ks <= 65376 || 65504 <= ks && ks <= 65510 || 110592 <= ks && ks <= 110593 || 127488 <= ks && ks <= 127569 || 131072 <= ks && ks <= 262141 ) : ! 1 } var zh = pa ( { "node_modules/is-fullwidth-code-point/index.js" ( ) { Vo ( ) } } ) , Jm = Ki ( { "node_modules/emoji-regex/index.js" ( ks , us ) { Vo ( ) , us . exports = function ( ) { return / \ u D 8 3 C \ u D F F 4 \ u D B 4 0 \ u D C 6 7 \ u D B 4 0 \ u D C 6 2 ( ? : \ u D B 4 0 \ u D C 7 7 \ u D B 4 0 \ u D C 6 C \ u D B 4 0 \ u D C 7 3 | \ u D B 4 0 \ u D C 7 3 \ u D B 4 0 \ u D C 6 3 \ u D B 4 0 \ u D C 7 4 | \ u D B 4 0 \ u D C 6 5 \ u D B 4 0 \ u D C 6 E \ u D B 4 0 \ u D C 6 7 ) \ u D B 4 0 \ u D C 7 F | ( ? : \ u D 8 3 E \ u D D D 1 \ u D 8 3 C \ u D F F F \ u 2 0 0 D \ u 2 7 6 4 \ u F E 0 F \ u 2 0 0 D ( ? : \ u D 8 3 D \ u D C 8 B \ u 2 0 0 D ) ? \ u D 8 3 E \ u D D D 1 | \ u D 8 3 D \ u D C 6 9 \ u D 8 3 C \ u D F F F \ u 2 0 0 D \ u D 8 3 E \ u D D 1 D \ u 2 0 0 D ( ? : \ u D 8 3 D [ \ u D C 6 8 \ u D C 6 9 ] ) ) ( ? : \ u D 8 3 C [ \ u D F F B - \ u D F F E ] ) | ( ? : \ u D 8 3 E \ u D D D 1 \ u D 8 3 C \ u D F F E \ u 2 0 0 D \ u 2 7 6 4 \ u F E 0 F \ u 2 0 0 D ( ? : \ u D 8 3 D \ u D C 8 B \ u 2 0 0 D ) ? \ u D
2024-08-21 13:12:53 +08:00
` )return Ao-2;if(Ro=== `
` ||Ro===" \r "||Ro===" \u 2028"||Ro===" \u 2029")return Ao-1}else{if(Ro===" \r "&&Do.charAt(Ao+1)=== `
` )return Ao+2;if(Ro=== `
2024-08-25 11:35:35 +08:00
` ||Ro===" \r "||Ro===" \u 2028"||Ro===" \u 2029")return Ao+1}return Ao}us.exports=Co}}),Ad=Ki({"src/utils/text/get-next-non-space-non-comment-character-index-with-start-index.js"(ks,us){Vo();var Co=jl(),Do=wc(),Ao=bc(),{skipSpaces:eo}=cu();function So(Ro,no){let Yo=null,Ja=no;for(;Ja!==Yo;)Yo=Ja,Ja=eo(Ro,Ja),Ja=Co(Ro,Ja),Ja=Ao(Ro,Ja),Ja=Do(Ro,Ja);return Ja}us.exports=So}}),Ep=Ki({"src/common/util.js"(ks,us){Vo();var{default:Co}=(Kf(),_s(Ym)),Do=Vp(),{getSupportInfo:Ao}=Yp(),eo=Rh(),So=Js(),{skipWhitespace:Ro,skipSpaces:no,skipToLineEnd:Yo,skipEverythingButNewLine:Ja}=cu(), $ o=jl(),ws=bc(),fs=wc(),Bs=Ad(),Ks=kl=>kl[kl.length-2];function js(kl){return(bl,Pl,Au)=>{let dc=Au&&Au.backwards;if(Pl===!1)return!1;let{length:Ic}=bl,jc=Pl;for(;jc>=0&&jc<Ic;){let Id=bl.charAt(jc);if(kl instanceof RegExp){if(!kl.test(Id))return jc}else if(!kl.includes(Id))return jc;dc?jc--:jc++}return jc===-1||jc===Ic?jc:!1}}function pl(kl,bl){let Pl=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Au=no(kl,Pl.backwards?bl-1:bl,Pl),dc=fs(kl,Au,Pl);return Au!==dc}function is(kl,bl,Pl){for(let Au=bl;Au<Pl;++Au)if(kl.charAt(Au)=== `
` )return!0;return!1}function ol(kl,bl,Pl){let Au=Pl(bl)-1;Au=no(kl,Au,{backwards:!0}),Au=fs(kl,Au,{backwards:!0}),Au=no(kl,Au,{backwards:!0});let dc=fs(kl,Au,{backwards:!0});return Au!==dc}function Ts(kl,bl){let Pl=null,Au=bl;for(;Au!==Pl;)Pl=Au,Au=Yo(kl,Au),Au= $ o(kl,Au),Au=no(kl,Au);return Au=ws(kl,Au),Au=fs(kl,Au),Au!==!1&&pl(kl,Au)}function Cs(kl,bl,Pl){return Ts(kl,Pl(bl))}function Ns(kl,bl,Pl){return Bs(kl,Pl(bl))}function Ps(kl,bl,Pl){return kl.charAt(Ns(kl,bl,Pl))}function Cl(kl,bl){let Pl=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return no(kl,Pl.backwards?bl-1:bl,Pl)!==bl}function Bl(kl,bl){let Pl=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,Au=0;for(let dc=Pl;dc<kl.length;++dc)kl[dc]===" "?Au=Au+bl-Au%bl:Au++;return Au}function Eu(kl,bl){let Pl=kl.lastIndexOf( `
` );return Pl===-1?0:Bl(kl.slice(Pl+1).match(/^[ \t ]*/)[0],bl)}function vl(kl,bl){let Pl={quote:'"',regex:/"/g,escaped:"""},Au={quote:"'",regex:/'/g,escaped:"'"},dc=bl==="'"?Au:Pl,Ic=dc===Au?Pl:Au,jc=dc;if(kl.includes(dc.quote)||kl.includes(Ic.quote)){let Id=(kl.match(dc.regex)||[]).length,xc=(kl.match(Ic.regex)||[]).length;jc=Id>xc?Ic:dc}return jc}function Zl(kl,bl){let Pl=kl.slice(1,-1),Au=bl.parser==="json"||bl.parser==="json5"&&bl.quoteProps==="preserve"&&!bl.singleQuote?'"':bl.__isInHtmlAttribute?"'":vl(Pl,bl.singleQuote?"'":'"').quote;return bu(Pl,Au,!(bl.parser==="css"||bl.parser==="less"||bl.parser==="scss"||bl.__embeddedInHtml))}function bu(kl,bl,Pl){let Au=bl==='"'?"'":'"',dc=/ \\ (.)|(["'])/gs,Ic=kl.replace(dc,(jc,Id,xc)=>Id===Au?Id:xc===bl?" \\ "+xc:xc||(Pl&&/^[^ \n \r "'0-7 \\ bfnrt-vx \u 2028 \u 2029] $ /.test(Id)?Id:" \\ "+Id));return bl+Ic+bl}function xu(kl){return kl.toLowerCase().replace(/^([+-]?[ \d .]+e)(?: \+ |(-))?0*( \d )/," $ 1 $ 2 $ 3").replace(/^([+-]?[ \d .]+)e[+-]?0+ $ /," $ 1").replace(/^([+-])? \. /," $ 10.").replace(/( \. \d +?)0+(?=e| $ )/," $ 1").replace(/ \. (?=e| $ )/,"")}function Zs(kl,bl){let Pl=kl.match(new RegExp( ` ( $ { Co ( bl ) } ) + ` ,"g"));return Pl===null?0:Pl.reduce((Au,dc)=>Math.max(Au,dc.length/bl.length),0)}function Cu(kl,bl){let Pl=kl.match(new RegExp( ` ( $ { Co ( bl ) } ) + ` ,"g"));if(Pl===null)return 0;let Au=new Map,dc=0;for(let Ic of Pl){let jc=Ic.length/bl.length;Au.set(jc,!0),jc>dc&&(dc=jc)}for(let Ic=1;Ic<dc;Ic++)if(!Au.get(Ic))return Ic;return dc+1}function ec(kl,bl){(kl.comments||(kl.comments=[])).push(bl),bl.printed=!1,bl.nodeDescription=Iu(kl)}function rc(kl,bl){bl.leading=!0,bl.trailing=!1,ec(kl,bl)}function Ka(kl,bl,Pl){bl.leading=!1,bl.trailing=!1,Pl&&(bl.marker=Pl),ec(kl,bl)}function Su(kl,bl){bl.leading=!1,bl.trailing=!0,ec(kl,bl)}function Ec(kl,bl){let{languages:Pl}=Ao({plugins:bl.plugins}),Au=Pl.find(dc=>{let{name:Ic}=dc;return Ic.toLowerCase()===kl})||Pl.find(dc=>{let{aliases:Ic}=dc;return Array.isArray(Ic)&&Ic.includes(kl)})||Pl.find(dc=>{let{extensions:Ic}=dc;return Array.isArray(Ic)&&Ic.includes( ` . $ { kl } ` )});return Au&&Au.parsers[0]}function wu(kl){return kl&&kl.type==="front-matter"}function Ul(kl){let bl=new WeakMap;return function(Pl){return bl.has(Pl)||bl.set(Pl,Symbol(kl)),bl.get(Pl)}}function Iu(kl){let bl=kl.type||kl.kind||"(unknown type)",Pl=String(kl.name||kl.id&&(typeof kl.id=="object"?kl.id.name:kl.id)||kl.key&&(typeof kl.key=="object"?kl.key.name:kl.key)||kl.value&&(typeof kl.value=="object"?"":String(kl.value))||kl.operator||"");return Pl.length>20&&(Pl=Pl.slice(0,19)+"…"),bl+(Pl?" "+Pl:"")}us.exports={inferParserByLanguage:Ec,getStringWidth:So,getMaxContinuousCount:Zs,getMinNotPresentContinuousCount:Cu,getPenultimate:Ks,getLast:Do,getNextNonSpaceNonCommentCharacterIndexWithStartIndex:Bs,getNextNonSpaceNonCommentCharacterIndex:Ns,getNextNonSpaceNonCommentCharacter:Ps,skip:js,skipWhitespace:Ro,skipSpaces:no,skipToLineEnd:Yo,skipEverythingButNewLine:Ja,skipInlineComment: $ o,skipTrailingComment:ws,skipNewline:fs,isNextLineEmptyAfterIndex:Ts,isNextLineEmpty:Cs,isPreviousLineEmpty:ol,hasNewline:pl,hasNewlineInRange:is,hasSpaces:Cl,getAlignmentSize:Bl,getIndentSize:Eu,getPreferredQuote:vl,printString:Zl,printNumber:xu,makeString:bu,addLeadingComment:rc,addDanglingComment:Ka,addTrailingComment:Su,isFrontMatterNode:wu,isNonEmptyArray:eo,createGroupIdMapper:Ul}}}),Wd=Ki({"src/language-markdown/constants.evaluate.js"(ks,us){us.exports={cjkPattern:"(?:[ \\ u02ea- \\ u02eb \\ u1100- \\ u11ff \\ u2e80- \\ u2e99 \\ u2e9b- \\ u2ef3 \\ u2f00- \\ u2fd5 \\ u2ff0- \\ u303f \\ u3041- \\ u3096 \\ u3099- \\ u309f \\ u30a1- \\ u30fa \\ u30fc- \\ u30ff \\ u3105- \\ u312f \\ u3131- \\ u318e \\ u3190- \\ u3191 \\ u3196- \\ u31ba \\ u31c0- \\ u31e3 \\ u31f0- \\ u321e \\ u322a- \\ u3247 \\ u3260- \\ u327e \\ u328a- \\ u32b0 \\ u32c0- \\ u32cb \\ u32d0- \\ u3370 \\ u337b- \\ u337f \\ u33e0- \\ u33fe \\ u3400- \\ u4db5 \\ u4e00- \\ u9fef \\ ua960- \\ ua97c \\ uac00- \\ ud7a3 \\ ud7b0- \\ ud7c6 \\ ud7cb- \\ ud7fb \\ uf900- \\ ufa6d \\ ufa70- \\ ufad9 \\ ufe10- \\ ufe1f \\ ufe30- \\ ufe6f \\ uff00- \\ uffef]|[ \\ ud840- \\ ud868 \\ ud86a- \\ ud86c \\ ud86f- \\ ud872 \\ ud874- \\ ud879][ \\ udc00- \\ udfff]| \\ ud82c[ \\ udc00- \\ udd1e \\ udd50- \\ udd52 \\ udd64- \\ udd67]| \\ ud83c[ \\ ude00 \\ ude50
( $ { eo } ) ` ,"g")," $ 1 $ 2")).split(/([ \t \n ]+)/);for(let[vl,Zl]of Bl.entries()){if(vl%2===1){Cl.push({type:"whitespace",value:/ \n /.test(Zl)? `
` :" "});continue}if((vl===0||vl===Bl.length-1)&&Zl==="")continue;let bu=Zl.split(new RegExp( ` ( $ { eo } ) ` ));for(let[xu,Zs]of bu.entries())if(!((xu===0||xu===bu.length-1)&&Zs==="")){if(xu%2===0){Zs!==""&&Eu({type:"word",value:Zs,kind:Ts,hasLeadingPunctuation: $ o.test(Zs[0]),hasTrailingPunctuation: $ o.test(Co(Zs))});continue}Eu( $ o.test(Zs)?{type:"word",value:Zs,kind:Ps,hasLeadingPunctuation:!0,hasTrailingPunctuation:!0}:{type:"word",value:Zs,kind:Ja.test(Zs)?Ns:Cs,hasLeadingPunctuation:!1,hasTrailingPunctuation:!1})}}return Cl;function Eu(vl){let Zl=Co(Cl);Zl&&Zl.type==="word"&&(Zl.kind===Ts&&vl.kind===Cs&&!Zl.hasTrailingPunctuation||Zl.kind===Cs&&vl.kind===Ts&&!vl.hasLeadingPunctuation?Cl.push({type:"whitespace",value:" "}):!bu(Ts,Ps)&&![Zl.value,vl.value].some(xu=>/ \u 3000/.test(xu))&&Cl.push({type:"whitespace",value:""})),Cl.push(vl);function bu(xu,Zs){return Zl.kind===xu&&vl.kind===Zs||Zl.kind===Zs&&vl.kind===xu}}}function fs(is,ol){let[,Ts,Cs,Ns]=ol.slice(is.position.start.offset,is.position.end.offset).match(/^ \s *( \d +)( \. | \) )( \s *)/);return{numberText:Ts,marker:Cs,leadingSpaces:Ns}}function Bs(is,ol){if(!is.ordered||is.children.length<2)return!1;let Ts=Number(fs(is.children[0],ol.originalText).numberText),Cs=Number(fs(is.children[1],ol.originalText).numberText);if(Ts===0&&is.children.length>2){let Ns=Number(fs(is.children[2],ol.originalText).numberText);return Cs===1&&Ns===1}return Cs===1}function Ks(is,ol){let{value:Ts}=is;return is.position.end.offset===ol.length&&Ts.endsWith( `
` )&&ol.endsWith( `
` )?Ts.slice(0,-1):Ts}function js(is,ol){return function Ts(Cs,Ns,Ps){let Cl=Object.assign({},ol(Cs,Ns,Ps));return Cl.children&&(Cl.children=Cl.children.map((Bl,Eu)=>Ts(Bl,Eu,[Cl,...Ps]))),Cl}(is,null,[])}function pl(is){if((is==null?void 0:is.type)!=="link"||is.children.length!==1)return!1;let[ol]=is.children;return Do(is)===Do(ol)&&Ao(is)===Ao(ol)}us.exports={mapAst:js,splitText:ws,punctuationPattern:Ro,getFencedCodeBlockValue:Ks,getOrderedListItemInfo:fs,hasGitDiffFriendlyOrderedList:Bs,INLINE_NODE_TYPES:no,INLINE_NODE_WRAPPER_TYPES:Yo,isAutolink:pl}}}),Jh=Ki({"src/language-markdown/unified-plugins/html-to-jsx.js"(ks,us){Vo();var Co=vf(),{mapAst:Do,INLINE_NODE_WRAPPER_TYPES:Ao}=Zm();function eo(){return So=>Do(So,(Ro,no,Yo)=>{let[Ja]=Yo;return Ro.type!=="html"||Co.COMMENT_REGEX.test(Ro.value)||Ao.includes(Ja.type)?Ro:Object.assign(Object.assign({},Ro),{},{type:"jsx"})})}us.exports=eo}}),yf=Ki({"src/language-markdown/unified-plugins/front-matter.js"(ks,us){Vo();var Co=Sm();function Do(){let Ao=this.Parser.prototype;Ao.blockMethods=["frontMatter",...Ao.blockMethods],Ao.blockTokenizers.frontMatter=eo;function eo(So,Ro){let no=Co(Ro);if(no.frontMatter)return So(no.frontMatter.raw)(no.frontMatter)}eo.onlyAtStart=!0}us.exports=Do}}),Ff=Ki({"src/language-markdown/unified-plugins/liquid.js"(ks,us){Vo();function Co(){let Do=this.Parser.prototype,Ao=Do.inlineMethods;Ao.splice(Ao.indexOf("text"),0,"liquid"),Do.inlineTokenizers.liquid=eo;function eo(So,Ro){let no=Ro.match(/^({%.*?%}|{{.*?}})/s);if(no)return So(no[0])({type:"liquidNode",value:no[0]})}eo.locator=function(So,Ro){return So.indexOf("{",Ro)}}us.exports=Co}}),wm=Ki({"src/language-markdown/unified-plugins/wiki-link.js"(ks,us){Vo();function Co(){let Do="wikiLink",Ao=/^ \[ \[ (?<linkContents>.+?)]]/s,eo=this.Parser.prototype,So=eo.inlineMethods;So.splice(So.indexOf("link"),0,Do),eo.inlineTokenizers.wikiLink=Ro;function Ro(no,Yo){let Ja=Ao.exec(Yo);if(Ja){let $ o=Ja.groups.linkContents.trim();return no(Ja[0])({type:Do,value: $ o})}}Ro.locator=function(no,Yo){return no.indexOf("[",Yo)}}us.exports=Co}}),Ef=Ki({"src/language-markdown/unified-plugins/loose-items.js"(ks,us){Vo();function Co(){let Do=this.Parser.prototype,Ao=Do.blockTokenizers.list;function eo(So,Ro,no){return Ro.type==="listItem"&&(Ro.loose=Ro.spread||So.charAt(So.length-1)=== `
` ,Ro.loose&&(no.loose=!0)),Ro}Do.blockTokenizers.list=function(So,Ro,no){function Yo(Ja){let $ o=So(Ja);function ws(fs,Bs){return $ o(eo(Ja,fs,Bs),Bs)}return ws.reset=function(fs,Bs){return $ o.reset(eo(Ja,fs,Bs),Bs)},ws}return Yo.now=So.now,Ao.call(this,Yo,Ro,no)}}us.exports=Co}});Vo();var Xf= $ f(),jm=Lh(),Od=Km(),Zh=hh(),kd=Tm(),{locStart:Xp,locEnd:Fm}=im(),Pp=vf(),um=Jh(),Uf=yf(),Vf=Ff(),yh=wm(),Th=Ef();function Sf(ks){let{isMDX:us}=ks;return Co=>{let Do=jm().use(Xf,Object.assign({commonmark:!0},us&&{blocks:[Pp.BLOCKS_REGEX]})).use(Zh).use(Uf).use(Od).use(us?Pp.esSyntax:Um).use(Vf).use(us?um:Um).use(yh).use(Th);return Do.runSync(Do.parse(Co))}}function Um(ks){return ks}var xm={astFormat:"mdast",hasPragma:kd.hasPragma,locStart:Xp,locEnd:Fm},Qf=Object.assign(Object.assign({},xm),{},{parse:Sf({isMDX:!1})}),Ih=Object.assign(Object.assign({},xm),{},{parse:Sf({isMDX:!0})});ms.exports={parsers:{remark:Qf,markdown:Qf,mdx:Ih}}});return vc()})})(parserMarkdown);var parserMarkdownExports=parserMarkdown.exports;const prettierMarkdown=getDefaultExportFromCjs(parserMarkdownExports);function addPrefix(e){return ` $ { prefix } _ _$ { e } ` }function createCustomTheme(e,t,y=!0){const n=JSON.parse(JSON.stringify(e));return n.block.h1["border-bottom"]= ` 2 px solid $ { t } ` ,n.block.h2.background=t,n.block.h3["border-left"]= ` 3 px solid $ { t } ` ,n.block.h4.color=t,n.inline.strong.color=t,y||(n.block.h3["border-bottom"]= ` 1 px dashed $ { t } ` ,n.block.blockquote["border-left"]= ` 4 px solid $ { t } ` ),n}function setColorWithCustomTemplate(e,t,y=!0){return createCustomTheme(e,t,y)}function setFontSizeWithTemplate(e){return function(t,y=!0){const n=JSON.parse(JSON.stringify(e));return y?(n.block.h1["font-size"]= ` $ { t * 1.2 } px ` ,n.block.h2["font-size"]= ` $ { t * 1.2 } px ` ,n.block.h3["font-size"]= ` $ { t * 1.1 } px ` ,n.block.h4["font-size"]= ` $ { t } px ` ):(n.block.h1["font-size"]= ` $ { t * 1.4 } px ` ,n.block.h2["font-size"]= ` $ { t * 1.3 } px ` ,n.block.h3["font-size"]= ` $ { t * 1.2 } px ` ,n.block.h4["font-size"]= ` $ { t * 1.1 } px ` ),n}}function setTheme(e,t,y,n){return setColorWithCustomTemplate(setFontSizeWithTemplate(e)(t,n),y,n)}function customCssWithTemplate(e,t,y){const n=createCustomTheme(y,t);return n.block.h1=Object.assign(n.block.h1,e.h1),n.block.h2=Object.assign(n.block.h2,e.h2),n.block.h3=Object.assign(n.block.h3,e.h3),n.block.h4=Object.assign(n.block.h4,e.h4),n.block.code=Object.assign(n.block.code,e.code),n.block.p=Object.assign(n.block.p,e.p),n.block.hr=Object.assign(n.block.hr,e.hr),n.block.blockquote=Object.assign(n.block.blockquote,e.blockquote),n.block.blockquote_p=Object.assign(n.block.blockquote_p,e.blockquote_p),n.block.image=Object.assign(n.block.image,e.image),n.inline.strong=Object.assign(n.inline.strong,e.strong),n.inline.codespan=Object.assign(n.inline.codespan,e.codespan),n.inline.link=Object.assign(n.inline.link,e.link),n.inline.wx_link=Object.assign(n.inline.wx_link,e.wx_link),n.block.ul=Object.assign(n.block.ul,e.ul),n.block.ol=Object.assign(n.block.ol,e.ol),n.inline.listitem=Object.assign(n.inline.listitem,e.li),n}function css2json(e){e=e.replace(/ \/ \* [ \s \S ]*? \* \/ /g,"");const t={},y=n=>n.reduce((k,L)=>{const[ $ ,j]=L.split(":").map(V=>V.trim());return $ &&(k[ $ ]=j),k},{});for(;e.includes("{")&&e.includes("}");){const n=e.indexOf("{"),k=e.indexOf("}"),L=e.substring(n+1,k).split(";").map(V=>V.trim()).filter(Boolean), $ =e.substring(0,n).split(",").map(V=>V.trim()),j=y(L); $ .forEach(V=>{t[V]={...t[V]||{},...j}}),e=e.slice(k+1).trim()}return t}function formatDoc(e){return prettier.format(e,{parser:"markdown",plugins:[prettierMarkdown]})}function formatCss(e){return prettier.format(e,{parser:"css",plugins:[prettierCss]})}function downloadMD(e){const t=document.createElement("a");t.download="content.md",t.style.display="none";const y=new Blob([e]);t.href=URL.createObjectURL(y),document.body.appendChild(t),t.click(),document.body.removeChild(t)}function exportHTML(){const e=document.querySelector("#output");k(e);const t=e.innerHTML,y=document.createElement("a");y.download="content.html",y.style.display="none";const n=new Blob([ ` < html > < head > < meta charset = "utf-8" / > < / h e a d > < b o d y > < d i v s t y l e = " w i d t h : 7 5 0 p x ; m a r g i n : a u t o ; " > $
2024-08-21 13:12:53 +08:00
` }return n}function toBase64(e){return new Promise((t,y)=>{const n=new FileReader;n.readAsDataURL(e),n.onload=()=>t(n.result.split(",").pop()),n.onerror=k=>y(k)})}function checkImage(e){if(!/ \. (?:gif|jpe?g|png) $ /i.test(e.name))return{ok:!1,msg:"请上传 JPG/PNG/GIF 格式的图片"};const y=10;return e.size>y*1024*1024?{ok:!1,msg: ` 由于公众号限制 , 图片大小不能超过 $ { y } M ` }:{ok:!0}}function removeLeft(e){const t=e.split( `
` ),y=t.filter(n=>n.trim()).map(n=>n.match(/(^ \s +)?/)[0].length).sort((n,k)=>n-k)[0];return t.map(n=>n.slice(y)).join( `
2024-08-25 11:35:35 +08:00
` )}function solveWeChatImage(){const t=document.getElementById("output").getElementsByTagName("img");for(let y=0;y<t.length;y++){const n=t[y],k=n.getAttribute("width"),L=n.getAttribute("height");n.removeAttribute("width"),n.removeAttribute("height"),n.style.width=k,n.style.height=L}}function mergeCss(e){return juice(e,{inlinePseudoElements:!0,preserveImportant:!0})}const useStore=defineStore("store",()=>{const e=useDark(),t=useToggle(e),y=useStorage("isMacCodeBlock",!0),n=useToggle(y),k=useStorage("isEditOnLeft",!0),L=useToggle(k), $ =useStorage("isCiteStatus",!1),j=useToggle( $ ),V=ref $ 1(""),z=useStorage(addPrefix("theme"),themeOptions[0].value),re=useStorage("fonts",fontFamilyOptions[0].value),ie=useStorage("size",fontSizeOptions[2].value),oe=useStorage("color",colorOptions[0].value),ue=useStorage("codeBlockTheme",codeBlockThemeOptions[2].value),de=useStorage("legend",legendOptions[3].value),pe=ie.value.replace("px",""),Ie=new WxRenderer({theme:setTheme(themeMap[z.value],pe,oe.value,z.value==="default"),fonts:re.value,size:ie.value}),_e=ref $ 1(null),Ce=useStorage("__editor_content",formatDoc(DEFAULT_CONTENT)),he=()=>{const Sr=formatDoc(_e.value.getValue());Ce.value=Sr,_e.value.setValue(Sr)},Ne=()=>{const Sr=ue.value,Dr=document.querySelector("#hljs");if(Dr)Dr.setAttribute("href",Sr);else{const kr=document.createElement("link");kr.setAttribute("type","text/css"),kr.setAttribute("rel","stylesheet"),kr.setAttribute("href",Sr),kr.setAttribute("id","hljs"),document.head.appendChild(kr)}},Fe=()=>{Ne();const Sr=Ie;Sr.reset(),Sr.setOptions({status: $ .value,legend:de.value}),marked.setOptions({renderer:Sr});let Dr=marked.parse(_e.value.getValue(0));Dr=Dr.replace(/(style=".*?)"/,' $ 1;margin-top: 0"'), $ .value&&(Dr+=Ie.buildFootnotes(),Dr+=Ie.buildAddition()),y.value&&(Dr+= `
2024-08-21 13:12:53 +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-25 11:35:35 +08:00
` ),V.value=Dr},Ve=ref $ 1(null),jt=Sr=>{Ve.value.setValue(Sr)},Et=useStorage("__css_content",DEFAULT_CSS_CONTENT),Ue=useStorage(addPrefix("css_content_config"),{active:"方案 1",tabs:[{title:"方案 1",name:"方案 1",content:Et.value||DEFAULT_CSS_CONTENT}]}),qe=()=>Ue.value.tabs.find(Sr=>Sr.name===Ue.value.active),kt=Sr=>{Ue.value.active=Sr;const Dr=Ue.value.tabs.find(kr=>kr.name===Sr).content;jt(Dr)},tr=Sr=>{const Dr=qe();Dr.title=Sr,Dr.name=Sr,Ue.value.active=Sr},rr=Sr=>{Ue.value.tabs.push({name:Sr,title:Sr,content:DEFAULT_CSS_CONTENT}),Ue.value.active=Sr,jt(DEFAULT_CSS_CONTENT)},ar=Sr=>Ue.value.tabs.every(({name:Dr})=>Dr!==Sr),nr=()=>{const Sr=css2json(Ve.value.getValue());let Dr=setTheme(themeMap[z.value],pe,oe.value,z.value==="default");Dr=customCssWithTemplate(Sr,oe.value,Dr),Ie.setOptions({theme:Dr}),Fe()};onMounted(()=>{const Sr=document.querySelector("#cssEditor");Sr.value=qe().content,Ve.value=markRaw(CodeMirror.fromTextArea(Sr,{mode:"css",theme:"style-mirror",lineNumbers:!1,lineWrapping:!0,matchBrackets:!0,autofocus:!0,extraKeys:{[ ` $ { shiftKey } - $ { altKey } - F ` ]:function(kr){const Wr=formatCss(kr.getValue());qe().content=Wr,kr.setValue(Wr)}}})),Ve.value.on("keyup",(Dr,kr)=>{(kr.keyCode>=65&&kr.keyCode<=90||kr.keyCode===189)&&Dr.showHint(kr)}),Ve.value.on("update",()=>{nr(),qe().content=Ve.value.getValue()})});const ur=()=>{ $ .value=!1,y.value=!0,z.value=themeOptions[0].value,re.value=fontFamilyOptions[0].value,re.value=fontFamilyOptions[0].value,ie.value=fontSizeOptions[2].value,oe.value=colorOptions[0].value,ue.value=codeBlockThemeOptions[2].value,de.value=legendOptions[3].value,Ue.value={active:"方案 1",tabs:[{title:"方案 1",name:"方案 1",content:Et.value||DEFAULT_CSS_CONTENT}]},Ve.value.setValue(DEFAULT_CSS_CONTENT),nr(),Fe()},cr=Sr=>(...Dr)=>{Sr(...Dr),Fe()},mr=(Sr,Dr)=>{const kr=setFontSizeWithTemplate(themeMap[z.value])(Sr.replace("px",""),z.value==="default");return setColorWithCustomTemplate(kr,Dr,z.value==="default")},hr=cr(Sr=>{Ie.setOptions({theme:setTheme(themeMap[Sr],pe,oe.value,Sr==="default")}),z.value=Sr}),br=cr(Sr=>{Ie.setOptions({fonts:Sr}),re.value=Sr}),Rr=cr(Sr=>{const Dr=mr(Sr,oe.value);Ie.setOptions({size:Sr,theme:Dr}),ie.value=Sr}),xr=cr(Sr=>{const Dr=mr(ie.value,Sr);Ie.setOptions({theme:Dr}),oe.value=Sr}),Er=cr(Sr=>{ue.value=Sr}),vr=cr(Sr=>{de.value=Sr}),Ir=cr(()=>{n()}),Lr=cr(()=>{j()}),gr=()=>{exportHTML(),document.querySelector("#output").innerHTML=V.value},_r=()=>{downloadMD(_e.value.getValue())},Fr=()=>{const Sr=document.body,Dr=document.createElement("input");Dr.type="file",Dr.name="filename",Dr.accept=".md",Dr.onchange=()=>{const kr=Dr.files[0];if(!kr)return;const Wr=new FileReader;Wr.readAsText(kr),Wr.onload=Kr=>{_e.value.setValue(formatDoc(Kr.target.result)),ElMessage.success("文档导入成功")}},Sr.appendChild(Dr),Dr.click(),Sr.removeChild(Dr)},zr=()=>{ElMessageBox.confirm("此操作将丢失本地自定义样式,是否继续?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning",center:!0}).then(()=>{ur(),ElMessage({type:"success",message:"样式重置成功~"})}).catch(()=>{_e.value.focus()})},Vr=ref $ 1(!1),Gr=useToggle(Vr),Tr=ref $ 1(!1),Cr=useToggle(Tr),Mr=ref $ 1(!1),yr=useToggle(Mr);return{isShowCssEditor:Vr,toggleShowCssEditor:Gr,isShowInsertFormDialog:Tr,toggleShowInsertFormDialog:Cr,isShowUploadImgDialog:Mr,toggleShowUploadImgDialog:yr,isDark:e,toggleDark:t,isEditOnLeft:k,toggleEditOnLeft:L,isMacCodeBlock:y,isCiteStatus: $ ,citeStatusChanged:Lr,output:V,editor:_e,cssEditor:Ve,theme:z,fontFamily:re,fontSize:ie,fontColor:oe,codeBlockTheme:ue,legend:de,editorRefresh:Fe,themeChanged:hr,fontChanged:br,sizeChanged:Rr,colorChanged:xr,codeBlockThemeChanged:Er,legendChanged:vr,macCodeBlockChanged:Ir,formatContent:he,exportEditorContent2HTML:gr,exportEditorContent2MD:_r,importMarkdownContent:Fr,resetStyleConfirm:zr,editorContent:Ce,cssContentConfig:Ue,addCssContentTab:rr,validatorTabName:ar,setCssEditorValue:jt,tabChanged:kt,renameTab:tr}}),Store=createPinia(),ElementPlus={install(e){e.use(installer,{size:"default"}),e.config.globalProperties. $ lo
2024-08-21 13:12:53 +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-25 11:35:35 +08:00
* / r e t u r n f u n c t i o n ( n ) { v a r k = y , L = k . l i b , $ = L . W o r d A r r a y , j = L . H a s h e r , V = k . a l g o , z = $ . 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 ] ) , r e = $ . 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 ] ) , i e = $ . 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 ] ) , o e = $ . 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 ] ) , u e = $ . 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 ] ) , d e = $ . 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 ] ) , p e = V . R I P E M D 1 6 0 = j . 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 = $ . 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 ( V e , j t ) { f o r ( v a r E t = 0 ; E t < 1 6 ; E t + + ) { v a r U e = j t + E t , q e = V e [ U e ] ; V e [ U e ] = ( q e < < 8 | q e > > > 2 4 ) & 1 6 7 1 1 9 3 5 | ( q e < < 2 4 | q e > > > 8 ) & 4 2 7 8 2 5 5 3 6 0 } v a r k t = t h i s . _ h a s h . w o r d s , t r = u e . w o r d s , r r = d e . w o r d s , a r = z . w o r d s , n r = r e . w o r d s , u r = i e . w o r d s , c r = o e . w o r d s , m r , h r , b r , R r , x r , E r , v r , I r , L r , g r ; E r = m r = k t [ 0 ] , v r = h r = k t [ 1 ] , I r = b r = k t [ 2 ] , L r = R r = k t [ 3 ] , g r = x r = k t [ 4 ] ; f o r ( v a r _ r , E t = 0 ; E t < 8 0 ; E t + = 1 ) _ r = m r + V e [ j t + a r [ E t ] ] | 0 , E t < 1 6 ? _ r + = I e ( h r , b r , R r ) + t r [ 0 ] : E t < 3 2 ? _ r + = _ e ( h r , b r , R r ) + t r [ 1 ] : E t < 4 8 ? _ r + = C e ( h r , b r , R r ) + t r [ 2 ] : E t < 6 4 ? _ r + = h e ( h r , b r , R r ) + t r [ 3 ] : _ r + = N e ( h r , b r , R r ) + t r [ 4 ] , _ r = _ r | 0 , _ r = F e ( _ r , u r [ E t ] ) , _ r = _ r + x r | 0 , m r = x r , x r = R r , R r = F e ( b r , 1 0 ) , b r = h r , h r = _ r , _ r = E r + V e [ j t + n r [ E t ] ] | 0 , E t < 1 6 ? _ r + = N e ( v r , I r , L r ) + r r [ 0 ] : E t < 3 2 ? _ r + = h e ( v r , I r , L r ) + r r [ 1 ] : E t < 4 8 ? _ r + = C e ( v r , I r , L r ) + r r [ 2 ] : E t < 6 4 ? _ r + = _ e ( v r , I r , L r ) + r r [ 3 ] : _ r + = I e ( v r , I r , L r ) + r r [ 4 ] , _ r = _ r | 0 , _ r = F e ( _ r , c r [ E t ] ) , _ r = _ r + g r | 0 , E r = g r , g r = L r , L r = F e ( I r , 1 0 ) , I r = v r , v r = _ r ; _ r = k t [ 1 ] + b r + L r | 0 , k t [ 1 ] = k t [ 2 ] + R r + g r | 0 , k t [ 2 ] = k t [ 3 ] + x r + E r | 0 , k t [ 3 ] = k t [ 4 ] + m r + v r | 0 , k t [ 4 ] = k t [ 0 ] + h r + I r | 0 , k t [ 0 ] = _ r } , _ d o F i n a l i z e : f u n c t i o n ( ) { v a r V e = t h i s . _ d a t a , j t = V e . w o r d s , E t = t h i s . _ n D a t a B y t e s * 8 , U e = V e . s i g B y t e s * 8 ; j t [ U e > > > 5 ] | = 1 2 8 < < 2 4 - U e % 3 2 , j t [ ( U e + 6 4 > > > 9 < < 4 ) + 1 4 ] = ( E t < < 8 | E t > > > 2 4 ) & 1 6 7 1 1 9 3 5 | ( E t < < 2 4 | E t > > > 8 ) & 4 2 7 8 2 5 5 3 6 0 , V e . s i g B y t e s = ( j t . 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 q e = t h i s . _ h a s h , k t = q e . w o r d s , t r = 0 ; t r < 5 ; t r + + ) { v a r r r = k t [ t r ] ; k t [ t r ] = ( r r < < 8 | r r > > > 2 4 ) & 1 6 7 1 1 9 3 5 | ( r r < < 2 4 | r r > > > 8 ) & 4 2 7 8 2 5 5 3 6 0 } r e t u r n q e } , c l o n e : f u n c t i o n ( ) { v a r V e = j . c l o n e . c a l l ( t h i s ) ; r e t u r n V e . _ h a s h = t h i s . _ h a s h . c l o n e ( ) , V e } } ) ; f u n c t i o n I e ( V e , j t , E t ) { r e t u r n V e ^ j t ^ E t } f u n c t i o n _ e ( V e , j t , E t ) { r e t u r n V e & j t | ~ V e & E t } f u n c t i o n C e ( V e , j t , E t ) { r e t u r n ( V e | ~ j t ) ^ E t } f u n c t i o n h e ( V e , j t , E t ) { r e t u r n V e & E t | j t & ~ E t } f u n c t i o n N e ( V e , j t , E t ) { r e t u r n V e ^ ( j t | ~ E t ) } f u n c t i o n F e ( V e , j t ) { r e t u r n V e < < j t | V e > > > 3 2 - j t } k . R I P E M D 1 6 0 = j . _ c r e a t e H e l p e r ( p e ) , k . H m a c R I P E M D 1 6 0 = j . _ c r e a t e H m a c H e l p e r ( p e ) } ( ) , y . 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 ( e , t ) { ( f u n c t i o n ( y , n ) { e . e x p o r t s = n ( 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 ( y ) { ( f u n c t i o n ( ) { v a r n = y , k = n . l i b , L = k . B a s e , $ = n . e n c , j = $ . U t f 8 , V = n . a l g o ; V . H M A C = L . e x t e n d ( { i n i t : f u n c t i o n ( z , r e ) { z = t h i s . _ h a s h e r = n e w z . i n i t , t y p e o f r e = = " s t r i n g " & & ( r e = j . p a r s e ( r e ) ) ; v a r i e = z . b l o c k S i z e , o e = i e * 4 ; r e . s i g B y t e s > o e & & ( r e = z . f i n a l i z e ( r e ) ) , r e . c l a m p ( ) ; f o r ( v a r u e = t h i s . _ o K e y = r e . c l o n e ( ) , d e = t h i s . _ i K e y = r e . c l o n e ( ) , p e = u e . w o r d s , I e = d e . w o r d s , _ e = 0 ; _ e < i e ; _ e + + ) p e [ _ e ] ^ = 1 5 4 9 5 5 6 8 2 8 , I e [ _ e ] ^ = 9 0 9 5 2 2 4 8 6 ; u e . s i g B y t e s = d e . s i g B y t e s = o e , 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 z = t h i s . _ h a s h e r ; z . r e s e t ( ) , z . 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 ( z ) { r e t u r n t h i s . _ h a s h e r . u p d a t e ( z ) , t h i s } , f i n a l i z e : f u n c t i o n ( z ) { v a r r e = t h i s . _ h a s h e r , i e = r e . f i n a l i z e ( z ) ; r e . r e s e t ( ) ; v a r o e = r e . 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 ( i e ) ) ; r e t u r n o e } } ) } ) ( ) } ) } ( 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 ( e , t ) { ( f u n c t i o n ( y , n , k ) { e . e x p o r t s = n ( 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 ( y ) { r e t u r n f u n c t i o n ( ) { v a r n = y , k = n . l i b , L = k . B a s e , $ = k . W o r d A r r a y , j = n . a l g o , V = j . S H A 2
2024-08-21 13:12:53 +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-25 11:35:35 +08:00
* / r e t u r n y . 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 n = y . 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 k ( j ) { i f ( ( j > > 2 4 & 2 5 5 ) = = = 2 5 5 ) { v a r V = j > > 1 6 & 2 5 5 , z = j > > 8 & 2 5 5 , r e = j & 2 5 5 ; V = = = 2 5 5 ? ( V = 0 , z = = = 2 5 5 ? ( z = 0 , r e = = = 2 5 5 ? r e = 0 : + + r e ) : + + z ) : + + V , j = 0 , j + = V < < 1 6 , j + = z < < 8 , j + = r e } e l s e j + = 1 < < 2 4 ; r e t u r n j } f u n c t i o n L ( j ) { r e t u r n ( j [ 0 ] = k ( j [ 0 ] ) ) = = = 0 & & ( j [ 1 ] = k ( j [ 1 ] ) ) , j } v a r $ = n . E n c r y p t o r = n . 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 ( j , V ) { v a r z = t h i s . _ c i p h e r , r e = z . b l o c k S i z e , i e = t h i s . _ i v , o e = t h i s . _ c o u n t e r ; i e & & ( o e = t h i s . _ c o u n t e r = i e . s l i c e ( 0 ) , t h i s . _ i v = v o i d 0 ) , L ( o e ) ; v a r u e = o e . s l i c e ( 0 ) ; z . e n c r y p t B l o c k ( u e , 0 ) ; f o r ( v a r d e = 0 ; d e < r e ; d e + + ) j [ V + d e ] ^ = u e [ d e ] } } ) ; r e t u r n n . D e c r y p t o r = $ , n } ( ) , y . 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 ( e , t ) { ( f u n c t i o n ( y , n , k ) { e . e x p o r t s = n ( 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 ( y ) { r e t u r n y . m o d e . O F B = f u n c t i o n ( ) { v a r n = y . l i b . B l o c k C i p h e r M o d e . e x t e n d ( ) , k = n . E n c r y p t o r = n . 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 ( L , $ ) { v a r j = t h i s . _ c i p h e r , V = j . b l o c k S i z e , z = t h i s . _ i v , r e = t h i s . _ k e y s t r e a m ; z & & ( r e = t h i s . _ k e y s t r e a m = z . s l i c e ( 0 ) , t h i s . _ i v = v o i d 0 ) , j . e n c r y p t B l o c k ( r e , 0 ) ; f o r ( v a r i e = 0 ; i e < V ; i e + + ) L [ $ + i e ] ^ = r e [ i e ] } } ) ; r e t u r n n . D e c r y p t o r = k , n } ( ) , y . 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 ( e , t ) { ( f u n c t i o n ( y , n , k ) { e . e x p o r t s = n ( 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 ( y ) { r e t u r n y . m o d e . E C B = f u n c t i o n ( ) { v a r n = y . 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 n . E n c r y p t o r = n . 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 ( k , L ) { t h i s . _ c i p h e r . e n c r y p t B l o c k ( k , L ) } } ) , n . D e c r y p t o r = n . 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 ( k , L ) { t h i s . _ c i p h e r . d e c r y p t B l o c k ( k , L ) } } ) , n } ( ) , y . 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 ( e , t ) { ( f u n c t i o n ( y , n , k ) { e . e x p o r t s = n ( 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 ( y ) { r e t u r n y . p a d . A n s i X 9 2 3 = { p a d : f u n c t i o n ( n , k ) { v a r L = n . s i g B y t e s , $ = k * 4 , j = $ - L % $ , V = L + j - 1 ; n . c l a m p ( ) , n . w o r d s [ V > > > 2 ] | = j < < 2 4 - V % 4 * 8 , n . s i g B y t e s + = j } , u n p a d : f u n c t i o n ( n ) { v a r k = n . w o r d s [ n . s i g B y t e s - 1 > > > 2 ] & 2 5 5 ; n . s i g B y t e s - = k } } , y . 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 ( e , t ) { ( f u n c t i o n ( y , n , k ) { e . e x p o r t s = n ( 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 ( y ) { r e t u r n y . p a d . I s o 1 0 1 2 6 = { p a d : f u n c t i o n ( n , k ) { v a r L = k * 4 , $ = L - n . s i g B y t e s % L ; n . c o n c a t ( y . l i b . W o r d A r r a y . r a n d o m ( $ - 1 ) ) . c o n c a t ( y . l i b . W o r d A r r a y . c r e a t e ( [ $ < < 2 4 ] , 1 ) ) } , u n p a d : f u n c t i o n ( n ) { v a r k = n . w o r d s [ n . s i g B y t e s - 1 > > > 2 ] & 2 5 5 ; n . s i g B y t e s - = k } } , y . 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 ( e , t ) { ( f u n c t i o n ( y , n , k ) { e . e x p o r t s = n ( 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 ( y ) { r e t u r n y . p a d . I s o 9 7 9 7 1 = { p a d : f u n c t i o n ( n , k ) { n . c o n c a t ( y . 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 ) ) , y . p a d . Z e r o P a d d i n g . p a d ( n , k ) } , u n p a d : f u n c t i o n ( n ) { y . p a d . Z e r o P a d d i n g . u n p a d ( n ) , n . s i g B y t e s - - } } , y . 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 ( e , t ) { ( f u n c t i o n ( y , n , k ) { e . e x p o r t s = n ( 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 ( y ) { r e t u r n y . 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 ( n , k ) { v a r L = k * 4 ; n . c l a m p ( ) , n . s i g B y t e s + = L - ( n . s i g B y t e s % L | | L ) } , u n p a d : f u n c t i o n ( n ) { f o r ( v a r k = n . w o r d s , L = n . s i g B y t e s - 1 , L = n . s i g B y t e s - 1 ; L > = 0 ; L - - ) i f ( k [ L > > > 2 ] > > > 2 4 - L % 4 * 8 & 2 5 5 ) { n . s i g B y t e s = L + 1 ; b r e a k } } } , y . 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 n g ( ) { r e t u r n h a s R e q u i r e d P a d N o p a d d i n g | | ( h a s R e q u i r e d P a d N o p a d d i n g = 1 , f u n c t i o n ( e , t ) { ( f u n c t i o n ( y , n , k ) { e . e x p o r t s = n ( 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 ( y ) { r e t u r n y . p a d . N o P a d d i n g = { p a d : f u n c t i o n ( ) { } , u n p a d : f u n c t i
2024-08-21 13:12:53 +08:00
< BucketLoggingStatus >
< LoggingEnabled >
< TargetBucket > ` .concat(Ce, ` < / T a r g e t B u c k e t >
2024-08-25 11:35:35 +08:00
` ),he&&(Ve+="<TargetPrefix>".concat(he, ` < / T a r g e t P r e f i x >
` )),Ve+= ` < / 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 > ` , F e . c o n t e n t = V e , F e . m i m e = " x m l " , F e . s u c c e s s S t a t u s e s = [ 2 0 0 ] , U e . n e x t = 9 , t h i s . r e q u e s t ( F e ) ; c a s e 9 : r e t u r n j t = U e . s e n t , U e . a b r u p t ( " r e t u r n " , { r e s : j t . r e s } ) ; c a s e 1 1 : c a s e " e n d " : r e t u r n U e . s t o p ( ) } } , _ e , t h i s ) } ) ) ; f u n c t i o n I e ( _ e , C e , h e ) { r e t u r n p e . a p p l y ( t h i s , a r g u m e n t s ) } r e t u r n I e } ( ) , o e . 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 p e = ( 0 , V . d e f a u l t ) ( j . d e f a u l t . m a r k ( f u n c t i o n _ e ( C e , h e ) { v a r N e , F e , V e ; r e t u r n j . d e f a u l t . w r a p ( f u n c t i o n ( E t ) { f o r ( ; ; ) s w i t c h ( E t . p r e v = E t . n e x t ) { c a s e 0 : r e t u r n N e = 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 " , C e , " l o g g i n g " , h e ) , N e . s u c c e s s S t a t u s e s = [ 2 0 0 ] , N e . x m l R e s p o n s e = ! 0 , E t . n e x t = 5 , t h i s . r e q u e s t ( N e ) ; c a s e 5 : r e t u r n F e = E t . s e n t , V e = F e . d a t a . L o g g i n g E n a b l e d , E t . a b r u p t ( " r e t u r n " , { e n a b l e : ! ! V e , p r e f i x : V e & & V e . T a r g e t P r e f i x | | n u l l , r e s : F e . r e s } ) ; c a s e 8 : c a s e " e n d " : r e t u r n E t . s t o p ( ) } } , _ e , t h i s ) } ) ) ; f u n c t i o n I e ( _ e , C e ) { r e t u r n p e . a p p l y ( t h i s , a r g u m e n t s ) } r e t u r n I e } ( ) , o e . 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 p e = ( 0 , V . d e f a u l t ) ( j . d e f a u l t . m a r k ( f u n c t i o n _ e ( C e , h e ) { v a r N e , F e ; r e t u r n j . d e f a u l t . w r a p ( f u n c t i o n ( j t ) { f o r ( ; ; ) s w i t c h ( j t . p r e v = j t . n e x t ) { c a s e 0 : r e t u r n N e = 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 " , C e , " l o g g i n g " , h e ) , N e . s u c c e s s S t a t u s e s = [ 2 0 4 , 2 0 0 ] , j t . n e x t = 4 , t h i s . r e q u e s t ( N e ) ; c a s e 4 : r e t u r n F e = j t . s e n t , j t . a b r u p t ( " r e t u r n " , { r e s : F e . r e s } ) ; c a s e 6 : c a s e " e n d " : r e t u r n j t . s t o p ( ) } } , _ e , t h i s ) } ) ) ; f u n c t i o n I e ( _ e , C e ) { r e t u r n p e . a p p l y ( t h i s , a r g u m e n t s ) } r e t u r n I e } ( ) , o e . p u t B u c k e t C O R S = f u n c t i o n ( ) { v a r p e = ( 0 , V . d e f a u l t ) ( j . d e f a u l t . m a r k ( f u n c t i o n _ e ( C e , h e , N e ) { v a r F e , V e , j t , E t , U e , q e , k t , t r , r r , a r ; r e t u r n j . d e f a u l t . w r a p ( f u n c t i o n ( u r ) { f o r ( ; ; ) s w i t c h ( u r . p r e v = u r . n e x t ) { c a s e 0 : f o r ( h e = h e | | [ ] , z ( h e . l e n g t h , " r u l e s i s r e q u i r e d " ) , h e . f o r E a c h ( f u n c t i o n ( c r ) { z ( c r . 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 " ) , z ( c r . 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 " ) } ) , F e = 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 " , C e , " c o r s " , N e ) , V e = ` < ? 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 > ` ,jt=function(mr){Ve+="<AllowedOrigin>".concat(mr,"</AllowedOrigin>")},Et=function(mr){Ve+="<AllowedMethod>".concat(mr,"</AllowedMethod>")},Ue=function(mr){Ve+="<AllowedHeader>".concat(mr,"</AllowedHeader>")},qe=function(mr){Ve+="<ExposeHeader>".concat(mr,"</ExposeHeader>")},kt=0,tr=he.length;kt<tr;kt++)rr=he[kt],Ve+="<CORSRule>",de(rr.allowedOrigin).forEach(jt),de(rr.allowedMethod).forEach(Et),de(rr.allowedHeader).forEach(Ue),de(rr.exposeHeader).forEach(qe),rr.maxAgeSeconds&&(Ve+="<MaxAgeSeconds>".concat(rr.maxAgeSeconds,"</MaxAgeSeconds>")),Ve+="</CORSRule>";return Ve+="</CORSConfiguration>",Fe.content=Ve,Fe.mime="xml",Fe.successStatuses=[200],ur.next=16,this.request(Fe);case 16:return ar=ur.sent,ur.abrupt("return",{res:ar.res});case 18:case"end":return ur.stop()}},_e,this)}));function Ie(_e,Ce,he){return pe.apply(this,arguments)}return Ie}(),oe.getBucketCORS=function(){var pe=(0,V.default)(j.default.mark(function _e(Ce,he){var Ne,Fe,Ve,jt;return j.default.wrap(function(Ue){for(;;)switch(Ue.prev=Ue.next){case 0:return Ne=this._bucketRequestParams("GET",Ce,"cors",he),Ne.successStatuses=[200],Ne.xmlResponse=!0,Ue.next=5,this.request(Ne);case 5:return Fe=Ue.sent,Ve=[],Fe.data&&Fe.data.CORSRule&&(jt=Fe.data.CORSRule,ue(jt)||(jt=[jt]),jt.forEach(function(qe){var kt={};Object.keys(qe).forEach(function(tr){kt[tr.slice(0,1).toLowerCase()+tr.slice(1,tr.length)]=qe[tr]}),Ve.push(kt)})),Ue.abrupt("return",{rules:Ve,res:Fe.res});case 9:case"end":return Ue.stop()}},_e,this)}));function Ie(_e,Ce){return pe.apply(this,arguments)}return Ie}(),oe.deleteBucketCORS=function(){var pe=(0,V.default)(j.default.mark(function _e(Ce,he){var Ne,Fe;return j.default.wrap(function(jt){for(;;)switch(jt.prev=jt.next){case 0:return Ne=this._bucketRequestParams("DELETE",Ce,"cors",he),Ne.successStatuses=[204],jt.next=4,this.request(Ne);case 4:return Fe=jt.sent,jt.abrupt("return",{res:Fe.res});case 6:case"end":return jt.stop()}},_e,this)}));function Ie(_e,Ce){return pe.apply(this,arguments)}return Ie}(),oe.putBucketReferer=function(){var pe=(0,V.default)(j.default.mark(function _e(Ce,he,Ne,Fe){var Ve,jt,Et,Ue;return j.default.wrap(function(kt){for(;;)switch(kt.prev=kt.next){case 0:if(Ve=this._bucketRequestParams("PUT",Ce,"referer",Fe),jt= ` < ? xml version = "1.0" encoding = "UTF-8" ? >
2024-08-21 13:12:53 +08:00
< RefererConfiguration >
2024-08-25 11:35:35 +08:00
` ,jt+=" <AllowEmptyReferer>".concat(he?"true":"false", ` < / A l l o w E m p t y R e f e r e r >
` ),Ne&&Ne.length>0){for(jt+= ` < RefererList >
` ,Et=0;Et<Ne.length;Et++)jt+=" <Referer>".concat(Ne[Et], ` < / R e f e r e r >
` );jt+= ` < / R e f e r e r L i s t >
` }else jt+= ` < RefererList / >
` ;return jt+="</RefererConfiguration>",Ve.content=jt,Ve.mime="xml",Ve.successStatuses=[200],kt.next=10,this.request(Ve);case 10:return Ue=kt.sent,kt.abrupt("return",{res:Ue.res});case 12:case"end":return kt.stop()}},_e,this)}));function Ie(_e,Ce,he,Ne){return pe.apply(this,arguments)}return Ie}(),oe.getBucketReferer=function(){var pe=(0,V.default)(j.default.mark(function _e(Ce,he){var Ne,Fe,Ve;return j.default.wrap(function(Et){for(;;)switch(Et.prev=Et.next){case 0:return Ne=this._bucketRequestParams("GET",Ce,"referer",he),Ne.successStatuses=[200],Ne.xmlResponse=!0,Et.next=5,this.request(Ne);case 5:return Fe=Et.sent,Ve=Fe.data.RefererList.Referer||null,Ve&&(ue(Ve)||(Ve=[Ve])),Et.abrupt("return",{allowEmpty:Fe.data.AllowEmptyReferer==="true",referers:Ve,res:Fe.res});case 9:case"end":return Et.stop()}},_e,this)}));function Ie(_e,Ce){return pe.apply(this,arguments)}return Ie}(),oe.deleteBucketReferer=function(){var pe=(0,V.default)(j.default.mark(function _e(Ce,he){return j.default.wrap(function(Fe){for(;;)switch(Fe.prev=Fe.next){case 0:return Fe.next=2,this.putBucketReferer(Ce,!0,null,he);case 2:return Fe.abrupt("return",Fe.sent);case 3:case"end":return Fe.stop()}},_e,this)}));function Ie(_e,Ce){return pe.apply(this,arguments)}return Ie}(),oe._bucketRequestParams=function(Ie,_e,Ce,he){return{method:Ie,bucket:_e,subres:Ce,additionalHeaders:he&&he.additionalHeaders,timeout:he&&he.timeout,ctx:he&&he.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(n,k,L){(function( $ ,j){(function(){var V=n("@babel/runtime/helpers/interopRequireDefault"),z=V(n("@babel/runtime/regenerator")),re=V(n("@babel/runtime/helpers/asyncToGenerator"));n("core-js/modules/es.function.name.js"),n("core-js/modules/es.object.assign.js"),n("core-js/modules/es.array.includes.js"),n("core-js/modules/es.regexp.exec.js"),n("core-js/modules/es.string.replace.js"),n("core-js/modules/es.array.concat.js"),n("core-js/modules/es.symbol.js"),n("core-js/modules/es.symbol.description.js"),n("core-js/modules/es.array.slice.js"),n("core-js/modules/es.object.to-string.js"),n("core-js/modules/es.promise.js"),n("core-js/modules/es.regexp.to-string.js");var ie=n("debug")("ali-oss"),oe=n("xml2js"),ue=n("agentkeepalive"),de=n("merge-descriptors"),pe=n("platform"),Ie=n("utility"),_e=n("urllib"),Ce=n("./version"),he=n("bowser"),Ne=n("../common/signUtils"),Fe=n("../common/client/initOptions"),Ve=n("../common/utils/createRequest"),jt=Ve.createRequest,Et=n("../common/utils/encoder"),Ue=Et.encoder,qe=n("../common/client/getReqUrl"),kt=qe.getReqUrl,tr=n("../common/utils/setSTSToken"),rr=tr.setSTSToken,ar=n("../common/utils/retry"),nr=ar.retry,ur=n("../common/utils/isFunction"),cr=ur.isFunction,mr=n("../common/utils/getStandardRegion"),hr=mr.getStandardRegion,br=new ue;function Rr(){var gr=pe.name,_r=pe.version;gr&&gr.toLowerCase&&gr.toLowerCase()==="ie"&&_r.split(".")[0]<10&&console.warn("ali-oss does not support the current browser")}function xr(){return location&&location.protocol==="https:"}function Er(gr,_r){if(Rr(),!(this instanceof Er))return new Er(gr,_r);gr&&gr.inited?this.options=gr:this.options=Er.initOptions(gr),this.options.cancelFlag=!1,this.options.urllib?this.urllib=this.options.urllib:(this.urllib=_e,this.agent=this.options.agent||br),this.ctx=_r,this.userAgent=this._getUserAgent(),this.stsTokenFreshTime=new Date,this.options.amendTimeSkewed=0}k.exports=Er,Er.initOptions=function(_r){_r.stsToken||console.warn("Please use STS Token for safety, see more details at https://help.aliyun.com/document_detail/32077.html");var Fr=Object.assign({secure:xr(),useFetch:!1},_r);return Fe(Fr)};var vr=Er.prototype;vr.debug=ie,de(vr,n("./object")),de(vr,n("./bucket")),de(vr,n("../common/bucket/getBucketWebsite")),de(vr,n("..
raw xml : ` .concat(Kr),ca.t1.status=zr.status,ca.t1.requestId=zr.headers["x-oss-request-id"],ca.abrupt("return",ca.t1);case 16:jr=Nr.Message||"unknow request error, status: ".concat(zr.status),Nr.Condition&&(jr+=" (condition: ".concat(Nr.Condition,")")),Gr=new Error(jr),Gr.name=Nr.Code?"".concat(Nr.Code,"Error"):"UnknownError",Gr.status=zr.status,Gr.code=Nr.Code,Gr.ecCode=Nr.EC,Gr.requestId=Nr.RequestId,Gr.hostId=Nr.HostId,Gr.serverTime=Nr.ServerTime;case 26:case"end":return ca.stop()}},Wr,null,[[0,9]])}));return function(Kr){return kr.apply(this,arguments)}}(),!(!zr.data||!zr.data.length)){Dr.next=37;break}if(!(zr.status===-1||zr.status===-2)){Dr.next=10;break}Gr=new Error(zr.message),Gr.name=zr.name,Gr.status=zr.status,Gr.code=zr.name,Dr.next=35;break;case 10:if(zr.status!==404){Dr.next=17;break}Gr=new Error("Object not exists"),Gr.name="NoSuchKeyError",Gr.status=404,Gr.code="NoSuchKey",Dr.next=33;break;case 17:if(zr.status!==412){Dr.next=24;break}Gr=new Error("Pre condition failed"),Gr.name="PreconditionFailedError",Gr.status=412,Gr.code="PreconditionFailed",Dr.next=33;break;case 24:if(Gr=new Error("Unknow error, status: ".concat(zr.status)),Gr.name="UnknownError",Gr.status=zr.status,Gr.res=zr,Cr=zr.headers["x-oss-err"],!Cr){Dr.next=33;break}return Mr=atob(Cr),Dr.next=33,Tr(Mr);case 33:Gr.requestId=zr.headers["x-oss-request-id"],Gr.host="";case 35:Dr.next=41;break;case 37:return yr=String(zr.data),this.debug("request response error data: %s",yr,"error"),Dr.next=41,Tr(yr);case 41:return this.debug("generate error %j",Gr,"error"),Dr.abrupt("return",Gr);case 43:case"end":return Dr.stop()}},Fr,this)}));function _r(Fr){return gr.apply(this,arguments)}return _r}()}).call(this)}).call(this,{isBuffer:n("../../node_modules/is-buffer/index.js")},n("_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(n,k,L){(function( $ ){(function(){var j=n("@babel/runtime/helpers/interopRequireDefault"),V=j(n("@babel/runtime/regenerator"));n("core-js/modules/es.function.name.js"),n("core-js/modules/es.object.to-string.js"),n("core-js/modules/es.promise.js"),n("core-js/modules/es.array.from.js"),n("core-js/modules/es.string.iterator.js"),n("core-js/modules/es.array.map.js"),n("core-js/modules/es.ar
2024-08-21 13:12:53 +08:00
< CompleteMultipartUpload >
2024-08-25 11:35:35 +08:00
` ,tr=0;tr<qe.length;tr++)rr=qe[tr],kt+= ` < Part >
` ,kt+="<PartNumber>".concat(rr.number, ` < / P a r t N u m b e r >
` ),kt+="<ETag>".concat(rr.etag, ` < / E T a g >
` ),kt+= ` < / P a r t >
` ;return kt+="</CompleteMultipartUpload>",Ue=Ue||{},ar={},ar=ue(Ue,function(br){if(pe(br))return null}),ar.subres={uploadId:jt},ar.headers=_e(ar.headers,["x-oss-server-side-encryption","x-oss-storage-class"]),nr=this._objectRequestParams("POST",Ve,ar),ie.encodeCallback(nr,ar),nr.mime="xml",nr.content=kt,nr.headers&&nr.headers["x-oss-callback"]||(nr.xmlResponse=!0),nr.successStatuses=[200],hr.next=17,this.request(nr);case 17:if(ur=hr.sent,!Ue.progress){hr.next=21;break}return hr.next=21,Ue.progress(1,null,ur.res);case 21:return cr={res:ur.res,bucket:nr.bucket,name:Ve,etag:ur.res.headers.etag},nr.headers&&nr.headers["x-oss-callback"]&&(cr.data=JSON.parse(ur.data.toString())),hr.abrupt("return",cr);case 24:case"end":return hr.stop()}},Fe,this)}));function Ne(Fe,Ve,jt,Et){return he.apply(this,arguments)}return Ne}(),Ce._uploadPart=function(){var he=(0,z.default)(V.default.mark(function Fe(Ve,jt,Et,Ue,qe){var kt,tr,rr,ar;return V.default.wrap(function(ur){for(;;)switch(ur.prev=ur.next){case 0:return qe=qe||{},kt={},re(qe).to(kt),kt.headers=kt.headers||{},kt.headers["Content-Length"]=Ue.size,kt.headers=_e(kt.headers,["x-oss-server-side-encryption","x-oss-storage-class"]),kt.subres={partNumber:Et,uploadId:jt},tr=this._objectRequestParams("PUT",Ve,kt),tr.mime=kt.mime,rr= $ && $ .browser,rr?tr.content=Ue.content:tr.stream=Ue.stream,tr.successStatuses=[200],tr.disabledMD5=qe.disabledMD5,ur.next=15,this.request(tr);case 15:if(ar=ur.sent,ar.res.headers.etag){ur.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 Ue.stream&&(Ue.stream=null,tr.stream=null),ur.abrupt("return",{name:Ve,etag:ar.res.headers.etag,res:ar.res});case 20:case"end":return ur.stop()}},Fe,this)}));function Ne(Fe,Ve,jt,Et,Ue){return he.apply(this,arguments)}return Ne}()}).call(this)}).call(this,n("_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(n,k,L){var $=n("@babel/runtime/helpers/interopRequireDefault"),j=$(n("@babel/runtime/regenerator"));n("core-js/modules/es.regexp.exec.js");var V=$(n("@babel/runtime/helpers/asyncToGenerator")),z=n("url"),re=n("utility"),ie=n("copy-to"),oe=n("../../common/signUtils"),ue=n("../utils/isIP"),de=ue.isIP,pe=n("../utils/setSTSToken"),Ie=pe.setSTSToken,_e=n("../utils/isFunction"),Ce=_e.isFunction,he=L;he.asyncSignatureUrl=function(){var Ne=(0,V.default)(j.default.mark(function Ve(jt,Et){var Ue,qe,kt,tr,rr,ar,nr=arguments;return j.default.wrap(function(cr){for(;;)switch(cr.prev=cr.next){case 0:if(Ue=nr.length>2&&nr[2]!==void 0?nr[2]:!0,!de(this.options.endpoint.hostname)){cr.next=3;break}throw new Error("can not get the object URL when endpoint is IP");case 3:if(!(Ue&&/^\?/.test(jt))){cr.next=5;break}throw new Error("Invalid object name ".concat(jt));case 5:if(Et=Et||{},jt=this._objectName(jt),Et.method=Et.method||"GET",qe=re.timestamp()+(Et.expires||1800),kt={bucket:this.options.bucket,object:jt},tr=this._getResource(kt),!(this.options.stsToken&&Ce(this.options.refreshSTSToken))){cr.next=14;break}return cr.next=14,Ie.call(this);case 14:return this.options.stsToken&&(Et["security-token"]=this.options.stsToken),rr=oe._signatureForURL(this.options.accessKeySecret,Et,tr,qe),ar=z.parse(this._getReqUrl(kt)),ar.query={OSSAccessKeyId:this.options.accessKeyId,Expires:qe,Signature:rr.Signature},ie(rr.subResource).to(ar.query),cr.abrupt("return",ar.format());case 20:case"end":return cr.stop()}},Ve,this)}));function Fe(Ve,jt){return Ne.apply(this,arguments)}return Fe}()},{"../../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(n,k,L){var $=n("@babel/runtime/helpers/interopRequireDefault"),j=$(n("@babel/runtime/regenerator"));n("core-js/modules/es.object.to-string.js"),n("core-js/modules/web.dom-collections.for-each.js"),n("core-js/modules/es.object.keys.js"),n("core-js/modules/es.array.find.js"),n("core-js/modules/es.array.includes.js"),n("core-js/modules/es.array.concat.js"),n("core-js/modules/es.regexp.exec.js"),n("core-js/modules/es.string.replace.js");var V=$(n("@babel/runtime/helpers/typeof")),z=$(n("@babel/runtime/helpers/asyncToGenerator")),re=n("../utils/checkBucketName"),ie=re.checkBucketName,oe=L,ue=["content-type","content-encoding","content-language","content-disposition","cache-control","expires"];oe.copy=function(){var de=(0,z.default)(j.default.mark(function Ie(_e,Ce,he,Ne){var Fe,Ve,jt;return j.default.wrap(function(Ue){for(;;)switch(Ue.prev=Ue.next){case 0:return(0,V.default)(he)==="object"&&(Ne=he),Ne=Ne||{},Ne.headers=Ne.headers||{},Object.keys(Ne.headers).forEach(function(qe){Ne.headers["x-oss-copy-source-".concat(qe.toLowerCase())]=Ne.headers[qe]}),(Ne.meta||Object.keys(Ne.headers).find(function(qe){return ue.includes(qe.toLowerCase())}))&&(Ne.headers["x-oss-metadata-directive"]="REPLACE"),this._convertMetaToHeaders(Ne.meta,Ne.headers),Ce=this._getSourceName(Ce,he),Ne.versionId&&(Ce="".concat(Ce,"?version
` )},L.computeSignature=function(_e,Ce){var he=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"utf-8",Ne=z.createHmac("sha1",_e);return Ne.update( $ .from(Ce,he)).digest("base64")},L.authorization=function(_e,Ce,he,Ne){return"OSS ".concat(_e,":").concat(this.computeSignature(Ce,he,Ne))},L.fixAdditionalHeaders=function(Ie){if(!Ie)return[];var _e="x-oss-";return(0,V.default)(new Set(Ie.map(function(Ce){return Ce.toLowerCase()}))).filter(function(Ce){return Ce!=="content-type"&&Ce!=="content-md5"&&!Ce.startsWith(_e)}).sort()},L.getCanonicalRequest=function(_e,Ce,he,Ne,Fe){var Ve=ue(Ce.headers),jt=Ce.queries||{},Et="x-oss-";if(Ne&&!he)throw Error("Please ensure that bucketName is passed into getCanonicalRequest.");var Ue=[_e.toUpperCase(),pe("/".concat(he?"".concat(he,"/"):"").concat(Ne||"")).replace(/%2F/g,"/")];Ue.push(ie.stringify(jt,{encoder:pe,sort:function(rr,ar){return rr.localeCompare(ar)},strictNullHandling:!0})),Fe&&Fe.forEach(function(tr){if(!Object.prototype.hasOwnProperty.call(Ve,tr))throw Error("Can't find additional header ".concat(tr," in request headers."))});var qe=new Set(Fe);Object.keys(Ve).forEach(function(tr){(tr==="content-type"||tr==="content-md5"||tr.startsWith(Et))&&qe.add(tr)});var kt="".concat((0,V.default)(qe).sort().map(function(tr){return"".concat(tr,":").concat(re.string(Ve[tr])?Ve[tr].trim():Ve[tr], `
` )}).join(""));return Ue.push(kt),Fe.length>0?Ue.push(Fe.join(";")):Ue.push(""),Ue.push(Ve["x-oss-content-sha256"]||"UNSIGNED-PAYLOAD"),Ue.join( `
2024-08-22 08:49:17 +08:00
` )},L.getStringToSign=function(_e,Ce,he){var Ne=["OSS4-HMAC-SHA256",Ce,"".concat(Ce.split("T")[0],"/").concat(_e,"/oss/aliyun_v4_request"),z.createHash("sha256").update(he).digest("hex")];return Ne.join( `
2024-08-25 11:35:35 +08:00
` )},L.getSignatureV4=function(_e,Ce,he,Ne){var Fe=z.createHmac("sha256","aliyun_v4".concat(_e)).update(Ce).digest(),Ve=z.createHmac("sha256",Fe).update(he).digest(),jt=z.createHmac("sha256",Ve).update("oss").digest(),Et=z.createHmac("sha256",jt).update("aliyun_v4_request").digest(),Ue=z.createHmac("sha256",Et).update(Ne).digest("hex");return Ue},L.authorizationV4=function(_e,Ce,he,Ne,Fe,Ve,jt,Et){var Ue=arguments.length>8&&arguments[8]!==void 0?arguments[8]:"utf-8",qe=this.fixAdditionalHeaders(Et),kt={};Object.entries(Fe.headers).forEach(function(mr){kt[mr[0]]=re.string(mr[1])? $ .from(mr[1],Ue).toString():mr[1]});var tr=kt["x-oss-date"]||Fe.queries&&Fe.queries["x-oss-date"],rr=this.getCanonicalRequest(Ne,{headers:kt,queries:Fe.queries},Ve,jt,qe),ar=this.getStringToSign(he,tr,rr),nr=tr.split("T")[0],ur=this.getSignatureV4(Ce,nr,he,ar),cr=qe.length>0?"AdditionalHeaders=".concat(qe.join(";"),","):"";return"OSS4-HMAC-SHA256 Credential=".concat(_e,"/").concat(nr,"/").concat(he,"/oss/aliyun_v4_request,").concat(cr,"Signature=").concat(ur)},L._signatureForURL=function(_e){var Ce=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},he=arguments.length>2?arguments[2]:void 0,Ne=arguments.length>3?arguments[3]:void 0,Fe=arguments.length>4?arguments[4]:void 0,Ve={},jt=Ce.subResource,Et=jt===void 0?{}:jt;if(Ce.process){var Ue="x-oss-process";Et[Ue]=Ce.process}if(Ce.trafficLimit){var qe="x-oss-traffic-limit";Et[qe]=Ce.trafficLimit}if(Ce.response&&Object.keys(Ce.response).forEach(function(ar){var nr="response-".concat(ar.toLowerCase());Et[nr]=Ce.response[ar]}),Object.keys(Ce).forEach(function(ar){var nr=ar.toLowerCase(),ur=Ce[ar];nr.indexOf("x-oss-")===0?Ve[nr]=ur:(nr.indexOf("content-md5")===0||nr.indexOf("content-type")===0)&&(Ve[ar]=ur)}),Object.prototype.hasOwnProperty.call(Ce,"security-token")&&(Et["security-token"]=Ce["security-token"]),Object.prototype.hasOwnProperty.call(Ce,"callback")){var kt={callbackUrl:encodeURI(Ce.callback.url),callbackBody:Ce.callback.body};if(Ce.callback.host&&(kt.callbackHost=Ce.callback.host),Ce.callback.contentType&&(kt.callbackBodyType=Ce.callback.contentType),Ce.callback.callbackSNI&&(kt.callbackSNI=Ce.callback.callbackSNI),Et.callback= $ .from(JSON.stringify(kt)).toString("base64"),Ce.callback.customValue){var tr={};Object.keys(Ce.callback.customValue).forEach(function(ar){tr["x:".concat(ar)]=Ce.callback.customValue[ar]}),Et["callback-var"]= $ .from(JSON.stringify(tr)).toString("base64")}}var rr=this.buildCanonicalString(Ce.method,he,{headers:Ve,parameters:Et},Ne.toString());return{Signature:this.computeSignature(_e,rr,Fe),subResource:Et}}}).call(this)}).call(this,n("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(n,k,L){n("core-js/modules/es.regexp.exec.js"),Object.defineProperty(L,"__esModule",{value:!0}),L.checkBucketName=void 0,L.checkBucketName=function( $ ){var j=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,V=j?/^[a-z0-9][a-z0-9-]{1,61}[a-z0-9] $ /:/^[a-z0-9_][a-z0-9-_]{1,61}[a-z0-9_] $ /;if(!V.test( $ ))throw new Error("The bucket must be conform to the specifications")}},{"core-js/modules/es.regexp.exec.js":340}],53:[functi
2024-08-22 08:49:17 +08:00
` ),re&&re.firstUpperCase&&(z= $ .formatObjKey(z,"firstUpperCase")),j(z)==="object"?Object.keys(z).forEach(function(oe){j(z[oe])!=="undefined"&&j(z[oe])!=="null"&&(j(z[oe])==="string"||j(z[oe])==="number"?ie+="<".concat(oe,">").concat(z[oe],"</").concat(oe,">"):j(z[oe])==="object"?ie+="<".concat(oe,">").concat(V(z[oe]),"</").concat(oe,">"):j(z[oe])==="array"?ie+=z[oe].map(function(ue){return"<".concat(oe,">").concat(V(ue),"</").concat(oe,">")}).join(""):ie+="<".concat(oe,">").concat(z[oe].toString(),"</").concat(oe,">"))}):ie+=z.toString(),ie}L.obj2xml=V},{"./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(n,k,L){n("core-js/modules/es.array.slice.js"),n("core-js/modules/es.object.to-string.js"),n("core-js/modules/es.regexp.to-string.js"),n("core-js/modules/es.function.name.js"),n("core-js/modules/es.array.from.js"),n("core-js/modules/es.string.iterator.js"),n("core-js/modules/es.regexp.exec.js"),n("core-js/modules/es.symbol.js"),n("core-js/modules/es.symbol.description.js"),n("core-js/modules/es.symbol.iterator.js"),n("core-js/modules/es.array.iterator.js"),n("core-js/modules/web.dom-collections.iterator.js"),n("core-js/modules/es.object.assign.js");function $ (re,ie){var oe=typeof Symbol<"u"&&re[Symbol.iterator]||re["@@iterator"];if(!oe){if(Array.isArray(re)||(oe=j(re))||ie){oe&&(re=oe);var ue=0,de=function(){};return{s:de,n:function(){return ue>=re.length?{done:!0}:{done:!1,value:re[ue++]}},e:function(he){throw he},f:de}}throw new TypeError( ` Invalid attempt to iterate non - iterable instance .
2024-08-25 11:35:35 +08:00
In order to be iterable , non - array objects must have a [ Symbol . iterator ] ( ) method . ` )}var pe=!0,Ie=!1,_e;return{s:function(){oe=oe.call(re)},n:function(){var he=oe.next();return pe=he.done,he},e:function(he){Ie=!0,_e=he},f:function(){try{!pe&&oe.return!=null&&oe.return()}finally{if(Ie)throw _e}}}}function j(re,ie){if(re){if(typeof re=="string")return V(re,ie);var oe=Object.prototype.toString.call(re).slice(8,-1);if(oe==="Object"&&re.constructor&&(oe=re.constructor.name),oe==="Map"||oe==="Set")return Array.from(re);if(oe==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array $ /.test(oe))return V(re,ie)}}function V(re,ie){(ie==null||ie>re.length)&&(ie=re.length);for(var oe=0,ue=new Array(ie);oe<ie;oe++)ue[oe]=re[oe];return ue}Object.defineProperty(L,"__esModule",{value:!0}),L.omit=void 0;function z(re,ie){var oe=Object.assign({},re),ue= $ (ie),de;try{for(ue.s();!(de=ue.n()).done;){var pe=de.value;delete oe[pe]}}catch(Ie){ue.e(Ie)}finally{ue.f()}return oe}L.omit=z},{"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(n,k,L){n("core-js/modules/es.object.to-string.js"),n("core-js/modules/es.promise.js"),Object.defineProperty(L,"__esModule",{value:!0}),L.retry=void 0;function $ (j,V){var z=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},re=0,ie=z.retryDelay,oe=ie===void 0?500:ie,ue=z.errorHandler,de=ue===void 0?function(){return!0}:ue,pe=function Ie(){for(var _e=arguments.length,Ce=new Array(_e),he=0;he<_e;he++)Ce[he]=arguments[he];return new Promise(function(Ne,Fe){j.apply(void 0,Ce).then(function(Ve){re=0,Ne(Ve)}).catch(function(Ve){re<V&&de(Ve)?(re++,setTimeout(function(){Ne(Ie.apply(void 0,Ce))},oe)):(re=0,Fe(Ve))})})};return pe}L.retry= $ },{"core-js/modules/es.object.to-string.js":331,"core-js/modules/es.promise.js":335}],78:[function(n,k,L){var $ =function(re){return re&&re.__esModule?re:{default:re}};Object.defineProperty(L,"__esModule",{value:!0}),L.setRegion=void 0;var j= $ (n("url")),V=n("./checkConfigValid");function z(re){var ie=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,oe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;V.checkConfigValid(re,"region");var ue=oe?"https://":"http://",de=ie?"-internal.aliyuncs.com":".aliyuncs.com",pe="vpc100-oss-cn-";return re.substr(0,pe.length)===pe&&(de=".aliyuncs.com"),j.default.parse(ue+re+de)}L.setRegion=z},{"./checkConfigValid":53,url:545}],79:[function(n,k,L){var $ =n("@babel/runtime/helpers/interopRequireDefault"),j= $ (n("@babel/runtime/regenerator"));n("core-js/modules/es.object.keys.js"),n("core-js/modules/es.object.to-string.js"),n("core-js/modules/es.array.find.js"),n("core-js/modules/es.object.assign.js");var V= $ (n("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(L,"__esModule",{value:!0}),L.checkCredentials=L.setSTSToken=void 0;var z=n("./formatObjKey");function re(){return ie.apply(this,arguments)}function ie(){return ie=(0,V.default)(j.default.mark(function ue(){var de,pe;return j.default.wrap(function(_e){for(;;)switch(_e.prev=_e.next){case 0:if(this.options||(this.options={}),de=new Date,!this.stsTokenFreshTime){_e.next=14;break}if(!(+de-this.stsTokenFreshTime>=this.options.refreshSTSTokenInterval)){_e.next=12;break}return this.stsTokenFreshTime=de,_e.next=7,this.options.refreshSTSToken();case 7:pe=_e.sent,pe=z.formatObjKey(pe,"firstLowerCase"),pe.securityToken&&(pe.stsToken=pe.securityToken),oe(pe),Object.assign(this.options,pe);case 12:_e.next=15;break;case 14:this.stsTokenFreshTime=de;case 15:return _e.abrupt("return",null);case 16:case"end":return _e.stop()}},ue,this)})),ie.apply(this,arguments)}L.setSTSTo
In order to be iterable , non - array objects must have a [ Symbol . iterator ] ( ) method . ` )}k.exports= $ ,k.exports.__esModule=!0,k.exports.default=k.exports},{}],87:[function(n,k,L){var $ =n("./typeof.js").default;function j(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */k.exports=j=function(){return z},k.exports.__esModule=!0,k.exports.default=k.exports;var V,z={},re=Object.prototype,ie=re.hasOwnProperty,oe=Object.defineProperty||function(vr,Ir,Lr){vr[Ir]=Lr.value},ue=typeof Symbol=="function"?Symbol:{},de=ue.iterator||"@@iterator",pe=ue.asyncIterator||"@@asyncIterator",Ie=ue.toStringTag||"@@toStringTag";function _e(vr,Ir,Lr){return Object.defineProperty(vr,Ir,{value:Lr,enumerable:!0,configurable:!0,writable:!0}),vr[Ir]}try{_e({},"")}catch{_e=function(Lr,gr,_r){return Lr[gr]=_r}}function Ce(vr,Ir,Lr,gr){var _r=Ir&&Ir.prototype instanceof Ue?Ir:Ue,Fr=Object.create(_r.prototype),zr=new xr(gr||[]);return oe(Fr,"_invoke",{value:mr(vr,Lr,zr)}),Fr}function he(vr,Ir,Lr){try{return{type:"normal",arg:vr.call(Ir,Lr)}}catch(gr){return{type:"throw",arg:gr}}}z.wrap=Ce;var Ne="suspendedStart",Fe="suspendedYield",Ve="executing",jt="completed",Et={};function Ue(){}function qe(){}function kt(){}var tr={};_e(tr,de,function(){return this});var rr=Object.getPrototypeOf,ar=rr&&rr(rr(Er([])));ar&&ar!==re&&ie.call(ar,de)&&(tr=ar);var nr=kt.prototype=Ue.prototype=Object.create(tr);function ur(vr){["next","throw","return"].forEach(function(Ir){_e(vr,Ir,function(Lr){return this._invoke(Ir,Lr)})})}function cr(vr,Ir){function Lr(_r,Fr,zr,Vr){var Gr=he(vr[_r],vr,Fr);if(Gr.type!=="throw"){var Tr=Gr.arg,Cr=Tr.value;return Cr&& $ (Cr)=="object"&&ie.call(Cr,"__await")?Ir.resolve(Cr.__await).then(function(Mr){Lr("next",Mr,zr,Vr)},function(Mr){Lr("throw",Mr,zr,Vr)}):Ir.resolve(Cr).then(function(Mr){Tr.value=Mr,zr(Tr)},function(Mr){return Lr("throw",Mr,zr,Vr)})}Vr(Gr.arg)}var gr;oe(this,"_invoke",{value:function(Fr,zr){function Vr(){return new Ir(function(Gr,Tr){Lr(Fr,zr,Gr,Tr)})}return gr=gr?gr.then(Vr,Vr):Vr()}})}function mr(vr,Ir,Lr){var gr=Ne;return function(_r,Fr){if(gr===Ve)throw new Error("Generator is already running");if(gr===jt){if(_r==="throw")throw Fr;return{value:V,done:!0}}for(Lr.method=_r,Lr.arg=Fr;;){var zr=Lr.delegate;if(zr){var Vr=hr(zr,Lr);if(Vr){if(Vr===Et)continue;return Vr}}if(Lr.method==="next")Lr.sent=Lr._sent=Lr.arg;else if(Lr.method==="throw"){if(gr===Ne)throw gr=jt,Lr.arg;Lr.dispatchException(Lr.arg)}else Lr.method==="return"&&Lr.abrupt("return",Lr.arg);gr=Ve;var Gr=he(vr,Ir,Lr);if(Gr.type==="normal"){if(gr=Lr.done?jt:Fe,Gr.arg===Et)continue;return{value:Gr.arg,done:Lr.done}}Gr.type==="throw"&&(gr=jt,Lr.method="throw",Lr.arg=Gr.arg)}}}function hr(vr,Ir){var Lr=Ir.method,gr=vr.iterator[Lr];if(gr===V)return Ir.delegate=null,Lr==="throw"&&vr.iterator.return&&(Ir.method="return",Ir.arg=V,hr(vr,Ir),Ir.method==="throw")||Lr!=="return"&&(Ir.method="throw",Ir.arg=new TypeError("The iterator does not provide a '"+Lr+"' method")),Et;var _r=he(gr,vr.iterator,Ir.arg);if(_r.type==="throw")return Ir.method="throw",Ir.arg=_r.arg,Ir.delegate=null,Et;var Fr=_r.arg;return Fr?Fr.done?(Ir[vr.resultName]=Fr.value,Ir.next=vr.nextLoc,Ir.method!=="return"&&(Ir.method="next",Ir.arg=V),Ir.delegate=null,Et):Fr:(Ir.method="throw",Ir.arg=new TypeError("iterator result is not an object"),Ir.delegate=null,Et)}function br(vr){var Ir={tryLoc:vr[0]};1 in vr&&(Ir.catchLoc=vr[1]),2 in vr&&(Ir.finallyLoc=vr[2],Ir.afterLoc=vr[3]),this.tryEntries.push(Ir)}function Rr(vr){var Ir=vr.completion||{};Ir.type="normal",delete Ir.arg,vr.completion=Ir}function xr(vr){this.tryEntries=[{tryLoc:"root"}],vr.forEach(br,this),this.reset(!0)}function Er(vr){if(vr||vr===""){var Ir=vr[de];if(Ir)return Ir.call(vr);if(typeof vr.next=="function")return vr;if(!isNaN(vr.length)){var Lr=-1,gr=function _r(){for(;++Lr<vr.length;)if(ie.call(vr,Lr))return _r.value=vr[Lr],_r.done=!1,_r;return _r.value=V,_r.done=!0,_r};return gr.next=gr}}throw new TypeError( $ (vr)+" is not iterable")}return qe.prototype=kt
2024-08-21 13:12:53 +08:00
* The buffer module from node . js , for the browser .
*
* @ author Feross Aboukhadijeh < feross @ feross . org > < http : //feross.org>
* @ license MIT
2024-08-25 11:35:35 +08:00
* /function V(cr,mr){if(cr===mr)return 0;for(var hr=cr.length,br=mr.length,Rr=0,xr=Math.min(hr,br);Rr<xr;++Rr)if(cr[Rr]!==mr[Rr]){hr=cr[Rr],br=mr[Rr];break}return hr<br?-1:br<hr?1:0}function z(cr){return $.Buffer&&typeof $.Buffer.isBuffer=="function"?$.Buffer.isBuffer(cr):!!(cr!=null&&cr._isBuffer)}var re=n("util/ "),ie=Object.prototype.hasOwnProperty,oe=Array.prototype.slice,ue=function(){return(function(){}).name===" foo "}();function de(cr){return Object.prototype.toString.call(cr)}function pe(cr){return z(cr)||typeof $.ArrayBuffer!=" function "?!1:typeof ArrayBuffer.isView==" function "?ArrayBuffer.isView(cr):cr?!!(cr instanceof DataView||cr.buffer&&cr.buffer instanceof ArrayBuffer):!1}var Ie=k.exports=jt,_e=/\s*function\s+([^\(\s]*)\s*/;function Ce(cr){if(re.isFunction(cr)){if(ue)return cr.name;var mr=cr.toString(),hr=mr.match(_e);return hr&&hr[1]}}Ie.AssertionError=function(mr){this.name=" AssertionError " , this . actual = mr . actual , this . expected = mr . expected , this . operator = mr . operator , mr . message ? ( this . message = mr . message , this . generatedMessage = ! 1 ) : ( this . message = Fe ( this ) , this . generatedMessage = ! 0 ) ; var hr = mr . stackStartFunction || Ve ; if ( Error . captureStackTrace ) Error . captureStackTrace ( this , hr ) ; else { var br = new Error ; if ( br . stack ) { var Rr = br . stack , xr = Ce ( hr ) , Er = Rr . indexOf ( `
` +xr);if(Er>=0){var vr=Rr.indexOf( `
` ,Er+1);Rr=Rr.substring(vr+1)}this.stack=Rr}}},re.inherits(Ie.AssertionError,Error);function he(cr,mr){return typeof cr=="string"?cr.length<mr?cr:cr.slice(0,mr):cr}function Ne(cr){if(ue||!re.isFunction(cr))return re.inspect(cr);var mr=Ce(cr),hr=mr?": "+mr:"";return"[Function"+hr+"]"}function Fe(cr){return he(Ne(cr.actual),128)+" "+cr.operator+" "+he(Ne(cr.expected),128)}function Ve(cr,mr,hr,br,Rr){throw new Ie.AssertionError({message:hr,actual:cr,expected:mr,operator:br,stackStartFunction:Rr})}Ie.fail=Ve;function jt(cr,mr){cr||Ve(cr,!0,mr,"==",Ie.ok)}Ie.ok=jt,Ie.equal=function(mr,hr,br){mr!=hr&&Ve(mr,hr,br,"==",Ie.equal)},Ie.notEqual=function(mr,hr,br){mr==hr&&Ve(mr,hr,br,"!=",Ie.notEqual)},Ie.deepEqual=function(mr,hr,br){Et(mr,hr,!1)||Ve(mr,hr,br,"deepEqual",Ie.deepEqual)},Ie.deepStrictEqual=function(mr,hr,br){Et(mr,hr,!0)||Ve(mr,hr,br,"deepStrictEqual",Ie.deepStrictEqual)};function Et(cr,mr,hr,br){if(cr===mr)return!0;if(z(cr)&&z(mr))return V(cr,mr)===0;if(re.isDate(cr)&&re.isDate(mr))return cr.getTime()===mr.getTime();if(re.isRegExp(cr)&&re.isRegExp(mr))return cr.source===mr.source&&cr.global===mr.global&&cr.multiline===mr.multiline&&cr.lastIndex===mr.lastIndex&&cr.ignoreCase===mr.ignoreCase;if((cr===null||typeof cr!="object")&&(mr===null||typeof mr!="object"))return hr?cr===mr:cr==mr;if(pe(cr)&&pe(mr)&&de(cr)===de(mr)&&!(cr instanceof Float32Array||cr instanceof Float64Array))return V(new Uint8Array(cr.buffer),new Uint8Array(mr.buffer))===0;if(z(cr)!==z(mr))return!1;br=br||{actual:[],expected:[]};var Rr=br.actual.indexOf(cr);return Rr!==-1&&Rr===br.expected.indexOf(mr)?!0:(br.actual.push(cr),br.expected.push(mr),qe(cr,mr,hr,br))}function Ue(cr){return Object.prototype.toString.call(cr)=="[object Arguments]"}function qe(cr,mr,hr,br){if(cr==null||mr===null||mr===void 0)return!1;if(re.isPrimitive(cr)||re.isPrimitive(mr))return cr===mr;if(hr&&Object.getPrototypeOf(cr)!==Object.getPrototypeOf(mr))return!1;var Rr=Ue(cr),xr=Ue(mr);if(Rr&&!xr||!Rr&&xr)return!1;if(Rr)return cr=oe.call(cr),mr=oe.call(mr),Et(cr,mr,hr);var Er=ur(cr),vr=ur(mr),Ir,Lr;if(Er.length!==vr.length)return!1;for(Er.sort(),vr.sort(),Lr=Er.length-1;Lr>=0;Lr--)if(Er[Lr]!==vr[Lr])return!1;for(Lr=Er.length-1;Lr>=0;Lr--)if(Ir=Er[Lr],!Et(cr[Ir],mr[Ir],hr,br))return!1;return!0}Ie.notDeepEqual=function(mr,hr,br){Et(mr,hr,!1)&&Ve(mr,hr,br,"notDeepEqual",Ie.notDeepEqual)},Ie.notDeepStrictEqual=kt;function kt(cr,mr,hr){Et(cr,mr,!0)&&Ve(cr,mr,hr,"notDeepStrictEqual",kt)}Ie.strictEqual=function(mr,hr,br){mr!==hr&&Ve(mr,hr,br,"===",Ie.strictEqual)},Ie.notStrictEqual=function(mr,hr,br){mr===hr&&Ve(mr,hr,br,"!==",Ie.notStrictEqual)};function tr(cr,mr){if(!cr||!mr)return!1;if(Object.prototype.toString.call(mr)=="[object RegExp]")return mr.test(cr);try{if(cr instanceof mr)return!0}catch{}return Error.isPrototypeOf(mr)?!1:mr.call({},cr)===!0}function rr(cr){var mr;try{cr()}catch(hr){mr=hr}return mr}function ar(cr,mr,hr,br){var Rr;if(typeof mr!="function")throw new TypeError('"block" argument must be a function');typeof hr=="string"&&(br=hr,hr=null),Rr=rr(mr),br=(hr&&hr.name?" ("+hr.name+").":".")+(br?" "+br:"."),cr&&!Rr&&Ve(Rr,hr,"Missing expected exception"+br);var xr=typeof br=="string",Er=!cr&&re.isError(Rr),vr=!cr&&Rr&&!hr;if((Er&&xr&&tr(Rr,hr)||vr)&&Ve(Rr,hr,"Got unwanted exception"+br),cr&&Rr&&hr&&!tr(Rr,hr)||!cr&&Rr)throw Rr}Ie.throws=function(cr,mr,hr){ar(!0,cr,mr,hr)},Ie.doesNotThrow=function(cr,mr,hr){ar(!1,cr,mr,hr)},Ie.ifError=function(cr){if(cr)throw cr};function nr(cr,mr){cr||Ve(cr,!0,mr,"==",nr)}Ie.strict=j(nr,Ie,{equal:Ie.strictEqual,deepEqual:Ie.deepStrictEqual,notEqual:Ie.notStrictEqual,notDeepEqual:Ie.notDeepStrictEqual}),Ie.strict.strict=Ie.strict;var ur=Object.keys||function(cr){var mr=[];for(var hr in cr)ie.call(cr,hr)&&mr.push(hr);return mr}}).call(this)}).call(this,typeof y<"u"?y:typeof self<"u"?self:typeof window<"u"?window:{})},{"object.assign/polyfill":440,"util/":98}],96:[function(n,k,L){typeof Object.create=="function"?k.exports=function(j,V){j.super_=V,j.prototype=Object.create(V.prototype,{constructor:{value:j,enumerable:!1,writable:!0,configur
` )>-1&&(Fr?Vr=Vr.split( `
2024-08-22 19:23:55 +08:00
` ).map(function(Tr){return" "+Tr}).join( `
2024-08-21 13:12:53 +08:00
` ).substr(2):Vr= `
` +Vr.split( `
2024-08-22 19:23:55 +08:00
` ).map(function(Tr){return" "+Tr}).join( `
2024-08-25 11:35:35 +08:00
` ))):Vr=vr.stylize("[Circular]","special")),tr(zr)){if(Fr&&_r.match(/^ \d + $ /))return Vr;zr=JSON.stringify(""+_r),zr.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)" $ /)?(zr=zr.substr(1,zr.length-2),zr=vr.stylize(zr,"name")):(zr=zr.replace(/'/g," \\ '").replace(/ \\ "/g,'"').replace(/(^"|" $ )/g,"'"),zr=vr.stylize(zr,"string"))}return zr+": "+Vr}function Ne(vr,Ir,Lr){var gr=vr.reduce(function(_r,Fr){return Fr.indexOf( `
` )>=0,_r+Fr.replace(/ \u 001b \[ \d \d ?m/g,"").length+1},0);return gr>60?Lr[0]+(Ir===""?"":Ir+ `
2024-08-21 13:12:53 +08:00
` )+" "+vr.join( ` ,
2024-08-25 11:35:35 +08:00
` )+" "+Lr[1]:Lr[0]+Ir+" "+vr.join(", ")+" "+Lr[1]}function Fe(vr){return Array.isArray(vr)}L.isArray=Fe;function Ve(vr){return typeof vr=="boolean"}L.isBoolean=Ve;function jt(vr){return vr===null}L.isNull=jt;function Et(vr){return vr==null}L.isNullOrUndefined=Et;function Ue(vr){return typeof vr=="number"}L.isNumber=Ue;function qe(vr){return typeof vr=="string"}L.isString=qe;function kt(vr){return typeof vr=="symbol"}L.isSymbol=kt;function tr(vr){return vr===void 0}L.isUndefined=tr;function rr(vr){return ar(vr)&&hr(vr)==="[object RegExp]"}L.isRegExp=rr;function ar(vr){return typeof vr=="object"&&vr!==null}L.isObject=ar;function nr(vr){return ar(vr)&&hr(vr)==="[object Date]"}L.isDate=nr;function ur(vr){return ar(vr)&&(hr(vr)==="[object Error]"||vr instanceof Error)}L.isError=ur;function cr(vr){return typeof vr=="function"}L.isFunction=cr;function mr(vr){return vr===null||typeof vr=="boolean"||typeof vr=="number"||typeof vr=="string"||typeof vr=="symbol"||typeof vr>"u"}L.isPrimitive=mr,L.isBuffer=n("./support/isBuffer");function hr(vr){return Object.prototype.toString.call(vr)}function br(vr){return vr<10?"0"+vr.toString(10):vr.toString(10)}var Rr=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function xr(){var vr=new Date,Ir=[br(vr.getHours()),br(vr.getMinutes()),br(vr.getSeconds())].join(":");return[vr.getDate(),Rr[vr.getMonth()],Ir].join(" ")}L.log=function(){console.log("%s - %s",xr(),L.format.apply(L,arguments))},L.inherits=n("inherits"),L._extend=function(vr,Ir){if(!Ir||!ar(Ir))return vr;for(var Lr=Object.keys(Ir),gr=Lr.length;gr--;)vr[Lr[gr]]=Ir[Lr[gr]];return vr};function Er(vr,Ir){return Object.prototype.hasOwnProperty.call(vr,Ir)}}).call(this)}).call(this,n("_process"),typeof y<"u"?y:typeof self<"u"?self:typeof window<"u"?window:{})},{"./support/isBuffer":97,_process:540,inherits:96}],99:[function(n,k,L){(function( $ ){(function(){var j=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],V=typeof globalThis>"u"? $ :globalThis;k.exports=function(){for(var re=[],ie=0;ie<j.length;ie++)typeof V[j[ie]]=="function"&&(re[re.length]=j[ie]);return re}}).call(this)}).call(this,typeof y<"u"?y:typeof self<"u"?self:typeof window<"u"?window:{})},{}],100:[function(n,k,L){L.byteLength=ue,L.toByteArray=pe,L.fromByteArray=Ce;for(var $ =[],j=[],V=typeof Uint8Array<"u"?Uint8Array:Array,z="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",re=0,ie=z.length;re<ie;++re) $ [re]=z[re],j[z.charCodeAt(re)]=re;j[45]=62,j[95]=63;function oe(he){var Ne=he.length;if(Ne%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var Fe=he.indexOf("=");Fe===-1&&(Fe=Ne);var Ve=Fe===Ne?0:4-Fe%4;return[Fe,Ve]}function ue(he){var Ne=oe(he),Fe=Ne[0],Ve=Ne[1];return(Fe+Ve)*3/4-Ve}function de(he,Ne,Fe){return(Ne+Fe)*3/4-Fe}function pe(he){var Ne,Fe=oe(he),Ve=Fe[0],jt=Fe[1],Et=new V(de(he,Ve,jt)),Ue=0,qe=jt>0?Ve-4:Ve,kt;for(kt=0;kt<qe;kt+=4)Ne=j[he.charCodeAt(kt)]<<18|j[he.charCodeAt(kt+1)]<<12|j[he.charCodeAt(kt+2)]<<6|j[he.charCodeAt(kt+3)],Et[Ue++]=Ne>>16&255,Et[Ue++]=Ne>>8&255,Et[Ue++]=Ne&255;return jt===2&&(Ne=j[he.charCodeAt(kt)]<<2|j[he.charCodeAt(kt+1)]>>4,Et[Ue++]=Ne&255),jt===1&&(Ne=j[he.charCodeAt(kt)]<<10|j[he.charCodeAt(kt+1)]<<4|j[he.charCodeAt(kt+2)]>>2,Et[Ue++]=Ne>>8&255,Et[Ue++]=Ne&255),Et}function Ie(he){return $ [he>>18&63]+ $ [he>>12&63]+ $ [he>>6&63]+ $ [he&63]}function _e(he,Ne,Fe){for(var Ve,jt=[],Et=Ne;Et<Fe;Et+=3)Ve=(he[Et]<<16&16711680)+(he[Et+1]<<8&65280)+(he[Et+2]&255),jt.push(Ie(Ve));return jt.join("")}function Ce(he){for(var Ne,Fe=he.length,Ve=Fe%3,jt=[],Et=16383,Ue=0,qe=Fe-Ve;Ue<qe;Ue+=Et)jt.push(_e(he,Ue,Ue+Et>qe?qe:Ue+Et));return Ve===1?(Ne=he[Fe-1],jt.push( $ [Ne>>2]+ $ [Ne<<4&63]+"==")):Ve===2&&(Ne=(he[Fe-2]<<8)+he[Fe-1],jt.push( $ [Ne>>10]+ $ [Ne>>4&63]+ $ [Ne<<2&63]+"=")),jt.join("")}},{}],101:[function(n,k,L){/*!
2024-08-21 13:12:53 +08:00
* Bowser - a browser detector
* https : //github.com/ded/bowser
* MIT License | ( c ) Dustin Diaz 2015
2024-08-25 11:35:35 +08:00
* /(function($,j,V){typeof k<"u"&&k.exports?k.exports=V():$[j]=V()})(this,"bowser",function(){var $=!0;function j(de){function pe(vr){var Ir=de.match(vr);return Ir&&Ir.length>1&&Ir[1]||""}function Ie(vr){var Ir=de.match(vr);return Ir&&Ir.length>1&&Ir[2]||""}var _e=pe(/ ( ipod | iphone | ipad ) / i ) . toLowerCase ( ) , Ce = /like android/i . test ( de ) , he = ! Ce && /android/i . test ( de ) , Ne = /nexus\s*[0-6]\s*/i . test ( de ) , Fe = ! Ne && /nexus\s*[0-9]+/i . test ( de ) , Ve = /CrOS/ . test ( de ) , jt = /silk/i . test ( de ) , Et = /sailfish/i . test ( de ) , Ue = /tizen/i . test ( de ) , qe = /(web|hpw)(o|0)s/i . test ( de ) , kt = /windows phone/i . test ( de ) , tr = ! kt && /windows/i . test ( de ) , rr = ! _e && ! jt && /macintosh/i . test ( de ) , ar = ! he && ! Et && ! Ue && ! qe && /linux/i . test ( de ) , nr = Ie ( /edg([ea]|ios)\/(\d+(\.\d+)?)/i ) , ur = pe ( /version\/(\d+(\.\d+)?)/i ) , cr = /tablet/i . test ( de ) && ! /tablet pc/i . test ( de ) , mr = ! cr && /[^-]mobi/i . test ( de ) , hr = /xbox/i . test ( de ) , br ; /opera/i . test ( de ) ? br = { name : "Opera" , opera : $ , version : ur || pe ( /(?:opera|opr|opios)[\s\/](\d+(\.\d+)?)/i ) } : /opr\/|opios/i . test ( de ) ? br = { name : "Opera" , opera : $ , version : pe ( /(?:opr|opios)[\s\/](\d+(\.\d+)?)/i ) || ur } : /SamsungBrowser/i . test ( de ) ? br = { name : "Samsung Internet for Android" , samsungBrowser : $ , version : ur || pe ( /(?:SamsungBrowser)[\s\/](\d+(\.\d+)?)/i ) } : /Whale/i . test ( de ) ? br = { name : "NAVER Whale browser" , whale : $ , version : pe ( /(?:whale)[\s\/](\d+(?:\.\d+)+)/i ) } : /MZBrowser/i . test ( de ) ? br = { name : "MZ Browser" , mzbrowser : $ , version : pe ( /(?:MZBrowser)[\s\/](\d+(?:\.\d+)+)/i ) } : /coast/i . test ( de ) ? br = { name : "Opera Coast" , coast : $ , version : ur || pe ( /(?:coast)[\s\/](\d+(\.\d+)?)/i ) } : /focus/i . test ( de ) ? br = { name : "Focus" , focus : $ , version : pe ( /(?:focus)[\s\/](\d+(?:\.\d+)+)/i ) } : /yabrowser/i . test ( de ) ? br = { name : "Yandex Browser" , yandexbrowser : $ , version : ur || pe ( /(?:yabrowser)[\s\/](\d+(\.\d+)?)/i ) } : /ucbrowser/i . test ( de ) ? br = { name : "UC Browser" , ucbrowser : $ , version : pe ( /(?:ucbrowser)[\s\/](\d+(?:\.\d+)+)/i ) } : /mxios/i . test ( de ) ? br = { name : "Maxthon" , maxthon : $ , version : pe ( /(?:mxios)[\s\/](\d+(?:\.\d+)+)/i ) } : /epiphany/i . test ( de ) ? br = { name : "Epiphany" , epiphany : $ , version : pe ( /(?:epiphany)[\s\/](\d+(?:\.\d+)+)/i ) } : /puffin/i . test ( de ) ? br = { name : "Puffin" , puffin : $ , version : pe ( /(?:puffin)[\s\/](\d+(?:\.\d+)?)/i ) } : /sleipnir/i . test ( de ) ? br = { name : "Sleipnir" , sleipnir : $ , version : pe ( /(?:sleipnir)[\s\/](\d+(?:\.\d+)+)/i ) } : /k-meleon/i . test ( de ) ? br = { name : "K-Meleon" , kMeleon : $ , version : pe ( /(?:k-meleon)[\s\/](\d+(?:\.\d+)+)/i ) } : kt ? ( br = { name : "Windows Phone" , osname : "Windows Phone" , windowsphone : $ } , nr ? ( br . msedge = $ , br . version = nr ) : ( br . msie = $ , br . version = pe ( /iemobile\/(\d+(\.\d+)?)/i ) ) ) : /msie|trident/i . test ( de ) ? br = { name : "Internet Explorer" , msie : $ , version : pe ( /(?:msie |rv:)(\d+(\.\d+)?)/i ) } : Ve ? br = { name : "Chrome" , osname : "Chrome OS" , chromeos : $ , chromeBook : $ , chrome : $ , version : pe ( /(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i ) } : /edg([ea]|ios)/i . test ( de ) ? br = { name : "Microsoft Edge" , msedge : $ , version : nr } : /vivaldi/i . test ( de ) ? br = { name : "Vivaldi" , vivaldi : $ , version : pe ( /vivaldi\/(\d+(\.\d+)?)/i ) || ur } : Et ? br = { name : "Sailfish" , osname : "Sailfish OS" , sailfish : $ , version : pe ( /sailfish\s?browser\/(\d+(\.\d+)?)/i ) } : /seamonkey\//i . test ( de ) ? br = { name : "SeaMonkey" , seamonkey : $ , version : pe ( /seamonkey\/(\d+(\.\d+)?)/i ) } : /firefox|iceweasel|fxios/i . test ( de ) ? ( br = { name : "Firefox" , firefox : $ , version : pe ( /(?:firefox|iceweasel|fxios)[ \/](\d+(\.\d+)?)/i ) } , /\((mobile|tablet);[^\)]*rv:[\d\.]+\)/i . test ( de ) && ( br . firefoxos = $ , br . osname = "Firefox OS" ) ) : jt ? br = { name : "Amazon Silk" , silk : $ , version : pe ( /silk\/(\d+(\.\d+)?)/i ) } : /phantom/i . test ( de ) ? br = { name : "PhantomJS" , phantom : $ , version : pe ( /phantomjs\/(\d+(\.\d+)?)/i ) } : /slimerjs/i . test ( de ) ? br = { name : "SlimerJS" , slimer : $ , version : pe ( /slimerjs\/(\d+(\.\d+)?)/i ) } : /blackberry|\bbb\d+/i . test ( de ) || /rim\stablet/i . test ( de ) ? br = { name : "BlackBerry" , osname : "BlackBerry OS" , blackberry : $ , version : ur || pe ( /blackberry[\d]+\/(\d+(\.\d+)?)/i ) } : qe ? ( br = { name : "WebOS" , osname : "WebOS" , webos : $ , version : ur || pe ( /w(?:eb)?osbrowser\/(\d+(\.\d+)?)/i ) } , /touchpad\//i . test ( de ) && ( br . touchpad = $ ) ) : /bada/i . test ( de ) ? br = { name : "Bada" , osname : "Bada" , bada : $ , version : pe ( /dolfin\/(\d+(\.\d+)?)/i ) } : Ue ? br = { name : "Tizen" , osname : "Tizen" , tizen : $ , version : pe ( /(?:tizen\s?)?browser\/(\d+(\.\d+)?)/i ) || ur } : /qupzilla/i . test ( de ) ? br = { name : "QupZilla" , qupzilla : $ , version : pe ( / ( ? : q u p z
` )&&(gr="(?: "+gr+")",Fr=" "+Fr,_r++),mr=new RegExp("^(?:"+gr+")",Lr)),Ue&&(mr=new RegExp("^"+gr+" $ (?! \\ s)",Lr)),jt&&(hr=rr.lastIndex),br= $ (_e,Ir?mr:rr,Fr),Ir?br?(br.input=Ve(br.input,_r),br[0]=Ve(br[0],_r),br.index=rr.lastIndex,rr.lastIndex+=br[0].length):rr.lastIndex=0:jt&&br&&(rr.lastIndex=rr.global?br.index+br[0].length:hr),Ue&&br&&br.length>1&& $ (Ie,br[0],mr,function(){for(Rr=1;Rr<arguments.length-2;Rr++)arguments[Rr]===void 0&&(br[Rr]=void 0)}),br&&vr)for(br.groups=xr=oe(null),Rr=0;Rr<vr.length;Rr++)Er=vr[Rr],xr[Er[0]]=br[Er[1]];return br}),k.exports=Ce},{"../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(n,k,L){var $ =n("../internals/an-object");k.exports=function(){var j= $ (this),V="";return j.hasIndices&&(V+="d"),j.global&&(V+="g"),j.ignoreCase&&(V+="i"),j.multiline&&(V+="m"),j.dotAll&&(V+="s"),j.unicode&&(V+="u"),j.unicodeSets&&(V+="v"),j.sticky&&(V+="y"),V}},{"../internals/an-object":114}],258:[function(n,k,L){var $ =n("../internals/function-call"),j=n("../internals/has-own-property"),V=n("../internals/object-is-prototype-of"),z=n("../internals/regexp-flags"),re=RegExp.prototype;k.exports=function(ie){var oe=ie.flags;return oe===void 0&&!("flags"in re)&&!j(ie,"flags")&&V(re,ie)? $ (z,ie):oe}},{"../internals/function-call":177,"../internals/has-own-property":189,"../internals/object-is-prototype-of":238,"../internals/regexp-flags":257}],259:[function(n,k,L){var $ =n("../internals/fails"),j=n("../internals/global"),V=j.RegExp,z= $ (function(){var oe=V("a","y");return oe.lastIndex=2,oe.exec("abcd")!==null}),re=z|| $ (function(){return!V("a","y").sticky}),ie=z|| $ (function(){var oe=V("^r","gy");return oe.lastIndex=2,oe.exec("str")!==null});k.exports={BROKEN_CARET:ie,MISSED_STICKY:re,UNSUPPORTED_Y:z}},{"../internals/fails":171,"../internals/global":188}],260:[function(n,k,L){var $ =n("../internals/fails"),j=n("../internals/global"),V=j.RegExp;k.exports= $ (function(){var z=V(".","s");return!(z.dotAll&&z.test( `
` )&&z.flags==="s")})},{"../internals/fails":171,"../internals/global":188}],261:[function(n,k,L){var $ =n("../internals/fails"),j=n("../internals/global"),V=j.RegExp;k.exports= $ (function(){var z=V("(?<a>b)","g");return z.exec("b").groups.a!=="b"||"b".replace(z," $ <a>c")!=="bc"})},{"../internals/fails":171,"../internals/global":188}],262:[function(n,k,L){var $ =n("../internals/is-null-or-undefined"),j=TypeError;k.exports=function(V){if( $ (V))throw new j("Can't call method on "+V);return V}},{"../internals/is-null-or-undefined":207}],263:[function(n,k,L){var $ =n("../internals/global"),j=n("../internals/descriptors"),V=Object.getOwnPropertyDescriptor;k.exports=function(z){if(!j)return $ [z];var re=V( $ ,z);return re&&re.value}},{"../internals/descriptors":153,"../internals/global":188}],264:[function(n,k,L){k.exports=Object.is||function(j,V){return j===V?j!==0||1/j===1/V:j!==j&&V!==V}},{}],265:[function(n,k,L){var $ =n("../internals/get-built-in"),j=n("../internals/define-built-in-accessor"),V=n("../internals/well-known-symbol"),z=n("../internals/descriptors"),re=V("species");k.exports=function(ie){var oe= $ (ie);z&&oe&&!oe[re]&&j(oe,re,{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(n,k,L){var $ =n("../internals/object-define-property").f,j=n("../internals/has-own-property"),V=n("../internals/well-known-symbol"),z=V("toStringTag");k.exports=function(re,ie,oe){re&&!oe&&(re=re.prototype),re&&!j(re,z)&& $ (re,z,{configurable:!0,value:ie})}},{"../internals/has-own-property":189,"../internals/object-define-property":231,"../internals/well-known-symbol":306}],267:[function(n,k,L){var $ =n("../internals/shared"),j=n("../internals/uid"),V= $ ("keys");k.exports=function(z){return V[z]||(V[z]=j(z))}},{"../internals/shared":269,"../internals/uid":299}],268:[function(n,k,L){var $ =n("../internals/global"),j=n("../internals/define-global-property"),V="__core-js_shared__",z= $ [V]||j(V,{});k.exports=z},{"../internals/define-global-property":151,"../internals/global":188}],269:[function(n,k,L){var $ =n("../internals/is-pure"),j=n("../internals/shared-store");(k.exports=function(V,z){return j[V]||(j[V]=z!==void 0?z:{})})("versions",[]).push({version:"3.35.0",mode: $ ?"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(n,k,L){var $ =n("../internals/an-object"),j=n("../internals/a-constructor"),V=n("../internals/is-null-or-undefined"),z=n("../internals/well-known-symbol"),re=z("species");k.exports=function(ie,oe){var ue= $ (ie).constructor,de;return ue===void 0||V(de= $ (ue)[re])?oe:j(de)}},{"../internals/a-constructor":109,"../internals/an-object":114,"../internals/is-null-or-undefined":207,"../internals/well-known-symbol":306}],271:[function(n,k,L){var $ =n("../internals/function-uncurry-this"),j=n("../internals/to-integer-or-infinity"),V=n("../internals/to-string"),z=n("../internals/require-object-coercible"),re= $ ("".charAt),ie= $ ("".charCodeAt),oe= $ ("".slice),ue=function(de){return function(pe,Ie){var _e=V(z(pe)),Ce=j(Ie),he=_e.length,Ne,Fe;return Ce<0||Ce>=he?de?"":void 0:(Ne=ie(_e,Ce),Ne<55296||Ne>56319||Ce+1===he||(Fe=ie(_e,Ce+1))<56320||Fe>57343?de?re(_e,Ce):Ne:de?oe(_e,Ce,Ce+2):(Ne-55296<<10)+(Fe-56320)+65536)}};k.exports={codeAt:ue(!1),charAt:ue(!0)}},{"../internals/function-uncurry-this":181,"../internals/require-object-coercible":262,"../internals/to-integer-or-infinity":283,"../internals/to-string":291}],272:[function(n,k,L){var $ =n("../internals/function-name").PROPER,j=n("../internals/fails"),V=n("../internals/whitespaces"),z="
";k.exports=function(re){return j(function(){return!!V[re]()||z[re]()!==z|| $ &&V[re].name!==re})}},{"../internals/fails":171,"../internals/function-name":178,"../internals/whitespaces":307}],273:[function(n,k,L){var $ =n("../internals/function-uncurry-this"),j
\ v \ f \ r \u2028\u2029\uFEFF ` },{}],308:[function(n,k,L){var $ =n("../internals/export"),j=n("../internals/global"),V=n("../internals/array-buffer"),z=n("../internals/set-species"),re="ArrayBuffer",ie=V[re],oe=j[re]; $ ({global:!0,constructor:!0,forced:oe!==ie},{ArrayBuffer:ie}),z(re)},{"../internals/array-buffer":118,"../internals/export":170,"../internals/global":188,"../internals/set-species":265}],309:[function(n,k,L){var $ =n("../internals/export"),j=n("../internals/function-uncurry-this-clause"),V=n("../internals/fails"),z=n("../internals/array-buffer"),re=n("../internals/an-object"),ie=n("../internals/to-absolute-index"),oe=n("../internals/to-length"),ue=n("../internals/species-constructor"),de=z.ArrayBuffer,pe=z.DataView,Ie=pe.prototype,_e=j(de.prototype.slice),Ce=j(Ie.getUint8),he=j(Ie.setUint8),Ne=V(function(){return!new de(2).slice(1,void 0).byteLength}); $ ({target:"ArrayBuffer",proto:!0,unsafe:!0,forced:Ne},{slice:function(Ve,jt){if(_e&&jt===void 0)return _e(re(this),Ve);for(var Et=re(this).byteLength,Ue=ie(Ve,Et),qe=ie(jt===void 0?Et:jt,Et),kt=new(ue(this,de))(oe(qe-Ue)),tr=new pe(this),rr=new pe(kt),ar=0;Ue<qe;)he(rr,ar++,Ce(tr,Ue++));return kt}})},{"../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(n,k,L){var $ =n("../internals/export"),j=n("../internals/fails"),V=n("../internals/is-array"),z=n("../internals/is-object"),re=n("../internals/to-object"),ie=n("../internals/length-of-array-like"),oe=n("../internals/does-not-exceed-safe-integer"),ue=n("../internals/create-property"),de=n("../internals/array-species-create"),pe=n("../internals/array-method-has-species-support"),Ie=n("../internals/well-known-symbol"),_e=n("../internals/engine-v8-version"),Ce=Ie("isConcatSpreadable"),he=_e>=51||!j(function(){var Ve=[];return Ve[Ce]=!1,Ve.concat()[0]!==Ve}),Ne=function(Ve){if(!z(Ve))return!1;var jt=Ve[Ce];return jt!==void 0?!!jt:V(Ve)},Fe=!he||!pe("concat"); $ ({target:"Array",proto:!0,arity:1,forced:Fe},{concat:function(jt){var Et=re(this),Ue=de(Et,0),qe=0,kt,tr,rr,ar,nr;for(kt=-1,rr=arguments.length;kt<rr;kt++)if(nr=kt===-1?Et:arguments[kt],Ne(nr))for(ar=ie(nr),oe(qe+ar),tr=0;tr<ar;tr++,qe++)tr in nr&&ue(Ue,qe,nr[tr]);else oe(qe+1),ue(Ue,qe++,nr);return Ue.length=qe,Ue}})},{"../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(n,k,L){var $ =n("../internals/export"),j=n("../internals/array-fill"),V=n("../internals/add-to-unscopables"); $ ({target:"Array",proto:!0},{fill:j}),V("fill")},{"../internals/add-to-unscopables":111,"../internals/array-fill":120,"../internals/export":170}],312:[function(n,k,L){var $ =n("../internals/export"),j=n("../internals/array-iteration").filter,V=n("../internals/array-method-has-species-support"),z=V("filter"); $ ({target:"Array",proto:!0,forced:!z},{filter:function(ie){return j(this,ie,arguments.length>1?arguments[1]:void 0)}})},{"../internals/array-iteration":125,"../internals/array-method-has-species-support":127,"../internals/export":170}],313:[function(n,k,L){var $ =n("../internals/export"),j=n("../internals/array-iteration").find,V=n("../internals/add-to-unscopables"),z="find",re=!0;z in[]&&Array(1)[z](function(){re=!1}), $ ({target:"Array",proto:!0,forced:re},{find:function(oe){return j(this,oe,arguments.length>1?arguments[1]:void 0)}}),V(z)},{"../internals/add-to-unscopables":111,"../internals/array-iteration":125,"../internals/export":170}],314:[function(n,k,L){var $ =n("../internals/export"),j=n("../internals/array-from"),V=n("../internals/chec
2024-08-21 13:12:53 +08:00
* Determine if an object is a Buffer
*
* @ author Feross Aboukhadijeh < https : //feross.org>
* @ license MIT
2024-08-25 11:35:35 +08:00
* /k.exports=function(V){return V!=null&&($(V)||j(V)||!!V._isBuffer)};function $(V){return!!V.constructor&&typeof V.constructor.isBuffer=="function"&&V.constructor.isBuffer(V)}function j(V){return typeof V.readFloatLE=="function"&&typeof V.slice=="function"&&$(V.slice(0,0))}},{}],412:[function(n,k,L){var $=Function.prototype.toString,j=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,V,z;if(typeof j=="function"&&typeof Object.defineProperty=="function")try{V=Object.defineProperty({},"length",{get:function(){throw z}}),z={},j(function(){throw 42},null,V)}catch(Et){Et!==z&&(j=null)}else j=null;var re=/^\s*class\b/,ie=function(Ue){try{var qe=$.call(Ue);return re.test(qe)}catch{return!1}},oe=function(Ue){try{return ie(Ue)?!1:($.call(Ue),!0)}catch{return!1}},ue=Object.prototype.toString,de="[object Object]",pe="[object Function]",Ie="[object GeneratorFunction]",_e="[object HTMLAllCollection]",Ce="[object HTML document.all class]",he="[object HTMLCollection]",Ne=typeof Symbol=="function"&&!!Symbol.toStringTag,Fe=!(0 in[,]),Ve=function(){return!1};if(typeof document=="object"){var jt=document.all;ue.call(jt)===ue.call(document.all)&&(Ve=function(Ue){if((Fe||!Ue)&&(typeof Ue>"u"||typeof Ue=="object"))try{var qe=ue.call(Ue);return(qe===_e||qe===Ce||qe===he||qe===de)&&Ue("")==null}catch{}return!1})}k.exports=j?function(Ue){if(Ve(Ue))return!0;if(!Ue||typeof Ue!="function"&&typeof Ue!="object")return!1;try{j(Ue,null,V)}catch(qe){if(qe!==z)return!1}return!ie(Ue)&&oe(Ue)}:function(Ue){if(Ve(Ue))return!0;if(!Ue||typeof Ue!="function"&&typeof Ue!="object")return!1;if(Ne)return oe(Ue);if(ie(Ue))return!1;var qe=ue.call(Ue);return qe!==pe&&qe!==Ie&&!/ ^ \ [ object HTML / . test ( qe ) ? ! 1 : oe ( Ue ) } } , { } ] , 413 : [ function ( n , k , L ) { var $ = Object . prototype . toString , j = Function . prototype . toString , V = /^\s*(?:function)?\*/ , z = n ( "has-tostringtag/shams" ) ( ) , re = Object . getPrototypeOf , ie = function ( ) { if ( ! z ) return ! 1 ; try { return Function ( "return function*() {}" ) ( ) } catch { } } , oe ; k . exports = function ( de ) { if ( typeof de != "function" ) return ! 1 ; if ( V . test ( j . call ( de ) ) ) return ! 0 ; if ( ! z ) { var pe = $ . call ( de ) ; return pe === "[object GeneratorFunction]" } if ( ! re ) return ! 1 ; if ( typeof oe > "u" ) { var Ie = ie ( ) ; oe = Ie ? re ( Ie ) : ! 1 } return re ( de ) === oe } } , { "has-tostringtag/shams" : 398 } ] , 414 : [ function ( n , k , L ) { var $ = n ( "which-typed-array" ) ; k . exports = function ( V ) { return ! ! $ ( V ) } } , { "which-typed-array" : 492 } ] , 415 : [ function ( n , k , L ) { ( function ( $ ) { ( function ( ) { ( function ( j , V ) { typeof L == "object" && typeof k < "u" ? k . exports = V ( j ) : V ( j ) } ) ( typeof self < "u" ? self : typeof window < "u" ? window : typeof $ < "u" ? $ : this , function ( j ) { j = j || { } ; var V = j . Base64 , z = "2.6.4" , re = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/" , ie = function ( hr ) { for ( var br = { } , Rr = 0 , xr = hr . length ; Rr < xr ; Rr ++ ) br [ hr . charAt ( Rr ) ] = Rr ; return br } ( re ) , oe = String . fromCharCode , ue = function ( hr ) { if ( hr . length < 2 ) { var br = hr . charCodeAt ( 0 ) ; return br < 128 ? hr : br < 2048 ? oe ( 192 | br >>> 6 ) + oe ( 128 | br & 63 ) : oe ( 224 | br >>> 12 & 15 ) + oe ( 128 | br >>> 6 & 63 ) + oe ( 128 | br & 63 ) } else { var br = 65536 + ( hr . charCodeAt ( 0 ) - 55296 ) * 1024 + ( hr . charCodeAt ( 1 ) - 56320 ) ; return oe ( 240 | br >>> 18 & 7 ) + oe ( 128 | br >>> 12 & 63 ) + oe ( 128 | br >>> 6 & 63 ) + oe ( 128 | br & 63 ) } } , de = /[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g , pe = function ( hr ) { return hr . replace ( de , ue ) } , Ie = function ( hr ) { var br = [ 0 , 2 , 1 ] [ hr . length % 3 ] , Rr = hr . charCodeAt ( 0 ) << 16 | ( hr . length > 1 ? hr . charCodeAt ( 1 ) : 0 ) << 8 | ( hr . length > 2 ? hr . charCodeAt ( 2 ) : 0 ) , xr = [ re . charAt ( Rr >>> 18 ) , re . charAt ( Rr >>> 12 & 63 ) , br >= 2 ? "=" : re . charAt ( Rr >>> 6 & 63 ) , br >= 1 ? "=" : re . charAt ( Rr & 63 ) ] ; return xr . join ( "" ) } , _e = j . btoa && typeof j . btoa == "function" ? function ( hr ) { return j . btoa ( hr ) } : function ( hr ) { if ( hr . match ( /[^\x00-\xFF]/ ) ) throw new RangeError ( "The string contains invalid characters." ) ; return hr . replace ( /[\s\S]{1,3}/g , Ie ) } , Ce = function ( hr ) { return _e ( pe ( String ( hr ) ) ) } , he = function ( hr ) { return hr . replace ( /[+\/]/g , function ( br ) { return br == "+" ? "-" : "_" } ) . replace ( /=/g , "" ) } , Ne = function ( hr , br ) { return br ? he ( Ce ( hr ) ) : Ce ( hr ) } , Fe = function ( hr ) { return Ne ( hr , ! 0 ) } , Ve ; j . Uint8Array && ( Ve = function ( hr , br ) { for ( var Rr = "" , xr = 0 , Er = hr . length ; xr < Er ; xr += 3 ) { var vr = hr [ xr ] , Ir = hr [ xr + 1 ] , Lr = hr [ xr + 2 ] , gr = vr << 16 | Ir << 8 | Lr ; Rr += re . charAt ( gr >>> 18 ) + re . charAt ( gr >>> 12 & 63 ) + ( typeof Ir < "u" ? re . charAt ( gr >>> 6 & 63 ) : "=" ) + ( typeof Lr < "
` )>=0)return!1;return!0}function qa(na,Ma){var Ds;if(na.indent===" ")Ds=" ";else if(typeof na.indent=="number"&&na.indent>0)Ds=nr.call(Array(na.indent+1)," ");else return null;return{base:Ds,prev:nr.call(Array(Ma+1),Ds)}}function To(na,Ma){if(na.length===0)return"";var Ds= `
` +Ma.prev+Ma.base;return Ds+nr.call(na,","+Ds)+ `
` +Ma.prev}function Hi(na,Ma){var Ds=Vr(na),ps=[];if(Ds){ps.length=na.length;for(var yl=0;yl<na.length;yl++)ps[yl]=Kr(na,yl)?Ma(na[yl],na):""}var $ l=typeof hr=="function"?hr(na):[],Ou;if(Rr){Ou={};for(var As=0;As< $ l.length;As++)Ou[" $ "+ $ l[As]]= $ l[As]}for(var Uu in na)Kr(na,Uu)&&(Ds&&String(Number(Uu))===Uu&&Uu<na.length||Rr&&Ou[" $ "+Uu]instanceof Symbol||(rr.call(/[^ \w $ ]/,Uu)?ps.push(Ma(Uu,na)+": "+Ma(na[Uu],na)):ps.push(Uu+": "+Ma(na[Uu],na))));if(typeof hr=="function")for(var ju=0;ju< $ l.length;ju++)Er.call(na, $ l[ju])&&ps.push("["+Ma( $ l[ju])+"]: "+Ma(na[ $ l[ju]],na));return ps}}).call(this)}).call(this,typeof y<"u"?y:typeof self<"u"?self:typeof window<"u"?window:{})},{"./util.inspect":102}],436:[function(n,k,L){var $ ;if(!Object.keys){var j=Object.prototype.hasOwnProperty,V=Object.prototype.toString,z=n("./isArguments"),re=Object.prototype.propertyIsEnumerable,ie=!re.call({toString:null},"toString"),oe=re.call(function(){},"prototype"),ue=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],de=function(Ce){var he=Ce.constructor;return he&&he.prototype===Ce},pe={ $ 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},Ie=function(){if(typeof window>"u")return!1;for(var Ce in window)try{if(!pe[" $ "+Ce]&&j.call(window,Ce)&&window[Ce]!==null&&typeof window[Ce]=="object")try{de(window[Ce])}catch{return!0}}catch{return!0}return!1}(),_e=function(Ce){if(typeof window>"u"||!Ie)return de(Ce);try{return de(Ce)}catch{return!1}}; $ =function(he){var Ne=he!==null&&typeof he=="object",Fe=V.call(he)==="[object Function]",Ve=z(he),jt=Ne&&V.call(he)==="[object String]",Et=[];if(!Ne&&!Fe&&!Ve)throw new TypeError("Object.keys called on a non-object");var Ue=oe&&Fe;if(jt&&he.length>0&&!j.call(he,0))for(var qe=0;qe<he.length;++qe)Et.push(String(qe));if(Ve&&he.length>0)for(var kt=0;kt<he.length;++kt)Et.push(String(kt));else for(var tr in he)!(Ue&&tr==="prototype")&&j.call(he,tr)&&Et.push(String(tr));if(ie)for(var rr=_e(he),ar=0;ar<ue.length;++ar)!(rr&&ue[ar]==="constructor")&&j.call(he,ue[ar])&&Et.push(ue[ar]);return Et}}k.exports= $ },{"./isArguments":438}],437:[function(n,k,L){var $ =Array.prototype.slice,j=n("./isArguments"),V=Object.keys,z=V?function(oe){return V(oe)}:n("./implementation"),re=Object.keys;z.shim=function(){if(Object.keys){var oe=function(){var ue=Object.keys(arguments);return ue&&ue.length===arguments.length}(1,2);oe||(Object.keys=function(de){return j(de)?re( $ .call(de)):re(de)})}else Object.keys=z;return Object.keys||z},k.exports=z},{"./implementation":436,"./isArguments":438}],438:[function(n,k,L){var $ =Object.prototype.toString;k.exports=function(V){var z= $ .call(V),re=z==="[object Arguments]";return re||(re=z!=="[object Array]"&&V!==null&&typeof V=="object"&&typeof V.length=="number"&&V.length>=0&& $ .call(V.callee)==="[object Function]"),re}},{}],439:[function(n,k,L){var $ =n("object-keys"),j=n("has-symbols/shams")(),V=n("call-bind/callBound"),z=Object,re=V("Array.prototype.push"),ie=V("Object.prototype.propertyIsEnumerable"),oe=j?Object.getOwnPropertySymbols:null;k.exports=function(de,pe){if(de==null)throw new TypeError("target must be an object");var Ie=z(de);if(arguments.length===1)return Ie;for(var _e=1;_e<arguments.length;++_e){var Ce=z(arguments[_e]),he= $ (Ce),Ne=j&&(Object.getOwnPropertySymbols||oe);if(Ne)for(var Fe=Ne(Ce),Ve=0;Ve<Fe.length;++Ve){var jt=Fe[Ve];ie(Ce,jt)&&re(he,jt)}for(var Et=0;Et<he.length;++Et){var Ue=he[Et];if(ie(Ce,Ue)){var qe=Ce[Ue];Ie[Ue]=qe}}}return Ie}},{"call-bind/callBound":105,"has-symbols/shams":397,"object-keys":437}],440:[function(n,k,L){var $ =n("./implementation"),j=function(){if(!Object.assign)return!1;for(var z="abcdefghijklmnopqrst",re=z.split(""),ie={},oe=0;oe<re.length;++oe)ie[re[oe]]=re[oe];var ue=Object.assign({},ie),de="";for(var pe in ue
` ||Tr===" \r "||Tr===" "}function kt(Tr){return Tr==='"'||Tr==="'"}function tr(Tr){return Tr===">"||qe(Tr)}function rr(Tr,Cr){return Tr.test(Cr)}function ar(Tr,Cr){return!rr(Tr,Cr)}var nr=0;j.STATE={BEGIN:nr++,BEGIN_WHITESPACE:nr++,TEXT:nr++,TEXT_ENTITY:nr++,OPEN_WAKA:nr++,SGML_DECL:nr++,SGML_DECL_QUOTED:nr++,DOCTYPE:nr++,DOCTYPE_QUOTED:nr++,DOCTYPE_DTD:nr++,DOCTYPE_DTD_QUOTED:nr++,COMMENT_STARTING:nr++,COMMENT:nr++,COMMENT_ENDING:nr++,COMMENT_ENDED:nr++,CDATA:nr++,CDATA_ENDING:nr++,CDATA_ENDING_2:nr++,PROC_INST:nr++,PROC_INST_BODY:nr++,PROC_INST_ENDING:nr++,OPEN_TAG:nr++,OPEN_TAG_SLASH:nr++,ATTRIB:nr++,ATTRIB_NAME:nr++,ATTRIB_NAME_SAW_WHITE:nr++,ATTRIB_VALUE:nr++,ATTRIB_VALUE_QUOTED:nr++,ATTRIB_VALUE_CLOSED:nr++,ATTRIB_VALUE_UNQUOTED:nr++,ATTRIB_VALUE_ENTITY_Q:nr++,ATTRIB_VALUE_ENTITY_U:nr++,CLOSE_TAG:nr++,CLOSE_TAG_SAW_WHITE:nr++,SCRIPT:nr++,SCRIPT_ENDING:nr++},j.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},j.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(j.ENTITIES).forEach(function(Tr){var Cr=j.ENTITIES[Tr],Mr=typeof Cr=="number"?String.fromCharCode(Cr):Cr;j.ENTITIES[Tr]=Mr});for(var ur in j.STATE)j.STATE[j.STATE[ur]]=ur;nr=j.STATE;function cr(Tr,Cr,Mr){Tr[Cr]&&Tr[Cr](Mr)}function mr(Tr,Cr,Mr){Tr.textNode&&hr(Tr),cr(Tr,Cr,Mr)}function hr(Tr){Tr.textNode=br(Tr.opt,Tr.textNode),Tr.textNode&&cr(Tr,"ontext",Tr.textNode),Tr.textNode=""}function br(Tr,Cr){return Tr.trim&&(Cr=Cr.trim()),Tr.normalize&&(Cr=Cr.replace(/ \s +/g," ")),Cr}function Rr(Tr,Cr){return hr(Tr),Tr.trackPosition&&(Cr+= `
2024-08-22 19:23:55 +08:00
Line : ` +Tr.line+ `
Column : ` +Tr.column+ `
2024-08-25 11:35:35 +08:00
Char : ` +Tr.c),Cr=new Error(Cr),Tr.error=Cr,cr(Tr,"onerror",Cr),Tr}function xr(Tr){return Tr.sawRoot&&!Tr.closedRoot&&Er(Tr,"Unclosed root tag"),Tr.state!==nr.BEGIN&&Tr.state!==nr.BEGIN_WHITESPACE&&Tr.state!==nr.TEXT&&Rr(Tr,"Unexpected end"),hr(Tr),Tr.c="",Tr.closed=!0,cr(Tr,"onend"),z.call(Tr,Tr.strict,Tr.opt),Tr}function Er(Tr,Cr){if(typeof Tr!="object"||!(Tr instanceof z))throw new Error("bad call to strictFail");Tr.strict&&Rr(Tr,Cr)}function vr(Tr){Tr.strict||(Tr.tagName=Tr.tagName[Tr.looseCase]());var Cr=Tr.tags[Tr.tags.length-1]||Tr,Mr=Tr.tag={name:Tr.tagName,attributes:{}};Tr.opt.xmlns&&(Mr.ns=Cr.ns),Tr.attribList.length=0,mr(Tr,"onopentagstart",Mr)}function Ir(Tr,Cr){var Mr=Tr.indexOf(":"),yr=Mr<0?["",Tr]:Tr.split(":"),Sr=yr[0],Dr=yr[1];return Cr&&Tr==="xmlns"&&(Sr="xmlns",Dr=""),{prefix:Sr,local:Dr}}function Lr(Tr){if(Tr.strict||(Tr.attribName=Tr.attribName[Tr.looseCase]()),Tr.attribList.indexOf(Tr.attribName)!==-1||Tr.tag.attributes.hasOwnProperty(Tr.attribName)){Tr.attribName=Tr.attribValue="";return}if(Tr.opt.xmlns){var Cr=Ir(Tr.attribName,!0),Mr=Cr.prefix,yr=Cr.local;if(Mr==="xmlns")if(yr==="xml"&&Tr.attribValue!==he)Er(Tr,"xml: prefix must be bound to "+he+ `
Actual : ` +Tr.attribValue);else if(yr==="xmlns"&&Tr.attribValue!==Ne)Er(Tr,"xmlns: prefix must be bound to "+Ne+ `
Actual : ` +Tr.attribValue);else{var Sr=Tr.tag,Dr=Tr.tags[Tr.tags.length-1]||Tr;Sr.ns===Dr.ns&&(Sr.ns=Object.create(Dr.ns)),Sr.ns[yr]=Tr.attribValue}Tr.attribList.push([Tr.attribName,Tr.attribValue])}else Tr.tag.attributes[Tr.attribName]=Tr.attribValue,mr(Tr,"onattribute",{name:Tr.attribName,value:Tr.attribValue});Tr.attribName=Tr.attribValue=""}function gr(Tr,Cr){if(Tr.opt.xmlns){var Mr=Tr.tag,yr=Ir(Tr.tagName);Mr.prefix=yr.prefix,Mr.local=yr.local,Mr.uri=Mr.ns[yr.prefix]||"",Mr.prefix&&!Mr.uri&&(Er(Tr,"Unbound namespace prefix: "+JSON.stringify(Tr.tagName)),Mr.uri=yr.prefix);var Sr=Tr.tags[Tr.tags.length-1]||Tr;Mr.ns&&Sr.ns!==Mr.ns&&Object.keys(Mr.ns).forEach(function(qo){mr(Tr,"onopennamespace",{prefix:qo,uri:Mr.ns[qo]})});for(var Dr=0,kr=Tr.attribList.length;Dr<kr;Dr++){var Wr=Tr.attribList[Dr],Kr=Wr[0],Nr=Wr[1],jr=Ir(Kr,!0),Qr=jr.prefix,ca=jr.local,Po=Qr===""?"":Mr.ns[Qr]||"",Wa={name:Kr,value:Nr,prefix:Qr,local:ca,uri:Po};Qr&&Qr!=="xmlns"&&!Po&&(Er(Tr,"Unbound namespace prefix: "+JSON.stringify(Qr)),Wa.uri=Qr),Tr.tag.attributes[Kr]=Wa,mr(Tr,"onattribute",Wa)}Tr.attribList.length=0}Tr.tag.isSelfClosing=!!Cr,Tr.sawRoot=!0,Tr.tags.push(Tr.tag),mr(Tr,"onopentag",Tr.tag),Cr||(!Tr.noscript&&Tr.tagName.toLowerCase()==="script"?Tr.state=nr.SCRIPT:Tr.state=nr.TEXT,Tr.tag=null,Tr.tagName=""),Tr.attribName=Tr.attribValue="",Tr.attribList.length=0}function _r(Tr){if(!Tr.tagName){Er(Tr,"Weird empty close tag."),Tr.textNode+="</>",Tr.state=nr.TEXT;return}if(Tr.script){if(Tr.tagName!=="script"){Tr.script+="</"+Tr.tagName+">",Tr.tagName="",Tr.state=nr.SCRIPT;return}mr(Tr,"onscript",Tr.script),Tr.script=""}var Cr=Tr.tags.length,Mr=Tr.tagName;Tr.strict||(Mr=Mr[Tr.looseCase]());for(var yr=Mr;Cr--;){var Sr=Tr.tags[Cr];if(Sr.name!==yr)Er(Tr,"Unexpected close tag");else break}if(Cr<0){Er(Tr,"Unmatched closing tag: "+Tr.tagName),Tr.textNode+="</"+Tr.tagName+">",Tr.state=nr.TEXT;return}Tr.tagName=Mr;for(var Dr=Tr.tags.length;Dr-- >Cr;){var kr=Tr.tag=Tr.tags.pop();Tr.tagName=Tr.tag.name,mr(Tr,"onclosetag",Tr.tagName);var Wr={};for(var Kr in kr.ns)Wr[Kr]=kr.ns[Kr];var Nr=Tr.tags[Tr.tags.length-1]||Tr;Tr.opt.xmlns&&kr.ns!==Nr.ns&&Object.keys(kr.ns).forEach(function(jr){var Qr=kr.ns[jr];mr(Tr,"onclosenamespace",{prefix:jr,uri:Qr})})}Cr===0&&(Tr.closedRoot=!0),Tr.tagName=Tr.attribValue=Tr.attribName="",Tr.attribList.length=0,Tr.state=nr.TEXT}function Fr(Tr){var Cr=Tr.entity,Mr=Cr.toLowerCase(),yr,Sr="";return Tr.ENTITIES[Cr]?Tr.ENTITIES[Cr]:Tr.ENTITIES[Mr]?Tr.ENTITIES[Mr]:(Cr=Mr,Cr.charAt(0)==="#"&&(Cr.charAt(1)==="x"?(Cr=Cr.slice(2),yr=parseInt(Cr,16),Sr=yr.toString(16)):(Cr=Cr.slice(1),yr=parseInt(Cr,10),Sr=yr.toString(10))),Cr=Cr.replace(/^0+/,""),isNaN(yr)||Sr.toLowerCase()!==Cr?(Er(Tr,"Invalid character entity"),"&"+Tr.entity+";"):String.fromCodePoint(yr))}function zr(Tr,Cr){Cr==="<"?(Tr.state=nr.OPEN_WAKA,Tr.startTagPosition=Tr.position):qe(Cr)||(Er(Tr,"Non-whitespace before first tag."),Tr.textNode=Cr,Tr.state=nr.TEXT)}function Vr(Tr,Cr){var Mr="";return Cr<Tr.length&&(Mr=Tr.charAt(Cr)),Mr}function Gr(Tr){var Cr=this;if(this.error)throw this.error;if(Cr.closed)return Rr(Cr,"Cannot write after close. Assign an onready handler.");if(Tr===null)return xr(Cr);typeof Tr=="object"&&(Tr=Tr.toString());for(var Mr=0,yr="";yr=Vr(Tr,Mr++),Cr.c=yr,!!yr;)switch(Cr.trackPosition&&(Cr.position++,yr=== `
` ?(Cr.line++,Cr.column=0):Cr.column++),Cr.state){case nr.BEGIN:if(Cr.state=nr.BEGIN_WHITESPACE,yr===" \u FEFF")continue;zr(Cr,yr);continue;case nr.BEGIN_WHITESPACE:zr(Cr,yr);continue;case nr.TEXT:if(Cr.sawRoot&&!Cr.closedRoot){for(var Sr=Mr-1;yr&&yr!=="<"&&yr!=="&";)yr=Vr(Tr,Mr++),yr&&Cr.trackPosition&&(Cr.position++,yr=== `
` ?(Cr.line++,Cr.column=0):Cr.column++);Cr.textNode+=Tr.substring(Sr,Mr-1)}yr==="<"&&!(Cr.sawRoot&&Cr.closedRoot&&!Cr.strict)?(Cr.state=nr.OPEN_WAKA,Cr.startTagPosition=Cr.position):(!qe(yr)&&(!Cr.sawRoot||Cr.closedRoot)&&Er(Cr,"Text data outside of root node."),yr==="&"?Cr.state=nr.TEXT_ENTITY:Cr.textNode+=yr);continue;case nr.SCRIPT:yr==="<"?Cr.state=nr.SCRIPT_ENDING:Cr.script+=yr;continue;case nr.SCRIPT_ENDING:yr==="/"?Cr.state=nr.CLOSE_TAG:(Cr.script+="<"+yr,Cr.state=nr.SCRIPT);continue;case nr.OPEN_WAKA:if(yr==="!")Cr.state=nr.SGML_DECL,Cr.sgmlDecl="";else if(!qe(yr))if(rr(Ve,yr))Cr.state=nr.OPEN_TAG,Cr.tagName=yr;else if(yr==="/")Cr.state=nr.CLOSE_TAG,Cr.tagName="";else if(yr==="?")Cr.state=nr.PROC_INST,Cr.procInstName=Cr.procInstBody="";else{if(Er(Cr,"Unencoded <"),Cr.startTagPosition+1<Cr.position){var Dr=Cr.position-Cr.startTagPosition;yr=new Array(Dr).join(" ")+yr}Cr.textNode+="<"+yr,Cr.state=nr.TEXT}continue;case nr.SGML_DECL:(Cr.sgmlDecl+yr).toUpperCase()===_e?(mr(Cr,"onopencdata"),Cr.state=nr.CDATA,Cr.sgmlDecl="",Cr.cdata=""):Cr.sgmlDecl+yr==="--"?(Cr.state=nr.COMMENT,Cr.comment="",Cr.sgmlDecl=""):(Cr.sgmlDecl+yr).toUpperCase()===Ce?(Cr.state=nr.DOCTYPE,(Cr.doctype||Cr.sawRoot)&&Er(Cr,"Inappropriately located doctype declaration"),Cr.doctype="",Cr.sgmlDecl=""):yr===">"?(mr(Cr,"onsgmldeclaration",Cr.sgmlDecl),Cr.sgmlDecl="",Cr.state=nr.TEXT):(kt(yr)&&(Cr.state=nr.SGML_DECL_QUOTED),Cr.sgmlDecl+=yr);continue;case nr.SGML_DECL_QUOTED:yr===Cr.q&&(Cr.state=nr.SGML_DECL,Cr.q=""),Cr.sgmlDecl+=yr;continue;case nr.DOCTYPE:yr===">"?(Cr.state=nr.TEXT,mr(Cr,"ondoctype",Cr.doctype),Cr.doctype=!0):(Cr.doctype+=yr,yr==="["?Cr.state=nr.DOCTYPE_DTD:kt(yr)&&(Cr.state=nr.DOCTYPE_QUOTED,Cr.q=yr));continue;case nr.DOCTYPE_QUOTED:Cr.doctype+=yr,yr===Cr.q&&(Cr.q="",Cr.state=nr.DOCTYPE);continue;case nr.DOCTYPE_DTD:Cr.doctype+=yr,yr==="]"?Cr.state=nr.DOCTYPE:kt(yr)&&(Cr.state=nr.DOCTYPE_DTD_QUOTED,Cr.q=yr);continue;case nr.DOCTYPE_DTD_QUOTED:Cr.doctype+=yr,yr===Cr.q&&(Cr.state=nr.DOCTYPE_DTD,Cr.q="");continue;case nr.COMMENT:yr==="-"?Cr.state=nr.COMMENT_ENDING:Cr.comment+=yr;continue;case nr.COMMENT_ENDING:yr==="-"?(Cr.state=nr.COMMENT_ENDED,Cr.comment=br(Cr.opt,Cr.comment),Cr.comment&&mr(Cr,"oncomment",Cr.comment),Cr.comment=""):(Cr.comment+="-"+yr,Cr.state=nr.COMMENT);continue;case nr.COMMENT_ENDED:yr!==">"?(Er(Cr,"Malformed comment"),Cr.comment+="--"+yr,Cr.state=nr.COMMENT):Cr.state=nr.TEXT;continue;case nr.CDATA:yr==="]"?Cr.state=nr.CDATA_ENDING:Cr.cdata+=yr;continue;case nr.CDATA_ENDING:yr==="]"?Cr.state=nr.CDATA_ENDING_2:(Cr.cdata+="]"+yr,Cr.state=nr.CDATA);continue;case nr.CDATA_ENDING_2:yr===">"?(Cr.cdata&&mr(Cr,"oncdata",Cr.cdata),mr(Cr,"onclosecdata"),Cr.cdata="",Cr.state=nr.TEXT):yr==="]"?Cr.cdata+="]":(Cr.cdata+="]]"+yr,Cr.state=nr.CDATA);continue;case nr.PROC_INST:yr==="?"?Cr.state=nr.PROC_INST_ENDING:qe(yr)?Cr.state=nr.PROC_INST_BODY:Cr.procInstName+=yr;continue;case nr.PROC_INST_BODY:if(!Cr.procInstBody&&qe(yr))continue;yr==="?"?Cr.state=nr.PROC_INST_ENDING:Cr.procInstBody+=yr;continue;case nr.PROC_INST_ENDING:yr===">"?(mr(Cr,"onprocessinginstruction",{name:Cr.procInstName,body:Cr.procInstBody}),Cr.procInstName=Cr.procInstBody="",Cr.state=nr.TEXT):(Cr.procInstBody+="?"+yr,Cr.state=nr.PROC_INST_BODY);continue;case nr.OPEN_TAG:rr(jt,yr)?Cr.tagName+=yr:(vr(Cr),yr===">"?gr(Cr):yr==="/"?Cr.state=nr.OPEN_TAG_SLASH:(qe(yr)||Er(Cr,"Invalid character in tag name"),Cr.state=nr.ATTRIB));continue;case nr.OPEN_TAG_SLASH:yr===">"?(gr(Cr,!0),_r(Cr)):(Er(Cr,"Forward-slash in opening tag not followed by >"),Cr.state=nr.ATTRIB);continue;case nr.ATTRIB:if(qe(yr))continue;yr===">"?gr(Cr):yr==="/"?Cr.state=nr.OPEN_TAG_SLASH:rr(Ve,yr)?(Cr.attribName=yr,Cr.attribValue="",Cr.state=nr.ATTRIB_NAME):Er(Cr,"Invalid attribute name");continue;case nr.ATTRIB_NAME:yr==="="?Cr.state=nr.ATTRIB_VALUE:yr===">"?(Er(Cr,"Attribute without value"),Cr.attribValue=Cr.attribName,Lr(Cr),gr(Cr)):qe(yr)?Cr.state=nr.ATTRIB_NAME_SAW_WHITE:rr(jt,yr)?Cr.attribName+=yr:Er(Cr,"Invalid attribute name");continue;case nr.ATTRIB_NAME_SAW_WHITE:if(yr==="=")Cr.state=nr.ATTRI
` )>-1&&(Tr?Mr=Mr.split( `
2024-08-22 19:23:55 +08:00
` ).map(function(Sr){return" "+Sr}).join( `
2024-08-25 11:35:35 +08:00
` ).slice(2):Mr= `
` +Mr.split( `
2024-08-22 19:23:55 +08:00
` ).map(function(Sr){return" "+Sr}).join( `
2024-08-25 11:35:35 +08:00
` ))):Mr=_r.stylize("[Circular]","special")),rr(Cr)){if(Tr&&Gr.match(/^ \d + $ /))return Mr;Cr=JSON.stringify(""+Gr),Cr.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)" $ /)?(Cr=Cr.slice(1,-1),Cr=_r.stylize(Cr,"name")):(Cr=Cr.replace(/'/g," \\ '").replace(/ \\ "/g,'"').replace(/(^"|" $ )/g,"'"),Cr=_r.stylize(Cr,"string"))}return Cr+": "+Mr}function Fe(_r,Fr,zr){var Vr=_r.reduce(function(Gr,Tr){return Tr.indexOf( `
` )>=0,Gr+Tr.replace(/ \u 001b \[ \d \d ?m/g,"").length+1},0);return Vr>60?zr[0]+(Fr===""?"":Fr+ `
` )+" "+_r.join( ` ,
` )+" "+zr[1]:zr[0]+Fr+" "+_r.join(", ")+" "+zr[1]}L.types=n("./support/types");function Ve(_r){return Array.isArray(_r)}L.isArray=Ve;function jt(_r){return typeof _r=="boolean"}L.isBoolean=jt;function Et(_r){return _r===null}L.isNull=Et;function Ue(_r){return _r==null}L.isNullOrUndefined=Ue;function qe(_r){return typeof _r=="number"}L.isNumber=qe;function kt(_r){return typeof _r=="string"}L.isString=kt;function tr(_r){return typeof _r=="symbol"}L.isSymbol=tr;function rr(_r){return _r===void 0}L.isUndefined=rr;function ar(_r){return nr(_r)&&br(_r)==="[object RegExp]"}L.isRegExp=ar,L.types.isRegExp=ar;function nr(_r){return typeof _r=="object"&&_r!==null}L.isObject=nr;function ur(_r){return nr(_r)&&br(_r)==="[object Date]"}L.isDate=ur,L.types.isDate=ur;function cr(_r){return nr(_r)&&(br(_r)==="[object Error]"||_r instanceof Error)}L.isError=cr,L.types.isNativeError=cr;function mr(_r){return typeof _r=="function"}L.isFunction=mr;function hr(_r){return _r===null||typeof _r=="boolean"||typeof _r=="number"||typeof _r=="string"||typeof _r=="symbol"||typeof _r>"u"}L.isPrimitive=hr,L.isBuffer=n("./support/isBuffer");function br(_r){return Object.prototype.toString.call(_r)}function Rr(_r){return _r<10?"0"+_r.toString(10):_r.toString(10)}var xr=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function Er(){var _r=new Date,Fr=[Rr(_r.getHours()),Rr(_r.getMinutes()),Rr(_r.getSeconds())].join(":");return[_r.getDate(),xr[_r.getMonth()],Fr].join(" ")}L.log=function(){console.log("%s - %s",Er(),L.format.apply(L,arguments))},L.inherits=n("inherits"),L._extend=function(_r,Fr){if(!Fr||!nr(Fr))return _r;for(var zr=Object.keys(Fr),Vr=zr.length;Vr--;)_r[zr[Vr]]=Fr[zr[Vr]];return _r};function vr(_r,Fr){return Object.prototype.hasOwnProperty.call(_r,Fr)}var Ir=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;L.promisify=function(Fr){if(typeof Fr!="function")throw new TypeError('The "original" argument must be of type Function');if(Ir&&Fr[Ir]){var zr=Fr[Ir];if(typeof zr!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(zr,Ir,{value:zr,enumerable:!1,writable:!1,configurable:!0}),zr}function zr(){for(var Vr,Gr,Tr=new Promise(function(yr,Sr){Vr=yr,Gr=Sr}),Cr=[],Mr=0;Mr<arguments.length;Mr++)Cr.push(arguments[Mr]);Cr.push(function(yr,Sr){yr?Gr(yr):Vr(Sr)});try{Fr.apply(this,Cr)}catch(yr){Gr(yr)}return Tr}return Object.setPrototypeOf(zr,Object.getPrototypeOf(Fr)),Ir&&Object.defineProperty(zr,Ir,{value:zr,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(zr,j(Fr))},L.promisify.custom=Ir;function Lr(_r,Fr){if(!_r){var zr=new Error("Promise was rejected with a falsy value");zr.reason=_r,_r=zr}return Fr(_r)}function gr(_r){if(typeof _r!="function")throw new TypeError('The "original" argument must be of type Function');function Fr(){for(var zr=[],Vr=0;Vr<arguments.length;Vr++)zr.push(arguments[Vr]);var Gr=zr.pop();if(typeof Gr!="function")throw new TypeError("The last argument must be of type Function");var Tr=this,Cr=function(){return Gr.apply(Tr,arguments)};_r.apply(this,zr).then(function(Mr){ $ .nextTick(Cr.bind(null,null,Mr))},function(Mr){ $ .nextTick(Lr.bind(null,Mr,Cr))})}return Object.setPrototypeOf(Fr,Object.getPrototypeOf(_r)),Object.defineProperties(Fr,j(_r)),Fr}L.callbackify=gr}).call(this)}).call(this,n("_process"))},{"./support/isBuffer":489,"./support/types":490,_process:540,inherits:409}],492:[function(n,k,L){(function( $ ){(function(){var j=n("for-each"),V=n("available-typed-arrays"),z=n("call-bind"),re=n("call-bind/callBound"),ie=n("gopd"),oe=re("Object.prototype.toString"),ue=n("has-tostringtag/shams")(),de=typeof globalThis>"u"? $ :globalThis,pe=V(),Ie=re("String.prototype.slice"),_e=Object.getPrototypeOf,Ce=re("Array.prototype.indexOf",!0)||function(jt,Et){for(var Ue=0;Ue<jt.length;Ue+=1)if(jt[Ue]===Et)return Ue;return-1},he={__proto__:null};ue&&ie&&_e?j(pe,function(Ve){var jt=new de[Ve];if(Symbol.toStringTag in jt){var Et=_e(jt),Ue=ie(Et,Symbol.toStringTag);if(!Ue){var qe=_e(Et);Ue=ie(qe,Symbol.toStringTag)}he[" $ "+
` },headless:!1,chunkSize:1e4,emptyTag:"",cdata:!1}}}).call(this)},{}],496:[function(n,k,L){(function(){var $ ,j,V,z,re,ie,oe,ue,de,pe=function(Ce,he){return function(){return Ce.apply(he,arguments)}},Ie=function(Ce,he){for(var Ne in he)_e.call(he,Ne)&&(Ce[Ne]=he[Ne]);function Fe(){this.constructor=Ce}return Fe.prototype=he.prototype,Ce.prototype=new Fe,Ce.__super__=he.prototype,Ce},_e={}.hasOwnProperty;ue=n("sax"),z=n("events"), $ =n("./bom"),oe=n("./processors"),de=n("timers").setImmediate,j=n("./defaults").defaults,re=function(Ce){return typeof Ce=="object"&&Ce!=null&&Object.keys(Ce).length===0},ie=function(Ce,he,Ne){var Fe,Ve,jt;for(Fe=0,Ve=Ce.length;Fe<Ve;Fe++)jt=Ce[Fe],he=jt(he,Ne);return he},V=function(Ce,he,Ne){var Fe;return Fe=Object.create(null),Fe.value=Ne,Fe.writable=!0,Fe.enumerable=!0,Fe.configurable=!0,Object.defineProperty(Ce,he,Fe)},L.Parser=function(Ce){Ie(he,Ce);function he(Ne){this.parseStringPromise=pe(this.parseStringPromise,this),this.parseString=pe(this.parseString,this),this.reset=pe(this.reset,this),this.assignOrPush=pe(this.assignOrPush,this),this.processAsync=pe(this.processAsync,this);var Fe,Ve,jt;if(!(this instanceof L.Parser))return new L.Parser(Ne);this.options={},Ve=j["0.2"];for(Fe in Ve)_e.call(Ve,Fe)&&(jt=Ve[Fe],this.options[Fe]=jt);for(Fe in Ne)_e.call(Ne,Fe)&&(jt=Ne[Fe],this.options[Fe]=jt);this.options.xmlns&&(this.options.xmlnskey=this.options.attrkey+"ns"),this.options.normalizeTags&&(this.options.tagNameProcessors||(this.options.tagNameProcessors=[]),this.options.tagNameProcessors.unshift(oe.normalize)),this.reset()}return he.prototype.processAsync=function(){var Ne,Fe;try{return this.remaining.length<=this.options.chunkSize?(Ne=this.remaining,this.remaining="",this.saxParser=this.saxParser.write(Ne),this.saxParser.close()):(Ne=this.remaining.substr(0,this.options.chunkSize),this.remaining=this.remaining.substr(this.options.chunkSize,this.remaining.length),this.saxParser=this.saxParser.write(Ne),de(this.processAsync))}catch(Ve){if(Fe=Ve,!this.saxParser.errThrown)return this.saxParser.errThrown=!0,this.emit(Fe)}},he.prototype.assignOrPush=function(Ne,Fe,Ve){return Fe in Ne?(Ne[Fe]instanceof Array||V(Ne,Fe,[Ne[Fe]]),Ne[Fe].push(Ve)):this.options.explicitArray?V(Ne,Fe,[Ve]):V(Ne,Fe,Ve)},he.prototype.reset=function(){var Ne,Fe,Ve,jt;return this.removeAllListeners(),this.saxParser=ue.parser(this.options.strict,{trim:!1,normalize:!1,xmlns:this.options.xmlns}),this.saxParser.errThrown=!1,this.saxParser.onerror=function(Et){return function(Ue){if(Et.saxParser.resume(),!Et.saxParser.errThrown)return Et.saxParser.errThrown=!0,Et.emit("error",Ue)}}(this),this.saxParser.onend=function(Et){return function(){if(!Et.saxParser.ended)return Et.saxParser.ended=!0,Et.emit("end",Et.resultObject)}}(this),this.saxParser.ended=!1,this.EXPLICIT_CHARKEY=this.options.explicitCharkey,this.resultObject=null,jt=[],Ne=this.options.attrkey,Fe=this.options.charkey,this.saxParser.onopentag=function(Et){return function(Ue){var qe,kt,tr,rr,ar;if(tr={},tr[Fe]="",!Et.options.ignoreAttrs){ar=Ue.attributes;for(qe in ar)_e.call(ar,qe)&&(!(Ne in tr)&&!Et.options.mergeAttrs&&(tr[Ne]={}),kt=Et.options.attrValueProcessors?ie(Et.options.attrValueProcessors,Ue.attributes[qe],qe):Ue.attributes[qe],rr=Et.options.attrNameProcessors?ie(Et.options.attrNameProcessors,qe):qe,Et.options.mergeAttrs?Et.assignOrPush(tr,rr,kt):V(tr[Ne],rr,kt))}return tr["#name"]=Et.options.tagNameProcessors?ie(Et.options.tagNameProcessors,Ue.name):Ue.name,Et.options.xmlns&&(tr[Et.options.xmlnskey]={uri:Ue.uri,local:Ue.local}),jt.push(tr)}}(this),this.saxParser.onclosetag=function(Et){return function(){var Ue,qe,kt,tr,rr,ar,nr,ur,cr,mr;if(ar=jt.pop(),rr=ar["#name"],(!Et.options.explicitChildren||!Et.options.preserveChildrenOrder)&&delete ar["#name"],ar.cdata===!0&&(Ue=ar.cdata,delete ar.cdata),cr=jt[jt.length-1],ar[Fe].match(/^ \s * $ /)&&!Ue?(qe=ar[Fe],delete ar[Fe]):(Et.options.trim&&(ar[Fe]=ar[Fe].trim()),Et.options.normalize&&(ar[Fe]=ar[Fe].replace(/ \s {2,}/g," ").trim()),ar[Fe]=Et.options.valueProcessors?ie(Et.options.valueProcessors,ar[Fe],rr):ar[Fe],Object
` ,oe.offset=(pe=ie.offset)!=null?pe:0,oe.dontPrettyTextNodes=(Ie=(_e=ie.dontPrettyTextNodes)!=null?_e:ie.dontprettytextnodes)!=null?Ie:0,oe.spaceBeforeSlash=(Ce=(he=ie.spaceBeforeSlash)!=null?he:ie.spacebeforeslash)!=null?Ce:"",oe.spaceBeforeSlash===!0&&(oe.spaceBeforeSlash=" "),oe.suppressPrettyCount=0,oe.user={},oe.state=j.None,oe},re.prototype.indent=function(ie,oe,ue){var de;return!oe.pretty||oe.suppressPrettyCount?"":oe.pretty&&(de=(ue||0)+oe.offset+1,de>0)?new Array(de).join(oe.indent):""},re.prototype.endline=function(ie,oe,ue){return!oe.pretty||oe.suppressPrettyCount?"":oe.newline},re.prototype.attribute=function(ie,oe,ue){var de;return this.openAttribute(ie,oe,ue),de=" "+ie.name+'="'+ie.value+'"',this.closeAttribute(ie,oe,ue),de},re.prototype.cdata=function(ie,oe,ue){var de;return this.openNode(ie,oe,ue),oe.state=j.OpenTag,de=this.indent(ie,oe,ue)+"<![CDATA[",oe.state=j.InsideTag,de+=ie.value,oe.state=j.CloseTag,de+="]]>"+this.endline(ie,oe,ue),oe.state=j.None,this.closeNode(ie,oe,ue),de},re.prototype.comment=function(ie,oe,ue){var de;return this.openNode(ie,oe,ue),oe.state=j.OpenTag,de=this.indent(ie,oe,ue)+"<!-- ",oe.state=j.InsideTag,de+=ie.value,oe.state=j.CloseTag,de+=" -->"+this.endline(ie,oe,ue),oe.state=j.None,this.closeNode(ie,oe,ue),de},re.prototype.declaration=function(ie,oe,ue){var de;return this.openNode(ie,oe,ue),oe.state=j.OpenTag,de=this.indent(ie,oe,ue)+"<?xml",oe.state=j.InsideTag,de+=' version="'+ie.version+'"',ie.encoding!=null&&(de+=' encoding="'+ie.encoding+'"'),ie.standalone!=null&&(de+=' standalone="'+ie.standalone+'"'),oe.state=j.CloseTag,de+=oe.spaceBeforeSlash+"?>",de+=this.endline(ie,oe,ue),oe.state=j.None,this.closeNode(ie,oe,ue),de},re.prototype.docType=function(ie,oe,ue){var de,pe,Ie,_e,Ce;if(ue||(ue=0),this.openNode(ie,oe,ue),oe.state=j.OpenTag,_e=this.indent(ie,oe,ue),_e+="<!DOCTYPE "+ie.root().name,ie.pubID&&ie.sysID?_e+=' PUBLIC "'+ie.pubID+'" "'+ie.sysID+'"':ie.sysID&&(_e+=' SYSTEM "'+ie.sysID+'"'),ie.children.length>0){for(_e+=" [",_e+=this.endline(ie,oe,ue),oe.state=j.InsideTag,Ce=ie.children,pe=0,Ie=Ce.length;pe<Ie;pe++)de=Ce[pe],_e+=this.writeChildNode(de,oe,ue+1);oe.state=j.CloseTag,_e+="]"}return oe.state=j.CloseTag,_e+=oe.spaceBeforeSlash+">",_e+=this.endline(ie,oe,ue),oe.state=j.None,this.closeNode(ie,oe,ue),_e},re.prototype.element=function(ie,oe,ue){var de,pe,Ie,_e,Ce,he,Ne,Fe,Ve,jt,Et,Ue,qe,kt;ue||(ue=0),jt=!1,Et="",this.openNode(ie,oe,ue),oe.state=j.OpenTag,Et+=this.indent(ie,oe,ue)+"<"+ie.name,Ue=ie.attribs;for(Ve in Ue)z.call(Ue,Ve)&&(de=Ue[Ve],Et+=this.attribute(de,oe,ue));if(Ie=ie.children.length,_e=Ie===0?null:ie.children[0],Ie===0||ie.children.every(function(tr){return(tr.type=== $ .Text||tr.type=== $ .Raw)&&tr.value===""}))oe.allowEmpty?(Et+=">",oe.state=j.CloseTag,Et+="</"+ie.name+">"+this.endline(ie,oe,ue)):(oe.state=j.CloseTag,Et+=oe.spaceBeforeSlash+"/>"+this.endline(ie,oe,ue));else if(oe.pretty&&Ie===1&&(_e.type=== $ .Text||_e.type=== $ .Raw)&&_e.value!=null)Et+=">",oe.state=j.InsideTag,oe.suppressPrettyCount++,jt=!0,Et+=this.writeChildNode(_e,oe,ue+1),oe.suppressPrettyCount--,jt=!1,oe.state=j.CloseTag,Et+="</"+ie.name+">"+this.endline(ie,oe,ue);else{if(oe.dontPrettyTextNodes){for(qe=ie.children,Ce=0,Ne=qe.length;Ce<Ne;Ce++)if(pe=qe[Ce],(pe.type=== $ .Text||pe.type=== $ .Raw)&&pe.value!=null){oe.suppressPrettyCount++,jt=!0;break}}for(Et+=">"+this.endline(ie,oe,ue),oe.state=j.InsideTag,kt=ie.children,he=0,Fe=kt.length;he<Fe;he++)pe=kt[he],Et+=this.writeChildNode(pe,oe,ue+1);oe.state=j.CloseTag,Et+=this.indent(ie,oe,ue)+"</"+ie.name+">",jt&&oe.suppressPrettyCount--,Et+=this.endline(ie,oe,ue),oe.state=j.None}return this.closeNode(ie,oe,ue),Et},re.prototype.writeChildNode=function(ie,oe,ue){switch(ie.type){case $ .CData:return this.cdata(ie,oe,ue);case $ .Comment:return this.comment(ie,oe,ue);case $ .Element:return this.element(ie,oe,ue);case $ .Raw:return this.raw(ie,oe,ue);case $ .Text:return this.text(ie,oe,ue);case $ .ProcessingInstruction:return this.processingInstruction(ie,oe,ue);case $ .Dummy:return"";case $ .Declaration:return this.declaration(ie,oe,ue);case $ .DocTyp
` ))}L.createHash=function(Ie){return de(Ie)},L.createHmac=function(Ie,_e){return de(Ie,_e)},L.createCredentials=function(){pe("sorry,createCredentials is not implemented yet")},L.createCipher=function(){pe("sorry,createCipher is not implemented yet")},L.createCipheriv=function(){pe("sorry,createCipheriv is not implemented yet")},L.createDecipher=function(){pe("sorry,createDecipher is not implemented yet")},L.createDecipheriv=function(){pe("sorry,createDecipheriv is not implemented yet")},L.createSign=function(){pe("sorry,createSign is not implemented yet")},L.createVerify=function(){pe("sorry,createVerify is not implemented yet")},L.createDiffieHellman=function(){pe("sorry,createDiffieHellman is not implemented yet")},L.pbkdf2=function(){pe("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(n,k,L){n("core-js/modules/es.array.fill.js"),n("core-js/modules/es.array.concat.js");var $ =n("buffer").Buffer,j=4,V= $ .alloc(j);V.fill(0);var z=8;function re(ue,de){if(ue.length%j!==0){var pe=ue.length+(j-ue.length%j);ue= $ .concat([ue,V],pe)}for(var Ie=[],_e=de?ue.readInt32BE:ue.readInt32LE,Ce=0;Ce<ue.length;Ce+=j)Ie.push(_e.call(ue,Ce));return Ie}function ie(ue,de,pe){for(var Ie= $ .alloc(de),_e=pe?Ie.writeInt32BE:Ie.writeInt32LE,Ce=0;Ce<ue.length;Ce++)_e.call(Ie,ue[Ce],Ce*4,!0);return Ie}function oe(ue,de,pe,Ie){ $ .isBuffer(ue)||(ue= $ .from(ue));var _e=de(re(ue,Ie),ue.length*z);return ie(_e,pe,Ie)}k.exports={hash:oe}},{buffer:103,"core-js/modules/es.array.concat.js":310,"core-js/modules/es.array.fill.js":311}],535:[function(n,k,L){var $ =n("./helpers");function j(pe,Ie){pe[Ie>>5]|=128<<Ie%32,pe[(Ie+64>>>9<<4)+14]=Ie;for(var _e=1732584193,Ce=-271733879,he=-1732584194,Ne=271733878,Fe=0;Fe<pe.length;Fe+=16){var Ve=_e,jt=Ce,Et=he,Ue=Ne;_e=z(_e,Ce,he,Ne,pe[Fe+0],7,-680876936),Ne=z(Ne,_e,Ce,he,pe[Fe+1],12,-389564586),he=z(he,Ne,_e,Ce,pe[Fe+2],17,606105819),Ce=z(Ce,he,Ne,_e,pe[Fe+3],22,-1044525330),_e=z(_e,Ce,he,Ne,pe[Fe+4],7,-176418897),Ne=z(Ne,_e,Ce,he,pe[Fe+5],12,1200080426),he=z(he,Ne,_e,Ce,pe[Fe+6],17,-1473231341),Ce=z(Ce,he,Ne,_e,pe[Fe+7],22,-45705983),_e=z(_e,Ce,he,Ne,pe[Fe+8],7,1770035416),Ne=z(Ne,_e,Ce,he,pe[Fe+9],12,-1958414417),he=z(he,Ne,_e,Ce,pe[Fe+10],17,-42063),Ce=z(Ce,he,Ne,_e,pe[Fe+11],22,-1990404162),_e=z(_e,Ce,he,Ne,pe[Fe+12],7,1804603682),Ne=z(Ne,_e,Ce,he,pe[Fe+13],12,-40341101),he=z(he,Ne,_e,Ce,pe[Fe+14],17,-1502002290),Ce=z(Ce,he,Ne,_e,pe[Fe+15],22,1236535329),_e=re(_e,Ce,he,Ne,pe[Fe+1],5,-165796510),Ne=re(Ne,_e,Ce,he,pe[Fe+6],9,-1069501632),he=re(he,Ne,_e,Ce,pe[Fe+11],14,643717713),Ce=re(Ce,he,Ne,_e,pe[Fe+0],20,-373897302),_e=re(_e,Ce,he,Ne,pe[Fe+5],5,-701558691),Ne=re(Ne,_e,Ce,he,pe[Fe+10],9,38016083),he=re(he,Ne,_e,Ce,pe[Fe+15],14,-660478335),Ce=re(Ce,he,Ne,_e,pe[Fe+4],20,-405537848),_e=re(_e,Ce,he,Ne,pe[Fe+9],5,568446438),Ne=re(Ne,_e,Ce,he,pe[Fe+14],9,-1019803690),he=re(he,Ne,_e,Ce,pe[Fe+3],14,-187363961),Ce=re(Ce,he,Ne,_e,pe[Fe+8],20,1163531501),_e=re(_e,Ce,he,Ne,pe[Fe+13],5,-1444681467),Ne=re(Ne,_e,Ce,he,pe[Fe+2],9,-51403784),he=re(he,Ne,_e,Ce,pe[Fe+7],14,1735328473),Ce=re(Ce,he,Ne,_e,pe[Fe+12],20,-1926607734),_e=ie(_e,Ce,he,Ne,pe[Fe+5],4,-378558),Ne=ie(Ne,_e,Ce,he,pe[Fe+8],11,-2022574463),he=ie(he,Ne,_e,Ce,pe[Fe+11],16,1839030562),Ce=ie(Ce,he,Ne,_e,pe[Fe+14],23,-35309556),_e=ie(_e,Ce,he,Ne,pe[Fe+1],4,-1530992060),Ne=ie(Ne,_e,Ce,he,pe[Fe+4],11,1272893353),he=ie(he,Ne,_e,Ce,pe[Fe+7],16,-155497632),Ce=ie(Ce,he,Ne,_e,pe[Fe+10],23,-1094730640),_e=ie(_e,Ce,he,Ne,pe[Fe+13],4,681279174),Ne=ie(Ne,_e,Ce,he,pe[Fe+0],11,-358537222),he=ie(he,Ne,_e,Ce,pe[Fe+3],16,-722521979),Ce=ie(Ce,he,Ne,_e,pe[Fe+6],23,76029189),_e=ie(_e,Ce,he,Ne,pe[Fe+9],4,-640364487),Ne=ie(Ne,_e,Ce,he,pe[Fe+12],11,-421815835),he=ie(he,Ne,_e,Ce,pe[Fe+15],16,530742520),Ce=ie(Ce,he,Ne,_e,pe[Fe+2],23,-995338651),_e=oe(_e,Ce,he,Ne,pe[Fe+0],6,-198630844),Ne=oe(Ne,_e
` ," "],pe=["{","}","|"," \\ ","^"," ` "].concat(de),Ie=[" '"].concat(pe),_e=["%","/","?",";","#"].concat(Ie),Ce=["/","?","#"],he=255,Ne=/^[+a-z0-9A-Z_-]{0,63}$/,Fe=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,Ve={javascript:!0,"javascript:":!0},jt={javascript:!0,"javascript:":!0},Et={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},Ue=n("querystring");function qe(ar,nr,ur){if(ar&&z.isObject(ar)&&ar instanceof re)return ar;var cr=new re;return cr.parse(ar,nr,ur),cr}re.prototype.parse=function(ar,nr,ur){if(!z.isString(ar))throw new TypeError("Parameter ' url ' must be a string , not "+(0,j.default)(ar));var cr=ar.indexOf(" ? "),mr=cr!==-1&&cr<ar.indexOf(" # ")?" ? ":" # ",hr=ar.split(mr),br=/\\/g;hr[0]=hr[0].replace(br," / "),ar=hr.join(mr);var Rr=ar;if(Rr=Rr.trim(),!ur&&ar.split(" # ").length===1){var xr=ue.exec(Rr);if(xr)return this.path=Rr,this.href=Rr,this.pathname=xr[1],xr[2]?(this.search=xr[2],nr?this.query=Ue.parse(this.search.substr(1)):this.query=this.search.substr(1)):nr&&(this.search=" ",this.query={}),this}var Er=ie.exec(Rr);if(Er){Er=Er[0];var vr=Er.toLowerCase();this.protocol=vr,Rr=Rr.substr(Er.length)}if(ur||Er||Rr.match(/^\/\/[^@\/]+@[^@\/]+/)){var Ir=Rr.substr(0,2)===" //";Ir&&!(Er&&jt[Er])&&(Rr=Rr.substr(2),this.slashes=!0)}if(!jt[Er]&&(Ir||Er&&!Et[Er])){for(var Lr=-1,gr=0;gr<Ce.length;gr++){var _r=Rr.indexOf(Ce[gr]);_r!==-1&&(Lr===-1||_r<Lr)&&(Lr=_r)}var Fr,zr;Lr===-1?zr=Rr.lastIndexOf("@"):zr=Rr.lastIndexOf("@",Lr),zr!==-1&&(Fr=Rr.slice(0,zr),Rr=Rr.slice(zr+1),this.auth=decodeURIComponent(Fr)),Lr=-1;for(var gr=0;gr<_e.length;gr++){var _r=Rr.indexOf(_e[gr]);_r!==-1&&(Lr===-1||_r<Lr)&&(Lr=_r)}Lr===-1&&(Lr=Rr.length),this.host=Rr.slice(0,Lr),Rr=Rr.slice(Lr),this.parseHost(),this.hostname=this.hostname||"";var Vr=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!Vr)for(var Gr=this.hostname.split("."),gr=0,Tr=Gr.length;gr<Tr;gr++){var Cr=Gr[gr];if(Cr&&!Cr.match(Ne)){for(var Mr="",yr=0,Sr=Cr.length;yr<Sr;yr++)Cr.charCodeAt(yr)>127?Mr+="x":Mr+=Cr[yr];if(!Mr.match(Ne)){var Dr=Gr.slice(0,gr),kr=Gr.slice(gr+1),Wr=Cr.match(Fe);Wr&&(Dr.push(Wr[1]),kr.unshift(Wr[2])),kr.length&&(Rr="/"+kr.join(".")+Rr),this.hostname=Dr.join(".");break}}}this.hostname.length>he?this.hostname="":this.hostname=this.hostname.toLowerCase(),Vr||(this.hostname=V.toASCII(this.hostname));var Kr=this.port?":"+this.port:"",Nr=this.hostname||"";this.host=Nr+Kr,this.href+=this.host,Vr&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),Rr[0]!=="/"&&(Rr="/"+Rr))}if(!Ve[vr])for(var gr=0,Tr=Ie.length;gr<Tr;gr++){var jr=Ie[gr];if(Rr.indexOf(jr)!==-1){var Qr=encodeURIComponent(jr);Qr===jr&&(Qr=escape(jr)),Rr=Rr.split(jr).join(Qr)}}var ca=Rr.indexOf("#");ca!==-1&&(this.hash=Rr.substr(ca),Rr=Rr.slice(0,ca));var Po=Rr.indexOf("?");if(Po!==-1?(this.search=Rr.substr(Po),this.query=Rr.substr(Po+1),nr&&(this.query=Ue.parse(this.query)),Rr=Rr.slice(0,Po)):nr&&(this.search="",this.query={}),Rr&&(this.pathname=Rr),Et[vr]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var Kr=this.pathname||"",Wa=this.search||"";this.path=Kr+Wa}return this.href=this.format(),this};function kt(ar){return z.isString(ar)&&(ar=qe(ar)),ar instanceof re?ar.format():re.prototype.format.call(ar)}re.prototype.format=function(){var ar=this.auth||"";ar&&(ar=encodeURIComponent(ar),ar=ar.replace(/%3A/i,":"),ar+="@");var nr=this.protocol||"",ur=this.pathname||"",cr=this.hash||"",mr=!1,hr="";this.host?mr=ar+this.host:this.hostname&&(mr=ar+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]"),this.port&&(mr+=":"+this.port)),this.query&&z.isObject(this.query)&&Object.keys(this.query).length&&(hr=Ue.stringify(this.query));var br=this.search||hr&&"?"+hr||"";return nr&&nr.substr(-1)!==":"&&(nr+=":"),this.slashes||(!nr||Et[nr])&&mr!==!1?(mr="//"+(mr||""),ur&&ur.charAt(0)!=="/"&&(ur="/"+ur)):mr||(mr=""),cr&&cr.charAt(0)!=="#"&&(cr="#"+cr),br&&br.charAt(0)!=="?"&&(br="?"+br),ur=ur.replace(/[?#]/g,function(Rr){return encodeURIComponent(Rr)}),br=br.replace("#","%23"),nr+mr+ur+br+cr};function tr(ar,nr){retur
stack : % s ` ,Date(),tr, $ .pid,Ar.name,Ar.message,Ar.stack);return}var Sa=qe;qe=null;var sa={};In&&(Cr=In.statusCode,sa=In.headers);var qa=Date.now()-ar;Dr&&(Dr.contentDownload=qa),de("[%sms] done, %s bytes HTTP %s %s %s %s, keepAliveSocket: %s, timing: %j",qa,Tr,Cr,Rr.method,Rr.host,Rr.path,Gr,Dr);var To={status:Cr,statusCode:Cr,headers:sa,size:Tr,aborted:Mr,rt:qa,keepAliveSocket:Gr,data:On,requestUrls:Ue.requestUrls,timing:Dr,remoteAddress:yr,remotePort:Sr};if(Ar){var Hi="";hr&&typeof hr.getCurrentStatus=="function"&&(Hi=", agent status: "+JSON.stringify(hr.getCurrentStatus())),Ar.message+=", "+Rr.method+" "+Et+" "+Cr+" (connected: "+Vr+", keepalive socket: "+Gr+Hi+ ` )
headers : ` +JSON.stringify(sa),Ar.data=On,Ar.path=Rr.path,Ar.status=Cr,Ar.headers=sa,Ar.res=To}Sa(Ar,On,Ue.streaming?In:To),Ue.emitter&&(rr.url=Et,rr.socket=Kn&&Kn.connection,rr.options=Rr,rr.size=Lr,Ue.emitter.emit("response",{requestId:tr,error:Ar,ctx:Ue.ctx,req:rr,res:To}))}function Nr(Ar){var On=null;if(Ue.followRedirect&&statuses.redirect[Ar.statusCode]){Ue._followRedirectCount=(Ue._followRedirectCount||0)+1;var In=Ar.headers.location;if(!In)On=new Error("Got statusCode "+Ar.statusCode+" but cannot resolve next location from headers"),On.name="FollowRedirectError";else if(Ue._followRedirectCount>Ue.maxRedirects)On=new Error("Exceeded maxRedirects. Probably stuck in a redirect loop "+Et),On.name="MaxRedirectError";else{var Sa=Ue.formatRedirectUrl?Ue.formatRedirectUrl(Et,In):ie.resolve(Et,In);de("Request#%d %s: ` redirected ` from %s to %s",tr,Rr.path,Et,Sa),Wr(),Ue.headers&&Ue.headers.Host&&Ce.test(In)&&(Ue.headers.Host=null);var sa=qe;return qe=null,L.requestWithCallback(Sa,Ue,sa),{redirect:!0,error:null}}}return{redirect:!1,error:On}}Ue.gzip&&!Rr.headers["Accept-Encoding"]&&!Rr.headers["accept-encoding"]&&(Rr.headers["Accept-Encoding"]="gzip");function jr(Ar,On,In){var Sa=Ar.headers["content-encoding"];return In(null,On,Sa)}var Qr=Ue.writeStream;de("Request#%d %s %s with headers %j, options.path: %s",tr,ur,Et,Rr.headers,Rr.path),Ue.requestUrls.push(Et);function ca(Ar){if(Dr&&(Dr.waiting=Date.now()-ar),de("Request#%d %s ` req response ` event emit: status %d, headers: %j",tr,Et,Ar.statusCode,Ar.headers),Ue.streaming){var On=Nr(Ar);if(On.redirect){Ar.resume();return}return On.error?(Ar.resume(),Kr(On.error,null,Ar)):Kr(null,null,Ar)}if(Ar.on("close",function(){de("Request#%d %s: ` res close ` event emit, total size %d",tr,Et,Tr)}),Ar.on("error",function(){de("Request#%d %s: ` res error ` event emit, total size %d",tr,Et,Tr)}),Ar.on("aborted",function(){Mr=!0,de("Request#%d %s: ` res aborted ` event emit, total size %d",tr,Et,Tr)}),Qr){var In=Nr(Ar);if(In.redirect){Ar.resume();return}return In.error?(Ar.resume(),Qr.end(),Kr(In.error,null,Ar)):(Ue.consumeWriteStream===!1?Ar.on("end",Kr.bind(null,null,null,Ar)):Qr.on("close",function(){de("Request#%d %s: writeStream close event emitted",tr,Et),Kr(zr||null,null,Ar)}),Ar.pipe(Qr))}var Sa=[];Ar.on("data",function(sa){de("Request#%d %s: ` res data ` event emit, size %d",tr,Et,sa.length),Tr+=sa.length,Sa.push(sa)}),Ar.on("end",function(){var sa=j.concat(Sa,Tr);if(de("Request#%d %s: ` res end ` event emit, total size %d, _dumped: %s",tr,Et,Tr,Ar._dumped),zr)return Kr(zr,sa,Ar);var qa=Nr(Ar);if(qa.error)return Kr(qa.error,sa,Ar);qa.redirect||jr(Ar,sa,function(To,Hi,na){if(To)return Kr(To,sa,Ar);if(!na&&Ve.indexOf(Ue.dataType)>=0){try{Hi=decodeBodyByCharset(Hi,Ar)}catch(Ds){return de("decodeBodyByCharset error: %s",Ds),Kr(null,Hi,Ar)}if(Ue.dataType==="json")if(Tr===0)Hi=null;else{var Ma=parseJSON(Hi,br);Ma.error?To=Ma.error:Hi=Ma.data}}Mr&&de("Request#%d %s: Remote socket was terminated before ` response . end ( ) ` was called",tr,Et),Kr(To,Hi,Ar)})})}var Po,Wa;Array.isArray(Ue.timeout)?(Po=pe(Ue.timeout[0]),Wa=pe(Ue.timeout[1])):Po=Wa=pe(Ue.timeout),de("ConnectTimeout: %d, ResponseTimeout: %d",Po,Wa);function qo(){de("Connect timer ticking, timeout: %d",Po),_r=setTimeout(function(){_r=null,Cr===-1&&(Cr=-2);var Ar="Connect timeout for "+Po+"ms",On="ConnectionTimeoutError";Kn.socket||(On="SocketAssignTimeoutError",Ar+=", working sockets is full"),zr=new Error(Ar),zr.name=On,zr.requestId=tr,de("ConnectTimeout: Request#%d %s %s: %s, connected: %s",tr,Et,zr.name,Ar,Vr),Hr()},Po)}function ds(){de("Response timer ticking, timeout: %d",Wa),Fr=setTimeout(function(){Fr=null;var Ar="Response timeout for "+Wa+"ms",On="ResponseTimeoutError";zr=new Error(Ar),zr.name=On,zr.requestId=tr,de("ResponseTimeout: Request#%d %s %s: %s, connected: %s",tr,Et,zr.name,Ar,Vr),Hr()},Wa)}var Kn;Rr.mode=Ue.mode?Ue.mode:"";try{Kn=mr.request(Rr,ca)}catch(Ar){return Kr(Ar)}typeof window>"u"?qo():Kn.on("requestTimeout",function(){Cr===-1&&(Cr=-2);var Ar="Connect timeout for "+Po+"ms",On="ConnectionTimeoutError";zr=new Error(Ar),zr
2024-08-21 13:12:53 +08:00
* The buffer module from node . js , for the browser .
*
* @ author Feross Aboukhadijeh < https : //feross.org>
* @ license MIT
2024-08-25 11:35:35 +08:00
* / ( f u n c t i o n ( e ) { v a r t = b a s e 6 4 J s , y = i e e e 7 5 4 , n = 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 ; e . B u f f e r = j , e . S l o w B u f f e r = C e , e . I N S P E C T _ M A X _ B Y T E S = 5 0 ; v a r k = 2 1 4 7 4 8 3 6 4 7 ; e . k M a x L e n g t h = k , j . T Y P E D _ A R R A Y _ S U P P O R T = L ( ) , ! j . 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 ( ) { t r y { v a r y r = n e w U i n t 8 A r r a y ( 1 ) , S r = { 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 ( S r , 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 ( y r , S r ) , y r . 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 ( j . 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 ( j . 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 ( j . 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 ( j . 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 $ ( y r ) { i f ( y r > k ) 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 " ' + y r + ' " 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 S r = n e w U i n t 8 A r r a y ( y r ) ; 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 ( S r , j . p r o t o t y p e ) , S r } f u n c t i o n j ( y r , S r , D r ) { i f ( t y p e o f y r = = " n u m b e r " ) { i f ( t y p e o f S r = = " 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 i e ( y r ) } r e t u r n V ( y r , S r , D r ) } j . p o o l S i z e = 8 1 9 2 ; f u n c t i o n V ( y r , S r , D r ) { i f ( t y p e o f y r = = " s t r i n g " ) r e t u r n o e ( y r , S r ) ; i f ( A r r a y B u f f e r . i s V i e w ( y r ) ) r e t u r n d e ( y r ) ; i f ( y r = = 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 y r ) ; i f ( T r ( y r , A r r a y B u f f e r ) | | y r & & T r ( y r . 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 " & & ( T r ( y r , S h a r e d A r r a y B u f f e r ) | | y r & & T r ( y r . 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 p e ( y r , S r , D r ) ; i f ( t y p e o f y r = = " 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 k r = y r . v a l u e O f & & y r . v a l u e O f ( ) ; i f ( k r ! = n u l l & & k r ! = = y r ) r e t u r n j . f r o m ( k r , S r , D r ) ; v a r W r = I e ( y r ) ; i f ( W r ) r e t u r n W r ; 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 y r [ 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 j . f r o m ( y r [ S y m b o l . t o P r i m i t i v e ] ( " s t r i n g " ) , S r , D r ) ; 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 y r ) } j . f r o m = f u n c t i o n ( y r , S r , D r ) { r e t u r n V ( y r , S r , D r ) } , O b j e c t . s e t P r o t o t y p e O f ( j . 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 ( j , U i n t 8 A r r a y ) ; f u n c t i o n z ( y r ) { i f ( t y p e o f y r ! = " 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 ( y r < 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 " ' + y r + ' " 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 r e ( y r , S r , D r ) { r e t u r n z ( y r ) , y r < = 0 ? $ ( y r ) : S r ! = = v o i d 0 ? t y p e o f D r = = " s t r i n g " ? $ ( y r ) . f i l l ( S r , D r ) : $ ( y r ) . f i l l ( S r ) : $ ( y r ) } j . a l l o c = f u n c t i o n ( y r , S r , D r ) { r e t u r n r e ( y r , S r , D r ) } ; f u n c t i o n i e ( y r ) { r e t u r n z ( y r ) , $ ( y r < 0 ? 0 : _ e ( y r ) | 0 ) } j . a l l o c U n s a f e = f u n c t i o n ( y r ) { r e t u r n i e ( y r ) } , j . a l l o c U n s a f e S l o w = f u n c t i o n ( y r ) { r e t u r n i e ( y r ) } ; f u n c t i o n o e ( y r , S r ) { i f ( ( t y p e o f S r ! = " s t r i n g " | | S r = = = " " ) & & ( S r = " u t f 8 " ) , ! j . i s E n c o d i n g ( S r ) ) 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 : " + S r ) ; v a r D r = h e ( y r , S r ) | 0 , k r = $ ( D r ) , W r = k r . w r i t e ( y r , S r ) ; r e t u r n W r ! = = D r & & ( k r = k r . s l i c e ( 0 , W r ) ) , k r } f u n c t i o n u e ( y r ) { f o r ( v a r S r = y r . l e n g t h < 0 ? 0 : _ e ( y r . l e n g t h ) | 0 , D r = $ ( S r ) , k r = 0 ; k r < S r ; k r + = 1 ) D r [ k r ] = y r [ k r ] & 2 5 5 ; r e t u r n D r } f u n c t i o n d e ( y r ) { i f ( T r ( y r , U i n t 8 A r r a y ) ) { v a r S r = n e w U i n t 8 A r r a y ( y r ) ; r e t u r n p e ( S r . b u f f e r , S r . b y t e O f f s e t , S r . b y t e L e n g t h ) } r e t u r n u e ( y r ) } f u n c t i o n p e ( y r , S r , D r ) { i f ( S r < 0 | | y r . b y t e L e n g t h < S r ) 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 ( y r . b y t e L e n g t h < S r + ( D r | | 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 k r ; r e t u r n S r = = = v o i d 0 & & D r = = = v o i d 0 ? k r = n e w U i n t 8 A r r a y ( y r ) : D r = = = v o i d 0 ? k r = n e w U i n t 8 A r r a y ( y r , S r ) : k r = n e w U i n t 8 A r r a y ( y r , S r , D r ) , O b j e c t . s e t P r o t o t y p e O f ( k r , j . p r o t o t y p e ) , k r } f u n c t i o n I e ( y r ) { i f ( j . i s B u f f e r ( y r ) ) { v a r S r = _ e ( y r . l e n g t h ) | 0 , D r = $ ( S r ) ; r e t u r n D r . l e n g t h = = = 0 | | y r . c o p y ( D r , 0 , 0 , S r ) , D r } i f ( y r . l e n g t h ! = = v o i d 0 ) r e t u r n t y p e o f y r . l e n g t h ! = " n u m b e r " | | C r ( y r . l e n g t h ) ? $ ( 0 ) : u e ( y r ) ; i f ( y r . t y p e = = = " B u f f e r " & & A r r a y . i s A r r a y ( y r . d a t a ) ) r e t u r n u e ( y r . d a t a ) } f u n c t i o n _ e ( y r ) { i f ( y r > = k ) 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 " + k . t o S t r i n g ( 1 6 ) + " b y t e s " ) ; r e t u r n y r | 0 } f u n c t i o n C e ( y r ) { r e t u r n + y r ! = y r & & (
` )>-1&&(Fr?Vr=Vr.split( `
2024-08-22 19:23:55 +08:00
` ).map(function(Tr){return" "+Tr}).join( `
2024-08-21 13:12:53 +08:00
` ).slice(2):Vr= `
` +Vr.split( `
2024-08-22 19:23:55 +08:00
` ).map(function(Tr){return" "+Tr}).join( `
2024-08-25 11:35:35 +08:00
` ))):Vr=vr.stylize("[Circular]","special")),Ue(zr)){if(Fr&&_r.match(/^ \d + $ /))return Vr;zr=JSON.stringify(""+_r),zr.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)" $ /)?(zr=zr.slice(1,-1),zr=vr.stylize(zr,"name")):(zr=zr.replace(/'/g," \\ '").replace(/ \\ "/g,'"').replace(/(^"|" $ )/g,"'"),zr=vr.stylize(zr,"string"))}return zr+": "+Vr}function _e(vr,Ir,Lr){var gr=vr.reduce(function(_r,Fr){return Fr.indexOf( `
` )>=0,_r+Fr.replace(/ \u 001b \[ \d \d ?m/g,"").length+1},0);return gr>60?Lr[0]+(Ir===""?"":Ir+ `
2024-08-21 13:12:53 +08:00
` )+" "+vr.join( ` ,
2024-08-25 11:35:35 +08:00
` )+" "+Lr[1]:Lr[0]+Ir+" "+vr.join(", ")+" "+Lr[1]}e.types=types;function Ce(vr){return Array.isArray(vr)}e.isArray=Ce;function he(vr){return typeof vr=="boolean"}e.isBoolean=he;function Ne(vr){return vr===null}e.isNull=Ne;function Fe(vr){return vr==null}e.isNullOrUndefined=Fe;function Ve(vr){return typeof vr=="number"}e.isNumber=Ve;function jt(vr){return typeof vr=="string"}e.isString=jt;function Et(vr){return typeof vr=="symbol"}e.isSymbol=Et;function Ue(vr){return vr===void 0}e.isUndefined=Ue;function qe(vr){return kt(vr)&&ur(vr)==="[object RegExp]"}e.isRegExp=qe,e.types.isRegExp=qe;function kt(vr){return typeof vr=="object"&&vr!==null}e.isObject=kt;function tr(vr){return kt(vr)&&ur(vr)==="[object Date]"}e.isDate=tr,e.types.isDate=tr;function rr(vr){return kt(vr)&&(ur(vr)==="[object Error]"||vr instanceof Error)}e.isError=rr,e.types.isNativeError=rr;function ar(vr){return typeof vr=="function"}e.isFunction=ar;function nr(vr){return vr===null||typeof vr=="boolean"||typeof vr=="number"||typeof vr=="string"||typeof vr=="symbol"||typeof vr>"u"}e.isPrimitive=nr,e.isBuffer=isBufferBrowser;function ur(vr){return Object.prototype.toString.call(vr)}function cr(vr){return vr<10?"0"+vr.toString(10):vr.toString(10)}var mr=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function hr(){var vr=new Date,Ir=[cr(vr.getHours()),cr(vr.getMinutes()),cr(vr.getSeconds())].join(":");return[vr.getDate(),mr[vr.getMonth()],Ir].join(" ")}e.log=function(){console.log("%s - %s",hr(),e.format.apply(e,arguments))},e.inherits=inherits_browserExports,e._extend=function(vr,Ir){if(!Ir||!kt(Ir))return vr;for(var Lr=Object.keys(Ir),gr=Lr.length;gr--;)vr[Lr[gr]]=Ir[Lr[gr]];return vr};function br(vr,Ir){return Object.prototype.hasOwnProperty.call(vr,Ir)}var Rr=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;e.promisify=function(Ir){if(typeof Ir!="function")throw new TypeError('The "original" argument must be of type Function');if(Rr&&Ir[Rr]){var Lr=Ir[Rr];if(typeof Lr!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(Lr,Rr,{value:Lr,enumerable:!1,writable:!1,configurable:!0}),Lr}function Lr(){for(var gr,_r,Fr=new Promise(function(Gr,Tr){gr=Gr,_r=Tr}),zr=[],Vr=0;Vr<arguments.length;Vr++)zr.push(arguments[Vr]);zr.push(function(Gr,Tr){Gr?_r(Gr):gr(Tr)});try{Ir.apply(this,zr)}catch(Gr){_r(Gr)}return Fr}return Object.setPrototypeOf(Lr,Object.getPrototypeOf(Ir)),Rr&&Object.defineProperty(Lr,Rr,{value:Lr,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(Lr,n(Ir))},e.promisify.custom=Rr;function xr(vr,Ir){if(!vr){var Lr=new Error("Promise was rejected with a falsy value");Lr.reason=vr,vr=Lr}return Ir(vr)}function Er(vr){if(typeof vr!="function")throw new TypeError('The "original" argument must be of type Function');function Ir(){for(var Lr=[],gr=0;gr<arguments.length;gr++)Lr.push(arguments[gr]);var _r=Lr.pop();if(typeof _r!="function")throw new TypeError("The last argument must be of type Function");var Fr=this,zr=function(){return _r.apply(Fr,arguments)};vr.apply(this,Lr).then(function(Vr){t.nextTick(zr.bind(null,null,Vr))},function(Vr){t.nextTick(xr.bind(null,Vr,zr))})}return Object.setPrototypeOf(Ir,Object.getPrototypeOf(vr)),Object.defineProperties(Ir,n(vr)),Ir}e.callbackify=Er})(util $ 5);var buffer_list,hasRequiredBuffer_list;function requireBuffer_list(){if(hasRequiredBuffer_list)return buffer_list;hasRequiredBuffer_list=1;function e(de,pe){var Ie=Object.keys(de);if(Object.getOwnPropertySymbols){var _e=Object.getOwnPropertySymbols(de);pe&&(_e=_e.filter(function(Ce){return Object.getOwnPropertyDescriptor(de,Ce).enumerable})),Ie.push.apply(Ie,_e)}return Ie}function t(de){for(var pe=1;pe<arguments.length;pe++){var Ie=arguments[pe]!=null?arguments[pe]:{};pe%2?e(Object(Ie),!0).forEach(function(_e){y(de,_e,Ie[_e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(de,Object.getOwnPropertyDescriptors(Ie)):e(Object(Ie)).forEach(function(_e){Object.defineProperty(de,_e,Object.getOwnPropertyDescriptor(Ie,_e))})}return de}function y(de
2024-08-21 13:12:53 +08:00
` ,y);y=k===-1?e.length:k}else if(n!==-1&&e[y]==="/"&&e[y+1]==="*"){let k=e.indexOf("*/",y);k!==-1?(y=k+2,n=e.indexOf("*/",y)):(t+=e[y],y++)}else t+=e[y],y++;return t}function parseParams(e){const t=stripComments(e.toString());let y=t.match(FN_ARGS);if(y||(y=t.match(ARROW_FN_ARGS)),!y)throw new Error( ` could not parse args in autoInject
Source :
2024-08-25 11:35:35 +08:00
` +t);let[,n]=y;return n.replace(/ \s /g,"").split(FN_ARG_SPLIT).map(k=>k.replace(FN_ARG,"").trim())}function autoInject(e,t){var y={};return Object.keys(e).forEach(n=>{var k=e[n],L, $ =isAsync(k),j=! $ &&k.length===1|| $ &&k.length===0;if(Array.isArray(k))L=[...k],k=L.pop(),y[n]=L.concat(L.length>0?V:k);else if(j)y[n]=k;else{if(L=parseParams(k),k.length===0&&! $ &&L.length===0)throw new Error("autoInject task functions require explicit parameters."); $ ||L.pop(),y[n]=L.concat(V)}function V(z,re){var ie=L.map(oe=>z[oe]);ie.push(re),wrapAsync(k)(...ie)}}),auto(y,t)}class DLL{constructor(){this.head=this.tail=null,this.length=0}removeLink(t){return t.prev?t.prev.next=t.next:this.head=t.next,t.next?t.next.prev=t.prev:this.tail=t.prev,t.prev=t.next=null,this.length-=1,t}empty(){for(;this.head;)this.shift();return this}insertAfter(t,y){y.prev=t,y.next=t.next,t.next?t.next.prev=y:this.tail=y,t.next=y,this.length+=1}insertBefore(t,y){y.prev=t.prev,y.next=t,t.prev?t.prev.next=y:this.head=y,t.prev=y,this.length+=1}unshift(t){this.head?this.insertBefore(this.head,t):setInitial(this,t)}push(t){this.tail?this.insertAfter(this.tail,t):setInitial(this,t)}shift(){return this.head&&this.removeLink(this.head)}pop(){return this.tail&&this.removeLink(this.tail)}toArray(){return[...this]}*[Symbol.iterator](){for(var t=this.head;t;)yield t.data,t=t.next}remove(t){for(var y=this.head;y;){var{next:n}=y;t(y)&&this.removeLink(y),y=n}return this}}function setInitial(e,t){e.length=1,e.head=e.tail=t}function queue $ 1(e,t,y){if(t==null)t=1;else if(t===0)throw new RangeError("Concurrency must not be zero");var n=wrapAsync(e),k=0,L=[];const $ ={error:[],drain:[],saturated:[],unsaturated:[],empty:[]};function j(Ce,he){ $ [Ce].push(he)}function V(Ce,he){const Ne=(...Fe)=>{z(Ce,Ne),he(...Fe)}; $ [Ce].push(Ne)}function z(Ce,he){if(!Ce)return Object.keys( $ ).forEach(Ne=> $ [Ne]=[]);if(!he)return $ [Ce]=[]; $ [Ce]= $ [Ce].filter(Ne=>Ne!==he)}function re(Ce,...he){ $ [Ce].forEach(Ne=>Ne(...he))}var ie=!1;function oe(Ce,he,Ne,Fe){if(Fe!=null&&typeof Fe!="function")throw new Error("task callback must be a function");_e.started=!0;var Ve,jt;function Et(qe,...kt){if(qe)return Ne?jt(qe):Ve();if(kt.length<=1)return Ve(kt[0]);Ve(kt)}var Ue=_e._createTaskItem(Ce,Ne?Et:Fe||Et);if(he?_e._tasks.unshift(Ue):_e._tasks.push(Ue),ie||(ie=!0,setImmediate $ 1 $ 1(()=>{ie=!1,_e.process()})),Ne||!Fe)return new Promise((qe,kt)=>{Ve=qe,jt=kt})}function ue(Ce){return function(he,...Ne){k-=1;for(var Fe=0,Ve=Ce.length;Fe<Ve;Fe++){var jt=Ce[Fe],Et=L.indexOf(jt);Et===0?L.shift():Et>0&&L.splice(Et,1),jt.callback(he,...Ne),he!=null&&re("error",he,jt.data)}k<=_e.concurrency-_e.buffer&&re("unsaturated"),_e.idle()&&re("drain"),_e.process()}}function de(Ce){return Ce.length===0&&_e.idle()?(setImmediate $ 1 $ 1(()=>re("drain")),!0):!1}const pe=Ce=>he=>{if(!he)return new Promise((Ne,Fe)=>{V(Ce,(Ve,jt)=>{if(Ve)return Fe(Ve);Ne(jt)})});z(Ce),j(Ce,he)};var Ie=!1,_e={_tasks:new DLL,_createTaskItem(Ce,he){return{data:Ce,callback:he}},*[Symbol.iterator](){yield*_e._tasks[Symbol.iterator]()},concurrency:t,payload:y,buffer:t/4,started:!1,paused:!1,push(Ce,he){return Array.isArray(Ce)?de(Ce)?void 0:Ce.map(Ne=>oe(Ne,!1,!1,he)):oe(Ce,!1,!1,he)},pushAsync(Ce,he){return Array.isArray(Ce)?de(Ce)?void 0:Ce.map(Ne=>oe(Ne,!1,!0,he)):oe(Ce,!1,!0,he)},kill(){z(),_e._tasks.empty()},unshift(Ce,he){return Array.isArray(Ce)?de(Ce)?void 0:Ce.map(Ne=>oe(Ne,!0,!1,he)):oe(Ce,!0,!1,he)},unshiftAsync(Ce,he){return Array.isArray(Ce)?de(Ce)?void 0:Ce.map(Ne=>oe(Ne,!0,!0,he)):oe(Ce,!0,!0,he)},remove(Ce){_e._tasks.remove(Ce)},process(){if(!Ie){for(Ie=!0;!_e.paused&&k<_e.concurrency&&_e._tasks.length;){var Ce=[],he=[],Ne=_e._tasks.length;_e.payload&&(Ne=Math.min(Ne,_e.payload));for(var Fe=0;Fe<Ne;Fe++){var Ve=_e._tasks.shift();Ce.push(Ve),L.push(Ve),he.push(Ve.data)}k+=1,_e._tasks.length===0&&re("empty"),k===_e.concurrency&&re("saturated");var jt=onlyOnce(ue(Ce));n(he,jt)}Ie=!1}},length(){return _e._tasks.length},running(){return k},workersList(){return L},idle(){return _e._tasks.length+k===0},pause(){_e.paused=!0},resume(){_e.paused!==!1&&(_e.paused=!1,setImme
2024-08-21 13:12:53 +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-25 11:35:35 +08:00
* /lodash.exports;(function(e,t){(function(){var y,n="4.17.21",k=200,L="Unsupported core-js use. Try https:/ / npms . io / search ? q = ponyfill . ",$=" Expected a function ",j=" Invalid ` variable ` option passed into ` _.template ` ",V=" _ _lodash _hash _undefined _ _ ",z=500,re=" _ _lodash _placeholder _ _ ",ie=1,oe=2,ue=4,de=1,pe=2,Ie=1,_e=2,Ce=4,he=8,Ne=16,Fe=32,Ve=64,jt=128,Et=256,Ue=512,qe=30,kt=" ... ",tr=800,rr=16,ar=1,nr=2,ur=3,cr=1/0,mr=9007199254740991,hr=17976931348623157e292,br=NaN,Rr=4294967295,xr=Rr-1,Er=Rr>>>1,vr=[[" ary ",jt],[" bind ",Ie],[" bindKey ",_e],[" curry ",he],[" curryRight ",Ne],[" flip ",Ue],[" partial ",Fe],[" partialRight ",Ve],[" rearg ",Et]],Ir=" [ object Arguments ] ",Lr=" [ object Array ] ",gr=" [ object AsyncFunction ] ",_r=" [ object Boolean ] ",Fr=" [ object Date ] ",zr=" [ object DOMException ] ",Vr=" [ object Error ] ",Gr=" [ object Function ] ",Tr=" [ object GeneratorFunction ] ",Cr=" [ object Map ] ",Mr=" [ object Number ] ",yr=" [ object Null ] ",Sr=" [ object Object ] ",Dr=" [ object Promise ] ",kr=" [ object Proxy ] ",Wr=" [ object RegExp ] ",Kr=" [ object Set ] ",Nr=" [ object String ] ",jr=" [ object Symbol ] ",Qr=" [ object Undefined ] ",ca=" [ object WeakMap ] ",Po=" [ object WeakSet ] ",Wa=" [ object ArrayBuffer ] ",qo=" [ object DataView ] ",ds=" [ object Float32Array ] ",Kn=" [ object Float64Array ] ",Hr=" [ object Int8Array ] ",Ar=" [ object Int16Array ] ",On=" [ object Int32Array ] ",In=" [ object Uint8Array ] ",Sa=" [ object Uint8ClampedArray ] ",sa=" [ object Uint16Array ] ",qa=" [ object Uint32Array ] ",To=/\b__p \+= '';/g,Hi=/\b(__p \+=) '' \+/g,na=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Ma=/&(?:amp|lt|gt|quot|#39);/g,Ds=/[&<>" ']/g,ps=RegExp(Ma.source),yl=RegExp(Ds.source),$l=/<%-([\s\S]+?)%>/g,Ou=/<%([\s\S]+?)%>/g,As=/<%=([\s\S]+?)%>/g,Uu=/\.|\[(?:[^[\]]*|(["' ] ) ( ? : ( ? ! \ 1 ) [ ^ \ \ ] | \ \ . ) * ? \ 1 ) \ ] / , ju = /^\w*$/ , $c = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g , Oc = /[\\^$.*+?()[\]{}|]/g , vc = RegExp ( Oc . source ) , Yl = /^\s+/ , ms = /\s/ , Rs = /\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/ , Hs = /\{\n\/\* \[wrapped with (.+)\] \*/ , zs = /,? & / , Br = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g , Zn = /[()=,{}\[\]\/\s]/ , hn = /\\(\\)?/g , Ln = /\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g , Vi = /\w*$/ , Wi = /^[-+]0x[0-9a-f]+$/i , pa = /^0b[01]+$/i , Ki = /^\[object .+?Constructor\]$/ , Xo = /^0o[0-7]+$/i , Eo = /^(?:0|[1-9]\d*)$/ , Fo = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g , _s = /($^)/ , An = /['\n\r\u2028\u2029\\]/g , Vo = "\\ud800-\\udfff" , pu = "\\u0300-\\u036f" , Io = "\\ufe20-\\ufe2f" , yu = "\\u20d0-\\u20ff" , Hl = pu + Io + yu , lc = "\\u2700-\\u27bf" , Vu = "a-z\\xdf-\\xf6\\xf8-\\xff" , Ju = "\\xac\\xb1\\xd7\\xf7" , kn = "\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf" , ns = "\\u2000-\\u206f" , Wl = " \\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" , Tu = "A-Z\\xc0-\\xd6\\xd8-\\xde" , _l = "\\ufe0e\\ufe0f" , Hu = Ju + kn + ns + Wl , Rc = "['’ ]" , ld = "[" + Vo + "]" , hd = "[" + Hu + "]" , yp = "[" + Hl + "]" , fp = "\\d+" , kc = "[" + lc + "]" , qd = "[" + Vu + "]" , od = "[^" + Vo + Hu + fp + lc + Vu + Tu + "]" , kp = "\\ud83c[\\udffb-\\udfff]" , Ap = "(?:" + yp + "|" + kp + ")" , xf = "[^" + Vo + "]" , kf = "(?:\\ud83c[\\udde6-\\uddff]){2}" , pf = "[\\ud800-\\udbff][\\udc00-\\udfff]" , Mp = "[" + Tu + "]" , hm = "\\u200d" , If = "(?:" + qd + "|" + od + ")" , Cc = "(?:" + Mp + "|" + od + ")" , Nf = "(?:" + Rc + "(?:d|ll|m|re|s|t|ve))?" , xp = "(?:" + Rc + "(?:D|LL|M|RE|S|T|VE))?" , mf = Ap + "?" , zf = "[" + _l + "]?" , Af = "(?:" + hm + "(?:" + [ xf , kf , pf ] . join ( "|" ) + ")" + zf + mf + ")*" , Gf = "\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])" , Wp = "\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])" , gm = zf + mf + Af , Om = "(?:" + [ kc , kf , pf ] . join ( "|" ) + ")" + gm , ef = "(?:" + [ xf + yp + "?" , yp , kf , pf , ld ] . join ( "|" ) + ")" , rm = RegExp ( Rc , "g" ) , Mf = RegExp ( yp , "g" ) , mh = RegExp ( kp + "(?=" + kp + ")|" + ef + gm , "g" ) , Bf = RegExp ( [ Mp + "?" + qd + "+" + Nf + "(?=" + [ hd , Mp , "$" ] . join ( "|" ) + ")" , Cc + "+" + xp + "(?=" + [ hd , Mp + If , "$" ] . join ( "|" ) + ")" , Mp + "?" + If + "+" + Nf , Mp + "+" + xp , Wp , Gf , fp , Om ] . join ( "|" ) , "g" ) , Ph = RegExp ( "[" + hm + Vo + Hl + _l + "]" ) , _m = /[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/ , Rm = [ "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" , "_" , "clearTimeout" , " isF
2024-08-21 13:12:53 +08:00
/* [wrapped with `+fr+`] */
2024-08-25 11:35:35 +08:00
` )}function er(sr){return Rd(sr)||g0(sr)||!!(Ih&&sr&&sr[Ih])}function ir(sr,fr){var Ur=typeof sr;return fr=fr??mr,!!fr&&(Ur=="number"||Ur!="symbol"&&Eo.test(sr))&&sr>-1&&sr%1==0&&sr<fr}function lr(sr,fr,Ur){if(!Zp(Ur))return!1;var Li=typeof fr;return(Li=="number"?lh(Ur)&&ir(fr,Ur.length):Li=="string"&&fr in Ur)?Wh(Ur[fr],sr):!1}function dr(sr,fr){if(Rd(sr))return!1;var Ur=typeof sr;return Ur=="number"||Ur=="symbol"||Ur=="boolean"||sr==null||wh(sr)?!0:ju.test(sr)||!Uu.test(sr)||fr!=null&&sr in Wd(fr)}function $ r(sr){var fr=typeof sr;return fr=="string"||fr=="number"||fr=="symbol"||fr=="boolean"?sr!=="__proto__":sr===null}function Zr(sr){var fr=Vs(sr),Ur=Ka[fr];if(typeof Ur!="function"||!(fr in Ul.prototype))return!1;if(sr===Ur)return!0;var Li=hs(Ur);return!!Li&&sr===Li[0]}function Hn(sr){return!!kd&&kd in sr}var mi=Xf?s0:q0;function ma(sr){var fr=sr&&sr.constructor,Ur=typeof fr=="function"&&fr.prototype||Ef;return sr===Ur}function io(sr){return sr===sr&&!Zp(sr)}function gs(sr,fr){return function(Ur){return Ur==null?!1:Ur[sr]===fr&&(fr!==y||sr in Wd(Ur))}}function vs(sr){var fr=x0(sr,function(Li){return Ur.size===z&&Ur.clear(),Li}),Ur=fr.cache;return fr}function xs(sr,fr){var Ur=sr[1],Li=fr[1],Qa=Ur|Li,os=Qa<(Ie|_e|jt), $ s=Li==jt&&Ur==he||Li==jt&&Ur==Et&&sr[7].length<=fr[8]||Li==(jt|Et)&&fr[7].length<=fr[8]&&Ur==he;if(!(os|| $ s))return sr;Li&Ie&&(sr[2]=fr[2],Qa|=Ur&Ie?0:Ce);var Xs=fr[3];if(Xs){var Dl=sr[3];sr[3]=Dl?ji(Dl,Xs,fr[4]):Xs,sr[4]=Dl?Dp(sr[3],re):fr[4]}return Xs=fr[5],Xs&&(Dl=sr[5],sr[5]=Dl?oa(Dl,Xs,fr[6]):Xs,sr[6]=Dl?Dp(sr[5],re):fr[6]),Xs=fr[7],Xs&&(sr[7]=Xs),Li&jt&&(sr[8]=sr[8]==null?fr[8]:Bs(sr[8],fr[8])),sr[9]==null&&(sr[9]=fr[9]),sr[0]=fr[0],sr[1]=Qa,sr}function tl(sr){var fr=[];if(sr!=null)for(var Ur in Wd(sr))fr.push(Ur);return fr}function Kl(sr){return Xp.call(sr)}function cl(sr,fr,Ur){return fr=fs(fr===y?sr.length-1:fr,0),function(){for(var Li=arguments,Qa=-1,os=fs(Li.length-fr,0), $ s=jl(os);++Qa<os;) $ s[Qa]=Li[fr+Qa];Qa=-1;for(var Xs=jl(fr+1);++Qa<fr;)Xs[Qa]=Li[Qa];return Xs[fr]=Ur( $ s),Ru(sr,this,Xs)}}function hu(sr,fr){return fr.length<2?sr:cs(sr,Jp(fr,0,-1))}function vu(sr,fr){for(var Ur=sr.length,Li=Bs(fr.length,Ur),Qa=Ra(sr);Li--;){var os=fr[Li];sr[Li]=ir(os,Ur)?Qa[os]:y}return sr}function Es(sr,fr){if(!(fr==="constructor"&&typeof sr[fr]=="function")&&fr!="__proto__")return sr[fr]}var mc=qc(n0),yc=eo||function(sr,fr){return jd.setTimeout(sr,fr)},Fu=qc(c0);function fc(sr,fr,Ur){var Li=fr+"";return Fu(sr, $ e(Li,Uc(Jo(Li),Ur)))}function qc(sr){var fr=0,Ur=0;return function(){var Li=Ks(),Qa=rr-(Li-Ur);if(Ur=Li,Qa>0){if(++fr>=tr)return arguments[0]}else fr=0;return sr.apply(y,arguments)}}function Gd(sr,fr){var Ur=-1,Li=sr.length,Qa=Li-1;for(fr=fr===y?Li:fr;++Ur<fr;){var os=Rf(Ur,Qa), $ s=sr[os];sr[os]=sr[Ur],sr[Ur]= $ s}return sr.length=fr,sr}var co=vs(function(sr){var fr=[];return sr.charCodeAt(0)===46&&fr.push(""),sr.replace( $ c,function(Ur,Li,Qa,os){fr.push(Qa?os.replace(hn," $ 1"):Li||Ur)}),fr});function il(sr){if(typeof sr=="string"||wh(sr))return sr;var fr=sr+"";return fr=="0"&&1/sr==-cr?"-0":fr}function tc(sr){if(sr!=null){try{return jm.call(sr)}catch{}try{return sr+""}catch{}}return""}function Uc(sr,fr){return sd(vr,function(Ur){var Li="_."+Ur[0];fr&Ur[1]&&!Pm(sr,Li)&&sr.push(Li)}),sr.sort()}function Yc(sr){if(sr instanceof Ul)return sr.clone();var fr=new wu(sr.__wrapped__,sr.__chain__);return fr.__actions__=Ra(sr.__actions__),fr.__index__=sr.__index__,fr.__values__=sr.__values__,fr}function ep(sr,fr,Ur){(Ur?lr(sr,fr,Ur):fr===y)?fr=1:fr=fs(Ld(fr),0);var Li=sr==null?0:sr.length;if(!Li||fr<1)return[];for(var Qa=0,os=0, $ s=jl(So(Li/fr));Qa<Li;) $ s[os++]=Jp(sr,Qa,Qa+=fr);return $ s}function Sd(sr){for(var fr=-1,Ur=sr==null?0:sr.length,Li=0,Qa=[];++fr<Ur;){var os=sr[fr];os&&(Qa[Li++]=os)}return Qa}function Bd(){var sr=arguments.length;if(!sr)return[];for(var fr=jl(sr-1),Ur=arguments[0],Li=sr;Li--;)fr[Li-1]=arguments[Li];return Wf(Rd(Ur)?Ra(Ur):[Ur],zn(fr,1))}var Fd=rd(function(sr,fr){return Cf(sr)?Na(sr,zn(fr,1,Cf,!0)):[]}),Ud=rd(function(sr,fr){var Ur=Mh(fr);return Cf(Ur)&&(Ur=y),Cf(sr)?Na(sr,zn(fr,1,Cf,!0),Gs(Ur,
` ;sr.replace(Ac,function(Ed,Yd,tp,Nh,zm,Ah){return tp||(tp=Nh),zu+=sr.slice(Bu,Ah).replace(An,sm),Yd&&(Xs=!0,zu+= ` ' +
_ _e ( ` +Yd+ ` ) +
'`),zm&&(Dl=!0,zu+=`' ;
` +zm+ ` ;
_ _p += '`),tp&&(zu+=`' +
( ( _ _t = ( ` +tp+ ` ) ) == null ? '' : _ _t ) +
'`),Bu=Ah+Ed.length,Ed}),zu+=`' ;
` ;var yd=Od.call(fr,"variable")&&fr.variable;if(!yd)zu= ` with ( obj ) {
` +zu+ `
2024-08-21 13:12:53 +08:00
}
2024-08-25 11:35:35 +08:00
` ;else if(Zn.test(yd))throw new wc(j);zu=(Dl?zu.replace(To,""):zu).replace(Hi," $ 1").replace(na," $ 1;"),zu="function("+(yd||"obj")+ ` ) {
` +(yd?"": ` obj || ( obj = { } ) ;
` )+"var __t, __p = ''"+(Xs?", __e = _.escape":"")+(Dl? ` , _ _j = Array . prototype . join ;
2024-08-21 13:12:53 +08:00
function print ( ) { _ _p += _ _j . call ( arguments , '' ) }
` : ` ;
2024-08-25 11:35:35 +08:00
` )+zu+ ` return _ _p
} ` ;var $ d=C1(function(){return Ad(os,Zc+"return "+zu).apply(y, $ s)});if( $ d.source=zu,P0( $ d))throw $ d;return $ d}function Lv(sr){return bp(sr).toLowerCase()}function $ v(sr){return bp(sr).toUpperCase()}function jv(sr,fr,Ur){if(sr=bp(sr),sr&&(Ur||fr===y))return Ym(sr);if(!sr||!(fr=mm(fr)))return sr;var Li=jf(sr),Qa=jf(fr),os=tf(Li,Qa), $ s=Yf(Li,Qa)+1;return Fn(Li,os, $ s).join("")}function Fv(sr,fr,Ur){if(sr=bp(sr),sr&&(Ur||fr===y))return sr.slice(0,Hh(sr)+1);if(!sr||!(fr=mm(fr)))return sr;var Li=jf(sr),Qa=Yf(Li,jf(fr))+1;return Fn(Li,0,Qa).join("")}function Uv(sr,fr,Ur){if(sr=bp(sr),sr&&(Ur||fr===y))return sr.replace(Yl,"");if(!sr||!(fr=mm(fr)))return sr;var Li=jf(sr),Qa=tf(Li,jf(fr));return Fn(Li,Qa).join("")}function Vv(sr,fr){var Ur=qe,Li=kt;if(Zp(fr)){var Qa="separator"in fr?fr.separator:Qa;Ur="length"in fr?Ld(fr.length):Ur,Li="omission"in fr?mm(fr.omission):Li}sr=bp(sr);var os=sr.length;if(bf(sr)){var $ s=jf(sr);os= $ s.length}if(Ur>=os)return sr;var Xs=Ur-Xm(Li);if(Xs<1)return Li;var Dl= $ s?Fn( $ s,0,Xs).join(""):sr.slice(0,Xs);if(Qa===y)return Dl+Li;if( $ s&&(Xs+=Dl.length-Xs),L0(Qa)){if(sr.slice(Xs).search(Qa)){var Bu,Pu=Dl;for(Qa.global||(Qa=Zm(Qa.source,bp(Vi.exec(Qa))+"g")),Qa.lastIndex=0;Bu=Qa.exec(Pu);)var zu=Bu.index;Dl=Dl.slice(0,zu===y?Xs:zu)}}else if(sr.indexOf(mm(Qa),Xs)!=Xs){var Ac=Dl.lastIndexOf(Qa);Ac>-1&&(Dl=Dl.slice(0,Ac))}return Dl+Li}function Hv(sr){return sr=bp(sr),sr&&ps.test(sr)?sr.replace(Ma,zh):sr}var zv=Fi(function(sr,fr,Ur){return sr+(Ur?" ":"")+fr.toUpperCase()}),F0=Ta("toUpperCase");function T1(sr,fr,Ur){return sr=bp(sr),fr=Ur?y:fr,fr===y?Fh(sr)?Qh(sr):t0(sr):sr.match(fr)||[]}var C1=rd(function(sr,fr){try{return Ru(sr,y,fr)}catch(Ur){return P0(Ur)?Ur:new wc(Ur)}}),Gv=sl(function(sr,fr){return sd(fr,function(Ur){Ur=il(Ur),dm(sr,Ur,M0(sr[Ur],sr))}),sr});function qv(sr){var fr=sr==null?0:sr.length,Ur=Gs();return sr=fr?sp(sr,function(Li){if(typeof Li[1]!="function")throw new yf( $ );return[Ur(Li[0]),Li[1]]}):[],rd(function(Li){for(var Qa=-1;++Qa<fr;){var os=sr[Qa];if(Ru(os[0],this,Li))return Ru(os[1],this,Li)}})}function Wv(sr){return Mn(zp(sr,ie))}function U0(sr){return function(){return sr}}function Kv(sr,fr){return sr==null||sr!==sr?fr:sr}var Yv=ra(),Xv=ra(!0);function dh(sr){return sr}function V0(sr){return Td(typeof sr=="function"?sr:zp(sr,ie))}function eb(sr){return Qc(zp(sr,ie))}function tb(sr,fr){return rl(sr,zp(fr,ie))}var rb=rd(function(sr,fr){return function(Ur){return Pc(Ur,sr,fr)}}),nb=rd(function(sr,fr){return function(Ur){return Pc(sr,Ur,fr)}});function H0(sr,fr,Ur){var Li=tm(fr),Qa=xo(fr,Li);Ur==null&&!(Zp(fr)&&(Qa.length||!Li.length))&&(Ur=fr,fr=sr,sr=this,Qa=xo(fr,tm(fr)));var os=!(Zp(Ur)&&"chain"in Ur)||!!Ur.chain, $ s=s0(sr);return sd(Qa,function(Xs){var Dl=fr[Xs];sr[Xs]=Dl, $ s&&(sr.prototype[Xs]=function(){var Bu=this.__chain__;if(os||Bu){var Pu=sr(this.__wrapped__),zu=Pu.__actions__=Ra(this.__actions__);return zu.push({func:Dl,args:arguments,thisArg:sr}),Pu.__chain__=Bu,Pu}return Dl.apply(sr,Wf([this.value()],arguments))})}),sr}function ib(){return jd._===this&&(jd._=Pp),this}function z0(){}function ab(sr){return sr=Ld(sr),rd(function(fr){return Qu(fr,sr)})}var ob=to(sp),sb=to(_f),lb=to(Lm);function w1(sr){return dr(sr)? $ h(il(sr)):jp(sr)}function ub(sr){return function(fr){return sr==null?y:cs(sr,fr)}}var cb=Mo(),db=Mo(!0);function G0(){return[]}function q0(){return!1}function pb(){return{}}function fb(){return""}function mb(){return!0}function hb(sr,fr){if(sr=Ld(sr),sr<1||sr>mr)return[];var Ur=Rr,Li=Bs(sr,Rr);fr=Gs(fr),sr-=Rr;for(var Qa=im(Li,fr);++Ur<sr;)fr(Ur);return Qa}function gb(sr){return Rd(sr)?sp(sr,il):wh(sr)?[sr]:Ra(co(bp(sr)))}function _b(sr){var fr=++Zh;return bp(sr)+fr}var vb=Aa(function(sr,fr){return sr+fr},0),bb=Ls("ceil"),yb=Aa(function(sr,fr){return sr/fr},1),Eb=Ls("floor");function Sb(sr){return sr&&sr.length?vo(sr,dh,Us):y}function Tb(sr,fr){return sr&&sr.length?vo(sr,Gs(fr,2),Us):y}function Cb(sr){return Em(sr,dh)}function wb(sr,fr){return Em(sr,Gs(fr,2))}function xb(sr){return sr&&sr.length?vo(sr,dh,zc):y}function Nb(sr,fr){return sr&&sr.length?vo(sr,Gs(fr,2),zc):y}v
2024-08-21 13:12:53 +08:00
` :"")),y&&y()}function L( $ ){return $ .interrupt?( $ .interrupt.append=e, $ .interrupt.end=k, $ .interrupt=!1,e(!0),!0):!1}if(e(!1,t.indents+(t.name?"<"+t.name:"")+(t.attributes.length?" "+t.attributes.join(" "):"")+(n?t.name?">":"":t.name?"/>":"")+(t.indent&&n>1? `
` :"")),!n)return e(!1,t.indent? `
` :"");L(t)||k()}function attribute(e,t){return e+'="'+escapeForXML(t)+'"'}xml $ 2.exports=xml $ 1;xml $ 2.exports.element=xml $ 2.exports.Element=element;var xmlExports=xml $ 2.exports;const Xml=getDefaultExportFromCjs(xmlExports);var xml2js={},defaults $ 1={},hasRequiredDefaults;function requireDefaults(){return hasRequiredDefaults||(hasRequiredDefaults=1,(function(){defaults $ 1.defaults={"0.1":{explicitCharkey:!1,trim:!0,normalize:!0,normalizeTags:!1,attrkey:"@",charkey:"#",explicitArray:!1,ignoreAttrs:!1,mergeAttrs:!1,explicitRoot:!1,validator:null,xmlns:!1,explicitChildren:!1,childkey:"@@",charsAsChildren:!1,includeWhiteChars:!1,async:!1,strict:!0,attrNameProcessors:null,attrValueProcessors:null,tagNameProcessors:null,valueProcessors:null,emptyTag:""},"0.2":{explicitCharkey:!1,trim:!1,normalize:!1,normalizeTags:!1,attrkey:" $ ",charkey:"_",explicitArray:!0,ignoreAttrs:!1,mergeAttrs:!1,explicitRoot:!0,validator:null,xmlns:!1,explicitChildren:!1,preserveChildrenOrder:!1,childkey:" $ $ ",charsAsChildren:!1,includeWhiteChars:!1,async:!1,strict:!0,attrNameProcessors:null,attrValueProcessors:null,tagNameProcessors:null,valueProcessors:null,rootName:"root",xmldec:{version:"1.0",encoding:"UTF-8",standalone:!0},doctype:null,renderOpts:{pretty:!0,indent:" ",newline: `
2024-08-25 11:35:35 +08:00
` },headless:!1,chunkSize:1e4,emptyTag:"",cdata:!1}}}).call(commonjsGlobal)),defaults $ 1}var builder={},lib $ 1={},Utility={},hasRequiredUtility;function requireUtility(){return hasRequiredUtility||(hasRequiredUtility=1,(function(){var e,t,y,n,k,L, $ ,j=[].slice,V={}.hasOwnProperty;e=function(){var z,re,ie,oe,ue,de;if(de=arguments[0],ue=2<=arguments.length?j.call(arguments,1):[],k(Object.assign))Object.assign.apply(null,arguments);else for(z=0,ie=ue.length;z<ie;z++)if(oe=ue[z],oe!=null)for(re in oe)V.call(oe,re)&&(de[re]=oe[re]);return de},k=function(z){return!!z&&Object.prototype.toString.call(z)==="[object Function]"},L=function(z){var re;return!!z&&((re=typeof z)=="function"||re==="object")},y=function(z){return k(Array.isArray)?Array.isArray(z):Object.prototype.toString.call(z)==="[object Array]"},n=function(z){var re;if(y(z))return!z.length;for(re in z)if(V.call(z,re))return!1;return!0}, $ =function(z){var re,ie;return L(z)&&(ie=Object.getPrototypeOf(z))&&(re=ie.constructor)&&typeof re=="function"&&re instanceof re&&Function.prototype.toString.call(re)===Function.prototype.toString.call(Object)},t=function(z){return k(z.valueOf)?z.valueOf():z},Utility.assign=e,Utility.isFunction=k,Utility.isObject=L,Utility.isArray=y,Utility.isEmpty=n,Utility.isPlainObject= $ ,Utility.getValue=t}).call(commonjsGlobal)),Utility}var XMLDOMImplementation={exports:{}},hasRequiredXMLDOMImplementation;function requireXMLDOMImplementation(){return hasRequiredXMLDOMImplementation||(hasRequiredXMLDOMImplementation=1,(function(){XMLDOMImplementation.exports=function(){function e(){}return e.prototype.hasFeature=function(t,y){return!0},e.prototype.createDocumentType=function(t,y,n){throw new Error("This DOM method is not implemented.")},e.prototype.createDocument=function(t,y,n){throw new Error("This DOM method is not implemented.")},e.prototype.createHTMLDocument=function(t){throw new Error("This DOM method is not implemented.")},e.prototype.getFeature=function(t,y){throw new Error("This DOM method is not implemented.")},e}()}).call(commonjsGlobal)),XMLDOMImplementation.exports}var XMLDocument={exports:{}},XMLDOMConfiguration={exports:{}},XMLDOMErrorHandler={exports:{}},hasRequiredXMLDOMErrorHandler;function requireXMLDOMErrorHandler(){return hasRequiredXMLDOMErrorHandler||(hasRequiredXMLDOMErrorHandler=1,(function(){XMLDOMErrorHandler.exports=function(){function e(){}return e.prototype.handleError=function(t){throw new Error(t)},e}()}).call(commonjsGlobal)),XMLDOMErrorHandler.exports}var XMLDOMStringList={exports:{}},hasRequiredXMLDOMStringList;function requireXMLDOMStringList(){return hasRequiredXMLDOMStringList||(hasRequiredXMLDOMStringList=1,(function(){XMLDOMStringList.exports=function(){function e(t){this.arr=t||[]}return Object.defineProperty(e.prototype,"length",{get:function(){return this.arr.length}}),e.prototype.item=function(t){return this.arr[t]||null},e.prototype.contains=function(t){return this.arr.indexOf(t)!==-1},e}()}).call(commonjsGlobal)),XMLDOMStringList.exports}var hasRequiredXMLDOMConfiguration;function requireXMLDOMConfiguration(){return hasRequiredXMLDOMConfiguration||(hasRequiredXMLDOMConfiguration=1,(function(){var e,t;e=requireXMLDOMErrorHandler(),t=requireXMLDOMStringList(),XMLDOMConfiguration.exports=function(){function y(){this.defaultParams={"canonical-form":!1,"cdata-sections":!1,comments:!1,"datatype-normalization":!1,"element-content-whitespace":!0,entities:!0,"error-handler":new e,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(y.prototype,"parameterNames",{get:function(){return new t(Object.keys(this.defaultParams))}}),y.prototype.getParameter=function(n){return this.params.hasOwnProperty(n)?this.params[n]:null},y.prototype.canSetParameter=function(n,k){return!0},y.prototype.setParameter=function(n,k){return k!=null?this.params[n]=k:delete this.params[n]},y}()}).call(commonjsGlobal)),XMLDOMConfi
` , $ .offset=(z=L.offset)!=null?z:0, $ .dontPrettyTextNodes=(re=(ie=L.dontPrettyTextNodes)!=null?ie:L.dontprettytextnodes)!=null?re:0, $ .spaceBeforeSlash=(oe=(ue=L.spaceBeforeSlash)!=null?ue:L.spacebeforeslash)!=null?oe:"", $ .spaceBeforeSlash===!0&&( $ .spaceBeforeSlash=" "), $ .suppressPrettyCount=0, $ .user={}, $ .state=t.None, $ },k.prototype.indent=function(L, $ ,j){var V;return! $ .pretty|| $ .suppressPrettyCount?"": $ .pretty&&(V=(j||0)+ $ .offset+1,V>0)?new Array(V).join( $ .indent):""},k.prototype.endline=function(L, $ ,j){return! $ .pretty|| $ .suppressPrettyCount?"": $ .newline},k.prototype.attribute=function(L, $ ,j){var V;return this.openAttribute(L, $ ,j),V=" "+L.name+'="'+L.value+'"',this.closeAttribute(L, $ ,j),V},k.prototype.cdata=function(L, $ ,j){var V;return this.openNode(L, $ ,j), $ .state=t.OpenTag,V=this.indent(L, $ ,j)+"<![CDATA[", $ .state=t.InsideTag,V+=L.value, $ .state=t.CloseTag,V+="]]>"+this.endline(L, $ ,j), $ .state=t.None,this.closeNode(L, $ ,j),V},k.prototype.comment=function(L, $ ,j){var V;return this.openNode(L, $ ,j), $ .state=t.OpenTag,V=this.indent(L, $ ,j)+"<!-- ", $ .state=t.InsideTag,V+=L.value, $ .state=t.CloseTag,V+=" -->"+this.endline(L, $ ,j), $ .state=t.None,this.closeNode(L, $ ,j),V},k.prototype.declaration=function(L, $ ,j){var V;return this.openNode(L, $ ,j), $ .state=t.OpenTag,V=this.indent(L, $ ,j)+"<?xml", $ .state=t.InsideTag,V+=' version="'+L.version+'"',L.encoding!=null&&(V+=' encoding="'+L.encoding+'"'),L.standalone!=null&&(V+=' standalone="'+L.standalone+'"'), $ .state=t.CloseTag,V+= $ .spaceBeforeSlash+"?>",V+=this.endline(L, $ ,j), $ .state=t.None,this.closeNode(L, $ ,j),V},k.prototype.docType=function(L, $ ,j){var V,z,re,ie,oe;if(j||(j=0),this.openNode(L, $ ,j), $ .state=t.OpenTag,ie=this.indent(L, $ ,j),ie+="<!DOCTYPE "+L.root().name,L.pubID&&L.sysID?ie+=' PUBLIC "'+L.pubID+'" "'+L.sysID+'"':L.sysID&&(ie+=' SYSTEM "'+L.sysID+'"'),L.children.length>0){for(ie+=" [",ie+=this.endline(L, $ ,j), $ .state=t.InsideTag,oe=L.children,z=0,re=oe.length;z<re;z++)V=oe[z],ie+=this.writeChildNode(V, $ ,j+1); $ .state=t.CloseTag,ie+="]"}return $ .state=t.CloseTag,ie+= $ .spaceBeforeSlash+">",ie+=this.endline(L, $ ,j), $ .state=t.None,this.closeNode(L, $ ,j),ie},k.prototype.element=function(L, $ ,j){var V,z,re,ie,oe,ue,de,pe,Ie,_e,Ce,he,Ne,Fe;j||(j=0),_e=!1,Ce="",this.openNode(L, $ ,j), $ .state=t.OpenTag,Ce+=this.indent(L, $ ,j)+"<"+L.name,he=L.attribs;for(Ie in he)n.call(he,Ie)&&(V=he[Ie],Ce+=this.attribute(V, $ ,j));if(re=L.children.length,ie=re===0?null:L.children[0],re===0||L.children.every(function(Ve){return(Ve.type===e.Text||Ve.type===e.Raw)&&Ve.value===""})) $ .allowEmpty?(Ce+=">", $ .state=t.CloseTag,Ce+="</"+L.name+">"+this.endline(L, $ ,j)):( $ .state=t.CloseTag,Ce+= $ .spaceBeforeSlash+"/>"+this.endline(L, $ ,j));else if( $ .pretty&&re===1&&(ie.type===e.Text||ie.type===e.Raw)&&ie.value!=null)Ce+=">", $ .state=t.InsideTag, $ .suppressPrettyCount++,_e=!0,Ce+=this.writeChildNode(ie, $ ,j+1), $ .suppressPrettyCount--,_e=!1, $ .state=t.CloseTag,Ce+="</"+L.name+">"+this.endline(L, $ ,j);else{if( $ .dontPrettyTextNodes){for(Ne=L.children,oe=0,de=Ne.length;oe<de;oe++)if(z=Ne[oe],(z.type===e.Text||z.type===e.Raw)&&z.value!=null){ $ .suppressPrettyCount++,_e=!0;break}}for(Ce+=">"+this.endline(L, $ ,j), $ .state=t.InsideTag,Fe=L.children,ue=0,pe=Fe.length;ue<pe;ue++)z=Fe[ue],Ce+=this.writeChildNode(z, $ ,j+1); $ .state=t.CloseTag,Ce+=this.indent(L, $ ,j)+"</"+L.name+">",_e&& $ .suppressPrettyCount--,Ce+=this.endline(L, $ ,j), $ .state=t.None}return this.closeNode(L, $ ,j),Ce},k.prototype.writeChildNode=function(L, $ ,j){switch(L.type){case e.CData:return this.cdata(L, $ ,j);case e.Comment:return this.comment(L, $ ,j);case e.Element:return this.element(L, $ ,j);case e.Raw:return this.raw(L, $ ,j);case e.Text:return this.text(L, $ ,j);case e.ProcessingInstruction:return this.processingInstruction(L, $ ,j);case e.Dummy:return"";case e.Declaration:return this.declaration(L, $ ,j);case e.DocType:return this.docType(L, $ ,j);case e.AttributeDeclaration:return this.dtdAttList(L, $ ,j);case e.ElementDeclaration:return this.dtdElement(L, $ ,j);case e.EntityDeclaration:return this.dtdEntity(L, $ ,j);case e.NotationDeclaration:return this.dtdNotation(L, $ ,j);default:throw new Error("Unkno
` ||gr===" \r "||gr===" "}function Fe(gr){return gr==='"'||gr==="'"}function Ve(gr){return gr===">"||Ne(gr)}function jt(gr,_r){return gr.test(_r)}function Et(gr,_r){return!jt(gr,_r)}var Ue=0;t.STATE={BEGIN:Ue++,BEGIN_WHITESPACE:Ue++,TEXT:Ue++,TEXT_ENTITY:Ue++,OPEN_WAKA:Ue++,SGML_DECL:Ue++,SGML_DECL_QUOTED:Ue++,DOCTYPE:Ue++,DOCTYPE_QUOTED:Ue++,DOCTYPE_DTD:Ue++,DOCTYPE_DTD_QUOTED:Ue++,COMMENT_STARTING:Ue++,COMMENT:Ue++,COMMENT_ENDING:Ue++,COMMENT_ENDED:Ue++,CDATA:Ue++,CDATA_ENDING:Ue++,CDATA_ENDING_2:Ue++,PROC_INST:Ue++,PROC_INST_BODY:Ue++,PROC_INST_ENDING:Ue++,OPEN_TAG:Ue++,OPEN_TAG_SLASH:Ue++,ATTRIB:Ue++,ATTRIB_NAME:Ue++,ATTRIB_NAME_SAW_WHITE:Ue++,ATTRIB_VALUE:Ue++,ATTRIB_VALUE_QUOTED:Ue++,ATTRIB_VALUE_CLOSED:Ue++,ATTRIB_VALUE_UNQUOTED:Ue++,ATTRIB_VALUE_ENTITY_Q:Ue++,ATTRIB_VALUE_ENTITY_U:Ue++,CLOSE_TAG:Ue++,CLOSE_TAG_SAW_WHITE:Ue++,SCRIPT:Ue++,SCRIPT_ENDING:Ue++},t.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},t.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(t.ENTITIES).forEach(function(gr){var _r=t.ENTITIES[gr],Fr=typeof _r=="number"?String.fromCharCode(_r):_r;t.ENTITIES[gr]=Fr});for(var qe in t.STATE)t.STATE[t.STATE[qe]]=qe;Ue=t.STATE;function kt(gr,_r,Fr){gr[_r]&&gr[_r](Fr)}function tr(gr,_r,Fr){gr.textNode&&rr(gr),kt(gr,_r,Fr)}function rr(gr){gr.textNode=ar(gr.opt,gr.textNode),gr.textNode&&kt(gr,"ontext",gr.textNode),gr.textNode=""}function ar(gr,_r){return gr.trim&&(_r=_r.trim()),gr.normalize&&(_r=_r.replace(/ \s +/g," ")),_r}function nr(gr,_r){return rr(gr),gr.trackPosition&&(_r+= `
Line : ` +gr.line+ `
Column : ` +gr.column+ `
Char : ` +gr.c),_r=new Error(_r),gr.error=_r,kt(gr,"onerror",_r),gr}function ur(gr){return gr.sawRoot&&!gr.closedRoot&&cr(gr,"Unclosed root tag"),gr.state!==Ue.BEGIN&&gr.state!==Ue.BEGIN_WHITESPACE&&gr.state!==Ue.TEXT&&nr(gr,"Unexpected end"),rr(gr),gr.c="",gr.closed=!0,kt(gr,"onend"),n.call(gr,gr.strict,gr.opt),gr}function cr(gr,_r){if(typeof gr!="object"||!(gr instanceof n))throw new Error("bad call to strictFail");gr.strict&&nr(gr,_r)}function mr(gr){gr.strict||(gr.tagName=gr.tagName[gr.looseCase]());var _r=gr.tags[gr.tags.length-1]||gr,Fr=gr.tag={name:gr.tagName,attributes:{}};gr.opt.xmlns&&(Fr.ns=_r.ns),gr.attribList.length=0,tr(gr,"onopentagstart",Fr)}function hr(gr,_r){var Fr=gr.indexOf(":"),zr=Fr<0?["",gr]:gr.split(":"),Vr=zr[0],Gr=zr[1];return _r&&gr==="xmlns"&&(Vr="xmlns",Gr=""),{prefix:Vr,local:Gr}}function br(gr){if(gr.strict||(gr.attribName=gr.attribName[gr.looseCase]()),gr.attribList.indexOf(gr.attribName)!==-1||gr.tag.attributes.hasOwnProperty(gr.attribName)){gr.attribName=gr.attribValue="";return}if(gr.opt.xmlns){var _r=hr(gr.attribName,!0),Fr=_r.prefix,zr=_r.local;if(Fr==="xmlns")if(zr==="xml"&&gr.attribValue!==ue)cr(gr,"xml: prefix must be bound to "+ue+ `
Actual : ` +gr.attribValue);else if(zr==="xmlns"&&gr.attribValue!==de)cr(gr,"xmlns: prefix must be bound to "+de+ `
Actual : ` +gr.attribValue);else{var Vr=gr.tag,Gr=gr.tags[gr.tags.length-1]||gr;Vr.ns===Gr.ns&&(Vr.ns=Object.create(Gr.ns)),Vr.ns[zr]=gr.attribValue}gr.attribList.push([gr.attribName,gr.attribValue])}else gr.tag.attributes[gr.attribName]=gr.attribValue,tr(gr,"onattribute",{name:gr.attribName,value:gr.attribValue});gr.attribName=gr.attribValue=""}function Rr(gr,_r){if(gr.opt.xmlns){var Fr=gr.tag,zr=hr(gr.tagName);Fr.prefix=zr.prefix,Fr.local=zr.local,Fr.uri=Fr.ns[zr.prefix]||"",Fr.prefix&&!Fr.uri&&(cr(gr,"Unbound namespace prefix: "+JSON.stringify(gr.tagName)),Fr.uri=zr.prefix);var Vr=gr.tags[gr.tags.length-1]||gr;Fr.ns&&Vr.ns!==Fr.ns&&Object.keys(Fr.ns).forEach(function(Nr){tr(gr,"onopennamespace",{prefix:Nr,uri:Fr.ns[Nr]})});for(var Gr=0,Tr=gr.attribList.length;Gr<Tr;Gr++){var Cr=gr.attribList[Gr],Mr=Cr[0],yr=Cr[1],Sr=hr(Mr,!0),Dr=Sr.prefix,kr=Sr.local,Wr=Dr===""?"":Fr.ns[Dr]||"",Kr={name:Mr,value:yr,prefix:Dr,local:kr,uri:Wr};Dr&&Dr!=="xmlns"&&!Wr&&(cr(gr,"Unbound namespace prefix: "+JSON.stringify(Dr)),Kr.uri=Dr),gr.tag.attributes[Mr]=Kr,tr(gr,"onattribute",Kr)}gr.attribList.length=0}gr.tag.isSelfClosing=!!_r,gr.sawRoot=!0,gr.tags.push(gr.tag),tr(gr,"onopentag",gr.tag),_r||(!gr.noscript&&gr.tagName.toLowerCase()==="script"?gr.state=Ue.SCRIPT:gr.state=Ue.TEXT,gr.tag=null,gr.tagName=""),gr.attribName=gr.attribValue="",gr.attribList.length=0}function xr(gr){if(!gr.tagName){cr(gr,"Weird empty close tag."),gr.textNode+="</>",gr.state=Ue.TEXT;return}if(gr.script){if(gr.tagName!=="script"){gr.script+="</"+gr.tagName+">",gr.tagName="",gr.state=Ue.SCRIPT;return}tr(gr,"onscript",gr.script),gr.script=""}var _r=gr.tags.length,Fr=gr.tagName;gr.strict||(Fr=Fr[gr.looseCase]());for(var zr=Fr;_r--;){var Vr=gr.tags[_r];if(Vr.name!==zr)cr(gr,"Unexpected close tag");else break}if(_r<0){cr(gr,"Unmatched closing tag: "+gr.tagName),gr.textNode+="</"+gr.tagName+">",gr.state=Ue.TEXT;return}gr.tagName=Fr;for(var Gr=gr.tags.length;Gr-- >_r;){var Tr=gr.tag=gr.tags.pop();gr.tagName=gr.tag.name,tr(gr,"onclosetag",gr.tagName);var Cr={};for(var Mr in Tr.ns)Cr[Mr]=Tr.ns[Mr];var yr=gr.tags[gr.tags.length-1]||gr;gr.opt.xmlns&&Tr.ns!==yr.ns&&Object.keys(Tr.ns).forEach(function(Sr){var Dr=Tr.ns[Sr];tr(gr,"onclosenamespace",{prefix:Sr,uri:Dr})})}_r===0&&(gr.closedRoot=!0),gr.tagName=gr.attribValue=gr.attribName="",gr.attribList.length=0,gr.state=Ue.TEXT}function Er(gr){var _r=gr.entity,Fr=_r.toLowerCase(),zr,Vr="";return gr.ENTITIES[_r]?gr.ENTITIES[_r]:gr.ENTITIES[Fr]?gr.ENTITIES[Fr]:(_r=Fr,_r.charAt(0)==="#"&&(_r.charAt(1)==="x"?(_r=_r.slice(2),zr=parseInt(_r,16),Vr=zr.toString(16)):(_r=_r.slice(1),zr=parseInt(_r,10),Vr=zr.toString(10))),_r=_r.replace(/^0+/,""),isNaN(zr)||Vr.toLowerCase()!==_r?(cr(gr,"Invalid character entity"),"&"+gr.entity+";"):String.fromCodePoint(zr))}function vr(gr,_r){_r==="<"?(gr.state=Ue.OPEN_WAKA,gr.startTagPosition=gr.position):Ne(_r)||(cr(gr,"Non-whitespace before first tag."),gr.textNode=_r,gr.state=Ue.TEXT)}function Ir(gr,_r){var Fr="";return _r<gr.length&&(Fr=gr.charAt(_r)),Fr}function Lr(gr){var _r=this;if(this.error)throw this.error;if(_r.closed)return nr(_r,"Cannot write after close. Assign an onready handler.");if(gr===null)return ur(_r);typeof gr=="object"&&(gr=gr.toString());for(var Fr=0,zr="";zr=Ir(gr,Fr++),_r.c=zr,!!zr;)switch(_r.trackPosition&&(_r.position++,zr=== `
` ?(_r.line++,_r.column=0):_r.column++),_r.state){case Ue.BEGIN:if(_r.state=Ue.BEGIN_WHITESPACE,zr===" \u FEFF")continue;vr(_r,zr);continue;case Ue.BEGIN_WHITESPACE:vr(_r,zr);continue;case Ue.TEXT:if(_r.sawRoot&&!_r.closedRoot){for(var Vr=Fr-1;zr&&zr!=="<"&&zr!=="&";)zr=Ir(gr,Fr++),zr&&_r.trackPosition&&(_r.position++,zr=== `
` ?(_r.line++,_r.column=0):_r.column++);_r.textNode+=gr.substring(Vr,Fr-1)}zr==="<"&&!(_r.sawRoot&&_r.closedRoot&&!_r.strict)?(_r.state=Ue.OPEN_WAKA,_r.startTagPosition=_r.position):(!Ne(zr)&&(!_r.sawRoot||_r.closedRoot)&&cr(_r,"Text data outside of root node."),zr==="&"?_r.state=Ue.TEXT_ENTITY:_r.textNode+=zr);continue;case Ue.SCRIPT:zr==="<"?_r.state=Ue.SCRIPT_ENDING:_r.script+=zr;continue;case Ue.SCRIPT_ENDING:zr==="/"?_r.state=Ue.CLOSE_TAG:(_r.script+="<"+zr,_r.state=Ue.SCRIPT);continue;case Ue.OPEN_WAKA:if(zr==="!")_r.state=Ue.SGML_DECL,_r.sgmlDecl="";else if(!Ne(zr))if(jt(Ie,zr))_r.state=Ue.OPEN_TAG,_r.tagName=zr;else if(zr==="/")_r.state=Ue.CLOSE_TAG,_r.tagName="";else if(zr==="?")_r.state=Ue.PROC_INST,_r.procInstName=_r.procInstBody="";else{if(cr(_r,"Unencoded <"),_r.startTagPosition+1<_r.position){var Gr=_r.position-_r.startTagPosition;zr=new Array(Gr).join(" ")+zr}_r.textNode+="<"+zr,_r.state=Ue.TEXT}continue;case Ue.SGML_DECL:if(_r.sgmlDecl+zr==="--"){_r.state=Ue.COMMENT,_r.comment="",_r.sgmlDecl="";continue}_r.doctype&&_r.doctype!==!0&&_r.sgmlDecl?(_r.state=Ue.DOCTYPE_DTD,_r.doctype+="<!"+_r.sgmlDecl+zr,_r.sgmlDecl=""):(_r.sgmlDecl+zr).toUpperCase()===ie?(tr(_r,"onopencdata"),_r.state=Ue.CDATA,_r.sgmlDecl="",_r.cdata=""):(_r.sgmlDecl+zr).toUpperCase()===oe?(_r.state=Ue.DOCTYPE,(_r.doctype||_r.sawRoot)&&cr(_r,"Inappropriately located doctype declaration"),_r.doctype="",_r.sgmlDecl=""):zr===">"?(tr(_r,"onsgmldeclaration",_r.sgmlDecl),_r.sgmlDecl="",_r.state=Ue.TEXT):(Fe(zr)&&(_r.state=Ue.SGML_DECL_QUOTED),_r.sgmlDecl+=zr);continue;case Ue.SGML_DECL_QUOTED:zr===_r.q&&(_r.state=Ue.SGML_DECL,_r.q=""),_r.sgmlDecl+=zr;continue;case Ue.DOCTYPE:zr===">"?(_r.state=Ue.TEXT,tr(_r,"ondoctype",_r.doctype),_r.doctype=!0):(_r.doctype+=zr,zr==="["?_r.state=Ue.DOCTYPE_DTD:Fe(zr)&&(_r.state=Ue.DOCTYPE_QUOTED,_r.q=zr));continue;case Ue.DOCTYPE_QUOTED:_r.doctype+=zr,zr===_r.q&&(_r.q="",_r.state=Ue.DOCTYPE);continue;case Ue.DOCTYPE_DTD:zr==="]"?(_r.doctype+=zr,_r.state=Ue.DOCTYPE):zr==="<"?(_r.state=Ue.OPEN_WAKA,_r.startTagPosition=_r.position):Fe(zr)?(_r.doctype+=zr,_r.state=Ue.DOCTYPE_DTD_QUOTED,_r.q=zr):_r.doctype+=zr;continue;case Ue.DOCTYPE_DTD_QUOTED:_r.doctype+=zr,zr===_r.q&&(_r.state=Ue.DOCTYPE_DTD,_r.q="");continue;case Ue.COMMENT:zr==="-"?_r.state=Ue.COMMENT_ENDING:_r.comment+=zr;continue;case Ue.COMMENT_ENDING:zr==="-"?(_r.state=Ue.COMMENT_ENDED,_r.comment=ar(_r.opt,_r.comment),_r.comment&&tr(_r,"oncomment",_r.comment),_r.comment=""):(_r.comment+="-"+zr,_r.state=Ue.COMMENT);continue;case Ue.COMMENT_ENDED:zr!==">"?(cr(_r,"Malformed comment"),_r.comment+="--"+zr,_r.state=Ue.COMMENT):_r.doctype&&_r.doctype!==!0?_r.state=Ue.DOCTYPE_DTD:_r.state=Ue.TEXT;continue;case Ue.CDATA:zr==="]"?_r.state=Ue.CDATA_ENDING:_r.cdata+=zr;continue;case Ue.CDATA_ENDING:zr==="]"?_r.state=Ue.CDATA_ENDING_2:(_r.cdata+="]"+zr,_r.state=Ue.CDATA);continue;case Ue.CDATA_ENDING_2:zr===">"?(_r.cdata&&tr(_r,"oncdata",_r.cdata),tr(_r,"onclosecdata"),_r.cdata="",_r.state=Ue.TEXT):zr==="]"?_r.cdata+="]":(_r.cdata+="]]"+zr,_r.state=Ue.CDATA);continue;case Ue.PROC_INST:zr==="?"?_r.state=Ue.PROC_INST_ENDING:Ne(zr)?_r.state=Ue.PROC_INST_BODY:_r.procInstName+=zr;continue;case Ue.PROC_INST_BODY:if(!_r.procInstBody&&Ne(zr))continue;zr==="?"?_r.state=Ue.PROC_INST_ENDING:_r.procInstBody+=zr;continue;case Ue.PROC_INST_ENDING:zr===">"?(tr(_r,"onprocessinginstruction",{name:_r.procInstName,body:_r.procInstBody}),_r.procInstName=_r.procInstBody="",_r.state=Ue.TEXT):(_r.procInstBody+="?"+zr,_r.state=Ue.PROC_INST_BODY);continue;case Ue.OPEN_TAG:jt(_e,zr)?_r.tagName+=zr:(mr(_r),zr===">"?Rr(_r):zr==="/"?_r.state=Ue.OPEN_TAG_SLASH:(Ne(zr)||cr(_r,"Invalid character in tag name"),_r.state=Ue.ATTRIB));continue;case Ue.OPEN_TAG_SLASH:zr===">"?(Rr(_r,!0),xr(_r)):(cr(_r,"Forward-slash in opening tag not followed by >"),_r.state=Ue.ATTRIB);continue;case Ue.ATTRIB:if(Ne(zr))continue;zr===">"?Rr(_r):zr==="/"?_r.state=Ue.OPEN_TAG_SLASH:jt(Ie,zr)?(_r.attribName=zr,_r.attribValue="",_r.state=Ue.ATTRIB_NAME):cr(_r,"Invalid attribute name");continue;case Ue.ATTRIB_NAME:zr==="="?_r.state
2024-08-21 13:12:53 +08:00
` &&e[L]!==" \r ";L++)V+=e[L];if(V=V.trim(),V[V.length-1]==="/"&&(V=V.substring(0,V.length-1),L--),!validateTagName(V)){let ie;return V.trim().length===0?ie="Invalid space after '<'.":ie="Tag '"+V+"' is an invalid name.",getErrorObject("InvalidTag",ie,getLineNumberForPosition(e,L))}const z=readAttributeStr(e,L);if(z===!1)return getErrorObject("InvalidAttr","Attributes for '"+V+"' have open quote.",getLineNumberForPosition(e,L));let re=z.value;if(L=z.index,re[re.length-1]==="/"){const ie=L-re.length;re=re.substring(0,re.length-1);const oe=validateAttributeString(re,t);if(oe===!0)n=!0;else return getErrorObject(oe.err.code,oe.err.msg,getLineNumberForPosition(e,ie+oe.err.line))}else if(j)if(z.tagClosed){if(re.trim().length>0)return getErrorObject("InvalidTag","Closing tag '"+V+"' can't have attributes or invalid starting.",getLineNumberForPosition(e, $ ));if(y.length===0)return getErrorObject("InvalidTag","Closing tag '"+V+"' has not been opened.",getLineNumberForPosition(e, $ ));{const ie=y.pop();if(V!==ie.tagName){let oe=getLineNumberForPosition(e,ie.tagStartPos);return getErrorObject("InvalidTag","Expected closing tag '"+ie.tagName+"' (opened in line "+oe.line+", col "+oe.col+") instead of closing tag '"+V+"'.",getLineNumberForPosition(e, $ ))}y.length==0&&(k=!0)}}else return getErrorObject("InvalidTag","Closing tag '"+V+"' doesn't have proper closing.",getLineNumberForPosition(e,L));else{const ie=validateAttributeString(re,t);if(ie!==!0)return getErrorObject(ie.err.code,ie.err.msg,getLineNumberForPosition(e,L-re.length+ie.err.line));if(k===!0)return getErrorObject("InvalidXml","Multiple possible root nodes found.",getLineNumberForPosition(e,L));t.unpairedTags.indexOf(V)!==-1||y.push({tagName:V,tagStartPos: $ }),n=!0}for(L++;L<e.length;L++)if(e[L]==="<")if(e[L+1]==="!"){L++,L=readCommentAndCDATA(e,L);continue}else if(e[L+1]==="?"){if(L=readPI(e,++L),L.err)return L}else break;else if(e[L]==="&"){const ie=validateAmpersand(e,L);if(ie==-1)return getErrorObject("InvalidChar","char '&' is not expected.",getLineNumberForPosition(e,L));L=ie}else if(k===!0&&!isWhiteSpace(e[L]))return getErrorObject("InvalidXml","Extra text at the end",getLineNumberForPosition(e,L));e[L]==="<"&&L--}}else{if(isWhiteSpace(e[L]))continue;return getErrorObject("InvalidChar","char '"+e[L]+"' is not expected.",getLineNumberForPosition(e,L))}if(n){if(y.length==1)return getErrorObject("InvalidTag","Unclosed tag '"+y[0].tagName+"'.",getLineNumberForPosition(e,y[0].tagStartPos));if(y.length>0)return getErrorObject("InvalidXml","Invalid '"+JSON.stringify(y.map(L=>L.tagName),null,4).replace(/ \r ? \n /g,"")+"' found.",{line:1,col:1})}else return getErrorObject("InvalidXml","Start tag expected.",1);return!0};function isWhiteSpace(e){return e===" "||e===" "||e=== `
` ||e===" \r "}function readPI(e,t){const y=t;for(;t<e.length;t++)if(e[t]=="?"||e[t]==" "){const n=e.substr(y,t-y);if(t>5&&n==="xml")return getErrorObject("InvalidXml","XML declaration allowed only at the start of the document.",getLineNumberForPosition(e,t));if(e[t]=="?"&&e[t+1]==">"){t++;break}else continue}return t}function readCommentAndCDATA(e,t){if(e.length>t+5&&e[t+1]==="-"&&e[t+2]==="-"){for(t+=3;t<e.length;t++)if(e[t]==="-"&&e[t+1]==="-"&&e[t+2]===">"){t+=2;break}}else if(e.length>t+8&&e[t+1]==="D"&&e[t+2]==="O"&&e[t+3]==="C"&&e[t+4]==="T"&&e[t+5]==="Y"&&e[t+6]==="P"&&e[t+7]==="E"){let y=1;for(t+=8;t<e.length;t++)if(e[t]==="<")y++;else if(e[t]===">"&&(y--,y===0))break}else if(e.length>t+9&&e[t+1]==="["&&e[t+2]==="C"&&e[t+3]==="D"&&e[t+4]==="A"&&e[t+5]==="T"&&e[t+6]==="A"&&e[t+7]==="["){for(t+=8;t<e.length;t++)if(e[t]==="]"&&e[t+1]==="]"&&e[t+2]===">"){t+=2;break}}return t}const doubleQuote='"',singleQuote="'";function readAttributeStr(e,t){let y="",n="",k=!1;for(;t<e.length;t++){if(e[t]===doubleQuote||e[t]===singleQuote)n===""?n=e[t]:n!==e[t]||(n="");else if(e[t]===">"&&n===""){k=!0;break}y+=e[t]}return n!==""?!1:{value:y,index:t,tagClosed:k}}const validAttrStrRegxp=new RegExp( ` ( \ \ s * ) ( [ ^ \ \ s = ] + ) ( \ \ s *= ) ? ( \ \ s * ( [ '"])(([\\s\\S])*?)\\5)?`,"g");function validateAttributeString(e,t){const y=util$3.getAllMatches(e,validAttrStrRegxp),n={};for(let k=0;k<y.length;k++){if(y[k][1].length===0)return getErrorObject("InvalidAttr","Attribute ' "+y[k][2]+" ' has no space in starting.",getPositionFromMatch(y[k]));if(y[k][3]!==void 0&&y[k][4]===void 0)return getErrorObject("InvalidAttr","Attribute ' "+y[k][2]+" ' is without value.",getPositionFromMatch(y[k]));if(y[k][3]===void 0&&!t.allowBooleanAttributes)return getErrorObject("InvalidAttr","boolean attribute ' "+y[k][2]+" ' is not allowed.",getPositionFromMatch(y[k]));const L=y[k][2];if(!validateAttrName(L))return getErrorObject("InvalidAttr","Attribute ' "+L+" ' is an invalid name.",getPositionFromMatch(y[k]));if(!n.hasOwnProperty(L))n[L]=1;else return getErrorObject("InvalidAttr","Attribute ' "+L+" ' is repeated . ",getPositionFromMatch(y[k]))}return!0}function validateNumberAmpersand(e,t){let y=/\d/;for(e[t]===" x "&&(t++,y=/[\da-fA-F]/);t<e.length;t++){if(e[t]===" ; ")return t;if(!e[t].match(y))break}return-1}function validateAmpersand(e,t){if(t++,e[t]===" ; ")return-1;if(e[t]===" # ")return t++,validateNumberAmpersand(e,t);let y=0;for(;t<e.length;t++,y++)if(!(e[t].match(/\w/)&&y<20)){if(e[t]===" ; ")break;return-1}return t}function getErrorObject(e,t,y){return{err:{code:e,msg:t,line:y.line||y,col:y.col}}}function validateAttrName(e){return util$3.isName(e)}function validateTagName(e){return util$3.isName(e)}function getLineNumberForPosition(e,t){const y=e.substring(0,t).split(/\r?\n/);return{line:y.length,col:y[y.length-1].length+1}}function getPositionFromMatch(e){return e.startIndex+e[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(e,t){return t},attributeValueProcessor:function(e,t){return t},stopNodes:[],alwaysCreateTextNode:!1,isArray:()=>!1,commentPropName:!1,unpairedTags:[],processEntities:!0,htmlEntities:!1,ignoreDeclaration:!1,ignorePiTags:!1,transformTagName:!1,transformAttributeName:!1,updateTag:function(e,t,y){return e}},buildOptions$1=function(e){return Object.assign({},defaultOptions$1,e)};OptionsBuilder.buildOptions=buildOptions$1;OptionsBuilder.defaultOptions=defaultOptions$1;class XmlNode{constructor(t){this.tagname=t,this.child=[],this[" : @ "]={}}add(t,y){t===" _ _proto _ _ "&&(t=" # _ _proto _ _ "),this.child.push({[t]:y})}addChild(t){t.tagname===" _ _proto _ _ "&&(t.tagname=" # _ _proto _ _ "),t[" : @ "]&&Object.keys(t[" : @ "]).length>0?this.child.push({[t.tagname]:t.child," : @ ":t[" : @ " ] } ) : this . child . push ( { [ t . tagname ] : t . child } ) } } var xmlNode$1 = XmlNode ; const util$2 = util$4 ; function readDocType$1 ( e , t ) { const
` );const t=new xmlNode("!xml");let y=t,n="",k="";for(let L=0;L<e.length;L++)if(e[L]==="<")if(e[L+1]==="/"){const j=findClosingIndex(e,">",L,"Closing Tag is not closed.");let V=e.substring(L+2,j).trim();if(this.options.removeNSPrefix){const ie=V.indexOf(":");ie!==-1&&(V=V.substr(ie+1))}this.options.transformTagName&&(V=this.options.transformTagName(V)),y&&(n=this.saveTextToParentTag(n,y,k));const z=k.substring(k.lastIndexOf(".")+1);if(V&&this.options.unpairedTags.indexOf(V)!==-1)throw new Error( ` Unpaired tag can not be used as closing tag : < /${V}>`);let re=0;z&&this.options.unpairedTags.indexOf(z)!==-1?(re=k.lastIndexOf(".",k.lastIndexOf(".")-1),this.tagsNodeStack.pop()):re=k.lastIndexOf("."),k=k.substring(0,re),y=this.tagsNodeStack.pop(),n="",L=j}else if(e[L+1]==="?"){let j=readTagExp(e,L,!1,"?>");if(!j)throw new Error("Pi Tag is not closed.");if(n=this.saveTextToParentTag(n,y,k),!(this.options.ignoreDeclaration&&j.tagName==="?xml"||this.options.ignorePiTags)){const V=new xmlNode(j.tagName);V.add(this.options.textNodeName,""),j.tagName!==j.tagExp&&j.attrExpPresent&&(V[":@"]=this.buildAttributesMap(j.tagExp,k,j.tagName)),this.addChild(y,V,k)}L=j.closeIndex+1}else if(e.substr(L+1,3)==="!--"){const j=findClosingIndex(e,"-->",L+4,"Comment is not closed.");if(this.options.commentPropName){const V=e.substring(L+4,j-2);n=this.saveTextToParentTag(n,y,k),y.add(this.options.commentPropName,[{[this.options.textNodeName]:V}])}L=j}else if(e.substr(L+1,2)==="!D"){const j=readDocType(e,L);this.docTypeEntities=j.entities,L=j.i}else if(e.substr(L+1,2)==="!["){const j=findClosingIndex(e,"]]>",L,"CDATA is not closed.")-2,V=e.substring(L+9,j);n=this.saveTextToParentTag(n,y,k);let z=this.parseTextData(V,y.tagname,k,!0,!1,!0,!0);z==null&&(z=""),this.options.cdataPropName?y.add(this.options.cdataPropName,[{[this.options.textNodeName]:V}]):y.add(this.options.textNodeName,z),L=j+2}else{let j=readTagExp(e,L,this.options.removeNSPrefix),V=j.tagName;const z=j.rawTagName;let re=j.tagExp,ie=j.attrExpPresent,oe=j.closeIndex;this.options.transformTagName&&(V=this.options.transformTagName(V)),y&&n&&y.tagname!=="!xml"&&(n=this.saveTextToParentTag(n,y,k,!1));const ue=y;if(ue&&this.options.unpairedTags.indexOf(ue.tagname)!==-1&&(y=this.tagsNodeStack.pop(),k=k.substring(0,k.lastIndexOf("."))),V!==t.tagname&&(k+=k?"."+V:V),this.isItStopNode(this.options.stopNodes,k,V)){let de="";if(re.length>0&&re.lastIndexOf("/ ")===re.length-1)V[V.length-1]===" / "?(V=V.substr(0,V.length-1),k=k.substr(0,k.length-1),re=V):re=re.substr(0,re.length-1),L=j.closeIndex;else if(this.options.unpairedTags.indexOf(V)!==-1)L=j.closeIndex;else{const Ie=this.readStopNodeData(e,z,oe+1);if(!Ie)throw new Error(`Unexpected end of ${z}`);L=Ie.i,de=Ie.tagContent}const pe=new xmlNode(V);V!==re&&ie&&(pe[" : @ "]=this.buildAttributesMap(re,k,V)),de&&(de=this.parseTextData(de,V,k,!0,ie,!0,!0)),k=k.substr(0,k.lastIndexOf(" . ")),pe.add(this.options.textNodeName,de),this.addChild(y,pe,k)}else{if(re.length>0&&re.lastIndexOf(" / ")===re.length-1){V[V.length-1]===" / "?(V=V.substr(0,V.length-1),k=k.substr(0,k.length-1),re=V):re=re.substr(0,re.length-1),this.options.transformTagName&&(V=this.options.transformTagName(V));const de=new xmlNode(V);V!==re&&ie&&(de[" : @ "]=this.buildAttributesMap(re,k,V)),this.addChild(y,de,k),k=k.substr(0,k.lastIndexOf(" . "))}else{const de=new xmlNode(V);this.tagsNodeStack.push(y),V!==re&&ie&&(de[" : @ "]=this.buildAttributesMap(re,k,V)),this.addChild(y,de,k),y=de}n=" ",L=oe}}else n+=e[L];return t.child};function addChild(e,t,y){const n=this.options.updateTag(t.tagname,y,t[" : @ "]);n===!1||(typeof n==" string " && ( t . tagname = n ) , e . addChild ( t ) ) } const replaceEntitiesValue$1 = function ( e ) { if ( this . options . processEntities ) { for ( let t in this . docTypeEntities ) { const y = this . docTypeEntities [ t ] ; e = e . replace ( y . regx , y . val ) } for ( let t in this . lastEntities ) { const y = this . lastEntities [ t ] ; e = e . replace ( y . regex , y . val ) } if ( this . options . htmlEntities ) for ( let t in this . htmlEntities ) { const y = this . htmlEntities [ t ] ; e = e . replace ( y . regex , y . val ) } e = e . replace ( this . ampEntity . regex , this . ampEntity . val ) } return e } ; function saveTextToParentTa
` ;function toXml(e,t){let y="";return t.format&&t.indentBy.length>0&&(y=EOL),arrToStr(e,t,"",y)}function arrToStr(e,t,y,n){let k="",L=!1;for(let $ =0; $ <e.length; $ ++){const j=e[ $ ],V=propName(j);if(V===void 0)continue;let z="";if(y.length===0?z=V:z= ` $ { y } . $ { V } ` ,V===t.textNodeName){let de=j[V];isStopNode(z,t)||(de=t.tagValueProcessor(V,de),de=replaceEntitiesValue(de,t)),L&&(k+=n),k+=de,L=!1;continue}else if(V===t.cdataPropName){L&&(k+=n),k+= ` < ! [ CDATA [ $ { j [ V ] [ 0 ] [ t . textNodeName ] } ] ] > ` ,L=!1;continue}else if(V===t.commentPropName){k+=n+ ` <!-- $ { j [ V ] [ 0 ] [ t . textNodeName ] } -- > ` ,L=!0;continue}else if(V[0]==="?"){const de=attr_to_str(j[":@"],t),pe=V==="?xml"?"":n;let Ie=j[V][0][t.textNodeName];Ie=Ie.length!==0?" "+Ie:"",k+=pe+ ` < $ { V } $ { Ie } $ { de } ? > ` ,L=!0;continue}let re=n;re!==""&&(re+=t.indentBy);const ie=attr_to_str(j[":@"],t),oe=n+ ` < $ { V } $ { ie } ` ,ue=arrToStr(j[V],t,z,re);t.unpairedTags.indexOf(V)!==-1?t.suppressUnpairedNode?k+=oe+">":k+=oe+"/>":(!ue||ue.length===0)&&t.suppressEmptyNode?k+=oe+"/>":ue&&ue.endsWith(">")?k+=oe+ ` > $ { ue } $ { n } < /${V}>`:(k+=oe+">",ue&&n!==""&&(ue.includes("/ > ")||ue.includes(" < /"))?k+=n+t.indentBy+ue+n:k+=ue,k+=`</ $ { V } > ` ),L=!0}return k}function propName(e){const t=Object.keys(e);for(let y=0;y<t.length;y++){const n=t[y];if(e.hasOwnProperty(n)&&n!==":@")return n}}function attr_to_str(e,t){let y="";if(e&&!t.ignoreAttributes)for(let n in e){if(!e.hasOwnProperty(n))continue;let k=t.attributeValueProcessor(n,e[n]);k=replaceEntitiesValue(k,t),k===!0&&t.suppressBooleanAttributes?y+= ` $ { n . substr ( t . attributeNamePrefix . length ) } ` :y+= ` $ { n . substr ( t . attributeNamePrefix . length ) } = "${k}" ` }return y}function isStopNode(e,t){e=e.substr(0,e.length-t.textNodeName.length-1);let y=e.substr(e.lastIndexOf(".")+1);for(let n in t.stopNodes)if(t.stopNodes[n]===e||t.stopNodes[n]==="*."+y)return!0;return!1}function replaceEntitiesValue(e,t){if(e&&e.length>0&&t.processEntities)for(let y=0;y<t.entities.length;y++){const n=t.entities[y];e=e.replace(n.regex,n.val)}return e}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(e,t){return t},attributeValueProcessor:function(e,t){return t},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(e){this.options=Object.assign({},defaultOptions,e),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= ` >
` ,this.newLine= `
2024-08-25 11:35:35 +08:00
` ):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}Builder.prototype.build=function(e){return this.options.preserveOrder?buildFromOrderedJs(e,this.options):(Array.isArray(e)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(e={[this.options.arrayNodeName]:e}),this.j2x(e,0).val)};Builder.prototype.j2x=function(e,t){let y="",n="";for(let k in e)if(Object.prototype.hasOwnProperty.call(e,k))if(typeof e[k]>"u")this.isAttribute(k)&&(n+="");else if(e[k]===null)this.isAttribute(k)?n+="":k[0]==="?"?n+=this.indentate(t)+"<"+k+"?"+this.tagEndChar:n+=this.indentate(t)+"<"+k+"/"+this.tagEndChar;else if(e[k]instanceof Date)n+=this.buildTextValNode(e[k],k,"",t);else if(typeof e[k]!="object"){const L=this.isAttribute(k);if(L)y+=this.buildAttrPairStr(L,""+e[k]);else if(k===this.options.textNodeName){let $ =this.options.tagValueProcessor(k,""+e[k]);n+=this.replaceEntitiesValue( $ )}else n+=this.buildTextValNode(e[k],k,"",t)}else if(Array.isArray(e[k])){const L=e[k].length;let $ ="",j="";for(let V=0;V<L;V++){const z=e[k][V];if(!(typeof z>"u"))if(z===null)k[0]==="?"?n+=this.indentate(t)+"<"+k+"?"+this.tagEndChar:n+=this.indentate(t)+"<"+k+"/"+this.tagEndChar;else if(typeof z=="object")if(this.options.oneListGroup){const re=this.j2x(z,t+1); $ +=re.val,this.options.attributesGroupName&&z.hasOwnProperty(this.options.attributesGroupName)&&(j+=re.attrStr)}else $ +=this.processTextOrObjNode(z,k,t);else if(this.options.oneListGroup){let re=this.options.tagValueProcessor(k,z);re=this.replaceEntitiesValue(re), $ +=re}else $ +=this.buildTextValNode(z,k,"",t)}this.options.oneListGroup&&( $ =this.buildObjectNode( $ ,k,j,t)),n+= $ }else if(this.options.attributesGroupName&&k===this.options.attributesGroupName){const L=Object.keys(e[k]), $ =L.length;for(let j=0;j< $ ;j++)y+=this.buildAttrPairStr(L[j],""+e[k][L[j]])}else n+=this.processTextOrObjNode(e[k],k,t);return{attrStr:y,val:n}};Builder.prototype.buildAttrPairStr=function(e,t){return t=this.options.attributeValueProcessor(e,""+t),t=this.replaceEntitiesValue(t),this.options.suppressBooleanAttributes&&t==="true"?" "+e:" "+e+'="'+t+'"'};function processTextOrObjNode(e,t,y){const n=this.j2x(e,y+1);return e[this.options.textNodeName]!==void 0&&Object.keys(e).length===1?this.buildTextValNode(e[this.options.textNodeName],t,n.attrStr,y):this.buildObjectNode(n.val,t,n.attrStr,y)}Builder.prototype.buildObjectNode=function(e,t,y,n){if(e==="")return t[0]==="?"?this.indentate(n)+"<"+t+y+"?"+this.tagEndChar:this.indentate(n)+"<"+t+y+this.closeTag(t)+this.tagEndChar;{let k="</"+t+this.tagEndChar,L="";return t[0]==="?"&&(L="?",k=""),(y||y==="")&&e.indexOf("<")===-1?this.indentate(n)+"<"+t+y+L+">"+e+k:this.options.commentPropName!==!1&&t===this.options.commentPropName&&L.length===0?this.indentate(n)+ ` <!-- $ { e } -- > ` +this.newLine:this.indentate(n)+"<"+t+y+L+this.tagEndChar+e+this.indentate(n)+k}};Builder.prototype.closeTag=function(e){let t="";return this.options.unpairedTags.indexOf(e)!==-1?this.options.suppressUnpairedNode||(t="/"):this.options.suppressEmptyNode?t="/":t= ` > < /${e}`,t};Builder.prototype.buildTextValNode=function(e,t,y,n){if(this.options.cdataPropName!==!1&&t===this.options.cdataPropName)return this.indentate(n)+`<![CDATA[${e}]]>`+this.newLine;if(this.options.commentPropName!==!1&&t===this.options.commentPropName)return this.indentate(n)+`<!--${e}-->`+this.newLine;if(t[0]==="?")return this.indentate(n)+"<"+t+y+"?"+this.tagEndChar;{let k=this.options.tagValueProcessor(t,e);return k=this.replaceEntitiesValue(k),k===""?this.indentate(n)+"<"+t+y+this.closeTag(t)+this.tagEndChar:this.indentate(n)+"<"+t+y+">"+k+"</ " + t + this . tagEndChar } } ; Builder . prototype . replaceEntitiesValue = function ( e ) { if ( e && e . length > 0 && this . options . processEntities ) for ( let t = 0 ; t < this . options . entities . length ; t ++ ) { const y = this . options . entities [ t ] ; e = e . replace ( y . regex , y . val ) } return e } ; function indentate ( e ) { return this . options . indentBy . repeat ( e ) } function isAttribute ( e ) { return e . startsWith ( this . options . attributeNamePrefix ) && e !== this . options . textNodeName ? e . substr ( this . attrPrefixLen ) : ! 1 } var json2xml = Builder ; const validator$1 = vali
2024-08-21 13:12:53 +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-25 11:35:35 +08:00
* /(function(e){var t=mimeDb,y=pathBrowserify.extname,n=/ ^ \ s * ( [ ^ ; \ s ] * ) ( ? : ; | \ s | $ ) / , k = /^text\//i ; e . charset = L , e . charsets = { lookup : L } , e . contentType = $ , e . extension = j , e . extensions = Object . create ( null ) , e . lookup = V , e . types = Object . create ( null ) , z ( e . extensions , e . types ) ; function L ( re ) { if ( ! re || typeof re != "string" ) return ! 1 ; var ie = n . exec ( re ) , oe = ie && t [ ie [ 1 ] . toLowerCase ( ) ] ; return oe && oe . charset ? oe . charset : ie && k . test ( ie [ 1 ] ) ? "UTF-8" : ! 1 } function $ ( re ) { if ( ! re || typeof re != "string" ) return ! 1 ; var ie = re . indexOf ( "/" ) === - 1 ? e . lookup ( re ) : re ; if ( ! ie ) return ! 1 ; if ( ie . indexOf ( "charset" ) === - 1 ) { var oe = e . charset ( ie ) ; oe && ( ie += "; charset=" + oe . toLowerCase ( ) ) } return ie } function j ( re ) { if ( ! re || typeof re != "string" ) return ! 1 ; var ie = n . exec ( re ) , oe = ie && e . extensions [ ie [ 1 ] . toLowerCase ( ) ] ; return ! oe || ! oe . length ? ! 1 : oe [ 0 ] } function V ( re ) { if ( ! re || typeof re != "string" ) return ! 1 ; var ie = y ( "x." + re ) . toLowerCase ( ) . substr ( 1 ) ; return ie && e . types [ ie ] || ! 1 } function z ( re , ie ) { var oe = [ "nginx" , "apache" , void 0 , "iana" ] ; Object . keys ( t ) . forEach ( function ( de ) { var pe = t [ de ] , Ie = pe . extensions ; if ( ! ( ! Ie || ! Ie . length ) ) { re [ de ] = Ie ; for ( var _e = 0 ; _e < Ie . length ; _e ++ ) { var Ce = Ie [ _e ] ; if ( ie [ Ce ] ) { var he = oe . indexOf ( t [ ie [ Ce ] ] . source ) , Ne = oe . indexOf ( pe . source ) ; if ( ie [ Ce ] !== "application/octet-stream" && ( he > Ne || he === Ne && ie [ Ce ] . substr ( 0 , 12 ) === "application/" ) ) continue } ie [ Ce ] = de } } } ) } } ) ( mimeTypes$1 ) ; let ENCRYPTION _TYPES = function ( e ) { return e . SSEC = "SSE-C" , e . KMS = "KMS" , e } ( { } ) , RETENTION _MODES = function ( e ) { return e . GOVERNANCE = "GOVERNANCE" , e . COMPLIANCE = "COMPLIANCE" , e } ( { } ) , RETENTION _VALIDITY _UNITS = function ( e ) { return e . DAYS = "Days" , e . YEARS = "Years" , e } ( { } ) , LEGAL _HOLD _STATUS = function ( e ) { return e . ENABLED = "ON" , e . DISABLED = "OFF" , e } ( { } ) ; const MetaDataHeaderPrefix = "x-amz-meta-" ; function uriEscape ( e ) { return e . split ( "" ) . reduce ( ( t , y ) => { const n = Buffer$2 . from ( y ) ; if ( n . length === 1 && ( "A" <= y && y <= "Z" || "a" <= y && y <= "z" || "0" <= y && y <= "9" || y === "_" || y === "." || y === "~" || y === "-" ) ) return t = t + y , t ; for ( const k of n ) t = t + "%" + k . toString ( 16 ) . toUpperCase ( ) ; return t } , "" ) } function uriResourceEscape ( e ) { return uriEscape ( e ) . replace ( /%2F/g , "/" ) } function getScope ( e , t , y = "s3" ) { return ` ${ makeDateShort ( t ) } / ${ e } / ${ y } /aws4_request ` } function isAmazonEndpoint ( e ) { return e === "s3.amazonaws.com" || e === "s3.cn-north-1.amazonaws.com.cn" } function isVirtualHostStyle ( e , t , y , n ) { return t === "https:" && y . includes ( "." ) ? ! 1 : isAmazonEndpoint ( e ) || ! n } function isValidIP ( e ) { return ipaddr . isValid ( e ) } function isValidEndpoint ( e ) { return isValidDomain ( e ) || isValidIP ( e ) } function isValidDomain ( e ) { if ( ! isString$1 ( e ) || e . length === 0 || e . length > 255 || e [ 0 ] === "-" || e . slice ( - 1 ) === "-" || e [ 0 ] === "_" || e . slice ( - 1 ) === "_" || e [ 0 ] === "." ) return ! 1 ; const t = "`~!@#$%^&*()+={}[]|\\\"';:><?/" ; for ( const y of t ) if ( e . includes ( y ) ) return ! 1 ; return ! 0 } function probeContentType ( e ) { let t = mimeTypes$1 . lookup ( e ) ; return t || ( t = "application/octet-stream" ) , t } function isValidPort ( e ) { return isNumber$2 ( e ) ? 0 <= e && e <= 65535 : ! 1 } function isValidBucketName ( e ) { return ! isString$1 ( e ) || e . length < 3 || e . length > 63 || e . includes ( ".." ) || /[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+/ . test ( e ) ? ! 1 : ! ! /^[a-z0-9][a-z0-9.-]+[a-z0-9]$/ . test ( e ) } function isValidObjectName ( e ) { return isValidPrefix ( e ) ? e . length !== 0 : ! 1 } function isValidPrefix ( e ) { return ! ( ! isString$1 ( e ) || e . length > 1024 ) } function isNumber$2 ( e ) { return typeof e == "number" } function isFunction$1 ( e ) { return typeof e == "function" } function isString$1 ( e ) { return typeof e == "string" } function isObject$1 ( e ) { return typeof e == "object" && e !== null } function isReadableStream$1 ( e ) { return isObject$1 ( e ) && isFunction$1 ( e . _read ) } function isBoolean$1 ( e ) { return typeof e == "boolean" } function isEmpty ( e ) { return _ . isEmpty ( e ) } function isEmptyObject ( e ) { return Object . values ( e ) . filter ( t => t !== void 0 ) . length !== 0 } function isDefined ( e ) { return e != null } function isValidDate ( e ) { return e instanceof Date && ! isNaN ( e ) } function makeDateLong ( e ) { e = e || new Date ; const t = e . toISOString ( ) ; return t . slice ( 0 , 4 ) + t . slice ( 5 , 7 ) + t . slice ( 8 , 13 ) + t . slice ( 14 , 16 ) + t . slice ( 17 , 19 ) + "Z" } function makeDateShort ( e ) { e = e || new Date ; const t = e . toISOString ( ) ; return t . slice ( 0 , 4 ) + t . slice ( 5 , 7 ) + t . slice ( 8 , 10 ) } function pipesetup ( ... e ) { return e . reduce ( ( t , y ) => ( t . on ( "error" , n => y . emit ( "error" , n ) ) , t . pipe ( y ) ) ) } function readableStream ( e ) { const t = new streamBrowserify . Readable
2024-08-21 13:12:53 +08:00
` )+ `
` ,n.join(";").toLowerCase(),k].join( `
` )}function getCredential(e,t,y,n="s3"){if(!isString $ 1(e))throw new TypeError('accessKey should be of type "string"');if(!isString $ 1(t))throw new TypeError('region should be of type "string"');if(!isObject $ 1(y))throw new TypeError('requestDate should be of type "object"');return ` $ { e } / $ { getScope ( t , y , n ) } ` }function getSignedHeaders(e){if(!isObject $ 1(e))throw new TypeError('request should be of type "object"');const t=["authorization","content-length","content-type","user-agent"];return Object.keys(e).filter(y=>!t.includes(y)).sort()}function getSigningKey(e,t,y,n="s3"){if(!isObject $ 1(e))throw new TypeError('date should be of type "object"');if(!isString $ 1(t))throw new TypeError('region should be of type "string"');if(!isString $ 1(y))throw new TypeError('secretKey should be of type "string"');const k=makeDateShort(e);return(void 0)("sha256",(void 0)("sha256",(void 0)("sha256",(void 0)("sha256","AWS4"+y).update(k).digest()).update(t).digest()).update(n).digest()).update("aws4_request").digest()}function getStringToSign(e,t,y,n="s3"){if(!isString $ 1(e))throw new TypeError('canonicalRequest should be of type "string"');if(!isObject $ 1(t))throw new TypeError('requestDate should be of type "object"');if(!isString $ 1(y))throw new TypeError('region should be of type "string"');const k=(void 0)("sha256").update(e).digest("hex"),L=getScope(y,t,n);return[signV4Algorithm,makeDateLong(t),L,k].join( `
2024-08-25 11:35:35 +08:00
` )}function postPresignSignatureV4(e,t,y,n){if(!isString $ 1(e))throw new TypeError('region should be of type "string"');if(!isObject $ 1(t))throw new TypeError('date should be of type "object"');if(!isString $ 1(y))throw new TypeError('secretKey should be of type "string"');if(!isString $ 1(n))throw new TypeError('policyBase64 should be of type "string"');return(void 0)("sha256",getSigningKey(t,e,y)).update(n).digest("hex").toLowerCase()}function signV4(e,t,y,n,k,L, $ ="s3"){if(!isObject $ 1(e))throw new TypeError('request should be of type "object"');if(!isString $ 1(t))throw new TypeError('accessKey should be of type "string"');if(!isString $ 1(y))throw new TypeError('secretKey should be of type "string"');if(!isString $ 1(n))throw new TypeError('region should be of type "string"');if(!t)throw new AccessKeyRequiredError("accessKey is required for signing");if(!y)throw new SecretKeyRequiredError("secretKey is required for signing");const j=getSignedHeaders(e.headers),V=getCanonicalRequest(e.method,e.path,e.headers,j,L),z= $ ||"s3",re=getStringToSign(V,k,n,z),ie=getSigningKey(k,n,y,z),oe=getCredential(t,n,k,z),ue=(void 0)("sha256",ie).update(re).digest("hex").toLowerCase();return ` $ { signV4Algorithm } Credential = $ { oe } , SignedHeaders = $ { j . join ( ";" ) . toLowerCase ( ) } , Signature = $ { ue } ` }function presignSignatureV4(e,t,y,n,k,L, $ ){if(!isObject $ 1(e))throw new TypeError('request should be of type "object"');if(!isString $ 1(t))throw new TypeError('accessKey should be of type "string"');if(!isString $ 1(y))throw new TypeError('secretKey should be of type "string"');if(!isString $ 1(k))throw new TypeError('region should be of type "string"');if(!t)throw new AccessKeyRequiredError("accessKey is required for presigning");if(!y)throw new SecretKeyRequiredError("secretKey is required for presigning");if(!isNumber $ 2( $ ))throw new TypeError('expires should be of type "number"');if( $ <1)throw new ExpiresParamError("expires param cannot be less than 1 seconds");if( $ >604800)throw new ExpiresParamError("expires param cannot be greater than 7 days");const j=makeDateLong(L),V=getSignedHeaders(e.headers),z=getCredential(t,k,L),re="UNSIGNED-PAYLOAD",ie=[];ie.push( ` X - Amz - Algorithm = $ { signV4Algorithm } ` ),ie.push( ` X - Amz - Credential = $ { uriEscape ( z ) } ` ),ie.push( ` X - Amz - Date = $ { j } ` ),ie.push( ` X - Amz - Expires = $ { $ } ` ),ie.push( ` X - Amz - SignedHeaders = $ { uriEscape ( V . join ( ";" ) . toLowerCase ( ) ) } ` ),n&&ie.push( ` X - Amz - Security - Token = $ { uriEscape ( n ) } ` );const oe=e.path.split("?")[0];let ue=e.path.split("?")[1];ue?ue=ue+"&"+ie.join("&"):ue=ie.join("&");const de=oe+"?"+ue,pe=getCanonicalRequest(e.method,de,e.headers,V,re),Ie=getStringToSign(pe,L,k),Ce=(void 0)("sha256",getSigningKey(L,k,y)).update(Ie).digest("hex").toLowerCase();return e.protocol+"//"+e.headers.host+de+ ` & X - Amz - Signature = $ { Ce } ` }async function readAsBuffer(e){return new Promise((t,y)=>{const n=[];e.on("data",k=>n.push(k)).on("error",k=>y(k)).on("end",()=>t(Buffer $ 2.concat(n)))})}async function readAsString(e){return(await readAsBuffer(e)).toString()}async function drainResponse(e){return new Promise((t,y)=>{e.on("data",()=>{}).on("error",n=>y(n)).on("end",()=>t())})}function parseBucketRegion(e){return parseXml(e).LocationConstraint}const fxp=new fxp $ 2.XMLParser;function parseError(e,t){let y={};const n=fxp.parse(e);n.Error&&(y=n.Error);const k=new S3Error;return Object.entries(y).forEach(([L, $ ])=>{k[L.toLowerCase()]= $ }),Object.entries(t).forEach(([L, $ ])=>{k[L]= $ }),k}async function parseResponseError(e){const t=e.statusCode;let y,n;t===301?(y="MovedPermanently",n="Moved Permanently"):t===307?(y="TemporaryRedirect",n="Are you using the correct endpoint URL?"):t===403?(y="AccessDenied",n="Valid and authorized credentials required"):t===404?(y="NotFound",n="Not Found"):t===405||t===501?(y="MethodNotAllowed",n="Method Not Allowed"):(y="UnknownError",n= ` $ { t } ` );const k={};k.amzRequestid=e.headers["x-amz-request-id"],k.amzId2=e.headers["x-amz-id-2"],k.amzBucketRegion=e.headers["x-amz-bucket-region"];const L=await readAsString(e);if(L)throw parseError(L,k);const $ =new S3Error(n,{cause:k});throw $ .code=y,Object.entries(k).forEach(([j,V])=>{ $ [j]=V}), $ }functi
2024-08-21 13:12:53 +08:00
` )}),k.write( `
` )};if(k.write( ` REQUEST : $ { t . method } $ { t . path }
` ),L(t.headers),y&&(this.logStream.write( ` RESPONSE : $ { y . statusCode }
` ),L(y.headers)),n){k.write( ` ERROR BODY :
` );const $ =JSON.stringify(n,null," ");k.write( ` $ { $ }
2024-08-25 11:35:35 +08:00
` )}}traceOn(t){t||(t=define_process_default $ 3.stdout),this.logStream=t}traceOff(){this.logStream=void 0}async makeRequestAsync(t,y="",n=[200],k=""){if(!isObject $ 1(t))throw new TypeError('options should be of type "object"');if(!isString $ 1(y)&&!isObject $ 1(y))throw new TypeError('payload should be of type "string" or "Buffer"');if(n.forEach( $ =>{if(!isNumber $ 2( $ ))throw new TypeError('statusCode should be of type "number"')}),!isString $ 1(k))throw new TypeError('region should be of type "string"');t.headers||(t.headers={}),(t.method==="POST"||t.method==="PUT"||t.method==="DELETE")&&(t.headers["content-length"]=y.length.toString());const L=this.enableSHA256?toSha256(y):"";return this.makeRequestStreamAsync(t,y,L,n,k)}async makeRequestAsyncOmit(t,y="",n=[200],k=""){const L=await this.makeRequestAsync(t,y,n,k);return await drainResponse(L),L}async makeRequestStreamAsync(t,y,n,k,L){if(!isObject $ 1(t))throw new TypeError('options should be of type "object"');if(!(Buffer $ 2.isBuffer(y)||typeof y=="string"||isReadableStream $ 1(y)))throw new InvalidArgumentError( ` stream should be a Buffer , string or readable Stream , got $ { typeof y } instead ` );if(!isString $ 1(n))throw new TypeError('sha256sum should be of type "string"');if(k.forEach(V=>{if(!isNumber $ 2(V))throw new TypeError('statusCode should be of type "number"')}),!isString $ 1(L))throw new TypeError('region should be of type "string"');if(!this.enableSHA256&&n.length!==0)throw new InvalidArgumentError("sha256sum expected to be empty for anonymous or https requests");if(this.enableSHA256&&n.length!==64)throw new InvalidArgumentError( ` Invalid sha256sum : $ { n } ` );await this.checkAndRefreshCreds(),L=L||await this.getBucketRegionAsync(t.bucketName);const $ =this.getRequestOptions({...t,region:L});if(!this.anonymous){this.enableSHA256||(n="UNSIGNED-PAYLOAD");const V=new Date; $ .headers["x-amz-date"]=makeDateLong(V), $ .headers["x-amz-content-sha256"]=n,this.sessionToken&&( $ .headers["x-amz-security-token"]=this.sessionToken), $ .headers.authorization=signV4( $ ,this.accessKey,this.secretKey,L,V,n)}const j=await request $ 1(this.transport, $ ,y);if(!j.statusCode)throw new Error("BUG: response doesn't have a statusCode");if(!k.includes(j.statusCode)){delete this.regionMap[t.bucketName];const V=await parseResponseError(j);throw this.logHTTP( $ ,j,V),V}return this.logHTTP( $ ,j),j}async getBucketRegionAsync(t){if(!isValidBucketName(t))throw new InvalidBucketNameError( ` Invalid bucket name : $ { t } ` );if(this.region)return this.region;const y=this.regionMap[t];if(y)return y;const n=async z=>{const re=await readAsString(z),ie=parseBucketRegion(re)||DEFAULT_REGION;return this.regionMap[t]=ie,ie},k="GET",L="location", $ =this.pathStyle&&!isBrowser_1;let j;try{const z=await this.makeRequestAsync({method:k,bucketName:t,query:L,pathStyle: $ },"",[200],DEFAULT_REGION);return n(z)}catch(z){if(z.name!=="AuthorizationHeaderMalformed"||(j=z.Region,!j))throw z}const V=await this.makeRequestAsync({method:k,bucketName:t,query:L,pathStyle: $ },"",[200],j);return await n(V)}makeRequest(t,y="",n=[200],k="",L, $ ){let j;L?j=this.makeRequestAsync(t,y,n,k):j=this.makeRequestAsyncOmit(t,y,n,k),j.then(V=> $ (null,V),V=>{ $ (V)})}makeRequestStream(t,y,n,k,L, $ ,j){(async()=>{const z=await this.makeRequestStreamAsync(t,y,n,k,L);return $ ||await drainResponse(z),z})().then(z=>j(null,z),z=>j(z))}getBucketRegion(t,y){return this.getBucketRegionAsync(t).then(n=>y(null,n),n=>y(n))}async removeBucket(t){if(!isValidBucketName(t))throw new InvalidBucketNameError("Invalid bucket name: "+t);await this.makeRequestAsyncOmit({method:"DELETE",bucketName:t},"",[204]),delete this.regionMap[t]}async statObject(t,y,n={}){if(!isValidBucketName(t))throw new InvalidBucketNameError("Invalid bucket name: "+t);if(!isValidObjectName(y))throw new InvalidObjectNameError( ` Invalid object name : $ { y } ` );if(!isObject $ 1(n))throw new InvalidArgumentError('statOpts should be of type "object"');const k=queryString.stringify(n), $ =await this.makeRequestAsyncOmit({method:"HEAD",bucketName:t,objectName:y,query:k});return{size:parseInt( $ .headers["content-length"]),metaData:extractMetadata( $ .headers
` ).forEach(function(_e){if(_e){var Ce=_e.indexOf(":"),he=_e.substr(0,Ce).trim().toLowerCase(),Ne=_e.substr(Ce+1).trim();pe[he]=Ne}}),{error:oe,statusCode:ue.status,statusMessage:ue.statusText,headers:pe,body:de}},z=function(oe,ue){return!ue&&ue==="text"?oe.responseText:oe.response},re=function(oe,ue){var de=(oe.method||"GET").toUpperCase(),pe=oe.url;if(oe.qs){var Ie=j(oe.qs);Ie&&(pe+=(pe.indexOf("?")===-1?"?":"&")+Ie)}var _e=new XMLHttpRequest;if(_e.open(de,pe,!0),_e.responseType=oe.dataType||"text",oe.xhrFields)for(var Ce in oe.xhrFields)_e[Ce]=oe.xhrFields[Ce];var he=oe.headers;if(he)for(var Ne in he)he.hasOwnProperty(Ne)&&Ne.toLowerCase()!=="content-length"&&Ne.toLowerCase()!=="user-agent"&&Ne.toLowerCase()!=="origin"&&Ne.toLowerCase()!=="host"&&_e.setRequestHeader(Ne,he[Ne]);return oe.onProgress&&_e.upload&&(_e.upload.onprogress=oe.onProgress),oe.onDownloadProgress&&(_e.onprogress=oe.onDownloadProgress),oe.timeout&&(_e.timeout=oe.timeout),_e.ontimeout=function(Fe){var Ve=new Error("timeout");ue(V(Ve,_e))},_e.onload=function(){ue(V(null,_e,z(_e,oe.dataType)))},_e.onerror=function(Fe){var Ve=z(_e,oe.dataType);if(Ve)ue(V(null,_e,Ve));else{var jt=_e.statusText;!jt&&_e.status===0&&(jt=new Error("CORS blocked or network error")),ue(V(jt,_e,Ve))}},_e.send(oe.body||""),_e};y.exports=re},"./node_modules/@babel/runtime/helpers/classCallCheck.js":function(y,n){function k(L, $ ){if(!(L instanceof $ ))throw new TypeError("Cannot call a class as a function")}y.exports=k,y.exports.__esModule=!0,y.exports.default=y.exports},"./node_modules/@babel/runtime/helpers/createClass.js":function(y,n,k){var L=k("./node_modules/@babel/runtime/helpers/toPropertyKey.js");function $ (V,z){for(var re=0;re<z.length;re++){var ie=z[re];ie.enumerable=ie.enumerable||!1,ie.configurable=!0,"value"in ie&&(ie.writable=!0),Object.defineProperty(V,L(ie.key),ie)}}function j(V,z,re){return z&& $ (V.prototype,z),re&& $ (V,re),Object.defineProperty(V,"prototype",{writable:!1}),V}y.exports=j,y.exports.__esModule=!0,y.exports.default=y.exports},"./node_modules/@babel/runtime/helpers/toPrimitive.js":function(y,n,k){var L=k("./node_modules/@babel/runtime/helpers/typeof.js").default;function $ (j,V){if(L(j)!=="object"||j===null)return j;var z=j[Symbol.toPrimitive];if(z!==void 0){var re=z.call(j,V||"default");if(L(re)!=="object")return re;throw new TypeError("@@toPrimitive must return a primitive value.")}return(V==="string"?String:Number)(j)}y.exports= $ ,y.exports.__esModule=!0,y.exports.default=y.exports},"./node_modules/@babel/runtime/helpers/toPropertyKey.js":function(y,n,k){var L=k("./node_modules/@babel/runtime/helpers/typeof.js").default, $ =k("./node_modules/@babel/runtime/helpers/toPrimitive.js");function j(V){var z= $ (V,"string");return L(z)==="symbol"?z:String(z)}y.exports=j,y.exports.__esModule=!0,y.exports.default=y.exports},"./node_modules/@babel/runtime/helpers/typeof.js":function(y,n){function k(L){"@babel/helpers - typeof";return y.exports=k=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function( $ ){return typeof $ }:function( $ ){return $ &&typeof Symbol=="function"&& $ .constructor===Symbol&& $ !==Symbol.prototype?"symbol":typeof $ },y.exports.__esModule=!0,y.exports.default=y.exports,k(L)}y.exports=k,y.exports.__esModule=!0,y.exports.default=y.exports},"./node_modules/fast-xml-parser/src/fxp.js":function(y,n,k){const L=k("./node_modules/fast-xml-parser/src/validator.js"), $ =k("./node_modules/fast-xml-parser/src/xmlparser/XMLParser.js"),j=k("./node_modules/fast-xml-parser/src/xmlbuilder/json2xml.js");y.exports={XMLParser: $ ,XMLValidator:L,XMLBuilder:j}},"./node_modules/fast-xml-parser/src/util.js":function(y,n,k){const L=":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", $ =L+" \\ -. \\ d \\ u00B7 \\ u0300- \\ u036F \\ u203F- \\ u2040",j="["+L+"]["+ $ +"]*",V=new RegExp("^"+j+" $ "),z=function(ie,oe){const ue=[];let de=oe.exec(ie);for(;de;){const pe=[];pe.startIndex=oe.lastIndex-de[0].length;const Ie=de.length;for(let _e=0;_e<Ie;_e++)pe.push(de[_e]);ue.pu
` &&Ve[kt]!==" \r ";kt++)ar+=Ve[kt];if(ar=ar.trim(),ar[ar.length-1]==="/"&&(ar=ar.substring(0,ar.length-1),kt--),!he(ar)){let cr;return ar.trim().length===0?cr="Invalid space after '<'.":cr="Tag '"+ar+"' is an invalid name.",_e("InvalidTag",cr,Ne(Ve,kt))}const nr=oe(Ve,kt);if(nr===!1)return _e("InvalidAttr","Attributes for '"+ar+"' have open quote.",Ne(Ve,kt));let ur=nr.value;if(kt=nr.index,ur[ur.length-1]==="/"){const cr=kt-ur.length;ur=ur.substring(0,ur.length-1);const mr=de(ur,jt);if(mr===!0)Ue=!0;else return _e(mr.err.code,mr.err.msg,Ne(Ve,cr+mr.err.line))}else if(rr)if(nr.tagClosed){if(ur.trim().length>0)return _e("InvalidTag","Closing tag '"+ar+"' can't have attributes or invalid starting.",Ne(Ve,tr));if(Et.length===0)return _e("InvalidTag","Closing tag '"+ar+"' has not been opened.",Ne(Ve,tr));{const cr=Et.pop();if(ar!==cr.tagName){let mr=Ne(Ve,cr.tagStartPos);return _e("InvalidTag","Expected closing tag '"+cr.tagName+"' (opened in line "+mr.line+", col "+mr.col+") instead of closing tag '"+ar+"'.",Ne(Ve,tr))}Et.length==0&&(qe=!0)}}else return _e("InvalidTag","Closing tag '"+ar+"' doesn't have proper closing.",Ne(Ve,kt));else{const cr=de(ur,jt);if(cr!==!0)return _e(cr.err.code,cr.err.msg,Ne(Ve,kt-ur.length+cr.err.line));if(qe===!0)return _e("InvalidXml","Multiple possible root nodes found.",Ne(Ve,kt));jt.unpairedTags.indexOf(ar)!==-1||Et.push({tagName:ar,tagStartPos:tr}),Ue=!0}for(kt++;kt<Ve.length;kt++)if(Ve[kt]==="<")if(Ve[kt+1]==="!"){kt++,kt=z(Ve,kt);continue}else if(Ve[kt+1]==="?"){if(kt=V(Ve,++kt),kt.err)return kt}else break;else if(Ve[kt]==="&"){const cr=Ie(Ve,kt);if(cr==-1)return _e("InvalidChar","char '&' is not expected.",Ne(Ve,kt));kt=cr}else if(qe===!0&&!j(Ve[kt]))return _e("InvalidXml","Extra text at the end",Ne(Ve,kt));Ve[kt]==="<"&&kt--}}else{if(j(Ve[kt]))continue;return _e("InvalidChar","char '"+Ve[kt]+"' is not expected.",Ne(Ve,kt))}if(Ue){if(Et.length==1)return _e("InvalidTag","Unclosed tag '"+Et[0].tagName+"'.",Ne(Ve,Et[0].tagStartPos));if(Et.length>0)return _e("InvalidXml","Invalid '"+JSON.stringify(Et.map(kt=>kt.tagName),null,4).replace(/ \r ? \n /g,"")+"' found.",{line:1,col:1})}else return _e("InvalidXml","Start tag expected.",1);return!0};function j(Ve){return Ve===" "||Ve===" "||Ve=== `
` ||Ve===" \r "}function V(Ve,jt){const Et=jt;for(;jt<Ve.length;jt++)if(Ve[jt]=="?"||Ve[jt]==" "){const Ue=Ve.substr(Et,jt-Et);if(jt>5&&Ue==="xml")return _e("InvalidXml","XML declaration allowed only at the start of the document.",Ne(Ve,jt));if(Ve[jt]=="?"&&Ve[jt+1]==">"){jt++;break}else continue}return jt}function z(Ve,jt){if(Ve.length>jt+5&&Ve[jt+1]==="-"&&Ve[jt+2]==="-"){for(jt+=3;jt<Ve.length;jt++)if(Ve[jt]==="-"&&Ve[jt+1]==="-"&&Ve[jt+2]===">"){jt+=2;break}}else if(Ve.length>jt+8&&Ve[jt+1]==="D"&&Ve[jt+2]==="O"&&Ve[jt+3]==="C"&&Ve[jt+4]==="T"&&Ve[jt+5]==="Y"&&Ve[jt+6]==="P"&&Ve[jt+7]==="E"){let Et=1;for(jt+=8;jt<Ve.length;jt++)if(Ve[jt]==="<")Et++;else if(Ve[jt]===">"&&(Et--,Et===0))break}else if(Ve.length>jt+9&&Ve[jt+1]==="["&&Ve[jt+2]==="C"&&Ve[jt+3]==="D"&&Ve[jt+4]==="A"&&Ve[jt+5]==="T"&&Ve[jt+6]==="A"&&Ve[jt+7]==="["){for(jt+=8;jt<Ve.length;jt++)if(Ve[jt]==="]"&&Ve[jt+1]==="]"&&Ve[jt+2]===">"){jt+=2;break}}return jt}const re='"',ie="'";function oe(Ve,jt){let Et="",Ue="",qe=!1;for(;jt<Ve.length;jt++){if(Ve[jt]===re||Ve[jt]===ie)Ue===""?Ue=Ve[jt]:Ue!==Ve[jt]||(Ue="");else if(Ve[jt]===">"&&Ue===""){qe=!0;break}Et+=Ve[jt]}return Ue!==""?!1:{value:Et,index:jt,tagClosed:qe}}const ue=new RegExp( ` ( \ \ s * ) ( [ ^ \ \ s = ] + ) ( \ \ s *= ) ? ( \ \ s * ( [ '"])(([\\s\\S])*?)\\5)?`,"g");function de(Ve,jt){const Et=L.getAllMatches(Ve,ue),Ue={};for(let qe=0;qe<Et.length;qe++){if(Et[qe][1].length===0)return _e("InvalidAttr","Attribute ' "+Et[qe][2]+" ' has no space in starting.",Fe(Et[qe]));if(Et[qe][3]!==void 0&&Et[qe][4]===void 0)return _e("InvalidAttr","Attribute ' "+Et[qe][2]+" ' is without value.",Fe(Et[qe]));if(Et[qe][3]===void 0&&!jt.allowBooleanAttributes)return _e("InvalidAttr","boolean attribute ' "+Et[qe][2]+" ' is not allowed.",Fe(Et[qe]));const kt=Et[qe][2];if(!Ce(kt))return _e("InvalidAttr","Attribute ' "+kt+" ' is an invalid name.",Fe(Et[qe]));if(!Ue.hasOwnProperty(kt))Ue[kt]=1;else return _e("InvalidAttr","Attribute ' "+kt+" ' is repeated.",Fe(Et[qe]))}return!0}function pe(Ve,jt){let Et=/\d/;for(Ve[jt]==="x"&&(jt++,Et=/[\da-fA-F]/);jt<Ve.length;jt++){if(Ve[jt]===";")return jt;if(!Ve[jt].match(Et))break}return-1}function Ie(Ve,jt){if(jt++,Ve[jt]===";")return-1;if(Ve[jt]==="#")return jt++,pe(Ve,jt);let Et=0;for(;jt<Ve.length;jt++,Et++)if(!(Ve[jt].match(/\w/)&&Et<20)){if(Ve[jt]===";")break;return-1}return jt}function _e(Ve,jt,Et){return{err:{code:Ve,msg:jt,line:Et.line||Et,col:Et.col}}}function Ce(Ve){return L.isName(Ve)}function he(Ve){return L.isName(Ve)}function Ne(Ve,jt){const Et=Ve.substring(0,jt).split(/\r?\n/);return{line:Et.length,col:Et[Et.length-1].length+1}}function Fe(Ve){return Ve.startIndex+Ve[1].length}},"./node_modules/fast-xml-parser/src/xmlbuilder/json2xml.js":function(y,n,k){const L=k("./node_modules/fast-xml-parser/src/xmlbuilder/orderedJs2Xml.js"),$={attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,cdataPropName:!1,format:!1,indentBy:" ",suppressEmptyNode:!1,suppressUnpairedNode:!0,suppressBooleanAttributes:!0,tagValueProcessor:function(ie,oe){return oe},attributeValueProcessor:function(ie,oe){return oe},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 j ( ie ) { this . options = Object . assign ( { } , $ , ie ) , this . options . ignoreAttributes || this . options . attributesGroupName ? this . isAttribute = function ( ) { return ! 1 } : ( this . attrPrefixLen = this . options . attributeNamePrefix . length , this . isAttribute = re ) , this . processTextOrObjNode = V , this . options . format ? ( this . indentate = z , this . tagEndChar = ` >
2024-08-21 13:12:53 +08:00
` ,this.newLine= `
2024-08-22 08:49:17 +08:00
` ):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}j.prototype.build=function(ie){return this.options.preserveOrder?L(ie,this.options):(Array.isArray(ie)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(ie={[this.options.arrayNodeName]:ie}),this.j2x(ie,0).val)},j.prototype.j2x=function(ie,oe){let ue="",de="";for(let pe in ie)if(Object.prototype.hasOwnProperty.call(ie,pe))if(typeof ie[pe]>"u")this.isAttribute(pe)&&(de+="");else if(ie[pe]===null)this.isAttribute(pe)?de+="":pe[0]==="?"?de+=this.indentate(oe)+"<"+pe+"?"+this.tagEndChar:de+=this.indentate(oe)+"<"+pe+"/"+this.tagEndChar;else if(ie[pe]instanceof Date)de+=this.buildTextValNode(ie[pe],pe,"",oe);else if(typeof ie[pe]!="object"){const Ie=this.isAttribute(pe);if(Ie)ue+=this.buildAttrPairStr(Ie,""+ie[pe]);else if(pe===this.options.textNodeName){let _e=this.options.tagValueProcessor(pe,""+ie[pe]);de+=this.replaceEntitiesValue(_e)}else de+=this.buildTextValNode(ie[pe],pe,"",oe)}else if(Array.isArray(ie[pe])){const Ie=ie[pe].length;let _e="";for(let Ce=0;Ce<Ie;Ce++){const he=ie[pe][Ce];typeof he>"u"||(he===null?pe[0]==="?"?de+=this.indentate(oe)+"<"+pe+"?"+this.tagEndChar:de+=this.indentate(oe)+"<"+pe+"/"+this.tagEndChar:typeof he=="object"?this.options.oneListGroup?_e+=this.j2x(he,oe+1).val:_e+=this.processTextOrObjNode(he,pe,oe):_e+=this.buildTextValNode(he,pe,"",oe))}this.options.oneListGroup&&(_e=this.buildObjectNode(_e,pe,"",oe)),de+=_e}else if(this.options.attributesGroupName&&pe===this.options.attributesGroupName){const Ie=Object.keys(ie[pe]),_e=Ie.length;for(let Ce=0;Ce<_e;Ce++)ue+=this.buildAttrPairStr(Ie[Ce],""+ie[pe][Ie[Ce]])}else de+=this.processTextOrObjNode(ie[pe],pe,oe);return{attrStr:ue,val:de}},j.prototype.buildAttrPairStr=function(ie,oe){return oe=this.options.attributeValueProcessor(ie,""+oe),oe=this.replaceEntitiesValue(oe),this.options.suppressBooleanAttributes&&oe==="true"?" "+ie:" "+ie+'="'+oe+'"'};function V(ie,oe,ue){const de=this.j2x(ie,ue+1);return ie[this.options.textNodeName]!==void 0&&Object.keys(ie).length===1?this.buildTextValNode(ie[this.options.textNodeName],oe,de.attrStr,ue):this.buildObjectNode(de.val,oe,de.attrStr,ue)}j.prototype.buildObjectNode=function(ie,oe,ue,de){if(ie==="")return oe[0]==="?"?this.indentate(de)+"<"+oe+ue+"?"+this.tagEndChar:this.indentate(de)+"<"+oe+ue+this.closeTag(oe)+this.tagEndChar;{let pe="</"+oe+this.tagEndChar,Ie="";return oe[0]==="?"&&(Ie="?",pe=""),(ue||ue==="")&&ie.indexOf("<")===-1?this.indentate(de)+"<"+oe+ue+Ie+">"+ie+pe:this.options.commentPropName!==!1&&oe===this.options.commentPropName&&Ie.length===0?this.indentate(de)+ ` <!-- $ { ie } -- > ` +this.newLine:this.indentate(de)+"<"+oe+ue+Ie+this.tagEndChar+ie+this.indentate(de)+pe}},j.prototype.closeTag=function(ie){let oe="";return this.options.unpairedTags.indexOf(ie)!==-1?this.options.suppressUnpairedNode||(oe="/"):this.options.suppressEmptyNode?oe="/":oe= ` > < /${ie}`,oe},j.prototype.buildTextValNode=function(ie,oe,ue,de){if(this.options.cdataPropName!==!1&&oe===this.options.cdataPropName)return this.indentate(de)+`<![CDATA[${ie}]]>`+this.newLine;if(this.options.commentPropName!==!1&&oe===this.options.commentPropName)return this.indentate(de)+`<!--${ie}-->`+this.newLine;if(oe[0]==="?")return this.indentate(de)+"<"+oe+ue+"?"+this.tagEndChar;{let pe=this.options.tagValueProcessor(oe,ie);return pe=this.replaceEntitiesValue(pe),pe===""?this.indentate(de)+"<"+oe+ue+this.closeTag(oe)+this.tagEndChar:this.indentate(de)+"<"+oe+ue+">"+pe+"</ "+oe+this.tagEndChar}},j.prototype.replaceEntitiesValue=function(ie){if(ie&&ie.length>0&&this.options.processEntities)for(let oe=0;oe<this.options.entities.length;oe++){const ue=this.options.entities[oe];ie=ie.replace(ue.regex,ue.val)}return ie};function z(ie){return this.options.indentBy.repeat(ie)}function re(ie){return ie.startsWith(this.options.attributeNamePrefix)&&ie!==this.options.textNodeName?ie.substr(this.attrPrefixLen):!1}y.exports=j}," . / node _modules / fast - xml - parser / src / xmlbuilder / orderedJs2Xml . js " : function ( y , n ) { const k = `
2024-08-25 11:35:35 +08:00
` ;function L(ie,oe){let ue="";return oe.format&&oe.indentBy.length>0&&(ue=k), $ (ie,oe,"",ue)}function $ (ie,oe,ue,de){let pe="",Ie=!1;for(let _e=0;_e<ie.length;_e++){const Ce=ie[_e],he=j(Ce);if(he===void 0)continue;let Ne="";if(ue.length===0?Ne=he:Ne= ` $ { ue } . $ { he } ` ,he===oe.textNodeName){let Ue=Ce[he];z(Ne,oe)||(Ue=oe.tagValueProcessor(he,Ue),Ue=re(Ue,oe)),Ie&&(pe+=de),pe+=Ue,Ie=!1;continue}else if(he===oe.cdataPropName){Ie&&(pe+=de),pe+= ` < ! [ CDATA [ $ { Ce [ he ] [ 0 ] [ oe . textNodeName ] } ] ] > ` ,Ie=!1;continue}else if(he===oe.commentPropName){pe+=de+ ` <!-- $ { Ce [ he ] [ 0 ] [ oe . textNodeName ] } -- > ` ,Ie=!0;continue}else if(he[0]==="?"){const Ue=V(Ce[":@"],oe),qe=he==="?xml"?"":de;let kt=Ce[he][0][oe.textNodeName];kt=kt.length!==0?" "+kt:"",pe+=qe+ ` < $ { he } $ { kt } $ { Ue } ? > ` ,Ie=!0;continue}let Fe=de;Fe!==""&&(Fe+=oe.indentBy);const Ve=V(Ce[":@"],oe),jt=de+ ` < $ { he } $ { Ve } ` ,Et= $ (Ce[he],oe,Ne,Fe);oe.unpairedTags.indexOf(he)!==-1?oe.suppressUnpairedNode?pe+=jt+">":pe+=jt+"/>":(!Et||Et.length===0)&&oe.suppressEmptyNode?pe+=jt+"/>":Et&&Et.endsWith(">")?pe+=jt+ ` > $ { Et } $ { de } < /${he}>`:(pe+=jt+">",Et&&de!==""&&(Et.includes("/ > ")||Et.includes(" < /"))?pe+=de+oe.indentBy+Et+de:pe+=Et,pe+=`</ $ { he } > ` ),Ie=!0}return pe}function j(ie){const oe=Object.keys(ie);for(let ue=0;ue<oe.length;ue++){const de=oe[ue];if(ie.hasOwnProperty(de)&&de!==":@")return de}}function V(ie,oe){let ue="";if(ie&&!oe.ignoreAttributes)for(let de in ie){if(!ie.hasOwnProperty(de))continue;let pe=oe.attributeValueProcessor(de,ie[de]);pe=re(pe,oe),pe===!0&&oe.suppressBooleanAttributes?ue+= ` $ { de . substr ( oe . attributeNamePrefix . length ) } ` :ue+= ` $ { de . substr ( oe . attributeNamePrefix . length ) } = "${pe}" ` }return ue}function z(ie,oe){ie=ie.substr(0,ie.length-oe.textNodeName.length-1);let ue=ie.substr(ie.lastIndexOf(".")+1);for(let de in oe.stopNodes)if(oe.stopNodes[de]===ie||oe.stopNodes[de]==="*."+ue)return!0;return!1}function re(ie,oe){if(ie&&ie.length>0&&oe.processEntities)for(let ue=0;ue<oe.entities.length;ue++){const de=oe.entities[ue];ie=ie.replace(de.regex,de.val)}return ie}y.exports=L},"./node_modules/fast-xml-parser/src/xmlparser/DocTypeReader.js":function(y,n,k){const L=k("./node_modules/fast-xml-parser/src/util.js");function $ (de,pe){const Ie={};if(de[pe+3]==="O"&&de[pe+4]==="C"&&de[pe+5]==="T"&&de[pe+6]==="Y"&&de[pe+7]==="P"&&de[pe+8]==="E"){pe=pe+9;let _e=1,Ce=!1,he=!1,Ne="";for(;pe<de.length;pe++)if(de[pe]==="<"&&!he){if(Ce&&z(de,pe))pe+=7,[entityName,val,pe]=j(de,pe+1),val.indexOf("&")===-1&&(Ie[ue(entityName)]={regx:RegExp( ` & $ { entityName } ; ` ,"g"),val});else if(Ce&&re(de,pe))pe+=8;else if(Ce&&ie(de,pe))pe+=8;else if(Ce&&oe(de,pe))pe+=9;else if(V)he=!0;else throw new Error("Invalid DOCTYPE");_e++,Ne=""}else if(de[pe]===">"){if(he?de[pe-1]==="-"&&de[pe-2]==="-"&&(he=!1,_e--):_e--,_e===0)break}else de[pe]==="["?Ce=!0:Ne+=de[pe];if(_e!==0)throw new Error("Unclosed DOCTYPE")}else throw new Error("Invalid Tag instead of DOCTYPE");return{entities:Ie,i:pe}}function j(de,pe){let Ie="";for(;pe<de.length&&de[pe]!=="'"&&de[pe]!=='"';pe++)Ie+=de[pe];if(Ie=Ie.trim(),Ie.indexOf(" ")!==-1)throw new Error("External entites are not supported");const _e=de[pe++];let Ce="";for(;pe<de.length&&de[pe]!==_e;pe++)Ce+=de[pe];return[Ie,Ce,pe]}function V(de,pe){return de[pe+1]==="!"&&de[pe+2]==="-"&&de[pe+3]==="-"}function z(de,pe){return de[pe+1]==="!"&&de[pe+2]==="E"&&de[pe+3]==="N"&&de[pe+4]==="T"&&de[pe+5]==="I"&&de[pe+6]==="T"&&de[pe+7]==="Y"}function re(de,pe){return de[pe+1]==="!"&&de[pe+2]==="E"&&de[pe+3]==="L"&&de[pe+4]==="E"&&de[pe+5]==="M"&&de[pe+6]==="E"&&de[pe+7]==="N"&&de[pe+8]==="T"}function ie(de,pe){return de[pe+1]==="!"&&de[pe+2]==="A"&&de[pe+3]==="T"&&de[pe+4]==="T"&&de[pe+5]==="L"&&de[pe+6]==="I"&&de[pe+7]==="S"&&de[pe+8]==="T"}function oe(de,pe){return de[pe+1]==="!"&&de[pe+2]==="N"&&de[pe+3]==="O"&&de[pe+4]==="T"&&de[pe+5]==="A"&&de[pe+6]==="T"&&de[pe+7]==="I"&&de[pe+8]==="O"&&de[pe+9]==="N"}function ue(de){if(L.isName(de))return de;throw new Error( ` Invalid entity name $ { de } ` )}y.exports= $ },"./node_modules/fast-xml-parser/src/xmlparser/OptionsBuilder.js":function(y,n){const k={preserveOrder:!1,attributeNamePrefix:"@_",a
` );const qe=new $ ("!xml");let kt=qe,tr="",rr="";for(let ar=0;ar<Ue.length;ar++)if(Ue[ar]==="<")if(Ue[ar+1]==="/"){const ur=Fe(Ue,">",ar,"Closing Tag is not closed.");let cr=Ue.substring(ar+2,ur).trim();if(this.options.removeNSPrefix){const br=cr.indexOf(":");br!==-1&&(cr=cr.substr(br+1))}this.options.transformTagName&&(cr=this.options.transformTagName(cr)),kt&&(tr=this.saveTextToParentTag(tr,kt,rr));const mr=rr.substring(rr.lastIndexOf(".")+1);if(cr&&this.options.unpairedTags.indexOf(cr)!==-1)throw new Error( ` Unpaired tag can not be used as closing tag : < /${cr}>`);let hr=0;mr&&this.options.unpairedTags.indexOf(mr)!==-1?(hr=rr.lastIndexOf(".",rr.lastIndexOf(".")-1),this.tagsNodeStack.pop()):hr=rr.lastIndexOf("."),rr=rr.substring(0,hr),kt=this.tagsNodeStack.pop(),tr="",ar=ur}else if(Ue[ar+1]==="?"){let ur=Ve(Ue,ar,!1,"?>");if(!ur)throw new Error("Pi Tag is not closed.");if(tr=this.saveTextToParentTag(tr,kt,rr),!(this.options.ignoreDeclaration&&ur.tagName==="?xml"||this.options.ignorePiTags)){const cr=new $(ur.tagName);cr.add(this.options.textNodeName,""),ur.tagName!==ur.tagExp&&ur.attrExpPresent&&(cr[":@"]=this.buildAttributesMap(ur.tagExp,rr,ur.tagName)),this.addChild(kt,cr,rr)}ar=ur.closeIndex+1}else if(Ue.substr(ar+1,3)==="!--"){const ur=Fe(Ue,"-->",ar+4,"Comment is not closed.");if(this.options.commentPropName){const cr=Ue.substring(ar+4,ur-2);tr=this.saveTextToParentTag(tr,kt,rr),kt.add(this.options.commentPropName,[{[this.options.textNodeName]:cr}])}ar=ur}else if(Ue.substr(ar+1,2)==="!D"){const ur=j(Ue,ar);this.docTypeEntities=ur.entities,ar=ur.i}else if(Ue.substr(ar+1,2)==="!["){const ur=Fe(Ue,"]]>",ar,"CDATA is not closed.")-2,cr=Ue.substring(ar+9,ur);tr=this.saveTextToParentTag(tr,kt,rr);let mr=this.parseTextData(cr,kt.tagname,rr,!0,!1,!0,!0);mr==null&&(mr=""),this.options.cdataPropName?kt.add(this.options.cdataPropName,[{[this.options.textNodeName]:cr}]):kt.add(this.options.textNodeName,mr),ar=ur+2}else{let ur=Ve(Ue,ar,this.options.removeNSPrefix),cr=ur.tagName;const mr=ur.rawTagName;let hr=ur.tagExp,br=ur.attrExpPresent,Rr=ur.closeIndex;this.options.transformTagName&&(cr=this.options.transformTagName(cr)),kt&&tr&&kt.tagname!=="!xml"&&(tr=this.saveTextToParentTag(tr,kt,rr,!1));const xr=kt;if(xr&&this.options.unpairedTags.indexOf(xr.tagname)!==-1&&(kt=this.tagsNodeStack.pop(),rr=rr.substring(0,rr.lastIndexOf("."))),cr!==qe.tagname&&(rr+=rr?"."+cr:cr),this.isItStopNode(this.options.stopNodes,rr,cr)){let Er="";if(hr.length>0&&hr.lastIndexOf("/ ")===hr.length-1)cr[cr.length-1]===" / "?(cr=cr.substr(0,cr.length-1),rr=rr.substr(0,rr.length-1),hr=cr):hr=hr.substr(0,hr.length-1),ar=ur.closeIndex;else if(this.options.unpairedTags.indexOf(cr)!==-1)ar=ur.closeIndex;else{const Ir=this.readStopNodeData(Ue,mr,Rr+1);if(!Ir)throw new Error(`Unexpected end of ${mr}`);ar=Ir.i,Er=Ir.tagContent}const vr=new $(cr);cr!==hr&&br&&(vr[" : @ "]=this.buildAttributesMap(hr,rr,cr)),Er&&(Er=this.parseTextData(Er,cr,rr,!0,br,!0,!0)),rr=rr.substr(0,rr.lastIndexOf(" . ")),vr.add(this.options.textNodeName,Er),this.addChild(kt,vr,rr)}else{if(hr.length>0&&hr.lastIndexOf(" / ")===hr.length-1){cr[cr.length-1]===" / "?(cr=cr.substr(0,cr.length-1),rr=rr.substr(0,rr.length-1),hr=cr):hr=hr.substr(0,hr.length-1),this.options.transformTagName&&(cr=this.options.transformTagName(cr));const Er=new $(cr);cr!==hr&&br&&(Er[" : @ "]=this.buildAttributesMap(hr,rr,cr)),this.addChild(kt,Er,rr),rr=rr.substr(0,rr.lastIndexOf(" . "))}else{const Er=new $(cr);this.tagsNodeStack.push(kt),cr!==hr&&br&&(Er[" : @ "]=this.buildAttributesMap(hr,rr,cr)),this.addChild(kt,Er,rr),kt=Er}tr=" ",ar=Rr}}else tr+=Ue[ar];return qe.child};function Ie(Ue,qe,kt){const tr=this.options.updateTag(qe.tagname,kt,qe[" : @ "]);tr===!1||(typeof tr==" string " && ( qe . tagname = tr ) , Ue . addChild ( qe ) ) } const _e = function ( Ue ) { if ( this . options . processEntities ) { for ( let qe in this . docTypeEntities ) { const kt = this . docTypeEntities [ qe ] ; Ue = Ue . replace ( kt . regx , kt . val ) } for ( let qe in this . lastEntities ) { const kt = this . lastEntities [ qe ] ; Ue = Ue . replace ( kt . regex , kt . val ) } if ( this . options . htmlEntities ) for ( let qe in this . htmlEntities ) { const kt = this . htmlEntit
In order to be iterable , non - array objects must have a [ Symbol . iterator ] ( ) method . ` )}var sa=!0,qa=!1,To;return{s:function(){On=On.call(Hr)},n:function(){var na=On.next();return sa=na.done,na},e:function(na){qa=!0,To=na},f:function(){try{!sa&&On.return!=null&&On.return()}finally{if(qa)throw To}}}}function V(Hr,Ar){if(Hr){if(typeof Hr=="string")return z(Hr,Ar);var On=Object.prototype.toString.call(Hr).slice(8,-1);if(On==="Object"&&Hr.constructor&&(On=Hr.constructor.name),On==="Map"||On==="Set")return Array.from(Hr);if(On==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array $ /.test(On))return z(Hr,Ar)}}function z(Hr,Ar){(Ar==null||Ar>Hr.length)&&(Ar=Hr.length);for(var On=0,In=new Array(Ar);On<Ar;On++)In[On]=Hr[On];return In}var re=k("./lib/md5.js"),ie=k("./lib/crypto.js"),oe=k("./node_modules/fast-xml-parser/src/fxp.js"),ue=oe.XMLParser,de=oe.XMLBuilder,pe=new ue({ignoreDeclaration:!0,ignoreAttributes:!0,parseTagValue:!1}),Ie=new de,_e=k("./lib/base64.js"),Ce=k("./src/tracker.js"),he=function(Ar){var On=pe.parse(Ar);return On},Ne=function(Ar){var On=Ie.build(Ar);return On};function Fe(Hr){return encodeURIComponent(Hr).replace(/!/g,"%21").replace(/'/g,"%27").replace(/ \( /g,"%28").replace(/ \) /g,"%29").replace(/ \* /g,"%2A")}function Ve(Hr,Ar){var On=[];for(var In in Hr)Hr.hasOwnProperty(In)&&On.push(Ar?Fe(In).toLowerCase():In);return On.sort(function(Sa,sa){return Sa=Sa.toLowerCase(),sa=sa.toLowerCase(),Sa===sa?0:Sa>sa?1:-1})}var jt=function(Ar,On){var In,Sa,sa,qa=[],To=Ve(Ar);for(In=0;In<To.length;In++)Sa=To[In],sa=Ar[Sa]===void 0||Ar[Sa]===null?"":""+Ar[Sa],Sa=On?Fe(Sa).toLowerCase():Fe(Sa),sa=Fe(sa)||"",qa.push(Sa+"="+sa);return qa.join("&")},Et=["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"],Ue=function(Ar){var On={};for(var In in Ar){var Sa=In.toLowerCase();(Sa.indexOf("x-cos-")>-1||Et.indexOf(Sa)>-1)&&(On[In]=Ar[In])}return On},qe=function(Ar){Ar=Ar||{};var On=Ar.SecretId,In=Ar.SecretKey,Sa=Ar.KeyTime,sa=(Ar.method||Ar.Method||"get").toLowerCase(),qa=Er(Ar.Query||Ar.params||{}),To=Ue(Er(Ar.Headers||Ar.headers||{})),Hi=Ar.Key||"",na;Ar.UseRawKey?na=Ar.Pathname||Ar.pathname||"/"+Hi:(na=Ar.Pathname||Ar.pathname||Hi,na.indexOf("/")!==0&&(na="/"+na));var Ma=Ar.ForceSignHost!==!1;if(!To.Host&&!To.host&&Ar.Bucket&&Ar.Region&&Ma&&(To.Host=Ar.Bucket+".cos."+Ar.Region+".myqcloud.com"),!On)throw new Error("missing param SecretId");if(!In)throw new Error("missing param SecretKey");var Ds=Math.round(kr(Ar.SystemClockOffset)/1e3)-1,ps=Ds,yl=Ar.Expires||Ar.expires;yl===void 0?ps+=900:ps+=yl*1||0;var $ l="sha1",Ou=On,As=Sa||Ds+";"+ps,Uu=Sa||Ds+";"+ps,ju=Ve(To,!0).join(";").toLowerCase(), $ c=Ve(qa,!0).join(";").toLowerCase(),Oc=ie.HmacSHA1(Uu,In).toString(),vc=[sa,na,Kn.obj2str(qa,!0),Kn.obj2str(To,!0),""].join( `
` ),Yl=["sha1",As,ie.SHA1(vc).toString(),""].join( `
` ),ms=ie.HmacSHA1(Yl,Oc).toString(),Rs=["q-sign-algorithm="+ $ l,"q-ak="+Ou,"q-sign-time="+As,"q-key-time="+Uu,"q-header-list="+ju,"q-url-param-list="+ $ c,"q-signature="+ms].join("&");return Rs},kt=function(Ar,On,In){var Sa=On/8,sa=Ar.slice(In,In+Sa);return new Uint8Array(sa).reverse(),new{8:Uint8Array,16:Uint16Array,32:Uint32Array}[On](sa)[0]},tr=function(Ar,On,In,Sa){var sa=Ar.slice(On,In),qa="";return new Uint8Array(sa).forEach(function(To){qa+=String.fromCharCode(To)}),Sa&&(qa=decodeURIComponent(escape(qa))),qa},rr=function(Ar){for(var On={},In=tr(Ar),Sa={records:[]};Ar.byteLength;){var sa=kt(Ar,32,0),qa=kt(Ar,32,4),To=sa-qa-16,Hi=0,na;for(Ar=Ar.slice(12);Hi<qa;){var Ma=kt(Ar,8,Hi),Ds=tr(Ar,Hi+1,Hi+1+Ma),ps=kt(Ar,16,Hi+Ma+2),yl=tr(Ar,Hi+Ma+4,Hi+Ma+4+ps);On[Ds]=yl,Hi+=Ma+4+ps}if(On[":event-type"]==="Records")na=tr(Ar,Hi,Hi+To,!0),Sa.records.push(na);else if(On[":event-type"]==="Stats")na=tr(Ar,Hi,Hi+To,!0),Sa.stats=Kn.xml2json(na).Stats;else if(On[":event-type"]==="error"){var $ l=On[":error-code"],Ou=On[":error-message"],As=new Error(Ou);As.message=Ou,As.name=As.code= $ l,Sa.error=As}Ar=Ar.slice(Hi+To+4)}return{payload:Sa.records.join(""),body:In}},ar=function(Ar){var On=this.options.CopySourceParser;if(On)return On(Ar);var In=Ar.match(/^([^.]+- \d +) \. cos(v6|-cdc|-cdz|-internal)? \. ([^.]+) \. ((myqcloud \. com)|(tencentcos \. cn)) \/ (.+) $ /);return In?{Bucket:In[1],Region:In[3],Key:In[7]}:null},nr=function(){},ur=function(Ar){var On={};for(var In in Ar)Ar.hasOwnProperty(In)&&Ar[In]!==void 0&&Ar[In]!==null&&(On[In]=Ar[In]);return On},cr=function(Ar,On){var In,Sa=new FileReader;FileReader.prototype.readAsBinaryString?(In=FileReader.prototype.readAsBinaryString,Sa.onload=function(){On(this.result)}):FileReader.prototype.readAsArrayBuffer?In=function(qa){var To="",Hi=new FileReader;Hi.onload=function(na){for(var Ma=new Uint8Array(Hi.result),Ds=Ma.byteLength,ps=0;ps<Ds;ps++)To+=String.fromCharCode(Ma[ps]);On(To)},Hi.readAsArrayBuffer(qa)}:console.error("FileReader not support readAsBinaryString"),In.call(Sa,Ar)},mr=function(){var Hr=function(In,Sa){In=In.split("."),Sa=Sa.split(".");for(var sa=0;sa<Sa.length;sa++)if(In[sa]!==Sa[sa])return parseInt(In[sa])>parseInt(Sa[sa])?1:-1;return 0},Ar=function(In){if(!In)return!1;var Sa=(In.match(/Chrome \/ ([. \d ]+)/)||[])[1],sa=(In.match(/QBCore \/ ([. \d ]+)/)||[])[1],qa=(In.match(/QQBrowser \/ ([. \d ]+)/)||[])[1],To=Sa&&Hr(Sa,"53.0.2785.116")<0&&sa&&Hr(sa,"3.53.991.400")<0&&qa&&Hr(qa,"9.0.2524.400")<=0||!1;return To};return Ar(typeof navigator<"u"&&navigator.userAgent)}(),hr=function(Ar,On,In,Sa,sa){var qa;if(Ar.slice?qa=Ar.slice(On,In):Ar.mozSlice?qa=Ar.mozSlice(On,In):Ar.webkitSlice&&(qa=Ar.webkitSlice(On,In)),Sa&&mr){var To=new FileReader;To.onload=function(Hi){qa=null,sa(new Blob([To.result]))},To.readAsArrayBuffer(qa)}else sa(qa)},br=function(Ar,On,In,Sa){In=In||nr,Ar?typeof On=="string"?In(Kn.md5(On,!0)):Blob&&On instanceof Blob?Kn.getFileMd5(On,function(sa,qa){In(qa)},Sa):In():In()},Rr=1024*1024,xr=function(Ar,On,In){var Sa=Ar.size,sa=0,qa=re.getCtx(),To=function Hi(na){if(na>=Sa){var Ma=qa.digest("hex");On(null,Ma);return}var Ds=Math.min(Sa,na+Rr);Kn.fileSlice(Ar,na,Ds,!1,function(ps){cr(ps,function(yl){ps=null,qa=qa.update(yl,!0),sa+=yl.length,yl=null,In&&In({loaded:sa,total:Sa,percent:Math.round(sa/Sa*1e4)/1e4}),Hi(na+Rr)})})};To(0)};function Er(Hr){return zr(Hr,function(Ar){return $ (Ar)==="object"&&Ar!==null?Er(Ar):Ar})}function vr(Hr,Ar,On){return Hr&&Ar in Hr?Hr[Ar]:On}function Ir(Hr,Ar){return Fr(Ar,function(On,In){Hr[In]=Ar[In]}),Hr}function Lr(Hr){return Hr instanceof Array}function gr(Hr,Ar){for(var On=!1,In=0;In<Hr.length;In++)if(Ar===Hr[In]){On=!0;break}return On}function _r(Hr){return Lr(Hr)?Hr:[Hr]}function Fr(Hr,Ar){for(var On in Hr)Hr.hasOwnProperty(On)&&Ar(Hr[On],On)}function zr(Hr,Ar){var On=Lr(Hr)?[]:{};for(var In in Hr)Hr.hasOwnProperty(In)&&(On[In]=Ar(Hr[In],In));return On}function Vr(Hr,Ar){var On=Lr(Hr),In=On?[]:{};for(var Sa in Hr)Hr.hasOwnProperty(Sa)&&Ar(Hr[Sa],Sa)&&(On?In.push(Hr[Sa]):In[Sa]=Hr[Sa]);return In}var Gr=function(Ar){var On,In,Sa,sa="";for(On=0,In=Ar.length/2;
2024-08-21 13:12:53 +08:00
` ).forEach(function( $ ){k= $ .indexOf(":"),y= $ .substring(0,k).trim().toLowerCase(),n= $ .substring(k+1).trim(),!(!y||t[y]&&ignoreDuplicateOf[y])&&(y==="set-cookie"?t[y]?t[y].push(n):t[y]=[n]:t[y]=t[y]?t[y]+", "+n:n)}),t}, $ internals=Symbol("internals");function normalizeHeader(e){return e&&String(e).trim().toLowerCase()}function normalizeValue(e){return e===!1||e==null?e:utils $ 1.isArray(e)?e.map(normalizeValue):String(e)}function parseTokens(e){const t=Object.create(null),y=/([^ \s ,;=]+) \s *(?:= \s *([^,;]+))?/g;let n;for(;n=y.exec(e);)t[n[1]]=n[2];return t}const isValidHeaderName=e=>/^[-_a-zA-Z0-9^ ` | ~ , ! # $ % & ' * + . ] + $ / . test ( e . trim ( ) ) ; function matchHeaderValue ( e , t , y , n , k ) { if ( utils$1 . isFunction ( n ) ) return n . call ( this , t , y ) ; if ( k && ( t = y ) , ! ! utils$1 . isString ( t ) ) { if ( utils$1 . isString ( n ) ) return t . indexOf ( n ) !== - 1 ; if ( utils$1 . isRegExp ( n ) ) return n . test ( t ) } } function formatHeader ( e ) { return e . trim ( ) . toLowerCase ( ) . replace ( /([a-z\d])(\w*)/g , ( t , y , n ) => y . toUpperCase ( ) + n ) } function buildAccessors ( e , t ) { const y = utils$1 . toCamelCase ( " " + t ) ; [ "get" , "set" , "has" ] . forEach ( n => { Object . defineProperty ( e , n + y , { value : function ( k , L , $ ) { return this [ n ] . call ( this , t , k , L , $ ) } , configurable : ! 0 } ) } ) } class AxiosHeaders { constructor ( t ) { t && this . set ( t ) } set ( t , y , n ) { const k = this ; function L ( j , V , z ) { const re = normalizeHeader ( V ) ; if ( ! re ) throw new Error ( "header name must be a non-empty string" ) ; const ie = utils$1 . findKey ( k , re ) ; ( ! ie || k [ ie ] === void 0 || z === ! 0 || z === void 0 && k [ ie ] !== ! 1 ) && ( k [ ie || V ] = normalizeValue ( j ) ) } const $ = ( j , V ) => utils$1 . forEach ( j , ( z , re ) => L ( z , re , V ) ) ; if ( utils$1 . isPlainObject ( t ) || t instanceof this . constructor ) $ ( t , y ) ; else if ( utils$1 . isString ( t ) && ( t = t . trim ( ) ) && ! isValidHeaderName ( t ) ) $ ( parseHeaders ( t ) , y ) ; else if ( utils$1 . isHeaders ( t ) ) for ( const [ j , V ] of t . entries ( ) ) L ( V , j , n ) ; else t != null && L ( y , t , n ) ; return this } get ( t , y ) { if ( t = normalizeHeader ( t ) , t ) { const n = utils$1 . findKey ( this , t ) ; if ( n ) { const k = this [ n ] ; if ( ! y ) return k ; if ( y === ! 0 ) return parseTokens ( k ) ; if ( utils$1 . isFunction ( y ) ) return y . call ( this , k , n ) ; if ( utils$1 . isRegExp ( y ) ) return y . exec ( k ) ; throw new TypeError ( "parser must be boolean|regexp|function" ) } } } has ( t , y ) { if ( t = normalizeHeader ( t ) , t ) { const n = utils$1 . findKey ( this , t ) ; return ! ! ( n && this [ n ] !== void 0 && ( ! y || matchHeaderValue ( this , this [ n ] , n , y ) ) ) } return ! 1 } delete ( t , y ) { const n = this ; let k = ! 1 ; function L ( $ ) { if ( $ = normalizeHeader ( $ ) , $ ) { const j = utils$1 . findKey ( n , $ ) ; j && ( ! y || matchHeaderValue ( n , n [ j ] , j , y ) ) && ( delete n [ j ] , k = ! 0 ) } } return utils$1 . isArray ( t ) ? t . forEach ( L ) : L ( t ) , k } clear ( t ) { const y = Object . keys ( this ) ; let n = y . length , k = ! 1 ; for ( ; n -- ; ) { const L = y [ n ] ; ( ! t || matchHeaderValue ( this , this [ L ] , L , t , ! 0 ) ) && ( delete this [ L ] , k = ! 0 ) } return k } normalize ( t ) { const y = this , n = { } ; return utils$1 . forEach ( this , ( k , L ) => { const $ = utils$1 . findKey ( n , L ) ; if ( $ ) { y [ $ ] = normalizeValue ( k ) , delete y [ L ] ; return } const j = t ? formatHeader ( L ) : String ( L ) . trim ( ) ; j !== L && delete y [ L ] , y [ j ] = normalizeValue ( k ) , n [ j ] = ! 0 } ) , this } concat ( ... t ) { return this . constructor . concat ( this , ... t ) } toJSON ( t ) { const y = Object . create ( null ) ; return utils$1 . forEach ( this , ( n , k ) => { n != null && n !== ! 1 && ( y [ k ] = t && utils$1 . isArray ( n ) ? n . join ( ", " ) : n ) } ) , y } [ Symbol . iterator ] ( ) { return Object . entries ( this . toJSON ( ) ) [ Symbol . iterator ] ( ) } toString ( ) { return Object . entries ( this . toJSON ( ) ) . map ( ( [ t , y ] ) => t + ": " + y ) . join ( `
2024-08-25 11:35:35 +08:00
` )}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...y){const n=new this(t);return y.forEach(k=>n.set(k)),n}static accessor(t){const n=(this[ $ internals]=this[ $ internals]={accessors:{}}).accessors,k=this.prototype;function L( $ ){const j=normalizeHeader( $ );n[j]||(buildAccessors(k, $ ),n[j]=!0)}return utils $ 1.isArray(t)?t.forEach(L):L(t),this}}AxiosHeaders.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);utils $ 1.reduceDescriptors(AxiosHeaders.prototype,({value:e},t)=>{let y=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(n){this[y]=n}}});utils $ 1.freezeMethods(AxiosHeaders);function transformData(e,t){const y=this||defaults,n=t||y,k=AxiosHeaders.from(n.headers);let L=n.data;return utils $ 1.forEach(e,function(j){L=j.call(y,L,k.normalize(),t?t.status:void 0)}),k.normalize(),L}function isCancel(e){return!!(e&&e.__CANCEL__)}function CanceledError(e,t,y){AxiosError.call(this,e??"canceled",AxiosError.ERR_CANCELED,t,y),this.name="CanceledError"}utils $ 1.inherits(CanceledError,AxiosError,{__CANCEL__:!0});function settle(e,t,y){const n=y.config.validateStatus;!y.status||!n||n(y.status)?e(y):t(new AxiosError("Request failed with status code "+y.status,[AxiosError.ERR_BAD_REQUEST,AxiosError.ERR_BAD_RESPONSE][Math.floor(y.status/100)-4],y.config,y.request,y))}function parseProtocol(e){const t=/^([-+ \w ]{1,25})(:? \/ \/ |:)/.exec(e);return t&&t[1]||""}function speedometer(e,t){e=e||10;const y=new Array(e),n=new Array(e);let k=0,L=0, $ ;return t=t!==void 0?t:1e3,function(V){const z=Date.now(),re=n[L]; $ ||( $ =z),y[k]=V,n[k]=z;let ie=L,oe=0;for(;ie!==k;)oe+=y[ie++],ie=ie%e;if(k=(k+1)%e,k===L&&(L=(L+1)%e),z- $ <t)return;const ue=re&&z-re;return ue?Math.round(oe*1e3/ue):void 0}}function throttle(e,t){let y=0,n=1e3/t,k,L;const $ =(z,re=Date.now())=>{y=re,k=null,L&&(clearTimeout(L),L=null),e.apply(null,z)};return[(...z)=>{const re=Date.now(),ie=re-y;ie>=n? $ (z,re):(k=z,L||(L=setTimeout(()=>{L=null, $ (k)},n-ie)))},()=>k&& $ (k)]}const progressEventReducer=(e,t,y=3)=>{let n=0;const k=speedometer(50,250);return throttle(L=>{const $ =L.loaded,j=L.lengthComputable?L.total:void 0,V= $ -n,z=k(V),re= $ <=j;n= $ ;const ie={loaded: $ ,total:j,progress:j? $ /j:void 0,bytes:V,rate:z||void 0,estimated:z&&j&&re?(j- $ )/z:void 0,event:L,lengthComputable:j!=null,[t?"download":"upload"]:!0};e(ie)},y)},progressEventDecorator=(e,t)=>{const y=e!=null;return[n=>t[0]({lengthComputable:y,total:e,loaded:n}),t[1]]},asyncDecorator=e=>(...t)=>utils $ 1.asap(()=>e(...t)),isURLSameOrigin=platform.hasStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),y=document.createElement("a");let n;function k(L){let $ =L;return t&&(y.setAttribute("href", $ ), $ =y.href),y.setAttribute("href", $ ),{href:y.href,protocol:y.protocol?y.protocol.replace(/: $ /,""):"",host:y.host,search:y.search?y.search.replace(/^ \? /,""):"",hash:y.hash?y.hash.replace(/^#/,""):"",hostname:y.hostname,port:y.port,pathname:y.pathname.charAt(0)==="/"?y.pathname:"/"+y.pathname}}return n=k(window.location.href),function( $ ){const j=utils $ 1.isString( $ )?k( $ ): $ ;return j.protocol===n.protocol&&j.host===n.host}}():function(){return function(){return!0}}(),cookies=platform.hasStandardBrowserEnv?{write(e,t,y,n,k,L){const $ =[e+"="+encodeURIComponent(t)];utils $ 1.isNumber(y)&& $ .push("expires="+new Date(y).toGMTString()),utils $ 1.isString(n)&& $ .push("path="+n),utils $ 1.isString(k)&& $ .push("domain="+k),L===!0&& $ .push("secure"),document.cookie= $ .join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|; \\ s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function isAbsoluteURL(e){return/^([a-z][a-z \d + \- .]*:)? \/ \/ /i.test(e)}function combineURLs(e,t){return t?e.replace(/ \/ ? \/ $ /,"")+"/"+t.replace(/^ \/ +/,""):e}function buildFullPath(e,t){return e&&!isAbsoluteURL(t)?combineURLs(e,t):t}const headersToObject=e=>e instanceof AxiosHeaders?{...e}:e;function mergeConfig(e,t){t=t||{};const y={};function n(z,re,ie){return utils $
2024-08-21 13:12:53 +08:00
` +L.map(renderReason).join( `
` ):" "+renderReason(L[0]):"as no adapter specified";throw new AxiosError("There is no suitable adapter to dispatch the request "+ $ ,"ERR_NOT_SUPPORT")}return n},adapters:knownAdapters};function throwIfCancellationRequested(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new CanceledError(null,e)}function dispatchRequest(e){return throwIfCancellationRequested(e),e.headers=AxiosHeaders.from(e.headers),e.data=transformData.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),adapters.getAdapter(e.adapter||defaults.adapter)(e).then(function(n){return throwIfCancellationRequested(e),n.data=transformData.call(e,e.transformResponse,n),n.headers=AxiosHeaders.from(n.headers),n},function(n){return isCancel(n)||(throwIfCancellationRequested(e),n&&n.response&&(n.response.data=transformData.call(e,e.transformResponse,n.response),n.response.headers=AxiosHeaders.from(n.response.headers))),Promise.reject(n)})}const VERSION="1.7.4",validators $ 1={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{validators $ 1[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const deprecatedWarnings={};validators $ 1.transitional=function(t,y,n){function k(L, $ ){return"[Axios v"+VERSION+"] Transitional option '"+L+"'"+ $ +(n?". "+n:"")}return(L, $ ,j)=>{if(t===!1)throw new AxiosError(k( $ ," has been removed"+(y?" in "+y:"")),AxiosError.ERR_DEPRECATED);return y&&!deprecatedWarnings[ $ ]&&(deprecatedWarnings[ $ ]=!0,console.warn(k( $ ," has been deprecated since v"+y+" and will be removed in the near future"))),t?t(L, $ ,j):!0}};function assertOptions(e,t,y){if(typeof e!="object")throw new AxiosError("options must be an object",AxiosError.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let k=n.length;for(;k-- >0;){const L=n[k], $ =t[L];if( $ ){const j=e[L],V=j===void 0|| $ (j,L,e);if(V!==!0)throw new AxiosError("option "+L+" must be "+V,AxiosError.ERR_BAD_OPTION_VALUE);continue}if(y!==!0)throw new AxiosError("Unknown option "+L,AxiosError.ERR_BAD_OPTION)}}const validator={assertOptions,validators:validators $ 1},validators=validator.validators;class Axios{constructor(t){this.defaults=t,this.interceptors={request:new InterceptorManager,response:new InterceptorManager}}async request(t,y){try{return await this._request(t,y)}catch(n){if(n instanceof Error){let k;Error.captureStackTrace?Error.captureStackTrace(k={}):k=new Error;const L=k.stack?k.stack.replace(/^.+ \n /,""):"";try{n.stack?L&&!String(n.stack).endsWith(L.replace(/^.+ \n .+ \n /,""))&&(n.stack+= `
` +L):n.stack=L}catch{}}throw n}}_request(t,y){typeof t=="string"?(y=y||{},y.url=t):y=t||{},y=mergeConfig(this.defaults,y);const{transitional:n,paramsSerializer:k,headers:L}=y;n!==void 0&&validator.assertOptions(n,{silentJSONParsing:validators.transitional(validators.boolean),forcedJSONParsing:validators.transitional(validators.boolean),clarifyTimeoutError:validators.transitional(validators.boolean)},!1),k!=null&&(utils $ 1.isFunction(k)?y.paramsSerializer={serialize:k}:validator.assertOptions(k,{encode:validators.function,serialize:validators.function},!0)),y.method=(y.method||this.defaults.method||"get").toLowerCase();let $ =L&&utils $ 1.merge(L.common,L[y.method]);L&&utils $ 1.forEach(["delete","get","head","post","put","patch","common"],de=>{delete L[de]}),y.headers=AxiosHeaders.concat( $ ,L);const j=[];let V=!0;this.interceptors.request.forEach(function(pe){typeof pe.runWhen=="function"&&pe.runWhen(y)===!1||(V=V&&pe.synchronous,j.unshift(pe.fulfilled,pe.rejected))});const z=[];this.interceptors.response.forEach(function(pe){z.push(pe.fulfilled,pe.rejected)});let re,ie=0,oe;if(!V){const de=[dispatchRequest.bind(this),void 0];for(de.unshift.apply(de,j),de.push.apply(de,z),oe=de.length,re=Promise.resolve(y);ie<oe;)re=re.then(de[ie++],de[ie++]);return re}oe=j.length;let ue=y;for(ie=0;ie<oe;){const de=j[ie++],pe=j[ie++];try{ue=de(ue)}catch(Ie){pe.call(this,Ie);break}}try{re=dispatchRequest.call(this,ue)}catch(de){return Promise.reject(de)}for(ie=0,oe=z.length;ie<oe;)re=re.then(z[ie++],z[ie++]);return re}getUri(t){t=mergeConfig(this.defaults,t);const y=buildFullPath(t.baseURL,t.url);return buildURL(y,t.params,t.paramsSerializer)}}utils $ 1.forEach(["delete","get","head","options"],function(t){Axios.prototype[t]=function(y,n){return this.request(mergeConfig(n||{},{method:t,url:y,data:(n||{}).data}))}});utils $ 1.forEach(["post","put","patch"],function(t){function y(n){return function(L, $ ,j){return this.request(mergeConfig(j||{},{method:t,headers:n?{"Content-Type":"multipart/form-data"}:{},url:L,data: $ }))}}Axios.prototype[t]=y(),Axios.prototype[t+"Form"]=y(!0)});class CancelToken{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let y;this.promise=new Promise(function(L){y=L});const n=this;this.promise.then(k=>{if(!n._listeners)return;let L=n._listeners.length;for(;L-- >0;)n._listeners[L](k);n._listeners=null}),this.promise.then=k=>{let L;const $ =new Promise(j=>{n.subscribe(j),L=j}).then(k);return $ .cancel=function(){n.unsubscribe(L)}, $ },t(function(L, $ ,j){n.reason||(n.reason=new CanceledError(L, $ ,j),y(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const y=this._listeners.indexOf(t);y!==-1&&this._listeners.splice(y,1)}static source(){let t;return{token:new CancelToken(function(k){t=k}),cancel:t}}}function spread(e){return function(y){return e.apply(null,y)}}function isAxiosError(e){return utils $ 1.isObject(e)&&e.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,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGate
async ( CUSTOM _ARG ) => {
$ { localStorage . getItem ( "formCustomConfig" ) }
}
2024-08-24 19:24:09 +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(e=>{console.error(e),reject(e)})})}function fileUpload(e,t){const y=localStorage.getItem("imgHost");switch(!y&&localStorage.setItem("imgHost","default"),y){case"aliOSS":return aliOSSFileUpload(e,t.name);case"minio":return minioFileUpload(e,t.name);case"txCOS":return txCOSFileUpload(t);case"qiniu":return qiniuUpload(t);case"gitee":return giteeUpload(e,t.name);case"github":return ghFileUpload(e,t.name);case"formCustom":return formCustomUpload(e,t);default:return ghFileUpload(e,t.name)}}const fileApi={fileUpload};/**
2024-08-21 13:12:53 +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 .
* /const toKebabCase=e=>e.replace(/ ( [ a - z0 - 9 ] ) ( [ A - Z ] ) / g , "$1-$2" ) . toLowerCase ( ) ; / * *
* @ 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 .
* / c o n s t I c o n = ( { s i z e : e , s t r o k e W i d t h : t = 2 , a b s o l u t e S t r o k e W i d t h : y , c o l o r : n , i c o n N o d e : k , n a m e : L , c l a s s : $ , . . . j } , { s l o t s : V } ) = > h $ 1 ( " 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 : e | | 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 : e | | 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 : n | | 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 " : y ? N u m b e r ( t ) * 2 4 / N u m b e r ( e ) : t , 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 ( L ? ? " i c o n " ) } ` ] , . . . j } , [ . . . k . m a p ( z = > h $ 1 ( . . . z ) ) , . . . V . d e f a u l t ? [ V . d e f a u l t ( ) ] : [ ] ] ) ; / * *
* @ 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 .
* /const createLucideIcon=(e,t)=>(y,{slots:n})=>h$1(Icon,{...y,iconNode:t,name:e},n);/ * *
* @ 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-25 11:35:35 +08:00
* /const ChevronRight=createLucideIcon("ChevronRightIcon",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]),_sfc_main$v={__name:"PostInfo",setup(e){const t=useStore(),{output:y}=storeToRefs(t),n=ref$1(!1),k=ref$1({title:"",desc:"",thumb:"",content:""});function L(){var V;let j={};try{j={thumb:(V=document.querySelector("#output img"))==null?void 0:V.src,title:[1,2,3,4,5,6].map(z=>document.querySelector(`#output h${z}`)).filter(z=>z)[0].textContent,desc:document.querySelector("#output p").textContent,content:y.value}}catch(z){console.log("error",z)}k.value={...j,auto:j},n.value=!0}function $(){n.value=!1,window.syncPost({thumb:k.value.thumb||k.value.auto.thumb,title:k.value.title||k.value.auto.title,desc:k.value.desc||k.value.auto.desc,content:k.value.content||k.value.auto.content})}return(j,V)=>{const z=resolveComponent("el-button"),re=resolveComponent("el-alert"),ie=resolveComponent("el-input"),oe=resolveComponent("el-form-item"),ue=resolveComponent("el-form"),de=resolveComponent("el-dialog");return openBlock(),createElementBlock(Fragment,null,[createVNode(z,{plain:"",type:"primary",onClick:L},{default:withCtx(()=>[createTextVNode(" 发布 ")]),_:1}),createVNode(de,{title:"发布","model-value":n.value,onClose:V[4]||(V[4]=pe=>n.value=!1)},{footer:withCtx(()=>[createVNode(z,{onClick:V[3]||(V[3]=pe=>n.value=!1)},{default:withCtx(()=>[createTextVNode(" 取 消 ")]),_:1}),createVNode(z,{type:"primary",onClick:$},{default:withCtx(()=>[createTextVNode(" 确 定 ")]),_:1})]),default:withCtx(()=>[createVNode(re,{class:"mb-4",title:"注:此功能由第三方浏览器插件支持,本平台不保证安全性。",type:"info","show-icon":""}),createVNode(ue,{class:"postInfo","label-width":"50",model:k.value},{default:withCtx(()=>[createVNode(oe,{label:"封面"},{default:withCtx(()=>[createVNode(ie,{modelValue:k.value.thumb,"onUpdate:modelValue":V[0]||(V[0]=pe=>k.value.thumb=pe),placeholder:"自动提取第一张图"},null,8,["modelValue"])]),_:1}),createVNode(oe,{label:"标题"},{default:withCtx(()=>[createVNode(ie,{modelValue:k.value.title,"onUpdate:modelValue":V[1]||(V[1]=pe=>k.value.title=pe),placeholder:"自动提取第一个标题"},null,8,["modelValue"])]),_:1}),createVNode(oe,{label:"描述"},{default:withCtx(()=>[createVNode(ie,{modelValue:k.value.desc,"onUpdate:modelValue":V[2]||(V[2]=pe=>k.value.desc=pe),type:"textarea",rows:4,placeholder:"自动提取第一个段落"},null,8,["modelValue"])]),_:1})]),_:1},8,["model"])]),_:1},8,["model-value"])],64)}}};function isComponentPublicInstance(e){return e!=null&&typeof e=="object"&&"$el"in e}function unwrapElement(e){if(isComponentPublicInstance(e)){const t=e.$el;return isNode$1(t)&&getNodeName(t)==="#comment"?null:t}return e}function toValue$1(e){return typeof e=="function"?e():unref(e)}function arrow(e){return{name:"arrow",options:e,fn(t){const y=unwrapElement(toValue$1(e.element));return y==null?{}:arrow$1({element:y,padding:e.padding}).fn(t)}}}function getDPR(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function roundByDPR(e,t){const y=getDPR(e);return Math.round(t*y)/y } function useFloating ( e , t , y ) { y === void 0 && ( y = { } ) ; const n = y . whileElementsMounted , k = computed ( ( ) => { var jt ; return ( jt = toValue$1 ( y . open ) ) != null ? jt : ! 0 } ) , L = computed ( ( ) => toValue$1 ( y . middleware ) ) , $ = computed ( ( ) => { var jt ; return ( jt = toValue$1 ( y . placement ) ) != null ? jt : "bottom" } ) , j = computed ( ( ) => { var jt ; return ( jt = toValue$1 ( y . strategy ) ) != null ? jt : "absolute" } ) , V = computed ( ( ) => { var jt ; return ( jt = toValue$1 ( y . transform ) ) != null ? jt : ! 0 } ) , z = computed ( ( ) => unwrapElement ( e . value ) ) , re = computed ( ( ) => unwrapElement ( t . value ) ) , ie = ref$1 ( 0 ) , oe = ref$1 ( 0 ) , ue = ref$1 ( j . value ) , de = ref$1 ( $ . value ) , pe = shallowRef ( { } ) , Ie = ref$1 ( ! 1 ) , _e = computed ( ( ) => { const jt = { position : ue . value , left : "0" , top : "0" } ; if ( ! re . value ) return jt ; const Et = roundByDPR ( re . value , ie . value ) , Ue = roundByDPR ( re . value , oe . value ) ; return V . value ? { ... jt , transform : "translate(" + Et + "px, " + Ue + "px)" , ... getDPR ( re . value ) >= 1.5 && { willChange : "transform" } } : { position : ue . value , left : Et + "px" , top : Ue + "px" } } ) ; let Ce ; function he ( ) { z . value == null || re . value == null || computePosition ( z . value , re . val
2024-08-24 19:24:09 +08:00
` )].join( `
2024-08-25 11:35:35 +08:00
` ))}return()=>L.value||k.value||j.value?h $ 1(t.default({present:j})[0],{ref:re=>{const ie=Be(re);return typeof(ie==null?void 0:ie.hasAttribute)>"u"||(ie!=null&&ie.hasAttribute("data-radix-popper-content-wrapper")? $ .value=ie.firstElementChild: $ .value=ie),ie}}):null}}),ht=defineComponent({__name:"Teleport",props:{to:{default:"body"},disabled:{type:Boolean},forceMount:{type:Boolean}},setup(e){const t=ja();return(y,n)=>unref(t)||y.forceMount?(openBlock(),createBlock(Teleport $ 1,{key:0,to:y.to,disabled:y.disabled},[renderSlot(y. $ slots,"default")],8,["to","disabled"])):createCommentVNode("",!0)}}),qi="dismissableLayer.pointerDownOutside",Yi="dismissableLayer.focusOutside";function Fl(e,t){const y=t.closest("[data-dismissable-layer]"),n=e.dataset.dismissableLayer===""?e:e.querySelector("[data-dismissable-layer]"),k=Array.from(e.ownerDocument.querySelectorAll("[data-dismissable-layer]"));return!!(y&&n===y||k.indexOf(n)<k.indexOf(y))}function Nl(e,t){var y;const n=((y=t==null?void 0:t.value)==null?void 0:y.ownerDocument)??(globalThis==null?void 0:globalThis.document),k=ref $ 1(!1),L=ref $ 1(()=>{});return watchEffect( $ =>{if(!Ze)return;const j=async z=>{const re=z.target;if(t!=null&&t.value){if(Fl(t.value,re)){k.value=!1;return}if(z.target&&!k.value){let ie=function(){zt(qi,e,oe)};const oe={originalEvent:z};z.pointerType==="touch"?(n.removeEventListener("click",L.value),L.value=ie,n.addEventListener("click",L.value,{once:!0})):ie()}else n.removeEventListener("click",L.value);k.value=!1}},V=window.setTimeout(()=>{n.addEventListener("pointerdown",j)},0); $ (()=>{window.clearTimeout(V),n.removeEventListener("pointerdown",j),n.removeEventListener("click",L.value)})}),{onPointerDownCapture:()=>k.value=!0}}function Ll(e,t){var y;const n=((y=t==null?void 0:t.value)==null?void 0:y.ownerDocument)??(globalThis==null?void 0:globalThis.document),k=ref $ 1(!1);return watchEffect(L=>{if(!Ze)return;const $ =async j=>{t!=null&&t.value&&(await nextTick $ 1(),!(!t.value||Fl(t.value,j.target))&&j.target&&!k.value&&zt(Yi,e,{originalEvent:j}))};n.addEventListener("focusin", $ ),L(()=>n.removeEventListener("focusin", $ ))}),{onFocusCapture:()=>k.value=!0,onBlurCapture:()=>k.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(e,{emit:t}){const y=e,n=t,{forwardRef:k,currentElement:L}=T(), $ =computed(()=>{var de;return((de=L.value)==null?void 0:de.ownerDocument)??globalThis.document}),j=computed(()=>je.layersRoot),V=computed(()=>L.value?Array.from(j.value).indexOf(L.value):-1),z=computed(()=>je.layersWithOutsidePointerEventsDisabled.size>0),re=computed(()=>{const de=Array.from(j.value),[pe]=[...je.layersWithOutsidePointerEventsDisabled].slice(-1),Ie=de.indexOf(pe);return V.value>=Ie}),ie=Nl(async de=>{const pe=[...je.branches].some(Ie=>Ie.contains(de.target));!re.value||pe||(n("pointerDownOutside",de),n("interactOutside",de),await nextTick $ 1(),de.defaultPrevented||n("dismiss"))},L),oe=Ll(de=>{[...je.branches].some(pe=>pe.contains(de.target))||(n("focusOutside",de),n("interactOutside",de),de.defaultPrevented||n("dismiss"))},L);jn("Escape",de=>{V.value===j.value.size-1&&(n("escapeKeyDown",de),de.defaultPrevented||n("dismiss"))});let ue;return watchEffect(de=>{L.value&&(y.disableOutsidePointerEvents&&(je.layersWithOutsidePointerEventsDisabled.size===0&&(ue= $ .value.body.style.pointerEvents, $ .value.body.style.pointerEvents="none"),je.layersWithOutsidePointerEventsDisabled.add(L.value)),j.value.add(L.value),de(()=>{y.disableOutsidePointerEvents&&je.layersWithOutsidePointerEventsDisabled.size===1&&( $ .value.body.style.pointerEvents=ue)}))}),watchEffect(de=>{de(()=>{L.value&&(j.value.delete(L.value),je.layersWithOutsidePointerEventsDisabled.delete(L.value))})}),(de,pe)=>(openBlock(),createBlock(unref(O),{ref:unref(k),"as-child":de.asChild,as:de.as,"data-dismissable-layer":"",style:normalizeSty
2024-08-22 08:49:17 +08:00
$ { V }
2024-08-25 11:35:35 +08:00
` ,"end"), $ (),y()}return(V,z)=>{const re=resolveComponent("el-input-number"),ie=resolveComponent("el-col"),oe=resolveComponent("el-row"),ue=resolveComponent("el-input"),de=resolveComponent("el-button"),pe=resolveComponent("el-dialog");return openBlock(),createBlock(pe,{title:"插入表格",class:"insert__dialog","model-value":unref(t).isShowInsertFormDialog,onClose:z[3]||(z[3]=Ie=>unref(y)(!1))},{footer:withCtx(()=>[createBaseVNode("div",_hoisted_2 $ 1,[createVNode(de,{plain:"",onClick:z[2]||(z[2]=Ie=>unref(y)(!1))},{default:withCtx(()=>[createTextVNode(" 取 消 ")]),_:1}),createVNode(de,{type:"primary",plain:"",onClick:j},{default:withCtx(()=>[createTextVNode(" 确 定 ")]),_:1})])]),default:withCtx(()=>[createVNode(oe,{class:"tb-options",type:"flex",align:"middle",gutter:10},{default:withCtx(()=>[createVNode(ie,{span:12},{default:withCtx(()=>[createTextVNode(" 行数: "),createVNode(re,{modelValue:n.value,"onUpdate:modelValue":z[0]||(z[0]=Ie=>n.value=Ie),"controls-position":"right",min:1,max:100,size:"small"},null,8,["modelValue"])]),_:1}),createVNode(ie,{span:12},{default:withCtx(()=>[createTextVNode(" 列数: "),createVNode(re,{modelValue:k.value,"onUpdate:modelValue":z[1]||(z[1]=Ie=>k.value=Ie),"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(n.value+1,Ie=>(openBlock(),createElementBlock("tr",{key:Ie,class:normalizeClass({"head-style":Ie===1})},[(openBlock(!0),createElementBlock(Fragment,null,renderList(k.value,_e=>(openBlock(),createElementBlock("td",{key:_e},[createVNode(ue,{modelValue:L.value[ ` k _$ { Ie - 1 } _$ { _e - 1 } ` ],"onUpdate:modelValue":Ce=>L.value[ ` k _$ { Ie - 1 } _$ { _e - 1 } ` ]=Ce,align:"center",placeholder:Ie===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 $ 2=e=>(pushScopeId("data-v-a6100d60"),e=e(),popScopeId(),e),_hoisted_1 $ 3=_withScopeId $ 2(()=>createBaseVNode("div",{class:"el-upload__text"},[createTextVNode(" 将图片拖到此处,或 "),createBaseVNode("em",null,"点击上传")],-1)),_sfc_main $ a={__name:"UploadImgDialog",emits:["uploadImage"],setup(e,{emit:t}){const y=t,n=useStore(),k=ref $ 1({repo:"",branch:"",accessToken:""}),L=ref $ 1({accessKeyId:"",accessKeySecret:"",bucket:"",region:"",path:"",cdnHost:""}), $ =ref $ 1({secretId:"",secretKey:"",bucket:"",region:"",path:"",cdnHost:""}),j=ref $ 1({accessKey:"",secretKey:"",bucket:"",domain:"",region:""}),V=ref $ 1({endpoint:"",port:"",useSSL:!0,bucket:"",accessKey:"",secretKey:""}),z=ref $ 1({code:localStorage.getItem("formCustomConfig")||removeLeft( `
2024-08-21 13:12:53 +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-25 11:35:35 +08:00
` ).trim(),editor:void 0}),re=[{value:"default",label:"默认"},{value:"github",label:"GitHub"},{value:"aliOSS",label:"阿里云"},{value:"txCOS",label:"腾讯云"},{value:"qiniu",label:"七牛云"},{value:"minio",label:"MinIO"},{value:"formCustom",label:"自定义代码"}],ie=ref $ 1("default"),oe=ref $ 1(null),ue=ref $ 1("upload");watch(ue,async jt=>{jt==="formCustom"&&nextTick $ 1(()=>{const Et=oe.value. $ el.querySelector("textarea");z.value.editor=z.value.editor||CodeMirror.fromTextArea(Et,{mode:"javascript"})})},{immediate:!0}),onBeforeMount(()=>{localStorage.getItem("githubConfig")&&(k.value=JSON.parse(localStorage.getItem("githubConfig"))),localStorage.getItem("aliOSSConfig")&&(L.value=JSON.parse(localStorage.getItem("aliOSSConfig"))),localStorage.getItem("txCOSConfig")&&( $ .value=JSON.parse(localStorage.getItem("txCOSConfig"))),localStorage.getItem("qiniuConfig")&&(j.value=JSON.parse(localStorage.getItem("qiniuConfig"))),localStorage.getItem("minioConfig")&&(V.value=JSON.parse(localStorage.getItem("minioConfig"))),localStorage.getItem("imgHost")&&(ie.value=localStorage.getItem("imgHost"))});function de(){localStorage.setItem("imgHost",ie.value),ElMessage.success("已成功切换图床")}function pe(){if(!(k.value.repo&&k.value.accessToken)){const jt=k.value.repo?"token":"GitHub 仓库";ElMessage.error( ` 参数 「 $ { jt } 」 不能为空 ` );return}localStorage.setItem("githubConfig",JSON.stringify(k.value)),ElMessage.success("保存成功")}function Ie(){if(!(L.value.accessKeyId&&L.value.accessKeySecret&&L.value.bucket&&L.value.region)){ElMessage.error("阿里云 OSS 参数配置不全");return}localStorage.setItem("aliOSSConfig",JSON.stringify(L.value)),ElMessage.success("保存成功")}function _e(){if(!(V.value.endpoint&&V.value.bucket&&V.value.accessKey&&V.value.secretKey)){ElMessage.error("MinIO 参数配置不全");return}localStorage.setItem("minioConfig",JSON.stringify(V.value)),ElMessage.success("保存成功")}function Ce(){if(!( $ .value.secretId&& $ .value.secretKey&& $ .value.bucket&& $ .value.region)){ElMessage.error("腾讯云 COS 参数配置不全");return}localStorage.setItem("txCOSConfig",JSON.stringify( $ .value)),ElMessage.success("保存成功")}function he(){if(!(j.value.accessKey&&j.value.secretKey&&j.value.bucket&&j.value.domain&&j.value.region)){ElMessage.error("七牛云 Kodo 参数配置不全");return}localStorage.setItem("qiniuConfig",JSON.stringify(j.value)),ElMessage.success("保存成功")}function Ne(){const jt=z.value.editor.getValue();localStorage.setItem("formCustomConfig",jt),ElMessage.success("保存成功")}function Fe(jt){const Et=checkImage(jt);if(!Et.ok)return ElMessage.error(Et.msg),!1;let Ue=localStorage.getItem("imgHost");Ue=Ue||"default",localStorage.setItem("imgHost",Ue);const qe=localStorage.getItem( ` $ { Ue } Config ` );return Ue==="default"||qe?!0:(ElMessage.error( ` 请先配置 $ { Ue } 图床参数 ` ),!1)}function Ve(jt){y("uploadImage",jt.file)}return(jt,Et)=>{const Ue=resolveComponent("el-option"),qe=resolveComponent("el-select"),kt=resolveComponent("el-icon"),tr=resolveComponent("el-upload"),rr=resolveComponent("el-tab-pane"),ar=resolveComponent("el-input"),nr=resolveComponent("el-form-item"),ur=resolveComponent("el-link"),cr=resolveComponent("el-button"),mr=resolveComponent("el-form"),hr=resolveComponent("el-switch"),br=resolveComponent("el-tabs"),Rr=resolveComponent("el-dialog");return openBlock(),createBlock(Rr,{title:"本地上传",class:"upload__dialog","model-value":unref(n).isShowUploadImgDialog,onClose:Et[30]||(Et[30]=xr=>unref(n).toggleShowUploadImgDialog(!1))},{default:withCtx(()=>[createVNode(br,{modelValue:ue.value,"onUpdate:modelValue":Et[29]||(Et[29]=xr=>ue.value=xr)},{default:withCtx(()=>[createVNode(rr,{class:"upload-panel",label:"选择上传",name:"upload"},{default:withCtx(()=>[createVNode(qe,{modelValue:ie.value,"onUpdate:modelValue":Et[0]||(Et[0]=xr=>ie.value=xr),placeholder:"请选择",size:"small",onChange:de},{default:withCtx(()=>[(openBlock(),createElementBlock(Fragment,null,renderList(re,xr=>createVNode(Ue,{key:xr.value,label:xr.label,value:xr.value},null,8,["label","val
$ { mr }
` ,cr),ElMessage.success("图片上传成功")}function Ue(ur,cr){de.value=!0,toBase64(ur).then(mr=>fileApi.fileUpload(mr,ur)).then(mr=>{console.log(mr),cr?cr(mr):Et(mr)}).catch(mr=>{ElMessage.error(mr.message)}).finally(()=>{de.value=!1})}const qe=ref $ 1(0);function kt(){const ur=document.querySelector("#editor");ur.value||(ur.value=k.value),n.value=CodeMirror.fromTextArea(ur,{mode:"text/x-markdown",theme:"xq-light",lineNumbers:!1,lineWrapping:!0,styleActiveLine:!0,autoCloseBrackets:!0,extraKeys:{[ ` $ { shiftKey } - $ { altKey } - F ` ]:function(mr){const hr=formatDoc(mr.getValue(0));mr.setValue(hr)},[ ` $ { ctrlKey } - B ` ]:function(mr){const hr=mr.getSelection();mr.replaceSelection( ` * * $ { hr } * * ` )},[ ` $ { ctrlKey } - I ` ]:function(mr){const hr=mr.getSelection();mr.replaceSelection( ` * $ { hr } * ` )},[ ` $ { ctrlKey } - D ` ]:function(mr){const hr=mr.getSelection();mr.replaceSelection( ` ~ ~ $ { hr } ~ ~ ` )},[ ` $ { ctrlKey } - K ` ]:function(mr){const hr=mr.getSelection();mr.replaceSelection( ` [ $ { hr } ] ( ) ` )},[ ` $ { ctrlKey } - E ` ]:function(mr){const hr=mr.getSelection();mr.replaceSelection( ` \ ` ${ hr } \` ` ) } , [ ` ${ ctrlKey } -L ` ] : function ( mr ) { const hr = mr . getSelection ( ) ; mr . replaceSelection ( ` \` ${ hr } \` ` ) } } } ) , n . value . on ( "change" , cr => { clearTimeout ( qe . value ) , qe . value = setTimeout ( ( ) => { Ce ( ) , k . value = cr . getValue ( ) } , 300 ) } ) , n . value . on ( "paste" , ( cr , mr ) => { if ( ! ( ! ( mr . clipboardData && mr . clipboardData . items ) || de . value ) ) for ( let hr = 0 , br = mr . clipboardData . items . length ; hr < br ; ++ hr ) { const Rr = mr . clipboardData . items [ hr ] ; if ( Rr . kind === "file" ) { const xr = Rr . getAsFile ( ) ; if ( ! jt ( xr ) ) continue ; Ue ( xr ) } } } ) } const tr = ref$1 ( null ) ; function rr ( ur ) { n . value . options . extraKeys [ ur ] ( n . value ) } const ar = ref$1 ( null ) ; function nr ( ) { const ur = ar . value . $el , cr = async ( { md : br , list : Rr } ) => { const xr = [ ... br . str . matchAll ( /!\[(.*?)\]\((.*?)\)/g ) || [ ] ] . filter ( Ir => Ir ) , Er = br . path . match ( /.+?\// ) [ 0 ] , vr = await Promise . all ( xr . map ( Ir => new Promise ( Lr => { let [ , , gr ] = Ir ; gr = gr . replace ( /^.\// , "" ) ; const { file : _r } = Rr . find ( Fr => Fr . path === ` ${ Er } ${ gr } ` ) || { } ; Ue ( _r , Fr => { Lr ( { matchStr : gr , url : Fr } ) } ) } ) ) ) ; vr . forEach ( Ir => { br . str = br . str . replace ( ` ](./ ${ Ir . matchStr } ) ` , ` ]( ${ Ir . url } ) ` ) . replace ( ` ]( ${ Ir . matchStr } ) ` , ` ]( ${ Ir . url } ) ` ) } ) , n . value . setValue ( br . str ) , console . log ( "resList" , vr , br . str ) } ; ur . ondragover = br => br . preventDefault ( ) , ur . ondrop = async br => { br . preventDefault ( ) ; for ( const Rr of br . dataTransfer . items ) Rr . getAsFileSystemHandle ( ) . then ( async xr => { if ( xr . kind === "directory" ) { const Er = await hr ( xr ) , vr = await mr ( { list : Er } ) ; cr ( { md : vr , list : Er } ) } else { const Er = await xr . getFile ( ) ; console . log ( "file" , Er ) } } ) } ; async function mr ( { list : br } ) { return new Promise ( Rr => { const { path : xr , file : Er } = br . find ( Ir => Ir . path . match ( /\.md$/ ) ) , vr = new FileReader ; vr . readAsText ( Er , "UTF-8" ) , vr . onload = Ir => { Rr ( { str : Ir . target . result , file : Er , path : xr } ) } } ) } async function hr ( br ) { const Rr = [ ] ; let xr = "" ; try { const Er = [ br ] ; for ( const vr of Er ) { xr += ` ${ vr . name } / ` ; for await ( const [ , Ir ] of vr ) Ir . kind === "file" ? Rr . push ( { path : xr + Ir . name , file : await Ir . getFile ( ) } ) : ( Rr . push ( { path : ` ${ xr + Ir . name } / ` } ) , Er . push ( Ir ) ) } } catch ( Er ) { console . error ( Er ) } return Rr } } return onMounted ( ( ) => { kt ( ) , Ce ( ) , nr ( ) } ) , ( ur , cr ) => { const mr = resolveComponent ( "el-header" ) , hr = resolveComponent ( "el-col" ) , br = resolveComponent ( "el-row" ) , Rr = resolveComponent ( "el-main" ) , xr = resolveComponent ( "el-container" ) ; return openBlock ( ) , createElementBlock ( "div" , { ref _key : "container" , ref : tr , class : "container" } , [ createVNode ( xr , null , { default : withCtx ( ( ) => [ createVNode ( mr , { class : "editor__header" } , { default : withCtx ( ( ) => [ createVNode ( EditorHeader , { onAddFormat : rr , onFormatContent : unref ( z ) , onStartCopy : Fe , onEndCopy : Ve } , null , 8 , [ "onFormatContent" ] ) ] ) , _ : 1 } ) , createVNode ( Rr , { class : "container-main" } , { default : withCtx ( ( ) => [ createVNode ( br , { class : "container-main-section" } , { default : withCtx ( ( ) => [ createVNode ( hr , { ref _key : "codeMirrorWrapper" , ref : ar , span : unref ( L ) ? 8 : 12 , class : normalizeClass ( [ "codeMirror-wrapper" , { "order-1" : ! unref ( t ) . 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 : cr [ 0 ] || ( cr [ 0 ] = Er => unref ( ue ) ( ) ) } , { default : withCtx ( ( )
` ;_e.replaceSelection(jt+jt,null),oe(_e,-1),Ne=_e.listSelections();for(var Et=0;Et<Ne.length;Et++){var Ue=Ne[Et].head.line;_e.indentLine(Ue,null,!0),_e.indentLine(Ue+1,null,!0)}})}function oe(_e,Ce){for(var he=[],Ne=_e.listSelections(),Fe=0,Ve=0;Ve<Ne.length;Ve++){var jt=Ne[Ve];jt.head==_e.getCursor()&&(Fe=Ve);var Et=jt.head.ch||Ce>0?{line:jt.head.line,ch:jt.head.ch+Ce}:{line:jt.head.line-1};he.push({anchor:Et,head:Et})}_e.setSelections(he,Fe)}function ue(_e){var Ce=y.cmpPos(_e.anchor,_e.head)>0;return{anchor:new k(_e.anchor.line,_e.anchor.ch+(Ce?-1:1)),head:new k(_e.head.line,_e.head.ch+(Ce?1:-1))}}function de(_e,Ce){var he=z(_e);if(!he||_e.getOption("disableInput"))return y.Pass;var Ne=L(he,"pairs"),Fe=Ne.indexOf(Ce);if(Fe==-1)return y.Pass;for(var Ve=L(he,"closeBefore"),jt=L(he,"triples"),Et=Ne.charAt(Fe+1)==Ce,Ue=_e.listSelections(),qe=Fe%2==0,kt,tr=0;tr<Ue.length;tr++){var rr=Ue[tr],ar=rr.head,nr,ur=_e.getRange(ar,k(ar.line,ar.ch+1));if(qe&&!rr.empty())nr="surround";else if((Et||!qe)&&ur==Ce)Et&&Ie(_e,ar)?nr="both":jt.indexOf(Ce)>=0&&_e.getRange(ar,k(ar.line,ar.ch+3))==Ce+Ce+Ce?nr="skipThree":nr="skip";else if(Et&&ar.ch>1&&jt.indexOf(Ce)>=0&&_e.getRange(k(ar.line,ar.ch-2),ar)==Ce+Ce){if(ar.ch>2&&/ \b string/.test(_e.getTokenTypeAt(k(ar.line,ar.ch-2))))return y.Pass;nr="addFour"}else if(Et){var cr=ar.ch==0?" ":_e.getRange(k(ar.line,ar.ch-1),ar);if(!y.isWordChar(ur)&&cr!=Ce&&!y.isWordChar(cr))nr="both";else return y.Pass}else if(qe&&(ur.length===0||/ \s /.test(ur)||Ve.indexOf(ur)>-1))nr="both";else return y.Pass;if(!kt)kt=nr;else if(kt!=nr)return y.Pass}var mr=Fe%2?Ne.charAt(Fe-1):Ce,hr=Fe%2?Ce:Ne.charAt(Fe+1);_e.operation(function(){if(kt=="skip")oe(_e,1);else if(kt=="skipThree")oe(_e,3);else if(kt=="surround"){for(var br=_e.getSelections(),Rr=0;Rr<br.length;Rr++)br[Rr]=mr+br[Rr]+hr;_e.replaceSelections(br,"around"),br=_e.listSelections().slice();for(var Rr=0;Rr<br.length;Rr++)br[Rr]=ue(br[Rr]);_e.setSelections(br)}else kt=="both"?(_e.replaceSelection(mr+hr,null),_e.triggerElectric(mr+hr),oe(_e,-1)):kt=="addFour"&&(_e.replaceSelection(mr+mr+mr+mr,"before"),oe(_e,1))})}function pe(_e,Ce){var he=_e.getRange(k(Ce.line,Ce.ch-1),k(Ce.line,Ce.ch+1));return he.length==2?he:null}function Ie(_e,Ce){var he=_e.getTokenAt(k(Ce.line,Ce.ch+1));return/ \b string/.test(he.type)&&he.start==Ce.ch&&(Ce.ch==0||!/ \b string/.test(_e.getTokenTypeAt(Ce)))}})})();(function(e,t){(function(y){y(requireCodemirror())})(function(y){var n=/MSIE \d /.test(navigator.userAgent)&&(document.documentMode==null||document.documentMode<8),k=y.Pos,L={"(":")>",")":"(<","[":"]>","]":"[<","{":"}>","}":"{<","<":">>",">":"<<"};function $ (oe){return oe&&oe.bracketRegex||/[(){}[ \] ]/}function j(oe,ue,de){var pe=oe.getLineHandle(ue.line),Ie=ue.ch-1,_e=de&&de.afterCursor;_e==null&&(_e=/(^| )cm-fat-cursor( $ | )/.test(oe.getWrapperElement().className));var Ce= $ (de),he=!_e&&Ie>=0&&Ce.test(pe.text.charAt(Ie))&&L[pe.text.charAt(Ie)]||Ce.test(pe.text.charAt(Ie+1))&&L[pe.text.charAt(++Ie)];if(!he)return null;var Ne=he.charAt(1)==">"?1:-1;if(de&&de.strict&&Ne>0!=(Ie==ue.ch))return null;var Fe=oe.getTokenTypeAt(k(ue.line,Ie+1)),Ve=V(oe,k(ue.line,Ie+(Ne>0?1:0)),Ne,Fe,de);return Ve==null?null:{from:k(ue.line,Ie),to:Ve&&Ve.pos,match:Ve&&Ve.ch==he.charAt(0),forward:Ne>0}}function V(oe,ue,de,pe,Ie){for(var _e=Ie&&Ie.maxScanLineLength||1e4,Ce=Ie&&Ie.maxScanLines||1e3,he=[],Ne= $ (Ie),Fe=de>0?Math.min(ue.line+Ce,oe.lastLine()+1):Math.max(oe.firstLine()-1,ue.line-Ce),Ve=ue.line;Ve!=Fe;Ve+=de){var jt=oe.getLine(Ve);if(jt){var Et=de>0?0:jt.length-1,Ue=de>0?jt.length:-1;if(!(jt.length>_e))for(Ve==ue.line&&(Et=ue.ch-(de<0?1:0));Et!=Ue;Et+=de){var qe=jt.charAt(Et);if(Ne.test(qe)&&(pe===void 0||(oe.getTokenTypeAt(k(Ve,Et+1))||"")==(pe||""))){var kt=L[qe];if(kt&&kt.charAt(1)==">"==de>0)he.push(qe);else if(he.length)he.pop();else return{pos:k(Ve,Et),ch:qe}}}}}return Ve-de==(de>0?oe.lastLine():oe.firstLine())?!1:null}function z(oe,ue,de){for(var pe=oe.state.matchBrackets.maxHighlightLineLength||1e3,Ie=de&&de.highlightNonMatching,_e=[],Ce=oe.listSelections(),he=0;he<Ce.length;he++){var Ne=Ce[he].empty()